PageSourceSearch

https://phantom-pals.vercel.app/static/js/main.cccb157c.js

js phantom-pals.vercel.app collected 2026-10-03 07:29:00 UTC 1,120,780 bytes, 3 lines download raw bytes

1/*! For license information please see main.cccb157c.js.LICENSE.txt */
2(()=>{var e={8146:(e,t,n)=>{var r,i;"undefined"!==typeof navigator&&(i=window||{},void 0===(r=function(){return function(e){"use strict";var t,n="http://www.w3.org/2000/svg",r="",i=-999999,o=!1,a=!0,s="",l=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),c=Math.pow,u=Math.sqrt,h=Math.floor,d=(Math.max,Math.min),p={};function f(){return{}}(function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)p[t[e]]=Math[t[e]]})(),p.random=Math.random,p.abs=function(e){if("object"===typeof e&&e.length){var t,n=D(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var m=150,g=Math.PI/180,y=.5519;function v(e){e&&Math.round}function w(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function b(e,t){this.type=e,this.direction=t<0?-1:1}function _(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function x(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function A(e,t){this.type=e,this.target=t}function k(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function S(e){this.type="configError",this.nativeError=e}v(!1);var E=function(){var e=0;return function(){return s+"__lottie_element_"+(e+=1)}}();function C(e,t,n){var r,i,o,a,s,l,c,u;switch(l=n*(1-t),c=n*(1-(s=6*e-(a=Math.floor(6*e)))*t),u=n*(1-(1-s)*t),a%6){case 0:r=n,i=u,o=l;break;case 1:r=c,i=n,o=l;break;case 2:r=l,i=n,o=u;break;case 3:r=l,i=c,o=n;break;case 4:r=u,i=l,o=n;break;case 5:r=n,i=l,o=c}return[r,i,o]}function M(e,t,n){var r,i=Math.max(e,t,n),o=Math.min(e,t,n),a=i-o,s=0===i?0:a/i,l=i/255;switch(i){case o:r=0;break;case e:r=t-n+a*(t<n?6:0),r/=6*a;break;case t:r=n-e+2*a,r/=6*a;break;case n:r=e-t+4*a,r/=6*a}return[r,s,l]}function T(e,t){var n=M(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),C(n[0],n[1],n[2])}function P(e,t){var n=M(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),C(n[0],n[1],n[2])}function R(e,t){var n=M(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),C(n[0],n[1],n[2])}var I=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}();function L(){}L.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var O=function(){function e(e,t){var n,r=0,i=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)i.push(n);return i}function t(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}return"function"===typeof Uint8ClampedArray&&"function"===typeof Float32Array?t:e}();function D(e){return Array.apply(null,{length:e})}function B(e){return document.createElementNS(n,e)}function N(e){return document.createElement(e)}function F(){}F.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var j=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}(),U={1:"butt",2:"round",3:"square"},z={1:"miter",2:"round",3:"bevel"},q=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function a(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}
vendor: 5,808 bytes, line 2
2function s(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(n(e),n(t))}function h(r,i){var o=e(i),a=t(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function d(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function p(e,t,n,r,i,o,a,s,l,c,u,h,d,p,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=h,this.props[12]=d,this.props[13]=p,this.props[14]=f,this.props[15]=m,this}function f(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function m(e,t,n,r,i,o,a,s,l,c,u,h,d,p,f,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===i&&1===o&&0===a&&0===s&&0===l&&0===c&&1===u&&0===h)return g[12]=g[12]*e+g[15]*d,g[13]=g[13]*o+g[15]*p,g[14]=g[14]*u+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],w=g[2],b=g[3],_=g[4],x=g[5],A=g[6],k=g[7],S=g[8],E=g[9],C=g[10],M=g[11],T=g[12],P=g[13],R=g[14],I=g[15];return g[0]=y*e+v*i+w*l+b*d,g[1]=y*t+v*o+w*c+b*p,g[2]=y*n+v*a+w*u+b*f,g[3]=y*r+v*s+w*h+b*m,g[4]=_*e+x*i+A*l+k*d,g[5]=_*t+x*o+A*c+k*p,g[6]=_*n+x*a+A*u+k*f,g[7]=_*r+x*s+A*h+k*m,g[8]=S*e+E*i+C*l+M*d,g[9]=S*t+E*o+C*c+M*p,g[10]=S*n+E*a+C*u+M*f,g[11]=S*r+E*s+C*h+M*m,g[12]=T*e+P*i+R*l+I*d,g[13]=T*t+P*o+R*c+I*p,g[14]=T*n+P*a+R*u+I*f,g[15]=T*r+P*s+R*h+I*m,this._identityCalculated=!1,this}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function v(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function w(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function b(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function _(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function x(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function A(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function k(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,i=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new q;return s.props[0]=t,s.props[1]=n,s.props[4]=r,s.props[5]=i,s.props[12]=o,s.props[13]=a,s}function S(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function E(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=S(e[t]);return r}function C(e,t,n){var r=O("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];r[0]=e[0]*i+e[1]*a+l,r[1]=e[0]*o+e[1]*s+c,r[2]=t[0]*i+t[1]*a+l,r[3]=t[0]*o+t[1]*s+c,r[4]=n[0]*i+n[1]*a+l,r[5]=n[0]*o+n[1]*s+c}return r}function M(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function T(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function P(){for(var e=0,t=this.props,n="matrix3d(",i=1e4;e<16;)n+=r(t[e]*i)/i,n+=15===e?")":",",e+=1;return n}function R(e){var t=1e4;return e<1e-6&&e>0||e>-1e-6&&e<0?r(e*t)/t:e}function I(){var e=this.props;return"matrix("+R(e[0])+","+R(e[1])+","+R(e[4])+","+R(e[5])+","+R(e[12])+","+R(e[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=u,this.skewFromAxis=h,this.shear=c,this.scale=d,this.setTransform=p,this.translate=f,this.transform=m,this.applyToPoint=b,this.applyToX=_,this.applyToY=x,this.applyToZ=A,this.applyToPointArray=M,this.applyToTriplePoints=C,this.applyToPointStringified=T,this.toCSS=P,this.to2dCSS=I,this.clone=v,this.cloneFromProps=w,this.equals=y,this.inversePoints=E,this.inversePoint=S,this.getInverseMatrix=k,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=O("float32",16),this.reset()}}();!function(e,t){var n,r=this,i=256,o=6,a=52,s="random",l=t.pow(i,o),c=t.pow(2,a),u=2*c,h=i-1;function d(n,r,a){var h=[],d=g(m((r=!0===r?{entropy:!0}:r||{}).entropy?[n,v(e)]:null===n?y():n,3),h),w=new p(h),b=function(){for(var e=w.g(o),t=l,n=0;e<c;)e=(e+n)*i,t*=i,n=w.g(1);for(;e>=u;)e/=2,t/=2,n>>>=1;return(e+n)/t};return b.int32=function(){return 0|w.g(4)},b.quick=function(){return w.g(4)/4294967296},b.double=b,g(v(w.S),e),(r.pass||a||function(e,n,r,i){return i&&(i.S&&f(i,w),e.state=function(){return f(w,{})}),r?(t[s]=e,n):e})(b,d,"global"in r?r.global:this==t,r.state)}function p(e){var t,n=e.length,r=this,o=0,a=r.i=r.j=0,s=r.S=[];for(n||(e=[n++]);o<i;)s[o]=o++;for(o=0;o<i;o++)s[o]=s[a=h&a+e[o%n]+(t=s[o])],s[a]=t;
2r.g=function(e){for(var t,n=0,o=r.i,a=r.j,s=r.S;e--;)t=s[o=h&o+1],n=n*i+s[h&(s[o]=s[a=h&a+t])+(s[a]=t)];return r.i=o,r.j=a,n}}function f(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function m(e,t){var n,r=[],i=typeof e;if(t&&"object"==i)for(n in e)try{r.push(m(e[n],t-1))}catch(o){}return r.length?r:"string"==i?e:e+"\0"}function g(e,t){for(var n,r=e+"",i=0;i<r.length;)t[h&i]=h&(n^=19*t[h&i])+r.charCodeAt(i++);return v(t)}function y(){try{if(n)return v(n.randomBytes(i));var t=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(t),v(t)}catch(s){var o=r.navigator,a=o&&o.plugins;return[+new Date,r,a,r.screen,v(e)]}}function v(e){return String.fromCharCode.apply(0,e)}t["seed"+s]=d,g(t.random(),e)}([],p);var W=function(){var e={};e.getBezierEasing=n;var t={};function n(e,n,r,i,o){var a=o||("bez_"+e+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var s=new y([e,n,r,i]);return t[a]=s,s}var r=4,i=.001,o=1e-7,a=10,s=11,l=1/(s-1),c="function"===typeof Float32Array;function u(e,t){return 1-3*t+3*e}function h(e,t){return 3*t-6*e}function d(e){return 3*e}function p(e,t,n){return((u(t,n)*e+h(t,n))*e+d(t))*e}function f(e,t,n){return 3*u(t,n)*e*e+2*h(t,n)*e+d(t)}function m(e,t,n,r,i){var s,l,c=0;do{(s=p(l=t+(n-t)/2,r,i)-e)>0?n=l:t=l}while(Math.abs(s)>o&&++c<a);return l}function g(e,t,n,i){for(var o=0;o<r;++o){var a=f(t,n,i);if(0===a)return t;t-=(p(t,n,i)-e)/a}return t}function y(e){this._p=e,this._mSampleValues=c?new Float32Array(s):new Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===n&&r===i?e:0===e?0:1===e?1:p(this._getTForX(e),n,i)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<s;++n)this._mSampleValues[n]=p(n*l,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],r=this._mSampleValues,o=0,a=1,c=s-1;a!==c&&r[a]<=e;++a)o+=l;var u=o+(e-r[--a])/(r[a+1]-r[a])*l,h=f(u,t,n);return h>=i?g(e,u,t,n):0===h?u:m(e,o,o+l,t,n)}},e}();function V(e,t){var n,r,i=e.length;for(n=0;n<i;n+=1)for(var o in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,o)&&(t.prototype[o]=r[o])}function H(e){function t(){}return t.prototype=e,t}function K(){var e=Math;function t(e,t,n,r,i,o){var a=e*r+t*i+n*o-i*r-o*e-n*t;return a>-.001&&a<.001}function n(n,r,i,o,a,s,l,c,u){if(0===i&&0===s&&0===u)return t(n,r,o,a,l,c);var h,d=e.sqrt(e.pow(o-n,2)+e.pow(a-r,2)+e.pow(s-i,2)),p=e.sqrt(e.pow(l-n,2)+e.pow(c-r,2)+e.pow(u-i,2)),f=e.sqrt(e.pow(l-o,2)+e.pow(c-a,2)+e.pow(u-s,2));return(h=d>p?d>f?d-p-f:f-p-d:f>p?f-p-d:p-d-f)>-1e-4&&h<1e-4}var r=function(e,t,n,r){var i,o,a,s,l,h,d=m,p=0,f=[],g=[],y=Ee.newElement();for(a=n.length,i=0;i<d;i+=1){for(l=i/(d-1),h=0,o=0;o<a;o+=1)s=c(1-l,3)*e[o]+3*c(1-l,2)*l*n[o]+3*(1-l)*c(l,2)*r[o]+c(l,3)*t[o],f[o]=s,null!==g[o]&&(h+=c(f[o]-g[o],2)),g[o]=f[o];h&&(p+=h=u(h)),y.percents[i]=l,y.lengths[i]=p}return y.addedLength=p,y};function i(e){var t,n=Se.newElement(),i=e.c,o=e.v,a=e.o,s=e.i,l=e._length,c=n.lengths,u=0;for(t=0;t<l-1;t+=1)c[t]=r(o[t],o[t+1],a[t],s[t+1]),u+=c[t].addedLength;return i&&l&&(c[t]=r(o[t],o[0],a[t],s[0]),u+=c[t].addedLength),n.totalLength=u,n}function o(e){this.segmentLength=0,this.points=new Array(e)}function a(e,t){this.partialLength=e,this.point=t}var s=function(){var e={};return function(n,r,i,s){var l=(n[0]+"_"+n[1]+"_"+r[0]+"_"+r[1]+"_"+i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!e[l]){var h,d,p,f,g,y,v,w=m,b=0,_=null;2===n.length&&(n[0]!==r[0]||n[1]!==r[1])&&t(n[0],n[1],r[0],r[1],n[0]+i[0],n[1]+i[1])&&t(n[0],n[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(w=2);var x=new o(w);for(p=i.length,h=0;h<w;h+=1){for(v=D(p),g=h/(w-1),y=0,d=0;d<p;d+=1)f=c(1-g,3)*n[d]+3*c(1-g,2)*g*(n[d]+i[d])+3*(1-g)*c(g,2)*(r[d]+s[d])+c(g,3)*r[d],v[d]=f,null!==_&&(y+=c(v[d]-_[d],2));b+=y=u(y),x.points[h]=new a(y,v),_=v}x.segmentLength=b,e[l]=x}return e[l]}}();function l(e,t){var n=t.percents,r=t.lengths,i=n.length,o=h((i-1)*e),a=e*t.addedLength,s=0;if(o===i-1||0===o||a===r[o])return n[o];for(var l=r[o]>a?-1:1,c=!0;c;)if(r[o]<=a&&r[o+1]>a?(s=(a-r[o])/(r[o+1]-r[o]),c=!1):o+=l,o<0||o>=i-1){if(o===i-1)return n[o];c=!1}return n[o]+(n[o+1]-n[o])*s}function d(t,n,r,i,o,a){var s=l(o,a),c=1-s;return[e.round(1e3*(c*c*c*t[0]+(s*c*c+c*s*c+c*c*s)*r[0]+(s*s*c+c*s*s+s*c*s)*i[0]+s*s*s*n[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(s*c*c+c*s*c+c*c*s)*r[1]+(s*s*c+c*s*s+s*c*s)*i[1]+s*s*s*n[1]))/1e3]}var p=O("float32",8);function f(t,n,r,i,o,a,s){o<0?o=0:o>1&&(o=1);var c,u=l(o,s),h=l(a=a>1?1:a,s),d=t.length,f=1-u,m=1-h,g=f*f*f,y=u*f*f*3,v=u*u*f*3,w=u*u*u,b=f*f*m,_=u*f*m+f*u*m+f*f*h,x=u*u*m+f*u*h+u*f*h,A=u*u*h,k=f*m*m,S=u*m*m+f*h*m+f*m*h,E=u*h*m+f*h*h+u*m*h,
2C=u*h*h,M=m*m*m,T=h*m*m+m*h*m+m*m*h,P=h*h*m+m*h*h+h*m*h,R=h*h*h;for(c=0;c<d;c+=1)p[4*c]=e.round(1e3*(g*t[c]+y*r[c]+v*i[c]+w*n[c]))/1e3,p[4*c+1]=e.round(1e3*(b*t[c]+_*r[c]+x*i[c]+A*n[c]))/1e3,p[4*c+2]=e.round(1e3*(k*t[c]+S*r[c]+E*i[c]+C*n[c]))/1e3,p[4*c+3]=e.round(1e3*(M*t[c]+T*r[c]+P*i[c]+R*n[c]))/1e3;return p}return{getSegmentsLength:i,getNewSegment:f,getPointInSegment:d,buildBezierData:s,pointOnLine2D:t,pointOnLine3D:n}}!function(){for(var t=0,n=["ms","moz","webkit","o"],r=0;r<n.length&&!e.requestAnimationFrame;++r)e.requestAnimationFrame=e[n[r]+"RequestAnimationFrame"],e.cancelAnimationFrame=e[n[r]+"CancelAnimationFrame"]||e[n[r]+"CancelRequestAnimationFrame"];e.requestAnimationFrame||(e.requestAnimationFrame=function(e){var n=(new Date).getTime(),r=Math.max(0,16-(n-t)),i=setTimeout((function(){e(n+r)}),r);return t=n+r,i}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(e){clearTimeout(e)})}();var G=K(),Z=function(){var t,n,r=1,i=[],a={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(e){a.onmessage({data:e})}};function l(n){if(e.Worker&&e.Blob&&o){var r=new Blob(["var _workerSelf = self; self.onmessage = ",n.toString()],{type:"text/javascript"}),i=URL.createObjectURL(r);return new Worker(i)}return t=n,a}function c(){n||(n=l((function(e){function t(){function e(i,o){var a,s,l,c,u,d,p=i.length;for(s=0;s<p;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.tt&&(i[s-1].td=a.tt),a.hasMask){var f=a.masksProperties;for(c=f.length,l=0;l<c;l+=1)if(f[l].pt.k.i)r(f[l].pt.k);else for(d=f[l].pt.k.length,u=0;u<d;u+=1)f[l].pt.k[u].s&&r(f[l].pt.k[u].s[0]),f[l].pt.k[u].e&&r(f[l].pt.k[u].e[0])}0===a.ty?(a.layers=t(a.refId,o),e(a.layers,o)):4===a.ty?n(a.shapes):5===a.ty&&h(a)}}function t(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n].layers.__used?JSON.parse(JSON.stringify(t[n].layers)):(t[n].layers.__used=!0,t[n].layers);n+=1}return null}function n(e){var t,i,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(o=e[t].ks.k.length,i=0;i<o;i+=1)e[t].ks.k[i].s&&r(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&r(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&n(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var o=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),a=function(){var e=[4,7,99];return function(t){if(t.chars&&!i(e,t.v)){var n,o,a,s,l,c=t.chars.length;for(n=0;n<c;n+=1)if(t.chars[n].data&&t.chars[n].data.shapes)for(a=(l=t.chars[n].data.shapes[0].it).length,o=0;o<a;o+=1)(s=l[o].ks.k).__converted||(r(l[o].ks.k),s.__converted=!0)}}}(),s=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"===typeof t.a&&(t.a={a:0,k:t.a}),"number"===typeof t.p&&(t.p={a:0,k:t.p}),"number"===typeof t.r&&(t.r={a:0,k:t.r})}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),l=function(){var e=[4,1,9];function t(e){var n,r,i,o=e.length;for(n=0;n<o;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(i=e[n].c.k.length,r=0;r<i;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),c=function(){var e=[4,4,18];function t(e){var n,r,i;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,r=0;r<i;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,i,o,a,s,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var c=n.masksProperties;for(o=c.length,i=0;i<o;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(s=c[i].pt.k.length,a=0;a<s;a+=1)c[i].pt.k[a].s&&(c[i].pt.k[a].s[0].c=c[i].cl),c[i].pt.k[a].e&&(c[i].pt.k[a].e[0].c=c[i].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function u(t){t.__complete||(l(t),o(t),a(t),s(t),c(t),e(t.layers,t.assets),t.__complete=!0)}function h(e){0!==e.t.a.length||"m"in e.t.p||(e.singleShape=!0)}var d={};return d.completeData=u,d.checkColors=l,d.checkChars=a,d.checkPathProperties=s,d.checkShapes=c,d.completeLayers=e,d}if(s.dataManager||(s.dataManager=t()),s.assetLoader||(s.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===typeof e.response?e.response:e.response&&"string"===typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}function t(t,n,r,i){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(s){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=e(a),r(o);else try{o=e(a),r(o)}catch(s){i&&i(s)}};try{a.open("GET",t,!0)}catch(l){a.open("GET",n+"/"+t,!0)}a.send()}return{load:t}}()),"loadAnimation"===e.data.type)s.assetLoader.load(e.data.path,e.data.fullPath,(function(t){s.dataManager.completeData(t),s.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){s.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var n=e.data.animation;s.dataManager.completeData(n),s.postMessage({id:e.data.id,payload:n,status:"success"})}else"loadData"===e.data.type&&s.assetLoader.load(e.data.path,e.data.fullPath,(function(t){s.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){s.postMessage({id:e.data.id,status:"error"})}))})),n.onmessage=function(e){var t=e.data,n=t.id,r=i[n];
2i[n]=null,"success"===t.status?r.onComplete(t.payload):r.onError&&r.onError()})}function u(e,t){var n="processId_"+(r+=1);return i[n]={onComplete:e,onError:t},n}function h(t,r,i){c();var o=u(r,i);n.postMessage({type:"loadAnimation",path:t,fullPath:e.location.origin+e.location.pathname,id:o})}function d(t,r,i){c();var o=u(r,i);n.postMessage({type:"loadData",path:t,fullPath:e.location.origin+e.location.pathname,id:o})}function p(e,t,r){c();var i=u(t,r);n.postMessage({type:"complete",animation:e,id:i})}return{loadAnimation:h,loadData:d,completeAnimation:p}}();function Q(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,o=0;o<i;o+=1)switch(t[o].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}var Y=function(){var e=5e3,t={w:0,size:0,shapes:[]},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function o(e){var t,n=e.split(","),r=n.length,i=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&i.push(n[t]);return i.join(",")}function a(e,t){var n=N("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=N("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=o(e)+", "+t,{node:r,w:i,parent:n}}function s(){var t,n,r,i=this.fonts.length,o=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?o-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(n=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,n.offsetWidth!==r?(o-=1,this.fonts[t].loaded=!0):(n=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,n.offsetWidth!==r&&(o-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==o&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function l(e,t){var n=B("text");n.style.fontSize="100px";var r=Q(t);return n.setAttribute("font-family",t.fFamily),n.setAttribute("font-style",r.style),n.setAttribute("font-weight",r.weight),n.textContent="1",t.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",t.fClass)):n.style.fontFamily=t.fFamily,e.appendChild(n),N("canvas").getContext("2d").font=t.fWeight+" "+t.fStyle+" 100px "+t.fFamily,n}function c(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);var n,r=e.list,i=r.length,o=i;for(n=0;n<i;n+=1){var s,c,u=!0;if(r[n].loaded=!1,r[n].monoCase=a(r[n].fFamily,"monospace"),r[n].sansCase=a(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((s=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(u=!1),u){var h=N("style");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("f-family",r[n].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(h)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(s=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<s.length;c+=1)-1!==s[c].href.indexOf(r[n].fPath)&&(u=!1);if(u){var d=N("link");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.type="text/css",d.rel="stylesheet",d.href=r[n].fPath,document.body.appendChild(d)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(s=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<s.length;c+=1)r[n].fPath===s[c].src&&(u=!1);if(u){var p=N("link");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",r[n].fPath),t.appendChild(p)}}}else r[n].loaded=!0,o-=1;r[n].helper=l(t,r[n]),r[n].cache={},this.fonts.push(r[n])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function u(e){if(e){var t;this.chars||(this.chars=[]);var n,r,i=e.length,o=this.chars.length;for(t=0;t<i;t+=1){for(n=0,r=!1;n<o;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),o+=1)}}}function h(e,n,r){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===e&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"===typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,n,r)),t}function d(e,t,n){var r=this.getFontByName(t),i=e.charCodeAt(0);if(!r.cache[i+1]){var o=r.helper;if(" "===e){o.textContent="|"+e+"|";var a=o.getComputedTextLength();o.textContent="||";var s=o.getComputedTextLength();r.cache[i+1]=(a-s)/100}else o.textContent=e,r.cache[i+1]=o.getComputedTextLength()/100}return r.cache[i+1]*n}function p(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]}function f(e,t){var n=e.toString(16)+t.toString(16);return-1!==r.indexOf(n)}function m(e,t){return t?e===i[0]&&t===i[1]:e===i[1]}function g(e){return-1!==n.indexOf(e)}function y(){this.isLoaded=!0}var v=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};v.isModifier=f,v.isZeroWidthJoiner=m,v.isCombinedCharacter=g;var w={addChars:u,addFonts:c,getCharData:h,getFontByName:p,measureText:d,checkLoadedFonts:s,setIsLoaded:y};return v.prototype=w,v}(),X=function(){var e=i,t=Math.abs;function n(e,t){var n,i=this.offsetTime;"multidimensional"===this.propType&&(n=O("float32",this.pv.length));for(var s,l,c,u,h,d,p,f,m,g=t.lastIndex,y=g,v=this.keyframes.length-1,w=!0;w;){if(s=this.keyframes[y],l=this.keyframes[y+1],y===v-1&&e>=l.t-i){s.h&&(s=l),g=0;break}if(l.t-i>e){g=y;break}y<v-1?y+=1:(g=0,w=!1)}c=this.keyframesMetadata[y]||{};var b,_=l.t-i,x=s.t-i;if(s.to){c.bezierData||(c.bezierData=G.buildBezierData(s.s,l.s||s.e,s.to,s.ti));var A=c.bezierData;if(e>=_||e<x){var k=e>=_?A.points.length-1:0;for(h=A.points[k].point.length,u=0;u<h;u+=1)n[u]=A.points[k].point[u]}else{c.__fnct?m=c.__fnct:(m=W.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,c.__fnct=m),d=m((e-x)/(_-x));var S,E=A.segmentLength*d,C=t.lastFrame<e&&t._lastKeyframeIndex===y?t._lastAddedLe
vendor: 5,668 bytes, line 2
2ngth:0;for(f=t.lastFrame<e&&t._lastKeyframeIndex===y?t._lastPoint:0,w=!0,p=A.points.length;w;){if(C+=A.points[f].partialLength,0===E||0===d||f===A.points.length-1){for(h=A.points[f].point.length,u=0;u<h;u+=1)n[u]=A.points[f].point[u];break}if(E>=C&&E<C+A.points[f+1].partialLength){for(S=(E-C)/A.points[f+1].partialLength,h=A.points[f].point.length,u=0;u<h;u+=1)n[u]=A.points[f].point[u]+(A.points[f+1].point[u]-A.points[f].point[u])*S;break}f<p-1?f+=1:w=!1}t._lastPoint=f,t._lastAddedLength=C-A.points[f].partialLength,t._lastKeyframeIndex=y}}else{var M,T,P,R,I;if(v=s.s.length,b=l.s||s.e,this.sh&&1!==s.h)e>=_?(n[0]=b[0],n[1]=b[1],n[2]=b[2]):e<=x?(n[0]=s.s[0],n[1]=s.s[1],n[2]=s.s[2]):o(n,r(a(s.s),a(b),(e-x)/(_-x)));else for(y=0;y<v;y+=1)1!==s.h&&(e>=_?d=1:e<x?d=0:(s.o.x.constructor===Array?(c.__fnct||(c.__fnct=[]),c.__fnct[y]?m=c.__fnct[y]:(M=void 0===s.o.x[y]?s.o.x[0]:s.o.x[y],T=void 0===s.o.y[y]?s.o.y[0]:s.o.y[y],P=void 0===s.i.x[y]?s.i.x[0]:s.i.x[y],R=void 0===s.i.y[y]?s.i.y[0]:s.i.y[y],m=W.getBezierEasing(M,T,P,R).get,c.__fnct[y]=m)):c.__fnct?m=c.__fnct:(M=s.o.x,T=s.o.y,P=s.i.x,R=s.i.y,m=W.getBezierEasing(M,T,P,R).get,s.keyframeMetadata=m),d=m((e-x)/(_-x)))),b=l.s||s.e,I=1===s.h?s.s[y]:s.s[y]+(b[y]-s.s[y])*d,"multidimensional"===this.propType?n[y]=I:n=I}return t.lastIndex=g,n}function r(e,t,n){var r,i,o,a,s,l=[],c=e[0],u=e[1],h=e[2],d=e[3],p=t[0],f=t[1],m=t[2],g=t[3];return(i=c*p+u*f+h*m+d*g)<0&&(i=-i,p=-p,f=-f,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),o=Math.sin(r),a=Math.sin((1-n)*r)/o,s=Math.sin(n*r)/o):(a=1-n,s=n),l[0]=a*c+s*p,l[1]=a*u+s*f,l[2]=a*h+s*m,l[3]=a*d+s*g,l}function o(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i),s=Math.asin(2*n*r+2*i*o),l=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i);e[0]=a/g,e[1]=s/g,e[2]=l/g}function a(e){var t=e[0]*g,n=e[1]*g,r=e[2]*g,i=Math.cos(t/2),o=Math.cos(n/2),a=Math.cos(r/2),s=Math.sin(t/2),l=Math.sin(n/2),c=Math.sin(r/2);return[s*l*a+i*o*c,s*o*a+i*l*c,i*l*a-s*o*c,i*o*a-s*l*c]}function s(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<n&&t<n))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function l(e){var n;if("unidimensional"===this.propType)n=e*this.mult,t(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)n=e[r]*this.mult,t(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function c(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function u(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function h(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.addEffect=u}function d(e,t,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=t.k.length;for(this.v=O("float32",o),this.pv=O("float32",o),this.vel=O("float32",o),i=0;i<o;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=c,this.setVValue=l,this.addEffect=u}function p(t,r,i,o){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=i||1,this.elem=t,this.container=o,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.effectsSequence=[s.bind(this)],this.addEffect=u}function f(t,r,i,o){var a;this.propType="multidimensional";var h,d,p,f,m=r.k.length;for(a=0;a<m-1;a+=1)r.k[a].to&&r.k[a].s&&r.k[a+1]&&r.k[a+1].s&&(h=r.k[a].s,d=r.k[a+1].s,p=r.k[a].to,f=r.k[a].ti,(2===h.length&&(h[0]!==d[0]||h[1]!==d[1])&&G.pointOnLine2D(h[0],h[1],d[0],d[1],h[0]+p[0],h[1]+p[1])&&G.pointOnLine2D(h[0],h[1],d[0],d[1],d[0]+f[0],d[1]+f[1])||3===h.length&&(h[0]!==d[0]||h[1]!==d[1]||h[2]!==d[2])&&G.pointOnLine3D(h[0],h[1],h[2],d[0],d[1],d[2],h[0]+p[0],h[1]+p[1],h[2]+p[2])&&G.pointOnLine3D(h[0],h[1],h[2],d[0],d[1],d[2],d[0]+f[0],d[1]+f[1],d[2]+f[2]))&&(r.k[a].to=null,r.k[a].ti=null),h[0]===d[0]&&h[1]===d[1]&&0===p[0]&&0===p[1]&&0===f[0]&&0===f[1]&&(2===h.length||h[2]===d[2]&&0===p[2]&&0===f[2])&&(r.k[a].to=null,r.k[a].ti=null));this.effectsSequence=[s.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=o,this.comp=t.comp,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.frameId=-1;var g=r.k[0].s.length;for(this.v=O("float32",g),this.pv=O("float32",g),a=0;a<g;a+=1)this.v[a]=e,this.pv[a]=e;this._caching={lastFrame:e,lastIndex:0,value:O("float32",g)},this.addEffect=u}function m(e,t,n,r,i){var o;if(t.k.length)if("number"===typeof t.k[0])o=new d(e,t,r,i);else switch(n){case 0:o=new p(e,t,r,i);break;
vendor: 4,466 bytes, line 2
2case 1:o=new f(e,t,r,i)}else o=new h(e,t,r,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}return{getProp:m}}(),J=function(){var e=[0,0];function t(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(r[0]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),i[0]=o.getValueAtTime(o.keyframes[0].t/n,0),i[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(r[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(r=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function r(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function i(){}function o(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0}function a(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new q,this.pre=new q,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=X.getProp(e,t.p.x,0,0,this),this.py=X.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=X.getProp(e,t.p.z,0,0,this))):this.p=X.getProp(e,t.p||{k:[0,0,0]}
vendor: 1,219 bytes, line 2
2,1,0,this),t.rx){if(this.rx=X.getProp(e,t.rx,0,g,this),this.ry=X.getProp(e,t.ry,0,g,this),this.rz=X.getProp(e,t.rz,0,g,this),t.or.k[0].ti){var r,i=t.or.k.length;for(r=0;r<i;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=X.getProp(e,t.or,1,g,this),this.or.sh=!0}else this.r=X.getProp(e,t.r||{k:0},0,g,this);t.sk&&(this.sk=X.getProp(e,t.sk,0,g,this),this.sa=X.getProp(e,t.sa,0,g,this)),this.a=X.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=X.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=X.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function s(e,t,n){return new a(e,t,n)}return a.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:r,autoOrient:i},V([F],a),a.prototype.addDynamicProperty=o,a.prototype._addDynamicProperty=F.prototype.addDynamicProperty,{getTransformProperty:s}}();function $(){this.c=!1,this._length=0,this._maxLength=8,this.v=D(this._maxLength),this.o=D(this._maxLength),this.i=D(this._maxLength)}$.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=xe.newElement(),this.o[n]=xe.newElement(),this.i[n]=xe.newElement(),n+=1},$.prototype.setLength=function(e){for(;this._maxLength<e;
vendor: 9,495 bytes, line 2
2)this.doubleArrayLength();this._length=e},$.prototype.doubleArrayLength=function(){this.v=this.v.concat(D(this._maxLength)),this.i=this.i.concat(D(this._maxLength)),this.o=this.o.concat(D(this._maxLength)),this._maxLength*=2},$.prototype.setXYAt=function(e,t,n,r,i){var o;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[r]||o[r]&&!i)&&(o[r]=xe.newElement()),o[r][0]=e,o[r][1]=t},$.prototype.setTripleAt=function(e,t,n,r,i,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(n,r,"o",a,s),this.setXYAt(i,o,"i",a,s)},$.prototype.reverse=function(){var e=new $;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var o,a=this._length-1,s=this._length;for(o=i;o<s;o+=1)e.setTripleAt(t[a][0],t[a][1],r[a][0],r[a][1],n[a][0],n[a][1],o,!1),a-=1;return e};var ee=function(){var e=-999999;function t(e,t,n){var r,i,o,a,s,l,c,u,h,d=n.lastIndex,p=this.keyframes;if(e<p[0].t-this.offsetTime)r=p[0].s[0],o=!0,d=0;else if(e>=p[p.length-1].t-this.offsetTime)r=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],o=!0;else{for(var f,m,g,y=d,v=p.length-1,w=!0;w&&(f=p[y],!((m=p[y+1]).t-this.offsetTime>e));)y<v-1?y+=1:w=!1;if(g=this.keyframesMetadata[y]||{},d=y,!(o=1===f.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<f.t-this.offsetTime)u=0;else{var b;g.__fnct?b=g.__fnct:(b=W.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=b),u=b((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=t._length,c=r.i[0].length,n.lastIndex=d,a=0;a<l;a+=1)for(s=0;s<c;s+=1)h=o?r.i[a][s]:r.i[a][s]+(i.i[a][s]-r.i[a][s])*u,t.i[a][s]=h,h=o?r.o[a][s]:r.o[a][s]+(i.o[a][s]-r.o[a][s])*u,t.o[a][s]=h,h=o?r.v[a][s]:r.v[a][s]+(i.v[a][s]-r.v[a][s])*u,t.v[a][s]=h}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<n&&t<n||i>r&&t>r)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function i(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0}function o(e){i(this.v,e)||(this.v=Ae.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?t.pt.k:t.ks.k;this.v=Ae.clone(i),this.pv=Ae.clone(this.v),this.localShapeCollection=ke.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function l(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function c(t,i,o){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=Ae.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=Ae.clone(this.v),this.localShapeCollection=ke.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=a,s.prototype.setVValue=o,s.prototype.addEffect=l,c.prototype.getValue=a,c.prototype.interpolateShape=t,c.prototype.setVValue=o,c.prototype.addEffect=l;var u=function(){var e=y;function t(e,t){this.v=Ae.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ke.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=X.getProp(e,t.p,1,0,this),this.s=X.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=n-i,a.v[1][0]=o?t+r:t-r,a.v[1][1]=n,a.v[2][0]=t,a.v[2][1]=n+i,a.v[3][0]=o?t-r:t+r,a.v[3][1]=n,a.i[0][0]=o?t-r*e:t+r*e,a.i[0][1]=n-i,a.i[1][0]=o?t+r:t-r,a.i[1][1]=n-i*e,a.i[2][0]=o?t+r*e:t-r*e,a.i[2][1]=n+i,a.i[3][0]=o?t-r:t+r,a.i[3][1]=n+i*e,a.o[0][0]=o?t+r*e:t-r*e,a.o[0][1]=n-i,a.o[1][0]=o?t+r:t-r,a.o[1][1]=n+i*e,a.o[2][0]=o?t-r*e:t+r*e,a.o[2][1]=n+i,a.o[3][0]=o?t-r:t+r,a.o[3][1]=n-i*e}},V([F],t),t}(),h=function(){function e(e,t){this.v=Ae.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=X.getProp(e,t.ir,0,0,this),this.is=X.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=X.getProp(e,t.pt,0,0,this),this.p=X.getProp(e,t.p,1,0,this),this.r=X.getProp(e,t.r,0,g,this),this.or=X.getProp(e,t.or,0,0,this),this.os=X.getProp(e,t.os,0,.01,this),this.localShapeCollection=ke.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,h=2*Math.PI*s/(2*i),d=2*Math.PI*l/(2*i),p=-Math.PI/2;p+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){n=a?c:u,r=a?h:d;var m=(t=a?s:l)*Math.cos(p),g=t*Math.sin(p),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*r*n*f,g-v*r*n*f,m+y*r*n*f,g+v*r*n*f,e,!0),a=!a,p+=o*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,i=this.os.v,o=2*Math.PI*r/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(a),c=r*Math.sin(a),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),h=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*o*i*s,c-h*o*i*s,l+u*o*i*s,c+h*o*i*s,e,!0),a+=n*s}this.paths.length=0,this.paths[0]=this.v}},V([F],e),e}(),p=function(){function e(e,t){this.v=Ae.newElement(),this.v.c=!0,this.localShapeCollection=ke.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=X.getProp(e,t.p,1,0,this),this.s=X.getProp(e,t.s,1,0,this),this.r=X.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=d(n,r,this.r.v),o=i*(1-y);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+i,e+n,t-r+o,0,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-o,e+n,t+r-i,1,!0),0!==i?(this.v.setTripleAt(e+n-i,t+r,e+n-i,t+r,e+n-o,t+r,2,!0),this.v.setTripleAt(e-n+i,t+r,e-n+o,t+r,e-n+i,t+r,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-i,e-n,t+r-o,4,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+o,e-n,t-r+i,5,!0),this.v.setTripleAt(e-n+i,t-r,e-n+i,t-r,e-n+o,t-r,6,!0),this.v.setTripleAt(e+n-i,t-r,e+n-o,t-r,e+n-i,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+o,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+o,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+o,e+n,t-r+i,0,!0),0!==i?(this.v.setTripleAt(e+n-i,t-r,e+n-i,t-r,e+n-o,t-r,1,!0),this.v.setTripleAt(e-n+i,t-r,e-n+o,t-r,e-n+i,t-r,2,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+i,e-n,t-r+o,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-o,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n+i,t+r,e-n+i,t+r,e-n+o,t+r,5,!0),this.v.setTripleAt(e+n-i,t+r,e+n-o,t+r,e+n-i,t+r,6,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-i,e+n,t+r-o,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+o,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-o,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-o,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},V([F],e),e}();function f(e,t,n){var r;
vendor: 4,636 bytes, line 2
2return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new c(e,t,n):new s(e,t,n):5===n?r=new p(e,t):6===n?r=new u(e,t):7===n&&(r=new h(e,t)),r.k&&e.addDynamicProperty(r),r}function m(){return s}function v(){return c}var w={};return w.getShapeProp=f,w.getConstructorFunction=m,w.getKeyframedConstructorFunction=v,w}(),te=function(){var e={},t={};function n(e,n){t[e]||(t[e]=n)}function r(e,n,r){return new t[e](n,r)}return e.registerModifier=n,e.getModifier=r,e}();function ne(){}function re(){}function ie(){}function oe(){}function ae(){}function se(){this._length=0,this._maxLength=4,this.shapes=D(this._maxLength)}function le(e,t,n,r){var i;this.elem=e,this.frameId=-1,this.dataProps=D(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=O("float32",t.length?t.length-1:0),this.dashoffset=O("float32",1),this.initDynamicPropertyContainer(r);var o,a=t.length||0;for(i=0;i<a;i+=1)o=X.getProp(e,t[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:t[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function ce(e,t,n){this.data=t,this.c=O("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=O("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=X.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ne.prototype.initModifierProperties=function(){},ne.prototype.addShapeToModifier=function(){},ne.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:ke.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ne.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=i,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ne.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},V([F],ne),V([ne],re),re.prototype.initModifierProperties=function(e,t){this.s=X.getProp(e,t.s,0,.01,this),this.e=X.getProp(e,t.e,0,.01,this),this.o=X.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},re.prototype.addShapeToModifier=function(e){e.pathsData=[]},re.prototype.calculateShapeEdges=function(e,t,n,r,i){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var a,s,l=[],c=o.length;for(a=0;a<c;a+=1){var u,h;(s=o[a]).e*i<r||s.s*i>r+n||(u=s.s*i<=r?0:(s.s*i-r)/n,h=s.e*i>=r+n?1:(s.e*i-r)/n,l.push([u,h]))}return l.length||l.push([0,0]),l},re.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)Se.release(e[t]);return e.length=0,e},re.prototype.processShapes=function(e){var t,n,r,i;if(this._mdf||e){var o=this.o.v%360/360;if(o<0&&(o+=1),(t=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(n=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=t;t=n,n=a}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,c,u,h,d=this.shapes.length,p=0;if(n===t)for(i=0;i<d;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(i=0;i<d;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<d;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=f.shape.paths)._length,h=0,!f.shape._mdf&&f.pathsData.length)h=f.totalShapeLength;else{for(c=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)u=G.getSegmentsLength(r.shapes[s]),c.push(u),h+=u.totalLength;f.totalShapeLength=h,f.pathsData=c}p+=h,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,v=t,w=n,b=0;for(i=d-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&d>1?(y=this.calculateShapeEdges(t,n,f.totalShapeLength,b,p),b+=f.totalShapeLength):y=[[v,w]],l=y.length,s=0;s<l;s+=1){v=y[s][0],w=y[s][1],g.length=0,w<=1?g.push({s:f.totalShapeLength*v,e:f.totalShapeLength*w}):v>=1?g.push({s:f.totalShapeLength*(v-1),e:f.totalShapeLength*(w-1)}):(g.push({s:f.totalShapeLength*v,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(w-1)}));var _=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>
vendor: 12,541 bytes, line 2
21)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var x=_.pop();this.addPaths(_,m),_=this.addShapes(f,g[1],x)}else this.addPaths(_,m),_=this.addShapes(f,g[1]);this.addPaths(_,m)}}f.shape.paths=m}}},re.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},re.prototype.addSegment=function(e,t,n,r,i,o,a){i.setXYAt(t[0],t[1],"o",o),i.setXYAt(n[0],n[1],"i",o+1),a&&i.setXYAt(e[0],e[1],"v",o),i.setXYAt(r[0],r[1],"v",o+1)},re.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},re.prototype.addShapes=function(e,t,n){var r,i,o,a,s,l,c,u,h=e.pathsData,d=e.shape.paths.shapes,p=e.shape.paths._length,f=0,m=[],g=!0;for(n?(s=n._length,u=n._length):(n=Ae.newElement(),s=0,u=0),m.push(n),r=0;r<p;r+=1){for(l=h[r].lengths,n.c=d[r].c,o=d[r].c?l.length:l.length+1,i=1;i<o;i+=1)if(f+(a=l[i-1]).addedLength<t.s)f+=a.addedLength,n.c=!1;else{if(f>t.e){n.c=!1;break}t.s<=f&&t.e>=f+a.addedLength?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[i],d[r].v[i],n,s,g),g=!1):(c=G.getNewSegment(d[r].v[i-1],d[r].v[i],d[r].o[i-1],d[r].i[i],(t.s-f)/a.addedLength,(t.e-f)/a.addedLength,l[i-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1),f+=a.addedLength,s+=1}if(d[r].c&&l.length){if(a=l[i-1],f<=t.e){var y=l[i-1].addedLength;t.s<=f&&t.e>=f+y?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[0],d[r].v[0],n,s,g),g=!1):(c=G.getNewSegment(d[r].v[i-1],d[r].v[0],d[r].o[i-1],d[r].i[0],(t.s-f)/y,(t.e-f)/y,l[i-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1)}else n.c=!1;f+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>t.e)break;r<p-1&&(n=Ae.newElement(),g=!0,m.push(n),s=0)}return m},te.registerModifier("tm",re),V([ne],ie),ie.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=X.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ie.prototype.processPath=function(e,t){var n,r=Ae.newElement();r.c=e.c;var i,o,a,s,l,c,u,h,d,p,f,m,g=e._length,v=0;for(n=0;n<g;n+=1)i=e.v[n],a=e.o[n],o=e.i[n],i[0]===a[0]&&i[1]===a[1]&&i[0]===o[0]&&i[1]===o[1]?0!==n&&n!==g-1||e.c?(s=0===n?e.v[g-1]:e.v[n-1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=f=i[0]+(s[0]-i[0])*c,h=m=i[1]-(i[1]-s[1])*c,d=u-(u-i[0])*y,p=h-(h-i[1])*y,r.setTripleAt(u,h,d,p,f,m,v),v+=1,s=n===g-1?e.v[0]:e.v[n+1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=d=i[0]+(s[0]-i[0])*c,h=p=i[1]+(s[1]-i[1])*c,f=u-(u-i[0])*y,m=h-(h-i[1])*y,r.setTripleAt(u,h,d,p,f,m,v),v+=1):(r.setTripleAt(i[0],i[1],a[0],a[1],o[0],o[1],v),v+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],v),v+=1);return r},ie.prototype.processShapes=function(e){var t,n,r,i,o,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},te.registerModifier("rd",ie),V([ne],oe),oe.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=X.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},oe.prototype.processPath=function(e,t){var n=t/100,r=[0,0],i=e._length,o=0;for(o=0;o<i;o+=1)r[0]+=e.v[o][0],r[1]+=e.v[o][1];r[0]/=i,r[1]/=i;var a,s,l,c,u,h,d=Ae.newElement();for(d.c=e.c,o=0;o<i;o+=1)a=e.v[o][0]+(r[0]-e.v[o][0])*n,s=e.v[o][1]+(r[1]-e.v[o][1])*n,l=e.o[o][0]+(r[0]-e.o[o][0])*-n,c=e.o[o][1]+(r[1]-e.o[o][1])*-n,u=e.i[o][0]+(r[0]-e.i[o][0])*-n,h=e.i[o][1]+(r[1]-e.i[o][1])*-n,d.setTripleAt(a,s,l,c,u,h,o);return d},oe.prototype.processShapes=function(e){var t,n,r,i,o,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},te.registerModifier("pb",oe),V([ne],ae),ae.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=X.getProp(e,t.c,0,null,this),this.o=X.getProp(e,t.o,0,null,this),this.tr=J.getTransformProperty(e,t.tr,this),this.so=X.getProp(e,t.tr.so,0,.01,this),this.eo=X.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new q,this.rMatrix=new q,this.sMatrix=new q,this.tMatrix=new q,this.matrix=new q},ae.prototype.applyTransforms=function(e,t,n,r,i,o){var a=o?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);e.translate(r.p.v[0]*a*i,r.p.v[1]*a*i,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*a*i),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(o?1/s:s,o?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},ae.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ae.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},ae.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},ae.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},ae.prototype.processShapes=function(e){var t,n,r,i,o,a=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,r=0;r<=this._groups.length-1;r+=1){if(s=o<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var u=this.elemsData[r].it,h=u[u.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}o+=1}this._currentCopies=l;var d=this.o.v,p=d%1,f=d>0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,w,b=0;if(d>0){for(;b<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),b+=p)}else if(d<0){for(;b>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),b-=p)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(w=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==b){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<w;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<w;v+=1)n[v]=this.matrix.props[v];b+=1,o-=1,r+=i}}else for(o=this._currentCopies,r=0,i=1;o;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,r+=i;return a},ae.prototype.addShape=function(){},te.registerModifier("rp",ae),se.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(D(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},se.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)Ae.release(this.shapes[e]);this._length=0},le.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},V([F],le),ce.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},ce.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},ce.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,i=4*this.data.p;for(t=0;t<i;t+=1)n=t%4===0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)n=t%2===0?100:1,r=t%2===0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},V([F],ce);var ue=function(e,t,n,r){if(0===t)return"";var i,o=e.o,a=e.i,s=e.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(a[i][0],a[i][1])+" "+r.applyToPointStringified(s[i][0],s[i][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},he=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):Howl?new Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),de=function(){var e=function(){var e=N("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=t+i}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function i(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}
2.bind(this),50)}function o(t){var n=r(t,this.assetsPath,this.path),i=B("image");l?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:t};return o}function a(t){var n=r(t,this.assetsPath,this.path),i=N("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.src=n;var o={img:i,assetData:t};return o}function s(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return Z.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function c(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))}function u(e){this.path=e||""}function h(e){this.assetsPath=e||""}function d(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null}function p(){this.imagesLoadedCb=null,this.images.length=0}function f(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function y(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return y.prototype={loadAssets:c,setAssetsPath:h,setPath:u,loadedImages:f,loadedFootages:m,destroy:p,getAsset:d,createImgData:a,createImageData:o,imageLoaded:t,footageLoaded:n,setCacheType:g},y}(),pe=function(){var e={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),e}(),fe=function(){var e={};function t(e,t){var n=B("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var e=B("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),e}return e.createFilter=t,e.createAlphaToLuminanceFilter=n,e}();function me(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=D(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ge(e,t,n){var r={propType:!1},i=X.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,g,n):r,rx:o.rx?i(e,o.rx,0,g,n):r,ry:o.ry?i(e,o.ry,0,g,n):r,sk:o.sk?i(e,o.sk,0,g,n):r,sa:o.sa?i(e,o.sa,0,g,n):r,s:o.s?i(e,o.s,1,.01,n):r,a:o.a?i(e,o.a,1,0,n):r,o:o.o?i(e,o.o,0,.01,n):r,p:o.p?i(e,o.p,1,0,n):r,sw:o.sw?i(e,o.sw,0,0,n):r,sc:o.sc?i(e,o.sc,1,0,n):r,fc:o.fc?i(e,o.fc,1,0,n):r,fh:o.fh?i(e,o.fh,0,0,n):r,fs:o.fs?i(e,o.fs,0,.01,n):r,fb:o.fb?i(e,o.fb,0,.01,n):r,t:o.t?i(e,o.t,0,0,n):r},this.s=we.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function ye(e,t,n,r,i,o){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function ve(e,t){this._frameId=i,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}me.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=X.getProp;for(e=0;e<n;
vendor: 9,557 bytes, line 2
2e+=1)t=this._textData.a[e],this._animatorsData[e]=new ge(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},me.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,o,a,s,l,c,u,h,d,p,f,m,g,y,v,w,b,_=this._moreOptions.alignment.v,x=this._animatorsData,A=this._textData,k=this.mHelper,S=this._renderType,E=this.renderedLetters.length,C=e.l;if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var M,I=b.v;for(this._pathData.r.v&&(I=I.reverse()),a={tLength:0,segments:[]},o=I._length-1,y=0,i=0;i<o;i+=1)M=G.buildBezierData(I.v[i],I.v[i+1],[I.o[i][0]-I.v[i][0],I.o[i][1]-I.v[i][1]],[I.i[i+1][0]-I.v[i+1][0],I.i[i+1][1]-I.v[i+1][1]]),a.tLength+=M.segmentLength,a.segments.push(M),y+=M.segmentLength;i=o,b.v.c&&(M=G.buildBezierData(I.v[i],I.v[0],[I.o[i][0]-I.v[i][0],I.o[i][1]-I.v[i][1]],[I.i[0][0]-I.v[0][0],I.i[0][1]-I.v[0][1]]),a.tLength+=M.segmentLength,a.segments.push(M),y+=M.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,d=0,h=1,c=0,u=!0,m=a.segments,s<0&&b.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),h=(f=m[d=m.length-1].points).length-1;s<0;)s+=f[h].partialLength,(h-=1)<0&&(h=(f=m[d-=1].points).length-1);p=(f=m[d].points)[h-1],g=(l=f[h]).partialLength}o=C.length,n=0,r=0;var L,O,D,B,N,F=1.2*e.finalSize*.714,j=!0;D=x.length;var U,z,q,W,V,H,K,Z,Q,Y,X,J,$=-1,ee=s,te=d,ne=h,re=-1,ie="",oe=this.defaultPropsArray;if(2===e.j||1===e.j){var ae=0,se=0,le=2===e.j?-.5:-1,ce=0,ue=!0;for(i=0;i<o;i+=1)if(C[i].n){for(ae&&(ae+=se);ce<i;)C[ce].animatorJustifyOffset=ae,ce+=1;ae=0,ue=!0}else{for(O=0;O<D;O+=1)(L=x[O].a).t.propType&&(ue&&2===e.j&&(se+=L.t.v*le),(N=x[O].s.getMult(C[i].anIndexes[O],A.a[O].s.totalChars)).length?ae+=L.t.v*N[0]*le:ae+=L.t.v*N*le);ue=!1}for(ae&&(ae+=se);ce<i;)C[ce].animatorJustifyOffset=ae,ce+=1}for(i=0;i<o;i+=1){if(k.reset(),W=1,C[i].n)n=0,r+=e.yOffset,r+=j?1:0,s=ee,j=!1,this._hasMaskedPath&&(h=ne,p=(f=m[d=te].points)[h-1],g=(l=f[h]).partialLength,c=0),ie="",X="",Q="",J="",oe=this.defaultPropsArray;else{if(this._hasMaskedPath){if(re!==C[i].line){switch(e.j){case 1:s+=y-e.lineWidths[C[i].line];break;case 2:s+=(y-e.lineWidths[C[i].line])/2}re=C[i].line}$!==C[i].ind&&(C[$]&&(s+=C[$].extra),s+=C[i].an/2,$=C[i].ind),s+=_[0]*C[i].an*.005;var he=0;for(O=0;O<D;O+=1)(L=x[O].a).p.propType&&((N=x[O].s.getMult(C[i].anIndexes[O],A.a[O].s.totalChars)).length?he+=L.p.v[0]*N[0]:he+=L.p.v[0]*N),L.a.propType&&((N=x[O].s.getMult(C[i].anIndexes[O],A.a[O].s.totalChars)).length?he+=L.a.v[0]*N[0]:he+=L.a.v[0]*N);for(u=!0,this._pathData.a.v&&(s=.5*C[0].an+(y-this._pathData.f.v-.5*C[0].an-.5*C[C.length-1].an)*$/(o-1),s+=this._pathData.f.v);u;)c+g>=s+he||!f?(v=(s+he-c)/l.partialLength,z=p.point[0]+(l.point[0]-p.point[0])*v,q=p.point[1]+(l.point[1]-p.point[1])*v,k.translate(-_[0]*C[i].an*.005,-_[1]*F*.01),u=!1):f&&(c+=l.partialLength,(h+=1)>=f.length&&(h=0,m[d+=1]?f=m[d].points:b.v.c?(h=0,f=m[d=0].points):(c-=l.partialLength,f=null)),f&&(p=l,g=(l=f[h]).partialLength));U=C[i].an/2-C[i].add,k.translate(-U,0,0)}else U=C[i].an/2-C[i].add,k.translate(-U,0,0),k.translate(-_[0]*C[i].an*.005,-_[1]*F*.01,0);for(O=0;O<D;O+=1)(L=x[O].a).t.propType&&(N=x[O].s.getMult(C[i].anIndexes[O],A.a[O].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?N.length?s+=L.t.v*N[0]:s+=L.t.v*N:N.length?n+=L.t.v*N[0]:n+=L.t.v*N));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(V=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(K=[e.fc[0],e.fc[1],e.fc[2]]),O=0;O<D;O+=1)(L=x[O].a).a.propType&&((N=x[O].s.getMult(C[i].anIndexes[O],A.a[O].s.totalChars)).length?k.translate(-L.a.v[0]*N[0],-L.a.v[1]*N[1],L.a.v[2]*N[2]):k.translate(-L.a.v[0]*N,-L.a.v[1]*N,L.a.v[2]*N));for(O=0;O<D;O+=1)(L=x[O].a).s.propType&&((N=x[O].s.getMult(C[i].anIndexes[O],A.a[O].s.totalChars)).length?k.scale(1+(L.s.v[0]-1)*N[0],1+(L.s.v[1]-1)*N[1],1):k.scale(1+(L.s.v[0]-1)*N,1+(L.s.v[1]-1)*N,1));for(O=0;O<D;O+=1){if(L=x[O].a,N=x[O].s.getMult(C[i].anIndexes[O],A.a[O].s.totalChars),L.sk.propType&&(N.length?k.skewFromAxis(-L.sk.v*N[0],L.sa.v*N[1]):k.skewFromAxis(-L.sk.v*N,L.sa.v*N)),L.r.propType&&(N.length?k.rotateZ(-L.r.v*N[2]):k.rotateZ(-L.r.v*N)),L.ry.propType&&(N.length?k.rotateY(L.ry.v*N[1]):k.rotateY(L.ry.v*N)),L.rx.propType&&(N.length?k.rotateX(L.rx.v*N[0]):k.rotateX(L.rx.v*N)),L.o.propType&&(N.length?W+=(L.o.v*N[0]-W)*N[0]:W+=(L.o.v*N-W)*N),e.strokeWidthAnim&&L.sw.propType&&(N.length?H+=L.sw.v*N[0]:H+=L.sw.v*N),e.strokeColorAnim&&L.sc.propType)for(Z=0;Z<3;Z+=1)N.length?V[Z]+=(L.sc.v[Z]-V[Z])*N[0]:V[Z]+=(L.sc.v[Z]-V[Z])*N;if(e.fillColorAnim&&e.fc){if(L.fc.propType)for(Z=0;Z<3;Z+=1)N.length?K[Z]+=(L.fc.v[Z]-K[Z])*N[0]:K[Z]+=(L.fc.v[Z]-K[Z])*N;L.fh.propType&&(K=N.length?R(K,L.fh.v*N[0]):R(K,L.fh.v*N)),L.fs.propType&&(K=N.length?T(K,L.fs.v*N[0]):T(K,L.fs.v*N)),L.fb.propType&&(K=N.length?P(K,L.fb.v*N[0]):P(K,L.fb.v*N))}}for(O=0;O<D;O+=1)(L=x[O].a).p.propType&&(N=x[O].s.getMult(C[i].anIndexes[O],A.a[O].s.totalChars),this._hasMaskedPath?N.length?k.translate(0,L.p.v[1]*N[0],-L.p.v[2]*N[1]):k.translate(0,L.p.v[1]*N,-L.p.v[2]*N):N.length?k.translate(L.p.v[0]*N[0],L.p.v[1]*N[1],-L.p.v[2]*N[2]):k.translate(L.p.v[0]*N,L.p.v[1]*N,-L.p.v[2]*N));if(e.strokeWidthAnim&&(Q=H<0?0:H),e.strokeColorAnim&&(Y="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),e.fillColorAnim&&e.fc&&(X="rgb("+Math.round(255*K[0])+","+Math.round(255*K[1])+","+Math.round(255*K[2])+")"),this._hasMaskedPath){if(k.translate(0,-e.ls),k.translate(0,_[1]*F*.01+r,0),this._pathData.p.v){w=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var de=180*Math.atan(w)/Math.PI;l.point[0]<p.point[0]&&(de+=180),k.rotate(-de*Math.PI/180)}k.translate(z,q,0),s-=_[0]*C[i].an*.005,C[i+1]&&$!==C[i+1].ind&&(s+=C[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(k.translate(n,r,0),e.ps&&k.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:k.translate(C[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[i].line]),0,0);break;case 2:k.translate(C[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[i].line])/2,0,0)}k.translate(0,-e.ls),k.translate(U,0,0),k.translate(_[0]*C[i].an*.005,_[1]*F*.01,0),n+=C[i].l+.001*e.tr*e.finalSize}"html"===S?ie=k.toCSS():"svg"===S?ie=k.to2dCSS():oe=[k.props[0],k.props[1],k.props[2],k.props[3],k.props[4],k.props[5],k.props[6],k.props[7],k.props[8],k.props[9],k.props[10],k.props[11],k.props[12],k.props[13],k.props[14],k.props[15]],J=W}E<=i?(B=new ye(J,Q,Y,X,ie,oe),this.renderedLetters.push(B),E+=1,this.lettersChangedFlag=!0):(B=this.renderedLetters[i],this.lettersChangedFlag=B.update(J,Q,Y,X,ie,oe)||this.lettersChangedFlag)}}},me.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},me.prototype.mHelper=new q,me.prototype.defaultPropsArray=[],V([F],me),ye.prototype.update=function(e,t,n,r,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,a=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},ve.prototype.defaultBoxWidth=[0,0],ve.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},ve.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},ve.prototype.searchProperty=function(){return this.searchKeyframes()},ve.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},ve.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},ve.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)o=n!==this.keysIndex?this.effectsSequence[r](o,o.t):this.effectsSequence[r](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},ve.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},ve.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,o=e.length,a=!1;i<o;)t=e.charCodeAt(i),Y.isCombinedCharacter(t)?r[r.length-1]+=e.charAt(i):t>=55296&&t<=56319?(n=e.charCodeAt(i+1))>
vendor: 4,665 bytes, line 2
2=56320&&n<=57343?(a||Y.isModifier(t,n)?(r[r.length-1]+=e.substr(i,2),a=!1):r.push(e.substr(i,2)),i+=1):r.push(e.charAt(i)):t>56319?(n=e.charCodeAt(i+1),Y.isZeroWidthJoiner(t,n)?(a=!0,r[r.length-1]+=e.substr(i,2),i+=1):r.push(e.charAt(i))):Y.isZeroWidthJoiner(t)?(r[r.length-1]+=e.charAt(i),a=!0):r.push(e.charAt(i)),i+=1;return r},ve.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,i,o,a,s,l=this.elem.globalData.fontManager,c=this.data,u=[],h=0,d=c.m.g,p=0,f=0,m=0,g=[],y=0,v=0,w=l.getFontByName(e.f),b=0,_=Q(w);e.fWeight=_.weight,e.fStyle=_.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var x,A=e.tr/1e3*e.finalSize;if(e.sz)for(var k,S,E=!0,C=e.sz[0],M=e.sz[1];E;){k=0,y=0,n=(S=this.buildFinalText(e.t)).length,A=e.tr/1e3*e.finalSize;var T=-1;for(t=0;t<n;t+=1)x=S[t].charCodeAt(0),r=!1," "===S[t]?T=t:13!==x&&3!==x||(y=0,r=!0,k+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(S[t],w.fStyle,w.fFamily),b=r?0:s.w*e.finalSize/100):b=l.measureText(S[t],e.f,e.finalSize),y+b>C&&" "!==S[t]?(-1===T?n+=1:t=T,k+=e.finalLineHeight||1.2*e.finalSize,S.splice(t,T===t?1:0,"\r"),T=-1,y=0):(y+=b,y+=A);k+=w.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&M<k?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=S,n=e.finalText.length,E=!1)}y=-A,b=0;var P,R=0;for(t=0;t<n;t+=1)if(r=!1,13===(x=(P=e.finalText[t]).charCodeAt(0))||3===x?(R=0,g.push(y),v=y>v?y:v,y=-2*A,i="",r=!0,m+=1):i=P,l.chars?(s=l.getCharData(P,w.fStyle,l.getFontByName(e.f).fFamily),b=r?0:s.w*e.finalSize/100):b=l.measureText(i,e.f,e.finalSize)," "===P?R+=b+A:(y+=b+A+R,R=0),u.push({l:b,an:b,add:p,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==d){if(p+=b,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(p-=b);f<=t;)u[f].an=p,u[f].ind=h,u[f].extra=b,f+=1;h+=1,p=0}}else if(3==d){if(p+=b,""===i||t===n-1){for(""===i&&(p-=b);f<=t;)u[f].an=p,u[f].ind=h,u[f].extra=b,f+=1;p=0,h+=1}}else u[h].ind=h,u[h].extra=0,h+=1;if(e.l=u,v=y>v?y:v,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var I,L,O,D,B=c.a;a=B.length;var N=[];for(o=0;o<a;o+=1){for((I=B[o]).a.sc&&(e.strokeColorAnim=!0),I.a.sw&&(e.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(e.fillColorAnim=!0),D=0,O=I.s.b,t=0;t<n;t+=1)(L=u[t]).anIndexes[o]=D,(1==O&&""!==L.val||2==O&&""!==L.val&&" "!==L.val||3==O&&(L.n||" "==L.val||t==n-1)||4==O&&(L.n||t==n-1))&&(1===I.s.rn&&N.push(D),D+=1);c.a[o].s.totalChars=D;var F,j=-1;if(1===I.s.rn)for(t=0;t<n;t+=1)j!=(L=u[t]).anIndexes[o]&&(j=L.anIndexes[o],F=N.splice(Math.floor(Math.random()*N.length),1)[0]),L.anIndexes[o]=F}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=w.ascent*e.finalSize/100},ve.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.elem.addDynamicProperty(this)},ve.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},ve.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},ve.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var we=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=X.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?X.getProp(e,t.e,0,0,this):{v:100},this.o=X.getProp(e,t.o||{k:0},0,0,this),this.xe=X.getProp(e,t.xe||{k:0},0,0,this),this.ne=X.getProp(e,t.ne||{k:0},0,0,this),this.sm=X.getProp(e,t.sm||{k:100},0,0,this),this.a=X.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function i(e,t,n){return new r(e,t,n)}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=W.getBezierEasing(i,o,a,s).get,c=0,u=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)c=l(c=h===u?r>=h?1:0:e(0,t(.5/(h-u)+(r-u)/(h-u),1)));else if(3===d)c=l(c=h===u?r>=h?0:1:1-e(0,t(.5/(h-u)+(r-u)/(h-u),1)));else if(4===d)h===u?c=0:(c=e(0,t(.5/(h-u)+(r-u)/(h-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===d){if(h===u)c=0;
2else{var p=h-u,f=-p/2+(r=t(e(0,r+.5-u),h-u)),m=p/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===d?(h===u?c=0:(r=t(e(0,r+.5-u),h-u),c=(1+Math.cos(Math.PI+2*Math.PI*r/(h-u)))/2),c=l(c)):(r>=n(u)&&(c=e(0,t(r-u<0?t(h,1)-(u-r):h-r,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var o=r;r=i,i=o}this.finalS=r,this.finalE=i}},V([F],r),{getTextSelectorProp:i}}(),be=function(e,t,n){var r=0,i=e,o=D(i);function a(){return r?o[r-=1]:t()}function s(e){r===i&&(o=_e.double(o),i*=2),n&&n(e),o[r]=e,r+=1}return{newElement:a,release:s}},_e=function(){function e(e){return e.concat(D(e.length))}return{double:e}}(),xe=function(){function e(){return O("float32",2)}return be(8,e)}(),Ae=function(){function e(){return new $}function t(e){var t,n=e._length;for(t=0;t<n;t+=1)xe.release(e.v[t]),xe.release(e.i[t]),xe.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}function n(e){var t,n=r.newElement(),i=void 0===e._length?e.v.length:e._length;for(n.setLength(i),n.c=e.c,t=0;t<i;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n}var r=be(4,e,t);return r.clone=n,r}(),ke=function(){var e={newShapeCollection:i,release:o},t=0,n=4,r=D(n);function i(){return t?r[t-=1]:new se}function o(e){var i,o=e._length;for(i=0;i<o;i+=1)Ae.release(e.shapes[i]);e._length=0,t===n&&(r=_e.double(r),n*=2),r[t]=e,t+=1}return e}(),Se=function(){function e(){return{lengths:[],totalLength:0}}function t(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)Ee.release(e.lengths[t]);e.lengths.length=0}return be(8,e,t)}(),Ee=function(){function e(){return{addedLength:0,percents:O("float32",m),lengths:O("float32",m)}}return be(8,e)}(),Ce=function(){function e(e){for(var t,n=e.split("\r\n"),r={},i=0,o=0;o<n.length;o+=1)2===(t=n[o].split(":")).length&&(r[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(t[r].cm)}catch(a){try{o.payload=e(t[r].cm)}catch(s){o.payload={name:t[r]}}}n.push(o)}return n}}();function Me(){}function Te(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=B("svg");var n="";if(t&&t.title){var r=B("title"),i=E();r.setAttribute("id",i),r.textContent=t.title,this.svgElement.appendChild(r),n+=i}if(t&&t.description){var o=B("desc"),a=E();o.setAttribute("id",a),o.textContent=t.description,this.svgElement.appendChild(o),n+=" "+a}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=B("defs");this.svgElement.appendChild(s);var l=B("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"}},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function Pe(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,o,a=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=D(s),this.solidPath="";var l,c,u,h,d,p,f=this.masksProperties,m=0,g=[],y=E(),v="clipPath",w="clip-path";
vendor: 7,099 bytes, line 2
2for(i=0;i<s;i+=1)if(("a"!==f[i].mode&&"n"!==f[i].mode||f[i].inv||100!==f[i].o.k||f[i].o.x)&&(v="mask",w="mask"),"s"!==f[i].mode&&"i"!==f[i].mode||0!==m?u=null:((u=B("rect")).setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),g.push(u)),o=B("path"),"n"===f[i].mode)this.viewData[i]={op:X.getProp(this.element,f[i].o,0,.01,this.element),prop:ee.getShapeProp(this.element,f[i],3),elem:o,lastPath:""},a.appendChild(o);else{var b;if(m+=1,o.setAttribute("fill","s"===f[i].mode?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero"),0!==f[i].x.k?(v="mask",w="mask",p=X.getProp(this.element,f[i].x,0,null,this.element),b=E(),(h=B("filter")).setAttribute("id",b),(d=B("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),h.appendChild(d),a.appendChild(h),o.setAttribute("stroke","s"===f[i].mode?"#000000":"#ffffff")):(d=null,p=null),this.storedData[i]={elem:o,x:p,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===f[i].mode){c=g.length;var _=B("g");for(l=0;l<c;l+=1)_.appendChild(g[l]);var x=B("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",y+"_"+m),x.appendChild(o),a.appendChild(x),_.setAttribute("mask","url("+r+"#"+y+"_"+m+")"),g.length=0,g.push(_)}else g.push(o);f[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:o,lastPath:"",op:X.getProp(this.element,f[i].o,0,.01,this.element),prop:ee.getShapeProp(this.element,f[i],3),invRect:u},this.viewData[i].prop.k||this.drawPath(f[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=B(v),s=g.length,i=0;i<s;i+=1)this.maskElement.appendChild(g[i]);m>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(w,"url("+r+"#"+y+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function Re(){}function Ie(){}function Le(){}function Oe(){}function De(){}function Be(e,t){this.elem=e,this.pos=t}function Ne(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=B("path"),this.msElem=null}function Fe(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,i=e.length;r<i;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function je(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function Ue(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=X.getProp(e,t.o,0,.01,this),this.w=X.getProp(e,t.w,0,null,this),this.d=new le(e,t.d||{},"svg",this),this.c=X.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function ze(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=X.getProp(e,t.o,0,.01,this),this.c=X.getProp(e,t.c,1,255,this),this.style=n}function qe(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function We(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=X.getProp(e,t.w,0,null,this),this.d=new le(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function Ve(){this.it=[],this.prevViewData=[],this.gr=B("g")}Me.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},Me.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},Me.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Me.prototype.createAudio=function(e){return new tt(e,this.globalData,this)},Me.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},Me.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},Me.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,r=e.length,i=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<i;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},Me.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},Me.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Me.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,i=this.layers,o=0,a=i.length;o<a;)i[o].ind==t&&(r[o]&&!0!==r[o]?(n.push(r[o]),r[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(e,i[o].parent,n):e.setHierarchy(n)):(this.buildItem(o),this.addPendingElement(e))),o+=1},Me.prototype.addPendingElement=function(e){this.pendingElements.push(e)},Me.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},Me.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new Y,this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}},V([Me],Te),Te.prototype.createNull=function(e){return new Ze(e,this.globalData,this)},Te.prototype.createShape=function(e){return new it(e,this.globalData,this)},Te.prototype.createText=function(e){return new rt(e,this.globalData,this)},Te.prototype.createImage=function(e){return new $e(e,this.globalData,this)},Te.prototype.createComp=function(e){return new nt(e,this.globalData,this)},Te.prototype.createSolid=function(e){return new et(e,this.globalData,this)},Te.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
20,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=B("clipPath"),i=B("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var o=E();n.setAttribute("id",o),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+r+"#"+o+")"),t.appendChild(n),this.layers=e.layers,this.elements=D(e.layers.length)},Te.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Te.prototype.updateContainerSize=function(){},Te.prototype.buildItem=function(e){var n=this.elements;if(!n[e]&&99!==this.layers[e].ty){n[e]=!0;var r=this.createItem(this.layers[e]);n[e]=r,t&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt&&(this.elements[e-1]&&!0!==this.elements[e-1]?r.setMatte(n[e-1].layerId):(this.buildItem(e-1),this.addPendingElement(r)))}},Te.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){e.setMatte(this.elements[t-1].layerId);break}t+=1}}},Te.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},Te.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},Te.prototype.hide=function(){this.layerElement.style.display="none"},Te.prototype.show=function(){this.layerElement.style.display="block"},Pe.prototype.getMaskProperty=function(e){return this.viewData[e].prop},Pe.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,i=this.masksProperties.length;for(t=0;t<i;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var o=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+r+"#"+this.storedData[t].filterId+")")),o.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},Pe.prototype.getMaskelement=function(){return this.maskElement},Pe.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},Pe.prototype.drawPath=function(e,t,n){var r,i,o=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,r=1;r<i;r+=1)o+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&i>1&&(o+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==o){var a="";n.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),n.elem.setAttribute("d",a)),n.lastPath=o}},Pe.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},Re.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},Ie.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},Le.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?J.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new q},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)e=this.hierarchy[n].finalTransform.mProp.v.props,t.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):r=!1;var o,a=t.length;for(n=0;n<a;n+=1)o=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-o[0],e[1]-o[1],0];return e},mHelper:new q},Oe.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}},V([Oe,H({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],De),Ne.prototype.reset=function(){this.d="",this._mdf=!1},Fe.prototype.setAsAnimated=function(){this._isAnimated=!0},V([F],Ue),V([F],ze),qe.prototype.initGradientData=function(e,t,n){this.o=X.getProp(e,t.o,0,.01,this),this.s=X.getProp(e,t.s,1,null,this),this.e=X.getProp(e,t.e,1,null,this),this.h=X.getProp(e,t.h||{k:0},0,.01,this),this.a=X.getProp(e,t.a||{k:0},0,g,this),this.g=new ce(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},qe.prototype.setGradientData=function(e,t){var n=E(),i=B(1===t.t?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var o,a,s,l=[];for(s=4*t.g.p,a=0;a<s;a+=4)o=B("stop"),i.appendChild(o),l.push(o);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+r+"#"+n+")"),this.gf=i,this.cst=l},qe.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,o,a=B("mask"),s=B("path");a.appendChild(s);var l=E(),c=E();a.setAttribute("id",c);var u=B(1===e.t?"linearGradient":"radialGradient");u.setAttribute("id",l),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),o=e.g.k.k[
vendor: 1,144 bytes, line 2
20].s?e.g.k.k[0].s.length:e.g.k.k.length;var h=this.stops;for(i=4*e.g.p;i<o;i+=2)(n=B("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),h.push(n);s.setAttribute("gf"===e.ty?"fill":"stroke","url("+r+"#"+l+")"),"gs"===e.ty&&(s.setAttribute("stroke-linecap",U[e.lc||2]),s.setAttribute("stroke-linejoin",z[e.lj||2]),1===e.lj&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=a,this.ost=h,this.maskId=c,t.msElem=s}},V([F],qe),V([qe,F],We);var He=function(){var e=new q,t=new q;function n(e){switch(e.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;default:return null}}function r(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function i(n,r,i){var o,a,s,l,c,u,h,d,p,f,m,g=r.styles.length,y=r.lvl;for(u=0;u<g;u+=1){if(l=r.sh._mdf||i,r.styles[u].lvl<y){for(d=t.reset(),f=y-r.styles[u].lvl,m=r.transformers.length-1;!l&&f>0;)l=r.transformers[m].mProps._mdf||l,f-=1,m-=1;
vendor: 4,290 bytes, line 2
2if(l)for(f=y-r.styles[u].lvl,m=r.transformers.length-1;f>0;)p=r.transformers[m].mProps.v.props,d.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),f-=1,m-=1}else d=e;if(a=(h=r.sh.paths)._length,l){for(s="",o=0;o<a;o+=1)(c=h.shapes[o])&&c._length&&(s+=ue(c,c._length,c.c,d));r.caches[u]=s}else s=r.caches[u];r.styles[u].d+=!0===n.hd?"":s,r.styles[u]._mdf=l||r.styles[u]._mdf}}function o(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+h(t.c.v[0])+","+h(t.c.v[1])+","+h(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,n){s(e,t,n),l(e,t,n)}function s(e,t,n){var r,i,o,a,s,l=t.gf,c=t.g._hasOpacity,u=t.s.v,h=t.e.v;if(t.o._mdf||n){var d="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(d,t.o.v)}if(t.s._mdf||n){var p=1===e.t?"x1":"cx",f="x1"===p?"y1":"cy";l.setAttribute(p,u[0]),l.setAttribute(f,u[1]),c&&!t.g._collapsable&&(t.of.setAttribute(p,u[0]),t.of.setAttribute(f,u[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(o=r.length,i=0;i<o;i+=1)(a=r[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(c&&(t.g._omdf||n)){var g=t.g.o;for(o=(r=t.g._collapsable?t.cst:t.ost).length,i=0;i<o;i+=1)a=r[i],t.g._collapsable||a.setAttribute("offset",g[2*i]+"%"),a.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",h[0]),t.of.setAttribute("y2",h[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(u[0]-h[0],2)+Math.pow(u[1]-h[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(u[0]-h[0],2)+Math.pow(u[1]-h[1],2)));var y=Math.atan2(h[1]-u[1],h[0]-u[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var w=s*v,b=Math.cos(y+t.a.v)*w+u[0],_=Math.sin(y+t.a.v)*w+u[1];l.setAttribute("fx",b),l.setAttribute("fy",_),c&&!t.g._collapsable&&(t.of.setAttribute("fx",b),t.of.setAttribute("fy",_))}}function l(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+h(t.c.v[0])+","+h(t.c.v[1])+","+h(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:n}}();function Ke(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function Ge(){}function Ze(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function Qe(){}function Ye(){}function Xe(){}function Je(){}function $e(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function et(e,t,n){this.initElement(e,t,n)}function tt(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this.tm=e.tm?X.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function nt(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?D(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?X.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function rt(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function it(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function ot(e,t){this.filterManager=t;var n=B("feColorMatrix");if(n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result","f1"),e.a
2ppendChild(n),(n=B("feColorMatrix")).setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result","f2"),e.appendChild(n),this.matrixFilter=n,100!==t.effectElements[2].p.v||t.effectElements[2].p.k){var r,i=B("feMerge");e.appendChild(i),(r=B("feMergeNode")).setAttribute("in","SourceGraphic"),i.appendChild(r),(r=B("feMergeNode")).setAttribute("in","f2"),i.appendChild(r)}}function at(e,t){this.filterManager=t;var n=B("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.appendChild(n),this.matrixFilter=n}function st(e,t){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var n=B("feGaussianBlur");e.appendChild(n),this.feGaussianBlur=n}function lt(e,t){this.initialized=!1,this.filterManager=t,this.elem=e,this.paths=[]}function ct(e,t){this.filterManager=t;var n=B("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result","f1"),e.appendChild(n);var r=B("feComponentTransfer");r.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(r),this.matrixFilter=r;var i=B("feFuncR");i.setAttribute("type","table"),r.appendChild(i),this.feFuncR=i;var o=B("feFuncG");o.setAttribute("type","table"),r.appendChild(o),this.feFuncG=o;var a=B("feFuncB");a.setAttribute("type","table"),r.appendChild(a),this.feFuncB=a}function ut(e,t){this.filterManager=t;var n=this.filterManager.effectElements,r=B("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",r)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",r)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",r)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",r)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(r.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(r),r=B("feComponentTransfer")),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&(r.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(r),this.feFuncRComposed=this.createFeFunc("feFuncR",r),this.feFuncGComposed=this.createFeFunc("feFuncG",r),this.feFuncBComposed=this.createFeFunc("feFuncB",r))}function ht(e,t){var n=t.container.globalData.renderConfig.filterSize;e.setAttribute("x",n.x),e.setAttribute("y",n.y),e.setAttribute("width",n.width),e.setAttribute("height",n.height),this.filterManager=t;var r=B("feGaussianBlur");r.setAttribute("in","SourceAlpha"),r.setAttribute("result","drop_shadow_1"),r.setAttribute("stdDeviation","0"),this.feGaussianBlur=r,e.appendChild(r);var i=B("feOffset");i.setAttribute("dx","25"),i.setAttribute("dy","0"),i.setAttribute("in","drop_shadow_1"),i.setAttribute("result","drop_shadow_2"),this.feOffset=i,e.appendChild(i);var o=B("feFlood");o.setAttribute("flood-color","#00ff00"),o.setAttribute("flood-opacity","1"),o.setAttribute("result","drop_shadow_3"),this.feFlood=o,e.appendChild(o);var a=B("feComposite");a.setAttribute("in","drop_shadow_3"),a.setAttribute("in2","drop_shadow_2"),a.setAttribute("operator","in"),a.setAttribute("result","drop_shadow_4"),e.appendChild(a);var s,l=B("feMerge");e.appendChild(l),s=B("feMergeNode"),l.appendChild(s),(s=B("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=s,this.feMerge=l,this.originalNodeAdded=!1,l.appendChild(s)}Ke.prototype={addTransformSequence:function(e){var t,n=e.length,r="_";for(t=0;t<n;t+=1)r+=e[t].transform.key+"_";var i=this.sequences[r];
2return i||(i={transforms:[].concat(e),finalTransform:new q,_mdf:!1},this.sequences[r]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var n,r=0,i=e.transforms.length,o=t;r<i&&!t;){if(e.transforms[r].transform.mProps._mdf){o=!0;break}r+=1}if(o)for(e.finalTransform.reset(),r=i-1;r>=0;r-=1)n=e.transforms[r].transform.mProps.v.props,e.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]);e._mdf=o},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},Ge.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var e=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(e),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var e=j(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=E(),this.data.sr||(this.data.sr=1),this.effectsManager=new yt(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Ze.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Ze.prototype.renderFrame=function(){},Ze.prototype.getBaseElement=function(){return null},Ze.prototype.destroy=function(){},Ze.prototype.sourceRectAtTime=function(){},Ze.prototype.hide=function(){},V([Ge,Le,Re,Ie],Ze),Qe.prototype={initRendererElement:function(){this.layerElement=B("g")},createContainerElements:function(){this.matteElement=B("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e,t,n,i=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var o=B("mask");o.setAttribute("id",this.layerId),o.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),o.appendChild(this.layerElement),i=o,this.globalData.defs.appendChild(o),pe.maskType||1!=this.data.td||(o.setAttribute("mask-type","luminance"),e=E(),t=fe.createFilter(e),this.globalData.defs.appendChild(t),t.appendChild(fe.createAlphaToLuminanceFilter()),(n=B("g")).appendChild(this.layerElement),i=n,o.appendChild(n),n.setAttribute("filter","url("+r+"#"+e+")"))}else if(2==this.data.td){var a=B("mask");a.setAttribute("id",this.layerId),a.setAttribute("mask-type","alpha");var s=B("g");a.appendChild(s),e=E(),t=fe.createFilter(e);var l=B("feComponentTransfer");l.setAttribute("in","SourceGraphic"),t.appendChild(l);var c=B("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),l.appendChild(c),this.globalData.defs.appendChild(t);var u=B("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),s.setAttribute("filter","url("+r+"#"+e+")"),s.appendChild(u),s.appendChild(this.layerElement),i=s,pe.maskType||(a.setAttribute("mask-type","luminance"),t.appendChild(fe.createAlphaToLuminanceFilter()),n=B("g"),s.appendChild(u),n.appendChild(this.layerElement),i=n,s.appendChild(n)),this.globalData.defs.appendChild(a)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var h=B("clipPath"),d=B("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=E();if(h.setAttribute("id",p),h.appendChild(d),this.globalData.defs.appendChild(h),this.checkMasks()){var f=B("g");f.setAttribute("clip-path","url("+r+"#"+p+")"),f.appendChild(this.layerElement),this.transformedElement=f,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+r+"#"+p+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("op
2acity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Pe(this.data,this,this.globalData),this.renderableEffectsManager=new ft(this)},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+r+"#"+e+")")}},Ye.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=0,n=this.shapeModifiers.length;t<n;)if(this.shapeModifiers[t].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.push(new Be(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}},Xe.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new ve(this,e.t,this.dynamicProperties),this.textAnimator=new me(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Xe.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},Xe.prototype.createPathShape=function(e,t){var n,r,i=t.length,o="";for(n=0;n<i;n+=1)r=t[n].ks.k,o+=ue(r,r.i.length,!0,e);return o},Xe.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},Xe.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},Xe.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},Xe.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,i,0)},Xe.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},Xe.prototype.emptyProp=new ye,Xe.prototype.destroy=function(){},V([Ge,Le,Re,Ie,De],Je),Je.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},Je.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},Je.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Je.prototype.setElements=function(e){this.elements=e},Je.prototype.getElements=function(){return this.elements},Je.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},Je.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},V([Ge,Le,Qe,Re,Ie,De],$e),$e.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=B("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},$e.prototype.sourceRectAtTime=function(){return this.sourceRect},V([$e],et),et.prototype.createContent=function(){var e=B("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},tt.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}},V([Oe,Ge,Ie],tt),tt.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},tt.prototype.show=function(){},tt.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},tt.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1}
vendor: 8,006 bytes, line 2
2,tt.prototype.resume=function(){this._canPlay=!0},tt.prototype.setRate=function(e){this.audio.rate(e)},tt.prototype.volume=function(e){this.audio.volume(e)},tt.prototype.getBaseElement=function(){return null},tt.prototype.destroy=function(){},tt.prototype.sourceRectAtTime=function(){},tt.prototype.initExpressions=function(){},V([Te,Je,Qe],nt),V([Ge,Le,Qe,Re,Ie,De,Xe],rt),rt.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=B("text"))},rt.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(i),i=""):i+=e[t],t+=1;return r.push(i),r},rt.prototype.buildNewText=function(){var e,t,n=this.textProperty.currentData;this.renderedLetters=D(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var a,s=n.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c,u=this.mHelper,h="",d=this.data.singleShape,p=0,f=0,m=!0,g=.001*n.tr*n.finalSize;if(!d||l||n.sz){var y,v,w=this.textSpans.length;for(e=0;e<t;e+=1)l&&d&&0!==e||(a=w>e?this.textSpans[e]:B(l?"path":"text"),w<=e&&(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e]=a,this.layerElement.appendChild(a)),a.style.display="inherit"),u.reset(),u.scale(n.finalSize/100,n.finalSize/100),d&&(s[e].n&&(p=-g,f+=n.yOffset,f+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,p,f),p+=s[e].l||0,p+=g),l?(c=(y=(v=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily))&&v.data||{}).shapes?y.shapes[0].it:[],d?h+=this.createPathShape(u,c):a.setAttribute("d",this.createPathShape(u,c))):(d&&a.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));d&&a&&a.setAttribute("d",h)}else{var b=this.textContainer,_="start";switch(n.j){case 1:_="end";break;case 2:_="middle";break;default:_="start"}b.setAttribute("text-anchor",_),b.setAttribute("letter-spacing",g);var x=this.buildTextContents(n.finalText);for(t=x.length,f=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e]||B("tspan")).textContent=x[e],a.setAttribute("x",0),a.setAttribute("y",f),a.style.display="inherit",b.appendChild(a),this.textSpans[e]=a,f+=n.finalLineHeight;this.layerElement.appendChild(b)}for(;e<this.textSpans.length;)this.textSpans[e].style.display="none",e+=1;this._sizeChanged=!0},rt.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},rt.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,r,i=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(t=o.length,e=0;e<t;e+=1)o[e].n||(n=i[e],r=this.textSpans[e],n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},V([Ge,Le,Qe,Ye,Re,Ie,De],it),it.prototype.initSecondaryElement=function(){},it.prototype.identityMatrix=new q,it.prototype.buildExpressionInterface=function(){},it.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},it.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(n=0;n<o;n+=1){for(r=this.stylesList[n],s=!1,a.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},it.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},it.prototype.createStyleElement=function(e,t){var n,i=new Ne(e,t),o=i.pElem;return"st"===e.ty?n=new Ue(this,e,i):"fl"===e.ty?n=new ze(this,e,i):"gf"!==e.ty&&"gs"!==e.ty||(n=new("gf"===e.ty?qe:We)(this,e,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),o.setAttribute("mask","url("+r+"#"+n.maskId+")"))),"st"!==e.ty&&"gs"!==e.ty||(o.setAttribute("stroke-linecap",U[e.lc||2]),o.setAttribute("stroke-linejoin",z[e.lj||2]),o.setAttribute("fill-opacity","0"),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&o.setAttribute("fill-rule","evenodd"),e.ln&&o.setAttribute("id",e.ln),e.cl&&o.setAttribute("class",e.cl),e.bm&&(o.style["mix-blend-mode"]=j(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,n),n},it.prototype.createGroupElement=function(e){var t=new Ve;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=j(e.bm)),t},it.prototype.createTransformElement=function(e,t){var n=J.getTransformProperty(this,e,this),r=new je(n,n.o,t);return this.addToAnimatedContents(e,r),r},it.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var i=new Fe(t,n,ee.getShapeProp(this,e,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},it.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:He.createRenderFunction(e),element:t,data:e})},it.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},it.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},it.prototype.searchShapes=function(e,t,n,r,i,o,a){var s,l,c,u,h,d,p=[].concat(o),f=e.length-1,m=[],g=[];for(s=f;s>=0;s-=1){if((d=this.searchProcessedElement(e[s]))?t[s]=n[d-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty)d?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(d)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,p,a),e[s]._render&&t[s].gr.parentNode!==r&&r.appendChild(t[s].gr)}else"tr"===e[s].ty?(d||(t[s]=this.createTransformElement(e[s],r)),u=t[s].transform,p.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(d||(t[s]=this.createShapeElement(e[s],p,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty?(d?(h=t[s]).closed=!1:((h=te.getModifier(e[s].ty)).init(this,e[s]),t[s]=h,this.shapeModifiers.push(h)),g.push(h)):"rp"===e[s].ty&&
vendor: 4,686 bytes, line 2
2(d?(h=t[s]).closed=!0:(h=te.getModifier(e[s].ty),t[s]=h,h.init(this,e,s,t),this.shapeModifiers.push(h),a=!1),g.push(h));this.addProcessedElement(e[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0},it.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},it.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},it.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},ot.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},at.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},st.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,n=this.filterManager.effectElements[0].p.v*t,r=this.filterManager.effectElements[1].p.v,i=3==r?0:n,o=2==r?0:n;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+o);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},lt.prototype.initialize=function(){var e,t,n,i,o=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,n=0):i=1+(n=this.filterManager.effectElements[0].p.v-1),(t=B("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<i;n+=1)e=B("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var a=B("mask"),s=E();a.setAttribute("id",s),a.setAttribute("mask-type","alpha"),a.appendChild(t),this.elem.globalData.defs.appendChild(a);var l=B("g");for(l.setAttribute("mask","url("+r+"#"+s+")");o[0];)l.appendChild(o[0]);this.elem.layerElement.appendChild(l),this.masker=a,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},lt.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var n,r,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(n=this.elem.maskManager.viewData[this.paths[t].m],r=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();o="0 0 0 "+l*a+" ";var c,u=l*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(u/d);for(c=0;c<p;c+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*l+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("op
2acity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+h(255*f[0])+","+h(255*f[1])+","+h(255*f[2])+")")}},ct.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,i=r[0]+" "+n[0]+" "+t[0],o=r[1]+" "+n[1]+" "+t[1],a=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},ut.prototype.createFeFunc=function(e,t){var n=B(e);return n.setAttribute("type","table"),t.appendChild(n),n},ut.prototype.getTableValue=function(e,t,n,r,i){for(var o,a,s=0,l=256,c=Math.min(e,t),u=Math.max(e,t),h=Array.call(null,{length:l}),d=0,p=i-r,f=t-e;s<=256;)a=(o=s/256)<=c?f<0?i:r:o>=u?f<0?r:i:r+p*Math.pow((o-e)/f,1/n),h[d]=a,d+=1,s+=256/(l-1);return h.join(" ")},ut.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},ht.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",I(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*g,i=n*Math.cos(r),o=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var dt=[];function pt(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=B("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function ft(){}pt.prototype.findSymbol=function(e){for(var t=0,n=dt.length;t<n;){if(dt[t]===e)return dt[t];t+=1}return null},pt.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var r,i=n.children,o=0,a=i.length;o<a&&i[o]!==e.layerElement;)o+=1;o<=a-2&&(r=i[o+1]);var s=B("use");s.setAttribute("href","#"+t),r?n.insertBefore(s,r):n.appendChild(s)}},pt.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=E(),r=B("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),dt.push(t);var i=e.globalData.defs;i.appendChild(r);var o=B("symbol");o.setAttribute("id",n),this.replaceInParent(t,n),o.appendChild(t.layerElement),i.appendChild(o);var a=B("use");a.setAttribute("href","#"+n),r.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},pt.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},pt.prototype.renderFrame=function(){this.initialized||this.initialize()};var mt=function(){var t={},n=[],r=0,i=0,o=0,a=!0,s=!1;function l(e){for(var t=0,r=e.target;t<i;)n[t].animation===r&&(n.splice(t,1),t-=1,i-=1,r.isPaused||d()),t+=1}
2function c(e,t){if(!e)return null;for(var r=0;r<i;){if(n[r].elem===e&&null!==n[r].elem)return n[r].animation;r+=1}var o=new gt;return p(o,e),o.setData(e,t),o}function u(){var e,t=n.length,r=[];for(e=0;e<t;e+=1)r.push(n[e].animation);return r}function h(){o+=1,C()}function d(){o-=1}function p(e,t){e.addEventListener("destroy",l),e.addEventListener("_active",h),e.addEventListener("_idle",d),n.push({elem:t,animation:e}),i+=1}function f(e){var t=new gt;return p(t,null),t.setParams(e),t}function m(e,t){var r;for(r=0;r<i;r+=1)n[r].animation.setSpeed(e,t)}function g(e,t){var r;for(r=0;r<i;r+=1)n[r].animation.setDirection(e,t)}function y(e){var t;for(t=0;t<i;t+=1)n[t].animation.play(e)}function v(t){var l,c=t-r;for(l=0;l<i;l+=1)n[l].animation.advanceTime(c);r=t,o&&!s?e.requestAnimationFrame(v):a=!0}function w(t){r=t,e.requestAnimationFrame(v)}function b(e){var t;for(t=0;t<i;t+=1)n[t].animation.pause(e)}function _(e,t,r){var o;for(o=0;o<i;o+=1)n[o].animation.goToAndStop(e,t,r)}function x(e){var t;for(t=0;t<i;t+=1)n[t].animation.stop(e)}function A(e){var t;for(t=0;t<i;t+=1)n[t].animation.togglePause(e)}function k(e){var t;for(t=i-1;t>=0;t-=1)n[t].animation.destroy(e)}function S(e,t,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(r=0;r<o;r+=1)n&&i[r].setAttribute("data-bm-type",n),c(i[r],e);if(t&&0===o){n||(n="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=N("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),a.appendChild(s),c(s,e)}}function E(){var e;for(e=0;e<i;e+=1)n[e].animation.resize()}function C(){!s&&o&&a&&(e.requestAnimationFrame(w),a=!1)}function M(){s=!0}function T(){s=!1,C()}function P(e,t){var r;for(r=0;r<i;r+=1)n[r].animation.setVolume(e,t)}function R(e){var t;for(t=0;t<i;t+=1)n[t].animation.mute(e)}function I(e){var t;for(t=0;t<i;t+=1)n[t].animation.unmute(e)}return t.registerAnimation=c,t.loadAnimation=f,t.setSpeed=m,t.setDirection=g,t.play=y,t.pause=b,t.stop=x,t.togglePause=A,t.searchAnimations=S,t.resize=E,t.goToAndStop=_,t.destroy=k,t.freeze=M,t.unfreeze=T,t.setVolume=P,t.mute=R,t.unmute=I,t.getRegisteredAnimations=u,t}(),gt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=E(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=a,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=f(),this.imagePreloader=new de,this.audioController=he(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this)};function yt(){this.effectElements=[]}V([L],gt),gt.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";switch(e.animType?t=e.animType:e.renderer&&(t=e.renderer),t){case"canvas":this.renderer=new CanvasRenderer(this,e.rendererSettings);break;case"svg":this.renderer=new Te(this,e.rendererSettings);break;default:this.renderer=new HybridRenderer(this,e.rendererSettings)}this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Z.loadAnimation(e.path,this.configAnimation,this.onSetupError))},gt.prototype.onSetupError=function(){this.trigger("data_failed")},gt.prototype.setupAnimation=function(e){Z.completeAnimation(e,this.configAnimation)},gt.prototype.setData=function(e,t){t&&"object"!==typeof t&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));
vendor: 4,307 bytes, line 2
2var o=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==o,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},gt.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,o=e.layers,a=o.length;for(n=0;n<a;n+=1)for(t=0;t<i;){if(r[t].id===o[n].id){r[t]=o[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,Z.completeAnimation(this.animationData,this.onSegmentComplete)},gt.prototype.onSegmentComplete=function(e){this.animationData=e,t&&t.initExpressions(this),this.loadNextSegment()},gt.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Z.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},gt.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},gt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},gt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},gt.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=Ce(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},gt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},gt.prototype.checkLoaded=function(){!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()&&(this.isLoaded=!0,t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},gt.prototype.resize=function(){this.renderer.updateContainerSize()},gt.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},gt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},gt.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}
vendor: 5,683 bytes, line 2
2catch(e){this.triggerRenderFrameError(e)}},gt.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},gt.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},gt.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},gt.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},gt.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},gt.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},gt.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,t,n);this.play()}},gt.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},gt.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},gt.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},gt.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===typeof e[0]){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},gt.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},gt.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},gt.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},gt.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},gt.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},gt.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},gt.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},gt.prototype.getVolume=function(){return this.audioController.getVolume()},gt.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},gt.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},gt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},gt.prototype.getPath=function(){return this.path},gt.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},gt.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},gt.prototype.hide=function(){this.renderer.hide()},gt.prototype.show=function(){this.renderer.show()},gt.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},gt.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":case"drawnFrame":this.triggerEvent(e,new w(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(e,new _(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new b(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new x(e,this.firstFrame,this.totalFrames));break;
2case"destroy":this.triggerEvent(e,new A(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new w(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new _(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new b(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new x(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new A(e,this))},gt.prototype.triggerRenderFrameError=function(e){var t=new k(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},gt.prototype.triggerConfigError=function(e){var t=new S(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var vt={};function wt(e){r=e}function bt(){!0===Rt?mt.searchAnimations(It,Rt,Lt):mt.searchAnimations()}function _t(e){a=e}function xt(e){s=e}function At(e){return!0===Rt&&(e.animationData=JSON.parse(It)),mt.loadAnimation(e)}function kt(e){if("string"===typeof e)switch(e){case"high":m=200;break;default:case"medium":m=50;break;case"low":m=10}else!isNaN(e)&&e>1&&(m=e);v(!(m>=50))}function St(){return"undefined"!==typeof navigator}function Et(e,n){"expressions"===e&&(t=n)}function Ct(e){switch(e){case"propertyFactory":return X;case"shapePropertyFactory":return ee;case"matrix":return q;default:return null}}function Mt(){"complete"===document.readyState&&(clearInterval(Bt),bt())}function Tt(e){for(var t=Pt.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}vt.play=mt.play,vt.pause=mt.pause,vt.setLocationHref=wt,vt.togglePause=mt.togglePause,vt.setSpeed=mt.setSpeed,vt.setDirection=mt.setDirection,vt.stop=mt.stop,vt.searchAnimations=bt,vt.registerAnimation=mt.registerAnimation,vt.loadAnimation=At,vt.setSubframeRendering=_t,vt.resize=mt.resize,vt.goToAndStop=mt.goToAndStop,vt.destroy=mt.destroy,vt.setQuality=kt,vt.inBrowser=St,vt.installPlugin=Et,vt.freeze=mt.freeze,vt.unfreeze=mt.unfreeze,vt.setVolume=mt.setVolume,vt.mute=mt.mute,vt.unmute=mt.unmute,vt.getRegisteredAnimations=mt.getRegisteredAnimations,vt.useWebWorker=function(e){o=e},vt.setIDPrefix=xt,vt.__getFactory=Ct,vt.version="5.8.1";var Pt,Rt="__[STANDALONE]__",It="__[ANIMATIONDATA]__",Lt="";if(Rt){var Ot=document.getElementsByTagName("script"),Dt=Ot[Ot.length-1]||{src:""};Pt=Dt.src.replace(/^[^\?]+\??/,""),Lt=Tt("renderer")}var Bt=setInterval(Mt,100);return vt}(i)}.call(t,n,t,e))||(e.exports=r))},2538:(e,t,n)=>{"use strict";var r=n(7355),i=n(2963),o=n(8146);function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}n(6309),n(7262),n(5524);var s=a(i),l=a(o);function c(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=r.PERA_WALLET_APP_DEEP_LINK;const n=r.detectBrowser();return e&&n&&(t="".concat(t,"?browser=").concat(encodeURIComponent(n))),t}function u(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var h=".pera-wallet-modal-header {\n  position: absolute;\n  top: -44px;\n  right: 0px;\n  left: 0;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n.pera-wallet-modal-header--mobile {\n  display: flex;\n  align-items: center;\n  justify-content: flex-end;\n  position: static;\n}\n.pera-wallet-modal-header--mobile .pera-wallet-modal-header__close-button {\n  width: 24px;\n  height: 24px;\n  margin: 0;\n  padding: 0;\n  background: transparent;\n  border: unset;\n  box-shadow: unset;\n}\n\n.pera-wallet-modal-header__brand {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  font-size: 14px;\n  font-weight: 600;\n  line-height: 24px;\n  letter-spacing: -0.1px;\n  color: #ffffff;\n}\n\n.pera-wallet-modal-header__brand-text {\n  display: flex;\n  align-items: center;\n  gap: 6px;\n}
2\n\n.pera-wallet-modal-header__version-number {\n  color: #9d9dae;\n  font-size: 12px;\n  font-weight: 400;\n  line-height: 18px;\n  letter-spacing: 0.01;\n}\n\n.pera-wallet-button {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: auto;\n  height: 48px;\n  padding: 14px;\n  border: none;\n  border-radius: 12px;\n  outline: none;\n  cursor: pointer;\n  font-family: var(--pera-wallet-modal-font-family);\n  font-size: 14px;\n}\n\n.pera-wallet-modal-header__close-button {\n  width: 32px;\n  height: 32px;\n  margin: 0;\n  padding: 0;\n  background: rgba(44, 53, 89, 0.1);\n  border-radius: 8px;\n}\n\n.pera-wallet-modal-header__close-button__close-icon {\n  width: 20px;\n  height: 20px;\n}";function d(){return document.documentElement.clientWidth<=767}function p(){document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px")}u(h);const f=document.createElement("template"),m=r.isMobile()?"pera-wallet-modal-header pera-wallet-modal-header--mobile":"pera-wallet-modal-header pera-wallet-modal-header--desktop";f.innerHTML='\n  <div class="'.concat(m,'">\n      ').concat(d()&&r.isMobile()?"":"<div class=\"pera-wallet-modal-header__brand\">\n              <img src=\"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='24' height='24' rx='4.8' fill='%23FFEE55'/%3e%3cpath d='M13.0408 5.92462C13.413 7.46693 13.2872 8.8236 12.7597 8.95482C12.2322 9.08605 11.5028 7.94214 11.1306 6.39983C10.7583 4.85752 10.8842 3.50085 11.4117 3.36963C11.9391 3.2384 12.6685 4.38231 13.0408 5.92462Z' fill='black'/%3e%3cpath d='M19.1876 7.25063C18.3632 6.37689 16.7231 6.61371 15.5243 7.77959C14.3254 8.94547 14.0219 10.5989 14.8463 11.4727C15.6707 12.3464 17.3108 12.1096 18.5097 10.9437C19.7085 9.77781 20.012 8.12438 19.1876 7.25063Z' fill='black'/%3e%3cpath d='M12.6308 20.6297C13.1583 20.4985 13.2656 19.0651 12.8705 17.4281C12.4754 15.7911 11.7275 14.5705 11.2 14.7017C10.6725 14.8329 10.5652 16.2663 10.9603 17.9033C11.3554 19.5403 12.1033 20.7609 12.6308 20.6297Z' fill='black'/%3e%3cpath d='M7.25371 8.05056C8.77551 8.49933 9.8875 9.28664 9.73741 9.80906C9.58731 10.3315 8.23197 10.3912 6.71016 9.94242C5.18836 9.49364 4.07637 8.70633 4.22646 8.18391C4.37656 7.66149 5.7319 7.60178 7.25371 8.05056Z' fill='black'/%3e%3cpath d='M17.1309 13.9497C18.7461 14.4261 19.9338 15.2357 19.7837 15.7581C19.6336 16.2806 18.2025 16.3179 16.5873 15.8416C14.9721 15.3653 13.7844 14.5556 13.9345 14.0332C14.0846 13.5108 15.5157 13.4734 17.1309 13.9497Z' fill='black'/%3e%3cpath d='M8.96609 12.8536C8.5887 12.4624 7.35088 13.0318 6.20133 14.1253C5.05177 15.2188 4.42581 16.4225 4.80319 16.8137C5.18058 17.2048 6.4184 16.6355 7.56796 15.542C8.71751 14.4484 9.34347 13.2448 8.96609 12.8536Z' fill='black'/%3e%3c/svg%3e\" />\n\n              <div class=\"pera-wallet-modal-header__brand-text\">\n                <span>Pera Connect</span>\n\n                <span class=\"pera-wallet-modal-header__version-number\">v1.3.3</span>\n              </div>\n            </div>\n            ",' \n\n      <button\n        id="pera-wallet-modal-header-close-button"\n        class="pera-wallet-button pera-wallet-modal-header__close-button">\n        <img\n          class="pera-wallet-modal-header__close-button__close-icon"\n          src="').concat(d()&&r.isMobile()?"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6' stroke='%232C3559' stroke-width='2'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6' stroke='white' stroke-width='2'/%3e%3c/svg%3e",'"\n        />\n      </button>\n    </div>\n');class g extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");e.textContent=h,this.shadowRoot.append(f.content.cloneNode(!0),e),this.onClose()}}onClose(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-modal-header-close-button"),n=this.getAttribute("modal-id");t&&n===r.PERA_WALLET_REDIRECT_MODAL_ID&&t.addEventListener("click",(()=>{r.removeModalWrapperFromDOM(r.PERA_WALLET_REDIRECT_MODAL_ID)}))}}var y="data:image/svg+xml,%3csvg fill='none' height='80' width='80' xmlns='http://www.w3.org/2000/svg'%3e%3cpath clip-rule='evenodd' d='M39.9 80V68.99h-9.8V80h-.2V68.99h-3.5a6.503 6.503 0 0 1-6.247-4.7 6.514 6.514 0 0 1-4.445-4.444 6.503 6.503 0 0 1-4.695-6.246v-3.5H0v-.2h11.013v-9.8H0v-.2h11.013v-9.8H0v-.2h11.013v-3.5a6.503 6.503 0 0 1 4.694-6.246 6.513 6.513 0 0 1 4.447-4.447 6.503 6.503 0 0 1 6.246-4.696h3.5V0h.2v11.011h9.8V0h.2v11.011h9.8V0h.2v11.011h3.5a6.503 6.503 0 0 1 6.247 4.697 6.514 6.514 0 0 1 4.443 4.444 6.503 6.503 0 0 1 4.701 6.248v3.5H80v.2H68.991v9.8H80v.2H68.991v9.8H80v.2H68.991v3.5a6.503 6.503 0 0 1-4.701 6.248 6.514 6.514 0 0 1-4.443 4.442 6.503 6.503 0 0 1-6.247 4.7h-3.5V80h-.2V68.99h-9.8V80zm28.89-40.1a28.728 28.728 0 0 0-1.746-9.8h-2.5v9.8h4.247zm-4.246.2h4.247a28.729 28.729 0 0 1-1.747 9.8h-2.5zm-.2-.2v-9.8H60.1v9.8zm-4.244.2h4.244v9.8H60.1zm-.2-.2a19.807 19.807 0 0 0-2.633-9.8H50.1v9.8zm-9.8.2h9.8a19.807 19.807 0 0 1-2.633 9.8H50.1zm-.2-.2v-9.8h-9.8v9.8zm-9.8.2h9.8v9.8h-9.8zm-.2-.2v-9.8h-9.8v9.8zm-9.8.2h9.8v9.8h-9.8zm-.2-.2v-9.8h-7.167a19.807 19.807 0 0 0-2.633 9.8zm-9.8.2h9.8v9.8h-7.167a19.807 19.807 0 0 1-2.633-9.8zm-.2-.2v-9.8h-4.245v9.8zm-4.245.2H19.9v9.8h-4.245zm-.2-.2v-9.8H12.96a28.726 28.726 0 0 0-1.748 9.8h4.242zm-4.242.2h4.242v9.8H12.96a28.726 28.726 0 0 1-1.748-9.8zm0 13.5v-3.5h1.608a28.876 28.876 0 0 0 2.634 5.327v2.617c0 .543.066 1.07.192 1.575a6.303 6.303 0 0 1-4.434-6.019zm4.242 1.449a28.674 28.674 0 0 1-2.42-4.949h2.42zm.2.32V50.1H19.9v9.8h-.702a28.915 28.915 0 0 1-3.543-4.53zM20.1 59.9v-9.8h2.518a20.2 20.2 0 0 0 7.282 7.282V59.9zm0-10h2.403a19.966 19.966 0 0 1-2.403-7.053zm9.8 7.25a20 20 0 0 1-7.05-7.05h7.05zm.2.117V50.1h9.8v9.8a19.807 19.807 0 0 1-9.8-2.633zm10 2.633v-9.8h9.8v7.167a19.807 19.807 0 0 1-9.8 2.633zm10-2.75V50.1h7.05a20 20 0 0 1-7.05 7.05zm0 .232a20.2 20.2 0 0 0 7.282-7.282H59.9v9.8h-9.8zm7.397-7.482H59.9v-7.053a19.966 19.966 0 0 1-2.403 7.053zm2.603 10v-9.8h4.244v5.28a28.91 28.91 0 0 1-3.538 4.52zm4.444-4.841V50.1h2.426a28.67 28.67 0 0 1-2.426 4.959zm0 .378a28.881 28.881 0 0 0 2.64-5.337h1.607v3.5a6.303 6.303 0 0 1-4.44 6.021 6.514 6.514 0 0 0 .193-1.577zm2.713-5.537h1.534v-6.477a28.817 28.817 0 0 1-1.534 6.477zm-56.044 0h1.535a28.807 28.807 0 0 1-1.535-6.477zm57.578-20v-3.5a6.303 6.303 0 0 0-4.44-6.
202c.126.504.193 1.031.193 1.575v2.608a28.877 28.877 0 0 1 2.639 5.337zm-1.534.2h1.534v6.477a28.815 28.815 0 0 0-1.534-6.477zm-.288-.2a28.673 28.673 0 0 0-2.425-4.958V29.9zm-2.625 0v-5.279a28.911 28.911 0 0 0-3.538-4.521H60.1v9.8zm-4.444 0v-9.8h-9.8v2.518a20.2 20.2 0 0 1 7.282 7.282zm-2.403.2H59.9v7.053a19.966 19.966 0 0 0-2.403-7.053zm-.347-.2a20 20 0 0 0-7.05-7.05v7.05zm-7.25 0v-7.167a19.807 19.807 0 0 0-9.8-2.633v9.8zm-10 0v-9.8a19.807 19.807 0 0 0-9.8 2.633V29.9zm-10 0v-7.05a20 20 0 0 0-7.05 7.05zm-7.282 0a20.2 20.2 0 0 1 7.282-7.282V20.1h-9.8v9.8zm-2.518.2h2.403a19.966 19.966 0 0 0-2.403 7.053zm-.2-.2v-9.8h-.701a28.915 28.915 0 0 0-3.544 4.53v5.27zm-4.445 0v-4.948a28.665 28.665 0 0 0-2.42 4.948zm-2.634 0a28.874 28.874 0 0 1 2.634-5.327v-2.618c0-.543.066-1.07.191-1.574a6.303 6.303 0 0 0-4.433 6.019v3.5zm-1.608.2h1.535a28.81 28.81 0 0 0-1.535 6.477zM36.58 68.79H30.1v-1.536c2.06.749 4.23 1.27 6.479 1.535zm3.321-.001a28.726 28.726 0 0 1-9.8-1.748v-2.497h9.8zm-10-1.822v-2.423h-4.953a28.678 28.678 0 0 0 4.953 2.423zm10-2.623h-9.8V60.1h9.8zm-10 0V60.1h-9.8v.702a28.915 28.915 0 0 0 4.526 3.542H29.9zm7.254-4.444H30.1v-2.403a19.966 19.966 0 0 0 7.053 2.403zm0-39.8a19.966 19.966 0 0 0-7.054 2.403V20.1h7.053zm2.746-.2h-9.8v-4.245h9.8zm-10 0v-4.245h-5.27a28.907 28.907 0 0 0-4.53 3.544v.701zm10-4.445h-9.8V12.96a28.729 28.729 0 0 1 9.8-1.749zm-10 0v-2.421a28.668 28.668 0 0 0-4.95 2.42h4.95zm6.679-4.244a28.81 28.81 0 0 0-6.479 1.536V11.21h6.479zm-6.679 1.61v-1.61h-3.5a6.303 6.303 0 0 0-6.02 4.436 6.514 6.514 0 0 1 1.575-.192h2.617A28.877 28.877 0 0 1 29.9 12.82zm0 55.968V67.18a28.878 28.878 0 0 1-5.331-2.636h-2.614c-.543 0-1.07-.067-1.575-.192a6.303 6.303 0 0 0 6.02 4.437zm20.2 0h3.5a6.303 6.303 0 0 0 6.02-4.438 6.513 6.513 0 0 1-1.576.193h-2.608a28.879 28.879 0 0 1-5.336 2.638zm-.2-1.534v1.534h-6.475a28.808 28.808 0 0 0 6.475-1.534zm.2-.287a28.671 28.671 0 0 0 4.957-2.424H50.1v2.424zm-.2-2.424v2.499a28.728 28.728 0 0 1-9.8 1.746v-4.245zm.2-.2h5.278a28.914 28.914 0 0 0 4.522-3.538V60.1h-9.8zm-.2-4.244v4.244h-9.8V60.1zm0-2.603V59.9h-7.053a19.966 19.966 0 0 0 7.053-2.403zm0-37.397v2.403a19.966 19.966 0 0 0-7.053-2.403H49.9zm.2-.2h9.8v-.705a28.911 28.911 0 0 0-4.526-3.54H50.1V19.9zm-.2-4.245V19.9h-9.8v-4.245h9.8zm.2-.2h4.954a28.676 28.676 0 0 0-4.954-2.423zm-.2-2.497v2.497h-9.8V11.21a28.75 28.75 0 0 1 9.8 1.747zm.2-.14a28.877 28.877 0 0 1 5.332 2.637h2.612c.543 0 1.071.066 1.576.192a6.303 6.303 0 0 0-6.02-4.436h-3.5zm-.2-1.607v1.534a28.812 28.812 0 0 0-6.475-1.534H49.9zm-34.245 44.53v2.303c0 .567.075 1.117.215 1.64a6.309 6.309 0 0 0 1.643.216h1.41a29.118 29.118 0 0 1-3.268-4.16zm3.458 4.359h-1.6a6.513 6.513 0 0 1-1.578-.193 6.315 6.315 0 0 0 4.157 4.157 6.517 6.517 0 0 1-.192-1.575v-1.602a29.35 29.35 0 0 1-.787-.787zm.787.509a29.029 29.029 0 0 1-.508-.509h.508zm.2.469v1.411c0 .567.075 1.117.215 1.64.523.14 1.073.215 1.64.215h2.3a29.118 29.118 0 0 1-4.155-3.266zm35.649 3.266h2.295c.567 0 1.117-.075 1.64-.216a6.286 6.286 0 0 0 .216-1.639v-1.407a29.116 29.116 0 0 1-4.151 3.262zm4.35-3.454v1.598a6.53 6.53 0 0 1-.192 1.574 6.314 6.314 0 0 0 4.155-4.154 6.509 6.509 0 0 1-1.572.191h-1.6a29.08 29.08 0 0 1-.791.791zm.982-.991h1.41c.565 0 1.114-.075 1.636-.215a6.31 6.31 0 0 0 .216-1.641V55.75a29.113 29.113 0 0 1-3.262 4.15zm3.262-35.65v-2.295c0-.568-.075-1.117-.216-1.64a6.307 6.307 0 0 0-1.637-.215h-1.41a29.112 29.112 0 0 1 3.263 4.15zM60.89 19.9h1.6c.542 0 1.069.066 1.573.192a6.314 6.314 0 0 0-4.156-4.157 6.51 6.51 0 0 1 .192 1.576v1.598c.269.259.532.522.79.791zm-.991-.981V17.51a6.31 6.31 0 0 0-.216-1.64 6.308 6.308 0 0 0-1.64-.216h-2.299a29.108 29.108 0 0 1 4.155 3.264zm-35.641-3.264h-2.304a6.31 6.31 0 0 0-1.639.215 6.306 6.306 0 0 0-.216 1.641v1.412a29.115 29.115 0 0 1 4.159-3.268zM19.9 19.113v-1.602c0-.543.067-1.072.193-1.577a6.315 6.315 0 0 0-4.159 4.16 6.518 6.518 0 0 1 1.58-.194h1.6c.257-.267.519-.53.786-.787zm-.508.787h.508v-.508c-.171.167-.34.337-.508.508zm-.47.2h-1.409a6.31 6.31 0 0 0-1.643.216 6.308 6.308 0 0 0-.215 1.639v2.305a29.107 29.107 0 0 1 3.268-4.16zm41.178-.712c.173.168.344.34.512.512H60.1zm.513 40.712c-.169.173-.34.344-.513.513V60.1z' fill='%2394a3b8' fill-rule='evenodd'/%3e%3crect fill='black' height='80' rx='16' width='80'/%3e%3cpath d='M43.47 19.752c1.24 5.14.821 9.663-.937 10.1-1.758.438-4.19-3.375-5.43-8.517-1.241-5.14-.822-9.663.936-10.1 1.759-.438 4.19 3.376 5.43 8.517zm20.49 4.42c-2.749-2.913-8.216-2.123-12.212 1.763s-5.008 9.398-2.26 12.31 8.215 2.123 12.211-1.763 5.008-9.398 2.26-12.31zM42.102 68.769c1.758-.438 2.116-5.216.8-10.673-1.318-5.456-3.81-9.525-5.57-9.088-1.757.438-2.115 5.216-.798 10.672 1.317 5.457 3.81 9.526 5.568 9.089zM24.18 26.838c5.073 1.496 8.78 4.12 8.28 5.862-.5 1.741-5.019 1.94-10.091.444-5.073-1.496-8.78-4.12-8.28-5.861.501-1.742 5.019-1.941 10.092-.445zm32.924 19.664c5.384 1.588 9.343 4.286 8.843 6.028-.5 1.741-5.27 1.866-10.654.278-5.385-1.588-9.343-4.286-8.843-6.028.5-1.741 5.27-1.866 10.654-.278zm-27.216-3.654c-1.258-1.304-5.384.594-9.215 4.24-3.832 3.644-5.919 7.656-4.66 8.96 1.257 1.304 5.383-.594 9.215-4.239s5.918-7.657 4.66-8.96z' fill='%23fe5'/%3e%3c/svg%3e",v=".pera-wallet-download-qr-code-wrapper {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: fit-content;\n  margin: 26px auto 0;\n  padding: 10px;\n  box-shadow: 0px 20px 60px rgba(26, 35, 91, 0.15), 0px 4px 12px rgba(26, 35, 91, 0.05), 0px 1px 4px rgba(26, 35, 91, 0.06);\n  border-radius: 24px;\n}\n\n@media (max-width: 767px) {\n  .pera-wallet-download-qr-code-wrapper {\n    margin-top: 51px;\n  }\n}";u(v);const w=document.createElement("template");w.innerHTML='\n  <div id="pera-wallet-download-qr-code-wrapper" class="pera-wallet-download-qr-code-wrapper"></div>  \n';class b extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");e.textContent=v,this.shadowRoot.append(w.content.cloneNode(!0),e)}}connectedCallback(){var e;const t=new s.default({width:205,height:205,type:"svg",data:r.PERA_DOWNLOAD_URL,image:y,dotsOptions:{color:"#000",type:"extra-rounded"},imageOptions:{crossOrigin:"anonymous",margin:10},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}}),n=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-download-qr-code-wrapper");
2n&&t.append(n)}}var _="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8.5 19L15.5 12L8.5 5' stroke='%233C3C49' stroke-width='2'/%3e%3c/svg%3e",x=".pera-wallet-connect-modal-desktop-mode {\n  display: grid;\n  grid-template-columns: 205px auto;\n  gap: 70px;\n}\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view {\n  display: block;\n}\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-item--active .pera-wallet-accordion-item__content {\n  height: 364px;\n}\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable .pera-wallet-accordion-item--web-wallet {\n  display: none;\n}\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable .pera-wallet-accordion-item .pera-wallet-accordion-toggle {\n  padding: 26px 24px 12px;\n  border-radius: 24px 24px 0 0;\n  transition: all ease-in 0.2s;\n}\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable .pera-wallet-accordion-item .pera-wallet-accordion-item__content {\n  height: 434px;\n  border-radius: 0 0 24px 24px;\n  transition: height ease-in 0.2s;\n}\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable .pera-wallet-accordion-item .pera-wallet-accordion-icon {\n  transform: rotate(90deg);\n}\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable .pera-wallet-connect-modal-desktop-mode__download-pera-description {\n  margin-top: 50px;\n}\n.pera-wallet-connect-modal-desktop-mode--default .pera-wallet-connect-modal-desktop-mode__download-view {\n  display: none;\n}\n.pera-wallet-connect-modal-desktop-mode--download .pera-wallet-connect-modal-desktop-mode__default-view {\n  display: none;\n}\n.pera-wallet-connect-modal-desktop-mode--download .pera-wallet-connect-modal-desktop-mode__download-view {\n  display: block;\n}\n.pera-wallet-connect-modal-desktop-mode--download .pera-wallet-connect-modal-desktop-mode__download-view .pera-wallet-connect-modal-download-pera-view__footer a {\n  display: flex;\n  cursor: pointer;\n}\n.pera-wallet-connect-modal-desktop-mode--compact {\n  grid-template-columns: unset;\n  gap: unset;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__web-wallet {\n  padding: 28px 40px;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__web-wallet .pera-wallet-connect-modal-desktop-mode__web-wallet__logo-wrapper {\n  box-shadow: unset;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__web-wallet .pera-wallet-connect-modal-desktop-mode__web-wallet__description {\n  margin-bottom: 16px;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__web-wallet .pera-wallet-connect-modal-desktop-mode__web-wallet__launch-button {\n  width: 172px;\n  height: 40px;\n  margin: 0 auto;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__web-wallet-iframe {\n  height: 100%;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view {\n  overflow: hidden;\n  border-radius: 24px;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-item {\n  margin-bottom: 0;\n  border-radius: 0;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-item:not(:last-child) {\n  border-bottom: 1px solid #e6e8ee;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-item #pera-wallet-iframe {\n  height: 100%;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-toggle {\n  padding: 20px;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-toggle__text, .pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-toggle__content-with-label__text {\n  color: #626268;\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 24px;\n  letter-spacing: -0.09px;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-toggle__bold-color {\n  font-weight: 600;\n  color: #1a1a1a;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-accordion-item--active .pera-wallet-accordion-item__content {\n  height: 265px;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-modal-desktop-mode__download-pera-container {\n  display: flex;\n  justify-content: space-between;\n  margin-top: 14px;\n  padding: 0 20px;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-modal-desktop-mode__download-pera-description,\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-modal-desktop-mode__download-pera-button {\n  margin: 0;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-modal-desktop-mode__download-pera-button {\n  font-weight: 500;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-qr-code-wrapper {\n  margin: 4px auto 0;\n  padding: 0;\n  box-shadow: unset;\n}\n.pera-wallet-connect-modal-desktop-mode--compact .pera-wallet-connect-modal-desktop-mode__default-view .pera-wallet-connect-qr-code-wrapper svg {\n  padding: 8px;\n  box-shadow: 0px 20px 60px rgba(26, 35, 91, 0.15), 0px 4px 12px rgba(26, 35, 91, 0.05), 0px 1px 4px rgba(26, 35, 91, 0.06);\n  border-radius: 12px;\n}\n.pera-wallet-connect-modal-desktop-mode--select-account {\n  width: 100%;\n  height: 100%;\n}\n.pera-wallet-connect-modal-desktop-mode--select-account.pera-wallet-connect-modal-desktop-mode--default {\n  overflow: hidden;\n}\n.pera-wallet-connect-modal-desktop-mode--select-account .pera-wallet-connect-modal-desktop-mode__web-wallet-iframe {\n  position: unset;\n}\n.pera-wallet-connect-modal-desktop-mode--select-account .pera-wallet-accordion {\n  overflow: hidden;\n}\n.pera-wallet-connect-modal-desktop-mode--select-account #pera-wallet-iframe {\n  position: absolute;\n  top: 0;\n  left: 0;\n  z-index: 3;\n  width: 100%;\n  height: 100%;\n  border-radius: 16px;\n}\n\n.pera-wallet-connect-modal-desktop-mode__accordion__description,\n.pera-wallet-connect-modal-desktop-mode__connect-button-wrapper {\n  padding: 0 40px 20px 64px;\n}\n\n.pera-wallet-connect-modal-desktop-mode__web-wallet {\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  height: calc(100% - 88px);\n  padding: 48px 52px 40px;\n  margin: 0 auto;\n}\n\n.pera-wallet-connect-modal-desktop-mode__web-wallet__logo-wrapper {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 72px;\n  height: 72px;\n  margin: 0 auto 16px;\n  background: #ffffff;\n  border-radius: 50%;\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.1), 0px 10px 16px rgba(20, 37, 63, 
20.06);\n}\n\n.pera-wallet-connect-modal-desktop-mode__web-wallet__description {\n  margin: 0 auto 32px;\n  font-size: 14px;\n  line-height: 24px;\n  letter-spacing: -0.1px;\n  text-align: center;\n  color: #6a6a81;\n}\n\n.pera-wallet-connect-modal-desktop-mode__web-wallet__launch-button {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  width: 100%;\n  padding: 14px 0;\n  color: #ffffff;\n  background-color: #6b46fe;\n  border-radius: 12px;\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 20px;\n  letter-spacing: -0.1;\n  border: none;\n  outline: none;\n  cursor: pointer;\n}\n\n.pera-wallet-connect-modal-desktop-mode__web-wallet-iframe {\n  position: relative;\n  width: fit-content;\n  margin: 0 auto;\n}\n\n.pera-wallet-connect-modal-desktop-mode__connect-button {\n  display: block;\n  width: 100%;\n  height: 48px;\n  border: unset;\n  border-radius: 6px;\n  background-color: #333333;\n  color: white;\n  cursor: pointer;\n  font-family: var(--pera-wallet-modal-font-family);\n  font-size: 13px;\n}\n\n.pera-wallet-connect-qr-code-wrapper {\n  width: fit-content;\n  margin: 24px auto 0;\n  padding: 10px;\n  box-shadow: 0px 20px 60px rgba(26, 35, 91, 0.15), 0px 4px 12px rgba(26, 35, 91, 0.05), 0px 1px 4px rgba(26, 35, 91, 0.06);\n  border-radius: 24px;\n}\n\n.pera-wallet-connect-modal-desktop-mode__download-pera-description {\n  color: #838aa6;\n  text-align: center;\n  margin: 32px 0 12px;\n  font-size: 13px;\n  font-weight: 500;\n  line-height: 20px;\n  letter-spacing: -0.04px;\n}\n\n.pera-wallet-connect-modal-desktop-mode__download-pera-button {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  margin: 0 auto;\n  padding: 0;\n  color: #6b46fe;\n  background-color: transparent;\n  outline: none;\n  border: none;\n  font-weight: 600;\n  font-size: 13px;\n  line-height: 20px;\n  letter-spacing: 0.01px;\n  cursor: pointer;\n}\n\n.pera-wallet-connect-modal-download-pera-view__back-button {\n  display: flex;\n  align-items: center;\n  gap: 16px;\n  margin-bottom: 14px;\n  padding: 12px 24px;\n  color: #3c3c49;\n  background-color: #ffffff;\n  outline: none;\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\n  border: unset;\n  border-radius: 24px;\n  font-size: 14px;\n  font-weight: 600;\n  line-height: 24px;\n  letter-spacing: -0.1px;\n  cursor: pointer;\n}\n\n.pera-wallet-connect-modal-download-pera-view {\n  padding: 32px 37px 28px;\n  background-color: #ffffff;\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\n  border-radius: 24px;\n}\n\n.pera-wallet-connect-modal-download-pera-view__title {\n  margin-bottom: 8px;\n  color: #3c3c49;\n  font-weight: 600;\n  font-size: 15px;\n  line-height: 18px;\n  text-align: center;\n  letter-spacing: -0.13px;\n}\n\n.pera-wallet-connect-modal-download-pera-view__footer {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 12px;\n  margin-top: 53px;\n}\n\n.pera-wallet-connect-modal-download-pera-view__footer__button {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  padding: 8px 16px;\n  color: #6a6a81;\n  background-color: #ffffff;\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\n  text-decoration: none;\n  border-radius: 12px;\n  font-weight: 500;\n  font-size: 13px;\n  line-height: 200%;\n  letter-spacing: -0.04px;\n  cursor: pointer;\n}\n\n#pera-wallet-iframe {\n  width: 285px;\n  height: 376px;\n  margin: 0 auto;\n  border: none;\n}\n\n@media (max-width: 767px) {\n  .pera-wallet-connect-modal-desktop-mode {\n    grid-template-columns: 1fr;\n    gap: 24px;\n  }\n  .pera-wallet-connect-qr-code-wrapper {\n    margin-top: 16px;\n  }\n  .pera-wallet-connect-modal-download-pera-view {\n    padding: 24px;\n  }\n  .pera-wallet-download-qr-code-wrapper {\n    margin-top: 32px;\n  }\n  .pera-wallet-connect-modal-download-pera-view__footer {\n    margin-top: 40px;\n  }\n}";u(x);var A=".pera-wallet-accordion-item {\n  background-color: #ffffff;\n  border-radius: 24px;\n  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.02), 0px 4px 12px rgba(0, 0, 0, 0.03);\n}\n.pera-wallet-accordion-item:not(:last-of-type) {\n  margin-bottom: 20px;\n}\n.pera-wallet-accordion-item:not(:last-of-type) .pera-wallet-accordion-panel {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n.pera-wallet-accordion-item .pera-wallet-accordion-item__content {\n  height: 0;\n  overflow: hidden;\n  color: #69708d;\n  background-color: #ffffff;\n  font-size: 13px;\n  font-weight: 500;\n  line-height: 20px;\n  letter-spacing: -0.04px;\n  transition: height ease-in 0.2s;\n}\n.pera-wallet-accordion-item--active .pera-wallet-accordion-toggle {\n  padding: 26px 24px 12px;\n  border-radius: 24px 24px 0 0;\n  transition: all ease-in 0.2s;\n}\n.pera-wallet-accordion-item--active .pera-wallet-accordion-item__content {\n  border-radius: 0 0 24px 24px;\n  transition: height ease-in 0.2s;\n}\n.pera-wallet-accordion-item--active .pera-wallet-accordion-icon {\n  transform: rotate(90deg);\n}\n\n.pera-wallet-accordion-toggle {\n  position: relative;\n  display: flex;\n  align-items: center;\n  gap: 16px;\n  padding: 12px 24px;\n  color: #2c3559;\n  background-color: #ffffff;\n  border: none;\n  border-radius: 24px;\n  outline: none;\n  cursor: pointer;\n  font-size: 16px;\n  line-height: 18px;\n  letter-spacing: -0.1px;\n  font-weight: 600;\n  transition: all ease-in 0.2s;\n}\n.pera-wallet-accordion-toggle__text, .pera-wallet-accordion-toggle__content-with-label__text {\n  color: #626268;\n}\n\n.pera-wallet-accordion-icon {\n  transition: all ease-in 0.2s;\n}\n\n.pera-wallet-accordion-toggle__bold-color {\n  color: #1A1A1A;\n  font-weight: 600;\n}\n\n.pera-wallet-accordion-toggle__content-with-label {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n\n.pera-wallet-accordion-toggle__label {\n  padding: 4px 9px;\n  color: #1C786C;\n  background: #E0FAEE;\n  border-radius: 12px;\n  font-size: 11px;\n  font-weight: 600;\n  line-height: 18px;\n  letter-spacing: 0.01px;\n}\n\n.pera-wallet-accordion-toggle__button {\n  position: absolute;\n  z-index: 2;\n  width: 100%;\n  height: 100%;\n  background: transparent;\n  box-shadow: none;\n  outline: none;\n  border: none;\n  cursor: pointer;\n}\n\n@media (max-width: 767px) {\n  .pera-wallet-accordion-toggle {\n    font-size: 14px;\n    font-weight: 500;\n    line-height: 24px;\n    letter-spacing: -0.1px;\n  }\n}";u(A);const k=document.createElement("template"),S=document.createElement("style"),E=document.createElement("style");
2S.textContent=x,E.textContent=A,k.innerHTML="\n  <div id=\"pera-wallet-connect-modal-desktop-mode\" class=\"pera-wallet-connect-modal-desktop-mode pera-wallet-connect-modal-desktop-mode--default\">\n      <pera-wallet-connect-modal-information-section></pera-wallet-connect-modal-information-section>\n\n      <div class=\"pera-wallet-connect-modal-desktop-mode__default-view\"></div>\n       \n\n      <div class=\"pera-wallet-connect-modal-desktop-mode__download-view\">\n        <button\n          id=\"pera-wallet-connect-modal-download-pera-view-back-button\"\n          class=\"pera-wallet-connect-modal-download-pera-view__back-button\">\n          <img\n            src=\"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.7071 6.29387C11.0976 6.68439 11.0976 7.31756 10.7071 7.70808L7.41421 11.001L19 11.001C19.5523 11.001 20 11.4487 20 12.001C20 12.5533 19.5523 13.001 19 13.001L7.41421 13.001L10.7071 16.2939C11.0976 16.6844 11.0976 17.3176 10.7071 17.7081C10.3166 18.0986 9.68342 18.0986 9.29289 17.7081L4.29289 12.7081C4.10536 12.5205 4 12.2662 4 12.001C4 11.7358 4.10536 11.4814 4.29289 11.2939L9.29289 6.29387C9.68342 5.90335 10.3166 5.90335 10.7071 6.29387Z' fill='%233C3C49'/%3e%3c/svg%3e\"\n            alt=\"Back Arrow\"\n          />\n\n          Back\n        </button>\n\n        <div class=\"pera-wallet-connect-modal-download-pera-view\">\n          <h1 class=\"pera-wallet-connect-modal-download-pera-view__title\">\n            Download Pera Wallet\n          </h1>\n\n          <pera-wallet-download-qr-code></pera-wallet-download-qr-code>\n\n          <div class=\"pera-wallet-connect-modal-download-pera-view__footer\">\n            <a\n              href=\"https://apps.apple.com/us/app/algorand-wallet/id1459898525\"\n              target=\"_blank\"\n              rel=\"noopener noreferrer\">\n              <img src=\"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='40' height='40' rx='12' fill='black'/%3e%3cpath d='M25.6308 20.3011C25.6416 19.4664 25.8633 18.6481 26.2753 17.9221C26.6873 17.1962 27.2763 16.5863 27.9873 16.1491C27.5356 15.5039 26.9397 14.973 26.2469 14.5984C25.554 14.2239 24.7834 14.016 23.9963 13.9914C22.317 13.8151 20.6891 14.9962 19.8333 14.9962C18.9611 14.9962 17.6436 14.0089 16.2249 14.0381C15.3072 14.0677 14.4128 14.3346 13.6289 14.8126C12.8451 15.2906 12.1984 15.9636 11.7519 16.7659C9.81789 20.1144 11.2605 25.0354 13.1132 27.742C14.0401 29.0674 15.1233 30.5478 16.5408 30.4953C17.9278 30.4378 18.4458 29.6108 20.1202 29.6108C21.779 29.6108 22.265 30.4953 23.7112 30.4619C25.1995 30.4378 26.1372 29.1307 27.0316 27.7928C27.6976 26.8484 28.2101 25.8047 28.55 24.7003C27.6853 24.3345 26.9474 23.7224 26.4283 22.9401C25.9092 22.1578 25.6318 21.2399 25.6308 20.3011ZM22.8993 12.2113C23.7108 11.2371 24.1106 9.98492 24.0138 8.7207C22.7739 8.85092 21.6287 9.44347 20.8062 10.3803C20.404 10.838 20.096 11.3704 19.8998 11.9472C19.7035 12.5239 19.6229 13.1337 19.6625 13.7417C20.2826 13.7481 20.8961 13.6137 21.4568 13.3486C22.0175 13.0835 22.5107 12.6946 22.8993 12.2113Z' fill='white'/%3e%3c/svg%3e\" alt=\"App Store icon\" />\n            </a>\n\n            <a\n              href=\"https://play.google.com/store/apps/details?id=com.algorand.android\"\n              target=\"_blank\"\n              rel=\"noopener noreferrer\">\n              <img src=\"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='40' height='40' rx='12' fill='black'/%3e%3cpath d='M12.41 9.7719C12.1334 10.0219 11.9683 10.4388 11.9683 10.9922V10.8671V29.1294V29.0091C11.9683 29.5202 12.1099 29.9149 12.3497 30.169L12.4109 30.2277V30.228C12.6051 30.4035 12.854 30.4966 13.1393 30.4963C13.418 30.4963 13.7316 30.4073 14.0626 30.2194L26.0264 23.4107L30.1359 21.0717C30.6578 20.7748 30.9508 20.3917 30.9998 20.0014V19.9998C30.9508 19.6087 30.6578 19.2259 30.1359 18.9289L26.0261 16.5902L14.0627 9.78154C13.731 9.59325 13.4171 9.50391 13.1376 9.50391C12.8527 9.50391 12.6041 9.59677 12.41 9.7719H12.41Z' fill='%2300C1FF'/%3e%3cpath d='M12.411 30.2285L12.3497 30.1698C12.1099 29.9157 11.9683 29.5209 11.9683 29.0098
2V29.1301V10.8724V10.993C11.9683 10.4396 12.1334 10.0226 12.41 9.77268L22.622 20.0009L12.411 30.2285Z' fill='url(%23paint0_linear_173_14441)'/%3e%3cpath d='M26.0256 23.4102L22.6211 19.9996L26.0253 16.5896L30.1351 18.9283C30.657 19.2253 30.95 19.6081 30.9989 19.9993V20.0008C30.95 20.3911 30.657 20.7742 30.1351 21.0712L26.0256 23.4101' fill='url(%23paint1_linear_173_14441)'/%3e%3cpath d='M13.1374 30.4961C12.8522 30.4964 12.6033 30.4032 12.4092 30.2277V30.2275L22.6202 19.9999L26.0246 23.4104L14.0608 30.2191C13.7298 30.4071 13.4162 30.4961 13.1374 30.4961Z' fill='url(%23paint2_linear_173_14441)'/%3e%3cpath d='M22.6212 20.002L12.4092 9.7737C12.6033 9.59858 12.8519 9.50571 13.1368 9.50571C13.4163 9.50571 13.7302 9.59501 14.0618 9.78335L26.0253 16.592L22.6212 20.002' fill='url(%23paint3_linear_173_14441)'/%3e%3cpath d='M13.1394 30.6172C12.8542 30.6172 12.6049 30.524 12.4108 30.3486L12.4105 30.3489C12.4097 30.3481 12.4088 30.3473 12.4079 30.3466L12.3548 30.2947C12.3531 30.2931 12.3516 30.2912 12.3496 30.2893L12.4108 30.2279C12.6049 30.4034 12.8538 30.4966 13.1392 30.4962C13.4179 30.4962 13.7315 30.4073 14.0625 30.2193L26.0263 23.4106L26.1029 23.4874L26.0253 23.5316L14.0625 30.3398C13.7608 30.5111 13.4739 30.6004 13.2147 30.6153C13.1896 30.6165 13.1645 30.6171 13.1394 30.6172' fill='url(%23paint4_linear_173_14441)'/%3e%3cpath d='M12.3497 30.2891C12.1099 30.0349 11.9683 29.6406 11.9683 29.1292V29.0089C11.9683 29.52 12.1099 29.9146 12.3497 30.1688L12.4109 30.2275L12.3497 30.2891Z' fill='url(%23paint5_linear_173_14441)'/%3e%3cpath d='M26.1025 23.4882L26.0259 23.4114L30.1349 21.0727C30.6568 20.7758 30.9498 20.3927 30.9987 20.0025C30.9987 20.1457 30.9668 20.2889 30.9035 20.4282C30.7756 20.7091 30.5194 20.9744 30.135 21.1934L26.1025 23.4883' fill='url(%23paint6_linear_173_14441)'/%3e%3cpath d='M30.9991 20C30.9501 19.6089 30.6571 19.2261 30.1353 18.9291L26.0259 16.5907L26.1025 16.5139H26.1029L30.1353 18.8088C30.7106 19.1365 30.9987 19.5682 30.9991 20Z' fill='url(%23paint7_linear_173_14441)'/%3e%3cpath d='M11.9683 10.9922V10.8661C11.9683 10.8206 11.9695 10.7761 11.9718 10.7329V10.7309C11.9718 10.7303 11.9718 10.7297 11.972 10.729V10.7242C11.9969 10.284 12.1334 9.94066 12.3497 9.71139L12.4099 9.77198C12.1334 10.0219 11.9683 10.4388 11.9683 10.9922Z' fill='url(%23paint8_linear_173_14441)'/%3e%3cpath d='M26.026 16.5898L14.0625 9.78115C13.7308 9.59285 13.417 9.50355 13.1375 9.50355C12.8525 9.50355 12.6039 9.59642 12.4099 9.77154L12.3496 9.71091C12.3684 9.69096 12.388 9.67172 12.4082 9.65322C12.4089 9.65255 12.4099 9.65188 12.4105 9.65125C12.6031 9.47747 12.849 9.3846 13.1314 9.38293H13.1375C13.417 9.38293 13.7308 9.47227 14.0625 9.66064L26.1029 16.5128L26.1026 16.513L26.026 16.5898Z' fill='url(%23paint9_linear_173_14441)'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear_173_14441' x1='18.4943' y1='10.6794' x2='9.69389' y2='19.494' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%2300A0FF'/%3e%3cstop offset='0.00657' stop-color='%2300A1FF'/%3e%3cstop offset='0.2601' stop-color='%2300BEFF'/%3e%3cstop offset='0.5122' stop-color='%2300D2FF'/%3e%3cstop offset='0.7604' stop-color='%2300DFFF'/%3e%3cstop offset='1' stop-color='%2300E3FF'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear_173_14441' x1='31.6348' y1='19.9407' x2='11.691' y2='19.9407' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23FFE000'/%3e%3cstop offset='0.4087' stop-color='%23FFBD00'/%3e%3cstop offset='0.7754' stop-color='orange'/%3e%3cstop offset='1' stop-color='%23FF9C00'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear_173_14441' x1='24.2172' y1='23.2425' x2='9.30414' y2='38.0705' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23FF3A44'/%3e%3cstop offset='1' stop-color='%23C31162'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear_173_14441' x1='9.77725' y1='8.25731' x2='16.4237' y2='14.876' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%2332A071'/%3e%3cstop offset='0.0685' stop-color='%232DA771'/%3e%3cstop offset='0.4762' stop-color='%2315CF74'/%3e%3cstop offset='0.8009' stop-color='%2306E775'/%3e%3cstop offset='1' stop-color='%2300F076'/%3e%3c/linearGradient%3e%3clinearGradient id='paint4_linear_173_14441' x1='24.2114' y1='25.6084' x2='12.2683' y2='37.5709' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23CC2E36'/%3e%3cstop offset='1' stop-color='%239C0E4E'/%3e%3c/linearGradient%3e%3clinearGradient id='paint5_linear_173_14441' x1='13.3285' y1='10.6804' x2='5.57625' y2='18.4453' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23008DE0'/%3e%3cstop offset='0.00657' stop-color='%23008DE0'/%3e%3cstop offset='0.2601' stop-color='%2300A7E0'/%3e%3cstop offset='0.5122' stop-color='%2300B8E0'/%3e%3cstop offset='0.7604' stop-color='%2300C4E0'/%3e%3cstop offset='1' stop-color='%2300C7E0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint6_linear_173_14441' x1='31.6346' y1='20.0018' x2='11.6929' y2='20.0018' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23E0C500'/%3e%3cstop offset='0.4087' stop-color='%23E0A600'/%3e%3cstop offset='0.7
2754' stop-color='%23E09100'/%3e%3cstop offset='1' stop-color='%23E08900'/%3e%3c/linearGradient%3e%3clinearGradient id='paint7_linear_173_14441' x1='31.6349' y1='20.0008' x2='11.6933' y2='20.0008' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23FFE840'/%3e%3cstop offset='0.4087' stop-color='%23FFCE40'/%3e%3cstop offset='0.7754' stop-color='%23FFBC40'/%3e%3cstop offset='1' stop-color='%23FFB540'/%3e%3c/linearGradient%3e%3clinearGradient id='paint8_linear_173_14441' x1='13.3201' y1='10.6927' x2='5.8533' y2='17.8475' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%2340B8FF'/%3e%3cstop offset='0.00657' stop-color='%2340B9FF'/%3e%3cstop offset='0.2601' stop-color='%2340CEFF'/%3e%3cstop offset='0.5122' stop-color='%2340DDFF'/%3e%3cstop offset='0.7604' stop-color='%2340E7FF'/%3e%3cstop offset='1' stop-color='%2340EAFF'/%3e%3c/linearGradient%3e%3clinearGradient id='paint9_linear_173_14441' x1='9.76302' y1='10.4182' x2='15.0961' y2='15.76' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%2365B895'/%3e%3cstop offset='0.0685' stop-color='%2362BD95'/%3e%3cstop offset='0.4762' stop-color='%2350DB97'/%3e%3cstop offset='0.8009' stop-color='%2344ED98'/%3e%3cstop offset='1' stop-color='%2340F498'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\" alt=\"Play Store icon\" />\n            </a>\n\n            <a\n              class=\"pera-wallet-connect-modal-download-pera-view__footer__button\"\n              href=\"https://perawallet.s3-eu-west-3.amazonaws.com/android-releases/app-pera-prod-release-bitrise-signed.apk\"\n              target=\"_blank\"\n              rel=\"noopener noreferrer\">\n              <img src=\"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3 14V20C3 20.5523 3.44772 21 4 21H20C20.5523 21 21 20.5523 21 20V14' stroke='%232C3559' stroke-width='1.5'/%3e%3cpath d='M11.9998 16V3M11.9998 16L7.47803 11.4783M11.9998 16L16.5215 11.4783' stroke='%232C3559' stroke-width='1.5'/%3e%3c/svg%3e\" alt=\"Download icon\" />\n\n              Download APK File\n            </a>\n          </div>\n        </div>\n      </div>\n    </div>\n  ";class C extends HTMLElement{constructor(){var e;if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){if(this.shadowRoot.append(k.content.cloneNode(!0),S,E),this.shadowRoot.addEventListener("click",(e=>{this.handleAccordion(e)})),"true"===this.getAttribute("compact-mode")){const e=this.shadowRoot.getElementById("pera-wallet-connect-modal-desktop-mode");null==e||e.classList.add("pera-wallet-connect-modal-desktop-mode--compact")}const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".pera-wallet-connect-modal-desktop-mode__default-view"),n="true"===this.getAttribute("promote-mobile"),{webWalletOption:r,mobileWalletOption:i}=function(e){const t='\n  <div id="web-wallet-option" class="pera-wallet-accordion-item '.concat(e?"":"pera-wallet-accordion-item--active",'  pera-wallet-accordion-item--web-wallet">\n            <a class="pera-wallet-accordion-toggle">\n              <button class="pera-wallet-accordion-toggle__button"></button>\n  \n              <img src="').concat(_,"\" class=\"pera-wallet-accordion-icon\" />\n  \n              <div class=\"pera-wallet-accordion-toggle__content-with-label\">\n                <div class=\"pera-wallet-accordion-toggle__content-with-label__text\">\n                  Connect With\n  \n                  <span class=\"pera-wallet-accordion-toggle__bold-color\">\n                    Pera Web\n                  </span>\n                </div>\n  \n                <span id=\"pera-web-new-label\" class=\"pera-wallet-accordion-toggle__label\">NEW</span>\n              </div>\n            </a>\n  \n            <div class=\"pera-wallet-accordion-item__content\">\n              <div class=\"pera-wallet-connect-modal-desktop-mode__web-wallet\"><div>\n              \n              <div\n                class=\"pera-wallet-connect-modal-desktop-mode__web-wallet__logo-wrapper\">\n                <img src=\"data:image/svg+xml,%3csvg width='44' height='44' viewBox='0 0 44 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='3.5' y='7.5' width='36' height='26' rx='5.5' stroke='%236B46FE' stroke-width='3'/%3e%3cpath d='M22.4973 14.5237C22.8556 16.041 22.7344 17.3757 22.2267 17.5048C21.719 17.6339 21.0169 16.5085 20.6586 14.9912C20.3003 13.4739 20.4214 12.1392 20.9292 12.0101C21.4369 11.881 22.1389 13.0064 22.4973 14.5237Z' fill='%236B46FE'/%3e%3cpath d='M28.4139 15.8282C27.6204 14.9686 26.0417 15.2016 24.8877 16.3486C23.7338 17.4956 23.4417 19.1222 24.2352 19.9818C25.0287 20.8414 26.6074 20.6084 27.7613 19.4614C28.9153 18.3144 29.2074 16.6878 28.4139 15.8282Z' fill='%236B46FE'/%3e%3cpath d='M22.1027 28.9905C22.6104 28.8614 22.7137 27.4512 22.3334 25.8407C21.9531 24.2303 21.2332 23.0294 20.7254 23.1585C20.2177 23.2876 20.1144 24.6978 20.4947 26.3083C20.875 27.9187 21.5949 29.1196 22.1027 28.9905Z' fill='%236B46FE'/%3e%3cpath d='M16.9269 16.6152C18.3917 17.0567 19.4621 17.8312 19.3176 18.3452C19.1731 18.8591 17.8686 18.9179 16.4037 18.4764C14.9389 18.0349 13.8686 17.2603 14.0131 16.7464C14.1575 16.2324 15.4621 16.1737 16.9269 16.6152Z' fill='%236B46FE'/%3e%3cpath d='M26.4342 22.4188C27.9889 22.8874 29.1322 23.6839 28.9877 24.1979C28.8432 24.7118 27.4657 24.7486 25.911 24.28C24.3563 23.8114 23.213 23.0148 23.3575 22.5009C23.502 21.9869 24.8795 21.9502 26.4342 22.4188Z' fill='%236B46FE'/%3e%3cpath d='M18.5752 21.3404C18.2119 20.9555 17.0205 21.5157 15.914 22.5915C14.8075 23.6673 14.2049 24.8514 14.5682 25.2363C14.9314 25.6211 16.1229 25.061 17.2294 23.9852C18.3359 22.9094 18.9384 21.7253 18.5752 21.3404Z' fill='%236B46FE'/%3e%3cpath d='M16 39C21 39.0001 23.5 39.0001 28 39' stroke='%236B46FE' stroke-width='3' stroke-linecap='round'/%3e%3c/svg%3e\" />\n              </div>\n  \n              <p\n                class=\"pera-wallet-connect-modal-desktop-mode__web-wallet__description\">\n                Connect with Pera Web to continue\n              </p>\n            </div>\n  \n            <button\n              id=\"pera-wallet-connect-web-wallet-launch-button\"\n              class=\"pera-wallet-connect-modal-desktop-mode__web-wallet__launch-button\">\n              Launch Pera Web\n  \n              <img src=\"data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.0892 9.41009C13.4147 9.73553 13.4147 10.2632 13.0892 10.5886L8.08924 15.5886C7.7638 15.914 7.23616 15.914 6.91072 15.5886C6.58529 15.2632 6.58529 14.7355 6.91072 14.4101L11.3215 9.99935L6.91073 5.5886C6.58529 5.26317 6.58529 4.73553 6.91073 4.41009C7.23616 4.08466 7.7638 4.08466 8.08924 4.41009L13.0892 9.41009Z' fill='white'/%3e%3c/svg%3e\" />\n            </button>\n          </div>"),n='\n  <div id="mobile-wallet-option" class="pera-wallet-accordion-item '.concat(e?"pera-wallet-accordion-item--active":"",'">\n            <a class="pera-wallet-accordion-toggle">\n            <button class="pera-wallet-accordion-toggle__button"></button>\n  \n              <img src="').concat(_,"\" class=\"pera-wallet-accordion-icon\" />\n  \n              <div class=\"pera-wallet-accordion-toggle__text\">
2\n                Connect with\n  \n                <span class=\"pera-wallet-accordion-toggle__bold-color\">\n                  Pera Mobile\n                </span>\n              </div>\n            </a>\n  \n            <div class=\"pera-wallet-accordion-item__content\">\n              <div id=\"pera-wallet-connect-modal-connect-qr-code\" class=\"pera-wallet-connect-qr-code-wrapper\"></div>\n  \n              <div class=\"pera-wallet-connect-modal-desktop-mode__download-pera-container\">\n                <p\n                  class=\"pera-wallet-connect-modal-desktop-mode__download-pera-description\">\n                    Don\u2019t have Pera Wallet app?\n                </p>\n  \n                <button\n                  id=\"pera-wallet-connect-modal-desktop-mode-download-pera-button\"\n                  class=\"pera-wallet-connect-modal-desktop-mode__download-pera-button\">\n                  <img src=\"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='2' y='2' width='4.66667' height='4.66667' rx='1.2' stroke='%236B46FE' stroke-width='1.5'/%3e%3crect x='2' y='9.33203' width='4.66667' height='4.66667' rx='1.2' stroke='%236B46FE' stroke-width='1.5'/%3e%3crect x='9.33325' y='2' width='4.66667' height='4.66667' rx='1.2' stroke='%236B46FE' stroke-width='1.5'/%3e%3cpath d='M8.70581 9.5293H10.9411' stroke='%236B46FE' stroke-width='1.66667' stroke-linejoin='round'/%3e%3cpath d='M13.1765 12.668L14.6667 12.668' stroke='%236B46FE' stroke-width='1.66667' stroke-linejoin='round'/%3e%3cpath d='M13.1765 14L14.6667 14' stroke='%236B46FE' stroke-width='1.66667' stroke-linejoin='round'/%3e%3cpath d='M11.686 14L13.1762 14' stroke='%236B46FE' stroke-width='1.66667' stroke-linejoin='round'/%3e%3cpath d='M12.4314 9.5293H14.6667' stroke='%236B46FE' stroke-width='1.66667' stroke-linejoin='round'/%3e%3cpath d='M8.70581 10.2754H12.4313' stroke='%236B46FE' stroke-width='1.25' stroke-linejoin='round'/%3e%3cpath d='M10.196 11.7656H11.6862' stroke='%236B46FE' stroke-width='1.25' stroke-linejoin='round'/%3e%3cpath d='M10.196 12.5117H11.6862' stroke='%236B46FE' stroke-width='1.25' stroke-linejoin='round'/%3e%3cpath d='M8.70581 13.2539H10.196' stroke='%236B46FE' stroke-width='1.25' stroke-linejoin='round'/%3e%3cpath d='M8.70581 14H10.196' stroke='%236B46FE' stroke-width='1.25' stroke-linejoin='round'/%3e%3cpath d='M10.196 11.0195H12.4313' stroke='%236B46FE' stroke-width='1.25' stroke-linejoin='round'/%3e%3c/svg%3e\" alt=\"QR Icon\" />\n  \n                  Download Pera Wallet\n                </button>\n              </div>\n            </div>\n          </div>");return{mobileWalletOption:document.createRange().createContextualFragment(n),webWalletOption:document.createRange().createContextualFragment(t)}}(n);n?(null==t||t.appendChild(i),null==t||t.appendChild(r)):(null==t||t.appendChild(r),null==t||t.appendChild(i))}}connectedCallback(){var e;const t=this.getAttribute("should-display-new-badge"),n=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-web-new-label");"false"===t&&(null==n||n.setAttribute("style","display:none")),this.handleChangeView()}handleChangeView(){var e,t,n;const r=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-connect-modal-desktop-mode-download-pera-button"),i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-connect-modal-download-pera-view-back-button"),o=null===(n=this.shadowRoot)||void 0===n?void 0:n.getElementById("pera-wallet-connect-web-wallet-launch-button");r&&r.addEventListener("click",(()=>{this.onClickDownload()})),i&&i.addEventListener("click",(()=>{this.onClickBack()})),o&&o.addEventListener("click",(()=>{this.webWalletConnect()})),this.renderQRCode(),this.checkWebWalletAvaliability()}webWalletConnect(){"true"===this.getAttribute("is-web-wallet-avaliable")&&window.onWebWalletConnect()}handleAccordion(e){var t,n;if(e.target instanceof Element){if(!e.target.classList.contains("pera-wallet-accordion-toggle__button"))return;if(this.shadowRoot&&(null===(t=e.target.parentElement)||void 0===t?void 0:t.parentElement)){const t=null===(n=e.target.parentElement)||void 0===n?void 0:n.parentElement;if(!t)return;if(t.classList.contains("pera-wallet-accordion-item--active"))return;const r=this.shadowRoot.querySelectorAll(".pera-wallet-accordion-item.pera-wallet-accordion-item--active");for(let e=0;e<r.length;e++)r[e].classList.remove("pera-wallet-accordion-item--active");t.classList.toggle("pera-wallet-accordion-item--active")}}}renderQRCode(){var e;const t=this.getAttribute("uri");let n="false"===this.getAttribute("is-web-wallet-avaliable")?250:205;if("true"===this.getAttribute("compact-mode")&&(n=190),t){const r=new s.default({width:n,height:n,type:"svg",data:t,image:y,dotsOptions:{color:"#000",type:"extra-rounded"},imageOptions:{crossOrigin:"anonymous",margin:8},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}}),i=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-connect-modal-connect-qr-code");i&&r.append(i)}}onClickDownload(){if(this.shadowRoot){const e=this.shadowRoot.getElementById("pera-wallet-connect-modal-desktop-mode");e&&(e.classList.remove("pera-wallet-connect-modal-desktop-mode--default"),e.classList.add("pera-wallet-connect-modal-desktop-mode--download"))}}onClickBack(){if(this.shadowRoot){const e=this.shadowRoot.getElementById("pera-wallet-connect-modal-desktop-mode");e&&(e.classList.add("pera-wallet-connect-modal-desktop-mode--default"),e.classList.remove("pera-wallet-connect-modal-desktop-mode--download"))}}checkWebWalletAvaliability(){var e;if("false"===this.getAttribute("is-web-wallet-avaliable")){const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".pera-wallet-connect-modal-desktop-mode__default-view");null==t||t.classList.add("pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable")}}}var M=".pera-wallet-connect-modal-touch-screen-mode {\n  display: grid;\n  grid-template-columns: 1fr;\n  gap: 46px;\n  padding: 4px;\n}\n\n.pera-wallet-connect-modal-touch-screen-mode--pending-message-view {\n  gap: 56px;\n  grid-template-rows: auto 48px;\n  height: 100%;\n  padding-bottom: 70px;\n}\n\n.pera-wallet-connect-modal-touch-screen-mode__launch-pera-wallet-button,\n.pera-wallet-connect-modal-touch-screen-mode__install-pera-wallet-button {\n  display: block;\n  padding: 14px;\n  border-radius: 12px;\n  text-decoration: none;\n  text-align: center;\n  font-size: 14px;\n  line-height: 20px;\n  letter-spacing: -0.09px;\n  font-weight: 500;\n}\n\n.pera-wallet-connect-modal-touch-screen-mode__launch-pera-wallet-button {\n  margin-bottom: 32px;\n  background-color: #6b46fe;\n  color: #ffffff;\n}\n\n.pera-wallet-connect-modal-touch-screen-mode__install-pera-wallet-button {\n  margin-bottom: 20px;\n  color: #6a6a81;\n  background-color: #ffffff;\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\n}\n\n.pera-wallet-connect-modal-touch-screen-mode__new-to-pera-box {\n  position: relative;\n  margin-bottom: 32px;\n  border-top: 1px solid #e6e8ee;\n}\n\n.pera-wallet-connect-modal-touch-screen-mode__new-to-pera-box__text {\n  position: absolute;\n  top: -25px;\n  right: calc(50% - 56px);\n  width: 116px;\n  color: #69708d;\n  background-color: #ffffff;\n  font-size: 13px;\n  font-weight: 500;\n  line-height: 24px;\n  letter-spacing: -0.04px;\n  text-align: center;\n}";u(M);const T=document.createElement("template");class P extends HTMLElement{constructor(){var e;if(super(),this.attachShadow({mode:"open"}),T.innerHTML='\n  <div class="pera-wallet-connect-modal-touch-screen-mode">\n    <pera-wallet-connect-modal-information-section></pera-wallet-connect-modal-information-section>\n\n    <div>\n      <a\n        id="pera-wallet-connect-modal-touch-screen-mode-launch-pera-wallet-button"\n        class="pera-wallet-connect-modal-touch-screen-mode__launch-pera-wallet-button"\n        rel="noopener noreferrer"\n        target="_blank">\n        Launch Pera Wallet\n      </a>\n\n      <div\n        class="pera-wallet-connect-modal-touch-screen-mode__new-to-pera-box">\n        <p\n          class="pera-wallet-connect-modal-touch-screen-mode__new-to-pera-box__text"\n          >\n          New to Pera?\n        </p>\n      </div>\n\n      <a\n        href="https://perawallet.app/download/"\n        class="pera-wallet-connect-modal-touch-screen-mode__install-pera-wallet-button"\n        rel="noopener noreferrer"\n        target="_blank">\n        Install Pera Wallet\n      </a>\n    </div>\n  </div>\n',this.shadowRoot){const t=document.createElement("style");t.textContent=M,this.shadowRoot.append(T.content.cloneNode(!0),t);const n=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-connect-modal-touch-screen-mode-launch-pera-wallet-button"),i=this.getAttribute("uri");n&&i&&(n.setAttribute("href",function(e){let t=c(!1);r.isIOS()&&!t.includes("-wc")&&(t=t.replace("://","-wc://"));let n="".concat(t,"wc?uri=").concat(encodeURIComponent(e));const i=r.detectBrowser();return r.isAndroid()&&(n=e),i&&(n="".concat(n,"&browser=").concat(encodeURIComponent(i))),n}(i)),n.addEventListener("click",(()=>{this.onClickLaunch()})))}}
2onClickLaunch(){if(T.innerHTML='\n    <div class="pera-wallet-connect-modal-touch-screen-mode pera-wallet-connect-modal-touch-screen-mode--pending-message-view">\n      <pera-wallet-connect-modal-pending-message-section should-use-sound="'.concat(this.getAttribute("should-use-sound"),'"></pera-wallet-connect-modal-pending-message-section>\n    </div>\n  '),this.shadowRoot){const e=document.createElement("style");e.textContent=M,this.shadowRoot.innerHTML="",this.shadowRoot.append(T.content.cloneNode(!0),e)}}}var R='@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");\n.pera-wallet-modal {\n  --pera-wallet-modal-font-family: "Inter", sans-serif;\n  --pera-wallet-modal-compact-width: 380px;\n  --pera-wallet-modal-compact-height: 396px;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  position: fixed;\n  top: 0;\n  right: 0;\n  left: 0;\n  bottom: 0;\n  z-index: 999999;\n  width: 100vw;\n  height: 100vh;\n  background-color: rgba(0, 0, 0, 0.7);\n}\n.pera-wallet-modal--select-account .pera-wallet-modal__body {\n  width: 480px;\n  height: 578px;\n  background-color: #ffffff;\n}\n.pera-wallet-modal--mobile .pera-wallet-modal__body {\n  top: 40px;\n  bottom: 0;\n  left: 0;\n  width: 100%;\n  max-width: unset;\n  height: calc(100 * var(--vh));\n  padding: 20px;\n  background-color: #ffffff;\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\n  border-radius: 20px 20px 0px 0px;\n  animation: 0.3s PeraWalletConnectMobileSlideIn ease-out;\n  overflow-y: auto;\n  transform: unset;\n}\n.pera-wallet-modal--mobile .pera-wallet-modal__body::before {\n  background-image: unset;\n}\n.pera-wallet-modal--compact:not(.pera-wallet-modal--mobile) .pera-wallet-modal__body {\n  width: var(--pera-wallet-modal-compact-width);\n  height: var(--pera-wallet-modal-compact-height);\n  padding: 0;\n}\n.pera-wallet-modal * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n  font-family: var(--pera-wallet-modal-font-family);\n  font-smooth: antialiased;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.pera-wallet-modal ul,\n.pera-wallet-modal ol,\n.pera-wallet-modal li {\n  list-style-type: none;\n}\n\n.pera-wallet-button {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: auto;\n  height: 48px;\n  padding: 14px;\n  border: none;\n  border-radius: 12px;\n  outline: none;\n  cursor: pointer;\n  font-family: var(--pera-wallet-modal-font-family);\n  font-size: 14px;\n}\n\n.pera-wallet-modal__logo img {\n  display: block;\n  width: 32px;\n}\n\n.pera-wallet-modal__body {\n  position: relative;\n  top: 50%;\n  left: 50%;\n  width: 700px;\n  max-width: calc(100vw - 80px);\n  padding: 28px;\n  background-color: #f3f3f7;\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\n  border-radius: 24px;\n  animation: 0.3s PeraWalletConnectSlideIn ease-out;\n  transform: translate(-50%, -50%);\n}\n.pera-wallet-modal__body::before {\n  --background-line: #1e0972 0 1.2px, transparent 0 calc(100% - 1.2px), #1e0972;\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: -1;\n  content: "";\n  background-image: linear-gradient(var(--background-line)), linear-gradient(90deg, var(--background-line));\n  background-size: 116px 116px;\n  mix-blend-mode: overlay;\n  border-radius: 24px;\n  opacity: 0.8;\n  pointer-events: none;\n}\n\n@media (max-width: 767px) {\n  .pera-wallet-modal--desktop .pera-wallet-modal__body {\n    width: 100%;\n    max-width: calc(100vw - 32px);\n    padding: 24px;\n  }\n}\n@keyframes PeraWalletConnectSlideIn {\n  0% {\n    opacity: 0;\n    transform: translate(-50%, calc(-50% + 24px));\n  }\n  100% {\n    opacity: 1;\n    transform: translate(-50%, -50%);\n  }\n}\n@keyframes PeraWalletConnectMobileSlideIn {\n  0% {\n    top: 30%;\n    opacity: 0;\n  }\n  100% {\n    top: 40px;\n    opacity: 1;\n  }\n}';u(R);const I=document.createElement("template");let L=r.isMobile()?"".concat(r.PERA_WALLET_MODAL_CLASSNAME," ").concat(r.PERA_WALLET_MODAL_CLASSNAME,"--mobile"):"".concat(r.PERA_WALLET_MODAL_CLASSNAME," ").concat(r.PERA_WALLET_MODAL_CLASSNAME,"--desktop");class O extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");e.textContent=R,"true"===this.getAttribute("compact-mode")&&(L="".concat(L," ").concat(r.PERA_WALLET_MODAL_CLASSNAME,"--compact")),d()&&r.isMobile()?(I.innerHTML='\n        <div class="'.concat(L,'">\n          <div class="pera-wallet-modal__body" part="body">\n            <pera-wallet-modal-header modal-id="').concat(r.PERA_WALLET_CONNECT_MODAL_ID,'"></pera-wallet-modal-header/>\n      \n            <pera-wallet-modal-touch-screen-mode uri="').concat(this.getAttribute("uri"),'" should-use-sound="').concat(this.getAttribute("should-use-sound"),'"></pera-wallet-modal-touch-screen-mode>\n          </div>\n        </div>\n      '),this.shadowRoot.append(I.content.cloneNode(!0),e)):(I.innerHTML='\n          <div class="'.concat(L,'">\n            <div class="pera-wallet-modal__body">\n              <pera-wallet-modal-header modal-id="').concat(r.PERA_WALLET_CONNECT_MODAL_ID,'"></pera-wallet-modal-header/>\n        \n              <pera-wallet-modal-desktop-mode id="pera-wallet-modal-desktop-mode" uri="').concat(this.getAttribute("uri"),'" is-web-wallet-avaliable="').concat(this.getAttribute("is-web-wallet-avaliable"),'" should-display-new-badge="').concat(this.getAttribute("should-display-new-badge"),'" compact-mode="').concat(this.getAttribute("compact-mode"),'" promote-mobile="').concat(this.getAttribute("promote-mobile"),'"></pera-wallet-modal-desktop-mode>\n            </div>\n          </div>\n        '),this.shadowRoot.append(I.content.cloneNode(!0),e))}}}var D='@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");\n.pera-wallet-modal {\n  --pera-wallet-modal-font-family: "Inter", sans-serif;\n  --pera-wallet-modal-compact-width: 380px;\n  --pera-wallet-modal-compact-height: 396px;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  position: fixed;\n  top: 0;\n  right: 0;\n  left: 0;\n  bottom: 0;\n  z-index: 999999;\n  width: 100vw;\n  height: 100vh;\n  background-color: rgba(0, 0, 0, 0.7);\n}\n.pera-wallet-modal--select-account .pera-wallet-modal__body {\n  width: 480px;\n  height: 578px;\n  background-color: #ffffff;\n}\n.pera-wallet-modal--mobile .pera-wallet-modal__body {\n  top: 40px;\n  bottom: 0;\n  left: 0;\n  width: 100%;\n  max-width: unset;\n  height: calc(100 * var(--vh));\n  padding: 20px;\n  background-color: #ffffff;\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\n  border-radius: 20px 20px 0px 0px;\n  animation: 0.3s PeraWalletConnectMobileSlideIn ease-out;\n  overflow-y: auto;\n  transform: unset;\n}\n.pera-wallet-modal--mobile .pera-wallet-modal__body::before {\n  background-image: unset;\n}\n.pera-wallet-modal--compact:not(.pera-wallet-modal--mobile) .pera-wallet-modal__body {\n  width: var(--pera-wallet-modal-compact-width);\n  height: var(--pera-wallet-modal-compact-height);\n  padding: 0;\n}\n.pera-wallet-modal * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n  font-family: var(--pera-wallet-modal-font-family);\n  font-smooth: antialiased;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.pera-wallet-modal ul,\n.pera-wallet-modal ol,\n.pera-wallet-modal li {\n  list-style-type: none;\n}\n\n.pera-wallet-button {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: auto;\n  height: 48px;\n  padding: 14px;\n  border: none;\n  border-radius: 12px;\n  outline: none;\n  cursor: pointer;\n  font-family: var(--pera-wallet-modal-font-family);\n  font-size: 14px;\n}\n\n.pera-wallet-modal__logo img {\n  display: block;\n  width: 32px;\n}\n\n.pera-wallet-modal__body {\n  position: relative;\n  top: 50%;\n  left: 50%;\n  width: 700px;\n  max-width: calc(100vw - 80px);\n  padding: 28px;\n  background-color: #f3f3f7;\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\n  border-radius: 24px;\n  animation: 0.3s PeraWalletConnectSlideIn ease-out;\n  transform: translate(-50%, -50%);\n}\n.pera-wallet-modal__body::before {\n  --background-line: #1e0972 0 1.2px, transparent 0 calc(100% - 1.2px), #1e0972;\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: -1;\n  content: "";\n  background-image: linear-gradient(var(--background-line)), linear-gradient(90deg, var(--background-line));\n  background-size: 116px 116px;\n  mix-blend-mode: overlay;\n  border-radius: 24px;\n  opacity: 0.8;\n  pointer-events: none;\n}\n\n@media (max-width: 767px) {\n  .pera-wallet-modal--desktop .pera-wallet-modal__body {\n    width: 100%;\n    max-width: calc(100vw - 32px);\n    padding: 24px;\n  }\n}\n@keyframes PeraWalletConnectSlideIn {\n  0% {\n    opacity: 0;\n    transform: translate(-50%, calc(-50% + 24px));\n  }\n  100% {\n    opacity: 1;\n    transform: translate(-50%, -50%);\n  }\n}\n@keyframes PeraWalletConnectMobileSlideIn {\n  0% {\n    top: 30%;\n    opacity: 0;\n  }\n  100% {\n    top: 40px;\n    opacity: 1;\n  }\n}\n.pera-wallet-redirect-modal {\n  display: grid;\n  grid-template-columns: 1fr;\n  gap: 56px;\n  grid-template-rows: auto 48px;\n  height: 100%;\n  padding: 4px;\n  padding-bottom: 70px;\n}\n\n.pera-wallet-redirect-modal__content {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-direction: column;\n}\n\n.pera-wallet-redirect-modal__content__title {\n  margin: 20px 0 8px;\n  color: #3c3c49;\n  font-size: 18px;\n  font-weight: 600;\n  line-height: 22px;\n  letter-spacing: -0.26px;\n}\n\n.pera-wallet-redirect-modal__content__description,\n.pera-wallet-redirect-modal__content__install-pera-text {\n  color: #3c3c49;\n  max-width: 271px;\n  font-size: 14px;\n  font-weight: 400;\n  line-height: 24px;\n  letter-spacing: -0.09px;\n  text-align: center;\n}\n\n.pera-wallet-redirect-modal__content__description {\n  margin-bottom: 24px;\n}\n\n.pera-wallet-redirect-modal__content__install-pera-text__link {\n  color: #6b46fe;\n  font-size: 14px;\n  font-weight: 400;\n  line-height: 24px;\n  letter-spacing: -0.09px;\n  text-align: center;\n}\n\n.pera-wallet-redirect-modal__launch-pera-wallet-button {\n  display: block;\n  padding: 14px;\n  color: #ffffff;\n  background-color: #6b46fe;\n  border-radius: 12px;\n  text-decoration: none;\n  text-align: center;\n  font-size: 14px;\n  line-height: 20px;\n  letter-spacing: -0.09px;\n  font-weight: 500;\n}';u(D);const B=document.createElement("template");B.innerHTML='\n  <div class="pera-wallet-modal pera-wallet-modal--mobile">\n    <div class="pera-wallet-modal__body">\n      <pera-wallet-modal-header modal-id="'.concat(r.PERA_WALLET_REDIRECT_MODAL_ID,"\"></pera-wallet-modal-header/>\n\n      <div class=\"pera-wallet-redirect-modal\">\n        <div class=\"pera-wallet-redirect-modal__content\">\n          <img src=\"data:image/svg+xml,%3csvg width='120' height='38' viewBox='0 0 120 38' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_38844_290434)'%3e%3cpath d='M103.739 28.6746H109.565' stroke='%236B46FE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M112.25 37H100.75C97.5731 37 95 34.2336 95 30.8182V9.18182C95 5.76636 97.5731 3 100.75 3H112.25C115.427 3 118 5.76636 118 9.18182V30.8182C118 34.2336 115.427 37 112.25 37Z' fill='%236B46FE' fill-opacity='0.1' stroke='%236B46FE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3e%3crect y='1' width='36' height='36' rx='7.76829' fill='%236B46FE' fill-opacity='0.1'/%3e%3cpath d='M19.6057 9.47351C20.1851 11.8819 19.9967 14.0022 19.1848 14.2093C18.373 14.4164 17.2452 12.6319 16.6658 10.2235C16.0864 7.81514 16.2748 5.69486 17.0867 5.48775C17.8985 5.28063 19.0263 7.06512 19.6057 9.47351Z' fill='%236B46FE'/%3e%3cpath d='M29.0775 11.5213C27.8045 10.1593 25.2795 10.5358 23.4378 12.3621C21.5961 14.1885 21.1352 16.7732 22.4083 18.1352C23.6814 19.4972 26.2064 19.1207 28.048 17.2943C29.8897 15.4679 30.3506 12.8832 29.0775 11.5213Z' fill='%236B46FE'/%3e%3cpath d='M19.0324 32.4518C19.8443 32.2446 20.0039 30.0045 19.3889 27.4483C18.774 24.8921 17.6173 22.9877 16.8055 23.1948C15.9937 23.402 15.834 25.6421 16.449 28.1983C17.064 30.7545 18.2206 32.6589 19.0324 32.4518Z' fill='%236B46FE'/%3e%3cpath d='M10.7016 12.818C13.0471 13.5132 14.7627 14.739 14.5336 15.5559C14.3045 16.3728 12.2175 16.4714 9.87199 15.7762C7.52653 15.0809 5.81087 13.8551 6.03996 13.0383C6.26906 12.2214 8.35615 12.1228 10.7016 12.818Z' fill='%236B46FE'/%3e%3cpath d='M25.9365 21.9967C28.4259 22.7346 30.2583 23.995 30.0292 24.8119C29.8001 25.6287 27.5963 25.6927 25.1069 24.9548C22.6174 24.2169 20.7851 22.9565 21.0141 22.1397C21.2432 21.3228 23.447 21.2588 25.9365 21.9967Z' fill='%236B46FE'/%3e%3cpath d='M13.3578 20.316C12.775 19.7063 10.8709 20.6007 9.10487 22.3139C7.33879 24.0271 6.37952 25.9102 6.96226 26.5199C7.54501 27.1297 9.4491 26.2352 11.2152 24.522C12.9813 22.8089 13.9405 20.9258 13.3578 20.316Z' fill='%236B46FE'/%3e%3cpath d='M70.2098 10L75.3049 15.0945L52 15.0945' stroke='%23D0CAE7' stroke-width='3'/%3e%3cpath d='M60.7902 29.5945L55.6951 24.5L79 24.5' stroke='%23D0CAE7' stroke-width='3'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_38844_290434'%3e%3crect width='120' height='38' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\" />\n\n          <h1 class=\"pera-wallet-redirect-modal__content__title\">\n            Can't Launch Pera\n          </h1>\n\n          <p class=\"pera-wallet-redirect-modal__content__description\">\n            We couldn't redirect you to Pera Wallet automatically. Please try again.\n          </p>\n\n          <p class=\"pera-wallet-redirect-modal__content__install-pera-text\">\n            Don't have Pera Wallet installed yet?\n            <br />\n            \n            <a\n              id=\"pera-wallet-redirect-modal-download-pera-link\"\n              class=\"pera-wallet-redirect-modal__content__install-pera-text__link\"\n              href=\"https://perawallet.app/download/\"\n              rel=\"noopener noreferrer\"\n              target=\"_blank\">\n              Tap here to install.\n            </a>\n          </p>\n        </div>\n\n        <a\n          id=\"pera-wallet-redirect-modal-launch-pera-link\"\n          class=\"pera-wallet-redirect-modal__launch-pera-wallet-button\"\n          rel=\"noopener noreferrer\"\n          target=\"_blank\">\n          Launch Pera Wallet\n        </a>\n      </div>\n    </div>\n  </div>\n");class N extends HTMLElement{constructor(){var e,t;if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const n=document.createElement("style");n.textContent=D,this.shadowRoot.append(B.content.cloneNode(!0),n);const r=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-redirect-modal-download-pera-link");null==r||r.addEventListener("click",(()=>{this.onClose()}));const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-redirect-modal-launch-pera-link");null==i||i.addEventListener("click",(()=>{this.onClose(),window.open(c(),"_blank")}))}}connectedCallback(){const e=window.open(c(),"_blank");e&&!e.closed&&this.onClose()}onClose(){r.removeModalWrapperFromDOM(r.PERA_WALLET_REDIRECT_MODAL_ID)}}
2var F="data:image/svg+xml,%3csvg width='32' height='35' viewBox='0 0 32 35' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18.2837 5.09271C19.0234 8.12325 18.7827 10.7913 17.7463 11.0519C16.7098 11.3126 15.27 9.06712 14.5304 6.03657C13.7908 3.00603 14.0315 0.337996 15.0679 0.0773547C16.1044 -0.183287 17.5441 2.06216 18.2837 5.09271Z' fill='%233C3C49'/%3e%3cpath d='M30.376 7.66915C28.7507 5.95537 25.5271 6.42918 23.1759 8.72745C20.8247 11.0257 20.2361 14.2781 21.8614 15.9919C23.4866 17.7057 26.7102 17.2319 29.0614 14.9336C31.4127 12.6354 32.0012 9.38294 30.376 7.66915Z' fill='%233C3C49'/%3e%3cpath d='M17.5511 34.0071C18.5876 33.7465 18.7914 30.9276 18.0064 27.711C17.2214 24.4945 15.7448 22.0982 14.7084 22.3589C13.6719 22.6195 13.4681 25.4383 14.2531 28.6549C15.0381 31.8715 16.5147 34.2677 17.5511 34.0071Z' fill='%233C3C49'/%3e%3cpath d='M6.91617 9.3015C9.9105 10.1763 12.1008 11.7187 11.8083 12.7466C11.5158 13.7745 8.85126 13.8986 5.85693 13.0239C2.8626 12.1491 0.672334 10.6067 0.964835 9.57881C1.25734 8.5509 3.92184 8.42674 6.91617 9.3015Z' fill='%233C3C49'/%3e%3cpath d='M26.3656 20.8508C29.5437 21.7793 31.883 23.3652 31.5905 24.3932C31.298 25.4211 28.4845 25.5017 25.3063 24.5732C22.1282 23.6448 19.7889 22.0588 20.0814 21.0309C20.3739 20.003 23.1874 19.9224 26.3656 20.8508Z' fill='%233C3C49'/%3e%3cpath d='M10.3069 18.7365C9.56299 17.9692 7.13209 19.0948 4.87736 21.2506C2.62264 23.4064 1.39791 25.776 2.14185 26.5432C2.8858 27.3105 5.3167 26.1849 7.57143 24.0291C9.82615 21.8733 11.0509 19.5037 10.3069 18.7365Z' fill='%233C3C49'/%3e%3c/svg%3e",j=".pera-wallet-connect-modal-information-section {\n  padding: 12px;\n  padding-right: 0;\n}\n.pera-wallet-connect-modal-information-section--mobile {\n  padding: 0;\n}\n.pera-wallet-connect-modal-information-section--mobile .pera-wallet-connect-modal-information-section__pera-icon {\n  margin-bottom: 16px;\n}\n.pera-wallet-connect-modal-information-section--mobile .pera-wallet-connect-modal-information-section__connect-pera-title {\n  margin-bottom: 8px;\n  color: #3c3c49;\n  font-size: 18px;\n  font-weight: 600;\n  line-height: 22px;\n  letter-spacing: -0.2px;\n}\n.pera-wallet-connect-modal-information-section--mobile .pera-wallet-connect-modal-information-section__title {\n  margin-bottom: 24px;\n  color: #3c3c49;\n  font-size: 14px;\n  line-height: 24px;\n  letter-spacing: -0.09px;\n  font-weight: 400;\n}\n.pera-wallet-connect-modal-information-section--mobile .pera-wallet-connect-modal-information-section__features-item__icon-wrapper {\n  background-color: #f2f3f8;\n}\n.pera-wallet-connect-modal-information-section--mobile .pera-wallet-connect-modal-information-section__features-item__description {\n  color: #6a6a81;\n}\n.pera-wallet-connect-modal-information-section * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n  font-family: var(--pera-wallet-modal-font-family);\n  font-smooth: antialiased;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.pera-wallet-connect-modal-information-section__pera-icon {\n  margin-bottom: 32px;\n}\n\n.pera-wallet-connect-modal-information-section__title {\n  margin-bottom: 148px;\n  color: #3c3c49;\n  font-size: 20px;\n  font-weight: 500;\n  line-height: 24px;\n  letter-spacing: -0.5px;\n}\n\n.pera-wallet-connect-modal-information-section__secondary-title {\n  margin-bottom: 20px;\n  color: #9d9dae;\n  font-size: 11px;\n  font-weight: 600;\n  line-height: 18px;\n  letter-spacing: 0.06px;\n  text-transform: uppercase;\n}\n\n.pera-wallet-connect-modal-information-section__features-item {\n  display: grid;\n  align-items: center;\n  grid-template-columns: 36px auto;\n  gap: 16px;\n}\n.pera-wallet-connect-modal-information-section__features-item:not(:last-of-type) {\n  margin-bottom: 24px;\n}\n\n.pera-wallet-connect-modal-information-section__features-item__icon-wrapper {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 36px;\n  height: 36px;\n  background-color: #ffffff;\n  border-radius: 50%;\n}\n\n.pera-wallet-connect-modal-information-section__features-item__description {\n  color: #6a6a81;\n  font-size: 12px;\n  font-weight: 500;\n  line-height: 18px;\n  letter-spacing: 0.01px;\n}\n\n@media (max-width: 767px) {\n  .pera-wallet-connect-modal-information-section--desktop {\n    padding: 0;\n  }\n  .pera-wallet-connect-modal-information-section--desktop .pera-wallet-connect-modal-information-section__pera-icon {\n    margin-bottom: 12px;\n  }\n  .pera-wallet-connect-modal-information-section--desktop .pera-wallet-connect-modal-information-section__title {\n    margin-bottom: 24px;\n    font-size: 16px;\n    font-weight: 500;\n    line-height: 24px;\n    letter-spacing: -0.26px;\n  }\n  .pera-wallet-connect-modal-information-section--desktop .pera-wallet-connect-modal-information-section__features-item {\n    display: none;\n  }\n  .pera-wallet-connect-modal-information-section__secondary-title {\n    display: none;\n  }\n}";u(j);const U=document.createElement("template"),z=r.isMobile()?"pera-wallet-connect-modal-information-section pera-wallet-connect-modal-information-section--mobile":"pera-wallet-connect-modal-information-section pera-wallet-connect-modal-information-section--desktop";U.innerHTML='\n  <section class="'.concat(z,'">\n    <img\n      id="pera-wallet-connect-modal-information-section-pera-icon"\n      src="').concat(F,"\"\n      class=\"pera-wallet-connect-modal-information-section__pera-icon\"\n      alt=\"Pera Wallet Logo\"\n    />\n\n    <h1 id=\"pera-wallet-connect-modal-information-section-connect-pera-mobile\" class=\"pera-wallet-connect-modal-information-section__connect-pera-title\">\n        Connect to Pera Wallet\n    </h1>\n\n    <h1 class=\"pera-wallet-connect-modal-information-section__title\">\n      Simply the best Algorand wallet.\n    </h1>\n\n    <h2 id=\"pera-wallet-connect-modal-information-section-secondary-title\" class=\"pera-wallet-connect-modal-information-section__secondary-title\">\n      Features\n    </h2>\n\n    <ul>\n      <li class=\"pera-wallet-connect-modal-information-section__features-item\">\n        <div class=\"pera-wallet-connect-modal-information-section__features-item__icon-wrapper\">\n          <img src=\"data:image/svg+xml,%3csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2.5 10.1378C2.5 10.8378 3.025 11.6461 3.66667 11.9294L9.325 14.4461C9.75833 14.6378 10.25 14.6378 10.675 14.4461L16.3333 11.9294C16.975 11.6461 17.5 10.8378 17.5 10.1378M2.5 14.3044C2.5 15.0794 2.95833 15.7794 3.66667 16.0961L9.325 18.6128C9.75833 18.8044 10.25 18.8044 10.675 18.6128L16.3333 16.0961C17.0417 15.7794 17.5 15.0794 17.5 14.3044M10.8417 3.4043L15.7583 5.58763C17.175 6.21263 17.175 7.24596 15.7583 7.87096L10.8417 10.0543C10.2833 10.3043 9.36668 10.3043 8.80835 10.0543L3.89
2168 7.87096C2.47502 7.24596 2.47502 6.21263 3.89168 5.58763L8.80835 3.4043C9.36668 3.1543 10.2833 3.1543 10.8417 3.4043Z' stroke='%239D9DAE' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e\" alt=\"Layer Icon\" />\n        </div>\n        \n        <p\n          class=\"pera-wallet-connect-modal-information-section__features-item__description\">\n          Connect to any Algorand dApp securely\n        </p>\n      </li>\n\n      <li class=\"pera-wallet-connect-modal-information-section__features-item\">\n        <div\n          class=\"pera-wallet-connect-modal-information-section__features-item__icon-wrapper\">\n          <img src=\"data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.58033 12.3109C9.28744 12.018 8.81257 12.018 8.51967 12.3109C8.22678 12.6038 8.22678 13.0787 8.51967 13.3716L9.58033 12.3109ZM10.66 14.4512L10.1297 14.9816C10.4226 15.2745 10.8974 15.2745 11.1903 14.9816L10.66 14.4512ZM15.4903 10.6816C15.7832 10.3887 15.7832 9.91381 15.4903 9.62092C15.1974 9.32803 14.7226 9.32803 14.4297 9.62092L15.4903 10.6816ZM19.84 8.09125C19.84 8.50546 20.1758 8.84125 20.59 8.84125C21.0042 8.84125 21.34 8.50546 21.34 8.09125H19.84ZM18.5 5.07125L18.2368 5.77355L18.2373 5.77375L18.5 5.07125ZM13.51 3.20125L13.7732 2.49894L13.7724 2.49866L13.51 3.20125ZM10.49 3.20125L10.2276 2.49865L10.2256 2.49941L10.49 3.20125ZM5.5 5.08125L5.76268 5.78375L5.76442 5.78309L5.5 5.08125ZM5.14 18.9612L4.69102 19.562L4.69135 19.5623L5.14 18.9612ZM9.44 22.1713L9.89069 21.5718L9.88866 21.5702L9.44 22.1713ZM14.58 22.1713L14.1313 21.5702L14.1293 21.5718L14.58 22.1713ZM18.88 18.9612L19.3287 19.5623L19.329 19.562L18.88 18.9612ZM21.36 8.09125C21.36 7.67704 21.0242 7.34125 20.61 7.34125C20.1958 7.34125 19.86 7.67704 19.86 8.09125H21.36ZM8.51967 13.3716L10.1297 14.9816L11.1903 13.9209L9.58033 12.3109L8.51967 13.3716ZM11.1903 14.9816L15.4903 10.6816L14.4297 9.62092L10.1297 13.9209L11.1903 14.9816ZM21.34 8.09125C21.34 7.29392 21.0398 6.50041 20.5931 5.85456C20.1463 5.20881 19.5097 4.64807 18.7627 4.36875L18.2373 5.77375C18.6403 5.92443 19.0487 6.25869 19.3595 6.70794C19.6702 7.15709 19.84 7.65858 19.84 8.09125H21.34ZM18.7632 4.36895L13.7732 2.49895L13.2468 3.90355L18.2368 5.77355L18.7632 4.36895ZM13.7724 2.49866C13.2479 2.30277 12.6051 2.21875 12 2.21875C11.3949 2.21875 10.7521 2.30277 10.2276 2.49866L10.7524 3.90384C11.0579 3.78973 11.5101 3.71875 12 3.71875C12.4899 3.71875 12.9421 3.78973 13.2476 3.90384L13.7724 2.49866ZM10.2256 2.49941L5.23558 4.37941L5.76442 5.78309L10.7544 3.90309L10.2256 2.49941ZM5.23733 4.37875C4.49043 4.65803 3.85398 5.2186 3.40741 5.86265C2.96095 6.50656 2.66 7.2978 2.66 8.09125H4.16C4.16 7.6647 4.32906 7.16594 4.64009 6.71735C4.95103 6.2689 5.35957 5.93447 5.76268 5.78375L5.23733 4.37875ZM2.66 8.09125V15.5212H4.16V8.09125H2.66ZM2.66 15.5212C2.66 16.2602 2.8989 17.059 3.24874 17.7545C3.59871 18.4503 4.09802 19.1188 4.69102 19.562L5.58899 18.3605C5.23198 18.0937 4.86629 17.6322 4.58877 17.0805C4.31111 16.5285 4.16 15.9623 4.16 15.5212H2.66ZM4.69135 19.5623L8.99135 22.7723L9.88866 21.5702L5.58866 18.3602L4.69135 19.5623ZM8.98932 22.7707C9.84721 23.4157 10.9462 23.7163 12.01 23.7163C13.0738 23.7163 14.1728 23.4157 15.0307 22.7707L14.1293 21.5718C13.5772 21.9868 12.8112 22.2163 12.01 22.2163C11.2088 22.2163 10.4428 21.9868 9.89068 21.5718L8.98932 22.7707ZM15.0287 22.7723L19.3287 19.5623L18.4313 18.3602L14.1313 21.5702L15.0287 22.7723ZM19.329 19.562C19.922 19.1188 20.4213 18.4503 20.7713 17.7545C21.1211 17.059 21.36 16.2602 21.36 15.5212H19.86C19.86 15.9623 19.7089 16.5285 19.4312 17.0805C19.1537 17.6322 18.788 18.0937 18.431 18.3605L19.329 19.562ZM21.36 15.5212V8.09125H19.86V15.5212H21.36Z' fill='%239D9DAE'/%3e%3c/svg%3e\" alt=\"Tick Icon\" />\n        </div>\n\n        <p\n          class=\"pera-wallet-connect-modal-information-section__features-item__description\">\n          Your private keys are safely stored locally\n        </p>\n      </li>\n\n      <li class=\"pera-wallet-connect-modal-information-section__features-item\">\n        <div\n          class=\"pera-wallet-connect-modal-information-section__features-item__icon-wrapper\">\n          <img src=\"data:image/svg+xml,%3csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18.05 9.67014L17.3198 9.49894L18.05 9.67014ZM17.2333 13.1535L16.5031 12.9823L16.5029 12.9835L17.2333 13.1535ZM12.55 17.1285L12.6218 16.3818L12.6098 16.3809L12.55 17.1285ZM11.2 16.9035L11.376 16.1744L11.3737 16.1739L11.2 16.9035ZM9.8 16.5701L9.97372 15.8405L9.97324 15.8404L9.8 16.5701ZM6.06667 10.5451L6.79687 10.7163L6.79696 10.7159L6.06667 10.5451ZM6.88334 7.05347L6.15327 6.88169L6.15304 6.88267L6.88334 7.05347ZM7.5 5.22014L8.17303 5.55114L8.17523 5.54659L7.5 5.22014ZM12.9167 3.32014L12.744 4.05L12.7461 4.05049L12.9167 3.32014ZM14.3083 3.64514L14.4791 2.91485L14.4789 2.91479L14.3083 3.64514ZM10.5917 18.0285L10.359 
217.3155L10.3572 17.3161L10.5917 18.0285ZM9.27501 18.4618L9.50516 19.1756L9.50947 19.1742L9.27501 18.4618ZM3.15001 15.3285L2.43654 15.5597L2.43672 15.5603L3.15001 15.3285ZM2.08334 12.0368L1.36953 12.267L1.36987 12.268L2.08334 12.0368ZM5.20834 5.91182L5.43849 6.62565L5.44281 6.62423L5.20834 5.91182ZM6.52501 5.47848L6.29831 4.76352L6.29055 4.76608L6.52501 5.47848ZM10.7177 7.35149C10.3162 7.24967 9.90818 7.49261 9.80635 7.89411C9.70453 8.29561 9.94746 8.70364 10.349 8.80546L10.7177 7.35149ZM14.3906 9.83046C14.7921 9.93229 15.2002 9.68935 15.302 9.28785C15.4038 8.88635 15.1609 8.47832 14.7594 8.37649L14.3906 9.83046ZM9.90211 10.5768C9.50076 10.4743 9.09238 10.7167 8.98996 11.118C8.88755 11.5194 9.12988 11.9278 9.53124 12.0302L9.90211 10.5768ZM11.9479 12.6469C12.3493 12.7493 12.7576 12.5069 12.8601 12.1056C12.9625 11.7042 12.7201 11.2958 12.3188 11.1934L11.9479 12.6469ZM17.3198 9.49894L16.5031 12.9823L17.9635 13.3247L18.7802 9.84133L17.3198 9.49894ZM16.5029 12.9835C16.168 14.4224 15.6979 15.2955 15.1165 15.793C14.5605 16.2688 13.7912 16.4944 12.6218 16.3819L12.4782 17.875C13.9088 18.0126 15.1312 17.7548 16.0918 16.9327C17.0271 16.1323 17.5986 14.8928 17.9638 13.3234L16.5029 12.9835ZM12.6098 16.3809C12.2388 16.3512 11.8281 16.2835 11.376 16.1744L11.024 17.6325C11.5386 17.7567 12.0279 17.8391 12.4902 17.8761L12.6098 16.3809ZM11.3737 16.1739L9.97372 15.8405L9.62629 17.2997L11.0263 17.6331L11.3737 16.1739ZM9.97324 15.8404C8.30732 15.4449 7.40652 14.876 6.96107 14.1588C6.51616 13.4425 6.40566 12.385 6.79687 10.7163L5.33647 10.3739C4.91101 12.1887 4.92968 13.7311 5.68685 14.9502C6.44349 16.1685 7.81769 16.8704 9.62676 17.2999L9.97324 15.8404ZM6.79696 10.7159L7.61363 7.22428L6.15304 6.88267L5.33638 10.3743L6.79696 10.7159ZM7.6134 7.22525C7.77277 6.54795 7.95691 5.99053 8.17301 5.55113L6.82699 4.88915C6.54309 5.46641 6.32724 6.14234 6.15327 6.88169L7.6134 7.22525ZM8.17523 5.54659C8.59604 4.67619 9.11898 4.20234 9.77488 3.97598C10.4657 3.73759 11.4133 3.73525 12.744 4.05L13.0893 2.59028C11.6367 2.2467 10.3635 2.18603 9.28554 2.55805C8.17269 2.94211 7.37896 3.74743 6.82478 4.89369L8.17523 5.54659ZM12.7461 4.05049L14.1378 4.37549L14.4789 2.91479L13.0872 2.58979L12.7461 4.05049ZM14.1375 4.37543C15.8111 4.76687 16.7126 5.33603 17.1575 6.05304C17.6023 6.77006 17.7112 7.82942 17.3198 9.49894L18.7802 9.84133C19.2054 8.02753 19.1893 6.48272 18.4321 5.26224C17.6749 4.04175 16.2972 3.34008 14.4791 2.91485L14.1375 4.37543ZM12.1294 16.5075C11.6911 16.8045 11.1123 17.0697 10.359 17.3155L10.8243 18.7415C11.6544 18.4706 12.3756 18.1525 12.9706 17.7494L12.1294 16.5075ZM10.3572 17.3161L9.04055 17.7494L9.50947 19.1742L10.8261 18.7409L10.3572 17.3161ZM9.04486 17.748C7.46037 18.2589 6.43607 18.2362 5.71663 17.8681C4.99693 17.4999 4.37829 16.6816 3.8633 15.0967L2.43672 15.5603C2.99673 17.2837 3.78642 18.5654 5.03339 19.2035C6.28062 19.8416 7.78131 19.7314 9.50516 19.1756L9.04486 17.748ZM3.86348 15.0973L2.79682 11.8056L1.36987 12.268L2.43654 15.5597L3.86348 15.0973ZM2.79716 11.8067C2.28607 10.2215 2.3068 9.19457 2.67362 8.4739C3.03983 7.75443 3.85506 7.13616 5.43849 6.62563L4.9782 5.198C3.25329 5.75414 1.97269 6.54421 1.33682 7.79348C0.701551 9.04157 0.813948 10.5438 1.36953 12.267L2.79716 11.8067ZM5.44281 6.62423L6.75947 6.19089L6.29055 4.76608L4.97388 5.19941L5.44281 6.62423ZM6.75169 6.19341C7.08205 6.08866 7.37424 6.00724 7.63942 5.95707L7.36058 4.48321C7.00909 4.54971 6.6513 4.65164 6.29833 4.76356L6.75169 6.19341ZM10.349 8.80546L14.3906 9.83046L14.7594 8.37649L10.7177 7.35149L10.349 8.80546ZM9.53124 12.0302L11.9479 12.6469L12.3188 11.1934L9.90211 10.5768L9.53124 12.0302Z' fill='%239D9DAE'/%3e%3c/svg%3e\" alt=\"Note Icon\" />\n        </div>\n\n        <p\n          class=\"pera-wallet-connect-modal-information-section__features-item__description\">\n          View NFTs, buy and swap crypto and more\n        </p>\n      </li>\n    </ul>\n  </section>\n");class q extends HTMLElement{constructor(){var e,t,n,i;super(),this.attachShadow({mode:"open"});const o="true"===(null===(e=document.querySelector("pera-wallet-connect-modal"))||void 0===e?void 0:e.getAttribute("compact-mode"));if(this.shadowRoot&&(!o&&!r.isMobile()||r.isMobile())){const e=document.createElement("style");e.textContent=j,this.shadowRoot.append(U.content.cloneNode(!0),e),d()&&r.isMobile()?null===(t=this.shadowRoot.getElementById("pera-wallet-connect-modal-information-section-title"))||void 0===t||t.setAttribute("style","display: none;"):(null===(n=this.shadowRoot.getElementById("pera-wallet-connect-modal-information-section-pera-icon"))||void 0===n||n.setAttribute("src","data:image/svg+xml,%3csvg width='84' height='38' viewBox='0 0 84 38' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M19.806 8.62773C20.4416 11.2609 20.2268 13.5772 19.3262 13.8012C18.4256 14.0253 17.1803 12.0723 16.5448 9.43906C15.9092 6.80585 16.1241 4.48959 17.0246 4.26555C17.9252 4.04151 19.1705 5.99452 19.806 8.62773Z' fill='%233C3C49'/%3e%3cpath d='M30.3007 10.8917C28.8932 9.3999 26.0929 9.80424 24.0461 11.7948C21.9994 13.7853 21.4812 16.6082 22.8887 18.1C24.2962 19.5917 27.0964 19.1874 29.1432 
217.1969C31.1899 15.2064 31.7082 12.3834 30.3007 10.8917Z' fill='%233C3C49'/%3e%3cpath d='M19.1061 33.734C20.0067 33.5099 20.1899 31.0627 19.5153 28.2678C18.8408 25.473 17.5639 23.3889 16.6633 23.613C15.7627 23.837 15.5795 26.2843 16.2541 29.0791C16.9286 31.874 18.2056 33.958 19.1061 33.734Z' fill='%233C3C49'/%3e%3cpath d='M9.92571 12.2574C12.5239 13.0236 14.4224 14.3678 14.1662 15.2597C13.9099 16.1517 11.5959 16.2536 8.99771 15.4874C6.3995 14.7212 4.50098 13.377 4.75724 12.4851C5.0135 11.5931 7.3275 11.4912 9.92571 12.2574Z' fill='%233C3C49'/%3e%3cpath d='M26.7892 22.3292C29.5469 23.1424 31.5747 24.5247 31.3184 25.4167C31.0621 26.3086 28.6189 26.3724 25.8612 25.5592C23.1035 24.7459 21.0757 23.3636 21.3319 22.4717C21.5882 21.5797 24.0315 21.5159 26.7892 22.3292Z' fill='%233C3C49'/%3e%3cpath d='M12.8493 20.4577C12.205 19.7898 10.0916 20.7619 8.12896 22.6289C6.16631 24.4959 5.09759 26.5509 5.7419 27.2188C6.38622 27.8867 8.49958 26.9146 10.4622 25.0476C12.4249 23.1806 13.4936 21.1256 12.8493 20.4577Z' fill='%233C3C49'/%3e%3cpath d='M41.691 12.5347V11.9635H39.3366V27.1957H41.691V23.0915C41.691 22.6472 41.691 22.2876 41.6482 21.801H41.691C42.5471 23.1973 44.0026 23.9377 45.7148 23.9377C48.6043 23.9377 51.1299 21.7587 51.1299 17.7179C51.1299 13.7617 48.6043 11.625 45.7148 11.625C44.0668 11.625 42.6113 12.3443 41.691 13.7617H41.6482C41.691 13.2963 41.691 12.9578 41.691 12.5347ZM45.1155 21.9279C42.9324 21.9068 41.6696 20.0662 41.6696 17.6967C41.6696 15.4542 42.9324 13.656 45.1155 13.6348C47.2559 13.6137 48.6685 15.2638 48.6685 17.7179C48.6685 20.2354 47.2559 21.9491 45.1155 21.9279Z' fill='%233C3C49'/%3e%3cpath d='M63.4932 16.7236C63.4932 13.8041 61.1388 11.625 57.9283 11.625C54.5037 11.625 52.1279 13.931 52.1279 17.7814C52.1279 21.4836 54.4609 23.9377 57.9283 23.9377C60.7749 23.9377 62.8939 22.2876 63.3862 20.0239H60.8177C60.4111 21.1663 59.2981 21.9279 57.9283 21.9279C56.1732 21.9279 54.889 20.6797 54.6107 18.6064H63.4932V16.7236ZM57.9283 13.6348C59.662 13.6348 60.8606 14.8195 61.1174 16.5332H54.6321C54.9318 14.883 56.1518 13.6348 57.9283 13.6348Z' fill='%233C3C49'/%3e%3cpath d='M65.224 23.5992H67.5784V17.0409C67.5784 14.7984 68.8198 13.6348 70.7462 13.6348H72.009V11.625H71.003C69.2693 11.625 68.1991 12.7674 67.5784 13.7617H67.5356V11.9635H65.224V23.5992Z' fill='%233C3C49'/%3e%3cpath d='M83.0154 21.5683C82.6944 21.5683 82.5445 21.3779 82.5445 20.9971V15.8773C82.5445 13.4233 81.3459 11.625 77.8144 11.625C74.3898 11.625 72.8273 13.3175 72.6561 15.7292H75.0105C75.1603 14.4176 76.2091 13.6348 77.8144 13.6348C79.1842 13.6348 80.1259 14.2272 80.1259 15.158C80.1259 15.9196 79.5909 16.3851 77.8358 16.3851H76.894C74.0901 16.3851 72.2066 17.5063 72.2066 20.0662C72.2066 22.753 74.1972 23.98 76.5301 23.98C78.2638 23.98 79.7407 23.2184 80.3186 21.5894C80.3828 22.7742 81.1747 23.5992 82.673 23.5992H84V21.5683H83.0154ZM80.1902 18.1833C80.1902 20.8067 78.7561 21.9491 76.9154 21.9491C75.3101 21.9491 74.668 21.0182 74.668 20.0662C74.668 19.1565 75.2245 18.416 76.9368 18.416H77.2793C78.9273 18.416 79.9547 17.8448 80.1688 16.8505H80.1902V18.1833Z' fill='%233C3C49'/%3e%3c/svg%3e"),null===(i=this.shadowRoot.getElementById("pera-wallet-connect-modal-information-section-connect-pera-mobile"))||void 0===i||i.setAttribute("style","display: none;"))}}}var W='@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");\n.pera-wallet-modal {\n  --pera-wallet-modal-font-family: "Inter", sans-serif;\n  --pera-wallet-modal-compact-width: 380px;\n  --pera-wallet-modal-compact-height: 396px;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  position: fixed;\n  top: 0;\n  right: 0;\n  left: 0;\n  bottom: 0;\n  z-index: 999999;\n  width: 100vw;\n  height: 100vh;\n  background-color: rgba(0, 0, 0, 0.7);\n}\n.pera-wallet-modal--select-account .pera-wallet-modal__body {\n  width: 480px;\n  height: 578px;\n  background-color: #ffffff;\n}\n.pera-wallet-modal--mobile .pera-wallet-modal__body {\n  top: 40px;\n  bottom: 0;\n  left: 0;\n  width: 100%;\n  max-width: unset;\n  height: calc(100 * var(--vh));\n  padding: 20px;\n  background-color: #ffffff;\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\n  border-radius: 20px 20px 0px 0px;\n  animation: 0.3s PeraWalletConnectMobileSlideIn ease-out;\n  overflow-y: auto;\n  transform: unset;\n}\n.pera-wallet-modal--mobile .pera-wallet-modal__body::before {\n  background-image: unset;\n}\n.pera-wallet-modal--compact:not(.pera-wallet-modal--mobile) .pera-wallet-modal__body {\n  width: var(--pera-wallet-modal-compact-width);\n  height: var(--pera-wallet-modal-compact-height);\n  padding: 0;\n}\n.pera-wallet-modal * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n  font-family: var(--pera-wallet-modal-font-family);\n  font-smooth: antialiased;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.pera-wallet-modal ul,\n.pera-wallet-modal ol,\n.pera-wallet-modal li {\n  list-style-type: none;\n}\n\n.pera-wallet-button {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: auto;\n  height: 48px;\n  padding: 14px;\n  border: none;\n  border-radius: 12px;\n  outline: none;\n  cursor: pointer;\n  font-family: var(--pera-wallet-modal-font-family);\n  font-size: 14px;\n}\n\n.pera-wallet-modal__logo img {\n  display: block;\n  width: 32px;\n}\n\n.pera-wallet-modal__body {\n  position: relative;\n  top: 50%;\n  left: 50%;\n  width: 700px;\n  max-width: calc(100vw - 80px);\n  padding: 28px;\n  background-color: #f3f3f7;\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\n  border-radius: 24px;\n  animation: 0.3s PeraWalletConnectSlideIn ease-out;\n  transform: translate(-50%, -50%);\n}\n.pera-wallet-modal__body::before {\n  --background-line: #1e0972 0 1.2px, transparent 0 calc(100% - 1.2px), #1e0972;\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: -1;\n  content: "";\n  background-image: linear-gradient(var(--background-line)), linear-gradient(90deg, var(--background-line));\n  background-size: 116px 116px;\n  mix-blend-mode: overlay;\n  border-radius: 24px;\n  opacity: 0.8;\n  pointer-events: none;\n}\n\n@media (max-width: 767px) {\n  .pera-wallet-modal--desktop .pera-wallet-modal__body {\n    width: 100%;\n    max-width: calc(100vw - 32px);\n    padding: 24px;\n  }\n}\n@keyframes PeraWalletConnectSlideIn {\n  0% {\n    opacity: 0;\n    transform: translate(-50%, calc(-50% + 24px));\n  }\n  100% {\n    opacity: 1;\n    transform: translate(-50%, -50%);\n  }\n}\n@keyframes PeraWalletConnectMobileSlideIn {\n  0% {\n    top: 30%;\n    opacity: 0;\n  }\n  100% {\n    top: 40px;\n    opacity: 1;\n  }\n}\n.pera-wallet-connect-modal-pending-message-section {\n  display: grid;\n  grid-template-columns: 1fr;\n  grid-template-rows: auto 48px;\n  gap: 56px;\n  height: 100%;\n  padding: 4px;\n  padding-bottom: 70px;\n}\n\n.pera-wallet-connect-modal-pending-message {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-direction: column;\n  text-align: center;\n}\n.pera-wallet-connect-modal-pending-message--try-again-view {\n  display: flex;\n  justify-content: space-between;\n  flex-direction: column;\n  height: 100%;\n  margin-top: 10px;\n}\n.pera-wallet-connect-modal-pending-message--try-again-view__title {\n  margin: 16px 0 12px;\n  color: #3c3c49;\n  font-size: 18px;\n  font-weight: 500;\n  line-height: 24px;\n  letter-spacing: -0.26px;\n}\n.pera-wallet-connect-modal-pending-message--try-again-view__description {\n  color: #6a6a81;\n  font-size: 14px;\n  font-weight: 400;\n  line-height: 24px;\n  letter-spacing: -0.01px;\n}\n.pera-wallet-connect-modal-pending-message--try-again-view__button {\n  display: block;\n  width: 100%;\n  padding: 14px;\n  border-radius: 12px;\n  text-decoration: none;\n  text-align: center;\n  font-size: 14px;\n  line-height: 20px;\n  letter-spacing: -0.09px;\n  font-weight: 500;\n  color: #ffffff;\n  background-color: #6b46fe;\n  border: none;\n}\n.pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor {\n  display: flex;\n  gap: 12px;\n  margin-bottom: 20px;\n  padding: 16px;\n  background: #ffffff;\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\n  border-radius: 12px;\n  text-decoration: none;\n}\n.pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__image {\n  width: 24px;\n  height: 24px;\n}\n.pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title-wrapper {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 4px;\n}\n.pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title {\n  margin: 0;\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 20px;\n  letter-spacing: -0.1px;\n  color: #3c3c49;\n}\n.pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__description {\n  /* stylelint-disable value-no-vendor-prefix */\n  /* stylelint-disable  property-no-vendor-prefix */\n  display: -webkit-box;\n  max-width: 100%;\n  -webkit-line-clamp: 2;\n  /* autoprefixer: ignore next */\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n  /* stylelint-enable value-no-vendor-prefix */\n  /* stylelint-enable property-no-vendor-prefix */\n  margin: 0;\n  font-size: 12px;\n  font-weight: 400;\n  line-height: 18px;\n  letter-spacing: 0.01px;\n  color: #9d9dae;\n}\n\n.pera-wallet-connect-modal-pending-message__animation-wrapper {\n  width: 56px;\n  height: 56px;\n  background-color: #6b46fe;\n  border-radius: 50%;\n}\n\n.pera-wallet-connect-modal-pending-message__text {\n  max-width: 271px;\n  margin-top: 24px;\n  color: #3c3c49;\n  font-size: 18px;\n  font-weight: 500;\n  line-height: 28px;\n  letter-spacing: -0.26px;\n}\n\n.pera-wallet-connect-modal-pending-message__cancel-button {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100%;\n  padding: 14px;\n  color: #6a6a81;\n  background-color: #ffffff;\n  box-shadow: 0px 0px 1px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);\n  border-radius: 12px;\n  text-decoration: none;\n  text-align: center;\n  font-size: 14px;\n  line-height: 20px;\n  letter-spacing: -0.09px;\n  font-weight: 500;\n  border: none;\n}';u(W);const V=document.createElement("template");V.innerHTML='\n  <div class="pera-wallet-connect-modal-pending-message-section">\n    <div class="pera-wallet-connect-modal-pending-message">\n      <div id="pera-wallet-connect-modal-pending-message-animation-wrapper" class="pera-wallet-connect-modal-pending-message__animation-wrapper"></div>\n\n      <div class="pera-wallet-connect-modal-pending-message__text">\n        Please wait while we connect you to Pera Wallet\n      </div>\n    </div>\n\n    <button\n      id="pera-wallet-connect-modal-pending-message-cancel-button"\n      class="pera-wallet-button pera-wallet-connect-modal-pending-message__cancel-button">\n        Cancel\n    </button>\n  </div>\n\n  <div id="pera-wallet-connect-modal-pending-message-audio-wrapper"></div>\n';const H='\n  <div class="pera-wallet-connect-modal-pending-message--try-again-view">\n    <div>\n      <img src="'.concat(F,"\" alt=\"Pera Wallet Logo\" />\n\n      <h1 class=\"pera-wallet-connect-modal-pending-message--try-again-view__title\">\n        Couldn\u2019t establish connection\n      </h1>\n\n      <p class=\"pera-wallet-connect-modal-pending-message--try-again-view__description\">\n        Having issues? Before trying again, make sure to read the support article below and apply the possible solutions.\n      </p>\n    </div>\n\n    <div>\n      <a\n        href=\"https://support.perawallet.app/en/article/resolving-walletconnect-issues-1tolptm/\"\n        target=\"_blank\"\n        rel=\"noopener noreferrer\"\n        class=\"pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor\">\n        <img\n          class=\"pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__image\"\n          src=\"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 22.3199C7.72 22.3199 7.42998 22.2499 7.16998 22.1099C6.59998 21.8099 6.25 21.2099 6.25 20.5699V19.15C3.23 18.84 1.25 16.6199 1.25 13.4399V7.43994C1.25 3.99994 3.56 1.68994 7 1.68994H17C20.44 1.68994 22.7
25 3.99994 22.75 7.43994V13.4399C22.75 16.8799 20.44 19.1899 17 19.1899H13.23L8.96997 22.03C8.67997 22.22 8.34 22.3199 8 22.3199ZM7 3.17993C4.42 3.17993 2.75 4.84993 2.75 7.42993V13.43C2.75 16.01 4.42 17.68 7 17.68C7.41 17.68 7.75 18.02 7.75 18.43V20.56C7.75 20.69 7.83 20.75 7.88 20.78C7.93001 20.81 8.03001 20.84 8.14001 20.77L12.59 17.81C12.71 17.73 12.86 17.68 13.01 17.68H17.01C19.59 17.68 21.26 16.01 21.26 13.43V7.42993C21.26 4.84993 19.59 3.17993 17.01 3.17993H7ZM11.9998 12.11C11.5898 12.11 11.2498 11.77 11.2498 11.36V11.15C11.2498 10.0038 12.0798 9.4336 12.4082 9.20798L12.4198 9.20001C12.7898 8.95001 12.9098 8.78002 12.9098 8.52002C12.9098 8.02002 12.4998 7.60999 11.9998 7.60999C11.4998 7.60999 11.0898 8.02002 11.0898 8.52002C11.0898 8.93002 10.7498 9.27002 10.3398 9.27002C9.92984 9.27002 9.58984 8.93002 9.58984 8.52002C9.58984 7.19002 10.6698 6.10999 11.9998 6.10999C13.3298 6.10999 14.4098 7.19002 14.4098 8.52002C14.4098 9.66002 13.5698 10.23 13.2598 10.44C12.8698 10.7 12.7498 10.87 12.7498 11.15V11.36C12.7498 11.78 12.4098 12.11 11.9998 12.11ZM11.25 13.85C11.25 14.26 11.58 14.6 12 14.6C12.42 14.6 12.75 14.26 12.75 13.85C12.75 13.44 12.41 13.1 12 13.1C11.59 13.1 11.25 13.44 11.25 13.85Z' fill='%236B46FE'/%3e%3c/svg%3e\"\n          alt=\"Help Icon\"\n        />\n\n        <div>\n          <div\n            class=\"pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title-wrapper\">\n            <h1\n              class=\"pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__title\">\n                Resolving WalletConnect issues\n            </h1>\n\n            <img src=\"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.3287 10.0983C10.9574 10.0983 10.6564 9.79734 10.6564 9.42604L10.6564 6.29525L5.14866 11.803C4.88611 12.0655 4.46044 12.0655 4.19789 11.803C3.93534 11.5404 3.93534 11.1147 4.19789 10.8522L9.70561 5.34447L6.57482 5.34447C6.20352 5.34447 5.90252 5.04347 5.90252 4.67218C5.90252 4.30088 6.20352 3.99988 6.57482 3.99988L11.3287 3.99988C11.507 3.99988 11.678 4.07071 11.8041 4.19679C11.9301 4.32287 12.001 4.49387 12.001 4.67218L12.001 9.42604C12.001 9.79734 11.7 10.0983 11.3287 10.0983Z' fill='%239D9DAE'/%3e%3c/svg%3e\" alt=\"Send Icon\"/>\n          </div>\n\n          <p\n            class=\"pera-wallet-connect-modal-pending-message--try-again-view__resolving-anchor__description\">\n            Unfortunately there are several known issues related to WalletConnect that our team is working on. Some of these issues are related to the WalletConnect JavaScript implementation on the dApp ...\n          </p>\n        </div>\n      </a>\n\n      <button id=\"pera-wallet-connect-modal-pending-message-try-again-button\" class=\"pera-wallet-connect-button pera-wallet-connect-modal-pending-message--try-again-view__button\">\n        Close & Try Again\n      </button>\n    </div>\n  </div>\n  ");class K extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");e.textContent=W,this.shadowRoot.append(V.content.cloneNode(!0),e)}}connectedCallback(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-connect-modal-pending-message-cancel-button");null==t||t.addEventListener("click",(()=>{this.onClose()})),this.addAudioForConnection(),this.renderLottieAnimation(),setTimeout((()=>{var e;if(V.innerHTML=H,this.shadowRoot){const t=document.createElement("style");t.textContent=W,this.shadowRoot.innerHTML="",this.shadowRoot.append(V.content.cloneNode(!0),t);const n=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-connect-modal-pending-message-try-again-button");null==n||n.addEventListener("click",(()=>{this.onClose()}))}}),3e4)}onClose(){r.removeModalWrapperFromDOM(r.PERA_WALLET_CONNECT_MODAL_ID)}addAudioForConnection(){var e;if("true"===this.getAttribute("should-use-sound")&&r.isIOS()){const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-connect-modal-pending-message-audio-wrapper"),n=document.createElement("audio");n.src="https://s3.amazonaws.com/wc.perawallet.app/audio.mp3",n.autoplay=!0,n.loop=!0,null==t||t.appendChild(n)}}
2renderLottieAnimation(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-connect-modal-pending-message-animation-wrapper");t&&l.default.loadAnimation({container:t,renderer:"svg",loop:!0,autoplay:!0,path:"https://s3.amazonaws.com/wc.perawallet.app/static/pera-loader-animation.json"})}}var G='.pera-wallet-sign-txn-toast {\n  --pera-wallet-sign-txn-toast-width: 422px;\n  --pera-wallet-sign-txn-toast-height: 134px;\n  --pera-wallet-sign-txn-toast-font-family: "Inter", sans-serif;\n  position: fixed;\n  bottom: 28px;\n  right: 35px;\n  z-index: 11;\n  overflow: hidden;\n  width: var(--pera-wallet-sign-txn-toast-width);\n  height: var(--pera-wallet-sign-txn-toast-height);\n  background: #edeffb;\n  border-radius: 8px;\n  animation: 0.2s PeraWalletSignTxnToastSlideIn ease-out;\n}\n.pera-wallet-sign-txn-toast * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n  font-family: var(--pera-wallet-sign-txn-toast-font-family);\n  font-smooth: antialiased;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.pera-wallet-sign-txn-toast ul,\n.pera-wallet-sign-txn-toast ol,\n.pera-wallet-sign-txn-toast li {\n  list-style-type: none;\n}\n\n.pera-wallet-sign-txn-toast__header__close-button {\n  position: absolute;\n  top: 10px;\n  right: 10px;\n  width: 20px;\n  height: 20px;\n  margin: 0;\n  padding: 0;\n  background: transparent;\n  border: none;\n  cursor: pointer;\n}\n\n.pera-wallet-sign-txn-toast__content__lottie-animation {\n  position: absolute;\n  top: -75px;\n  left: -100px;\n  width: 368px;\n  height: 368px;\n}\n\n.pera-wallet-sign-txn-toast__content__description {\n  position: absolute;\n  top: 40px;\n  right: 48px;\n  max-width: 197px;\n  color: #3c3c49;\n  font-size: 14px;\n  line-height: 22px;\n  letter-spacing: -0.1px;\n}\n\n@media (max-width: 767px) {\n  .pera-wallet-sign-txn-toast {\n    display: none;\n  }\n}\n@keyframes PeraWalletSignTxnToastSlideIn {\n  0% {\n    bottom: 12px;\n    opacity: 0;\n  }\n  100% {\n    bottom: 26px;\n    opacity: 1;\n  }\n}';u(G);const Z=document.createElement("template");Z.innerHTML='\n  <div class="pera-wallet-sign-txn-toast">\n    <div class="pera-wallet-sign-txn-toast__header">\n      <button\n        id="pera-wallet-sign-txn-toast-close-button"\n        class="pera-wallet-sign-txn-toast__header__close-button">\n        <img src="data:image/svg+xml,%3csvg width=\'20\' height=\'20\' viewBox=\'0 0 20 20\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M14.4107 4.41074L9.41074 9.41074L10.5893 10.5893L15.5893 5.58926L14.4107 4.41074ZM9.41074 9.41074L4.41074 14.4107L5.58926 15.5893L10.5893 10.5893L9.41074 9.41074ZM15.5893 14.4107L10.5893 9.41074L9.41074 10.5893L14.4107 15.5893L15.5893 14.4107ZM10.5893 9.41074L5.58926 4.41074L4.41074 5.58926L9.41074 10.5893L10.5893 9.41074Z\' fill=\'%239099BD\'/%3e%3c/svg%3e" />\n      </button>\n    </div>\n    <div class="pera-wallet-sign-txn-toast__content">\n      <div id="pera-wallet-sign-txn-toast-lottie-animation" style="width:368;height:368" class="pera-wallet-sign-txn-toast__content__lottie-animation"></div>\n      <p class="pera-wallet-sign-txn-toast__content__description">\n        Please launch <b>Pera Wallet</b> on your iOS or Android device to sign this transaction.\n      </p>\n    </div>\n  </div>\n';class Q extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");e.textContent=G,this.shadowRoot.append(Z.content.cloneNode(!0),e);const t=this.shadowRoot.getElementById("pera-wallet-sign-txn-toast-close-button");null==t||t.addEventListener("click",(()=>{r.removeModalWrapperFromDOM(r.PERA_WALLET_SIGN_TXN_TOAST_ID)})),this.renderLottieAnimation()}}renderLottieAnimation(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-sign-txn-toast-lottie-animation");t&&l.default.loadAnimation({container:t,renderer:"svg",loop:!0,autoplay:!0,path:"https://s3.amazonaws.com/wc.perawallet.app/static/sign-toast-animation.json"})}}var Y='@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");\n.pera-wallet-modal {\n  --pera-wallet-modal-font-family: "Inter", sans-serif;\n  --pera-wallet-modal-compact-width: 380px;\n  --pera-wallet-modal-compact-height: 396px;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  position: fixed;\n  top: 0;\n  right: 0;\n  left: 0;\n  bottom: 0;\n  z-index: 999999;\n  width: 100vw;\n  height: 100vh;\n  background-color: rgba(0, 0, 0, 0.7);\n}\n.pera-wallet-modal--select-account .pera-wallet-modal__body {\n  width: 480px;\n  height: 578px;\n  background-color: #ffffff;\n}\n.pera-wallet-modal--mobile .pera-wallet-modal__body {\n  top: 40px;\n  bottom: 0;\n  left: 0;\n  width: 100%;\n  max-width: unset;\n  height: calc(100 * var(--vh));\n  padding: 20px;\n  background-color: #ffffff;\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);\n  border-radius: 20px 20px 0px 0px;\n  animation: 0.3s PeraWalletConnectMobileSlideIn ease-out;\n  overflow-y: auto;\n  transform: unset;\n}\n.pera-wallet-modal--mobile .pera-wallet-modal__body::before {\n  background-image: unset;\n}\n.pera-wallet-modal--compact:not(.pera-wallet-modal--mobile) .pera-wallet-modal__body {\n  width: var(--pera-wallet-modal-compact-width);\n  height: var(--pera-wallet-modal-compact-height);\n  padding: 0;\n}\n.pera-wallet-modal * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n  font-family: var(--pera-wallet-modal-font-family);\n  font-smooth: antialiased;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.pera-wallet-modal ul,\n.pera-wallet-modal ol,\n.pera-wallet-modal li {\n  list-style-type: none;\n}\n\n.pera-wallet-button {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: auto;\n  height: 48px;\n  padding: 14px;\n  border: none;\n  border-radius: 12px;\n  outline: none;\n  cursor: pointer;\n  font-family: var(--pera-wallet-modal-font-family);\n  font-size: 14px;\n}\n\n.pera-wallet-modal__logo img {\n  display: block;\n  width: 32px;\n}\n\n.pera-wallet-modal__body {\n  position: relative;\n  top: 50%;\n  left: 50%;\n  width: 700px;\n  max-width: calc(100vw - 80px);\n  padding: 28px;\n  background-color: #f3f3f7;\n  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.08);\n  border-radius: 24px;\n  animation: 0.3s PeraWalletConnectSlideIn ease-out;\n  transform: translate(-50%, -50%);\n}\n.pera-wallet-modal__body::before {\n  --background-line: #1e0972 0 1.2px, transparent 0 calc(100% - 1.2px), #1e0972;\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: -1;\n  content: "";\n  background-image: linear-gradient(var(--background-line)), linear-gradient(90deg, var(--background-line));\n  background-size: 116px 116px;\n  mix-blend-mode: overlay;\n  border-radius: 24px;\n  opacity: 0.8;\n  pointer-events: none;\n}\n\n@media (max-width: 767px) {\n  .pera-wallet-modal--desktop .pera-wallet-modal__body {\n    width: 100%;\n    max-width: calc(100vw - 32px);\n    padding: 24px;\n  }\n}\n@keyframes PeraWalletConnectSlideIn {\n  0% {\n    opacity: 0;\n    transform: translate(-50%, calc(-50% + 24px));\n  }\n  100% {\n    opacity: 1;\n    transform: translate(-50%, -50%);\n  }\n}\n@keyframes PeraWalletConnectMobileSlideIn {\n  0% {\n    top: 30%;\n    opacity: 0;\n  }\n  100% {\n    top: 40px;\n    opacity: 1;\n  }\n}\n.pera-wallet-sign-txn-modal.pera-wallet-modal .pera-wallet-modal__body {\n  width: 480px;\n  height: 578px;\n  background-color: #ffffff;\n  background-image: unset;\n  padding: 0;\n}\n.pera-wallet-sign-txn-modal.pera-wallet-modal .pera-wallet-modal__body .pera-wallet-sign-txn-modal__body__content {\n  width: 100%;\n  height: 100%;\n}\n.pera-wallet-sign-txn-modal.pera-wallet-modal .pera-wallet-modal__body #pera-wallet-iframe {\n  width: 100%;\n  height: 100%;\n  border-radius: 16px;\n  margin: 0 auto;\n  border: none;\n}\n\n.pera-wallet-sign-txn-modal--compact.pera-wallet-modal .pera-wallet-modal__body {\n  width: var(--pera-wallet-modal-compact-width);\n  height: var(--pera-wallet-modal-compact-height);\n}';u(Y);const X=document.createElement("template");X.innerHTML='\n  <div id="pera-wallet-sign-txn-modal" class="'.concat(r.PERA_WALLET_MODAL_CLASSNAME,' pera-wallet-sign-txn-modal">\n    <div class="pera-wallet-modal__body">\n      <pera-wallet-modal-header modal-id="').concat(r.PERA_WALLET_SIGN_TXN_MODAL_ID,'"></pera-wallet-modal-header/>\n\n      <div class="pera-wallet-sign-txn-modal__body__content" />\n    </div>\n  </div>\n');class J extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const e=document.createElement("style");if(e.textContent=Y,this.shadowRoot.append(X.content.cloneNode(!0),e),"true"===this.getAttribute("compact-mode")){const e=this.shadowRoot.getElementById("pera-wallet-sign-txn-modal");null==e||e.classList.add("pera-wallet-sign-txn-modal--compact")}}}}window.addEventListener("DOMContentLoaded",(()=>{p()})),window.addEventListener("resize",(()=>{p()})),window.customElements.define("pera-wallet-connect-modal",O),window.customElements.define("pera-wallet-modal-desktop-mode",C),window.customElements.define("pera-wallet-modal-header",g),window.customElements.define("pera-wallet-modal-touch-screen-mode",P),window.customElements.define("pera-wallet-redirect-modal",N),window.customElements.define("pera-wallet-connect-modal-information-section",q),window.customElements.define("pera-wallet-connect-modal-pending-message-section",K),window.customElements.define("pera-wallet-sign-txn-toast",Q),window.customElements.define("pera-wallet-sign-txn-modal",J),window.customElements.define("pera-wallet-download-qr-code",b)},7355:(e,t,n)=>{"use strict";var r=n(6309),i=n(7262),o=n(5524);function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(r),l=a(i),c=a(o);
2function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}class h extends Error{constructor(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];super(...r),Error.captureStackTrace&&Error.captureStackTrace(this,h),this.name="PeraWalletConnectError",this.data=e,this.message=t}}const d=new class{constructor(e){this.listener=void 0,this.channel=e.channel}setupListener(e){let{onReceiveMessage:t}=e;this.close(),this.listener=e=>{if("object"==typeof e.data)try{e.data.channel===this.channel&&t(e)}catch(t){console.error(t)}},window.addEventListener("message",this.listener)}sendMessage(e){let{message:t,targetWindow:n,origin:r,timeout:i=1e3}=e;setTimeout((()=>{const e={channel:this.channel,message:t};n.postMessage(e,{targetOrigin:r||"*"})}),i)}close(){this.listener&&(window.removeEventListener("message",this.listener),this.listener=void 0)}}({channel:"pera-web-wallet"});function p(){const e=document.querySelector('meta[name="name"]'),t=document.querySelector('meta[name="description"]');let{title:n}=document,r="";return e instanceof HTMLMetaElement&&(n=e.content),t instanceof HTMLMetaElement&&(r=t.content),{title:n,description:r,url:window.location.origin,favicon:f()[0]}}function f(){const e=document.getElementsByTagName("link"),t=[];for(let n=0;n<e.length;n++){const r=e[n],i=r.getAttribute("rel");if(i&&i.toLowerCase().indexOf("icon")>-1){const e=r.getAttribute("href");if(e&&-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n="".concat(window.location.protocol,"//").concat(window.location.host);if(0===e.indexOf("/"))n+=e;else{const t=window.location.pathname.split("/");t.pop(),n+="".concat(t.join("/"),"/").concat(e)}t.push(n)}else if(0===(null==e?void 0:e.indexOf("//"))){const n=window.location.protocol+e;t.push(n)}else e&&t.push(e)}}return t}function m(e){return new Promise(((t,n)=>{try{const r=window.open(e,"_blank");let i=0;const o=setInterval((()=>{if(i+=1,50===i)return clearInterval(o),void n(new h({type:"MESSAGE_NOT_RECEIVED"},"Couldn't open Pera Wallet, please try again."));r&&(!0===r.closed&&(clearInterval(o),n(new h({type:"OPERATION_CANCELLED"},"Operation cancelled by user"))),d.sendMessage({message:{type:"TAB_OPEN"},origin:e,targetWindow:r}))}),700);d.setupListener({onReceiveMessage:e=>{"TAB_OPEN_RECEIVED"===e.data.message.type&&(clearInterval(o),t(r))}})}catch(e){n(e)}}))}function g(e){const t=document.createElement("div");return t.setAttribute("id",e),document.body.appendChild(t),t}function y(){g("pera-wallet-redirect-modal-wrapper").innerHTML="<pera-wallet-redirect-modal></pera-wallet-redirect-modal>"}function v(){g("pera-wallet-sign-txn-toast-wrapper").innerHTML="<pera-wallet-sign-txn-toast></pera-wallet-sign-txn-toast>"}function w(e){const t=document.getElementById(e);t&&t.remove()}const b="PeraWallet.Wallet",_="walletconnect";function x(){return"undefined"==typeof localStorage?void 0:localStorage}function A(e,t){var n;null===(n=x())||void 0===n||n.setItem(b,JSON.stringify({type:t||"pera-wallet",accounts:e,selectedAccount:e[0]}))}function k(){var e;const t=null===(e=x())||void 0===e?void 0:e.getItem(b);return t?JSON.parse(t):null}function S(){return new Promise(((e,t)=>{var n,r;try{null===(n=x())||void 0===n||n.removeItem(_),null===(r=x())||void 0===r||r.removeItem(b),e(void 0)}catch(e){t(e)}}))}function E(e){const t=e.slice();for(let n=t.length-1;n>0;n--){const e=Math.floor(Math.random()*(n+1));[t[n],t[e]]=[t[e],t[n]]}return t}function C(){return u(this,void 0,void 0,(function*(){let e={bridgeURL:"",webWalletURL:"",isWebWalletAvailable:!1,shouldDisplayNewBadge:!1,shouldUseSound:!0,silent:!1,promoteMobile:!1};try{const t=yield function(e){return fetch(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).then((e=>e.json())).then((e=>e))}("https://wc.perawallet.app/config.json",{cache:"no-store"});void 0!==t.web_wallet&&t.web_wallet_url&&(e.isWebWalletAvailable=t.web_wallet),void 0!==t.display_new_badge&&(e.shouldDisplayNewBadge=t.display_new_badge),void 0!==t.use_sound&&(e.shouldUseSound=t.use_sound),void 0!==t.silent&&(e.silent=t.silent),void 0!==t.promote_mobile&&(e.promoteMobile=t.promote_mobile),e=Object.assign(Object.assign({},e),{bridgeURL:E(t.servers||[])[0]||"",webWalletURL:t.web_wallet_url||""})}catch(e){console.log(e)}return e}))}function M(e){return Uint8Array.from(window.atob(e),(e=>e.charCodeAt(0)))}
2function T(e,t){return{id:Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3)),jsonrpc:"2.0",method:e,params:t}}function P(){return"undefined"!=typeof navigator}function R(){return P()&&/Android/i.test(navigator.userAgent)}function I(){return P()&&/iPhone|iPod|Android/i.test(navigator.userAgent)}const L=R()?"algorand://":"perawallet-wc://";function O(e){return{ROOT:"https://".concat(e),CONNECT:"https://".concat(e,"/connect"),TRANSACTION_SIGN:"https://".concat(e,"/transaction/sign")}}function D(e){let{method:t,signTxnRequestParams:n,signer:r,chainId:i,webWalletURL:o,resolve:a,reject:s}=e;const l=O(o);!function(){u(this,void 0,void 0,(function*(){try{const e=yield m(l.TRANSACTION_SIGN);if(e){let o;"SIGN_TXN"===t?o={type:"SIGN_TXN",txn:n}:"SIGN_DATA"===t&&r&&i&&(o={type:"SIGN_DATA",data:n,signer:r,chainId:i}),o&&d.sendMessage({message:o,origin:l.TRANSACTION_SIGN,targetWindow:e})}const o=setInterval((()=>{!0===(null==e?void 0:e.closed)&&(s(new h({type:"".concat(t,"_CANCELLED")},"Transaction signing is cancelled by user.")),clearInterval(o))}),2e3);d.setupListener({onReceiveMessage:n=>function(e){let{event:t,newPeraWalletTab:n,method:r,resolve:i,reject:o}=e;switch(t.data.message.type){case"SIGN_TXN_CALLBACK":null==n||n.close(),i(t.data.message.signedTxns.map((e=>M(e.signedTxn))));break;case"SIGN_DATA_CALLBACK":null==n||n.close(),i(t.data.message.signedData.map((e=>M(e.signedData))));break;case"SIGN_TXN_NETWORK_MISMATCH":o(new h({type:"".concat(r,"_NETWORK_MISMATCH"),detail:t.data.message.error},t.data.message.error||"Network mismatch"));break;case"SIGN_TXN_CALLBACK_ERROR":null==n||n.close(),o(new h({type:"".concat(r,"_CANCELLED")},t.data.message.error));break;case"SESSION_DISCONNECTED":null==n||n.close(),S(),o(new h({type:"SESSION_DISCONNECTED",detail
2:t.data.message.error},t.data.message.error))}}({event:n,newPeraWalletTab:e,method:t,resolve:a,reject:s})})}catch(t){s(t)}}))}()}function B(e){let{webWalletURL:t,chainId:n,resolve:r,reject:i}=e;const o=O(t);return function(){return u(this,void 0,void 0,(function*(){try{const e=yield m(o.CONNECT);e&&d.sendMessage({message:{type:"CONNECT",data:Object.assign(Object.assign({},p()),{chainId:n})},origin:o.CONNECT,targetWindow:e});const t=setInterval((()=>{!0===(null==e?void 0:e.closed)&&(i(new h({type:"CONNECT_CANCELLED"},"Connect is cancelled by user")),clearInterval(t),a())}),2e3);d.setupListener({onReceiveMessage:t=>function(e){let{event:t,newPeraWalletTab:n,resolve:r,reject:i}=e;if(r&&"CONNECT_CALLBACK"===t.data.message.type){const e=t.data.message.data.addresses;A(e,"pera-wallet-web"),r(e),w("pera-wallet-connect-modal-wrapper"),null==n||n.close()}else"CONNECT_NETWORK_MISMATCH"===t.data.message.type&&(i(new h({type:"CONNECT_NETWORK_MISMATCH",detail:t.data.message.error},t.data.message.error||"Your wallet is connected to a different network to this dApp. Update your wallet to the correct network (MainNet or TestNet) to continue.")),w("pera-wallet-connect-modal-wrapper"),null==n||n.close())}({event:t,newPeraWalletTab:e,resolve:r,reject:i})})}catch(t){a(),i(t)}}))};function a(){w("pera-wallet-connect-modal-wrapper")}}function N(e){let{isWebWalletAvailable:t,shouldDisplayNewBadge:n,shouldUseSound:r,compactMode:i,promoteMobile:o}=e;return{open:(a={isWebWalletAvailable:t,shouldDisplayNewBadge:n,shouldUseSound:r,compactMode:i,promoteMobile:o},e=>{if(!document.getElementById("pera-wallet-connect-modal-wrapper")){const t=g("pera-wallet-connect-modal-wrapper"),n="".concat(e,"&algorand=true"),{isWebWalletAvailable:r,shouldDisplayNewBadge:i,shouldUseSound:o,compactMode:s,promoteMobile:l}=a;t.innerHTML='<pera-wallet-connect-modal uri="'.concat(n,'" is-web-wallet-avaliable="').concat(r,'" should-display-new-badge="').concat(i,'" should-use-sound="').concat(o,'" compact-mode="').concat(s,'" promote-mobile="').concat(l,'"></pera-wallet-connect-modal>')}}),close:()=>w("pera-wallet-connect-modal-wrapper")};var a}"undefined"!=typeof window&&(window.global=window,window.Buffer=window.Buffer||n(9778).lW,Promise.resolve().then((function(){return n(2538)}))),t.PERA_DOWNLOAD_URL="https://perawallet.app/download/",t.PERA_WALLET_APP_DEEP_LINK=L,t.PERA_WALLET_CONNECT_MODAL_ID="pera-wallet-connect-modal-wrapper",t.PERA_WALLET_MODAL_CLASSNAME="pera-wallet-modal",t.PERA_WALLET_REDIRECT_MODAL_ID="pera-wallet-redirect-modal-wrapper",t.PERA_WALLET_SIGN_TXN_MODAL_ID="pera-wallet-sign-txn-modal-wrapper",t.PERA_WALLET_SIGN_TXN_TOAST_ID="pera-wallet-sign-txn-toast-wrapper",t.PeraWalletConnect=class{constructor(e){this.bridge=(null==e?void 0:e.bridge)||"",this.connector=null,this.shouldShowSignTxnToast=void 0===(null==e?void 0:e.shouldShowSignTxnToast)||e.shouldShowSignTxnToast,this.chainId=null==e?void 0:e.chainId,this.compactMode=(null==e?void 0:e.compactMode)||!1}get platform(){return function(){const e=k();let t=null;return"pera-wallet"===(null==e?void 0:e.type)?t="mobile":"pera-wallet-web"===(null==e?void 0:e.type)&&(t="web"),t}()}get isConnected(){var e;return"mobile"===this.platform?!!this.connector:"web"===this.platform&&!!(null===(e=k())||void 0===e?void 0:e.accounts.length)}connect(){return new Promise(((e,t)=>u(this,void 0,void 0,(function*(){var n;try{if(null===(n=this.connector)||void 0===n?void 0:n.connected)try{yield this.connector.killSession()}catch(e){}const{isWebWalletAvailable:r,bridgeURL:i,webWalletURL:o,shouldDisplayNewBadge:a,shouldUseSound:l,promoteMobile:c}=yield C(),u=B({resolve:e,reject:t,webWalletURL:o,chainId:this.chainId,isCompactMode:this.compactMode});r&&(window.onWebWalletConnect=u),this.connector=new s.default({bridge:this.bridge||i||"https://bridge.walletconnect.org",qrcodeModal:N({isWebWalletAvailable:r,shouldDisplayNewBadge:a,shouldUseSound:l,compactMode:this.compactMode,promoteMobile:c})}),yield this.connector.createSession({chainId:this.chainId||4160}),function(e,t){var n,r,i,o;const a=document.getElementById(e),s=null===(r=null===(n=null==a?void 0:a.querySelector(e.replace("-wrapper","")))||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.querySelector(".pera-wallet-modal"),l=null===(o=null===(i=null==s?void 0:s.querySelector("pera-wallet-modal-header"))||void 0===i?void 0:i.shadowRoot)||void 0===o?void 0:o.getElementById("pera-wallet-modal-header-close-button");null==l||l.addEventListener("click",(()=>{t(),w(e)}))}("pera-wallet-connect-modal-wrapper",(()=>t(new h({type:"CONNECT_MODAL_CLOSED"},"Connect modal is closed by user")))),this.connector.on("connect",((n,r)=>{var i,o;n&&t(n),e((null===(i=this.connector)||void 0===i?void 0:i.accounts)||[]),A((null===(o=this.connector)||void 0===o?void 0:o.accounts)||[])}))}catch(e){console.log(e),t(new h({type:"SESSION_CONNECT",detail:e},e.message||"There was an error while connecting to Pera Wallet"))}}))))}reconnectSession(){return new Promise(((e,t)=>u(this,void 0,void 0,(function*(){var n,r;try{const i=k();if(!i)return void e([]);if("pera-wallet-web"===(null==i?void 0:i.type)){const{isWebWalletAvailable:n}=yield C();n?e(i.accounts||[]):t(new h({type:"SESSION_RECONNECT",detail:"Pera Web is not available"},"Pera Web is not available"))}this.connector&&e(this.connector.accounts||[]),this.bridge=(null===(n=function(){var e;const t=null===(e=x())||void 0===e?void 0:e.getItem(_);return t?JSON.parse(t):null}())||void 0===n?void 0:n.bridge)||"",this.bridge&&(this.connector=new s.default({bridge:this.bridge}),e((null===(r=this.connector)||void 0===r?void 0:r.accounts)||[])),this.isConnected||e([])}
2catch(e){yield this.disconnect(),t(new h({type:"SESSION_RECONNECT",detail:e},e.message||"There was an error while reconnecting to Pera Wallet"))}}))))}disconnect(){var e;return u(this,void 0,void 0,(function*(){let t;this.isConnected&&"mobile"===this.platform&&(t=null===(e=this.connector)||void 0===e?void 0:e.killSession(),null==t||t.then((()=>{this.connector=null}))),yield S()}))}signTransactionWithMobile(e){return u(this,void 0,void 0,(function*(){const t=T("algo_signTxn",[e]);try{try{const{silent:e}=yield C(),n=(yield this.connector.sendCustomRequest(t,{forcePushNotification:!e})).filter(Boolean);return"string"==typeof n[0]?n.map(M):n.map((e=>Uint8Array.from(e)))}catch(e){return yield Promise.reject(new h({type:"SIGN_TRANSACTIONS",detail:e},e.message||"Failed to sign transaction"))}}finally{w("pera-wallet-redirect-modal-wrapper"),w("pera-wallet-sign-txn-toast-wrapper")}}))}signTransactionWithWeb(e,t){return new Promise(((n,r)=>D({signTxnRequestParams:e,webWalletURL:t,method:"SIGN_TXN",resolve:n,reject:r})))}signDataWithMobile(e){let{data:t,signer:n,chainId:r}=e;return u(this,void 0,void 0,(function*(){const e=T("algo_signData",t.map((e=>Object.assign(Object.assign({},e),{signer:n,chainId:r}))));try{try{const{silent:t}=yield C(),n=(yield this.connector.sendCustomRequest(e,{forcePushNotification:!t})).filter(Boolean);return"string"==typeof n[0]?n.map(M):n.map((e=>Uint8Array.from(e)))}catch(t){return yield Promise.reject(new h({type:"SIGN_TRANSACTIONS",detail:t},t.message||"Failed to sign transaction"))}}finally{w("pera-wallet-redirect-modal-wrapper"),w("pera-wallet-sign-txn-toast-wrapper")}}))}signDataWithWeb(e){let{data:t,signer:n,chainId:r,webWalletURL:i}=e;return new Promise(((e,o)=>D({method:"SIGN_DATA",signTxnRequestParams:t,signer:n,chainId:r,webWalletURL:i,resolve:e,reject:o})))}signTransaction(e,t){return u(this,void 0,void 0,(function*(){if("mobile"===this.platform&&(I()?y():!I()&&this.shouldShowSignTxnToast&&v(),!this.connector))throw new Error("PeraWalletConnect was not initialized correctly.");const n=e.flatMap((e=>e.map((e=>function(e,t){let n;t&&!(e.signers||[]).includes(t)&&(n=[]);const r={txn:(i=e.txn,Buffer.from(l.default.encodeUnsignedTransaction(i)).toString("base64"))};var i;return Array.isArray(n)&&(r.signers=n),e.authAddr&&(r.authAddr=e.authAddr),e.message&&(r.message=e.message),e.msig&&(r.msig=e.msig),r}(e,t)))));if("web"===this.platform){const{webWalletURL:e}=yield C();return this.signTransactionWithWeb(n,e)}return this.signTransactionWithMobile(n)}))}signData(e,t){return u(this,void 0,void 0,(function*(){const n=this.chainId||4160;if("mobile"===this.platform&&(I()?y():!I()&&this.shouldShowSignTxnToast&&v(),!this.connector))throw new Error("PeraWalletConnect was not initialized correctly.");if("web"===this.platform){const{webWalletURL:r}=yield C();return this.signDataWithWeb({data:e,signer:t,chainId:n,webWalletURL:r})}const r=e.map((e=>Object.assign(Object.assign({},e),{data:Buffer.from(e.data).toString("base64")})));return this.signDataWithMobile({data:r,signer:t,chainId:n})}))}},t.closePeraWalletSignTxnToast=function(){w("pera-wallet-sign-txn-toast-wrapper")},t.detectBrowser=function(){if(!P())return null;const{userAgent:e}=navigator;let t;return t=e.match(/DuckDuckGo/i)?"DuckDuckGo":e.match(/OPX/i)?"Opera GX":navigator.brave?"Brave":c.default.getParser(navigator.userAgent).getBrowserName(),t},t.isAndroid=R,t.isIOS=function(){return P()&&/iPhone|iPad|iPod/i.test(navigator.userAgent)},t.isMobile=I,t.removeModalWrapperFromDOM=w},1933:(e,t,n)=>{"use strict";var r=n(7355);n(6309),n(7262),n(5524),t.DQ=r.PeraWalletConnect,r.closePeraWalletSignTxnToast},1272:(e,t,n)=>{"use strict";var r=n(7262),i=function(e){return e.USE_PARENT_SIGNER="useParentSigner",e.ACCOUNT_ADDRESS="accountAddress",e.NETWORK="network",e.THEME_VARIABLES="themeVariables",e.PARENT_URL_ORIGIN="parentUrlOrigin",e.ASSET_IN="assetIn",e.ASSET_OUT="assetOut",e.PLATFORM_FEE_PERCENTAGE="platformFeePercentage",e.PLATFORM_FEE_ACCOUNT="platformFeeAccount",e.PLATFORM_NAME="platformName",e}({}),o=function(e){return e.Light="light",e.Dark="dark",e}({}
2),a=function(e){return e.None="none",e.Small="small",e.Medium="medium",e.Large="large",e}({});function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i)),r)}var i}var l="https://hipo.github.io/ui098gh4350u9h435y-swap-widget/",c=new URL(l).origin,u=function(){function e(t){var n=t.onTxnSignRequest,r=t.onTxnSignRequestTimeout,i=t.onSwapSuccess;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.messageListener=this.createWidgetEventListenerCallback({onTxnSignRequest:n,onTxnSignRequestTimeout:r,onSwapSuccess:i})}var t,n,o;return t=e,o=[{key:"sendMessageToWidget",value:function(e){var t=e.data,n=e.targetWindow;null==n||n.postMessage(t,c)}},{key:"generateWidgetIframeUrl",value:function(e){var t={},n=e.useParentSigner,r=e.assetIds,o=e.network,a=e.parentUrlOrigin,s=e.themeVariables,c=e.platformFeeAccount,u=e.platformFeePercentage,h=e.platformName;if(t[i.PLATFORM_NAME]=h,n){var d=e.accountAddress;t[i.USE_PARENT_SIGNER]=String(n),d&&(t[i.ACCOUNT_ADDRESS]=d)}if(o&&(t[i.NETWORK]=o),s){var p=Buffer.from(JSON.stringify(s)).toString("base64");t[i.THEME_VARIABLES]=p}return a&&(t[i.PARENT_URL_ORIGIN]=Buffer.from(a).toString("base64")),r&&(t[i.ASSET_IN]=String(r[0]),t[i.ASSET_OUT]=String(r[1])),c&&(t[i.PLATFORM_FEE_ACCOUNT]=c),u&&(t[i.PLATFORM_FEE_PERCENTAGE]=String(u)),"".concat(l,"?").concat(new URLSearchParams(t))}}],(n=[{key:"createWidgetEventListenerCallback",value:function(e){var t=e.onTxnSignRequest,n=e.onTxnSignRequestTimeout,i=e.onSwapSuccess;return function(e){if(e.origin===c)switch(e.data.message.type){case"TXN_SIGN_REQUEST":var o=e.data.message.txGroups.map((function(e){return e.map((function(e){return{txn:r.decodeUnsignedTransaction(e.txn),signers:e.signers}}))}));t({txGroups:o});break;case"TXN_SIGN_REQUEST_TIMEOUT":n&&n();break;case"SWAP_SUCCESS":i&&i(e.data.message.response);break;default:throw new Error("Unknown message type")}}}},{key:"setWidgetEventListenerCallback",value:function(e){var t=e.onTxnSignRequest,n=e.onTxnSignRequestTimeout,r=e.onSwapSuccess;this.messageListener=this.createWidgetEventListenerCallback({onTxnSignRequest:t,onTxnSignRequestTimeout:n,onSwapSuccess:r})}},{key:"addWidgetEventListeners",value:function(){window.addEventListener("message",this.messageListener,!1)}},{key:"removeWidgetEventListeners",value:function(){window.removeEventListener("message",this.messageListener,!1)}}])&&s(t.prototype,n),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},6309:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>tt});var r={};n.r(r),n.d(r,{decrypt:()=>et,encrypt:()=>$e,generateKey:()=>Xe,verifyHmac:()=>Je});var i=n(7296),o=n(9808),a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},s=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},l=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},c=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},u=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},h=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},d=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,p=3,f=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;
2\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],m=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function g(e){return e?v(e):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new h:"undefined"!==typeof navigator?v(navigator.userAgent):"undefined"!==typeof process&&process.version?new l(process.version.slice(1)):null}function y(e){return""!==e&&f.reduce((function(t,n){var r=n[0],i=n[1];if(t)return t;var o=i.exec(e);return!!o&&[r,o]}),!1)}function v(e){var t=y(e);if(!t)return null;var n=t[0],r=t[1];if("searchbot"===n)return new u;var i=r[1]&&r[1].split(/[._]/).slice(0,3);i?i.length<p&&(i=a(i,function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(p-i.length))):i=[];var o=i.join("."),l=function(e){for(var t=0,n=m.length;t<n;t++){var r=m[t],i=r[0];if(r[1].exec(e))return i}return null}(e),h=d.exec(e);return h&&h[1]?new c(n,o,l,h[1]):new s(n,o,l)}function w(e){return g(e)}function b(){const e=w();return e&&e.os?e.os:void 0}function _(){return!!b()&&(function(){const e=b();return!!e&&e.toLowerCase().includes("android")}()||function(){const e=b();return!!e&&(e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1)}())}function x(){return!function(){const e=w();return!(!e||!e.name)&&"node"===e.name.toLowerCase()}()&&!!A()}o.getFromWindow,o.getFromWindowOrThrow,o.getDocumentOrThrow,o.getDocument,o.getNavigatorOrThrow;const A=o.getNavigator,k=(o.getLocationOrThrow,o.getLocation),S=(o.getCryptoOrThrow,o.getCrypto,o.getLocalStorageOrThrow,o.getLocalStorage);function E(){return i.D()}const C=function(e){if("string"!==typeof e)throw new Error("Cannot safe json parse value of type ".concat(typeof e));try{return JSON.parse(e)}catch(t){return e}},M=function(e){return"string"===typeof e?e:JSON.stringify(e)};function T(e){let t=null,n=null;const r=S();return r&&(n=r.getItem(e)),t=n?C(n):n,t}function P(e){const t=S();t&&t.removeItem(e)}const R="WALLETCONNECT_DEEPLINK_CHOICE";const I=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],L=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];var O=n(518),D=n.n(O),B=(n(5520),n(6758)),N=n.n(B);const F="hex",j="utf8",U="0";function z(e){return new Uint8Array(e)}function q(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.toString(F);return t?te(n):n}function W(e){return e.toString(j)}function V(e){return N()(e)}function H(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return q(V(e),t)}function K(e){return W(V(e))}function G(e){return Buffer.from(ee(e),F)}function Z(e){return z(G(e))}function Q(e){return Buffer.from(e,j)}function Y(e){return z(Q(e))}function X(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function J(){let e=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
2return n.forEach((t=>e=e.concat(Array.from(t)))),new Uint8Array([...e])}function $(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U;return re(e,t,!0,n)}(e,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;const n=e%t;return n?(e-n)/t*t+t:e}(e.length,t),n)}function ee(e){return e.replace(/^0x/,"")}function te(e){return e.startsWith("0x")?e:"0x".concat(e)}function ne(e){return(e=$(e=ee(e),2))&&(e=te(e)),e}function re(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U;const i=t-e.length;let o=e;if(i>0){const t=r.repeat(i);o=n?t+e:e+t}return o}function ie(e){return V(new Uint8Array(e))}function oe(e,t){return function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return q(Q(e),t)}(e,!t)}function ae(e,t){const n=ee(ne(new(D())(e).toString(16)));return t?n:te(n)}var se=n(7898);var le=n(7323);function ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;
2return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function ue(e){return ne(e)}function he(e){return function(e){const t=e.startsWith("0x");return e=(e=ee(e)).startsWith(U)?e.substring(1):e,t?te(e):e}(te(e))}const de=ce;function pe(){return((e,t)=>{for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t})()}function fe(e,t){return X(e,t)}function me(e){return"undefined"!==typeof e.result}function ge(e){return"undefined"!==typeof e.error}function ye(e){return"undefined"!==typeof e.event}function ve(e){e=ee(e.toLowerCase());const t=ee((0,se.keccak_256)(Q(e)));let n="";for(let r=0;r<e.length;r++)parseInt(t[r],16)>7?n+=e[r].toUpperCase():n+=e[r];return te(n)}function we(e){var t;return(t=e)&&t.length&&!fe(e[0])&&(e[0]=oe(e[0])),e}function be(e){if("undefined"!==typeof e.type&&"0"!==e.type)return e;if("undefined"===typeof e.from||(!(t=e.from)||"0x"!==t.toLowerCase().substring(0,2)||!/^(0x)?[0-9a-f]{40}$/i.test(t)||!/^(0x)?[0-9a-f]{40}$/.test(t)&&!/^(0x)?[0-9A-F]{40}$/.test(t)&&t!==ve(t)))throw new Error("Transaction object must include a valid 'from' value.");var t;function n(e){let t=e;return("number"===typeof e||"string"===typeof e&&!function(e){return""===e||"string"===typeof e&&""===e.trim()}(e))&&(fe(e)?"string"===typeof e&&(t=ue(e)):t=ae(e)),"string"===typeof t&&(t=he(t)),t}const r={from:ue(e.from),to:"undefined"===typeof e.to?void 0:ue(e.to),gasPrice:"undefined"===typeof e.gasPrice?"":n(e.gasPrice),gas:"undefined"===typeof e.gas?"undefined"===typeof e.gasLimit?"":n(e.gasLimit):n(e.gas),value:"undefined"===typeof e.value?"":n(e.value),nonce:"undefined"===typeof e.nonce?"":n(e.nonce),data:"undefined"===typeof e.data?"":ue(e.data)||"0x"},i=["gasPrice","gas","value","nonce"];return Object.keys(r).forEach((e=>{("undefined"===typeof r[e]||"string"===typeof r[e]&&!r[e].trim().length)&&i.includes(e)&&delete r[e]})),r}var _e=n(4245);function xe(e,t){let n=Ae(e);return n=Object.assign(Object.assign({},n),t),e=function(e){return _e.stringify(e)}(n),e}function Ae(e){return _e.parse(e)}const ke=class{constructor(){this._eventEmitters=[],"undefined"!==typeof window&&"undefined"!==typeof window.addEventListener&&(window.addEventListener("online",(()=>this.trigger("online"))),window.addEventListener("offline",(()=>this.trigger("offline"))))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter((t=>t.event===e))),t.forEach((e=>{e.callback()}))}},Se="undefined"!==typeof n.g.WebSocket?n.g.WebSocket:n(1143);const Ee=class{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new ke,!e.url||"string"!==typeof e.url)throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",(()=>this._socketCreate()))}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return 0===this.readyState}set connected(e){}get connected(){return 1===this.readyState}set closing(e){}get closing(){return 2===this.readyState}set closed(e){}get closed(){return 3===this.readyState}open(){this._socketCreate()}close(){this._socketClose()}send(e,t,n){if(!t||"string"!==typeof t)throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n}
2)}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;const e=function(e,t,n){var r,i;const o=e.startsWith("https")?e.replace("https","wss"):e.startsWith("http")?e.replace("http","ws"):e,a=o.split("?"),s=x()?{protocol:t,version:n,env:"browser",host:(null===(r=k())||void 0===r?void 0:r.host)||""}:{protocol:t,version:n,env:(null===(i=w())||void 0===i?void 0:i.name)||""},l=xe(function(e){const t=-1!==e.indexOf("?")?e.indexOf("?"):void 0;return"undefined"!==typeof t?e.substr(t):""}(a[1]||""),s);return a[0]+"?"+l}(this._url,this._protocol,this._version);if(this._nextSocket=new Se(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=e=>this._socketReceive(e),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=e=>this._socketError(e),this._nextSocket.onclose=()=>{setTimeout((()=>{this._nextSocket=null,this._socketCreate()}),1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){const t=JSON.stringify(e);this._socket&&1===this._socket.readyState?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch(n){return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&1===this._socket.readyState){const e=this._events.filter((e=>"message"===e.event));e&&e.length&&e.forEach((e=>e.callback(t)))}}_socketError(e){const t=this._events.filter((e=>"error"===e.event));t&&t.length&&t.forEach((t=>t.callback(e)))}_queueSubscriptions(){this._subscriptions.forEach((e=>this._queue.push({topic:e,type:"sub",payload:"",silent:!0}))),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach((e=>this._socketSend(e))),this._queue=[]}},Ce="Session currently connected",Me="Session currently disconnected",Te="JSON RPC response format is invalid",Pe="User close QRCode Modal";const Re=class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter((t=>t.event!==e))}trigger(e){let t,n=[];t="undefined"!==typeof e.method?e.method:me(e)||ge(e)?"response:".concat(e.id):ye(e)?e.event:"",t&&(n=this._eventEmitters.filter((e=>e.event===t))),n&&n.length||function(e){return I.includes(e)||e.startsWith("wc_")}(t)||ye(t)||(n=this._eventEmitters.filter((e=>"call_request"===e.event))),n.forEach((t=>{if(ge(e)){const n=new Error(e.error.message);t.callback(n,null)}else t.callback(null,e)}))}};const Ie=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"walletconnect";this.storageId=e}getSession(){let e=null;const t=T(this.storageId);return t&&"undefined"!==typeof t.bridge&&(e=t),e}setSession(e){return function(e,t){const n=M(t),r=S();r&&r.setItem(e,n)}(this.storageId,e),e}removeSession(){P(this.storageId)}},Le="walletconnect.org",Oe="abcdefghijklmnopqrstuvwxyz0123456789".split("").map((e=>"https://".concat(e,".bridge.walletconnect.org")));function De(){return Oe[Math.floor(Math.random()*Oe.length)]}function Be(e){return function(e){return function(e){return function(e){let t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return t=t.split(":")[0],t=t.split("?")[0],t}(e).split(".").slice(-2).join(".")}(e)===Le}(e)?De():e}const Ne=class{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new Re,this._clientMeta=E()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new Ie(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...L,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error("Missing one of the required parameters: bridge / uri / session");e.connectorOpts.bridge&&(this.bridge=Be(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);const t=e.connectorOpts.session||this._getStorageSession();t&&(this.session=t),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new Ee({protocol:this.protocol,version:this.version,url:this.bridge,
2subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){e&&(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;const t=Z(e).buffer;this._key=t}get key(){if(this._key){return e=this._key,t=!0,H(new Uint8Array(e),!t)}var e,t;return""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=pe()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=E()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;const{handshakeTopic:t,bridge:n,key:r}=this._parseUri(e);this.handshakeTopic=t,this.bridge=n,this.key=r}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,t){const n={event:e,callback:t};this._eventManager.subscribe(n)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();const t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=pe(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",(()=>{throw new Error(Pe)}));const n=()=>{this.killSession()};try{const e=await this._sendCallRequest(t);return e&&n(),e}catch(r){throw n(),r}}async connect(e){if(!this._qrcodeModal)throw new Error("QRCode Modal not provided");return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise((async(e,t)=>{this.on("modal_closed",(()=>t(new Error(Pe)))),this.on("connect",((n,r)=>{if(n)return t(n);e(r.params[0])}))})))}async createSession(e){if(this._connected)throw new Error(Ce);if(this.pending)return;this._key=await this._generateKey();const t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=pe(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(Ce);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(Ce);const t=e&&e.message?e.message:"Session Rejected",n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(Me);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";const t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){const t=e?e.message:"Session Disconnected",n=this._formatRequest({method:"wc_sessionUpdate",params:[{approved:!1,chainId:null,networkId:null,accounts:null}]});await this._sendRequest(n),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw new Error(Me);const t=be(e),n=this._formatRequest({method:"eth_sendTransaction",params:[t]});return await this._sendCallRequest(n)}async signTransaction(e){if(!this._connected)throw new Error(Me);const t=be(e),n=this._formatRequest({method:"eth_signTransaction",params:[t]});return await this._sendCallRequest(n)}async signMessage(e){if(!this._connected)throw new Error(Me);const t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw new Error(Me);e=we(e);const t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw new Error(Me);const t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");const t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise(((t,n)=>{this._subscribeToResponse(e.id,((e,r)=>{if(e)n(e);else{if(!r)throw new Error("Missing JSON RPC response");t(r)}}))}))}
2async sendCustomRequest(e,t){if(!this._connected)throw new Error(Me);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return ae(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params&&(e.params[0]=be(e.params[0]));break;case"personal_sign":e.params&&(e.params=we(e.params))}const n=this._formatRequest(e);return await this._sendCallRequest(n,t)}approveRequest(e){if(!me(e))throw new Error('JSON-RPC success response must include "result" field');{const t=this._formatResponse(e);this._sendResponse(t)}}rejectRequest(e){if(!ge(e))throw new Error('JSON-RPC error response must include "error" field');{const t=this._formatResponse(e);this._sendResponse(t)}}transportClose(){this._transport.close()}async _sendRequest(e,t){const n=this._formatRequest(e),r=await this._encrypt(n),i="undefined"!==typeof(null===t||void 0===t?void 0:t.topic)?t.topic:this.peerId,o=JSON.stringify(r),a="undefined"!==typeof(null===t||void 0===t?void 0:t.forcePushNotification)?!t.forcePushNotification:function(e){return!!e.method.startsWith("wc_")||!L.includes(e.method)}(n);this._transport.send(o,i,a)}async _sendResponse(e){const t=await this._encrypt(e),n=this.peerId,r=JSON.stringify(t);this._transport.send(r,n,!0)}async _sendSessionRequest(e,t,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if("undefined"===typeof e.method)throw new Error('JSON RPC request must have valid "method" value');return{id:"undefined"===typeof e.id?de():e.id,jsonrpc:"2.0",method:e.method,params:"undefined"===typeof e.params?[]:e.params}}_formatResponse(e){if("undefined"===typeof e.id)throw new Error('JSON RPC request must have valid "id" value');const t={id:e.id,jsonrpc:"2.0"};if(ge(e)){const n=function(e){const t=e.message||"Failed or Rejected Request";let n=-32e3;if(e&&!e.code)switch(t){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3}const r={code:n,message:t};return e.data&&(r.data=e.data),r}(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}if(me(e)){return Object.assign(Object.assign({},t),e)}throw new Error(Te)}_handleSessionDisconnect(e){const t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),P(R)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t&&t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let t;try{t=JSON.parse(e.payload)}catch(r){return}const n=await this._decrypt(t);n&&this._eventManager.trigger(n)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on("response:".concat(e),t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,((e,n)=>{e?this._handleSessionResponse(e.message):me(n)?this._handleSessionResponse(t,n.result):n.error&&n.error.message?this._handleSessionResponse(n.error.message):this._handleSessionResponse(t)}))}_subscribeToCallResponse(e){return new Promise(((t,n)=>{this._subscribeToResponse(e,((e,r)=>{e?n(e):me(r)?t(r.result):r.error&&r.error.message?n(r.error):n(new Error(Te))}))}))}_subscribeToInternalEvents(){this.on("display_uri",(()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,(()=>{this._eventManager.trigger({event:"modal_closed",params:[]})}),this._qrcodeModalOptions)})),this.on("connect",(()=>{this._qrcodeModal&&this._qrcodeModal.close()})),this.on("call_request_sent",((e,t)=>
2{const{request:n}=t.params[0];if(_()&&this._signingMethods.includes(n.method)){const e=T(R);e&&(window.location.href=e.href)}})),this.on("wc_sessionRequest",((e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;const n=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(n)})),this.on("wc_sessionUpdate",((e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.params[0])}))}_initTransport(){this._transport.on("message",(e=>this._handleIncomingMessages(e))),this._transport.on("open",(()=>this._eventManager.trigger({event:"transport_open",params:[]}))),this._transport.on("close",(()=>this._eventManager.trigger({event:"transport_close",params:[]}))),this._transport.on("error",(()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]}))),this._transport.open()}_formatUri(){const e=this.protocol,t=this.handshakeTopic,n=this.version,r=encodeURIComponent(this.bridge),i=this.key;return"".concat(e,":").concat(t,"@").concat(n,"?bridge=").concat(r,"&key=").concat(i)}_parseUri(e){const t=function(e){const t=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),i=function(e){const t=e.split("@");return{handshakeTopic:t[0],version:parseInt(t[1],10)}}(e.substring(t+1,n)),o=function(e){const t=Ae(e);return{key:t.key||"",bridge:t.bridge||""}}("undefined"!==typeof n?e.substr(n):"");return Object.assign(Object.assign({protocol:r},i),o)}(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const e=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");const n=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");return{handshakeTopic:e,bridge:n,key:t.key}}throw new Error("URI format is invalid")}async _generateKey(){if(this._cryptoLib){return await this._cryptoLib.generateKey()}return null}async _encrypt(e){const t=this._key;if(this._cryptoLib&&t){return await this._cryptoLib.encrypt(e,t)}return null}async _decrypt(e){const t=this._key;if(this._cryptoLib&&t){return await this._cryptoLib.decrypt(e,t)}return null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||"string"!==typeof e.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||"string"!==typeof e.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||"string"!==typeof e.token)throw Error("Invalid or missing pushServerOpts.token parameter value");const t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",(async(n,r)=>{if(n)throw n;if(e.peerMeta){const e=r.params[0].peerMeta.name;t.peerName=e}try{const n=await fetch("".concat(e.url,"/new"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});if(!(await n.json()).success)throw Error("Failed to register in Push Server")}catch(n){throw Error("Failed to register in Push Server")}}))}};const Fe=256,je=256,Ue="AES-CBC",ze="SHA-".concat(Fe),qe="HMAC",We=("aes-".concat(Fe,"-cbc"),"sha".concat(je),"encrypt"),Ve="decrypt",He="sign",Ke="verify";async function Ge(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue;return le.getSubtleCrypto().importKey("raw",e,function(e){return e===Ue?{length:Fe,name:Ue}:{hash:{name:ze},name:qe}}(t),!0,function(e){return e===Ue?[We,Ve]:[He,Ke]}(t))}function Ze(e,t,n){return async function(e,t,n){const r=le.getSubtleCrypto(),i=await Ge(t,Ue),o=await r.encrypt({iv:e,name:Ue},i,n);return new Uint8Array(o)}
2(e,t,n)}function Qe(e,t,n){return async function(e,t,n){const r=le.getSubtleCrypto(),i=await Ge(t,Ue),o=await r.decrypt({iv:e,name:Ue},i,n);return new Uint8Array(o)}(e,t,n)}async function Ye(e,t){const n=await async function(e,t){const n=le.getSubtleCrypto(),r=await Ge(e,qe),i=await n.sign({length:je,name:qe},r,t);return new Uint8Array(i)}(e,t);return n}async function Xe(e){const t=function(e){return le.getBrowerCrypto().getRandomValues(new Uint8Array(e))}((e||256)/8);return z(V(t)).buffer}async function Je(e,t){const n=Z(e.data),r=Z(e.iv),i=H(Z(e.hmac),!1),o=J(n,r),a=H(await Ye(t,o),!1);return ee(i)===ee(a)}async function $e(e,t,n){const r=z(ie(t)),i=z(ie(n||await Xe(128))),o=H(i,!1),a=Y(JSON.stringify(e)),s=await Ze(i,r,a),l=H(s,!1),c=J(s,i);return{data:l,hmac:H(await Ye(r,c),!1),iv:o}}async function et(e,t){const n=z(ie(t));if(!n)throw new Error("Missing key: required for decryption");if(!await Je(e,n))return null;const r=Z(e.data),i=Z(e.iv),o=K(await Qe(i,n,r));let a;try{a=JSON.parse(o)}catch(s){return null}return a}const tt=class extends Ne{constructor(e,t){super({cryptoLib:r,connectorOpts:e,pushServerOpts:t})}}},9122:(e,t,n)=>{"use strict";function r(){return(null===n.g||void 0===n.g?void 0:n.g.crypto)||(null===n.g||void 0===n.g?void 0:n.g.msCrypto)||{}}function i(){const e=r();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=r,t.getSubtleCrypto=i,t.isBrowserCryptoAvailable=function(){return!!r()&&!!i()}},4683:(e,t)=>{"use strict";function n(){return"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product}function r(){return"undefined"!==typeof process&&"undefined"!==typeof process.versions&&"undefined"!==typeof process.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=n,t.isNode=r,t.isBrowser=function(){return!n()&&!r()}},7323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7856);r.__exportStar(n(9122),t),r.__exportStar(n(4683),t)},7856:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>b,__asyncGenerator:()=>w,__asyncValues:()=>_,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>S,__classPrivateFieldSet:()=>E,__createBinding:()=>d,__decorate:()=>s,__exportStar:()=>p,__extends:()=>i,__generator:()=>h,__importDefault:()=>k,__importStar:()=>
2A,__makeTemplateObject:()=>x,__metadata:()=>c,__param:()=>l,__read:()=>m,__rest:()=>a,__spread:()=>g,__spreadArrays:()=>y,__values:()=>f});var r=function(e,t){return r=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])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=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},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function h(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function d(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function p(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof v?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(r){u(o[0][3],r)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
2function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},1143:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},9808:(e,t)=>{"use strict";function n(e){let t;return"undefined"!==typeof window&&"undefined"!==typeof window[e]&&(t=window[e]),t}function r(e){const t=n(e);if(!t)throw new Error("".concat(e," is not defined in Window"));return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=n,t.getFromWindowOrThrow=r,t.getDocumentOrThrow=function(){return r("document")},t.getDocument=function(){return n("document")},t.getNavigatorOrThrow=function(){return r("navigator")},t.getNavigator=function(){return n("navigator")},t.getLocationOrThrow=function(){return r("location")},t.getLocation=function(){return n("location")},t.getCryptoOrThrow=function(){return r("crypto")},t.getCrypto=function(){return n("crypto")},t.getLocalStorageOrThrow=function(){return r("localStorage")},t.getLocalStorage=function(){return n("localStorage")}},7296:(e,t,n)=>{"use strict";t.D=void 0;const r=n(9808);t.D=function(){let e,t;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(o){return null}function n(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=e.getElementsByTagName("meta");for(let e=0;e<i.length;e++){const t=i[e],r=["itemprop","property","name"].map((e=>t.getAttribute(e))).filter((e=>!!e&&n.includes(e)));if(r.length&&r){const e=t.getAttribute("content");if(e)return e}}return""}const i=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),r=[];for(let e=0;e<n.length;e++){const i=n[e],o=i.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){const e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const r=t.pathname.split("/");r.pop();n+=r.join("/")+"/"+e}r.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;r.push(n)}else r.push(e)}}return r}(),name:i}}},333:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"encode",(function(){return M})),n.d(t,"decode",(function(){return W})),n.d(t,"decodeAsync",(function(){return X})),n.d(t,"decodeArrayStream",(function(){return J})),n.d(t,"decodeStream",(function(){return $})),n.d(t,"Decoder",(function(){return z})),n.d(t,"Encoder",(function(){return E})),n.d(t,"ExtensionCodec",(function(){return A})),n.d(t,"ExtData",(function(){return p})),n.d(t,"EXT_TIMESTAMP",(function(){return g})),n.d(t,"encodeDateToTimeSpec",(function(){return v})),n.d(t,"encodeTimeSpecToTimestamp",(function(){return y}
2)),n.d(t,"decodeTimestampToTimeSpec",(function(){return b})),n.d(t,"encodeTimestampExtension",(function(){return w})),n.d(t,"decodeTimestampExtension",(function(){return _}));var r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e},o="undefined"!=typeof process&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder;function a(e){for(var t=e.length,n=0,r=0;r<t;){var i=e.charCodeAt(r++);if(0!=(4294967168&i))if(0==(4294965248&i))n+=2;else{if(i>=55296&&i<=56319&&r<t){var o=e.charCodeAt(r);56320==(64512&o)&&(++r,i=((1023&i)<<10)+(1023&o)+65536)}n+=0==(4294901760&i)?3:4}else n++}return n}var s=o?new TextEncoder:void 0,l="undefined"!=typeof process?200:0,c=(null==s?void 0:s.encodeInto)?function(e,t,n){s.encodeInto(e,t.subarray(n))}:function(e,t,n){t.set(s.encode(e),n)};function u(e,t,n){for(var r=t,o=r+n,a=[],s="";r<o;){var l=e[r++];if(0==(128&l))a.push(l);else if(192==(224&l)){var c=63&e[r++];a.push((31&l)<<6|c)}else if(224==(240&l)){c=63&e[r++];var u=63&e[r++];a.push((31&l)<<12|c<<6|u)}else if(240==(248&l)){var h=(7&l)<<18|(c=63&e[r++])<<12|(u=63&e[r++])<<6|63&e[r++];h>65535&&(h-=65536,a.push(h>>>10&1023|55296),h=56320|1023&h),a.push(h)}else a.push(l);a.length>=4096&&(s+=String.fromCharCode.apply(String,i(a)),a.length=0)}return a.length>0&&(s+=String.fromCharCode.apply(String,i(a))),s}var h=o?new TextDecoder:null,d="undefined"!=typeof process?200:0,p=function(e,t){this.type=e,this.data=t};function f(e,t,n){var r=Math.floor(n/4294967296),i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function m(e,t){var n=e.getInt32(t),r=e.getUint32(t+4),i=n<Math.floor(Number.MIN_SAFE_INTEGER/4294967296)||n===Math.floor(Number.MIN_SAFE_INTEGER/4294967296)&&0===r,o=n>Math.floor(Number.MAX_SAFE_INTEGER/4294967296);return i||o?BigInt(n)*BigInt(4294967296)+BigInt(r):4294967296*n+r}var g=-1;function y(e){var t,n=e.sec,r=e.nsec;if(n>=0&&r>=0&&n<=17179869183){if(0===r&&n<=4294967295){var i=new Uint8Array(4);return(t=new DataView(i.buffer)).setUint32(0,n),i}var o=n/4294967296,a=4294967295&n;return i=new Uint8Array(8),(t=new DataView(i.buffer)).setUint32(0,r<<2|3&o),t.setUint32(4,a),i}return i=new Uint8Array(12),(t=new DataView(i.buffer)).setUint32(0,r),f(t,4,n),i}function v(e){var t=e.getTime(),n=Math.floor(t/1e3),r=1e6*(t-1e3*n),i=Math.floor(r/1e9);return{sec:n+i,nsec:r-1e9*i}}function w(e){return e instanceof Date?y(v(e)):null}function b(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:var n=t.getUint32(0);return{sec:4294967296*(3&n)+t.getUint32(4),nsec:n>>>2};case 12:return{sec:m(t,4),nsec:t.getUint32(0)};default:throw new Error("Unrecognized data size for timestamp: "+e.length)}}function _(e){var t=b(e);return new Date(1e3*t.sec+t.nsec/1e6)}var x={type:g,encode:w,decode:_},A=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(x)}return e.prototype.register=function(e){var t=e.type,n=e.encode,r=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=r;else{var i=1+t;this.builtInEncoders[i]=n,this.builtInDecoders[i]=r}},e.prototype.tryToEncode=function(e,t){for(var n=0;n<this.builtInEncoders.length;n++)if(null!=(r=this.builtInEncoders[n])&&null!=(i=r(e,t)))return new p(-1-n,i);for(n=0;n<this.encoders.length;n++){var r,i;if(null!=(r=this.encoders[n])&&null!=(i=r(e,t)))return new p(n,i)}return e instanceof p?e:null},e.prototype.decode=function(e,t,n){var r=t<0?this.builtInDecoders[-1-t]:this.decoders[t];return r?r(e,t,n):new p(t,e)},e.defaultCodec=new e,e}();function k(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}var S=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
2if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},E=function(){function e(e,t,n,r,i,o,a,s){void 0===e&&(e=A.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===r&&(r=2048),void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===a&&(a=!1),void 0===s&&(s=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=r,this.sortKeys=i,this.forceFloat32=o,this.ignoreUndefined=a,this.forceIntegerToFloat=s,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.getUint8Array=function(){return this.bytes.subarray(0,this.pos)},e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.getUint8Array()},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw new Error("Too deep objects in depth "+t);null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):"bigint"==typeof e?this.encodebigint(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength<t&&this.resizeBuffer(2*t)},e.prototype.resizeBuffer=function(e){var t=new ArrayBuffer(e),n=new Uint8Array(t),r=new DataView(t);n.set(this.bytes),this.view=r,this.bytes=n},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(e){!1===e?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(e){Number.isSafeInteger(e)&&!this.forceIntegerToFloat?e>=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.encodebigint=function(e){e>=BigInt(0)?e<BigInt(128)?this.writeU8(Number(e)):e<BigInt(256)?(this.writeU8(204),this.writeU8(Number(e))):e<BigInt(65536)?(this.writeU8(205),this.writeU16(Number(e))):e<BigInt(4294967296)?(this.writeU8(206),this.writeU32(Number(e))):(this.writeU8(207),this.writeBig64(e)):e>=BigInt(-32)?this.writeU8(224|Number(e)+32):e>=BigInt(-128)?(this.writeU8(208),this.writeI8(Number(e))):e>=BigInt(-32768)?(this.writeU8(209),this.writeI16(Number(e))):e>=BigInt(-2147483648)?(this.writeU8(210),this.writeI32(Number(e))):(this.writeU8(211),this.writeBig64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else{if(!(e<4294967296))throw new Error("Too long string: "+e+" bytes in UTF-8");this.writeU8(219),this.writeU32(e)}},e.prototype.encodeString=function(e){var t=e.length;if(o&&t>l){var n=a(e);this.ensureBufferSizeToWrite(5+n),this.writeStringHeader(n),c(e,this.bytes,this.pos),this.pos+=n}else n=a(e),this.ensureBufferSizeToWrite(5+n),this.writeStringHeader(n),function(e,t,n){for(var r=e.length,i=n,o=0;o<r;){var a=e.charCodeAt(o++);if(0!=(4294967168&a)){if(0==(4294965248&a))t[i++]=a>>6&31|192;else{if(a>=55296&&a<=56319&&o<r){var s=e.charCodeAt(o);56320==(64512&s)&&(++o,a=((1023&a)<<10)+(1023&s)+65536)}0==(4294901760&a)?(t[i++]=a>>12&15|224,t[i++]=a>>6&63|128):(t[i++]=a>>18&7|240,t[i++]=a>>12&63|128,t[i++]=a>>6&63|128)}t[i++]=63&a|128}else t[i++]=a}}(e,this.bytes,this.pos),this.pos+=n},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else{if("object"!=typeof e)throw new Error("Unrecognized object: "+Object.prototype.toString.apply(e));this.encodeMap(e,t)}},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large binary: "+t);this.writeU8(198),this.writeU32(t)}var n=k(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n,r,i=e.length;if(i<16)this.writeU8(144+i);else if(i<65536)this.writeU8(220),this.writeU16(i);else{if(!(i<4294967296))throw new Error("Too large array: "+i);this.writeU8(221),this.writeU32(i)}try{for(var o=S(e),a=o.next();!a.done;a=o.next()){var s=a.value;this.doEncode(s,t+1)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.countWithoutUndefined=function(e,t){var n,r,i=0;try{for(var o=S(t),a=o.next();!a.done;a=o.next())void 0!==e[a.value]&&i++}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.encodeMap=function(e,t){var n,r,i=Object.keys(e);this.sortKeys&&i.sort();var o=this.ignoreUndefined?this.countWithoutUndefined(e,i):i.length;if(o<16)this.writeU8(128+o);else if(o<65536)this.writeU8(222),this.writeU16(o);else{if(!(o<4294967296))throw new Error("Too large map object: "+o);this.writeU8(223),this.writeU32(o)}try{for(var a=S(i),s=a.next();!s.done;s=a.next()){var l=s.value,c=e[l];this.ignoreUndefined&&void 0===c||(this.encodeString(l),this.doEncode(c,t+1))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large extension object: "+t);this.writeU8(201),this.writeU32(t)}this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=n/4294967296,i=n;e.setUint32(t,r),e.setUint32(t+4,i)}(this.view,this.pos,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),f(this.view,this.pos,e),this.pos+=8},e.prototype.writeBig64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=Number(n/BigInt(4294967296)),i=Number(n%BigInt(4294967296));
2r<0&&0!==i&&(r-=1),e.setUint32(t,r),e.setUint32(t+4,i)}(this.view,this.pos,e),this.pos+=8},e}(),C={};function M(e,t){return void 0===t&&(t=C),new E(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat).encode(e)}function T(e){return(e<0?"-":"")+"0x"+Math.abs(e).toString(16).padStart(2,"0")}var P=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n<this.maxKeyLength;n++)this.caches.push([])}return e.prototype.canBeCached=function(e){return e>0&&e<=this.maxKeyLength},e.prototype.get=function(e,t,n){var r=this.caches[n-1],i=r.length;e:for(var o=0;o<i;o++){for(var a=r[o],s=a.bytes,l=0;l<n;l++)if(s[l]!==e[t+l])continue e;return a.value}return null},e.prototype.store=function(e,t){var n=this.caches[e.length-1],r={bytes:e,value:t};n.length>=this.maxLengthPerKey?n[Math.random()*n.length|0]=r:n.push(r)},e.prototype.decode=function(e,t,n){var r=this.get(e,t,n);if(null!=r)return this.hit++,r;this.miss++;var i=u(e,t,n),o=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(o,i),i},e}(),R=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},I=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}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,s])}}},L=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}
vendor: 10,553 bytes, line 2
2,O=function(e){return this instanceof O?(this.v=e,this):new O(e)},D=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof O?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}},B=new DataView(new ArrayBuffer(0)),N=new Uint8Array(B.buffer),F=function(){try{B.getInt8(0)}catch(e){return e.constructor}throw new Error("never reached")}(),j=new F("Insufficient data"),U=new P,z=function(){function e(e,t,n,r,i,o,a,s){void 0===e&&(e=A.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=4294967295),void 0===r&&(r=4294967295),void 0===i&&(i=4294967295),void 0===o&&(o=4294967295),void 0===a&&(a=4294967295),void 0===s&&(s=U),this.extensionCodec=e,this.context=t,this.maxStrLength=n,this.maxBinLength=r,this.maxArrayLength=i,this.maxMapLength=o,this.maxExtLength=a,this.keyDecoder=s,this.totalPos=0,this.pos=0,this.view=B,this.bytes=N,this.headByte=-1,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1},e.prototype.setBuffer=function(e){this.bytes=k(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=k(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}(this.bytes),this.pos=0},e.prototype.appendBuffer=function(e){if(-1!==this.headByte||this.hasRemaining()){var t=this.bytes.subarray(this.pos),n=k(e),r=new Uint8Array(t.length+n.length);r.set(t),r.set(n,t.length),this.setBuffer(r)}else this.setBuffer(e)},e.prototype.hasRemaining=function(e){return void 0===e&&(e=1),this.view.byteLength-this.pos>=e},e.prototype.createNoExtraBytesError=function(e){var t=this.view,n=this.pos;return new RangeError("Extra "+(t.byteLength-n)+" of "+t.byteLength+" byte(s) found at buffer["+e+"]")},e.prototype.decode=function(e){return this.reinitializeState(),this.setBuffer(e),this.doDecodeSingleSync()},e.prototype.doDecodeSingleSync=function(){var e=this.doDecodeSync();if(this.hasRemaining())throw this.createNoExtraBytesError(this.pos);return e},e.prototype.decodeAsync=function(e){var t,n,r,i;return R(this,void 0,void 0,(function(){var o,a,s,l,c,u,h,d;return I(this,(function(p){switch(p.label){case 0:o=!1,p.label=1;case 1:p.trys.push([1,6,7,12]),t=L(e),p.label=2;case 2:return[4,t.next()];case 3:if((n=p.sent()).done)return[3,5];if(s=n.value,o)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(s);try{a=this.doDecodeSync(),o=!0}catch(e){if(!(e instanceof F))throw e}this.totalPos+=this.pos,p.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return l=p.sent(),r={error:l},[3,12];case 7:return p.trys.push([7,,10,11]),n&&!n.done&&(i=t.return)?[4,i.call(t)]:[3,9];case 8:p.sent(),p.label=9;case 9:return[3,11];case 10:if(r)throw r.error;return[7];case 11:return[7];case 12:if(o){if(this.hasRemaining())throw this.createNoExtraBytesError(this.totalPos);return[2,a]}throw u=(c=this).headByte,h=c.pos,d=c.totalPos,new RangeError("Insufficient data in parcing "+T(u)+" at "+d+" ("+h+" in the current buffer)")}}))}))},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return D(this,arguments,(function(){var n,r,i,o,a,s,l,c,u;return I(this,(function(h){switch(h.label){case 0:n=t,r=-1,h.label=1;case 1:h.trys.push([1,13,14,19]),i=L(e),h.label=2;case 2:return[4,O(i.next())];case 3:if((o=h.sent()).done)return[3,12];if(a=o.value,t&&0===r)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(a),n&&(r=this.readArraySize(),n=!1,this.complete()),h.label=4;case 4:h.trys.push([4,9,,10]),h.label=5;case 5:return[4,O(this.doDecodeSync())];case 6:return[4,h.sent()];case 7:return h.sent(),0==--r?[3,8]:[3,5];case 8:return[3,10];case 9:if(!((s=h.sent())instanceof F))throw s;return[3,10];case 10:this.totalPos+=this.pos,h.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return l=h.sent(),c={error:l},[3,19];case 14:return h.trys.push([14,,17,18]),o&&!o.done&&(u=i.return)?[4,O(u.call(i))]:[3,16];case 15:h.sent(),h.label=16;case 16:return[3,18];case 17:if(c)throw c.error;return[7];case 18:return[7];case 19:return[2]}}))}))},e.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192)if(e<128)t=e;else if(e<144){if(0!==(r=e-128)){this.pushMapState(r),this.complete();continue e}t={}}else if(e<160){if(0!==(r=e-144)){this.pushArrayState(r),this.complete();continue e}t=[]}else{var n=e-160;t=this.decodeUtf8String(n,0)}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e)n=this.lookU8(),t=this.decodeUtf8String(n,1);else if(218===e)n=this.lookU16(),t=this.decodeUtf8String(n,2);else if(219===e)n=this.lookU32(),t=this.decodeUtf8String(n,4);else if(220===e){if(0!==(r=this.readU16())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(221===e){if(0!==(r=this.readU32())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(222===e){if(0!==(r=this.readU16())){this.pushMapState(r),this.complete();continue e}t={}}else if(223===e){if(0!==(r=this.readU32())){this.pushMapState(r),this.complete();continue e}t={}}else if(196===e){var r=this.lookU8();t=this.decodeBinary(r,1)}else if(197===e)r=this.lookU16(),t=this.decodeBinary(r,2);else if(198===e)r=this.lookU32(),t=this.decodeBinary(r,4);else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e)r=this.lookU8(),t=this.decodeExtension(r,1);else if(200===e)r=this.lookU16(),t=this.decodeExtension(r,2);else{if(201!==e)throw new Error("Unrecognized type byte: "+T(e));r=this.lookU32(),t=this.decodeExtension(r,4)}this.complete();for(var i=this.stack;i.length>0;){var o=i[i.length-1];if(0===o.type){if(o.array[o.position]=t,o.position++,o.position!==o.size)continue e;i.pop(),t=o.array}else{if(1===o.type){if(a=void 0,"string"!==(a=typeof t)&&"number"!==a)throw new Error("The type of key must be string or number but "+typeof t);o.key=t,o.type=2;continue e}if(o.map[o.key]=t,o.readCount++,o.readCount!==o.size){o.key=null,o.type=1;continue e}i.pop(),t=o.map}}return t}var a},e.prototype.readHeadByte=function(){return-1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new Error("Unrecognized array type byte: "+T(e))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new Error("Max length exceeded: map length ("+e+") > maxMapLengthLength ("+this.maxMapLength+")");this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new Error("Max length exceeded: array length ("+e+") > maxArrayLength ("+this.maxArrayLength+")");this.stack.push({type:0,size:e,array:new Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){var n;if(e>this.maxStrLength)throw new Error("Max length exceeded: UTF-8 byte length ("+e+") > maxStrLength ("+this.maxStrLength+")");if(this.bytes.byteLength<this.pos+t+e)throw j;var r,i=this.pos+t;return r=this.stateIsMapKey()&&(null===(n=this.keyDecoder)||void 0===n?void 0:n.canBeCached(e))?this.keyDecoder.decode(this.bytes,i,e):o&&e>d?function(e,t,n){var r=e.subarray(t,t+n);return h.decode(r)}(this.bytes,i,e):u(this.bytes,i,e),this.pos+=t+e,r},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new Error("Max length exceeded: bin length ("+e+") > maxBinLength ("+this.maxBinLength+")");if(!this.hasRemaining(e+t))throw j;var n=this.pos+t,r=this.bytes.subarray(n,n+e);return this.pos+=t+e,r},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new Error("Max length exceeded: ext length ("+e+") > maxExtLength ("+this.maxExtLength+")");var n=this.view.getInt8(this.pos+t),r=this.decodeBinary(e,t+1);return this.extensionCodec.decode(r,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e,t,n,r,i=(e=this.view,t=this.pos,n=e.getUint32(t),r=e.getUint32(t+4),n>Math.floor(Number.MAX_SAFE_INTEGER/4294967296)?BigInt(n)*BigInt(4294967296)+BigInt(r):4294967296*n+r);return this.pos+=8,i},e.prototype.readI64=function(){var e=m(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),q={};function W(e,t){return void 0===t&&(t=q),new z(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decode(e)}var V=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
2function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}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,s])}}},H=function(e){return this instanceof H?(this.v=e,this):new H(e)},K=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof H?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}};function G(e){if(null==e)throw new Error("Assertion Failure: value must not be null nor undefined")}function Z(e){return null!=e[Symbol.asyncIterator]?e:function(e){return K(this,arguments,(function(){var t,n,r,i;return V(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,H(t.read())];case 3:return n=o.sent(),r=n.done,i=n.value,r?[4,H(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return G(i),[4,H(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}
2))}))}(e)}var Q=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Y=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}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,s])}}};function X(e,t){return void 0===t&&(t=q),Q(this,void 0,void 0,(function(){var n;return Y(this,(function(r){return n=Z(e),[2,new z(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeAsync(n)]}))}))}function J(e,t){void 0===t&&(t=q);var n=Z(e);return new z(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeArrayStream(n)}function $(e,t){void 0===t&&(t=q);var n=Z(e);return new z(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeStream(n)}}])},7262:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ABIAddressType:()=>Yo,ABIArrayDynamicType:()=>ta,ABIArrayStaticType:()=>ea,ABIBoolType:()=>Xo,ABIByteType:()=>Jo,ABIContract:()=>da,ABIInterface:()=>pa,ABIMethod:()=>ua,ABIReferenceType:()=>aa,ABIStringType:()=>$o,ABITransactionType:()=>oa,ABITupleType:()=>na,ABIType:()=>Go,ABIUfixedType:()=>Qo,ABIUintType:()=>Zo,ADDR_BYTE_SIZE:()=>zo,ALGORAND_MIN_TX_FEE:()=>ie,Algodv2:()=>kn,AtomicTransactionComposer:()=>ya,AtomicTransactionComposerStatus:()=>ma,DryrunResult:()=>io,ERROR_INVALID_MICROALGOS:()=>Ca,ERROR_MULTISIG_BAD_SENDER:()=>Ea,INVALID_MICROALGOS_ERROR_MSG:()=>fe,Indexer:()=>ei,IntDecoding:()=>f,Kmd:()=>Sn,LENGTH_ENCODE_BYTE_SIZE:()=>Vo,LogicSig:()=>Bi,LogicSigAccount:()=>Ni,MAX_LEN:()=>Uo,MULTISIG_BAD_SENDER_ERROR_MSG:()=>wa,OnApplicationComplete:()=>re,SINGLE_BOOL_SIZE:()=>Wo,SINGLE_BYTE_SIZE:()=>qo,SourceMap:()=>Gi,Transaction:()=>ae,TransactionType:()=>ne,abiCheckTransactionType:()=>la,abiTypeIsReference:()=>ca,abiTypeIsTransaction:()=>sa,algosToMicroalgos:()=>ge,appendSignMultisigTransaction:()=>Ii,appendSignRawMultisigSignature:()=>Li,assignGroupID:()=>wi,bigIntToBytes:()=>ni,bytesToBigInt:()=>ri,computeGroupID:()=>vi,createDryrun:()=>Yi,createMultisigTransaction:()=>Ei,decodeAddress:()=>V,decodeObj:()=>Sa,decodeSignedTransaction:()=>
2ue,decodeUint64:()=>I,decodeUnsignedTransaction:()=>ce,default:()=>Ma,encodeAddress:()=>K,encodeObj:()=>ka,encodeUint64:()=>R,encodeUnsignedSimulateTransaction:()=>se,encodeUnsignedTransaction:()=>le,generateAccount:()=>ii,getApplicationAddress:()=>Q,getMethodByName:()=>ha,indexerModels:()=>i,instantiateTxnIfNeeded:()=>he,isTransactionWithSigner:()=>jo,isValidAddress:()=>H,logicSigFromByte:()=>Ui,makeApplicationCallTxnFromObject:()=>Oo,makeApplicationClearStateTxn:()=>Po,makeApplicationClearStateTxnFromObject:()=>Ro,makeApplicationCloseOutTxn:()=>Mo,makeApplicationCloseOutTxnFromObject:()=>To,makeApplicationCreateTxn:()=>bo,makeApplicationCreateTxnFromObject:()=>_o,makeApplicationDeleteTxn:()=>ko,makeApplicationDeleteTxnFromObject:()=>So,makeApplicationNoOpTxn:()=>Io,makeApplicationNoOpTxnFromObject:()=>Lo,makeApplicationOptInTxn:()=>Eo,makeApplicationOptInTxnFromObject:()=>Co,makeApplicationUpdateTxn:()=>xo,makeApplicationUpdateTxnFromObject:()=>Ao,makeAssetConfigTxnWithSuggestedParams:()=>ho,makeAssetConfigTxnWithSuggestedParamsFromObject:()=>po,makeAssetCreateTxnWithSuggestedParams:()=>co,makeAssetCreateTxnWithSuggestedParamsFromObject:()=>uo,makeAssetDestroyTxnWithSuggestedParams:()=>fo,makeAssetDestroyTxnWithSuggestedParamsFromObject:()=>mo,makeAssetFreezeTxnWithSuggestedParams:()=>go,makeAssetFreezeTxnWithSuggestedParamsFromObject:()=>yo,makeAssetTransferTxnWithSuggestedParams:()=>vo,makeAssetTransferTxnWithSuggestedParamsFromObject:()=>wo,makeBasicAccountTransactionSigner:()=>Do,makeEmptyTransactionSigner:()=>Fo,makeKeyRegistrationTxnWithSuggestedParams:()=>so,makeKeyRegistrationTxnWithSuggestedParamsFromObject:()=>lo,makeLogicSigAccountTransactionSigner:()=>Bo,makeMultiSigAccountTransactionSigner:()=>No,makePaymentTxnWithSuggestedParams:()=>oo,makePaymentTxnWithSuggestedParamsFromObject:()=>ao,masterDerivationKeyToMnemonic:()=>gi,mergeMultisigTransactions:()=>Ti,microalgosToAlgos:()=>me,mnemonicFromSeed:()=>hi,mnemonicToMasterDerivationKey:()=>mi,mnemonicToSecretKey:()=>pi,modelsv2:()=>r,multisigAddress:()=>Oi,secretKeyToMnemonic:()=>fi,seedFromMnemonic:()=>di,signBid:()=>_a,signBytes:()=>xa,signLogicSigTransaction:()=>ji,signLogicSigTransactionObject:()=>Fi,signMultisigTransaction:()=>Ri,signTransaction:()=>ba,tealSign:()=>qi,tealSignFromProgram:()=>Vi,verifyBytes:()=>Aa,verifyMultisig:()=>Pi,verifyTealSign:()=>Wi,waitForConfirmation:()=>ti});var r={};n.r(r),n.d(r,{Account:()=>ke,AccountApplicationResponse:()=>Se,AccountAssetResponse:()=>Ee,AccountParticipation:()=>Ce,AccountStateDelta:()=>Me,Application:()=>Te,ApplicationInitialStates:()=>Pe,ApplicationKVStorage:()=>Re,ApplicationLocalReference:()=>Ie,ApplicationLocalState:()=>Le,ApplicationParams:()=>Oe,ApplicationStateOperation:()=>De,ApplicationStateSchema:()=>Be,Asset:()=>Ne,AssetHolding:()=>Fe,AssetHoldingReference:()=>je,AssetParams:()=>Ue,AvmKeyValue:()=>ze,AvmValue:()=>qe,BlockHashResponse:()=>We,BlockResponse:()=>Ve,BlockTxidsResponse:()=>He,Box:()=>Ke,BoxDescriptor:()=>Ge,BoxReference:()=>Ze,BoxesResponse:()=>Qe,BuildVersion:()=>Ye,CompileResponse:()=>Xe,DisassembleResponse:()=>Je,DryrunRequest:()=>$e,DryrunResponse:()=>et,DryrunSource:()=>tt,DryrunState:()=>nt,DryrunTxnResult:()=>rt,ErrorResponse:()=>it,EvalDelta:()=>ot,EvalDeltaKeyValue:()=>at,GetBlockTimeStampOffsetResponse:()=>st,GetSyncRoundResponse:()=>lt,KvDelta:()=>ct,LedgerStateDeltaForTransactionGroup:()=>ut,LightBlockHeaderProof:()=>ht,NodeStatusResponse:()=>dt,PendingTransactionResponse:()=>pt,PendingTransactionsResponse:()=>ft,PostTransactionsResponse:()=>mt,ScratchChange:()=>gt,SimulateInitialStates:()=>yt,SimulateRequest:()=>vt,SimulateRequestTransactionGroup:()=>wt,SimulateResponse:()=>bt,SimulateTraceConfig:()=>_t,SimulateTransactionGroupResult:()=>xt,SimulateTransactionResult:()=>At,SimulateUnnamedResourcesAccessed:()=>kt,SimulationEvalOverrides:()=>St,SimulationOpcodeTraceUnit:()=>Et,SimulationTransactionExecTrace:()=>Ct,StateProof:()=>Mt,StateProofMessage:()=>Tt,SupplyResponse:()=>Pt,TealKeyValue:()=>Rt,TealValue:()=>It,TransactionGroupLedgerStateDeltasForRoundResponse:()=>Lt,TransactionParametersResponse:()=>Ot,TransactionProofResponse:()=>Dt,Version:()=>Bt});var i={};n.r(i),n.d(i,{Account:()=>zn,AccountParticipation:()=>qn,AccountResponse:()=>Wn,AccountStateDelta:()=>Vn,AccountsResponse:()=>Hn,Application:()=>Kn,ApplicationLocalState:()=>Gn,ApplicationLocalStatesResponse:()=>Zn,ApplicationLogData:()=>Qn,ApplicationLogsResponse:()=>Yn,ApplicationParams:()=>Xn,ApplicationResponse:()=>Jn,ApplicationStateSchema:()=>$n,ApplicationsResponse:()=>er,Asset:()=>tr,AssetBalancesResponse:()=>nr,AssetHolding:()=>rr,AssetHoldingsResponse:()=>ir,AssetParams:()=>or,AssetResponse:()=>ar,AssetsResponse:()=>sr,Block:()=>lr,BlockRewards:()=>cr,BlockUpgradeState:()=>ur,BlockUpgradeVote:()=>hr,Box:()=>dr,BoxDescriptor:()=>pr,BoxesResponse:()=>fr,ErrorResponse:()=>mr,EvalDelta:()=>gr,EvalDeltaKeyValue:()=>yr,HashFactory:()=>vr,HealthCheck:()=>wr,IndexerStateProofMessage:()=>br,MerkleArrayProof:()=>_r,MiniAssetHolding:()=>xr,ParticipationUpdates:()=>Ar,StateProofFields:()=>kr,StateProofParticipant:()=>Sr,StateProofReveal:()=>Er,StateProofSigSlot:()=>Cr,StateProofSignature:()=>Mr,StateProofTracking:()=>Tr,StateProofVerifier:()=>Pr,StateSchema:()=>Rr,TealKeyValue:()=>Ir,TealValue:()=>Lr,Transaction:()=>Or,TransactionApplication:()=>Dr,TransactionAssetConfig:()=>Br,TransactionAssetFreeze:()=>Nr,TransactionAssetTransfer:()=>Fr,TransactionKeyreg:()=>jr,TransactionPayment:()=>Ur,TransactionResponse:()=>zr,TransactionSignature:()=>qr,TransactionSignatureLogicsig:()=>Wr,TransactionSignatureMultisig:()=>Vr,TransactionSignatureMultisigSubsignature:()=>Hr,TransactionStateProof:()=>Kr,TransactionsResponse:()=>Gr});var o={};n.r(o),n.d(o,{ABIAddressType:()=>Yo,ABIArrayDynamicType:()=>ta,ABIArrayStaticType:()=>ea,ABIBoolType:()=>Xo,ABIByteType:()=>Jo,ABIContract:()=>da,ABIInterface:()=>pa,ABIMethod:()=>ua,ABIReferenceType:()=>aa,ABIStringType:()=>$o,ABITransactionType:()=>oa,ABITupleType:()=>na,ABIType:()=>Go,ABIUfixedType:()=>Qo,ABIUintType:()=>Zo,ADDR_BYTE_SIZE:()=>zo,ALGORAND_MIN_TX_FEE:()=>ie,Algodv2:()=>kn,AtomicTransactionComposer:()=>ya,AtomicTransactionComposerStatus:()=>ma,DryrunResult:()=>io,ERROR_INVALID_MICROALGOS:()=>Ca,ERROR_MULTISIG_BAD_SENDER:()=>Ea,INVALID_MICROALGOS_ERROR_MSG:()=>fe,Indexer:()=>ei,IntDecoding:()=>f,Kmd:()=>Sn,LENGTH_ENCODE_BYTE_SIZE:()=>Vo,LogicSig:()=>Bi,LogicSigAccount:()=>Ni,MAX_LEN:()=>Uo,MULTISIG_BAD_SENDER_ERROR_MSG:()=>wa,OnApplicationComplete:()=>re,SINGLE_BOOL_SIZE:()=>Wo,SINGLE_BYTE_SIZE:()=>qo,SourceMap:()=>Gi,Transaction:()=>ae,TransactionType:()=>ne,abiCheckTransactionType:()=>la,abiTypeIsReference:()=>ca,abiTypeIsTransaction:()=>sa,algosToMicroalgos:()=>ge,appendSignMultisigTransaction:()=>Ii,appendSignRawMultisigSignature:()=>Li,assignGroupID:()=>wi,bigIntToBytes:()=>ni,bytesToBigInt:()=>ri,computeGroupID:()=>vi,createDryrun:()=>Yi,createMultisigTransaction:()=>Ei,decodeAddress:()=>V,decodeObj:()=>Sa,decodeSignedTransaction:()=>
2ue,decodeUint64:()=>I,decodeUnsignedTransaction:()=>ce,encodeAddress:()=>K,encodeObj:()=>ka,encodeUint64:()=>R,encodeUnsignedSimulateTransaction:()=>se,encodeUnsignedTransaction:()=>le,generateAccount:()=>ii,getApplicationAddress:()=>Q,getMethodByName:()=>ha,indexerModels:()=>i,instantiateTxnIfNeeded:()=>he,isTransactionWithSigner:()=>jo,isValidAddress:()=>H,logicSigFromByte:()=>Ui,makeApplicationCallTxnFromObject:()=>Oo,makeApplicationClearStateTxn:()=>Po,makeApplicationClearStateTxnFromObject:()=>Ro,makeApplicationCloseOutTxn:()=>Mo,makeApplicationCloseOutTxnFromObject:()=>To,makeApplicationCreateTxn:()=>bo,makeApplicationCreateTxnFromObject:()=>_o,makeApplicationDeleteTxn:()=>ko,makeApplicationDeleteTxnFromObject:()=>So,makeApplicationNoOpTxn:()=>Io,makeApplicationNoOpTxnFromObject:()=>Lo,makeApplicationOptInTxn:()=>Eo,makeApplicationOptInTxnFromObject:()=>Co,makeApplicationUpdateTxn:()=>xo,makeApplicationUpdateTxnFromObject:()=>Ao,makeAssetConfigTxnWithSuggestedParams:()=>ho,makeAssetConfigTxnWithSuggestedParamsFromObject:()=>po,makeAssetCreateTxnWithSuggestedParams:()=>co,makeAssetCreateTxnWithSuggestedParamsFromObject:()=>uo,makeAssetDestroyTxnWithSuggestedParams:()=>fo,makeAssetDestroyTxnWithSuggestedParamsFromObject:()=>mo,makeAssetFreezeTxnWithSuggestedParams:()=>go,makeAssetFreezeTxnWithSuggestedParamsFromObject:()=>yo,makeAssetTransferTxnWithSuggestedParams:()=>vo,makeAssetTransferTxnWithSuggestedParamsFromObject:()=>wo,makeBasicAccountTransactionSigner:()=>Do,makeEmptyTransactionSigner:()=>Fo,makeKeyRegistrationTxnWithSuggestedParams:()=>so,makeKeyRegistrationTxnWithSuggestedParamsFromObject:()=>lo,makeLogicSigAccountTransactionSigner:()=>Bo,makeMultiSigAccountTransactionSigner:()=>No,makePaymentTxnWithSuggestedParams:()=>oo,makePaymentTxnWithSuggestedParamsFromObject:()=>ao,masterDerivationKeyToMnemonic:()=>gi,mergeMultisigTransactions:()=>Ti,microalgosToAlgos:()=>me,mnemonicFromSeed:()=>hi,mnemonicToMasterDerivationKey:()=>mi,mnemonicToSecretKey:()=>pi,modelsv2:()=>r,multisigAddress:()=>Oi,secretKeyToMnemonic:()=>fi,seedFromMnemonic:()=>di,signBid:()=>_a,signBytes:()=>xa,signLogicSigTransaction:()=>ji,signLogicSigTransactionObject:()=>Fi,signMultisigTransaction:()=>Ri,signTransaction:()=>ba,tealSign:()=>qi,tealSignFromProgram:()=>Vi,verifyBytes:()=>Aa,verifyMultisig:()=>Pi,verifyTealSign:()=>Wi,waitForConfirmation:()=>ti});var a,s=n(9778),l=n(2826),c=n.n(l),u=n(369),h=n.n(u),d=n(6068),p=n.n(d);!function(e){e.DEFAULT="default",e.SAFE="safe",e.MIXED="mixed",e.BIGINT="bigint"}(a||(a={}));const f=a,m=p()({useNativeBigInt:!0,strict:!0});function g(e,t){return e.length===t.length&&Array.from(e).every(((e,n)=>e===t[n]))}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e+t.length),0),i=new Uint8Array(r);let o=0;for(let a=0;a<t.length;a++)i.set(t[a],o),o+=t[a].length;return i}function v(e){return h().sha512_256.array(e)}function w(e){return function(){const{navigator:e}=globalThis;return"object"===typeof e&&"ReactNative"===e.product}()&&console.warn("It looks like you're running in react-native. In order to perform common crypto operations you will need to polyfill common operations such as crypto.getRandomValues"),c().randomBytes(e)}function b(e){return c().sign.keyPair.fromSeed(e)}function _(e){return e===c().sign.signatureLength}function x(e){return c().sign.keyPair.fromSecretKey(e)}function A(e,t){return c().sign.detached(e,t)}function k(e,t){return c().verify(e,t)}function S(e,t,n){return c().sign.detached.verify(e,t,n)}const E=c().sign.publicKeyLength,C=(c().sign.secretKeyLength,32),M=32;var T=n(9437),P=n.n(T);function R(e){if(!("bigint"===typeof e||Number.isInteger(e))||e<0||e>BigInt("0xffffffffffffffff"))throw new Error("Input is not a 64-bit unsigned integer");const t=new Uint8Array(8);return new DataView(t.buffer).setBigUint64(0,BigInt(e)),t}function I(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"safe";if("safe"!==t&&"mixed"!==t&&"bigint"!==t)throw new Error("Unknown decodingMode option: ".concat(t));if(0===e.byteLength||e.byteLength>8)throw new Error("Data has unacceptable length. Expected length is between 1 and 8, got ".concat(e.byteLength));const n=y(new Uint8Array(8-e.byteLength),e),r=new DataView(n.buffer).getBigUint64(0),i=r>BigInt(Number.MAX_SAFE_INTEGER);if("safe"===t){if(i)throw new Error("Integer exceeds maximum safe integer: ".concat(r.toString(),'. Try decoding with "mixed" or "safe" decodingMode.'));return Number(r)}return"mixed"!==t||i?r:Number(r)}
2const L=36,O=4,D=58,B=new Uint8Array([77,117,108,116,105,115,105,103,65,100,100,114]),N=s.lW.from("appID"),F="address seems to be malformed",j="wrong checksum for address",U="invalid multisig version",z="bad multisig threshold",q="bad multisig public key - wrong length",W="nacl public key length is not 32 bytes";function V(e){if("string"!==typeof e||e.length!==D)throw new Error(F);const t=P().decode.asBytes(e.toString());if(t.length!==L)throw new Error(F);const n=new Uint8Array(t.slice(0,L-O)),r=new Uint8Array(t.slice(E,L));if(!g(v(n).slice(C-O,C),r))throw new Error(j);return{publicKey:n,checksum:r}}function H(e){try{V(e)}catch(t){return!1}return!0}function K(e){const t=v(e).slice(E-O,E);return P().encode(y(e,t)).toString().slice(0,D)}function G(e){let{version:t,threshold:n,pks:r}=e;if(1!==t||t>255||t<0)throw new Error(U);if(0===n||0===r.length||n>r.length||n>255)throw new Error(z);const i=L-O;if(i!==E)throw new Error(W);const o=new Uint8Array(B.length+2+i*r.length);o.set(B,0),o.set([t],B.length),o.set([n],B.length+1);for(let a=0;a<r.length;a++){if(r[a].length!==i)throw new Error(q);o.set(r[a],B.length+2+a*i)}return new Uint8Array(v(o))}function Z(e){let{version:t,threshold:n,addrs:r}=e;return K(G({version:t,threshold:n,pks:r.map((e=>V(e).publicKey))}))}function Q(e){const t=v(y(N,R(e)));return K(new Uint8Array(t))}var Y=n(333);const X="The object contains empty or 0 values. First empty or 0 value encountered during encoding: ";function J(e){return Y.encode(e,{sortKeys:!0})}function $(e){const t=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(!e[t]||0===e[t].length))return{containsEmpty:!0,firstEmptyKey:t};return{containsEmpty:!1,firstEmptyKey:void 0}}(e);if(t.containsEmpty)throw new Error(X+t.firstEmptyKey);return J(e)}function ee(e){return Y.decode(e)}function te(e,t,n){return null==e?[]:e.map((e=>function(e,t,n){const r=e.appIndex,i=e.name,o=0===r||r===n;let a=0;if(null!=t&&(a=t.indexOf(r)+1),0===a&&!o)throw new Error("Box ref with appId ".concat(r," not in foreign-apps"));return{i:a,n:i}}(e,t,n)))}var ne,re;!function(e){e.pay="pay",e.keyreg="keyreg",e.acfg="acfg",e.axfer="axfer",e.afrz="afrz",e.appl="appl",e.stpf="stpf"}(ne||(ne={})),function(e){e[e.NoOpOC=0]="NoOpOC",e[e.OptInOC=1]="OptInOC",e[e.CloseOutOC=2]="CloseOutOC",e[e.ClearStateOC=3]="ClearStateOC",e[e.UpdateApplicationOC=4]="UpdateApplicationOC",e[e.DeleteApplicationOC=5]="DeleteApplicationOC"}(re||(re={}));const ie=1e3;function oe(e,t,n){if(null==e)return;let r;if("string"===typeof e?r=s.lW.from(e,"base64"):e.constructor===Uint8Array?r=s.lW.from(e):s.lW.isBuffer(e)&&(r=e),null==r||r.byteLength!==n)throw Error("".concat(t," must be a ").concat(n," byte Uint8Array or Buffer or base64 string."));return r}class ae{constructor(e){let{...t}=e;this.name="Transaction",this.tag=s.lW.from("TX");const n={type:ne.pay,flatFee:!1,nonParticipation:!1};if("undefined"===typeof t.type&&(t.type=n.type),"undefined"===typeof t.flatFee&&(t.flatFee=n.flatFee),t.type===ne.keyreg&&"undefined"!==typeof t.voteKey&&"undefined"===typeof t.nonParticipation&&(t.nonParticipation=n.nonParticipation),void 0!==t.suggestedParams){const e=t;e.genesisHash=e.suggestedParams.genesisHash,e.fee=e.suggestedParams.fee,void 0!==e.suggestedParams.flatFee&&(e.flatFee=e.suggestedParams.flatFee),e.firstRound=e.suggestedParams.firstRound,e.lastRound=e.suggestedParams.lastRound,e.genesisID=e.suggestedParams.genesisID}const r=t;if(r.from=V(r.from),void 0!==r.to&&(r.to=V(r.to)),void 0!==r.closeRemainderTo&&(r.closeRemainderTo=V(r.closeRemainderTo)),void 0!==r.assetManager&&(r.assetManager=V(r.assetManager)),void 0!==r.assetReserve&&(r.assetReserve=V(r.assetReserve)),void 0!==r.assetFreeze&&(r.assetFreeze=V(r.assetFreeze)),void 0!==r.assetClawback&&(r.assetClawback=V(r.assetClawback)),void 0!==r.assetRevocationTarget&&(r.assetRevocationTarget=V(r.assetRevocationTarget)),void 0!==r.freezeAccount&&(r.freezeAccount=V(r.freezeAccount)),void 0!==r.reKeyTo&&(r.reKeyTo=V(r.reKeyTo)),void 0===r.genesisHash)throw Error("genesis hash must be specified and in a base64 string.");if(r.genesisHash=s.lW.from(r.genesisHash,"base64"),void 0!==r.amount&&(!(Number.isSafeInteger(r.amount)||"bigint"===typeof r.amount&&r.amount<=BigInt("0xffffffffffffffff"))||r.amount<0))throw Error("Amount must be a positive number and smaller than 2^64-1. If the number is larger than 2^53-1, use bigint.");if(!Number.isSafeInteger(r.fee)||r.fee<0)throw Error("fee must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(r.firstRound)||r.firstRound<0)throw Error("firstRound must be a positive number");if(!Number.isSafeInteger(r.lastRound)||r.lastRound<0)throw Error("lastRound must be a positive number");if(void 0!==r.extraPages&&(!Number.isInteger(r.extraPages)||r.extraPages<0||r.extraPages>3))throw Error("extraPages must be an Integer between and including 0 to 3");
2if(void 0!==r.assetTotal&&(!(Number.isSafeInteger(r.assetTotal)||"bigint"===typeof r.assetTotal&&r.assetTotal<=BigInt("0xffffffffffffffff"))||r.assetTotal<0))throw Error("Total asset issuance must be a positive number and smaller than 2^64-1. If the number is larger than 2^53-1, use bigint.");if(void 0!==r.assetDecimals&&(!Number.isSafeInteger(r.assetDecimals)||r.assetDecimals<0||r.assetDecimals>19))throw Error("assetDecimals must be a positive number and smaller than ".concat(19..toString()));if(void 0!==r.assetIndex&&(!Number.isSafeInteger(r.assetIndex)||r.assetIndex<0))throw Error("Asset index must be a positive number and smaller than 2^53-1");if(void 0!==r.appIndex&&(!Number.isSafeInteger(r.appIndex)||r.appIndex<0))throw Error("Application index must be a positive number and smaller than 2^53-1");if(void 0!==r.appLocalInts&&(!Number.isSafeInteger(r.appLocalInts)||r.appLocalInts<0))throw Error("Application local ints count must be a positive number and smaller than 2^53-1");if(void 0!==r.appLocalByteSlices&&(!Number.isSafeInteger(r.appLocalByteSlices)||r.appLocalByteSlices<0))throw Error("Application local byte slices count must be a positive number and smaller than 2^53-1");if(void 0!==r.appGlobalInts&&(!Number.isSafeInteger(r.appGlobalInts)||r.appGlobalInts<0))throw Error("Application global ints count must be a positive number and smaller than 2^53-1");if(void 0!==r.appGlobalByteSlices&&(!Number.isSafeInteger(r.appGlobalByteSlices)||r.appGlobalByteSlices<0))throw Error("Application global byte slices count must be a positive number and smaller than 2^53-1");if(void 0!==r.appApprovalProgram&&r.appApprovalProgram.constructor!==Uint8Array)throw Error("appApprovalProgram must be a Uint8Array.");if(void 0!==r.appClearProgram&&r.appClearProgram.constructor!==Uint8Array)throw Error("appClearProgram must be a Uint8Array.");if(void 0!==r.appArgs){if(!Array.isArray(r.appArgs))throw Error("appArgs must be an Array of Uint8Array.");r.appArgs=r.appArgs.slice(),r.appArgs.forEach((e=>{if(e.constructor!==Uint8Array)throw Error("each element of AppArgs must be a Uint8Array.")}))}else r.appArgs=[];if(void 0!==r.appAccounts){if(!Array.isArray(r.appAccounts))throw Error("appAccounts must be an Array of addresses.");r.appAccounts=r.appAccounts.map((e=>V(e)))}if(void 0!==r.appForeignApps){if(!Array.isArray(r.appForeignApps))throw Error("appForeignApps must be an Array of integers.");r.appForeignApps=r.appForeignApps.slice(),r.appForeignApps.forEach((e=>{if(!Number.isSafeInteger(e)||e<0)throw Error("each foreign application index must be a positive number and smaller than 2^53-1")}))}if(void 0!==r.appForeignAssets){if(!Array.isArray(r.appForeignAssets))throw Error("appForeignAssets must be an Array of integers.");r.appForeignAssets=r.appForeignAssets.slice(),r.appForeignAssets.forEach((e=>{if(!Number.isSafeInteger(e)||e<0)throw Error("each foreign asset index must be a positive number and smaller than 2^53-1")}))}if(void 0!==r.boxes){if(!Array.isArray(r.boxes))throw Error("boxes must be an Array of BoxReference.");r.boxes=r.boxes.slice(),r.boxes.forEach((e=>{if(!Number.isSafeInteger(e.appIndex)||e.name.constructor!==Uint8Array)throw Error("box app index must be a number and name must be an Uint8Array.")}))}if(void 0!==r.assetMetadataHash&&0!==r.assetMetadataHash.length){if("string"===typeof r.assetMetadataHash&&(r.assetMetadataHash=new Uint8Array(s.lW.from(r.assetMetadataHash))),r.assetMetadataHash.constructor!==Uint8Array||32!==r.assetMetadataHash.byteLength)throw Error("assetMetadataHash must be a ".concat(32," byte Uint8Array or string."));r.assetMetadataHash.every((e=>0===e))&&(r.assetMetadataHash=void 0)}else r.assetMetadataHash=void 0;if(void 0!==r.note){if(r.note.constructor!==Uint8Array)throw Error("note must be a Uint8Array.")}else r.note=new Uint8Array(0);if(void 0!==r.lease){if(r.lease.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(32!==r.lease.length)throw Error("lease must be of length ".concat(32..toString(),"."));r.lease.every((e=>0===e))&&(r.lease=new Uint8Array(0))}else r.lease=new Uint8Array(0);if(r.voteKey=oe(r.voteKey,"voteKey",32),r.selectionKey=oe(r.selectionKey,"selectionKey",32),r.stateProofKey=oe(r.stateProofKey,"stateProofKey",64),r.nonParticipation&&(r.voteKey||r.selectionKey||r.voteFirst||r.stateProofKey||r.voteLast||r.voteKeyDilution))throw new Error("nonParticipation is true but participation params are present.");if(!r.nonParticipation&&(r.voteKey||r.selectionKey||r.stateProofKey||r.voteFirst||r.voteLast||r.voteKeyDilution)&&!(r.voteKey&&r.selectionKey&&r.voteFirst&&r.voteLast&&r.voteKeyDilution))throw new Error("online key registration missing at least one of the following fields: voteKey, selectionKey, voteFirst, voteLast, voteKeyDilution");if(delete r.suggestedParams,Object.assign(this,function(e){const t={...e};return Object.keys(t).forEach((e=>{"undefined"===typeof t[e]&&delete t[e]})),t}(r)),r.flatFee||(this.fee*=this.estimateSize(),this.fee<ie&&(this.fee=ie)),this.group=void 0,void 0!==r.stateProofType&&(!Number.isSafeInteger(r.stateProofType)||r.stateProofType<0))throw Error("State Proof type must be a positive number and smaller than 2^53-1");if(void 0!==r.stateProofMessage){if(r.stateProofMessage.constructor!==Uint8Array)throw Error("stateProofMessage must be a Uint8Array.")}else r.stateProofMessage=new Uint8Array(0);if(void 0!==r.stateProof){if(r.stateProof.constructor!==Uint8Array)throw Error("stateProof must be a Uint8Array.")}else r.stateProof=new Uint8Array(0)}get_obj_for_encoding(){if("pay"===this.type){const e={amt:this.amount,fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:s.lW.from(this.note),snd:s.lW.from(this.from.publicKey),type:"pay",gen:this.genesisID,gh:this.genesisHash,lx:s.lW.from(this.lease),grp:this.group};return void 0!==this.closeRemainderTo&&"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ"!==K(this.closeRemainderTo.publicKey)&&(e.close=s.lW.from(this.closeRemainderTo.publicKey)),void 0!==this.reKeyTo&&(e.rekey=s.lW.from(this.reKeyTo.publicKey)),void 0!==this.to&&(e.rcv=s.lW.from(this.to.publicKey)),e.note.length||delete e.note,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,void 0===e.grp&&delete e.grp,e.lx.length||delete e.lx,e.rekey||delete e.rekey,e}if("keyreg"===this.type){const e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:s.lW.from(this.note),snd:s.lW.from(this.from.publicKey),type:this.t
2ype,gen:this.genesisID,gh:this.genesisHash,lx:s.lW.from(this.lease),grp:this.group,votekey:this.voteKey,selkey:this.selectionKey,sprfkey:this.stateProofKey,votefst:this.voteFirst,votelst:this.voteLast,votekd:this.voteKeyDilution};return e.note.length||delete e.note,e.lx.length||delete e.lx,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,void 0===e.grp&&delete e.grp,void 0!==this.reKeyTo&&(e.rekey=s.lW.from(this.reKeyTo.publicKey)),this.nonParticipation&&(e.nonpart=!0),e.selkey||delete e.selkey,e.votekey||delete e.votekey,e.sprfkey||delete e.sprfkey,e.votefst||delete e.votefst,e.votelst||delete e.votelst,e.votekd||delete e.votekd,e}if("acfg"===this.type){const e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:s.lW.from(this.note),snd:s.lW.from(this.from.publicKey),type:this.type,gen:this.genesisID,gh:this.genesisHash,lx:s.lW.from(this.lease),grp:this.group,caid:this.assetIndex,apar:{t:this.assetTotal,df:this.assetDefaultFrozen,dc:this.assetDecimals}};return void 0!==this.assetManager&&(e.apar.m=s.lW.from(this.assetManager.publicKey)),void 0!==this.assetReserve&&(e.apar.r=s.lW.from(this.assetReserve.publicKey)),void 0!==this.assetFreeze&&(e.apar.f=s.lW.from(this.assetFreeze.publicKey)),void 0!==this.assetClawback&&(e.apar.c=s.lW.from(this.assetClawback.publicKey)),void 0!==this.assetName&&(e.apar.an=this.assetName),void 0!==this.assetUnitName&&(e.apar.un=this.assetUnitName),void 0!==this.assetURL&&(e.apar.au=this.assetURL),void 0!==this.assetMetadataHash&&(e.apar.am=s.lW.from(this.assetMetadataHash)),e.note.length||delete e.note,e.lx.length||delete e.lx,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,void 0!==this.reKeyTo&&(e.rekey=s.lW.from(this.reKeyTo.publicKey)),e.caid||delete e.caid,e.apar.t||e.apar.un||e.apar.an||e.apar.df||e.apar.m||e.apar.r||e.apar.f||e.apar.c||e.apar.au||e.apar.am||e.apar.dc?(e.apar.t||delete e.apar.t,e.apar.dc||delete e.apar.dc,e.apar.un||delete e.apar.un,e.apar.an||delete e.apar.an,e.apar.df||delete e.apar.df,e.apar.m||delete e.apar.m,e.apar.r||delete e.apar.r,e.apar.f||delete e.apar.f,e.apar.c||delete e.apar.c,e.apar.au||delete e.apar.au,e.apar.am||delete e.apar.am):delete e.apar,void 0===e.grp&&delete e.grp,e}if("axfer"===this.type){const e={aamt:this.amount,fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:s.lW.from(this.note),snd:s.lW.from(this.from.publicKey),arcv:s.lW.from(this.to.publicKey),type:this.t
2ype,gen:this.genesisID,gh:this.genesisHash,lx:s.lW.from(this.lease),grp:this.group,xaid:this.assetIndex};return void 0!==this.closeRemainderTo&&(e.aclose=s.lW.from(this.closeRemainderTo.publicKey)),void 0!==this.assetRevocationTarget&&(e.asnd=s.lW.from(this.assetRevocationTarget.publicKey)),e.note.length||delete e.note,e.lx.length||delete e.lx,e.aamt||delete e.aamt,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,void 0===e.grp&&delete e.grp,e.aclose||delete e.aclose,e.asnd||delete e.asnd,e.rekey||delete e.rekey,void 0!==this.reKeyTo&&(e.rekey=s.lW.from(this.reKeyTo.publicKey)),e}if("afrz"===this.type){const e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:s.lW.from(this.note),snd:s.lW.from(this.from.publicKey),type:this.type,gen:this.genesisID,gh:this.genesisHash,lx:s.lW.from(this.lease),grp:this.group,faid:this.assetIndex,afrz:this.freezeState};return void 0!==this.freezeAccount&&(e.fadd=s.lW.from(this.freezeAccount.publicKey)),e.note.length||delete e.note,e.lx.length||delete e.lx,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,e.afrz||delete e.afrz,void 0===e.grp&&delete e.grp,void 0!==this.reKeyTo&&(e.rekey=s.lW.from(this.reKeyTo.publicKey)),e}if("appl"===this.type){const e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:s.lW.from(this.note),snd:s.lW.from(this.from.publicKey),type:this.t
2ype,gen:this.genesisID,gh:this.genesisHash,lx:s.lW.from(this.lease),grp:this.group,apid:this.appIndex,apan:this.appOnComplete,apls:{nui:this.appLocalInts,nbs:this.appLocalByteSlices},apgs:{nui:this.appGlobalInts,nbs:this.appGlobalByteSlices},apfa:this.appForeignApps,apas:this.appForeignAssets,apep:this.extraPages,apbx:te(this.boxes,this.appForeignApps,this.appIndex)};void 0!==this.reKeyTo&&(e.rekey=s.lW.from(this.reKeyTo.publicKey)),void 0!==this.appApprovalProgram&&(e.apap=s.lW.from(this.appApprovalProgram)),void 0!==this.appClearProgram&&(e.apsu=s.lW.from(this.appClearProgram)),void 0!==this.appArgs&&(e.apaa=this.appArgs.map((e=>s.lW.from(e)))),void 0!==this.appAccounts&&(e.apat=this.appAccounts.map((e=>s.lW.from(e.publicKey)))),e.note.length||delete e.note,e.lx.length||delete e.lx,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,e.apid||delete e.apid,e.apls.nui||delete e.apls.nui,e.apls.nbs||delete e.apls.nbs,e.apls.nui||e.apls.nbs||delete e.apls,e.apgs.nui||delete e.apgs.nui,e.apgs.nbs||delete e.apgs.nbs,e.apaa&&e.apaa.length||delete e.apaa,e.apgs.nui||e.apgs.nbs||delete e.apgs,e.apap||delete e.apap,e.apsu||delete e.apsu,e.apan||delete e.apan,e.apfa&&e.apfa.length||delete e.apfa,e.apas&&e.apas.length||delete e.apas;for(const t of e.apbx)t.i||delete t.i,t.n&&t.n.length||delete t.n;return e.apbx&&e.apbx.length||delete e.apbx,e.apat&&e.apat.length||delete e.apat,e.apep||delete e.apep,void 0===e.grp&&delete e.grp,e}if("stpf"===this.type){const e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:s.lW.from(this.note),snd:s.lW.from(this.from.publicKey),type:this.t
2ype,gen:this.genesisID,gh:this.genesisHash,lx:s.lW.from(this.lease),sptype:this.stateProofType,spmsg:s.lW.from(this.stateProofMessage),sp:s.lW.from(this.stateProof)};return e.sptype||delete e.sptype,e.note.length||delete e.note,e.lx.length||delete e.lx,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,e.apid||delete e.apid,e.apaa&&e.apaa.length||delete e.apaa,e.apap||delete e.apap,e.apsu||delete e.apsu,e.apan||delete e.apan,e.apfa&&e.apfa.length||delete e.apfa,e.apas&&e.apas.length||delete e.apas,e.apat&&e.apat.length||delete e.apat,e.apep||delete e.apep,void 0===e.grp&&delete e.grp,e}}static from_obj_for_encoding(e){const t=Object.create(this.prototype);if(t.name="Transaction",t.tag=s.lW.from("TX"),t.genesisID=e.gen,t.genesisHash=s.lW.from(e.gh),(n=e.type)!==ne.pay&&n!==ne.keyreg&&n!==ne.acfg&&n!==ne.axfer&&n!==ne.afrz&&n!==ne.appl&&n!==ne.stpf)throw new Error("Unrecognized transaction type: ".concat(e.type));var n;return t.type=e.type,t.fee=e.fee,t.firstRound=e.fv,t.lastRound=e.lv,t.note=new Uint8Array(e.note),t.lease=new Uint8Array(e.lx),t.from=V(K(new Uint8Array(e.snd))),void 0!==e.grp&&(t.group=s.lW.from(e.grp)),void 0!==e.rekey&&(t.reKeyTo=V(K(new Uint8Array(e.rekey)))),"pay"===e.type?(t.amount=e.amt,t.to=V(K(new Uint8Array(e.rcv))),void 0!==e.close&&(t.closeRemainderTo=V(K(e.close)))):"keyreg"===e.type?(void 0!==e.votekey&&(t.voteKey=s.lW.from(e.votekey)),void 0!==e.selkey&&(t.selectionKey=s.lW.from(e.selkey)),void 0!==e.sprfkey&&(t.stateProofKey=s.lW.from(e.sprfkey)),void 0!==e.votekd&&(t.voteKeyDilution=e.votekd),void 0!==e.votefst&&(t.voteFirst=e.votefst),void 0!==e.votelst&&(t.voteLast=e.votelst),void 0!==e.nonpart&&(t.nonParticipation=e.nonpart)):"acfg"===e.type?(void 0!==e.caid&&(t.assetIndex=e.caid),void 0!==e.apar&&(t.assetTotal=e.apar.t,t.assetDefaultFrozen=e.apar.df,void 0!==e.apar.dc&&(t.assetDecimals=e.apar.dc),void 0!==e.apar.m&&(t.assetManager=V(K(new Uint8Array(e.apar.m)))),void 0!==e.apar.r&&(t.assetReserve=V(K(new Uint8Array(e.apar.r)))),void 0!==e.apar.f&&(t.assetFreeze=V(K(new Uint8Array(e.apar.f)))),void 0!==e.apar.c&&(t.assetClawback=V(K(new Uint8Array(e.apar.c)))),void 0!==e.apar.un&&(t.assetUnitName=e.apar.un),void 0!==e.apar.an&&(t.assetName=e.apar.an),void 0!==e.apar.au&&(t.assetURL=e.apar.au),void 0!==e.apar.am&&(t.assetMetadataHash=e.apar.am))):"axfer"===e.type?(void 0!==e.xaid&&(t.assetIndex=e.xaid),void 0!==e.aamt&&(t.amount=e.aamt),void 0!==e.aclose&&(t.closeRemainderTo=V(K(new Uint8Array(e.aclose)))),void 0!==e.asnd&&(t.assetRevocationTarget=V(K(new Uint8Array(e.asnd)))),t.to=V(K(new Uint8Array(e.arcv)))):"afrz"===e.type?(void 0!==e.afrz&&(t.freezeState=e.afrz),void 0!==e.faid&&(t.assetIndex=e.faid),t.freezeAccount=V(K(new Uint8Array(e.fadd)))):"appl"===e.type?(void 0!==e.apid&&(t.appIndex=e.apid),void 0!==e.apan&&(t.appOnComplete=e.apan),void 0!==e.apls&&(void 0!==e.apls.nui&&(t.appLocalInts=e.apls.nui),void 0!==e.apls.nbs&&(t.appLocalByteSlices=e.apls.nbs)),void 0!==e.apgs&&(void 0!==e.apgs.nui&&(t.appGlobalInts=e.apgs.nui),void 0!==e.apgs.nbs&&(t.appGlobalByteSlices=e.apgs.nbs)),void 0!==e.apep&&(t.extraPages=e.apep),void 0!==e.apap&&(t.appApprovalProgram=new Uint8Array(e.apap)),void 0!==e.apsu&&(t.appClearProgram=new Uint8Array(e.apsu)),void 0!==e.apaa&&(t.appArgs=e.apaa.map((e=>new Uint8Array(e)))),void 0!==e.apat&&(t.appAccounts=e.apat.map((e=>V(K(new Uint8Array(e)))))),void 0!==e.apfa&&(t.appForeignApps=e.apfa),void 0!==e.apas&&(t.appForeignAssets=e.apas),void 0!==e.apbx&&(t.boxes=e.apbx.map((e=>({appIndex:e.i?t.appForeignApps[e.i-1]:0,name:e.n}))))):"stpf"===e.type&&(void 0!==e.sptype&&(t.stateProofType=e.sptype),void 0!==e.sp&&(t.stateProof=e.sp),void 0!==e.spmsg&&(t.stateProofMessage=e.spmsg)),t}estimateSize(){return this.toByte().length+75}bytesToSign(){const e=this.toByte();return s.lW.from(y(this.tag,e))}toByte(){return $(this.get_obj_for_encoding())}rawSignTxn(e){const t=A(this.bytesToSign(),e);return s.lW.from(t)}signTxn(e){const t={sig:this.rawSignTxn(e),txn:this.get_obj_for_encoding()},n=x(e).publicKey;return K(n)!==K(this.from.publicKey)&&(t.sgnr=s.lW.from(n)),new Uint8Array($(t))}attachSignature(e,t){if(!_(t.length))throw new Error("Invalid signature length");const n={sig:s.lW.from(t),txn:this.get_obj_for_encoding()};if(e!==K(this.from.publicKey)){const t=V(e).publicKey;n.sgnr=s.lW.from(t)}return new Uint8Array($(n))}rawTxID(){const e=this.toByte(),t=s.lW.from(y(this.tag,e));return s.lW.from(v(t))}txID(){const e=this.rawTxID();return P().encode(e).slice(0,52)}addLease(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(void 0!==e){if(e.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(32!==e.length)throw Error("lease must be of length ".concat(32..toString(),"."));
2t=new Uint8Array(e)}else t=new Uint8Array(0);this.lease=t,0!==n&&(this.fee+=37*n)}addRekey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;void 0!==e&&(this.reKeyTo=V(e)),0!==t&&(this.fee+=37*t)}_getDictForDisplay(){const e={...this};return e.tag=e.tag.toString(),e.from=K(e.from.publicKey),void 0!==e.to&&(e.to=K(e.to.publicKey)),void 0!==e.freezeAccount&&(e.freezeAccount=K(e.freezeAccount.publicKey)),void 0!==e.closeRemainderTo&&(e.closeRemainderTo=K(e.closeRemainderTo.publicKey)),void 0!==e.assetManager&&(e.assetManager=K(e.assetManager.publicKey)),void 0!==e.assetReserve&&(e.assetReserve=K(e.assetReserve.publicKey)),void 0!==e.assetFreeze&&(e.assetFreeze=K(e.assetFreeze.publicKey)),void 0!==e.assetClawback&&(e.assetClawback=K(e.assetClawback.publicKey)),void 0!==e.assetRevocationTarget&&(e.assetRevocationTarget=K(e.assetRevocationTarget.publicKey)),void 0!==e.reKeyTo&&(e.reKeyTo=K(e.reKeyTo.publicKey)),e.genesisHash=e.genesisHash.toString("base64"),e}prettyPrint(){console.log(this._getDictForDisplay())}toString(){return JSON.stringify(this._getDictForDisplay())}}function se(e){return $({txn:e.get_obj_for_encoding()})}function le(e){return $(e.get_obj_for_encoding())}function ce(e){const t=ee(e);return ae.from_obj_for_encoding(t)}function ue(e){const t=ee(e);return{...t,txn:ae.from_obj_for_encoding(t.txn)}}function he(e){return e instanceof ae?e:new ae(e)}class de{constructor(e){let{bidderKey:t,bidAmount:n,bidID:r,auctionKey:i,auctionID:o,maxPrice:a}=e;this.name="Bid",this.tag=s.lW.from([97,66]);const l=V(t),c=V(i);if(!Number.isSafeInteger(n)||n<0)throw Error("Bid amount must be positive and 2^53-1");if(!Number.isSafeInteger(r)||r<0)throw Error("BidID must be positive and 2^53-1");if(!Number.isSafeInteger(o)||o<0)throw Error("auctionID must be positive");Object.assign(this,{bidderKey:l,bidAmount:n,bidID:r,auctionKey:c,auctionID:o,maxPrice:a})}get_obj_for_encoding(){return{bidder:s.lW.from(this.bidderKey.publicKey),cur:this.bidAmount,price:this.maxPrice,id:this.bidID,auc:s.lW.from(this.auctionKey.publicKey),aid:this.auctionID}}signBid(e){const t=$(this.get_obj_for_encoding()),n=A(s.lW.from(y(this.tag,t)),e),r={sig:s.lW.from(n),bid:this.get_obj_for_encoding()};return new Uint8Array($({t:"b",b:r}))}}const pe=1e6,fe="Microalgos should be positive and less than 2^53 - 1.";function me(e){if(e<0||!Number.isSafeInteger(e))throw new Error(fe);return e/pe}function ge(e){const t=e*pe;return Math.round(t)}class ye extends Error{constructor(e,t){super(e),this.response=t,this.name="URLTokenBaseHTTPError",this.response=t}}class ve{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.defaultHeaders=r;const i=t.endsWith("/")?t:"".concat(t,"/"),o=new URL(i);if("undefined"!==typeof n&&(o.port=n.toString()),0===o.protocol.length)throw new Error("Invalid base server URL, protocol must be defined.");this.baseURL=o,this.tokenHeader=e}getURL(e,t){let n;n=e.startsWith("./")?e:e.startsWith("/")?".".concat(e):"./".concat(e);const r=new URL(n,this.baseURL);if(t)for(const[i,o]of Object.entries(t))r.searchParams.set(i,o);return r.toString()}static formatFetchResponseHeaders(e){const t={};return e.forEach(((e,n)=>{t[e]=n})),t}static async checkHttpError(e){if(e.ok)return;let t=null,n=null;try{t=new Uint8Array(await e.arrayBuffer());const r=JSON.parse(s.lW.from(t).toString());r.message&&(n=r.message)}catch(i){}let r="Network request error. Received status ".concat(e.status," (").concat(e.statusText,")");throw n&&(r+=": ".concat(n)),new ye(r,{body:t,status:e.status,headers:ve.formatFetchResponseHeaders(e.headers)})}static async formatFetchResponse(e){return await this.checkHttpError(e),{body:new Uint8Array(await e.arrayBuffer()),status:e.status,headers:ve.formatFetchResponseHeaders(e.headers)}}async get(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={...this.tokenHeader,...this.defaultHeaders,...n},i=await fetch(this.getURL(e,t),{headers:r});return ve.formatFetchResponse(i)}async post(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={...this.tokenHeader,...this.defaultHeaders,...r},o=await fetch(this.getURL(e,n),{method:"POST",body:t,headers:i});return ve.formatFetchResponse(o)}async delete(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={...this.tokenHeader,...this.defaultHeaders,...r},o=await fetch(this.getURL(e,n),{method:"DELETE",body:t,headers:i});return ve.formatFetchResponse(o)}}function we(e){return Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{})}class be{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.bc=void 0!==t?new ve(e,t,n,r):e}static parseJSON(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return 0===Object.keys(n).length?e&&JSON.parse(e):e&&function(e,t){const n=t&&t.intDecoding?t.intDecoding:f.DEFAULT;return m.parse(e,((e,t)=>
2{if(null!=t&&"object"===typeof t&&null==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,Object.prototype),"bigint"===typeof t){if("safe"===n&&t>Number.MAX_SAFE_INTEGER)throw new Error("Integer exceeds maximum safe integer: ".concat(t.toString(),". Try parsing with a different intDecoding option."));return"bigint"===n||"mixed"===n&&t>Number.MAX_SAFE_INTEGER?t:Number(t)}return"number"===typeof t&&"bigint"===n&&Number.isInteger(t)?BigInt(t):t}))}(e,n)}catch(r){const n=r;throw n.rawResponse=e||null,n.statusCode=t,n}}static serializeData(e,t){if(!e)return new Uint8Array(0);if("application/json"===t["content-type"])return new Uint8Array(s.lW.from(JSON.stringify(e)));if("string"===typeof e)return new Uint8Array(s.lW.from(e));if(e instanceof Uint8Array)return e;throw new Error("provided data is neither a string nor a Uint8Array and content-type is not application/json")}static prepareResponse(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{body:o}=e;return"application/msgpack"!==t&&(r=o&&s.lW.from(o).toString()||""),n&&"application/json"===t&&(o=be.parseJSON(r,e.status,i)),{...e,body:o,text:r,ok:2===Math.trunc(e.status/100)}}static prepareResponseError(e){return e.response&&(e.response=be.prepareResponse(e.response,"application/json",!0),e.status=e.response.status),e}async get(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];const o=function(e){return void 0!==e&&Object.prototype.hasOwnProperty.call(e,"format")&&"msgpack"===e.format?"application/msgpack":"application/json"}(t),a={...n,accept:o};try{const n=await this.bc.get(e,function(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t]&&0!==e[t].length||delete e[t]);return e}(t),a);return be.prepareResponse(n,o,i,r)}catch(s){throw be.prepareResponseError(s)}}async post(e,t){let n=arguments.length>3?arguments[3]:void 0,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];const i={"content-type":"application/json",...we(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})};try{const o=await this.bc.post(e,be.serializeData(t,i),n,i);return be.prepareResponse(o,"application/json",r)}catch(o){throw be.prepareResponseError(o)}}async delete(e,t){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r={"content-type":"application/json",...we(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})},i=await this.bc.delete(e,be.serializeData(t,r),void 0,r);return be.prepareResponse(i,"application/json",n)}}class _e{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if("function"===typeof t.get)this.c=new be(t);else{let o;o="string"===typeof t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t={};return""===e||(t[arguments.length>1?arguments[1]:void 0]=e),t}(t,e):t,this.c=new be(o,n,r,i)}this.intDecoding=f.DEFAULT}setIntEncoding(e){this.intDecoding=e}getIntEncoding(){return this.intDecoding}}function xe(e,t){let n;if(e instanceof Uint8Array)n=t?e:s.lW.from(e).toString("base64");else if("function"===typeof e.get_obj_for_encoding)n=e.get_obj_for_encoding(t);else if(Array.isArray(e)){n=[];for(const r of e)n.push(xe(r,t))}else if("object"===typeof e){const r={};for(const n of Object.keys(e))r[n]=xe(e[n],t);n=r}else{if(!function(e){return void 0===e||null==e||"object"!==typeof e&&"function"!==typeof e}(e))throw new Error("Unsupported value: ".concat(String(e)));n=e}return n}class Ae{get_obj_for_encoding(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t={};for(const n of Object.keys(this.attribute_map)){const r=this.attribute_map[n],i=this[n];"undefined"!==typeof i&&(t[r]=null===i?null:xe(i,e))}return t}}class ke extends Ae{constructor(e){let{address:t,amount:n,amountWithoutPendingRewards:r,minBalance:i,pendingRewards:o,rewards:a,round:s,status:l,totalAppsOptedIn:c,totalAssetsOptedIn:u,totalCreatedApps:h,totalCreatedAssets:d,appsLocalState:p,appsTotalExtraPages:f,appsTotalSchema:m,assets:g,authAddr:y,createdApps:v,createdAssets:w,participation:b,rewardBase:_,sigType:x,totalBoxBytes:A,totalBoxes:k}=e;super(),this.address=t,this.amount=n,this.amountWithoutPendingRewards=r,this.minBalance=i,this.pendingRewards=o,this.rewards=a,this.round=s,this.status=l,this.totalAppsOptedIn=c,this.totalAssetsOptedIn=u,this.totalCreatedApps=h,this.totalCreatedAssets=d,this.appsLocalState=p,this.appsTotalExtraPages=f,this.appsTotalSchema=m,this.assets=g,this.authAddr=y,this.createdApps=v,this.createdAssets=w,this.participation=b,this.rewardBase=_,this.sigType=x,this.totalBoxBytes=A,this.totalBoxes=k,this.attribute_map={address:"address",amount:"amount",amountWithoutPendingRewards:"amount-without-pending-rewards",minBalance:"min-balance",pendingRewards:"pending-rewards",rewards:"rewards",round:"roun
2d",status:"status",totalAppsOptedIn:"total-apps-opted-in",totalAssetsOptedIn:"total-assets-opted-in",totalCreatedApps:"total-created-apps",totalCreatedAssets:"total-created-assets",appsLocalState:"apps-local-state",appsTotalExtraPages:"apps-total-extra-pages",appsTotalSchema:"apps-total-schema",assets:"assets",authAddr:"auth-addr",createdApps:"created-apps",createdAssets:"created-assets",participation:"participation",rewardBase:"reward-base",sigType:"sig-type",totalBoxBytes:"total-box-bytes",totalBoxes:"total-boxes"}}static from_obj_for_encoding(e){if("undefined"===typeof e.address)throw new Error("Response is missing required field 'address': ".concat(e));if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e["amount-without-pending-rewards"])throw new Error("Response is missing required field 'amount-without-pending-rewards': ".concat(e));if("undefined"===typeof e["min-balance"])throw new Error("Response is missing required field 'min-balance': ".concat(e));if("undefined"===typeof e["pending-rewards"])throw new Error("Response is missing required field 'pending-rewards': ".concat(e));if("undefined"===typeof e.rewards)throw new Error("Response is missing required field 'rewards': ".concat(e));if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));if("undefined"===typeof e.status)throw new Error("Response is missing required field 'status': ".concat(e));if("undefined"===typeof e["total-apps-opted-in"])throw new Error("Response is missing required field 'total-apps-opted-in': ".concat(e));if("undefined"===typeof e["total-assets-opted-in"])throw new Error("Response is missing required field 'total-assets-opted-in': ".concat(e));if("undefined"===typeof e["total-created-apps"])throw new Error("Response is missing required field 'total-created-apps': ".concat(e));if("undefined"===typeof e["total-created-assets"])throw new Error("Response is missing required field 'total-created-assets': ".concat(e));return new ke({address:e.address,amount:e.amount,amountWithoutPendingRewards:e["amount-without-pending-rewards"],minBalance:e["min-balance"],pendingRewards:e["pending-rewards"],rewards:e.rewards,round:e.round,status:e.status,totalAppsOptedIn:e["total-apps-opted-in"],totalAssetsOptedIn:e["total-assets-opted-in"],totalCreatedApps:e["total-created-apps"],totalCreatedAssets:e["total-created-assets"],appsLocalState:"undefined"!==typeof e["apps-local-state"]?e["apps-local-state"].map(Le.from_obj_for_encoding):void 0,appsTotalExtraPages:e["apps-total-extra-pages"],appsTotalSchema:"undefined"!==typeof e["apps-total-schema"]?Be.from_obj_for_encoding(e["apps-total-schema"]):void 0,assets:"undefined"!==typeof e.assets?e.assets.map(Fe.from_obj_for_encoding):void 0,authAddr:e["auth-addr"],createdApps:"undefined"!==typeof e["created-apps"]?e["created-apps"].map(Te.from_obj_for_encoding):void 0,createdAssets:"undefined"!==typeof e["created-assets"]?e["created-assets"].map(Ne.from_obj_for_encoding):void 0,participation:"undefined"!==typeof e.participation?Ce.from_obj_for_encoding(e.participation):void 0,rewardBase:e["reward-base"],sigType:e["sig-type"],totalBoxBytes:e["total-box-bytes"],totalBoxes:e["total-boxes"]})}}class Se extends Ae{constructor(e){let{round:t,appLocalState:n,createdApp:r}=e;super(),this.round=t,this.appLocalState=n,this.createdApp=r,this.attribute_map={round:"round",appLocalState:"app-local-state",createdApp:"created-app"}}static from_obj_for_encoding(e){if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));return new Se({round:e.round,appLocalState:"undefined"!==typeof e["app-local-state"]?Le.from_obj_for_encoding(e["app-local-state"]):void 0,createdApp:"undefined"!==typeof e["created-app"]?Oe.from_obj_for_encoding(e["created-app"]):void 0})}}class Ee extends Ae{constructor(e){let{round:t,assetHolding:n,createdAsset:r}=e;super(),this.round=t,this.assetHolding=n,this.createdAsset=r,this.attribute_map={round:"round",assetHolding:"asset-holding",createdAsset:"created-asset"}}static from_obj_for_encoding(e){if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));return new Ee({round:e.round,assetHolding:"undefined"!==typeof e["asset-holding"]?Fe.from_obj_for_encoding(e["asset-holding"]):void 0,createdAsset:"undefined"!==typeof e["created-asset"]?Ue.from_obj_for_encoding(e["created-asset"]):void 0})}}class Ce extends Ae{constructor(e){let{selectionParticipationKey:t,voteFirstValid:n,voteKeyDilution:r,voteLastValid:i,voteParticipationKey:o,stateProofKey:a}=e;super(),this.selectionParticipationKey="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.voteFirstValid=n,this.voteKeyDilution=r,this.voteLastValid=i,this.voteParticipationKey="string"===typeof o?new Uint8Array(s.lW.from(o,"base64")):o,this.stateProofKey="string"===typeof a?new Uint8Array(s.lW.from(a,"base64")):a,this.attribute_map={selectionParticipationKey:"selection-
2participation-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key",stateProofKey:"state-proof-key"}}static from_obj_for_encoding(e){if("undefined"===typeof e["selection-participation-key"])throw new Error("Response is missing required field 'selection-participation-key': ".concat(e));if("undefined"===typeof e["vote-first-valid"])throw new Error("Response is missing required field 'vote-first-valid': ".concat(e));if("undefined"===typeof e["vote-key-dilution"])throw new Error("Response is missing required field 'vote-key-dilution': ".concat(e));if("undefined"===typeof e["vote-last-valid"])throw new Error("Response is missing required field 'vote-last-valid': ".concat(e));if("undefined"===typeof e["vote-participation-key"])throw new Error("Response is missing required field 'vote-participation-key': ".concat(e));return new Ce({selectionParticipationKey:e["selection-participation-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"],stateProofKey:e["state-proof-key"]})}}class Me extends Ae{constructor(e){let{address:t,delta:n}=e;super(),this.address=t,this.delta=n,this.attribute_map={address:"address",delta:"delta"}}static from_obj_for_encoding(e){if("undefined"===typeof e.address)throw new Error("Response is missing required field 'address': ".concat(e));if(!Array.isArray(e.delta))throw new Error("Response is missing required array field 'delta': ".concat(e));return new Me({address:e.address,delta:e.delta.map(at.from_obj_for_encoding)})}}class Te extends Ae{constructor(e){let{id:t,params:n}=e;super(),this.id=t,this.params=n,this.attribute_map={id:"id",params:"params"}}static from_obj_for_encoding(e){if("undefined"===typeof e.id)throw new Error("Response is missing required field 'id': ".concat(e));if("undefined"===typeof e.params)throw new Error("Response is missing required field 'params': ".concat(e));return new Te({id:e.id,params:Oe.from_obj_for_encoding(e.params)})}}class Pe extends Ae{constructor(e){let{id:t,appBoxes:n,appGlobals:r,appLocals:i}=e;super(),this.id=t,this.appBoxes=n,this.appGlobals=r,this.appLocals=i,this.attribute_map={id:"id",appBoxes:"app-boxes",appGlobals:"app-globals",appLocals:"app-locals"}}static from_obj_for_encoding(e){if("undefined"===typeof e.id)throw new Error("Response is missing required field 'id': ".concat(e));return new Pe({id:e.id,appBoxes:"undefined"!==typeof e["app-boxes"]?Re.from_obj_for_encoding(e["app-boxes"]):void 0,appGlobals:"undefined"!==typeof e["app-globals"]?Re.from_obj_for_encoding(e["app-globals"]):void 0,appLocals:"undefined"!==typeof e["app-locals"]?e["app-locals"].map(Re.from_obj_for_encoding):void 0})}}class Re extends Ae{constructor(e){let{kvs:t,account:n}=e;super(),this.kvs=t,this.account=n,this.attribute_map={kvs:"kvs",account:"account"}}static from_obj_for_encoding(e){if(!Array.isArray(e.kvs))throw new Error("Response is missing required array field 'kvs': ".concat(e));return new Re({kvs:e.kvs.map(ze.from_obj_for_encoding),account:e.account})}}class Ie extends Ae{constructor(e){let{account:t,app:n}=e;super(),this.account=t,this.app=n,this.attribute_map={account:"account",app:"app"}}static from_obj_for_encoding(e){if("undefined"===typeof e.account)throw new Error("Response is missing required field 'account': ".concat(e));if("undefined"===typeof e.app)throw new Error("Response is missing required field 'app': ".concat(e));return new Ie({account:e.account,app:e.app})}}class Le extends Ae{constructor(e){let{id:t,schema:n,keyValue:r}=e;super(),this.id=t,this.schema=n,this.keyValue=r,this.attribute_map={id:"id",schema:"schema",keyValue:"key-value"}}static from_obj_for_encoding(e){if("undefined"===typeof e.id)throw new Error("Response is missing required field 'id': ".concat(e));if("undefined"===typeof e.schema)throw new Error("Response is missing required field 'schema': ".concat(e));return new Le({id:e.id,schema:Be.from_obj_for_encoding(e.schema),keyValue:"undefined"!==typeof e["key-value"]?e["key-value"].map(Rt.from_obj_for_encoding):void 0})}}class Oe extends Ae{constructor(e){let{approvalProgram:t,clearStateProgram:n,creator:r,extraProgramPages:i,globalState:o,globalStateSchema:a,localStateSchema:l}=e;super(),this.approvalProgram="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.clearStateProgram="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.creator=r,this.extraProgramPages=i,this.globalState=o,this.globalStateSchema=a,this.localStateSchema=l,this.attribute_map={approvalProgram:"approval-program",clearStateProgram:"clear-state-program",creator:"creator",extraProgramPages:"extra-program-pages",globalState:"global-state",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema"}}static from_obj_for_encoding(e){if("undefined"===typeof e["approval-program"])throw new Error("Response is missing required field 'approval-program': ".concat(e));if("undefined"===typeof e["clear-state-program"])throw new Error("Response is missing required field 'clear-state-program': ".concat(e));if("undefined"===typeof e.creator)throw new Error("Response is missing required field 'creator': ".concat(e));return new Oe({approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],creator:e.creator,extraProgramPages:e["extra-program-pages"],globalState:"undefined"!==typeof e["global-state"]?e["global-state"].map(Rt.from_obj_for_encoding):void 0,globalStateSchema:"undefined"!==typeof e["global-state-schema"]?Be.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:"undefined"!==typeof e["local-state-schema"]?Be.from_obj_for_encoding(e["local-state-schema"]):void 0})}}class De extends Ae{constructor(e){let{appStateType:t,key:n,operation:r,account:i,newValue:o}=e;super(),this.appStateType=t,this.key="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.operation=r,this.account=i,this.newValue=o,this.attribute_map={appStateType:"app-state-type",key:"key",operation:"operation",account:"account",newValue:"new-value"}}static from_obj_for_encoding(e){if("undefined"===typeof e["app-state-type"])throw new Error("Response is missing required field 'app-state-type': ".concat(e));if("undefined"===typeof e.key)throw new Error("Response is missing required field 'key': ".concat(e));
2if("undefined"===typeof e.operation)throw new Error("Response is missing required field 'operation': ".concat(e));return new De({appStateType:e["app-state-type"],key:e.key,operation:e.operation,account:e.account,newValue:"undefined"!==typeof e["new-value"]?qe.from_obj_for_encoding(e["new-value"]):void 0})}}class Be extends Ae{constructor(e){let{numUint:t,numByteSlice:n}=e;super(),this.numUint=t,this.numByteSlice=n,this.attribute_map={numUint:"num-uint",numByteSlice:"num-byte-slice"}}static from_obj_for_encoding(e){if("undefined"===typeof e["num-uint"])throw new Error("Response is missing required field 'num-uint': ".concat(e));if("undefined"===typeof e["num-byte-slice"])throw new Error("Response is missing required field 'num-byte-slice': ".concat(e));return new Be({numUint:e["num-uint"],numByteSlice:e["num-byte-slice"]})}}class Ne extends Ae{constructor(e){let{index:t,params:n}=e;super(),this.index=t,this.params=n,this.attribute_map={index:"index",params:"params"}}static from_obj_for_encoding(e){if("undefined"===typeof e.index)throw new Error("Response is missing required field 'index': ".concat(e));if("undefined"===typeof e.params)throw new Error("Response is missing required field 'params': ".concat(e));return new Ne({index:e.index,params:Ue.from_obj_for_encoding(e.params)})}}class Fe extends Ae{constructor(e){let{amount:t,assetId:n,isFrozen:r}=e;super(),this.amount=t,this.assetId=n,this.isFrozen=r,this.attribute_map={amount:"amount",assetId:"asset-id",isFrozen:"is-frozen"}}static from_obj_for_encoding(e){if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if("undefined"===typeof e["is-frozen"])throw new Error("Response is missing required field 'is-frozen': ".concat(e));return new Fe({amount:e.amount,assetId:e["asset-id"],isFrozen:e["is-frozen"]})}}class je extends Ae{constructor(e){let{account:t,asset:n}=e;super(),this.account=t,this.asset=n,this.attribute_map={account:"account",asset:"asset"}}static from_obj_for_encoding(e){if("undefined"===typeof e.account)throw new Error("Response is missing required field 'account': ".concat(e));if("undefined"===typeof e.asset)throw new Error("Response is missing required field 'asset': ".concat(e));return new je({account:e.account,asset:e.asset})}}class Ue extends Ae{constructor(e){let{creator:t,decimals:n,total:r,clawback:i,defaultFrozen:o,freeze:a,manager:l,metadataHash:c,name:u,nameB64:h,reserve:d,unitName:p,unitNameB64:f,url:m,urlB64:g}=e;super(),this.creator=t,this.decimals=n,this.total=r,this.clawback=i,this.defaultFrozen=o,this.freeze=a,this.manager=l,this.metadataHash="string"===typeof c?new Uint8Array(s.lW.from(c,"base64")):c,this.name=u,this.nameB64="string"===typeof h?new Uint8Array(s.lW.from(h,"base64")):h,this.reserve=d,this.unitName=p,this.unitNameB64="string"===typeof f?new Uint8Array(s.lW.from(f,"base64")):f,this.url=m,this.urlB64="string"===typeof g?new Uint8Array(s.lW.from(g,"base64")):g,this.attribute_map={creator:"creator",decimals:"decimals",total:"total",clawback:"clawback",defaultFrozen:"default-frozen",freeze:"freeze",manager:"manager",metadataHash:"metadata-hash",name:"name",nameB64:"name-b64",reserve:"reserve",unitName:"unit-name",unitNameB64:"unit-name-b64",url:"url",urlB64:"url-b64"}}static from_obj_for_encoding(e){if("undefined"===typeof e.creator)throw new Error("Response is missing required field 'creator': ".concat(e));if("undefined"===typeof e.decimals)throw new Error("Response is missing required field 'decimals': ".concat(e));if("undefined"===typeof e.total)throw new Error("Response is missing required field 'total': ".concat(e));return new Ue({creator:e.creator,decimals:e.decimals,total:e.total,clawback:e.clawback,defaultFrozen:e["default-frozen"],freeze:e.freeze,manager:e.manager,metadataHash:e["metadata-hash"],name:e.name,nameB64:e["name-b64"],reserve:e.reserve,unitName:e["unit-name"],unitNameB64:e["unit-name-b64"],url:e.url,urlB64:e["url-b64"]})}}class ze extends Ae{constructor(e){let{key:t,value:n}=e;super(),this.key="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.value=n,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){if("undefined"===typeof e.key)throw new Error("Response is missing required field 'key': ".concat(e));if("undefined"===typeof e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new ze({key:e.key,value:qe.from_obj_for_encoding(e.value)})}}class qe extends Ae{constructor(e){let{type:t,bytes:n,uint:r}=e;super(),this.type=t,this.bytes="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.uint=r,this.attribute_map={type:"type",bytes:"bytes",uint:"uint"}}static from_obj_for_encoding(e){if("undefined"===typeof e.type)throw new Error("Response is missing required field 'type': ".concat(e));return new qe({type:e.type,bytes:e.bytes,uint:e.uint})}}class We extends Ae{constructor(e){let{blockhash:t}=e;super(),this.blockhash=t,this.attribute_map={blockhash:"blockHash"}}static from_obj_for_encoding(e){if("undefined"===typeof e.blockHash)throw new Error("Response is missing required field 'blockHash': ".concat(e));return new We({blockhash:e.blockHash})}}class Ve extends Ae{constructor(e){let{block:t,cert:n}=e;super(),this.block=t,this.cert=n,this.attribute_map={block:"block",cert:"cert"}}static from_obj_for_encoding(e){if("undefined"===typeof e.block)throw new Error("Response is missing required field 'block': ".concat(e));return new Ve({block:e.block,cert:e.cert})}}class He extends Ae{constructor(e){let{blocktxids:t}=e;super(),this.blocktxids=t,this.attribute_map={blocktxids:"blockTxids"}}static from_obj_for_encoding(e){if(!Array.isArray(e.blockTxids))throw new Error("Response is missing required array field 'blockTxids': ".concat(e));return new He({blocktxids:e.blockTxids})}}class Ke extends Ae{constructor(e){let{name:t,round:n,value:r}=e;super(),this.name="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.round=n,this.value="string"===typeof r?new Uint8Array(s.lW.from(r,"base64")):r,this.attribute_map={name:"name",round:"roun
2d",value:"value"}}static from_obj_for_encoding(e){if("undefined"===typeof e.name)throw new Error("Response is missing required field 'name': ".concat(e));if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));if("undefined"===typeof e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new Ke({name:e.name,round:e.round,value:e.value})}}class Ge extends Ae{constructor(e){let{name:t}=e;super(),this.name="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.attribute_map={name:"name"}}static from_obj_for_encoding(e){if("undefined"===typeof e.name)throw new Error("Response is missing required field 'name': ".concat(e));return new Ge({name:e.name})}}class Ze extends Ae{constructor(e){let{app:t,name:n}=e;super(),this.app=t,this.name="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.attribute_map={app:"app",name:"name"}}static from_obj_for_encoding(e){if("undefined"===typeof e.app)throw new Error("Response is missing required field 'app': ".concat(e));if("undefined"===typeof e.name)throw new Error("Response is missing required field 'name': ".concat(e));return new Ze({app:e.app,name:e.name})}}class Qe extends Ae{constructor(e){let{boxes:t}=e;super(),this.boxes=t,this.attribute_map={boxes:"boxes"}}static from_obj_for_encoding(e){if(!Array.isArray(e.boxes))throw new Error("Response is missing required array field 'boxes': ".concat(e));return new Qe({boxes:e.boxes.map(Ge.from_obj_for_encoding)})}}class Ye extends Ae{constructor(e){let{branch:t,buildNumber:n,channel:r,commitHash:i,major:o,minor:a}=e;super(),this.branch=t,this.buildNumber=n,this.channel=r,this.commitHash=i,this.major=o,this.minor=a,this.attribute_map={branch:"branch",buildNumber:"build_number",channel:"channel",commitHash:"commit_hash",major:"major",minor:"minor"}}static from_obj_for_encoding(e){if("undefined"===typeof e.branch)throw new Error("Response is missing required field 'branch': ".concat(e));if("undefined"===typeof e.build_number)throw new Error("Response is missing required field 'build_number': ".concat(e));if("undefined"===typeof e.channel)throw new Error("Response is missing required field 'channel': ".concat(e));if("undefined"===typeof e.commit_hash)throw new Error("Response is missing required field 'commit_hash': ".concat(e));if("undefined"===typeof e.major)throw new Error("Response is missing required field 'major': ".concat(e));if("undefined"===typeof e.minor)throw new Error("Response is missing required field 'minor': ".concat(e));return new Ye({branch:e.branch,buildNumber:e.build_number,channel:e.channel,commitHash:e.commit_hash,major:e.major,minor:e.minor})}}class Xe extends Ae{constructor(e){let{hash:t,result:n,sourcemap:r}=e;super(),this.hash=t,this.result=n,this.sourcemap=r,this.attribute_map={hash:"hash",result:"result",sourcemap:"sourcemap"}}static from_obj_for_encoding(e){if("undefined"===typeof e.hash)throw new Error("Response is missing required field 'hash': ".concat(e));if("undefined"===typeof e.result)throw new Error("Response is missing required field 'result': ".concat(e));return new Xe({hash:e.hash,result:e.result,sourcemap:e.sourcemap})}}class Je extends Ae{constructor(e){let{result:t}=e;super(),this.result=t,this.attribute_map={result:"result"}}static from_obj_for_encoding(e){if("undefined"===typeof e.result)throw new Error("Response is missing required field 'result': ".concat(e));return new Je({result:e.result})}}class $e extends Ae{constructor(e){let{accounts:t,apps:n,latestTimestamp:r,protocolVersion:i,round:o,sources:a,txns:s}=e;super(),this.accounts=t,this.apps=n,this.latestTimestamp=r,this.protocolVersion=i,this.round=o,this.sources=a,this.txns=s,this.attribute_map={accounts:"accounts",apps:"apps",latestTimestamp:"latest-timestamp",protocolVersion:"protocol-version",round:"round",sources:"sources",txns:"txns"}}static from_obj_for_encoding(e){if(!Array.isArray(e.accounts))throw new Error("Response is missing required array field 'accounts': ".concat(e));if(!Array.isArray(e.apps))throw new Error("Response is missing required array field 'apps': ".concat(e));if("undefined"===typeof e["latest-timestamp"])throw new Error("Response is missing required field 'latest-timestamp': ".concat(e));if("undefined"===typeof e["protocol-version"])throw new Error("Response is missing required field 'protocol-version': ".concat(e));if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));if(!Array.isArray(e.sources))throw new Error("Response is missing required array field 'sources': ".concat(e));if(!Array.isArray(e.txns))throw new Error("Response is missing required array field 'txns': ".concat(e));return new $e({accounts:e.accounts.map(ke.from_obj_for_encoding),apps:e.apps.map(Te.from_obj_for_encoding),latestTimestamp:e["latest-timestamp"],protocolVersion:e["protocol-version"],round:e.round,sources:e.sources.map(tt.from_obj_for_encoding),txns:e.txns})}}class et extends Ae{constructor(e){let{error:t,protocolVersion:n,txns:r}=e;super(),this.error=t,this.protocolVersion=n,this.txns=r,this.attribute_map={error:"error",protocolVersion:"protocol-version",txns:"txns"}}static from_obj_for_encoding(e){if("undefined"===typeof e.error)throw new Error("Response is missing required field 'error': ".concat(e));if("undefined"===typeof e["protocol-version"])throw new Error("Response is missing required field 'protocol-version': ".concat(e));if(!Array.isArray(e.txns))throw new Error("Response is missing required array field 'txns': ".concat(e));return new et({error:e.error,protocolVersion:e["protocol-version"],txns:e.txns.map(rt.from_obj_for_encoding)})}}class tt extends Ae{constructor(e){let{fieldName:t,source:n,txnIndex:r,appIndex:i}=e;super(),this.fieldName=t,this.source=n,this.txnIndex=r,this.appIndex=i,this.attribute_map={fieldName:"field-name",source:"source",txnIndex:"txn-index",appIndex:"app-index"}}static from_obj_for_encoding(e){if("undefined"===typeof e["field-name"])throw new Error("Response is missing required field 'field-name': ".concat(e));if("undefined"===typeof e.source)throw new Error("Response is missing required field 'source': ".concat(e));if("undefined"===typeof e["txn-index"])throw new Error("Response is missing required field 'txn-index': ".concat(e));if("undefined"===typeof e["app-index"])throw new Error("Response is missing required field 'app-index': ".concat(e));return new tt({fieldName:e["field-name"],source:e.source,txnIndex:e["txn-index"],appIndex:e["app-index"]})}}class nt extends Ae{constructor(e){let{line:t,pc:n,stack:r,error:i,scratch:o}=e;super(),this.line=t,this.pc=n,this.stack=r,this.error=i,this.scratch=o,this.attribute_map={line:"line",pc:"pc",stack:"stack",error:"error",scratch:"scratch"}}static from_obj_for_encoding(e){if("undefined"===typeof e.line)throw new Error("Response is missing required field 'line': ".concat(e));if("undefined"===typeof e.pc)throw new Error("Response is missing required field 'pc': ".concat(e));if(!Array.isArray(e.stack))throw new Error("Response is missing required array field 'stack': ".concat(e));return new nt({line:e.line,pc:e.pc,stack:e.stack.map(It.from_obj_for_encoding),error:e.error,scratch:"undefined"!==typeof e.scratch?e.scratch.map(It.from_obj_for_encoding):void 0})}}class rt extends Ae{constructor(e){let{disassembly:t,appCallMessages:n,appCallTrace:r,budgetAdded:i,budgetConsumed:o,globalDelta:a,localDeltas:s,logicSigDisassembly:l,logicSigMessages:c,logicSigTrace:u,logs:h}=e;super(),this.disassembly=t,this.appCallMessages=n,this.appCallTrace=r,this.budgetAdded=i,this.budgetConsumed=o,this.globalDelta=a,this.localDeltas=s,this.logicSigDisassembly=l,this.logicSigMessages=c,this.logicSigTrace=u,this.logs=h,this.attribute_map={disassembly:"disassembly",appCallMessages:"app-call-messages",appCallTrace:"app-call-trace",budgetAdded:"budget-added",budgetConsumed:"budget-consumed",globalDelta:"global-delta",localDeltas:"local-deltas",logicSigDisassembly:"logic-sig-disassembly",logicSigMessages:"logic-sig-messages",logicSigTrace:"logic-sig-trace",logs:"logs"}}static from_obj_for_encoding(e){if(!Array.isArray(e.disassembly))throw new Error("Response is missing required array field 'disassembly': ".concat(e));return new rt({disassembly:e.disassembly,appCallMessages:e["app-call-messages"],appCallTrace:"undefined"!==typeof e["app-call-trace"]?e["app-call-trace"].map(nt.from_obj_for_encoding):void 0,budgetAdded:e["budget-added"],budgetConsumed:e["budget-consumed"],globalDelta:"undefined"!==typeof e["global-delta"]?e["global-delta"].map(at.from_obj_for_encoding):void 0,localDeltas:"undefined"!==typeof e["local-deltas"]?e["local-deltas"].map(Me.from_obj_for_encoding):void 0,logicSigDisassembly:e["logic-sig-disassembly"],logicSigMessages:e["logic-sig-messages"],logicSigTrace:"undefined"!==typeof e["logic-sig-trace"]?e["logic-sig-trace"].map(nt.from_obj_for_encoding):void 0,logs:e.logs})}}class it extends Ae{constructor(e){let{message:t,data:n}=e;super(),this.message=t,this.data=n,this.attribute_map={message:"message",data:"data"}}static from_obj_for_encoding(e){if("undefined"===typeof e.message)throw new Error("Response is missing required field 'message': ".concat(e));return new it({message:e.message,data:e.data})}}class ot extends Ae{constructor(e){let{action:t,bytes:n,uint:r}=e;super(),this.action=t,this.bytes=n,this.uint=r,this.attribute_map={action:"action",bytes:"bytes",uint:"uint"}}static from_obj_for_encoding(e){if("undefined"===typeof e.action)throw new Error("Response is missing required field 'action': ".concat(e));return new ot({action:e.action,bytes:e.bytes,uint:e.uint})}}class at extends Ae{constructor(e){let{key:t,value:n}=e;super(),this.key=t,this.value=n,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){if("undefined"===typeof e.key)throw new Error("Response is missing required field 'key': ".concat(e));if("undefined"===typeof e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new at({key:e.key,value:ot.from_obj_for_encoding(e.value)})}}class st extends Ae{constructor(e){let{offset:t}=e;super(),this.offset=t,this.attribute_map={offset:"offset"}}static from_obj_for_encoding(e){if("undefined"===typeof e.offset)throw new Error("Response is missing required field 'offset': ".concat(e));return new st({offset:e.offset})}}
2class lt extends Ae{constructor(e){let{round:t}=e;super(),this.round=t,this.attribute_map={round:"round"}}static from_obj_for_encoding(e){if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));return new lt({round:e.round})}}class ct extends Ae{constructor(e){let{key:t,value:n}=e;super(),this.key="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.value="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){return new ct({key:e.key,value:e.value})}}class ut extends Ae{constructor(e){let{delta:t,ids:n}=e;super(),this.delta=t,this.ids=n,this.attribute_map={delta:"Delta",ids:"Ids"}}static from_obj_for_encoding(e){if("undefined"===typeof e.Delta)throw new Error("Response is missing required field 'Delta': ".concat(e));if(!Array.isArray(e.Ids))throw new Error("Response is missing required array field 'Ids': ".concat(e));return new ut({delta:e.Delta,ids:e.Ids})}}class ht extends Ae{constructor(e){let{index:t,proof:n,treedepth:r}=e;super(),this.index=t,this.proof="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.treedepth=r,this.attribute_map={index:"index",proof:"proof",treedepth:"treedepth"}}static from_obj_for_encoding(e){if("undefined"===typeof e.index)throw new Error("Response is missing required field 'index': ".concat(e));if("undefined"===typeof e.proof)throw new Error("Response is missing required field 'proof': ".concat(e));if("undefined"===typeof e.treedepth)throw new Error("Response is missing required field 'treedepth': ".concat(e));return new ht({index:e.index,proof:e.proof,treedepth:e.treedepth})}}class dt extends Ae{constructor(e){let{catchupTime:t,lastRound:n,lastVersion:r,nextVersion:i,nextVersionRound:o,nextVersionSupported:a,stoppedAtUnsupportedRound:s,timeSinceLastRound:l,catchpoint:c,catchpointAcquiredBlocks:u,catchpointProcessedAccounts:h,catchpointProcessedKvs:d,catchpointTotalAccounts:p,catchpointTotalBlocks:f,catchpointTotalKvs:m,catchpointVerifiedAccounts:g,catchpointVerifiedKvs:y,lastCatchpoint:v,upgradeDelay:w,upgradeNextProtocolVoteBefore:b,upgradeNoVotes:_,upgradeNodeVote:x,upgradeVoteRounds:A,upgradeVotes:k,upgradeVotesRequired:S,upgradeYesVotes:E}=e;super(),this.catchupTime=t,this.lastRound=n,this.lastVersion=r,this.nextVersion=i,this.nextVersionRound=o,this.nextVersionSupported=a,this.stoppedAtUnsupportedRound=s,this.timeSinceLastRound=l,this.catchpoint=c,this.catchpointAcquiredBlocks=u,this.catchpointProcessedAccounts=h,this.catchpointProcessedKvs=d,this.catchpointTotalAccounts=p,this.catchpointTotalBlocks=f,this.catchpointTotalKvs=m,this.catchpointVerifiedAccounts=g,this.catchpointVerifiedKvs=y,this.lastCatchpoint=v,this.upgradeDelay=w,this.upgradeNextProtocolVoteBefore=b,this.upgradeNoVotes=_,this.upgradeNodeVote=x,this.upgradeVoteRounds=A,this.upgradeVotes=k,this.upgradeVotesRequired=S,this.upgradeYesVotes=E,this.attribute_map={catchupTime:"catchup-time",lastRound:"last-round",lastVersion:"last-version",nextVersion:"next-version",nextVersionRound:"next-version-round",nextVersionSupported:"next-version-supported",stoppedAtUnsupportedRound:"stopped-at-unsupported-round",timeSinceLastRound:"time-since-last-round",catchpoint:"catchpoint",catchpointAcquiredBlocks:"catchpoint-acquired-blocks",catchpointProcessedAccounts:"catchpoint-processed-accounts",catchpointProcessedKvs:"catchpoint-processed-kvs",catchpointTotalAccounts:"catchpoint-total-accounts",catchpointTotalBlocks:"catchpoint-total-blocks",catchpointTotalKvs:"catchpoint-total-kvs",catchpointVerifiedAccounts:"catchpoint-verified-accounts",catchpointVerifiedKvs:"catchpoint-verified-kvs",lastCatchpoint:"last-catchpoint",upgradeDelay:"upgrade-delay",upgradeNextProtocolVoteBefore:"upgrade-next-protocol-vote-before",upgradeNoVotes:"upgrade-no-votes",upgradeNodeVote:"upgrade-node-vote",upgradeVoteRounds:"upgrade-vote-rounds",upgradeVotes:"upgrade-votes",upgradeVotesRequired:"upgrade-votes-required",upgradeYesVotes:"upgrade-yes-votes"}}static from_obj_for_encoding(e){if("undefined"===typeof e["catchup-time"])throw new Error("Response is missing required field 'catchup-time': ".concat(e));if("undefined"===typeof e["last-round"])throw new Error("Response is missing required field 'last-round': ".concat(e));if("undefined"===typeof e["last-version"])throw new Error("Response is missing required field 'last-version': ".concat(e));if("undefined"===typeof e["next-version"])throw new Error("Response is missing required field 'next-version': ".concat(e));if("undefined"===typeof e["next-version-round"])throw new Error("Response is missing required field 'next-version-round': ".concat(e));if("undefined"===typeof e["next-version-supported"])throw new Error("Response is missing required field 'next-version-supported': ".concat(e));if("undefined"===typeof e["stopped-at-unsupported-round"])throw new Error("Response is missing required field 'stopped-at-unsupported-round': ".concat(e));if("undefined"===typeof e["time-since-last-round"])throw new Error("Response is missing required field 'time-since-last-round': ".concat(e));return new dt({catchupTime:e["catchup-time"],lastRound:e["last-round"],lastVersion:e["last-version"],nextVersion:e["next-version"],nextVersionRound:e["next-version-round"],nextVersionSupported:e["next-version-supported"],stoppedAtUnsupportedRound:e["stopped-at-unsupported-round"],timeSinceLastRound:e["time-since-last-round"],catchpoint:e.catchpoint,catchpointAcquiredBlocks:e["catchpoint-acquired-blocks"],cat
2chpointProcessedAccounts:e["catchpoint-processed-accounts"],catchpointProcessedKvs:e["catchpoint-processed-kvs"],catchpointTotalAccounts:e["catchpoint-total-accounts"],catchpointTotalBlocks:e["catchpoint-total-blocks"],catchpointTotalKvs:e["catchpoint-total-kvs"],catchpointVerifiedAccounts:e["catchpoint-verified-accounts"],catchpointVerifiedKvs:e["catchpoint-verified-kvs"],lastCatchpoint:e["last-catchpoint"],upgradeDelay:e["upgrade-delay"],upgradeNextProtocolVoteBefore:e["upgrade-next-protocol-vote-before"],upgradeNoVotes:e["upgrade-no-votes"],upgradeNodeVote:e["upgrade-node-vote"],upgradeVoteRounds:e["upgrade-vote-rounds"],upgradeVotes:e["upgrade-votes"],upgradeVotesRequired:e["upgrade-votes-required"],upgradeYesVotes:e["upgrade-yes-votes"]})}}class pt extends Ae{constructor(e){let{poolError:t,txn:n,applicationIndex:r,assetClosingAmount:i,assetIndex:o,closeRewards:a,closingAmount:s,confirmedRound:l,globalStateDelta:c,innerTxns:u,localStateDelta:h,logs:d,receiverRewards:p,senderRewards:f}=e;super(),this.poolError=t,this.txn=n,this.applicationIndex=r,this.assetClosingAmount=i,this.assetIndex=o,this.closeRewards=a,this.closingAmount=s,this.confirmedRound=l,this.globalStateDelta=c,this.innerTxns=u,this.localStateDelta=h,this.logs=d,this.receiverRewards=p,this.senderRewards=f,this.attribute_map={poolError:"pool-error",txn:"txn",applicationIndex:"application-index",assetClosingAmount:"asset-closing-amount",assetIndex:"asset-index",closeRewards:"close-rewards",closingAmount:"closing-amount",confirmedRound:"confirmed-round",globalStateDelta:"global-state-delta",innerTxns:"inner-txns",localStateDelta:"local-state-delta",logs:"logs",receiverRewards:"receiver-rewards",senderRewards:"sender-rewards"}}static from_obj_for_encoding(e){if("undefined"===typeof e["pool-error"])throw new Error("Response is missing required field 'pool-error': ".concat(e));if("undefined"===typeof e.txn)throw new Error("Response is missing required field 'txn': ".concat(e));return new pt({poolError:e["pool-error"],txn:e.txn,applicationIndex:e["application-index"],assetClosingAmount:e["asset-closing-amount"],assetIndex:e["asset-index"],closeRewards:e["close-rewards"],closingAmount:e["closing-amount"],confirmedRound:e["confirmed-round"],globalStateDelta:"undefined"!==typeof e["global-state-delta"]?e["global-state-delta"].map(at.from_obj_for_encoding):void 0,innerTxns:"undefined"!==typeof e["inner-txns"]?e["inner-txns"].map(pt.from_obj_for_encoding):void 0,localStateDelta:"undefined"!==typeof e["local-state-delta"]?e["local-state-delta"].map(Me.from_obj_for_encoding):void 0,logs:e.logs,receiverRewards:e["receiver-rewards"],senderRewards:e["sender-rewards"]})}}class ft extends Ae{constructor(e){let{topTransactions:t,totalTransactions:n}=e;super(),this.topTransactions=t,this.totalTransactions=n,this.attribute_map={topTransactions:"top-transactions",totalTransactions:"total-transactions"}}static from_obj_for_encoding(e){if(!Array.isArray(e["top-transactions"]))throw new Error("Response is missing required array field 'top-transactions': ".concat(e));if("undefined"===typeof e["total-transactions"])throw new Error("Response is missing required field 'total-transactions': ".concat(e));return new ft({topTransactions:e["top-transactions"],totalTransactions:e["total-transactions"]})}}class mt extends Ae{constructor(e){let{txid:t}=e;super(),this.txid=t,this.attribute_map={txid:"txId"}}static from_obj_for_encoding(e){if("undefined"===typeof e.txId)throw new Error("Response is missing required field 'txId': ".concat(e));return new mt({txid:e.txId})}}class gt extends Ae{constructor(e){let{newValue:t,slot:n}=e;super(),this.newValue=t,this.slot=n,this.attribute_map={newValue:"new-value",slot:"slot"}}static from_obj_for_encoding(e){if("undefined"===typeof e["new-value"])throw new Error("Response is missing required field 'new-value': ".concat(e));if("undefined"===typeof e.slot)throw new Error("Response is missing required field 'slot': ".concat(e));return new gt({newValue:qe.from_obj_for_encoding(e["new-value"]),slot:e.slot})}}class yt extends Ae{constructor(e){let{appInitialStates:t}=e;super(),this.appInitialStates=t,this.attribute_map={appInitialStates:"app-initial-states"}}static from_obj_for_encoding(e){return new yt({appInitialStates:"undefined"!==typeof e["app-initial-states"]?e["app-initial-states"].map(Pe.from_obj_for_encoding):void 0})}}class vt extends Ae{constructor(e){let{txnGroups:t,allowEmptySignatures:n,allowMoreLogging:r,allowUnnamedResources:i,execTraceConfig:o,extraOpcodeBudget:a,round:s}=e;super(),this.txnGroups=t,this.allowEmptySignatures=n,this.allowMoreLogging=r,this.allowUnnamedResources=i,this.execTraceConfig=o,this.extraOpcodeBudget=a,this.round=s,this.attribute_map={txnGroups:"txn-groups",allowEmptySignatures:"allow-empty-signatures",allowMoreLogging:"allow-more-logging",allowUnnamedResources:"allow-unnamed-resources",execTraceConfig:"exec-trace-config",extraOpcodeBudget:"extra-opcode-budget",round:"roun
2d"}}static from_obj_for_encoding(e){if(!Array.isArray(e["txn-groups"]))throw new Error("Response is missing required array field 'txn-groups': ".concat(e));return new vt({txnGroups:e["txn-groups"].map(wt.from_obj_for_encoding),allowEmptySignatures:e["allow-empty-signatures"],allowMoreLogging:e["allow-more-logging"],allowUnnamedResources:e["allow-unnamed-resources"],execTraceConfig:"undefined"!==typeof e["exec-trace-config"]?_t.from_obj_for_encoding(e["exec-trace-config"]):void 0,extraOpcodeBudget:e["extra-opcode-budget"],round:e.round})}}class wt extends Ae{constructor(e){let{txns:t}=e;super(),this.txns=t,this.attribute_map={txns:"txns"}}static from_obj_for_encoding(e){if(!Array.isArray(e.txns))throw new Error("Response is missing required array field 'txns': ".concat(e));return new wt({txns:e.txns})}}class bt extends Ae{constructor(e){let{lastRound:t,txnGroups:n,version:r,evalOverrides:i,execTraceConfig:o,initialStates:a}=e;super(),this.lastRound=t,this.txnGroups=n,this.version=r,this.evalOverrides=i,this.execTraceConfig=o,this.initialStates=a,this.attribute_map={lastRound:"last-round",txnGroups:"txn-groups",version:"version",evalOverrides:"eval-overrides",execTraceConfig:"exec-trace-config",initialStates:"initial-states"}}static from_obj_for_encoding(e){if("undefined"===typeof e["last-round"])throw new Error("Response is missing required field 'last-round': ".concat(e));if(!Array.isArray(e["txn-groups"]))throw new Error("Response is missing required array field 'txn-groups': ".concat(e));if("undefined"===typeof e.version)throw new Error("Response is missing required field 'version': ".concat(e));return new bt({lastRound:e["last-round"],txnGroups:e["txn-groups"].map(xt.from_obj_for_encoding),version:e.version,evalOverrides:"undefined"!==typeof e["eval-overrides"]?St.from_obj_for_encoding(e["eval-overrides"]):void 0,execTraceConfig:"undefined"!==typeof e["exec-trace-config"]?_t.from_obj_for_encoding(e["exec-trace-config"]):void 0,initialStates:"undefined"!==typeof e["initial-states"]?yt.from_obj_for_encoding(e["initial-states"]):void 0})}}class _t extends Ae{constructor(e){let{enable:t,scratchChange:n,stackChange:r,stateChange:i}=e;super(),this.enable=t,this.scratchChange=n,this.stackChange=r,this.stateChange=i,this.attribute_map={enable:"enable",scratchChange:"scratch-change",stackChange:"stack-change",stateChange:"state-change"}}static from_obj_for_encoding(e){return new _t({enable:e.enable,scratchChange:e["scratch-change"],stackChange:e["stack-change"],stateChange:e["state-change"]})}}class xt extends Ae{constructor(e){let{txnResults:t,appBudgetAdded:n,appBudgetConsumed:r,failedAt:i,failureMessage:o,unnamedResourcesAccessed:a}=e;super(),this.txnResults=t,this.appBudgetAdded=n,this.appBudgetConsumed=r,this.failedAt=i,this.failureMessage=o,this.unnamedResourcesAccessed=a,this.attribute_map={txnResults:"txn-results",appBudgetAdded:"app-budget-added",appBudgetConsumed:"app-budget-consumed",failedAt:"failed-at",failureMessage:"failure-message",unnamedResourcesAccessed:"unnamed-resources-accessed"}}static from_obj_for_encoding(e){if(!Array.isArray(e["txn-results"]))throw new Error("Response is missing required array field 'txn-results': ".concat(e));return new xt({txnResults:e["txn-results"].map(At.from_obj_for_encoding),appBudgetAdded:e["app-budget-added"],appBudgetConsumed:e["app-budget-consumed"],failedAt:e["failed-at"],failureMessage:e["failure-message"],unnamedResourcesAccessed:"undefined"!==typeof e["unnamed-resources-accessed"]?kt.from_obj_for_encoding(e["unnamed-resources-accessed"]):void 0})}}class At extends Ae{constructor(e){let{txnResult:t,appBudgetConsumed:n,execTrace:r,logicSigBudgetConsumed:i,unnamedResourcesAccessed:o}=e;super(),this.txnResult=t,this.appBudgetConsumed=n,this.execTrace=r,this.logicSigBudgetConsumed=i,this.unnamedResourcesAccessed=o,this.attribute_map={txnResult:"txn-result",appBudgetConsumed:"app-budget-consumed",execTrace:"exec-trace",logicSigBudgetConsumed:"logic-sig-budget-consumed",unnamedResourcesAccessed:"unnamed-resources-accessed"}}static from_obj_for_encoding(e){if("undefined"===typeof e["txn-result"])throw new Error("Response is missing required field 'txn-result': ".concat(e));return new At({txnResult:pt.from_obj_for_encoding(e["txn-result"]),appBudgetConsumed:e["app-budget-consumed"],execTrace:"undefined"!==typeof e["exec-trace"]?Ct.from_obj_for_encoding(e["exec-trace"]):void 0,logicSigBudgetConsumed:e["logic-sig-budget-consumed"],unnamedResourcesAccessed:"undefined"!==typeof e["unnamed-resources-accessed"]?kt.from_obj_for_encoding(e["unnamed-resources-accessed"]):void 0})}}class kt extends Ae{constructor(e){let{accounts:t,appLocals:n,apps:r,assetHoldings:i,assets:o,boxes:a,extraBoxRefs:s}=e;super(),this.accounts=t,this.appLocals=n,this.apps=r,this.assetHoldings=i,this.assets=o,this.boxes=a,this.extraBoxRefs=s,this.attribute_map={accounts:"accounts",appLocals:"app-locals",apps:"apps",assetHoldings:"asset-holdings",assets:"assets",boxes:"boxes",extraBoxRefs:"extra-box-refs"}}static from_obj_for_encoding(e){return new kt({accounts:e.accounts,appLocals:"undefined"!==typeof e["app-locals"]?e["app-locals"].map(Ie.from_obj_for_encoding):void 0,apps:e.apps,assetHoldings:"undefined"!==typeof e["asset-holdings"]?e["asset-holdings"].map(je.from_obj_for_encoding):void 0,assets:e.assets,boxes:"undefined"!==typeof e.boxes?e.boxes.map(Ze.from_obj_for_encoding):void 0,extraBoxRefs:e["extra-box-refs"]})}}class St extends Ae{constructor(e){let{allowEmptySignatures:t,allowUnnamedResources:n,extraOpcodeBudget:r,maxLogCalls:i,maxLogSize:o}=e;super(),this.allowEmptySignatures=t,this.allowUnnamedResources=n,this.extraOpcodeBudget=r,this.maxLogCalls=i,this.maxLogSize=o,this.attribute_map={allowEmptySignatures:"allow-empty-signatures",allowUnnamedResources:"allow-unnamed-resources",extraOpcodeBudget:"extra-opcode-budget",maxLogCalls:"max-log-calls",maxLogSize:"max-log-size"}}static from_obj_for_encoding(e){return new St({allowEmptySignatures:e["allow-empty-signatures"],allowUnnamedResources:e["allow-unnamed-resources"],extraOpcodeBudget:e["extra-opcode-budget"],maxLogCalls:e["max-log-calls"],maxLogSize:e["max-log-size"]})}}class Et extends Ae{constructor(e){let{pc:t,scratchChanges:n,spawnedInners:r,stackAdditions:i,stackPopCount:o,stateChanges:a}=e;super(),this.pc=t,this.scratchChanges=n,this.spawnedInners=r,this.stackAdditions=i,this.stackPopCount=o,this.stateChanges=a,this.attribute_map={pc:"pc",scratchChanges:"scratch-changes",spawnedInners:"spawned-inners",stackAdditions:"stack-additions",stackPopCount:"stack-pop-count",stateChanges:"state-changes"}}static from_obj_for_encoding(e){if("undefined"===typeof e.pc)throw new Error("Response is missing required field 'pc': ".concat(e));return new Et({pc:e.pc,scratchChanges:"undefined"!==typeof e["scratch-changes"]?e["scratch-changes"].map(gt.from_obj_for_encoding):void 0,spawnedInners:e["spawned-inners"],stackAdditions:"undefined"!==typeof e["stack-additions"]?e["stack-additions"].map(qe.from_obj_for_encoding):void 0,stackPopCount:e["stack-pop-count"],stateChanges:"undefined"!==typeof e["state-changes"]?e["state-changes"].map(De.from_obj_for_encoding):void 0})}}class Ct extends Ae{constructor(e){let{approvalProgramHash:t,approvalProgramTrace:n,clearStateProgramHash:r,clearStateProgramTrace:i,innerTrace:o,logicSigHash:a,logicSigTrace:l}=e;super(),this.approvalProgramHash="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.approvalProgramTrace=n,this.clearStateProgramHash="string"===typeof r?new Uint8Array(s.lW.from(r,"base64")):r,this.clearStateProgramTrace=i,this.innerTrace=o,this.logicSigHash="string"===typeof a?new Uint8Array(s.lW.from(a,"base64")):a,this.logicSigTrace=l,this.attribute_map={approvalProgramHash:"approval-program-hash",approvalProgramTrace:"approval-program-trace",clearStateProgramHash:"clear-state-program-hash",clearStateProgramTrace:"clear-state-program-trace",innerTrace:"inner-trace",logicSigHash:"logic-sig-hash",logicSigTrace:"logic-sig-trace"}}static from_obj_for_encoding(e){return new Ct({approvalProgramHash:e["approval-program-hash"],approvalProgramTrace:"undefined"!==typeof e["approval-program-trace"]?e["approval-program-trace"].map(Et.from_obj_for_encoding):void 0,clearStateProgramHash:e["clear-state-program-hash"],clearStateProgramTrace:"undefined"!==typeof e["clear-state-program-trace"]?e["clear-state-program-trace"].map(Et.from_obj_for_encoding):void 0,innerTrace:"undefined"!==typeof e["inner-trace"]?e["inner-trace"].map(Ct.from_obj_for_encoding):void 0,logicSigHash:e["logic-sig-hash"],logicSigTrace:"undefined"!==typeof e["logic-sig-trace"]?e["logic-sig-trace"].map(Et.from_obj_for_encoding):void 0})}}class Mt extends Ae{constructor(e){let{message:t,stateproof:n}=e;super(),this.message=t,this.stateproof="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.attribute_map={message:"Message",stateproof:"StateProof"}}static from_obj_for_encoding(e){if("undefined"===typeof e.Message)throw new Error("Response is missing required field 'Message': ".concat(e));if("undefined"===typeof e.StateProof)throw new Error("Response is missing required field 'StateProof': ".concat(e));return new Mt({message:Tt.from_obj_for_encoding(e.Message),stateproof:e.StateProof})}}class Tt extends Ae{constructor(e){let{blockheaderscommitment:t,firstattestedround:n,lastattestedround:r,lnprovenweight:i,voterscommitment:o}=e;super(),this.blockheaderscommitment="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.firstattestedround=n,this.lastattestedround=r,this.lnprovenweight=i,this.voterscommitment="string"===typeof o?new Uint8Array(s.lW.from(o,"base64")):o,this.attribute_map={blockheaderscommitment:"BlockHeadersCommitment",firstattestedround:"FirstAttestedRound",lastattestedround:"LastAttestedRound",lnprovenweight:"LnProvenWeight",voterscommitment:"VotersCommitment"}}static from_obj_for_encoding(e){if("undefined"===typeof e.BlockHeadersCommitment)throw new Error("Response is missing required field 'BlockHeadersCommitment': ".concat(e));if("undefined"===typeof e.FirstAttestedRound)throw new Error("Response is missing required field 'FirstAttestedRound': ".concat(e));if("undefined"===typeof e.LastAttestedRound)throw new Error("Response is missing required field 'LastAttestedRound': ".concat(e));if("undefined"===typeof e.LnProvenWeight)throw new Error("Response is missing required field 'LnProvenWeight': ".concat(e));if("undefined"===typeof e.VotersCommitment)throw new Error("Response is missing required field 'VotersCommitment': ".concat(e));return new Tt({blockheaderscommitment:e.BlockHeadersCommitment,firstattestedround:e.FirstAttestedRound,lastattestedround:e.LastAttestedRound,lnprovenweight:e.LnProvenWeight,voterscommitment:e.VotersCommitment})}}class Pt extends Ae{constructor(e){let{currentRound:t,onlineMoney:n,totalMoney:r}=e;super(),this.currentRound=t,this.onlineMoney=n,this.totalMoney=r,this.attribute_map={currentRound:"current_roun
2d",onlineMoney:"online-money",totalMoney:"total-money"}}static from_obj_for_encoding(e){if("undefined"===typeof e.current_round)throw new Error("Response is missing required field 'current_round': ".concat(e));if("undefined"===typeof e["online-money"])throw new Error("Response is missing required field 'online-money': ".concat(e));if("undefined"===typeof e["total-money"])throw new Error("Response is missing required field 'total-money': ".concat(e));return new Pt({currentRound:e.current_round,onlineMoney:e["online-money"],totalMoney:e["total-money"]})}}class Rt extends Ae{constructor(e){let{key:t,value:n}=e;super(),this.key=t,this.value=n,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){if("undefined"===typeof e.key)throw new Error("Response is missing required field 'key': ".concat(e));if("undefined"===typeof e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new Rt({key:e.key,value:It.from_obj_for_encoding(e.value)})}}class It extends Ae{constructor(e){let{type:t,bytes:n,uint:r}=e;super(),this.type=t,this.bytes=n,this.uint=r,this.attribute_map={type:"type",bytes:"bytes",uint:"uint"}}static from_obj_for_encoding(e){if("undefined"===typeof e.type)throw new Error("Response is missing required field 'type': ".concat(e));if("undefined"===typeof e.bytes)throw new Error("Response is missing required field 'bytes': ".concat(e));if("undefined"===typeof e.uint)throw new Error("Response is missing required field 'uint': ".concat(e));return new It({type:e.type,bytes:e.bytes,uint:e.uint})}}class Lt extends Ae{constructor(e){let{deltas:t}=e;super(),this.deltas=t,this.attribute_map={deltas:"Deltas"}}static from_obj_for_encoding(e){if(!Array.isArray(e.Deltas))throw new Error("Response is missing required array field 'Deltas': ".concat(e));return new Lt({deltas:e.Deltas.map(ut.from_obj_for_encoding)})}}
2class Ot extends Ae{constructor(e){let{consensusVersion:t,fee:n,genesisHash:r,genesisId:i,lastRound:o,minFee:a}=e;super(),this.consensusVersion=t,this.fee=n,this.genesisHash="string"===typeof r?new Uint8Array(s.lW.from(r,"base64")):r,this.genesisId=i,this.lastRound=o,this.minFee=a,this.attribute_map={consensusVersion:"consensus-version",fee:"fee",genesisHash:"genesis-hash",genesisId:"genesis-id",lastRound:"last-round",minFee:"min-fee"}}static from_obj_for_encoding(e){if("undefined"===typeof e["consensus-version"])throw new Error("Response is missing required field 'consensus-version': ".concat(e));if("undefined"===typeof e.fee)throw new Error("Response is missing required field 'fee': ".concat(e));if("undefined"===typeof e["genesis-hash"])throw new Error("Response is missing required field 'genesis-hash': ".concat(e));if("undefined"===typeof e["genesis-id"])throw new Error("Response is missing required field 'genesis-id': ".concat(e));if("undefined"===typeof e["last-round"])throw new Error("Response is missing required field 'last-round': ".concat(e));if("undefined"===typeof e["min-fee"])throw new Error("Response is missing required field 'min-fee': ".concat(e));return new Ot({consensusVersion:e["consensus-version"],fee:e.fee,genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],lastRound:e["last-round"],minFee:e["min-fee"]})}}class Dt extends Ae{constructor(e){let{idx:t,proof:n,stibhash:r,treedepth:i,hashtype:o}=e;super(),this.idx=t,this.proof="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.stibhash="string"===typeof r?new Uint8Array(s.lW.from(r,"base64")):r,this.treedepth=i,this.hashtype=o,this.attribute_map={idx:"idx",proof:"proof",stibhash:"stibhash",treedepth:"treedepth",hashtype:"hashtype"}}static from_obj_for_encoding(e){if("undefined"===typeof e.idx)throw new Error("Response is missing required field 'idx': ".concat(e));if("undefined"===typeof e.proof)throw new Error("Response is missing required field 'proof': ".concat(e));if("undefined"===typeof e.stibhash)throw new Error("Response is missing required field 'stibhash': ".concat(e));if("undefined"===typeof e.treedepth)throw new Error("Response is missing required field 'treedepth': ".concat(e));return new Dt({idx:e.idx,proof:e.proof,stibhash:e.stibhash,treedepth:e.treedepth,hashtype:e.hashtype})}}class Bt extends Ae{constructor(e){let{build:t,genesisHashB64:n,genesisId:r,versions:i}=e;super(),this.build=t,this.genesisHashB64="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.genesisId=r,this.versions=i,this.attribute_map={build:"build",genesisHashB64:"genesis_hash_b64",genesisId:"genesis_id",versions:"versions"}}static from_obj_for_encoding(e){if("undefined"===typeof e.build)throw new Error("Response is missing required field 'build': ".concat(e));if("undefined"===typeof e.genesis_hash_b64)throw new Error("Response is missing required field 'genesis_hash_b64': ".concat(e));if("undefined"===typeof e.genesis_id)throw new Error("Response is missing required field 'genesis_id': ".concat(e));if(!Array.isArray(e.versions))throw new Error("Response is missing required array field 'versions': ".concat(e));return new Bt({build:Ye.from_obj_for_encoding(e.build),genesisHashB64:e.genesis_hash_b64,genesisId:e.genesis_id,versions:e.versions})}}class Nt{constructor(e,t){this.c=e,this.query={},this.intDecoding=t||f.DEFAULT}prepare(e){return e}async do(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};"default"!==this.intDecoding&&(t.intDecoding=this.intDecoding);const n=await this.c.get(this.path(),this.query,e,t);return this.prepare(n.body)}async doRaw(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(await this.c.get(this.path(),this.query,e,{},!1)).body}setIntDecoding(e){if("default"!==e&&"safe"!==e&&"mixed"!==e&&"bigint"!==e)throw new Error("Invalid method for int decoding: ".concat(e));return this.intDecoding=e,this}}class Ft extends Nt{constructor(e,t,n){super(e,t),this.account=n,this.account=n}path(){return"/v2/accounts/".concat(this.account)}exclude(e){return this.query.exclude=e,this}}class jt extends Nt{constructor(e,t,n,r){super(e,t),this.account=n,this.assetID=r,this.account=n,this.assetID=r}path(){return"/v2/accounts/".concat(this.account,"/assets/").concat(this.assetID)}}class Ut extends Nt{constructor(e,t,n,r){super(e,t),this.account=n,this.applicationID=r,this.account=n,this.applicationID=r}path(){return"/v2/accounts/".concat(this.account,"/applications/").concat(this.applicationID)}}class zt extends Nt{constructor(e,t){if(super(e),!Number.isInteger(t))throw Error("roundNumber should be an integer");this.round=t,this.query={format:"msgpack"}}path(){return"/v2/blocks/".concat(this.round)}prepare(e){if(e&&e.byteLength>0)return ee(e)}}function qt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return Object.keys(t).every((e=>
2"content-type"!==e.toLowerCase()))&&(t={...e},t["Content-Type"]="text/plain"),t}class Wt extends Nt{constructor(e,t){super(e),this.source=t,this.source=t}path(){return"/v2/teal/compile"}sourcemap(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query.sourcemap=e,this}async do(){const e=qt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return(await this.c.post(this.path(),s.lW.from(this.source),e,this.query)).body}}class Vt extends Nt{constructor(e,t){super(e),this.blob=$(t.get_obj_for_encoding(!0))}path(){return"/v2/teal/dryrun"}async do(){const e=qt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return(await this.c.post(this.path(),s.lW.from(this.blob),e)).body}}class Ht extends Nt{path(){return"/genesis"}}class Kt extends Nt{constructor(e,t,n){super(e,t),this.index=n,this.index=n}path(){return"/v2/assets/".concat(this.index)}}class Gt extends Nt{constructor(e,t,n){super(e,t),this.index=n,this.index=n}path(){return"/v2/applications/".concat(this.index)}}class Zt extends Nt{constructor(e,t,n){if(super(e,t),!Number.isInteger(n))throw Error("roundNumber should be an integer");this.round=n}path(){return"/v2/blocks/".concat(this.round,"/hash")}}class Qt extends Nt{constructor(e,t,n){if(super(e,t),!Number.isInteger(n))throw Error("roundNumber should be an integer");this.round=n}path(){return"/v2/blocks/".concat(this.round,"/txids")}}class Yt extends Nt{constructor(e,t,n,r){super(e,t),this.index=n,this.index=n;const i=s.lW.from(r).toString("base64");this.query.name=encodeURI("b64:".concat(i))}path(){return"/v2/applications/".concat(this.index,"/box")}prepare(e){return Ke.from_obj_for_encoding(e)}}class Xt extends Nt{constructor(e,t,n){super(e,t),this.index=n,this.index=n,this.query.max=0}path(){return"/v2/applications/".concat(this.index,"/boxes")}max(e){return this.query.max=e,this}prepare(e){return Qe.from_obj_for_encoding(e)}}class Jt extends Nt{path(){return"/health"}async do(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=await this.c.get(this.path(),{},e);if(!t.ok)throw new Error("Health response: ".concat(t.status));return{}}}class $t extends Nt{constructor(e,t){super(e),this.txid=t,this.txid=t,this.query.format="msgpack"}prepare(e){if(e&&e.byteLength>0)return ee(e)}path(){return"/v2/transactions/pending/".concat(this.txid)}max(e){return this.query.max=e,this}}class en extends Nt{constructor(e){super(e),this.query.format="msgpack"}path(){return"/v2/transactions/pending"}prepare(e){if(e&&e.byteLength>0)return ee(e)}max(e){return this.query.max=e,this}}class tn extends Nt{constructor(e,t){super(e),this.address=t,this.address=t,this.query.format="msgpack"}prepare(e){if(e&&e.byteLength>0)return ee(e)}path(){return"/v2/accounts/".concat(this.address,"/transactions/pending")}max(e){return this.query.max=e,this}}class nn extends Nt{constructor(e,t,n,r){super(e,t),this.round=n,this.txID=r,this.round=n,this.txID=r}path(){return"/v2/blocks/".concat(this.round,"/transactions/").concat(this.txID,"/proof")}hashType(e){return this.query.hashtype=e,this}}function rn(e){return e&&void 0!==e.byteLength}class on extends Nt{constructor(e,t){super(e);let n=t;if(Array.isArray(t)){if(!t.every(rn))throw new TypeError("Array elements must be byte arrays");n=y(...t)}else if(!rn(n))throw new TypeError("Argument must be byte array");this.txnBytesToPost=n}path(){return"/v2/transactions"}async do(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return Object.keys(t).every((e=>"content-type"!==e.toLowerCase()))&&(t={...e},t["Content-Type"]="application/x-binary"),t}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return(await this.c.post(this.path(),s.lW.from(this.txnBytesToPost),e)).body}}class an extends Nt{path(){return"/v2/status"}}class sn extends Nt{constructor(e,t,n){if(super(e,t),this.round=n,!Number.isInteger(n))throw Error("round should be an integer");this.round=n}path(){return"/v2/status/wait-for-block-after/".concat(this.round)}}class ln extends Nt{path(){return"/v2/transactions/params"}prepare(e){return{flatFee:!1,fee:e.fee,firstRound:e["last-round"],lastRound:e["last-round"]+1e3,genesisID:e["genesis-id"],genesisHash:e["genesis-hash"],minFee:e["min-fee"]}}}class cn extends Nt{path(){return"/v2/ledger/supply"}}class un extends Nt{path(){return"/versions"}}class hn extends Nt{constructor(e,t,n){super(e,t),this.round=n,this.round=n}path(){return"/v2/blocks/".concat(this.round,"/lightheader/proof")}}class dn extends Nt{constructor(e,t,n){super(e,t),this.round=n,this.round=n}path(){return"/v2/stateproofs/".concat(this.round)}}class pn extends Nt{constructor(e,t,n){super(e,t),this.round=n,this.round=n}path(){return"/v2/ledger/sync/".concat(this.round)}async do(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(await this.c.post(this.path(),e)).body}}class fn extends Nt{path(){return"/v2/ledger/sync"}prepare(e){return lt.from_obj_for_encoding(e)}}class mn extends Nt{constructor(e,t,n){super(e,t),this.offset=n,this.offset=n}path(){return"/v2/devmode/blocks/offset/".concat(this.offset)}async do(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(await this.c.post(this.path(),e)).body}}class gn extends Nt{path(){return"/v2/devmode/blocks/offset"}prepare(e){return st.from_obj_for_encoding(e)}}class yn extends Nt{constructor(e,t){super(e),this.source=t,this.source=t}path(){return"/v2/teal/disassemble"}async do(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return Object.keys(t).every((e=>
2"content-type"!==e.toLowerCase()))&&(t={...e},t["Content-Type"]="text/plain"),t}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return(await this.c.post(this.path(),s.lW.from(this.source),e,this.query)).body}}class vn extends Nt{constructor(e,t){super(e),this.query.format="msgpack",this.requestBytes=J(t.get_obj_for_encoding(!0))}path(){return"/v2/transactions/simulate"}async do(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return Object.keys(t).every((e=>"content-type"!==e.toLowerCase()))&&(t={...e},t["Content-Type"]="application/msgpack"),t}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),t=await this.c.post(this.path(),s.lW.from(this.requestBytes),e,this.query,!1);return this.prepare(t.body)}prepare(e){const t=ee(e);return bt.from_obj_for_encoding(t)}}class wn extends Nt{path(){return"/ready"}}class bn extends Nt{path(){return"/v2/ledger/sync"}async do(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(await this.c.delete(this.path(),e)).body}}class _n extends Nt{constructor(e,t,n){super(e,t),this.id=n,this.id=n,this.query={format:"json"}}path(){return"/v2/deltas/txn/group/".concat(this.id)}}class xn extends Nt{constructor(e,t,n){super(e,t),this.round=n,this.round=n,this.query={format:"json"}}path(){return"/v2/deltas/".concat(this.round)}}class An extends Nt{constructor(e,t,n){super(e,t),this.round=n,this.round=n,this.query={format:"json"}}path(){return"/v2/deltas/".concat(this.round,"/txn/group")}prepare(e){return Lt.from_obj_for_encoding(e)}}class kn extends _e{constructor(e,t,n){super("X-Algo-API-Token",e,t,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})}healthCheck(){return new Jt(this.c)}versionsCheck(){return new un(this.c)}sendRawTransaction(e){return new on(this.c,e)}accountInformation(e){return new Ft(this.c,this.intDecoding,e)}accountAssetInformation(e,t){return new jt(this.c,this.intDecoding,e,t)}accountApplicationInformation(e,t){return new Ut(this.c,this.intDecoding,e,t)}block(e){return new zt(this.c,e)}getBlockHash(e){return new Zt(this.c,this.intDecoding,e)}getBlockTxids(e){return new Qt(this.c,this.intDecoding,e)}pendingTransactionInformation(e){return new $t(this.c,e)}pendingTransactionsInformation(){return new en(this.c)}pendingTransactionByAddress(e){return new tn(this.c,e)}status(){return new an(this.c,this.intDecoding)}statusAfterBlock(e){return new sn(this.c,this.intDecoding,e)}getTransactionParams(){return new ln(this.c)}supply(){return new cn(this.c,this.intDecoding)}compile(e){return new Wt(this.c,e)}disassemble(e){return new yn(this.c,e)}dryrun(e){return new Vt(this.c,e)}getAssetByID(e){return new Kt(this.c,this.intDecoding,e)}getApplicationByID(e){return new Gt(this.c,this.intDecoding,e)}getApplicationBoxByName(e,t){return new Yt(this.c,this.intDecoding,e,t)}getApplicationBoxes(e){return new Xt(this.c,this.intDecoding,e)}genesis(){return new Ht(this.c,this.intDecoding)}getTransactionProof(e,t){return new nn(this.c,this.intDecoding,e,t)}getLightBlockHeaderProof(e){return new hn(this.c,this.intDecoding,e)}getStateProof(e){return new dn(this.c,this.intDecoding,e)}simulateRawTransactions(e){const t=[];if(Array.isArray(e))for(const r of e)t.push(ee(r));else t.push(ee(e));const n=new vt({txnGroups:[new wt({txns:t})]});return this.simulateTransactions(n)}simulateTransactions(e){return new vn(this.c,e)}setBlockOffsetTimestamp(e){return new mn(this.c,this.intDecoding,e)}getBlockOffsetTimestamp(){return new gn(this.c,this.intDecoding)}setSyncRound(e){return new pn(this.c,this.intDecoding,e)}unsetSyncRound(){return new bn(this.c,this.intDecoding)}getSyncRound(){return new fn(this.c,this.intDecoding)}ready(){return new wn(this.c,this.intDecoding)}getLedgerStateDeltaForTransactionGroup(e){return new _n(this.c,this.intDecoding,e)}getLedgerStateDelta(e){return new xn(this.c,this.intDecoding,e)}getTransactionGroupLedgerStateDeltasForRound(e){return new An(this.c,this.intDecoding,e)}}class Sn extends _e{constructor(e){super("X-KMD-API-Token",e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://127.0.0.1",arguments.length>2&&void 0!==arguments[2]?arguments[2]:7833,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})}async versions(){return(await this.c.get("/versions")).body}async listWallets(){return(await this.c.get("/v1/wallets")).body}async createWallet(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Uint8Array;const r={wallet_name:e,wallet_driver_name:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"sqlite",wallet_password:t,master_derivation_key:s.lW.from(n).toString("base64")};return(await this.c.post("/v1/wallet",r)).body}async initWalletHandle(e,t){const n={wallet_id:e,wallet_password:t};return(await this.c.post("/v1/wallet/init",n)).body}async releaseWalletHandle(e){const t={wallet_handle_token:e};return(await this.c.post("/v1/wallet/release",t)).body}async renewWalletHandle(e){const t={wallet_handle_token:e};return(await this.c.post("/v1/wallet/renew",t)).body}async renameWallet(e,t,n){const r={wallet_id:e,wallet_password:t,wallet_name:n};return(await this.c.post("/v1/wallet/rename",r)).body}async getWallet(e){const t={wallet_handle_token:e};return(await this.c.post("/v1/wallet/info",t)).body}async exportMasterDerivationKey(e,t){const n={wallet_handle_token:e,wallet_password:t},r=await this.c.post("/v1/master-key/export",n);return{master_derivation_key:s.lW.from(r.body.master_derivation_key,"base64")}}async importKey(e,t){const n={wallet_handle_token:e,private_key:s.lW.from(t).toString("base64")};return(await this.c.post("/v1/key/import",n)).body}async exportKey(e,t,n){const r={wallet_handle_token:e,address:n,wallet_password:t},i=await this.c.post("/v1/key/export",r);return{private_key:s.lW.from(i.body.private_key,"base64")}}
2async generateKey(e){const t={wallet_handle_token:e,display_mnemonic:!1};return(await this.c.post("/v1/key",t)).body}async deleteKey(e,t,n){const r={wallet_handle_token:e,address:n,wallet_password:t};return(await this.c.delete("/v1/key",r)).body}async listKeys(e){const t={wallet_handle_token:e};return(await this.c.post("/v1/key/list",t)).body}async signTransaction(e,t,n){const r=he(n),i={wallet_handle_token:e,wallet_password:t,transaction:s.lW.from(r.toByte()).toString("base64")},o=await this.c.post("/v1/transaction/sign",i);return 200===o.status?s.lW.from(o.body.signed_transaction,"base64"):o.body}async signTransactionWithSpecificPublicKey(e,t,n,r){const i=he(n),o={wallet_handle_token:e,wallet_password:t,transaction:s.lW.from(i.toByte()).toString("base64"),public_key:s.lW.from(r).toString("base64")},a=await this.c.post("/v1/transaction/sign",o);return 200===a.status?s.lW.from(a.body.signed_transaction,"base64"):a.body}async listMultisig(e){const t={wallet_handle_token:e};return(await this.c.post("/v1/multisig/list",t)).body}async importMultisig(e,t,n,r){const i={wallet_handle_token:e,multisig_version:t,threshold:n,pks:r};return(await this.c.post("/v1/multisig/import",i)).body}async exportMultisig(e,t){const n={wallet_handle_token:e,address:t};return(await this.c.post("/v1/multisig/export",n)).body}async signMultisigTransaction(e,t,n,r,i){const o=he(n),a={wallet_handle_token:e,transaction:s.lW.from(o.toByte()).toString("base64"),public_key:s.lW.from(r).toString("base64"),partial_multisig:i,wallet_password:t};return(await this.c.post("/v1/multisig/sign",a)).body}async deleteMultisig(e,t,n){const r={wallet_handle_token:e,address:n,wallet_password:t};return(await this.c.delete("/v1/multisig",r)).body}}class En extends Nt{path(){return"/health"}}class Cn extends Nt{constructor(e,t,n){super(e,t),this.index=n,this.index=n}path(){return"/v2/assets/".concat(this.index,"/balances")}limit(e){return this.query.limit=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e.toString(),this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}nextToken(e){return this.query.next=e,this}includeAll(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}function Mn(e){return"string"===typeof e?e:s.lW.from(e).toString("base64")}class Tn extends Nt{constructor(e,t,n){super(e,t),this.account=n,this.account=n}path(){return"/v2/accounts/".concat(this.account,"/transactions")}notePrefix(e){return this.query["note-prefix"]=Mn(e),this}txType(e){return this.query["tx-type"]=e,this}sigType(e){return this.query["sig-type"]=e,this}txid(e){return this.query.txid=e,this}round(e){return this.query.round=e,this}minRound(e){return this.query["min-round"]=e,this}maxRound(e){return this.query["max-round"]=e,this}assetID(e){return this.query["asset-id"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query["before-time"]=e,this}afterTime(e){return this.query["after-time"]=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e.toString(),this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query["rekey-to"]=e,this}}class Pn extends Nt{constructor(e,t,n){super(e,t),this.index=n,this.index=n}path(){return"/v2/assets/".concat(this.index,"/transactions")}notePrefix(e){return this.query["note-prefix"]=Mn(e),this}txType(e){return this.query["tx-type"]=e,this}sigType(e){return this.query["sig-type"]=e,this}txid(e){return this.query.txid=e,this}round(e){return this.query.round=e,this}minRound(e){return this.query["min-round"]=e,this}maxRound(e){return this.query["max-round"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query["before-time"]=e,this}afterTime(e){return this.query["after-time"]=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e.toString(),this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}addressRole(e){return this.query["address-role"]=e,this}address(e){return this.query.address=e,this}excludeCloseTo(e){return this.query["exclude-close-to"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query["rekey-to"]=e,this}}class Rn extends Nt{constructor(e,t,n){super(e,t),this.round=n,this.round=n}path(){return"/v2/blocks/".concat(this.round)}headerOnly(e){return this.query["header-only"]=e,this}}class In extends Nt{constructor(e,t,n){super(e,t),this.txID=n,this.txID=n}path(){return"/v2/transactions/".concat(this.txID)}}class Ln extends Nt{constructor(e,t,n){super(e,t),this.account=n,this.account=n}path(){return"/v2/accounts/".concat(this.account)}round(e){return this.query.round=e,this}includeAll(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}exclude(e){return this.query.exclude=e,this}}class On extends Nt{constructor(e,t,n){super(e,t),this.account=n,this.account=n}path(){return"/v2/accounts/".concat(this.account,"/assets")}limit(e){return this.query.limit=e,this}
2round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}assetId(e){return this.query["asset-id"]=e,this}}class Dn extends Nt{constructor(e,t,n){super(e,t),this.account=n,this.account=n}path(){return"/v2/accounts/".concat(this.account,"/created-assets")}limit(e){return this.query.limit=e,this}round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}assetID(e){return this.query["asset-id"]=e,this}}class Bn extends Nt{constructor(e,t,n){super(e,t),this.account=n,this.account=n}path(){return"/v2/accounts/".concat(this.account,"/apps-local-state")}limit(e){return this.query.limit=e,this}round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}applicationID(e){return this.query["application-id"]=e,this}}class Nn extends Nt{constructor(e,t,n){super(e,t),this.account=n,this.account=n}path(){return"/v2/accounts/".concat(this.account,"/created-applications")}limit(e){return this.query.limit=e,this}round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}applicationID(e){return this.query["application-id"]=e,this}}class Fn extends Nt{constructor(e,t,n){super(e,t),this.index=n,this.index=n}path(){return"/v2/assets/".concat(this.index)}includeAll(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}class jn extends Nt{constructor(e,t,n){super(e,t),this.index=n,this.index=n}path(){return"/v2/applications/".concat(this.index)}includeAll(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}class Un extends Nt{constructor(e,t,n){super(e,t),this.appID=n,this.appID=n}path(){return"/v2/applications/".concat(this.appID,"/logs")}limit(e){return this.query.limit=e,this}minRound(e){return this.query["min-round"]=e,this}maxRound(e){return this.query["max-round"]=e,this}nextToken(e){return this.query.next=e,this}sender(e){return this.query["sender-address"]=e,this}txid(e){return this.query.txid=e,this}}class zn extends Ae{constructor(e){let{address:t,amount:n,amountWithoutPendingRewards:r,pendingRewards:i,rewards:o,round:a,status:s,totalAppsOptedIn:l,totalAssetsOptedIn:c,totalBoxBytes:u,totalBoxes:h,totalCreatedApps:d,totalCreatedAssets:p,appsLocalState:f,appsTotalExtraPages:m,appsTotalSchema:g,assets:y,authAddr:v,closedAtRound:w,createdApps:b,createdAssets:_,createdAtRound:x,deleted:A,participation:k,rewardBase:S,sigType:E}=e;super(),this.address=t,this.amount=n,this.amountWithoutPendingRewards=r,this.pendingRewards=i,this.rewards=o,this.round=a,this.status=s,this.totalAppsOptedIn=l,this.totalAssetsOptedIn=c,this.totalBoxBytes=u,this.totalBoxes=h,this.totalCreatedApps=d,this.totalCreatedAssets=p,this.appsLocalState=f,this.appsTotalExtraPages=m,this.appsTotalSchema=g,this.assets=y,this.authAddr=v,this.closedAtRound=w,this.createdApps=b,this.createdAssets=_,this.createdAtRound=x,this.deleted=A,this.participation=k,this.rewardBase=S,this.sigType=E,this.attribute_map={address:"address",amount:"amount",amountWithoutPendingRewards:"amount-without-pending-rewards",pendingRewards:"pending-rewards",rewards:"rewards",round:"round",status:"status",totalAppsOptedIn:"total-apps-opted-in",totalAssetsOptedIn:"total-assets-opted-in",totalBoxBytes:"total-box-bytes",totalBoxes:"total-boxes",totalCreatedApps:"total-created-apps",totalCreatedAssets:"total-created-assets",appsLocalState:"apps-local-state",appsTotalExtraPages:"apps-total-extra-pages",appsTotalSchema:"apps-total-schema",assets:"assets",authAddr:"auth-addr",closedAtRound:"closed-at-round",createdApps:"created-apps",createdAssets:"created-assets",createdAtRound:"created-at-round",deleted:"deleted",participation:"participation",rewardBase:"reward-base",sigType:"sig-type"}}static from_obj_for_encoding(e){if("undefined"===typeof e.address)throw new Error("Response is missing required field 'address': ".concat(e));if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e["amount-without-pending-rewards"])throw new Error("Response is missing required field 'amount-without-pending-rewards': ".concat(e));if("undefined"===typeof e["pending-rewards"])throw new Error("Response is missing required field 'pending-rewards': ".concat(e));if("undefined"===typeof e.rewards)throw new Error("Response is missing required field 'rewards': ".concat(e));if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));if("undefined"===typeof e.status)throw new Error("Response is missing required field 'status': ".concat(e));if("undefined"===typeof e["total-apps-opted-in"])throw new Error("Response is missing required field 'total-apps-opted-in': ".concat(e));if("undefined"===typeof e["total-assets-opted-in"])throw new Error("Response is missing required field 'total-assets-opted-in': ".concat(e));if("undefined"===typeof e["total-box-bytes"])throw new Error("Response is missing required field 'total-box-bytes': ".concat(e));if("undefined"===typeof e["total-boxes"])throw new Error("Response is missing required field 'total-boxes': ".concat(e));if("undefined"===typeof e["total-created-apps"])throw new Error("Response is missing required field 'total-created-apps': ".concat(e));if("undefined"===typeof e["total-created-assets"])throw new Error("Response is missing required field 'total-created-assets': ".concat(e));return new zn({address:e.address,amount:e.amount,amountWithoutPendingRewards:e["amount-without-pending-rewards"],pendingRewards:e["pending-rewards"],rewards:e.rewards,round:e.round,status:e.status,totalAppsOptedIn:e["total-apps-opted-in"],totalAssetsOptedIn:e["total-assets-opted-in"],totalBoxBytes:e["total-box-bytes"],totalBoxes:e["total-boxes"],totalCreatedApps:e["total-created-apps"],totalCreatedAssets:e["total-created-assets"],appsLocalState:"undefined"!==typeof e["apps-local-state"]?e["apps-local-state"].map(Gn.from_obj_for_encoding):void 0,appsTotalExtraPages:e["apps-total-extra-pages"],appsTotalSchema:"undefined"!==typeof e["apps-total-schema"]?$n.from_obj_for_encoding(e["apps-total-schema"]):void 0,assets:"undefined"!==typeof e.assets?e.assets.map(rr.from_obj_for_encoding):void 0,authAddr:e["auth-addr"],closedAtRound:e["closed-at-round"],createdApps:"undefined"!==typeof e["created-apps"]?e["created-apps"].map(Kn.from_obj_for_encoding):void 0,createdAssets:"undefined"!==typeof e["created-assets"]?e["created-assets"].map(tr.from_obj_for_encoding):void 0,createdAtRound:e["created-at-round"],deleted:e.deleted,participation:"undefined"!==typeof e.participation?qn.from_obj_for_encoding(e.participation):void 0,rewardBase:e["reward-base"],sigType:e["sig-type"]})}}class qn extends Ae{constructor(e){let{selectionParticipationKey:t,voteFirstValid:n,voteKeyDilution:r,voteLastValid:i,voteParticipationKey:o,stateProofKey:a}=e;super(),this.selectionParticipationKey="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.voteFirstValid=n,this.voteKeyDilution=r,this.voteLastValid=i,this.voteParticipationKey="string"===typeof o?new Uint8Array(s.lW.from(o,"base64")):o,this.stateProofKey="string"===typeof a?new Uint8Array(s.lW.from(a,"base64")):a,this.attribute_map={selectionParticipationKey:"selection-
2participation-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key",stateProofKey:"state-proof-key"}}static from_obj_for_encoding(e){if("undefined"===typeof e["selection-participation-key"])throw new Error("Response is missing required field 'selection-participation-key': ".concat(e));if("undefined"===typeof e["vote-first-valid"])throw new Error("Response is missing required field 'vote-first-valid': ".concat(e));if("undefined"===typeof e["vote-key-dilution"])throw new Error("Response is missing required field 'vote-key-dilution': ".concat(e));if("undefined"===typeof e["vote-last-valid"])throw new Error("Response is missing required field 'vote-last-valid': ".concat(e));if("undefined"===typeof e["vote-participation-key"])throw new Error("Response is missing required field 'vote-participation-key': ".concat(e));return new qn({selectionParticipationKey:e["selection-participation-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"],stateProofKey:e["state-proof-key"]})}}class Wn extends Ae{constructor(e){let{account:t,currentRound:n}=e;super(),this.account=t,this.currentRound=n,this.attribute_map={account:"account",currentRound:"current-round"}}static from_obj_for_encoding(e){if("undefined"===typeof e.account)throw new Error("Response is missing required field 'account': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new Wn({account:zn.from_obj_for_encoding(e.account),currentRound:e["current-round"]})}}class Vn extends Ae{constructor(e){let{address:t,delta:n}=e;super(),this.address=t,this.delta=n,this.attribute_map={address:"address",delta:"delta"}}static from_obj_for_encoding(e){if("undefined"===typeof e.address)throw new Error("Response is missing required field 'address': ".concat(e));if(!Array.isArray(e.delta))throw new Error("Response is missing required array field 'delta': ".concat(e));return new Vn({address:e.address,delta:e.delta.map(yr.from_obj_for_encoding)})}}class Hn extends Ae{constructor(e){let{accounts:t,currentRound:n,nextToken:r}=e;super(),this.accounts=t,this.currentRound=n,this.nextToken=r,this.attribute_map={accounts:"accounts",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e.accounts))throw new Error("Response is missing required array field 'accounts': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new Hn({accounts:e.accounts.map(zn.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class Kn extends Ae{constructor(e){let{id:t,params:n,createdAtRound:r,deleted:i,deletedAtRound:o}=e;super(),this.id=t,this.params=n,this.createdAtRound=r,this.deleted=i,this.deletedAtRound=o,this.attribute_map={id:"id",params:"params",createdAtRound:"created-at-round",deleted:"deleted",deletedAtRound:"deleted-at-round"}}static from_obj_for_encoding(e){if("undefined"===typeof e.id)throw new Error("Response is missing required field 'id': ".concat(e));if("undefined"===typeof e.params)throw new Error("Response is missing required field 'params': ".concat(e));return new Kn({id:e.id,params:Xn.from_obj_for_encoding(e.params),createdAtRound:e["created-at-round"],deleted:e.deleted,deletedAtRound:e["deleted-at-round"]})}}class Gn extends Ae{constructor(e){let{id:t,schema:n,closedOutAtRound:r,deleted:i,keyValue:o,optedInAtRound:a}=e;super(),this.id=t,this.schema=n,this.closedOutAtRound=r,this.deleted=i,this.keyValue=o,this.optedInAtRound=a,this.attribute_map={id:"id",schema:"schema",closedOutAtRound:"closed-out-at-round",deleted:"deleted",keyValue:"key-value",optedInAtRound:"opted-in-at-round"}}static from_obj_for_encoding(e){if("undefined"===typeof e.id)throw new Error("Response is missing required field 'id': ".concat(e));if("undefined"===typeof e.schema)throw new Error("Response is missing required field 'schema': ".concat(e));return new Gn({id:e.id,schema:$n.from_obj_for_encoding(e.schema),closedOutAtRound:e["closed-out-at-round"],deleted:e.deleted,keyValue:"undefined"!==typeof e["key-value"]?e["key-value"].map(Ir.from_obj_for_encoding):void 0,optedInAtRound:e["opted-in-at-round"]})}}class Zn extends Ae{constructor(e){let{appsLocalStates:t,currentRound:n,nextToken:r}=e;super(),this.appsLocalStates=t,this.currentRound=n,this.nextToken=r,this.attribute_map={appsLocalStates:"apps-local-states",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e["apps-local-states"]))throw new Error("Response is missing required array field 'apps-local-states': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new Zn({appsLocalStates:e["apps-local-states"].map(Gn.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class Qn extends Ae{constructor(e){let{logs:t,txid:n}=e;super(),this.logs=t,this.txid=n,this.attribute_map={logs:"logs",txid:"txid"}}static from_obj_for_encoding(e){if(!Array.isArray(e.logs))throw new Error("Response is missing required array field 'logs': ".concat(e));if("undefined"===typeof e.txid)throw new Error("Response is missing required field 'txid': ".concat(e));return new Qn({logs:e.logs,txid:e.txid})}}class Yn extends Ae{constructor(e){let{applicationId:t,currentRound:n,logData:r,nextToken:i}=e;super(),this.applicationId=t,this.currentRound=n,this.logData=r,this.nextToken=i,this.attribute_map={applicationId:"application-id",currentRound:"current-round",logData:"log-data",nextToken:"next-token"}}static from_obj_for_encoding(e){if("undefined"===typeof e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new Yn({applicationId:e["application-id"],currentRound:e["current-round"],logData:"undefined"!==typeof e["log-data"]?e["log-data"].map(Qn.from_obj_for_encoding):void 0,nextToken:e["next-token"]})}}class Xn extends Ae{constructor(e){let{approvalProgram:t,clearStateProgram:n,creator:r,extraProgramPages:i,globalState:o,globalStateSchema:a,localStateSchema:l}=e;super(),this.approvalProgram="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.clearStateProgram="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.creator=r,this.extraProgramPages=i,this.globalState=o,this.globalStateSchema=a,this.localStateSchema=l,this.attribute_map={approvalProgram:"approval-program",clearStateProgram:"clear-state-program",creator:"creator",extraProgramPages:"extra-program-pages",globalState:"global-state",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema"}}static from_obj_for_encoding(e){if("undefined"===typeof e["approval-program"])throw new Error("Response is missing required field 'approval-program': ".concat(e));if("undefined"===typeof e["clear-state-program"])throw new Error("Response is missing required field 'clear-state-program': ".concat(e));return new Xn({approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],creator:e.creator,extraProgramPages:e["extra-program-pages"],globalState:"undefined"!==typeof e["global-state"]?e["global-state"].map(Ir.from_obj_for_encoding):void 0,globalStateSchema:"undefined"!==typeof e["global-state-schema"]?$n.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:"undefined"!==typeof e["local-state-schema"]?$n.from_obj_for_encoding(e["local-state-schema"]):void 0})}}class Jn extends Ae{constructor(e){let{currentRound:t,application:n}=e;super(),this.currentRound=t,this.application=n,this.attribute_map={currentRound:"current-round",application:"application"}}static from_obj_for_encoding(e){if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new Jn({currentRound:e["current-round"],application:"undefined"!==typeof e.application?Kn.from_obj_for_encoding(e.application):void 0})}}class $n extends Ae{constructor(e){let{numByteSlice:t,numUint:n}=e;
2super(),this.numByteSlice=t,this.numUint=n,this.attribute_map={numByteSlice:"num-byte-slice",numUint:"num-uint"}}static from_obj_for_encoding(e){if("undefined"===typeof e["num-byte-slice"])throw new Error("Response is missing required field 'num-byte-slice': ".concat(e));if("undefined"===typeof e["num-uint"])throw new Error("Response is missing required field 'num-uint': ".concat(e));return new $n({numByteSlice:e["num-byte-slice"],numUint:e["num-uint"]})}}class er extends Ae{constructor(e){let{applications:t,currentRound:n,nextToken:r}=e;super(),this.applications=t,this.currentRound=n,this.nextToken=r,this.attribute_map={applications:"applications",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e.applications))throw new Error("Response is missing required array field 'applications': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new er({applications:e.applications.map(Kn.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class tr extends Ae{constructor(e){let{index:t,params:n,createdAtRound:r,deleted:i,destroyedAtRound:o}=e;super(),this.index=t,this.params=n,this.createdAtRound=r,this.deleted=i,this.destroyedAtRound=o,this.attribute_map={index:"index",params:"params",createdAtRound:"created-at-round",deleted:"deleted",destroyedAtRound:"destroyed-at-round"}}static from_obj_for_encoding(e){if("undefined"===typeof e.index)throw new Error("Response is missing required field 'index': ".concat(e));if("undefined"===typeof e.params)throw new Error("Response is missing required field 'params': ".concat(e));return new tr({index:e.index,params:or.from_obj_for_encoding(e.params),createdAtRound:e["created-at-round"],deleted:e.deleted,destroyedAtRound:e["destroyed-at-round"]})}}class nr extends Ae{constructor(e){let{balances:t,currentRound:n,nextToken:r}=e;super(),this.balances=t,this.currentRound=n,this.nextToken=r,this.attribute_map={balances:"balances",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e.balances))throw new Error("Response is missing required array field 'balances': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new nr({balances:e.balances.map(xr.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class rr extends Ae{constructor(e){let{amount:t,assetId:n,isFrozen:r,deleted:i,optedInAtRound:o,optedOutAtRound:a}=e;super(),this.amount=t,this.assetId=n,this.isFrozen=r,this.deleted=i,this.optedInAtRound=o,this.optedOutAtRound=a,this.attribute_map={amount:"amount",assetId:"asset-id",isFrozen:"is-frozen",deleted:"deleted",optedInAtRound:"opted-in-at-round",optedOutAtRound:"opted-out-at-round"}}static from_obj_for_encoding(e){if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if("undefined"===typeof e["is-frozen"])throw new Error("Response is missing required field 'is-frozen': ".concat(e));return new rr({amount:e.amount,assetId:e["asset-id"],isFrozen:e["is-frozen"],deleted:e.deleted,optedInAtRound:e["opted-in-at-round"],optedOutAtRound:e["opted-out-at-round"]})}}class ir extends Ae{constructor(e){let{assets:t,currentRound:n,nextToken:r}=e;super(),this.assets=t,this.currentRound=n,this.nextToken=r,this.attribute_map={assets:"assets",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e.assets))throw new Error("Response is missing required array field 'assets': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new ir({assets:e.assets.map(rr.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class or extends Ae{constructor(e){let{creator:t,decimals:n,total:r,clawback:i,defaultFrozen:o,freeze:a,manager:l,metadataHash:c,name:u,nameB64:h,reserve:d,unitName:p,unitNameB64:f,url:m,urlB64:g}=e;super(),this.creator=t,this.decimals=n,this.total=r,this.clawback=i,this.defaultFrozen=o,this.freeze=a,this.manager=l,this.metadataHash="string"===typeof c?new Uint8Array(s.lW.from(c,"base64")):c,this.name=u,this.nameB64="string"===typeof h?new Uint8Array(s.lW.from(h,"base64")):h,this.reserve=d,this.unitName=p,this.unitNameB64="string"===typeof f?new Uint8Array(s.lW.from(f,"base64")):f,this.url=m,this.urlB64="string"===typeof g?new Uint8Array(s.lW.from(g,"base64")):g,this.attribute_map={creator:"creator",decimals:"decimals",total:"total",clawback:"clawback",defaultFrozen:"default-frozen",freeze:"freeze",manager:"manager",metadataHash:"metadata-hash",name:"name",nameB64:"name-b64",reserve:"reserve",unitName:"unit-name",unitNameB64:"unit-name-b64",url:"url",urlB64:"url-b64"}}static from_obj_for_encoding(e){if("undefined"===typeof e.creator)throw new Error("Response is missing required field 'creator': ".concat(e));if("undefined"===typeof e.decimals)throw new Error("Response is missing required field 'decimals': ".concat(e));if("undefined"===typeof e.total)throw new Error("Response is missing required field 'total': ".concat(e));return new or({creator:e.creator,decimals:e.decimals,total:e.total,clawback:e.clawback,defaultFrozen:e["default-frozen"],freeze:e.freeze,manager:e.manager,metadataHash:e["metadata-hash"],name:e.name,nameB64:e["name-b64"],reserve:e.reserve,unitName:e["unit-name"],unitNameB64:e["unit-name-b64"],url:e.url,urlB64:e["url-b64"]})}}class ar extends Ae{constructor(e){let{asset:t,currentRound:n}=e;super(),this.asset=t,this.currentRound=n,this.attribute_map={asset:"asset",currentRound:"current-round"}}static from_obj_for_encoding(e){if("undefined"===typeof e.asset)throw new Error("Response is missing required field 'asset': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new ar({asset:tr.from_obj_for_encoding(e.asset),currentRound:e["current-round"]})}}class sr extends Ae{constructor(e){let{assets:t,currentRound:n,nextToken:r}=e;super(),this.assets=t,this.currentRound=n,this.nextToken=r,this.attribute_map={assets:"assets",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e.assets))throw new Error("Response is missing required array field 'assets': ".concat(e));if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new sr({assets:e.assets.map(tr.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class lr extends Ae{constructor(e){let{genesisHash:t,genesisId:n,previousBlockHash:r,round:i,seed:o,timestamp:a,transactionsRoot:l,transactionsRootSha256:c,participationUpdates:u,rewards:h,stateProofTracking:d,transactions:p,txnCounter:f,upgradeState:m,upgradeVote:g}=e;super(),this.genesisHash="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.genesisId=n,this.previousBlockHash="string"===typeof r?new Uint8Array(s.lW.from(r,"base64")):r,this.round=i,this.seed="string"===typeof o?new Uint8Array(s.lW.from(o,"base64")):o,this.timestamp=a,this.transactionsRoot="string"===typeof l?new Uint8Array(s.lW.from(l,"base64")):l,this.transactionsRootSha256="string"===typeof c?new Uint8Array(s.lW.from(c,"base64")):c,this.participationUpdates=u,this.rewards=h,this.stateProofTracking=d,this.transactions=p,this.txnCounter=f,this.upgradeState=m,this.upgradeVote=g,this.attribute_map={genesisHash:"genesis-hash",genesisId:"genesis-id",previousBlockHash:"previous-block-hash",round:"roun
2d",seed:"seed",timestamp:"timestamp",transactionsRoot:"transactions-root",transactionsRootSha256:"transactions-root-sha256",participationUpdates:"participation-updates",rewards:"rewards",stateProofTracking:"state-proof-tracking",transactions:"transactions",txnCounter:"txn-counter",upgradeState:"upgrade-state",upgradeVote:"upgrade-vote"}}static from_obj_for_encoding(e){if("undefined"===typeof e["genesis-hash"])throw new Error("Response is missing required field 'genesis-hash': ".concat(e));if("undefined"===typeof e["genesis-id"])throw new Error("Response is missing required field 'genesis-id': ".concat(e));if("undefined"===typeof e["previous-block-hash"])throw new Error("Response is missing required field 'previous-block-hash': ".concat(e));if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));if("undefined"===typeof e.seed)throw new Error("Response is missing required field 'seed': ".concat(e));if("undefined"===typeof e.timestamp)throw new Error("Response is missing required field 'timestamp': ".concat(e));if("undefined"===typeof e["transactions-root"])throw new Error("Response is missing required field 'transactions-root': ".concat(e));if("undefined"===typeof e["transactions-root-sha256"])throw new Error("Response is missing required field 'transactions-root-sha256': ".concat(e));return new lr({genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],previousBlockHash:e["previous-block-hash"],round:e.round,seed:e.seed,timestamp:e.timestamp,transactionsRoot:e["transactions-root"],transactionsRootSha256:e["transactions-root-sha256"],participationUpdates:"undefined"!==typeof e["participation-updates"]?Ar.from_obj_for_encoding(e["participation-updates"]):void 0,rewards:"undefined"!==typeof e.rewards?cr.from_obj_for_encoding(e.rewards):void 0,stateProofTracking:"undefined"!==typeof e["state-proof-tracking"]?e["state-proof-tracking"].map(Tr.from_obj_for_encoding):void 0,transactions:"undefined"!==typeof e.transactions?e.transactions.map(Or.from_obj_for_encoding):void 0,txnCounter:e["txn-counter"],upgradeState:"undefined"!==typeof e["upgrade-state"]?ur.from_obj_for_encoding(e["upgrade-state"]):void 0,upgradeVote:"undefined"!==typeof e["upgrade-vote"]?hr.from_obj_for_encoding(e["upgrade-vote"]):void 0})}}class cr extends Ae{constructor(e){let{feeSink:t,rewardsCalculationRound:n,rewardsLevel:r,rewardsPool:i,rewardsRate:o,rewardsResidue:a}=e;super(),this.feeSink=t,this.rewardsCalculationRound=n,this.rewardsLevel=r,this.rewardsPool=i,this.rewardsRate=o,this.rewardsResidue=a,this.attribute_map={feeSink:"fee-sink",rewardsCalculationRound:"rewards-calculation-round",rewardsLevel:"rewards-level",rewardsPool:"rewards-pool",rewardsRate:"rewards-rate",rewardsResidue:"rewards-residue"}}static from_obj_for_encoding(e){if("undefined"===typeof e["fee-sink"])throw new Error("Response is missing required field 'fee-sink': ".concat(e));if("undefined"===typeof e["rewards-calculation-round"])throw new Error("Response is missing required field 'rewards-calculation-round': ".concat(e));if("undefined"===typeof e["rewards-level"])throw new Error("Response is missing required field 'rewards-level': ".concat(e));if("undefined"===typeof e["rewards-pool"])throw new Error("Response is missing required field 'rewards-pool': ".concat(e));if("undefined"===typeof e["rewards-rate"])throw new Error("Response is missing required field 'rewards-rate': ".concat(e));if("undefined"===typeof e["rewards-residue"])throw new Error("Response is missing required field 'rewards-residue': ".concat(e));return new cr({feeSink:e["fee-sink"],rewardsCalculationRound:e["rewards-calculation-round"],rewardsLevel:e["rewards-level"],rewardsPool:e["rewards-pool"],rewardsRate:e["rewards-rate"],rewardsResidue:e["rewards-residue"]})}}class ur extends Ae{constructor(e){let{currentProtocol:t,nextProtocol:n,nextProtocolApprovals:r,nextProtocolSwitchOn:i,nextProtocolVoteBefore:o}=e;super(),this.currentProtocol=t,this.nextProtocol=n,this.nextProtocolApprovals=r,this.nextProtocolSwitchOn=i,this.nextProtocolVoteBefore=o,this.attribute_map={currentProtocol:"current-protocol",nextProtocol:"next-protocol",nextProtocolApprovals:"next-protocol-approvals",nextProtocolSwitchOn:"next-protocol-switch-on",nextProtocolVoteBefore:"next-protocol-vote-before"}}static from_obj_for_encoding(e){if("undefined"===typeof e["current-protocol"])throw new Error("Response is missing required field 'current-protocol': ".concat(e));return new ur({currentProtocol:e["current-protocol"],nextProtocol:e["next-protocol"],nextProtocolApprovals:e["next-protocol-approvals"],nextProtocolSwitchOn:e["next-protocol-switch-on"],nextProtocolVoteBefore:e["next-protocol-vote-before"]})}}class hr extends Ae{constructor(e){let{upgradeApprove:t,upgradeDelay:n,upgradePropose:r}=e;super(),this.upgradeApprove=t,this.upgradeDelay=n,this.upgradePropose=r,this.attribute_map={upgradeApprove:"upgrade-approve",upgradeDelay:"upgrade-delay",upgradePropose:"upgrade-propose"}}static from_obj_for_encoding(e){return new hr({upgradeApprove:e["upgrade-approve"],upgradeDelay:e["upgrade-delay"],upgradePropose:e["upgrade-propose"]})}}class dr extends Ae{constructor(e){let{name:t,value:n}=e;super(),this.name="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.value="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.attribute_map={name:"name",value:"value"}}static from_obj_for_encoding(e){if("undefined"===typeof e.name)throw new Error("Response is missing required field 'name': ".concat(e));if("undefined"===typeof e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new dr({name:e.name,value:e.value})}}class pr extends Ae{constructor(e){let{name:t}=e;super(),this.name="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.attribute_map={name:"name"}}static from_obj_for_encoding(e){if("undefined"===typeof e.name)throw new Error("Response is missing required field 'name': ".concat(e));return new pr({name:e.name})}}class fr extends Ae{constructor(e){let{applicationId:t,boxes:n,nextToken:r}=e;super(),this.applicationId=t,this.boxes=n,this.nextToken=r,this.attribute_map={applicationId:"application-id",boxes:"boxes",nextToken:"next-token"}}static from_obj_for_encoding(e){if("undefined"===typeof e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));if(!Array.isArray(e.boxes))throw new Error("Response is missing required array field 'boxes': ".concat(e));return new fr({applicationId:e["application-id"],boxes:e.boxes.map(pr.from_obj_for_encoding),nextToken:e["next-token"]})}}class mr extends Ae{constructor(e){let{message:t,data:n}=e;super(),this.message=t,this.data=n,this.attribute_map={message:"message",data:"data"}}static from_obj_for_encoding(e){if("undefined"===typeof e.message)throw new Error("Response is missing required field 'message': ".concat(e));return new mr({message:e.message,data:e.data})}}class gr extends Ae{constructor(e){let{action:t,bytes:n,uint:r}=e;super(),this.action=t,this.bytes=n,this.uint=r,this.attribute_map={action:"action",bytes:"bytes",uint:"uint"}}static from_obj_for_encoding(e){if("undefined"===typeof e.action)throw new Error("Response is missing required field 'action': ".concat(e));return new gr({action:e.action,bytes:e.bytes,uint:e.uint})}}class yr extends Ae{constructor(e){let{key:t,value:n}=e;super(),this.key=t,this.value=n,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){if("undefined"===typeof e.key)throw new Error("Response is missing required field 'key': ".concat(e));if("undefined"===typeof e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new yr({key:e.key,value:gr.from_obj_for_encoding(e.value)})}}class vr extends Ae{constructor(e){let{hashType:t}=e;super(),this.hashType=t,this.attribute_map={hashType:"hash-type"}}static from_obj_for_encoding(e){return new vr({hashType:e["hash-type"]})}}class wr extends Ae{constructor(e){let{dbAvailable:t,isMigrating:n,message:r,round:i,version:o,data:a,errors:s}=e;super(),this.dbAvailable=t,this.isMigrating=n,this.message=r,this.round=i,this.version=o,this.data=a,this.errors=s,this.attribute_map={dbAvailable:"db-available",isMigrating:"is-migrating",message:"message",round:"roun
2d",version:"version",data:"data",errors:"errors"}}static from_obj_for_encoding(e){if("undefined"===typeof e["db-available"])throw new Error("Response is missing required field 'db-available': ".concat(e));if("undefined"===typeof e["is-migrating"])throw new Error("Response is missing required field 'is-migrating': ".concat(e));if("undefined"===typeof e.message)throw new Error("Response is missing required field 'message': ".concat(e));if("undefined"===typeof e.round)throw new Error("Response is missing required field 'round': ".concat(e));if("undefined"===typeof e.version)throw new Error("Response is missing required field 'version': ".concat(e));return new wr({dbAvailable:e["db-available"],isMigrating:e["is-migrating"],message:e.message,round:e.round,version:e.version,data:e.data,errors:e.errors})}}class br extends Ae{constructor(e){let{blockHeadersCommitment:t,firstAttestedRound:n,latestAttestedRound:r,lnProvenWeight:i,votersCommitment:o}=e;super(),this.blockHeadersCommitment="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.firstAttestedRound=n,this.latestAttestedRound=r,this.lnProvenWeight=i,this.votersCommitment="string"===typeof o?new Uint8Array(s.lW.from(o,"base64")):o,this.attribute_map={blockHeadersCommitment:"block-headers-commitment",firstAttestedRound:"first-attested-round",latestAttestedRound:"latest-attested-round",lnProvenWeight:"ln-proven-weight",votersCommitment:"voters-commitment"}}static from_obj_for_encoding(e){return new br({blockHeadersCommitment:e["block-headers-commitment"],firstAttestedRound:e["first-attested-round"],latestAttestedRound:e["latest-attested-round"],lnProvenWeight:e["ln-proven-weight"],votersCommitment:e["voters-commitment"]})}}class _r extends Ae{constructor(e){let{hashFactory:t,path:n,treeDepth:r}=e;super(),this.hashFactory=t,this.path=n,this.treeDepth=r,this.attribute_map={hashFactory:"hash-factory",path:"path",treeDepth:"tree-depth"}}static from_obj_for_encoding(e){return new _r({hashFactory:"undefined"!==typeof e["hash-factory"]?vr.from_obj_for_encoding(e["hash-factory"]):void 0,path:e.path,treeDepth:e["tree-depth"]})}}class xr extends Ae{constructor(e){let{address:t,amount:n,isFrozen:r,deleted:i,optedInAtRound:o,optedOutAtRound:a}=e;super(),this.address=t,this.amount=n,this.isFrozen=r,this.deleted=i,this.optedInAtRound=o,this.optedOutAtRound=a,this.attribute_map={address:"address",amount:"amount",isFrozen:"is-frozen",deleted:"deleted",optedInAtRound:"opted-in-at-round",optedOutAtRound:"opted-out-at-round"}}static from_obj_for_encoding(e){if("undefined"===typeof e.address)throw new Error("Response is missing required field 'address': ".concat(e));if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e["is-frozen"])throw new Error("Response is missing required field 'is-frozen': ".concat(e));return new xr({address:e.address,amount:e.amount,isFrozen:e["is-frozen"],deleted:e.deleted,optedInAtRound:e["opted-in-at-round"],optedOutAtRound:e["opted-out-at-round"]})}}class Ar extends Ae{constructor(e){let{expiredParticipationAccounts:t}=e;super(),this.expiredParticipationAccounts=t,this.attribute_map={expiredParticipationAccounts:"expired-participation-accounts"}}static from_obj_for_encoding(e){return new Ar({expiredParticipationAccounts:e["expired-participation-accounts"]})}}class kr extends Ae{constructor(e){let{partProofs:t,positionsToReveal:n,reveals:r,saltVersion:i,sigCommit:o,sigProofs:a,signedWeight:l}=e;super(),this.partProofs=t,this.positionsToReveal=n,this.reveals=r,this.saltVersion=i,this.sigCommit="string"===typeof o?new Uint8Array(s.lW.from(o,"base64")):o,this.sigProofs=a,this.signedWeight=l,this.attribute_map={partProofs:"part-proofs",positionsToReveal:"positions-to-reveal",reveals:"reveals",saltVersion:"salt-version",sigCommit:"sig-commit",sigProofs:"sig-proofs",signedWeight:"signed-weight"}}static from_obj_for_encoding(e){return new kr({partProofs:"undefined"!==typeof e["part-proofs"]?_r.from_obj_for_encoding(e["part-proofs"]):void 0,positionsToReveal:e["positions-to-reveal"],reveals:"undefined"!==typeof e.reveals?e.reveals.map(Er.from_obj_for_encoding):void 0,saltVersion:e["salt-version"],sigCommit:e["sig-commit"],sigProofs:"undefined"!==typeof e["sig-proofs"]?_r.from_obj_for_encoding(e["sig-proofs"]):void 0,signedWeight:e["signed-weight"]})}}class Sr extends Ae{constructor(e){let{verifier:t,weight:n}=e;super(),this.verifier=t,this.weight=n,this.attribute_map={verifier:"verifier",weight:"weight"}}static from_obj_for_encoding(e){return new Sr({verifier:"undefined"!==typeof e.verifier?Pr.from_obj_for_encoding(e.verifier):void 0,weight:e.weight})}}class Er extends Ae{constructor(e){let{participant:t,position:n,sigSlot:r}=e;super(),this.participant=t,this.position=n,this.sigSlot=r,this.attribute_map={participant:"participant",position:"position",sigSlot:"sig-slot"}}static from_obj_for_encoding(e){return new Er({participant:"undefined"!==typeof e.participant?Sr.from_obj_for_encoding(e.participant):void 0,position:e.position,sigSlot:"undefined"!==typeof e["sig-slot"]?Cr.from_obj_for_encoding(e["sig-slot"]):void 0})}}class Cr extends Ae{constructor(e){let{lowerSigWeight:t,signature:n}=e;super(),this.lowerSigWeight=t,this.signature=n,this.attribute_map={lowerSigWeight:"lower-sig-weight",signature:"signature"}}static from_obj_for_encoding(e){return new Cr({lowerSigWeight:e["lower-sig-weight"],signature:"undefined"!==typeof e.signature?Mr.from_obj_for_encoding(e.signature):void 0})}}class Mr extends Ae{constructor(e){let{falconSignature:t,merkleArrayIndex:n,proof:r,verifyingKey:i}=e;super(),this.falconSignature="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.merkleArrayIndex=n,this.proof=r,this.verifyingKey="string"===typeof i?new Uint8Array(s.lW.from(i,"base64")):i,this.attribute_map={falconSignature:"falcon-signature",merkleArrayIndex:"merkle-array-index",proof:"proof",verifyingKey:"verifying-key"}}static from_obj_for_encoding(e){return new Mr({falconSignature:e["falcon-signature"],merkleArrayIndex:e["merkle-array-index"],proof:"undefined"!==typeof e.proof?_r.from_obj_for_encoding(e.proof):void 0,verifyingKey:e["verifying-key"]})}}class Tr extends Ae{constructor(e){let{nextRound:t,onlineTotalWeight:n,type:r,votersCommitment:i}=e;super(),this.nextRound=t,this.onlineTotalWeight=n,this.type=r,this.votersCommitment="string"===typeof i?new Uint8Array(s.lW.from(i,"base64")):i,this.attribute_map={nextRound:"next-round",onlineTotalWeight:"online-total-weight",type:"type",votersCommitment:"voters-commitment"}}static from_obj_for_encoding(e){return new Tr({nextRound:e["next-round"],onlineTotalWeight:e["online-total-weight"],type:e.type,votersCommitment:e["voters-commitment"]})}}
2class Pr extends Ae{constructor(e){let{commitment:t,keyLifetime:n}=e;super(),this.commitment="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.keyLifetime=n,this.attribute_map={commitment:"commitment",keyLifetime:"key-lifetime"}}static from_obj_for_encoding(e){return new Pr({commitment:e.commitment,keyLifetime:e["key-lifetime"]})}}class Rr extends Ae{constructor(e){let{numByteSlice:t,numUint:n}=e;super(),this.numByteSlice=t,this.numUint=n,this.attribute_map={numByteSlice:"num-byte-slice",numUint:"num-uint"}}static from_obj_for_encoding(e){if("undefined"===typeof e["num-byte-slice"])throw new Error("Response is missing required field 'num-byte-slice': ".concat(e));if("undefined"===typeof e["num-uint"])throw new Error("Response is missing required field 'num-uint': ".concat(e));return new Rr({numByteSlice:e["num-byte-slice"],numUint:e["num-uint"]})}}class Ir extends Ae{constructor(e){let{key:t,value:n}=e;super(),this.key=t,this.value=n,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){if("undefined"===typeof e.key)throw new Error("Response is missing required field 'key': ".concat(e));if("undefined"===typeof e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new Ir({key:e.key,value:Lr.from_obj_for_encoding(e.value)})}}class Lr extends Ae{constructor(e){let{bytes:t,type:n,uint:r}=e;super(),this.bytes=t,this.type=n,this.uint=r,this.attribute_map={bytes:"bytes",type:"type",uint:"uint"}}static from_obj_for_encoding(e){if("undefined"===typeof e.bytes)throw new Error("Response is missing required field 'bytes': ".concat(e));if("undefined"===typeof e.type)throw new Error("Response is missing required field 'type': ".concat(e));if("undefined"===typeof e.uint)throw new Error("Response is missing required field 'uint': ".concat(e));return new Lr({bytes:e.bytes,type:e.type,uint:e.uint})}}class Or extends Ae{constructor(e){let{fee:t,firstValid:n,lastValid:r,sender:i,applicationTransaction:o,assetConfigTransaction:a,assetFreezeTransaction:l,assetTransferTransaction:c,authAddr:u,closeRewards:h,closingAmount:d,confirmedRound:p,createdApplicationIndex:f,createdAssetIndex:m,genesisHash:g,genesisId:y,globalStateDelta:v,group:w,id:b,innerTxns:_,intraRoundOffset:x,keyregTransaction:A,lease:k,localStateDelta:S,logs:E,note:C,paymentTransaction:M,receiverRewards:T,rekeyTo:P,roundTime:R,senderRewards:I,signature:L,stateProofTransaction:O,txType:D}=e;super(),this.fee=t,this.firstValid=n,this.lastValid=r,this.sender=i,this.applicationTransaction=o,this.assetConfigTransaction=a,this.assetFreezeTransaction=l,this.assetTransferTransaction=c,this.authAddr=u,this.closeRewards=h,this.closingAmount=d,this.confirmedRound=p,this.createdApplicationIndex=f,this.createdAssetIndex=m,this.genesisHash="string"===typeof g?new Uint8Array(s.lW.from(g,"base64")):g,this.genesisId=y,this.globalStateDelta=v,this.group="string"===typeof w?new Uint8Array(s.lW.from(w,"base64")):w,this.id=b,this.innerTxns=_,this.intraRoundOffset=x,this.keyregTransaction=A,this.lease="string"===typeof k?new Uint8Array(s.lW.from(k,"base64")):k,this.localStateDelta=S,this.logs=E,this.note="string"===typeof C?new Uint8Array(s.lW.from(C,"base64")):C,this.paymentTransaction=M,this.receiverRewards=T,this.rekeyTo=P,this.roundTime=R,this.senderRewards=I,this.signature=L,this.stateProofTransaction=O,this.txType=D,this.attribute_map={fee:"fee",firstValid:"first-valid",lastValid:"last-valid",sender:"sender",applicationTransaction:"application-transaction",assetConfigTransaction:"asset-config-transaction",assetFreezeTransaction:"asset-freeze-transaction",assetTransferTransaction:"asset-transfer-transaction",authAddr:"auth-addr",closeRewards:"close-rewards",closingAmount:"closing-amount",confirmedRound:"confirmed-round",createdApplicationIndex:"created-application-index",createdAssetIndex:"created-asset-index",genesisHash:"genesis-hash",genesisId:"genesis-id",globalStateDelta:"global-state-delta",group:"group",id:"id",innerTxns:"inner-txns",intraRoundOffset:"intra-round-offset",keyregTransaction:"keyreg-transaction",lease:"lease",localStateDelta:"local-state-delta",logs:"logs",note:"note",paymentTransaction:"payment-transaction",receiverRewards:"receiver-rewards",rekeyTo:"rekey-to",roundTime:"round-time",senderRewards:"sender-rewards",signature:"signature",stateProofTransaction:"state-proof-transaction",txType:"tx-type"}}static from_obj_for_encoding(e){if("undefined"===typeof e.fee)throw new Error("Response is missing required field 'fee': ".concat(e));if("undefined"===typeof e["first-valid"])throw new Error("Response is missing required field 'first-valid': ".concat(e));if("undefined"===typeof e["last-valid"])throw new Error("Response is missing required field 'last-valid': ".concat(e));if("undefined"===typeof e.sender)throw new Error("Response is missing required field 'sender': ".concat(e));return new Or({fee:e.fee,firstValid:e["first-valid"],lastValid:e["last-valid"],sender:e.sender,applicationTransaction:"undefined"!==typeof e["application-transaction"]?Dr.from_obj_for_encoding(e["application-transaction"]):void 0,assetConfigTransaction:"undefined"!==typeof e["asset-config-transaction"]?Br.from_obj_for_encoding(e["asset-config-transaction"]):void 0,assetFreezeTransaction:"undefined"!==typeof e["asset-freeze-transaction"]?Nr.from_obj_for_encoding(e["asset-freeze-transaction"]):void 0,assetTransferTransaction:"undefined"!==typeof e["asset-transfer-transaction"]?Fr.from_obj_for_encoding(e["asset-transfer-transaction"]):void 0,authAddr:e["auth-addr"],closeRewards:e["close-rewards"],closingAmou
2nt:e["closing-amount"],confirmedRound:e["confirmed-round"],createdApplicationIndex:e["created-application-index"],createdAssetIndex:e["created-asset-index"],genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],globalStateDelta:"undefined"!==typeof e["global-state-delta"]?e["global-state-delta"].map(yr.from_obj_for_encoding):void 0,group:e.group,id:e.id,innerTxns:"undefined"!==typeof e["inner-txns"]?e["inner-txns"].map(Or.from_obj_for_encoding):void 0,intraRoundOffset:e["intra-round-offset"],keyregTransaction:"undefined"!==typeof e["keyreg-transaction"]?jr.from_obj_for_encoding(e["keyreg-transaction"]):void 0,lease:e.lease,localStateDelta:"undefined"!==typeof e["local-state-delta"]?e["local-state-delta"].map(Vn.from_obj_for_encoding):void 0,logs:e.logs,note:e.note,paymentTransaction:"undefined"!==typeof e["payment-transaction"]?Ur.from_obj_for_encoding(e["payment-transaction"]):void 0,receiverRewards:e["receiver-rewards"],rekeyTo:e["rekey-to"],roundTime:e["round-time"],senderRewards:e["sender-rewards"],signature:"undefined"!==typeof e.signature?qr.from_obj_for_encoding(e.signature):void 0,stateProofTransaction:"undefined"!==typeof e["state-proof-transaction"]?Kr.from_obj_for_encoding(e["state-proof-transaction"]):void 0,txType:e["tx-type"]})}}class Dr extends Ae{constructor(e){let{applicationId:t,accounts:n,applicationArgs:r,approvalProgram:i,clearStateProgram:o,extraProgramPages:a,foreignApps:l,foreignAssets:c,globalStateSchema:u,localStateSchema:h,onCompletion:d}=e;super(),this.applicationId=t,this.accounts=n,this.applicationArgs=r,this.approvalProgram="string"===typeof i?new Uint8Array(s.lW.from(i,"base64")):i,this.clearStateProgram="string"===typeof o?new Uint8Array(s.lW.from(o,"base64")):o,this.extraProgramPages=a,this.foreignApps=l,this.foreignAssets=c,this.globalStateSchema=u,this.localStateSchema=h,this.onCompletion=d,this.attribute_map={applicationId:"application-id",accounts:"accounts",applicationArgs:"application-args",approvalProgram:"approval-program",clearStateProgram:"clear-state-program",extraProgramPages:"extra-program-pages",foreignApps:"foreign-apps",foreignAssets:"foreign-assets",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema",onCompletion:"on-completion"}}static from_obj_for_encoding(e){if("undefined"===typeof e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));return new Dr({applicationId:e["application-id"],accounts:e.accounts,applicationArgs:e["application-args"],approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],extraProgramPages:e["extra-program-pages"],foreignApps:e["foreign-apps"],foreignAssets:e["foreign-assets"],globalStateSchema:"undefined"!==typeof e["global-state-schema"]?Rr.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:"undefined"!==typeof e["local-state-schema"]?Rr.from_obj_for_encoding(e["local-state-schema"]):void 0,onCompletion:e["on-completion"]})}}class Br extends Ae{constructor(e){let{assetId:t,params:n}=e;super(),this.assetId=t,this.params=n,this.attribute_map={assetId:"asset-id",params:"params"}}static from_obj_for_encoding(e){return new Br({assetId:e["asset-id"],params:"undefined"!==typeof e.params?or.from_obj_for_encoding(e.params):void 0})}}class Nr extends Ae{constructor(e){let{address:t,assetId:n,newFreezeStatus:r}=e;super(),this.address=t,this.assetId=n,this.newFreezeStatus=r,this.attribute_map={address:"address",assetId:"asset-id",newFreezeStatus:"new-freeze-status"}}static from_obj_for_encoding(e){if("undefined"===typeof e.address)throw new Error("Response is missing required field 'address': ".concat(e));if("undefined"===typeof e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if("undefined"===typeof e["new-freeze-status"])throw new Error("Response is missing required field 'new-freeze-status': ".concat(e));return new Nr({address:e.address,assetId:e["asset-id"],newFreezeStatus:e["new-freeze-status"]})}}class Fr extends Ae{constructor(e){let{amount:t,assetId:n,receiver:r,closeAmount:i,closeTo:o,sender:a}=e;super(),this.amount=t,this.assetId=n,this.receiver=r,this.closeAmount=i,this.closeTo=o,this.sender=a,this.attribute_map={amount:"amount",assetId:"asset-id",receiver:"receiver",closeAmount:"close-amount",closeTo:"close-to",sender:"sender"}}static from_obj_for_encoding(e){if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if("undefined"===typeof e.receiver)throw new Error("Response is missing required field 'receiver': ".concat(e));return new Fr({amount:e.amount,assetId:e["asset-id"],receiver:e.receiver,closeAmount:e["close-amount"],closeTo:e["close-to"],sender:e.sender})}}class jr extends Ae{constructor(e){let{nonParticipation:t,selectionParticipationKey:n,stateProofKey:r,voteFirstValid:i,voteKeyDilution:o,voteLastValid:a,voteParticipationKey:l}=e;super(),this.nonParticipation=t,this.selectionParticipationKey="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.stateProofKey="string"===typeof r?new Uint8Array(s.lW.from(r,"base64")):r,this.voteFirstValid=i,this.voteKeyDilution=o,this.voteLastValid=a,this.voteParticipationKey="string"===typeof l?new Uint8Array(s.lW.from(l,"base64")):l,this.attribute_map={nonParticipation:"non-participation",selectionParticipationKey:"selection-
2participation-key",stateProofKey:"state-proof-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key"}}static from_obj_for_encoding(e){return new jr({nonParticipation:e["non-participation"],selectionParticipationKey:e["selection-participation-key"],stateProofKey:e["state-proof-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"]})}}class Ur extends Ae{constructor(e){let{amount:t,receiver:n,closeAmount:r,closeRemainderTo:i}=e;super(),this.amount=t,this.receiver=n,this.closeAmount=r,this.closeRemainderTo=i,this.attribute_map={amount:"amount",receiver:"receiver",closeAmount:"close-amount",closeRemainderTo:"close-remainder-to"}}static from_obj_for_encoding(e){if("undefined"===typeof e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if("undefined"===typeof e.receiver)throw new Error("Response is missing required field 'receiver': ".concat(e));return new Ur({amount:e.amount,receiver:e.receiver,closeAmount:e["close-amount"],closeRemainderTo:e["close-remainder-to"]})}}class zr extends Ae{constructor(e){let{currentRound:t,transaction:n}=e;super(),this.currentRound=t,this.transaction=n,this.attribute_map={currentRound:"current-round",transaction:"transaction"}}static from_obj_for_encoding(e){if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));if("undefined"===typeof e.transaction)throw new Error("Response is missing required field 'transaction': ".concat(e));return new zr({currentRound:e["current-round"],transaction:Or.from_obj_for_encoding(e.transaction)})}}class qr extends Ae{constructor(e){let{logicsig:t,multisig:n,sig:r}=e;super(),this.logicsig=t,this.multisig=n,this.sig="string"===typeof r?new Uint8Array(s.lW.from(r,"base64")):r,this.attribute_map={logicsig:"logicsig",multisig:"multisig",sig:"sig"}}static from_obj_for_encoding(e){return new qr({logicsig:"undefined"!==typeof e.logicsig?Wr.from_obj_for_encoding(e.logicsig):void 0,multisig:"undefined"!==typeof e.multisig?Vr.from_obj_for_encoding(e.multisig):void 0,sig:e.sig})}}class Wr extends Ae{constructor(e){let{logic:t,args:n,multisigSignature:r,signature:i}=e;
2super(),this.logic="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.args=n,this.multisigSignature=r,this.signature="string"===typeof i?new Uint8Array(s.lW.from(i,"base64")):i,this.attribute_map={logic:"logic",args:"args",multisigSignature:"multisig-signature",signature:"signature"}}static from_obj_for_encoding(e){if("undefined"===typeof e.logic)throw new Error("Response is missing required field 'logic': ".concat(e));return new Wr({logic:e.logic,args:e.args,multisigSignature:"undefined"!==typeof e["multisig-signature"]?Vr.from_obj_for_encoding(e["multisig-signature"]):void 0,signature:e.signature})}}class Vr extends Ae{constructor(e){let{subsignature:t,threshold:n,version:r}=e;super(),this.subsignature=t,this.threshold=n,this.version=r,this.attribute_map={subsignature:"subsignature",threshold:"threshold",version:"version"}}static from_obj_for_encoding(e){return new Vr({subsignature:"undefined"!==typeof e.subsignature?e.subsignature.map(Hr.from_obj_for_encoding):void 0,threshold:e.threshold,version:e.version})}}class Hr extends Ae{constructor(e){let{publicKey:t,signature:n}=e;super(),this.publicKey="string"===typeof t?new Uint8Array(s.lW.from(t,"base64")):t,this.signature="string"===typeof n?new Uint8Array(s.lW.from(n,"base64")):n,this.attribute_map={publicKey:"public-key",signature:"signature"}}static from_obj_for_encoding(e){return new Hr({publicKey:e["public-key"],signature:e.signature})}}class Kr extends Ae{constructor(e){let{message:t,stateProof:n,stateProofType:r}=e;super(),this.message=t,this.stateProof=n,this.stateProofType=r,this.attribute_map={message:"message",stateProof:"state-proof",stateProofType:"state-proof-type"}}static from_obj_for_encoding(e){return new Kr({message:"undefined"!==typeof e.message?br.from_obj_for_encoding(e.message):void 0,stateProof:"undefined"!==typeof e["state-proof"]?kr.from_obj_for_encoding(e["state-proof"]):void 0,stateProofType:e["state-proof-type"]})}}class Gr extends Ae{constructor(e){let{currentRound:t,transactions:n,nextToken:r}=e;super(),this.currentRound=t,this.transactions=n,this.nextToken=r,this.attribute_map={currentRound:"current-round",transactions:"transactions",nextToken:"next-token"}}static from_obj_for_encoding(e){if("undefined"===typeof e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));if(!Array.isArray(e.transactions))throw new Error("Response is missing required array field 'transactions': ".concat(e));return new Gr({currentRound:e["current-round"],transactions:e.transactions.map(Or.from_obj_for_encoding),nextToken:e["next-token"]})}}class Zr extends Nt{constructor(e,t,n,r){super(e,t),this.index=n,this.index=n;const i=s.lW.from(r).toString("base64");this.query.name=encodeURI("b64:".concat(i))}path(){return"/v2/applications/".concat(this.index,"/box")}prepare(e){return dr.from_obj_for_encoding(e)}}class Qr extends Nt{path(){return"/v2/accounts"}currencyGreaterThan(e){return this.query["currency-greater-than"]=e.toString(),this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}limit(e){return this.query.limit=e,this}assetID(e){return this.query["asset-id"]=e,this}nextToken(e){return this.query.next=e,this}round(e){return this.query.round=e,this}authAddr(e){return this.query["auth-addr"]=e,this}applicationID(e){return this.query["application-id"]=e,this}includeAll(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}exclude(e){return this.query.exclude=e,this}}class Yr extends Nt{path(){return"/v2/transactions"}notePrefix(e){return this.query["note-prefix"]=Mn(e),this}txType(e){return this.query["tx-type"]=e,this}sigType(e){return this.query["sig-type"]=e,this}txid(e){return this.query.txid=e,this}round(e){return this.query.round=e,this}minRound(e){return this.query["min-round"]=e,this}maxRound(e){return this.query["max-round"]=e,this}assetID(e){return this.query["asset-id"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query["before-time"]=e,this}afterTime(e){return this.query["after-time"]=e,this}addressRole(e){return this.query["address-role"]=e,this}address(e){return this.query.address=e,this}excludeCloseTo(e){return this.query["exclude-close-to"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query["rekey-to"]=e,this}applicationID(e){return this.query["application-id"]=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e.toString(),this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}}class Xr extends Nt{path(){return"/v2/assets"}limit(e){return this.query.limit=e,this}creator(e){return this.query.creator=e,this}name(e){return this.query.name=e,this}unit(e){return this.query.unit=e,this}index(e){return this.query["asset-id"]=e,this}nextToken(e){return this.query.next=e,this}includeAll(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}class Jr extends Nt{path(){return"/v2/applications"}index(e){return this.query["application-id"]=e,this}creator(e){return this.query.creator=e,this}nextToken(e){return this.query.next=e,this}limit(e){return this.query.limit=e,this}includeAll(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}class $r extends Nt{constructor(e,t,n){super(e,t),this.index=n,this.index=n}path(){return"/v2/applications/".concat(this.index,"/boxes")}nextToken(e){return this.query.next=e,this}limit(e){return this.query.limit=e,this}prepare(e){return fr.from_obj_for_encoding(e)}}
2class ei extends _e{constructor(e){super("X-Indexer-API-Token",e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://127.0.0.1",arguments.length>2&&void 0!==arguments[2]?arguments[2]:8080,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})}makeHealthCheck(){return new En(this.c,this.intDecoding)}lookupAssetBalances(e){return new Cn(this.c,this.intDecoding,e)}lookupAssetTransactions(e){return new Pn(this.c,this.intDecoding,e)}lookupAccountTransactions(e){return new Tn(this.c,this.intDecoding,e)}lookupBlock(e){return new Rn(this.c,this.intDecoding,e)}lookupTransactionByID(e){return new In(this.c,this.intDecoding,e)}lookupAccountByID(e){return new Ln(this.c,this.intDecoding,e)}lookupAccountAssets(e){return new On(this.c,this.intDecoding,e)}lookupAccountCreatedAssets(e){return new Dn(this.c,this.intDecoding,e)}lookupAccountAppLocalStates(e){return new Bn(this.c,this.intDecoding,e)}lookupAccountCreatedApplications(e){return new Nn(this.c,this.intDecoding,e)}lookupAssetByID(e){return new Fn(this.c,this.intDecoding,e)}lookupApplications(e){return new jn(this.c,this.intDecoding,e)}lookupApplicationLogs(e){return new Un(this.c,this.intDecoding,e)}searchAccounts(){return new Qr(this.c,this.intDecoding)}searchForTransactions(){return new Yr(this.c,this.intDecoding)}searchForAssets(){return new Xr(this.c,this.intDecoding)}searchForApplications(){return new Jr(this.c,this.intDecoding)}searchForApplicationBoxes(e){return new $r(this.c,this.intDecoding,e)}lookupApplicationBoxByIDandName(e,t){return new Zr(this.c,this.intDecoding,e,t)}}async function ti(e,t,n){const r=await e.status().do();if("undefined"===typeof r)throw new Error("Unable to get node status");const i=r["last-round"]+1;let o=i;for(;o<i+n;){let n=!1;try{const r=await e.pendingTransactionInformation(t).do();if(r["confirmed-round"])return r;if(r["pool-error"])throw n=!0,new Error("Transaction Rejected: ".concat(r["pool
2-error"]))}catch(a){if(n)throw a}await e.statusAfterBlock(o).do(),o+=1}throw new Error("Transaction not confirmed after ".concat(n," rounds"))}function ni(e,t){let n=e.toString(16);n.length!==2*t&&(n=n.padStart(2*t,"0"));const r=new Uint8Array(n.length/2);for(let i=0,o=0;i<n.length/2;i++,o+=2)r[i]=parseInt(n.slice(o,o+2),16);return r}function ri(e){let t=BigInt(0);const n=s.lW.from(e);for(let r=0;r<e.length;r++)t=BigInt(Number(n.readUIntBE(r,1)))+t*BigInt(256);return t}function ii(){const e=b(w(c().box.secretKeyLength));return{addr:K(e.publicKey),sk:e.secretKey}}const oi=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","de
2sk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","ric
2h","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"],ai="failed to decode mnemonic",si="the mnemonic contains a word that is not in the wordlist";function li(e){const t=[];let n=0,r=0;return e.forEach((function(e){n|=e<<r,r+=8,r>=11&&(t.push(2047&n),n>>=11,r-=11)})),r&&t.push(n),t}function ci(e){return e.map((e=>oi[e]))}function ui(e){return ci(li(v(e)))[0]}function hi(e){if(e.length!==M)throw new RangeError("Seed length must be ".concat(M));const t=ci(li(e)),n=ui(e);return"".concat(t.join(" ")," ").concat(n)}function di(e){const t=e.split(" "),n=t.slice(0,24);for(const o of n)if(-1===oi.indexOf(o))throw new Error(si);const r=t[t.length-1];let i=function(e){const t=[];let n=0,r=0;return e.forEach((function(e){for(n|=e<<r,r+=11;r>=8;)t.push(255&n),n>>=8,r-=8})),r&&t.push(n),new Uint8Array(t)}(n.map((e=>oi.indexOf(e))));if(33!==i.length)throw new Error(ai);if(0!==i[i.length-1])throw new Error(ai);i=i.slice(0,i.length-1);if(ui(i)===r)return i;throw new Error(ai)}function pi(e){const t=b(di(e));return{addr:K(t.publicKey),sk:t.secretKey}}function fi(e){return hi(e.slice(0,M))}function mi(e){return di(e)}function gi(e){return hi(e)}class yi{constructor(e){if(this.name="Transaction group",this.tag=s.lW.from("TG"),e.length>16){const t="".concat(e.length.toString()," transactions grouped together but max group size is ").concat(16..toString());throw Error(t)}this.txGroupHashes=e}get_obj_for_encoding(){return{txlist:this.txGroupHashes}}static from_obj_for_encoding(e){const t=Object.create(this.prototype);t.name="Transaction group",t.tag=s.lW.from("TG"),t.txGroupHashes=[];for(const n of e.txlist)t.txGroupHashes.push(s.lW.from(n));return t}toByte(){return $(this.get_obj_for_encoding())}}function vi(e){const t=[];for(const o of e){const e=he(o);
2t.push(e.rawTxID())}const n=new yi(t),r=n.toByte(),i=v(s.lW.from(y(n.tag,r)));return s.lW.from(i)}function wi(e,t){const n=vi(e),r=[];for(const i of e){const e=he(i);t&&K(e.from.publicKey)!==t||(e.group=n,r.push(e))}return r}const bi="Not enough multisig transactions to merge. Need at least two",_i="Cannot merge txs. txIDs differ",xi="Cannot merge txs. Auth addrs differ",Ai="Cannot merge txs. Multisig preimages differ",ki="Cannot merge txs. subsigs are mismatched.",Si="Cannot mutate a multisig field as it would invalidate all existing signatures.";function Ei(e,t){let{version:n,threshold:r,addrs:i}=t;const o=i.map((e=>V(e).publicKey)),a={v:n,thr:r,subsig:o.map((e=>({pk:s.lW.from(e)})))},l=e.get_obj_for_encoding(),c={msig:a,txn:l},u=G({version:n,threshold:r,pks:o});return K(l.snd)!==K(u)&&(c.sgnr=s.lW.from(u)),new Uint8Array($(c))}function Ci(e,t,n){let{rawSig:r,myPk:i}=t,{version:o,threshold:a,pks:l}=n;const c=ee(Ei(e,{version:o,threshold:a,addrs:l.map((e=>K(e)))}));let u=!1;if(c.msig.subsig.forEach(((e,t)=>{k(e.pk,i)&&(u=!0,c.msig.subsig[t].s=r)})),!1===u)throw new Error("Key does not exist");const h=G({version:o,threshold:a,pks:l});return K(c.txn.snd)!==K(h)&&(c.sgnr=s.lW.from(h)),new Uint8Array($(c))}class Mi extends ae{addLease(){throw new Error(Si)}addRekey(){throw new Error(Si)}signTxn(e){throw new Error("Cannot sign a multisig transaction using `signTxn`. Use `partialSignTxn` instead.")}partialSignTxn(e,t){let{version:n,threshold:r,pks:i}=e;const o=x(t).publicKey;return Ci(this,{rawSig:this.rawSignTxn(t),myPk:o},{version:n,threshold:r,pks:i})}partialSignWithMultisigSignature(e,t,n){if(!_(n.length))throw new Error("Cannot add multisig signature. Signature is not of the correct length.");return Ci(this,{rawSig:n,myPk:V(t).publicKey},e)}static from_obj_for_encoding(e){return super.from_obj_for_encoding(e)}}function Ti(e){if(e.length<2)throw new Error(bi);const t=ee(e[0]),n=Mi.from_obj_for_encoding(t.txn).txID(),r=t.sgnr?K(t.sgnr):void 0,i=K(G({version:t.msig.v,threshold:t.msig.thr,pks:t.msig.subsig.map((e=>e.pk))})),o=t.msig.subsig.map((e=>({...e})));for(let l=1;l<e.length;l++){const a=ee(e[l]);if(Mi.from_obj_for_encoding(a.txn).txID()!==n)throw new Error(_i);if(r!==(a.sgnr?K(a.sgnr):void 0))throw new Error(xi);if(a.msig.subsig.length!==t.msig.subsig.length)throw new Error(Ai);if(i!==K(G({version:a.msig.v,threshold:a.msig.thr,pks:a.msig.subsig.map((e=>e.pk))})))throw new Error(Ai);a.msig.subsig.forEach(((e,t)=>{if(!e.s)return;const n=o[t];if(n.s&&0!==s.lW.compare(s.lW.from(e.s),s.lW.from(n.s)))throw new Error(ki);n.s=e.s}))}const a={msig:{v:t.msig.v,thr:t.msig.thr,subsig:o},txn:t.txn};return"undefined"!==typeof r&&(a.sgnr=s.lW.from(V(r).publicKey)),new Uint8Array($(a))}function Pi(e,t,n){const r=t.v,i=t.thr,o=t.subsig,a=o.map((e=>e.pk));if(t.subsig.length<i)return!1;let s;try{s=G({version:r,threshold:i,pks:a})}catch(u){return!1}if(!g(s,n))return!1;let l=0;for(const h of o)void 0!==h.s&&(l+=1);if(l<i)return!1;let c=0;for(const h of o)void 0!==h.s&&S(e,h.s,h.pk)&&(c+=1);return!(c<i)}function Ri(e,t,n){let{version:r,threshold:i,addrs:o}=t;const a=Z({version:r,threshold:i,addrs:o});Object.prototype.hasOwnProperty.call(e,"from")||(e.from=a);const s=o.map((e=>V(e).publicKey));let l,c;return e instanceof ae?(l=e,c=Mi.prototype.partialSignTxn.call(l,{version:r,threshold:i,pks:s},n)):(l=new Mi(e),c=l.partialSignTxn({version:r,threshold:i,pks:s},n)),{txID:l.txID().toString(),blob:c}}function Ii(e,t,n){let{version:r,threshold:i,addrs:o}=t;const a=o.map((e=>V(e).publicKey)),s=ee(e),l=Mi.from_obj_for_encoding(s.txn),c=l.partialSignTxn({version:r,threshold:i,pks:a},n);return{txID:l.txID().toString(),blob:Ti([e,c])}}function Li(e,t,n,r){let{version:i,threshold:o,addrs:a}=t;const s=a.map((e=>V(e).publicKey)),l=ee(e),c=Mi.from_obj_for_encoding(l.txn),u=c.partialSignWithMultisigSignature({version:i,threshold:o,pks:s},n,r);return{txID:c.txID().toString(),blob:Ti([e,u])}}function Oi(e){let{version:t,threshold:n,addrs:r}=e;return Z({version:t,threshold:n,addrs:r})}function Di(e){if(!e||0===e.length)throw new Error("empty program");const t="\n".charCodeAt(0),n=" ".charCodeAt(0),r="~".charCodeAt(0);if(e.every((e=>e===t||(e=>n<=e&&e<=r)(e)))){const t=s.lW.from(e).toString();if(H(t))throw new Error("requesting program bytes, get Algorand address");if(s.lW.from(t,"base64").toString("base64")===t)throw new Error("program should not be b64 encoded");throw new Error("program bytes are all ASCII printable characters, not looking like Teal byte code")}}class Bi{constructor(e,t){if(this.tag=s.lW.from("Program"),t&&(!Array.isArray(t)||!t.every((e=>e.constructor===Uint8Array||s.lW.isBuffer(e)))))throw new TypeError("Invalid arguments");let n;null!=t&&(n=t.map((e=>new Uint8Array(e)))),Di(e),this.logic=e,this.args=n,this.sig=void 0,this.msig=void 0}get_obj_for_encoding(){const e={l:this.logic};return this.args&&(e.arg=this.args),this.sig?e.sig=this.sig:this.msig&&(e.msig=this.msig),e}static from_obj_for_encoding(e){const t=new Bi(e.l,e.arg);return t.sig=e.sig,t.msig=e.msig,t}verify(e){if(this.sig&&this.msig)return!1;try{Di(this.logic)}catch(n){return!1}const t=y(this.tag,this.logic);if(!this.sig&&!this.msig){return g(v(t),e)}return this.sig?S(t,this.sig,e):Pi(t,this.msig,e)}address(){const e=v(y(this.tag,this.logic));return K(new Uint8Array(e))}sign(e,t){if(null==t)this.sig=this.signProgram(e);else{const n=t.addrs.map((e=>({pk:V(e).publicKey})));this.msig={v:t.version,thr:t.threshold,subsig:n};const[r,i]=this.singleSignMultisig(e,this.msig);this.msig.subsig[i].s=r}}appendToMultisig(e){if(void 0===this.msig)throw new Error("no multisig present");const[t,n]=this.singleSignMultisig(e,this.msig);this.msig.subsig[n].s=t}signProgram(e){return A(y(this.tag,this.logic),e)}singleSignMultisig(e,t){let n=-1;const r=x(e).publicKey;for(let i=0;i<t.subsig.length;i++){const{pk:e}=t.subsig[i];if(g(e,r)){n=i;break}}if(-1===n)throw new Error("invalid secret key");return[this.signProgram(e),n]}toByte(){return $(this.get_obj_for_encoding())}static fromByte(e){const t=ee(e);return Bi.from_obj_for_encoding(t)}
2}class Ni{constructor(e,t){this.lsig=new Bi(e,t),this.sigkey=void 0}get_obj_for_encoding(){const e={lsig:this.lsig.get_obj_for_encoding()};return this.sigkey&&(e.sigkey=this.sigkey),e}static from_obj_for_encoding(e){const t=new Ni(e.lsig.l,e.lsig.arg);return t.lsig=Bi.from_obj_for_encoding(e.lsig),t.sigkey=e.sigkey,t}toByte(){return $(this.get_obj_for_encoding())}static fromByte(e){const t=ee(e);return Ni.from_obj_for_encoding(t)}isDelegated(){return!(!this.lsig.sig&&!this.lsig.msig)}verify(){const e=this.address();return this.lsig.verify(V(e).publicKey)}address(){if(this.lsig.sig&&this.lsig.msig)throw new Error("LogicSig has too many signatures. At most one of sig or msig may be present");if(this.lsig.sig){if(!this.sigkey)throw new Error("Signing key for delegated account is missing");return K(this.sigkey)}if(this.lsig.msig){return K(G({version:this.lsig.msig.v,threshold:this.lsig.msig.thr,pks:this.lsig.msig.subsig.map((e=>e.pk))}))}return this.lsig.address()}signMultisig(e,t){this.lsig.sign(t,e)}appendToMultisig(e){this.lsig.appendToMultisig(e)}sign(e){this.lsig.sign(e),this.sigkey=x(e).publicKey}}function Fi(e,t){let n,r;if(t instanceof Ni)n=t.lsig,r=V(t.address()).publicKey;else if(n=t,n.sig)r=e.from.publicKey;else if(n.msig){r=G({version:n.msig.v,threshold:n.msig.thr,pks:n.msig.subsig.map((e=>e.pk))})}else r=V(n.address()).publicKey;return function(e,t,n){if(!t.verify(n))throw new Error("Logic signature verification failed. Ensure the program and signature are valid.");const r={lsig:t.get_obj_for_encoding(),txn:e.get_obj_for_encoding()};return k(n,e.from.publicKey)||(r.sgnr=s.lW.from(n)),{txID:e.txID().toString(),blob:$(r)}}(e,n,r)}function ji(e,t){return Fi(he(e),t)}function Ui(e){return Bi.fromByte(e)}const zi=s.lW.from("ProgData");function qi(e,t,n){const r=y(V(n).publicKey,t);return A(s.lW.from(y(zi,r)),e)}function Wi(e,t,n,r){const i=y(V(t).publicKey,e);return S(s.lW.from(y(zi,i)),n,r)}function Vi(e,t,n){return qi(e,t,new Bi(n).address())}let Hi={},Ki={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach((function(e,t){Hi[e]=t,Ki[t]=e}));class Gi{constructor(e){let{version:t,sources:n,names:r,mappings:i}=e;if(this.version=t,this.sources=n,this.names=r,this.mappings=i,3!==this.version)throw new Error("Only version 3 is supported, got ".concat(this.version));if(void 0===this.mappings)throw new Error("mapping undefined, cannot build source map without `mapping`");const o=this.mappings.split(";").map((e=>{const t=function(e){let t=[],n=0,r=0;for(let i=0;i<e.length;i+=1){let o=Hi[e[i]];if(void 0===o)throw new Error("Invalid character ("+e[i]+")");const a=32&o;if(o&=31,r+=o<<n,a)n+=5;else{const e=1&r;r>>>=1,e?t.push(0===r?-2147483648:-r):t.push(r),r=n=0}}return t}(e);if(t.length>2)return t[2]}));this.pcToLine={},this.lineToPc={};let a=0;for(const[s,l]of o.entries())void 0!==l&&(a+=l),a in this.lineToPc||(this.lineToPc[a]=[]),this.lineToPc[a].push(s),this.pcToLine[s]=a}getLineForPc(e){return this.pcToLine[e]}getPcsForLine(e){return this.lineToPc[e]}}const Zi=1380011588;function Qi(e){return e.params["approval-program"]=s.lW.from(e.params["approval-program"].toString(),"base64"),e.params["clear-state-program"]=s.lW.from(e.params["clear-state-program"].toString(),"base64"),e}async function Yi(e){let{client:t,txns:n,protocolVersion:r,latestTimestamp:i,round:o,sources:a}=e;const s=[],l=[],c=[],u=[],h=[];for(const m of n)m.txn.type===ne.appl&&(h.push(K(m.txn.from.publicKey)),m.txn.appAccounts&&h.push(...m.txn.appAccounts.map((e=>K(e.publicKey)))),m.txn.appForeignApps&&(c.push(...m.txn.appForeignApps),h.push(...m.txn.appForeignApps.map((e=>Q(e))))),m.txn.appForeignAssets&&u.push(...m.txn.appForeignAssets),void 0===m.txn.appIndex||0===m.txn.appIndex?s.push(new Te({id:Zi,params:new Oe({creator:K(m.txn.from.publicKey),approvalProgram:m.txn.appApprovalProgram,clearStateProgram:m.txn.appClearProgram,localStateSchema:new Be({numUint:m.txn.appLocalInts,numByteSlice:m.txn.appLocalByteSlices}),globalStateSchema:new Be({numUint:m.txn.appGlobalInts,numByteSlice:m.txn.appGlobalByteSlices})})})):(c.push(m.txn.appIndex),h.push(Q(m.txn.appIndex))));const d=[];for(const m of[...new Set(u)])d.push(t.getAssetByID(m).do().then((e=>{h.push(e.params.creator)})));await Promise.all(d);const p=[];for(const m of[...new Set(c)])p.push(t.getApplicationByID(m).do().then((e=>{const t=Qi(e);s.push(t),h.push(t.params.creator)})));await Promise.all(p);const f=[];for(const m of[...new Set(h)])f.push(t.accountInformation(m).do().then((e=>{"created-apps"in e&&(e["created-apps"]=e["created-apps"].map((e=>Qi(e)))),l.push(e)})));return await Promise.all(f),new $e({txns:n.map((e=>({...e,txn:e.txn.get_obj_for_encoding()}))),accounts:l,apps:s,latestTimestamp:i,round:o,protocolVersion:r,sources:a})}class Xi{constructor(e){this.type=0,this.bytes="",this.uint=0,this.type=e.type,this.bytes=e.bytes,this.uint=e.uint}toString(){return 1===this.type?"0x".concat(s.lW.from(this.bytes,"base64").toString("hex")):this.uint.toString()}}class Ji{constructor(e){this.error="",this.line=0,this.pc=0,this.scratch=[],this.stack=[],this.error=void 0===e.error?"":e.error,this.line=e.line,this.pc=e.pc,this.scratch=e.scratch,this.stack=e.stack.map((e=>new Xi(e)))}}class $i{constructor(e){this.trace=[],null!=e&&(this.trace=e.map((e=>new Ji(e))))}}function eo(e,t){return e.length>t&&t>0?"".concat(e.slice(0,t),"..."):e}function to(e,t){if(0===t.length)return"";let n=null;for(let i=0;i<t.length;i++)(i>e.length||JSON.stringify(e[i])!==JSON.stringify(t[i]))&&(n=i);if(null==n)return"";const r=t[n];return r.bytes.length>0?"".concat(n," = 0x").concat(s.lW.from(r.bytes,"base64").toString("hex")):"".concat(n," = ").concat(r.uint.toString())}function no(e,t){const n=t?e.reverse():e;return"[".concat(n.map((e=>{switch(e.type){case 1:return"0x".concat(s.lW.from(e.bytes,"base64").toString("hex"));case 2:return"".concat(e.uint.toString());default:return""}})).join(", "),"]")}class ro{constructor(e){this.disassembly=[],this.appCallMessages=[],this.localDeltas=[],this.globalDelta=[],this.cost=0,this.logicSigMessages=[],this.logicSigDisassembly=[],this.logs=[],this.appCallTrace=void 0,this.logicSigTrace=void 0,this.required=["disassembly"],this.optionals=["app-call-messages","local-deltas","global-delta","cost","logic-sig-messages","logic-sig-disassembly","logs"],this.traces=["app-call-trace","logic-sig-trace"],this.disassembly=e.disassembly,this.appCallMessages=e["app-call-messages"],this.localDeltas=e["local-deltas"],this.globalDelta=e["global-delta"],this.cost=e.cost,this.logicSigMessages=e["logic-sig-messages"],this.logicSigDisassembly=e["logic-sig-disassembly"],this.logs=e.logs,this.appCallTrace=new $i(e["app-call-trace"]),this.logicSigTrace=new $i(e["logic-sig-trace"])}appCallRejected(){return void 0!==this.appCallMessages&&this.appCallMessages.includes("REJECT")}logicSigRejected(){return void 0!==this.logicSigMessages&&this.logicSigMessages.includes("REJECT")}static trace(e,t,n){const r=n.maxValueWidth||30,i=[["pc#","ln#","source","scratch","stack"]];for(let a=0;a<e.trace.length;a++){const{line:o,error:s,pc:l,scratch:c,stack:u}=e.trace[a],h=void 0!==c?c:[],d=a>0&&void 0!==e.trace[a-1].scratch?e.trace[a-1].scratch:[],p=""===s?t[o]:"!! ".concat(s," !!");i.push([l.toString().padEnd(3," "),o.toString().padEnd(3," "),eo(p,r),eo(to(d,h),r),eo(no(u,n.topOfStackFirst),r)])}const o=i.reduce(((e,t)=>{const n=new Array(i[0].length).fill(0);for(let r=0;r<e.length;r++)n[r]=t[r].length>e[r]?t[r].length:e[r];return n}),new Array(i[0].length).fill(0));return"".concat(i.map((e=>e.map(((e,t)=>e.padEnd(o[t]+1," "))).join("|").trim())).join("\n"),"\n")}appTrace(e){if(void 0===this.appCallTrace||!this.disassembly)return"";let t=e;return void 0===e&&(t={maxValueWidth:30,topOfStackFirst:!1}),ro.trace(this.appCallTrace,this.disassembly,t)}lsigTrace(e){if(void 0===this.logicSigTrace||void 0===this.logicSigDisassembly)return"";let t=e;return void 0===e&&(t={maxValueWidth:30,topOfStackFirst:!0}),ro.trace(this.logicSigTrace,this.logicSigDisassembly,t)}}class io{constructor(e){this.error="",this.protocolVersion="",this.txns=[],this.error=e.error,this.protocolVersion=e["protocol-version"],this.txns=e.txns.map((e=>new ro(e)))}}function oo(e,t,n,r,i,o,a){const s={from:e,to:t,amount:n,closeRemainderTo:r,note:i,suggestedParams:o,type:ne.pay,reKeyTo:a};return new ae(s)}function ao(e){return oo(e.from,e.to,e.amount,e.closeRemainderTo,e.note,e.suggestedParams,e.rekeyTo)}function so(e,t,n,r,i,o,a,s,l){let c=arguments.length>9&&void 0!==arguments[9]&&arguments[9],u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:void 0;const h={from:e,note:t,voteKey:n,selectionKey:r,voteFirst:i,voteLast:o,voteKeyDilution:a,suggestedParams:s,type:ne.keyreg,reKeyTo:l,nonParticipation:c,stateProofKey:u};return new ae(h)}function lo(e){return so(e.from,e.note,e.voteKey,e.selectionKey,e.voteFirst,e.voteLast,e.voteKeyDilution,e.suggestedParams,e.rekeyTo,e.nonParticipation,e.stateProofKey)}function co(e,t,n,r,i,o,a,s,l,c,u,h,d,p,f){const m={from:e,note:t,suggestedParams:p,assetTotal:n,assetDecimals:r,assetDefaultFrozen:i,assetUnitName:c,assetName:u,assetURL:h,assetMetadataHash:d,assetManager:o,assetReserve:a,assetFreeze:s,assetClawback:l,type:ne.acfg,reKeyTo:f};return new ae(m)}function uo(e){return co(e.from,e.note,e.total,e.decimals,e.defaultFrozen,e.manager,e.reserve,e.freeze,e.clawback,e.unitName,e.assetName,e.assetURL,e.assetMetadataHash,e.suggestedParams,e.rekeyTo)}function ho(e,t,n,r,i,o,a,s){let l=arguments.length>9?arguments[9]:void 0;if((!(arguments.length>8&&void 0!==arguments[8])||arguments[8])&&(void 0===r||void 0===i||void 0===o||void 0===a))throw Error("strict empty address checking was turned on, but at least one empty address was provided");const c={from:e,suggestedParams:s,assetIndex:n,assetManager:r,assetReserve:i,assetFreeze:o,assetClawback:a,type:ne.acfg,note:t,reKeyTo:l};return new ae(c)}function po(e){return ho(e.from,e.note,e.assetIndex,e.manager,e.reserve,e.freeze,e.clawback,e.suggestedParams,e.strictEmptyAddressChecking,e.rekeyTo)}function fo(e,t,n,r,i){const o={from:e,suggestedParams:r,assetIndex:n,type:ne.acfg,note:t,reKeyTo:i};return new ae(o)}function mo(e){return fo(e.from,e.note,e.assetIndex,e.suggestedParams,e.rekeyTo)}function go(e,t,n,r,i,o,a){const s={from:e,type:ne.afrz,freezeAccount:r,assetIndex:n,freezeState:i,note:t,suggestedParams:o,reKeyTo:a};return new ae(s)}function yo(e){return go(e.from,e.note,e.assetIndex,e.freezeTarget,e.freezeState,e.suggestedParams,e.rekeyTo)}function vo(e,t,n,r,i,o,a,s,l){const c={type:ne.axfer,from:e,to:t,amount:i,suggestedParams:s,assetIndex:a,note:o,assetRevocationTarget:r,closeRemainderTo:n,reKeyTo:l};return new ae(c)}function wo(e){return vo(e.from,e.to,e.closeRemainderTo,e.revocationTarget,e.amount,e.note,e.assetIndex,e.suggestedParams,e.rekeyTo)}function bo(e,t,n,r,i,o,a,s,l,c,u,h,d,p,f,m,g,y){const v={type:ne.appl,from:e,suggestedParams:t,appIndex:0,appOnComplete:n,appLocalInts:o,appLocalByteSlices:a,appGlobalInts:s,appGlobalByteSlices:l,appApprovalProgram:r,appClearProgram:i,appArgs:c,appAccounts:u,appForeignApps:h,appForeignAssets:d,boxes:y,note:p,lease:f,reKeyTo:m,extraPages:g};return new ae(v)}function _o(e){return bo(e.from,e.suggestedParams,e.onComplete,e.approvalProgram,e.clearProgram,e.numLocalInts,e.numLocalByteSlices,e.numGlobalInts,e.numGlobalByteSlices,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.extraPages,e.boxes)}function xo(e,t,n,r,i,o,a,s,l,c,u,h,d){const p={type:ne.appl,from:e,suggestedParams:t,appIndex:n,appApprovalProgram:r,appOnComplete:re.UpdateApplicationOC,appClearProgram:i,appArgs:o,appAccounts:a,appForeignApps:s,appForeignAssets:l,boxes:d,note:c,lease:u,reKeyTo:h};return new ae(p)}function Ao(e){return xo(e.from,e.suggestedParams,e.appIndex,e.approvalProgram,e.clearProgram,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function ko(e,t,n,r,i,o,a,s,l,c,u){const h={type:ne.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:re.DeleteApplicationOC,appArgs:r,appAccounts:i,appForeignApps:o,appForeignAssets:a,boxes:u,note:s,lease:l,reKeyTo:c};return new ae(h)}function So(e){return ko(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function Eo(e,t,n,r,i,o,a,s,l,c,u){const h={type:ne.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:re.OptInOC,appArgs:r,appAccounts:i,appForeignApps:o,appForeignAssets:a,boxes:u,note:s,lease:l,reKeyTo:c};return new ae(h)}function Co(e){return Eo(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function Mo(e,t,n,r,i,o,a,s,l,c,u){const h={type:ne.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:re.CloseOutOC,appArgs:r,appAccounts:i,appForeignApps:o,appForeignAssets:a,boxes:u,note:s,lease:l,reKeyTo:c};return new ae(h)}function To(e){return Mo(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function Po(e,t,n,r,i,o,a,s,l,c,u){const h={type:ne.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:re.ClearStateOC,appArgs:r,appAccounts:i,appForeignApps:o,appForeignAssets:a,boxes:u,note:s,lease:l,reKeyTo:c};return new ae(h)}function Ro(e){return Po(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function Io(e,t,n,r,i,o,a,s,l,c,u){const h={type:ne.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:re.NoOpOC,appArgs:r,appAccounts:i,appForeignApps:o,appForeignAssets:a,boxes:u,note:s,lease:l,reKeyTo:c};return new ae(h)}function Lo(e){return Io(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function Oo(e){const t={type:ne.appl,from:e.from,suggestedParams:e.suggestedParams,appIndex:e.appIndex,appOnComplete:e.onComplete,appLocalInts:e.numLocalInts,appLocalByteSlices:e.numLocalByteSlices,appGlobalInts:e.numGlobalInts,appGlobalByteSlices:e.numGlobalByteSlices,appApprovalProgram:e.approvalProgram,appClearProgram:e.clearProgram,appArgs:e.appArgs,appAccounts:e.accounts,appForeignApps:e.foreignApps,appForeignAssets:e.foreignAssets,boxes:e.boxes,note:e.note,lease:e.lease,reKeyTo:e.rekeyTo,extraPages:e.extraPages};return new ae(t)}function Do(e){return(t,n)=>{const r=[];for(const i of n)r.push(t[i].signTxn(e.sk));return Promise.resolve(r)}}function Bo(e){return(t,n)=>{const r=[];for(const i of n){const{blob:n}=Fi(t[i],e);r.push(n)}return Promise.resolve(r)}}function No(e,t){return(n,r)=>{const i=[];for(const o of r){const r=n[o],a=[];for(const n of t){const{blob:t}=Ri(r,e,n);a.push(t)}a.length>1?i.push(Ti(a)):i.push(a[0])}return Promise.resolve(i)}}function Fo(){return(e,t)=>{const n=[];for(const r of t)n.push(se(e[r]));return Promise.resolve(n)}}function jo(e){return"object"===typeof e&&2===Object.keys(e).length&&"object"===typeof e.txn&&"function"===typeof e.signer}const Uo=65535,zo=32,qo=1,Wo=1,Vo=2,Ho=/^([a-z\d[\](),]+)\[(0|[1-9][\d]*)]$/,Ko=/^ufixed([1-9][\d]*)x([1-9][\d]*)$/;class Go{static from(e){if(e.endsWith("[]")){const t=Go.from(e.slice(0,e.length-2));return new ta(t)}if(e.endsWith("]")){const t=e.match(Ho);if(3!==t.length)throw new Error("malformed static array string: ".concat(e));const n=t[2],r=parseInt(n,10);if(r>Uo)throw new Error("array length exceeds limit ".concat(Uo));const i=Go.from(t[1]);return new ea(i,r)}if(e.startsWith("uint")){const t=e=>[...e].every((e=>"0123456789".includes(e))),n=e.slice(4,e.length);
2if(!t(n))throw new Error("malformed uint string: ".concat(n));const r=parseInt(n,10);if(r>Uo)throw new Error("malformed uint string: ".concat(r));return new Zo(r)}if("byte"===e)return new Jo;if(e.startsWith("ufixed")){const t=e.match(Ko);if(3!==t.length)throw new Error("malformed ufixed type: ".concat(e));const n=parseInt(t[1],10),r=parseInt(t[2],10);return new Qo(n,r)}if("bool"===e)return new Xo;if("address"===e)return new Yo;if("string"===e)return new $o;if(e.length>=2&&"("===e[0]&&")"===e[e.length-1]){const t=na.parseTupleContent(e.slice(1,e.length-1)),n=[];for(let e=0;e<t.length;e++){const r=Go.from(t[e]);n.push(r)}return new na(n)}throw new Error("cannot convert a string ".concat(e," to an ABI type"))}}class Zo extends Go{constructor(e){if(super(),e%8!==0||e<8||e>512)throw new Error("unsupported uint type bitSize: ".concat(e));this.bitSize=e}toString(){return"uint".concat(this.bitSize)}equals(e){return e instanceof Zo&&this.bitSize===e.bitSize}isDynamic(){return!1}byteLen(){return this.bitSize/8}encode(e){if("bigint"!==typeof e&&"number"!==typeof e)throw new Error("Cannot encode value as uint".concat(this.bitSize,": ").concat(e));if(e>=BigInt(2**this.bitSize)||e<BigInt(0))throw new Error("".concat(e," is not a non-negative int or too big to fit in size uint").concat(this.bitSize));if("number"===typeof e&&!Number.isSafeInteger(e))throw new Error("".concat(e," should be converted into a BigInt before it is encoded"));return ni(e,this.bitSize/8)}decode(e){if(e.length!==this.bitSize/8)throw new Error("byte string must correspond to a uint".concat(this.bitSize));return ri(e)}}class Qo extends Go{constructor(e,t){if(super(),e%8!==0||e<8||e>512)throw new Error("unsupported ufixed type bitSize: ".concat(e));if(t>160||t<1)throw new Error("unsupported ufixed type precision: ".concat(t));this.bitSize=e,this.precision=t}toString(){return"ufixed".concat(this.bitSize,"x").concat(this.precision)}equals(e){return e instanceof Qo&&this.bitSize===e.bitSize&&this.precision===e.precision}isDynamic(){return!1}byteLen(){return this.bitSize/8}encode(e){if("bigint"!==typeof e&&"number"!==typeof e)throw new Error("Cannot encode value as ".concat(this.toString(),": ").concat(e));if(e>=BigInt(2**this.bitSize)||e<BigInt(0))throw new Error("".concat(e," is not a non-negative int or too big to fit in size ").concat(this.toString()));if("number"===typeof e&&!Number.isSafeInteger(e))throw new Error("".concat(e," should be converted into a BigInt before it is encoded"));return ni(e,this.bitSize/8)}decode(e){if(e.length!==this.bitSize/8)throw new Error("byte string must correspond to a ".concat(this.toString()));return ri(e)}}class Yo extends Go{toString(){return"address"}equals(e){return e instanceof Yo}isDynamic(){return!1}byteLen(){return zo}encode(e){if("string"!==typeof e&&!(e instanceof Uint8Array))throw new Error("Cannot encode value as ".concat(this.toString(),": ").concat(e));if("string"===typeof e){return V(e).publicKey}if(32!==e.byteLength)throw new Error("byte string must be 32 bytes long for an address");return e}decode(e){if(32!==e.byteLength)throw new Error("byte string must be 32 bytes long for an address");return K(e)}}class Xo extends Go{toString(){return"bool"}equals(e){return e instanceof Xo}isDynamic(){return!1}byteLen(){return Wo}encode(e){if("boolean"!==typeof e)throw new Error("Cannot encode value as bool: ".concat(e));return e?new Uint8Array([128]):new Uint8Array([0])}decode(e){if(1!==e.byteLength)throw new Error("bool string must be 1 byte long");const t=e[0];if(128===t)return!0;if(0===t)return!1;throw new Error("boolean could not be decoded from the byte string")}}class Jo extends Go{toString(){return"byte"}equals(e){return e instanceof Jo}isDynamic(){return!1}byteLen(){return qo}encode(e){if("number"!==typeof e&&"bigint"!==typeof e)throw new Error("Cannot encode value as byte: ".concat(e));if("bigint"===typeof e&&(e=Number(e)),e<0||e>255)throw new Error("".concat(e," cannot be encoded into a byte"));return new Uint8Array([e])}decode(e){if(1!==e.byteLength)throw new Error("byte string must be 1 byte long");return e[0]}}class $o extends Go{toString(){return"string"}equals(e){return e instanceof $o}isDynamic(){return!0}byteLen(){throw new Error("".concat(this.toString()," is a dynamic type"))}encode(e){if("string"!==typeof e&&!(e instanceof Uint8Array))throw new Error("Cannot encode value as string: ".concat(e));
2const t=s.lW.from(e),n=ni(t.length,Vo),r=new Uint8Array(t.length+Vo);return r.set(n),r.set(t,Vo),r}decode(e){if(e.length<Vo)throw new Error("byte string is too short to be decoded. Actual length is ".concat(e.length,", but expected at least ").concat(Vo));const t=s.lW.from(e).readUIntBE(0,Vo),n=e.slice(Vo,e.length);if(t!==n.length)throw new Error("string length bytes do not match the actual length of string. Expected ".concat(t,", got ").concat(n.length));return s.lW.from(n).toString("utf-8")}}class ea extends Go{constructor(e,t){if(super(),t<0)throw new Error("static array must have a non negative length: ".concat(t));this.childType=e,this.staticLength=t}toString(){return"".concat(this.childType.toString(),"[").concat(this.staticLength,"]")}equals(e){return e instanceof ea&&this.staticLength===e.staticLength&&this.childType.equals(e.childType)}isDynamic(){return this.childType.isDynamic()}byteLen(){return this.childType.constructor===Xo?Math.ceil(this.staticLength/8):this.staticLength*this.childType.byteLen()}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error("Cannot encode value as ".concat(this.toString(),": ").concat(e));if(e.length!==this.staticLength)throw new Error("Value array does not match static array length. Expected ".concat(this.staticLength,", got ").concat(e.length));return this.toABITupleType().encode(e)}decode(e){return this.toABITupleType().decode(e)}toABITupleType(){return new na(Array(this.staticLength).fill(this.childType))}}class ta extends Go{constructor(e){super(),this.childType=e}toString(){return"".concat(this.childType.toString(),"[]")}equals(e){return e instanceof ta&&this.childType.equals(e.childType)}isDynamic(){return!0}byteLen(){throw new Error("".concat(this.toString()," is a dynamic type"))}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error("Cannot encode value as ".concat(this.toString(),": ").concat(e));const t=this.toABITupleType(e.length),n=t.encode(e);return y(ni(t.childTypes.length,Vo),n)}decode(e){const t=s.lW.from(e).readUIntBE(0,Vo);return this.toABITupleType(t).decode(e.slice(Vo,e.length))}toABITupleType(e){return new na(Array(e).fill(this.childType))}}class na extends Go{constructor(e){if(super(),e.length>=Uo)throw new Error("tuple type child type number larger than maximum uint16 error");this.childTypes=e}toString(){const e=[];for(let t=0;t<this.childTypes.length;t++)e[t]=this.childTypes[t].toString();return"(".concat(e.join(","),")")}equals(e){return e instanceof na&&this.childTypes.length===e.childTypes.length&&this.childTypes.every(((t,n)=>t.equals(e.childTypes[n])))}isDynamic(){return this.childTypes.some((e=>e.isDynamic()))}byteLen(){let e=0;for(let t=0;t<this.childTypes.length;t++)if(this.childTypes[t].constructor===Xo){const n=ia(this.childTypes,t,1),r=n+1;t+=n,e+=Math.trunc((r+7)/8)}else{e+=this.childTypes[t].byteLen()}return e}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error("Cannot encode value as ".concat(this.toString(),": ").concat(e));const t=Array.from(e);if(e.length>Uo)throw new Error("length of tuple array should not exceed a uint16");const n=this.childTypes,r=[],i=[],o=new Map;let a=0;for(;a<n.length;){const e=n[a];if(e.isDynamic())o.set(r.length,!0),r.push(new Uint8Array([0,0])),i.push(e.encode(t[a]));else{if(e.constructor===Xo){const e=ia(n,a,-1);let i=ia(n,a,1);if(e%8!==0)throw new Error("expected before index should have number of bool mod 8 equal 0");i=Math.min(7,i);const o=ra(t.slice(a,a+i+1));r.push(ni(o,1)),a+=i}else{const n=e.encode(t[a]);r.push(n)}o.set(a,!1),i.push(new Uint8Array)}a+=1}let s=0;for(const c of r)s+=c.length;let l=0;for(let c=0;c<r.length;c++){if(o.get(c)){const e=s+l;if(e>Uo)throw new Error("byte length of ".concat(e," should not exceed a uint16"));r[c]=ni(e,Vo)}l+=i[c].length}return y(...r,...i)}decode(e){const t=this.childTypes,n=[],r=[];let i=0,o=0;const a=s.lW.from(e);for(;i<t.length;){const s=t[i];if(s.isDynamic()){if(e.slice(o,e.length).length<Vo)throw new Error("dynamic type in tuple is too short to be decoded");const t=a.readUIntBE(o,Vo);if(n.length>0&&(n[n.length-1].right=t,t<n[n.length-1].left))throw new Error("dynamic index segment miscalculation: left is greater than right index");const i={left:t,right:-1};n.push(i),r.push(null),o+=Vo}else if(s.constructor===Xo){const t=ia(this.childTypes,i,-1);let n=ia(this.childTypes,i,1);if(t%8!==0)throw new Error("expected before bool number mod 8 === 0");n=Math.min(7,n);for(let i=0;i<=n;i++){const t=128>>i;(e[o]&t)>0?r.push(new Uint8Array([128])):r.push(new Uint8Array([0]))}i+=n,o+=1}else{const t=s.byteLen();r.push(e.slice(o,o+t)),o+=t}if(i!==t.length-1&&o>=e.length)throw new Error("input byte not enough to decode");i+=1}if(n.length>0&&(n[n.length-1].right=e.length,o=e.length),o<e.length)throw new Error("input byte not fully consumed");for(let s=0;s<n.length;s++){const e=n[s];if(e.left>e.right)throw new Error("dynamic segment should display a [l, r] space with l <= r");if(s!==n.length-1&&e.right!==n[s+1].left)throw new Error("dynamic segment should be consecutive")}let l=0;for(let s=0;s<t.length;s++)t[s].isDynamic()&&(r[s]=e.slice(n[l].left,n[l].right),l+=1);const c=[];for(let s=0;s<t.length;s++){const e=t[s].decode(r[s]);c.push(e)}return c}static parseTupleContent(e){if(0===e.length)return[];if(e.endsWith(",")||e.startsWith(","))throw new Error("tuple string should not start with comma");if(e.includes(",,"))throw new Error("tuple string should not have consecutive commas");const t=[];let n=0,r="";for(const i of e)r+=i,"("===i?n+=1:")"===i?n-=1:","===i&&0===n&&(t.push(r.slice(0,r.length-1)),r="");
2if(0!==r.length&&t.push(r),0!==n)throw new Error("tuple string has mismatched parentheses");return t}}function ra(e){let t=0;if(e.length>8)throw new Error("value list passed in should be no greater than length 8");for(let n=0;n<e.length;n++){const r=e[n];if("boolean"!==typeof r)throw new Error("non-boolean values cannot be compressed into a byte");r&&(t|=1<<7-n)}return t}function ia(e,t,n){let r=0;for(;;){const i=t+n*r;if(e[i].constructor!==Xo){r-=1;break}if(i!==e.length-1&&1===n)r+=1;else{if(!(i>0&&-1===n))break;r+=1}}return r}var oa,aa;function sa(e){return e===oa.any||e===oa.pay||e===oa.keyreg||e===oa.acfg||e===oa.axfer||e===oa.afrz||e===oa.appl}function la(e,t){return e===oa.any||t.type&&t.type.toString()===e.toString()}function ca(e){return e===aa.account||e===aa.application||e===aa.asset}!function(e){e.any="txn",e.pay="pay",e.keyreg="keyreg",e.acfg="acfg",e.axfer="axfer",e.afrz="afrz",e.appl="appl"}(oa||(oa={})),function(e){e.account="account",e.application="application",e.asset="asset"}(aa||(aa={}));class ua{constructor(e){if("string"!==typeof e.name||"object"!==typeof e.returns||!Array.isArray(e.args))throw new Error("Invalid ABIMethod parameters");this.name=e.name,this.description=e.desc,this.args=e.args.map((e=>{let{type:t,name:n,desc:r}=e;return sa(t)||ca(t)?{type:t,name:n,description:r}:{type:Go.from(t),name:n,description:r}})),this.returns={type:"void"===e.returns.type?e.returns.type:Go.from(e.returns.type),description:e.returns.desc}}getSignature(){const e=this.args.map((e=>e.type.toString())).join(","),t=this.returns.type.toString();return"".concat(this.name,"(").concat(e,")").concat(t)}getSelector(){const e=v(this.getSignature());return new Uint8Array(e.slice(0,4))}txnCount(){let e=1;for(const t of this.args)"string"===typeof t.type&&sa(t.type)&&(e+=1);return e}toJSON(){return{name:this.name,desc:this.description,args:this.args.map((e=>{let{type:t,name:n,description:r}=e;return{type:t.toString(),name:n,desc:r}})),returns:{type:this.returns.type.toString(),desc:this.returns.description}}}static fromSignature(e){const{name:t,args:n,returns:r}=function(e){const t=e.indexOf("(");if(-1===t)throw new Error("Invalid method signature: ".concat(e));let n=-1,r=0;for(let i=t;i<e.length;i++){const t=e[i];if("("===t)r+=1;else if(")"===t){if(0===r)break;if(r-=1,0===r){n=i;break}}}if(-1===n)throw new Error("Invalid method signature: ".concat(e));return{name:e.slice(0,t),args:na.parseTupleContent(e.slice(t+1,n)),returns:e.slice(n+1)}}(e);return new ua({name:t,args:n.map((e=>({type:e}))),returns:{type:r}})}}function ha(e,t){if(null===e||!Array.isArray(e)||!e.every((e=>e instanceof ua)))throw new Error("Methods list provided is null or not the correct type");const n=e.filter((e=>e.name===t));if(n.length>1)throw new Error("found ".concat(n.length," methods with the same name ").concat(n.map((e=>e.getSignature())).join(",")));if(0===n.length)throw new Error("found 0 methods with the name ".concat(t));return n[0]}class da{constructor(e){if("string"!==typeof e.name||!Array.isArray(e.methods)||e.networks&&"object"!==typeof e.networks)throw new Error("Invalid ABIContract parameters");this.name=e.name,this.description=e.desc,this.networks=e.networks?{...e.networks}:{},this.methods=e.methods.map((e=>new ua(e)))}toJSON(){return{name:this.name,desc:this.description,networks:this.networks,methods:this.methods.map((e=>e.toJSON()))}}getMethodByName(e){return ha(this.methods,e)}}class pa{constructor(e){if("string"!==typeof e.name||!Array.isArray(e.methods))throw new Error("Invalid ABIInterface parameters");this.name=e.name,this.description=e.desc,this.methods=e.methods.map((e=>new ua(e)))}toJSON(){return{name:this.name,desc:this.description,methods:this.methods.map((e=>e.toJSON()))}}getMethodByName(e){return ha(this.methods,e)}}const fa=s.lW.from([21,31,124,117]);var ma;function ga(e,t,n){if(null!=n&&e===n)return 0;const r=null==n?0:1;for(let i=0;i<t.length;i++)if(e===t[i])return i+r;return t.push(e),t.length-1+r}!function(e){e[e.BUILDING=0]="BUILDING",e[e.BUILT=1]="BUILT",e[e.SIGNED=2]="SIGNED",e[e.SUBMITTED=3]="SUBMITTED",e[e.COMMITTED=4]="COMMITTED"}(ma||(ma={}));class ya{constructor(){this.status=ma.BUILDING,this.transactions=[],this.methodCalls=new Map,this.signedTxns=[],this.txIDs=[]}getStatus(){return this.status}count(){return this.transactions.length}clone(){const e=new ya;return e.transactions=this.transactions.map((e=>{let{txn:t,signer:n}=e;return{txn:ae.from_obj_for_encoding({...t.get_obj_for_encoding(),grp:void 0}),signer:n}})),e.methodCalls=new Map(this.methodCalls),e}addTransaction(e){if(this.status!==ma.BUILDING)throw new Error("Cannot add transactions when composer status is not BUILDING");if(this.transactions.length===ya.MAX_GROUP_SIZE)throw new Error("Adding an additional transaction exceeds the maximum atomic group size of ".concat(ya.MAX_GROUP_SIZE));if(e.txn.group&&e.txn.group.some((e=>0!==e)))throw new Error("Cannot add a transaction with nonzero group ID");this.transactions.push(e)}addMethodCall(e){let{appID:t,method:n,methodArgs:r,sender:i,suggestedParams:o,onComplete:a,approvalProgram:s,clearProgram:l,numGlobalInts:c,numGlobalByteSlices:u,numLocalInts:h,numLocalByteSlices:d,extraPages:p,appAccounts:f,appForeignApps:m,appForeignAssets:g,boxes:y,note:v,lease:w,rekeyTo:b,signer:_}=e;if(this.status!==ma.BUILDING)throw new Error("Cannot add transactions when composer status is not BUILDING");if(this.transactions.length+n.txnCount()>ya.MAX_GROUP_SIZE)throw new Error("Adding additional transactions exceeds the maximum atomic group size of ".concat(ya.MAX_GROUP_SIZE));if(0===t){if(null==s||null==l||null==c||null==u||null==h||null==d)throw new Error("One of the following required parameters for application creation is missing: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices")}else if(a===re.UpdateApplicationOC){if(null==s||null==l)throw new Error("One of the following required parameters for OnApplicationComplete.UpdateApplicationOC is missing: approvalProgram, clearProgram");if(null!=c||null!=u||null!=h||null!=d||null!=p)throw new Error("One of the following application creation parameters were set on a non-creation call: numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages")}else if(null!=s||null!=l||null!=c||null!=u||null!=h||null!=d||null!=p)throw new Error("One of the following application creation parameters were set on a non-creation call: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages");if(null==r&&(r=[]),r.length!==n.args.length)throw new Error("Incorrect number of method arguments. Expected ".concat(n.args.length,", got ").concat(r.length));let x=[],A=[];const k=[],S=[],E=[],C=new Map,M=y||[];for(let D=0;D<r.length;D++){let e=n.args[D].type;const t=r[D];if(sa(e)){if(!jo(t)||!la(e,t.txn))throw new Error("Expected ".concat(e," TransactionWithSigner for argument at index ").concat(D));if(t.txn.group&&t.txn.group.some((e=>0!==e)))throw new Error("Cannot add a transaction with nonzero group ID");k.push(t)}else{if(jo(t))throw new Error("Expected non-transaction value for argument at index ".concat(D));if(ca(e)&&(C.set(S.length,x.length),S.push(e),E.push(t),e=new Zo(8)),"string"===typeof e)throw new Error("Unknown ABI type: ".concat(e));x.push(e),A.push(t)}}const T=[],P=null==f?[]:f.slice(),R=null==m?[]:m.slice(),I=null==g?[]:g.slice();for(let D=0;D<S.length;D++){const e=S[D],n=E[D];let r=0;switch(e){case aa.account:{const e=new Yo;r=ga(e.decode(e.encode(n)),P,i);break}case aa.application:{const e=new Zo(64),i=e.decode(e.encode(n));if(i>Number.MAX_SAFE_INTEGER)throw new Error("Expected safe integer for application value, got ".concat(i));r=ga(Number(i),R,t);break}case aa.asset:{const e=new Zo(64),t=e.decode(e.encode(n));if(t>Number.MAX_SAFE_INTEGER)throw new Error("Expected safe integer for asset value, got ".concat(t));r=ga(Number(t),I);break}default:throw new Error("Unknown reference type: ".concat(e))}T.push(r)}for(let D=0;D<T.length;D++){A[C.get(D)]=T[D]}if(x.length>15){const e=x.slice(14),t=A.slice(14);x=x.slice(0,14),A=A.slice(0,14),x.push(new na(e)),A.push(t)}const L=[n.getSelector()];for(let D=0;D<x.length;D++)L.push(x[D].encode(A[D]));const O={txn:Oo({from:i,appIndex:t,appArgs:L,accounts:P,foreignApps:R,foreignAssets:I,boxes:M,onComplete:null==a?re.NoOpOC:a,approvalProgram:s,clearProgram:l,numGlobalInts:c,numGlobalByteSlices:u,numLocalInts:h,numLocalByteSlices:d,extraPages:p,lease:w,note:v,rekeyTo:b,suggestedParams:o}),signer:_};this.transactions.push(...k,O),this.methodCalls.set(this.transactions.length-1,n)}buildGroup(){if(this.status===ma.BUILDING){if(0===this.transactions.length)throw new Error("Cannot build a group with 0 transactions");this.transactions.length>1&&wi(this.transactions.map((e=>e.txn))),this.status=ma.BUILT}return this.transactions}async gatherSignatures(){if(this.status>=ma.SIGNED)return this.signedTxns;const e=this.buildGroup(),t=e.map((e=>e.txn)),n=new Map;for(let s=0;s<e.length;s++){const{signer:t}=e[s];n.has(t)||n.set(t,[]),n.get(t).push(s)}const r=Array.from(n),i=await Promise.all(r.map((e=>{let[n,r]=e;return n(t,r)}
2))),o=e.map((()=>null));for(let s=0;s<r.length;s++){const e=r[s][1],t=i[s];for(let n=0;n<e.length;n++)o[e[n]]=t[n]}if(!o.every((e=>null!=e)))throw new Error("Missing signatures. Got ".concat(o));const a=o.map(((e,t)=>{try{return ue(e).txn.txID()}catch(n){throw new Error("Cannot decode signed transaction at index ".concat(t,". ").concat(n))}}));return this.signedTxns=o,this.txIDs=a,this.status=ma.SIGNED,o}async submit(e){if(this.status>ma.SUBMITTED)throw new Error("Transaction group cannot be resubmitted");const t=await this.gatherSignatures();return await e.sendRawTransaction(t).do(),this.status=ma.SUBMITTED,this.txIDs}async simulate(e,t){if(this.status>ma.SUBMITTED)throw new Error("Simulated Transaction group has already been submitted to the network");const n=(await this.gatherSignatures()).map((e=>ee(e))),r=null==t?new vt({txnGroups:[]}):t;r.txnGroups=[new wt({txns:n})];const i=await e.simulateTransactions(r).do(),o=[];for(const[a,s]of this.methodCalls){const e=this.txIDs[a],t=i.txnGroups[0].txnResults[a].txnResult,n={txID:e,rawReturnValue:new Uint8Array,method:s};o.push(ya.parseMethodResponse(s,n,t.get_obj_for_encoding()))}return{methodResults:o,simulateResponse:i}}async execute(e,t){if(this.status===ma.COMMITTED)throw new Error("Transaction group has already been executed successfully");const n=await this.submit(e);this.status=ma.SUBMITTED;const r=this.transactions.findIndex(((e,t)=>this.methodCalls.has(t))),i=-1===r?0:r,o=await ti(e,n[i],t);this.status=ma.COMMITTED;const a=o["confirmed-round"],s=[];for(const[c,u]of this.methodCalls){const t=n[c];let i={txID:t,rawReturnValue:new Uint8Array,method:u};try{const n=c===r?o:await e.pendingTransactionInformation(t).do();i=ya.parseMethodResponse(u,i,n)}catch(l){i.decodeError=l}s.push(i)}return{confirmedRound:a,txIDs:n,methodResults:s}}static parseMethodResponse(e,t,n){const r=t;try{if(r.txInfo=n,"void"!==e.returns.type){const i=n.logs||[];if(0===i.length)throw new Error("App call transaction did not log a return value");const o=s.lW.from(i[i.length-1],"base64");if(o.byteLength<4||!o.slice(0,4).equals(fa))throw new Error("App call transaction did not log a return value");r.rawReturnValue=new Uint8Array(o.slice(4)),r.returnValue=e.returns.type.decode(t.rawReturnValue)}}catch(i){r.decodeError=i}return r}}ya.MAX_GROUP_SIZE=16;const va=s.lW.from([77,88]),wa="The transaction sender address and multisig preimage do not match.";function ba(e,t){if("undefined"===typeof e.from){const n=x(t);e.from=K(n.publicKey)}const n=he(e);return{txID:n.txID().toString(),blob:n.signTxn(t)}}function _a(e,t){return new de(e).signBid(t)}function xa(e,t){return A(s.lW.from(y(va,e)),t)}function Aa(e,t,n){return S(s.lW.from(y(va,e)),t,V(n).publicKey)}function ka(e){return new Uint8Array($(e))}function Sa(e){return ee(e)}const Ea=new Error(wa),Ca=new Error(fe),Ma=o},2009:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,h=l>0?a-4:a;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;s<c;s+=a)o.push(l(e,s,s+a>c?c:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7144:function(e,t,n){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,c="[BigNumber Error] ",u=c+"Number primitive has more than 15 significant digits: ",h=1e14,d=14,p=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,g=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function v(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=d-t.length;n--;t="0"+t);o+=t}for(i=o.length;
vendor: 18,679 bytes, line 2
248===o.charCodeAt(--i););return o.slice(0,i+1||1)}function w(e,t){var n,r,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,c=t.e;if(!a||!s)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=l==c,!i||!o)return r?0:!i^n?1:-1;if(!r)return l>c^n?1:-1;for(s=(l=i.length)<(c=o.length)?l:c,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^n?1:-1;return l==c?0:l>c^n?1:-1}function b(e,t,n,r){if(e<t||e>n||e!==l(e))throw Error(c+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function _(e){var t=e.c.length-1;return y(e.e/d)==t&&e.c[t]%2!=0}function x(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function A(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}o=function e(t){var n,r,i,o=N.prototype={constructor:N,toString:null,valueOf:null},k=new N(1),S=20,E=4,C=-7,M=21,T=-1e7,P=1e7,R=!1,I=1,L=0,O={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},D="0123456789abcdefghijklmnopqrstuvwxyz",B=!0;function N(e,t){var n,o,s,c,h,f,m,g,y=this;if(!(y instanceof N))return new N(e,t);if(null==t){if(e&&!0===e._isBigNumber)return y.s=e.s,void(!e.c||e.e>P?y.c=y.e=null:e.e<T?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice()));if((f="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,h=e;h>=10;h/=10,c++);return void(c>P?y.c=y.e=null:(y.e=c,y.c=[e]))}g=String(e)}else{if(!a.test(g=String(e)))return i(y,g,f);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(c=g.indexOf("."))>-1&&(g=g.replace(".","")),(h=g.search(/e/i))>0?(c<0&&(c=h),c+=+g.slice(h+1),g=g.substring(0,h)):c<0&&(c=g.length)}else{if(b(t,2,D.length,"Base"),10==t&&B)return z(y=new N(e),S+y.e+1,E);if(g=String(e),f="number"==typeof e){if(0*e!=0)return i(y,g,f,t);if(y.s=1/e<0?(g=g.slice(1),-1):1,N.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(u+e)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=D.slice(0,t),c=h=0,m=g.length;h<m;h++)if(n.indexOf(o=g.charAt(h))<0){if("."==o){if(h>c){c=m;continue}}else if(!s&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){s=!0,h=-1,c=0;continue}return i(y,String(e),f,t)}f=!1,(c=(g=r(g,t,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):c=g.length}for(h=0;48===g.charCodeAt(h);h++);for(m=g.length;48===g.charCodeAt(--m););if(g=g.slice(h,++m)){if(m-=h,f&&N.DEBUG&&m>15&&(e>p||e!==l(e)))throw Error(u+y.s*e);if((c=c-h-1)>P)y.c=y.e=null;else if(c<T)y.c=[y.e=0];else{if(y.e=c,y.c=[],h=(c+1)%d,c<0&&(h+=d),h<m){for(h&&y.c.push(+g.slice(0,h)),m-=d;h<m;)y.c.push(+g.slice(h,h+=d));h=d-(g=g.slice(h)).length}else h-=m;for(;h--;g+="0");y.c.push(+g)}}else y.c=[y.e=0]}function F(e,t,n,r){var i,o,a,s,l;if(null==n?n=E:b(n,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)l=v(e.c),l=1==r||2==r&&(a<=C||a>=M)?x(l,a):A(l,a,"0");else if(o=(e=z(new N(e),t,n)).e,s=(l=v(e.c)).length,1==r||2==r&&(t<=o||o<=C)){for(;s<t;l+="0",s++);l=x(l,o)}else if(t-=a,l=A(l,o,"0"),o+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function j(e,t){for(var n,r,i=1,o=new N(e[0]);i<e.length;i++)(!(r=new N(e[i])).s||(n=w(o,r))===t||0===n&&o.s===t)&&(o=r);return o}function U(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*d-1)>P?e.c=e.e=null:n<T?e.c=[e.e=0]:(e.e=n,e.c=t),e}function z(e,t,n,r){var i,o,a,c,u,p,m,g=e.c,y=f;if(g){e:{for(i=1,c=g[0];c>=10;c/=10,i++);if((o=t-i)<0)o+=d,a=t,u=g[p=0],m=l(u/y[i-a-1]%10);else if((p=s((o+1)/d))>=g.length){if(!r)break e;for(;g.length<=p;g.push(0));u=m=0,i=1,a=(o%=d)-d+1}else{for(u=c=g[p],i=1;c>=10;c/=10,i++);m=(a=(o%=d)-d+i)<0?0:l(u/y[i-a-1]%10)}if(r=r||t<0||null!=g[p+1]||(a<0?u:u%y[i-a-1]),r=n<4?(m||r)&&(0==n||n==(e.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(o>0?a>0?u/y[i-a]:0:g[p-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,r?(t-=e.e+1,g[0]=y[(d-t%d)%d],e.e=-t||0):g[0]=e.e=0,e;if(0==o?(g.length=p,c=1,p--):(g.length=p+1,c=y[d-o],g[p]=a>0?l(u/y[i-a]%y[a])*c:0),r)for(;;){if(0==p){for(o=1,a=g[0];a>=10;a/=10,o++);for(a=g[0]+=c,c=1;a>=10;a/=10,c++);o!=c&&(e.e++,g[0]==h&&(g[0]=1));break}if(g[p]+=c,g[p]!=h)break;g[p--]=0,c=1}for(o=g.length;0===g[--o];g.pop());}e.e>P?e.c=e.e=null:e.e<T&&(e.c=[e.e=0])}return e}function q(e){var t,n=e.e;return null===n?e.toString():(t=v(e.c),t=n<=C||n>=M?x(t,n):A(t,n,"0"),e.s<0?"-"+t:t)}return N.clone=e,N.ROUND_UP=0,N.ROUND_DOWN=1,N.ROUND_CEIL=2,N.ROUND_FLOOR=3,N.ROUND_HALF_UP=4,N.ROUND_HALF_DOWN=5,N.ROUND_HALF_EVEN=6,N.ROUND_HALF_CEIL=7,N.ROUND_HALF_FLOOR=8,N.EUCLID=9,N.config=N.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(c+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(b(n=e[t],0,g,t),S=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(b(n=e[t],0,8,t),E=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(b(n[0],-g,0,t),b(n[1],0,g,t),C=n[0],M=n[1]):(b(n,-g,g,t),C=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)b(n[0],-g,-1,t),b(n[1],1,g,t),T=n[0],P=n[1];else{if(b(n,-g,g,t),!n)throw Error(c+t+" cannot be zero: "+n);T=-(P=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(c+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw R=!n,Error(c+"crypto unavailable");R=n}else R=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(b(n=e[t],0,9,t),I=n),e.hasOwnProperty(t="POW_PRECISION")&&(b(n=e[t],0,g,t),L=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(c+t+" not an object: "+n);O=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(c+t+" invalid: "+n);B="0123456789"==n.slice(0,10),D=n}}return{DECIMAL_PLACES:S,ROUNDING_MODE:E,EXPONENTIAL_AT:[C,M],RANGE:[T,P],CRYPTO:R,MODULO_MODE:I,POW_PRECISION:L,FORMAT:O,ALPHABET:D}},N.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!N.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-g&&i<=g&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%d)<1&&(t+=d),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=h||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+e)},N.maximum=N.max=function(){return j(arguments,-1)},N.minimum=N.min=function(){return j(arguments,1)},N.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return l(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var n,r,i,o,a,u=0,h=[],p=new N(k);if(null==e?e=S:b(e,0,g),o=s(e/d),R)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(o*=2));u<o;)(a=131072*n[u]+(n[u+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[u]=r[0],n[u+1]=r[1]):(h.push(a%1e14),u+=2);u=o/2}else{if(!crypto.randomBytes)throw R=!1,Error(c+"crypto unavailable");for(n=crypto.randomBytes(o*=7);u<o;)(a=281474976710656*(31&n[u])+1099511627776*n[u+1]+4294967296*n[u+2]+16777216*n[u+3]+(n[u+4]<<16)+(n[u+5]<<8)+n[u+6])>=9e15?crypto.randomBytes(7).copy(n,u):(h.push(a%1e14),u+=7);u=o/7}if(!R)for(;u<o;)(a=t())<9e15&&(h[u++]=a%1e14);for(o=h[--u],e%=d,o&&e&&(a=f[d-e],h[u]=l(o/a)*a);0===h[u];h.pop(),u--);if(u<0)h=[i=0];else{for(i=-1;0===h[0];h.splice(0,1),i-=d);for(u=1,a=h[0];a>=10;a/=10,u++);u<d&&(i-=d-u)}return p.e=i,p.c=h,p}}(),N.sum=function(){for(var e=1,t=arguments,n=new N(t[0]);e<t.length;)n=n.plus(t[e++]);return n},r=function(){var e="0123456789";function t(e,t,n,r){for(var i,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,s){var l,c,u,h,d,p,f,m,g=r.indexOf("."),y=S,w=E;for(g>=0&&(h=L,L=0,r=r.replace(".",""),p=(m=new N(i)).pow(r.length-g),L=h,m.c=t(A(v(p.c),p.e,"0"),10,o,e),m.e=m.c.length),u=h=(f=t(r,i,o,s?(l=D,e):(l=e,D))).length;0==f[--h];f.pop());if(!f[0])return l.charAt(0);if(g<0?--u:(p.c=f,p.e=u,p.s=a,f=(p=n(p,m,y,w,o)).c,d=p.r,u=p.e),g=f[c=u+y+1],h=o/2,d=d||c<0||null!=f[c+1],d=w<4?(null!=g||d)&&(0==w||w==(p.s<0?3:2)):g>h||g==h&&(4==w||d||6==w&&1&f[c-1]||w==(p.s<0?8:7)),c<1||!f[0])r=d?A(l.charAt(1),-y,l.charAt(0)):l.charAt(0);else{if(f.length=c,d)for(--o;++f[--c]>o;)f[c]=0,c||(++u,f=[1].concat(f));for(h=f.length;!f[--h];);for(g=0,r="";g<=h;r+=l.charAt(f[g++]));r=A(r,u,l.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,o,a,s=0,l=e.length,c=t%m,u=t/m|0;for(e=e.slice();l--;)s=((i=c*(o=e[l]%m)+(r=u*o+(a=e[l]/m|0)*c)%m*m+s)/n|0)+(r/m|0)+u*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,o,a,s){var c,u,p,f,m,g,v,w,b,_,x,A,k,S,E,C,M,T=r.s==i.s?1:-1,P=r.c,R=i.c;if(!P||!P[0]||!R||!R[0])return new N(r.s&&i.s&&(P?!R||P[0]!=R[0]:R)?P&&0==P[0]||!R?0*T:T/0:NaN);for(b=(w=new N(T)).c=[],T=o+(u=r.e-i.e)+1,s||(s=h,u=y(r.e/d)-y(i.e/d),T=T/d|0),p=0;R[p]==(P[p]||0);p++);if(R[p]>(P[p]||0)&&u--,T<0)b.push(1),f=!0;else{for(S=P.length,C=R.length,p=0,T+=2,(m=l(s/(R[0]+1)))>1&&(R=e(R,m,s),P=e(P,m,s),C=R.length,S=P.length),k=C,x=(_=P.slice(0,C)).length;x<C;_[x++]=0);M=R.slice(),M=[0].concat(M),E=R[0],R[1]>=s/2&&E++;do{if(m=0,(c=t(R,_,C,x))<0){if(A=_[0],C!=x&&(A=A*s+(_[1]||0)),(m=l(A/E))>1)for(m>=s&&(m=s-1),v=(g=e(R,m,s)).length,x=_.length;1==t(g,_,v,x);)m--,n(g,C<v?M:R,v,s),v=g.length,c=1;else 0==m&&(c=m=1),v=(g=R.slice()).length;if(v<x&&(g=[0].concat(g)),n(_,g,x,s),x=_.length,-1==c)for(;t(R,_,C,x)<1;)m++,n(_,C<x?M:R,x,s),x=_.length}else 0===c&&(m++,_=[0]);b[p++]=m,_[0]?_[x++]=P[k]||0:(_=[P[k]],x=1)}while((k++<S||null!=_[0])&&T--);f=null!=_[0],b[0]||b.splice(0,1)}if(s==h){for(p=1,T=b[0];T>=10;T/=10,p++);z(w,o+(w.e=p+u*d-1)+1,a,f)}else w.e=u,w.r=+f;return w}}(),i=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,l){var u,h=s?a:a.replace(i,"");if(r.test(h))o.s=isNaN(h)?null:h<0?-1:1;else{if(!s&&(h=h.replace(e,(function(e,t,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,l&&l!=u?e:t})),l&&(u=l,h=h.replace(t,"$1").replace(n,"0.$1")),a!=h))return new N(h,u);if(N.DEBUG)throw Error(c+"Not a"+(l?" base "+l:"")+" number: "+a);o.s=null}o.c=o.e=null}}(),o.absoluteValue=o.abs=function(){var e=new N(this);return e.s<0&&(e.s=1),e},o.comparedTo=function(e,t){return w(this,new N(e,t))},o.decimalPlaces=o.dp=function(e,t){var n,r,i,o=this;if(null!=e)return b(e,0,g),null==t?t=E:b(t,0,8),z(new N(o),e+o.e+1,t);if(!(n=o.c))return null;if(r=((i=n.length-1)-y(this.e/d))*d,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},o.dividedBy=o.div=function(e,t){return n(this,new N(e,t),S,E)},o.dividedToIntegerBy=o.idiv=function(e,t){return n(this,new N(e,t),0,1)},o.exponentiatedBy=o.pow=function(e,t){var n,r,i,o,a,u,h,p,f=this;if((e=new N(e)).c&&!e.isInteger())throw Error(c+"Exponent not an integer: "+q(e));if(null!=t&&(t=new N(t)),a=e.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!e.c||!e.c[0])return p=new N(Math.pow(+q(f),a?e.s*(2-_(e)):+q(e))),t?p.mod(t):p;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new N(NaN);(r=!u&&f.isInteger()&&t.isInteger())&&(f=f.mod(t))}else{if(e.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||a&&f.c[1]>=24e7:f.c[0]<8e13||a&&f.c[0]<=9999975e7)))return o=f.s<0&&_(e)?-0:0,f.e>-1&&(o=1/o),new N(u?1/o:o);L&&(o=s(L/d+2))}for(a?(n=new N(.5),u&&(e.s=1),h=_(e)):h=(i=Math.abs(+q(e)))%2,p=new N(k);;){if(h){if(!(p=p.times(f)).c)break;o?p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}if(i){if(0===(i=l(i/2)))break;h=i%2}else if(z(e=e.times(n),e.e+1,1),e.e>14)h=_(e);else{if(0===(i=+q(e)))break;h=i%2}f=f.times(f),o?f.c&&f.c.length>o&&(f.c.length=o):r&&(f=f.mod(t))}return r?p:(u&&(p=k.div(p)),t?p.mod(t):o?z(p,L,E,undefined):p)},o.integerValue=function(e){var t=new N(this);return null==e?e=E:b(e,0,8),z(t,t.e+1,e)},o.isEqualTo=o.eq=function(e,t){return 0===w(this,new N(e,t))},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(e,t){return w(this,new N(e,t))>0},o.isGreaterThanOrEqualTo=o.gte=function(e,t){return 1===(t=w(this,new N(e,t)))||0===t},o.isInteger=function(){return!!this.c&&y(this.e/d)>this.c.length-2},o.isLessThan=o.lt=function(e,t){return w(this,new N(e,t))<0},o.isLessThanOrEqualTo=o.lte=function(e,t){return-1===(t=w(this,new N(e,t)))||0===t},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.minus=function(e,t){var n,r,i,o,a=this,s=a.s;if(t=(e=new N(e,t)).s,!s||!t)return new N(NaN);if(s!=t)return e.s=-t,a.plus(e);var l=a.e/d,c=e.e/d,u=a.c,p=e.c;if(!l||!c){if(!u||!p)return u?(e.s=-t,e):new N(p?a:NaN);if(!u[0]||!p[0])return p[0]?(e.s=-t,e):new N(u[0]?a:3==E?-0:0)}if(l=y(l),c=y(c),u=u.slice(),s=l-c){for((o=s<0)?(s=-s,i=u):(c=l,i=p),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(o=(s=u.length)<(t=p.length))?s:t,s=t=0;t<r;t++)if(u[t]!=p[t]){o=u[t]<p[t];break}if(o&&(i=u,u=p,p=i,e.s=-e.s),(t=(r=p.length)-(n=u.length))>0)for(;t--;u[n++]=0);for(t=h-1;r>s;){if(u[--r]<p[r]){for(n=r;n&&!u[--n];u[n]=t);--u[n],u[r]+=h}u[r]-=p[r]}for(;0==u[0];u.splice(0,1),--c);return u[0]?U(e,u,c):(e.s=3==E?-1:1,e.c=[e.e=0],e)},o.modulo=o.mod=function(e,t){var r,i,o=this;return e=new N(e,t),!o.c||!e.s||e.c&&!e.c[0]?new N(NaN):!e.c||o.c&&!o.c[0]?new N(o):(9==I?(i=e.s,e.s=1,r=n(o,e,0,3),e.s=i,r.s*=i):r=n(o,e,0,I),(e=o.minus(r.times(e))).c[0]||1!=I||(e.s=o.s),e)},o.multipliedBy=o.times=function(e,t){var n,r,i,o,a,s,l,c,u,p,f,g,v,w,b,_=this,x=_.c,A=(e=new N(e,t)).c;if(!x||!A||!x[0]||!A[0])return!_.s||!e.s||x&&!x[0]&&!A||A&&!A[0]&&!x?e.c=e.e=e.s=null:(e.s*=_.s,x&&A?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=y(_.e/d)+y(e.e/d),e.s*=_.s,(l=x.length)<(p=A.length)&&(v=x,x=A,A=v,i=l,l=p,p=i),i=l+p,v=[];i--;v.push(0));for(w=h,b=m,i=p;--i>=0;){for(n=0,f=A[i]%b,g=A[i]/b|0,o=i+(a=l);o>i;)n=((c=f*(c=x[--a]%b)+(s=g*c+(u=x[a]/b|0)*f)%b*b+v[o]+n)/w|0)+(s/b|0)+g*u,v[o--]=c%w;v[o]=n}return n?++r:v.splice(0,1),U(e,v,r)},o.negated=function(){var e=new N(this);return e.s=-e.s||null,e},o.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new N(e,t)).s,!i||!t)return new N(NaN);if(i!=t)return e.s=-t,r.minus(e);var o=r.e/d,a=e.e/d,s=r.c,l=e.c;if(!o||!a){if(!s||!l)return new N(i/0);if(!s[0]||!l[0])return l[0]?e:new N(s[0]?r:0*i)}if(o=y(o),a=y(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=l):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(t=l.length)<0&&(n=l,l=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+l[t]+i)/h|0,s[t]=h===s[t]?0:s[t]%h;return i&&(s=[i].concat(s),++a),U(e,s,a)},o.precision=o.sd=function(e,t){var n,r,i,o=this;if(null!=e&&e!==!!e)return b(e,1,g),null==t?t=E:b(t,0,8),z(new N(o),e,t);if(!(n=o.c))return null;if(r=(i=n.length-1)*d+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&o.e+1>r&&(r=o.e+1),r},o.shiftedBy=function(e){return b(e,-9007199254740991,p),this.times("1e"+e)},o.squareRoot=o.sqrt=function(){var e,t,r,i,o,a=this,s=a.c,l=a.s,c=a.e,u=S+4,h=new N("0.5");if(1!==l||!s||!s[0])return new N(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(l=Math.sqrt(+q(a)))||l==1/0?(((t=v(s)).length+c)%2==0&&(t+="0"),l=Math.sqrt(+t),c=y((c+1)/2)-(c<0||c%2),r=new N(t=l==1/0?"5e"+c:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new N(l+""),r.c[0])for((l=(c=r.e)+u)<3&&(l=0);;)if(o=r,r=h.times(o.plus(n(a,o,u,1))),v(o.c).slice(0,l)===(t=v(r.c)).slice(0,l)){if(r.e<c&&--l,"9999"!=(t=t.slice(l-3,l+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(z(r,r.e+S+2,1),e=!r.times(r).eq(a));break}if(!i&&(z(o,o.e+S+2,0),o.times(o).eq(a))){r=o;break}u+=4,l+=4,i=1}return z(r,r.e+S+1,E,e)},o.toExponential=function(e,t){return null!=e&&(b(e,0,g),e++),F(this,e,t,1)},o.toFixed=function(e,t){return null!=e&&(b(e,0,g),e=e+this.e+1),F(this,e,t)},o.toFormat=function(e,t,n){var r,i=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=O;else if("object"!=typeof n)throw Error(c+"Argument not an object: "+n);if(r=i.toFixed(e,t),i.c){var o,a=r.split("."),s=+n.groupSize,l=+n.secondaryGroupSize,u=n.groupSeparator||"",h=a[0],d=a[1],p=i.s<0,f=p?h.slice(1):h,m=f.length;if(l&&(o=s,s=l,l=o,m-=o),s>0&&m>0){for(o=m%s||s,h=f.substr(0,o);o<m;o+=s)h+=u+f.substr(o,s);l>0&&(h+=u+f.slice(o)),p&&(h="-"+h)}r=d?h+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):h}return(n.prefix||"")+r+(n.suffix||"")},o.toFraction=function(e){var t,r,i,o,a,s,l,u,h,p,m,g,y=this,w=y.c;if(null!=e&&(!(l=new N(e)).isInteger()&&(l.c||1!==l.s)||l.lt(k)))throw Error(c+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+q(l));if(!w)return new N(y);for(t=new N(k),h=r=new N(k),i=u=new N(k),g=v(w),a=t.e=g.length-y.e-1,t.c[0]=f[(s=a%d)<0?d+s:s],e=!e||l.comparedTo(t)>0?a>0?t:h:l,s=P,P=1/0,l=new N(g),u.c[0]=0;p=n(l,t,0,1),1!=(o=r.plus(p.times(i))).comparedTo(e);)r=i,i=o,h=u.plus(p.times(o=h)),u=o,t=l.minus(p.times(o=t)),l=o;return o=n(e.minus(r),i,0,1),u=u.plus(o.times(h)),r=r.plus(o.times(i)),u.s=h.s=y.s,m=n(h,i,a*=2,E).minus(y).abs().comparedTo(n(u,r,a,E).minus(y).abs())<1?[h,i]:[u,r],P=s,m},o.toNumber=function(){return+q(this)},o.toPrecision=function(e,t){return null!=e&&b(e,1,g),F(this,e,t,2)},o.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=C||o>=M?x(v(n.c),o):A(v(n.c),o,"0"):10===e&&B?t=A(v((n=z(new N(n),S+o+1,E)).c),n.e,"0"):(b(e,2,D.length,"Base"),t=r(A(v(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},o.valueOf=o.toJSON=function(){return q(this)},o._isBigNumber=!0,null!=t&&N.set(t),N}(),o.default=o.BigNumber=o,void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},518:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(6601).Buffer}catch(k){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),o=t;o<i;o++){var a=e.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>
vendor: 9,410 bytes, line 2
2=17&&a<=22?a-17+10:15&a}return r}function l(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=l(e,u,e.length,t),u=0;u<a;u++)h*=t;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var u=l>>>26,h=67108863&l,d=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=d;p++){var f=c-p|0;u+=(a=(i=0|e.words[f])*(o=0|t.words[p])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?c[6-l.length]+l+n:l+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],p=h[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(e);n=(f=f.idivn(p)).isZero()?m+n:c[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,c=new e(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return r(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>
vendor: 6,907 bytes, line 2
2>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,i,o,a=e.words,s=t.words,l=n.words,c=0,u=0|a[0],h=8191&u,d=u>>>13,p=0|a[1],f=8191&p,m=p>>>13,g=0|a[2],y=8191&g,v=g>>>13,w=0|a[3],b=8191&w,_=w>>>13,x=0|a[4],A=8191&x,k=x>>>13,S=0|a[5],E=8191&S,C=S>>>13,M=0|a[6],T=8191&M,P=M>>>13,R=0|a[7],I=8191&R,L=R>>>13,O=0|a[8],D=8191&O,B=O>>>13,N=0|a[9],F=8191&N,j=N>>>13,U=0|s[0],z=8191&U,q=U>>>13,W=0|s[1],V=8191&W,H=W>>>13,K=0|s[2],G=8191&K,Z=K>>>13,Q=0|s[3],Y=8191&Q,X=Q>>>13,J=0|s[4],$=8191&J,ee=J>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],he=8191&ue,de=ue>>>13,pe=0|s[9],fe=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(d,z)|0))<<13)|0;c=((o=Math.imul(d,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(f,z),i=(i=Math.imul(f,q))+Math.imul(m,z)|0,o=Math.imul(m,q);var ye=(c+(r=r+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,H)|0)+Math.imul(d,V)|0))<<13)|0;c=((o=o+Math.imul(d,H)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(v,z)|0,o=Math.imul(v,q),r=r+Math.imul(f,V)|0,i=(i=i+Math.imul(f,H)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,H)|0;var ve=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(b,z),i=(i=Math.imul(b,q))+Math.imul(_,z)|0,o=Math.imul(_,q),r=r+Math.imul(y,V)|0,i=(i=i+Math.imul(y,H)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,H)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,Z)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,Z)|0;var we=(c+(r=r+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,Y)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(k,z)|0,o=Math.imul(k,q),r=r+Math.imul(b,V)|0,i=(i=i+Math.imul(b,H)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,H)|0,r=r+Math.imul(y,G)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Z)|0,r=r+Math.imul(f,Y)|0,i=(i=i+Math.imul(f,X)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,X)|0;var be=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,q))+Math.imul(C,z)|0,o=Math.imul(C,q),r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,H)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,H)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Z)|0,r=r+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var _e=(c+(r=r+Math.imul(h,ne)|0)|0)+((8191&(i=(i=i+Math.imul(h,re)|0)+Math.imul(d,ne)|0))<<13)|0;c=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(T,z),i=(i=Math.imul(T,q))+Math.imul(P,z)|0,o=Math.imul(P,q),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,H)|0,r=r+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Z)|0,r=r+Math.imul(b,Y)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var xe=(c+(r=r+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(I,z),i=(i=Math.imul(I,q))+Math.imul(L,z)|0,o=Math.imul(L,q),r=r+Math.imul(T,V)|0,i=(i=i+Math.imul(T,H)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,H)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,i=(i=i+Math.imul(f,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Ae=(c+(r=r+Math.imul(h,le)|0)|0)+((8191&(i=(i=i+Math.imul(h,ce)|0)+Math.imul(d,le)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(D,z),i=(i=Math.imul(D,q))+Math.imul(B,z)|0,o=Math.imul(B,q),r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,H)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,H)|0,r=r+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,Z)|0,r=r+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,r=r+Math.imul(f,le)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;var ke=(c+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(F,z),i=(i=Math.imul(F,q))+Math.imul(j,z)|0,o=Math.imul(j,q),r=r+Math.imul(D,V)|0,i=(i=i+Math.imul(D,H)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,H)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,Z)|0,r=r+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(y,le)|0,i=(i=i+Math.imul(y,
vendor: 1,874 bytes, line 2
2ce)|0)+Math.imul(v,le)|0,o=o+Math.imul(v,ce)|0,r=r+Math.imul(f,he)|0,i=(i=i+Math.imul(f,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var Se=(c+(r=r+Math.imul(h,fe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,fe)|0))<<13)|0;c=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(F,V),i=(i=Math.imul(F,H))+Math.imul(j,V)|0,o=Math.imul(j,H),r=r+Math.imul(D,G)|0,i=(i=i+Math.imul(D,Z)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,X)|0,r=r+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(b,le)|0,i=(i=i+Math.imul(b,ce)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var Ee=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(F,G),i=(i=Math.imul(F,Z))+Math.imul(j,G)|0,o=Math.imul(j,Z),r=r+Math.imul(D,Y)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(T,ne)|0,i=(i=i+Math.imul(T,re)|0)+Math.imul(P,ne)|0,o=o+Math.imul(P,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(A,le)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(k,le)|0,o=o+Math.imul(k,ce)|0,r=r+Math.imul(b,he)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Ce=(c+(r=r+Math.imul(y,fe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(v,fe)|0))<<13)|0;c=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(Ce>>>
vendor: 7,493 bytes, line 2
226)|0,Ce&=67108863,r=Math.imul(F,Y),i=(i=Math.imul(F,X))+Math.imul(j,Y)|0,o=Math.imul(j,X),r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,r=r+Math.imul(E,le)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,ce)|0,r=r+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(k,he)|0,o=o+Math.imul(k,de)|0;var Me=(c+(r=r+Math.imul(b,fe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(_,fe)|0))<<13)|0;c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(F,$),i=(i=Math.imul(F,ee))+Math.imul(j,$)|0,o=Math.imul(j,ee),r=r+Math.imul(D,ne)|0,i=(i=i+Math.imul(D,re)|0)+Math.imul(B,ne)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,r=r+Math.imul(T,le)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(P,le)|0,o=o+Math.imul(P,ce)|0,r=r+Math.imul(E,he)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(C,he)|0,o=o+Math.imul(C,de)|0;var Te=(c+(r=r+Math.imul(A,fe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(k,fe)|0))<<13)|0;c=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(F,ne),i=(i=Math.imul(F,re))+Math.imul(j,ne)|0,o=Math.imul(j,re),r=r+Math.imul(D,oe)|0,i=(i=i+Math.imul(D,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,r=r+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(L,le)|0,o=o+Math.imul(L,ce)|0,r=r+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(P,he)|0,o=o+Math.imul(P,de)|0;var Pe=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(C,fe)|0))<<13)|0;c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(F,oe),i=(i=Math.imul(F,ae))+Math.imul(j,oe)|0,o=Math.imul(j,ae),r=r+Math.imul(D,le)|0,i=(i=i+Math.imul(D,ce)|0)+Math.imul(B,le)|0,o=o+Math.imul(B,ce)|0,r=r+Math.imul(I,he)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(L,he)|0,o=o+Math.imul(L,de)|0;var Re=(c+(r=r+Math.imul(T,fe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(P,fe)|0))<<13)|0;c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(F,le),i=(i=Math.imul(F,ce))+Math.imul(j,le)|0,o=Math.imul(j,ce),r=r+Math.imul(D,he)|0,i=(i=i+Math.imul(D,de)|0)+Math.imul(B,he)|0,o=o+Math.imul(B,de)|0;var Ie=(c+(r=r+Math.imul(I,fe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(L,fe)|0))<<13)|0;c=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(F,he),i=(i=Math.imul(F,de))+Math.imul(j,he)|0,o=Math.imul(j,de);var Le=(c+(r=r+Math.imul(D,fe)|0)|0)+((8191&(i=(i=i+Math.imul(D,me)|0)+Math.imul(B,fe)|0))<<13)|0;c=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863;var Oe=(c+(r=Math.imul(F,fe))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(j,fe)|0))<<13)|0;return c=((o=Math.imul(j,me))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,l[0]=ge,l[1]=ye,l[2]=ve,l[3]=we,l[4]=be,l[5]=_e,l[6]=xe,l[7]=Ae,l[8]=ke,l[9]=Se,l[10]=Ee,l[11]=Ce,l[12]=Me,l[13]=Te,l[14]=Pe,l[15]=Re,l[16]=Ie,l[17]=Le,l[18]=Oe,0!==c&&(l[19]=c,n.length++),n};function f(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=d),o.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,h=(0|e.words[u])*(0|t.words[c]),d=67108863&h;s=67108863&(d=d+s|0),i+=(a=(a=a+(h/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):f(this,e,t),n},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},m.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var h=l,d=c,p=0;p<a;p++){var f=n[u+p],m=r[u+p],g=n[u+p+a],y=r[u+p+a],v=h*g-d*y;y=h*y+d*g,g=v,n[u+p]=f+g,r[u+p]=m+y,n[u+p+a]=f-g,r[u+p+a]=m-y,p!==s&&(v=l*h-c*d,d=l*d+c*h,h=v)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0===(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),l=new Array(r),c=new Array(r),u=new Array(r),h=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,c,r),this.transform(a,o,s,l,r,i),this.transform(c,o,u,h,r,i);for(var p=0;p<r;p++){var f=s[p]*u[p]-l[p]*h[p];l[p]=s[p]*h[p]+l[p]*u[p],s[p]=f}return this.conjugate(s,l,r),this.transform(s,l,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),f(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"===typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"===typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<n;this.words[t]=l|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=n;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;
vendor: 5,393 bytes, line 2
2c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var h=0|this.words[c];this.words[c]=u<<26-o|h>>>o,u=h&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"===typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=r.clone()._ishlnsubmul(i,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var h=l-1;h>=0;h--){var d=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),h=t.clone();!t.isZero();){for(var d=0,p=1;
vendor: 11,761 bytes, line 2
20===(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var f=0,m=1;0===(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(h)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(l)):(n.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var h=0,d=1;0===(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&n,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,y),i(b,y),i(_,y),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},x.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var h=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),f=a;0!==p.cmp(s);){for(var m=p,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<f);var y=this.pow(h,new o(1).iushln(f-g-1));d=d.redMul(y),h=y.redSqr(),p=p.redMul(h),f=g}return d},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=l-1;u>=0;u--){var h=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new A(e)},i(A,x),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},5524:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
vendor: 6,564 bytes, line 2
2),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,l=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=e,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=o.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},o=n(18);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){}var t,n,r;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(n=null)&&a(t.prototype,n),r&&a(t,r),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=l(n(92)),i=l(n(93)),o=l(n(94)),a=l(n(95)),s=l(n(17));
vendor: 4,495 bytes, line 2
2function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},o=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(n[t]=a,r+=1)})),r>0){var a=Object.keys(n),l=s.default.find(a,(function(e){return t.isOS(e)}));if(l){var c=this.satisfies(n[l]);if(void 0!==c)return c}var u=s.default.find(a,(function(e){return t.isPlatform(e)}));if(u){var h=this.satisfies(n[u]);if(void 0!==h)return h}}if(o>0){var d=Object.keys(i),p=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==p)return this.compareVersion(i[p])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=c
vendor: 14,314 bytes, line 2
2,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},
29778:(e,t,n)=>{"use strict";const r=n(2009),i=n(4038),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=l,t.h2=50;const a=2147483647;function s(e){if(e>
2a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||Y(e.length)?s(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return u(e),s(e<0?0:0|f(e))}function d(e){const t=e.length<0?0:0|f(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return r?-1:K(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;
vendor: 4,856 bytes, line 2
2a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(c(e,o+r)!==c(t,r)){n=!1;break}if(n)return o}return-1}function b(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(Y(r))return a;e[n+a]=r}return a}function _(e,t,n,r){return Z(K(t,e.length-n),e,n,r)}function x(e,t,n,r){return Z(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function A(e,t,n,r){return Z(G(t),e,n,r)}function k(e,t,n,r){return Z(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"===typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return h(e)},l.allocUnsafeSlow=function(e){return h(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).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}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Q(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):g.apply(this,arguments)}
vendor: 12,229 bytes, line 2
2,l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n);for(let l=0;l<s;++l)if(c[l]!==u[l]){o=c[l],a=u[l];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function M(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function T(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function P(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=t;o<n;++o)i+=X[e[o]];return i}function R(e,t,n){const r=e.slice(t,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function O(e,t,n,r,i){q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function D(e,t,n,r,i){q(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return t=+t,n>>>=0,o||B(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return t=+t,n>>>=0,o||B(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){L(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){L(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=J((function(e){return O(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=J((function(e){return O(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),a=o.length;
2if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const j={};function U(e,t,n){j[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(e,"]"),this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}}function z(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function q(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new j.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||V(t,e.length-(n+1))}(r,i,o)}function W(e,t){if("number"!==typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function V(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new j.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i),r}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function K(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function Z(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!==e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"===typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},9412:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(o){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=i(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var n={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},i=r.exec(e);i;){try{n[i[0]]=decodeURIComponent(i[0])}catch(t){var a=o(i[0]);a!==i[0]&&(n[i[0]]=a)}i=r.exec(e)}n["%C2"]="\ufffd";for(var s=Object.keys(n),l=0;l<s.length;l++){var c=s[l];e=e.replace(new RegExp(c,"g"),n[c])}return e}(e)}}},9437:(e,t,n)=>{var r;!function(){"use strict";var t="object"===typeof window?window:{};!t.HI_BASE32_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node&&(t=n.g);var i=!t.HI_BASE32_NO_COMMON_JS&&e.exports,o=n.amdO,a="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),s={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},l=[0,0,0,0,0,0,0,0],c=function(e,t){t.length>10&&(t="..."+t.substr(-10));
vendor: 5,762 bytes, line 2
2var n=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+e+" bytes: "+t+" <-");throw n.position=e,n},u=function(e){if(""===e)return[];if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");for(var t,n,r,i,o,a,l,c,u=[],h=0,d=(e=e.replace(/=/g,"")).length,p=0,f=d>>3<<3;p<f;)t=s[e.charAt(p++)],n=s[e.charAt(p++)],r=s[e.charAt(p++)],i=s[e.charAt(p++)],o=s[e.charAt(p++)],a=s[e.charAt(p++)],l=s[e.charAt(p++)],c=s[e.charAt(p++)],u[h++]=255&(t<<3|n>>>2),u[h++]=255&(n<<6|r<<1|i>>>4),u[h++]=255&(i<<4|o>>>1),u[h++]=255&(o<<7|a<<2|l>>>3),u[h++]=255&(l<<5|c);var m=d-f;return 2===m?(t=s[e.charAt(p++)],n=s[e.charAt(p++)],u[h++]=255&(t<<3|n>>>2)):4===m?(t=s[e.charAt(p++)],n=s[e.charAt(p++)],r=s[e.charAt(p++)],i=s[e.charAt(p++)],u[h++]=255&(t<<3|n>>>2),u[h++]=255&(n<<6|r<<1|i>>>4)):5===m?(t=s[e.charAt(p++)],n=s[e.charAt(p++)],r=s[e.charAt(p++)],i=s[e.charAt(p++)],o=s[e.charAt(p++)],u[h++]=255&(t<<3|n>>>2),u[h++]=255&(n<<6|r<<1|i>>>4),u[h++]=255&(i<<4|o>>>1)):7===m&&(t=s[e.charAt(p++)],n=s[e.charAt(p++)],r=s[e.charAt(p++)],i=s[e.charAt(p++)],o=s[e.charAt(p++)],a=s[e.charAt(p++)],l=s[e.charAt(p++)],u[h++]=255&(t<<3|n>>>2),u[h++]=255&(n<<6|r<<1|i>>>4),u[h++]=255&(i<<4|o>>>1),u[h++]=255&(o<<7|a<<2|l>>>3)),u},h=function(e,t){if(!t)return function(e){for(var t,n,r="",i=e.length,o=0,a=0;o<i;)if((t=e[o++])<=127)r+=String.fromCharCode(t);else{t>191&&t<=223?(n=31&t,a=1):t<=239?(n=15&t,a=2):t<=247?(n=7&t,a=3):c(o,r);for(var s=0;s<a;++s)((t=e[o++])<128||t>191)&&c(o,r),n<<=6,n+=63&t;n>=55296&&n<=57343&&c(o,r),n>1114111&&c(o,r),n<=65535?r+=String.fromCharCode(n):(n-=65536,r+=String.fromCharCode(55296+(n>>10)),r+=String.fromCharCode(56320+(1023&n)))}return r}(u(e));if(""===e)return"";if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");var n,r,i,o,a,l,h,d,p="",f=e.indexOf("=");-1===f&&(f=e.length);for(var m=0,g=f>>3<<3;m<g;)n=s[e.charAt(m++)],r=s[e.charAt(m++)],i=s[e.charAt(m++)],o=s[e.charAt(m++)],a=s[e.charAt(m++)],l=s[e.charAt(m++)],h=s[e.charAt(m++)],d=s[e.charAt(m++)],p+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|i<<1|o>>>4))+String.fromCharCode(255&(o<<4|a>>>1))+String.fromCharCode(255&(a<<7|l<<2|h>>>3))+String.fromCharCode(255&(h<<5|d));var y=f-g;return 2===y?(n=s[e.charAt(m++)],r=s[e.charAt(m++)],p+=String.fromCharCode(255&(n<<3|r>>>2))):4===y?(n=s[e.charAt(m++)],r=s[e.charAt(m++)],i=s[e.charAt(m++)],o=s[e.charAt(m++)],p+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|i<<1|o>>>4))):5===y?(n=s[e.charAt(m++)],r=s[e.charAt(m++)],i=s[e.charAt(m++)],o=s[e.charAt(m++)],a=s[e.charAt(m++)],p+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|i<<1|o>>>4))+String.fromCharCode(255&(o<<4|a>>>1))):7===y&&(n=s[e.charAt(m++)],r=s[e.charAt(m++)],i=s[e.charAt(m++)],o=s[e.charAt(m++)],a=s[e.charAt(m++)],l=s[e.charAt(m++)],h=s[e.charAt(m++)],p+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|i<<1|o>>>4))+String.fromCharCode(255&(o<<4|a>>>1))+String.fromCharCode(255&(a<<7|l<<2|h>>>3))),p},d={encode:function(e,t){var n="string"!==typeof e;return n&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),n?function(e){for(var t,n,r,i,o,s="",l=e.length,c=0,u=5*parseInt(l/5);c<u;)t=e[c++],n=e[c++],r=e[c++],i=e[c++],o=e[c++],s+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[31&(n<<4|r>>>4)]+a[31&(r<<1|i>>>7)]+a[i>>>2&31]+a[31&(i<<3|o>>>5)]+a[31&o];var h=l-u;return 1===h?(t=e[c],s+=a[t>>>3]+a[t<<2&31]+"======"):2===h?(t=e[c++],n=e[c],s+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[n<<4&31]+"===="):3===h?(t=e[c++],n=e[c++],r=e[c],s+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[31&(n<<4|r>>>4)]+a[r<<1&31]+"==="):4===h&&(t=e[c++],n=e[c++],r=e[c++],i=e[c],s+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[31&(n<<4|r>>>4)]+a[31&(r<<1|i>>>7)]+a[i>>>2&31]+a[i<<3&31]+"="),s}(e):t?function(e){for(var t,n,r,i,o,s="",l=e.length,c=0,u=5*parseInt(l/5);c<u;)t=e.charCodeAt(c++),n=e.charCodeAt(c++),r=e.charCodeAt(c++),i=e.charCodeAt(c++),o=e.charCodeAt(c++),s+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[31&(n<<4|r>>>4)]+a[31&(r<<1|i>>>7)]+a[i>>>2&31]+a[31&(i<<3|o>>>5)]+a[31&o];var h=l-u;return 1===h?(t=e.charCodeAt(c),s+=a[t>>>3]+a[t<<2&31]+"======"):2===h?(t=e.charCodeAt(c++),n=e.charCodeAt(c),s+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[n<<4&31]+"===="):3===h?(t=e.charCodeAt(c++),n=e.charCodeAt(c++),r=e.charCodeAt(c),s+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[31&(n<<4|r>>>4)]+a[r<<1&31]+"==="):4===h&&(t=e.charCodeAt(c++),n=e.charCodeAt(c++),r=e.charCodeAt(c++),i=e.charCodeAt(c),s+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[31&(n<<4|r>>>4)]+a[31&(r<<1|i>>>7)]+a[i>>>2&31]+a[i<<3&31]+"="),s}(e):function(e){var t,n,r,i,o,s,c,u=!1,h="",d=0,p=0,f=e.length;if(""===e)return h;do{for(l[0]=l[5],l[1]=l[6],l[2]=l[7],c=p;d<f&&c<5;++d)(s=e.charCodeAt(d))<128?l[c++]=s:s<2048?(l[c++]=192|s>>6,l[c++]=128|63&s):s<55296||s>=57344?(l[c++]=224|s>>12,l[c++]=128|s>>6&63,l[c++]=128|63&s):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++d)),l[c++]=240|s>>18,l[c++]=128|s>>12&63,l[c++]=128|s>>6&63,l[c++]=128|63&s);p=c-5,d===f&&++d,d>f&&c<6&&(u=!0),t=l[0],c>4?(n=l[1],r=l[2],i=l[3],o=l[4],h+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[31&(n<<4|r>>>4)]+a[31&(r<<1|i>>>7)]+a[i>>>2&31]+a[31&(i<<3|o>>>5)]+a[31&o]):1===c?h+=a[t>>>3]+a[t<<2&31]+"======":2===c?(n=l[1],h+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[n<<4&31]+"===="):3===c?(n=l[1],r=l[2],h+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[31&(n<<4|r>>>4)]+a[r<<1&31]+"==="):(n=l[1],r=l[2],i=l[3],h+=a[t>>>3]+a[31&(t<<2|n>>>6)]+a[n>>>1&31]+a[31&(n<<4|r>>>4)]+a[31&(r<<1|i>>>7)]+a[i>>>2&31]+a[i<<3&31]+"=")}while(!u);return h}(e)},decode:h};h.asBytes=u,i?e.exports=d:(t.base32=d,o&&(void 0===(r=function(){return d}.call(d,n,d,e))||(e.exports=r)))}()},4038:(e,t)=>
vendor: 9,973 bytes, line 2
2{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,h=n?i-1:0,d=n?-1:1,p=e[t+h];for(h+=d,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,h=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*m}},5520:e=>{e.exports=r,r.strict=i,r.loose=o;var t=Object.prototype.toString,n={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function r(e){return i(e)||o(e)}function i(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function o(e){return n[t.call(e)]}},7898:(e,t,n)=>{var r;!function(){"use strict";var i="input is invalid type",o="object"===typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"===typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node?a=n.g:s&&(a=self);var l=!a.JS_SHA3_NO_COMMON_JS&&e.exports,c=n.amdO,u=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,h="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[0,8,16,24],f=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=[224,256,384,512],g=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!u||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,n){return function(r){return new O(e,t,e).update(r)[n]()}},b=function(e,t,n){return function(r,i){return new O(e,t,i).update(r)[n]()}},_=function(e,t,n){return function(t,r,i,o){return E["cshake"+e].update(t,r,i,o)[n]()}},x=function(e,t,n){return function(t,r,i,o){return E["kmac"+e].update(t,r,i,o)[n]()}},A=function(e,t,n,r){for(var i=0;i<y.length;++i){var o=y[i];e[o]=t(n,r,o)}return e},k=function(e,t){var n=w(e,t,"hex");return n.create=function(){return new O(e,t,e)},n.update=function(e){return n.create().update(e)},A(n,w,e,t)},S=[{name:"keccak",padding:[1,256,65536,16777216],bits:m,createMethod:k},{name:"sha3",padding:[6,1536,393216,100663296],bits:m,createMethod:k},{name:"shake",padding:[31,7936,2031616,520093696],bits:g,createMethod:function(e,t){var n=b(e,t,"hex");return n.create=function(n){return new O(e,t,n)},n.update=function(e,t){return n.create(t).update(e)},A(n,b,e,t)}},{name:"cshake",padding:d,bits:g,createMethod:function(e,t){var n=v[e],r=_(e,0,"hex");return r.create=function(r,i,o){return i||o?new O(e,t,r).bytepad([i,o],n):E["shake"+e].create(r)},r.update=function(e,t,n,i){return r.create(t,n,i).update(e)},A(r,_,e,t)}},{name:"kmac",padding:d,bits:g,createMethod:function(e,t){var n=v[e],r=x(e,0,"hex");return r.create=function(r,i,o){return new D(e,t,i).bytepad(["KMAC",o],n).bytepad([r],n)},r.update=function(e,t,n,i){return r.create(e,n,i).update(t)},A(r,x,e,t)}}],E={},C=[],M=0;M<S.length;++M)for(var T=S[M],P=T.bits,R=0;R<P.length;++R){var I=T.name+"_"+P[R];if(C.push(I),E[I]=T.createMethod(P[R],T.padding),"sha3"!==T.name){var L=T.name+P[R];C.push(L),E[L]=E[I]}}function O(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function D(e,t,n){O.call(this,e,t,n)}O.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(i);if(null===e)throw new Error(i);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(i);t=!0}for(var r,o,a=this.blocks,s=this.byteCount,l=e.length,c=this.blockCount,h=0,d=this.s;h<l;){if(this.reset)for(this.reset=!1,a[0]=this.block,r=1;r<c+1;++r)a[r]=0;if(t)for(r=this.start;h<l&&r<s;++h)a[r>>2]|=e[h]<<p[3&r++];else for(r=this.start;h<l&&r<s;++h)(o=e.charCodeAt(h))<128?a[r>>2]|=o<<p[3&r++]:o<2048?(a[r>>2]|=(192|o>>6)<<p[3&r++],a[r>>2]|=(128|63&o)<<p[3&r++]):o<55296||o>=57344?(a[r>>2]|=(224|o>>12)<<p[3&r++],a[r>>2]|=(128|o>>6&63)<<p[3&r++],a[r>>2]|=(128|63&o)<<p[3&r++]):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++h)),a[r>>2]|=(240|o>>18)<<p[3&r++],a[r>>2]|=(128|o>>12&63)<<p[3&r++],a[r>>2]|=(128|o>>6&63)<<p[3&r++],a[r>>2]|=(128|63&o)<<p[3&r++]);if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=a[c],r=0;r<c;++r)d[r]^=a[r];B(d),this.reset=!0}else this.start=r}return this},O.prototype.encode=function(e,t){var n=255&e,r=1,i=[n];for(n=255&(e>>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},O.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(i);if(null===e)throw new Error(i);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(i);t=!0}var r=0,o=e.length;if(t)r=o;else for(var a=0;a<e.length;++a){var s=e.charCodeAt(a);s<128?r+=1:s<2048?r+=2:s<55296||s>=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),r+=4)}return r+=this.encode(8*r),this.update(e),r},O.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r<e.length;++r)n+=this.encodeString(e[r]);var i=t-n%t,o=[];return o.length=i,this.update(o),this},O.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];B(r)}},O.prototype.toString=O.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<r;){for(o=0;o<t&&a<r;++o,++a)e=n[o],s+=h[e>>4&15]+h[15&e]+h[e>>12&15]+h[e>>8&15]+h[e>>20&15]+h[e>>16&15]+h[e>>28&15]+h[e>>24&15];a%t===0&&(B(n),o=0)}return i&&(e=n[o],s+=h[e>>4&15]+h[15&e],i>1&&(s+=h[e>>12&15]+h[e>>8&15]),i>2&&(s+=h[e>>20&15]+h[e>>16&15])),s},O.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var l=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)l[a]=n[o];a%t===0&&B(n)}return i&&(l[o]=n[o],e=e.slice(0,s)),e},O.prototype.buffer=O.prototype.arrayBuffer,O.prototype.digest=O.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,l=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;s%n===0&&B(r)}return o&&(e=s<<2,t=r[a],l[e]=255&t,o>1&&(l[e+1]=t>>8&255),o>2&&(l[e+2]=t>>16&255)),l},D.prototype=new O,D.prototype.finalize=function(){return this.encode(this.outputBits,!0),O.prototype.finalize.call(this)};var B=function(e){var t,n,r,i,o,a,s,l,c,u,h,d,p,m,g,y,v,w,b,_,x,A,k,S,E,C,M,T,P,R,I,L,O,D,B,N,F,j,U,z,q,W,V,H,K,G,Z,Q,Y,X,J,$,ee,te,ne,re,ie,oe,ae,se,le,ce,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|c>>>31),n=o^(c<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(u<<1|h>>>31),n=s^(h<<1|u>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(d<<1|p>>>31),n=c^(p<<1|d>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=u^(i<<1|o>>>31),n=h^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],g=e[1],G=e[11]<<4|e[10]>>>28,Z=e[10]<<4|e[11]>>>28,T=e[20]<<3|e[21]>>>29,P=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,le=e[30]<<9|e[31]>>>23,W=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,D=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Q=e[22]<<10|e[23]>>>22,Y=e[23]<<10|e[22]>>>22,R=e[33]<<13|e[32]>>>19,I=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,N=e[14]<<6|e[15]>>>26,F=e[15]<<6|e[14]>>>26,w=e[25]<<11|e[24]>>>21,b=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,L=e[45]<<29|e[44]>>>3,O=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>
29,ie=e[16]<<23|e[17]>>>9,j=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,H=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,C=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=m^~y&w,e[1]=g^~v&b,e[10]=S^~C&T,e[11]=E^~M&P,e[20]=D^~N&j,e[21]=B^~F&U,e[30]=H^~G&Q,e[31]=K^~Z&Y,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=y^~w&_,e[3]=v^~b&x,e[12]=C^~T&R,e[13]=M^~P&I,e[22]=N^~j&z,e[23]=F^~U&q,e[32]=G^~Q&X,e[33]=Z^~Y&J,e[42]=re^~oe&se,e[43]=ie^~ae&le,e[4]=w^~_&A,e[5]=b^~x&k,e[14]=T^~R&L,e[15]=P^~I&O,e[24]=j^~z&W,e[25]=U^~q&V,e[34]=Q^~X&$,e[35]=Y^~J&ee,e[44]=oe^~se&ce,e[45]=ae^~le&ue,e[6]=_^~A&m,e[7]=x^~k&g,e[16]=R^~L&S,e[17]=I^~O&E,e[26]=z^~W&D,e[27]=q^~V&B,e[36]=X^~$&H,e[37]=J^~ee&K,e[46]=se^~ce&te,e[47]=le^~ue&ne,e[8]=A^~m&y,e[9]=k^~g&v,e[18]=L^~S&C,e[19]=O^~E&M,e[28]=W^~D&N,e[29]=V^~B&F,e[38]=$^~H&G,e[39]=ee^~K&Z,e[48]=ce^~te&re,e[49]=ue^~ne&ie,e[0]^=f[r],e[1]^=f[r+1]};if(l)e.exports=E;else{for(M=0;M<C.length;++M)a[C[M]]=E[C[M]];c&&(void 0===(r=function(){return E}.call(t,n,t,e))||(e.exports=r))}}()},369:(e,t,n)=>{var r;!function(){"use strict";var t="input is invalid type",i="object"===typeof window,o=i?window:{};o.JS_SHA512_NO_WINDOW&&(i=!1);var a=!i&&"object"===typeof self;!o.JS_SHA512_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node?o=n.g:a&&(o=self);var s=!o.JS_SHA512_NO_COMMON_JS&&e.exports,l=n.amdO,c=!o.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,u="0123456789abcdef".split(""),h=[-2147483648,8388608,32768,128],d=[24,16,8,0],p=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
21126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],f=["hex","array","digest","arrayBuffer"],m=[];!o.JS_SHA512_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!c||!o.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var g=function(e,t){return function(n){return new b(t,!0).update(n)[e]()}},y=function(e){var t=g("hex",e);t.create=function(){return new b(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<f.length;++n){var r=f[n];t[r]=g(r,e)}return t},v=function(e,t){return function(n,r){return new _(n,t,!0).update(r)[e]()}},w=function(e){var t=v("hex",e);t.create=function(t){return new _(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<f.length;++n){var r=f[n];t[r]=v(r,e)}return t};function b(e,t){t?(m[0]=m[1]=m[2]=m[3]=m[4]=m[5]=m[6]=m[7]=m[8]=m[9]=m[10]=m[11]=m[12]=m[13]=m[14]=m[15]=m[16]=m[17]=m[18]=m[19]=m[20]=m[21]=m[22]=m[23]=m[24]=m[25]=m[26]=m[27]=m[28]=m[29]=m[30]=m[31]=m[32]=0,this.blocks=m):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==e?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==e?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==e?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=e,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function _(e,n,r){var i,o=typeof e;if("string"!==o){if("object"!==o)throw new Error(t);if(null===e)throw new Error(t);if(c&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!c||!ArrayBuffer.isView(e)))throw new Error(t);i=!0}var a=e.length;if(!i){for(var s,l=[],u=(a=e.length,0),h=0;h<a;++h)(s=e.charCodeAt(h))<128?l[u++]=s:s<2048?(l[u++]=192|s>>6,l[u++]=128|63&s):s<55296||s>=57344?(l[u++]=224|s>>12,l[u++]=128|s>>6&63,l[u++]=128|63&s):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++h)),l[u++]=240|s>>18,l[u++]=128|s>>12&63,l[u++]=128|s>>6&63,l[u++]=128|63&s);e=l}e.length>128&&(e=new b(n,!0).update(e).array());var d=[],p=[];for(h=0;h<128;++h){var f=e[h]||0;d[h]=92^f,p[h]=54^f}b.call(this,n,r),this.update(p),this.oKeyPad=d,this.inner=!0,this.sharedMemory=r}b.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var n,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(t);if(null===e)throw new Error(t);if(c&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!c||!ArrayBuffer.isView(e)))throw new Error(t);n=!0}for(var i,o,a=0,s=e.length,l=this.blocks;a<s;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=l[16]=l[17]=l[18]=l[19]=l[20]=l[21]=l[22]=l[23]=l[24]=l[25]=l[26]=l[27]=l[28]=l[29]=l[30]=l[31]=l[32]=0),n)for(o=this.start;a<s&&o<128;++a)l[o>>2]|=e[a]<<d[3&o++];else for(o=this.start;a<s&&o<128;++a)(i=e.charCodeAt(a))<128?l[o>>2]|=i<<d[3&o++]:i<2048?(l[o>>2]|=(192|i>>6)<<d[3&o++],l[o>>2]|=(128|63&i)<<d[3&o++]):i<55296||i>=57344?(l[o>>2]|=(224|i>>12)<<d[3&o++],l[o>>2]|=(128|i>>6&63)<<d[3&o++],l[o>>2]|=(128|63&i)<<d[3&o++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++a)),l[o>>2]|=(240|i>>18)<<d[3&o++],l[o>>2]|=(128|i>>12&63)<<d[3&o++],l[o>>2]|=(128|i>>6&63)<<d[3&o++],l[o>>2]|=(128|63&i)<<d[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=128?(this.block=l[32],this.start=o-128,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[32]=this.block,e[t>>2]|=h[3&t],this.block=e[32],t>=112&&(this.hashed||this.hash(),e[0]=this.block,e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=e[16]=e[17]=e[18]=e[19]=e[20]=e[21]=e[22]=e[23]=e[24]=e[25]=e[26]=e[27]=e[28]=e[29]=e[30]=e[31]=e[32]=0),e[30]=this.hBytes<<3|this.bytes>>>29,e[31]=this.bytes<<3,this.hash()}},b.prototype.hash=function(){var e,t,n,r,i,o,a,s,l,c,u,h,d,f,m,g,y,v,w,b,_,x,A,k,S,E=this.h0h,C=this.h0l,M=this.h1h,T=this.h1l,P=this.h2h,R=this.h2l,I=this.h3h,L=this.h3l,O=this.h4h,D=this.h4l,B=this.h5h,N=this.h5l,F=this.h6h,j=this.h6l,U=this.h7h,z=this.h7l,q=this.blocks;for(e=32;e<160;e+=2)t=((b=q[e-30])>>>1|(_=q[e-29])<<31)^(b>>>8|_<<24)^b>>>7,n=(_>>>1|b<<31)^(_>>>8|b<<24)^(_>>>7|b<<25),r=((b=q[e-4])>>>19|(_=q[e-3])<<13)^(_>>>29|b<<3)^b>>>6,i=(_>>>19|b<<13)^(b>>>29|_<<3)^(_>>>6|b<<26),b=q[e-32],_=q[e-31],l=((x=q[e-14])>>>16)+(b>>>16)+(t>>>16)+(r>>>16)+((s=(65535&x)+(65535&b)+(65535&t)+(65535&r)+((a=((A=q[e-13])>>>16)+(_>>>16)+(n>>>16)+(i>>>16)+((o=(65535&A)+(65535&_)+(65535&n)+(65535&i))>>>16))>>>16))>>>16),q[e]=l<<16|65535&s,q[e+1]=a<<16|65535&o;var W=E,V=C,H=M,K=T,G=P,Z=R,Q=I,Y=L,X=O,J=D,$=B,ee=N,te=F,ne=j,re=U,ie=z;for(g=H&G,y=K&Z,e=0;e<160;e+=8)t=(W>>>28|V<<4)^(V>>>2|W<<30)^(V>>>7|W<<25),n=(V>>>28|W<<4)^(W>>>2|V<<30)^(W>>>7|V<<25),r=(X>>>14|J<<18)^(X>>>18|J<<14)^(J>>>9|X<<23),i=(J>>>14|X<<18)^(J>>>18|X<<14)^(X>>>9|J<<23),v=(c=W&H)^W&G^g,w=(u=V&K)^V&Z^y,k=X&$^~X&te,S=J&ee^~J&ne,b=q[e],_=q[e+1],b=(l=((x=p[e])>>>16)+(b>>>16)+(k>>>16)+(r>>>16)+(re>>>16)+((s=(65535&x)+(65535&b)+(65535&k)+(65535&r)+(65535&re)+((a=((A=p[e+1])>>>16)+(_>>>16)+(S>>>16)+(i>>>16)+(ie>>>16)+((o=(65535&A)+(65535&_)+(65535&S)+(65535&i)+(65535&ie))>>>16))>>>16))>>>16))<<16|65535&s,_=a<<16|65535&o,x=(l=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((a=(w>>>16)+(n>>>16)+((o=(65535&w)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,A=a<<16|65535&o,re=(l=(Q>>>16)+(b>>>16)+((s=(65535&Q)+(65535&b)+((a=(Y>>>16)+(_>>>16)+((o=(65535&Y)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s,ie=a<<16|65535&o,t=((Q=(l=(x>>>16)+(b>>>16)+((s=(65535&x)+(65535&b)+((a=(A>>>16)+(_>>>16)+((o=(65535&A)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(Y=a<<16|65535&o)<<4)^(Y>>>2|Q<<30)^(Y>>>7|Q<<25),n=(Y>>>28|Q<<4)^(Q>>>2|Y<<30)^(Q>>>7|Y<<25),r=(re>>>14|ie<<18)^(re>>>18|ie<<14)^(ie>>>9|re<<23),i=(ie>>>14|re<<18)^(ie>>>18|re<<14)^(re>>>9|ie<<23),v=(h=Q&W)^Q&H^c,w=(d=Y&V)^Y&K^u,k=re&X^~re&$,S=ie&J^~ie&ee,b=q[e+2],_=q[e+3],b=(l=((x=p[e+2])>>>16)+(b>>>16)+(k>>>16)+(r>>>16)+(te>>>16)+((s=(65535&x)+(65535&b)+(65535&k)+(65535&r)+(65535&te)+((a=((A=p[e+3])>>>16)+(_>>>16)+(S>>>16)+(i>>>16)+(ne>>>16)+((o=(65535&A)+(65535&_)+(65535&S)+(65535&i)+(65535&ne))>>>16))>>>16))>>>16))<<16|65535&s,_=a<<16|65535&o,x=(l=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((a=(w>>>16)+(n>>>16)+((o=(65535&w)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,A=a<<16|65535&o,te=(l=(G>>>16)+(b>>>16)+((s=(65535&G)+(65535&b)+((a=(Z>>>16)+(_>>>16)+((o=(65535&Z)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s,ne=a<<16|65535&o,t=((G=(l=(x>>>16)+(b>>>16)+((s=(65535&x)+(65535&b)+((a=(A>>>16)+(_>>>16)+((o=(65535&A)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(Z=a<<16|65535&o)<<4)^(Z>>>2|G<<30)^(Z>>>7|G<<25),n=(Z>>>28|G<<4)^(G>>>2|Z<<30)^(G>>>7|Z<<25),r=(te>>>14|ne<<18)^(te>>>18|ne<<14)^(ne>>>9|te<<23),i=(ne>>>14|te<<18)^(ne>>>18|te<<14)^(te>>>9|ne<<23),v=(f=G&Q)^G&W^h,w=(m=Z&Y)^Z&V^d,k=te&re^~te&X,S=ne&ie^~ne&J,b
vendor: 4,145 bytes, line 2
2=q[e+4],_=q[e+5],b=(l=((x=p[e+4])>>>16)+(b>>>16)+(k>>>16)+(r>>>16)+($>>>16)+((s=(65535&x)+(65535&b)+(65535&k)+(65535&r)+(65535&$)+((a=((A=p[e+5])>>>16)+(_>>>16)+(S>>>16)+(i>>>16)+(ee>>>16)+((o=(65535&A)+(65535&_)+(65535&S)+(65535&i)+(65535&ee))>>>16))>>>16))>>>16))<<16|65535&s,_=a<<16|65535&o,x=(l=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((a=(w>>>16)+(n>>>16)+((o=(65535&w)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,A=a<<16|65535&o,$=(l=(H>>>16)+(b>>>16)+((s=(65535&H)+(65535&b)+((a=(K>>>16)+(_>>>16)+((o=(65535&K)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s,ee=a<<16|65535&o,t=((H=(l=(x>>>16)+(b>>>16)+((s=(65535&x)+(65535&b)+((a=(A>>>16)+(_>>>16)+((o=(65535&A)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(K=a<<16|65535&o)<<4)^(K>>>2|H<<30)^(K>>>7|H<<25),n=(K>>>28|H<<4)^(H>>>2|K<<30)^(H>>>7|K<<25),r=($>>>14|ee<<18)^($>>>18|ee<<14)^(ee>>>9|$<<23),i=(ee>>>14|$<<18)^(ee>>>18|$<<14)^($>>>9|ee<<23),v=(g=H&G)^H&Q^f,w=(y=K&Z)^K&Y^m,k=$&te^~$&re,S=ee&ne^~ee&ie,b=q[e+6],_=q[e+7],b=(l=((x=p[e+6])>>>16)+(b>>>16)+(k>>>16)+(r>>>16)+(X>>>16)+((s=(65535&x)+(65535&b)+(65535&k)+(65535&r)+(65535&X)+((a=((A=p[e+7])>>>16)+(_>>>16)+(S>>>16)+(i>>>16)+(J>>>16)+((o=(65535&A)+(65535&_)+(65535&S)+(65535&i)+(65535&J))>>>16))>>>16))>>>16))<<16|65535&s,_=a<<16|65535&o,x=(l=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((a=(w>>>16)+(n>>>16)+((o=(65535&w)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,A=a<<16|65535&o,X=(l=(W>>>16)+(b>>>16)+((s=(65535&W)+(65535&b)+((a=(V>>>16)+(_>>>16)+((o=(65535&V)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s,J=a<<16|65535&o,W=(l=(x>>>16)+(b>>>16)+((s=(65535&x)+(65535&b)+((a=(A>>>16)+(_>>>16)+((o=(65535&A)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&s,V=a<<16|65535&o;l=(E>>>16)+(W>>>16)+((s=(65535&E)+(65535&W)+((a=(C>>>16)+(V>>>16)+((o=(65535&C)+(65535&V))>>>16))>>>16))>>>16),this.h0h=l<<16|65535&s,this.h0l=a<<16|65535&o,l=(M>>>16)+(H>>>16)+((s=(65535&M)+(65535&H)+((a=(T>>>16)+(K>>>16)+((o=(65535&T)+(65535&K))>>>16))>>>16))>>>16),this.h1h=l<<16|65535&s,this.h1l=a<<16|65535&o,l=(P>>>16)+(G>>>16)+((s=(65535&P)+(65535&G)+((a=(R>>>16)+(Z>>>16)+((o=(65535&R)+(65535&Z))>>>16))>>>16))>>>16),this.h2h=l<<16|65535&s,this.h2l=a<<16|65535&o,l=(I>>>16)+(Q>>>16)+((s=(65535&I)+(65535&Q)+((a=(L>>>16)+(Y>>>16)+((o=(65535&L)+(65535&Y))>>>16))>>>16))>>>16),this.h3h=l<<16|65535&s,this.h3l=a<<16|65535&o,l=(O>>>16)+(X>>>16)+((s=(65535&O)+(65535&X)+((a=(D>>>16)+(J>>>16)+((o=(65535&D)+(65535&J))>>>16))>>>16))>>>16),this.h4h=l<<16|65535&s,this.h4l=a<<16|65535&o,l=(B>>>16)+($>>>16)+((s=(65535&B)+(65535&$)+((a=(N>>>16)+(ee>>>16)+((o=(65535&N)+(65535&ee))>>>16))>>>16))>>>16),this.h5h=l<<16|65535&s,this.h5l=a<<16|65535&o,l=(F>>>16)+(te>>>16)+((s=(65535&F)+(65535&te)+((a=(j>>>16)+(ne>>>16)+((o=(65535&j)+(65535&ne))>>>16))>>>16))>>>16),this.h6h=l<<16|65535&s,this.h6l=a<<16|65535&o,l=(U>>>16)+(re>>>16)+((s=(65535&U)+(65535&re)+((a=(z>>>16)+(ie>>>16)+((o=(65535&z)+(65535&ie))>>>16))>>>16))>>>16),this.h7h=l<<16|65535&s,this.h7l=a<<16|65535&o},b.prototype.hex=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,i=this.h2h,o=this.h2l,a=this.h3h,s=this.h3l,l=this.h4h,c=this.h4l,h=this.h5h,d=this.h5l,p=this.h6h,f=this.h6l,m=this.h7h,g=this.h7l,y=this.bits,v=u[e>>28&15]+u[e>>24&15]+u[e>>20&15]+u[e>>16&15]+u[e>>12&15]+u[e>>8&15]+u[e>>4&15]+u[15&e]+u[t>>28&15]+u[t>>24&15]+u[t>>20&15]+u[t>>16&15]+u[t>>12&15]+u[t>>8&15]+u[t>>4&15]+u[15&t]+u[n>>28&15]+u[n>>24&15]+u[n>>20&15]+u[n>>16&15]+u[n>>12&15]+u[n>>8&15]+u[n>>4&15]+u[15&n]+u[r>>28&15]+u[r>>24&15]+u[r>>20&15]+u[r>>16&15]+u[r>>12&15]+u[r>>8&15]+u[r>>4&15]+u[15&r]+u[i>>28&15]+u[i>>24&15]+u[i>>20&15]+u[i>>16&15]+u[i>>12&15]+u[i>>8&15]+u[i>>4&15]+u[15&i]+u[o>>28&15]+u[o>>24&15]+u[o>>20&15]+u[o>>16&15]+u[o>>12&15]+u[o>>8&15]+u[o>>4&15]+u[15&o]+u[a>>28&15]+u[a>>24&15]+u[a>>20&15]+u[a>>16&15]+u[a>>12&15]+u[a>>8&15]+u[a>>4&15]+u[15&a];return y>=256&&(v+=u[s>>28&15]+u[s>>24&15]+u[s>>20&15]+u[s>>16&15]+u[s>>12&15]+u[s>>8&15]+u[s>>4&15]+u[15&s]),y>=384&&(v+=u[l>>28&15]+u[l>>24&15]+u[l>>20&15]+u[l>>16&15]+u[l>>12&15]+u[l>>8&15]+u[l>>4&15]+u[15&l]+u[c>>28&15]+u[c>>24&15]+u[c>>20&15]+u[c>>16&15]+u[c>>12&15]+u[c>>8&15]+u[c>>4&15]+u[15&c]+u[h>>28&15]+u[h>>
224&15]+u[h>>20&15]+u[h>>16&15]+u[h>>12&15]+u[h>>8&15]+u[h>>4&15]+u[15&h]+u[d>>28&15]+u[d>>24&15]+u[d>>20&15]+u[d>>16&15]+u[d>>12&15]+u[d>>8&15]+u[d>>4&15]+u[15&d]),512==y&&(v+=u[p>>28&15]+u[p>>24&15]+u[p>>20&15]+u[p>>16&15]+u[p>>12&15]+u[p>>8&15]+u[p>>4&15]+u[15&p]+u[f>>28&15]+u[f>>24&15]+u[f>>20&15]+u[f>>16&15]+u[f>>12&15]+u[f>>8&15]+u[f>>4&15]+u[15&f]+u[m>>28&15]+u[m>>24&15]+u[m>>20&15]+u[m>>16&15]+u[m>>12&15]+u[m>>8&15]+u[m>>4&15]+u[15&m]+u[g>>28&15]+u[g>>24&15]+u[g>>20&15]+u[g>>16&15]+u[g>>12&15]+u[g>>8&15]+u[g>>4&15]+u[15&g]),v},b.prototype.toString=b.prototype.hex,b.prototype.digest=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,i=this.h2h,o=this.h2l,a=this.h3h,s=this.h3l,l=this.h4h,c=this.h4l,u=this.h5h,h=this.h5l,d=this.h6h,p=this.h6l,f=this.h7h,m=this.h7l,g=this.bits,y=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a];return g>=256&&y.push(s>>24&255,s>>16&255,s>>8&255,255&s),g>=384&&y.push(l>>24&255,l>>16&255,l>>8&255,255&l,c>>24&255,c>>16&255,c>>8&255,255&c,u>>24&255,u>>16&255,u>>8&255,255&u,h>>24&255,h>>16&255,h>>8&255,255&h),512==g&&y.push(d>>24&255,d>>16&255,d>>8&255,255&d,p>>24&255,p>>16&255,p>>8&255,255&p,f>>24&255,f>>16&255,f>>8&255,255&f,m>>24&255,m>>16&255,m>>8&255,255&m),y},b.prototype.array=b.prototype.digest,b.prototype.arrayBuffer=function(){this.finalize();var e=this.bits,t=new ArrayBuffer(e/8),n=new DataView(t);return n.setUint32(0,this.h0h),n.setUint32(4,this.h0l),n.setUint32(8,this.h1h),n.setUint32(12,this.h1l),n.setUint32(16,this.h2h),n.setUint32(20,this.h2l),n.setUint32(24,this.h3h),e>=256&&n.setUint32(28,this.h3l),e>=384&&(n.setUint32(32,this.h4h),n.setUint32(36,this.h4l),n.setUint32(40,this.h5h),n.setUint32(44,this.h5l)),512==e&&(n.setUint32(48,this.h6h),n.setUint32(52,this.h6l),n.setUint32(56,this.h7h),n.setUint32(60,this.h7l)),t},b.prototype.clone=function(){var e=new b(this.bits,!1);return this.copyTo(e),e},b.prototype.copyTo=function(e){var t=0,n=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t<n.length;++t)e[n[t]]=this[n[t]];for(t=0;t<this.blocks.length;++t)e.blocks[t]=this.blocks[t]},_.prototype=new b,_.prototype.finalize=function(){if(b.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();b.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(e),b.prototype.finalize.call(this)}},_.prototype.clone=function(){var e=new _([],this.bits,!1);this.copyTo(e),e.inner=this.inner;for(var t=0;t<this.oKeyPad.length;++t)e.oKeyPad[t]=this.oKeyPad[t];return e};var x=y(512);x.sha512=x,x.sha384=y(384),x.sha512_256=y(256),x.sha512_224=y(224),x.sha512.hmac=w(512),x.sha384.hmac=w(384),x.sha512_256.hmac=w(256),x.sha512_224.hmac=w(224),s?e.exports=x:(o.sha512=x.sha512,o.sha384=x.sha384,o.sha512_256=x.sha512_256,o.sha512_224=x.sha512_224,l&&(void 0===(r=function(){return x}.call(x,n,x,e))||(e.exports=r)))}()},6068:(e,t,n)=>{var r=n(9068).stringify,i=n(3630);e.exports=function(e){return{parse:i(e),stringify:r}},e.exports.parse=i(),e.exports.stringify=r},3630:(e,t,n)=>{var r=null;const i=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,o=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;e.exports=function(e){"use strict";var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(void 0!==e&&null!==e){if(!0===e.strict&&(t.strict=!0),!0===e.storeAsString&&(t.storeAsString=!0),t.alwaysParseAsBig=!0===e.alwaysParseAsBig&&e.alwaysParseAsBig,t.useNativeBigInt=!0===e.useNativeBigInt&&e.useNativeBigInt,"undefined"!==typeof e.constructorAction){if("error"!==e.constructorAction&&"ignore"!==e.constructorAction&&"preserve"!==e.constructorAction)throw new Error('Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed '.concat(e.constructorAction));t.constructorAction=e.constructorAction}if("undefined"!==typeof e.protoAction){if("error"!==e.protoAction&&"ignore"!==e.protoAction&&"preserve"!==e.protoAction)throw new Error('Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed '.concat(e.protoAction));t.protoAction=e.protoAction}}var a,s,l,c,u={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},h=function(e){throw{name:"SyntaxError",message:e,at:a,text:l}},d=function(e){return e&&e!==s&&h("Expected '"+e+"' instead of '"+s+"'"),s=l.charAt(a),a+=1,s},p=function(){var e,i="";for("-"===s&&(i="-",d("-"));s>="0"&&s<="9";)i+=s,d();if("."===s)for(i+=".";d()&&s>="0"&&s<="9";)i+=s;if("e"===s||"E"===s)for(i+=s,d(),"-"!==s&&"+"!==s||(i+=s,d());s>="0"&&s<="9";)i+=s,d();if(e=+i,isFinite(e))return null==r&&(r=n(7144)),i.length>15?t.storeAsString?i:t.useNativeBigInt?BigInt(i):new r(i):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(e):new r(e):e;h("Bad number")},f=function(){var e,t,n,r="";if('"'===s)for(var i=a;d();){if('"'===s)return a-1>i&&(r+=l.substring(i,a-1)),d(),r;if("\\"===s){if(a-1>i&&(r+=l.substring(i,a-1)),d(),"u"===s){for(n=0,t=0;t<4&&(e=parseInt(d(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!==typeof u[s])break;r+=u[s]}i=a}}h("Bad string")},m=function(){for(;s&&s<=" ";)d()};return c=function(){switch(m(),s){case"{":return function(){var e,n=Object.create(null);if("{"===s){if(d("{"),m(),"}"===s)return d("}"),n;for(;s;){if(e=f(),m(),d(":"),!0===t.strict&&Object.hasOwnProperty.call(n,e)&&h('Duplicate key "'+e+'"'),
2!0===i.test(e)?"error"===t.protoAction?h("Object contains forbidden prototype property"):"ignore"===t.protoAction?c():n[e]=c():!0===o.test(e)?"error"===t.constructorAction?h("Object contains forbidden constructor property"):"ignore"===t.constructorAction?c():n[e]=c():n[e]=c(),m(),"}"===s)return d("}"),n;d(","),m()}}h("Bad object")}();case"[":return function(){var e=[];if("["===s){if(d("["),m(),"]"===s)return d("]"),e;for(;s;){if(e.push(c()),m(),"]"===s)return d("]"),e;d(","),m()}}h("Bad array")}();case'"':return f();case"-":return p();default:return s>="0"&&s<="9"?p():function(){switch(s){case"t":return d("t"),d("r"),d("u"),d("e"),!0;case"f":return d("f"),d("a"),d("l"),d("s"),d("e"),!1;case"n":return d("n"),d("u"),d("l"),d("l"),null}h("Unexpected '"+s+"'")}()}},function(e,t){var n;return l=e+"",a=0,s=" ",n=c(),m(),s&&h("Syntax error"),"function"===typeof t?function e(n,r){var i,o=n[r];return o&&"object"===typeof o&&Object.keys(o).forEach((function(t){void 0!==(i=e(o,t))?o[t]=i:delete o[t]})),t.call(n,r,o)}({"":n},""):n}}},9068:(e,t,n)=>{var r=n(7144),i=e.exports;!function(){"use strict";var e,t,n,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,(function(e){var t=a[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function l(i,o){var a,c,u,h,d,p=e,f=o[i],m=null!=f&&(f instanceof r||r.isBigNumber(f));switch(f&&"object"===typeof f&&"function"===typeof f.toJSON&&(f=f.toJSON(i)),"function"===typeof n&&(f=n.call(o,i,f)),typeof f){case"string":return m?f:s(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":case"bigint":return String(f);case"object":if(!f)return"null";if(e+=t,d=[],"[object Array]"===Object.prototype.toString.apply(f)){for(h=f.length,a=0;a<h;a+=1)d[a]=l(a,f)||"null";return u=0===d.length?"[]":e?"[\n"+e+d.join(",\n"+e)+"\n"+p+"]":"["+d.join(",")+"]",e=p,u}if(n&&"object"===typeof n)for(h=n.length,a=0;a<h;a+=1)"string"===typeof n[a]&&(u=l(c=n[a],f))&&d.push(s(c)+(e?": ":":")+u);else Object.keys(f).forEach((function(t){var n=l(t,f);n&&d.push(s(t)+(e?": ":":")+n)}));return u=0===d.length?"{}":e?"{\n"+e+d.join(",\n"+e)+"\n"+p+"}":"{"+d.join(",")+"}",e=p,u}}"function"!==typeof i.stringify&&(i.stringify=function(r,i,o){var a;if(e="",t="","number"===typeof o)for(a=0;a<o;a+=1)t+=" ";else"string"===typeof o&&(t=o);if(n=i,i&&"function"!==typeof i&&("object"!==typeof i||"number"!==typeof i.length))throw new Error("JSON.stringify");return l("",{"":r})})}()},2963:e=>{self,e.exports=(()=>{var e={192:(e,t)=>{var n,r,i=function(){var e=function(e,t){var n=e,r=a[t],i=null,o=0,l=null,g=[],y={},w=function(e,t){i=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(o=4*n+17),b(0,0),b(o-7,0),b(0,o-7),x(),_(),k(e,t),n>=7&&A(e),null==l&&(l=E(n,r,g)),S(l,t)},b=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||o<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||o<=t+r||(i[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},_=function(){for(var e=8;e<o-8;e+=1)null==i[e][6]&&(i[e][6]=e%2==0);for(var t=8;t<o-8;t+=1)null==i[6][t]&&(i[6][t]=t%2==0)},x=function(){for(var e=s.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var o=e[t],a=e[r];if(null==i[o][a])for(var l=-2;l<=2;l+=1)for(var c=-2;c<=2;c+=1)i[o+l][a+c]=-2==l||2==l||-2==c||2==c||0==l&&0==c}},A=function(e){for(var t=s.getBCHTypeNumber(n),r=0;r<18;r+=1){var a=!e&&1==(t>>r&1);i[Math.floor(r/3)][r%3+o-8-3]=a}for(r=0;r<18;r+=1)a=!e&&1==(t>>r&1),i[r%3+o-8-3][Math.floor(r/3)]=a},k=function(e,t){for(var n=r<<3|t,a=s.getBCHTypeInfo(n),l=0;l<15;l+=1){var c=!e&&1==(a>>l&1);l<6?i[l][8]=c:l<8?i[l+1][8]=c:i[o-15+l][8]=c}for(l=0;l<15;l+=1)c=!e&&1==(a>>l&1),l<8?i[8][o-l-1]=c:l<9?i[8][15-l-1+1]=c:i[8][15-l-1]=c;i[o-8][8]=!e},S=function(e,t){for(var n=-1,r=o-1,a=7,l=0,c=s.getMaskFunction(t),u=o-1;u>0;u-=2)for(6==u&&(u-=1);;){for(var h=0;h<2;h+=1)if(null==i[r][u-h]){var d=!1;l<e.length&&(d=1==(e[l]>>>a&1)),c(r,u-h)&&(d=!d),i[r][u-h]=d,-1==(a-=1)&&(l+=1,a=7)}if((r+=n)<0||o<=r){r-=n,n=-n;break}}},E=function(e,t,n){for(var r=u.getRSBlocks(e,t),i=h(),o=0;o<n.length;o+=1){var a=n[o];i.put(a.getMode(),4),i.put(a.getLength(),s.getLengthInBits(a.getMode(),e)),a.write(i)}var l=0;for(o=0;o<r.length;o+=1)l+=r[o].dataCount;if(i.getLengthInBits()>8*l)throw"code length overflow. ("+i.getLengthInBits()+">"+8*l+")";for(i.getLengthInBits()+4<=8*l&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*l||(i.put(236,8),i.getLengthInBits()>=8*l));)i.put(17,8);return function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),a=new Array(t.length),l=0;l<t.length;l+=1){var u=t[l].dataCount,h=t[l].totalCount-u;r=Math.max(r,u),i=Math.max(i,h),o[l]=new Array(u);for(var d=0;d<o[l].length;d+=1)o[l][d]=255&e.getBuffer()[d+n];n+=u;var p=s.getErrorCorrectPolynomial(h),f=c(o[l],p.getLength()-1).mod(p);for(a[l]=new Array(p.getLength()-1),d=0;d<a[l].length;d+=1){var m=d+f.getLength()-a[l].length;a[l][d]=m>=0?f.getAt(m):0}}var g=0;for(d=0;d<t.length;d+=1)g+=t[d].totalCount;var y=new Array(g),v=0;for(d=0;d<r;d+=1)for(l=0;l<t.length;l+=1)d<o[l].length&&(y[v]=o[l][d],v+=1);for(d=0;d<i;d+=1)for(l=0;l<t.length;l+=1)d<a[l].length&&(y[v]=a[l][d],v+=1);return y}(i,r)};y.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=d(e);break;case"Alphanumeric":n=p(e);break;case"Byte":n=f(e);break;case"Kanji":n=m(e);break;default:throw"mode:"+t}g.push(n),l=null},y.isDark=function(e,t){if(e<0||o<=e||t<0||o<=t)throw e+","+t;return i[e][t]},y.getModuleCount=function(){return o},y.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=u.getRSBlocks(e,r),i=h(),o=0;o<g.length;
vendor: 42,458 bytes, line 2
2o++){var a=g[o];i.put(a.getMode(),4),i.put(a.getLength(),s.getLengthInBits(a.getMode(),e)),a.write(i)}var l=0;for(o=0;o<t.length;o++)l+=t[o].dataCount;if(i.getLengthInBits()<=8*l)break}n=e}w(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){w(!0,n);var r=s.getLostPoint(y);(0==n||e>r)&&(e=r,t=n)}return t}())},y.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t=void 0===t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<y.getModuleCount();r+=1){n+="<tr>";for(var i=0;i<y.getModuleCount();i+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=y.isDark(r,i)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return(n+="</tbody>")+"</table>"},y.createSvgTag=function(e,t,n,r){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,n=i.alt,r=i.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,l,c=y.getModuleCount()*e+2*t,u="";for(l="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",u+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',u+=i.scalable?"":' width="'+c+'px" height="'+c+'px"',u+=' viewBox="0 0 '+c+" "+c+'" ',u+=' preserveAspectRatio="xMinYMin meet"',u+=r.text||n.text?' role="img" aria-labelledby="'+C([r.id,n.id].join(" ").trim())+'"':"",u+=">",u+=r.text?'<title id="'+C(r.id)+'">'+C(r.text)+"</title>":"",u+=n.text?'<description id="'+C(n.id)+'">'+C(n.text)+"</description>":"",u+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',u+='<path d="',a=0;a<y.getModuleCount();a+=1)for(s=a*e+t,o=0;o<y.getModuleCount();o+=1)y.isDark(a,o)&&(u+="M"+(o*e+t)+","+s+l);return(u+='" stroke="transparent" fill="black"/>')+"</svg>"},y.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=y.getModuleCount()*e+2*t,r=t,i=n-t;return v(n,n,(function(t,n){if(r<=t&&t<i&&r<=n&&n<i){var o=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return y.isDark(a,o)?0:1}return 1}))},y.createImgTag=function(e,t,n){e=e||2,t=void 0===t?4*e:t;var r=y.getModuleCount()*e+2*t,i="";return i+="<img",i+=' src="',i+=y.createDataURL(e,t),i+='"',i+=' width="',i+=r,i+='"',i+=' height="',i+=r,i+='"',n&&(i+=' alt="',i+=C(n),i+='"'),i+"/>"};var C=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r}}return t};return y.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,i,o,a=1*y.getModuleCount()+2*e,s=e,l=a-e,c={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584","  ":" "},u={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" ","  ":" "},h="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),i=Math.floor((t+1-s)/1),n=0;n<a;n+=1)o="\u2588",s<=n&&n<l&&s<=t&&t<l&&y.isDark(r,Math.floor((n-s)/1))&&(o=" "),s<=n&&n<l&&s<=t+1&&t+1<l&&y.isDark(i,Math.floor((n-s)/1))?o+=" ":o+="\u2588",h+=e<1&&t+1>=l?u[o]:c[o];h+="\n"}return a%2&&e>0?h.substring(0,h.length-a-1)+Array(a+1).join("\u2580"):h.substring(0,h.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,i,o,a=y.getModuleCount()*e+2*t,s=t,l=a-t,c=Array(e+1).join("\u2588\u2588"),u=Array(e+1).join("  "),h="",d="";for(n=0;n<a;n+=1){for(i=Math.floor((n-s)/e),d="",r=0;r<a;r+=1)o=1,s<=r&&r<l&&s<=n&&n<l&&y.isDark(i,Math.floor((r-s)/e))&&(o=0),d+=o?c:u;for(i=0;i<e;i+=1)h+=d+"\n"}return h.substring(0,h.length-1)},y.renderTo2dContext=function(e,t){t=t||2;for(var n=y.getModuleCount(),r=0;r<n;r++)for(var i=0;i<n;i++)e.fillStyle=y.isDark(r,i)?"black":"white",e.fillRect(r*t,i*t,t,t)},y};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=y(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},i=0,o={};;){var a=n.read();if(-1==a)break;var s=r(),l=r()<<8|r();o[String.fromCharCode(a<<8|s)]=l,i+=1}if(i!=t)throw i+" != "+t;return o}(),r="?".charCodeAt(0);return function(e){for(var t=[],i=0;i<e.length;i+=1){var o=e.charCodeAt(i);if(o<128)t.push(o);else{var a=n[e.charAt(i)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,i,o,a={L:1,M:0,Q:3,H:2},s=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(n)>=0;)t^=n<<o(t)-o(n);return 21522^(e<<10|t)},i.getBCHTypeNumber=function(e){for(var t=e<<12;o(t)-o(r)>=0;)t^=r<<o(t)-o(r);return e<<12|t},i.getPatternPosition=function(e){return t[e-1]},i.getMaskFunction=function(e){switch(e){case 0:return function(e,t){return(e+t)%2==0};case 1:return function(e,t){return e%2==0};case 2:return function(e,t){return t%3==0};case 3:return function(e,t){return(e+t)%3==0};case 4:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case 5:return function(e,t){return e*t%2+e*t%3==0};case 6:return function(e,t){return(e*t%2+e*t%3)%2==0};case 7:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},i.getErrorCorrectPolynomial=function(e){for(var t=c([1],0),n=0;n<e;n+=1)t=t.multiply(c([1,l.gexp(n)],0));return t},i.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+e}}},i.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var i=0;i<t;i+=1){for(var o=0,a=e.isDark(r,i),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l+=1)i+l<0||t<=i+l||0==s&&0==l||a==e.isDark(r+s,i+l)&&(o+=1);o>5&&(n+=3+o-5)}for(r=0;r<t-1;r+=1)for(i=0;i<t-1;i+=1){var c=0;e.isDark(r,i)&&(c+=1),e.isDark(r+1,i)&&(c+=1),e.isDark(r,i+1)&&(c+=1),e.isDark(r+1,i+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(i=0;i<t-6;i+=1)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(i=0;i<t;i+=1)for(r=0;r<t-6;r+=1)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);var u=0;for(i=0;i<t;i+=1)for(r=0;r<t;r+=1)e.isDark(r,i)&&(u+=1);return n+Math.abs(100*u/t/t-50)/5*10},i),l=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;return{glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}}}();function c(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),i=0;i<e.length-n;i+=1)r[i]=e[i+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var i=0;i<e.getLength();i+=1)t[n+i]^=l.gexp(l.glog(r.getAt(n))+l.glog(e.getAt(i)));return c(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=l.glog(r.getAt(0))-l.glog(e.getAt(0)),n=new Array(r.getLength()),i=0;i<r.getLength();i+=1)n[i]=r.getAt(i);for(i=0;i<e.getLength();i+=1)n[i]^=l.gexp(l.glog(e.getAt(i))+t);return c(n,0).mod(e)}};return r}var u=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={getRSBlocks:function(n,r){var i=function(t,n){switch(n){case a.L:return e[4*(t-1)+0];case a.M:return e[4*(t-1)+1];case a.Q:return e[4*(t-1)+2];case a.H:return e[4*(t-1)+3];default:return}}(n,r);if(void 0===i)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var o=i.length/3,s=[],l=0;l<o;l+=1)for(var c=i[3*l+0],u=i[3*l+1],h=i[3*l+2],d=0;d<c;d+=1)s.push(t(u,h));return s}};return n}(),h=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},d=function(e){var t=e,n={getMode:function(){return 1},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+2<n.length;)e.put(r(n.substring(i,i+3)),10),i+=3;i<n.length&&(n.length-i==1?e.put(r(n.substring(i,i+1)),4):n.length-i==2&&e.put(r(n.substring(i,i+2)),7))}},r=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+i(e.charAt(n));return t},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return n},p=function(e){var t=e,n={getMode:function(){return 2},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+1<n.length;)e.put(45*r(n.charAt(i))+r(n.charAt(i+1)),11),i+=2;i<n.length&&e.put(r(n.charAt(i)),6)}},r=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return n},f=function(t){var n=e.stringToBytes(t);return{getMode:function(){return 4},getLength:function(e){return n.length},write:function(e){for(var t=0;t<n.length;t+=1)e.put(n[t],8)}}},m=function(t){var n=e.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(e,t){var r=n("\u53cb");if(2!=r.length||38726!=(r[0]<<8|r[1]))throw"sjis not supported."}();var r=n(t);return{getMode:function(){return 8},getLength:function(e){return~~(r.length/2)},write:function(e){for(var t=r,n=0;n+1<t.length;){var i=(255&t[n])<<8|255&t[n+1];if(33088<=i&&i<=40956)i-=33088;else{if(!(57408<=i&&i<=60351))throw"illegal char at "+(n+1)+"/"+i;i-=49472}i=192*(i>>>8&255)+(255&i),e.put(i,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}}},g=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var i=0;i<r;i+=1)t.writeByte(e[i+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+"]"}};return t},y=function(e){var t=e,n=0,r=0,i=0,o={read:function(){for(;i<8;){if(n>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(n);if(n+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),i+=6)}var o=r>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},v=function(e,t,n){for(var r=function(e,t){var n=e,r=t,i=new Array(e*t),o={setPixel:function(e,t,r){i[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,o=s(),a=0;a<t;a+=1)o.add(String.fromCharCode(a));o.add(String.fromCharCode(t)),o.add(String.fromCharCode(n));var l,c,u,h=g(),d=(l=h,c=0,u=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;c+t>=8;)l.writeByte(255&(e<<c|u)),t-=8-c,e>>>=8-c,u=0,c=0;u|=e<<c,c+=t},flush:function(){c>0&&l.writeByte(u)}});d.write(t,r);var p=0,f=String.fromCharCode(i[p]);for(p+=1;p<i.length;){var m=String.fromCharCode(i[p]);p+=1,o.contains(f+m)?f+=m:(d.write(o.indexOf(f),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(f+m)),f=m)}return d.write(o.indexOf(f),r),d.write(n,r),d.flush(),h.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return void 0!==e[t]}};return n};return o}(e,t),i=0;i<t;i+=1)for(var o=0;o<e;o+=1)r.setPixel(o,i,n(o,i));var a=g();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",i={},o=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return i.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),n%3!=0)for(var i=3-n%3,a=0;a<i;a+=1)r+="="},i.toString=function(){return r},i}(),l=a.toByteArray(),c=0;c<l.length;c+=1)s.writeByte(l[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();i.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},void 0===(r="function"==typeof(n=function(){return i})?n.apply(t,[]):n)||(e.exports=r)},676:(e,t,n)=>{"use strict";n.d(t,{default:()=>L});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)},i=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},o=function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)};function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!t.length)return e;var s=t.shift();return void 0!==s&&o(e)&&o(s)?(e=r({},e),Object.keys(s).forEach((function(t){var n=e[t],r=s[t];Array.isArray(n)&&Array.isArray(r)?e[t]=r:o(n)&&o(r)?e[t]=a(Object.assign({},n),r):e[t]=r})),a.apply(void 0,i([e],t))):e}function s(e,t){var n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function l(e){return t=this,n=void 0,i=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}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,s])}}}(this,(function(t){return[2,new Promise((function(t){var n=new XMLHttpRequest;n.onload=function(){var e=new FileReader;e.onloadend=function(){t(e.result)},e.readAsDataURL(n.response)},n.open("GET",e),n.responseType="blob",n.send()}))]}))},new((r=void 0)||(r=Promise))((function(e,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}l((i=i.apply(t,n||[])).next())}));var t,n,r,i}const c={L:.07,M:.15,Q:.25,H:.3};var u=function(){return(u=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)};const h=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){var i;switch(this._type){case"dots":i=this._drawDot;break;case"classy":i=this._drawClassy;break;case"classy-rounded":i=this._drawClassyRounded;break;case"rounded":i=this._drawRounded;break;case"extra-rounded":i=this._drawExtraRounded;break;default:i=this._drawSquare}i.call(this,{x:e,y:t,size:n,getNeighbor:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation,a=void 0===o?0:o,s=n+i/2,l=r+i/2;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+l+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),t._element.setAttribute("cx",String(r+n/2)),t._element.setAttribute("cy",String(i+n/2)),t._element.setAttribute("r",String(n/2))}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),t._element.setAttribute("x",String(r)),t._element.setAttribute("y",String(i)),t._element.setAttribute("width",String(n)),t._element.setAttribute("height",String(n))}}))},e.prototype._basicSideRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, 0 "+-n)}}))},e.prototype._basicCornerRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},e.prototype._basicCornerExtraRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"a "+n+" "+n+", 0, 0, 0, "+-n+" "+-n)}}))},e.prototype._basicCornersRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+n/2+" "+n/2+"h "+n/2+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size;this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size;this._basicSquare({x:t,y:n,size:r,rotation:0})},e.prototype._drawRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0,c=o+a+s+l;if(0!==c)if(c>2||o&&a||s&&l)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===c){var u=0;return o&&s?u=Math.PI/2:s&&a?u=Math.PI:a&&l&&(u=-Math.PI/2),void this._basicCornerRounded({x:t,y:n,size:r,rotation:u})}if(1===c)return u=0,s?u=Math.PI/2:a?u=Math.PI:l&&(u=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:u})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0,c=o+a+s+l;if(0!==c)if(c>2||o&&a||s&&l)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===c){var u=0;return o&&s?u=Math.PI/2:s&&a?u=Math.PI:a&&l&&(u=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:u})}if(1===c)return u=0,s?u=Math.PI/2:a?u=Math.PI:l&&(u=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:u})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawClassy=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0;0!==o+a+s+l?o||s?a||l?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e.prototype._drawClassyRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0;0!==o+a+s+l?o||s?a||l?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e}();var d=function(){return(d=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)};const p=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){var i;switch(this._type){case"square":i=this._drawSquare;break;case"extra-rounded":i=this._drawExtraRounded;break;default:i=this._drawDot}i.call(this,{x:e,y:t,size:n,rotation:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation,a=void 0===o?0:o,s=n+i/2,l=r+i/2;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+l+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(d(d({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+(r+n/2)+" "+i+"a "+n/2+" "+n/2+" 0 1 0 0.1 0zm 0 "+o+"a "+(n/2-o)+" "+(n/2-o)+" 0 1 1 -0.1 0Z")}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(d(d({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"v "+-n+"zM "+(r+o)+" "+(i+o)+"h "+(n-2*o)+"v "+(n-2*o)+"h "+(2*o-n)+"z")}}))},e.prototype._basicExtraRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(d(d({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+r+" "+(i+2.5*o)+"v "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*o+"h "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*-o+"v "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*-o+"h "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*o+"M "+(r+2.5*o)+" "+(i+o)+"h "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*o+"v "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*o+"h "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*-o+"v "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*-o)}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicDot({x:t,y:n,size:r,rotation:i})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicSquare({x:t,y:n,size:r,rotation:i})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicExtraRounded({x:t,y:n,size:r,rotation:i})},e}();var f=function(){return(f=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)};const m=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){("square"===this._type?this._drawSquare:this._drawDot).call(this,{x:e,y:t,size:n,rotation:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation,a=void 0===o?0:o,s=n+i/2,l=r+i/2;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*a/Math.PI+","+s+","+l+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(f(f({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),t._element.setAttribute("cx",String(r+n/2)),t._element.setAttribute("cy",String(i+n/2)),t._element.setAttribute("r",String(n/2))}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(f(f({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),t._element.setAttribute("x",String(r)),t._element.setAttribute("y",String(i)),t._element.setAttribute("width",String(n)),t._element.setAttribute("height",String(n))}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicDot({x:t,y:n,size:r,rotation:i})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicSquare({x:t,y:n,size:r,rotation:i})},e}(),g="circle";var y=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},v=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}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,s])}}},w=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],b=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const _=function(){function e(e){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(e.width)),this._element.setAttribute("height",String(e.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=e}return Object.defineProperty(e.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),e.prototype.getElement=function(){return this._element},e.prototype.drawQR=function(e){return y(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,l,u,h,d=this;return v(this,(function(p){switch(p.label){case 0:return t=e.getModuleCount(),n=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===g?n/Math.sqrt(2):n,i=Math.floor(r/t),o={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=e,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(p.sent(),!this._image)return[2];a=this._options,s=a.imageOptions,l=a.qrOptions,u=s.imageSize*c[l.errorCorrectionLevel],h=Math.floor(u*t*t),o=function(e){var t=e.originalHeight,n=e.originalWidth,r=e.maxHiddenDots,i=e.maxHiddenAxisDots,o=e.dotSize,a={x:0,y:0},s={x:0,y:0};if(t<=0||n<=0||r<=0||o<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var l=t/n;return a.x=Math.floor(Math.sqrt(r/l)),a.x<=0&&(a.x=1),i&&i<a.x&&(a.x=i),a.x%2==0&&a.x--,s.x=a.x*o,a.y=1+2*Math.ceil((a.x*l-1)/2),s.y=Math.round(s.x*l),(a.y*a.x>r||i&&i<a.y)&&(i&&i<a.y?(a.y=i,a.y%2==0&&a.x--):a.y-=2,s.y=a.y*o,a.x=1+2*Math.ceil((a.y/l-1)/2),s.x=Math.round(s.y/l)),{height:s.y,width:s.x,hideYDots:a.y,hideXDots:a.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:h,maxHiddenAxisDots:t-14,dotSize:i}),p.label=2;case 2:return this.drawBackground(),this.drawDots((function(e,n){var r,i,a,s,l,c;return!(d._options.imageOptions.hideBackgroundDots&&e>=(t-o.hideXDots)/2&&e<(t+o.hideXDots)/2&&n>=(t-o.hideYDots)/2&&n<(t+o.hideYDots)/2||(null===(r=w[e])||void 0===r?void 0:r[n])||(null===(i=w[e-t+7])||void 0===i?void 0:i[n])||(null===(a=w[e])||void 0===a?void 0:a[n-t+7])||(null===(s=b[e])||void 0===s?void 0:s[n])||(null===(l=b[e-t+7])||void 0===l?void 0:l[n])||(null===(c=b[e])||void 0===c?void 0:c[n-t+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:t,dotSize:i})]:[3,4];case 3:p.sent(),p.label=4;case 4:return[2]}}))}))},e.prototype.drawBackground=function(){var e,t,n,r=this._element,i=this._options;if(r){var o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,a=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color"}),null===(n=i.backgroundOptions)||void 0===n?void 0:n.round){var s=Math.min(i.width,i.height),l=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),l.setAttribute("x",String((i.width-s)/2)),l.setAttribute("y",String((i.height-s)/2)),l.setAttribute("width",String(s)),l.setAttribute("height",String(s)),l.setAttribute("rx",String(s/2*i.backgroundOptions.round)),this._backgroundClipPath.appendChild(l)}}},e.prototype.drawDots=function(e){var t,n,r=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var a=Math.min(i.width,i.height)-2*i.margin,s=i.shape===g?a/Math.sqrt(2):a,l=Math.floor(s/o),c=Math.floor((i.width-o*l)/2),u=Math.floor((i.height-o*l)/2),d=new h({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=i.dotsOptions)||void 0===t?void 0:t.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var p=function(t){for(var i=function(i){return e&&!e(t,i)?"continue":(null===(n=f._qr)||void 0===n?void 0:n.isDark(t,i))?(d.draw(c+t*l,u+i*l,l,(function(n,a){return!(t+n<0||i+a<0||t+n>=o||i+a>=o)&&!(e&&!e(t+n,i+a))&&!!r._qr&&r._qr.isDark(t+n,i+a)})),void(d._element&&f._dotsClipPath&&f._dotsClipPath.appendChild(d._element))):"continue"},a=0;a<o;a++)i(a)},f=this,m=0;m<o;m++)p(m);if(i.shape===g){var y=Math.floor((a/l-o)/2),v=o+2*y,w=c-y*l,b=u-y*l,_=[],x=Math.floor(v/2);for(m=0;m<v;m++){_[m]=[];for(var A=0;A<v;A++)m>=y-1&&m<=v-y&&A>=y-1&&A<=v-y||Math.sqrt((m-x)*(m-x)+(A-x)*(A-x))>x?_[m][A]=0:_[m][A]=this._qr.isDark(A-2*y<0?A:A>=o?A-2*y:A-y,m-2*y<0?m:m>=o?m-2*y:m-y)?1:0}var k=function(e){for(var t=function(t){if(!_[e][t])return"continue";d.draw(w+e*l,b+t*l,l,(function(n,r){var i;return!!(null===(i=_[e+n])||void 0===i?void 0:i[t+r])})),d._element&&S._dotsClipPath&&S._dotsClipPath.appendChild(d._element)},n=0;n<v;n++)t(n)},S=this;for(m=0;m<v;m++)k(m)}},e.prototype.drawCorners=function(){var e=this;if(!this._qr)throw"QR code is not defined";var t=this._element,n=this._options;if(!t)throw"Element code is not defined";var r=this._qr.getModuleCount(),i=Math.min(n.width,n.height)-2*n.margin,o=n.shape===g?i/Math.sqrt(2):i,a=Math.floor(o/r),s=7*a,l=3*a,c=Math.floor((n.width-r*a)/2),u=Math.floor((n.height-r*a)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(t){var i,o,d,f,g,y,v,_,x,A,k,S,E=t[0],C=t[1],M=t[2],T=c+E*a*(r-7),P=u+C*a*(r-7),R=e._dotsClipPath,I=e._dotsClipPath;if(((null===(i=n.cornersSquareOptions)||void 0===i?void 0:i.gradient)||(null===(o=n.cornersSquareOptions)||void 0===o?void 0:o.color))&&((R=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+E+"-"+C),e._defs.appendChild(R),e._cornersSquareClipPath=e._cornersDotClipPath=I=R,e._createColor({options:null===(d=n.cornersSquareOptions)||void 0===d?void 0:d.gradient,color:null===(f=n.cornersSquareOptions)||void 0===f?void 0:f.color,additionalRotation:M,x:T,y:P,height:s,width:s,name:"corners-square-color-"+E+"-"+C})),null===(g=n.cornersSquareOptions)||void 0===g?void 0:g.type){var L=new p({svg:e._element,type:n.cornersSquareOptions.type});L.draw(T,P,s,M),L._element&&R&&R.appendChild(L._element)}else for(var O=new h({svg:e._element,type:n.dotsOptions.type}),D=function(e){for(var t=function(t){if(!(null===(y=w[e])||void 0===y?void 0:y[t]))return"continue";O.draw(T+e*a,P+t*a,a,(function(n,r){var i;return!!(null===(i=w[e+n])||void 0===i?void 0:i[t+r])})),O._element&&R&&R.appendChild(O._element)},n=0;n<w[e].length;n++)t(n)},B=0;B<w.length;B++)D(B);if(((null===(v=n.cornersDotOptions)||void 0===v?void 0:v.gradient)||(null===(_=n.cornersDotOptions)||void 0===_?void 0:_.color))&&((I=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+E+"-"+C),e._defs.appendChild(I),e._cornersDotClipPath=I,e._createColor({options:null===(x=n.cornersDotOptions)||void 0===x?void 0:x.gradient,color:null===(A=n.cornersDotOptions)||void 0===A?void 0:A.color,additionalRotation:M,x:T+2*a,y:P+2*a,height:l,width:l,name:"corners-dot-color-"+E+"-"+C})),null===(k=n.cornersDotOptions)||void 0===k?void 0:k.type){var N=new m({svg:e._element,type:n.cornersDotOptions.type});N.draw(T+2*a,P+2*a,l,M),N._element&&I&&I.appendChild(N._element)}else{O=new h({svg:e._element,type:n.dotsOptions.type});var F=function(e){for(var t=function(t){if(!(null===(S=b[e])||void 0===S?void 0:S[t]))return"continue";O.draw(T+e*a,P+t*a,a,(function(n,r){var i;return!!(null===(i=b[e+n])||void 0===i?void 0:i[t+r])})),O._element&&I&&I.appendChild(O._element)},n=0;n<b[e].length;n++)t(n)};for(B=0;B<b.length;B++)F(B)}}))},e.prototype.loadImage=function(){var e=this;return new Promise((function(t,n){var r=e._options,i=new Image;if(!r.image)return n("Image is not defined");"string"==typeof r.imageOptions.crossOrigin&&(i.crossOrigin=r.imageOptions.crossOrigin),e._image=i,i.onload=function(){t()},i.src=r.image}))},e.prototype.drawImage=function(e){var t=e.width,n=e.height,r=e.count,i=e.dotSize;return y(this,void 0,void 0,(function(){var e,o,a,s,c,u,h,d,p;return v(this,(function(f){switch(f.label){case 0:return e=this._options,o=Math.floor((e.width-r*i)/2),a=Math.floor((e.height-r*i)/2),s=o+e.imageOptions.margin+(r*i-t)/2,c=a+e.imageOptions.margin+(r*i-n)/2,u=t-2*e.imageOptions.margin,h=n-2*e.imageOptions.margin,(d=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(s)),d.setAttribute("y",String(c)),d.setAttribute("width",u+"px"),d.setAttribute("height",h+"px"),[4,l(e.image||"")];case 1:return p=f.sent(),d.setAttribute("href",p||""),this._element.appendChild(d),[2]}}))}))},e.prototype._createColor=function(e){var t=e.options,n=e.color,r=e.additionalRotation,i=e.x,o=e.y,a=e.height,s=e.width,l=e.name,c=s>a?s:a,u=document.createElementNS("http://www.w3.org/2000/svg","rect");if(u.setAttribute("x",String(i)),u.setAttribute("y",String(o)),u.setAttribute("height",String(a)),u.setAttribute("width",String(s)),u.setAttribute("clip-path","url('#clip-path-"+l+"')"),t){var h;if("radial"===t.type)(h=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",l),h.setAttribute("gradientUnits","userSpaceOnUse"),h.setAttribute("fx",String(i+s/2)),h.setAttribute("fy",String(o+a/2)),h.setAttribute("cx",String(i+s/2)),h.setAttribute("cy",String(o+a/2)),h.setAttribute("r",String(c/2));else{var d=((t.rotation||0)+r)%(2*Math.PI),p=(d+2*Math.PI)%(2*Math.PI),f=i+s/2,m=o+a/2,g=i+s/2,y=o+a/2;p>=0&&p<=.25*Math.PI||p>1.75*Math.PI&&p<=2*Math.PI?(f-=s/2,m-=a/2*Math.tan(d),g+=s/2,y+=a/2*Math.tan(d)):p>.25*Math.PI&&p<=.75*Math.PI?(m-=a/2,f-=s/2/Math.tan(d),y+=a/2,g+=s/2/Math.tan(d)):p>.75*Math.PI&&p<=1.25*Math.PI?(f+=s/2,m+=a/2*Math.tan(d),g-=s/2,y-=a/2*Math.tan(d)):p>1.25*Math.PI&&p<=1.75*Math.PI&&(m+=a/2,f+=s/2/Math.tan(d),y-=a/2,g-=s/2/Math.tan(d)),(h=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",l),h.setAttribute("gradientUnits","userSpaceOnUse"),h.setAttribute("x1",String(Math.round(f))),h.setAttribute("y1",String(Math.round(m))),h.setAttribute("x2",String(Math.round(g))),h.setAttribute("y2",String(Math.round(y)))}t.colorStops.forEach((function(e){var t=e.offset,n=e.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",n),h.appendChild(r)})),u.setAttribute("fill","url('#"+l+"')"),this._defs.appendChild(h)}else n&&u.setAttribute("fill",n);this._element.appendChild(u)},e}(),x="canvas";for(var A={},k=0;k<=40;k++)A[k]=k;const S={type:x,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:A[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var E=function(){return(E=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 C(e){var t=E({},e);if(!t.colorStops||!t.colorStops.length)throw"Field 'colorStops' is required in gradient";return t.rotation?t.rotation=Number(t.rotation):t.rotation=0,t.colorStops=t.colorStops.map((function(e){return E(E({},e),{offset:Number(e.offset)})})),t}function M(e){var t=E({},e);return t.width=Number(t.width),t.height=Number(t.height),t.margin=Number(t.margin),t.imageOptions=E(E({}
vendor: 4,415 bytes, line 2
2,t.imageOptions),{hideBackgroundDots:Boolean(t.imageOptions.hideBackgroundDots),imageSize:Number(t.imageOptions.imageSize),margin:Number(t.imageOptions.margin)}),t.margin>Math.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=E({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=C(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=E({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=C(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=E({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=C(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=E({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=C(t.backgroundOptions.gradient))),t}var T=n(192),P=n.n(T),R=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},I=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}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,s])}}};const L=function(){function e(e){this._options=e?M(a(S,e)):S,this.update()}return e._clearContainer=function(e){e&&(e.innerHTML="")},e.prototype._setupSvg=function(){var e=this;if(this._qr){var t=new _(this._options);this._svg=t.getElement(),this._svgDrawingPromise=t.drawQR(this._qr).then((function(){var n;e._svg&&(null===(n=e._extension)||void 0===n||n.call(e,t.getElement(),e._options))}))}},e.prototype._setupCanvas=function(){var e,t=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=null===(e=this._svgDrawingPromise)||void 0===e?void 0:e.then((function(){if(t._svg){var e=t._svg,n=(new XMLSerializer).serializeToString(e),r="data:image/svg+xml;base64,"+btoa(n),i=new Image;return new Promise((function(e){i.onload=function(){var n,r;null===(r=null===(n=t._canvas)||void 0===n?void 0:n.getContext("2d"))||void 0===r||r.drawImage(i,0,0),e()},i.src=r}))}})))},e.prototype._getElement=function(e){return void 0===e&&(e="png"),R(this,void 0,void 0,(function(){return I(this,(function(t){switch(t.label){case 0:if(!this._qr)throw"QR code is empty";return"svg"!==e.toLowerCase()?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return t.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return t.sent(),[2,this._canvas]}}))}))},e.prototype.update=function(t){e._clearContainer(this._container),this._options=t?M(a(this._options,t)):this._options,this._options.data&&(this._qr=P()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(e){switch(!0){case/^[0-9]*$/.test(e):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(e):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===x?this._setupCanvas():this._setupSvg(),this.append(this._container))},e.prototype.append=function(e){if(e){if("function"!=typeof e.appendChild)throw"Container should be a single DOM node";
2this._options.type===x?this._canvas&&e.appendChild(this._canvas):this._svg&&e.appendChild(this._svg),this._container=e}},e.prototype.applyExtension=function(e){if(!e)throw"Extension function should be defined.";this._extension=e,this.update()},e.prototype.deleteExtension=function(){this._extension=void 0,this.update()},e.prototype.getRawData=function(e){return void 0===e&&(e="png"),R(this,void 0,void 0,(function(){var t,n,r;return I(this,(function(i){switch(i.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(e)];case 1:return(t=i.sent())?"svg"===e.toLowerCase()?(n=new XMLSerializer,r=n.serializeToString(t),[2,new Blob(['<?xml version="1.0" standalone="no"?>\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(n){return t.toBlob(n,"image/"+e,1)}))]:[2,null]}}))}))},e.prototype.download=function(e){return R(this,void 0,void 0,(function(){var t,n,r,i,o;return I(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",n="qr","string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(n=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(r=a.sent())?("svg"===t.toLowerCase()?(i=new XMLSerializer,o='<?xml version="1.0" standalone="no"?>\r\n'+(o=i.serializeToString(r)),s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),n+".svg")):s(r.toDataURL("image/"+t),n+"."+t),[2]):[2]}}))}))},e}()}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(676)})().default},4245:(e,t,n)=>{"use strict";const r=n(499),i=n(9412),o=n(845);function a(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?i(e):e}function c(e){return Array.isArray(e)?e.sort():"object"===typeof e?c(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function u(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){const t=(e=u(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function p(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"===typeof n&&n.split("").indexOf(e.arrayFormatSeparator)>-1?n.split(e.arrayFormatSeparator).map((t=>l(t,e))):null===n?n:l(n,e);r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:l(a,t),n(l(e,t),a,r)}for(const i of Object.keys(r)){const e=r[i];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=d(e[n],t);else r[i]=d(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=c(n):e[t]=n,e}),Object.create(null))}t.extract=h,t.parse=p,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[",i,"]"].join("")]:[...n,[s(t,e),"[",s(i,e),"]=",s(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[]"].join("")]:[...n,[s(t,e),"[]=",s(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null===r||void 0===r||0===r.length?n:0===n.length?[[s(t,e),"=",s(r,e)].join("")]:[[n,s(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,s(t,e)]:[...n,[s(t,e),"=",s(r,e)].join("")]}}(t),i={};for(const a of Object.keys(e))n(a)||(i[a]=e[a]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?s(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):s(n,t)+"="+s(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>
2{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:p(h(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=u(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let l=t.stringify(a,n);l&&(l="?".concat(l));let c=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c="#".concat(s(e.fragmentIdentifier,n))),"".concat(r).concat(l).concat(c)}},1425:function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(2791),function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=r},function(e,t,n){"use strict";var r={linear:function(e,t,n,r){return(n-t)*e/r+t},easeInQuad:function(e,t,n,r){return(n-t)*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){return-(n-t)*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){return(n-t)*(e/=r)*e*e+t},easeOutCubic:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,n,r){return-(n-t)*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,r){var i=n-t;return-i*Math.cos(e/r*(Math.PI/2))+i+t},easeOutSine:function(e,t,n,r){return(n-t)*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,n,r){return-(n-t)/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,n,r){return 0==e?t:(n-t)*Math.pow(2,10*(e/r-1))+t},easeOutExpo:function(e,t,n,r){var i=n-t;return e==r?t+i:i*(1-Math.pow(2,-10*e/r))+t},easeInOutExpo:function(e,t,n,r){var i=n-t;return 0===e?t:e===r?t+i:(e/=r/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,n,r){return-(n-t)*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,n,r){return(n-t)*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,r){var i,o,a,s=n-t;return a=1.70158,0===e?t:1==(e/=r)?t+s:((o=0)||(o=.3*r),(i=s)<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)+t)},easeOutElastic:function(e,t,n,r){var i,o,a,s=n-t;return a=1.70158,0===e?t:1==(e/=r)?t+s:((o=0)||(o=.3*r),(i=s)<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),i*Math.pow(2,-10*e)*Math.sin((e*r-a)*(2*Math.PI)/o)+s+t)},easeInOutElastic:function(e,t,n,r){var i,o,a,s=n-t;return a=1.70158,0===e?t:2==(e/=r/2)?t+s:((o=0)||(o=r*(.3*1.5)),(i=s)<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*-.5+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*.5+s+t)},easeInBack:function(e,t,n,r,i){return void 0===i&&(i=1.70158),(n-t)*(e/=r)*e*((i+1)*e-i)+t},easeOutBack:function(e,t,n,r,i){return void 0===i&&(i=1.70158),(n-t)*((e=e/r-1)*e*((i+1)*e+i)+1)+t},easeInOutBack:function(e,t,n,r,i){var o=n-t;return void 0===i&&(i=1.70158),(e/=r/2)<1?o/2*(e*e*((1+(i*=1.525))*e-i))+t:o/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t},easeInBounce:function(e,t,n,i){var o=n-t;return o-r.easeOutBounce(i-e,0,o,i)+t},easeOutBounce:function(e,t,n,r){var i=n-t;return(e/=r)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,n,i){var o=n-t;return e<i/2?.5*r.easeInBounce(2*e,0,o,i)+t:.5*r.easeOutBounce(2*e-i,0,o,i)+.5*o+t}};e.exports=r},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t),n.d(t,"ReactConfetti",(function(){return U}));var r,i,o=n(0),a=n.n(o),s=n(1),l=n.n(s);function c(e,t){return e+Math.random()*(t-e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Circle=0]="Circle",e[e.Square=1]="Square",e[e.Strip=2]="Strip"}(r||(r={})),function(e){e[e.Positive=1]="Positive",e[e.Negative=-1]="Negative"}(i||(i={}));var d=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
2(this,e),h(this,"context",void 0),h(this,"radius",void 0),h(this,"x",void 0),h(this,"y",void 0),h(this,"w",void 0),h(this,"h",void 0),h(this,"vx",void 0),h(this,"vy",void 0),h(this,"shape",void 0),h(this,"angle",void 0),h(this,"angularSpin",void 0),h(this,"color",void 0),h(this,"rotateY",void 0),h(this,"rotationDirection",void 0),h(this,"getOptions",void 0),this.getOptions=n;var a,s,l=this.getOptions(),u=l.colors,d=l.initialVelocityX,p=l.initialVelocityY;this.context=t,this.x=r,this.y=o,this.w=c(5,20),this.h=c(5,20),this.radius=c(5,10),this.vx="number"==typeof d?c(-d,d):c(d.min,d.max),this.vy="number"==typeof p?c(-p,0):c(p.min,p.max),this.shape=(a=0,s=2,Math.floor(a+Math.random()*(s-a+1))),this.angle=c(0,360)*Math.PI/180,this.angularSpin=c(-.2,.2),this.color=u[Math.floor(Math.random()*u.length)],this.rotateY=c(0,1),this.rotationDirection=c(0,1)?i.Positive:i.Negative}var t,n,o;return t=e,(n=[{key:"update",value:function(){var e=this.getOptions(),t=e.gravity,n=e.wind,o=e.friction,a=e.opacity,s=e.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=t,this.vx+=n,this.vx*=o,this.vy*=o,this.rotateY>=1&&this.rotationDirection===i.Positive?this.rotationDirection=i.Negative:this.rotateY<=-1&&this.rotationDirection===i.Negative&&(this.rotationDirection=i.Positive);var l=.1*this.rotationDirection;if(this.rotateY+=l,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=a,this.context.lineCap="round",this.context.lineWidth=2,s&&"function"==typeof s)s.call(this,this.context);else switch(this.shape){case r.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case r.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case r.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&u(t.prototype,n),o&&u(t,o),e}();function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"canvas",void 0),p(this,"context",void 0),p(this,"getOptions",void 0),p(this,"x",0),p(this,"y",0),p(this,"w",0),p(this,"h",0),p(this,"lastNumberOfPieces",0),p(this,"tweenInitTime",Date.now()),p(this,"particles",[]),p(this,"particlesGenerated",0),p(this,"removeParticleAt",(function(e){r.particles.splice(e,1)})),p(this,"getParticle",(function(){var e=c(r.x,r.w+r.x),t=c(r.y,r.h+r.y);return new d(r.context,r.getOptions,e,t)})),p(this,"animate",(function(){var e=r.canvas,t=r.context,n=r.particlesGenerated,i=r.lastNumberOfPieces,o=r.getOptions(),a=o.run,s=o.recycle,l=o.numberOfPieces,c=o.debug,u=o.tweenFunction,h=o.tweenDuration;if(!a)return!1;var d=r.particles.length,p=s?d:n,f=Date.now();if(p<l){i!==l&&(r.tweenInitTime=f,r.lastNumberOfPieces=l);for(var m=r.tweenInitTime,g=u(f-m>h?h:Math.max(0,f-m),p,l,h),y=Math.round(g-p),v=0;v<y;v++)r.particles.push(r.getParticle());r.particlesGenerated+=y}return c&&(t.font="12px sans-serif",t.fillStyle="#333",t.textAlign="right",t.fillText("Particles: ".concat(d),e.width-10,e.height-20)),r.particles.forEach((function(t,n){t.update(
2),(t.y>e.height||t.y<-100||t.x>e.width+100||t.x<-100)&&(s&&p<=l?r.particles[n]=r.getParticle():r.removeParticleAt(n))})),d>0||p<l})),this.canvas=t;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.getOptions=n};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w={width:"undefined"!=typeof window?window.innerWidth:300,height:"undefined"!=typeof window?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:l.a.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},b=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,"canvas",void 0),v(this,"context",void 0),v(this,"_options",void 0),v(this,"generator",void 0),v(this,"rafId",void 0),v(this,"setOptionsWithDefaults",(function(e){var t={confettiSource:{x:0,y:0,w:r.canvas.width,h:0}};r._options=g(g(g({},t),w),e),Object.assign(r,e.confettiSource)})),v(this,"update",(function(){var e=r.options,t=e.run,n=e.onConfettiComplete,i=r.canvas,o=r.context;t&&(o.fillStyle="white",o.clearRect(0,0,i.width,i.height)),r.generator.animate()?r.rafId=requestAnimationFrame(r.update):(n&&"function"==typeof n&&r.generator.particlesGenerated>0&&n.call(r,r),r._options.run=!1)})),v(this,"reset",(function(){r.generator&&r.generator.particlesGenerated>0&&(r.generator.particlesGenerated=0,r.generator.particles=[],r.generator.lastNumberOfPieces=0)})),v(this,"stop",(function(){r.options={run:!1},r.rafId&&(cancelAnimationFrame(r.rafId),r.rafId=void 0)})),this.canvas=t;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.generator=new f(this.canvas,(function(){return r.options})),this.options=n,this.update()}var t,n,r;return t=e,(n=[{key:"options",get:function(){return this._options},set:function(e){var t=this._options&&this._options.run,n=this._options&&this._options.recycle;this.setOptionsWithDefaults(e),this.generator&&(Object.assign(this.generator,this.options.confettiSource),"boolean"==typeof e.recycle&&e.recycle&&!1===n&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),"boolean"==typeof e.run&&e.run&&!1===t&&this.update()}}])&&y(t.prototype,n),r&&y(t,r),e}();function _(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?k(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=D(e);if(t){var i=D(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}function L(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=a.a.createRef(),F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(o,e);var t,n,r,i=I(o);function o(e){var t;T(this,o);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return B(O(t=i.call.apply(i,[this,e].concat(r))),"canvas",a.a.createRef()),B(O(t),"confetti",void 0),t.canvas=e.canvasRef||N,t}return t=o,(n=[{key:"componentDidMount",value:function(){if(this.canvas.current){var e=j(this.props)[0];this.confetti=new b(this.canvas.current,e)}}},{key:"componentDidUpdate",value:function(){var e=j(this.props)[0];this.confetti&&(this.confetti.options=e)}},{key:"componentWillUnmount",value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:"render",value:function(){var e=E(j(this.props),2),t=e[0],n=e[1],r=S({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},n.style);return a.a.createElement("canvas",A({width:t.width,height:t.height,ref:this.canvas},n,{style:r}))}}])&&P(t.prototype,n),r&&P(t,r),o}(o.Component);function j(e){var t={},n={},r=[].concat(_(Object.keys(w)),["confettiSource","drawShape","onConfettiComplete"]),i=["canvasRef"];for(var o in e){var a=e[o];r.includes(o)?t[o]=a:i.includes(o)?i[o]=a:n[o]=a}return[t,n,{}]}B(F,"defaultProps",S({},w)),B(F,"displayName","ReactConfetti");var U=a.a.forwardRef((function(e,t){return a.a.createElement(F,A({canvasRef:t},e))}));t.default=U}]).default)},4463:(e,t,n)=>{"use strict";var r=n(2791),i=n(5296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),h=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},f={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 34,480 bytes, line 2
2h((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function w(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(f,e)||!h.call(p,e)&&(d.test(e)?f[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),x=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),C=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function D(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=O&&e[O]||e["@@iterator"])?e:null}var B,N=Object.assign;function F(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var j=!1;function U(e,t){if(!e||j)return"";j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function z(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case A:return"Fragment";case x:return"Portal";case S:return"Profiler";case k:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case M:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return N({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function J(e,t){X(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return N({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function oe(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,he=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ae=null,ke=null;function Se(e){if(e=wi(e)){if("function"!==typeof xe)throw Error(o(280));var t=e.stateNode;t&&(t=_i(t),xe(e.stateNode,e.type,t))}}function Ee(e){Ae?ke?ke.push(e):ke=[e]:Ae=e}function Ce(){if(Ae){var e=Ae,t=ke;if(ke=Ae=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Me(e,t){return e(t)}function Te(){}var Pe=!1;function Re(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Me(e,t,n)}finally{Pe=!1,(null!==Ae||null!==ke)&&(Te(),Ce())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=_i(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Le=!1;if(u)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ue){Le=!1}function De(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Be=!1,Ne=null,Fe=!1,je=null,Ue={onError:function(e){Be=!0,Ne=e}};function ze(e,t,n,r,i,o,a,s,l){Be=!1,Ne=null,De.apply(Ue,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(qe(e)!==e)throw Error(o(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ve(i),e;if(a===r)return Ve(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var Ge=i.unstable_scheduleCallback,Ze=i.unstable_cancelCallback,Qe=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Xe=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,$e=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function ht(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ht(s):0!==(o&=a)&&(r=ht(o))}else 0!==(a=n&~i)?r=ht(a):0!==o&&(r=ht(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var wt=0;function bt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var _t,xt,At,kt,St,Et=!1,Ct=[],Mt=null,Tt=null,Pt=null,Rt=new Map,It=new Map,Lt=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":Mt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Bt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=wi(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Nt(e){var t=vi(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void St(e.priority,(function(){At(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wi(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function jt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Et=!1,null!==Mt&&Ft(Mt)&&(Mt=null),null!==Tt&&Ft(Tt)&&(Tt=null),null!==Pt&&Ft(Pt)&&(Pt=null),Rt.forEach(jt),It.forEach(jt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function qt(e){function t(t){return zt(t,e)}if(0<Ct.length){zt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Mt&&zt(Mt,e),null!==Tt&&zt(Tt,e),null!==Pt&&zt(Pt,e),Rt.forEach(t),It.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Nt(n),null===n.blockedOn&&Lt.shift()}var Wt=b.ReactCurrentBatchConfig,Vt=!0;function Ht(e,t,n,r){var i=wt,o=Wt.transition;Wt.transition=null;try{wt=1,Gt(e,t,n,r)}finally{wt=i,Wt.transition=o}}function Kt(e,t,n,r){var i=wt,o=Wt.transition;Wt.transition=null;try{wt=4,Gt(e,t,n,r)}finally{wt=i,Wt.transition=o}}function Gt(e,t,n,r){if(Vt){var i=Qt(e,t,n,r);if(null===i)Vr(e,t,r,Zt,n),Dt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Mt=Bt(Mt,e,t,n,r,i),!0;case"dragenter":return Tt=Bt(Tt,e,t,n,r,i),!0;case"mouseover":return Pt=Bt(Pt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Rt.set(o,Bt(Rt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,It.set(o,Bt(It.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==i;){var o=wi(i);if(null!==o&&_t(o),null===(o=Qt(e,t,n,r))&&Vr(e,t,r,Zt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Zt=null;function Qt(e,t,n,r){if(Zt=null,null!==(e=vi(e=_e(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,$t=null;function en(){if($t)return $t;var e,t,n=Jt,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return $t=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),hn=N({},cn,{view:0,detail:0}),dn=on(hn),pn=N({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=on(pn),mn=on(N({},pn,{dataTransfer:0})),gn=on(N({},hn,{relatedTarget:0})),yn=on(N({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=N({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=on(vn),bn=on(N({},cn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},An={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=An[e])&&!!t[e]}function Sn(){return kn}var En=N({},hn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=on(En),Mn=on(N({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(N({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Pn=on(N({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=N({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(Rn),Ln=[9,13,27,32],On=u&&"CompositionEvent"in window,Dn=null;u&&"documentMode"in document&&(Dn=document.documentMode);var Bn=u&&"TextEvent"in window&&!Dn,Nn=u&&(!On||Dn&&8<Dn&&11>=Dn),Fn=String.fromCharCode(32),jn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){Ee(r),0<(t=Kr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Gn=null;function Zn(e){Fr(e,0)}function Qn(e){if(G(bi(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(u){var Jn;if(u){var $n="oninput"in document;if(!$n){var er=document.createElement("div");er.setAttribute("oninput","return;"),$n="function"===typeof er.oninput}Jn=$n}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),Gn=Kn=null)}function nr(e){if("value"===e.propertyName&&Qn(Gn)){var t=[];Hn(t,Gn,e,_e(e)),Re(Zn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Gn)}function or(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!h.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,vr=null,wr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==gr||gr!==Z(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Kr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Ar={},kr={};function Sr(e){if(Ar[e])return Ar[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Ar[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Er=Sr("animationend"),Cr=Sr("animationiteration"),Mr=Sr("animationstart"),Tr=Sr("transitionend"),Pr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Pr.set(e,t),l(t,[e])}for(var Lr=0;Lr<Rr.length;Lr++){var Or=Rr[Lr];Ir(Or.toLowerCase(),"on"+(Or[0].toUpperCase()+Or.slice(1)))}Ir(Er,"onAnimationEnd"),Ir(Cr,"onAnimationIteration"),Ir(Mr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Br=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Nr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if(ze.apply(this,arguments),Be){if(!Be)throw Error(o(198));var u=Ne;Be=!1,Ne=null,Fe||(Fe=!0,je=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Nr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Nr(i,s,c),o=l}}}if(Fe)throw e=je,Fe=!1,je=null,e}function jr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[zr]){e[zr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Br.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Ur("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Yt(t)){case 1:var i=Ht;break;case 4:i=Kt;break;default:i=Gt}n=i.bind(null,t,n,e),i=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=vi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Re((function(){var r=o,i=_e(n),a=[];e:{var s=Pr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Er:case Cr:case Mr:l=yn;break;case Tr:l=Pn;break;case"scroll":l=dn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Mn}var u=0!==(4&t),h=!u&&"scroll"===e,d=u?null!==s?s+"Capture":null:s;u=[];for(var p,f=r;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Ie(f,d))&&u.push(Hr(f,m,p)))),h)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(c=n.relatedTarget||n.fromElement)||!vi(c)&&!c[fi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?vi(c):null)&&(c!==(h=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=fn,m="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=Mn,m="onPointerLeave",d="onPointerEnter",f="pointer"),h=null==l?s:bi(l),p=null==c?s:bi(c),(s=new u(m,f+"leave",l,n,i)).target=h,s.relatedTarget=p,m=null,vi(i)===r&&((u=new u(d,f+"enter",c,n,i)).target=p,u.relatedTarget=h,m=u),h=m,l&&c)e:{for(d=c,f=0,p=u=l;p;p=Gr(p))f++;for(p=0,m=d;m;m=Gr(m))p++;for(;0<f-p;)u=Gr(u),f--;for(;0<p-f;)d=Gr(d),p--;for(;f--;){if(u===d||null!==d&&u===d.alternate)break e;u=Gr(u),d=Gr(d)}u=null}else u=null;null!==l&&Zr(a,s,l,u,!1),null!==c&&null!==h&&Zr(a,h,c,u,!0)}if("select"===(l=(s=r?bi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;else if(Vn(s))if(Xn)g=ar;else{g=ir;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Hn(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?bi(r):window,e){case"focusin":(Vn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,vr=null);break;case"focusout":vr=yr=gr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,br(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":br(a,n,i)}var v;if(On)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else qn?Un(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");
vendor: 92,780 bytes, line 2
2w&&(Nn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==w?"onCompositionEnd"===w&&qn&&(v=en()):(Jt="value"in(Xt=i)?Xt.value:Xt.textContent,qn=!0)),0<(y=Kr(r,w)).length&&(w=new bn(w,e,null,n,i),a.push({event:w,listeners:y}),v?w.data=v:null!==(v=zn(n))&&(w.data=v))),(v=Bn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(jn=!0,Fn);case"textInput":return(e=t.data)===Fn&&jn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!On&&Un(e,t)?(e=en(),$t=Jt=Xt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Kr(r,"onBeforeInput")).length&&(i=new bn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Fr(a,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ie(e,n))&&r.unshift(Hr(e,o,i)),null!=(o=Ie(e,t))&&r.push(Hr(e,o,i))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ie(n,o))&&a.unshift(Hr(n,l,s)):i||null!=(l=Ie(n,o))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"===typeof e?e:""+e).replace(Qr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(o(425))}function $r(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);qt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var hi=Math.random().toString(36).slice(2),di="__reactFiber$"+hi,pi="__reactProps$"+hi,fi="__reactContainer$"+hi,mi="__reactEvents$"+hi,gi="__reactListeners$"+hi,yi="__reactHandles$"+hi;function vi(e){var t=e[di];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[di]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[di])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function wi(e){return!(e=e[di]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function _i(e){return e[pi]||null}var xi=[],Ai=-1;function ki(e){return{current:e}}function Si(e){0>Ai||(e.current=xi[Ai],xi[Ai]=null,Ai--)}function Ei(e,t){Ai++,xi[Ai]=e.current,e.current=t}var Ci={},Mi=ki(Ci),Ti=ki(!1),Pi=Ci;function Ri(e,t){var n=e.type.contextTypes;if(!n)return Ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ii(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Li(){Si(Ti),Si(Mi)}function Oi(e,t,n){if(Mi.current!==Ci)throw Error(o(168));Ei(Mi,t),Ei(Ti,n)}function Di(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,W(e)||"Unknown",i));return N({},n,r)}function Bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,Pi=Mi.current,Ei(Mi,e),Ei(Ti,Ti.current),!0}function Ni(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Di(e,t,Pi),r.__reactInternalMemoizedMergedChildContext=e,Si(Ti),Si(Mi),Ei(Mi,e)):Si(Ti),Ei(Ti,n)}var Fi=null,ji=!1,Ui=!1;function zi(e){null===Fi?Fi=[e]:Fi.push(e)}function qi(){if(!Ui&&null!==Fi){Ui=!0;var e=0,t=wt;try{var n=Fi;for(wt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fi=null,ji=!1}catch(i){throw null!==Fi&&(Fi=Fi.slice(e+1)),Ge($e,qi),i}finally{wt=t,Ui=!1}}return null}var Wi=[],Vi=0,Hi=null,Ki=0,Gi=[],Zi=0,Qi=null,Yi=1,Xi="";function Ji(e,t){Wi[Vi++]=Ki,Wi[Vi++]=Hi,Hi=e,Ki=t}function $i(e,t,n){Gi[Zi++]=Yi,Gi[Zi++]=Xi,Gi[Zi++]=Qi,Qi=e;var r=Yi;e=Xi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Yi=1<<32-at(t)+i|n<<i|r,Xi=o+e}else Yi=1<<o|n<<i|r,Xi=e}function eo(e){null!==e.return&&(Ji(e,1),$i(e,1,0))}function to(e){for(;e===Hi;)Hi=Wi[--Vi],Wi[Vi]=null,Ki=Wi[--Vi],Wi[Vi]=null;for(;e===Qi;)Qi=Gi[--Zi],Gi[Zi]=null,Xi=Gi[--Zi],Gi[Zi]=null,Yi=Gi[--Zi],Gi[Zi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qi?{id:Yi,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ci(e.nextSibling)}function fo(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=b.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=N({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vo=ki(null),wo=null,bo=null,_o=null;function xo(){_o=bo=wo=null}function Ao(e){var t=vo.current;Si(vo),e._currentValue=t}function ko(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function So(e,t){wo=e,_o=bo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Eo(e){var t=e._currentValue;if(_o!==e)if(e={context:e,memoizedValue:t,next:null},null===bo){if(null===wo)throw Error(o(308));bo=e,wo.dependencies={lanes:0,firstContext:e}}else bo=bo.next=e;return t}var Co=null;function Mo(e){null===Co?Co=[e]:Co.push(e)}function To(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Mo(t)):(n.next=i.next,i.next=n),t.interleaved=n,Po(e,r)}function Po(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ro=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Do(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Po(e,n)}return null===(i=r.interleaved)?(t.next=t,Mo(r)):(t.next=i.next,i.next=t),r.interleaved=t,Po(e,n)}function Bo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function No(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fo(e,t,n,r){var i=e.updateQueue;Ro=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var h=i.baseState;for(a=0,u=c=l=null,s=o;;){var d=s.lane,p=s.eventTime;if((r&d)===d){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(d=t,p=n,m.tag){case 1:if("function"===typeof(f=m.payload)){h=f.call(p,h,d);break e}h=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(d="function"===typeof(f=m.payload)?f.call(p,h,d):f)||void 0===d)break e;h=N({},h,d);break e;case 2:Ro=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=h):u=u.next=p,a|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===u&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Nl|=a,e.lanes=a,e.memoizedState=h}}function jo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Uo=(new r.Component).refs;function zo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:N({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var qo={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Oo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Do(e,o,i))&&(rc(t,e,i,r),Bo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Oo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Do(e,o,i))&&(rc(t,e,i,r),Bo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),i=Oo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Do(e,i,r))&&(rc(t,e,r,n),Bo(t,e,r))}};function Wo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function Vo(e,t,n){var r=!1,i=Ci,o=t.contextType;return"object"===typeof o&&null!==o?o=Eo(o):(i=Ii(t)?Pi:Mi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ri(e,i):Ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=qo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ho(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&qo.enqueueReplaceState(t,t.state,null)}function Ko(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Uo,Io(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Eo(o):(o=Ii(t)?Pi:Mi.current,i.context=Ri(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(zo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&qo.enqueueReplaceState(i,i.state,null),Fo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Go(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Uo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Zo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qo(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Oc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Fc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===A?h(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===I&&Qo(o)===t.type)?((r=i(t,n.props)).ref=Go(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=Go(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=jc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function h(e,t,n,r,o){return null===t||7!==t.tag?((t=Bc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Fc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=Go(e,null,t),n.return=e,n;case x:return(t=jc(t,e.mode,n)).return=e,t;case I:return d(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Bc(t,e.mode,n,null)).return=e,t;Zo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?c(e,t,n,r):null;case x:return n.key===i?u(e,t,n,r):null;case I:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||D(n))return null!==i?null:h(e,t,n,r,null);Zo(e,n)}return null}function f(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return f(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||D(r))return h(t,e=e.get(n)||null,r,i,null);Zo(t,r)}return null}function m(i,o,s,l){for(var c=null,u=null,h=o,m=o=0,g=null;null!==h&&m<s.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var y=p(i,h,s[m],l);if(null===y){null===h&&(h=g);break}e&&h&&null===y.alternate&&t(i,h),o=a(y,o,m),null===u?c=y:u.sibling=y,u=y,h=g}if(m===s.length)return n(i,h),io&&Ji(i,m),c;if(null===h){for(;m<s.length;m++)null!==(h=d(i,s[m],l))&&(o=a(h,o,m),null===u?c=h:u.sibling=h,u=h);return io&&Ji(i,m),c}for(h=r(i,h);m<s.length;m++)null!==(g=f(h,i,m,s[m],l))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(i,e)})),io&&Ji(i,m),c}function g(i,s,l,c){var u=D(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var h=u=null,m=s,g=s=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var w=p(i,m,v.value,c);if(null===w){null===m&&(m=y);break}e&&m&&null===w.alternate&&t(i,m),s=a(w,s,g),null===h?u=w:h.sibling=w,h=w,m=y}if(v.done)return n(i,m),io&&Ji(i,g),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=d(i,v.value,c))&&(s=a(v,s,g),null===h?u=v:h.sibling=v,h=v);return io&&Ji(i,g),u}for(m=r(i,m);!v.done;g++,v=l.next())null!==(v=f(m,i,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=a(v,s,g),null===h?u=v:h.sibling=v,h=v);return e&&m.forEach((function(e){return t(i,e)})),io&&Ji(i,g),u}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===A&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===A){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===I&&Qo(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=Go(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===A?((o=Bc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Dc(a.type,a.key,a.props,null,r.mode,l)).ref=Go(r,o,a),l.return=r,r=l)}return s(r);case x:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=jc(a,r.mode,l)).return=r,r=o}return s(r);case I:return e(r,o,(u=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(D(a))return g(r,o,a,l);Zo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Fc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Xo=Yo(!0),Jo=Yo(!1),$o={},ea=ki($o),ta=ki($o),na=ki($o);function ra(e){if(e===$o)throw Error(o(174));return e}function ia(e,t){switch(Ei(na,t),Ei(ta,e),Ei(ea,$o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Si(ea),Ei(ea,t)}function oa(){Si(ea),Si(ta),Si(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(Ei(ta,e),Ei(ea,n))}function sa(e){ta.current===e&&(Si(ea),Si(ta))}var la=ki(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function ha(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var da=b.ReactCurrentDispatcher,pa=b.ReactCurrentBatchConfig,fa=0,ma=null,ga=null,ya=null,va=!1,wa=!1,ba=0,_a=0;function xa(){throw Error(o(321))}function Aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ka(e,t,n,r,i,a){if(fa=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?ss:ls,e=n(r,i),wa){a=0;do{if(wa=!1,ba=0,25<=a)throw Error(o(301));a+=1,ya=ga=null,t.updateQueue=null,da.current=cs,e=n(r,i)}while(wa)}if(da.current=as,t=null!==ga&&null!==ga.next,fa=0,ya=ga=ma=null,va=!1,t)throw Error(o(300));return e}function Sa(){var e=0!==ba;return ba=0,e}function Ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ya?ma.memoizedState=ya=e:ya=ya.next=e,ya}function Ca(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===ya?ma.memoizedState:ya.next;if(null!==t)ya=t,ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===ya?ma.memoizedState=ya=e:ya=ya.next=e}return ya}function Ma(e,t){return"function"===typeof t?t(e):t}function Ta(e){var t=Ca(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ga,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var h=u.lane;if((fa&h)===h)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=d,s=r):c=c.next=d,ma.lanes|=h,Nl|=h}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,ma.lanes|=a,Nl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pa(e){var t=Ca(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ra(){}function Ia(e,t){var n=ma,r=Ca(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Va(Da.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ya&&1&ya.memoizedState.tag){if(n.flags|=2048,ja(9,Oa.bind(null,n,r,i,t),void 0,null),null===Pl)throw Error(o(349));0!==(30&fa)||La(n,t,i)}return i}function La(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oa(e,t,n,r){t.value=n,t.getSnapshot=r,Ba(t)&&Na(e)}function Da(e,t,n){return n((function(){Ba(t)&&Na(e)}))}function Ba(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Na(e){var t=Po(e,1);null!==t&&rc(t,e,1,-1)}function Fa(e){var t=Ea();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function ja(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ua(){return Ca().memoizedState}function za(e,t,n,r){var i=Ea();ma.flags|=e,i.memoizedState=ja(1|t,n,void 0,void 0===r?null:r)}function qa(e,t,n,r){var i=Ca();r=void 0===r?null:r;var o=void 0;if(null!==ga){var a=ga.memoizedState;if(o=a.destroy,null!==r&&Aa(r,a.deps))return void(i.memoizedState=ja(t,n,o,r))}ma.flags|=e,i.memoizedState=ja(1|t,n,o,r)}function Wa(e,t){return za(8390656,8,e,t)}function Va(e,t){return qa(2048,8,e,t)}function Ha(e,t){return qa(4,2,e,t)}function Ka(e,t){return qa(4,4,e,t)}function Ga(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Za(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,qa(4,4,Ga.bind(null,t,e),n)}function Qa(){}function Ya(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0===(21&fa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),ma.lanes|=n,Nl|=n,e.baseState=!0),t)}function $a(e,t){var n=wt;wt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{wt=n,pa.transition=r}}function es(){return Ca().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))is(t,n);else if(null!==(n=To(e,t,n,r))){rc(n,e,r,tc()),os(n,t,r)}}function ns(e,t,n){var r=nc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Mo(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=To(e,t,i,r))&&(rc(n,e,r,i=tc()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function is(e,t){wa=va=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var as={readContext:Eo,useCallback:xa,useContext:xa,useEffect:xa,useImperativeHandle:xa,useInsertionEffect:xa,useLayoutEffect:xa,useMemo:xa,useReducer:xa,useRef:xa,useState:xa,useDebugValue:xa,useDeferredValue:xa,useTransition:xa,useMutableSource:xa,useSyncExternalStore:xa,useId:xa,unstable_isNewReconciler:!1},ss={readContext:Eo,useCallback:function(e,t){return Ea().memoizedState=[e,void 0===t?null:t],e},useContext:Eo,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,za(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return za(4194308,4,e,t)},useInsertionEffect:function(e,t){return za(4,2,e,t)},useMemo:function(e,t){var n=Ea();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ea();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ea().memoizedState=e},useState:Fa,useDebugValue:Qa,useDeferredValue:function(e){return Ea().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=$a.bind(null,e[1]),Ea().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,i=Ea();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Pl)throw Error(o(349));0!==(30&fa)||La(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Wa(Da.bind(null,r,a,e),[e]),r.flags|=2048,ja(9,Oa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ea(),t=Pl.identifierPrefix;if(io){var n=Xi;t=":"+t+"R"+(n=(Yi&~(1<<32-at(Yi)-1)).toString(32)+n),0<(n=ba++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_a++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Eo,useCallback:Ya,useContext:Eo,useEffect:Va,useImperativeHandle:Za,useInsertionEffect:Ha,useLayoutEffect:Ka,useMemo:Xa,useReducer:Ta,useRef:Ua,useState:function(){return Ta(Ma)},useDebugValue:Qa,useDeferredValue:function(e){return Ja(Ca(),ga.memoizedState,e)},useTransition:function(){return[Ta(Ma)[0],Ca().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Ia,useId:es,unstable_isNewReconciler:!1},cs={readContext:Eo,useCallback:Ya,useContext:Eo,useEffect:Va,useImperativeHandle:Za,useInsertionEffect:Ha,useLayoutEffect:Ka,useMemo:Xa,useReducer:Pa,useRef:Ua,useState:function(){return Pa(Ma)},useDebugValue:Qa,useDeferredValue:function(e){var t=Ca();return null===ga?t.memoizedState=e:Ja(t,ga.memoizedState,e)},useTransition:function(){return[Pa(Ma)[0],Ca().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Ia,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function hs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=Oo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Kl=r),ds(0,t)},n}function ms(e,t,n){(n=Oo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function ys(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Oo(-1,1)).tag=2,Do(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ws=b.ReactCurrentOwner,bs=!1;function _s(e,t,n,r){t.child=null===e?Jo(t,null,n,r):Xo(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var o=t.ref;return So(t,i),r=ka(e,t,n,r,o,i),n=Sa(),null===e||bs?(io&&n&&eo(t),t.flags|=1,_s(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function As(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Lc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ks(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=Oc(o,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return Cs(e,t,n,r,i)}function Ss(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ei(Ol,Ll),Ll|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ei(Ol,Ll),Ll|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ei(Ol,Ll),Ll|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ei(Ol,Ll),Ll|=r;return _s(e,t,i,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,i){var o=Ii(n)?Pi:Mi.current;return o=Ri(t,o),So(t,i),n=ka(e,t,n,r,o,i),r=Sa(),null===e||bs?(io&&r&&eo(t),t.flags|=1,_s(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function Ms(e,t,n,r,i){if(Ii(n)){var o=!0;Bi(t)}else o=!1;if(So(t,i),null===t.stateNode)Vs(e,t),Vo(t,n,r),Ko(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Eo(c):c=Ri(t,c=Ii(n)?Pi:Mi.current);var u=n.getDerivedStateFromProps,h="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;h||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Ho(t,a,r,c),Ro=!1;var d=t.memoizedState;a.state=d,Fo(t,r,a,i),l=t.memoizedState,s!==r||d!==l||Ti.current||Ro?("function"===typeof u&&(zo(t,n,u,r),l=t.memoizedState),(s=Ro||Wo(t,n,s,r,d,l,c))?(h||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Lo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:yo(t.type,s),a.props=c,h=t.pendingProps,d=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Eo(l):l=Ri(t,l=Ii(n)?Pi:Mi.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==h||d!==l)&&Ho(t,a,r,l),Ro=!1,d=t.memoizedState,a.state=d,Fo(t,r,a,i);var f=t.memoizedState;s!==h||d!==f||Ti.current||Ro?("function"===typeof p&&(zo(t,n,p,r),f=t.memoizedState),(c=Ro||Wo(t,n,c,r,d,f,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,o,i)}function Ts(e,t,n,r,i,o){Es(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Ni(t,n,!1),Hs(e,t,o);r=t.stateNode,ws.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Xo(t,e.child,null,o),t.child=Xo(t,null,s,o)):_s(e,t,s,o),t.memoizedState=r.state,i&&Ni(t,n,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?Oi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Oi(0,t.context,!1),ia(e,t.containerInfo)}function Rs(e,t,n,r,i){return fo(),mo(i),t.flags|=256,_s(e,t,n,r),t.child}var Is,Ls,Os,Ds,Bs={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(e,t,n){var r,i=t.pendingProps,a=la.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ei(la,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Nc(l,i,0,null),e=Bc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(n),t.memoizedState=Bs,e):js(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Us(e,t,s,r=hs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Nc({mode:"visible",children:r.children},i,0,null),(a=Bc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&Xo(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=Bs,a);if(0===(1&t.mode))return Us(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Us(e,t,s,r=hs(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Pl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Po(e,i),rc(r,e,i,-1))}return gc(),Us(e,t,s,r=hs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Mc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Gi[Zi++]=Yi,Gi[Zi++]=Xi,Gi[Zi++]=Qi,Yi=e.id,Xi=e.overflow,Qi=t),t=js(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Oc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Oc(r,s):(s=Bc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ns(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Bs,i}return e=(s=e.child).sibling,i=Oc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function js(e,t){return(t=Nc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,n,r){return null!==r&&mo(r),Xo(t,e.child,null,n),(e=js(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ko(e.return,t,n)}function qs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Ws(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(_s(e,t,r.children,n),0!==(2&(r=la.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ei(la,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),qs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ca(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}qs(t,!0,n,null,o);break;case"together":qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Oc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ks(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Zs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Ii(t.type)&&Li(),Gs(t),null;case 3:return r=t.stateNode,oa(),Si(Ti),Si(Mi),ha(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(sc(oo),oo=null))),Ls(e,t),Gs(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Os(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Gs(t),null}if(e=ra(ea.current),ho(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[di]=t,r[pi]=a,e=0!==(1&t.mode),n){case"dialog":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)jr(Dr[i],r);break;case"source":jr("error",r);break;case"img":case"image":case"link":jr("error",r),jr("load",r);break;case"details":jr("toggle",r);break;case"input":Y(r,a),jr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},jr("invalid",r);break;case"textarea":ie(r,a),jr("invalid",r)}for(var l in ve(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&jr("scroll",r)}switch(n){case"input":K(r),$(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=$r)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[di]=t,e[pi]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=we(n,r),n){case"dialog":jr("cancel",e),jr("close",e),i=r;break;case"iframe":case"object":case"embed":jr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)jr(Dr[i],e);i=r;break;case"source":jr("error",e),i=r;break;case"img":case"image":case"link":jr("error",e),jr("load",e),i=r;break;case"details":jr("toggle",e),i=r;break;case"input":Y(e,r),i=Q(e,r),jr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=N({},r,{value:void 0}),jr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),jr("invalid",e)}for(a in ve(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&he(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&de(e,u):"number"===typeof u&&de(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&jr("scroll",e):null!=u&&w(e,a,u,l))}switch(n){case"input":K(e),$(e,r,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=$r)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Ds(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[di]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[di]=t,t.stateNode=r}return Gs(t),null;case 13:if(Si(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),fo(),t.flags|=98560,a=!1;else if(a=ho(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[di]=t}else fo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),a=!1}else null!==oo&&(sc(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&la.current)?0===Dl&&(Dl=3):gc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return oa(),Ls(e,t),null===e&&qr(t.stateNode.containerInfo),Gs(t),null;case 10:return Ao(t.type._context),Gs(t),null;case 19:if(Si(la),null===(a=t.memoizedState))return Gs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Ks(a,!1);else{if(0!==Dl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ca(e))){for(t.flags|=128,Ks(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ei(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Wl&&(t.flags|=128,r=!0,Ks(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ca(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ks(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Gs(t),null}else 2*Xe()-a.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,r=!0,Ks(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=la.current,Ei(la,r?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ll)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Qs(e,t){switch(to(t),t.tag){case 1:return Ii(t.type)&&Li(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Si(Ti),Si(Mi),ha(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Si(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Si(la),null;case 4:return oa(),null;case 10:return Ao(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ls=function(){},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=Q(e,i),r=Q(e,r),a=[];break;case"select":i=N({},i,{value:void 0}),r=N({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=$r)}for(u in ve(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ds=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Xs=!1,Js="function"===typeof WeakSet?WeakSet:Set,$s=null;function el(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,n,o)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[di],delete t[pi],delete t[mi],delete t[gi],delete t[yi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=$r));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var hl=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Xs||el(n,t);case 6:var r=hl,i=dl;hl=null,pl(e,t,n),dl=i,null!==(hl=r)&&(dl?(e=hl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):hl.removeChild(n.stateNode));break;case 18:null!==hl&&(dl?(e=hl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),qt(e)):li(hl,n.stateNode));break;case 4:r=hl,i=dl,hl=n.stateNode.containerInfo,dl=!0,pl(e,t,n),hl=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&tl(n,t,a),i=i.next}while(i!==r)}pl(e,t,n);break;case 1:if(!Xs&&(el(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,pl(e,t,n),Xs=r):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach((function(t){var r=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:hl=l.stateNode,dl=!1;break e;case 3:case 4:hl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===hl)throw Error(o(160));fl(a,s,i),hl=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Sc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&r){try{rl(3,e,e.return),il(3,e)}catch(g){Sc(e,e.return,g)}try{rl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:gl(t,e),vl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),vl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var i=e.stateNode;try{de(i,"")}catch(g){Sc(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(i,a),we(l,s);var u=we(l,a);for(s=0;s<c.length;s+=2){var h=c[s],d=c[s+1];"style"===h?ge(i,d):"dangerouslySetInnerHTML"===h?he(i,d):"children"===h?de(i,d):w(i,h,d,u)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?ne(i,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(g){Sc(e,e.return,g)}}break;case 6:if(gl(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){Sc(e,e.return,g)}}break;case 3:if(gl(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(ql=Xe())),4&r&&ml(e);break;case 22:if(h=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(u=Xs)||h,gl(t,e),Xs=u):gl(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!h&&0!==(1&e.mode))for($s=e,h=e.child;null!==h;){for(d=$s=h;null!==$s;){switch(f=(p=$s).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(r,n,g)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){xl(d);continue}}null!==f?(f.return=p,$s=f):xl(d)}h=h.sibling}e:for(h=null,d=e;;){if(5===d.tag){if(null===h){h=d;try{i=d.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,s=void 0!==(c=d.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===d.tag){if(null===h)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(t,e),vl(e),4&r&&ml(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(de(i,""),r.flags&=-33),ul(e,ll(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;cl(e,ll(e),a);break;default:throw Error(o(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function wl(e,t,n){$s=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==$s;){var i=$s,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ys;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Ys;var c=Xs;if(Ys=a,(Xs=l)&&!c)for($s=i;null!==$s;)l=(a=$s).child,22===a.tag&&null!==a.memoizedState?Al(i):null!==l?(l.return=a,$s=l):Al(i);for(;null!==o;)$s=o,bl(o,t,n),o=o.sibling;$s=i,Ys=s,Xs=c}_l(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,$s=o):_l(e)}}function _l(e){for(;null!==$s;){var t=$s;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||il(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&jo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}jo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var h=u.memoizedState;if(null!==h){var d=h.dehydrated;null!==d&&qt(d)}}}break;default:throw Error(o(163))}Xs||512&t.flags&&ol(t)}catch(p){Sc(t,t.return,p)}}if(t===e){$s=null;break}if(null!==(n=t.sibling)){n.return=t.return,$s=n;break}$s=t.return}}function xl(e){for(;null!==$s;){var t=$s;if(t===e){$s=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$s=n;break}$s=t.return}}function Al(e){for(;null!==$s;){var t=$s;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Sc(t,i,l)}}var o=t.return;try{ol(t)}catch(l){Sc(t,o,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){$s=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$s=s;break}$s=t.return}}var kl,Sl=Math.ceil,El=b.ReactCurrentDispatcher,Cl=b.ReactCurrentOwner,Ml=b.ReactCurrentBatchConfig,Tl=0,Pl=null,Rl=null,Il=0,Ll=0,Ol=ki(0),Dl=0,Bl=null,Nl=0,Fl=0,jl=0,Ul=null,zl=null,ql=0,Wl=1/0,Vl=null,Hl=!1,Kl=null,Gl=null,Zl=!1,Ql=null,Yl=0,Xl=0,Jl=null,$l=-1,ec=0;function tc(){return 0!==(6&Tl)?Xe():-1!==$l?$l:$l=Xe()}function nc(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==Il?Il&-Il:null!==go.transition?(0===ec&&(ec=mt()),ec):0!==(e=wt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Xl)throw Xl=0,Jl=null,Error(o(185));yt(e,n,r),0!==(2&Tl)&&e===Pl||(e===Pl&&(0===(2&Tl)&&(Fl|=n),4===Dl&&lc(e,Il)),ic(e,r),1===n&&0===Tl&&0===(1&t.mode)&&(Wl=Xe()+500,ji&&qi()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=dt(e,e===Pl?Il:0);if(0===r)null!==n&&Ze(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ze(n),1===t)0===e.tag?function(e){ji=!0,zi(e)}(cc.bind(null,e)):zi(cc.bind(null,e)),ai((function(){0===(6&Tl)&&qi()})),n=null;else{switch(bt(r)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if($l=-1,ec=0,0!==(6&Tl))throw Error(o(327));var n=e.callbackNode;if(Ac()&&e.callbackNode!==n)return null;var r=dt(e,e===Pl?Il:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=yc(e,r);else{t=r;var i=Tl;Tl|=2;var a=mc();for(Pl===e&&Il===t||(Vl=null,Wl=Xe()+500,pc(e,t));;)try{wc();break}catch(l){fc(e,l)}xo(),El.current=a,Tl=i,null!==Rl?t=0:(Pl=null,Il=0,t=Dl)}if(0!==t){if(2===t&&(0!==(i=ft(e))&&(r=i,t=ac(e,i))),1===t)throw n=Bl,pc(e,0),lc(e,r),ic(e,Xe()),n;if(6===t)lc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=yc(e,r))&&(0!==(a=ft(e))&&(r=a,t=ac(e,a))),1===t))throw n=Bl,pc(e,0),lc(e,r),ic(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:xc(e,zl,Vl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=ql+500-Xe())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(xc.bind(null,e,zl,Vl),t);break}xc(e,zl,Vl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ri(xc.bind(null,e,zl,Vl),r);break}xc(e,zl,Vl);break;default:throw Error(o(329))}}}return ic(e,Xe()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=zl,zl=n,null!==t&&sc(t)),e}function sc(e){null===zl?zl=e:zl.push.apply(zl,e)}function lc(e,t){for(t&=~jl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!==(6&Tl))throw Error(o(327));Ac();var t=dt(e,0);if(0===(1&t))return ic(e,Xe()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Bl,pc(e,0),lc(e,t),ic(e,Xe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,zl,Vl),ic(e,Xe()),null}function uc(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Wl=Xe()+500,ji&&qi())}}function hc(e){null!==Ql&&0===Ql.tag&&0===(6&Tl)&&Ac();var t=Tl;Tl|=1;var n=Ml.transition,r=wt;try{if(Ml.transition=null,wt=1,e)return e()}finally{wt=r,Ml.transition=n,0===(6&(Tl=t))&&qi()}}function dc(){Ll=Ol.current,Si(Ol)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Li();break;case 3:oa(),Si(Ti),Si(Mi),ha();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:Si(la);break;case 10:Ao(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Pl=e,Rl=e=Oc(e.current,null),Il=Ll=t,Dl=0,Bl=null,jl=Fl=Nl=0,zl=Ul=null,null!==Co){for(t=0;t<Co.length;t++)if(null!==(r=(n=Co[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Co=null}return e}function fc(e,t){for(;;){var n=Rl;try{if(xo(),da.current=as,va){for(var r=ma.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}va=!1}if(fa=0,ya=ga=ma=null,wa=!1,ba=0,Cl.current=null,null===n||null===n.return){Dl=1,Bl=t,Rl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,h=l,d=h.tag;if(0===(1&h.mode)&&(0===d||11===d||15===d)){var p=h.alternate;p?(h.updateQueue=p.updateQueue,h.memoizedState=p.memoizedState,h.lanes=p.lanes):(h.updateQueue=null,h.memoizedState=null)}var f=ys(s);if(null!==f){f.flags&=-257,vs(f,s,l,0,t),1&f.mode&&gs(a,u,t),c=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){gs(a,u,t),gc();break e}c=Error(o(426))}else if(io&&1&l.mode){var y=ys(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),vs(y,s,l,0,t),mo(us(c,l));break e}}a=c=us(c,l),4!==Dl&&(Dl=2),null===Ul?Ul=[a]:Ul.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,No(a,fs(0,c,t));break e;case 1:l=c;var v=a.type,w=a.stateNode;if(0===(128&a.flags)&&("function"===typeof v.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===Gl||!Gl.has(w)))){a.flags|=65536,t&=-t,a.lanes|=t,No(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}_c(n)}catch(b){t=b,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function mc(){var e=El.current;return El.current=as,null===e?as:e}function gc(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Pl||0===(268435455&Nl)&&0===(268435455&Fl)||lc(Pl,Il)}function yc(e,t){var n=Tl;Tl|=2;var r=mc();for(Pl===e&&Il===t||(Vl=null,pc(e,t));;)try{vc();break}catch(i){fc(e,i)}if(xo(),Tl=n,El.current=r,null!==Rl)throw Error(o(261));return Pl=null,Il=0,Dl}function vc(){for(;null!==Rl;)bc(Rl)}function wc(){for(;null!==Rl&&!Qe();)bc(Rl)}function bc(e){var t=kl(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,null===t?_c(e):Rl=t,Cl.current=null}function _c(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Zs(n,t,Ll)))return void(Rl=n)}else{if(null!==(n=Qs(n,t)))return n.flags&=32767,void(Rl=n);if(null===e)return Dl=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Dl&&(Dl=5)}function xc(e,t,n){var r=wt,i=Ml.transition;try{Ml.transition=null,wt=1,function(e,t,n,r){do{Ac()}while(null!==Ql);if(0!==(6&Tl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Pl&&(Rl=Pl=null,Il=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Zl||(Zl=!0,Pc(tt,(function(){return Ac(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ml.transition,Ml.transition=null;var s=wt;wt=1;var l=Tl;Tl|=4,Cl.current=null,function(e,t){if(ei=Vt,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(_){n=null;break e}var s=0,l=-1,c=-1,u=0,h=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==i&&3!==d.nodeType||(l=s+i),d!==a||0!==r&&3!==d.nodeType||(c=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++h===r&&(c=s),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Vt=!1,$s=t;null!==$s;)if(e=(t=$s).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,$s=e;else for(;null!==$s;){t=$s;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,w=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:yo(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(o(163))}}catch(_){Sc(t,t.return,_)}if(null!==(e=t.sibling)){e.return=t.return,$s=e;break}$s=t.return}m=nl,nl=!1}(e,n),yl(n,e),fr(ti),Vt=!!ei,ti=ei=null,e.current=n,wl(n,e,i),Ye(),Tl=l,wt=s,Ml.transition=a}else e.current=n;if(Zl&&(Zl=!1,Ql=e,Yl=i),a=e.pendingLanes,0===a&&(Gl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ic(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=Kl,Kl=null,e;0!==(1&Yl)&&0!==e.tag&&Ac(),a=e.pendingLanes,0!==(1&a)?e===Jl?Xl++:(Xl=0,Jl=e):Xl=0,qi()}(e,t,n,r)}finally{Ml.transition=i,wt=r}return null}function Ac(){if(null!==Ql){var e=bt(Yl),t=Ml.transition,n=wt;try{if(Ml.transition=null,wt=16>e?16:e,null===Ql)var r=!1;else{if(e=Ql,Ql=null,Yl=0,0!==(6&Tl))throw Error(o(331));var i=Tl;for(Tl|=4,$s=e.current;null!==$s;){var a=$s,s=a.child;if(0!==(16&$s.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for($s=u;null!==$s;){var h=$s;switch(h.tag){case 0:case 11:case 15:rl(8,h,a)}var d=h.child;if(null!==d)d.return=h,$s=d;else for(;null!==$s;){var p=(h=$s).sibling,f=h.return;if(al(h),h===u){$s=null;break}if(null!==p){p.return=f,$s=p;break}$s=f}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}$s=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,$s=s;else e:for(;null!==$s;){if(0!==(2048&(a=$s).flags))switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,$s=v;break e}$s=a.return}}var w=e.current;for($s=w;null!==$s;){var b=(s=$s).child;if(0!==(2064&s.subtreeFlags)&&null!==b)b.return=s,$s=b;else e:for(s=w;null!==$s;){if(0!==(2048&(l=$s).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(x){Sc(l,l.return,x)}if(l===s){$s=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,$s=_;break e}$s=l.return}}if(Tl=i,qi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(x){}r=!0}return r}finally{wt=n,Ml.transition=t}}return!1}function kc(e,t,n){e=Do(e,t=fs(0,t=us(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),ic(e,t))}function Sc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){t=Do(t,e=ms(t,e=us(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),ic(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Il&n)===n&&(4===Dl||3===Dl&&(130023424&Il)===Il&&500>Xe()-ql?pc(e,0):jl|=n),ic(e,t)}function Cc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Po(e,t))&&(yt(e,t,n),ic(e,n))}function Mc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Cc(e,n)}function Pc(e,t){return Ge(e,t)}function Rc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Rc(e,t,n,r)}function Lc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Lc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case A:return Bc(n.children,i,a,t);case k:s=8,i|=8;break;case S:return(e=Ic(12,n,t,2|i)).elementType=S,e.lanes=a,e;case T:return(e=Ic(13,n,t,i)).elementType=T,e.lanes=a,e;case P:return(e=Ic(19,n,t,i)).elementType=P,e.lanes=a,e;case L:return Nc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case C:s=9;break e;case M:s=11;break e;case R:s=14;break e;case I:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Bc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Nc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function jc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,i,o,a,s,l){return e=new Uc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ic(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Io(o),e}function qc(e){if(!e)return Ci;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Di(e,n,t)}return t}function Wc(e,t,n,r,i,o,a,s,l){return(e=zc(n,r,!0,e,0,o,0,s,l)).context=qc(null),n=e.current,(o=Oo(r=tc(),i=nc(n))).callback=void 0!==t&&null!==t?t:null,Do(n,o,i),e.current.lanes=i,yt(e,i,r),ic(e,r),e}function Vc(e,t,n,r){var i=t.current,o=tc(),a=nc(i);return n=qc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Do(i,t,a))&&(rc(e,i,a,o),Bo(e,i,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Kc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gc(e,t){Kc(e,t),(e=e.alternate)&&Kc(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ps(t),fo();break;case 5:aa(t);break;case 1:Ii(t.type)&&Bi(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ei(vo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ei(la,1&la.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Fs(e,t,n):(Ei(la,1&la.current),null!==(e=Hs(e,t,n))?e.sibling:null);Ei(la,1&la.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ei(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&$i(t,Ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vs(e,t),e=t.pendingProps;var i=Ri(t,Mi.current);So(t,n),i=ka(null,t,r,e,i,n);var a=Sa();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(a=!0,Bi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Io(t),i.updater=qo,t.stateNode=i,i._reactInternals=t,Ko(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),_s(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Lc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===M)return 11;if(e===R)return 14}return 2}(r),e=yo(r,e),i){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Ms(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=As(null,t,r,yo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ms(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 3:e:{if(Ps(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Lo(e,t),Fo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Rs(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Rs(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Jo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fo(),r===i){t=Hs(e,t,n);break e}_s(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Es(e,t),_s(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Fs(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xo(t,null,r,n):_s(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 7:return _s(e,t,t.pendingProps,n),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ei(vo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Oo(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var h=(u=u.shared).pending;null===h?c.next=c:(c.next=h.next,h.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),ko(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),ko(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}_s(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,So(t,n),r=r(i=Eo(i)),t.flags|=1,_s(e,t,r,n),t.child;case 14:return i=yo(r=t.type,t.pendingProps),As(e,t,r,i=yo(r.type,i),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yo(r,i),Vs(e,t),t.tag=1,Ii(r)?(e=!0,Bi(t)):e=!1,So(t,n),Vo(t,r,i),Ko(t,r,i,n),Ts(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return Ss(e,t,n)}throw Error(o(156,t.tag))};var Zc="function"===typeof reportError?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $c(){}function eu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Hc(a);s.call(e)}}Vc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Hc(a);o.call(e)}}var a=Wc(t,r,e,0,null,!1,0,"",$c);return e._reactRootContainer=a,e[fi]=a.current,qr(8===e.nodeType?e.parentNode:e),hc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=zc(e,0,!1,null,0,!1,0,"",$c);return e._reactRootContainer=l,e[fi]=l.current,qr(8===e.nodeType?e.parentNode:e),hc((function(){Vc(t,l,n,r)})),l}(n,t,e,i,r);return Hc(a)}Yc.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Vc(e,t,null,null)},Yc.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;hc((function(){Vc(null,e,null,null)})),t[fi]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Nt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ht(t.pendingLanes);0!==n&&(vt(t,1|n),ic(t,Xe()),0===(6&Tl)&&(Wl=Xe()+500,qi()))}break;case 13:hc((function(){var t=Po(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Gc(e,1)}},xt=function(e){if(13===e.tag){var t=Po(e,134217728);if(null!==t)rc(t,e,134217728,tc());Gc(e,134217728)}},At=function(e){if(13===e.tag){var t=nc(e),n=Po(e,t);if(null!==n)rc(n,e,t,tc());Gc(e,t)}},kt=function(){return wt},St=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},xe=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_i(r);if(!i)throw Error(o(90));G(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Me=uc,Te=hc;var tu={usingClientEntryPoint:!1,Events:[wi,bi,_i,Ee,Ce,uc]},nu={findFiberByHostInstance:vi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{it=iu.inject(ru),ot=iu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(o(299));var n=!1,r="",i=Zc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zc(e,1,!1,null,0,n,0,r,i),e[fi]=t.current,qr(8===e.nodeType?e.parentNode:e),new Qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return hc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Zc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,i,0,a,s),e[fi]=t.current,qr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(o(40));return!!e._reactRootContainer&&(hc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[fi]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:(e,t,n)=>{"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},6374:(e,t,n)=>{"use strict";var r=n(2791),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},9117:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function w(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var b=w.prototype=new v;b.constructor=w,m(b,y.prototype),b.isPureReactComponent=!0;var _=Array.isArray,x=Object.prototype.hasOwnProperty,A={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:A.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function M(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+M(l,0):o,_(a)?(i="",null!=e&&(i=e.replace(C,"$&/")+"/"),T(a,t,i,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",_(e))for(var c=0;c<e.length;c++){var u=o+M(s=e[c],c);l+=T(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,u=o+M(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},L={transition:null},O={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:L,ReactCurrentOwner:A};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=a,t.PureComponent=w,t.StrictMode=o,t.Suspense=u,t.__SECRET_INT
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=A.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},2791:(e,t,n)=>{"use strict";e.exports=n(9117)},184:(e,t,n)=>{"use strict";e.exports=n(6374)},6813:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],h=1,d=null,p=3,f=!1,m=!1,g=!1,y="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,w="undefined"!==typeof setImmediate?setImmediate:null;function b(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function _(e){if(g=!1,b(e),!m)if(null!==r(c))m=!0,L(x);else{var t=r(u);null!==t&&O(_,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,v(E),E=-1),f=!0;var o=p;try{for(b(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!T());){var a=d.callback;if("function"===typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?d.callback=s:d===r(c)&&i(c),b(n)}else i(c);d=r(c)}if(null!==d)var l=!0;else{var h=r(u);null!==h&&O(_,h.startTime-n),l=!1}return l}finally{d=null,p=o,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var A,k=!1,S=null,E=-1,C=5,M=-1;function T(){return!(t.unstable_now()-M<C)}function P(){if(null!==S){var e=t.unstable_now();M=e;var n=!0;try{n=S(!0,e)}finally{n?A():(k=!1,S=null)}}else k=!1}if("function"===typeof w)A=function(){w(P)};else if("undefined"!==typeof MessageChannel){var R=new MessageChannel,I=R.port2;R.port1.onmessage=P,A=function(){I.postMessage(null)}}else A=function(){y(P,0)};function L(e){S=e,k||(k=!0,A())}function O(e,n){E=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,L(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:h++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(v(E),E=-1):g=!0,O(_,o-a))):(e.sortIndex=s,n(c,e),m||f||(m=!0,L(x))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},5296:(e,t,n)=>{"use strict";e.exports=n(6813)},845:e=>{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},499:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase())))},2826:(e,t,n)=>{!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=t(),s=t([1]),l=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),h=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),p=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function f(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function m(e,t,n,r,i){var o,a=0;for(o=0;o<i;o++)a|=e[t+o]^n[r+o];return(1&a-1>>>8)-1}function g(e,t,n,r){return m(e,t,n,r,16)}function y(e,t,n,r){return m(e,t,n,r,32)}function v(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,h=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,f=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,v=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,w=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,b=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,_=o,x=a,A=s,k=l,S=c,E=u,C=h,M=d,T=p,P=f,R=m,I=g,L=y,O=v,D=w,B=b,N=0;N<20;
vendor: 13,905 bytes, line 2
2N+=2)_^=(i=(L^=(i=(T^=(i=(S^=(i=_+L|0)<<7|i>>>25)+_|0)<<9|i>>>23)+S|0)<<13|i>>>19)+T|0)<<18|i>>>14,E^=(i=(x^=(i=(O^=(i=(P^=(i=E+x|0)<<7|i>>>25)+E|0)<<9|i>>>23)+P|0)<<13|i>>>19)+O|0)<<18|i>>>14,R^=(i=(C^=(i=(A^=(i=(D^=(i=R+C|0)<<7|i>>>25)+R|0)<<9|i>>>23)+D|0)<<13|i>>>19)+A|0)<<18|i>>>14,B^=(i=(I^=(i=(M^=(i=(k^=(i=B+I|0)<<7|i>>>25)+B|0)<<9|i>>>23)+k|0)<<13|i>>>19)+M|0)<<18|i>>>14,_^=(i=(k^=(i=(A^=(i=(x^=(i=_+k|0)<<7|i>>>25)+_|0)<<9|i>>>23)+x|0)<<13|i>>>19)+A|0)<<18|i>>>14,E^=(i=(S^=(i=(M^=(i=(C^=(i=E+S|0)<<7|i>>>25)+E|0)<<9|i>>>23)+C|0)<<13|i>>>19)+M|0)<<18|i>>>14,R^=(i=(P^=(i=(T^=(i=(I^=(i=R+P|0)<<7|i>>>25)+R|0)<<9|i>>>23)+I|0)<<13|i>>>19)+T|0)<<18|i>>>14,B^=(i=(D^=(i=(O^=(i=(L^=(i=B+D|0)<<7|i>>>25)+B|0)<<9|i>>>23)+L|0)<<13|i>>>19)+O|0)<<18|i>>>14;_=_+o|0,x=x+a|0,A=A+s|0,k=k+l|0,S=S+c|0,E=E+u|0,C=C+h|0,M=M+d|0,T=T+p|0,P=P+f|0,R=R+m|0,I=I+g|0,L=L+y|0,O=O+v|0,D=D+w|0,B=B+b|0,e[0]=_>>>0&255,e[1]=_>>>8&255,e[2]=_>>>16&255,e[3]=_>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=A>>>0&255,e[9]=A>>>8&255,e[10]=A>>>16&255,e[11]=A>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=E>>>0&255,e[21]=E>>>8&255,e[22]=E>>>16&255,e[23]=E>>>24&255,e[24]=C>>>0&255,e[25]=C>>>8&255,e[26]=C>>>16&255,e[27]=C>>>24&255,e[28]=M>>>0&255,e[29]=M>>>8&255,e[30]=M>>>16&255,e[31]=M>>>24&255,e[32]=T>>>0&255,e[33]=T>>>8&255,e[34]=T>>>16&255,e[35]=T>>>24&255,e[36]=P>>>0&255,e[37]=P>>>8&255,e[38]=P>>>16&255,e[39]=P>>>24&255,e[40]=R>>>0&255,e[41]=R>>>8&255,e[42]=R>>>16&255,e[43]=R>>>24&255,e[44]=I>>>0&255,e[45]=I>>>8&255,e[46]=I>>>16&255,e[47]=I>>>24&255,e[48]=L>>>0&255,e[49]=L>>>8&255,e[50]=L>>>16&255,e[51]=L>>>24&255,e[52]=O>>>0&255,e[53]=O>>>8&255,e[54]=O>>>16&255,e[55]=O>>>24&255,e[56]=D>>>0&255,e[57]=D>>>8&255,e[58]=D>>>16&255,e[59]=D>>>24&255,e[60]=B>>>0&255,e[61]=B>>>8&255,e[62]=B>>>16&255,e[63]=B>>>24&255}(e,t,n,r)}function w(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,h=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,f=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,v=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,w=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,b=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,_=0;_<20;_+=2)o^=(i=(y^=(i=(p^=(i=(c^=(i=o+y|0)<<7|i>>>25)+o|0)<<9|i>>>23)+c|0)<<13|i>>>19)+p|0)<<18|i>>>14,u^=(i=(a^=(i=(v^=(i=(f^=(i=u+a|0)<<7|i>>>25)+u|0)<<9|i>>>23)+f|0)<<13|i>>>19)+v|0)<<18|i>>>14,m^=(i=(h^=(i=(s^=(i=(w^=(i=m+h|0)<<7|i>>>25)+m|0)<<9|i>>>23)+w|0)<<13|i>>>19)+s|0)<<18|i>>>14,b^=(i=(g^=(i=(d^=(i=(l^=(i=b+g|0)<<7|i>>>25)+b|0)<<9|i>>>23)+l|0)<<13|i>>>19)+d|0)<<18|i>>>14,o^=(i=(l^=(i=(s^=(i=(a^=(i=o+l|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,u^=(i=(c^=(i=(d^=(i=(h^=(i=u+c|0)<<7|i>>>25)+u|0)<<9|i>>>23)+h|0)<<13|i>>>19)+d|0)<<18|i>>>14,m^=(i=(f^=(i=(p^=(i=(g^=(i=m+f|0)<<7|i>>>25)+m|0)<<9|i>>>23)+g|0)<<13|i>>>19)+p|0)<<18|i>>>14,b^=(i=(w^=(i=(v^=(i=(y^=(i=b+w|0)<<7|i>>>25)+b|0)<<9|i>>>23)+y|0)<<13|i>>>19)+v|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=b>>>0&255,e[13]=b>>>8&255,e[14]=b>>>16&255,e[15]=b>>>24&255,e[16]=h>>>0&255,e[17]=h>>>8&255,e[18]=h>>>16&255,e[19]=h>>>24&255,e[20]=d>>>0&255,e[21]=d>>>8&255,e[22]=d>>>16&255,e[23]=d>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=f>>>0&255,e[29]=f>>>8&255,e[30]=f>>>16&255,e[31]=f>>>24&255}(e,t,n,r)}var b=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function _(e,t,n,r,i,o,a){var s,l,c=new Uint8Array(16),u=new Uint8Array(64);for(l=0;l<16;l++)c[l]=0;for(l=0;l<8;l++)c[l]=o[l];for(;i>=64;){for(v(u,c,a,b),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(s=1,l=8;l<16;l++)s=s+(255&c[l])|0,c[l]=255&s,s>>>=8;i-=64,t+=64,r+=64}if(i>0)for(v(u,c,a,b),l=0;l<i;l++)e[t+l]=n[r+l]^u[l];return 0}function x(e,t,n,r,i){var o,a,s=new Uint8Array(16),l=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(v(l,s,i,b),a=0;a<64;a++)e[t+a]=l[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;n-=64,t+=64}if(n>0)for(v(l,s,i,b),a=0;a<n;a++)e[t+a]=l[a];return 0}function A(e,t,n,r,i){var o=new Uint8Array(32);w(o,r,i,b);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return x(e,t,n,a,o)}function k(e,t,n,r,i,o,a){var s=new Uint8Array(32);w(s,o,a,b);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=o[c+16];return _(e,t,n,r,i,l,s)}var S=function(e){var t,n,r,i,o,a,s,l;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function E(e,t,n,r,i,o){var a=new S(o);return a.update(n,r,i),a.finish(e,t),0}function C(e,t,n,r,i,o){var a=new Uint8Array(16);return E(a,0,n,r,i,o),g(e,t,a,0)}function M(e,t,n,r,i){var o;if(n<32)return-1;for(k(e,0,t,0,n,r,i),E(e,16,e,32,n-32,e),o=0;o<16;o++)e[o]=0;return 0}function T(e,t,n,r,i){var o,a=new Uint8Array(32);if(n<32)return-1;if(A(a,0,32,r,i),0!==C(t,16,t,32,n-32,a))return-1;for(k(e,0,t,0,n,r,i),o=0;o<32;o++)e[o]=0;return 0}function P(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function R(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function I(e,t,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(e[o]^t[o]),e[o]^=r,t[o]^=r}function L(e,n){var r,i,o,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(R(s),R(s),R(s),i=0;i<2;i++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,I(s,a,1-o)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function O(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return L(n,e),L(r,t),y(n,0,r,0)}function D(e){var t=new Uint8Array(32);return L(t,e),1&t[0]}function B(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function N(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function F(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function j(e,t,n){var r,i,o=0,a=0,s=0,l=0,c=0,u=0,h=0,d=0,p=0,f=0,m=0,g=0,y=0,v=0,w=0,b=0,_=0,x=0,A=0,k=0,S=0,E=0,C=0,M=0,T=0,P=0,R=0,I=0,L=0,O=0,D=0,B=n[0],N=n[1],F=n[2],j=n[3],U=n[4],z=n[5],q=n[6],W=n[7],V=n[8],H=n[9],K=n[10],G=n[11],Z=n[12],Q=n[13],Y=n[14],X=n[15];o+=(r=t[0])*B,a+=r*N,s+=r*F,l+=r*j,c+=r*U,u+=r*z,h+=r*q,d+=r*W,p+=r*V,f+=r*H,m+=r*K,g+=r*G,y+=r*Z,v+=r*Q,w+=r*Y,b+=r*X,a+=(r=t[1])*B,s+=r*N,l+=r*F,c+=r*j,u+=r*U,h+=r*z,d+=r*q,p+=r*W,f+=r*V,m+=r*H,g+=r*K,y+=r*G,v+=r*Z,w+=r*Q,b+=r*Y,_+=r*X,s+=(r=t[2])*B,l+=r*N,c+=r*F,u+=r*j,h+=r*U,d+=r*z,p+=r*q,f+=r*W,m+=r*V,g+=r*H,y+=r*K,v+=r*G,w+=r*Z,b+=r*Q,_+=r*Y,x+=r*X,l+=(r=t[3])*B,c+=r*N,u+=r*F,h+=r*j,d+=r*U,p+=r*z,f+=r*q,m+=r*W,g+=r*V,y+=r*H,v+=r*K,w+=r*G,b+=r*Z,_+=r*Q,x+=r*Y,A+=r*X,c+=(r=t[4])*B,u+=r*N,h+=r*F,d+=r*j,p+=r*U,f+=r*z,m+=r*q,g+=r*W,y+=r*V,v+=r*H,w+=r*K,b+=r*G,_+=r*Z,x+=r*Q,A+=r*Y,k+=r*X,u+=(r=t[5])*B,h+=r*N,d+=r*F,p+=r*j,f+=r*U,m+=r*z,g+=r*q,y+=r*W,v+=r*V,w+=r*H,b+=r*K,_+=r*G,x+=r*Z,A+=r*Q,k+=r*Y,S+=r*X,h+=(r=t[6])*B,d+=r*N,p+=r*F,f+=r*j,m+=r*U,g+=r*z,y+=r*q,v+=r*W,w+=r*V,b+=r*H,_+=r*K,x+=r*G,A+=r*Z,k+=r*Q,S+=r*Y,E+=r*X,d+=(r=t[7])*B,p+=r*N,f+=r*F,m+=r*j,g+=r*U,y+=r*z,v+=r*q,w+=r*W,b+=r*V,_+=r*H,x+=r*K,A+=r*G,k+=r*Z,S+=r*Q,E+=r*Y,C+=r*X,p+=(r=t[8])*B,f+=r*N,m+=r*F,g+=r*j,y+=r*U,v+=r*z,w+=r*q,b+=r*W,_+=r*V,x+=r*H,A+=r*K,k+=r*G,S+=r*Z,E+=r*Q,C+=r*Y,M+=r*X,f+=(r=t[9])*B,m+=r*N,g+=r*F,y+=r*j,v+=r*U,w+=r*z,b+=r*q,_+=r*W,x+=r*V,A+=r*H,k+=r*K,S+=r*G,E+=r*Z,C+=r*Q,M+=r*Y,T+=r*X,m+=(r=t[10])*B,g+=r*N,y+=r*F,v+=r*j,w+=r*U,b+=r*z,_+=r*q,x+=r*W,A+=r*V,k+=r*H,S+=r*K,E+=r*G,C+=r*Z,M+=r*Q,T+=r*Y,P+=r*X,g+=(r=t[11])*B,y+=r*N,v+=r*F,w+=r*j,b+=r*U,_+=r*z,x+=r*q,A+=r*W,k+=r*V,S+=r*H,E+=r*K,C+=r*G,M+=r*Z,T+=r*Q,P+=r*Y,R+=r*X,y+=(r=t[12])*B,v+=r*N,w+=r*F,b+=r*j,_+=r*U,x+=r*z,A+=r*q,k+=r*W,S+=r*V,E+=r*H,C+=r*K,M+=r*G,T+=r*Z,P+=r*Q,R+=r*Y,I+=r*X,v+=(r=t[13])*B,w+=r*N,b+=r*F,_+=r*j,x+=r*U,A+=r*z,k+=r*q,S+=r*W,E+=r*V,C+=r*H,M+=r*K,T+=r*G,P+=r*Z,R+=r*Q,I+=r*Y,L+=r*X,w+=(r=t[14])*B,b+=r*N,_+=r*F,x+=r*j,A+=r*U,k+=r*z,S+=r*q,E+=r*W,C+=r*V,M+=r*H,T+=r*K,P+=r*G,R+=r*Z,I+=r*Q,L+=r*Y,O+=r*X,b+=(r=t[15])*B,a+=38*(x+=r*F),s+=38*(A+=r*j),l+=38*(k+=r*U),c+=38*(S+=r*z),u+=38*(E+=r*q),h+=38*(C+=r*W),d+=38*(M+=r*V),p+=38*(T+=r*H),f+=38*(P+=r*K),m+=38*(R+=r*G),g+=38*(I+=r*Z),y+=38*(L+=r*Q),v+=38*(O+=r*Y),w+=38*(D+=r*X),o=(r=(o+=38*(_+=r*N))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=h,e[7]=d,e[8]=p,e[9]=f,e[10]=m,e[11]=g,e[12]=y,e[13]=v,e[14]=w,e[15]=b}function U(e,t){j(e,t,t)}function z(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)U(i,i),2!==r&&4!==r&&j(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function q(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)U(i,i),1!==r&&j(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function W(e,n,r){var i,o,a=new Uint8Array(32),s=new Float64Array(80),c=t(),u=t(),h=t(),d=t(),p=t(),f=t();for(o=0;o<31;o++)a[o]=n[o];for(a[31]=127&n[31]|64,a[0]&=248,B(s,r),o=0;o<16;o++)u[o]=s[o],d[o]=c[o]=h[o]=0;for(c[0]=d[0]=1,o=254;o>=0;--o)I(c,u,i=a[o>>>3]>>>(7&o)&1),I(h,d,i),N(p,c,h),F(c,c,h),N(h,u,d),F(u,u,d),U(d,p),U(f,c),j(c,h,c),j(h,u,p),N(p,c,h),F(c,c,h),U(u,c),F(h,d,f),j(c,h,l),N(c,c,d),j(h,h,c),j(c,d,f),j(d,u,s),U(u,p),I(c,u,i),I(h,d,i);for(o=0;o<16;o++)s[o+16]=c[o],s[o+32]=h[o],s[o+48]=u[o],s[o+64]=d[o];var m=s.subarray(32),g=s.subarray(16);return z(m,m),j(g,g,m),L(e,g),0}function V(e,t){return W(e,t,o)}function H(e,t){return r(t,32),V(e,t)}function K(e,t,n){var r=new Uint8Array(32);return W(r,n,t),w(e,i,r,b)}S.prototype.blocks=function(e,t,n){for(var r,i,o,a,s,l,c,u,h,d,p,f,m,g,y,v,w,b,_,x=this.fin?0:2048,A=this.h[0],k=this.h[1],S=this.h[2],E=this.h[3],C=this.h[4],M=this.h[5],T=this.h[6],P=this.h[7],R=this.h[8],I=this.h[9],L=this.r[0],O=this.r[1],D=this.r[2],B=this.r[3],N=this.r[4],F=this.r[5],j=this.r[6],U=this.r[7],z=this.r[8],q=this.r[9];n>=16;)d=h=0,d+=(A+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*L,d+=(k+=8191&(r>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*q),d+=(S+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*z),d+=(E+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*U),h=(d+=(C+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*j))>>>13,d&=8191,d+=(M+=s>>>1&8191)*(5*F),d+=(T+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*N),d+=(P+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*B),d+=(R+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*D),p=h+=(d+=(I+=u>>>5|x)*(5*O))>>>13,p+=A*O,p+=k*L,p+=S*(5*q),p+=E*(5*z),h=(p+=C*(5*U))>>>13,p&=8191,p+=M*(5*j),p+=T*(5*F),p+=P*(5*N),p+=R*(5*B),h+=(p+=I*(5*D))>>>13,p&=8191,f=h,f+=A*D,f+=k*O,f+=S*L,f+=E*(5*q),h=(f+=C*(5*z))>>>13,f&=8191,f+=M*(5*U),f+=T*(5*j),f+=P*(5*F),f+=R*(5*N),m=h+=(f+=I*(5*B))>>>13,m+=A*B,m+=k*D,m+=S*O,m+=E*L,h=(m+=C*(5*q))>>>13,m&=8191,m+=M*(5*z),m+=T*(5*U),m+=P*(5*j),m+=R*(5*F),g=h+=(m+=I*(5*N))>>>13,g+=A*N,g+=k*B,g+=S*D,g+=E*O,h=(g+=C*L)>>>13,g&=8191,g+=M*(5*q),g+=T*(5*z),g+=P*(5*U),g+=R*(5*j),y=h+=(g+=I*(5*F))>>>13,y+=A*F,y+=k*N,y+=S*B,y+=E*D,h=(y+=C*O)>>>13,y&=8191,y+=M*L,y+=T*(5*q),y+=P*(5*z),y+=R*(5*U),v=h+=(y+=I*(5*j))>>>
vendor: 16,186 bytes, line 2
213,v+=A*j,v+=k*F,v+=S*N,v+=E*B,h=(v+=C*D)>>>13,v&=8191,v+=M*O,v+=T*L,v+=P*(5*q),v+=R*(5*z),w=h+=(v+=I*(5*U))>>>13,w+=A*U,w+=k*j,w+=S*F,w+=E*N,h=(w+=C*B)>>>13,w&=8191,w+=M*D,w+=T*O,w+=P*L,w+=R*(5*q),b=h+=(w+=I*(5*z))>>>13,b+=A*z,b+=k*U,b+=S*j,b+=E*F,h=(b+=C*N)>>>13,b&=8191,b+=M*B,b+=T*D,b+=P*O,b+=R*L,_=h+=(b+=I*(5*q))>>>13,_+=A*q,_+=k*z,_+=S*U,_+=E*j,h=(_+=C*F)>>>13,_&=8191,_+=M*N,_+=T*B,_+=P*D,_+=R*O,A=d=8191&(h=(h=((h+=(_+=I*L)>>>13)<<2)+h|0)+(d&=8191)|0),k=p+=h>>>=13,S=f&=8191,E=m&=8191,C=g&=8191,M=y&=8191,T=v&=8191,P=w&=8191,R=b&=8191,I=_&=8191,t+=16,n-=16;this.h[0]=A,this.h[1]=k,this.h[2]=S,this.h[3]=E,this.h[4]=C,this.h[5]=M,this.h[6]=T,this.h[7]=P,this.h[8]=R,this.h[9]=I},S.prototype.finish=function(e,t){var n,r,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r<i;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(i=n-n%16,this.blocks(e,t,i),t+=i,n-=i),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var G=M,Z=T;var Q=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Y(e,t,n,r){for(var i,o,a,s,l,c,u,h,d,p,f,m,g,y,v,w,b,_,x,A,k,S,E,C,M,T,P=new Int32Array(16),R=new Int32Array(16),I=e[0],L=e[1],O=e[2],D=e[3],B=e[4],N=e[5],F=e[6],j=e[7],U=t[0],z=t[1],q=t[2],W=t[3],V=t[4],H=t[5],K=t[6],G=t[7],Z=0;r>=128;){for(x=0;x<16;x++)A=8*x+Z,P[x]=n[A+0]<<24|n[A+1]<<16|n[A+2]<<8|n[A+3],R[x]=n[A+4]<<24|n[A+5]<<16|n[A+6]<<8|n[A+7];for(x=0;x<80;x++)if(i=I,o=L,a=O,s=D,l=B,c=N,u=F,j,d=U,p=z,f=q,m=W,g=V,y=H,v=K,G,E=65535&(S=G),C=S>>>16,M=65535&(k=j),T=k>>>16,E+=65535&(S=(V>>>14|B<<18)^(V>>>18|B<<14)^(B>>>9|V<<23)),C+=S>>>16,M+=65535&(k=(B>>>14|V<<18)^(B>>>18|V<<14)^(V>>>9|B<<23)),T+=k>>>16,E+=65535&(S=V&H^~V&K),C+=S>>>16,M+=65535&(k=B&N^~B&F),T+=k>>>16,k=Q[2*x],E+=65535&(S=Q[2*x+1]),C+=S>>>16,M+=65535&k,T+=k>>>16,k=P[x%16],C+=(S=R[x%16])>>>16,M+=65535&k,T+=k>>>16,M+=(C+=(E+=65535&S)>>>16)>>>16,E=65535&(S=_=65535&E|C<<16),C=S>>>16,M=65535&(k=b=65535&M|(T+=M>>>16)<<16),T=k>>>16,E+=65535&(S=(U>>>28|I<<4)^(I>>>2|U<<30)^(I>>>7|U<<25)),C+=S>>>16,M+=65535&(k=(I>>>28|U<<4)^(U>>>2|I<<30)^(U>>>7|I<<25)),T+=k>>>16,C+=(S=U&z^U&q^z&q)>>>16,M+=65535&(k=I&L^I&O^L&O),T+=k>>>16,h=65535&(M+=(C+=(E+=65535&S)>>>16)>>>16)|(T+=M>>>16)<<16,w=65535&E|C<<16,E=65535&(S=m),C=S>>>16,M=65535&(k=s),T=k>>>16,C+=(S=_)>>>16,M+=65535&(k=b),T+=k>>>16,L=i,O=o,D=a,B=s=65535&(M+=(C+=(E+=65535&S)>>>16)>>>16)|(T+=M>>>16)<<16,N=l,F=c,j=u,I=h,z=d,q=p,W=f,V=m=65535&E|C<<16,H=g,K=y,G=v,U=w,x%16===15)for(A=0;A<16;A++)k=P[A],E=65535&(S=R[A]),C=S>>>16,M=65535&k,T=k>>>16,k=P[(A+9)%16],E+=65535&(S=R[(A+9)%16]),C+=S>>>16,M+=65535&k,T+=k>>>16,b=P[(A+1)%16],E+=65535&(S=((_=R[(A+1)%16])>>>1|b<<31)^(_>>>8|b<<24)^(_>>>7|b<<25)),C+=S>>>16,M+=65535&(k=(b>>>1|_<<31)^(b>>>8|_<<24)^b>>>7),T+=k>>>16,b=P[(A+14)%16],C+=(S=((_=R[(A+14)%16])>>>19|b<<13)^(b>>>29|_<<3)^(_>>>6|b<<26))>>>16,M+=65535&(k=(b>>>19|_<<13)^(_>>>29|b<<3)^b>>>6),T+=k>>>16,T+=(M+=(C+=(E+=65535&S)>>>16)>>>16)>>>16,P[A]=65535&M|T<<16,R[A]=65535&E|C<<16;E=65535&(S=U),C=S>>>16,M=65535&(k=I),T=k>>>16,k=e[0],C+=(S=t[0])>>>16,M+=65535&k,T+=k>>>16,T+=(M+=(C+=(E+=65535&S)>>>16)>>>16)>>>16,e[0]=I=65535&M|T<<16,t[0]=U=65535&E|C<<16,E=65535&(S=z),C=S>>>16,M=65535&(k=L),T=k>>>16,k=e[1],C+=(S=t[1])>>>16,M+=65535&k,T+=k>>>16,T+=(M+=(C+=(E+=65535&S)>>>16)>>>16)>>>16,e[1]=L=65535&M|T<<16,t[1]=z=65535&E|C<<16,E=65535&(S=q),C=S>>>16,M=65535&(k=O),T=k>>>16,k=e[2],C+=(S=t[2])>>>16,M+=65535&k,T+=k>>>16,T+=(M+=(C+=(E+=65535&S)>>>16)>>>16)>>>16,e[2]=O=65535&M|T<<16,t[2]=q=65535&E|C<<16,E=65535&(S=W),C=S>>>16,M=65535&(k=D),T=k>>>16,k=e[3],C+=(S=t[3])>>>16,M+=65535&k,T+=k>>>16,T+=(M+=(C+=(E+=65535&S)>>>16)>>>16)>>>16,e[3]=D=65535&M|T<<16,t[3]=W=65535&E|C<<16,E=65535&(S=V),C=S>>>16,M=65535&(k=B),T=k>>>16,k=e[4],C+=(S=t[4])>>>16,M+=65535&k,T+=k>>>16,T+=(M+=(C+=(E+=65535&S)>>>16)>>>16)>>>16,e[4]=B=65535&M|T<<16,t[4]=V=65535&E|C<<16,E=65535&(S=H),C=S>>>16,M=65535&(k=N),T=k>>>16,k=e[5],C+=(S=t[5])>>>16,M+=65535&k,T+=k>>>16,T+=(M+=(C+=(E+=65535&S)>>>16)>>>16)>>>16,e[5]=N=65535&M|T<<16,t[5]=H=65535&E|C<<16,E=65535&(S=K),C=S>>>16,M=65535&(k=F),T=k>>>16,k=e[6],C+=(S=t[6])>>>16,M+=65535&k,T+=k>>>16,T+=(M+=(C+=(E+=65535&S)>>>16)>>>16)>>>16,e[6]=F=65535&M|T<<16,t[6]=K=65535&E|C<<16,E=65535&(S=G),C=S>>>16,M=65535&(k=j),T=k>>>16,k=e[7],C+=(S=t[7])>>>16,M+=65535&k,T+=k>>>16,T+=(M+=(C+=(E+=65535&S)>>>16)>>>16)>>>16,e[7]=j=65535&M|T<<16,t[7]=G=65535&E|C<<16,Z+=128,r-=128}return r}function X(e,t,n){var r,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Y(i,o,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,f(a,n-8,s/536870912|0,s<<3),Y(i,o,a,n),r=0;r<8;r++)f(e,8*r,i[r],o[r]);return 0}function J(e,n){var r=t(),i=t(),o=t(),a=t(),s=t(),l=t(),c=t(),h=t(),d=t();F(r,e[1],e[0]),F(d,n[1],n[0]),j(r,r,d),N(i,e[0],e[1]),N(d,n[0],n[1]),j(i,i,d),j(o,e[3],n[3]),j(o,o,u),j(a,e[2],n[2]),N(a,a,a),F(s,i,r),F(l,a,o),N(c,a,o),N(h,i,r),j(e[0],s,l),j(e[1],h,c),j(e[2],c,l),j(e[3],s,h)}function $(e,t,n){var r;for(r=0;r<4;r++)I(e[r],t[r],n)}function ee(e,n){var r=t(),i=t(),o=t();z(o,n[2]),j(r,n[0],o),j(i,n[1],o),L(e,i),e[31]^=D(r)<<7}function te(e,t,n){var r,i;for(P(e[0],a),P(e[1],s),P(e[2],s),P(e[3],a),i=255;i>=0;--i)$(e,t,r=n[i/8|0]>>(7&i)&1),J(t,e),J(e,e),$(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];P(r[0],h),P(r[1],d),P(r[2],s),j(r[3],h,d),te(e,r,n)}function re(e,n,i){var o,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||r(n,32),X(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,ne(s,a),ee(e,s),o=0;o<32;o++)n[o+32]=e[o];return 0}var ie=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i<o;++i)t[i]+=n-16*t[r]*ie[i-(r-32)],n=Math.floor((t[i]+128)/256),t[i]-=256*n;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*ie[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*ie[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ae(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,n)}function se(e,n,r,i){var o,a,s=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),h=[t(),t(),t(),t()];X(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var d=r+64;for(o=0;o<r;o++)e[64+o]=n[o];for(o=0;o<32;o++)e[32+o]=s[32+o];for(X(c,e.subarray(32),r+32),ae(c),ne(h,c),ee(e,h),o=32;o<64;o++)e[o]=i[o];for(X(l,e,r+64),ae(l),o=0;o<64;o++)u[o]=0;for(o=0;o<32;o++)u[o]=c[o];for(o=0;o<32;o++)for(a=0;a<32;a++)u[o+a]+=l[o]*s[a];return oe(e.subarray(32),u),d}function le(e,n,r,i){var o,l=new Uint8Array(32),u=new Uint8Array(64),h=[t(),t(),t(),t()],d=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),i=t(),o=t(),l=t(),u=t(),h=t(),d=t();return P(e[2],s),B(e[1],n),U(o,e[1]),j(l,o,c),F(o,o,e[2]),N(l,e[2],l),U(u,l),U(h,u),j(d,h,u),j(r,d,o),j(r,r,l),q(r,r),j(r,r,o),j(r,r,l),j(r,r,l),j(e[0],r,l),U(i,e[0]),j(i,i,l),O(i,o)&&j(e[0],e[0],p),U(i,e[0]),j(i,i,l),O(i,o)?-1:(D(e[0])===n[31]>>7&&F(e[0],a,e[0]),j(e[3],e[0],e[1]),0)}(d,i))return-1;for(o=0;o<r;o++)e[o]=n[o];for(o=0;o<32;o++)e[o+32]=i[o];if(X(u,e,r),ae(u),te(h,d,u),ne(d,n.subarray(32)),J(h,d),ee(l,h),r-=64,y(n,0,l,0)){for(o=0;o<r;o++)e[o]=0;return-1}for(o=0;o<r;o++)e[o]=n[o+64];return r}var ce=16,ue=64,he=32,de=64;function pe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function fe(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function me(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:w,crypto_stream_xor:k,crypto_stream:A,crypto_stream_salsa20_xor:_,crypto_stream_salsa20:x,crypto_onetimeauth:E,crypto_onetimeauth_verify:C,crypto_verify_16:g,crypto_verify_32:y,crypto_secretbox:M,crypto_secretbox_open:T,crypto_scalarmult:W,crypto_scalarmult_base:V,crypto_box_beforenm:K,crypto_box_afternm:G,crypto_box:function(e,t,n,r,i,o){var a=new Uint8Array(32);return K(a,i,o),G(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,i,o){var a=new Uint8Array(32);return K(a,i,o),Z(e,t,n,r,a)},crypto_box_keypair:H,crypto_hash:X,crypto_sign:se,crypto_sign_keypair:re,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ce,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:he,crypto_sign_SECRETKEYBYTES:de,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:c,L:ie,pack25519:L,unpack25519:B,M:j,A:N,S:U,Z:F,pow2523:q,add:J,set25519:P,modL:oe,scalarmult:te,scalarbase:ne},e.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},e.secretbox=function(e,t,n){fe(e,t,n),pe(n,t);for(var r=new Uint8Array(32+e.length),i=new Uint8Array(r.length),o=0;o<e.length;o++)r[o+32]=e[o];return M(i,r,r.length,t,n),i.subarray(ce)},e.secretbox.open=function(e,t,n){fe(e,t,n),pe(n,t);for(var r=new Uint8Array(ce+e.length),i=new Uint8Array(r.length),o=0;o<e.length;o++)r[o+ce]=e[o];return r.length<32||0!==T(i,r,r.length,t,n)?null:i.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ce,e.scalarMult=function(e,t){if(fe(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return W(n,e,t),n},e.scalarMult.base=function(e){if(fe(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return V(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,i){var o=e.box.before(r,i);return e.secretbox(t,n,o)},e.box.before=function(e,t){fe(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return K(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,i){var o=e.box.before(r,i);return e.secretbox.open(t,n,o)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return H(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(fe(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return V(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(fe(e,t),t.length!==de)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return se(n,e,e.length,t),n},e.sign.open=function(e,t){if(fe(e,t),t.length!==he)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=le(n,e,e.length,t);if(r<0)return null;for(var i=new Uint8Array(r),o=0;o<i.length;o++)i[o]=n[o];return i},e.sign.detached=function(t,n){for(var r=e.sign(t,n),i=new Uint8Array(ue),o=0;o<i.length;o++)i[o]=r[o];return i},e.sign.detached.verify=function(e,t,n){if(fe(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==he)throw new Error("bad public key size");var r,i=new Uint8Array(ue+e.length),o=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)i[r]=t[r];for(r=0;r<e.length;r++)i[r+ue]=e[r];return le(o,i,i.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(he),t=new Uint8Array(de);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(fe(e),e.length!==de)throw new Error("bad secret key size");for(var t=new Uint8Array(he),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(fe(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(he),n=new Uint8Array(de),r=0;r<32;r++)n[r]=e[r];return re(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=he,e.sign.secretKeyLength=de,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){fe(e);var t=new Uint8Array(64);return X(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return fe(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===m(e,0,t,0,e.length))},e.setPRNG=function(e){r=e},function(){var t="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){e.setPRNG((function(e,n){var r,i=new Uint8Array(n);for(r=0;r<n;r+=65536)t.getRandomValues(i.subarray(r,r+Math.min(n-r,65536)));for(r=0;r<n;r++)e[r]=i[r];me(i)}))}else(t=n(5024))&&t.randomBytes&&e.setPRNG((function(e,n){var r,i=t.randomBytes(n);for(r=0;r<n;r++)e[r]=i[r];me(i)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})},6758:(e,t,n)=>{var r=n(5520).strict;e.exports=function(e){if(r(e)){var t=Buffer.from(e.buffer);
2return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}return Buffer.from(e)}},6601:()=>{},5024:()=>{}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+".d4aba7ab.chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="my-app:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var h=c[u];if(h.getAttribute("src")==r||h.getAttribute("data-webpack")==t+o){s=h;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var d=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{var e={179:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,o,a=r[0],s=r[1],l=r[2],c=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)l(n)}for(t&&t(r);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkmy_app=self.webpackChunkmy_app||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>gn,hasStandardBrowserEnv:()=>yn,hasStandardBrowserWebWorkerEnv:()=>wn});var t=n(2791),r=n.t(t,2),i=n(1250),o=n(1933);const a=(0,t.createContext)(null);var s=n(184);const l=new o.DQ,c=e=>{let{children:t}=e;return(0,s.jsx)(a.Provider,{value:l,children:t})};function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var h;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(h||(h={}));const d="popstate";function p(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function f(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(ze){}}}function m(e,t){return{usr:e.state,key:e.key,idx:t}}function g(e,t,n,r){return void 0===n&&(n=null),u({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?v(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function y(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function v(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function w(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=h.Pop,l=null,c=f();function f(){return(a.state||{idx:null}).idx}function v(){s=h.Pop;let e=f(),t=null==e?null:e-c;c=e,l&&l({action:s,location:b.location,delta:t})}function w(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:y(e);return p(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,a.replaceState(u({},a.state,{idx:c}),""));let b={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(d,v),l=e,()=>{i.removeEventListener(d,v),l=null}},createHref:e=>
2t(i,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=h.Push;let r=g(b.location,e,t);n&&n(r,e),c=f()+1;let u=m(r,c),d=b.createHref(r);try{a.pushState(u,"",d)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(d)}o&&l&&l({action:s,location:b.location,delta:1})},replace:function(e,t){s=h.Replace;let r=g(b.location,e,t);n&&n(r,e),c=f();let i=m(r,c),u=b.createHref(r);a.replaceState(i,"",u),o&&l&&l({action:s,location:b.location,delta:0})},go:e=>a.go(e)};return b}var b;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(b||(b={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function _(e,t,n){void 0===n&&(n="/");let r=D(("string"===typeof t?v(t):t).pathname||"/",n);if(null==r)return null;let i=x(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let a=0;null==o&&a<i.length;++a)o=I(i[a],O(r));return o}function x(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(p(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=j([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(p(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),x(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:R(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of A(e.path))i(e,t,r);else i(e,t)})),t}function A(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=A(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const k=/^:\w+$/,S=3,E=2,C=1,M=10,T=-2,P=e=>"*"===e;function R(e,t){let n=e.split("/"),r=n.length;return n.some(P)&&(r+=T),t&&(r+=E),n.filter((e=>!P(e))).reduce(((e,t)=>e+(k.test(t)?S:""===t?C:M)),r)}function I(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a<n.length;++a){let e=n[a],s=a===n.length-1,l="/"===i?t:t.slice(i.length)||"/",c=L({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},l);if(!c)return null;
2Object.assign(r,c.params);let u=e.route;o.push({params:r,pathname:j([i,c.pathname]),pathnameBase:U(j([i,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(i=j([i,c.pathnameBase]))}return o}function L(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);f("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=i&&!l?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return f(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l||"",r),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function O(e){try{return decodeURI(e)}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function B(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function N(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function F(e,t,n,r){let i;void 0===r&&(r=!1),"string"===typeof e?i=v(e):(i=u({},e),p(!i.pathname||!i.pathname.includes("?"),B("?","pathname","search",i)),p(!i.pathname||!i.pathname.includes("#"),B("#","pathname","hash",i)),p(!i.search||!i.search.includes("#"),B("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(r||null==s)o=n;else{let e=t.length-1;if(s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?v(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:z(r),hash:q(i)}}(i,o),c=s&&"/"!==s&&s.endsWith("/"),h=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!h||(l.pathname+="/"),l}const j=e=>e.join("/").replace(/\/\/+/g,"/"),U=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function W(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const V=["post","put","patch","delete"],H=(new Set(V),["get",...V]);new Set(H),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}const G=t.createContext(null);const Z=t.createContext(null);const Q=t.createContext(null);const Y=t.createContext(null);const X=t.createContext({outlet:null,matches:[],isDataRoute:!1});const J=t.createContext(null);function $(){return null!=t.useContext(Y)}function ee(){return $()||p(!1),t.useContext(Y).location}function te(e){t.useContext(Q).static||t.useLayoutEffect(e)}function ne(){let{isDataRoute:e}=t.useContext(X);return e?function(){let{router:e}=de(ue.UseNavigateStable),n=fe(he.UseNavigateStable),r=t.useRef(!1);return te((()=>{r.current=!0})),t.useCallback((function(t,i){void 0===i&&(i={}),r.current&&("number"===typeof t?e.navigate(t):e.navigate(t,K({fromRouteId:n},i)))}),[e,n])}():function(){$()||p(!1);
2let e=t.useContext(G),{basename:n,navigator:r}=t.useContext(Q),{matches:i}=t.useContext(X),{pathname:o}=ee(),a=JSON.stringify(N(i).map((e=>e.pathnameBase))),s=t.useRef(!1);return te((()=>{s.current=!0})),t.useCallback((function(t,i){if(void 0===i&&(i={}),!s.current)return;if("number"===typeof t)return void r.go(t);let l=F(t,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==n&&(l.pathname="/"===l.pathname?n:j([n,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)}),[n,r,a,o,e])}()}function re(e,n){let{relative:r}=void 0===n?{}:n,{matches:i}=t.useContext(X),{pathname:o}=ee(),a=JSON.stringify(N(i).map((e=>e.pathnameBase)));return t.useMemo((()=>F(e,JSON.parse(a),o,"path"===r)),[e,a,o,r])}function ie(e,n,r){$()||p(!1);let{navigator:i}=t.useContext(Q),{matches:o}=t.useContext(X),a=o[o.length-1],s=a?a.params:{},l=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let c,u=ee();if(n){var d;let e="string"===typeof n?v(n):n;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||p(!1),c=e}else c=u;let f=c.pathname||"/",m=_(e,{pathname:"/"===l?f:f.slice(l.length)||"/"});let g=ce(m&&m.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:j([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:j([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,r);return n&&g?t.createElement(Y.Provider,{value:{location:K({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:h.Pop}},g):g}function oe(){let e=function(){var e;let n=t.useContext(J),r=pe(he.UseRouteError),i=fe(he.UseRouteError);if(n)return n;return null==(e=r.errors)?void 0:e[i]}(),n=W(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:o},r):null,null)}const ae=t.createElement(oe,null);class se extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?t.createElement(X.Provider,{value:this.props.routeContext},t.createElement(J.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function le(e){let{routeContext:n,match:r,children:i}=e,o=t.useContext(G);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(X.Provider,{value:n},i)}function ce(e,n,r){var i;if(void 0===n&&(n=[]),void 0===r&&(r=null),null==e){var o;if(null==(o=r)||!o.errors)return null;e=r.matches}let a=e,s=null==(i=r)?void 0:i.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||p(!1),a=a.slice(0,Math.min(a.length,e+1))}return a.reduceRight(((e,i,o)=>{let l=i.route.id?null==s?void 0:s[i.route.id]:null,c=null;r&&(c=i.route.errorElement||ae);let u=n.concat(a.slice(0,o+1)),h=()=>{let n;return n=l?c:i.route.Component?t.createElement(i.route.Component,null):i.route.element?i.route.element:e,t.createElement(le,{match:i,routeContext:{outlet:e,matches:u,isDataRoute:null!=r},children:n})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?t.createElement(se,{location:r.location,revalidation:r.revalidation,component:c,error:l,children:h(),routeContext:{outlet:null,matches:u,isDataRoute:!0}}):h()}),null)}var ue=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ue||{}),he=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useL
2oaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(he||{});function de(e){let n=t.useContext(G);return n||p(!1),n}function pe(e){let n=t.useContext(Z);return n||p(!1),n}function fe(e){let n=function(e){let n=t.useContext(X);return n||p(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||p(!1),r.route.id}r.startTransition;function me(e){p(!1)}function ge(e){let{basename:n="/",children:r=null,location:i,navigationType:o=h.Pop,navigator:a,static:s=!1}=e;$()&&p(!1);let l=n.replace(/^\/*/,"/"),c=t.useMemo((()=>({basename:l,navigator:a,static:s})),[l,a,s]);"string"===typeof i&&(i=v(i));let{pathname:u="/",search:d="",hash:f="",state:m=null,key:g="default"}=i,y=t.useMemo((()=>{let e=D(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:m,key:g},navigationType:o}}),[l,u,d,f,m,g,o]);return null==y?null:t.createElement(Q.Provider,{value:c},t.createElement(Y.Provider,{children:r,value:y}))}function ye(e){let{children:t,location:n}=e;return ie(ve(t),n)}new Promise((()=>{}));t.Component;function ve(e,n){void 0===n&&(n=[]);let r=[];return t.Children.forEach(e,((e,i)=>{if(!t.isValidElement(e))return;let o=[...n,i];if(e.type===t.Fragment)return void r.push.apply(r,ve(e.props.children,o));e.type!==me&&p(!1),e.props.index&&e.props.children&&p(!1);let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ve(e.props.children,o)),r.push(a)})),r}function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(this,arguments)}function be(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const _e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];new Map;const xe=r.startTransition;function Ae(e){let{basename:n,children:r,future:i,window:o}=e,a=t.useRef();var s;null==a.current&&(a.current=(void 0===(s={window:o,v5Compat:!0})&&(s={}),w((function(e,t){let{pathname:n,search:r,hash:i}=e.location;return g("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:y(t)}),null,s)));let l=a.current,[c,u]=t.useState({action:l.action,location:l.location}),{v7_startTransition:h}=i||{},d=t.useCallback((e=>{h&&xe?xe((()=>u(e))):u(e)}),[u,h]);return t.useLayoutEffect((()=>l.listen(d)),[l,d]),t.createElement(ge,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:l})}const ke="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Se=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ee=t.forwardRef((function(e,n){let r,{onClick:i,relative:o,reloadDocument:a,replace:s,state:l,target:c,to:u,preventScrollReset:h,unstable_viewTransition:d}=e,f=be(e,_e),{basename:m}=t.useContext(Q),g=!1;if("string"===typeof u&&Se.test(u)&&(r=u,ke))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=D(t.pathname,m);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:g=!0}catch(ze){}let v=function(e,n){let{relative:r}=void 0===n?{}:n;$()||p(!1);let{basename:i,navigator:o}=t.useContext(Q),{hash:a,pathname:s,search:l}=re(e,{relative:r}),c=s;return"/"!==i&&(c="/"===s?i:j([i,s])),o.createHref({pathname:c,search:l,hash:a})}(u,{relative:o}),w=function(e,n){let{target:r,replace:i,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:l}=void 0===n?{}:n,c=ne(),u=ee(),h=re(e,{relative:s});return t.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let n=void 0!==i?i:y(u)===y(h);c(e,{replace:n,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:l})}}),[u,c,h,i,o,r,e,a,s,l])}(u,{replace:s,state:l,target:c,preventScrollReset:h,relative:o,unstable_viewTransition:d});return t.createElement("a",we({},f,{href:r||v,onClick:g||a?i:function(e){i&&i(e),e.defaultPrevented||w(e)},ref:n,target:c}))}));var Ce,Me;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ce||(Ce={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Me||(Me={}));const Te="data:image/png;
2base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAU50lEQVR4nN1bB1SUV/Z/M8PgMPReBUUQBAQhVhBBFAHpoBQBBayxKyaxxxJdTTZRE7OJbtaSTdZNTDFRo6ZaUBAEjYUkJmqysUbsgljg/s+9X+GbymDY8z9n3zn3KN+88t3fu++2dz/G/jebO2NsAWPsa8bYRcZYI2MM9NAe9j/W5IyxhYyxJgMMa9PejlzcnDEWzxhbwhjbxRg7zRir5xd6xBi7yRj7njG2mTFWzBiz+y8wvxXXk8nl4Js3EuI/2w75l85B5vdVYN8zWGD6MWPsXcZYf8aYrCMW7sUY28QYu2Ui6gI18WB07YiXYIzNwXmVNtYw/Ns9MBYaibLrasHC1UVYEzcgvIPWYyH8GRKZcgjrCT3nzIS47e9D9qljMPPa7zARGuHFR/eh8MYlSKs8AAPWrwGPIYNBplDQGJlCcbAD3sWDMdbAZDJI2POZyHzR7atg49dNeL/djDGrjhL11YyxJxziNi0hs6fDyJ9PiQsjjYdG+OjJI1jZ0gSNj5rh/eaHGr/nnK8D/+IiSKs+dKUUGjL+5DttwHfxzR2hsUbw9MnSnbfsCOa9GGM1tHNmCgieMQUK6y9qLKpN46ARtjc/hI3NTXp/x/GDt20F74yU4zK5fD9jrI7XHS283jjPGNvJA6+vdcdzLVcqYeTZk+K8ePbl5krg5wntCOZDeZMCNn6+JM7GGG+L8Jx2HZEJcnNzU/WFIaX5CfYJnDhWY/4+q5YLYz/rCOb9GGNXcEKPuFgounUFSh7dgaxTxyDrZDWUPrlnMuMjfjwB3ilJInNymRn4qvrDENvpUOj0Fkxx2wHzPSthkVcNuCkDhX7LDbzXJDqGVpaQf/k8t0ZLAxQ/uAVuMQOFsUUdAcBEJpO1dB6eACUPb0Ps+5tB7e4mMmFuawN+hfkEhjHmcZyZhQWNsZDbwGCbyTDH4ztY7HVch4bbzRPmv8AYU/OKDs+xBWMsjDH2OmOsGfsM2ryB5sdNwc1BhatydhbGB/8ZxmWMsfySJ/fnJn65E8Y01MOQj/4FqG1xcoXKCszUtiIQaH+DpkyEwf9+F/qvfQXC5j0HoS+UQcisadAlK13sZ61whiG206DUZSu84Fmuw/wcj29BJbehvpFvvX547JN7I2UKxV3toyEzM4N+r60m5lEKC29eJuaR5EozoR8ekTE8iO1uk3AS/+JCUbxs/P1oYtuAaOicNh9cBhaB2j2gPfZfJJQCd/MeEGGVDblOawiQEpet4K+Kpt+9kobRuqOu/go23XzBzNISzNRqsO3uT2c+63SN+F5Ft66KzCO5xw7SXu8Pxth8I8pUp8mZTFaOg3HXcaHME0d55M3Bxq8/SYB0EblMDgF2PSHJOxtKAmfA/IhXYGW/DUTL+r4JM0OXQL7/BIjxSAQnlavmbjI5uCj9oIfFEGBMBopOnXRMqyEqbrypwbxAGd9XQeTf1oFL/77StY4wxqyZKW100+2FCV/sEBdCsdbeRV+bAJgQ9By8E/s5HM+5ARcKwWSqyLoIr0ZuheE+I8FSaa0xr+ewoXSm22K+tKVBQ/RFunkZSpsbxH7oIFl5dxbmf7Mt3p190hLDS6HhnnSxsLlzuLMvM4P0LqPgk8SKdjFsjM7k3SNJCXYIF0Gw9feD+M8/MgrAmIYbend/zP3rOn1RSfNzX2sLgLkymay536urNCboteAFmmBqyAKNl/8l/zH8MPIBnM66Bycz7oh0Jvs+/JTTBO/GfQmLeq+BXwqemAQGSlOQfS8RiG6jcokpnd3XUnxSKnmoKz0F13+X6gOj7Qx2TPpql8YEAze+SRMkeGVBVdI1OBD3K+yL+hH2RtYZpHWhH4BSTh4ZDHPPhJrU63A271GbIJwraIYlfV4Xj4Z11y6QUVvRynzzfR3FJ6Wxzfd1AAh9frZJeYAQ7KT2cKdFpBOgq4m/WZpZQUHnyTDWpww+619rkPk9kWegq5qzEDJ+N+OcU+CLAafgu9hzUJt6A34ZZVwqDmVcgFDHPrzZVcHQHR+S0isysPMiAC2t5x/Nd/exxdJwGENhg208dvQbXaD3zGlpVJjqu8ggAC8FbaQ+/g7m8HGKGqyU3JjBThwI2OfLqB/gaNIV+Dn/sUEQfspvgly/saLtH7hhvVHmiW5dgTH36ynosg/uIbwvZoZGtCX+72DngX//m+6Ze3yXzIoUgAUBawwCkO5eSH1Wx7tCy+Ig2JVuqRcEAYjq5D/gfEGLXhDOF7aQ7hFAiH1/S9sg3LgkjQhP8dLdZi7tBg5IKf9GM2q7cQnSjx2B9OpD4BkfJwKwsddOgwD0dxhMfb4o8AFYEtwmCEjfxvwCdSMbDUrDlJD54nEY/t3eNgEYffeP83wGypaZ0HYJjInBBWrPa
279B+rHDkH2mlv4dtusT0RzuGnDSIAADHYdRv20jvAgAU0HYG/UD6QdDkpDTrZTGol3P+eWMUQAyjx2eYqr3ly4VbcGO5l++AKmVByjyy647DmlHD8KgLdzZ9lH7GbUAJd4zqV9xLzsRAJNBiKyDysQrcN6AThAUY5fsDL2MYz4As1NMJmviN7bNhOIpKQCoRdHGIvMZtZXEfNaZ45BauR/CX+TO4iCnRKMAvN97Pyjl5qCQy6BqvO9TgXA4/qJeENA6CCYSo0wp8zHvbZJ6fUhX2wIgmQtOWt3Rkif3IL26nBIfKPoEwOljkFqxH/xHF1Cfws5TjAKAVNR5KvV1VJvBgZKuOiB8MFwNchm3Zo7nOL1zVCZc1nscFvdeK/oIo678SsdTqp9cld05palQYFbaaNuBHYPVQ8XBI376npgVdh8p80QVPXOLjuItwNo2AUBfIJrXBegLJPpZwfI4F1gc4wzZQTZgbS4X1zQG6LHk6zoAoGfZwz6MxroPjqEACv+vkltDkt1cmOt5WFSY4xrqMZ2nt1kxxh7KmAwS7DhfHwlFH5nNOs3tPhKCgc8svTypT7jtAMj1HA+zui2HV0K2ksjre3kU7VFez4K5nHtBbQqyDiefwRiQ+yLr4EzWfR0QNsbskMwlgzDLNCjz+IbyCs97HKTnSisrGHP3+jFDAKRR9GXZBdIdlrUCULGfFJ7APBKKGD7HeNxQjK+SW4CvZQDtOoLzcvAWkYkP+pRDmd8KyPeaSIDM8nsJNkfsa1OKBPo6+iyc0/Ic0SoIUhCiTtRIrExz28kfER8ovHkJYrduTGCM+WoDsBo7RbrEQ5rDEg0AyPRJAEirOkjPkw98CdGbNkDEskUQML6UEhf2IUFgbteaHRIId92Yu2yI8DgggNqKES2DthSs6Pc2reWi9NfIMOU4vsodj5hoiPnnPzABiym0f2oD8AWd+S7jYLDtVA0AMmqOaACAShCvmTKOV0J6zRFIryqH1EoOFIESv9olgqNydqK53ur1abuYx+MkvAdamt0SEPZF1cGPOQ80ADidexfUZlaUVMlzWicCEGMzkeboMXkCJXMwZSeTyc4yxpRSAH7CTuMD5kKEZZa4MO5yerWmBBgiNI/oJwjgCPrDNWoAzbUoYF27AAi05kRasA5CACX8Xj70dx0pSPTm3j3UMgUmuG4jADDdhs9w99E8ph75DoruXJ2tLQH12GlW8EoaLACAg9AESpWgqYS6AwHAC0ryKXzKTGb+7+G7aIydSgEfJqvBUqkfhB9zmjQAeHnAJk7czXuQLku253wVRSdzyPvP2VbX+PY1TIm5SgF4hB1n9HgZnrEaIQLgP6aQU4RVh2hn2wVAdTmNJU8MTZ/rCJMBmNFtKeeK97QlP2FnuqVeEI4mXdUA4HDmb2KiFQHwU0XpeIp4GWOmVuNNUaUUgAbsOKHbSkiwew7QHOLfmL+P+/C91vNdeQDSaysoE9sWAOm1R2hM/3V/5cTStq/JAOR5TaAxK4a4iM6SPhC+iv5JJ3K078TpnBibSaCQcUmYvL07YcHtP6AIL2ery/VmhG6Q799lMY+ceKMCCgsVeKcmQ/Q/3tJQdOghGpOKjBNHqd+Qj7dxXqC5q8kA5PIArBrqquEx6gMBU3BSAKLcOUfOSuFI/3ZLiId7j5rpcraq8QGMqb8o8IbxgdhOElLeswmANIel0NsqB5yUXcmxEMBA248ppaSvd4tApBlQkpknq+n3lMPfAl5aolSZagrn+P+F1kvpbq3jNmuDUJF4SQMAIWkieH9Tao4S8wJtabyrF4Cd+DDTuxSynV8iEAQaYjuDzlInmaU4MR6N3iuXicdCr1U4XSuCZOXjTePe7rXDJAC2962ATnIVWYCDemIHKQhDXdM1Eq1Tey4U3zPq7TdI7I81PhAB+PjyRb1Z4ZU0wHUYlAWthTFeqyDDsRUEpFSHxdDbaiQ4mvnQBE7PhIsMZp2q1gsCRo1SU4g5RAThcxMkQQignNRmcFQniuwB25PVYo4RL18EADDzjM98MlJFxTe+6Tb8u/kh7H/yGCbUnRAAQF9AbJk0yMofFvVaTzQ/9A2Y4vcq5Lqu0AAiyX4eiTNeaaOfQM7S8UoDpvAQ/d6tIE/DM8Txzp3cIMy2HyS5joRxPnNgceDrGuDsiTwNUY7xnCjLZTA6zI6SKrsLfEg5+tqbi17m5pjdIgBL+6yn54GTxosATGhpgKUtXG3C0E8/0JsVdsZqD7zWKgtZJYIg0JygtVDivVqUClsFdyuMuUFBIeq1BNVc3IDZI7w5RknA44A6wVAcYa7oRF4ggoBKDl1hM16ba1N3qxBYH/YRfJ9xWwQAr9/I85sykZjHzLG0QgW9U378y9rOUDl5f53zdQAQaEbAawSAr4oT6YBxxUb1AFoJjCVQEtL44yAoRrQOaCJ7PjeLnCXXgZGi24xMS4/Du898A6U+syHWKRkGOMTBCM9SWB28mcJs/L0mpV4E4PlwToEGz5zKAXD7qkaFihDGM8aytQEowx98rXsYBGBB2BuQ7rgM+lrl6+iBTD5dZtxdrqV+GSeq6IIDwUmvOgRpFZzbHLFsMc2LUWR73Obq4ddEAPCOEufovXIpdz12r/V6bNS13yibzFsAnctRF8wJ4DGYFrTUIAj5bis19cDBrzgADOgBUyjjeAXNgQEUbYJlQLsAOCqJDoV4QPD9sVJEAOCZ5RzAfPJHb/sAO0Q4RhkEYFyXl0U9gOYQFzKmB0whPCpcFLlbzCcI4m0SABKXuLsdVww5/Lt9BEDpE+5mC4+CykWsGIkzBEAEVlTJZQqDUjAzYA0BMMyuDNI3fd4kdZOfFgCMIoV5zO3s6CUNZZb0H4E/iPlTuXdAIVNQWgwz2VgqI+w+Vq3wzB9gbbSdxqQA9YBgDbJKtjxAs9IePaBfNxwX53DoGUIv+krIuyYDICjBrXF7uaTIgH7c+W+8Scxj0SZf0vPQlHK5IIwOZTI5lPiX6QUhz20FpNgvApXCWsMfSK85/NQgCPkDr6QEYgJzjKYCcDLzDgFQHDidS4vNnCbeDuNFKl8riDSTmdheowCmkwvMDX3NqB7AfmELnhdBoPig4gBFXajcsCChPeEzptf0mUIkvIHCazi8i5zcdQHs6FdDz7EuAa/SXS08uNB7304681ioJWF+FWtHs2aMncOBfZ1jDeqBbqpI0SlBSRCOAypGKSAURhMgleLtko7TVHNEwxRithlT7pgXjHZMoBsoM5lY9UWEt06YKT5f0CyKPyU/6y/SzmP6i++7gj1FG4jeIZq7fN/JevVAot0L0E01AGwUrnQcskZvakrd8NlDtA4IiGNEL3KW0GPUBkQ7iqQ0msQU6iNkyNLTQ8z9T+w6F/YPvkDiH+eZzIn/7OmU/ZFUhxsqsDSpLRT87XEBL+joAWmMgDpBsA54NISkilRCHMPDWqNIVJqSfIJgChEoLMNDRtE79Bs9CiKWLITY9zZBSvnXEPnWOlJoeN22rc9BqBp+Db5IPkHVaRQDTBgLEUtFd/cwf+X3p4okP6YEg9JGwzRO83+NQNCOGqVBE3qM6DZLAUHpEPIJUt8Bs82YekPvEL1EBASfCVdydExqK8Dat6sYWeL5PzOiAWI9WstuLTt7gUNYqPB3CuuAZsUYO0qur8oV5oSs1joO62FW4FqY0PUVKPBYaRQQIZTGpIoYSpuQXpNaCusu3Bx4ofJ19M/wTix38SGTc98eEHEm7xFfUtshzZH//AWcVG4wPWi5kXjBMCCYZRIySwIAuNsmuct4JVd1SKxOUSnU8FKvt8FN7cX97cxJhqAfGGO/GuDFiTG2n78LaVdzF67PrZW2MDFwvkEQtBUmRpEIRKrDi9BJzmWWoje9zZlMyc2zYU+xhvoV1P9O9l1ItWvoGCXHeM+yGcKXKFgIFcAXV2Oleyx/A4bJUOC/Q2h3s+cVC6gUFi15vpNMAgFptNcqnYQrUid7ewpRsfxOLwBYkVJzhOr7hAQH/h8LNjHnJ53LK2EoFDfeoJpCQ5ZEQtXsKZtaUIyYMO3tNAjmha5pE4BZgZzvMNR2hkaiVUp+RaM0d/50DWSdroaCGxf1VoDknqujvN8zL70IWMkulMVhDNC9ZDSonBxBYWFB5X7OfXtT1bqkwg2l4ambjM8foJiBs8odxnZ/rk0Qcly4hKuT0pdewiEsETyTZoF9z3iQKZSiHac8QfVhyPvPz1B4Q38tYNGtyxp1gKYQ6hu+hL65o75Ui+KTi7SrIfa9YXrQMoMATPL9q4YyxHjDwq072PhHgrkt51bj+Y391xYoMsC4eL11v75dzOde+IFMJL/7f2Ed2Cz4rDJdr6G72sc5Bp4NXKgDwLxQzoPEewf0D/AmV99RQE2O2t4YAEV3rprM/LDdn9Bx4Of/ljFmxv4LLZAxtk34hAUlArPMGT5jNBKtmHIXzGK83Wy6jQ5WJ0C4ZSZdZ6FrLQCBYS26xtKLTa36Pyh+eBtKHt/VrAtuaa
2D6pqRv9kDn5EQpuB91pG9gqIXwn6+KHyujF+hm4QX9neMg0WMUDLIbC/F2s2C4/TxItHsehtrNgljbZwkMBEAps9CRCPxQCx0orA7FpKq0NhCTHyPPnoLk/V9SdSu6w1g0JXGM0ORN/rNucXsbfuI2lRc5TERAO+kBY+xT3uzSB5pPQVghuph35P5fmxVfh4Qv8yH/FedvjLHbPKO4Q/ixJBYzYuiKJXvSrzzx3gLT2Ki88EIDvdLrEmBR2i7xjtp2/hviSFM/jP4/eIedep+iIsUAAAAASUVORK5CYII=",Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAJ60lEQVR4nO2afVDUdR7H17vrbprOq5mbqe6CM3ZX0FU05EFAcJGHVUAMQYQEeToRpdEuLsykiyA9LHuYujK57EEcNcBHkAXnmtHyAajrYaaam+uP667zl8jEjFHWyBqvm8/yW1txd9n97daMN7xn3uP6/b4/78/799nfb9nf7up0E5jABCYwgQm4hHEdQYY1tBnWMmRYw4BxLa1hawjT+QlDFUbjWlrE8wfzHc18QF/JVE1mxlUEhVYyGFYJzpQ1YyUmrSFNVRjDKhn4MX2nVnKHz4bTK2gzrYasuhG2t1+2Ux7Lmmk1BzUHXU2r3aOCzvBVBAlNq7EGytdN3hafDcMrGAqvgD37bRztHOWeNhuyFhCuIsjRa0YpwYHydZV35iou+DyAiHLOR/weOvfaOHNwlJ17bMhaIOg8gKhSggPl6zJvOed9HkBkOa9HlUP5hhFOvmazs6xmBFmLLNd+qkaW8YLqYZUDF0aW0SVrUeWc1OobVc52t3nL2OezYXwxhpgSBuaWgjNjShiUPa1BY4u5Y24p/3HhOxRbyhytvnFF3BpbwmcufM9HlaHXZBpfjCG+mNb4ElB50J+DdyCmkKC4Yl6NL+FsfDGDcSUciS0l3F/fxEJ+E1fC7rgSLkveuBJaErQevDPmF4NQd51g/kqUgOZdUARC3XWCpCKUgOZNLQRhILySi0hLLWRn6gr+mbKCr+0s5JOUFbySvIJ0nY5J/vZIKUQJVF47Ft4DQp0fsBRhXFjAKYeXB76TtpyZ/vRaeA+Kv3mvQmYBCHUakbGc+ZkFXFB9zmUW8FDmcmanFXGTUB5n5rMpI59+0WQUcDHzHjI098tH8SfvNViSD0KdBmTnMz0rnwuqx145YHfavDx+mZXPPlV7MTuPSC09s5ajaM3rEkvzQKjzGUzKXsYpqc3OY4931zeTsvPYZ69ZxgdmMz/ztevSZSja8rrBsmUg1PmI3FwsUpebyzl5dr2tE21uLv1qbY6GvoqWvG5RkANCnY/IX8petfYhn2tzqJXa/Bzf33bn56BoyesWhUtB6HNdNv+WuoJcZvlaW7SU2Wrfz3zuuxRFS163KM4Goc5LFC7BtDKbg446X05/B8qXMNlRX3w3rWU53r+lXZmN4kvecVG2BIReBg8rzWLQUeNtnae+wtIl9JdlejeE0iwUf/peg4osEHqpbRPtqsUcHVv34gnbYztO2L7acdxWP7bO1Z6jviKLTtXTq9vaisUo3ub1CmsyQeiNtjKTAdGuzUQ/tu6IdXjoiNXG4c7hL8fWHeqyDR3uusyhLtuVPUf96kUY5N/KTO8+2KjMQPE2r0esW0TQvRlsvzcDhFXptMqBeaq5N51zol2fxW2OOsde3wFbfd/+4aG+A7ZHx9b1HLDV9+wfHupx2rvSN4Pb1f79Hntn8+uqdLZVpXPJ27xuUW0heF06n61PB2euW0T/HzyYrk9nr6r9m6Omyuz7i2DNEiZf6ZnOG2rv/e70993NLevT+djXvG5RvZDXqhdCtYXODYsIEt6/EKu65vZa/GMGU6otDNh1Kh9Y5PufwfvSuMvZ434LQ9XphLrNa+HPWvK6xQMWlBoLiJHzWSFrNRbP1+KDqfyuxsK+Ggtf2/WpbHLe33HcpjSduIwzZc1ZU5PGw2qvb2ostFdbmOap5wMW3tGa1yU2pjC4MRU2mL83rLUQLGsbU7wz3JhCqugfTKW/zukyaO+0be3otDGG2xz7NfFMlh5qr1Rvej2Ywof+5r0Km5LpqE2B2hSsYiTclEyXuubVKVWXxq21yVz4vmb0ZuijVn7+bput8b22YeW91uHP322zPfmJlV+MVjFpUzKvS82mZC7WphHiTa/aZJrc5RU/bzyuQl0ysx5J5qu6ZLiKC+ivSxn/ReVPKcTVJfO5c+0jC9jnfCaMhTzzdQt4fUzNYF0KSeP1kwOuS2bgmryyZsao04LNZqIazJxqSAJhvZkWbw6+PglzQxJfqTW76pOYW2/mrPr//oYkahvmEyHDEMrjejMPN5g5f0VjZnFDElZ7bzMXHzOPP4S6FEIbzHTXJzGi+nQ2LPD/S1fdFjMIvdE2JqDfYmZQ9Jvn0+hYf8LM7VvMvOzwcsfN8zm0OXn0y8zWPH66xUyTuv7FY4neXQ6bzShS83g8v9UFAlsTQTieDh2TtiZySrSNiTR78mpM5MTWBP4htD9206NOx08aEzhg30/gTekxXo7GRBTRB2wATyaAcDzdtgRWim7bPD7dlub6oy93Xp56bE3l5m0JnJX9J+axwou8imgDNoBn5oHQk0aemafj+Vh0T8VR4MHrrOp35Zp+Kp4F6tqgh7piuyaej8Y7C56ehyLavwRqAM/FgdCjJpZ5qu5TuXY96DY4/Mby2VhecFfXFMkNz8Vx1q6bR6ynLM/GooguYAN4IRaEnjTPz+Vx0Twfy1aPXnN51OHngs3j1D6t6hrH0SmiC9gAmmJA6FETzXFVZ3GnaZ7FTTti+Lophu/+Gs1ix6n8Ygyzd0QzKOs7PYRuiiHT3iOa456y7IhGEZ0nL5+wMxqEnjQvRXHOrotw33RnFAV2TRRvXVMfzTOy91I0a93WRzBF1Vx13+DCSxkvi094NQqEnjSvRPKtaJ41Ot7SutBEcUg0r0RRNXbv5UjmqnvH3NW3xnKjmmV4nLyK6AI2gOY5IPRH0xrJzc0RfLsrAlvzLG4duy+Xw645/Ks5guFXZ3OLP1l2zUERzd5ADWBvhN0MbzQ/Fj1l2XMXiqoLzABaZoPQG82PRY9ZZqGIJmAD2D8LhLrrBG3hKJL3cKAGcCgchLrrBAdnokhevwdgDSeo3cT2jhkgbDdx0DrD/x9JHTFh7DDR0m5iwM4ZtB4O9/+2VfJ2mHix3cSwmnfX0elM0WTWPYPgoyb+azWBMzunM+jPELpNGDtNDLj0NWn/rfDRcPRufM93hWkYbncYrx2bBh05I7S0XrbzaM4IstYdpv2Hkt3TaFU9Oq1GgoTd07D663ssjENu807D6rPhG6Eob4TBsd02ujtU7rYha4HgceP3H152GwgOlK/LvKFc+nskN/g0gOOhXDwRCn0v23h7/yj7dtqQtUDQeQBvGggOlK+7vL1GfuXTAE4a6T5phN6MET5sstnZmz6CrNn3pqLXRCP7xOMtI1Y5cOFJI132NQPva/Y1sNtdXvHV+YozBuacNvDNGQM487SeL3tCfP+mx4EePVNP6/nChe+lHsP4H3y6w+k7mXLKwPmxvmcMXD6tJ0WT6dt6ZvbqOdmjZ6Q3BFuPnjdlMDo/0WdgRo+e7p4Qhnv0fNcTwjv+HPyVvHcS1huCtSeES7166NHzfp/Wg3fGB7dxk9XDXZ5WyAvTmSBu/CF8T4UxOdC+E5jABCag+3/D/wC908y5t3FSlQAAAABJRU5ErkJggg==";n.p,n.p,n.p;function Re(e){let{onConnect:n}=e;const[r,i]=(0,t.useState)(null),o=!!r,l=(0,t.useContext)(a);function c(){l.disconnect(),i(null),n(null)}return(0,t.useEffect)((()=>{l.reconnectSession().then((e=>{if(l.connector.on("disconnect",c),e.length){const t=e[0];i(t),n(t)}})).catch((e=>console.log(e)))}),[]),(0,s.jsx)("button",{className:"cursor-pointer bg-gradient-to-r from-pink-500 to-blue-500 hover:from-green-400 hover:to-yellow-500 px-3 py-2 rounded-full text-md text-white",onClick:o?c:function(){l.connect().then((e=>{l.connector.on("disconnect",c);const t=e[0];i(t),n(t)})).catch((e=>{var t;"CONNECT_MODAL_CLOSED"!==(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.type)&&console.log(e)}))},children:(0,s.jsx)("h2",{children:o?"Disconnect":"Connect Wallet"})})}function Ie(e){let{setConnectedAccountAddress:n,fixed:r}=e;const[i,o]=(0,t.useState)("light"),[a,l]=(0,t.useState)(!1);
2ee();return(0,t.useEffect)((()=>{document.documentElement.setAttribute("data-theme",i)}),[i]),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"navbar bg-black gap-12 text-white shadow-lg",style:{position:"relative",zIndex:"10000",fontFamily:"Tw Cen MT"},children:[(0,s.jsx)("div",{className:"navbar-start",children:(0,s.jsxs)("div",{className:"dropdown",children:[(0,s.jsx)("label",{tabIndex:0,className:"btn btn-ghost btn-circle",children:(0,s.jsx)("svg",{className:"fill-current",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 512 512",children:(0,s.jsx)("path",{d:"M64,384H448V341.33H64Zm0-106.67H448V234.67H64ZM64,128v42.67H448V128Z"})})}),(0,s.jsxs)("ul",{tabIndex:0,className:"menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-black rounded-box w-52",children:[(0,s.jsx)("li",{children:(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{style:{fontWeight:"bold"},children:"Overview"}),(0,s.jsx)("ul",{children:(0,s.jsx)("li",{className:"m-1",children:(0,s.jsxs)(Ee,{to:"/dashboard",className:"dropdown-item",children:[(0,s.jsx)("img",{style:{backgroundColor:"white",width:"25%",height:"25%",border:"2px solid white",borderRadius:"10px"},src:Pe,alt:"Pahntom V2"}),"Dashboard"]})})})]})}),(0,s.jsx)("li",{children:(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{style:{fontWeight:"bold"},children:"Collections"}),(0,s.jsx)("ul",{children:(0,s.jsx)("li",{className:"m-2",children:(0,s.jsxs)(Ee,{to:"/phantom-v1",className:"dropdown-item",children:[(0,s.jsx)("img",{style:{backgroundColor:"white",width:"25%",height:"25%",border:"2px solid white",borderRadius:"10px"},src:"https://ipfs.io/ipfs/bafkreiasgoxgnd33c2emwo6sqd4n6fxbaa2g7vio23e4ot3nvgq4hethia#i",alt:"Pahntom V1"}),"Phantom Pals"]})})})]})})]})]})}),(0,s.jsx)("div",{className:"navbar-center",children:(0,s.jsx)(Ee,{to:"/",children:(0,s.jsx)("img",{style:{width:"100%",height:"100%",justifyContent:"center"},src:Te,alt:"Pahntom"})})}),(0,s.jsx)("div",{className:"navbar-end gap-3",children:(0,s.jsx)("button",{className:"btn btn-ghost btn-circle",children:(0,s.jsxs)("a",{target:"_blank",href:"https://phantompals.medium.com",class:"group",children:[(0,s.jsx)("span",{children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"w-5 h-5",children:[(0,s.jsx)("path",{d:"M3.75 3a.75.75 0 00-.75.75v.5c0 .414.336.75.75.75H4c6.075 0 11 4.925 11 11v.25c0 .414.336.75.75.75h.5a.75.75 0 00.75-.75V16C17 8.82 11.18 3 4 3h-.25z"}),(0,s.jsx)("path",{d:"M3 8.75A.75.75 0 013.75 8H4a8 8 0 018 8v.25a.75.75 0 01-.75.75h-.5a.75.75 0 01-.75-.75V16a6 6 0 00-6-6h-.25A.75.75 0 013 9.25v-.5zM7 15a2 2 0 11-4 0 2 2 0 014 0z"})]})}),(0,s.jsx)("span",{children:"Blog"})]})})})]})})}var Le=n(7262);const Oe=new Le.default.Algodv2("","https://mainnet-api.algonode.network","443"),De=new Le.default.Indexer("","https://mainnet-idx.algonode.network","443");parseInt("6670024",10);async function Be(e){try{return await De.lookupAccountByID(e).do()}catch(t){return console.error("Error fetching user token balance:",t),0}}const Ne=function(e){let{accountAddress:n}=e;const[r,i]=(0,t.useState)(null),[o,a]=(0,t.useState)(!1),[l,c]=(0,t.useState)(null),[u,h]=(0,t.useState)(!1),[d,p]=(0,t.useState)("Introduction");(0,t.useEffect)((()=>{n&&f()}),[n]);const f=async()=>{a(!0);try{const e=await Be(n);i(e.account?e.account:null),c(e.message?e.message:null),a(!1)}catch(e){c("Error fetching account data. Please try again."),a(!1)}};return(0,s.jsxs)("div",{style:{maxWidth:"100vw"},className:"container mx-auto px-4 py-8",children:[(0,s.jsxs)("header",{className:"mb-12 text-center",children:[(0,s.jsx)("h1",{className:"text-6xl font-extrabold mb-3 text-transparent bg-clip-text bg-gradient-to-br from-green-400 to-blue-500",children:"Phantom Pals"}),(0,s.jsx)("p",{className:"text-xl font-light text-gray-100",style:{fontFamily:"Bahnschrift",fontWeight:"bold",fontSize:"large"},children:"Join us on an exciting journey!"})]}),(0,s.jsxs)("main",{children:[(0,s.jsx)("div",{className:"tabs flex justify-center mb-4",children:["Introduction","Disclaimers"].map((e=>(0,s.jsx)("button",{style:{marginBottom:"2em",fontFamily:"Tw Cen MT",fontWeight:"bold",fontSize:"large"},onClick:()=>p(e),className:"px-4 py-2 mx-2 text-sm font-semibold rounded-lg ".concat(d===e?"bg-gradient-to-r from-black to-gray-500 hover:from-blue-400 hover:to-pink-500 text-white":"text-gray-300"),children:e},e)))}),"Introduction"===d&&(0,s.jsxs)("section",{style:{height:"40vh"},className:"bg-gradient-to-r from-black to-gray-500 text-white p-6 shadow-lg rounded-lg",children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold mb-4 dark:text-white",children:"Welcome to Phantom Pals!"}),(0,s.jsx)("p",{className:"dark:text-gray-300",style:{fontFamily:"Bahnschrift",fontWeight:"bold",fontSize:"large"},children:"We're crafting a vibrant, user-driven platform. While we're still laying the groundwork, we invite you to stay connected as our project evolves!"})]}),"Disclaimers"===d&&(0,s.jsxs)("section",{className:"disclaimers bg-gradient-to-r from-black to-gray-500 text-white p-6 shadow-lg rounded-lg",children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold mb-4",children:"Phantoms (Phantom Pals) Disclaimers"}),(0,s.jsxs)("div",{className:"dark:text-gray-300 space-y-4",style:{fontFamily:"Bahnschrift",fontWeight:"bold",fontSize:"large"},children:[(0,s.jsx)("h3",{className:"text-xl font-semibold mb-4",children:"Vision and Progress"}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"Phantom Pals"})," embarks on a pioneering journey within the Algorand blockchain ecosystem, dedicated to unlocking the potential of blockchain for tangible, real-world applications. Our ambition is to cultivate a space where innovation meets community, fostering an environment of growth, learning, and engagement."]}),(0,s.jsxs)("ul",{className:"list-disc pl-5",children:[(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"Dynamic Evolution:"})," Phantom Pals is not static; it is a voyage of discovery and adaptation. While our initial phase might be experimental, our eyes are set on a clear horizon. Feedback from our community is our compass, guiding our project's evolution from experimental to established, ensuring our path aligns with both our vision and the needs of our participants."]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"Financial Considerations:"})," All interactions within Phantom Pals, including purchases, are at your discretion. We urge caution but in saying that every transaction, every interaction is a vote of confidence in what we can achieve together. With the pioneering spirit c
2omes a degree of uncertainty, and we encourage every member of our community to navigate this journey with awareness and thoughtfulness."]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"Security Commitment:"})," Our pledge to security is foundational, permeating every layer of the Phantom Pals ecosystem. We recognize the challenges inherent in safeguarding a digital community and commit to relentless vigilance and best practices in security measures. Our journey from experimental to foundational includes a continuous enhancement of our security posture."]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"Transparent Evolution:"})," Transparency is the cornerstone of trust. As Phantom Pals evolves, so too will our methods, strategies, and technologies."]})]}),(0,s.jsx)("p",{children:"By participating in Phantom Pals, you're not just witnessing innovation; you're part of a collective pushing the boundaries of blockchain's potential. This project, while beginning with exploration, is on a path to defining its course, solidifying its impact, and achieving lasting significance. We invite you to join us with an open mind and a pioneering spirit, ready to contribute to a future where Phantom Pals stands as a testament to the power of community-driven blockchain endeavors."}),(0,s.jsx)("button",{className:"mt-2 px-4 py-2 bg-blue-500 hover:bg-blue-700 rounded text-white",onClick:()=>h(!u),children:u?"Read Less":"Read More"}),u&&(0,s.jsxs)("div",{className:"dark:text-gray-300",children:[(0,s.jsx)("p",{className:"mt-2 mb-4",children:"Phantom Pals is dedicated to transparency, open communication, and adaptability. We keep our community informed about our processes, developments, and any challenges we encounter. As the project evolves, so too will our strategies and practices, enhancing the project's overall security, usability, and value."}),(0,s.jsxs)("p",{className:"mt-2 mb-4",children:["For any questions or concerns, please reach out to us at"," ",(0,s.jsx)("a",{href:"mailto:[email protected]",className:"text-blue-500 hover:underline",children:"[email protected]"})]})]})]})]})]})]})};const Fe=function(e){let{accountAddress:n}=e;const[r,i]=(0,t.useState)(null),[o,a]=(0,t.useState)(!1),[l,c]=(0,t.useState)(null);(0,t.useEffect)((()=>{n&&u()}),[n]);const u=async()=>{a(!0);try{const e=await Be(n);console.log(e);const t=e;t.account?i(t.account):c(t.message),a(!1)}catch(e){console.error("Failed to fetch account data:",e),c("Error fetching account data. Please try again."),a(!1)}};function h(e){const t="ipfs://";if(e.startsWith(t))return e.slice(7);throw new Error("Invalid IPFS URL")}return(0,s.jsxs)("div",{className:"fade-in text-center text-white dark:text-white mb-4",children:[o&&(0,s.jsx)("p",{children:"Loading account data..."}),l&&(0,s.jsxs)("p",{children:["Error: ",l]}),r&&(0,s.jsxs)("div",{className:"text-white dark:text-white",children:[(0,s.jsx)("h1",{children:"Phantom Pals V1"}),(0,s.jsx)("h3",{children:"Account Information"}),"Address:",(0,s.jsx)("a",{className:"text-white underline dark:text-white",href:"https://allo.info/address/".concat(r.address),target:"_blank",rel:"noreferrer",children:(0,s.jsx)("p",{style:{wordBreak:"break-word"},children:r.address})}),(0,s.jsx)("br",{})]}),(0,s.jsx)("div",{className:"grid grid-cols-3 md:grid-cols-5 gap-10",children:r&&r["created-assets"].map(((e,t)=>(0,s.jsxs)("div",{style:{margin:"1px"},className:"p-4 bg-gradient-to-r from-black to-gray-800",children:[(0,s.jsx)("div",{className:"zoom-effect",children:(0,s.jsx)("a",{className:"text-white dark:text-white",href:"https://www.randgallery.com/algo-collection/?address=".concat(e.index),target:"_blank",rel:"noreferrer",children:(0,s.jsx)("img",{style:{width:"100%",height:"100%",border:"2px solid white",borderRadius:"10px"},src:"https://ipfs.io/ipfs/".concat(h(e.params.url)),alt:"Asset ".concat(t)},t)})}),(0,s.jsx)("a",{className:"text-white dark:text-white",href:"https://www.randgallery.com/algo-collection/?address=".concat(e.index),target:"_blank",rel:"noreferrer",children:(0,s.jsx)("p",{className:"mt-4",children:r&&e.params.name})})]})))})]})};var je;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(e=>{const t=class{constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let t=0;t<this.size;t++)a.push(!1);for(let t=0;t<this.size;t++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,r){const i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){const i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,n){let i,a,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,h=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=l&&l<=c&&c<=t.MAX_VERSION)||u<-1||u>
vendor: 8,374 bytes, line 2
27)throw new RangeError("Invalid value");for(i=l;;i++){const r=8*t.getNumDataCodewords(i,n),o=s.getTotalBits(e,i);if(o<=r){a=o;break}if(i>=c)throw new RangeError("Data too long")}for(const r of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])h&&a<=8*t.getNumDataCodewords(i,r)&&(n=r);let d=[];for(const t of e){r(t.mode.modeBits,4,d),r(t.numChars,t.mode.numCharCountBits(i),d);for(const e of t.getData())d.push(e)}o(d.length==a);const p=8*t.getNumDataCodewords(i,n);o(d.length<=p),r(0,Math.min(4,p-d.length),d),r(0,(8-d.length%8)%8,d),o(d.length%8==0);for(let t=236;d.length<p;t^=253)r(t,8,d);let f=[];for(;8*f.length<d.length;)f.push(0);return d.forEach(((e,t)=>f[t>>>3]|=e<<7-(7&t))),new t(i,n,f,u)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let i=0;i<10;i++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);o(r>>>15==0);for(let o=0;o<=5;o++)this.setFunctionModule(8,o,i(r,o));this.setFunctionModule(8,7,i(r,6)),this.setFunctionModule(8,8,i(r,7)),this.setFunctionModule(7,8,i(r,8));for(let o=9;o<15;o++)this.setFunctionModule(14-o,8,i(r,o));for(let o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,i(r,o));for(let o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,i(r,o));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let n=0;n<18;n++){const e=i(t,n),r=this.size-11+n%3,o=Math.floor(n/3);this.setFunctionModule(r,o,e),this.setFunctionModule(o,r,e)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const i=Math.max(Math.abs(r),Math.abs(n)),o=e+r,a=t+n;0<=o&&o<this.size&&0<=a&&a<this.size&&this.setFunctionModule(o,a,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),l=i-s%i,c=Math.floor(s/i);let u=[];const h=t.reedSolomonComputeDivisor(a);for(let o=0,p=0;o<i;o++){let n=e.slice(p,p+c-a+(o<l?0:1));p+=n.length;const r=t.reedSolomonComputeRemainder(n,h);o<l&&n.push(0),u.push(n.concat(r))}let d=[];for(let t=0;t<u[0].length;t++)u.forEach(((e,n)=>{(t!=c-a||n>=l)&&d.push(e[t])}));return o(d.length==s),d}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let o=0;o<2;o++){const a=t-o,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=i(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let o=0;o<this.size;o++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[o][a]==n?(r++,5==r?e+=t.PENALTY_N1:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[o][a],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*t.PENALTY_N3}for(let o=0;o<this.size;o++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][o]==n?(r++,5==r?e+=t.PENALTY_N1:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[a][o],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*t.PENALTY_N3}for(let o=0;o<this.size-1;o++)for(let n=0;n<this.size-1;n++){const r=this.modules[o][n];r==this.modules[o][n+1]&&r==this.modules[o+1][n]&&r==this.modules[o+1][n+1]&&(e+=t.PENALTY_N2)}let n=0;for(const t of this.modules)n=t.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const i of e){const e=i^r.shift();r.push(0),n.forEach(((n,i)=>r[i]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function i(e,t){return 0!=(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains 
2non-numeric characters");let t=[];for(let n=0;n<e.length;){const i=Math.min(e.length-n,3);r(parseInt(e.substr(n,i),10),3*i+1,t),n+=i}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let i=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(i,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(je||(je={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(je||(je={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(je||(je={}));var Ue=je;Ue.QrCode.Ecc.LOW,Ue.QrCode.Ecc.MEDIUM,Ue.QrCode.Ecc.QUARTILE,Ue.QrCode.Ecc.HIGH;!function(){try{(new Path2D).addPath(new Path2D)}catch(ze){return!1}}();n.p;n(1272);function ze(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}ze(":root {\n  --gray-800: #242424;\n}"),ze(".pera-onramp-modal-wrapper {\n  position: fixed;\n  top: 0;\n  right: 0;\n  left: 0;\n  bottom: 0;\n  z-index: 999999;\n  width: 100vw;\n  min-height: calc(100 * var(--vh));\n  background-color: rgba(0, 0, 0, 0.7);\n}\n\n@media only screen and (max-width: 706px) {\n  .pera-onramp-modal-wrapper {\n    overflow-y: hidden;\n    min-height: 100%;\n  }\n}");const qe={ADDRESS:"account-address",AVAILABLE_ASSETS:"available-assets",PLATFORM:"platform",OPT_IN_ENABLED:"opt-in-enabled"},We="pera-onramp-modal",Ve="pera-onramp-modal__onramp-iframe",He=".pera-onramp-modal__onramp-iframe",Ke="pera-onramp-modal__close-button",Ge=".pera-onramp-modal__close-button",Ze="pera-onramp-modal__close-button-icon";function Qe(){return window.location.origin.includes("web.perawallet.app")}var Ye=".pera-onramp-modal {\n  position: relative;\n  top: 0;\n  left: 50%;\n  width: 706px;\n  height: 703px;\n  border-radius: 24px;\n  background-color: transparent;\n  transform: translate(-50%, 80px);\n  animation: 0.5s PeraOnrampModalSlideIn ease-out;\n}\n.pera-onramp-modal--web-wallet {\n  width: 437px;\n}\n\n.pera-onramp-modal__onramp-iframe {\n  width: 100%;\n  height: 100%;\n  border: none;\n  border-radius: inherit;\n  animation: 0.7s PeraOnrampIframeAnimation ease-in-out;\n}\n\n.pera-onramp-modal__close-button {\n  position: absolute;\n  top: -52px;\n  right: -52px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  width: 40px;\n  height: 40px;\n  padding: 8px;\n  background: var(--gray-800);\n  border: none;\n  border-radius: 8px;\n  cursor: pointer;\n}
2\n\n.pera-onramp-modal__close-button-icon {\n  width: 20px;\n  height: 20px;\n}\n\n@media only screen and (max-width: 706px) {\n  .pera-onramp-modal {\n    top: 40px;\n    left: 0;\n    bottom: 0;\n    width: 100%;\n    height: calc(100% - 40px);\n    transform: unset;\n    animation: 0.5s PeraOnrampModalMobileSlideIn ease-out;\n  }\n\n  .pera-onramp-modal__onramp-iframe {\n    border-bottom-left-radius: 0;\n    border-bottom-right-radius: 0;\n  }\n\n  .pera-onramp-modal__close-button {\n    top: 18px;\n    right: 18px;\n    width: 24px;\n    height: 24px;\n    background: transparent;\n    border-radius: 0;\n  }\n\n  .pera-onramp-modal__close-button-icon {\n    width: 24px;\n    height: 24px;\n  }\n}\n@keyframes PeraOnrampIframeAnimation {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n@keyframes PeraOnrampModalSlideIn {\n  0% {\n    opacity: 0;\n    transform: translate(-50%, 104px);\n  }\n  100% {\n    opacity: 1;\n    transform: translate(-50%, 80px);\n  }\n}\n@keyframes PeraOnrampModalMobileSlideIn {\n  0% {\n    top: 30%;\n    opacity: 0;\n  }\n  100% {\n    top: 40px;\n    opacity: 1;\n  }\n}";function Xe(){document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px")}ze(Ye);const Je=document.createElement("template");class $e extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.render(),this.shadowRoot){const e=document.createElement("style");e.textContent=Ye,this.shadowRoot.append(Je.content.cloneNode(!0),e)}}getGenericAttribute(e){return this.getAttribute(qe[e])}connectedCallback(){if(this.shadowRoot){const e=this.shadowRoot.querySelector(Ge);!function(e){let{baseUrl:t,iframe:n,accountAddress:r,availableAssets:i,platform:o,optInEnabled:a}=e;const s=new URL(t);s.searchParams.set(qe.ADDRESS,r),s.searchParams.set(qe.AVAILABLE_ASSETS,i),Qe()?s.searchParams.set(qe.PLATFORM,"web-wallet"):s.searchParams.set(qe.PLATFORM,o),s.searchParams.set(qe.OPT_IN_ENABLED,a),n.setAttribute("src",s.toString())}({baseUrl:"https://onramp.perawallet.app/widget",iframe:this.shadowRoot.querySelector(He),accountAddress:this.getGenericAttribute("ADDRESS"),availableAssets:this.getGenericAttribute("AVAILABLE_ASSETS"),platform:this.getGenericAttribute("PLATFORM"),optInEnabled:this.getGenericAttribute("OPT_IN_ENABLED")}),e.addEventListener("click",(()=>{this.closeModal()})),this.render()}}render(){Je.innerHTML='\n      <div class="'.concat(We).concat(Qe()?" pera-onramp-modal--web-wallet":"",'" >\n        <iframe class=').concat(Ve,"></iframe>\n\n        <button class=").concat(Ke,">\n          <img\n            class=").concat(Ze,'\n            src="').concat(document.documentElement.clientWidth<=767?"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_802_16618)'%3e%3cpath d='M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6' stroke='%2318181B' stroke-width='2'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_802_16618'%3e%3crect width='24' height='24' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_539_9184)'%3e%3cpath d='M15 5L10 10M10 10L5 15M10 10L15 15M10 10L5 5' stroke='white' stroke-width='1.5'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_539_9184'%3e%3crect width='20' height='20' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",'"\n            alt="close button"\n          />\n        </button>\n      </div>\n    ')}closeModal(){const e=document.querySelector(".pera-onramp-modal-wrapper");e&&e.remove()}}window.addEventListener("DOMContentLoaded",(()=>{Xe()})),window.addEventListener("resize",(()=>{Xe()}));new class{constructor(e){this.listener=void 0,this.channel=e.channel}setupListener(e){let{onReceiveMessage:t}=e;this.close(),this.listener=e=>{if("object"==typeof e.data)try{e.data.channel===this.channel&&t(e)}catch(t){console.error(t)}},window.addEventListener("message",this.listener)}sendMessage(e){let{message:t,targetWindow:n,origin:r,timeout:i=1e3}=e;setTimeout((()=>{const e={channel:this.channel,message:t};n.postMessage(e,{targetOrigin:r||"*"})}),i)}close(){this.listener&&(window.removeEventListener("message",this.listener),this.listener=void 0)}}({channel:"pera-onramp"});"undefined"!=typeof window&&customElements.define("pera-onramp-modal",$e);async function et(e,t){try{if(!Le.default.isValidAddress(e))throw new Error("Invalid Algorand address provided.");const n=await Oe.getTransactionParams().do(),r=Le.default.makeAssetTransferTxnWithSuggestedParams(e,e,void 0,void 0,0,Le.default.encodeObj("Opting in to ".concat(t)),parseInt(t,10),n);return[{txn:r,signers:[e]}]}catch(n){throw console.error("An error occurred:",n),n}}var tt=n(1425),nt=n.n(tt);n.p;n.p,n.p,n.p;const rt=()=>{const[e,n]=(0,t.useState)("");(0,t.useEffect)((()=>{const e=async()=>{try{const e=await fetch("https://free-api.vestige.fi/asset/1279721720/price?currency=usd"),t=await e.json();n(t.price)}catch(e){console.error("Failed to fetch token price:",e),n("Unavailable")}};e();const t=setInterval(e,6e4);return()=>clearInterval(t)}),[]);return(0,s.jsx)("div",{className:"overflow-hidden relative bg-gradient-to-r from-teal-600 to-cyan-300",children:Array(1).fill(null).map(((n,r)=>(0,s.jsx)(t.Fragment,{children:(0,s.jsx)("div",{className:"ticker-text whitespace-nowrap text-white text-xl",children:(0,s.jsxs)("span",{children:["PHNTM Token Price: $","".concat(e).slice(0,8)]})})},r)))})};const it=function(e){let{accountAddress:n}=e;const[r,i]=(0,t.useState)("Token Info"),[o,a]=(0,t.useState)(!0);return(0,s.jsx)("div",{children:"Token Info"===r&&(0,s.jsxs)("section",{className:"flex flex-col items-center justify-center bg-gradient-to-r from-black to-white-600 text-white shadow-lg",children:[!
2o&&(0,s.jsxs)("div",{style:{padding:"0.125rem",maxHeight:"24vh",borderRadius:"0"},role:"alert",className:"alert alert-info flex flex-col items-center justify-center",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"stroke-current shrink-0 w-6 h-6 pt-2",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,s.jsx)("span",{style:{fontSize:"small"},className:"pb-4 pl-4 pr-4",children:"Token Information"})]}),o&&(0,s.jsx)("span",{className:"loading loading-spinner loading-lg text-white",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center h-screen",children:[(0,s.jsx)("svg",{className:"animate-spin h-5 w-5 mr-3 ...",style:{border:"5px solid white"},viewBox:"0 0 24 24"}),"Loading ..."]})}),(0,s.jsx)("iframe",{className:"w-full ".concat(o?"h-0":"h-screen"),src:"https://allo.info/asset/1279721720/token",title:"Phantoms Token Info",onLoad:()=>{a(!1)}}),(0,s.jsx)("a",{href:"https://allo.info",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 hover:underline dark:text-blue-400",children:"Powered by Allo"})]})})};var ot,at;function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},st.apply(this,arguments)}function lt(e){return(0,t.createElement)("svg",st({xmlns:"http://www.w3.org/2000/svg",width:12.922,height:14.48},e),ot||(ot=(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"wheel-arrow_svg__a"},(0,t.createElement)("path",{"data-name":"Path 24805",d:"M119.691 11.756l6.461 14.48 6.461-14.48z",transform:"translate(-119.691 -11.756)",fill:"#a72810"})))),at||(at=(0,t.createElement)("g",{"data-name":"Group 46907",clipPath:"url(#wheel-arrow_svg__a)"},(0,t.createElement)("path",{"data-name":"Path 24806",d:"M-5.604 7.24L6.458-8.357 18.517 7.236 6.458 22.837z",fill:"#a72810"}))))}var ct="_2zZiG",ut="_28Wol",ht="_1E7u3",dt="_1sp4O",pt="_35l6Q",ft=(0,t.forwardRef)((function(e,n){var r=e.data,i=e.hideButton,o=e.result,a=e.time,s=e.minTime,l=e.maxTime,c=e.removeButtonEffect,u=e.fontSize,h=e.fontFamily,d=e.horizantalText,p=(0,t.useRef)(),f=(0,t.useState)({winnerAngle:0})[0];(0,t.useLayoutEffect)((function(){var e=document.getElementById("wheel");if(e&&"CANVAS"===e.tagName){var t=e.getContext("2d"),n=e.width/2,i=e.height/2,o=Math.min(n,i);g(r,t,n,i,o)}}),[r]);var m=function(e){return e*Math.PI/180},g=function(e,t,n,r,i){var o=360/e.length;e.map((function(e,a){t.save(),t.translate(n,r),t.rotate(m(o*a)),t.translate(-n,-r),t.fillStyle=e[1]?e[1]:"red",t.beginPath(),t.moveTo(n,r),t.arc(n,r,i,0-m(90)-m(o/2),m(o)-m(90)-m(o/2),!1),t.moveTo(n,r),t.fill(),t.fillStyle="white",t.textAlign=d?"start":"end",t.font=u&&h?u+"px "+h:u?u+"px sans-serif":h?"18px "+h:"18px sans-serif",t.transform="translate(50px, 100px)",d?(t.textAlign="center",t.fillText(e[0],n,r/4)):(t.rotate(-1.57),t.fillText(e[0],-20,r+10)),t.restore()}))};(0,t.useImperativeHandle)(n,(function(){return{handleSpin:function(){var e=document.getElementById("wheel");if(e){var t=o||"23454",n=a||(s&&l&&s>0&&l>0?Math.floor(Math.random()*(l-s+1))+s:Math.floor(2*Math.random())+3);e.style.transition=n+"s";var i=r.find((function(e){return e[0]===t}));i||(i=[""]);var c=[];r.map((function(e){c.push(e[0])}));var u=c.indexOf(i[0]),h=f.winnerAngle%360;f.winnerAngle=f.winnerAngle+1800-360*u/c.length-h;var d="rotate("+f.winnerAngle+"deg)";e.style.transform=d}}}}));return t.createElement("div",null,t.createElement("div",{className:ct},t.createElement("div",{className:ut},t.createElement("canvas",{ref:p,id:"wheel",className:ht,width:"450px",height:"450px"}),!i&&t.createElement("span",{className:dt,onClick:function(){return c?"":function(){var e=document.getElementById("wheel");if(e){var t=o||"23454",n=a||(s&&l&&s>0&&l>0?Math.floor(Math.random()*(l-s+1))+s:Math.floor(2*Math.random())+3);e.style.transition=n+"s";var i=r.find((function(e){return e[0]===t}));i||(i=[""]);var c=[];r.map((function(e){c.push(e[0])}));var u=c.indexOf(i[0]),h=f.winnerAngle%360;f.winnerAngle=f.winnerAngle+2520-360*u/c.length-h;var d="rotate("+f.winnerAngle+"deg)";e.style.transform=d}}()}},"SPIN")),t.createElement("span",{className:pt},t.createElement(lt,null))))}));const mt=ft;function gt(e,t){return function(){return e.apply(t,arguments)}}const{toString:yt}=Object.prototype,{getPrototypeOf:vt}=Object,wt=(bt=Object.create(null),e=>{const t=yt.call(e);return bt[t]||(bt[t]=t.slice(8,-1).toLowerCase())});var bt;const _t=e=>(e=e.toLowerCase(),t=>wt(t)===e),xt=e=>t=>typeof t===e,{isArray:At}=Array,kt=xt("undefined");const St=_t("ArrayBuffer");const Et=xt("string"),Ct=xt("function"),Mt=xt("number"),Tt=e=>null!==e&&"object"===typeof e,Pt=e=>{if("object"!==wt(e))return!1;const t=vt(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Rt=_t("Date"),It=_t("File"),Lt=_t("Blob"),Ot=_t("FileList"),Dt=_t("URLSearchParams");function Bt(e,t){let n,r,{allOwnKeys:i=!1}
2=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),At(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=i?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let a;for(n=0;n<o;n++)a=r[n],t.call(null,e[a],a,e)}}function Nt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Ft="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,jt=e=>!kt(e)&&e!==Ft;const Ut=(zt="undefined"!==typeof Uint8Array&&vt(Uint8Array),e=>zt&&e instanceof zt);var zt;const qt=_t("HTMLFormElement"),Wt=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),Vt=_t("RegExp"),Ht=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bt(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},Kt="abcdefghijklmnopqrstuvwxyz",Gt="0123456789",Zt={DIGIT:Gt,ALPHA:Kt,ALPHA_DIGIT:Kt+Kt.toUpperCase()+Gt};const Qt=_t("AsyncFunction"),Yt={isArray:At,isArrayBuffer:St,isBuffer:function(e){return null!==e&&!kt(e)&&null!==e.constructor&&!kt(e.constructor)&&Ct(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||Ct(e.append)&&("formdata"===(t=wt(e))||"object"===t&&Ct(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&St(e.buffer),t},isString:Et,isNumber:Mt,isBoolean:e=>!0===e||!1===e,isObject:Tt,isPlainObject:Pt,isUndefined:kt,isDate:Rt,isFile:It,isBlob:Lt,isRegExp:Vt,isFunction:Ct,isStream:e=>Tt(e)&&Ct(e.pipe),isURLSearchParams:Dt,isTypedArray:Ut,isFileList:Ot,forEach:Bt,merge:function e(){const{caseless:t}=jt(this)&&this||{},n={},r=(r,i)=>{const o=t&&Nt(n,i)||i;Pt(n[o])&&Pt(r)?n[o]=e(n[o],r):Pt(r)?n[o]=e({},r):At(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Bt(arguments[i],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Bt(t,((t,r)=>{n&&Ct(t)?e[r]=gt(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&vt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:wt,kindOfTest:_t,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(At(e))return e;let t=e.length;if(!Mt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:qt,hasOwnProperty:Wt,hasOwnProp:Wt,reduceDescriptors:Ht,freezeMethods:e=>{Ht(e,((t,n)=>{if(Ct(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Ct(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return At(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Nt,global:Ft,isContextDefined:jt,ALPHABET:Zt,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zt.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Ct(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Tt(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=At(e)?[]:{};return Bt(e,((e,t)=>
vendor: 2,603 bytes, line 2
2{const o=n(e,r+1);!kt(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:Qt,isThenable:e=>e&&(Tt(e)||Ct(e))&&Ct(e.then)&&Ct(e.catch)};function Xt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Yt.inherits(Xt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Yt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Jt=Xt.prototype,$t={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{$t[e]={value:e}})),Object.defineProperties(Xt,$t),Object.defineProperty(Jt,"isAxiosError",{value:!0}),Xt.from=(e,t,n,r,i,o)=>{const a=Object.create(Jt);return Yt.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Xt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const en=Xt;function tn(e){return Yt.isPlainObject(e)||Yt.isArray(e)}function nn(e){return Yt.endsWith(e,"[]")?e.slice(0,-2):e}function rn(e,t,n){return e?e.concat(t).map((function(e,t){return e=nn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const on=Yt.toFlatObject(Yt,{},null,(function(e){return/^is[A-Z]/.test(e)}));const an=function(e,t,n){if(!Yt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Yt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Yt.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&Yt.isSpecCompliantForm(t);if(!Yt.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Yt.isDate(e))return e.toISOString();if(!s&&Yt.isBlob(e))throw new en("Blob is not supported. Use a Buffer instead.");return Yt.isArrayBuffer(e)||Yt.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"===typeof e)if(Yt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Yt.isArray(e)&&function(e){return Yt.isArray(e)&&!e.some(tn)}(e)||(Yt.isFileList(e)||Yt.endsWith(n,"[]"))&&(s=Yt.toArray(e)))return n=nn(n),s.forEac
vendor: 6,447 bytes, line 2
2h((function(e,r){!Yt.isUndefined(e)&&null!==e&&t.append(!0===a?rn([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!tn(e)||(t.append(rn(i,n,o),l(e)),!1)}const u=[],h=Object.assign(on,{defaultVisitor:c,convertValue:l,isVisitable:tn});if(!Yt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Yt.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Yt.forEach(n,(function(n,o){!0===(!(Yt.isUndefined(n)||null===n)&&i.call(t,n,Yt.isString(o)?o.trim():o,r,h))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function sn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ln(e,t){this._pairs=[],e&&an(e,this,t)}const cn=ln.prototype;cn.append=function(e,t){this._pairs.push([e,t])},cn.toString=function(e){const t=e?function(t){return e.call(this,t,sn)}:sn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const un=ln;function hn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dn(e,t,n){if(!t)return e;const r=n&&n.encode||hn,i=n&&n.serialize;let o;if(o=i?i(t,n):Yt.isURLSearchParams(t)?t.toString():new un(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const pn=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Yt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},fn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mn={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:un,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},gn="undefined"!==typeof window&&"undefined"!==typeof document,yn=(vn="undefined"!==typeof navigator&&navigator.product,gn&&["ReactNative","NativeScript","NS"].indexOf(vn)<0);var vn;const wn="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,bn={...e,...mn};const _n=function(e){function t(e,n,r,i){let o=e[i++];const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&Yt.isArray(r)?r.length:o,s)return Yt.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&Yt.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&Yt.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a}if(Yt.isFormData(e)&&Yt.isFunction(e.entries)){const n={};return Yt.forEachEntry(e,((e,r)=>{t(function(e){return Yt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const xn={transitional:fn,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=Yt.isObject(e);i&&Yt.isHTMLForm(e)&&(e=new FormData(e));if(Yt.isFormData(e))return r&&r?JSON.stringify(_n(e)):e;if(Yt.isArrayBuffer(e)||Yt.isBuffer(e)||Yt.isStream(e)||Yt.isFile(e)||Yt.isBlob(e))return e;if(Yt.isArrayBufferView(e))return e.buffer;if(Yt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return an(e,new bn.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return bn.isNode&&Yt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=Yt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return an(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(Yt.isString(e))try{return(t||JSON.parse)(e),Yt.trim(e)}catch(ze){if("SyntaxError"!==ze.name)throw ze}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||xn.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Yt.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(ze){if(n){if("SyntaxError"===ze.name)throw en.from(ze,en.ERR_BAD_RESPONSE,this,null,this.response);throw ze}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn.classes.FormData,Blob:bn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Yt.forEach(["delete","get","head","post","put","patch"],(e=>{xn.headers[e]={}}));const An=xn,kn=Yt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Sn=Symbol("internals");function En(e){return e&&String(e).trim().toLowerCase()}function Cn(e){return!1===e||null==e?e:Yt.isArray(e)?e.map(Cn):String(e)}function Mn(e,t,n,r,i){return Yt.isFunction(r)?r.call(this,t,n):(i&&(t=n),Yt.isString(t)?Yt.isString(r)?-1!==t.indexOf(r):Yt.isRegExp(r)?r.test(t):void 0:void 0)}class Tn{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=En(t);if(!i)throw new Error("header name must be a non-empty string");const o=Yt.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Cn(e))}const o=(e,t)=>Yt.forEach(e,((e,n)=>i(e,n,t)));return Yt.isPlainObject(e)||e instanceof this.constructor?o(e,t):Yt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&kn[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=En(e)){const n=Yt.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;
2=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Yt.isFunction(t))return t.call(this,e,n);if(Yt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=En(e)){const n=Yt.findKey(this,e);return!(!n||void 0===this[n]||t&&!Mn(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=En(e)){const i=Yt.findKey(n,e);!i||t&&!Mn(0,n[i],i,t)||(delete n[i],r=!0)}}return Yt.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Mn(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return Yt.forEach(this,((r,i)=>{const o=Yt.findKey(n,i);if(o)return t[o]=Cn(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=Cn(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return Yt.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Yt.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[Sn]=this[Sn]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=En(e);t[r]||(!function(e,t){const n=Yt.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return Yt.isArray(e)?e.forEach(r):r(e),this}}Tn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Yt.reduceDescriptors(Tn.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),Yt.freezeMethods(Tn);const Pn=Tn;function Rn(e,t){const n=this||An,r=t||n,i=Pn.from(r.headers);let o=r.data;return Yt.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function In(e){return!(!e||!e.__CANCEL__)}function Ln(e,t,n){en.call(this,null==e?"canceled":e,en.ERR_CANCELED,t,n),this.name="CanceledError"}Yt.inherits(Ln,en,{__CANCEL__:!0});const On=Ln;const Dn=bn.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];Yt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Yt.isString(r)&&a.push("path="+r),Yt.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Bn(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Nn=bn.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Yt.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};const Fn=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,h=0;for(;u!==o;)h+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const d=c&&l-c;return d?Math.round(1e3*h/d):void 0}};function jn(e,t){let n=0;const r=Fn(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s);n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Un={http:null,xhr:"undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=Pn.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(Yt.isFormData(r))if(bn.hasStandardBrowserEnv||bn.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>
vendor: 2,299 bytes, line 2
2e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const h=Bn(e.baseURL,e.url);function d(){if(!u)return;const r=Pn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new en("Request failed with status code "+n.status,[en.ERR_BAD_REQUEST,en.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),dn(h,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new en("Request aborted",en.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new en("Network Error",en.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||fn;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new en(t,r.clarifyTimeoutError?en.ETIMEDOUT:en.ECONNABORTED,e,u)),u=null},bn.hasStandardBrowserEnv&&(l&&Yt.isFunction(l)&&(l=l(e)),l||!1!==l&&Nn(h))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Dn.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&Yt.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Yt.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",jn(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",jn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(n(!t||t.type?new On(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o))
2);const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(h);p&&-1===bn.protocols.indexOf(p)?n(new en("Unsupported protocol "+p+":",en.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};Yt.forEach(Un,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(ze){}Object.defineProperty(e,"adapterName",{value:t})}}));const zn=e=>"- ".concat(e),qn=e=>Yt.isFunction(e)||null===e||!1===e,Wn=e=>{e=Yt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!qn(n)&&(r=Un[(t=String(n)).toLowerCase()],void 0===r))throw new en("Unknown adapter '".concat(t,"'"));if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((e=>{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(zn).join("\n"):" "+zn(e[0]):"as no adapter specified";throw new en("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Vn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new On(null,e)}function Hn(e){Vn(e),e.headers=Pn.from(e.headers),e.data=Rn.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Wn(e.adapter||An.adapter)(e).then((function(t){return Vn(e),t.data=Rn.call(e,e.transformResponse,t),t.headers=Pn.from(t.headers),t}),(function(t){return In(t)||(Vn(e),t&&t.response&&(t.response.data=Rn.call(e,e.transformResponse,t.response),t.response.headers=Pn.from(t.response.headers))),Promise.reject(t)}))}const Kn=e=>e instanceof Pn?e.toJSON():e;function Gn(e,t){t=t||{};const n={};function r(e,t,n){return Yt.isPlainObject(e)&&Yt.isPlainObject(t)?Yt.merge.call({caseless:n},e,t):Yt.isPlainObject(t)?Yt.merge({},t):Yt.isArray(t)?t.slice():t}function i(e,t,n){return Yt.isUndefined(t)?Yt.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!Yt.isUndefined(t))return r(void 0,t)}function a(e,t){return Yt.isUndefined(t)?Yt.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(Kn(e),Kn(t),!0)};return Yt.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);Yt.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Zn="1.6.2",Qn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Qn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Yn={};Qn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new en(r(i," has been removed"+(t?" in "+t:"")),en.ERR_DEPRECATED);return t&&!Yn[i]&&(Yn[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const Xn={assertOptions:function(e,t,n){if("object"!==typeof e)throw new en("options must be an object",en.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new en("option "+o+" must be "+n,en.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new en("Unknown option "+o,en.ERR_BAD_OPTION)}},validators:Qn},Jn=Xn.validators;class $n{constructor(e){this.defaults=e,this.interceptors={request:new pn,response:new pn}}request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Gn(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Xn.assertOptions(n,{silentJSONParsing:Jn.transitional(Jn.boolean),forcedJSONParsing:Jn.transitional(Jn.boolean),clarifyTimeoutError:Jn.transitional(Jn.boolean)}
vendor: 2,528 bytes, line 2
2,!1),null!=r&&(Yt.isFunction(r)?t.paramsSerializer={serialize:r}:Xn.assertOptions(r,{encode:Jn.function,serialize:Jn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&Yt.merge(i.common,i[t.method]);i&&Yt.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Pn.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,h=0;if(!s){const e=[Hn.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);h<u;)c=c.then(e[h++],e[h++]);return c}u=a.length;let d=t;for(h=0;h<u;){const e=a[h++],t=a[h++];try{d=e(d)}catch(p){t.call(this,p);break}}try{c=Hn.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,u=l.length;h<u;)c=c.then(l[h++],l[h++]);return c}getUri(e){return dn(Bn((e=Gn(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Yt.forEach(["delete","get","head","options"],(function(e){$n.prototype[e]=function(t,n){return this.request(Gn(n||{},{method:e,url:t,data:(n||{}).data}))}})),Yt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Gn(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}$n.prototype[e]=t(),$n.prototype[e+"Form"]=t(!0)}));const er=$n;class tr{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new On(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new tr((function(t){e=t}));return{token:t,cancel:e}}}const nr=tr;const rr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
2alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rr).forEach((e=>{let[t,n]=e;rr[n]=t}));const ir=rr;const or=function e(t){const n=new er(t),r=gt(er.prototype.request,n);return Yt.extend(r,er.prototype,n,{allOwnKeys:!0}),Yt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Gn(t,n))},r}(An);or.Axios=er,or.CanceledError=On,or.CancelToken=nr,or.isCancel=In,or.VERSION=Zn,or.toFormData=an,or.AxiosError=en,or.Cancel=or.CanceledError,or.all=function(e){return Promise.all(e)},or.spread=function(e){return function(t){return e.apply(null,t)}},or.isAxiosError=function(e){return Yt.isObject(e)&&!0===e.isAxiosError},or.mergeConfig=Gn,or.AxiosHeaders=Pn,or.formToJSON=e=>_n(Yt.isHTMLForm(e)?new FormData(e):e),or.getAdapter=Wn,or.HttpStatusCode=ir,or.default=or;const ar=or,sr=[["PHNTM","#391379"],["TACOS","orange"],["A200","black"],["AKITA","#64e9b1"],["PHNTM","#391379"],["TACOS","orange"],["A200","black"],["AKITA","#64e9b1"]];let lr=0;function cr(e){let{accountAddress:n}=e;const[r,i]=(0,t.useState)(""),[o,l]=(0,t.useState)(!1),[c,u]=(0,t.useState)(""),[h,d]=(0,t.useState)(!1),[p,f]=(0,t.useState)(!1),[m,g]=(0,t.useState)(!1),[y,v]=(0,t.useState)(!1),[w,b]=(0,t.useState)(null),[_,x]=(0,t.useState)(null),A=(0,t.useRef)(null),k=(0,t.useContext)(a),S="https://phantoms-api.onrender.com/api/v1",E=async()=>{f(!0);try{const e=await async function(e,t,n,r,i){try{if(!Le.default.isValidAddress(e))throw new Error("Invalid from Algorand address provided.");if(!Le.default.isValidAddress(t))throw new Error("Invalid to Algorand address provided.");const o=await Oe.getTransactionParams().do();let a;return a="0"===r||""===r?Le.default.makePaymentTxnWithSuggestedParams(e,t,n,void 0,Le.default.encodeObj("".concat(i)),o):Le.default.makeAssetTransferTxnWithSuggestedParams(e,t,void 0,void 0,n,Le.default.encodeObj("".concat(i)),parseInt(r,10),o),[{txn:a,signers:[e]}]}catch(o){throw console.error("An error occurred:",o),o}}(n,n,0,"0","Phantom Pals Win Confirmation receipt for ".concat(n,": Spin the Wheel Game won ").concat(r));let t=await et(n,"1279721720");switch(r){case"AKITA":t=await et(n,"523683256");break;case"TACOS":t=await et(n,"329110405");break;case"VOI":t=await et(n,"1392374998");break;case"A200":t=await et(n,"1682662165")}x("Initiating opt-in request..., please watch for wallet popup.");const i=await k.signTransaction([t,e]);let o=0;for(const a of i){const{txId:e}=await Oe.sendRawTransaction(a).do();if(console.log("txns signed successfully! - txID: ".concat(e)),0===o)x(x("Opt in transaction sent successfully!"));else{u("".concat(e));const t=e;setTimeout((async()=>{x("Initiating reward distribution..., please watch for wallet popup.");try{var e,i,o;const a=await ar.post("".concat(S,"/send-spin-the-wheel-rewards"),{asset:r,to:n,winReceipt:t}),s=null===a||void 0===a||null===(e=a.data)||void 0===e||null===(i=e.txn)||void 0===i?void 0:i.txId,l=null===a||void 0===a||null===(o=a.data)||void 0===o?void 0:o.statusCode;429===l?(b(s),f(!1),s&&b(s),x("Only one reward per wallet address.")):200===l&&(console.log("Reward distribution txn:",s),b(s),f(!1),s&&b(s),x("Reward distribution completed"))}catch(a){console.error("Error recording participant:",a)}}),5e3)}o++,b("".concat(e,"}"))}}catch(e){console.error("Error handling game win:",e)}};(0,t.useEffect)((()=>{0===lr&&i((()=>{const e=Math.floor(Math.random()*sr.length);return sr[e][0]})()),lr++})),(0,t.useEffect)((()=>{n&&(C(),M())}),[n]);const C=async()=>{g(!0);try{var e;const t=await ar.post("".concat(S,"/check-participant"),{to:n}),r=null===t||void 0===t||null===(e=t.data)||void 0===e?void 0:e.statusCode;417===r&&(x("You need a Phantom Pals NFT to participate. See you soon!"),d(!0)),429===r&&(x("Only one spin per wallet address, per day. Please Try again tomorrow!"),d(!0)),g(!1)}catch(t){console.log("Error checking eligibility:",t),x("Sorry sonething went wrong, please try again later or contact us on discord or email us at [email protected]."),d(!0),g(!1)}},M=async()=>{try{var e,t;const n=await ar.post("".concat(S,"/check-reward-account-balance"));200===(null===n||void 0===n||null===(e=n.data)||void 0===e?void 0:e.statusCode)&&v(!0),400===(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.statusCode)&&(d(!0),v(!1))}catch(n){console.log("Error checking reward account balance:",n),v(!1),d(!0)}};return(0,s.jsxs)("div",{style:{wordWrap:"break-word",maxHeight:"100vh",minHeight:"70vh",maxWidth:"100vw",minWidth:"100vw"},className:"flex flex-col items-center gap-4 justify-center text-white",children:[!n&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)(Re,{})})}),n&&(0,s.jsxs)(s.Fragment,{children:[o&&(0,s.jsx)(nt(),{width:window.width,height:window.height}),(0,s.jsx)("div",{className:"pt-4",style:{maxHeight:"100vh",maxWidth:"100vw"},children:(0,s.jsx)(mt,{ref:A,hideButton:!0,result:r,data:sr,minTime:5e3})}),m?(0,s.jsx)("span",{className:"m-2 loading loading-spinner loading-lg text-white",children:(0,s.jsxs)("div",{className:"flex justify-center pb-4",children:[(0,s.jsx)("svg",{className:"animate-spin h-5 w-5 mr-3 ...",style:{border:"5px solid white"},viewBox:"0 0 24 24"}),(0,s.jsxs)("p",{style:{wordBreak:"break-word"},children:["Checking eligibility for: ",n]})]})}):(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center pb-4",children:[_&&(0,s.jsx)("p",{className:"mt-4 mb-4 px-12 py-2",children:_}),!y&&(0,s.jsx)("p",{className:"mt-2 mb-4 px-12 py-2",children:"We ap
2ologize for the incovinience but currently our reward account wallet is running low in balance. We will refill it soon. Thanks for your patience."}),w&&(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,s.jsxs)("a",{href:"https://allo.info/tx/".concat(c),target:"_blank",rel:"noopener noreferrer",className:"p-2 mt-4 text-white hover:underline",style:{wordBreak:"break-word"},children:["Phantom Pals Win Confirmation receipt- txID: ",c]}),(0,s.jsx)("p",{className:"p-2",style:{wordBreak:"break-word"},children:"keep this for your records or to claim your reward later through the discord channel if anything goes wrong."})]}),p&&(0,s.jsx)("span",{className:"m-2 loading loading-spinner loading-lg text-white",children:(0,s.jsxs)("div",{className:"flex justify-center pb-4",children:[(0,s.jsx)("svg",{className:"animate-spin h-5 w-5 mr-3 ...",style:{border:"5px solid white"},viewBox:"0 0 24 24"}),"Processing ..."]})}),w&&(0,s.jsxs)("a",{href:"https://allo.info/tx/".concat(w),target:"_blank",rel:"noopener noreferrer",className:"p-2 mt-4 text-black hover:underline",style:{wordBreak:"break-word"},children:["Transaction ID: ",w]}),(0,s.jsx)("button",{className:"bg-gradient-to-r from-red-400 to-red-800 px-8 py-4 rounded mx-2",disabled:h,onClick:()=>{d(!0),A.current.handleSpin(),setTimeout((()=>{l(!0),n&&E()}),3e3),setTimeout((()=>{l(!1)}),13e3)},children:"Spin"})]})]})]})}n.p;const ur=e=>{let{accountAddress:n}=e;const[r,i]=(0,t.useState)([]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("section",{className:"mt-4 stats stats-vertical col-span-12 w-full shadow-sm xl:stats-horizontal",children:(0,s.jsxs)("div",{className:"stats bg-white text-black shadow",children:[(0,s.jsxs)("div",{className:"stat p-12",children:[(0,s.jsx)("div",{className:"stat-title text-black animate-pulse",children:"Coming Soon..."}),(0,s.jsx)("div",{className:"stat-value",children:"31K"}),(0,s.jsx)("div",{className:"stat-desc",children:"Jan 1st - Feb 1st"})]}),(0,s.jsxs)("div",{className:"stat p-12",children:[(0,s.jsx)("div",{className:"stat-title text-black animate-pulse",children:"Coming Soon..."}),(0,s.jsx)("div",{className:"stat-value",children:"4,200"}),(0,s.jsx)("div",{className:"stat-desc",children:"\u2197\ufe0e 400 (22%)"})]})]})}),(0,s.jsxs)("section",{className:"stats bg-white text-black stats-vertical col-span-12 w-full shadow-sm xl:stats-horizontal",children:[(0,s.jsxs)("div",{className:"stat",children:[(0,s.jsx)("div",{className:"stat-title text-black animate-pulse",children:"Coming Soon..."}),(0,s.jsx)("div",{className:"stat-title text-black animate-pulse",children:"Total Page Views"}),(0,s.jsx)("div",{className:"stat-value",children:"89,400"}),(0,s.jsx)("div",{className:"stat-desc",children:"21% more than last month"})]}),(0,s.jsxs)("div",{className:"stat",children:[(0,s.jsx)("div",{className:"stat-title text-black animate-pulse",children:"Coming Soon..."}),(0,s.jsx)("div",{className:"stat-title text-black animate-pulse",children:"Total Page Views"}),(0,s.jsx)("div",{className:"stat-value",children:"89,400"}),(0,s.jsx)("div",{className:"stat-desc",children:"21% more than last month"})]})]}),(0,s.jsx)("section",{className:"stats stats-vertical col-span-12 w-full shadow-sm xl:stats-horizontal",children:(0,s.jsxs)("div",{className:"stats bg-primary text-primary-content",children:[(0,s.jsxs)("div",{className:"stat",children:[(0,s.jsx)("div",{className:"stat-title text-xl text-white animate-pulse",children:"Account balance, Coming Soon..."}),(0,s.jsx)("div",{className:"stat-value",children:"$89,400"})]}),(0,s.jsxs)("div",{className:"stat",children:[(0,s.jsx)("div",{className:"stat-title text-xl text-white animate-pulse",children:"Current balance, Coming Soon..."}),(0,s.jsx)("div",{className:"stat-value",children:"$89,400"})]})]})})]})},hr=e=>{let{accountAddress:t}=e;return(0,s.jsx)("div",{style:{wordWrap:"break-word",maxHeight:"100vh",minHeight:"71vh",maxWidth:"100vw",minWidth:"80vw"},className:"flex flex-col items-center justify-center text-white",children:(0,s.jsx)("div",{className:"grid grid-cols-12 grid-rows-[min-content] gap-y-12 p-4 lg:gap-x-12 lg:p-10",children:(0,s.jsx)(ur,{accountAddress:t})})})};
2function dr(){const[e,n]=(0,t.useState)("arc3"),[r,i]=(0,t.useState)(null),[o,a]=(0,t.useState)("dark");(0,t.useEffect)((()=>{document.documentElement.setAttribute("data-theme",o)}),[o]);return(0,s.jsxs)(Ae,{children:[(0,s.jsx)(rt,{}),(0,s.jsxs)("div",{className:"drawer min-h-screen bg-base-200 lg:drawer-open",children:[(0,s.jsx)("input",{id:"my-drawer",type:"checkbox",className:"drawer-toggle"}),(0,s.jsxs)("main",{className:"drawer-content",children:[(0,s.jsx)(Ie,{setConnectedAccountAddress:i}),(0,s.jsxs)(ye,{children:[(0,s.jsx)(me,{path:"/",element:(0,s.jsx)(Ne,{})}),(0,s.jsx)(me,{path:"/token-info",element:(0,s.jsx)(it,{})}),(0,s.jsx)(me,{path:"/dashboard",element:(0,s.jsx)(hr,{accountAddress:r})}),(0,s.jsx)(me,{path:"/spin-the-wheel",element:(0,s.jsx)(cr,{accountAddress:r})}),(0,s.jsx)(me,{path:"/phantom-v1",element:(0,s.jsx)(Fe,{accountAddress:"IWY24Q6GUUIMJITMTR3FDO4Q54UCBPPPIWJUQ57CWLASPRHFHXTXIQUQYA"})})]})]})]})]})}const pr=function(){return(0,s.jsx)(c,{children:(0,s.jsx)(dr,{})})},fr=e=>{e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((t=>{let{getCLS:n,getFID:r,getFCP:i,getLCP:o,getTTFB:a}=t;n(e),r(e),i(e),o(e),a(e)}))};i.createRoot(document.getElementById("root")).render((0,s.jsx)(t.StrictMode,{children:(0,s.jsx)(pr,{})})),fr()})()})();
3//# sourceMappingURL=main.cccb157c.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.