algomintx 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/algomintx.js +1 -1
- package/dist/algomintx.js.LICENSE.txt +33 -0
- package/package.json +1 -1
- package/dist/263.algomintx.esm.js +0 -2
- package/dist/263.algomintx.esm.js.LICENSE.txt +0 -23
- package/dist/263.algomintx.js +0 -2
- package/dist/263.algomintx.js.LICENSE.txt +0 -23
- package/dist/331.algomintx.esm.js +0 -1
- package/dist/331.algomintx.js +0 -1
- package/dist/42.algomintx.esm.js +0 -2
- package/dist/42.algomintx.esm.js.LICENSE.txt +0 -8
- package/dist/42.algomintx.js +0 -2
- package/dist/42.algomintx.js.LICENSE.txt +0 -8
- package/dist/532.algomintx.esm.js +0 -1
- package/dist/532.algomintx.js +0 -1
- package/dist/790.algomintx.esm.js +0 -1
- package/dist/790.algomintx.js +0 -1
- package/dist/975.algomintx.esm.js +0 -1
- package/dist/975.algomintx.js +0 -1
- package/dist/algomintx.esm.js +0 -2
- package/dist/algomintx.esm.js.LICENSE.txt +0 -19
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=331;export const __webpack_ids__=[331];export const __webpack_modules__={494:(t,e,n)=>{var a,i;"undefined"!=typeof navigator&&(i=window||{},void 0===(a=function(){return function(t){var e,n="",a=-999999,i=!1,r=!0,o="",s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),l=Math.pow,h=Math.sqrt,p=Math.floor,d=(Math.max,Math.min),c={};(function(){var t,e=["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=e.length;for(t=0;t<n;t+=1)c[e[t]]=Math[e[t]]})(),c.random=Math.random,c.abs=function(t){if("object"==typeof t&&t.length){var e,n=I(t.length),a=t.length;for(e=0;e<a;e+=1)n[e]=Math.abs(t[e]);return n}return Math.abs(t)};var f=150,m=Math.PI/180,u=.5519;function g(t){t&&Math.round}function v(t,e,n,a){this.type=t,this.currentTime=e,this.totalTime=n,this.direction=a<0?-1:1}function w(t,e){this.type=t,this.direction=e<0?-1:1}function y(t,e,n,a){this.type=t,this.currentLoop=n,this.totalLoops=e,this.direction=a<0?-1:1}function _(t,e,n){this.type=t,this.firstFrame=e,this.totalFrames=n}function b(t,e){this.type=t,this.target=e}function x(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function C(t){this.type="configError",this.nativeError=t}g(!1);var k,A=(k=0,function(){return o+"__lottie_element_"+(k+=1)});function M(t,e,n){var a,i,r,o,s,l,h,p;switch(l=n*(1-e),h=n*(1-(s=6*t-(o=Math.floor(6*t)))*e),p=n*(1-(1-s)*e),o%6){case 0:a=n,i=p,r=l;break;case 1:a=h,i=n,r=l;break;case 2:a=l,i=n,r=p;break;case 3:a=l,i=h,r=n;break;case 4:a=p,i=l,r=n;break;case 5:a=n,i=l,r=h}return[a,i,r]}function L(t,e,n){var a,i=Math.max(t,e,n),r=Math.min(t,e,n),o=i-r,s=0===i?0:o/i,l=i/255;switch(i){case r:a=0;break;case t:a=e-n+o*(e<n?6:0),a/=6*o;break;case e:a=n-t+2*o,a/=6*o;break;case n:a=t-e+4*o,a/=6*o}return[a,s,l]}function S(t,e){var n=L(255*t[0],255*t[1],255*t[2]);return n[1]+=e,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),M(n[0],n[1],n[2])}function P(t,e){var n=L(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),M(n[0],n[1],n[2])}function E(t,e){var n=L(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),M(n[0],n[1],n[2])}!function(){var t,e,n=[];for(t=0;t<256;t+=1)e=t.toString(16),n[t]=1===e.length?"0"+e:e}();function D(){}D.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var n=this._cbs[t],a=0;a<n.length;a+=1)n[a](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var n=0,a=this._cbs[t].length;n<a;)this._cbs[t][n]===e&&(this._cbs[t].splice(n,1),n-=1,a-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var F=function(){function t(t,e){var n,a=0,i=[];switch(t){case"int16":case"uint8c":n=1;break;default:n=1.1}for(a=0;a<e;a+=1)i.push(n);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,n){return"float32"===e?new Float32Array(n):"int16"===e?new Int16Array(n):"uint8c"===e?new Uint8ClampedArray(n):t(e,n)}:t}();function I(t){return Array.apply(null,{length:t})}function T(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function z(t){return document.createElement(t)}function R(){}R.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var B,V=(B={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"},function(t){return B[t]||""}),O={1:"butt",2:"round",3:"square"},N={1:"miter",2:"round",3:"bevel"},q=function(){var t=Math.cos,e=Math.sin,n=Math.tan,a=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 r(n){if(0===n)return this;var a=t(n),i=e(n);return this._t(a,-i,0,0,i,a,0,0,0,0,1,0,0,0,0,1)}function o(n){if(0===n)return this;var a=t(n),i=e(n);return this._t(1,0,0,0,0,a,-i,0,0,i,a,0,0,0,0,1)}function s(n){if(0===n)return this;var a=t(n),i=e(n);return this._t(a,0,i,0,0,1,0,0,-i,0,a,0,0,0,0,1)}function l(n){if(0===n)return this;var a=t(n),i=e(n);return this._t(a,-i,0,0,i,a,0,0,0,0,1,0,0,0,0,1)}function h(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(n(t),n(e))}function d(a,i){var r=t(i),o=e(i);return this._t(r,o,0,0,-o,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(a),1,0,0,0,0,1,0,0,0,0,1)._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function c(t,e,n){return n||0===n||(n=1),1===t&&1===e&&1===n?this:this._t(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1)}function f(t,e,n,a,i,r,o,s,l,h,p,d,c,f,m,u){return this.props[0]=t,this.props[1]=e,this.props[2]=n,this.props[3]=a,this.props[4]=i,this.props[5]=r,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=h,this.props[10]=p,this.props[11]=d,this.props[12]=c,this.props[13]=f,this.props[14]=m,this.props[15]=u,this}function m(t,e,n){return n=n||0,0!==t||0!==e||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1):this}function u(t,e,n,a,i,r,o,s,l,h,p,d,c,f,m,u){var g=this.props;if(1===t&&0===e&&0===n&&0===a&&0===i&&1===r&&0===o&&0===s&&0===l&&0===h&&1===p&&0===d)return g[12]=g[12]*t+g[15]*c,g[13]=g[13]*r+g[15]*f,g[14]=g[14]*p+g[15]*m,g[15]*=u,this._identityCalculated=!1,this;var v=g[0],w=g[1],y=g[2],_=g[3],b=g[4],x=g[5],C=g[6],k=g[7],A=g[8],M=g[9],L=g[10],S=g[11],P=g[12],E=g[13],D=g[14],F=g[15];return g[0]=v*t+w*i+y*l+_*c,g[1]=v*e+w*r+y*h+_*f,g[2]=v*n+w*o+y*p+_*m,g[3]=v*a+w*s+y*d+_*u,g[4]=b*t+x*i+C*l+k*c,g[5]=b*e+x*r+C*h+k*f,g[6]=b*n+x*o+C*p+k*m,g[7]=b*a+x*s+C*d+k*u,g[8]=A*t+M*i+L*l+S*c,g[9]=A*e+M*r+L*h+S*f,g[10]=A*n+M*o+L*p+S*m,g[11]=A*a+M*s+L*d+S*u,g[12]=P*t+E*i+D*l+F*c,g[13]=P*e+E*r+D*h+F*f,g[14]=P*n+E*o+D*p+F*m,g[15]=P*a+E*s+D*d+F*u,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 v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function w(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function y(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function _(t,e,n){return{x:t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}}function b(t,e,n){return t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12]}function x(t,e,n){return t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13]}function C(t,e,n){return t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}function k(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,n=-this.props[1]/t,a=-this.props[4]/t,i=this.props[0]/t,r=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,s=new q;return s.props[0]=e,s.props[1]=n,s.props[4]=a,s.props[5]=i,s.props[12]=r,s.props[13]=o,s}function A(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function M(t){var e,n=t.length,a=[];for(e=0;e<n;e+=1)a[e]=A(t[e]);return a}function L(t,e,n){var a=F("float32",6);if(this.isIdentity())a[0]=t[0],a[1]=t[1],a[2]=e[0],a[3]=e[1],a[4]=n[0],a[5]=n[1];else{var i=this.props[0],r=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],h=this.props[13];a[0]=t[0]*i+t[1]*o+l,a[1]=t[0]*r+t[1]*s+h,a[2]=e[0]*i+e[1]*o+l,a[3]=e[0]*r+e[1]*s+h,a[4]=n[0]*i+n[1]*o+l,a[5]=n[0]*r+n[1]*s+h}return a}function S(t,e,n){return this.isIdentity()?[t,e,n]:[t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]]}function P(t,e){if(this.isIdentity())return t+","+e;var n=this.props;return Math.round(100*(t*n[0]+e*n[4]+n[12]))/100+","+Math.round(100*(t*n[1]+e*n[5]+n[13]))/100}function E(){for(var t=0,e=this.props,n="matrix3d(";t<16;)n+=a(1e4*e[t])/1e4,n+=15===t?")":",",t+=1;return n}function D(t){return t<1e-6&&t>0||t>-1e-6&&t<0?a(1e4*t)/1e4:t}function I(){var t=this.props;return"matrix("+D(t[0])+","+D(t[1])+","+D(t[4])+","+D(t[5])+","+D(t[12])+","+D(t[13])+")"}return function(){this.reset=i,this.rotate=r,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=p,this.skewFromAxis=d,this.shear=h,this.scale=c,this.setTransform=f,this.translate=m,this.transform=u,this.applyToPoint=_,this.applyToX=b,this.applyToY=x,this.applyToZ=C,this.applyToPointArray=S,this.applyToTriplePoints=L,this.applyToPointStringified=P,this.toCSS=E,this.to2dCSS=I,this.clone=w,this.cloneFromProps=y,this.equals=v,this.inversePoints=M,this.inversePoint=A,this.getInverseMatrix=k,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=F("float32",16),this.reset()}}();!function(t,e){var n,a=this,i=256,r="random",o=e.pow(i,6),s=e.pow(2,52),l=2*s,h=255;function p(t){var e,n=t.length,a=this,r=0,o=a.i=a.j=0,s=a.S=[];for(n||(t=[n++]);r<i;)s[r]=r++;for(r=0;r<i;r++)s[r]=s[o=h&o+t[r%n]+(e=s[r])],s[o]=e;a.g=function(t){for(var e,n=0,r=a.i,o=a.j,s=a.S;t--;)e=s[r=h&r+1],n=n*i+s[h&(s[r]=s[o=h&o+e])+(s[o]=e)];return a.i=r,a.j=o,n}}function d(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function c(t,e){var n,a=[],i=typeof t;if(e&&"object"==i)for(n in t)try{a.push(c(t[n],e-1))}catch(t){}return a.length?a:"string"==i?t:t+"\0"}function f(t,e){for(var n,a=t+"",i=0;i<a.length;)e[h&i]=h&(n^=19*e[h&i])+a.charCodeAt(i++);return m(e)}function m(t){return String.fromCharCode.apply(0,t)}e["seed"+r]=function(h,u,g){var v=[],w=f(c((u=!0===u?{entropy:!0}:u||{}).entropy?[h,m(t)]:null===h?function(){try{n;var e=new Uint8Array(i);return(a.crypto||a.msCrypto).getRandomValues(e),m(e)}catch(e){var r=a.navigator,o=r&&r.plugins;return[+new Date,a,o,a.screen,m(t)]}}():h,3),v),y=new p(v),_=function(){for(var t=y.g(6),e=o,n=0;t<s;)t=(t+n)*i,e*=i,n=y.g(1);for(;t>=l;)t/=2,e/=2,n>>>=1;return(t+n)/e};return _.int32=function(){return 0|y.g(4)},_.quick=function(){return y.g(4)/4294967296},_.double=_,f(m(y.S),t),(u.pass||g||function(t,n,a,i){return i&&(i.S&&d(i,y),t.state=function(){return d(y,{})}),a?(e[r]=t,n):t})(_,w,"global"in u?u.global:this==e,u.state)},f(e.random(),t)}([],c);var H=function(){var t={getBezierEasing:function(t,n,a,i,r){var o=r||("bez_"+t+"_"+n+"_"+a+"_"+i).replace(/\./g,"p");if(e[o])return e[o];var s=new p([t,n,a,i]);return e[o]=s,s}},e={};var n=11,a=1/(n-1),i="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,n){return((r(e,n)*t+o(e,n))*t+s(e))*t}function h(t,e,n){return 3*r(e,n)*t*t+2*o(e,n)*t+s(e)}function p(t){this._p=t,this._mSampleValues=i?new Float32Array(n):new Array(n),this._precomputed=!1,this.get=this.get.bind(this)}return p.prototype={get:function(t){var e=this._p[0],n=this._p[1],a=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),e===n&&a===i?t:0===t?0:1===t?1:l(this._getTForX(t),n,i)},_precompute:function(){var t=this._p[0],e=this._p[1],n=this._p[2],a=this._p[3];this._precomputed=!0,t===e&&n===a||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<n;++i)this._mSampleValues[i]=l(i*a,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],r=this._mSampleValues,o=0,s=1,p=n-1;s!==p&&r[s]<=t;++s)o+=a;var d=o+(t-r[--s])/(r[s+1]-r[s])*a,c=h(d,e,i);return c>=.001?function(t,e,n,a){for(var i=0;i<4;++i){var r=h(e,n,a);if(0===r)return e;e-=(l(e,n,a)-t)/r}return e}(t,d,e,i):0===c?d:function(t,e,n,a,i){var r,o,s=0;do{(r=l(o=e+(n-e)/2,a,i)-t)>0?n=o:e=o}while(Math.abs(r)>1e-7&&++s<10);return o}(t,o,o+a,e,i)}},t}();function Z(t,e){var n,a,i=t.length;for(n=0;n<i;n+=1)for(var r in a=t[n].prototype)Object.prototype.hasOwnProperty.call(a,r)&&(e.prototype[r]=a[r])}!function(){for(var e=0,n=["ms","moz","webkit","o"],a=0;a<n.length&&!t.requestAnimationFrame;++a)t.requestAnimationFrame=t[n[a]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[n[a]+"CancelAnimationFrame"]||t[n[a]+"CancelRequestAnimationFrame"];t.requestAnimationFrame||(t.requestAnimationFrame=function(t){var n=(new Date).getTime(),a=Math.max(0,16-(n-e)),i=setTimeout((function(){t(n+a)}),a);return e=n+a,i}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(t){clearTimeout(t)})}();var j=function(){var t=Math;function e(t,e,n,a,i,r){var o=t*a+e*i+n*r-i*a-r*t-n*e;return o>-.001&&o<.001}var n=function(t,e,n,a){var i,r,o,s,p,d,c=f,m=0,u=[],g=[],v=At.newElement();for(o=n.length,i=0;i<c;i+=1){for(p=i/(c-1),d=0,r=0;r<o;r+=1)s=l(1-p,3)*t[r]+3*l(1-p,2)*p*n[r]+3*(1-p)*l(p,2)*a[r]+l(p,3)*e[r],u[r]=s,null!==g[r]&&(d+=l(u[r]-g[r],2)),g[r]=u[r];d&&(m+=d=h(d)),v.percents[i]=p,v.lengths[i]=m}return v.addedLength=m,v};function a(t){this.segmentLength=0,this.points=new Array(t)}function i(t,e){this.partialLength=t,this.point=e}var r,o=(r={},function(t,n,o,s){var p=(t[0]+"_"+t[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!r[p]){var d,c,m,u,g,v,w,y=f,_=0,b=null;2===t.length&&(t[0]!==n[0]||t[1]!==n[1])&&e(t[0],t[1],n[0],n[1],t[0]+o[0],t[1]+o[1])&&e(t[0],t[1],n[0],n[1],n[0]+s[0],n[1]+s[1])&&(y=2);var x=new a(y);for(m=o.length,d=0;d<y;d+=1){for(w=I(m),g=d/(y-1),v=0,c=0;c<m;c+=1)u=l(1-g,3)*t[c]+3*l(1-g,2)*g*(t[c]+o[c])+3*(1-g)*l(g,2)*(n[c]+s[c])+l(g,3)*n[c],w[c]=u,null!==b&&(v+=l(w[c]-b[c],2));_+=v=h(v),x.points[d]=new i(v,w),b=w}x.segmentLength=_,r[p]=x}return r[p]});function s(t,e){var n=e.percents,a=e.lengths,i=n.length,r=p((i-1)*t),o=t*e.addedLength,s=0;if(r===i-1||0===r||o===a[r])return n[r];for(var l=a[r]>o?-1:1,h=!0;h;)if(a[r]<=o&&a[r+1]>o?(s=(o-a[r])/(a[r+1]-a[r]),h=!1):r+=l,r<0||r>=i-1){if(r===i-1)return n[r];h=!1}return n[r]+(n[r+1]-n[r])*s}var d=F("float32",8);return{getSegmentsLength:function(t){var e,a=kt.newElement(),i=t.c,r=t.v,o=t.o,s=t.i,l=t._length,h=a.lengths,p=0;for(e=0;e<l-1;e+=1)h[e]=n(r[e],r[e+1],o[e],s[e+1]),p+=h[e].addedLength;return i&&l&&(h[e]=n(r[e],r[0],o[e],s[0]),p+=h[e].addedLength),a.totalLength=p,a},getNewSegment:function(e,n,a,i,r,o,l){r<0?r=0:r>1&&(r=1);var h,p=s(r,l),c=s(o=o>1?1:o,l),f=e.length,m=1-p,u=1-c,g=m*m*m,v=p*m*m*3,w=p*p*m*3,y=p*p*p,_=m*m*u,b=p*m*u+m*p*u+m*m*c,x=p*p*u+m*p*c+p*m*c,C=p*p*c,k=m*u*u,A=p*u*u+m*c*u+m*u*c,M=p*c*u+m*c*c+p*u*c,L=p*c*c,S=u*u*u,P=c*u*u+u*c*u+u*u*c,E=c*c*u+u*c*c+c*u*c,D=c*c*c;for(h=0;h<f;h+=1)d[4*h]=t.round(1e3*(g*e[h]+v*a[h]+w*i[h]+y*n[h]))/1e3,d[4*h+1]=t.round(1e3*(_*e[h]+b*a[h]+x*i[h]+C*n[h]))/1e3,d[4*h+2]=t.round(1e3*(k*e[h]+A*a[h]+M*i[h]+L*n[h]))/1e3,d[4*h+3]=t.round(1e3*(S*e[h]+P*a[h]+E*i[h]+D*n[h]))/1e3;return d},getPointInSegment:function(e,n,a,i,r,o){var l=s(r,o),h=1-l;return[t.round(1e3*(h*h*h*e[0]+(l*h*h+h*l*h+h*h*l)*a[0]+(l*l*h+h*l*l+l*h*l)*i[0]+l*l*l*n[0]))/1e3,t.round(1e3*(h*h*h*e[1]+(l*h*h+h*l*h+h*h*l)*a[1]+(l*l*h+h*l*l+l*h*l)*i[1]+l*l*l*n[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(n,a,i,r,o,s,l,h,p){if(0===i&&0===s&&0===p)return e(n,a,r,o,l,h);var d,c=t.sqrt(t.pow(r-n,2)+t.pow(o-a,2)+t.pow(s-i,2)),f=t.sqrt(t.pow(l-n,2)+t.pow(h-a,2)+t.pow(p-i,2)),m=t.sqrt(t.pow(l-r,2)+t.pow(h-o,2)+t.pow(p-s,2));return(d=c>f?c>m?c-f-m:m-f-c:m>f?m-f-c:f-c-m)>-1e-4&&d<1e-4}}}(),W=function(){var e,n,a=1,r=[],o={onmessage:function(){},postMessage:function(t){e({data:t})}},s={postMessage:function(t){o.onmessage({data:t})}};function l(){n||(n=function(n){if(t.Worker&&t.Blob&&i){var a=new Blob(["var _workerSelf = self; self.onmessage = ",n.toString()],{type:"text/javascript"}),r=URL.createObjectURL(a);return new Worker(r)}return e=n,o}((function(t){if(s.dataManager||(s.dataManager=function(){function t(i,r){var o,s,l,h,p,d,c,f=i.length;for(s=0;s<f;s+=1)if("ks"in(o=i[s])&&!o.completed){if(o.completed=!0,o.tt&&(i[s-1].td=o.tt),o.hasMask){var m=o.masksProperties;for(h=m.length,l=0;l<h;l+=1)if(m[l].pt.k.i)a(m[l].pt.k);else for(d=m[l].pt.k.length,p=0;p<d;p+=1)m[l].pt.k[p].s&&a(m[l].pt.k[p].s[0]),m[l].pt.k[p].e&&a(m[l].pt.k[p].e[0])}0===o.ty?(o.layers=e(o.refId,r),t(o.layers,r)):4===o.ty?n(o.shapes):5===o.ty&&(0!==(c=o).t.a.length||"m"in c.t.p||(c.singleShape=!0))}}function e(t,e){for(var n=0,a=e.length;n<a;){if(e[n].id===t)return e[n].layers.__used?JSON.parse(JSON.stringify(e[n].layers)):(e[n].layers.__used=!0,e[n].layers);n+=1}return null}function n(t){var e,i,r;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)a(t[e].ks.k);else for(r=t[e].ks.k.length,i=0;i<r;i+=1)t[e].ks.k[i].s&&a(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&a(t[e].ks.k[i].e[0]);else"gr"===t[e].ty&&n(t[e].it)}function a(t){var e,n=t.i.length;for(e=0;e<n;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function i(t,e){var n=e?e.split("."):[100,100,100];return t[0]>n[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&null))}var r,o=function(){var t=[4,4,14];function e(t){var e,n,a,i=t.length;for(e=0;e<i;e+=1)5===t[e].ty&&(n=t[e],a=void 0,a=n.t.d,n.t.d={k:[{s:a,t:0}]})}return function(n){if(i(t,n.v)&&(e(n.layers),n.assets)){var a,r=n.assets.length;for(a=0;a<r;a+=1)n.assets[a].layers&&e(n.assets[a].layers)}}}(),s=(r=[4,7,99],function(t){if(t.chars&&!i(r,t.v)){var e,n,o,s,l,h=t.chars.length;for(e=0;e<h;e+=1)if(t.chars[e].data&&t.chars[e].data.shapes)for(o=(l=t.chars[e].data.shapes[0].it).length,n=0;n<o;n+=1)(s=l[n].ks.k).__converted||(a(l[n].ks.k),s.__converted=!0)}}),l=function(){var t=[5,7,15];function e(t){var e,n,a,i=t.length;for(e=0;e<i;e+=1)5===t[e].ty&&(n=t[e],a=void 0,"number"==typeof(a=n.t.p).a&&(a.a={a:0,k:a.a}),"number"==typeof a.p&&(a.p={a:0,k:a.p}),"number"==typeof a.r&&(a.r={a:0,k:a.r}))}return function(n){if(i(t,n.v)&&(e(n.layers),n.assets)){var a,r=n.assets.length;for(a=0;a<r;a+=1)n.assets[a].layers&&e(n.assets[a].layers)}}}(),h=function(){var t=[4,1,9];function e(t){var n,a,i,r=t.length;for(n=0;n<r;n+=1)if("gr"===t[n].ty)e(t[n].it);else if("fl"===t[n].ty||"st"===t[n].ty)if(t[n].c.k&&t[n].c.k[0].i)for(i=t[n].c.k.length,a=0;a<i;a+=1)t[n].c.k[a].s&&(t[n].c.k[a].s[0]/=255,t[n].c.k[a].s[1]/=255,t[n].c.k[a].s[2]/=255,t[n].c.k[a].s[3]/=255),t[n].c.k[a].e&&(t[n].c.k[a].e[0]/=255,t[n].c.k[a].e[1]/=255,t[n].c.k[a].e[2]/=255,t[n].c.k[a].e[3]/=255);else t[n].c.k[0]/=255,t[n].c.k[1]/=255,t[n].c.k[2]/=255,t[n].c.k[3]/=255}function n(t){var n,a=t.length;for(n=0;n<a;n+=1)4===t[n].ty&&e(t[n].shapes)}return function(e){if(i(t,e.v)&&(n(e.layers),e.assets)){var a,r=e.assets.length;for(a=0;a<r;a+=1)e.assets[a].layers&&n(e.assets[a].layers)}}}(),p=function(){var t=[4,4,18];function e(t){var n,a,i;for(n=t.length-1;n>=0;n-=1)if("sh"===t[n].ty)if(t[n].ks.k.i)t[n].ks.k.c=t[n].closed;else for(i=t[n].ks.k.length,a=0;a<i;a+=1)t[n].ks.k[a].s&&(t[n].ks.k[a].s[0].c=t[n].closed),t[n].ks.k[a].e&&(t[n].ks.k[a].e[0].c=t[n].closed);else"gr"===t[n].ty&&e(t[n].it)}function n(t){var n,a,i,r,o,s,l=t.length;for(a=0;a<l;a+=1){if((n=t[a]).hasMask){var h=n.masksProperties;for(r=h.length,i=0;i<r;i+=1)if(h[i].pt.k.i)h[i].pt.k.c=h[i].cl;else for(s=h[i].pt.k.length,o=0;o<s;o+=1)h[i].pt.k[o].s&&(h[i].pt.k[o].s[0].c=h[i].cl),h[i].pt.k[o].e&&(h[i].pt.k[o].e[0].c=h[i].cl)}4===n.ty&&e(n.shapes)}}return function(e){if(i(t,e.v)&&(n(e.layers),e.assets)){var a,r=e.assets.length;for(a=0;a<r;a+=1)e.assets[a].layers&&n(e.assets[a].layers)}}}(),d={completeData:function(e){e.__complete||(h(e),o(e),s(e),l(e),p(e),t(e.layers,e.assets),e.__complete=!0)}};return d.checkColors=h,d.checkChars=s,d.checkPathProperties=l,d.checkShapes=p,d.completeLayers=t,d}()),s.assetLoader||(s.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,n,a,i){var r,o=new XMLHttpRequest;try{o.responseType="json"}catch(t){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)r=t(o),a(r);else try{r=t(o),a(r)}catch(t){i&&i(t)}};try{o.open("GET",e,!0)}catch(t){o.open("GET",n+"/"+e,!0)}o.send()}}}()),"loadAnimation"===t.data.type)s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}))})),n.onmessage=function(t){var e=t.data,n=e.id,a=r[n];r[n]=null,"success"===e.status?a.onComplete(e.payload):a.onError&&a.onError()})}function h(t,e){var n="processId_"+(a+=1);return r[n]={onComplete:t,onError:e},n}return{loadAnimation:function(e,a,i){l();var r=h(a,i);n.postMessage({type:"loadAnimation",path:e,fullPath:t.location.origin+t.location.pathname,id:r})},loadData:function(e,a,i){l();var r=h(a,i);n.postMessage({type:"loadData",path:e,fullPath:t.location.origin+t.location.pathname,id:r})},completeAnimation:function(t,e,a){l();var i=h(e,a);n.postMessage({type:"complete",animation:t,id:i})}}}();function G(t){for(var e=t.fStyle?t.fStyle.split(" "):[],n="normal",a="normal",i=e.length,r=0;r<i;r+=1)switch(e[r].toLowerCase()){case"italic":a="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:a,weight:t.fWeight||n}}var U=function(){var t={w:0,size:0,shapes:[]},e=[];e=e.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 n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],a=[65039,8205];function i(t,e){var n=z("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=e;var a=z("span");a.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(a),document.body.appendChild(n);var i=a.offsetWidth;return a.style.fontFamily=function(t){var e,n=t.split(","),a=n.length,i=[];for(e=0;e<a;e+=1)"sans-serif"!==n[e]&&"monospace"!==n[e]&&i.push(n[e]);return i.join(",")}(t)+", "+e,{node:a,w:i,parent:n}}function r(t,e){var n=T("text");n.style.fontSize="100px";var a=G(e);return n.setAttribute("font-family",e.fFamily),n.setAttribute("font-style",a.style),n.setAttribute("font-weight",a.weight),n.textContent="1",e.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",e.fClass)):n.style.fontFamily=e.fFamily,t.appendChild(n),z("canvas").getContext("2d").font=e.fWeight+" "+e.fStyle+" 100px "+e.fFamily,n}var o=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)};return o.isModifier=function(t,e){var a=t.toString(16)+e.toString(16);return-1!==n.indexOf(a)},o.isZeroWidthJoiner=function(t,e){return e?t===a[0]&&e===a[1]:t===a[1]},o.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},o.prototype={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var n,a,i=t.length,r=this.chars.length;for(e=0;e<i;e+=1){for(n=0,a=!1;n<r;)this.chars[n].style===t[e].style&&this.chars[n].fFamily===t[e].fFamily&&this.chars[n].ch===t[e].ch&&(a=!0),n+=1;a||(this.chars.push(t[e]),r+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);var n,a=t.list,o=a.length,s=o;for(n=0;n<o;n+=1){var l,h,p=!0;if(a[n].loaded=!1,a[n].monoCase=i(a[n].fFamily,"monospace"),a[n].sansCase=i(a[n].fFamily,"sans-serif"),a[n].fPath){if("p"===a[n].fOrigin||3===a[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+a[n].fFamily+'"], style[f-origin="3"][f-family="'+a[n].fFamily+'"]')).length>0&&(p=!1),p){var d=z("style");d.setAttribute("f-forigin",a[n].fOrigin),d.setAttribute("f-origin",a[n].origin),d.setAttribute("f-family",a[n].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+a[n].fFamily+"; font-style: normal; src: url('"+a[n].fPath+"');}",e.appendChild(d)}}else if("g"===a[n].fOrigin||1===a[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<l.length;h+=1)-1!==l[h].href.indexOf(a[n].fPath)&&(p=!1);if(p){var c=z("link");c.setAttribute("f-forigin",a[n].fOrigin),c.setAttribute("f-origin",a[n].origin),c.type="text/css",c.rel="stylesheet",c.href=a[n].fPath,document.body.appendChild(c)}}else if("t"===a[n].fOrigin||2===a[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)a[n].fPath===l[h].src&&(p=!1);if(p){var f=z("link");f.setAttribute("f-forigin",a[n].fOrigin),f.setAttribute("f-origin",a[n].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",a[n].fPath),e.appendChild(f)}}}else a[n].loaded=!0,s-=1;a[n].helper=r(e,a[n]),a[n].cache={},this.fonts.push(a[n])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,n,a){for(var i=0,r=this.chars.length;i<r;){if(this.chars[i].ch===e&&this.chars[i].style===n&&this.chars[i].fFamily===a)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,a)),t},getFontByName:function(t){for(var e=0,n=this.fonts.length;e<n;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,n){var a=this.getFontByName(e),i=t.charCodeAt(0);if(!a.cache[i+1]){var r=a.helper;if(" "===t){r.textContent="|"+t+"|";var o=r.getComputedTextLength();r.textContent="||";var s=r.getComputedTextLength();a.cache[i+1]=(o-s)/100}else r.textContent=t,a.cache[i+1]=r.getComputedTextLength()/100}return a.cache[i+1]*n},checkLoadedFonts:function(){var t,e,n,a=this.fonts.length,i=a;for(t=0;t<a;t+=1)this.fonts[t].loaded?i-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,n=this.fonts[t].monoCase.w,e.offsetWidth!==n?(i-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,n=this.fonts[t].sansCase.w,e.offsetWidth!==n&&(i-=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!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},o}(),$=function(){var t=a,e=Math.abs;function n(t,e){var n,a=this.offsetTime;"multidimensional"===this.propType&&(n=F("float32",this.pv.length));for(var r,o,s,l,h,p,d,c,f,u=e.lastIndex,g=u,v=this.keyframes.length-1,w=!0;w;){if(r=this.keyframes[g],o=this.keyframes[g+1],g===v-1&&t>=o.t-a){r.h&&(r=o),u=0;break}if(o.t-a>t){u=g;break}g<v-1?g+=1:(u=0,w=!1)}s=this.keyframesMetadata[g]||{};var y,_,b,x,C,k,A,M,L,S,P,E,D,I,T,z,R,B,V=o.t-a,O=r.t-a;if(r.to){s.bezierData||(s.bezierData=j.buildBezierData(r.s,o.s||r.e,r.to,r.ti));var N=s.bezierData;if(t>=V||t<O){var q=t>=V?N.points.length-1:0;for(h=N.points[q].point.length,l=0;l<h;l+=1)n[l]=N.points[q].point[l]}else{s.__fnct?f=s.__fnct:(f=H.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,s.__fnct=f),p=f((t-O)/(V-O));var Z,W=N.segmentLength*p,G=e.lastFrame<t&&e._lastKeyframeIndex===g?e._lastAddedLength:0;for(c=e.lastFrame<t&&e._lastKeyframeIndex===g?e._lastPoint:0,w=!0,d=N.points.length;w;){if(G+=N.points[c].partialLength,0===W||0===p||c===N.points.length-1){for(h=N.points[c].point.length,l=0;l<h;l+=1)n[l]=N.points[c].point[l];break}if(W>=G&&W<G+N.points[c+1].partialLength){for(Z=(W-G)/N.points[c+1].partialLength,h=N.points[c].point.length,l=0;l<h;l+=1)n[l]=N.points[c].point[l]+(N.points[c+1].point[l]-N.points[c].point[l])*Z;break}c<d-1?c+=1:w=!1}e._lastPoint=c,e._lastAddedLength=G-N.points[c].partialLength,e._lastKeyframeIndex=g}}else{var U,$,X,Y,J;if(v=r.s.length,y=o.s||r.e,this.sh&&1!==r.h)t>=V?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):t<=O?(n[0]=r.s[0],n[1]=r.s[1],n[2]=r.s[2]):function(t,e){var n=e[0],a=e[1],i=e[2],r=e[3],o=Math.atan2(2*a*r-2*n*i,1-2*a*a-2*i*i),s=Math.asin(2*n*a+2*i*r),l=Math.atan2(2*n*r-2*a*i,1-2*n*n-2*i*i);t[0]=o/m,t[1]=s/m,t[2]=l/m}(n,(_=i(r.s),b=i(y),x=(t-O)/(V-O),S=[],P=_[0],E=_[1],D=_[2],I=_[3],T=b[0],z=b[1],R=b[2],B=b[3],(k=P*T+E*z+D*R+I*B)<0&&(k=-k,T=-T,z=-z,R=-R,B=-B),1-k>1e-6?(C=Math.acos(k),A=Math.sin(C),M=Math.sin((1-x)*C)/A,L=Math.sin(x*C)/A):(M=1-x,L=x),S[0]=M*P+L*T,S[1]=M*E+L*z,S[2]=M*D+L*R,S[3]=M*I+L*B,S));else for(g=0;g<v;g+=1)1!==r.h&&(t>=V?p=1:t<O?p=0:(r.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[g]?f=s.__fnct[g]:(U=void 0===r.o.x[g]?r.o.x[0]:r.o.x[g],$=void 0===r.o.y[g]?r.o.y[0]:r.o.y[g],X=void 0===r.i.x[g]?r.i.x[0]:r.i.x[g],Y=void 0===r.i.y[g]?r.i.y[0]:r.i.y[g],f=H.getBezierEasing(U,$,X,Y).get,s.__fnct[g]=f)):s.__fnct?f=s.__fnct:(U=r.o.x,$=r.o.y,X=r.i.x,Y=r.i.y,f=H.getBezierEasing(U,$,X,Y).get,r.keyframeMetadata=f),p=f((t-O)/(V-O)))),y=o.s||r.e,J=1===r.h?r.s[g]:r.s[g]+(y[g]-r.s[g])*p,"multidimensional"===this.propType?n[g]=J:n=J}return e.lastIndex=u,n}function i(t){var e=t[0]*m,n=t[1]*m,a=t[2]*m,i=Math.cos(e/2),r=Math.cos(n/2),o=Math.cos(a/2),s=Math.sin(e/2),l=Math.sin(n/2),h=Math.sin(a/2);return[s*l*o+i*r*h,s*r*o+i*l*h,i*l*o-s*r*h,i*r*o-s*l*h]}function r(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=a&&e>=a||this._caching.lastFrame<n&&e<n))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function o(t){var n;if("unidimensional"===this.propType)n=t*this.mult,e(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var a=0,i=this.v.length;a<i;)n=t[a]*this.mult,e(this.v[a]-n)>1e-5&&(this.v[a]=n,this._mdf=!0),a+=1}function s(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)n=this.effectsSequence[t](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(t,e,n,a){this.propType="unidimensional",this.mult=n||1,this.data=e,this.v=n?e.k*n:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=s,this.setVValue=o,this.addEffect=l}function p(t,e,n,a){var i;this.propType="multidimensional",this.mult=n||1,this.data=e,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r=e.k.length;for(this.v=F("float32",r),this.pv=F("float32",r),this.vel=F("float32",r),i=0;i<r;i+=1)this.v[i]=e.k[i]*this.mult,this.pv[i]=e.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=s,this.setVValue=o,this.addEffect=l}function d(e,a,i,h){this.propType="unidimensional",this.keyframes=a.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=a,this.mult=i||1,this.elem=e,this.container=h,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=s,this.setVValue=o,this.interpolateValue=n,this.effectsSequence=[r.bind(this)],this.addEffect=l}function c(e,a,i,h){var p;this.propType="multidimensional";var d,c,f,m,u=a.k.length;for(p=0;p<u-1;p+=1)a.k[p].to&&a.k[p].s&&a.k[p+1]&&a.k[p+1].s&&(d=a.k[p].s,c=a.k[p+1].s,f=a.k[p].to,m=a.k[p].ti,(2===d.length&&(d[0]!==c[0]||d[1]!==c[1])&&j.pointOnLine2D(d[0],d[1],c[0],c[1],d[0]+f[0],d[1]+f[1])&&j.pointOnLine2D(d[0],d[1],c[0],c[1],c[0]+m[0],c[1]+m[1])||3===d.length&&(d[0]!==c[0]||d[1]!==c[1]||d[2]!==c[2])&&j.pointOnLine3D(d[0],d[1],d[2],c[0],c[1],c[2],d[0]+f[0],d[1]+f[1],d[2]+f[2])&&j.pointOnLine3D(d[0],d[1],d[2],c[0],c[1],c[2],c[0]+m[0],c[1]+m[1],c[2]+m[2]))&&(a.k[p].to=null,a.k[p].ti=null),d[0]===c[0]&&d[1]===c[1]&&0===f[0]&&0===f[1]&&0===m[0]&&0===m[1]&&(2===d.length||d[2]===c[2]&&0===f[2]&&0===m[2])&&(a.k[p].to=null,a.k[p].ti=null));this.effectsSequence=[r.bind(this)],this.data=a,this.keyframes=a.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=h,this.comp=e.comp,this.getValue=s,this.setVValue=o,this.interpolateValue=n,this.frameId=-1;var g=a.k[0].s.length;for(this.v=F("float32",g),this.pv=F("float32",g),p=0;p<g;p+=1)this.v[p]=t,this.pv[p]=t;this._caching={lastFrame:t,lastIndex:0,value:F("float32",g)},this.addEffect=l}return{getProp:function(t,e,n,a,i){var r;if(e.k.length)if("number"==typeof e.k[0])r=new p(t,e,a,i);else switch(n){case 0:r=new d(t,e,a,i);break;case 1:r=new c(t,e,a,i)}else r=new h(t,e,a,i);return r.effectsSequence.length&&i.addDynamicProperty(r),r}}}(),X=function(){var t=[0,0];function e(t,e,n){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new q,this.pre=new q,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||t),e.p&&e.p.s?(this.px=$.getProp(t,e.p.x,0,0,this),this.py=$.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=$.getProp(t,e.p.z,0,0,this))):this.p=$.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=$.getProp(t,e.rx,0,m,this),this.ry=$.getProp(t,e.ry,0,m,this),this.rz=$.getProp(t,e.rz,0,m,this),e.or.k[0].ti){var a,i=e.or.k.length;for(a=0;a<i;a+=1)e.or.k[a].to=null,e.or.k[a].ti=null}this.or=$.getProp(t,e.or,1,m,this),this.or.sh=!0}else this.r=$.getProp(t,e.r||{k:0},0,m,this);e.sk&&(this.sk=$.getProp(t,e.sk,0,m,this),this.sa=$.getProp(t,e.sa,0,m,this)),this.a=$.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=$.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=$.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.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?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){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 a,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?(a=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?(a=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)):(a=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){a=[],i=[];var r=this.px,o=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(a[0]=r.getValueAtTime((r.keyframes[0].t+.01)/n,0),a[1]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),i[0]=r.getValueAtTime(r.keyframes[0].t/n,0),i[1]=o.getValueAtTime(o.keyframes[0].t/n,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(a[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/n,0),a[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),i[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/n,0),i[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0)):(a=[r.pv,o.pv],i[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/n,r.offsetTime),i[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime))}else a=i=t;this.v.rotate(-Math.atan2(a[1]-i[1],a[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}},precalculateMatrix:function(){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)}},autoOrient:function(){}},Z([R],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=R.prototype.addDynamicProperty,{getTransformProperty:function(t,n,a){return new e(t,n,a)}}}();function Y(){this.c=!1,this._length=0,this._maxLength=8,this.v=I(this._maxLength),this.o=I(this._maxLength),this.i=I(this._maxLength)}Y.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var n=0;n<e;)this.v[n]=bt.newElement(),this.o[n]=bt.newElement(),this.i[n]=bt.newElement(),n+=1},Y.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},Y.prototype.doubleArrayLength=function(){this.v=this.v.concat(I(this._maxLength)),this.i=this.i.concat(I(this._maxLength)),this.o=this.o.concat(I(this._maxLength)),this._maxLength*=2},Y.prototype.setXYAt=function(t,e,n,a,i){var r;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}(!r[a]||r[a]&&!i)&&(r[a]=bt.newElement()),r[a][0]=t,r[a][1]=e},Y.prototype.setTripleAt=function(t,e,n,a,i,r,o,s){this.setXYAt(t,e,"v",o,s),this.setXYAt(n,a,"o",o,s),this.setXYAt(i,r,"i",o,s)},Y.prototype.reverse=function(){var t=new Y;t.setPathData(this.c,this._length);var e=this.v,n=this.o,a=this.i,i=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],a[0][0],a[0][1],n[0][0],n[0][1],0,!1),i=1);var r,o=this._length-1,s=this._length;for(r=i;r<s;r+=1)t.setTripleAt(e[o][0],e[o][1],a[o][0],a[o][1],n[o][0],n[o][1],r,!1),o-=1;return t};var J=function(){var t=-999999;function e(t,e,n){var a,i,r,o,s,l,h,p,d,c=n.lastIndex,f=this.keyframes;if(t<f[0].t-this.offsetTime)a=f[0].s[0],r=!0,c=0;else if(t>=f[f.length-1].t-this.offsetTime)a=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],r=!0;else{for(var m,u,g,v=c,w=f.length-1,y=!0;y&&(m=f[v],!((u=f[v+1]).t-this.offsetTime>t));)v<w-1?v+=1:y=!1;if(g=this.keyframesMetadata[v]||{},c=v,!(r=1===m.h)){if(t>=u.t-this.offsetTime)p=1;else if(t<m.t-this.offsetTime)p=0;else{var _;g.__fnct?_=g.__fnct:(_=H.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,g.__fnct=_),p=_((t-(m.t-this.offsetTime))/(u.t-this.offsetTime-(m.t-this.offsetTime)))}i=u.s?u.s[0]:m.e[0]}a=m.s[0]}for(l=e._length,h=a.i[0].length,n.lastIndex=c,o=0;o<l;o+=1)for(s=0;s<h;s+=1)d=r?a.i[o][s]:a.i[o][s]+(i.i[o][s]-a.i[o][s])*p,e.i[o][s]=d,d=r?a.o[o][s]:a.o[o][s]+(i.o[o][s]-a.o[o][s])*p,e.o[o][s]=d,d=r?a.v[o][s]:a.v[o][s]+(i.v[o][s]-a.v[o][s])*p,e.v[o][s]=d}function n(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==t&&(i<n&&e<n||i>a&&e>a)||(this._caching.lastIndex=i<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function a(){this.paths=this.localShapeCollection}function i(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var n,a=t._length;for(n=0;n<a;n+=1)if(t.v[n][0]!==e.v[n][0]||t.v[n][1]!==e.v[n][1]||t.o[n][0]!==e.o[n][0]||t.o[n][1]!==e.o[n][1]||t.i[n][0]!==e.i[n][0]||t.i[n][1]!==e.i[n][1])return!1;return!0})(this.v,t)||(this.v=xt.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function r(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(e=0;e<n;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(t,e,n){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?e.pt.k:e.ks.k;this.v=xt.clone(i),this.pv=xt.clone(this.v),this.localShapeCollection=Ct.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,i,r){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===r?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=xt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=xt.clone(this.v),this.localShapeCollection=Ct.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=a,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[n.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=r,o.prototype.setVValue=i,o.prototype.addEffect=s,l.prototype.getValue=r,l.prototype.interpolateShape=e,l.prototype.setVValue=i,l.prototype.addEffect=s;var h=function(){var t=u;function e(t,e){this.v=xt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ct.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=$.getProp(t,e.p,1,0,this),this.s=$.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],n=this.p.v[1],a=this.s.v[0]/2,i=this.s.v[1]/2,r=3!==this.d,o=this.v;o.v[0][0]=e,o.v[0][1]=n-i,o.v[1][0]=r?e+a:e-a,o.v[1][1]=n,o.v[2][0]=e,o.v[2][1]=n+i,o.v[3][0]=r?e-a:e+a,o.v[3][1]=n,o.i[0][0]=r?e-a*t:e+a*t,o.i[0][1]=n-i,o.i[1][0]=r?e+a:e-a,o.i[1][1]=n-i*t,o.i[2][0]=r?e+a*t:e-a*t,o.i[2][1]=n+i,o.i[3][0]=r?e-a:e+a,o.i[3][1]=n+i*t,o.o[0][0]=r?e+a*t:e-a*t,o.o[0][1]=n-i,o.o[1][0]=r?e+a:e-a,o.o[1][1]=n+i*t,o.o[2][0]=r?e-a*t:e+a*t,o.o[2][1]=n+i,o.o[3][0]=r?e-a:e+a,o.o[3][1]=n-i*t}},Z([R],e),e}(),p=function(){function t(t,e){this.v=xt.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=$.getProp(t,e.ir,0,0,this),this.is=$.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=$.getProp(t,e.pt,0,0,this),this.p=$.getProp(t,e.p,1,0,this),this.r=$.getProp(t,e.r,0,m,this),this.or=$.getProp(t,e.or,0,0,this),this.os=$.getProp(t,e.os,0,.01,this),this.localShapeCollection=Ct.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,n,a,i=2*Math.floor(this.pt.v),r=2*Math.PI/i,o=!0,s=this.or.v,l=this.ir.v,h=this.os.v,p=this.is.v,d=2*Math.PI*s/(2*i),c=2*Math.PI*l/(2*i),f=-Math.PI/2;f+=this.r.v;var m=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<i;t+=1){n=o?h:p,a=o?d:c;var u=(e=o?s:l)*Math.cos(f),g=e*Math.sin(f),v=0===u&&0===g?0:g/Math.sqrt(u*u+g*g),w=0===u&&0===g?0:-u/Math.sqrt(u*u+g*g);u+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(u,g,u-v*a*n*m,g-w*a*n*m,u+v*a*n*m,g+w*a*n*m,t,!0),o=!o,f+=r*m}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),n=2*Math.PI/e,a=this.or.v,i=this.os.v,r=2*Math.PI*a/(4*e),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=a*Math.cos(o),h=a*Math.sin(o),p=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),d=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-p*r*i*s,h-d*r*i*s,l+p*r*i*s,h+d*r*i*s,t,!0),o+=n*s}this.paths.length=0,this.paths[0]=this.v}},Z([R],t),t}(),c=function(){function t(t,e){this.v=xt.newElement(),this.v.c=!0,this.localShapeCollection=Ct.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=$.getProp(t,e.p,1,0,this),this.s=$.getProp(t,e.s,1,0,this),this.r=$.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],n=this.s.v[0]/2,a=this.s.v[1]/2,i=d(n,a,this.r.v),r=i*(1-u);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+n,e-a+i,t+n,e-a+i,t+n,e-a+r,0,!0),this.v.setTripleAt(t+n,e+a-i,t+n,e+a-r,t+n,e+a-i,1,!0),0!==i?(this.v.setTripleAt(t+n-i,e+a,t+n-i,e+a,t+n-r,e+a,2,!0),this.v.setTripleAt(t-n+i,e+a,t-n+r,e+a,t-n+i,e+a,3,!0),this.v.setTripleAt(t-n,e+a-i,t-n,e+a-i,t-n,e+a-r,4,!0),this.v.setTripleAt(t-n,e-a+i,t-n,e-a+r,t-n,e-a+i,5,!0),this.v.setTripleAt(t-n+i,e-a,t-n+i,e-a,t-n+r,e-a,6,!0),this.v.setTripleAt(t+n-i,e-a,t+n-r,e-a,t+n-i,e-a,7,!0)):(this.v.setTripleAt(t-n,e+a,t-n+r,e+a,t-n,e+a,2),this.v.setTripleAt(t-n,e-a,t-n,e-a+r,t-n,e-a,3))):(this.v.setTripleAt(t+n,e-a+i,t+n,e-a+r,t+n,e-a+i,0,!0),0!==i?(this.v.setTripleAt(t+n-i,e-a,t+n-i,e-a,t+n-r,e-a,1,!0),this.v.setTripleAt(t-n+i,e-a,t-n+r,e-a,t-n+i,e-a,2,!0),this.v.setTripleAt(t-n,e-a+i,t-n,e-a+i,t-n,e-a+r,3,!0),this.v.setTripleAt(t-n,e+a-i,t-n,e+a-r,t-n,e+a-i,4,!0),this.v.setTripleAt(t-n+i,e+a,t-n+i,e+a,t-n+r,e+a,5,!0),this.v.setTripleAt(t+n-i,e+a,t+n-r,e+a,t+n-i,e+a,6,!0),this.v.setTripleAt(t+n,e+a-i,t+n,e+a-i,t+n,e+a-r,7,!0)):(this.v.setTripleAt(t-n,e-a,t-n+r,e-a,t-n,e-a,1,!0),this.v.setTripleAt(t-n,e+a,t-n,e+a-r,t-n,e+a,2,!0),this.v.setTripleAt(t+n,e+a,t+n-r,e+a,t+n,e+a,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},Z([R],t),t}();var f={getShapeProp:function(t,e,n){var a;return 3===n||4===n?a=(3===n?e.pt:e.ks).k.length?new l(t,e,n):new o(t,e,n):5===n?a=new c(t,e):6===n?a=new h(t,e):7===n&&(a=new p(t,e)),a.k&&t.addDynamicProperty(a),a},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}};return f}(),Q=function(){var t={},e={};return t.registerModifier=function(t,n){e[t]||(e[t]=n)},t.getModifier=function(t,n,a){return new e[t](n,a)},t}();function K(){}function tt(){}function et(){}function nt(){}function at(){}function it(){this._length=0,this._maxLength=4,this.shapes=I(this._maxLength)}function rt(t,e,n,a){var i;this.elem=t,this.frameId=-1,this.dataProps=I(e.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=F("float32",e.length?e.length-1:0),this.dashoffset=F("float32",1),this.initDynamicPropertyContainer(a);var r,o=e.length||0;for(i=0;i<o;i+=1)r=$.getProp(t,e[i].v,0,0,this),this.k=r.k||this.k,this.dataProps[i]={n:e[i].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}function ot(t,e,n){this.data=e,this.c=F("uint8c",4*e.p);var a=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=F("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(n),this.prop=$.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}K.prototype.initModifierProperties=function(){},K.prototype.addShapeToModifier=function(){},K.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:Ct.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},K.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=a,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},K.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Z([R],K),Z([K],tt),tt.prototype.initModifierProperties=function(t,e){this.s=$.getProp(t,e.s,0,.01,this),this.e=$.getProp(t,e.e,0,.01,this),this.o=$.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},tt.prototype.addShapeToModifier=function(t){t.pathsData=[]},tt.prototype.calculateShapeEdges=function(t,e,n,a,i){var r=[];e<=1?r.push({s:t,e}):t>=1?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));var o,s,l=[],h=r.length;for(o=0;o<h;o+=1){var p,d;(s=r[o]).e*i<a||s.s*i>a+n||(p=s.s*i<=a?0:(s.s*i-a)/n,d=s.e*i>=a+n?1:(s.e*i-a)/n,l.push([p,d]))}return l.length||l.push([0,0]),l},tt.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e<n;e+=1)kt.release(t[e]);return t.length=0,t},tt.prototype.processShapes=function(t){var e,n,a,i;if(this._mdf||t){var r=this.o.v%360/360;if(r<0&&(r+=1),(e=this.s.v>1?1+r:this.s.v<0?0+r:this.s.v+r)>(n=this.e.v>1?1+r:this.e.v<0?0+r:this.e.v+r)){var o=e;e=n,n=o}e=1e-4*Math.round(1e4*e),n=1e-4*Math.round(1e4*n),this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var s,l,h,p,d,c=this.shapes.length,f=0;if(n===e)for(i=0;i<c;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===e||0===n&&1===e){if(this._mdf)for(i=0;i<c;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var m,u,g=[];for(i=0;i<c;i+=1)if((m=this.shapes[i]).shape._mdf||this._mdf||t||2===this.m){if(l=(a=m.shape.paths)._length,d=0,!m.shape._mdf&&m.pathsData.length)d=m.totalShapeLength;else{for(h=this.releasePathsData(m.pathsData),s=0;s<l;s+=1)p=j.getSegmentsLength(a.shapes[s]),h.push(p),d+=p.totalLength;m.totalShapeLength=d,m.pathsData=h}f+=d,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var v,w=e,y=n,_=0;for(i=c-1;i>=0;i-=1)if((m=this.shapes[i]).shape._mdf){for((u=m.localShapeCollection).releaseShapes(),2===this.m&&c>1?(v=this.calculateShapeEdges(e,n,m.totalShapeLength,_,f),_+=m.totalShapeLength):v=[[w,y]],l=v.length,s=0;s<l;s+=1){w=v[s][0],y=v[s][1],g.length=0,y<=1?g.push({s:m.totalShapeLength*w,e:m.totalShapeLength*y}):w>=1?g.push({s:m.totalShapeLength*(w-1),e:m.totalShapeLength*(y-1)}):(g.push({s:m.totalShapeLength*w,e:m.totalShapeLength}),g.push({s:0,e:m.totalShapeLength*(y-1)}));var b=this.addShapes(m,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var x=b.pop();this.addPaths(b,u),b=this.addShapes(m,g[1],x)}else this.addPaths(b,u),b=this.addShapes(m,g[1]);this.addPaths(b,u)}}m.shape.paths=u}}},tt.prototype.addPaths=function(t,e){var n,a=t.length;for(n=0;n<a;n+=1)e.addShape(t[n])},tt.prototype.addSegment=function(t,e,n,a,i,r,o){i.setXYAt(e[0],e[1],"o",r),i.setXYAt(n[0],n[1],"i",r+1),o&&i.setXYAt(t[0],t[1],"v",r),i.setXYAt(a[0],a[1],"v",r+1)},tt.prototype.addSegmentFromArray=function(t,e,n,a){e.setXYAt(t[1],t[5],"o",n),e.setXYAt(t[2],t[6],"i",n+1),a&&e.setXYAt(t[0],t[4],"v",n),e.setXYAt(t[3],t[7],"v",n+1)},tt.prototype.addShapes=function(t,e,n){var a,i,r,o,s,l,h,p,d=t.pathsData,c=t.shape.paths.shapes,f=t.shape.paths._length,m=0,u=[],g=!0;for(n?(s=n._length,p=n._length):(n=xt.newElement(),s=0,p=0),u.push(n),a=0;a<f;a+=1){for(l=d[a].lengths,n.c=c[a].c,r=c[a].c?l.length:l.length+1,i=1;i<r;i+=1)if(m+(o=l[i-1]).addedLength<e.s)m+=o.addedLength,n.c=!1;else{if(m>e.e){n.c=!1;break}e.s<=m&&e.e>=m+o.addedLength?(this.addSegment(c[a].v[i-1],c[a].o[i-1],c[a].i[i],c[a].v[i],n,s,g),g=!1):(h=j.getNewSegment(c[a].v[i-1],c[a].v[i],c[a].o[i-1],c[a].i[i],(e.s-m)/o.addedLength,(e.e-m)/o.addedLength,l[i-1]),this.addSegmentFromArray(h,n,s,g),g=!1,n.c=!1),m+=o.addedLength,s+=1}if(c[a].c&&l.length){if(o=l[i-1],m<=e.e){var v=l[i-1].addedLength;e.s<=m&&e.e>=m+v?(this.addSegment(c[a].v[i-1],c[a].o[i-1],c[a].i[0],c[a].v[0],n,s,g),g=!1):(h=j.getNewSegment(c[a].v[i-1],c[a].v[0],c[a].o[i-1],c[a].i[0],(e.s-m)/v,(e.e-m)/v,l[i-1]),this.addSegmentFromArray(h,n,s,g),g=!1,n.c=!1)}else n.c=!1;m+=o.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[p][0],n.v[p][1],"i",p),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),m>e.e)break;a<f-1&&(n=xt.newElement(),g=!0,u.push(n),s=0)}return u},Q.registerModifier("tm",tt),Z([K],et),et.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=$.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},et.prototype.processPath=function(t,e){var n,a=xt.newElement();a.c=t.c;var i,r,o,s,l,h,p,d,c,f,m,g,v=t._length,w=0;for(n=0;n<v;n+=1)i=t.v[n],o=t.o[n],r=t.i[n],i[0]===o[0]&&i[1]===o[1]&&i[0]===r[0]&&i[1]===r[1]?0!==n&&n!==v-1||t.c?(s=0===n?t.v[v-1]:t.v[n-1],h=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,e)/l:0,p=m=i[0]+(s[0]-i[0])*h,d=g=i[1]-(i[1]-s[1])*h,c=p-(p-i[0])*u,f=d-(d-i[1])*u,a.setTripleAt(p,d,c,f,m,g,w),w+=1,s=n===v-1?t.v[0]:t.v[n+1],h=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,e)/l:0,p=c=i[0]+(s[0]-i[0])*h,d=f=i[1]+(s[1]-i[1])*h,m=p-(p-i[0])*u,g=d-(d-i[1])*u,a.setTripleAt(p,d,c,f,m,g,w),w+=1):(a.setTripleAt(i[0],i[1],o[0],o[1],r[0],r[1],w),w+=1):(a.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],w),w+=1);return a},et.prototype.processShapes=function(t){var e,n,a,i,r,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||t)for(o.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,i=r.shape.paths._length,a=0;a<i;a+=1)o.addShape(this.processPath(e[a],l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Q.registerModifier("rd",et),Z([K],nt),nt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=$.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},nt.prototype.processPath=function(t,e){var n=e/100,a=[0,0],i=t._length,r=0;for(r=0;r<i;r+=1)a[0]+=t.v[r][0],a[1]+=t.v[r][1];a[0]/=i,a[1]/=i;var o,s,l,h,p,d,c=xt.newElement();for(c.c=t.c,r=0;r<i;r+=1)o=t.v[r][0]+(a[0]-t.v[r][0])*n,s=t.v[r][1]+(a[1]-t.v[r][1])*n,l=t.o[r][0]+(a[0]-t.o[r][0])*-n,h=t.o[r][1]+(a[1]-t.o[r][1])*-n,p=t.i[r][0]+(a[0]-t.i[r][0])*-n,d=t.i[r][1]+(a[1]-t.i[r][1])*-n,c.setTripleAt(o,s,l,h,p,d,r);return c},nt.prototype.processShapes=function(t){var e,n,a,i,r,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||t)for(o.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,i=r.shape.paths._length,a=0;a<i;a+=1)o.addShape(this.processPath(e[a],l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Q.registerModifier("pb",nt),Z([K],at),at.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=$.getProp(t,e.c,0,null,this),this.o=$.getProp(t,e.o,0,null,this),this.tr=X.getTransformProperty(t,e.tr,this),this.so=$.getProp(t,e.tr.so,0,.01,this),this.eo=$.getProp(t,e.tr.eo,0,.01,this),this.data=e,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},at.prototype.applyTransforms=function(t,e,n,a,i,r){var o=r?-1:1,s=a.s.v[0]+(1-a.s.v[0])*(1-i),l=a.s.v[1]+(1-a.s.v[1])*(1-i);t.translate(a.p.v[0]*o*i,a.p.v[1]*o*i,a.p.v[2]),e.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),e.rotate(-a.r.v*o*i),e.translate(a.a.v[0],a.a.v[1],a.a.v[2]),n.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),n.scale(r?1/s:s,r?1/l:l),n.translate(a.a.v[0],a.a.v[1],a.a.v[2])},at.prototype.init=function(t,e,n,a){for(this.elem=t,this.arr=e,this.pos=n,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[n]);n>0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},at.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},at.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},at.prototype.changeGroupRender=function(t,e){var n,a=t.length;for(n=0;n<a;n+=1)t[n]._render=e,"gr"===t[n].ty&&this.changeGroupRender(t[n].it,e)},at.prototype.processShapes=function(t){var e,n,a,i,r,o=!1;if(this._mdf||t){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.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,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(r=0,a=0;a<=this._groups.length-1;a+=1){if(s=r<l,this._groups[a]._render=s,this.changeGroupRender(this._groups[a].it,s),!s){var p=this.elemsData[a].it,d=p[p.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}r+=1}this._currentCopies=l;var c=this.o.v,f=c%1,m=c>0?Math.floor(c):Math.ceil(c),u=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w,y,_=0;if(c>0){for(;_<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),_+=f)}else if(c<0){for(;_>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),_-=f)}for(a=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,r=this._currentCopies;r;){if(y=(n=(e=this.elemsData[a].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),0!==_){for((0!==a&&1===i||a!==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(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),w=0;w<y;w+=1)n[w]=this.matrix.props[w];this.matrix.reset()}else for(this.matrix.reset(),w=0;w<y;w+=1)n[w]=this.matrix.props[w];_+=1,r-=1,a+=i}}else for(r=this._currentCopies,a=0,i=1;r;)n=(e=this.elemsData[a].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,r-=1,a+=i;return o},at.prototype.addShape=function(){},Q.registerModifier("rp",at),it.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(I(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},it.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)xt.release(this.shapes[t]);this._length=0},rt.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<n;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},Z([R],rt),ot.prototype.comparePoints=function(t,e){for(var n=0,a=this.o.length/2;n<a;){if(Math.abs(t[4*n]-t[4*e+2*n])>.01)return!1;n+=1}return!0},ot.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},ot.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,n,a,i=4*this.data.p;for(e=0;e<i;e+=1)n=e%4==0?100:255,a=Math.round(this.prop.v[e]*n),this.c[e]!==a&&(this.c[e]=a,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,e=4*this.data.p;e<i;e+=1)n=e%2==0?100:1,a=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==a&&(this.o[e-4*this.data.p]=a,this._omdf=!t);this._mdf=!t}},Z([R],ot);var st,lt=function(t,e,n,a){if(0===e)return"";var i,r=t.o,o=t.i,s=t.v,l=" M"+a.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<e;i+=1)l+=" C"+a.applyToPointStringified(r[i-1][0],r[i-1][1])+" "+a.applyToPointStringified(o[i][0],o[i][1])+" "+a.applyToPointStringified(s[i][0],s[i][1]);return n&&e&&(l+=" C"+a.applyToPointStringified(r[i-1][0],r[i-1][1])+" "+a.applyToPointStringified(o[0][0],o[0][1])+" "+a.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},ht=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,n=this.audios.length;for(e=0;e<n;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):Howl?new Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),pt=function(){var t=function(){var t=z("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){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 a(t,e,n){var a="";if(t.e)a=t.p;else if(e){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),a=e+i}else a=n,a+=t.u?t.u:"",a+=t.p;return a}function i(t){var e=0,n=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(n)),e+=1}.bind(this),50)}function r(t){var e={assetData:t},n=a(t,this.assetsPath,this.path);return W.loadData(n,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=r.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(t,e){var n;this.imagesLoadedCb=e;var a=t.length;for(n=0;n<a;n+=1)t[n].layers||(t[n].t&&"seq"!==t[n].t?3===t[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[n]))):(this.totalImages+=1,this.images.push(this._createImageData(t[n]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,n=this.images.length;e<n;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var n=a(e,this.assetsPath,this.path),i=z("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),i.src=n;var r={img:i,assetData:e};return r},createImageData:function(e){var n=a(e,this.assetsPath,this.path),i=T("image");s?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=t,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 r={img:i,assetData:e};return r},imageLoaded:e,footageLoaded:n,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}(),dt=(st={maskType:!0},(/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))&&(st.maskType=!1),st),ct=function(){var t={};return t.createFilter=function(t,e){var n=T("filter");return n.setAttribute("id",t),!0!==e&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},t.createAlphaToLuminanceFilter=function(){var t=T("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},t}();function ft(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=I(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function mt(t,e,n){var a={propType:!1},i=$.getProp,r=e.a;this.a={r:r.r?i(t,r.r,0,m,n):a,rx:r.rx?i(t,r.rx,0,m,n):a,ry:r.ry?i(t,r.ry,0,m,n):a,sk:r.sk?i(t,r.sk,0,m,n):a,sa:r.sa?i(t,r.sa,0,m,n):a,s:r.s?i(t,r.s,1,.01,n):a,a:r.a?i(t,r.a,1,0,n):a,o:r.o?i(t,r.o,0,.01,n):a,p:r.p?i(t,r.p,1,0,n):a,sw:r.sw?i(t,r.sw,0,0,n):a,sc:r.sc?i(t,r.sc,1,0,n):a,fc:r.fc?i(t,r.fc,1,0,n):a,fh:r.fh?i(t,r.fh,0,0,n):a,fs:r.fs?i(t,r.fs,0,.01,n):a,fb:r.fb?i(t,r.fb,0,.01,n):a,t:r.t?i(t,r.t,0,0,n):a},this.s=wt.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function ut(t,e,n,a,i,r){this.o=t,this.sw=e,this.sc=n,this.fc=a,this.m=i,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!a,m:!0,p:!0}}function gt(t,e){this._frameId=a,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,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)}ft.prototype.searchProperties=function(){var t,e,n=this._textData.a.length,a=$.getProp;for(t=0;t<n;t+=1)e=this._textData.a[t],this._animatorsData[t]=new mt(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(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=a(this._elem,this._textData.m.a,1,0,this)},ft.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,a,i,r,o,s,l,h,p,d,c,f,m,u,g,v,w,y,_,b=this._moreOptions.alignment.v,x=this._animatorsData,C=this._textData,k=this.mHelper,A=this._renderType,M=this.renderedLetters.length,L=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var D,F=_.v;for(this._pathData.r.v&&(F=F.reverse()),o={tLength:0,segments:[]},r=F._length-1,v=0,i=0;i<r;i+=1)D=j.buildBezierData(F.v[i],F.v[i+1],[F.o[i][0]-F.v[i][0],F.o[i][1]-F.v[i][1]],[F.i[i+1][0]-F.v[i+1][0],F.i[i+1][1]-F.v[i+1][1]]),o.tLength+=D.segmentLength,o.segments.push(D),v+=D.segmentLength;i=r,_.v.c&&(D=j.buildBezierData(F.v[i],F.v[0],[F.o[i][0]-F.v[i][0],F.o[i][1]-F.v[i][1]],[F.i[0][0]-F.v[0][0],F.i[0][1]-F.v[0][1]]),o.tLength+=D.segmentLength,o.segments.push(D),v+=D.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,c=0,d=1,h=0,p=!0,u=o.segments,s<0&&_.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),d=(m=u[c=u.length-1].points).length-1;s<0;)s+=m[d].partialLength,(d-=1)<0&&(d=(m=u[c-=1].points).length-1);f=(m=u[c].points)[d-1],g=(l=m[d]).partialLength}r=L.length,n=0,a=0;var I,T,z,R,B,V=1.2*t.finalSize*.714,O=!0;z=x.length;var N,q,H,Z,W,G,U,$,X,Y,J,Q,K=-1,tt=s,et=c,nt=d,at=-1,it="",rt=this.defaultPropsArray;if(2===t.j||1===t.j){var ot=0,st=0,lt=2===t.j?-.5:-1,ht=0,pt=!0;for(i=0;i<r;i+=1)if(L[i].n){for(ot&&(ot+=st);ht<i;)L[ht].animatorJustifyOffset=ot,ht+=1;ot=0,pt=!0}else{for(T=0;T<z;T+=1)(I=x[T].a).t.propType&&(pt&&2===t.j&&(st+=I.t.v*lt),(B=x[T].s.getMult(L[i].anIndexes[T],C.a[T].s.totalChars)).length?ot+=I.t.v*B[0]*lt:ot+=I.t.v*B*lt);pt=!1}for(ot&&(ot+=st);ht<i;)L[ht].animatorJustifyOffset=ot,ht+=1}for(i=0;i<r;i+=1){if(k.reset(),Z=1,L[i].n)n=0,a+=t.yOffset,a+=O?1:0,s=tt,O=!1,this._hasMaskedPath&&(d=nt,f=(m=u[c=et].points)[d-1],g=(l=m[d]).partialLength,h=0),it="",J="",X="",Q="",rt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(at!==L[i].line){switch(t.j){case 1:s+=v-t.lineWidths[L[i].line];break;case 2:s+=(v-t.lineWidths[L[i].line])/2}at=L[i].line}K!==L[i].ind&&(L[K]&&(s+=L[K].extra),s+=L[i].an/2,K=L[i].ind),s+=b[0]*L[i].an*.005;var dt=0;for(T=0;T<z;T+=1)(I=x[T].a).p.propType&&((B=x[T].s.getMult(L[i].anIndexes[T],C.a[T].s.totalChars)).length?dt+=I.p.v[0]*B[0]:dt+=I.p.v[0]*B),I.a.propType&&((B=x[T].s.getMult(L[i].anIndexes[T],C.a[T].s.totalChars)).length?dt+=I.a.v[0]*B[0]:dt+=I.a.v[0]*B);for(p=!0,this._pathData.a.v&&(s=.5*L[0].an+(v-this._pathData.f.v-.5*L[0].an-.5*L[L.length-1].an)*K/(r-1),s+=this._pathData.f.v);p;)h+g>=s+dt||!m?(w=(s+dt-h)/l.partialLength,q=f.point[0]+(l.point[0]-f.point[0])*w,H=f.point[1]+(l.point[1]-f.point[1])*w,k.translate(-b[0]*L[i].an*.005,-b[1]*V*.01),p=!1):m&&(h+=l.partialLength,(d+=1)>=m.length&&(d=0,u[c+=1]?m=u[c].points:_.v.c?(d=0,m=u[c=0].points):(h-=l.partialLength,m=null)),m&&(f=l,g=(l=m[d]).partialLength));N=L[i].an/2-L[i].add,k.translate(-N,0,0)}else N=L[i].an/2-L[i].add,k.translate(-N,0,0),k.translate(-b[0]*L[i].an*.005,-b[1]*V*.01,0);for(T=0;T<z;T+=1)(I=x[T].a).t.propType&&(B=x[T].s.getMult(L[i].anIndexes[T],C.a[T].s.totalChars),0===n&&0===t.j||(this._hasMaskedPath?B.length?s+=I.t.v*B[0]:s+=I.t.v*B:B.length?n+=I.t.v*B[0]:n+=I.t.v*B));for(t.strokeWidthAnim&&(G=t.sw||0),t.strokeColorAnim&&(W=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(U=[t.fc[0],t.fc[1],t.fc[2]]),T=0;T<z;T+=1)(I=x[T].a).a.propType&&((B=x[T].s.getMult(L[i].anIndexes[T],C.a[T].s.totalChars)).length?k.translate(-I.a.v[0]*B[0],-I.a.v[1]*B[1],I.a.v[2]*B[2]):k.translate(-I.a.v[0]*B,-I.a.v[1]*B,I.a.v[2]*B));for(T=0;T<z;T+=1)(I=x[T].a).s.propType&&((B=x[T].s.getMult(L[i].anIndexes[T],C.a[T].s.totalChars)).length?k.scale(1+(I.s.v[0]-1)*B[0],1+(I.s.v[1]-1)*B[1],1):k.scale(1+(I.s.v[0]-1)*B,1+(I.s.v[1]-1)*B,1));for(T=0;T<z;T+=1){if(I=x[T].a,B=x[T].s.getMult(L[i].anIndexes[T],C.a[T].s.totalChars),I.sk.propType&&(B.length?k.skewFromAxis(-I.sk.v*B[0],I.sa.v*B[1]):k.skewFromAxis(-I.sk.v*B,I.sa.v*B)),I.r.propType&&(B.length?k.rotateZ(-I.r.v*B[2]):k.rotateZ(-I.r.v*B)),I.ry.propType&&(B.length?k.rotateY(I.ry.v*B[1]):k.rotateY(I.ry.v*B)),I.rx.propType&&(B.length?k.rotateX(I.rx.v*B[0]):k.rotateX(I.rx.v*B)),I.o.propType&&(B.length?Z+=(I.o.v*B[0]-Z)*B[0]:Z+=(I.o.v*B-Z)*B),t.strokeWidthAnim&&I.sw.propType&&(B.length?G+=I.sw.v*B[0]:G+=I.sw.v*B),t.strokeColorAnim&&I.sc.propType)for($=0;$<3;$+=1)B.length?W[$]+=(I.sc.v[$]-W[$])*B[0]:W[$]+=(I.sc.v[$]-W[$])*B;if(t.fillColorAnim&&t.fc){if(I.fc.propType)for($=0;$<3;$+=1)B.length?U[$]+=(I.fc.v[$]-U[$])*B[0]:U[$]+=(I.fc.v[$]-U[$])*B;I.fh.propType&&(U=B.length?E(U,I.fh.v*B[0]):E(U,I.fh.v*B)),I.fs.propType&&(U=B.length?S(U,I.fs.v*B[0]):S(U,I.fs.v*B)),I.fb.propType&&(U=B.length?P(U,I.fb.v*B[0]):P(U,I.fb.v*B))}}for(T=0;T<z;T+=1)(I=x[T].a).p.propType&&(B=x[T].s.getMult(L[i].anIndexes[T],C.a[T].s.totalChars),this._hasMaskedPath?B.length?k.translate(0,I.p.v[1]*B[0],-I.p.v[2]*B[1]):k.translate(0,I.p.v[1]*B,-I.p.v[2]*B):B.length?k.translate(I.p.v[0]*B[0],I.p.v[1]*B[1],-I.p.v[2]*B[2]):k.translate(I.p.v[0]*B,I.p.v[1]*B,-I.p.v[2]*B));if(t.strokeWidthAnim&&(X=G<0?0:G),t.strokeColorAnim&&(Y="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),t.fillColorAnim&&t.fc&&(J="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),this._hasMaskedPath){if(k.translate(0,-t.ls),k.translate(0,b[1]*V*.01+a,0),this._pathData.p.v){y=(l.point[1]-f.point[1])/(l.point[0]-f.point[0]);var ct=180*Math.atan(y)/Math.PI;l.point[0]<f.point[0]&&(ct+=180),k.rotate(-ct*Math.PI/180)}k.translate(q,H,0),s-=b[0]*L[i].an*.005,L[i+1]&&K!==L[i+1].ind&&(s+=L[i].an/2,s+=.001*t.tr*t.finalSize)}else{switch(k.translate(n,a,0),t.ps&&k.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:k.translate(L[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[L[i].line]),0,0);break;case 2:k.translate(L[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[L[i].line])/2,0,0)}k.translate(0,-t.ls),k.translate(N,0,0),k.translate(b[0]*L[i].an*.005,b[1]*V*.01,0),n+=L[i].l+.001*t.tr*t.finalSize}"html"===A?it=k.toCSS():"svg"===A?it=k.to2dCSS():rt=[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]],Q=Z}M<=i?(R=new ut(Q,X,Y,J,it,rt),this.renderedLetters.push(R),M+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[i],this.lettersChangedFlag=R.update(Q,X,Y,J,it,rt)||this.lettersChangedFlag)}}},ft.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},ft.prototype.mHelper=new q,ft.prototype.defaultPropsArray=[],Z([R],ft),ut.prototype.update=function(t,e,n,a,i,r){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 o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,o=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,o=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,this._mdf.p=!0,o=!0),o},gt.prototype.defaultBoxWidth=[0,0],gt.prototype.copyData=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},gt.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},gt.prototype.searchProperty=function(){return this.searchKeyframes()},gt.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},gt.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},gt.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var a;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(a=0;a<i;a+=1)r=n!==this.keysIndex?this.effectsSequence[a](r,r.t):this.effectsSequence[a](this.currentData,r.t);e!==r&&this.setCurrentData(r),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},gt.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,n=0,a=t.length;n<=a-1&&!(n===a-1||t[n+1].t>e);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},gt.prototype.buildFinalText=function(t){for(var e,n,a=[],i=0,r=t.length,o=!1;i<r;)e=t.charCodeAt(i),U.isCombinedCharacter(e)?a[a.length-1]+=t.charAt(i):e>=55296&&e<=56319?(n=t.charCodeAt(i+1))>=56320&&n<=57343?(o||U.isModifier(e,n)?(a[a.length-1]+=t.substr(i,2),o=!1):a.push(t.substr(i,2)),i+=1):a.push(t.charAt(i)):e>56319?(n=t.charCodeAt(i+1),U.isZeroWidthJoiner(e,n)?(o=!0,a[a.length-1]+=t.substr(i,2),i+=1):a.push(t.charAt(i))):U.isZeroWidthJoiner(e)?(a[a.length-1]+=t.charAt(i),o=!0):a.push(t.charAt(i)),i+=1;return a},gt.prototype.completeTextData=function(t){t.__complete=!0;var e,n,a,i,r,o,s,l=this.elem.globalData.fontManager,h=this.data,p=[],d=0,c=h.m.g,f=0,m=0,u=0,g=[],v=0,w=0,y=l.getFontByName(t.f),_=0,b=G(y);t.fWeight=b.weight,t.fStyle=b.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),n=t.finalText.length,t.finalLineHeight=t.lh;var x,C=t.tr/1e3*t.finalSize;if(t.sz)for(var k,A,M=!0,L=t.sz[0],S=t.sz[1];M;){k=0,v=0,n=(A=this.buildFinalText(t.t)).length,C=t.tr/1e3*t.finalSize;var P=-1;for(e=0;e<n;e+=1)x=A[e].charCodeAt(0),a=!1," "===A[e]?P=e:13!==x&&3!==x||(v=0,a=!0,k+=t.finalLineHeight||1.2*t.finalSize),l.chars?(s=l.getCharData(A[e],y.fStyle,y.fFamily),_=a?0:s.w*t.finalSize/100):_=l.measureText(A[e],t.f,t.finalSize),v+_>L&&" "!==A[e]?(-1===P?n+=1:e=P,k+=t.finalLineHeight||1.2*t.finalSize,A.splice(e,P===e?1:0,"\r"),P=-1,v=0):(v+=_,v+=C);k+=y.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&S<k?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=A,n=t.finalText.length,M=!1)}v=-C,_=0;var E,D=0;for(e=0;e<n;e+=1)if(a=!1,13===(x=(E=t.finalText[e]).charCodeAt(0))||3===x?(D=0,g.push(v),w=v>w?v:w,v=-2*C,i="",a=!0,u+=1):i=E,l.chars?(s=l.getCharData(E,y.fStyle,l.getFontByName(t.f).fFamily),_=a?0:s.w*t.finalSize/100):_=l.measureText(i,t.f,t.finalSize)," "===E?D+=_+C:(v+=_+C+D,D=0),p.push({l:_,an:_,add:f,n:a,anIndexes:[],val:i,line:u,animatorJustifyOffset:0}),2==c){if(f+=_,""===i||" "===i||e===n-1){for(""!==i&&" "!==i||(f-=_);m<=e;)p[m].an=f,p[m].ind=d,p[m].extra=_,m+=1;d+=1,f=0}}else if(3==c){if(f+=_,""===i||e===n-1){for(""===i&&(f-=_);m<=e;)p[m].an=f,p[m].ind=d,p[m].extra=_,m+=1;f=0,d+=1}}else p[d].ind=d,p[d].extra=0,d+=1;if(t.l=p,w=v>w?v:w,g.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=w,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var F,I,T,z,R=h.a;o=R.length;var B=[];for(r=0;r<o;r+=1){for((F=R[r]).a.sc&&(t.strokeColorAnim=!0),F.a.sw&&(t.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(t.fillColorAnim=!0),z=0,T=F.s.b,e=0;e<n;e+=1)(I=p[e]).anIndexes[r]=z,(1==T&&""!==I.val||2==T&&""!==I.val&&" "!==I.val||3==T&&(I.n||" "==I.val||e==n-1)||4==T&&(I.n||e==n-1))&&(1===F.s.rn&&B.push(z),z+=1);h.a[r].s.totalChars=z;var V,O=-1;if(1===F.s.rn)for(e=0;e<n;e+=1)O!=(I=p[e]).anIndexes[r]&&(O=I.anIndexes[r],V=B.splice(Math.floor(Math.random()*B.length),1)[0]),I.anIndexes[r]=V}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=y.ascent*t.finalSize/100},gt.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var n=this.copyData({},this.data.d.k[e].s);n=this.copyData(n,t),this.data.d.k[e].s=n,this.recalculate(e),this.elem.addDynamicProperty(this)},gt.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},gt.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},gt.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var vt,wt=function(){var t=Math.max,e=Math.min,n=Math.floor;function a(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=$.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?$.getProp(t,e.e,0,0,this):{v:100},this.o=$.getProp(t,e.o||{k:0},0,0,this),this.xe=$.getProp(t,e.xe||{k:0},0,0,this),this.ne=$.getProp(t,e.ne||{k:0},0,0,this),this.sm=$.getProp(t,e.sm||{k:100},0,0,this),this.a=$.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return a.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,r=0,o=1,s=1;this.ne.v>0?i=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=H.getBezierEasing(i,r,o,s).get,h=0,p=this.finalS,d=this.finalE,c=this.data.sh;if(2===c)h=l(h=d===p?a>=d?1:0:t(0,e(.5/(d-p)+(a-p)/(d-p),1)));else if(3===c)h=l(h=d===p?a>=d?0:1:1-t(0,e(.5/(d-p)+(a-p)/(d-p),1)));else if(4===c)d===p?h=0:(h=t(0,e(.5/(d-p)+(a-p)/(d-p),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===c){if(d===p)h=0;else{var f=d-p,m=-f/2+(a=e(t(0,a+.5-p),d-p)),u=f/2;h=Math.sqrt(1-m*m/(u*u))}h=l(h)}else 6===c?(d===p?h=0:(a=e(t(0,a+.5-p),d-p),h=(1+Math.cos(Math.PI+2*Math.PI*a/(d-p)))/2),h=l(h)):(a>=n(p)&&(h=t(0,e(a-p<0?e(d,1)-(p-a):d-a,1))),h=l(h));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;h<v?h=0:(h=(h-v)/g)>1&&(h=1)}return h*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/e,a=this.s.v/e+n,i=this.e.v/e+n;if(a>i){var r=a;a=i,i=r}this.finalS=a,this.finalE=i}},Z([R],a),{getTextSelectorProp:function(t,e,n){return new a(t,e,n)}}}(),yt=function(t,e,n){var a=0,i=t,r=I(i);return{newElement:function(){return a?r[a-=1]:e()},release:function(t){a===i&&(r=_t.double(r),i*=2),n&&n(t),r[a]=t,a+=1}}},_t={double:function(t){return t.concat(I(t.length))}},bt=yt(8,(function(){return F("float32",2)})),xt=((vt=yt(4,(function(){return new Y}),(function(t){var e,n=t._length;for(e=0;e<n;e+=1)bt.release(t.v[e]),bt.release(t.i[e]),bt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}))).clone=function(t){var e,n=vt.newElement(),a=void 0===t._length?t.v.length:t._length;for(n.setLength(a),n.c=t.c,e=0;e<a;e+=1)n.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return n},vt),Ct=function(){var t={newShapeCollection:function(){return e?a[e-=1]:new it},release:function(t){var i,r=t._length;for(i=0;i<r;i+=1)xt.release(t.shapes[i]);t._length=0,e===n&&(a=_t.double(a),n*=2),a[e]=t,e+=1}},e=0,n=4,a=I(n);return t}(),kt=yt(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,n=t.lengths.length;for(e=0;e<n;e+=1)At.release(t.lengths[e]);t.lengths.length=0})),At=yt(8,(function(){return{addedLength:0,percents:F("float32",f),lengths:F("float32",f)}})),Mt=function(){function t(t){for(var e,n=t.split("\r\n"),a={},i=0,r=0;r<n.length;r+=1)2===(e=n[r].split(":")).length&&(a[e[0]]=e[1].trim(),i+=1);if(0===i)throw new Error;return a}return function(e){for(var n=[],a=0;a<e.length;a+=1){var i=e[a],r={time:i.tm,duration:i.dr};try{r.payload=JSON.parse(e[a].cm)}catch(n){try{r.payload=t(e[a].cm)}catch(t){r.payload={name:e[a]}}}n.push(r)}return n}}();function Lt(){}function St(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=T("svg");var n="";if(e&&e.title){var a=T("title"),i=A();a.setAttribute("id",i),a.textContent=e.title,this.svgElement.appendChild(a),n+=i}if(e&&e.description){var r=T("desc"),o=A();r.setAttribute("id",o),r.textContent=e.description,this.svgElement.appendChild(r),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=T("defs");this.svgElement.appendChild(s);var l=T("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.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 Pt(t,e,a){this.data=t,this.element=e,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,r,o=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=I(s),this.solidPath="";var l,h,p,d,c,f,m=this.masksProperties,u=0,g=[],v=A(),w="clipPath",y="clip-path";for(i=0;i<s;i+=1)if(("a"!==m[i].mode&&"n"!==m[i].mode||m[i].inv||100!==m[i].o.k||m[i].o.x)&&(w="mask",y="mask"),"s"!==m[i].mode&&"i"!==m[i].mode||0!==u?p=null:((p=T("rect")).setAttribute("fill","#ffffff"),p.setAttribute("width",this.element.comp.data.w||0),p.setAttribute("height",this.element.comp.data.h||0),g.push(p)),r=T("path"),"n"===m[i].mode)this.viewData[i]={op:$.getProp(this.element,m[i].o,0,.01,this.element),prop:J.getShapeProp(this.element,m[i],3),elem:r,lastPath:""},o.appendChild(r);else{var _;if(u+=1,r.setAttribute("fill","s"===m[i].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==m[i].x.k?(w="mask",y="mask",f=$.getProp(this.element,m[i].x,0,null,this.element),_=A(),(d=T("filter")).setAttribute("id",_),(c=T("feMorphology")).setAttribute("operator","erode"),c.setAttribute("in","SourceGraphic"),c.setAttribute("radius","0"),d.appendChild(c),o.appendChild(d),r.setAttribute("stroke","s"===m[i].mode?"#000000":"#ffffff")):(c=null,f=null),this.storedData[i]={elem:r,x:f,expan:c,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},"i"===m[i].mode){h=g.length;var b=T("g");for(l=0;l<h;l+=1)b.appendChild(g[l]);var x=T("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",v+"_"+u),x.appendChild(r),o.appendChild(x),b.setAttribute("mask","url("+n+"#"+v+"_"+u+")"),g.length=0,g.push(b)}else g.push(r);m[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:r,lastPath:"",op:$.getProp(this.element,m[i].o,0,.01,this.element),prop:J.getShapeProp(this.element,m[i],3),invRect:p},this.viewData[i].prop.k||this.drawPath(m[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=T(w),s=g.length,i=0;i<s;i+=1)this.maskElement.appendChild(g[i]);u>0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(y,"url("+n+"#"+v+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function Et(){}function Dt(){}function Ft(){}function It(){}function Tt(){}function zt(t,e){this.elem=t,this.pos=e}function Rt(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=T("path"),this.msElem=null}function Bt(t,e,n){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=n,this.lvl=e,this._isAnimated=!!n.k;for(var a=0,i=t.length;a<i;){if(t[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}function Vt(t,e,n){this.transform={mProps:t,op:e,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function Ot(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=$.getProp(t,e.o,0,.01,this),this.w=$.getProp(t,e.w,0,null,this),this.d=new rt(t,e.d||{},"svg",this),this.c=$.getProp(t,e.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function Nt(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=$.getProp(t,e.o,0,.01,this),this.c=$.getProp(t,e.c,1,255,this),this.style=n}function qt(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,n)}function Ht(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=$.getProp(t,e.w,0,null,this),this.d=new rt(t,e.d||{},"svg",this),this.initGradientData(t,e,n),this._isAnimated=!!this._isAnimated}function Zt(){this.it=[],this.prevViewData=[],this.gr=T("g")}Lt.prototype.checkLayers=function(t){var e,n,a=this.layers.length;for(this.completeLayers=!0,e=a-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e]).ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},Lt.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},Lt.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Lt.prototype.createAudio=function(t){return new Kt(t,this.globalData,this)},Lt.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},Lt.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},Lt.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var n,a=t.length,i=this.layers.length;for(e=0;e<a;e+=1)for(n=0;n<i;){if(this.layers[n].id===t[e].id){this.layers[n]=t[e];break}n+=1}},Lt.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},Lt.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Lt.prototype.buildElementParenting=function(t,e,n){for(var a=this.elements,i=this.layers,r=0,o=i.length;r<o;)i[r].ind==e&&(a[r]&&!0!==a[r]?(n.push(a[r]),a[r].setAsParent(),void 0!==i[r].parent?this.buildElementParenting(t,i[r].parent,n):t.setHierarchy(n)):(this.buildItem(r),this.addPendingElement(t))),r+=1},Lt.prototype.addPendingElement=function(t){this.pendingElements.push(t)},Lt.prototype.searchExtraCompositions=function(t){var e,n=t.length;for(e=0;e<n;e+=1)if(t[e].xt){var a=this.createComp(t[e]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},Lt.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new U,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),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=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},Z([Lt],St),St.prototype.createNull=function(t){return new Gt(t,this.globalData,this)},St.prototype.createShape=function(t){return new ne(t,this.globalData,this)},St.prototype.createText=function(t){return new ee(t,this.globalData,this)},St.prototype.createImage=function(t){return new Jt(t,this.globalData,this)},St.prototype.createComp=function(t){return new te(t,this.globalData,this)},St.prototype.createSolid=function(t){return new Qt(t,this.globalData,this)},St.prototype.configAnimation=function(t){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 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,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 e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var a=T("clipPath"),i=T("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var r=A();a.setAttribute("id",r),a.appendChild(i),this.layerElement.setAttribute("clip-path","url("+n+"#"+r+")"),e.appendChild(a),this.layers=t.layers,this.elements=I(t.layers.length)},St.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},St.prototype.updateContainerSize=function(){},St.prototype.buildItem=function(t){var n=this.elements;if(!n[t]&&99!==this.layers[t].ty){n[t]=!0;var a=this.createItem(this.layers[t]);n[t]=a,e&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(a),a.initExpressions()),this.appendElementInPos(a,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?a.setMatte(n[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(a)))}},St.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,n=this.elements.length;e<n;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},St.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=n-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},St.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){for(var a,i=0;i<e;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(n,a):this.layerElement.appendChild(n)}},St.prototype.hide=function(){this.layerElement.style.display="none"},St.prototype.show=function(){this.layerElement.style.display="block"},Pt.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Pt.prototype.renderFrame=function(t){var e,a=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",a.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+n+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},Pt.prototype.getMaskelement=function(){return this.maskElement},Pt.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},Pt.prototype.drawPath=function(t,e,n){var a,i,r=" M"+e.v[0][0]+","+e.v[0][1];for(i=e._length,a=1;a<i;a+=1)r+=" C"+e.o[a-1][0]+","+e.o[a-1][1]+" "+e.i[a][0]+","+e.i[a][1]+" "+e.v[a][0]+","+e.v[a][1];if(e.c&&i>1&&(r+=" C"+e.o[a-1][0]+","+e.o[a-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==r){var o="";n.elem&&(e.c&&(o=t.inv?this.solidPath+r:r),n.elem.setAttribute("d",o)),n.lastPath=r}},Pt.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},Et.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},Dt.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var n,a=this.dynamicProperties.length;for(n=0;n<a;n+=1)(e||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},Ft.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?X.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 t,e=this.finalTransform.mat,n=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<a;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),n=0;n<a;n+=1)t=this.hierarchy[n].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var n,a=!0,i=this.comp;a;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):a=!1;var r,o=e.length;for(n=0;n<o;n+=1)r=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-r[0],t[1]-r[1],0];return t},mHelper:new q},It.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},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(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!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 t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].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}}},Z([It,function(t){function e(){}return e.prototype=t,e}({initElement:function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,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(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],Tt),Rt.prototype.reset=function(){this.d="",this._mdf=!1},Bt.prototype.setAsAnimated=function(){this._isAnimated=!0},Z([R],Ot),Z([R],Nt),qt.prototype.initGradientData=function(t,e,n){this.o=$.getProp(t,e.o,0,.01,this),this.s=$.getProp(t,e.s,1,null,this),this.e=$.getProp(t,e.e,1,null,this),this.h=$.getProp(t,e.h||{k:0},0,.01,this),this.a=$.getProp(t,e.a||{k:0},0,m,this),this.g=new ot(t,e.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,e),this.setGradientOpacity(e,n),this._isAnimated=!!this._isAnimated},qt.prototype.setGradientData=function(t,e){var a=A(),i=T(1===e.t?"linearGradient":"radialGradient");i.setAttribute("id",a),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var r,o,s,l=[];for(s=4*e.g.p,o=0;o<s;o+=4)r=T("stop"),i.appendChild(r),l.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+n+"#"+a+")"),this.gf=i,this.cst=l},qt.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var a,i,r,o=T("mask"),s=T("path");o.appendChild(s);var l=A(),h=A();o.setAttribute("id",h);var p=T(1===t.t?"linearGradient":"radialGradient");p.setAttribute("id",l),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var d=this.stops;for(i=4*t.g.p;i<r;i+=2)(a=T("stop")).setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(a),d.push(a);s.setAttribute("gf"===t.ty?"fill":"stroke","url("+n+"#"+l+")"),"gs"===t.ty&&(s.setAttribute("stroke-linecap",O[t.lc||2]),s.setAttribute("stroke-linejoin",N[t.lj||2]),1===t.lj&&s.setAttribute("stroke-miterlimit",t.ml)),this.of=p,this.ms=o,this.ost=d,this.maskId=h,e.msElem=s}},Z([R],qt),Z([qt,R],Ht);var jt=function(){var t=new q,e=new q;function n(t,e,n){(n||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(n||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function a(n,a,i){var r,o,s,l,h,p,d,c,f,m,u,g=a.styles.length,v=a.lvl;for(p=0;p<g;p+=1){if(l=a.sh._mdf||i,a.styles[p].lvl<v){for(c=e.reset(),m=v-a.styles[p].lvl,u=a.transformers.length-1;!l&&m>0;)l=a.transformers[u].mProps._mdf||l,m-=1,u-=1;if(l)for(m=v-a.styles[p].lvl,u=a.transformers.length-1;m>0;)f=a.transformers[u].mProps.v.props,c.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),m-=1,u-=1}else c=t;if(o=(d=a.sh.paths)._length,l){for(s="",r=0;r<o;r+=1)(h=d.shapes[r])&&h._length&&(s+=lt(h,h._length,h.c,c));a.caches[p]=s}else s=a.caches[p];a.styles[p].d+=!0===n.hd?"":s,a.styles[p]._mdf=l||a.styles[p]._mdf}}function i(t,e,n){var a=e.style;(e.c._mdf||n)&&a.pElem.setAttribute("fill","rgb("+p(e.c.v[0])+","+p(e.c.v[1])+","+p(e.c.v[2])+")"),(e.o._mdf||n)&&a.pElem.setAttribute("fill-opacity",e.o.v)}function r(t,e,n){o(t,e,n),s(0,e,n)}function o(t,e,n){var a,i,r,o,s,l=e.gf,h=e.g._hasOpacity,p=e.s.v,d=e.e.v;if(e.o._mdf||n){var c="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(c,e.o.v)}if(e.s._mdf||n){var f=1===t.t?"x1":"cx",m="x1"===f?"y1":"cy";l.setAttribute(f,p[0]),l.setAttribute(m,p[1]),h&&!e.g._collapsable&&(e.of.setAttribute(f,p[0]),e.of.setAttribute(m,p[1]))}if(e.g._cmdf||n){a=e.cst;var u=e.g.c;for(r=a.length,i=0;i<r;i+=1)(o=a[i]).setAttribute("offset",u[4*i]+"%"),o.setAttribute("stop-color","rgb("+u[4*i+1]+","+u[4*i+2]+","+u[4*i+3]+")")}if(h&&(e.g._omdf||n)){var g=e.g.o;for(r=(a=e.g._collapsable?e.cst:e.ost).length,i=0;i<r;i+=1)o=a[i],e.g._collapsable||o.setAttribute("offset",g[2*i]+"%"),o.setAttribute("stop-opacity",g[2*i+1])}if(1===t.t)(e.e._mdf||n)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",d[0]),e.of.setAttribute("y2",d[1])));else if((e.s._mdf||e.e._mdf||n)&&(s=Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)),l.setAttribute("r",s),h&&!e.g._collapsable&&e.of.setAttribute("r",s)),e.e._mdf||e.h._mdf||e.a._mdf||n){s||(s=Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)));var v=Math.atan2(d[1]-p[1],d[0]-p[0]),w=e.h.v;w>=1?w=.99:w<=-1&&(w=-.99);var y=s*w,_=Math.cos(v+e.a.v)*y+p[0],b=Math.sin(v+e.a.v)*y+p[1];l.setAttribute("fx",_),l.setAttribute("fy",b),h&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",b))}}function s(t,e,n){var a=e.style,i=e.d;i&&(i._mdf||n)&&i.dashStr&&(a.pElem.setAttribute("stroke-dasharray",i.dashStr),a.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),e.c&&(e.c._mdf||n)&&a.pElem.setAttribute("stroke","rgb("+p(e.c.v[0])+","+p(e.c.v[1])+","+p(e.c.v[2])+")"),(e.o._mdf||n)&&a.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(a.pElem.setAttribute("stroke-width",e.w.v),a.msElem&&a.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return i;case"gf":return o;case"gs":return r;case"st":return s;case"sh":case"el":case"rc":case"sr":return a;case"tr":return n;default:return null}}}}();function Wt(){}function Gt(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initFrame(),this.initTransform(t,e,n),this.initHierarchy()}function Ut(){}function $t(){}function Xt(){}function Yt(){}function Jt(t,e,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Qt(t,e,n){this.initElement(t,e,n)}function Kt(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,n),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this.tm=t.tm?$.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function te(t,e,n){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?I(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?$.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function ee(t,e,n){this.textSpans=[],this.renderType="svg",this.initElement(t,e,n)}function ne(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}function ae(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function ie(t,e){this.filterManager=e;var n=this.filterManager.effectElements,a=T("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",a)),(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",a)),(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",a)),(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",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a),a=T("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)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}Wt.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),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 t=V(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,n){this.globalData=e,this.comp=n,this.data=t,this.layerId=A(),this.data.sr||(this.data.sr=1),this.effectsManager=new pe(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Gt.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},Gt.prototype.renderFrame=function(){},Gt.prototype.getBaseElement=function(){return null},Gt.prototype.destroy=function(){},Gt.prototype.sourceRectAtTime=function(){},Gt.prototype.hide=function(){},Z([Wt,Ft,Et,Dt],Gt),Ut.prototype={initRendererElement:function(){this.layerElement=T("g")},createContainerElements:function(){this.matteElement=T("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,a,i=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var r=T("mask");r.setAttribute("id",this.layerId),r.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),r.appendChild(this.layerElement),i=r,this.globalData.defs.appendChild(r),dt.maskType||1!=this.data.td||(r.setAttribute("mask-type","luminance"),t=A(),e=ct.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(ct.createAlphaToLuminanceFilter()),(a=T("g")).appendChild(this.layerElement),i=a,r.appendChild(a),a.setAttribute("filter","url("+n+"#"+t+")"))}else if(2==this.data.td){var o=T("mask");o.setAttribute("id",this.layerId),o.setAttribute("mask-type","alpha");var s=T("g");o.appendChild(s),t=A(),e=ct.createFilter(t);var l=T("feComponentTransfer");l.setAttribute("in","SourceGraphic"),e.appendChild(l);var h=T("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),l.appendChild(h),this.globalData.defs.appendChild(e);var p=T("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),s.setAttribute("filter","url("+n+"#"+t+")"),s.appendChild(p),s.appendChild(this.layerElement),i=s,dt.maskType||(o.setAttribute("mask-type","luminance"),e.appendChild(ct.createAlphaToLuminanceFilter()),a=T("g"),s.appendChild(p),a.appendChild(this.layerElement),i=a,s.appendChild(a)),this.globalData.defs.appendChild(o)}}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 d=T("clipPath"),c=T("path");c.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var f=A();if(d.setAttribute("id",f),d.appendChild(c),this.globalData.defs.appendChild(d),this.checkMasks()){var m=T("g");m.setAttribute("clip-path","url("+n+"#"+f+")"),m.appendChild(this.layerElement),this.transformedElement=m,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+n+"#"+f+")")}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("opacity",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 Pt(this.data,this,this.globalData),this.renderableEffectsManager=new se(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+n+"#"+t+")")}},$t.prototype={addShapeToModifiers:function(t){var e,n=this.shapeModifiers.length;for(e=0;e<n;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,n=0,a=e.length;n<a;){if(e[n].elem===t)return e[n].pos;n+=1}return 0},addProcessedElement:function(t,e){for(var n=this.processedElements,a=n.length;a;)if(n[a-=1].elem===t)return void(n[a].pos=e);n.push(new zt(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}},Xt.prototype.initElement=function(t,e,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,n),this.textProperty=new gt(this,t.t,this.dynamicProperties),this.textAnimator=new ft(t.t,this.renderType,this),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Xt.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},Xt.prototype.createPathShape=function(t,e){var n,a,i=e.length,r="";for(n=0;n<i;n+=1)a=e[n].ks.k,r+=lt(a,a.i.length,!0,t);return r},Xt.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},Xt.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},Xt.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},Xt.prototype.applyTextPropertiesToMatrix=function(t,e,n,a,i){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n])/2,0,0)}e.translate(a,i,0)},Xt.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},Xt.prototype.emptyProp=new ut,Xt.prototype.destroy=function(){},Z([Wt,Ft,Et,Dt,Tt],Yt),Yt.prototype.initElement=function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},Yt.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var n,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=a-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))}},Yt.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Yt.prototype.setElements=function(t){this.elements=t},Yt.prototype.getElements=function(){return this.elements},Yt.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},Yt.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},Z([Wt,Ft,Ut,Et,Dt,Tt],Jt),Jt.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=T("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",t),this.layerElement.appendChild(this.innerElem)},Jt.prototype.sourceRectAtTime=function(){return this.sourceRect},Z([Jt],Qt),Qt.prototype.createContent=function(){var t=T("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},Kt.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}},Z([It,Wt,Dt],Kt),Kt.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))},Kt.prototype.show=function(){},Kt.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Kt.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Kt.prototype.resume=function(){this._canPlay=!0},Kt.prototype.setRate=function(t){this.audio.rate(t)},Kt.prototype.volume=function(t){this.audio.volume(t)},Kt.prototype.getBaseElement=function(){return null},Kt.prototype.destroy=function(){},Kt.prototype.sourceRectAtTime=function(){},Kt.prototype.initExpressions=function(){},Z([St,Yt,Ut],te),Z([Wt,Ft,Ut,Et,Dt,Tt,Xt],ee),ee.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=T("text"))},ee.prototype.buildTextContents=function(t){for(var e=0,n=t.length,a=[],i="";e<n;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(a.push(i),i=""):i+=t[e],e+=1;return a.push(i),a},ee.prototype.buildNewText=function(){var t,e,n=this.textProperty.currentData;this.renderedLetters=I(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 a=this.globalData.fontManager.getFontByName(n.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var i=n.fWeight,r=n.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var o,s=n.l||[],l=!!this.globalData.fontManager.chars;e=s.length;var h,p=this.mHelper,d="",c=this.data.singleShape,f=0,m=0,u=!0,g=.001*n.tr*n.finalSize;if(!c||l||n.sz){var v,w,y=this.textSpans.length;for(t=0;t<e;t+=1)l&&c&&0!==t||(o=y>t?this.textSpans[t]:T(l?"path":"text"),y<=t&&(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=o,this.layerElement.appendChild(o)),o.style.display="inherit"),p.reset(),p.scale(n.finalSize/100,n.finalSize/100),c&&(s[t].n&&(f=-g,m+=n.yOffset,m+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(n,p,s[t].line,f,m),f+=s[t].l||0,f+=g),l?(h=(v=(w=this.globalData.fontManager.getCharData(n.finalText[t],a.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily))&&w.data||{}).shapes?v.shapes[0].it:[],c?d+=this.createPathShape(p,h):o.setAttribute("d",this.createPathShape(p,h))):(c&&o.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),o.textContent=s[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));c&&o&&o.setAttribute("d",d)}else{var _=this.textContainer,b="start";switch(n.j){case 1:b="end";break;case 2:b="middle";break;default:b="start"}_.setAttribute("text-anchor",b),_.setAttribute("letter-spacing",g);var x=this.buildTextContents(n.finalText);for(e=x.length,m=n.ps?n.ps[1]+n.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t]||T("tspan")).textContent=x[t],o.setAttribute("x",0),o.setAttribute("y",m),o.style.display="inherit",_.appendChild(o),this.textSpans[t]=o,m+=n.finalLineHeight;this.layerElement.appendChild(_)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0},ee.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},ee.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var n,a,i=this.textAnimator.renderedLetters,r=this.textProperty.currentData.l;for(e=r.length,t=0;t<e;t+=1)r[t].n||(n=i[t],a=this.textSpans[t],n._mdf.m&&a.setAttribute("transform",n.m),n._mdf.o&&a.setAttribute("opacity",n.o),n._mdf.sw&&a.setAttribute("stroke-width",n.sw),n._mdf.sc&&a.setAttribute("stroke",n.sc),n._mdf.fc&&a.setAttribute("fill",n.fc))}},Z([Wt,Ft,Ut,$t,Et,Dt,Tt],ne),ne.prototype.initSecondaryElement=function(){},ne.prototype.identityMatrix=new q,ne.prototype.buildExpressionInterface=function(){},ne.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ne.prototype.filterUniqueShapes=function(){var t,e,n,a,i=this.shapes.length,r=this.stylesList.length,o=[],s=!1;for(n=0;n<r;n+=1){for(a=this.stylesList[n],s=!1,o.length=0,t=0;t<i;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(a)&&(o.push(e),s=e._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},ne.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].setAsAnimated()},ne.prototype.createStyleElement=function(t,e){var a,i=new Rt(t,e),r=i.pElem;return"st"===t.ty?a=new Ot(this,t,i):"fl"===t.ty?a=new Nt(this,t,i):"gf"!==t.ty&&"gs"!==t.ty||(a=new("gf"===t.ty?qt:Ht)(this,t,i),this.globalData.defs.appendChild(a.gf),a.maskId&&(this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),r.setAttribute("mask","url("+n+"#"+a.maskId+")"))),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",O[t.lc||2]),r.setAttribute("stroke-linejoin",N[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=V(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,a),a},ne.prototype.createGroupElement=function(t){var e=new Zt;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=V(t.bm)),e},ne.prototype.createTransformElement=function(t,e){var n=X.getTransformProperty(this,t,this),a=new Vt(n,n.o,e);return this.addToAnimatedContents(t,a),a},ne.prototype.createShapeElement=function(t,e,n){var a=4;"rc"===t.ty?a=5:"el"===t.ty?a=6:"sr"===t.ty&&(a=7);var i=new Bt(e,n,J.getShapeProp(this,t,a,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(t,i),i},ne.prototype.addToAnimatedContents=function(t,e){for(var n=0,a=this.animatedContents.length;n<a;){if(this.animatedContents[n].element===e)return;n+=1}this.animatedContents.push({fn:jt.createRenderFunction(t),element:e,data:t})},ne.prototype.setElementStyles=function(t){var e,n=t.styles,a=this.stylesList.length;for(e=0;e<a;e+=1)this.stylesList[e].closed||n.push(this.stylesList[e])},ne.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},ne.prototype.searchShapes=function(t,e,n,a,i,r,o){var s,l,h,p,d,c,f=[].concat(r),m=t.length-1,u=[],g=[];for(s=m;s>=0;s-=1){if((c=this.searchProcessedElement(t[s]))?e[s]=n[c-1]:t[s]._render=o,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty)c?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],i),t[s]._render&&e[s].style.pElem.parentNode!==a&&a.appendChild(e[s].style.pElem),u.push(e[s].style);else if("gr"===t[s].ty){if(c)for(h=e[s].it.length,l=0;l<h;l+=1)e[s].prevViewData[l]=e[s].it[l];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,e[s].gr,i+1,f,o),t[s]._render&&e[s].gr.parentNode!==a&&a.appendChild(e[s].gr)}else"tr"===t[s].ty?(c||(e[s]=this.createTransformElement(t[s],a)),p=e[s].transform,f.push(p)):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?(c||(e[s]=this.createShapeElement(t[s],f,i)),this.setElementStyles(e[s])):"tm"===t[s].ty||"rd"===t[s].ty||"ms"===t[s].ty||"pb"===t[s].ty?(c?(d=e[s]).closed=!1:((d=Q.getModifier(t[s].ty)).init(this,t[s]),e[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===t[s].ty&&(c?(d=e[s]).closed=!0:(d=Q.getModifier(t[s].ty),e[s]=d,d.init(this,t,s,e),this.shapeModifiers.push(d),o=!1),g.push(d));this.addProcessedElement(t[s],s+1)}for(m=u.length,s=0;s<m;s+=1)u[s].closed=!0;for(m=g.length,s=0;s<m;s+=1)g[s].closed=!0},ne.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},ne.prototype.renderShape=function(){var t,e,n=this.animatedContents.length;for(t=0;t<n;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},ne.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},ae.prototype.initialize=function(){var t,e,a,i,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,a=0):i=1+(a=this.filterManager.effectElements[0].p.v-1),(e=T("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);a<i;a+=1)t=T("path"),e.appendChild(t),this.paths.push({p:t,m:a});if(3===this.filterManager.effectElements[10].p.v){var o=T("mask"),s=A();o.setAttribute("id",s),o.setAttribute("mask-type","alpha"),o.appendChild(e),this.elem.globalData.defs.appendChild(o);var l=T("g");for(l.setAttribute("mask","url("+n+"#"+s+")");r[0];)l.appendChild(r[0]);this.elem.layerElement.appendChild(l),this.masker=o,e.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(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},ae.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var n,a,i=this.paths.length;for(e=0;e<i;e+=1)if(-1!==this.paths[e].m&&(n=this.elem.maskManager.viewData[this.paths[e].m],a=this.paths[e].p,(t||this.filterManager._mdf||n.prop._mdf)&&a.setAttribute("d",n.lastPath),t||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 r;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.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=a.getTotalLength();r="0 0 0 "+l*o+" ";var h,d=l*(s-o),c=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(d/c);for(h=0;h<f;h+=1)r+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";r+="0 "+10*l+" 0 0"}else r="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",r)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var m=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+p(255*m[0])+","+p(255*m[1])+","+p(255*m[2])+")")}},ie.prototype.createFeFunc=function(t,e){var n=T(t);return n.setAttribute("type","table"),e.appendChild(n),n},ie.prototype.getTableValue=function(t,e,n,a,i){for(var r,o,s=0,l=Math.min(t,e),h=Math.max(t,e),p=Array.call(null,{length:256}),d=0,c=i-a,f=e-t;s<=256;)o=(r=s/256)<=l?f<0?i:a:r>=h?f<0?a:i:a+c*Math.pow((r-t)/f,1/n),p[d]=o,d+=1,s+=256/255;return p.join(" ")},ie.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,n=this.filterManager.effectElements;this.feFuncRComposed&&(t||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(e=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",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(e=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",e)),this.feFuncG&&(t||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(e=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",e)),this.feFuncB&&(t||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(e=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",e)),this.feFuncA&&(t||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(e=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",e))}};var re=[];function oe(t,e,n){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=n,n.matteElement=T("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function se(){}oe.prototype.findSymbol=function(t){for(var e=0,n=re.length;e<n;){if(re[e]===t)return re[e];e+=1}return null},oe.prototype.replaceInParent=function(t,e){var n=t.layerElement.parentNode;if(n){for(var a,i=n.children,r=0,o=i.length;r<o&&i[r]!==t.layerElement;)r+=1;r<=o-2&&(a=i[r+1]);var s=T("use");s.setAttribute("href","#"+e),a?n.insertBefore(s,a):n.appendChild(s)}},oe.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var n=A(),a=T("mask");a.setAttribute("id",e.layerId),a.setAttribute("mask-type","alpha"),re.push(e);var i=t.globalData.defs;i.appendChild(a);var r=T("symbol");r.setAttribute("id",n),this.replaceInParent(e,n),r.appendChild(e.layerElement),i.appendChild(r);var o=T("use");o.setAttribute("href","#"+n),a.appendChild(o),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},oe.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,n=0,a=e.length;n<a;)e[n]&&e[n].data.ind===t&&this.setElementAsMask(this.elem,e[n]),n+=1;this.initialized=!0},oe.prototype.renderFrame=function(){this.initialized||this.initialize()};var le=function(){var e={},n=[],a=0,i=0,r=0,o=!0,s=!1;function l(t){for(var e=0,a=t.target;e<i;)n[e].animation===a&&(n.splice(e,1),e-=1,i-=1,a.isPaused||d()),e+=1}function h(t,e){if(!t)return null;for(var a=0;a<i;){if(n[a].elem===t&&null!==n[a].elem)return n[a].animation;a+=1}var r=new he;return c(r,t),r.setData(t,e),r}function p(){r+=1,u()}function d(){r-=1}function c(t,e){t.addEventListener("destroy",l),t.addEventListener("_active",p),t.addEventListener("_idle",d),n.push({elem:e,animation:t}),i+=1}function f(e){var l,h=e-a;for(l=0;l<i;l+=1)n[l].animation.advanceTime(h);a=e,r&&!s?t.requestAnimationFrame(f):o=!0}function m(e){a=e,t.requestAnimationFrame(f)}function u(){!s&&r&&o&&(t.requestAnimationFrame(m),o=!1)}return e.registerAnimation=h,e.loadAnimation=function(t){var e=new he;return c(e,null),e.setParams(t),e},e.setSpeed=function(t,e){var a;for(a=0;a<i;a+=1)n[a].animation.setSpeed(t,e)},e.setDirection=function(t,e){var a;for(a=0;a<i;a+=1)n[a].animation.setDirection(t,e)},e.play=function(t){var e;for(e=0;e<i;e+=1)n[e].animation.play(t)},e.pause=function(t){var e;for(e=0;e<i;e+=1)n[e].animation.pause(t)},e.stop=function(t){var e;for(e=0;e<i;e+=1)n[e].animation.stop(t)},e.togglePause=function(t){var e;for(e=0;e<i;e+=1)n[e].animation.togglePause(t)},e.searchAnimations=function(t,e,n){var a,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),r=i.length;for(a=0;a<r;a+=1)n&&i[a].setAttribute("data-bm-type",n),h(i[a],t);if(e&&0===r){n||(n="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=z("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),o.appendChild(s),h(s,t)}},e.resize=function(){var t;for(t=0;t<i;t+=1)n[t].animation.resize()},e.goToAndStop=function(t,e,a){var r;for(r=0;r<i;r+=1)n[r].animation.goToAndStop(t,e,a)},e.destroy=function(t){var e;for(e=i-1;e>=0;e-=1)n[e].animation.destroy(t)},e.freeze=function(){s=!0},e.unfreeze=function(){s=!1,u()},e.setVolume=function(t,e){var a;for(a=0;a<i;a+=1)n[a].animation.setVolume(t,e)},e.mute=function(t){var e;for(e=0;e<i;e+=1)n[e].animation.mute(t)},e.unmute=function(t){var e;for(e=0;e<i;e+=1)n[e].animation.unmute(t)},e.getRegisteredAnimations=function(){var t,e=n.length,a=[];for(t=0;t<e;t+=1)a.push(n[t].animation);return a},e}(),he=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=A(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=r,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface={},this.imagePreloader=new pt,this.audioController=ht(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this)};function pe(){this.effectElements=[]}Z([D],he),he.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";switch(t.animType?e=t.animType:t.renderer&&(e=t.renderer),e){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new St(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),W.loadAnimation(t.path,this.configAnimation,this.onSetupError))},he.prototype.onSetupError=function(){this.trigger("data_failed")},he.prototype.setupAnimation=function(t){W.completeAnimation(t,this.configAnimation)},he.prototype.setData=function(t,e){e&&"object"!=typeof e&&(e=JSON.parse(e));var n={wrapper:t,animationData:e},a=t.attributes;n.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",n.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:"canvas";var i=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var r=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:!a.getNamedItem("bm-autoplay")||a.getNamedItem("bm-autoplay").value;n.autoplay="false"!==r,n.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"","false"===(a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},he.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,n,a=this.animationData.layers,i=a.length,r=t.layers,o=r.length;for(n=0;n<o;n+=1)for(e=0;e<i;){if(a[e].id===r[n].id){a[e]=r[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(i=t.assets.length,e=0;e<i;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,W.completeAnimation(this.animationData,this.onSegmentComplete)},he.prototype.onSegmentComplete=function(t){this.animationData=t,e&&e.initExpressions(this),this.loadNextSegment()},he.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,W.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},he.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},he.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},he.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},he.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,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(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=Mt(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},he.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},he.prototype.checkLoaded=function(){!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()&&(this.isLoaded=!0,e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},he.prototype.resize=function(){this.renderer.updateContainerSize()},he.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},he.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")},he.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},he.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},he.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},he.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},he.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},he.prototype.getMarkerData=function(t){for(var e,n=0;n<this.markers.length;n+=1)if((e=this.markers[n]).payload&&e.payload.name===t)return e;return null},he.prototype.goToAndStop=function(t,e,n){if(!n||this.name===n){var a=Number(t);if(isNaN(a)){var i=this.getMarkerData(t);i&&this.goToAndStop(i.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},he.prototype.goToAndPlay=function(t,e,n){if(!n||this.name===n){var a=Number(t);if(isNaN(a)){var i=this.getMarkerData(t);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(a,e,n);this.play()}},he.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,n=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},he.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},he.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?n=t:this.currentRawFrame+this.firstFrame>e&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},he.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"==typeof t[0]){var n,a=t.length;for(n=0;n<a;n+=1)this.segments.push(t[n])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},he.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},he.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},he.prototype.destroy=function(t){t&&this.name!==t||!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)},he.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},he.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},he.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},he.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},he.prototype.getVolume=function(){return this.audioController.getVolume()},he.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},he.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},he.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},he.prototype.getPath=function(){return this.path},he.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),e=this.assetsPath+n}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},he.prototype.getAssetData=function(t){for(var e=0,n=this.assets.length;e<n;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},he.prototype.hide=function(){this.renderer.hide()},he.prototype.show=function(){this.renderer.show()},he.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},he.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":case"drawnFrame":this.triggerEvent(t,new v(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(t,new y(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new w(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new _(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new b(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new v(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new y(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new w(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new _(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new b(t,this))},he.prototype.triggerRenderFrameError=function(t){var e=new x(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},he.prototype.triggerConfigError=function(t){var e=new C(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var de={};function ce(){!0===me?le.searchAnimations(ue,me,ge):le.searchAnimations()}de.play=le.play,de.pause=le.pause,de.setLocationHref=function(t){n=t},de.togglePause=le.togglePause,de.setSpeed=le.setSpeed,de.setDirection=le.setDirection,de.stop=le.stop,de.searchAnimations=ce,de.registerAnimation=le.registerAnimation,de.loadAnimation=function(t){return!0===me&&(t.animationData=JSON.parse(ue)),le.loadAnimation(t)},de.setSubframeRendering=function(t){r=t},de.resize=le.resize,de.goToAndStop=le.goToAndStop,de.destroy=le.destroy,de.setQuality=function(t){if("string"==typeof t)switch(t){case"high":f=200;break;default:case"medium":f=50;break;case"low":f=10}else!isNaN(t)&&t>1&&(f=t);g(!(f>=50))},de.inBrowser=function(){return"undefined"!=typeof navigator},de.installPlugin=function(t,n){"expressions"===t&&(e=n)},de.freeze=le.freeze,de.unfreeze=le.unfreeze,de.setVolume=le.setVolume,de.mute=le.mute,de.unmute=le.unmute,de.getRegisteredAnimations=le.getRegisteredAnimations,de.useWebWorker=function(t){i=t},de.setIDPrefix=function(t){o=t},de.__getFactory=function(t){switch(t){case"propertyFactory":return $;case"shapePropertyFactory":return J;case"matrix":return q;default:return null}},de.version="5.8.1";var fe,me="__[STANDALONE]__",ue="__[ANIMATIONDATA]__",ge="";if(me){var ve=document.getElementsByTagName("script"),we=ve[ve.length-1]||{src:""};fe=we.src.replace(/^[^\?]+\??/,""),ge=function(t){for(var e=fe.split("&"),n=0;n<e.length;n+=1){var a=e[n].split("=");if(decodeURIComponent(a[0])==t)return decodeURIComponent(a[1])}return null}("renderer")}var ye=setInterval((function(){"complete"===document.readyState&&(clearInterval(ye),ce())}),100);return de}(i)}.call(e,n,e,t))||(t.exports=a))},7283:t=>{self,t.exports=(()=>{var t={192:(t,e)=>{var n,a,i=function(){var t=function(t,e){var n=t,a=o[e],i=null,r=0,l=null,g=[],v={},y=function(t,e){i=function(t){for(var e=new Array(t),n=0;n<t;n+=1){e[n]=new Array(t);for(var a=0;a<t;a+=1)e[n][a]=null}return e}(r=4*n+17),_(0,0),_(r-7,0),_(0,r-7),x(),b(),k(t,e),n>=7&&C(t),null==l&&(l=M(n,a,g)),A(l,e)},_=function(t,e){for(var n=-1;n<=7;n+=1)if(!(t+n<=-1||r<=t+n))for(var a=-1;a<=7;a+=1)e+a<=-1||r<=e+a||(i[t+n][e+a]=0<=n&&n<=6&&(0==a||6==a)||0<=a&&a<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=a&&a<=4)},b=function(){for(var t=8;t<r-8;t+=1)null==i[t][6]&&(i[t][6]=t%2==0);for(var e=8;e<r-8;e+=1)null==i[6][e]&&(i[6][e]=e%2==0)},x=function(){for(var t=s.getPatternPosition(n),e=0;e<t.length;e+=1)for(var a=0;a<t.length;a+=1){var r=t[e],o=t[a];if(null==i[r][o])for(var l=-2;l<=2;l+=1)for(var h=-2;h<=2;h+=1)i[r+l][o+h]=-2==l||2==l||-2==h||2==h||0==l&&0==h}},C=function(t){for(var e=s.getBCHTypeNumber(n),a=0;a<18;a+=1){var o=!t&&1==(e>>a&1);i[Math.floor(a/3)][a%3+r-8-3]=o}for(a=0;a<18;a+=1)o=!t&&1==(e>>a&1),i[a%3+r-8-3][Math.floor(a/3)]=o},k=function(t,e){for(var n=a<<3|e,o=s.getBCHTypeInfo(n),l=0;l<15;l+=1){var h=!t&&1==(o>>l&1);l<6?i[l][8]=h:l<8?i[l+1][8]=h:i[r-15+l][8]=h}for(l=0;l<15;l+=1)h=!t&&1==(o>>l&1),l<8?i[8][r-l-1]=h:l<9?i[8][15-l-1+1]=h:i[8][15-l-1]=h;i[r-8][8]=!t},A=function(t,e){for(var n=-1,a=r-1,o=7,l=0,h=s.getMaskFunction(e),p=r-1;p>0;p-=2)for(6==p&&(p-=1);;){for(var d=0;d<2;d+=1)if(null==i[a][p-d]){var c=!1;l<t.length&&(c=1==(t[l]>>>o&1)),h(a,p-d)&&(c=!c),i[a][p-d]=c,-1==(o-=1)&&(l+=1,o=7)}if((a+=n)<0||r<=a){a-=n,n=-n;break}}},M=function(t,e,n){for(var a=p.getRSBlocks(t,e),i=d(),r=0;r<n.length;r+=1){var o=n[r];i.put(o.getMode(),4),i.put(o.getLength(),s.getLengthInBits(o.getMode(),t)),o.write(i)}var l=0;for(r=0;r<a.length;r+=1)l+=a[r].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(t,e){for(var n=0,a=0,i=0,r=new Array(e.length),o=new Array(e.length),l=0;l<e.length;l+=1){var p=e[l].dataCount,d=e[l].totalCount-p;a=Math.max(a,p),i=Math.max(i,d),r[l]=new Array(p);for(var c=0;c<r[l].length;c+=1)r[l][c]=255&t.getBuffer()[c+n];n+=p;var f=s.getErrorCorrectPolynomial(d),m=h(r[l],f.getLength()-1).mod(f);for(o[l]=new Array(f.getLength()-1),c=0;c<o[l].length;c+=1){var u=c+m.getLength()-o[l].length;o[l][c]=u>=0?m.getAt(u):0}}var g=0;for(c=0;c<e.length;c+=1)g+=e[c].totalCount;var v=new Array(g),w=0;for(c=0;c<a;c+=1)for(l=0;l<e.length;l+=1)c<r[l].length&&(v[w]=r[l][c],w+=1);for(c=0;c<i;c+=1)for(l=0;l<e.length;l+=1)c<o[l].length&&(v[w]=o[l][c],w+=1);return v}(i,a)};v.addData=function(t,e){var n=null;switch(e=e||"Byte"){case"Numeric":n=c(t);break;case"Alphanumeric":n=f(t);break;case"Byte":n=m(t);break;case"Kanji":n=u(t);break;default:throw"mode:"+e}g.push(n),l=null},v.isDark=function(t,e){if(t<0||r<=t||e<0||r<=e)throw t+","+e;return i[t][e]},v.getModuleCount=function(){return r},v.make=function(){if(n<1){for(var t=1;t<40;t++){for(var e=p.getRSBlocks(t,a),i=d(),r=0;r<g.length;r++){var o=g[r];i.put(o.getMode(),4),i.put(o.getLength(),s.getLengthInBits(o.getMode(),t)),o.write(i)}var l=0;for(r=0;r<e.length;r++)l+=e[r].dataCount;if(i.getLengthInBits()<=8*l)break}n=t}y(!1,function(){for(var t=0,e=0,n=0;n<8;n+=1){y(!0,n);var a=s.getLostPoint(v);(0==n||t>a)&&(t=a,e=n)}return e}())},v.createTableTag=function(t,e){t=t||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(e=void 0===e?4*t:e)+"px;",n+='">',n+="<tbody>";for(var a=0;a<v.getModuleCount();a+=1){n+="<tr>";for(var i=0;i<v.getModuleCount();i+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+t+"px;",n+=" height: "+t+"px;",n+=" background-color: ",n+=v.isDark(a,i)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return(n+="</tbody>")+"</table>"},v.createSvgTag=function(t,e,n,a){var i={};"object"==typeof arguments[0]&&(t=(i=arguments[0]).cellSize,e=i.margin,n=i.alt,a=i.title),t=t||2,e=void 0===e?4*t:e,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(a="string"==typeof a?{text:a}:a||{}).text=a.text||null,a.id=a.text?a.id||"qrcode-title":null;var r,o,s,l,h=v.getModuleCount()*t+2*e,p="";for(l="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",p+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',p+=i.scalable?"":' width="'+h+'px" height="'+h+'px"',p+=' viewBox="0 0 '+h+" "+h+'" ',p+=' preserveAspectRatio="xMinYMin meet"',p+=a.text||n.text?' role="img" aria-labelledby="'+L([a.id,n.id].join(" ").trim())+'"':"",p+=">",p+=a.text?'<title id="'+L(a.id)+'">'+L(a.text)+"</title>":"",p+=n.text?'<description id="'+L(n.id)+'">'+L(n.text)+"</description>":"",p+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',p+='<path d="',o=0;o<v.getModuleCount();o+=1)for(s=o*t+e,r=0;r<v.getModuleCount();r+=1)v.isDark(o,r)&&(p+="M"+(r*t+e)+","+s+l);return(p+='" stroke="transparent" fill="black"/>')+"</svg>"},v.createDataURL=function(t,e){t=t||2,e=void 0===e?4*t:e;var n=v.getModuleCount()*t+2*e,a=e,i=n-e;return w(n,n,(function(e,n){if(a<=e&&e<i&&a<=n&&n<i){var r=Math.floor((e-a)/t),o=Math.floor((n-a)/t);return v.isDark(o,r)?0:1}return 1}))},v.createImgTag=function(t,e,n){t=t||2,e=void 0===e?4*t:e;var a=v.getModuleCount()*t+2*e,i="";return i+="<img",i+=' src="',i+=v.createDataURL(t,e),i+='"',i+=' width="',i+=a,i+='"',i+=' height="',i+=a,i+='"',n&&(i+=' alt="',i+=L(n),i+='"'),i+"/>"};var L=function(t){for(var e="",n=0;n<t.length;n+=1){var a=t.charAt(n);switch(a){case"<":e+="<";break;case">":e+=">";break;case"&":e+="&";break;case'"':e+=""";break;default:e+=a}}return e};return v.createASCII=function(t,e){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var e,n,a,i,r,o=1*v.getModuleCount()+2*t,s=t,l=o-t,h={"██":"█","█ ":"▀"," █":"▄"," ":" "},p={"██":"▀","█ ":"▀"," █":" "," ":" "},d="";for(e=0;e<o;e+=2){for(a=Math.floor((e-s)/1),i=Math.floor((e+1-s)/1),n=0;n<o;n+=1)r="█",s<=n&&n<l&&s<=e&&e<l&&v.isDark(a,Math.floor((n-s)/1))&&(r=" "),s<=n&&n<l&&s<=e+1&&e+1<l&&v.isDark(i,Math.floor((n-s)/1))?r+=" ":r+="█",d+=t<1&&e+1>=l?p[r]:h[r];d+="\n"}return o%2&&t>0?d.substring(0,d.length-o-1)+Array(o+1).join("▀"):d.substring(0,d.length-1)}(e);t-=1,e=void 0===e?2*t:e;var n,a,i,r,o=v.getModuleCount()*t+2*e,s=e,l=o-e,h=Array(t+1).join("██"),p=Array(t+1).join(" "),d="",c="";for(n=0;n<o;n+=1){for(i=Math.floor((n-s)/t),c="",a=0;a<o;a+=1)r=1,s<=a&&a<l&&s<=n&&n<l&&v.isDark(i,Math.floor((a-s)/t))&&(r=0),c+=r?h:p;for(i=0;i<t;i+=1)d+=c+"\n"}return d.substring(0,d.length-1)},v.renderTo2dContext=function(t,e){e=e||2;for(var n=v.getModuleCount(),a=0;a<n;a++)for(var i=0;i<n;i++)t.fillStyle=v.isDark(a,i)?"black":"white",t.fillRect(a*e,i*e,e,e)},v};t.stringToBytes=(t.stringToBytesFuncs={default:function(t){for(var e=[],n=0;n<t.length;n+=1){var a=t.charCodeAt(n);e.push(255&a)}return e}}).default,t.createStringToBytes=function(t,e){var n=function(){for(var n=v(t),a=function(){var t=n.read();if(-1==t)throw"eof";return t},i=0,r={};;){var o=n.read();if(-1==o)break;var s=a(),l=a()<<8|a();r[String.fromCharCode(o<<8|s)]=l,i+=1}if(i!=e)throw i+" != "+e;return r}(),a="?".charCodeAt(0);return function(t){for(var e=[],i=0;i<t.length;i+=1){var r=t.charCodeAt(i);if(r<128)e.push(r);else{var o=n[t.charAt(i)];"number"==typeof o?(255&o)==o?e.push(o):(e.push(o>>>8),e.push(255&o)):e.push(a)}}return e}};var e,n,a,i,r,o={L:1,M:0,Q:3,H:2},s=(e=[[],[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,a=7973,r=function(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e},(i={}).getBCHTypeInfo=function(t){for(var e=t<<10;r(e)-r(n)>=0;)e^=n<<r(e)-r(n);return 21522^(t<<10|e)},i.getBCHTypeNumber=function(t){for(var e=t<<12;r(e)-r(a)>=0;)e^=a<<r(e)-r(a);return t<<12|e},i.getPatternPosition=function(t){return e[t-1]},i.getMaskFunction=function(t){switch(t){case 0:return function(t,e){return(t+e)%2==0};case 1:return function(t,e){return t%2==0};case 2:return function(t,e){return e%3==0};case 3:return function(t,e){return(t+e)%3==0};case 4:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case 5:return function(t,e){return t*e%2+t*e%3==0};case 6:return function(t,e){return(t*e%2+t*e%3)%2==0};case 7:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw"bad maskPattern:"+t}},i.getErrorCorrectPolynomial=function(t){for(var e=h([1],0),n=0;n<t;n+=1)e=e.multiply(h([1,l.gexp(n)],0));return e},i.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}else if(e<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+t}else{if(!(e<41))throw"type:"+e;switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+t}}},i.getLostPoint=function(t){for(var e=t.getModuleCount(),n=0,a=0;a<e;a+=1)for(var i=0;i<e;i+=1){for(var r=0,o=t.isDark(a,i),s=-1;s<=1;s+=1)if(!(a+s<0||e<=a+s))for(var l=-1;l<=1;l+=1)i+l<0||e<=i+l||0==s&&0==l||o==t.isDark(a+s,i+l)&&(r+=1);r>5&&(n+=3+r-5)}for(a=0;a<e-1;a+=1)for(i=0;i<e-1;i+=1){var h=0;t.isDark(a,i)&&(h+=1),t.isDark(a+1,i)&&(h+=1),t.isDark(a,i+1)&&(h+=1),t.isDark(a+1,i+1)&&(h+=1),0!=h&&4!=h||(n+=3)}for(a=0;a<e;a+=1)for(i=0;i<e-6;i+=1)t.isDark(a,i)&&!t.isDark(a,i+1)&&t.isDark(a,i+2)&&t.isDark(a,i+3)&&t.isDark(a,i+4)&&!t.isDark(a,i+5)&&t.isDark(a,i+6)&&(n+=40);for(i=0;i<e;i+=1)for(a=0;a<e-6;a+=1)t.isDark(a,i)&&!t.isDark(a+1,i)&&t.isDark(a+2,i)&&t.isDark(a+3,i)&&t.isDark(a+4,i)&&!t.isDark(a+5,i)&&t.isDark(a+6,i)&&(n+=40);var p=0;for(i=0;i<e;i+=1)for(a=0;a<e;a+=1)t.isDark(a,i)&&(p+=1);return n+Math.abs(100*p/e/e-50)/5*10},i),l=function(){for(var t=new Array(256),e=new Array(256),n=0;n<8;n+=1)t[n]=1<<n;for(n=8;n<256;n+=1)t[n]=t[n-4]^t[n-5]^t[n-6]^t[n-8];for(n=0;n<255;n+=1)e[t[n]]=n;return{glog:function(t){if(t<1)throw"glog("+t+")";return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t[e]}}}();function h(t,e){if(void 0===t.length)throw t.length+"/"+e;var n=function(){for(var n=0;n<t.length&&0==t[n];)n+=1;for(var a=new Array(t.length-n+e),i=0;i<t.length-n;i+=1)a[i]=t[i+n];return a}(),a={getAt:function(t){return n[t]},getLength:function(){return n.length},multiply:function(t){for(var e=new Array(a.getLength()+t.getLength()-1),n=0;n<a.getLength();n+=1)for(var i=0;i<t.getLength();i+=1)e[n+i]^=l.gexp(l.glog(a.getAt(n))+l.glog(t.getAt(i)));return h(e,0)},mod:function(t){if(a.getLength()-t.getLength()<0)return a;for(var e=l.glog(a.getAt(0))-l.glog(t.getAt(0)),n=new Array(a.getLength()),i=0;i<a.getLength();i+=1)n[i]=a.getAt(i);for(i=0;i<t.getLength();i+=1)n[i]^=l.gexp(l.glog(t.getAt(i))+e);return h(n,0).mod(t)}};return a}var p=function(){var t=[[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]],e=function(t,e){var n={};return n.totalCount=t,n.dataCount=e,n},n={getRSBlocks:function(n,a){var i=function(e,n){switch(n){case o.L:return t[4*(e-1)+0];case o.M:return t[4*(e-1)+1];case o.Q:return t[4*(e-1)+2];case o.H:return t[4*(e-1)+3];default:return}}(n,a);if(void 0===i)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+a;for(var r=i.length/3,s=[],l=0;l<r;l+=1)for(var h=i[3*l+0],p=i[3*l+1],d=i[3*l+2],c=0;c<h;c+=1)s.push(e(p,d));return s}};return n}(),d=function(){var t=[],e=0,n={getBuffer:function(){return t},getAt:function(e){var n=Math.floor(e/8);return 1==(t[n]>>>7-e%8&1)},put:function(t,e){for(var a=0;a<e;a+=1)n.putBit(1==(t>>>e-a-1&1))},getLengthInBits:function(){return e},putBit:function(n){var a=Math.floor(e/8);t.length<=a&&t.push(0),n&&(t[a]|=128>>>e%8),e+=1}};return n},c=function(t){var e=t,n={getMode:function(){return 1},getLength:function(t){return e.length},write:function(t){for(var n=e,i=0;i+2<n.length;)t.put(a(n.substring(i,i+3)),10),i+=3;i<n.length&&(n.length-i==1?t.put(a(n.substring(i,i+1)),4):n.length-i==2&&t.put(a(n.substring(i,i+2)),7))}},a=function(t){for(var e=0,n=0;n<t.length;n+=1)e=10*e+i(t.charAt(n));return e},i=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return n},f=function(t){var e=t,n={getMode:function(){return 2},getLength:function(t){return e.length},write:function(t){for(var n=e,i=0;i+1<n.length;)t.put(45*a(n.charAt(i))+a(n.charAt(i+1)),11),i+=2;i<n.length&&t.put(a(n.charAt(i)),6)}},a=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){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 :"+t}};return n},m=function(e){var n=t.stringToBytes(e);return{getMode:function(){return 4},getLength:function(t){return n.length},write:function(t){for(var e=0;e<n.length;e+=1)t.put(n[e],8)}}},u=function(e){var n=t.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(){var t=n("友");if(2!=t.length||38726!=(t[0]<<8|t[1]))throw"sjis not supported."}();var a=n(e);return{getMode:function(){return 8},getLength:function(t){return~~(a.length/2)},write:function(t){for(var e=a,n=0;n+1<e.length;){var i=(255&e[n])<<8|255&e[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),t.put(i,13),n+=2}if(n<e.length)throw"illegal char at "+(n+1)}}},g=function(){var t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,n,a){n=n||0,a=a||t.length;for(var i=0;i<a;i+=1)e.writeByte(t[i+n])},writeString:function(t){for(var n=0;n<t.length;n+=1)e.writeByte(t.charCodeAt(n))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var n=0;n<t.length;n+=1)n>0&&(e+=","),e+=t[n];return e+"]"}};return e},v=function(t){var e=t,n=0,a=0,i=0,r={read:function(){for(;i<8;){if(n>=e.length){if(0==i)return-1;throw"unexpected end of file./"+i}var t=e.charAt(n);if(n+=1,"="==t)return i=0,-1;t.match(/^\s$/)||(a=a<<6|o(t.charCodeAt(0)),i+=6)}var r=a>>>i-8&255;return i-=8,r}},o=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return r},w=function(t,e,n){for(var a=function(t,e){var n=t,a=e,i=new Array(t*e),r={setPixel:function(t,e,a){i[e*n+t]=a},write:function(t){t.writeString("GIF87a"),t.writeShort(n),t.writeShort(a),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(n),t.writeShort(a),t.writeByte(0);var e=o(2);t.writeByte(2);for(var i=0;e.length-i>255;)t.writeByte(255),t.writeBytes(e,i,255),i+=255;t.writeByte(e.length-i),t.writeBytes(e,i,e.length-i),t.writeByte(0),t.writeString(";")}},o=function(t){for(var e=1<<t,n=1+(1<<t),a=t+1,r=s(),o=0;o<e;o+=1)r.add(String.fromCharCode(o));r.add(String.fromCharCode(e)),r.add(String.fromCharCode(n));var l,h,p,d=g(),c=(l=d,h=0,p=0,{write:function(t,e){if(t>>>e!=0)throw"length over";for(;h+e>=8;)l.writeByte(255&(t<<h|p)),e-=8-h,t>>>=8-h,p=0,h=0;p|=t<<h,h+=e},flush:function(){h>0&&l.writeByte(p)}});c.write(e,a);var f=0,m=String.fromCharCode(i[f]);for(f+=1;f<i.length;){var u=String.fromCharCode(i[f]);f+=1,r.contains(m+u)?m+=u:(c.write(r.indexOf(m),a),r.size()<4095&&(r.size()==1<<a&&(a+=1),r.add(m+u)),m=u)}return c.write(r.indexOf(m),a),c.write(n,a),c.flush(),d.toByteArray()},s=function(){var t={},e=0,n={add:function(a){if(n.contains(a))throw"dup key:"+a;t[a]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return n};return r}(t,e),i=0;i<e;i+=1)for(var r=0;r<t;r+=1)a.setPixel(r,i,n(r,i));var o=g();a.write(o);for(var s=function(){var t=0,e=0,n=0,a="",i={},r=function(t){a+=String.fromCharCode(o(63&t))},o=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return i.writeByte=function(a){for(t=t<<8|255&a,e+=8,n+=1;e>=6;)r(t>>>e-6),e-=6},i.flush=function(){if(e>0&&(r(t<<6-e),t=0,e=0),n%3!=0)for(var i=3-n%3,o=0;o<i;o+=1)a+="="},i.toString=function(){return a},i}(),l=o.toByteArray(),h=0;h<l.length;h+=1)s.writeByte(l[h]);return s.flush(),"data:image/gif;base64,"+s};return t}();i.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var e=[],n=0;n<t.length;n++){var a=t.charCodeAt(n);a<128?e.push(a):a<2048?e.push(192|a>>6,128|63&a):a<55296||a>=57344?e.push(224|a>>12,128|a>>6&63,128|63&a):(n++,a=65536+((1023&a)<<10|1023&t.charCodeAt(n)),e.push(240|a>>18,128|a>>12&63,128|a>>6&63,128|63&a))}return e}(t)},void 0===(a="function"==typeof(n=function(){return i})?n.apply(e,[]):n)||(t.exports=a)},676:(t,e,n)=>{n.d(e,{default:()=>F});var a=function(){return(a=Object.assign||function(t){for(var e,n=1,a=arguments.length;n<a;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=function(t){return!!t&&"object"==typeof t&&!Array.isArray(t)};function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!e.length)return t;var o=e.shift();return void 0!==o&&i(t)&&i(o)?(t=a({},t),Object.keys(o).forEach((function(e){var n=t[e],a=o[e];Array.isArray(n)&&Array.isArray(a)?t[e]=a:i(n)&&i(a)?t[e]=r(Object.assign({},n),a):t[e]=a})),r.apply(void 0,function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var a=Array(t),i=0;for(e=0;e<n;e++)for(var r=arguments[e],o=0,s=r.length;o<s;o++,i++)a[i]=r[o];return a}([t],e))):t}function o(t,e){var n=document.createElement("a");n.download=e,n.href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function s(t){return e=this,a=function(){return function(t,e){var n,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=2&r[0]?a.return:r[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,a=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(t,o)}catch(t){r=[6,t],a=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(e){return[2,new Promise((function(e){var n=new XMLHttpRequest;n.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsDataURL(n.response)},n.open("GET",t),n.responseType="blob",n.send()}))]}))},new((n=void 0)||(n=Promise))((function(t,i){function r(t){try{s(a.next(t))}catch(t){i(t)}}function o(t){try{s(a.throw(t))}catch(t){i(t)}}function s(e){var a;e.done?t(e.value):(a=e.value,a instanceof n?a:new n((function(t){t(a)}))).then(r,o)}s((a=a.apply(e,[])).next())}));var e,n,a}const l={L:.07,M:.15,Q:.25,H:.3};var h=function(){return(h=Object.assign||function(t){for(var e,n=1,a=arguments.length;n<a;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};const p=function(){function t(t){var e=t.svg,n=t.type;this._svg=e,this._type=n}return t.prototype.draw=function(t,e,n,a){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:t,y:e,size:n,getNeighbor:a})},t.prototype._rotateFigure=function(t){var e,n=t.x,a=t.y,i=t.size,r=t.rotation,o=void 0===r?0:r,s=n+i/2,l=a+i/2;(0,t.draw)(),null===(e=this._element)||void 0===e||e.setAttribute("transform","rotate("+180*o/Math.PI+","+s+","+l+")")},t.prototype._basicDot=function(t){var e=this,n=t.size,a=t.x,i=t.y;this._rotateFigure(h(h({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),e._element.setAttribute("cx",String(a+n/2)),e._element.setAttribute("cy",String(i+n/2)),e._element.setAttribute("r",String(n/2))}}))},t.prototype._basicSquare=function(t){var e=this,n=t.size,a=t.x,i=t.y;this._rotateFigure(h(h({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),e._element.setAttribute("x",String(a)),e._element.setAttribute("y",String(i)),e._element.setAttribute("width",String(n)),e._element.setAttribute("height",String(n))}}))},t.prototype._basicSideRounded=function(t){var e=this,n=t.size,a=t.x,i=t.y;this._rotateFigure(h(h({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+a+" "+i+"v "+n+"h "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, 0 "+-n)}}))},t.prototype._basicCornerRounded=function(t){var e=this,n=t.size,a=t.x,i=t.y;this._rotateFigure(h(h({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+a+" "+i+"v "+n+"h "+n+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},t.prototype._basicCornerExtraRounded=function(t){var e=this,n=t.size,a=t.x,i=t.y;this._rotateFigure(h(h({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+a+" "+i+"v "+n+"h "+n+"a "+n+" "+n+", 0, 0, 0, "+-n+" "+-n)}}))},t.prototype._basicCornersRounded=function(t){var e=this,n=t.size,a=t.x,i=t.y;this._rotateFigure(h(h({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+a+" "+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)}}))},t.prototype._drawDot=function(t){var e=t.x,n=t.y,a=t.size;this._basicDot({x:e,y:n,size:a,rotation:0})},t.prototype._drawSquare=function(t){var e=t.x,n=t.y,a=t.size;this._basicSquare({x:e,y:n,size:a,rotation:0})},t.prototype._drawRounded=function(t){var e=t.x,n=t.y,a=t.size,i=t.getNeighbor,r=i?+i(-1,0):0,o=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0,h=r+o+s+l;if(0!==h)if(h>2||r&&o||s&&l)this._basicSquare({x:e,y:n,size:a,rotation:0});else{if(2===h){var p=0;return r&&s?p=Math.PI/2:s&&o?p=Math.PI:o&&l&&(p=-Math.PI/2),void this._basicCornerRounded({x:e,y:n,size:a,rotation:p})}if(1===h)return p=0,s?p=Math.PI/2:o?p=Math.PI:l&&(p=-Math.PI/2),void this._basicSideRounded({x:e,y:n,size:a,rotation:p})}else this._basicDot({x:e,y:n,size:a,rotation:0})},t.prototype._drawExtraRounded=function(t){var e=t.x,n=t.y,a=t.size,i=t.getNeighbor,r=i?+i(-1,0):0,o=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0,h=r+o+s+l;if(0!==h)if(h>2||r&&o||s&&l)this._basicSquare({x:e,y:n,size:a,rotation:0});else{if(2===h){var p=0;return r&&s?p=Math.PI/2:s&&o?p=Math.PI:o&&l&&(p=-Math.PI/2),void this._basicCornerExtraRounded({x:e,y:n,size:a,rotation:p})}if(1===h)return p=0,s?p=Math.PI/2:o?p=Math.PI:l&&(p=-Math.PI/2),void this._basicSideRounded({x:e,y:n,size:a,rotation:p})}else this._basicDot({x:e,y:n,size:a,rotation:0})},t.prototype._drawClassy=function(t){var e=t.x,n=t.y,a=t.size,i=t.getNeighbor,r=i?+i(-1,0):0,o=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0;0!==r+o+s+l?r||s?o||l?this._basicSquare({x:e,y:n,size:a,rotation:0}):this._basicCornerRounded({x:e,y:n,size:a,rotation:Math.PI/2}):this._basicCornerRounded({x:e,y:n,size:a,rotation:-Math.PI/2}):this._basicCornersRounded({x:e,y:n,size:a,rotation:Math.PI/2})},t.prototype._drawClassyRounded=function(t){var e=t.x,n=t.y,a=t.size,i=t.getNeighbor,r=i?+i(-1,0):0,o=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0;0!==r+o+s+l?r||s?o||l?this._basicSquare({x:e,y:n,size:a,rotation:0}):this._basicCornerExtraRounded({x:e,y:n,size:a,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:e,y:n,size:a,rotation:-Math.PI/2}):this._basicCornersRounded({x:e,y:n,size:a,rotation:Math.PI/2})},t}();var d=function(){return(d=Object.assign||function(t){for(var e,n=1,a=arguments.length;n<a;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};const c=function(){function t(t){var e=t.svg,n=t.type;this._svg=e,this._type=n}return t.prototype.draw=function(t,e,n,a){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:t,y:e,size:n,rotation:a})},t.prototype._rotateFigure=function(t){var e,n=t.x,a=t.y,i=t.size,r=t.rotation,o=void 0===r?0:r,s=n+i/2,l=a+i/2;(0,t.draw)(),null===(e=this._element)||void 0===e||e.setAttribute("transform","rotate("+180*o/Math.PI+","+s+","+l+")")},t.prototype._basicDot=function(t){var e=this,n=t.size,a=t.x,i=t.y,r=n/7;this._rotateFigure(d(d({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("clip-rule","evenodd"),e._element.setAttribute("d","M "+(a+n/2)+" "+i+"a "+n/2+" "+n/2+" 0 1 0 0.1 0zm 0 "+r+"a "+(n/2-r)+" "+(n/2-r)+" 0 1 1 -0.1 0Z")}}))},t.prototype._basicSquare=function(t){var e=this,n=t.size,a=t.x,i=t.y,r=n/7;this._rotateFigure(d(d({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("clip-rule","evenodd"),e._element.setAttribute("d","M "+a+" "+i+"v "+n+"h "+n+"v "+-n+"zM "+(a+r)+" "+(i+r)+"h "+(n-2*r)+"v "+(n-2*r)+"h "+(2*r-n)+"z")}}))},t.prototype._basicExtraRounded=function(t){var e=this,n=t.size,a=t.x,i=t.y,r=n/7;this._rotateFigure(d(d({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("clip-rule","evenodd"),e._element.setAttribute("d","M "+a+" "+(i+2.5*r)+"v "+2*r+"a "+2.5*r+" "+2.5*r+", 0, 0, 0, "+2.5*r+" "+2.5*r+"h "+2*r+"a "+2.5*r+" "+2.5*r+", 0, 0, 0, "+2.5*r+" "+2.5*-r+"v "+-2*r+"a "+2.5*r+" "+2.5*r+", 0, 0, 0, "+2.5*-r+" "+2.5*-r+"h "+-2*r+"a "+2.5*r+" "+2.5*r+", 0, 0, 0, "+2.5*-r+" "+2.5*r+"M "+(a+2.5*r)+" "+(i+r)+"h "+2*r+"a "+1.5*r+" "+1.5*r+", 0, 0, 1, "+1.5*r+" "+1.5*r+"v "+2*r+"a "+1.5*r+" "+1.5*r+", 0, 0, 1, "+1.5*-r+" "+1.5*r+"h "+-2*r+"a "+1.5*r+" "+1.5*r+", 0, 0, 1, "+1.5*-r+" "+1.5*-r+"v "+-2*r+"a "+1.5*r+" "+1.5*r+", 0, 0, 1, "+1.5*r+" "+1.5*-r)}}))},t.prototype._drawDot=function(t){var e=t.x,n=t.y,a=t.size,i=t.rotation;this._basicDot({x:e,y:n,size:a,rotation:i})},t.prototype._drawSquare=function(t){var e=t.x,n=t.y,a=t.size,i=t.rotation;this._basicSquare({x:e,y:n,size:a,rotation:i})},t.prototype._drawExtraRounded=function(t){var e=t.x,n=t.y,a=t.size,i=t.rotation;this._basicExtraRounded({x:e,y:n,size:a,rotation:i})},t}();var f=function(){return(f=Object.assign||function(t){for(var e,n=1,a=arguments.length;n<a;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};const m=function(){function t(t){var e=t.svg,n=t.type;this._svg=e,this._type=n}return t.prototype.draw=function(t,e,n,a){("square"===this._type?this._drawSquare:this._drawDot).call(this,{x:t,y:e,size:n,rotation:a})},t.prototype._rotateFigure=function(t){var e,n=t.x,a=t.y,i=t.size,r=t.rotation,o=void 0===r?0:r,s=n+i/2,l=a+i/2;(0,t.draw)(),null===(e=this._element)||void 0===e||e.setAttribute("transform","rotate("+180*o/Math.PI+","+s+","+l+")")},t.prototype._basicDot=function(t){var e=this,n=t.size,a=t.x,i=t.y;this._rotateFigure(f(f({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),e._element.setAttribute("cx",String(a+n/2)),e._element.setAttribute("cy",String(i+n/2)),e._element.setAttribute("r",String(n/2))}}))},t.prototype._basicSquare=function(t){var e=this,n=t.size,a=t.x,i=t.y;this._rotateFigure(f(f({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),e._element.setAttribute("x",String(a)),e._element.setAttribute("y",String(i)),e._element.setAttribute("width",String(n)),e._element.setAttribute("height",String(n))}}))},t.prototype._drawDot=function(t){var e=t.x,n=t.y,a=t.size,i=t.rotation;this._basicDot({x:e,y:n,size:a,rotation:i})},t.prototype._drawSquare=function(t){var e=t.x,n=t.y,a=t.size,i=t.rotation;this._basicSquare({x:e,y:n,size:a,rotation:i})},t}(),u="circle";var g=function(t,e,n,a){return new(n||(n=Promise))((function(i,r){function o(t){try{l(a.next(t))}catch(t){r(t)}}function s(t){try{l(a.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((a=a.apply(t,e||[])).next())}))},v=function(t,e){var n,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=2&r[0]?a.return:r[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,a=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(t,o)}catch(t){r=[6,t],a=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,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]],y=[[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 t(t){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(t.width)),this._element.setAttribute("height",String(t.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=t}return Object.defineProperty(t.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),t.prototype.getElement=function(){return this._element},t.prototype.drawQR=function(t){return g(this,void 0,void 0,(function(){var e,n,a,i,r,o,s,h,p,d,c=this;return v(this,(function(f){switch(f.label){case 0:return e=t.getModuleCount(),n=Math.min(this._options.width,this._options.height)-2*this._options.margin,a=this._options.shape===u?n/Math.sqrt(2):n,i=Math.floor(a/e),r={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(f.sent(),!this._image)return[2];o=this._options,s=o.imageOptions,h=o.qrOptions,p=s.imageSize*l[h.errorCorrectionLevel],d=Math.floor(p*e*e),r=function(t){var e=t.originalHeight,n=t.originalWidth,a=t.maxHiddenDots,i=t.maxHiddenAxisDots,r=t.dotSize,o={x:0,y:0},s={x:0,y:0};if(e<=0||n<=0||a<=0||r<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var l=e/n;return o.x=Math.floor(Math.sqrt(a/l)),o.x<=0&&(o.x=1),i&&i<o.x&&(o.x=i),o.x%2==0&&o.x--,s.x=o.x*r,o.y=1+2*Math.ceil((o.x*l-1)/2),s.y=Math.round(s.x*l),(o.y*o.x>a||i&&i<o.y)&&(i&&i<o.y?(o.y=i,o.y%2==0&&o.x--):o.y-=2,s.y=o.y*r,o.x=1+2*Math.ceil((o.y/l-1)/2),s.x=Math.round(s.y/l)),{height:s.y,width:s.x,hideYDots:o.y,hideXDots:o.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:d,maxHiddenAxisDots:e-14,dotSize:i}),f.label=2;case 2:return this.drawBackground(),this.drawDots((function(t,n){var a,i,o,s,l,h;return!(c._options.imageOptions.hideBackgroundDots&&t>=(e-r.hideXDots)/2&&t<(e+r.hideXDots)/2&&n>=(e-r.hideYDots)/2&&n<(e+r.hideYDots)/2||(null===(a=w[t])||void 0===a?void 0:a[n])||(null===(i=w[t-e+7])||void 0===i?void 0:i[n])||(null===(o=w[t])||void 0===o?void 0:o[n-e+7])||(null===(s=y[t])||void 0===s?void 0:s[n])||(null===(l=y[t-e+7])||void 0===l?void 0:l[n])||(null===(h=y[t])||void 0===h?void 0:h[n-e+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:r.width,height:r.height,count:e,dotSize:i})]:[3,4];case 3:f.sent(),f.label=4;case 4:return[2]}}))}))},t.prototype.drawBackground=function(){var t,e,n,a=this._element,i=this._options;if(a){var r=null===(t=i.backgroundOptions)||void 0===t?void 0:t.gradient,o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.color;if((r||o)&&this._createColor({options:r,color:o,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)}}},t.prototype.drawDots=function(t){var e,n,a=this;if(!this._qr)throw"QR code is not defined";var i=this._options,r=this._qr.getModuleCount();if(r>i.width||r>i.height)throw"The canvas is too small.";var o=Math.min(i.width,i.height)-2*i.margin,s=i.shape===u?o/Math.sqrt(2):o,l=Math.floor(s/r),h=Math.floor((i.width-r*l)/2),d=Math.floor((i.height-r*l)/2),c=new p({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===(e=i.dotsOptions)||void 0===e?void 0:e.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var f=function(e){for(var i=function(i){return t&&!t(e,i)?"continue":(null===(n=m._qr)||void 0===n?void 0:n.isDark(e,i))?(c.draw(h+e*l,d+i*l,l,(function(n,o){return!(e+n<0||i+o<0||e+n>=r||i+o>=r)&&!(t&&!t(e+n,i+o))&&!!a._qr&&a._qr.isDark(e+n,i+o)})),void(c._element&&m._dotsClipPath&&m._dotsClipPath.appendChild(c._element))):"continue"},o=0;o<r;o++)i(o)},m=this,g=0;g<r;g++)f(g);if(i.shape===u){var v=Math.floor((o/l-r)/2),w=r+2*v,y=h-v*l,_=d-v*l,b=[],x=Math.floor(w/2);for(g=0;g<w;g++){b[g]=[];for(var C=0;C<w;C++)g>=v-1&&g<=w-v&&C>=v-1&&C<=w-v||Math.sqrt((g-x)*(g-x)+(C-x)*(C-x))>x?b[g][C]=0:b[g][C]=this._qr.isDark(C-2*v<0?C:C>=r?C-2*v:C-v,g-2*v<0?g:g>=r?g-2*v:g-v)?1:0}var k=function(t){for(var e=function(e){if(!b[t][e])return"continue";c.draw(y+t*l,_+e*l,l,(function(n,a){var i;return!!(null===(i=b[t+n])||void 0===i?void 0:i[e+a])})),c._element&&A._dotsClipPath&&A._dotsClipPath.appendChild(c._element)},n=0;n<w;n++)e(n)},A=this;for(g=0;g<w;g++)k(g)}},t.prototype.drawCorners=function(){var t=this;if(!this._qr)throw"QR code is not defined";var e=this._element,n=this._options;if(!e)throw"Element code is not defined";var a=this._qr.getModuleCount(),i=Math.min(n.width,n.height)-2*n.margin,r=n.shape===u?i/Math.sqrt(2):i,o=Math.floor(r/a),s=7*o,l=3*o,h=Math.floor((n.width-a*o)/2),d=Math.floor((n.height-a*o)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(e){var i,r,f,u,g,v,_,b,x,C,k,A,M=e[0],L=e[1],S=e[2],P=h+M*o*(a-7),E=d+L*o*(a-7),D=t._dotsClipPath,F=t._dotsClipPath;if(((null===(i=n.cornersSquareOptions)||void 0===i?void 0:i.gradient)||(null===(r=n.cornersSquareOptions)||void 0===r?void 0:r.color))&&((D=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+M+"-"+L),t._defs.appendChild(D),t._cornersSquareClipPath=t._cornersDotClipPath=F=D,t._createColor({options:null===(f=n.cornersSquareOptions)||void 0===f?void 0:f.gradient,color:null===(u=n.cornersSquareOptions)||void 0===u?void 0:u.color,additionalRotation:S,x:P,y:E,height:s,width:s,name:"corners-square-color-"+M+"-"+L})),null===(g=n.cornersSquareOptions)||void 0===g?void 0:g.type){var I=new c({svg:t._element,type:n.cornersSquareOptions.type});I.draw(P,E,s,S),I._element&&D&&D.appendChild(I._element)}else for(var T=new p({svg:t._element,type:n.dotsOptions.type}),z=function(t){for(var e=function(e){if(!(null===(v=w[t])||void 0===v?void 0:v[e]))return"continue";T.draw(P+t*o,E+e*o,o,(function(n,a){var i;return!!(null===(i=w[t+n])||void 0===i?void 0:i[e+a])})),T._element&&D&&D.appendChild(T._element)},n=0;n<w[t].length;n++)e(n)},R=0;R<w.length;R++)z(R);if(((null===(_=n.cornersDotOptions)||void 0===_?void 0:_.gradient)||(null===(b=n.cornersDotOptions)||void 0===b?void 0:b.color))&&((F=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+M+"-"+L),t._defs.appendChild(F),t._cornersDotClipPath=F,t._createColor({options:null===(x=n.cornersDotOptions)||void 0===x?void 0:x.gradient,color:null===(C=n.cornersDotOptions)||void 0===C?void 0:C.color,additionalRotation:S,x:P+2*o,y:E+2*o,height:l,width:l,name:"corners-dot-color-"+M+"-"+L})),null===(k=n.cornersDotOptions)||void 0===k?void 0:k.type){var B=new m({svg:t._element,type:n.cornersDotOptions.type});B.draw(P+2*o,E+2*o,l,S),B._element&&F&&F.appendChild(B._element)}else{T=new p({svg:t._element,type:n.dotsOptions.type});var V=function(t){for(var e=function(e){if(!(null===(A=y[t])||void 0===A?void 0:A[e]))return"continue";T.draw(P+t*o,E+e*o,o,(function(n,a){var i;return!!(null===(i=y[t+n])||void 0===i?void 0:i[e+a])})),T._element&&F&&F.appendChild(T._element)},n=0;n<y[t].length;n++)e(n)};for(R=0;R<y.length;R++)V(R)}}))},t.prototype.loadImage=function(){var t=this;return new Promise((function(e,n){var a=t._options,i=new Image;if(!a.image)return n("Image is not defined");"string"==typeof a.imageOptions.crossOrigin&&(i.crossOrigin=a.imageOptions.crossOrigin),t._image=i,i.onload=function(){e()},i.src=a.image}))},t.prototype.drawImage=function(t){var e=t.width,n=t.height,a=t.count,i=t.dotSize;return g(this,void 0,void 0,(function(){var t,r,o,l,h,p,d,c,f;return v(this,(function(m){switch(m.label){case 0:return t=this._options,r=Math.floor((t.width-a*i)/2),o=Math.floor((t.height-a*i)/2),l=r+t.imageOptions.margin+(a*i-e)/2,h=o+t.imageOptions.margin+(a*i-n)/2,p=e-2*t.imageOptions.margin,d=n-2*t.imageOptions.margin,(c=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(l)),c.setAttribute("y",String(h)),c.setAttribute("width",p+"px"),c.setAttribute("height",d+"px"),[4,s(t.image||"")];case 1:return f=m.sent(),c.setAttribute("href",f||""),this._element.appendChild(c),[2]}}))}))},t.prototype._createColor=function(t){var e=t.options,n=t.color,a=t.additionalRotation,i=t.x,r=t.y,o=t.height,s=t.width,l=t.name,h=s>o?s:o,p=document.createElementNS("http://www.w3.org/2000/svg","rect");if(p.setAttribute("x",String(i)),p.setAttribute("y",String(r)),p.setAttribute("height",String(o)),p.setAttribute("width",String(s)),p.setAttribute("clip-path","url('#clip-path-"+l+"')"),e){var d;if("radial"===e.type)(d=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",l),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("fx",String(i+s/2)),d.setAttribute("fy",String(r+o/2)),d.setAttribute("cx",String(i+s/2)),d.setAttribute("cy",String(r+o/2)),d.setAttribute("r",String(h/2));else{var c=((e.rotation||0)+a)%(2*Math.PI),f=(c+2*Math.PI)%(2*Math.PI),m=i+s/2,u=r+o/2,g=i+s/2,v=r+o/2;f>=0&&f<=.25*Math.PI||f>1.75*Math.PI&&f<=2*Math.PI?(m-=s/2,u-=o/2*Math.tan(c),g+=s/2,v+=o/2*Math.tan(c)):f>.25*Math.PI&&f<=.75*Math.PI?(u-=o/2,m-=s/2/Math.tan(c),v+=o/2,g+=s/2/Math.tan(c)):f>.75*Math.PI&&f<=1.25*Math.PI?(m+=s/2,u+=o/2*Math.tan(c),g-=s/2,v-=o/2*Math.tan(c)):f>1.25*Math.PI&&f<=1.75*Math.PI&&(u+=o/2,m+=s/2/Math.tan(c),v-=o/2,g-=s/2/Math.tan(c)),(d=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",l),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("x1",String(Math.round(m))),d.setAttribute("y1",String(Math.round(u))),d.setAttribute("x2",String(Math.round(g))),d.setAttribute("y2",String(Math.round(v)))}e.colorStops.forEach((function(t){var e=t.offset,n=t.color,a=document.createElementNS("http://www.w3.org/2000/svg","stop");a.setAttribute("offset",100*e+"%"),a.setAttribute("stop-color",n),d.appendChild(a)})),p.setAttribute("fill","url('#"+l+"')"),this._defs.appendChild(d)}else n&&p.setAttribute("fill",n);this._element.appendChild(p)},t}(),b="canvas";for(var x={},C=0;C<=40;C++)x[C]=C;const k={type:b,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:x[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 A=function(){return(A=Object.assign||function(t){for(var e,n=1,a=arguments.length;n<a;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function M(t){var e=A({},t);if(!e.colorStops||!e.colorStops.length)throw"Field 'colorStops' is required in gradient";return e.rotation?e.rotation=Number(e.rotation):e.rotation=0,e.colorStops=e.colorStops.map((function(t){return A(A({},t),{offset:Number(t.offset)})})),e}function L(t){var e=A({},t);return e.width=Number(e.width),e.height=Number(e.height),e.margin=Number(e.margin),e.imageOptions=A(A({},e.imageOptions),{hideBackgroundDots:Boolean(e.imageOptions.hideBackgroundDots),imageSize:Number(e.imageOptions.imageSize),margin:Number(e.imageOptions.margin)}),e.margin>Math.min(e.width,e.height)&&(e.margin=Math.min(e.width,e.height)),e.dotsOptions=A({},e.dotsOptions),e.dotsOptions.gradient&&(e.dotsOptions.gradient=M(e.dotsOptions.gradient)),e.cornersSquareOptions&&(e.cornersSquareOptions=A({},e.cornersSquareOptions),e.cornersSquareOptions.gradient&&(e.cornersSquareOptions.gradient=M(e.cornersSquareOptions.gradient))),e.cornersDotOptions&&(e.cornersDotOptions=A({},e.cornersDotOptions),e.cornersDotOptions.gradient&&(e.cornersDotOptions.gradient=M(e.cornersDotOptions.gradient))),e.backgroundOptions&&(e.backgroundOptions=A({},e.backgroundOptions),e.backgroundOptions.gradient&&(e.backgroundOptions.gradient=M(e.backgroundOptions.gradient))),e}var S=n(192),P=n.n(S),E=function(t,e,n,a){return new(n||(n=Promise))((function(i,r){function o(t){try{l(a.next(t))}catch(t){r(t)}}function s(t){try{l(a.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((a=a.apply(t,e||[])).next())}))},D=function(t,e){var n,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=2&r[0]?a.return:r[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,a=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(t,o)}catch(t){r=[6,t],a=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}};const F=function(){function t(t){this._options=t?L(r(k,t)):k,this.update()}return t._clearContainer=function(t){t&&(t.innerHTML="")},t.prototype._setupSvg=function(){var t=this;if(this._qr){var e=new _(this._options);this._svg=e.getElement(),this._svgDrawingPromise=e.drawQR(this._qr).then((function(){var n;t._svg&&(null===(n=t._extension)||void 0===n||n.call(t,e.getElement(),t._options))}))}},t.prototype._setupCanvas=function(){var t,e=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===(t=this._svgDrawingPromise)||void 0===t?void 0:t.then((function(){if(e._svg){var t=e._svg,n=(new XMLSerializer).serializeToString(t),a="data:image/svg+xml;base64,"+btoa(n),i=new Image;return new Promise((function(t){i.onload=function(){var n,a;null===(a=null===(n=e._canvas)||void 0===n?void 0:n.getContext("2d"))||void 0===a||a.drawImage(i,0,0),t()},i.src=a}))}})))},t.prototype._getElement=function(t){return void 0===t&&(t="png"),E(this,void 0,void 0,(function(){return D(this,(function(e){switch(e.label){case 0:if(!this._qr)throw"QR code is empty";return"svg"!==t.toLowerCase()?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return e.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return e.sent(),[2,this._canvas]}}))}))},t.prototype.update=function(e){t._clearContainer(this._container),this._options=e?L(r(this._options,e)):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(t){switch(!0){case/^[0-9]*$/.test(t):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(t):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===b?this._setupCanvas():this._setupSvg(),this.append(this._container))},t.prototype.append=function(t){if(t){if("function"!=typeof t.appendChild)throw"Container should be a single DOM node";this._options.type===b?this._canvas&&t.appendChild(this._canvas):this._svg&&t.appendChild(this._svg),this._container=t}},t.prototype.applyExtension=function(t){if(!t)throw"Extension function should be defined.";this._extension=t,this.update()},t.prototype.deleteExtension=function(){this._extension=void 0,this.update()},t.prototype.getRawData=function(t){return void 0===t&&(t="png"),E(this,void 0,void 0,(function(){var e,n,a;return D(this,(function(i){switch(i.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(t)];case 1:return(e=i.sent())?"svg"===t.toLowerCase()?(n=new XMLSerializer,a=n.serializeToString(e),[2,new Blob(['<?xml version="1.0" standalone="no"?>\r\n'+a],{type:"image/svg+xml"})]):[2,new Promise((function(n){return e.toBlob(n,"image/"+t,1)}))]:[2,null]}}))}))},t.prototype.download=function(t){return E(this,void 0,void 0,(function(){var e,n,a,i,r;return D(this,(function(s){switch(s.label){case 0:if(!this._qr)throw"QR code is empty";return e="png",n="qr","string"==typeof t?(e=t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof t&&null!==t&&(t.name&&(n=t.name),t.extension&&(e=t.extension)),[4,this._getElement(e)];case 1:return(a=s.sent())?("svg"===e.toLowerCase()?(i=new XMLSerializer,r='<?xml version="1.0" standalone="no"?>\r\n'+(r=i.serializeToString(a)),o("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r),n+".svg")):o(a.toDataURL("image/"+e),n+"."+e),[2]):[2]}}))}))},t}()}},e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={exports:{}};return t[a](i,i.exports,n),i.exports}return n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n(676)})().default},8331:(t,e,n)=>{n.r(e);var a=n(4256),i=n(7283),r=n(494);function o(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&a.firstChild?a.insertBefore(i,a.firstChild):a.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}n(1704),n(3899),n(6880);var s=".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}\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}";o(s);const l=document.createElement("template"),h=(0,a.i)()?"pera-wallet-modal-header pera-wallet-modal-header--mobile":"pera-wallet-modal-header pera-wallet-modal-header--desktop";l.innerHTML=`\n <div class="${h}">\n ${(0,a.i)()?"":"<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.4.2</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="${(0,a.i)()?"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 p extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const t=document.createElement("style");t.textContent=s,this.shadowRoot.append(l.content.cloneNode(!0),t),this.onClose()}}onClose(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-modal-header-close-button"),n=this.getAttribute("modal-id");e&&n===a.P&&e.addEventListener("click",(()=>{(0,a.r)(a.P)}))}}var d="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.02c.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",c=".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}";o(c);const f=document.createElement("template");f.innerHTML='\n <div id="pera-wallet-download-qr-code-wrapper" class="pera-wallet-download-qr-code-wrapper"></div> \n';class m extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const t=document.createElement("style");t.textContent=c,this.shadowRoot.append(f.content.cloneNode(!0),t)}}connectedCallback(){var t;const e=new i({width:205,height:205,type:"svg",data:a.a,image:d,dotsOptions:{color:"#000",type:"extra-rounded"},imageOptions:{crossOrigin:"anonymous",margin:10},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}}),n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-download-qr-code-wrapper");n&&e.append(n)}}var u="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",g=".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, 0.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}";o(g);var v=".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}";o(v);const w=document.createElement("template"),y=document.createElement("style"),_=document.createElement("style");y.textContent=g,_.textContent=v,w.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.0098V29.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.7754' 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 b extends HTMLElement{constructor(){var t;if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){if(this.shadowRoot.append(w.content.cloneNode(!0),y,_),this.shadowRoot.addEventListener("click",(t=>{this.handleAccordion(t)})),"true"===this.getAttribute("compact-mode")){const t=this.shadowRoot.getElementById("pera-wallet-connect-modal-desktop-mode");null==t||t.classList.add("pera-wallet-connect-modal-desktop-mode--compact")}const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".pera-wallet-connect-modal-desktop-mode__default-view"),n="true"===this.getAttribute("promote-mobile"),{webWalletOption:a,mobileWalletOption:i}=function(t){const e=`\n <div id="web-wallet-option" class="pera-wallet-accordion-item ${t?"":"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="${u}" 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 ${t?"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="${u}" class="pera-wallet-accordion-icon" />\n \n <div class="pera-wallet-accordion-toggle__text">\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’t 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(e)}}(n);n?(null==e||e.appendChild(i),null==e||e.appendChild(a)):(null==e||e.appendChild(a),null==e||e.appendChild(i))}}connectedCallback(){var t;const e=this.getAttribute("should-display-new-badge"),n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-web-new-label");"false"===e&&(null==n||n.setAttribute("style","display:none")),this.handleChangeView()}handleChangeView(){var t,e,n;const a=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-connect-modal-desktop-mode-download-pera-button"),i=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-connect-modal-download-pera-view-back-button"),r=null===(n=this.shadowRoot)||void 0===n?void 0:n.getElementById("pera-wallet-connect-web-wallet-launch-button");a&&a.addEventListener("click",(()=>{this.onClickDownload()})),i&&i.addEventListener("click",(()=>{this.onClickBack()})),r&&r.addEventListener("click",(()=>{this.webWalletConnect()})),this.renderQRCode(),this.checkWebWalletAvaliability()}webWalletConnect(){"true"===this.getAttribute("is-web-wallet-avaliable")&&window.onWebWalletConnect()}handleAccordion(t){var e,n;if(t.target instanceof Element){if(!t.target.classList.contains("pera-wallet-accordion-toggle__button"))return;if(this.shadowRoot&&(null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)){const e=null===(n=t.target.parentElement)||void 0===n?void 0:n.parentElement;if(!e)return;if(e.classList.contains("pera-wallet-accordion-item--active"))return;const a=this.shadowRoot.querySelectorAll(".pera-wallet-accordion-item.pera-wallet-accordion-item--active");for(let t=0;t<a.length;t++)a[t].classList.remove("pera-wallet-accordion-item--active");e.classList.toggle("pera-wallet-accordion-item--active")}}}renderQRCode(){var t;const e=this.getAttribute("is-web-wallet-avaliable"),n="true"===this.getAttribute("compact-mode"),a="true"===this.getAttribute("single-account");let r=this.getAttribute("uri");a&&(r=`${r}&singleAccount=true`);let o="false"===e?250:205;if(n&&(o=190),r){const e=new i({width:o,height:o,type:"svg",data:r,image:d,dotsOptions:{color:"#000",type:"extra-rounded"},imageOptions:{crossOrigin:"anonymous",margin:8},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}}),n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-connect-modal-connect-qr-code");n&&e.append(n)}}onClickDownload(){if(this.shadowRoot){const t=this.shadowRoot.getElementById("pera-wallet-connect-modal-desktop-mode");t&&(t.classList.remove("pera-wallet-connect-modal-desktop-mode--default"),t.classList.add("pera-wallet-connect-modal-desktop-mode--download"))}}onClickBack(){if(this.shadowRoot){const t=this.shadowRoot.getElementById("pera-wallet-connect-modal-desktop-mode");t&&(t.classList.add("pera-wallet-connect-modal-desktop-mode--default"),t.classList.remove("pera-wallet-connect-modal-desktop-mode--download"))}}checkWebWalletAvaliability(){var t;if("false"===this.getAttribute("is-web-wallet-avaliable")){const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".pera-wallet-connect-modal-desktop-mode__default-view");null==e||e.classList.add("pera-wallet-connect-modal-desktop-mode__default-view--web-wallet-not-avaliable")}}}function x(t=!0){let e=a.e;const n=(0,a.d)();return t&&n&&(e=`${e}?browser=${encodeURIComponent(n)}`),e}var C=".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}";o(C);const k=document.createElement("template");class A extends HTMLElement{constructor(){var t;if(super(),this.attachShadow({mode:"open"}),k.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 e=document.createElement("style");e.textContent=C,this.shadowRoot.append(k.content.cloneNode(!0),e);const n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-connect-modal-touch-screen-mode-launch-pera-wallet-button"),i=this.getAttribute("uri"),r="true"===this.getAttribute("single-account"),o=this.getAttribute("selected-account")||void 0;n&&i&&(n.setAttribute("href",function(t,e){let n=x(!1);(0,a.b)()&&!n.includes("-wc")&&(n=n.replace("://","-wc://"));let i=`${n}wc?uri=${encodeURIComponent(t)}`;const r=(0,a.d)();return(0,a.c)()&&(i=t),r&&(i=`${i}&browser=${encodeURIComponent(r)}`),(null==e?void 0:e.singleAccount)&&(i=`${i}&singleAccount=true`),(null==e?void 0:e.selectedAccount)&&(i=`${i}&selectedAccount=${e.selectedAccount}`),i}(i,{singleAccount:r,selectedAccount:o})),n.addEventListener("click",(()=>{this.onClickLaunch()})))}}onClickLaunch(){if(k.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="${this.getAttribute("should-use-sound")}"></pera-wallet-connect-modal-pending-message-section>\n </div>\n `,this.shadowRoot){const t=document.createElement("style");t.textContent=C,this.shadowRoot.innerHTML="",this.shadowRoot.append(k.content.cloneNode(!0),t)}}}var M='@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(--pera-wallet-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}';o(M);const L=document.createElement("template");let S=(0,a.i)()?`${a.f} ${a.f}--mobile`:`${a.f} ${a.f}--desktop`;class P extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const t=document.createElement("style");t.textContent=M,"true"===this.getAttribute("compact-mode")&&(S=`${S} ${a.f}--compact`);const e="true"===this.getAttribute("single-account"),n=this.getAttribute("selected-account");(0,a.i)()?(L.innerHTML=`\n <div class="${S}">\n <div class="pera-wallet-modal__body" part="body">\n <pera-wallet-modal-header modal-id="${a.g}"></pera-wallet-modal-header/>\n \n <pera-wallet-modal-touch-screen-mode uri="${this.getAttribute("uri")}" should-use-sound="${this.getAttribute("should-use-sound")}" single-account="${e}" selected-account="${n}"></pera-wallet-modal-touch-screen-mode>\n </div>\n </div>\n `,this.shadowRoot.append(L.content.cloneNode(!0),t)):(L.innerHTML=`\n <div class="${S}">\n <div class="pera-wallet-modal__body">\n <pera-wallet-modal-header modal-id="${a.g}"></pera-wallet-modal-header/>\n \n <pera-wallet-modal-desktop-mode id="pera-wallet-modal-desktop-mode" uri="${this.getAttribute("uri")}" is-web-wallet-avaliable="${this.getAttribute("is-web-wallet-avaliable")}" should-display-new-badge="${this.getAttribute("should-display-new-badge")}" compact-mode="${this.getAttribute("compact-mode")}" promote-mobile="${this.getAttribute("promote-mobile")}" single-account="${e}"\n ></pera-wallet-modal-desktop-mode>\n </div>\n </div>\n `,this.shadowRoot.append(L.content.cloneNode(!0),t))}}}var E='@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(--pera-wallet-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}';o(E);const D=document.createElement("template");D.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="${a.P}"></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 F extends HTMLElement{constructor(){var t,e;if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const n=document.createElement("style");n.textContent=E,this.shadowRoot.append(D.content.cloneNode(!0),n);const a=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-redirect-modal-download-pera-link");null==a||a.addEventListener("click",(()=>{this.onClose()}));const i=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pera-wallet-redirect-modal-launch-pera-link");null==i||i.addEventListener("click",(()=>{this.onClose(),window.open(x(),"_blank")}))}}connectedCallback(){const t=window.open(x(),"_blank");t&&!t.closed&&this.onClose()}onClose(){(0,a.r)(a.P)}}var I="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",T=".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}";o(T);const z=document.createElement("template"),R=(0,a.i)()?"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";z.innerHTML=`\n <section class="${R}">\n <img\n id="pera-wallet-connect-modal-information-section-pera-icon"\n src="${I}"\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.89168 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 17.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 B extends HTMLElement{constructor(){var t,e,n,i;super(),this.attachShadow({mode:"open"});const r="true"===(null===(t=document.querySelector("pera-wallet-connect-modal"))||void 0===t?void 0:t.getAttribute("compact-mode"));if(this.shadowRoot&&(!r&&!(0,a.i)()||(0,a.i)())){const t=document.createElement("style");t.textContent=T,this.shadowRoot.append(z.content.cloneNode(!0),t),(0,a.i)()?null===(e=this.shadowRoot.getElementById("pera-wallet-connect-modal-information-section-title"))||void 0===e||e.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 17.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 V='@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(--pera-wallet-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}';o(V);const O=document.createElement("template");O.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 N=`\n <div class="pera-wallet-connect-modal-pending-message--try-again-view">\n <div>\n <img src="${I}" alt="Pera Wallet Logo" />\n\n <h1 class="pera-wallet-connect-modal-pending-message--try-again-view__title">\n Couldn’t 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.75 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 q extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const t=document.createElement("style");t.textContent=V,this.shadowRoot.append(O.content.cloneNode(!0),t)}}connectedCallback(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-connect-modal-pending-message-cancel-button");null==e||e.addEventListener("click",(()=>{this.onClose()})),this.addAudioForConnection(),this.renderLottieAnimation(),setTimeout((()=>{var t;if(O.innerHTML=N,this.shadowRoot){const e=document.createElement("style");e.textContent=V,this.shadowRoot.innerHTML="",this.shadowRoot.append(O.content.cloneNode(!0),e);const n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-connect-modal-pending-message-try-again-button");null==n||n.addEventListener("click",(()=>{this.onClose()}))}}),3e4)}onClose(){(0,a.r)(a.g)}addAudioForConnection(){var t;if("true"===this.getAttribute("should-use-sound")&&(0,a.b)()){const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.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==e||e.appendChild(n)}}renderLottieAnimation(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-connect-modal-pending-message-animation-wrapper");e&&r.loadAnimation({container:e,renderer:"svg",loop:!0,autoplay:!0,path:"https://s3.amazonaws.com/wc.perawallet.app/static/pera-loader-animation.json"})}}var H='.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}';o(H);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 j extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const t=document.createElement("style");t.textContent=H,this.shadowRoot.append(Z.content.cloneNode(!0),t);const e=this.shadowRoot.getElementById("pera-wallet-sign-txn-toast-close-button");null==e||e.addEventListener("click",(()=>{(0,a.r)(a.h)})),this.renderLottieAnimation()}}renderLottieAnimation(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pera-wallet-sign-txn-toast-lottie-animation");e&&r.loadAnimation({container:e,renderer:"svg",loop:!0,autoplay:!0,path:"https://s3.amazonaws.com/wc.perawallet.app/static/sign-toast-animation.json"})}}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(--pera-wallet-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}';o(W);const G=document.createElement("template");G.innerHTML=`\n <div id="pera-wallet-sign-txn-modal" class="${a.f} pera-wallet-sign-txn-modal">\n <div class="pera-wallet-modal__body">\n <pera-wallet-modal-header modal-id="${a.j}"></pera-wallet-modal-header/>\n\n <div class="pera-wallet-sign-txn-modal__body__content" />\n </div>\n </div>\n`;class U extends HTMLElement{constructor(){if(super(),this.attachShadow({mode:"open"}),this.shadowRoot){const t=document.createElement("style");if(t.textContent=W,this.shadowRoot.append(G.content.cloneNode(!0),t),"true"===this.getAttribute("compact-mode")){const t=this.shadowRoot.getElementById("pera-wallet-sign-txn-modal");null==t||t.classList.add("pera-wallet-sign-txn-modal--compact")}}}}function $(){document.documentElement.style.setProperty("--pera-wallet-vh",.01*window.innerHeight+"px")}function X(t,e){window.customElements.get(t)||window.customElements.define(t,e)}window.addEventListener("DOMContentLoaded",(()=>{$()})),window.addEventListener("resize",(()=>{$()})),X("pera-wallet-connect-modal",P),X("pera-wallet-modal-desktop-mode",b),X("pera-wallet-modal-header",p),X("pera-wallet-modal-touch-screen-mode",A),X("pera-wallet-redirect-modal",F),X("pera-wallet-connect-modal-information-section",B),X("pera-wallet-connect-modal-pending-message-section",q),X("pera-wallet-sign-txn-toast",j),X("pera-wallet-sign-txn-modal",U),X("pera-wallet-download-qr-code",m)}};
|