ioka-widget
Version:
IOKA Payment form
8 lines • 188 kB
JavaScript
!function(n){var e={};function r(t){if(e[t])return e[t].exports;var o=e[t]={i:t,l:!1,exports:{}};return n[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=n,r.c=e,r.d=function(n,e,t){r.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:t})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,e){if(1&e&&(n=r(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)r.d(t,o,function(e){return n[e]}.bind(null,o));return t},r.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(e,"a",e),e},r.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},r.p="/",r(r.s=2)}([function(n,e,r){"use strict";(function(n){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var t=r(6),o=r(7),i=r(8);function u(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(n,e){if(u()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e)).__proto__=c.prototype:(null===n&&(n=new c(e)),n.length=e),n}function c(n,e,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(n,e,r);if("number"==typeof n){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,n)}return s(this,n,e,r)}function s(n,e,r,t){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(n,e,r,t){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(t||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===t?new Uint8Array(e):void 0===t?new Uint8Array(e,r):new Uint8Array(e,r,t);c.TYPED_ARRAY_SUPPORT?(n=e).__proto__=c.prototype:n=l(n,e);return n}(n,e,r,t):"string"==typeof e?function(n,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var t=0|w(e,r),o=(n=a(n,t)).write(e,r);o!==t&&(n=n.slice(0,o));return n}(n,e,r):function(n,e){if(c.isBuffer(e)){var r=0|h(e.length);return 0===(n=a(n,r)).length||e.copy(n,0,0,r),n}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(t=e.length)!=t?a(n,0):l(n,e);if("Buffer"===e.type&&i(e.data))return l(n,e.data)}var t;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(n,e)}function f(n){if("number"!=typeof n)throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function d(n,e){if(f(e),n=a(n,e<0?0:0|h(e)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)n[r]=0;return n}function l(n,e){var r=e.length<0?0:0|h(e.length);n=a(n,r);for(var t=0;t<r;t+=1)n[t]=255&e[t];return n}function h(n){if(n>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|n}function w(n,e){if(c.isBuffer(n))return n.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;"string"!=typeof n&&(n=""+n);var r=n.length;if(0===r)return 0;for(var t=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(n).length;default:if(t)return L(n).length;e=(""+e).toLowerCase(),t=!0}}function p(n,e,r){var t=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return R(this,e,r);case"utf8":case"utf-8":return S(this,e,r);case"ascii":return A(this,e,r);case"latin1":case"binary":return W(this,e,r);case"base64":return O(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,r);default:if(t)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),t=!0}}function v(n,e,r){var t=n[e];n[e]=n[r],n[r]=t}function m(n,e,r,t,o){if(0===n.length)return-1;if("string"==typeof r?(t=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:n.length-1),r<0&&(r=n.length+r),r>=n.length){if(o)return-1;r=n.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=c.from(e,t)),c.isBuffer(e))return 0===e.length?-1:y(n,e,r,t,o);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(n,e,r):Uint8Array.prototype.lastIndexOf.call(n,e,r):y(n,[e],r,t,o);throw new TypeError("val must be string, number or Buffer")}function y(n,e,r,t,o){var i,u=1,a=n.length,c=e.length;if(void 0!==t&&("ucs2"===(t=String(t).toLowerCase())||"ucs-2"===t||"utf16le"===t||"utf-16le"===t)){if(n.length<2||e.length<2)return-1;u=2,a/=2,c/=2,r/=2}function s(n,e){return 1===u?n[e]:n.readUInt16BE(e*u)}if(o){var f=-1;for(i=r;i<a;i++)if(s(n,i)===s(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===c)return f*u}else-1!==f&&(i-=i-f),f=-1}else for(r+c>a&&(r=a-c),i=r;i>=0;i--){for(var d=!0,l=0;l<c;l++)if(s(n,i+l)!==s(e,l)){d=!1;break}if(d)return i}return-1}function g(n,e,r,t){r=Number(r)||0;var o=n.length-r;t?(t=Number(t))>o&&(t=o):t=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");t>i/2&&(t=i/2);for(var u=0;u<t;++u){var a=parseInt(e.substr(2*u,2),16);if(isNaN(a))return u;n[r+u]=a}return u}function E(n,e,r,t){return B(L(e,n.length-r),n,r,t)}function b(n,e,r,t){return B(function(n){for(var e=[],r=0;r<n.length;++r)e.push(255&n.charCodeAt(r));return e}(e),n,r,t)}function _(n,e,r,t){return b(n,e,r,t)}function P(n,e,r,t){return B(U(e),n,r,t)}function x(n,e,r,t){return B(function(n,e){for(var r,t,o,i=[],u=0;u<n.length&&!((e-=2)<0);++u)r=n.charCodeAt(u),t=r>>8,o=r%256,i.push(o),i.push(t);return i}(e,n.length-r),n,r,t)}function O(n,e,r){return 0===e&&r===n.length?t.fromByteArray(n):t.fromByteArray(n.slice(e,r))}function S(n,e,r){r=Math.min(n.length,r);for(var t=[],o=e;o<r;){var i,u,a,c,s=n[o],f=null,d=s>239?4:s>223?3:s>191?2:1;if(o+d<=r)switch(d){case 1:s<128&&(f=s);break;case 2:128==(192&(i=n[o+1]))&&(c=(31&s)<<6|63&i)>127&&(f=c);break;case 3:i=n[o+1],u=n[o+2],128==(192&i)&&128==(192&u)&&(c=(15&s)<<12|(63&i)<<6|63&u)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:i=n[o+1],u=n[o+2],a=n[o+3],128==(192&i)&&128==(192&u)&&128==(192&a)&&(c=(15&s)<<18|(63&i)<<12|(63&u)<<6|63&a)>65535&&c<1114112&&(f=c)}null===f?(f=65533,d=1):f>65535&&(f-=65536,t.push(f>>>10&1023|55296),f=56320|1023&f),t.push(f),o+=d}return function(n){var e=n.length;if(e<=4096)return String.fromCharCode.apply(String,n);var r="",t=0;for(;t<e;)r+=String.fromCharCode.apply(String,n.slice(t,t+=4096));return r}(t)}e.Buffer=c,e.SlowBuffer=function(n){+n!=n&&(n=0);return c.alloc(+n)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:function(){try{var n=new Uint8Array(1);return n.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===n.foo()&&"function"==typeof n.subarray&&0===n.subarray(1,1).byteLength}catch(n){return!1}}(),e.kMaxLength=u(),c.poolSize=8192,c._augment=function(n){return n.__proto__=c.prototype,n},c.from=function(n,e,r){return s(null,n,e,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(n,e,r){return function(n,e,r,t){return f(e),e<=0?a(n,e):void 0!==r?"string"==typeof t?a(n,e).fill(r,t):a(n,e).fill(r):a(n,e)}(null,n,e,r)},c.allocUnsafe=function(n){return d(null,n)},c.allocUnsafeSlow=function(n){return d(null,n)},c.isBuffer=function(n){return!(null==n||!n._isBuffer)},c.compare=function(n,e){if(!c.isBuffer(n)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(n===e)return 0;for(var r=n.length,t=e.length,o=0,i=Math.min(r,t);o<i;++o)if(n[o]!==e[o]){r=n[o],t=e[o];break}return r<t?-1:t<r?1:0},c.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(n,e){if(!i(n))throw new TypeError('"list" argument must be an Array of Buffers');if(0===n.length)return c.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<n.length;++r)e+=n[r].length;var t=c.allocUnsafe(e),o=0;for(r=0;r<n.length;++r){var u=n[r];if(!c.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(t,o),o+=u.length}return t},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<n;e+=2)v(this,e,e+1);return this},c.prototype.swap32=function(){var n=this.length;if(n%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<n;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},c.prototype.swap64=function(){var n=this.length;if(n%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<n;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},c.prototype.toString=function(){var n=0|this.length;return 0===n?"":0===arguments.length?S(this,0,n):p.apply(this,arguments)},c.prototype.equals=function(n){if(!c.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n||0===c.compare(this,n)},c.prototype.inspect=function(){var n="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(n+=" ... ")),"<Buffer "+n+">"},c.prototype.compare=function(n,e,r,t,o){if(!c.isBuffer(n))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=n?n.length:0),void 0===t&&(t=0),void 0===o&&(o=this.length),e<0||r>n.length||t<0||o>this.length)throw new RangeError("out of range index");if(t>=o&&e>=r)return 0;if(t>=o)return-1;if(e>=r)return 1;if(this===n)return 0;for(var i=(o>>>=0)-(t>>>=0),u=(r>>>=0)-(e>>>=0),a=Math.min(i,u),s=this.slice(t,o),f=n.slice(e,r),d=0;d<a;++d)if(s[d]!==f[d]){i=s[d],u=f[d];break}return i<u?-1:u<i?1:0},c.prototype.includes=function(n,e,r){return-1!==this.indexOf(n,e,r)},c.prototype.indexOf=function(n,e,r){return m(this,n,e,r,!0)},c.prototype.lastIndexOf=function(n,e,r){return m(this,n,e,r,!1)},c.prototype.write=function(n,e,r,t){if(void 0===e)t="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)t=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===t&&(t="utf8")):(t=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),n.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var i=!1;;)switch(t){case"hex":return g(this,n,e,r);case"utf8":case"utf-8":return E(this,n,e,r);case"ascii":return b(this,n,e,r);case"latin1":case"binary":return _(this,n,e,r);case"base64":return P(this,n,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,n,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(n,e,r){var t="";r=Math.min(n.length,r);for(var o=e;o<r;++o)t+=String.fromCharCode(127&n[o]);return t}function W(n,e,r){var t="";r=Math.min(n.length,r);for(var o=e;o<r;++o)t+=String.fromCharCode(n[o]);return t}function R(n,e,r){var t=n.length;(!e||e<0)&&(e=0),(!r||r<0||r>t)&&(r=t);for(var o="",i=e;i<r;++i)o+=F(n[i]);return o}function C(n,e,r){for(var t=n.slice(e,r),o="",i=0;i<t.length;i+=2)o+=String.fromCharCode(t[i]+256*t[i+1]);return o}function D(n,e,r){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+e>r)throw new RangeError("Trying to access beyond buffer length")}function T(n,e,r,t,o,i){if(!c.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+t>n.length)throw new RangeError("Index out of range")}function j(n,e,r,t){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(n.length-r,2);o<i;++o)n[r+o]=(e&255<<8*(t?o:1-o))>>>8*(t?o:1-o)}function k(n,e,r,t){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(n.length-r,4);o<i;++o)n[r+o]=e>>>8*(t?o:3-o)&255}function I(n,e,r,t,o,i){if(r+t>n.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function z(n,e,r,t,i){return i||I(n,0,r,4),o.write(n,e,r,t,23,4),r+4}function N(n,e,r,t,i){return i||I(n,0,r,8),o.write(n,e,r,t,52,8),r+8}c.prototype.slice=function(n,e){var r,t=this.length;if((n=~~n)<0?(n+=t)<0&&(n=0):n>t&&(n=t),(e=void 0===e?t:~~e)<0?(e+=t)<0&&(e=0):e>t&&(e=t),e<n&&(e=n),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(n,e)).__proto__=c.prototype;else{var o=e-n;r=new c(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+n]}return r},c.prototype.readUIntLE=function(n,e,r){n|=0,e|=0,r||D(n,e,this.length);for(var t=this[n],o=1,i=0;++i<e&&(o*=256);)t+=this[n+i]*o;return t},c.prototype.readUIntBE=function(n,e,r){n|=0,e|=0,r||D(n,e,this.length);for(var t=this[n+--e],o=1;e>0&&(o*=256);)t+=this[n+--e]*o;return t},c.prototype.readUInt8=function(n,e){return e||D(n,1,this.length),this[n]},c.prototype.readUInt16LE=function(n,e){return e||D(n,2,this.length),this[n]|this[n+1]<<8},c.prototype.readUInt16BE=function(n,e){return e||D(n,2,this.length),this[n]<<8|this[n+1]},c.prototype.readUInt32LE=function(n,e){return e||D(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},c.prototype.readUInt32BE=function(n,e){return e||D(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},c.prototype.readIntLE=function(n,e,r){n|=0,e|=0,r||D(n,e,this.length);for(var t=this[n],o=1,i=0;++i<e&&(o*=256);)t+=this[n+i]*o;return t>=(o*=128)&&(t-=Math.pow(2,8*e)),t},c.prototype.readIntBE=function(n,e,r){n|=0,e|=0,r||D(n,e,this.length);for(var t=e,o=1,i=this[n+--t];t>0&&(o*=256);)i+=this[n+--t]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(n,e){return e||D(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},c.prototype.readInt16LE=function(n,e){e||D(n,2,this.length);var r=this[n]|this[n+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(n,e){e||D(n,2,this.length);var r=this[n+1]|this[n]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(n,e){return e||D(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},c.prototype.readInt32BE=function(n,e){return e||D(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},c.prototype.readFloatLE=function(n,e){return e||D(n,4,this.length),o.read(this,n,!0,23,4)},c.prototype.readFloatBE=function(n,e){return e||D(n,4,this.length),o.read(this,n,!1,23,4)},c.prototype.readDoubleLE=function(n,e){return e||D(n,8,this.length),o.read(this,n,!0,52,8)},c.prototype.readDoubleBE=function(n,e){return e||D(n,8,this.length),o.read(this,n,!1,52,8)},c.prototype.writeUIntLE=function(n,e,r,t){(n=+n,e|=0,r|=0,t)||T(this,n,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&n;++i<r&&(o*=256);)this[e+i]=n/o&255;return e+r},c.prototype.writeUIntBE=function(n,e,r,t){(n=+n,e|=0,r|=0,t)||T(this,n,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&n;--o>=0&&(i*=256);)this[e+o]=n/i&255;return e+r},c.prototype.writeUInt8=function(n,e,r){return n=+n,e|=0,r||T(this,n,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[e]=255&n,e+1},c.prototype.writeUInt16LE=function(n,e,r){return n=+n,e|=0,r||T(this,n,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8):j(this,n,e,!0),e+2},c.prototype.writeUInt16BE=function(n,e,r){return n=+n,e|=0,r||T(this,n,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=255&n):j(this,n,e,!1),e+2},c.prototype.writeUInt32LE=function(n,e,r){return n=+n,e|=0,r||T(this,n,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=n>>>24,this[e+2]=n>>>16,this[e+1]=n>>>8,this[e]=255&n):k(this,n,e,!0),e+4},c.prototype.writeUInt32BE=function(n,e,r){return n=+n,e|=0,r||T(this,n,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=255&n):k(this,n,e,!1),e+4},c.prototype.writeIntLE=function(n,e,r,t){if(n=+n,e|=0,!t){var o=Math.pow(2,8*r-1);T(this,n,e,r,o-1,-o)}var i=0,u=1,a=0;for(this[e]=255&n;++i<r&&(u*=256);)n<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(n/u>>0)-a&255;return e+r},c.prototype.writeIntBE=function(n,e,r,t){if(n=+n,e|=0,!t){var o=Math.pow(2,8*r-1);T(this,n,e,r,o-1,-o)}var i=r-1,u=1,a=0;for(this[e+i]=255&n;--i>=0&&(u*=256);)n<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(n/u>>0)-a&255;return e+r},c.prototype.writeInt8=function(n,e,r){return n=+n,e|=0,r||T(this,n,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[e]=255&n,e+1},c.prototype.writeInt16LE=function(n,e,r){return n=+n,e|=0,r||T(this,n,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8):j(this,n,e,!0),e+2},c.prototype.writeInt16BE=function(n,e,r){return n=+n,e|=0,r||T(this,n,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=255&n):j(this,n,e,!1),e+2},c.prototype.writeInt32LE=function(n,e,r){return n=+n,e|=0,r||T(this,n,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8,this[e+2]=n>>>16,this[e+3]=n>>>24):k(this,n,e,!0),e+4},c.prototype.writeInt32BE=function(n,e,r){return n=+n,e|=0,r||T(this,n,e,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),c.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=255&n):k(this,n,e,!1),e+4},c.prototype.writeFloatLE=function(n,e,r){return z(this,n,e,!0,r)},c.prototype.writeFloatBE=function(n,e,r){return z(this,n,e,!1,r)},c.prototype.writeDoubleLE=function(n,e,r){return N(this,n,e,!0,r)},c.prototype.writeDoubleBE=function(n,e,r){return N(this,n,e,!1,r)},c.prototype.copy=function(n,e,r,t){if(r||(r=0),t||0===t||(t=this.length),e>=n.length&&(e=n.length),e||(e=0),t>0&&t<r&&(t=r),t===r)return 0;if(0===n.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),n.length-e<t-r&&(t=n.length-e+r);var o,i=t-r;if(this===n&&r<e&&e<t)for(o=i-1;o>=0;--o)n[o+e]=this[o+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)n[o+e]=this[o+r];else Uint8Array.prototype.set.call(n,this.subarray(r,r+i),e);return i},c.prototype.fill=function(n,e,r,t){if("string"==typeof n){if("string"==typeof e?(t=e,e=0,r=this.length):"string"==typeof r&&(t=r,r=this.length),1===n.length){var o=n.charCodeAt(0);o<256&&(n=o)}if(void 0!==t&&"string"!=typeof t)throw new TypeError("encoding must be a string");if("string"==typeof t&&!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else"number"==typeof n&&(n&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,n||(n=0),"number"==typeof n)for(i=e;i<r;++i)this[i]=n;else{var u=c.isBuffer(n)?n:L(new c(n,t).toString()),a=u.length;for(i=0;i<r-e;++i)this[i+e]=u[i%a]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function F(n){return n<16?"0"+n.toString(16):n.toString(16)}function L(n,e){var r;e=e||1/0;for(var t=n.length,o=null,i=[],u=0;u<t;++u){if((r=n.charCodeAt(u))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===t){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function U(n){return t.toByteArray(function(n){if((n=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(n).replace(M,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function B(n,e,r,t){for(var o=0;o<t&&!(o+r>=e.length||o>=n.length);++o)e[o+r]=n[o];return o}}).call(this,r(5))},function(n,e,r){(function(e){e&&e.env&&e.env.ZOID_FRAME_ONLY?(n.exports=r(4),n.exports.default=n.exports):(n.exports=r(9),n.exports.default=n.exports)}).call(this,r(3))},function(n,e,r){"use strict";r.r(e),r.d(e,"IokaWidget",(function(){return i}));var t=r(1),o=r.n(t);class i{constructor({src:n,elementId:e,options:r,publicKey:t}){if(void 0===n)throw new Error("src is undefined");if(void 0===e)throw new Error("elementId is undefined");if(void 0===r)throw new Error("options is undefined");if(void 0===t)throw new Error("publicKey is undefined");this.src=n,this.element="#"+e,this.options=r,this.frameInit=o.a.create({tag:_tagName,url:n,dimensions:{height:"100%",width:"100%"}})}initPayment(){this.frameInit(this.options).render(this.element)}}},function(n,e){var r,t,o=n.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(n){if(r===setTimeout)return setTimeout(n,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(n,0);try{return r(n,0)}catch(e){try{return r.call(null,n,0)}catch(e){return r.call(this,n,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(n){r=i}try{t="function"==typeof clearTimeout?clearTimeout:u}catch(n){t=u}}();var c,s=[],f=!1,d=-1;function l(){f&&c&&(f=!1,c.length?s=c.concat(s):d=-1,s.length&&h())}function h(){if(!f){var n=a(l);f=!0;for(var e=s.length;e;){for(c=s,s=[];++d<e;)c&&c[d].run();d=-1,e=s.length}c=null,f=!1,function(n){if(t===clearTimeout)return clearTimeout(n);if((t===u||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(n);try{t(n)}catch(e){try{return t.call(null,n)}catch(e){return t.call(this,n)}}}(n)}}function w(n,e){this.fun=n,this.array=e}function p(){}o.nextTick=function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new w(n,e)),1!==s.length||f||a(h)},w.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(n){return[]},o.binding=function(n){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(n){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(n,e,r){(function(e){"undefined"!=typeof self&&self,n.exports=function(n){var e={};function r(t){if(e[t])return e[t].exports;var o=e[t]={i:t,l:!1,exports:{}};return n[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=n,r.c=e,r.d=function(n,e,t){r.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:t})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,e){if(1&e&&(n=r(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)r.d(t,o,function(e){return n[e]}.bind(null,o));return t},r.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(e,"a",e),e},r.o=function(n,e){return{}.hasOwnProperty.call(n,e)},r.p="",r(r.s=0)}([function(n,r,t){"use strict";function o(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}function i(){return(i=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)({}).hasOwnProperty.call(r,t)&&(n[t]=r[t])}return n}).apply(this,arguments)}function u(n){try{if(!n)return!1;if("undefined"!=typeof Promise&&n instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&n instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&n instanceof window.constructor)return!1;var e={}.toString;if(e){var r=e.call(n);if("[object Window]"===r||"[object global]"===r||"[object DOMWindow]"===r)return!1}if("function"==typeof n.then)return!0}catch(n){return!1}return!1}t.r(r),t.d(r,"PopupOpenError",(function(){return Tn})),t.d(r,"create",(function(){return rr})),t.d(r,"destroy",(function(){return ir})),t.d(r,"destroyComponents",(function(){return tr})),t.d(r,"destroyAll",(function(){return or})),t.d(r,"PROP_TYPE",(function(){return Fe})),t.d(r,"PROP_SERIALIZATION",(function(){return Le})),t.d(r,"CONTEXT",(function(){return Ue})),t.d(r,"EVENT",(function(){return Be}));var a,c=[],s=[],f=0;function d(){if(!f&&a){var n=a;a=null,n.resolve()}}function l(){f+=1}function h(){f-=1,d()}var w=function(){function n(n){var e=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],n){var r,t,o=!1,i=!1,u=!1;l();try{n((function(n){u?e.resolve(n):(o=!0,r=n)}),(function(n){u?e.reject(n):(i=!0,t=n)}))}catch(n){return h(),void this.reject(n)}h(),u=!0,o?this.resolve(r):i&&this.reject(t)}}var e=n.prototype;return e.resolve=function(n){if(this.resolved||this.rejected)return this;if(u(n))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=n,this.dispatch(),this},e.reject=function(n){var e=this;if(this.resolved||this.rejected)return this;if(u(n))throw new Error("Can not reject promise with another promise");if(!n){var r=n&&"function"==typeof n.toString?n.toString():{}.toString.call(n);n=new Error("Expected reject to be called with Error, got "+r)}return this.rejected=!0,this.error=n,this.errorHandled||setTimeout((function(){e.errorHandled||function(n,e){if(-1===c.indexOf(n)){c.push(n),setTimeout((function(){throw n}),1);for(var r=0;r<s.length;r++)s[r](n,e)}}(n,e)}),1),this.dispatch(),this},e.asyncReject=function(n){return this.errorHandled=!0,this.reject(n),this},e.dispatch=function(){var e=this.resolved,r=this.rejected,t=this.handlers;if(!this.dispatching&&(e||r)){this.dispatching=!0,l();for(var o=function(n,e){return n.then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))},i=0;i<t.length;i++){var a=t[i],c=a.onSuccess,s=a.onError,f=a.promise,d=void 0;if(e)try{d=c?c(this.value):this.value}catch(n){f.reject(n);continue}else if(r){if(!s){f.reject(this.error);continue}try{d=s(this.error)}catch(n){f.reject(n);continue}}d instanceof n&&(d.resolved||d.rejected)?(d.resolved?f.resolve(d.value):f.reject(d.error),d.errorHandled=!0):u(d)?d instanceof n&&(d.resolved||d.rejected)?d.resolved?f.resolve(d.value):f.reject(d.error):o(d,f):f.resolve(d)}t.length=0,this.dispatching=!1,h()}},e.then=function(e,r){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.then expected a function for success handler");if(r&&"function"!=typeof r&&!r.call)throw new Error("Promise.then expected a function for error handler");var t=new n;return this.handlers.push({promise:t,onSuccess:e,onError:r}),this.errorHandled=!0,this.dispatch(),t},e.catch=function(n){return this.then(void 0,n)},e.finally=function(e){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.finally expected a function");return this.then((function(r){return n.try(e).then((function(){return r}))}),(function(r){return n.try(e).then((function(){throw r}))}))},e.timeout=function(n,e){var r=this;if(this.resolved||this.rejected)return this;var t=setTimeout((function(){r.resolved||r.rejected||r.reject(e||new Error("Promise timed out after "+n+"ms"))}),n);return this.then((function(n){return clearTimeout(t),n}))},e.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.resolve=function(e){return e instanceof n?e:u(e)?new n((function(n,r){return e.then(n,r)})):(new n).resolve(e)},n.reject=function(e){return(new n).reject(e)},n.asyncReject=function(e){return(new n).asyncReject(e)},n.all=function(e){var r=new n,t=e.length,o=[];if(!t)return r.resolve(o),r;for(var i=function(n,e,i){return e.then((function(e){o[n]=e,0==(t-=1)&&r.resolve(o)}),(function(n){i.reject(n)}))},a=0;a<e.length;a++){var c=e[a];if(c instanceof n){if(c.resolved){o[a]=c.value,t-=1;continue}}else if(!u(c)){o[a]=c,t-=1;continue}i(a,n.resolve(c),r)}return 0===t&&r.resolve(o),r},n.hash=function(e){var r={},t=[],o=function(n){if(e.hasOwnProperty(n)){var o=e[n];u(o)?t.push(o.then((function(e){r[n]=e}))):r[n]=o}};for(var i in e)o(i);return n.all(t).then((function(){return r}))},n.map=function(e,r){return n.all(e.map(r))},n.onPossiblyUnhandledException=function(n){return function(n){return s.push(n),{cancel:function(){s.splice(s.indexOf(n),1)}}}(n)},n.try=function(e,r,t){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.try expected a function");var o;l();try{o=e.apply(r,t||[])}catch(e){return h(),n.reject(e)}return h(),n.resolve(o)},n.delay=function(e){return new n((function(n){setTimeout(n,e)}))},n.isPromise=function(e){return!!(e&&e instanceof n)||u(e)},n.flush=function(){return e=n,r=a=a||new e,d(),r;var e,r},n}();function p(n){return"[object RegExp]"==={}.toString.call(n)}var v={IFRAME:"iframe",POPUP:"popup"},m="Call was rejected by callee.\r\n";function y(n){return void 0===n&&(n=window),"about:"===n.location.protocol}function g(n){if(void 0===n&&(n=window),n)try{if(n.parent&&n.parent!==n)return n.parent}catch(n){}}function E(n){if(void 0===n&&(n=window),n&&!g(n))try{return n.opener}catch(n){}}function b(n){try{return!0}catch(n){}return!1}function _(n){void 0===n&&(n=window);var e=n.location;if(!e)throw new Error("Can not read window location");var r=e.protocol;if(!r)throw new Error("Can not read window protocol");if("file:"===r)return"file://";if("about:"===r){var t=g(n);return t&&b()?_(t):"about://"}var o=e.host;if(!o)throw new Error("Can not read window host");return r+"//"+o}function P(n){void 0===n&&(n=window);var e=_(n);return e&&n.mockDomain&&0===n.mockDomain.indexOf("mock:")?n.mockDomain:e}function x(n){if(!function(n){try{if(n===window)return!0}catch(n){}try{var e=Object.getOwnPropertyDescriptor(n,"location");if(e&&!1===e.enumerable)return!1}catch(n){}try{if(y(n)&&b())return!0}catch(n){}try{if(_(n)===_(window))return!0}catch(n){}return!1}(n))return!1;try{if(n===window)return!0;if(y(n)&&b())return!0;if(P(window)===P(n))return!0}catch(n){}return!1}function O(n){if(!x(n))throw new Error("Expected window to be same domain");return n}function S(n,e){if(!n||!e)return!1;var r=g(e);return r?r===n:-1!==function(n){var e=[];try{for(;n.parent!==n;)e.push(n.parent),n=n.parent}catch(n){}return e}(e).indexOf(n)}function A(n){var e,r,t=[];try{e=n.frames}catch(r){e=n}try{r=e.length}catch(n){}if(0===r)return t;if(r){for(var o=0;o<r;o++){var i=void 0;try{i=e[o]}catch(n){continue}t.push(i)}return t}for(var u=0;u<100;u++){var a=void 0;try{a=e[u]}catch(n){return t}if(!a)return t;t.push(a)}return t}function W(n){for(var e=[],r=0,t=A(n);r<t.length;r++){var o=t[r];e.push(o);for(var i=0,u=W(o);i<u.length;i++)e.push(u[i])}return e}function R(n){void 0===n&&(n=window);try{if(n.top)return n.top}catch(n){}if(g(n)===n)return n;try{if(S(window,n)&&window.top)return window.top}catch(n){}try{if(S(n,window)&&window.top)return window.top}catch(n){}for(var e=0,r=W(n);e<r.length;e++){var t=r[e];try{if(t.top)return t.top}catch(n){}if(g(t)===t)return t}}function C(n){var e=R(n);if(!e)throw new Error("Can not determine top window");var r=[].concat(W(e),[e]);return-1===r.indexOf(n)&&(r=[].concat(r,[n],W(n))),r}var D=[],T=[];function j(n,e){void 0===e&&(e=!0);try{if(n===window)return!1}catch(n){return!0}try{if(!n)return!0}catch(n){return!0}try{if(n.closed)return!0}catch(n){return!n||n.message!==m}if(e&&x(n))try{if(n.mockclosed)return!0}catch(n){}try{if(!n.parent||!n.top)return!0}catch(n){}var r=function(n,e){for(var r=0;r<n.length;r++)try{if(n[r]===e)return r}catch(n){}return-1}(D,n);if(-1!==r){var t=T[r];if(t&&function(n){if(!n.contentWindow)return!0;if(!n.parentNode)return!0;var e=n.ownerDocument;if(e&&e.documentElement&&!e.documentElement.contains(n)){for(var r=n;r.parentNode&&r.parentNode!==r;)r=r.parentNode;if(!r.host||!e.documentElement.contains(r.host))return!0}return!1}(t))return!0}return!1}function k(n){return void 0===n&&(n=window),E(n=n||window)||g(n)||void 0}function I(n,e){for(var r=0;r<n.length;r++)for(var t=n[r],o=0;o<e.length;o++)if(t===e[o])return!0;return!1}function z(n){void 0===n&&(n=window);for(var e=0,r=n;r;)(r=g(r))&&(e+=1);return e}function N(n,e){var r=R(n)||n,t=R(e)||e;try{if(r&&t)return r===t}catch(n){}var o=C(n),i=C(e);if(I(o,i))return!0;var u=E(r),a=E(t);return u&&I(C(u),i)||a&&I(C(a),o),!1}function M(n,e){if("string"==typeof n){if("string"==typeof e)return"*"===n||e===n;if(p(e))return!1;if(Array.isArray(e))return!1}return p(n)?p(e)?n.toString()===e.toString():!Array.isArray(e)&&Boolean(e.match(n)):!!Array.isArray(n)&&(Array.isArray(e)?JSON.stringify(n)===JSON.stringify(e):!p(e)&&n.some((function(n){return M(n,e)})))}function F(n){return n.match(/^(https?|mock|file):\/\//)?n.split("/").slice(0,3).join("/"):P()}function L(n,e,r,t){var o;return void 0===r&&(r=1e3),void 0===t&&(t=1/0),function i(){if(j(n))return o&&clearTimeout(o),e();t<=0?clearTimeout(o):(t-=r,o=setTimeout(i,r))}(),{cancel:function(){o&&clearTimeout(o)}}}function U(n){try{if(n===window)return!0}catch(n){if(n&&n.message===m)return!0}try{if("[object Window]"==={}.toString.call(n))return!0}catch(n){if(n&&n.message===m)return!0}try{if(window.Window&&n instanceof window.Window)return!0}catch(n){if(n&&n.message===m)return!0}try{if(n&&n.self===n)return!0}catch(n){if(n&&n.message===m)return!0}try{if(n&&n.parent===n)return!0}catch(n){if(n&&n.message===m)return!0}try{if(n&&n.top===n)return!0}catch(n){if(n&&n.message===m)return!0}try{if(n&&"__unlikely_value__"===n.__cross_domain_utils_window_check__)return!1}catch(n){return!0}try{if("postMessage"in n&&"self"in n&&"location"in n)return!0}catch(n){}return!1}function B(n){try{n.close()}catch(n){}}function q(n,e){for(var r=0;r<n.length;r++)try{if(n[r]===e)return r}catch(n){}return-1}var Y,J=function(){function n(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var n=new WeakMap,e={};return Object.freeze(e),n.set(e,"__testvalue__"),"__testvalue__"===n.get(e)}catch(n){return!1}}())try{this.weakmap=new WeakMap}catch(n){}this.keys=[],this.values=[]}var e=n.prototype;return e._cleanupClosedWindows=function(){for(var n=this.weakmap,e=this.keys,r=0;r<e.length;r++){var t=e[r];if(U(t)&&j(t)){if(n)try{n.delete(t)}catch(n){}e.splice(r,1),this.values.splice(r,1),r-=1}}},e.isSafeToReadWrite=function(n){return!U(n)},e.set=function(n,e){if(!n)throw new Error("WeakMap expected key");var r=this.weakmap;if(r)try{r.set(n,e)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=this.name,o=n[t];return void(o&&o[0]===n?o[1]=e:Object.defineProperty(n,t,{value:[n,e],writable:!0}))}catch(n){}this._cleanupClosedWindows();var i=this.keys,u=this.values,a=q(i,n);-1===a?(i.push(n),u.push(e)):u[a]=e},e.get=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(n))return e.get(n)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var r=n[this.name];return r&&r[0]===n?r[1]:void 0}catch(n){}this._cleanupClosedWindows();var t=q(this.keys,n);if(-1!==t)return this.values[t]},e.delete=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{e.delete(n)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var r=n[this.name];r&&r[0]===n&&(r[0]=r[1]=void 0)}catch(n){}this._cleanupClosedWindows();var t=this.keys,o=q(t,n);-1!==o&&(t.splice(o,1),this.values.splice(o,1))},e.has=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(n))return!0}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var r=n[this.name];return!(!r||r[0]!==n)}catch(n){}return this._cleanupClosedWindows(),-1!==q(this.keys,n)},e.getOrSet=function(n,e){if(this.has(n))return this.get(n);var r=e();return this.set(n,r),r},n}();function H(n){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function Z(n,e){return(Z=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function V(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}function X(n,e,r){return(X=V()?Reflect.construct:function(n,e,r){var t=[null];t.push.apply(t,e);var o=new(Function.bind.apply(n,t));return r&&Z(o,r.prototype),o}).apply(null,arguments)}function $(n){var e="function"==typeof Map?new Map:void 0;return($=function(n){if(null===n||(r=n,-1===Function.toString.call(r).indexOf("[native code]")))return n;var r;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(n))return e.get(n);e.set(n,t)}function t(){return X(n,arguments,H(this).constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Z(t,n)})(n)}function G(n){return n.name||n.__name__||n.displayName||"anonymous"}function K(n,e){try{delete n.name,n.name=e}catch(n){}return n.__name__=n.displayName=e,n}function Q(n){if("function"==typeof btoa)return btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,(function(n,e){return String.fromCharCode(parseInt(e,16))})));if(void 0!==e)return e.from(n,"utf8").toString("base64");throw new Error("Can not find window.btoa or Buffer")}function nn(){var n="0123456789abcdef";return"xxxxxxxxxx".replace(/./g,(function(){return n.charAt(Math.floor(Math.random()*n.length))}))+"_"+Q((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function en(n){try{return JSON.stringify([].slice.call(n),(function(n,e){return"function"==typeof e?"memoize["+function(n){if(Y=Y||new J,null==n||"object"!=typeof n&&"function"!=typeof n)throw new Error("Invalid object");var e=Y.get(n);return e||(e=typeof n+":"+nn(),Y.set(n,e)),e}(e)+"]":e}))}catch(n){throw new Error("Arguments not serializable -- can not be used to memoize")}}function rn(){return{}}var tn=0,on=0;function un(n,e){void 0===e&&(e={});var r,t,o=e.thisNamespace,i=void 0!==o&&o,u=e.time,a=tn;tn+=1;var c=function(){for(var e=arguments.length,o=new Array(e),c=0;c<e;c++)o[c]=arguments[c];var s;a<on&&(r=null,t=null,a=tn,tn+=1),s=i?(t=t||new J).getOrSet(this,rn):r=r||{};var f=en(o),d=s[f];if(d&&u&&Date.now()-d.time<u&&(delete s[f],d=null),d)return d.value;var l=Date.now(),h=n.apply(this,arguments);return s[f]={time:l,value:h},h};return c.reset=function(){r=null,t=null},K(c,(e.name||G(n))+"::memoized")}function an(n){var e={};function r(){for(var r=arguments,t=this,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];var a=en(i);return e.hasOwnProperty(a)||(e[a]=w.try((function(){return n.apply(t,r)})).finally((function(){delete e[a]}))),e[a]}return r.reset=function(){e={}},K(r,G(n)+"::promiseMemoized")}function cn(n,e,r){void 0===r&&(r=[]);var t=n.__inline_memoize_cache__=n.__inline_memoize_cache__||{},o=en(r);return t.hasOwnProperty(o)?t[o]:t[o]=e.apply(void 0,r)}function sn(){}function fn(n){var e=!1;return K((function(){if(!e)return e=!0,n.apply(this,arguments)}),G(n)+"::once")}function dn(n,e){if(void 0===e&&(e=1),e>=3)return"stringifyError stack overflow";try{if(!n)return"<unknown error: "+{}.toString.call(n)+">";if("string"==typeof n)return n;if(n instanceof Error){var r=n&&n.stack,t=n&&n.message;if(r&&t)return-1!==r.indexOf(t)?r:t+"\n"+r;if(r)return r;if(t)return t}return n&&n.toString&&"function"==typeof n.toString?n.toString():{}.toString.call(n)}catch(n){return"Error while stringifying error: "+dn(n,e+1)}}function ln(n){return"string"==typeof n?n:n&&n.toString&&"function"==typeof n.toString?n.toString():{}.toString.call(n)}function hn(n,e){if(!e)return n;if(Object.assign)return Object.assign(n,e);for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function wn(n){return n}function pn(n,e){var r;return function t(){r=setTimeout((function(){n(),t()}),e)}(),{cancel:function(){clearTimeout(r)}}}function vn(n){return[].slice.call(n)}function mn(n){return null!=n}function yn(n){return"[object RegExp]"==={}.toString.call(n)}function gn(n,e,r){if(n.hasOwnProperty(e))return n[e];var t=r();return n[e]=t,t}function En(n){var e,r=[],t=!1;return{set:function(e,r){return t||(n[e]=r,this.register((function(){delete n[e]}))),r},register:function(n){t?n(e):r.push(fn((function(){return n(e)})))},all:function(n){e=n;var o=[];for(t=!0;r.length;){var i=r.shift();o.push(i())}return w.all(o).then(sn)}}}function bn(n,e){if(null==e)throw new Error("Expected "+n+" to be present");return e}un.clear=function(){on=tn},un((function(n){if(Object.values)return Object.values(n);var e=[];for(var r in n)n.hasOwnProperty(r)&&e.push(n[r]);return e}));var _n=function(n){function e(e){var r;return(r=n.call(this,e)||this).name=r.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(r),r.constructor):r.stack=new Error(e).stack,r}return o(e,n),e}($(Error));function Pn(){return Boolean(document.body)&&"complete"===document.readyState}function xn(){return Boolean(document.body)&&"interactive"===document.readyState}function On(n){return n.replace(/\?/g,"%3F").replace(/&/g,"%26").replace(/#/g,"%23").replace(/\+/g,"%2B")}function Sn(n){return cn(Sn,(function(){var e={};if(!n)return e;if(-1===n.indexOf("="))return e;for(var r=0,t=n.split("&");r<t.length;r++){var o=t[r];(o=o.split("="))[0]&&o[1]&&(e[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return e}),[n])}function An(n,e){return void 0===e&&(e={}),e&&Object.keys(e).length?(void 0===(r=i({},Sn(n),e))&&(r={}),Object.keys(r).filter((function(n){return"string"==typeof r[n]})).map((function(n){return On(n)+"="+On(r[n])})).join("&")):n;var r}function Wn(n){return n instanceof window.Element||null!==n&&"object"==typeof n&&1===n.nodeType&&"object"==typeof n.style&&"object"==typeof n.ownerDocument}function Rn(n,e){return void 0===e&&(e=document),Wn(n)?n:"string"==typeof n?e.querySelector(n):void 0}function Cn(n){return new w((function(e,r){var t=ln(n),o=Rn(n);if(o)return e(o);if(Pn())return r(new Error("Document is ready and element "+t+" does not exist"));var i=setInterval((function(){return(o=Rn(n))?(clearInterval(i),e(o)):Pn()?(clearInterval(i),r(new Error("Document is ready and element "+t+" does not exist"))):void 0}),10)}))}un((function(){return new w((function(n){if(Pn()||xn())return n();var e=setInterval((function(){if(Pn()||xn())return clearInterval(e),n()}),10)}))}));var Dn,Tn=function(n){function e(){return n.apply(this,arguments)||this}return o(e,n),e}(_n);function jn(n){if((Dn=Dn||new J).has(n)){var e=Dn.get(n);if(e)return e}var r=new w((function(e,r){n.addEventListener("load",(function(){!function(n){if(function(){for(var n=0;n<D.length;n++){var e=!1;try{e=D[n].closed}catch(n){}e&&(T.splice(n,1),D.splice(n,1))}}(),n&&n.contentWindow)try{D.push(n.contentWindow),T.push(n)}catch(n){}}(n),e(n)})),n.addEventListener("error",(function(t){n.contentWindow?e(n):r(t)}))}));return Dn.set(n,r),r}function kn(n){return jn(n).then((function(n){if(!n.contentWindow)throw new Error("Could not find window in iframe");return n.contentWindow}))}function In(n,e){void 0===n&&(n={});var r=n.style||{},t=function(n,e,r){void 0===n&&(n="div"),void 0===e&&(e={}),n=n.toLowerCase();var t,o,i,u=document.createElement(n);if(e.style&&hn(u.style,e.style),e.class&&(u.className=e.class.join(" ")),e.id&&u.setAttribute("id",e.id),e.attributes)for(var a=0,c=Object.keys(e.attributes);a<c.length;a++){var s=c[a];u.setAttribute(s,e.attributes[s])}if(e.styleSheet&&(t=u,o=e.styleSheet,void 0===i&&(i=window.document),t.styleSheet?t.styleSheet.cssText=o:t.appendChild(i.createTextNode(o))),e.html){if("iframe"===n)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");u.innerHTML=e.html}return u}("iframe",{attributes:i({allowTransparency:"true"},n.attributes||{}),style:i({backgroundColor:"transparent",border:"none"},r),html:n.html,class:n.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return t.hasAttribute("id")||t.setAttribute("id",nn()),jn(t),e&&function(n,e){void 0===e&&(e=document);var r=Rn(n,e);if(r)return r;throw new Error("Can not find element: "+ln(n))}(e).appendChild(t),(n.url||o)&&t.setAttribute("src",n.url||"about:blank"),t}function zn(n,e,r){return n.addEventListener(e,r),{cancel:function(){n.removeEventListener(e,r)}}}function Nn(n){n.style.setProperty("display","")}function Mn(n){n.style.setProperty("display","none","important")}function Fn(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function Ln(n){return!(n&&n.parentNode&&n.ownerDocument&&n.ownerDocument.documentElement&&n.ownerDocument.documentElement.contains(n))}function Un(n,e,r){var t=void 0===r?{}:r,o=t.width,i=void 0===o||o,u=t.height,a=void 0===u||u,c=t.interval,s=void 0===c?100:c,f=t.win,d=void 0===f?window:f,l=n.offsetWidth,h=n.offsetHeight,w=!1;e({width:l,height:h});var p,v,m=function(){if(!w&&function(n){return Boolean(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}(n)){var r=n.offsetWidth,t=n.offsetHeight;(i&&r!==l||a&&t!==h)&&e({width:r,height:t}),l=r,h=t}};return d.addEventListener("resize",m),void 0!==d.ResizeObserver?((p=new d.ResizeObserver(m)).observe(n),v=pn(m,10*s)):void 0!==d.MutationObserver?((p=new d.MutationObserver(m)).observe(n,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),v=pn(m,10*s)):v=pn(m,s),{cancel:function(){w=!0,p.disconnect(),window.removeEventListener("resize",m),v.cancel()}}}function Bn(n){for(;n.parentNode;)n=n.parentNode;return"[object ShadowRoot]"===n.toString()}var qn="undefined"!=typeof document?document.currentScript:null,Yn=un((function(){if(qn)return qn;if(qn=function(){try{var n=function(){try{throw new Error("_")}catch(n){return n.stack||""}}(),e=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(n),r=e&&e[1];if(!r)return;for(var t=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();t<o.length;t++){var i=o[t];if(i.src&&i.src===r)return i}}catch(n){}}())return qn;throw new Error("Can not determine current script")})),Jn=nn();function Hn(n){return function(n){if("number"==typeof n)return n;var e=n.match(/^([0-9]+)(px|%)$/);if(!e)throw new Error("Could not match css value from "+n);return parseInt(e[1],10)}(n)+"px"}function Zn(n){return"number"==typeof n?Hn(n):"string"==typeof(e=n)&&/^[0-9]+%$/.test(e)?n:Hn(n);var e}function Vn(n){void 0===n&&(n=window);var e="__post_robot_10_0_42__";return n!==window?n[e]:n[e]=n[e]||{}}un((function(){var n;try{n=Yn()}catch(n){return Jn}var e=n.getAttribute("data-uid");return e&&"string"==typeof e||(e=n.getAttribute("data-uid-auto"))&&"string"==typeof e||(e=nn(),n.setAttribute("data-uid-auto",e)),e}));var Xn=function(){return{}};function $n(n,e){return void 0===n&&(n="store"),void 0===e&&(e=Xn),gn(Vn(),n,(function(){var n=e();return{has:function(e){return n.hasOwnProperty(e)},get:function(e,r){return n.hasOwnProperty(e)?n[e]:r},set:function(e,r){return n[e]=r,r},del:function(e){delete n[e]},getOrSet:function(e,r){return gn(n,e,r)},reset:function(){n=e()},keys:function(){return Object.keys(n)}}}))}var Gn,Kn=function(){};function Qn(){var n=Vn();return n.WINDOW_WILDCARD=n.WINDOW_WILDCARD||new Kn,n.WINDOW_WILDCARD}function ne(n,e){return void 0===n&&(n="store"),void 0===e&&(e=Xn),$n("windowStore").getOrSet(n,(function(){var r=new J,t=function(n){return r.getOrSet(n,e)};return{has:function(e){return t(e).hasOwnProperty(n)},get:function(e,r){var o=t(e);return o.hasOwnProperty(n)?o[n]:r},set:function(e,r){return t(e)[n]=r,r},del:function(e){delete t(e)[n]},getOrSet:function(e,r){return gn(t(e),n,r)}}}))}function ee(){return $n("instance").getOrSet("instanceID",nn)}function re(n,e){var r=e.domain,t=ne("helloPromises"),o=t.get(n);o&&o.resolve({domain:r});var i=w.resolve({domain:r});return t.set(n,i),i}function te(n,e){return(0,e.send)(n,"postrobot_hello",{instanceID:ee()},{domain:"*",timeout:-1}).then((function(e){var r=e.origin,t=e.data.instanceID;return re(n,{domain:r}),{win:n,domain:r,instanceID:t}}))}function oe(n,e){var r=e.send;return ne("windowInstanceIDPromises").getOrSet(n,(function(){return te(n,{send:r}).then((function(n){return n.instanceID}))}))}function ie(n){ne("knownWindows").set(n,!0)}function ue(n){return"object"==typeof n&&null!==n&&"string"==typeof n.__type__}function ae(n){return void 0===n?"undefined":null===n?"null":Array.isArray(n)?"array":"function"==typeof n?"function":"object"==typeof n?n instanceof Error?"error":"function"==typeof n.then?"promise":"[object RegExp]"==={}.toString.call(n)?"regex":"[object Date]"==={}.toString.call(n)?"date":"object":"string"==typeof n?"string":"number"==typeof n?"number":"boolean"==typeof n?"boolean":void 0}function ce(n,e){return{__type__:n,__val__:e