!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).efoxPay={})}(this,(function(e){"use strict";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,n)};function n(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t,n,r){return new(n||(n=Promise))((function(i,o){function l(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}u((r=r.apply(e,t||[])).next())}))}function o(e,t){var n,r,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,r=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!(i=l.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){l=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){l.label=o[1];break}if(6===o[0]&&l.label<i[1]){l.label=i[1],i=o;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(o);break}i[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}const l=new Set(["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","animation","audio","canvas","circle","clipPath","color-profile","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","handler","hkern","iframe","image","line","linearGradient","listener","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","prefetch","radialGradient","rect","script","set","solidColor","stop","style","svg","switch","symbol","tbreak","text","textArea","textPath","title","tref","tspan","unknown","use","video","view","vkern"]);l.delete("a"),l.delete("audio"),l.delete("canvas"),l.delete("iframe"),l.delete("script"),l.delete("video");const a=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,u=(e,t)=>{for(let[n,r]of Object.entries(t))"number"!=typeof r||a.test(n)||(r+="px"),e.style[n]=r},c=e=>"string"==typeof e?l.has(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e):(e=>e===DocumentFragment)(e)?document.createDocumentFragment():e(),s=(e,t,n)=>{null!=n&&(/^xlink[AHRST]/.test(t)?e.setAttributeNS("http://www.w3.org/1999/xlink",t.replace("xlink","xlink:").toLowerCase(),n):e.setAttribute(t,n))},d=(e,t)=>{for(const n of t)n instanceof Node?e.appendChild(n):Array.isArray(n)?d(e,n):"boolean"!=typeof n&&null!=n&&e.appendChild(document.createTextNode(n))},p=(e,t,...n)=>{var r;const i=c(e);if(d(i,n),i instanceof DocumentFragment||!t)return i;for(let[e,n]of Object.entries(t))if("htmlFor"===e&&(e="for"),"class"===e||"className"===e){const e=null!==(r=i.getAttribute("class"))&&void 0!==r?r:"";s(i,"class",(e+" "+String(n)).trim())}else if("style"===e)u(i,n);else if(e.startsWith("on")){const t=e.slice(2).toLowerCase();i.addEventListener(t,n)}else"dangerouslySetInnerHTML"===e&&"__html"in n?i.innerHTML=n.__html:"key"!==e&&!1!==n&&s(i,e,!0===n?"":n);return i};var f=function(e){try{return!!e()}catch(e){return!0}},v=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e,t){return e(t={exports:{}},t.exports),t.exports}var m=function(e){return e&&e.Math==Math&&e},b=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof y&&y)||Function("return this")(),g=function(e){return"object"==typeof e?null!==e:"function"==typeof e},x=b.document,S=g(x)&&g(x.createElement),_=function(e){return S?x.createElement(e):{}},E=!v&&!f((function(){return 7!=Object.defineProperty(_("div"),"a",{get:function(){return 7}}).a})),w=function(e){if(!g(e))throw TypeError(String(e)+" is not an object");return e},T=function(e,t){if(!g(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!g(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!g(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!g(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},I=Object.defineProperty,N={f:v?I:function(e,t,n){if(w(e),t=T(t,!0),w(n),E)try{return I(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},k=N.f,O=Function.prototype,C=O.toString,j=/^\s*function ([^ (]*)/;v&&!("name"in O)&&k(O,"name",{configurable:!0,get:function(){try{return C.call(this).match(j)[1]}catch(e){return""}}});var D={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,P={f:A&&!D.call({1:2},1)?function(e){var t=A(this,e);return!!t&&t.enumerable}:D},B=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},F={}.toString,R=function(e){return F.call(e).slice(8,-1)},L="".split,M=f((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==R(e)?L.call(e,""):Object(e)}:Object,W=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},z=function(e){return M(W(e))},$={}.hasOwnProperty,K=function(e,t){return $.call(e,t)},U=Object.getOwnPropertyDescriptor,H={f:v?U:function(e,t){if(e=z(e),t=T(t,!0),E)try{return U(e,t)}catch(e){}if(K(e,t))return B(!P.f.call(e,t),e[t])}},V=v?function(e,t,n){return N.f(e,t,B(1,n))}:function(e,t,n){return e[t]=n,e},G=function(e,t){try{V(b,e,t)}catch(n){b[e]=t}return t},X=b["__core-js_shared__"]||G("__core-js_shared__",{}),Y=Function.toString;"function"!=typeof X.inspectSource&&(X.inspectSource=function(e){return Y.call(e)});var q,J,Q,Z=X.inspectSource,ee=b.WeakMap,te="function"==typeof ee&&/native code/.test(Z(ee)),ne=h((function(e){(e.exports=function(e,t){return X[e]||(X[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),re=0,ie=Math.random(),oe=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++re+ie).toString(36)},le=ne("keys"),ae=function(e){return le[e]||(le[e]=oe(e))},ue={},ce=b.WeakMap;if(te){var se=new ce,de=se.get,pe=se.has,fe=se.set;q=function(e,t){return fe.call(se,e,t),t},J=function(e){return de.call(se,e)||{}},Q=function(e){return pe.call(se,e)}}else{var ve=ae("state");ue[ve]=!0,q=function(e,t){return V(e,ve,t),t},J=function(e){return K(e,ve)?e[ve]:{}},Q=function(e){return K(e,ve)}}var ye={set:q,get:J,has:Q,enforce:function(e){return Q(e)?J(e):q(e,{})},getterFor:function(e){return function(t){var n;if(!g(t)||(n=J(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},he=h((function(e){var t=ye.get,n=ye.enforce,r=String(String).split("String");(e.exports=function(e,t,i,o){var l=!!o&&!!o.unsafe,a=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||K(i,"name")||V(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==b?(l?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=i:V(e,t,i)):a?e[t]=i:G(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Z(this)}))})),me=b,be=function(e){return"function"==typeof e?e:void 0},ge=function(e,t){return arguments.length<2?be(me[e])||be(b[e]):me[e]&&me[e][t]||b[e]&&b[e][t]},xe=Math.ceil,Se=Math.floor,_e=function(e){return isNaN(e=+e)?0:(e>0?Se:xe)(e)},Ee=Math.min,we=function(e){return e>0?Ee(_e(e),9007199254740991):0},Te=Math.max,Ie=Math.min,Ne=function(e,t){var n=_e(e);return n<0?Te(n+t,0):Ie(n,t)},ke=function(e){return function(t,n,r){var i,o=z(t),l=we(o.length),a=Ne(r,l);if(e&&n!=n){for(;l>a;)if((i=o[a++])!=i)return!0}else for(;l>a;a++)if((e||a in o)&&o[a]===n)return e||a||0;return!e&&-1}},Oe={includes:ke(!0),indexOf:ke(!1)}.indexOf,Ce=function(e,t){var n,r=z(e),i=0,o=[];for(n in r)!K(ue,n)&&K(r,n)&&o.push(n);for(;t.length>i;)K(r,n=t[i++])&&(~Oe(o,n)||o.push(n));return o},je=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],De=je.concat("length","prototype"),Ae={f:Object.getOwnPropertyNames||function(e){return Ce(e,De)}},Pe={f:Object.getOwnPropertySymbols},Be=ge("Reflect","ownKeys")||function(e){var t=Ae.f(w(e)),n=Pe.f;return n?t.concat(n(e)):t},Fe=function(e,t){for(var n=Be(t),r=N.f,i=H.f,o=0;o<n.length;o++){var l=n[o];K(e,l)||r(e,l,i(t,l))}},Re=/#|\.prototype\./,Le=function(e,t){var n=We[Me(e)];return n==$e||n!=ze&&("function"==typeof t?f(t):!!t)},Me=Le.normalize=function(e){return String(e).replace(Re,".").toLowerCase()},We=Le.data={},ze=Le.NATIVE="N",$e=Le.POLYFILL="P",Ke=Le,Ue=H.f,He=function(e,t){var n,r,i,o,l,a=e.target,u=e.global,c=e.stat;if(n=u?b:c?b[a]||G(a,{}):(b[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(l=Ue(n,r))&&l.value:n[r],!Ke(u?r:a+(c?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Fe(o,i)}(e.sham||i&&i.sham)&&V(o,"sham",!0),he(n,r,o,e)}},Ve=function(){var e=w(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Ge(e,t){return RegExp(e,t)}var Xe,Ye,qe={UNSUPPORTED_Y:f((function(){var e=Ge("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:f((function(){var e=Ge("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Je=RegExp.prototype.exec,Qe=String.prototype.replace,Ze=Je,et=(Xe=/a/,Ye=/b*/g,Je.call(Xe,"a"),Je.call(Ye,"a"),0!==Xe.lastIndex||0!==Ye.lastIndex),tt=qe.UNSUPPORTED_Y||qe.BROKEN_CARET,nt=void 0!==/()??/.exec("")[1];(et||nt||tt)&&(Ze=function(e){var t,n,r,i,o=this,l=tt&&o.sticky,a=Ve.call(o),u=o.source,c=0,s=e;return l&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),s=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,c++),n=new RegExp("^(?:"+u+")",a)),nt&&(n=new RegExp("^"+u+"$(?!\\s)",a)),et&&(t=o.lastIndex),r=Je.call(l?n:o,s),l?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:et&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),nt&&r&&r.length>1&&Qe.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var rt=Ze;He({target:"RegExp",proto:!0,forced:/./.exec!==rt},{exec:rt});var it=!!Object.getOwnPropertySymbols&&!f((function(){return!String(Symbol())})),ot=it&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lt=ne("wks"),at=b.Symbol,ut=ot?at:at&&at.withoutSetter||oe,ct=function(e){return K(lt,e)||(it&&K(at,e)?lt[e]=at[e]:lt[e]=ut("Symbol."+e)),lt[e]},st=ct("species"),dt=!f((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),pt="$0"==="a".replace(/./,"$0"),ft=ct("replace"),vt=!!/./[ft]&&""===/./[ft]("a","$0"),yt=!f((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),ht=function(e,t,n,r){var i=ct(e),o=!f((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),l=o&&!f((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[st]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!l||"replace"===e&&(!dt||!pt||vt)||"split"===e&&!yt){var a=/./[i],u=n(i,""[e],(function(e,t,n,r,i){return t.exec===rt?o&&!i?{done:!0,value:a.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:pt,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:vt}),c=u[0],s=u[1];he(String.prototype,e,c),he(RegExp.prototype,i,2==t?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)})}r&&V(RegExp.prototype[i],"sham",!0)},mt=function(e){return function(t,n){var r,i,o=String(W(t)),l=_e(n),a=o.length;return l<0||l>=a?e?"":void 0:(r=o.charCodeAt(l))<55296||r>56319||l+1===a||(i=o.charCodeAt(l+1))<56320||i>57343?e?o.charAt(l):r:e?o.slice(l,l+2):i-56320+(r-55296<<10)+65536}},bt={codeAt:mt(!1),charAt:mt(!0)}.charAt,gt=function(e,t,n){return t+(n?bt(e,t).length:1)},xt=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==R(e))throw TypeError("RegExp#exec called on incompatible receiver");return rt.call(e,t)},St=Math.max,_t=Math.min,Et=Math.floor,wt=/\$([$&'`]|\d\d?|<[^>]*>)/g,Tt=/\$([$&'`]|\d\d?)/g;ht("replace",2,(function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,l=i?"$":"$0";return[function(n,r){var i=W(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!i&&o||"string"==typeof r&&-1===r.indexOf(l)){var u=n(t,e,this,r);if(u.done)return u.value}var c=w(e),s=String(this),d="function"==typeof r;d||(r=String(r));var p=c.global;if(p){var f=c.unicode;c.lastIndex=0}for(var v=[];;){var y=xt(c,s);if(null===y)break;if(v.push(y),!p)break;""===String(y[0])&&(c.lastIndex=gt(s,we(c.lastIndex),f))}for(var h,m="",b=0,g=0;g<v.length;g++){y=v[g];for(var x=String(y[0]),S=St(_t(_e(y.index),s.length),0),_=[],E=1;E<y.length;E++)_.push(void 0===(h=y[E])?h:String(h));var T=y.groups;if(d){var I=[x].concat(_,S,s);void 0!==T&&I.push(T);var N=String(r.apply(void 0,I))}else N=a(x,s,S,_,T,r);S>=b&&(m+=s.slice(b,S)+N,b=S+x.length)}return m+s.slice(b)}];function a(e,n,r,i,o,l){var a=r+e.length,u=i.length,c=Tt;return void 0!==o&&(o=Object(W(o)),c=wt),t.call(l,c,(function(t,l){var c;switch(l.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(a);case"<":c=o[l.slice(1,-1)];break;default:var s=+l;if(0===s)return t;if(s>u){var d=Et(s/10);return 0===d?t:d<=u?void 0===i[d-1]?l.charAt(1):i[d-1]+l.charAt(1):t}c=i[s-1]}return void 0===c?"":c}))}}));var It=function(){function e(){}return e.prototype.renderToDom=function(e,t){t.length>0?document.querySelector("#"+t).append(e):document.querySelector("body").append(e)},e}(),Nt=h((function(e,t){e.exports=function(){var e=function(){},t={},n={},r={};function i(e,t){if(e){var i=r[e];if(n[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function o(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function l(t,n,r,i){var o,a,u=document,c=r.async,s=(r.numRetries||0)+1,d=r.before||e,p=t.replace(/[\?|#].*$/,""),f=t.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(p)?((a=u.createElement("link")).rel="stylesheet",a.href=f,(o="hideFocus"in a)&&a.relList&&(o=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(p)?(a=u.createElement("img")).src=f:((a=u.createElement("script")).src=t,a.async=void 0===c||c),a.onload=a.onerror=a.onbeforeload=function(e){var u=e.type[0];if(o)try{a.sheet.cssText.length||(u="e")}catch(e){18!=e.code&&(u="e")}if("e"==u){if((i+=1)<s)return l(t,n,r,i)}else if("preload"==a.rel&&"style"==a.as)return a.rel="stylesheet";n(t,u,e.defaultPrevented)},!1!==d(t,a)&&u.head.appendChild(a)}function a(e,n,r){var a,u;if(n&&n.trim&&(a=n),u=(a?r:n)||{},a){if(a in t)throw"LoadJS";t[a]=!0}function c(t,n){!function(e,t,n){var r,i,o=(e=e.push?e:[e]).length,a=o,u=[];for(r=function(e,n,r){if("e"==n&&u.push(e),"b"==n){if(!r)return;u.push(e)}--o||t(u)},i=0;i<a;i++)l(e[i],r,n)}(e,(function(e){o(u,e),t&&o({success:t,error:n},e),i(a,e)}),u)}if(u.returnPromise)return new Promise(c);c()}return a.ready=function(e,t){return function(e,t){e=e.push?e:[e];var i,o,l,a=[],u=e.length,c=u;for(i=function(e,n){n.length&&a.push(e),--c||t(a)};u--;)o=e[u],(l=n[o])?i(o,l):(r[o]=r[o]||[]).push(i)}(e,(function(e){o(t,e)})),a},a.done=function(e){i(e,[])},a.reset=function(){t={},n={},r={}},a.isDefined=function(e){return e in t},a}()})),kt=function(e){function t(t,n){var r=e.call(this)||this;console.log("publicKey",t,"initialData",n),r.publicKey=t,r.initialData=n;var l=(new Date).getTime();return Nt(["https://2pay-js.2checkout.com/v1/2pay.js"],(function(){var e,a;console.log("2checkout.js loaded"),window.addEventListener("load",(function(){var e,l,a,u,c,s;r.jsPaymentClient=new TwoPayClient(t.key),n.language&&r.jsPaymentClient.setup.setLanguage(n.language),r.component=r.jsPaymentClient.components.create("card",(e=n.styleOption,l=null==e?void 0:e.commonStyle,a=null==e?void 0:e.componentStyle,u=null==a?void 0:a.cardInputStyle,c=null==a?void 0:a.expirationInputStyle,s=null==a?void 0:a.cvvInputStyle,{margin:0,fontFamily:(null==l?void 0:l.fontFamily)||"Helvetica, sans-serif",fontSize:(null==l?void 0:l.fontSize)||"1rem",fontWeight:(null==l?void 0:l.fontWeight)||"400",color:(null==l?void 0:l.color)||"#212529",textAlign:(null==l?void 0:l.textAlign)||"left",backgroundColor:(null==l?void 0:l.backgroundColor)||"#ffffff","*":{boxSizing:(null==l?void 0:l.boxSizing)||"border-box"},".card-number .control-label":(null==u?void 0:u.labelStyle)||{},".card-number .input-wrapper":(null==u?void 0:u.inputWrapperStyle)||{},".card-number .form-control":(null==u?void 0:u.inputStyle)||{},".card-number .validation-message":(null==u?void 0:u.messageStyle)||{},".card-expiration-date .control-label":(null==c?void 0:c.labelStyle)||{},".card-expiration-date .input-wrapper":(null==c?void 0:c.inputWrapperStyle)||{},".card-expiration-date .form-control":(null==c?void 0:c.inputStyle)||{},".card-expiration-date .validation-message":(null==c?void 0:c.messageStyle)||{},".card-security-code .control-label":(null==s?void 0:s.labelStyle)||{},".card-security-code .input-wrapper":(null==s?void 0:s.inputWrapperStyle)||{},".card-security-code .form-control":(null==s?void 0:s.inputStyle)||{},".card-security-code .validation-message":(null==s?void 0:s.messageStyle)||{},".no-gutters":{marginRight:0,marginLeft:0},".row":{display:"flex",flexWrap:"wrap"},".col":{flexBasis:"0",flexGrow:"1",maxWidth:"100%",padding:"0",position:"relative",width:"100%"},div:{display:"block"},".field-container":{paddingBottom:"14px"},".field-wrapper":{paddingRight:"25px"},".input-wrapper":{position:"relative"},label:{display:"inline-block",marginBottom:"9px",color:"#313131",fontWeight:"300",fontSize:"14px",lineHeight:"17px"},input:{outline:"none",position:"absolute",overflow:"visible",margin:0,fontFamily:"inherit",display:"block",width:"100%",height:"42px",padding:"10px 12px",fontSize:"18px",fontWeight:"400",lineHeight:"22px",color:"#313131",backgroundColor:"#fff",backgroundClip:"padding-box",border:"1px solid #CBCBCB",borderRadius:"3px",transition:"border-color .15s ease-in-out,box-shadow .15s ease-in-out",ontline:"0"},".form-control":{position:"relative"},"input:focus":{border:"1px solid #5D5D5D",backgroundColor:"#FFFDF2"},".is-error input":{border:"1px solid #D9534F"},".is-error input:focus":{backgroundColor:"#D9534F0B"},".is-valid input":{border:"1px solid #1BB43F"},".is-valid input:focus":{backgroundColor:"#1BB43F0B"},".validation-message":{color:"#D9534F",fontSize:"10px",fontStyle:"italic",marginTop:"6px",marginBottom:"-5px",display:"block",lineHeight:"1"},".card-expiration-date":{paddingRight:".5rem"},".is-empty input":{color:"#EBEBEB"},".lock-icon":{top:"calc(50% - 7px)",right:"10px"},".valid-icon":{top:"calc(50% - 8px)",right:"-25px"},".error-icon":{top:"calc(50% - 8px)",right:" -25px"},".card-icon":{top:"calc(50% - 10px)",left:"10px",display:"none"},".is-empty .card-icon":{display:"block"},".is-focused .card-icon":{display:"none"},".card-type-icon":{right:"30px",display:"block"},".card-type-icon.visa":{top:"calc(50% - 14px)"},".card-type-icon.mastercard":{top:"calc(50% - 14.5px)"},".card-type-icon.amex":{top:"calc(50% - 14px)"},".card-type-icon.discover":{top:"calc(50% - 14px)"},".card-type-icon.jcb":{top:"calc(50% - 14px)"},".card-type-icon.dankort":{top:"calc(50% - 14px)"},".card-type-icon.cartebleue":{top:"calc(50% - 14px)"},".card-type-icon.diners":{top:"calc(50% - 14px)"},".card-type-icon.elo":{top:"calc(50% - 14px)"}})),r.component.mount("#card-element"),r.initialData.btnText&&document.getElementById("payment-form").addEventListener("submit",(function(e){return i(r,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return e.preventDefault(),t=document.querySelector("#name").value,[4,this.generateToken(this.jsPaymentClient,this.component,t)];case 1:return n=r.sent(),this.initialData.createToken&&this.initialData.createToken(n),[2]}}))}))}))})),r.renderHtml();var u=(new Date).getTime()-l;null===(a=null===(e=r.initialData)||void 0===e?void 0:e.reportSDKLoading)||void 0===a||a.call(e,{time:u})})),r}return n(t,e),t.prototype.generateToken=function(e,t,n){return i(this,void 0,void 0,(function(){var r,i;return o(this,(function(o){switch(o.label){case 0:this.nameOnblur(),r={name:n},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,e.tokens.generate(t,r)];case 2:return[2,o.sent()];case 3:return i=o.sent(),console.log(i),[2,i];case 4:return[2]}}))}))},t.prototype.getToken=function(e){return i(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return t=e||document.querySelector("#name").value,[4,this.generateToken(this.jsPaymentClient,this.component,t)];case 1:return[2,n.sent()]}}))}))},t.prototype.nameOnblur=function(){var e=document.querySelector("#name-field-wrapper"),t=document.querySelector("#name").value,n=document.querySelector("#name-message");t?(n.style.display="none",e.setAttribute("class","name-field-wrapper is-valid")):(n.style.display="inline-block",e.setAttribute("class","name-field-wrapper is-error"))},t.prototype.renderHtml=function(){var e,t,n,i,o=function(e){var t,n,i,o,l,a,u,c,s,d;return{common:(null==e?void 0:e.commonStyle)||{},form:r({fontFamily:"Helvetica, sans-serif"},(null===(t=null==e?void 0:e.componentStyle)||void 0===t?void 0:t.formStyle)||{}),name:{wrapper:r({paddingBottom:"14px",paddingRight:"25px"},(null===(i=null===(n=null==e?void 0:e.componentStyle)||void 0===n?void 0:n.nameInputStyle)||void 0===i?void 0:i.inputWrapperStyle)||{}),label:r({display:"inline-block",marginBottom:"9px",color:"#313131",fontSize:"14px",fontWeight:"300",lineHeight:"17px"},(null===(l=null===(o=null==e?void 0:e.componentStyle)||void 0===o?void 0:o.nameInputStyle)||void 0===l?void 0:l.labelStyle)||{}),input:r({padding:"10px 12px",outline:"none",margin:0,fontFamily:"inherit",display:"block",width:"100%",height:"42px",fontSize:"18px",fontWeight:"400",lineHeight:"22px",color:"#313131",backgroundClip:"padding-box",borderRadius:"3px",transition:"border-color .15s ease-in-out,box-shadow .15s ease-in-out",ontline:"0"},(null===(u=null===(a=null==e?void 0:e.componentStyle)||void 0===a?void 0:a.nameInputStyle)||void 0===u?void 0:u.inputStyle)||{}),message:r({display:"none",color:"#D9534F",fontSize:"10px",fontStyle:"italic",marginTop:"6px",marginBottom:"-5px",lineHeight:"1"},(null===(s=null===(c=null==e?void 0:e.componentStyle)||void 0===c?void 0:c.nameInputStyle)||void 0===s?void 0:s.messageStyle)||{})},submit:{wrapper:{paddingRight:"25px",width:"100%",textAlign:"center"},button:r({color:"#fff",backgroundColor:"#007bff",borderColor:"#007bff",display:"inline-block",fontWeight:"400",textAlign:"center",verticalAlign:"middle",border:"1px solid transparent",padding:".375rem .75rem",fontSize:"1rem",lineHeight:"1.5",borderRadius:".25rem"},(null===(d=null==e?void 0:e.componentStyle)||void 0===d?void 0:d.btnStyle)||{})}}}(null===(e=this.initialData)||void 0===e?void 0:e.styleOption),l={nameOnblur:this.nameOnblur,nameInputText:null===(n=null===(t=this.initialData)||void 0===t?void 0:t.label)||void 0===n?void 0:n.userNameLabel,submitBtnText:null===(i=this.initialData)||void 0===i?void 0:i.btnText,style:o};this.renderToDom(function(e){return p("div",{className:"two-checkout",style:e.style.common},p("div",{dangerouslySetInnerHTML:{__html:"<style>\n        .two-checkout * {\n          box-sizing: border-box;\n        }\n        .name-input {\n          border: 1px solid #CBCBCB;\n          background-color: #fff,\n        }\n        input:focus {\n          border          : 1px solid #5D5D5D;\n          background-color: #FFFDF2;\n        }\n        \n        .is-error input {\n          border: 1px solid #D9534F;\n        }\n        \n        .is-error input:focus {\n          background-color: #D9534F0B;\n        }\n        \n        .is-valid input {\n          border: 1px solid #1BB43F;\n        }\n        \n        .is-valid input:focus {\n          background-color: #1BB43F0B;\n        }\n                </style>"}}),p("form",{type:"post",id:"payment-form",style:e.style.form},p("div",{className:"twocheckout-group"},(null==e?void 0:e.nameInputText)?p("div",{id:"name-field-wrapper",class:"name-field-wrapper",style:e.style.name.wrapper},p("label",{for:"name",class:"name-label",style:e.style.name.label},null==e?void 0:e.nameInputText),p("input",{type:"text",id:"name",name:"name",class:"name-input",style:e.style.name.input,oninput:function(e){e.target.value=e.target.value.replace(/[1-9]/g,"")},onblur:function(){e.nameOnblur()}}),p("span",{id:"name-message",style:e.style.name.message},"Card holder name is empty.")):null,p("div",{id:"card-element",className:"card-element"}),(null==e?void 0:e.submitBtnText)?p("div",{style:e.style.submit.wrapper},p("button",{className:"twocheckout-btn",style:e.style.submit.button,type:"submit"},null==e?void 0:e.submitBtnText)):null)))}(l),this.initialData.domId)},t}(It),Ot={};Ot[ct("toStringTag")]="z";var Ct="[object z]"===String(Ot),jt=ct("toStringTag"),Dt="Arguments"==R(function(){return arguments}()),At=Ct?R:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),jt))?n:Dt?R(t):"Object"==(r=R(t))&&"function"==typeof t.callee?"Arguments":r},Pt=Ct?{}.toString:function(){return"[object "+At(this)+"]"};Ct||he(Object.prototype,"toString",Pt,{unsafe:!0});var Bt=b.Promise,Ft=N.f,Rt=ct("toStringTag"),Lt=ct("species"),Mt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Wt={},zt=ct("iterator"),$t=Array.prototype,Kt=function(e,t,n){if(Mt(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Ut=ct("iterator"),Ht=function(e,t,n,r){try{return r?t(w(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&w(i.call(e)),t}},Vt=h((function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,n,r,i,o){var l,a,u,c,s,d,p,f,v=Kt(n,r,i?2:1);if(o)l=e;else{if("function"!=typeof(a=function(e){if(null!=e)return e[Ut]||e["@@iterator"]||Wt[At(e)]}(e)))throw TypeError("Target is not iterable");if(void 0!==(f=a)&&(Wt.Array===f||$t[zt]===f)){for(u=0,c=we(e.length);c>u;u++)if((s=i?v(w(p=e[u])[0],p[1]):v(e[u]))&&s instanceof t)return s;return new t(!1)}l=a.call(e)}for(d=l.next;!(p=d.call(l)).done;)if("object"==typeof(s=Ht(l,v,p.value,i))&&s&&s instanceof t)return s;return new t(!1)}).stop=function(e){return new t(!0,e)}})),Gt=ct("iterator"),Xt=!1;try{var Yt=0,qt={next:function(){return{done:!!Yt++}},return:function(){Xt=!0}};qt[Gt]=function(){return this},Array.from(qt,(function(){throw 2}))}catch(e){}var Jt,Qt,Zt,en=ct("species"),tn=function(e,t){var n,r=w(e).constructor;return void 0===r||null==(n=w(r)[en])?t:Mt(n)},nn=ge("document","documentElement"),rn=ge("navigator","userAgent")||"",on=/(iphone|ipod|ipad).*applewebkit/i.test(rn),ln=b.location,an=b.setImmediate,un=b.clearImmediate,cn=b.process,sn=b.MessageChannel,dn=b.Dispatch,pn=0,fn={},vn=function(e){if(fn.hasOwnProperty(e)){var t=fn[e];delete fn[e],t()}},yn=function(e){return function(){vn(e)}},hn=function(e){vn(e.data)},mn=function(e){b.postMessage(e+"",ln.protocol+"//"+ln.host)};an&&un||(an=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return fn[++pn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Jt(pn),pn},un=function(e){delete fn[e]},"process"==R(cn)?Jt=function(e){cn.nextTick(yn(e))}:dn&&dn.now?Jt=function(e){dn.now(yn(e))}:sn&&!on?(Zt=(Qt=new sn).port2,Qt.port1.onmessage=hn,Jt=Kt(Zt.postMessage,Zt,1)):!b.addEventListener||"function"!=typeof postMessage||b.importScripts||f(mn)||"file:"===ln.protocol?Jt="onreadystatechange"in _("script")?function(e){nn.appendChild(_("script")).onreadystatechange=function(){nn.removeChild(this),vn(e)}}:function(e){setTimeout(yn(e),0)}:(Jt=mn,b.addEventListener("message",hn,!1)));var bn,gn,xn,Sn,_n,En,wn,Tn,In={set:an,clear:un},Nn=H.f,kn=In.set,On=b.MutationObserver||b.WebKitMutationObserver,Cn=b.process,jn=b.Promise,Dn="process"==R(Cn),An=Nn(b,"queueMicrotask"),Pn=An&&An.value;Pn||(bn=function(){var e,t;for(Dn&&(e=Cn.domain)&&e.exit();gn;){t=gn.fn,gn=gn.next;try{t()}catch(e){throw gn?Sn():xn=void 0,e}}xn=void 0,e&&e.enter()},Dn?Sn=function(){Cn.nextTick(bn)}:On&&!on?(_n=!0,En=document.createTextNode(""),new On(bn).observe(En,{characterData:!0}),Sn=function(){En.data=_n=!_n}):jn&&jn.resolve?(wn=jn.resolve(void 0),Tn=wn.then,Sn=function(){Tn.call(wn,bn)}):Sn=function(){kn.call(b,bn)});var Bn,Fn,Rn=Pn||function(e){var t={fn:e,next:void 0};xn&&(xn.next=t),gn||(gn=t,Sn()),xn=t},Ln=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Mt(t),this.reject=Mt(n)},Mn={f:function(e){return new Ln(e)}},Wn=function(e,t){if(w(e),g(t)&&t.constructor===e)return t;var n=Mn.f(e);return(0,n.resolve)(t),n.promise},zn=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},$n=b.process,Kn=$n&&$n.versions,Un=Kn&&Kn.v8;Un?Fn=(Bn=Un.split("."))[0]+Bn[1]:rn&&(!(Bn=rn.match(/Edge\/(\d+)/))||Bn[1]>=74)&&(Bn=rn.match(/Chrome\/(\d+)/))&&(Fn=Bn[1]);var Hn,Vn,Gn,Xn,Yn,qn,Jn,Qn=Fn&&+Fn,Zn=In.set,er=ct("species"),tr="Promise",nr=ye.get,rr=ye.set,ir=ye.getterFor(tr),or=Bt,lr=b.TypeError,ar=b.document,ur=b.process,cr=ge("fetch"),sr=Mn.f,dr=sr,pr="process"==R(ur),fr=!!(ar&&ar.createEvent&&b.dispatchEvent),vr=Ke(tr,(function(){if(!(Z(or)!==String(or))){if(66===Qn)return!0;if(!pr&&"function"!=typeof PromiseRejectionEvent)return!0}if(Qn>=51&&/native code/.test(or))return!1;var e=or.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[er]=t,!(e.then((function(){}))instanceof t)})),yr=vr||!function(e,t){if(!t&&!Xt)return!1;var n=!1;try{var r={};r[Gt]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){or.all(e).catch((function(){}))})),hr=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},mr=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Rn((function(){for(var i=t.value,o=1==t.state,l=0;r.length>l;){var a,u,c,s=r[l++],d=o?s.ok:s.fail,p=s.resolve,f=s.reject,v=s.domain;try{d?(o||(2===t.rejection&&Sr(e,t),t.rejection=1),!0===d?a=i:(v&&v.enter(),a=d(i),v&&(v.exit(),c=!0)),a===s.promise?f(lr("Promise-chain cycle")):(u=hr(a))?u.call(a,p,f):p(a)):f(i)}catch(e){v&&!c&&v.exit(),f(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&gr(e,t)}))}},br=function(e,t,n){var r,i;fr?((r=ar.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),b.dispatchEvent(r)):r={promise:t,reason:n},(i=b["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=b.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},gr=function(e,t){Zn.call(b,(function(){var n,r=t.value;if(xr(t)&&(n=zn((function(){pr?ur.emit("unhandledRejection",r,e):br("unhandledrejection",e,r)})),t.rejection=pr||xr(t)?2:1,n.error))throw n.value}))},xr=function(e){return 1!==e.rejection&&!e.parent},Sr=function(e,t){Zn.call(b,(function(){pr?ur.emit("rejectionHandled",e):br("rejectionhandled",e,t.value)}))},_r=function(e,t,n,r){return function(i){e(t,n,i,r)}},Er=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,mr(e,t,!0))},wr=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw lr("Promise can't be resolved itself");var i=hr(n);i?Rn((function(){var r={done:!1};try{i.call(n,_r(wr,e,r,t),_r(Er,e,r,t))}catch(n){Er(e,r,n,t)}})):(t.value=n,t.state=1,mr(e,t,!1))}catch(n){Er(e,{done:!1},n,t)}}};vr&&(or=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,or,tr),Mt(e),Hn.call(this);var t=nr(this);try{e(_r(wr,this,t),_r(Er,this,t))}catch(e){Er(this,t,e)}},(Hn=function(e){rr(this,{type:tr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var r in t)he(e,r,t[r],n);return e}(or.prototype,{then:function(e,t){var n=ir(this),r=sr(tn(this,or));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=pr?ur.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&mr(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Vn=function(){var e=new Hn,t=nr(e);this.promise=e,this.resolve=_r(wr,e,t),this.reject=_r(Er,e,t)},Mn.f=sr=function(e){return e===or||e===Gn?new Vn(e):dr(e)},"function"==typeof Bt&&(Xn=Bt.prototype.then,he(Bt.prototype,"then",(function(e,t){var n=this;return new or((function(e,t){Xn.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof cr&&He({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Wn(or,cr.apply(b,arguments))}}))),He({global:!0,wrap:!0,forced:vr},{Promise:or}),qn=tr,Jn=!1,(Yn=or)&&!K(Yn=Jn?Yn:Yn.prototype,Rt)&&Ft(Yn,Rt,{configurable:!0,value:qn}),function(e){var t=ge(e),n=N.f;v&&t&&!t[Lt]&&n(t,Lt,{configurable:!0,get:function(){return this}})}(tr),Gn=ge(tr),He({target:tr,stat:!0,forced:vr},{reject:function(e){var t=sr(this);return t.reject.call(void 0,e),t.promise}}),He({target:tr,stat:!0,forced:vr},{resolve:function(e){return Wn(this,e)}}),He({target:tr,stat:!0,forced:yr},{all:function(e){var t=this,n=sr(t),r=n.resolve,i=n.reject,o=zn((function(){var n=Mt(t.resolve),o=[],l=0,a=1;Vt(e,(function(e){var u=l++,c=!1;o.push(void 0),a++,n.call(t,e).then((function(e){c||(c=!0,o[u]=e,--a||r(o))}),i)})),--a||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=sr(t),r=n.reject,i=zn((function(){var i=Mt(t.resolve);Vt(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Tr,Ir=Array.isArray||function(e){return"Array"==R(e)},Nr=function(e,t,n){var r=T(t);r in e?N.f(e,r,B(0,n)):e[r]=n},kr=ct("species"),Or=Object.defineProperty,Cr={},jr=function(e){throw e},Dr=(Tr="slice",Qn>=51||!f((function(){var e=[];return(e.constructor={})[kr]=function(){return{foo:1}},1!==e[Tr](Boolean).foo}))),Ar=function(e,t){if(K(Cr,e))return Cr[e];t||(t={});var n=[][e],r=!!K(t,"ACCESSORS")&&t.ACCESSORS,i=K(t,0)?t[0]:jr,o=K(t,1)?t[1]:void 0;return Cr[e]=!!n&&!f((function(){if(r&&!v)return!0;var e={length:-1};r?Or(e,1,{enumerable:!0,get:jr}):e[1]=1,n.call(e,i,o)}))}("slice",{ACCESSORS:!0,0:0,1:2}),Pr=ct("species"),Br=[].slice,Fr=Math.max;He({target:"Array",proto:!0,forced:!Dr||!Ar},{slice:function(e,t){var n,r,i,o=z(this),l=we(o.length),a=Ne(e,l),u=Ne(void 0===t?l:t,l);if(Ir(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Ir(n.prototype)?g(n)&&null===(n=n[Pr])&&(n=void 0):n=void 0,n===Array||void 0===n))return Br.call(o,a,u);for(r=new(void 0===n?Array:n)(Fr(u-a,0)),i=0;a<u;a++,i++)a in o&&Nr(r,i,o[a]);return r.length=i,r}});var Rr,Lr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return w(n),function(e){if(!g(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Mr=function(e,t,n){var r,i;return Lr&&"function"==typeof(r=t.constructor)&&r!==n&&g(i=r.prototype)&&i!==n.prototype&&Lr(e,i),e},Wr=Object.keys||function(e){return Ce(e,je)},zr=v?Object.defineProperties:function(e,t){w(e);for(var n,r=Wr(t),i=r.length,o=0;i>o;)N.f(e,n=r[o++],t[n]);return e},$r=ae("IE_PROTO"),Kr=function(){},Ur=function(e){return"<script>"+e+"<\/script>"},Hr=function(){try{Rr=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Hr=Rr?function(e){e.write(Ur("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Rr):((t=_("iframe")).style.display="none",nn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ur("document.F=Object")),e.close(),e.F);for(var n=je.length;n--;)delete Hr.prototype[je[n]];return Hr()};ue[$r]=!0;var Vr=Object.create||function(e,t){var n;return null!==e?(Kr.prototype=w(e),n=new Kr,Kr.prototype=null,n[$r]=e):n=Hr(),void 0===t?n:zr(n,t)},Gr="[\t\n\v\f\r                　\u2028\u2029\ufeff]",Xr=RegExp("^"+Gr+Gr+"*"),Yr=RegExp(Gr+Gr+"*$"),qr=function(e){return function(t){var n=String(W(t));return 1&e&&(n=n.replace(Xr,"")),2&e&&(n=n.replace(Yr,"")),n}},Jr={start:qr(1),end:qr(2),trim:qr(3)},Qr=Ae.f,Zr=H.f,ei=N.f,ti=Jr.trim,ni=b.Number,ri=ni.prototype,ii="Number"==R(Vr(ri)),oi=function(e){var t,n,r,i,o,l,a,u,c=T(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=ti(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(l=(o=c.slice(2)).length,a=0;a<l;a++)if((u=o.charCodeAt(a))<48||u>i)return NaN;return parseInt(o,r)}return+c};if(Ke("Number",!ni(" 0o1")||!ni("0b1")||ni("+0x1"))){for(var li,ai=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof ai&&(ii?f((function(){ri.valueOf.call(n)})):"Number"!=R(n))?Mr(new ni(oi(t)),n,ai):oi(t)},ui=v?Qr(ni):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),ci=0;ui.length>ci;ci++)K(ni,li=ui[ci])&&!K(ai,li)&&ei(ai,li,Zr(ni,li));ai.prototype=ri,ri.constructor=ai,he(b,"Number",ai)}var si=ct("match"),di=[].push,pi=Math.min,fi=!f((function(){return!RegExp(4294967295,"y")}));ht("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(W(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!function(e){var t;return g(e)&&(void 0!==(t=e[si])?!!t:"RegExp"==R(e))}(e))return t.call(r,e,i);for(var o,l,a,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),s=0,d=new RegExp(e.source,c+"g");(o=rt.call(d,r))&&!((l=d.lastIndex)>s&&(u.push(r.slice(s,o.index)),o.length>1&&o.index<r.length&&di.apply(u,o.slice(1)),a=o[0].length,s=l,u.length>=i));)d.lastIndex===o.index&&d.lastIndex++;return s===r.length?!a&&d.test("")||u.push(""):u.push(r.slice(s)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=W(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var l=w(e),a=String(this),u=tn(l,RegExp),c=l.unicode,s=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(fi?"y":"g"),d=new u(fi?l:"^(?:"+l.source+")",s),p=void 0===i?4294967295:i>>>0;if(0===p)return[];if(0===a.length)return null===xt(d,a)?[a]:[];for(var f=0,v=0,y=[];v<a.length;){d.lastIndex=fi?v:0;var h,m=xt(d,fi?a:a.slice(v));if(null===m||(h=pi(we(d.lastIndex+(fi?0:v)),a.length))===f)v=gt(a,v,c);else{if(y.push(a.slice(f,v)),y.length===p)return y;for(var b=1;b<=m.length-1;b++)if(y.push(m[b]),y.length===p)return y;v=f=h}}return y.push(a.slice(f)),y}]}),!fi);var vi=function(e){function t(t,n){var r=e.call(this)||this;return r.publicKey=t,r.initialData=n,r.userNameErrorTips="",r.cardNumberErrorTips="",r.expirationErrorTips="",r.cvvErrorTips="",r.userName="",r.cardNumber="",r.expiration="",r.cvv="",r.loadEBANXJS(),r.renderHtml(),r}return n(t,e),t.prototype.loadEBANXJS=function(){var e,t,n=this,r=(new Date).getTime();Nt(["https://js.ebanx.com/assets/songbird/songbird-"+(null!==(t=null===(e=this.initialData)||void 0===e?void 0:e.env)&&void 0!==t?t:"dev")+".js","https://js.ebanx.com/ebanx-libjs-latest.min.js"],(function(){var e,t,i,o;console.log("success",EBANX),EBANX.config.setMode("prod"===(null===(e=n.initialData)||void 0===e?void 0:e.env)?"production":"test"),EBANX.config.setPublishableKey(n.publicKey.key),EBANX.config.setCountry((null===(t=n.initialData)||void 0===t?void 0:t.country)||"br");var l=(new Date).getTime()-r;null===(o=null===(i=n.initialData)||void 0===i?void 0:i.reportSDKLoading)||void 0===o||o.call(i,{time:l})}))},t.prototype.renderHtml=function(){var e,t,n,i,o=function(e){null==e||e.commonStyle;var t=null==e?void 0:e.componentStyle,n=null==t?void 0:t.formStyle,i=null==t?void 0:t.nameInputStyle,o=null==t?void 0:t.cardInputStyle,l=null==t?void 0:t.expirationInputStyle,a=null==t?void 0:t.cvvInputStyle,u=null==t?void 0:t.btnStyle;return{ebanx_payment_form:r({width:"100%"},n||{}),ebanx_nameInputStyle_inputWrapperStyle:r({width:"100%",margin:"10px 0"},(null==i?void 0:i.inputWrapperStyle)||{}),ebanx_nameInputStyle_labelStyle:r({display:"block",fontWeight:400,fontSize:"15px",marginBottom:"8px"},(null==i?void 0:i.labelStyle)||{}),ebanx_nameInputStyle_inputStyle:r({width:"100%",padding:"18px 15px",borderRadius:"6px",color:"#000000",background:"#F3F3F3",border:"0px",fontSize:"16px",outline:"none"},(null==i?void 0:i.inputStyle)||{}),ebanx_nameInputStyle_messageStyle:{},ebanx_cardInputStyle_inputWrapperStyle:r({width:"100%",margin:"10px 0"},(null==o?void 0:o.inputWrapperStyle)||{}),ebanx_cardInputStyle_labelStyle:r({display:"block",fontWeight:400,fontSize:"15px",marginBottom:"8px"},(null==o?void 0:o.labelStyle)||{}),ebanx_cardInputStyle_inputStyle:r({width:"100%",padding:"18px 15px",borderRadius:"6px",color:"#000000",background:"#F3F3F3",border:"0px",fontSize:"16px",outline:"none"},(null==o?void 0:o.inputStyle)||{}),ebanx_cardInputStyle_messageStyle:{},ebanx_flex_style:{display:"flex",justifyContent:"space-between",alignItems:"center"},ebanx_expirationInputStyle_inputWrapperStyle:r({width:"48%",margin:"10px 0"},(null==l?void 0:l.inputWrapperStyle)||{}),ebanx_expirationInputStyle_labelStyle:r({display:"block",fontWeight:400,fontSize:"15px",marginBottom:"8px"},(null==l?void 0:l.labelStyle)||{}),ebanx_expirationInputStyle_inputStyle:r({width:"100%",padding:"18px 15px",borderRadius:"6px",color:"#000000",background:"#F3F3F3",border:"0px",fontSize:"16px",outline:"none"},(null==l?void 0:l.inputStyle)||{}),ebanx_expirationInputStyle_messageStyle:{},ebanx_cvvInputStyle_inputWrapperStyle:r({width:"48%",margin:"10px 0"},(null==a?void 0:a.inputWrapperStyle)||{}),ebanx_cvvInputStyle_labelStyle:r({display:"block",fontWeight:400,fontSize:"15px",marginBottom:"8px"},(null==a?void 0:a.labelStyle)||{}),ebanx_cvvInputStyle_inputStyle:r({width:"100%",padding:"18px 15px",borderRadius:"6px",color:"#000000",background:"#F3F3F3",border:"0px",fontSize:"16px",outline:"none"},(null==a?void 0:a.inputStyle)||{}),ebanx_cvvInputStyle_messageStyle:{},ebanx_error_tips:r(r(r(r({marginTop:"-10px",lineHeight:"18px",minHeight:"20px",color:"red"},(null==i?void 0:i.messageStyle)||{}),(null==o?void 0:o.inputStyle)||{}),(null==l?void 0:l.inputStyle)||{}),(null==a?void 0:a.inputStyle)||{}),ebanx_submit_btn:r({width:"100%",color:"#ffffff",padding:"15px",fontSize:"16px",opacity:1,background:(null==u?void 0:u.disableBackground)||(null==u?void 0:u.background)||"#dddddd",outline:"none",border:"0px",borderRadius:"6px"},u)}}(null===(e=this.initialData)||void 0===e?void 0:e.styleOption);this.renderToDom(function(e){var t,n,r,i,o,l,a,u,c,s,d,f,v,y,h,m,b,g,x,S,_,E,w,T,I,N,k,O,C,j,D,A;return p("div",{className:"ebanx_payment_form",style:e.styleOption.ebanx_payment_form},p("div",{calssName:"ebanx_nameInputStyle_inputWrapperStyle",style:e.styleOption.ebanx_nameInputStyle_inputWrapperStyle},(null===(t=null==e?void 0:e.label)||void 0===t?void 0:t.userNameLabel)&&p("label",{for:"ebanx_user_name",className:"ebanx_nameInputStyle_labelStyle",style:null===(n=e.styleOption)||void 0===n?void 0:n.ebanx_nameInputStyle_labelStyle},null!==(i=null===(r=null==e?void 0:e.label)||void 0===r?void 0:r.userNameLabel)&&void 0!==i?i:"User Name"),p("input",{placeholder:""+(null!==(l=null===(o=null==e?void 0:e.placeholder)||void 0===o?void 0:o.userNamePlaceholder)&&void 0!==l?l:"User Name"),type:"text",id:"ebanx_user_name",className:"ebanx_nameInputStyle_inputStyle",style:null===(a=e.styleOption)||void 0===a?void 0:a.ebanx_nameInputStyle_inputStyle,onkeyup:function(t){e.changeUserName(t)}})),p("div",{className:"ebanx_cardInputStyle_inputWrapperStyle",style:e.styleOption.ebanx_cardInputStyle_inputWrapperStyle},(null===(u=null==e?void 0:e.label)||void 0===u?void 0:u.cardNumberLabel)&&p("label",{for:"ebanx_card_number",className:"ebanx_cardInputStyle_labelStyle",style:null===(c=e.styleOption)||void 0===c?void 0:c.ebanx_cardInputStyle_labelStyle},null!==(d=null===(s=null==e?void 0:e.label)||void 0===s?void 0:s.cardNumberLabel)&&void 0!==d?d:"Card Number"),p("div",null,p("input",{placeholder:""+(null!==(v=null===(f=null==e?void 0:e.placeholder)||void 0===f?void 0:f.cardNumberPlaceholder)&&void 0!==v?v:"Card Number"),type:"number",id:"ebanx_card_number",className:"ebanx_cardInputStyle_inputStyle",style:null===(y=e.styleOption)||void 0===y?void 0:y.ebanx_cardInputStyle_inputStyle,onkeyup:function(t){e.changeCardNumber(t)}}))),p("div",{className:"ebanx_flex_style",style:e.styleOption.ebanx_flex_style},p("div",{className:"ebanx_expirationInputStyle_inputWrapperStyle",style:e.styleOption.ebanx_expirationInputStyle_inputWrapperStyle},(null===(h=null==e?void 0:e.label)||void 0===h?void 0:h.expirationLabel)&&p("label",{for:"ebanx_card_due_date",className:"ebanx_expirationInputStyle_labelStyle",style:null===(m=e.styleOption)||void 0===m?void 0:m.ebanx_expirationInputStyle_labelStyle},null!==(g=null===(b=null==e?void 0:e.label)||void 0===b?void 0:b.expirationLabel)&&void 0!==g?g:"Card Due Date"),p("input",{placeholder:(null!==(S=null===(x=null==e?void 0:e.placeholder)||void 0===x?void 0:x.expiryMonthPlaceholder)&&void 0!==S?S:"MM")+"/"+(null!==(E=null===(_=null==e?void 0:e.placeholder)||void 0===_?void 0:_.expiryYearPlaceholder)&&void 0!==E?E:"YYYY"),type:"text",id:"ebanx_card_due_date",className:"ebanx_expirationInputStyle_inputStyle",style:null===(w=e.styleOption)||void 0===w?void 0:w.ebanx_expirationInputStyle_inputStyle,onblur:function(t){e.changeExpiration(t)},onkeyup:function(t){var n,r,i;t.target.value=null===(i=null===(r=null===(n=t.target.value)||void 0===n?void 0:n.replace(/\D/g,""))||void 0===r?void 0:r.slice(0,6))||void 0===i?void 0:i.replace(/^(\d{2})\/?(\d{0,})$/,(function(e,t,n){return""+t+(n?"/"+n:n)})),e.changeExpiration(t)}})),p("div",{className:"ebanx_cvvInputStyle_inputWrapperStyle",style:e.styleOption.ebanx_cvvInputStyle_inputWrapperStyle},(null===(T=null==e?void 0:e.label)||void 0===T?void 0:T.cvvLabel)&&p("label",{for:"ebanx_card_cvv",className:"ebanx_cvvInputStyle_labelStyle",style:null===(I=e.styleOption)||void 0===I?void 0:I.ebanx_cvvInputStyle_labelStyle},null!==(k=null===(N=null==e?void 0:e.label)||void 0===N?void 0:N.cvvLabel)&&void 0!==k?k:"Card Cvv"),p("input",{placeholder:""+(null!==(C=null===(O=null==e?void 0:e.placeholder)||void 0===O?void 0:O.cvvPlaceholder)&&void 0!==C?C:"Cvv"),type:"number",id:"ebanx_card_cvv",className:"ebanx_cvvInputStyle_inputStyle",style:null===(j=e.styleOption)||void 0===j?void 0:j.ebanx_cvvInputStyle_inputStyle,onkeyup:function(t){e.changeCVV(t)}}))),p("div",{id:"ebanx_error_tips",className:"ebanx_error_tips",style:e.styleOption.ebanx_error_tips}),(null==e?void 0:e.btnText)&&p("button",{type:"submit",id:"ebanx_submit_btn",className:"ebanx_submit_btn",style:null===(D=e.styleOption)||void 0===D?void 0:D.ebanx_submit_btn,disabled:!0,onClick:function(t){null==e||e.submit(t)}},null!==(A=null==e?void 0:e.btnText)&&void 0!==A?A:"OK"))}({submit:this.submit.bind(this),changeUserName:this.changeUserName.bind(this),changeCardNumber:this.changeCardNumber.bind(this),changeExpiration:this.changeExpiration.bind(this),changeCVV:this.changeCVV.bind(this),label:null===(t=this.initialData)||void 0===t?void 0:t.label,placeholder:null===(n=this.initialData)||void 0===n?void 0:n.placeholder,btnText:null===(i=this.initialData)||void 0===i?void 0:i.btnText,styleOption:o}),this.initialData.domId)},t.prototype.fieldValidtionChange=function(e){var t,n;e.message||(this.userNameErrorTips&&(e.message=this.userNameErrorTips,e.param="username"),this.cardNumberErrorTips&&(e.message=this.cardNumberErrorTips,e.param="cardnumber"),this.expirationErrorTips&&(e.message=this.expirationErrorTips,e.param="expiration"),this.cvvErrorTips&&(e.message=this.cvvErrorTips,e.param="cvv")),document.getElementById("ebanx_error_tips").innerText=e.message,null===(n=null===(t=this.initialData)||void 0===t?void 0:t.fieldValidtionChange)||void 0===n||n.call(t,e),this.fieldComplete()},t.prototype.fieldComplete=function(){var e,t,n,r,i,o,l,a,u,c,s=document.getElementById("ebanx_submit_btn");!this.userNameErrorTips&&!this.cardNumberErrorTips&&!this.expirationErrorTips&&!this.cvvErrorTips&&this.userName&&this.cardNumber&&this.expiration&&this.cvv?(console.log("表单填写完成"),s.removeAttribute("disabled"),s.style.background=(null===(r=null===(n=null===(t=null===(e=this.initialData)||void 0===e?void 0:e.styleOption)||void 0===t?void 0:t.componentStyle)||void 0===n?void 0:n.btnStyle)||void 0===r?void 0:r.normalBackground)||"#ffc102",null===(o=null===(i=this.initialData)||void 0===i?void 0:i.fieldComplete)||void 0===o||o.call(i,{userName:this.userName,cardNumber:this.cardNumber,expiration:this.expiration,cvv:this.cvv})):(console.log("表单没填写完成"),s.setAttribute("disabled","disabled"),s.style.background=(null===(c=null===(u=null===(a=null===(l=this.initialData)||void 0===l?void 0:l.styleOption)||void 0===a?void 0:a.componentStyle)||void 0===u?void 0:u.btnStyle)||void 0===c?void 0:c.disableBackground)||"#dddddd")},t.prototype.changeUserName=function(e){var t,n,r;this.userName=e.target.value,r=this.userName,/^[\s\S]{2,50}$/.test(r)?this.userNameErrorTips="":this.userNameErrorTips=(null===(n=null===(t=this.initialData)||void 0===t?void 0:t.errorTips)||void 0===n?void 0:n.userNameErrorTips)||"The username is incorrect.",this.fieldValidtionChange({message:this.userNameErrorTips,param:"username"})},t.prototype.changeCardNumber=function(e,t){var n,r;return i(this,void 0,void 0,(function(){return o(this,(function(i){return this.cardNumber=e.target.value,t&&this.cardNumber.length!==t||(o=this.cardNumber,/^\d{12,19}$/.test(o)?this.cardNumberErrorTips="":this.cardNumberErrorTips=(null===(r=null===(n=this.initialData)||void 0===n?void 0:n.errorTips)||void 0===r?void 0:r.cardNumberErrorTips)||"The card number is incorrect.",this.fieldValidtionChange({message:this.cardNumberErrorTips,param:"cardnumber"})),[2];var o}))}))},t.prototype.changeExpiration=function(e){var t,n,r,i,o,l,a,u,c;this.expiration=e.target.value,r=this.expiration,i=new Date,o=i.getFullYear(),l=i.getMonth()+1,a=r.split("/"),u=Number(a[1]),c=Number(a[0]),this.expirationErrorTips=c<1||c>12||!(o<u||o===u&&l<=c)?(null===(n=null===(t=this.initialData)||void 0===t?void 0:t.errorTips)||void 0===n?void 0:n.expirationErrorTips)||"The card’s expiration date is incorrect.":"",this.fieldValidtionChange({message:this.expirationErrorTips,param:"expiration"})},t.prototype.changeCVV=function(e){var t,n,r;this.cvv=e.target.value,r=this.cvv,/^\d{3,4}$/.test(r)?this.cvvErrorTips="":this.cvvErrorTips=(null===(n=null===(t=this.initialData)||void 0===t?void 0:t.errorTips)||void 0===n?void 0:n.cvvErrorTips)||"The card’s security code is incorrect.",this.fieldValidtionChange({message:this.cvvErrorTips,param:"cvv"})},t.prototype.submit=function(e){var t=this,n=document.getElementById("ebanx_submit_btn");n.setAttribute("disabled","disabled"),EBANX.card.createToken({card_number:document.getElementById("ebanx_card_number").value,card_name:document.getElementById("ebanx_user_name").value,card_due_date:document.getElementById("ebanx_card_due_date").value,card_cvv:document.getElementById("ebanx_card_cvv").value},(function(e){var r,i,o,l,a,u,c;if(n.removeAttribute("disabled"),null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.hasOwnProperty("status"));else{var s=(null===(o=null===(i=null==e?void 0:e.error)||void 0===i?void 0:i.err)||void 0===o?void 0:o.status_message)||(null===(a=null===(l=null==e?void 0:e.error)||void 0===l?void 0:l.err)||void 0===a?void 0:a.message)||"";document.getElementById("ebanx_error_tips").textContent=s}null===(c=null===(u=t.initialData)||void 0===u?void 0:u.createToken)||void 0===c||c.call(u,e)}))},t.prototype.getToken=function(){return i(this,void 0,void 0,(function(){return o(this,(function(e){return console.log("getToken"),[2,new Promise((function(e,t){EBANX.card.createToken({card_number:document.getElementById("ebanx_card_number").value,card_name:document.getElementById("ebanx_user_name").value,card_due_date:document.getElementById("ebanx_card_due_date").value,card_cvv:document.getElementById("ebanx_card_cvv").value},(function(n){var r,i,o,l,a;if(null===(r=null==n?void 0:n.data)||void 0===r?void 0:r.hasOwnProperty("status"))e(n);else{var u=(null===(o=null===(i=null==n?void 0:n.error)||void 0===i?void 0:i.err)||void 0===o?void 0:o.status_message)||(null===(a=null===(l=null==n?void 0:n.error)||void 0===l?void 0:l.err)||void 0===a?void 0:a.message)||"";document.getElementById("ebanx_error_tips").textContent=u,t(n)}}))}))]}))}))},t}(It),yi=function(){function e(e,t){this.publicKey=e,this.initialData=t,this.initSDK()}return e.prototype.checkKey=function(e){return!0},e.prototype.getToken=function(e){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.sdk.getToken(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.initSDK=function(){return i(this,void 0,void 0,(function(){return o(this,(function(e){if(!this.checkKey(this.publicKey))return[2];switch(this.initialData.sdkName){case"2checkout":this.sdk=new kt(this.publicKey,this.initialData);break;case"ebanx":this.sdk=new vi(this.publicKey,this.initialData)}return[2]}))}))},e}();e.Ebanx=vi,e.TwoCheckOut=kt,e.default=yi,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=index.js.map
