@eva/plugin-renderer-lottie 1.2.7-editor.9 → 1.2.8-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- function _defineProperties(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}window.EVA=window.EVA||{},window.EVA.plugin=window.EVA.plugin||{},window.EVA.plugin.renderer=window.EVA.plugin.renderer||{};var _EVA_IIFE_lottie=function(t,e,i,s){"use strict";var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},r(t,e)};function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var a=function(){return a=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},a.apply(this,arguments)};function o(t,e,i,s){var r,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}function h(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function p(t,e,i,s){return new(i||(i=Promise))((function(r,n){function a(t){try{h(s.next(t))}catch(t){n(t)}}function o(t){try{h(s.throw(t))}catch(t){n(t)}}function h(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,o)}h((s=s.apply(t,e||[])).next())}))}function l(t,e){var i,s,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(n){return function(o){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,s&&(r=2&n[0]?s.return:n[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,n[1])).done)return r;switch(s=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,s=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],s=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,o])}}}function u(t){return Object.prototype.toString.call(t)}var c={copyJSON:function(t){return JSON.parse(JSON.stringify(t))},isArray:function(){var t=u([]);return function(e){return u(e)===t}}(),isString:function(){var t=u("s");return function(e){return u(e)===t}}(),isNumber:function(){var t=u(1);return function(e){return u(e)===t}}(),isFunction:function(){var t=u((function(){}));return function(e){return u(e)===t}}(),isUndefined:function(t){return void 0===t},isBoolean:function(){var t=u(!0);return function(e){return u(e)===t}}(),isObject:function(){var t=u({});return function(e){return u(e)===t}}(),random:function(t,e){return this.isArray(t)?t[~~(Math.random()*t.length)]:(this.isNumber(e)||(e=t||1,t=0),t+Math.random()*(e-t))},euclideanModulo:function(t,e){return(t%e+e)%e},codomainBounce:function(t,e,i){return t<e?2*e-t:t>i?2*i-t:t},clamp:function(t,e,i){return t<e?e:t>i?i:t},inRange:function(t,e,i){return t>=e&&t<=i},getAssets:function(t,e){for(var i=0;i<e.length;i++)if(t===e[i].id)return e[i];return console.error("have not assets name as",t),{}},rgb2hex:function(t){return(t[0]<<16)+(t[1]<<8)+(0|t[2])}},f=function(){function t(){this.listeners={},this.addEventListener=this.on,this.removeEventListener=this.off}var e=t.prototype;return e.on=function(t,e){return c.isFunction(e)?(c.isUndefined(this.listeners[t])&&(this.listeners[t]=[]),this.listeners[t].push(e),this):this},e.off=function(t,e){if(c.isUndefined(this.listeners[t]))return this;var i=this.listeners[t],s=i.length;if(s>0)if(e)for(;s--;)i[s]===e&&i.splice(s,1);else i.length=0;return this},e.once=function(t,e){var i=this;if(!c.isFunction(e))return this;return this.on(t,(function s(r){e(r),i.off(t,s)})),this},e.emit=function(t){if(c.isUndefined(this.listeners[t]))return this;for(var e=(this.listeners[t]||[]).slice(0),i=arguments.length,s=new Array(i>1?i-1:0),r=1;r<i;r++)s[r-1]=arguments[r];for(var n=0;n<e.length;n++)e[n].apply(this,s);return this},t}(),d={},m={Ajax:"Ajax",Texture:"Texture"},v=m,y=function(t,e){d[t]=e};function g(t,e,i){var s,r,n,a,o,h,p=t.length;for(r=0;r<p;r+=1)if("ks"in(s=t[r])&&!s.completed){if(s.completed=!0,s.tt&&(t[r-1].td=s.tt),s.hasMask){var l=s.masksProperties;for(a=l.length,n=0;n<a;n+=1)if(l[n].pt.k.i)S(l[n].pt.k);else for(h=l[n].pt.k.length,o=0;o<h;o+=1)l[n].pt.k[o].s&&S(l[n].pt.k[o].s[0]),l[n].pt.k[o].e&&S(l[n].pt.k[o].e[0])}0===s.ty?(s.layers=_(s.refId,e),g(s.layers,e)):4===s.ty?k(s.shapes):5==s.ty&&b(s)}}function _(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i].layers.__used?JSON.parse(JSON.stringify(e[i].layers)):(e[i].layers.__used=!0,e[i].layers);i+=1}}function k(t){var e,i,s;for(e=t.length-1;e>=0;e-=1)if("sh"==t[e].ty)if(t[e].ks.k.i)S(t[e].ks.k);else for(s=t[e].ks.k.length,i=0;i<s;i+=1)t[e].ks.k[i].s&&S(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&S(t[e].ks.k[i].e[0]);else"gr"==t[e].ty&&k(t[e].it)}function S(t){var e,i=t.i.length;for(e=0;e<i;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 T(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&void 0))}var M=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(T(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),w=function(){var t=[4,7,99];return function(e){if(e.chars&&!T(t,e.v)){var i,s,r,n,a,o=e.chars.length;for(i=0;i<o;i+=1)if(e.chars[i].data&&e.chars[i].data.shapes)for(r=(a=e.chars[i].data.shapes[0].it).length,s=0;s<r;s+=1)(n=a[s].ks.k).__converted||(S(a[s].ks.k),n.__converted=!0)}}}(),x=function(){var t=[4,1,9];function e(t){var i,s,r,n=t.length;for(i=0;i<n;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(r=t[i].c.k.length,s=0;s<r;s+=1)t[i].c.k[s].s&&(t[i].c.k[s].s[0]/=255,t[i].c.k[s].s[1]/=255,t[i].c.k[s].s[2]/=255,t[i].c.k[s].s[3]/=255),t[i].c.k[s].e&&(t[i].c.k[s].e[0]/=255,t[i].c.k[s].e[1]/=255,t[i].c.k[s].e[2]/=255,t[i].c.k[s].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(T(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),P=function(){var t=[4,4,18];function e(t){var i,s,r;for(i=t.length-1;i>=0;i-=1)if("sh"==t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,s=0;s<r;s+=1)t[i].ks.k[s].s&&(t[i].ks.k[s].s[0].c=t[i].closed),t[i].ks.k[s].e&&(t[i].ks.k[s].e[0].c=t[i].closed);else"gr"==t[i].ty&&e(t[i].it)}function i(t){var i,s,r,n,a,o,h=t.length;for(s=0;s<h;s+=1){if((i=t[s]).hasMask){var p=i.masksProperties;for(n=p.length,r=0;r<n;r+=1)if(p[r].pt.k.i)p[r].pt.k.c=p[r].cl;else for(o=p[r].pt.k.length,a=0;a<o;a+=1)p[r].pt.k[a].s&&(p[r].pt.k[a].s[0].c=p[r].cl),p[r].pt.k[a].e&&(p[r].pt.k[a].e[0].c=p[r].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(T(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}();function b(t,e){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var L=function(t,e){t.__complete||(x(t),M(t),w(t),P(t),g(t.layers,t.assets),t.__complete=!0)},D="function"==typeof Float32Array;function C(t,e){return 1-3*e+3*t}function I(t,e){return 3*e-6*t}function A(t){return 3*t}function O(t,e,i){return((C(e,i)*t+I(e,i))*t+A(e))*t}function F(t,e,i){return 3*C(e,i)*t*t+2*I(e,i)*t+A(e)}function E(t,e,i,s){if(!(0<=t&&t<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");this.mX1=t,this.mY1=e,this.mX2=i,this.mY2=s,this.sampleValues=D?new Float32Array(11):new Array(11),this._preCompute(),this.get=this.get.bind(this)}E.prototype._preCompute=function(){if(this.mX1!==this.mY1||this.mX2!==this.mY2)for(var t=0;t<11;++t)this.sampleValues[t]=O(.1*t,this.mX1,this.mX2)},E.prototype._getTForX=function(t){for(var e=0,i=1;10!==i&&this.sampleValues[i]<=t;++i)e+=.1;--i;var s=e+(t-this.sampleValues[i])/(this.sampleValues[i+1]-this.sampleValues[i])*.1,r=F(s,this.mX1,this.mX2);return r>=.001?function(t,e,i,s){for(var r=0;r<4;++r){var n=F(e,i,s);if(0===n)return e;e-=(O(e,i,s)-t)/n}return e}(t,s,this.mX1,this.mX2):0===r?s:function(t,e,i,s,r){var n,a,o=0;do{(n=O(a=e+(i-e)/2,s,r)-t)>0?i=a:e=a}while(Math.abs(n)>1e-7&&++o<10);return a}(t,e,e+.1,this.mX1,this.mX2)},E.prototype.get=function(t){return this.mX1===this.mY1&&this.mX2===this.mY2?t:0===t?0:1===t?1:O(this._getTForX(t),this.mY1,this.mY2)};var V,N={},q=function(t,e,i,s,r){var n=r||("bez_"+t+"_"+e+"_"+i+"_"+s).replace(/\./g,"p");if(N[n])return N[n];var a=new E(t,e,i,s);return N[n]=a,a};function j(t){return new Array(t)}V="function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):void 0}:function(t,e){var i,s=0,r=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)r.push(i);return r};var R=function(t){return t.concat(j(t.length))},z=function(t,e,i){var s=0,r=t,n=j(r);return{newElement:function(){var t;return s?t=n[s-=1]:t=e(),t},release:function(t){s===r&&(n=R(n),r*=2),i&&i(t),n[s]=t,s+=1}}},X=z(8,(function(){return V("float32",2)})),Y=function(){function t(){this.c=!1,this._length=0,this._maxLength=8,this.v=j(this._maxLength),this.o=j(this._maxLength),this.i=j(this._maxLength)}var e=t.prototype;return e.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=X.newElement(),this.o[i]=X.newElement(),this.i[i]=X.newElement(),i+=1},e.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},e.doubleArrayLength=function(){this.v=this.v.concat(j(this._maxLength)),this.i=this.i.concat(j(this._maxLength)),this.o=this.o.concat(j(this._maxLength)),this._maxLength*=2},e.setXYAt=function(t,e,i,s,r){var n;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o}(!n[s]||n[s]&&!r)&&(n[s]=X.newElement()),n[s][0]=t,n[s][1]=e},e.setTripleAt=function(t,e,i,s,r,n,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,s,"o",a,o),this.setXYAt(r,n,"i",a,o)},e.reverse=function(){var e=new t;e.setPathData(this.c,this._length);var i=this.v,s=this.o,r=this.i,n=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],r[0][0],r[0][1],s[0][0],s[0][1],0,!1),n=1);for(var a=this._length-1,o=this._length,h=n;h<o;h+=1)e.setTripleAt(i[a][0],i[a][1],r[a][0],r[a][1],s[a][0],s[a][1],h,!1),a-=1;return e},t}(),B=z(4,(function(){return new Y}),(function(t){for(var e=t._length,i=0;i<e;i+=1)X.release(t.v[i]),X.release(t.i[i]),X.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1}));B.clone=function(t){var e=B.newElement(),i=void 0===t._length?t.v.length:t._length;e.setLength(i),e.c=t.c;for(var s=0;s<i;s+=1)e.setTripleAt(t.v[s][0],t.v[s][1],t.o[s][0],t.o[s][1],t.i[s][0],t.i[s][1],s);return e};var G=function(){function t(){this._length=0,this._maxLength=4,this.shapes=j(this._maxLength)}var e=t.prototype;return e.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(j(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},e.releaseShapes=function(){for(var t=0;t<this._length;t+=1)B.release(this.shapes[t]);this._length=0},t}(),U=0,W=4,J=j(W),H=function(){var t;return U?t=J[U-=1]:t=new G,t},K=function(){function t(){}var e=t.prototype;return e.outTypeExpressionMode=function(){this._hasOutTypeExpression=!0,this.container&&this.container.outTypeExpressionMode()},e.addDynamicProperty=function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0,t._hasOutTypeExpression&&this.outTypeExpressionMode())},e.iterateDynamicProperties=function(t){this._mdf=!1;for(var e=this.dynamicProperties.length,i=0;i<e;i+=1)this.dynamicProperties[i].getValue(t),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},e.initDynamicPropertyContainer=function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1,this._hasOutTypeExpression=!1},t}(),Z=z(8,(function(){return{addedLength:0,percents:V("float32",200),lengths:V("float32",200)}})),Q=z(8,(function(){return{lengths:[],totalLength:0}}),(function(t){for(var e=t.lengths.length,i=0;i<e;i+=1)Z.release(t.lengths[i]);t.lengths.length=0}));function $(t,e,i,s,r,n){var a=t*s+e*r+i*n-r*s-n*t-i*e;return a>-.001&&a<.001}function tt(t,e,i,s){for(var r,n=0,a=[],o=[],h=Z.newElement(),p=i.length,l=0;l<200;l+=1){var u=l/199;r=0;for(var c=0;c<p;c+=1){var f=Math.pow(1-u,3)*t[c]+3*Math.pow(1-u,2)*u*i[c]+3*(1-u)*Math.pow(u,2)*s[c]+Math.pow(u,3)*e[c];a[c]=f,null!==o[c]&&(r+=Math.pow(a[c]-o[c],2)),o[c]=a[c]}r&&(n+=r=Math.sqrt(r)),h.percents[l]=u,h.lengths[l]=n}return h.addedLength=n,h}function et(t){this.segmentLength=0,this.points=new Array(t)}function it(t,e){this.partialLength=t,this.point=e}var st={};function rt(t,e){var i=e.percents,s=e.lengths,r=i.length,n=Math.floor((r-1)*t),a=t*e.addedLength,o=0;if(n===r-1||0===n||a===s[n])return i[n];for(var h=s[n]>a?-1:1,p=!0;p;)if(s[n]<=a&&s[n+1]>a?(o=(a-s[n])/(s[n+1]-s[n]),p=!1):n+=h,n<0||n>=r-1){if(n===r-1)return i[n];p=!1}return i[n]+(i[n+1]-i[n])*o}var nt=V("float32",8),at={getSegmentsLength:function(t){for(var e=Q.newElement(),i=t.c,s=t.v,r=t.o,n=t.i,a=t._length,o=e.lengths,h=0,p=0;p<a-1;p+=1)o[p]=tt(s[p],s[p+1],r[p],n[p+1]),h+=o[p].addedLength;return i&&a&&(o[p]=tt(s[p],s[0],r[p],n[0]),h+=o[p].addedLength),e.totalLength=h,e},getNewSegment:function(t,e,i,s,r,n,a){for(var o=rt(r=r<0?0:r>1?1:r,a),h=rt(n=n>1?1:n,a),p=t.length,l=1-o,u=1-h,c=l*l*l,f=o*l*l*3,d=o*o*l*3,m=o*o*o,v=l*l*u,y=o*l*u+l*o*u+l*l*h,g=o*o*u+l*o*h+o*l*h,_=o*o*h,k=l*u*u,S=o*u*u+l*h*u+l*u*h,T=o*h*u+l*h*h+o*u*h,M=o*h*h,w=u*u*u,x=h*u*u+u*h*u+u*u*h,P=h*h*u+u*h*h+h*u*h,b=h*h*h,L=0;L<p;L+=1)nt[4*L]=Math.round(1e3*(c*t[L]+f*i[L]+d*s[L]+m*e[L]))/1e3,nt[4*L+1]=Math.round(1e3*(v*t[L]+y*i[L]+g*s[L]+_*e[L]))/1e3,nt[4*L+2]=Math.round(1e3*(k*t[L]+S*i[L]+T*s[L]+M*e[L]))/1e3,nt[4*L+3]=Math.round(1e3*(w*t[L]+x*i[L]+P*s[L]+b*e[L]))/1e3;return nt},getPointInSegment:function(t,e,i,s,r,n){var a=rt(r,n),o=1-a;return[Math.round(1e3*(o*o*o*t[0]+(a*o*o+o*a*o+o*o*a)*i[0]+(a*a*o+o*a*a+a*o*a)*s[0]+a*a*a*e[0]))/1e3,Math.round(1e3*(o*o*o*t[1]+(a*o*o+o*a*o+o*o*a)*i[1]+(a*a*o+o*a*a+a*o*a)*s[1]+a*a*a*e[1]))/1e3]},buildBezierData:function(t,e,i,s){var r=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!st[r]){var n,a,o=200,h=0,p=null;2===t.length&&(t[0]!=e[0]||t[1]!=e[1])&&$(t[0],t[1],e[0],e[1],t[0]+i[0],t[1]+i[1])&&$(t[0],t[1],e[0],e[1],e[0]+s[0],e[1]+s[1])&&(o=2);for(var l=new et(o),u=i.length,c=0;c<o;c+=1){a=j(u);var f=c/(o-1);n=0;for(var d=0;d<u;d+=1){var m=Math.pow(1-f,3)*t[d]+3*Math.pow(1-f,2)*f*(t[d]+i[d])+3*(1-f)*Math.pow(f,2)*(e[d]+s[d])+Math.pow(f,3)*e[d];a[d]=m,null!==p&&(n+=Math.pow(a[d]-p[d],2))}h+=n=Math.sqrt(n),l.points[c]=new it(n,a),p=a}l.segmentLength=h,st[r]=l}return st[r]},pointOnLine2D:$,pointOnLine3D:function(t,e,i,s,r,n,a,o,h){if(0===i&&0===n&&0===h)return $(t,e,s,r,a,o);var p,l=Math.sqrt(Math.pow(s-t,2)+Math.pow(r-e,2)+Math.pow(n-i,2)),u=Math.sqrt(Math.pow(a-t,2)+Math.pow(o-e,2)+Math.pow(h-i,2)),c=Math.sqrt(Math.pow(a-s,2)+Math.pow(o-r,2)+Math.pow(h-n,2));return(p=l>u?l>c?l-u-c:c-u-l:c>u?c-u-l:u-l-c)>-1e-4&&p<1e-4}},ot=Math.PI/180,ht=[0,0],pt=/(loopIn|loopOut)\(([^)]+)/,lt=/["']\w+["']/,ut=function(){function t(t,e,i){this.begin=e,this.end=i,this.total=this.end-this.begin,this.type=t}return t.prototype.update=function(t){return"in"===this.type?t>=this.begin?t:this.end-c.euclideanModulo(this.begin-t,this.total):"out"===this.type?t<=this.end?t:this.begin+c.euclideanModulo(t-this.end,this.total):void 0},t}(),ct=function(){function t(t,e,i){this.begin=e,this.end=i,this.total=this.end-this.begin,this.type=t}var e=t.prototype;return e.update=function(t){if("in"===this.type&&t<this.begin||"out"===this.type&&t>this.end){var e=t-this.end;return this.pingpong(e)}return t},e.pingpong=function(t){return Math.floor(t/this.total)%2?this.begin+c.euclideanModulo(t,this.total):this.end-c.euclideanModulo(t,this.total)},t}(),ft={loopIn:function(t,e,i){var s=t[0].t,r=t.length-1,n=t[Math.min(r,i)].t;switch(e){case"cycle":return new ut("in",s,n);case"pingpong":return new ct("in",s,n)}return null},loopOut:function(t,e,i){var s=t.length-1,r=t[Math.max(0,s-i)].t,n=t[s].t;switch(e){case"cycle":return new ut("out",r,n);case"pingpong":return new ct("out",r,n)}return null}};var dt=function(t){return t.x&&pt.test(t.x)},mt=function(t){var e=function(t){var e=t.match(pt),i=e[2].split(/\s*,\s*/).map((function(t){return lt.test(t)?t.replace(/"|'/g,""):parseInt(t)}));return{name:e[1],mode:i[0],offset:i[1]}}(t.x),i=e.name,s=e.mode,r=e.offset,n=void 0===r?0:r,a=0===n?t.k.length-1:n;return ft[i]&&ft[i](t.k,s,a)};function vt(t){var e=t[0]*ot,i=t[1]*ot,s=t[2]*ot,r=Math.cos(e/2),n=Math.cos(i/2),a=Math.cos(s/2),o=Math.sin(e/2),h=Math.sin(i/2),p=Math.sin(s/2);return[o*h*a+r*n*p,o*n*a+r*h*p,r*h*a-o*n*p,r*n*a-o*h*p]}var yt=function(){function t(){}var e=t.prototype;return e.interpolateValue=function(t,e){var i;"multidimensional"===this.propType&&(i=V("float32",this.pv.length));for(var s,r,n,a,o,h,p,l,u=e.lastIndex,c=u,f=this.keyframes.length-1,d=!0;d;){if(s=this.keyframes[c],r=this.keyframes[c+1],c===f-1&&t>=r.t){s.h&&(s=r),u=0;break}if(r.t>t){u=c;break}c<f-1?c+=1:(u=0,d=!1)}var m,v=r.t,y=s.t;if(s.to){s.bezierData||(s.bezierData=at.buildBezierData(s.s,r.s||s.e,s.to,s.ti));var g=s.bezierData;if(t>=v||t<y){var _=t>=v?g.points.length-1:0;for(a=g.points[_].point.length,n=0;n<a;n+=1)i[n]=g.points[_].point[n]}else{s.__fnct?l=s.__fnct:(l=q(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,s.__fnct=l),o=l((t-y)/(v-y));var k,S=g.segmentLength*o,T=e.lastFrame<t&&e._lastKeyframeIndex===c?e._lastAddedLength:0;for(p=e.lastFrame<t&&e._lastKeyframeIndex===c?e._lastPoint:0,d=!0,h=g.points.length;d;){if(T+=g.points[p].partialLength,0===S||0===o||p===g.points.length-1){for(a=g.points[p].point.length,n=0;n<a;n+=1)i[n]=g.points[p].point[n];break}if(S>=T&&S<T+g.points[p+1].partialLength){for(k=(S-T)/g.points[p+1].partialLength,a=g.points[p].point.length,n=0;n<a;n+=1)i[n]=g.points[p].point[n]+(g.points[p+1].point[n]-g.points[p].point[n])*k;break}p<h-1?p+=1:d=!1}e._lastPoint=p,e._lastAddedLength=T-g.points[p].partialLength,e._lastKeyframeIndex=c}}else{var M,w,x,P,b;if(f=s.s.length,m=r.s||s.e,this.sh&&1!==s.h)t>=v?(i[0]=m[0],i[1]=m[1],i[2]=m[2]):t<=y?(i[0]=s.s[0],i[1]=s.s[1],i[2]=s.s[2]):function(t,e){var i=e[0],s=e[1],r=e[2],n=e[3],a=Math.atan2(2*s*n-2*i*r,1-2*s*s-2*r*r),o=Math.asin(2*i*s+2*r*n),h=Math.atan2(2*i*n-2*s*r,1-2*i*i-2*r*r);t[0]=a/ot,t[1]=o/ot,t[2]=h/ot}(i,function(t,e,i){var s,r,n,a,o,h=[],p=t[0],l=t[1],u=t[2],c=t[3],f=e[0],d=e[1],m=e[2],v=e[3];return(r=p*f+l*d+u*m+c*v)<0&&(r=-r,f=-f,d=-d,m=-m,v=-v),1-r>1e-6?(s=Math.acos(r),n=Math.sin(s),a=Math.sin((1-i)*s)/n,o=Math.sin(i*s)/n):(a=1-i,o=i),h[0]=a*p+o*f,h[1]=a*l+o*d,h[2]=a*u+o*m,h[3]=a*c+o*v,h}(vt(s.s),vt(m),(t-y)/(v-y)));else for(c=0;c<f;c+=1)1!==s.h&&(t>=v?o=1:t<y?o=0:(s.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[c]?l=s.__fnct[c]:(M=void 0===s.o.x[c]?s.o.x[0]:s.o.x[c],w=void 0===s.o.y[c]?s.o.y[0]:s.o.y[c],x=void 0===s.i.x[c]?s.i.x[0]:s.i.x[c],P=void 0===s.i.y[c]?s.i.y[0]:s.i.y[c],l=q(M,w,x,P).get,s.__fnct[c]=l)):s.__fnct?l=s.__fnct:(M=s.o.x,w=s.o.y,x=s.i.x,P=s.i.y,l=q(M,w,x,P).get,s.__fnct=l),o=l((t-y)/(v-y)))),m=r.s||s.e,b=1===s.h?s.s[c]:s.s[c]+(m[c]-s.s[c])*o,"multidimensional"===this.propType?i[c]=b:i=b}return e.lastIndex=u,i},e.getValueAtCurrentTime=function(t){var e=this.keyframes[0].t,i=this.keyframes[this.keyframes.length-1].t;if(!(t===this._caching.lastFrame||-999999!==this._caching.lastFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv},e.setVValue=function(t){var e;if("unidimensional"===this.propType)e=t*this.mult,Math.abs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,Math.abs(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1},e.processEffectsSequence=function(t){if(this.expression&&(t=this.expression.update(t)),t!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var i=this.effectsSequence.length,s=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)s=this.effectsSequence[e](t);this.setVValue(s),this._isFirstFrame=!1,this.lock=!1,this.frameId=t}},e.addEffect=function(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)},t}(),gt=function(t){function e(e,i,s,r){var n;return(n=t.call(this)||this).propType="unidimensional",n.mult=s||1,n.data=i,n.v=s?i.k*s:i.k,n.pv=i.k,n._mdf=!1,n.elem=e,n.container=r,n.k=!1,n.kf=!1,n.vel=0,n.effectsSequence=[],n._isFirstFrame=!0,n.getValue=n.processEffectsSequence,n}return _inheritsLoose(e,t),e}(yt),_t=function(t){function e(e,i,s,r){var n;(n=t.call(this)||this).propType="multidimensional",n.mult=s||1,n.data=i,n._mdf=!1,n.elem=e,n.container=r,n.comp=e.comp,n.k=!1,n.kf=!1,n.frameId=-1;var a=i.k.length;n.v=V("float32",a),n.pv=V("float32",a),n.vel=V("float32",a);for(var o=0;o<a;o+=1)n.v[o]=i.k[o]*n.mult,n.pv[o]=i.k[o];return n._isFirstFrame=!0,n.effectsSequence=[],n.getValue=n.processEffectsSequence,n}return _inheritsLoose(e,t),e}(yt),kt=function(t){function e(e,i,s,r){var n;return(n=t.call(this)||this).propType="unidimensional",n.keyframes=i.k,n.frameId=-1,n._caching={lastFrame:-999999,lastIndex:0,value:0,_lastKeyframeIndex:-1},n.k=!0,n.kf=!0,n.data=i,n.mult=s||1,n.elem=e,n.container=r,n.comp=e.comp,n.v=-999999,n.pv=-999999,n._isFirstFrame=!0,n.getValue=n.processEffectsSequence,n.effectsSequence=[n.getValueAtCurrentTime.bind(_assertThisInitialized(n))],n._hasOutTypeExpression=!1,dt(i)&&(n.expression=mt(i),n._hasOutTypeExpression="out"===n.expression.type),n}return _inheritsLoose(e,t),e}(yt),St=function(t){function e(e,i,s,r){var n,a;(n=t.call(this)||this).propType="multidimensional";var o,h,p,l,u=i.k.length;for(a=0;a<u-1;a+=1)i.k[a].to&&i.k[a].s&&i.k[a+1]&&i.k[a+1].s&&(o=i.k[a].s,h=i.k[a+1].s,p=i.k[a].to,l=i.k[a].ti,(2===o.length&&(o[0]!==h[0]||o[1]!==h[1])&&at.pointOnLine2D(o[0],o[1],h[0],h[1],o[0]+p[0],o[1]+p[1])&&at.pointOnLine2D(o[0],o[1],h[0],h[1],h[0]+l[0],h[1]+l[1])||3===o.length&&(o[0]!==h[0]||o[1]!==h[1]||o[2]!==h[2])&&at.pointOnLine3D(o[0],o[1],o[2],h[0],h[1],h[2],o[0]+p[0],o[1]+p[1],o[2]+p[2])&&at.pointOnLine3D(o[0],o[1],o[2],h[0],h[1],h[2],h[0]+l[0],h[1]+l[1],h[2]+l[2]))&&(i.k[a].to=null,i.k[a].ti=null),o[0]===h[0]&&o[1]===h[1]&&0===p[0]&&0===p[1]&&0===l[0]&&0===l[1]&&(2===o.length||o[2]===h[2]&&0===p[2]&&0===l[2])&&(i.k[a].to=null,i.k[a].ti=null));n.effectsSequence=[n.getValueAtCurrentTime.bind(_assertThisInitialized(n))],n.keyframes=i.k,n.k=!0,n.kf=!0,n._isFirstFrame=!0,n.mult=s||1,n.elem=e,n.container=r,n.comp=e.comp,n.getValue=n.processEffectsSequence,n.frameId=-1;var c=i.k[0].s.length;for(n.v=V("float32",c),n.pv=V("float32",c),a=0;a<c;a+=1)n.v[a]=-999999,n.pv[a]=-999999;return n._caching={lastFrame:-999999,lastIndex:0,value:V("float32",c)},n._hasOutTypeExpression=!1,dt(i)&&(n.expression=mt(i),n._hasOutTypeExpression="out"===n.expression.type),n}return _inheritsLoose(e,t),e}(yt),Tt=function(t,e,i,s,r){var n;if(e.k.length)if("number"==typeof e.k[0])n=new _t(t,e,s,r);else switch(i){case 0:n=new kt(t,e,s,r);break;case 1:n=new St(t,e,s,r)}else n=new gt(t,e,s,r);return n.effectsSequence.length&&r.addDynamicProperty(n),n},Mt=function(){function t(){}var e=t.prototype;return e.interpolateShape=function(t,e,i){var s,r,n,a,o,h,p,l,u,c=i.lastIndex,f=this.keyframes;if(t<f[0].t)s=f[0].s[0],n=!0,c=0;else if(t>=f[f.length-1].t)s=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],n=!0;else{for(var d,m,v=c,y=f.length-1,g=!0;g&&(d=f[v],!((m=f[v+1]).t>t));)v<y-1?v+=1:g=!1;if(c=v,!(n=1===d.h)){if(t>=m.t)l=1;else if(t<d.t)l=0;else{var _;d.__fnct?_=d.__fnct:(_=q(d.o.x,d.o.y,d.i.x,d.i.y).get,d.__fnct=_),l=_((t-d.t)/(m.t-d.t))}r=m.s?m.s[0]:d.e[0]}s=d.s[0]}for(h=e._length,p=s.i[0].length,i.lastIndex=c,a=0;a<h;a+=1)for(o=0;o<p;o+=1)u=n?s.i[a][o]:s.i[a][o]+(r.i[a][o]-s.i[a][o])*l,e.i[a][o]=u,u=n?s.o[a][o]:s.o[a][o]+(r.o[a][o]-s.o[a][o])*l,e.o[a][o]=u,u=n?s.v[a][o]:s.v[a][o]+(r.v[a][o]-s.v[a][o])*l,e.v[a][o]=u},e.interpolateShapeCurrentTime=function(t){var e=this.keyframes[0].t,i=this.keyframes[this.keyframes.length-1].t,s=this._caching.lastFrame;return-999999!==s&&(s<e&&t<e||s>i&&t>i)||(this._caching.lastIndex=s<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv},e.resetShape=function(){this.paths=this.localShapeCollection},e.shapesEqual=function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,s=t._length;for(i=0;i<s;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0},e.setVValue=function(t){this.shapesEqual(this.v,t)||(this.v=B.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)},e.processEffectsSequence=function(t){if(t!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1;var e,i=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k,s=this.effectsSequence.length;for(e=0;e<s;e+=1)i=this.effectsSequence[e](t);this.setVValue(i),this.lock=!1,this.frameId=t}else this._mdf=!1},e.addEffect=function(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)},t}(),wt=function(t){function e(e,i,s){var r;(r=t.call(this)||this).propType="shape",r.comp=e.comp,r.container=e,r.elem=e,r.data=i,r.k=!1,r.kf=!1,r._mdf=!1;var n=3===s?i.pt.k:i.ks.k;return r.v=B.clone(n),r.pv=B.clone(r.v),r.localShapeCollection=H(),r.paths=r.localShapeCollection,r.paths.addShape(r.v),r.reset=r.resetShape,r.effectsSequence=[],r.getValue=r.processEffectsSequence,r}return _inheritsLoose(e,t),e}(Mt),xt=function(t){function e(e,i,s){var r;(r=t.call(this)||this).propType="shape",r.comp=e.comp,r.elem=e,r.container=e,r.keyframes=3===s?i.pt.k:i.ks.k,r.k=!0,r.kf=!0;var n=r.keyframes[0].s[0].i.length;return r.v=B.newElement(),r.v.setPathData(r.keyframes[0].s[0].c,n),r.pv=B.clone(r.v),r.localShapeCollection=H(),r.paths=r.localShapeCollection,r.paths.addShape(r.v),r.lastFrame=-999999,r.reset=r.resetShape,r._caching={lastFrame:-999999,lastIndex:0},r.effectsSequence=[r.interpolateShapeCurrentTime.bind(_assertThisInitialized(r))],r.getValue=r.processEffectsSequence,r._hasOutTypeExpression=!1,dt(i)&&(r.expression=mt(i),r._hasOutTypeExpression="out"===r.expression.type),r}return _inheritsLoose(e,t),e}(Mt),Pt=function(t){function e(e,i){var s;return(s=t.call(this)||this).v=B.newElement(),s.v.setPathData(!0,4),s.localShapeCollection=H(),s.paths=s.localShapeCollection,s.localShapeCollection.addShape(s.v),s.d=i.d,s.elem=e,s.comp=e.comp,s.frameId=-1,s.initDynamicPropertyContainer(e),s.p=Tt(e,i.p,1,0,_assertThisInitialized(s)),s.s=Tt(e,i.s,1,0,_assertThisInitialized(s)),s.dynamicProperties.length?s.k=!0:(s.k=!1,s.convertEllToPath()),s}_inheritsLoose(e,t);var i=e.prototype;return i.reset=function(){this.paths=this.localShapeCollection},i.getValue=function(t){t!==this.frameId&&(this.iterateDynamicProperties(t),this.frameId=t,this._mdf&&this.convertEllToPath())},i.convertEllToPath=function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,r=3!==this.d,n=this.v;n.v[0][0]=t,n.v[0][1]=e-s,n.v[1][0]=r?t+i:t-i,n.v[1][1]=e,n.v[2][0]=t,n.v[2][1]=e+s,n.v[3][0]=r?t-i:t+i,n.v[3][1]=e,n.i[0][0]=r?t-i*Lt:t+i*Lt,n.i[0][1]=e-s,n.i[1][0]=r?t+i:t-i,n.i[1][1]=e-s*Lt,n.i[2][0]=r?t+i*Lt:t-i*Lt,n.i[2][1]=e+s,n.i[3][0]=r?t-i:t+i,n.i[3][1]=e+s*Lt,n.o[0][0]=r?t+i*Lt:t-i*Lt,n.o[0][1]=e-s,n.o[1][0]=r?t+i:t-i,n.o[1][1]=e+s*Lt,n.o[2][0]=r?t-i*Lt:t+i*Lt,n.o[2][1]=e+s,n.o[3][0]=r?t-i:t+i,n.o[3][1]=e-s*Lt},e}(K),bt=function(t){function e(e,i){var s;return(s=t.call(this)||this).v=B.newElement(),s.v.setPathData(!0,0),s.elem=e,s.comp=e.comp,s.data=i,s.frameId=-1,s.d=i.d,s.initDynamicPropertyContainer(e),1===i.sy?(s.ir=Tt(e,i.ir,0,0,_assertThisInitialized(s)),s.is=Tt(e,i.is,0,.01,_assertThisInitialized(s)),s.convertToPath=s.convertStarToPath):s.convertToPath=s.convertPolygonToPath,s.pt=Tt(e,i.pt,0,0,_assertThisInitialized(s)),s.p=Tt(e,i.p,1,0,_assertThisInitialized(s)),s.r=Tt(e,i.r,0,ot,_assertThisInitialized(s)),s.or=Tt(e,i.or,0,0,_assertThisInitialized(s)),s.os=Tt(e,i.os,0,.01,_assertThisInitialized(s)),s.localShapeCollection=H(),s.localShapeCollection.addShape(s.v),s.paths=s.localShapeCollection,s.dynamicProperties.length?s.k=!0:(s.k=!1,s.convertToPath()),s}_inheritsLoose(e,t);var i=e.prototype;return i.reset=function(){this.paths=this.localShapeCollection},i.getValue=function(t){t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t),this._mdf&&this.convertToPath())},i.convertStarToPath=function(){var t,e,i,s,r=2*Math.floor(this.pt.v),n=2*Math.PI/r,a=!0,o=this.or.v,h=this.ir.v,p=this.os.v,l=this.is.v,u=2*Math.PI*o/(2*r),c=2*Math.PI*h/(2*r),f=-Math.PI/2;f+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){i=a?p:l,s=a?u:c;var m=(e=a?o:h)*Math.cos(f),v=e*Math.sin(f),y=0===m&&0===v?0:v/Math.sqrt(m*m+v*v),g=0===m&&0===v?0:-m/Math.sqrt(m*m+v*v);m+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(m,v,m-y*s*i*d,v-g*s*i*d,m+y*s*i*d,v+g*s*i*d,t,!0),a=!a,f+=n*d}},i.convertPolygonToPath=function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,r=this.os.v,n=2*Math.PI*s/(4*e),a=-Math.PI/2,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(a),p=s*Math.sin(a),l=0===h&&0===p?0:p/Math.sqrt(h*h+p*p),u=0===h&&0===p?0:-h/Math.sqrt(h*h+p*p);h+=+this.p.v[0],p+=+this.p.v[1],this.v.setTripleAt(h,p,h-l*n*r*o,p-u*n*r*o,h+l*n*r*o,p+u*n*r*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v},e}(K),Lt=.5519,Dt=function(t){function e(e,i){var s;return(s=t.call(this)||this).v=B.newElement(),s.v.c=!0,s.localShapeCollection=H(),s.localShapeCollection.addShape(s.v),s.paths=s.localShapeCollection,s.elem=e,s.comp=e.comp,s.frameId=-1,s.d=i.d,s.initDynamicPropertyContainer(e),s.p=Tt(e,i.p,1,0,_assertThisInitialized(s)),s.s=Tt(e,i.s,1,0,_assertThisInitialized(s)),s.r=Tt(e,i.r,0,0,_assertThisInitialized(s)),s.dynamicProperties.length?s.k=!0:(s.k=!1,s.convertRectToPath()),s}_inheritsLoose(e,t);var i=e.prototype;return i.reset=function(){this.paths=this.localShapeCollection},i.getValue=function(t){t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t),this._mdf&&this.convertRectToPath())},i.convertRectToPath=function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,r=Math.min(i,s,this.r.v),n=r*(1-.5519);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+r,t+i,e-s+n,0,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-n,t+i,e+s-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+s,t+i-r,e+s,t+i-n,e+s,2,!0),this.v.setTripleAt(t-i+r,e+s,t-i+n,e+s,t-i+r,e+s,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-r,t-i,e+s-n,4,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+n,t-i,e-s+r,5,!0),this.v.setTripleAt(t-i+r,e-s,t-i+r,e-s,t-i+n,e-s,6,!0),this.v.setTripleAt(t+i-r,e-s,t+i-n,e-s,t+i-r,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+n,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+n,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+n,t+i,e-s+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-s,t+i-r,e-s,t+i-n,e-s,1,!0),this.v.setTripleAt(t-i+r,e-s,t-i+n,e-s,t-i+r,e-s,2,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+r,t-i,e-s+n,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-n,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i+r,e+s,t-i+r,e+s,t-i+n,e+s,5,!0),this.v.setTripleAt(t+i-r,e+s,t+i-n,e+s,t+i-r,e+s,6,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-r,t+i,e+s-n,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+n,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-n,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-n,e+s,t+i,e+s,3,!0)))},e}(K),Ct=function(t,e,i){var s;return 3===i||4===i?s=(3===i?e.pt:e.ks).k.length?new xt(t,e,i):new wt(t,e,i):5===i?s=new Dt(t,e):6===i?s=new Pt(t,e):7===i&&(s=new bt(t,e)),s.k&&t.addDynamicProperty(s),s},It=function(t){function e(e,i,s){var r;(r=t.call(this)||this).frameId=-1,r.elem=e,r.session=s,r.masksProperties=i||[],r.initDynamicPropertyContainer(e),r.viewData=j(r.masksProperties.length);for(var n=r.masksProperties.length,a=!1,o=0;o<n;o++)"n"!==r.masksProperties[o].mode&&(a=!0),r.viewData[o]=Ct(_assertThisInitialized(r),r.masksProperties[o],3),r.viewData[o].inv=r.masksProperties[o].inv;return r.hasMasks=a,r}return _inheritsLoose(e,t),e.prototype.getValue=function(t){t!==this.frameId&&(this.iterateDynamicProperties(t),this.frameId=t)},e}(K),At=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function r(){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 n(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(1,0,0,0,0,s,-r,0,0,r,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,0,r,0,0,1,0,0,-r,0,s,0,0,0,0,1)}function h(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function p(t,e){return this._t(1,e,t,1,0,0)}function l(t,e){return this.shear(i(t),i(e))}function u(s,r){var n=t(r),a=e(r);return this._t(n,a,0,0,-a,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(s),1,0,0,0,0,1,0,0,0,0,1)._t(n,-a,0,0,a,n,0,0,0,0,1,0,0,0,0,1)}function c(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function f(t,e,i,s,r,n,a,o,h,p,l,u,c,f,d,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=r,this.props[5]=n,this.props[6]=a,this.props[7]=o,this.props[8]=h,this.props[9]=p,this.props[10]=l,this.props[11]=u,this.props[12]=c,this.props[13]=f,this.props[14]=d,this.props[15]=m,this}function d(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function m(t,e,i,s,r,n,a,o,h,p,l,u,c,f,d,m){var v=this.props;if(1===t&&0===e&&0===i&&0===s&&0===r&&1===n&&0===a&&0===o&&0===h&&0===p&&1===l&&0===u)return v[12]=v[12]*t+v[15]*c,v[13]=v[13]*n+v[15]*f,v[14]=v[14]*l+v[15]*d,v[15]=v[15]*m,this._identityCalculated=!1,this;var y=v[0],g=v[1],_=v[2],k=v[3],S=v[4],T=v[5],M=v[6],w=v[7],x=v[8],P=v[9],b=v[10],L=v[11],D=v[12],C=v[13],I=v[14],A=v[15];return v[0]=y*t+g*r+_*h+k*c,v[1]=y*e+g*n+_*p+k*f,v[2]=y*i+g*a+_*l+k*d,v[3]=y*s+g*o+_*u+k*m,v[4]=S*t+T*r+M*h+w*c,v[5]=S*e+T*n+M*p+w*f,v[6]=S*i+T*a+M*l+w*d,v[7]=S*s+T*o+M*u+w*m,v[8]=x*t+P*r+b*h+L*c,v[9]=x*e+P*n+b*p+L*f,v[10]=x*i+P*a+b*l+L*d,v[11]=x*s+P*o+b*u+L*m,v[12]=D*t+C*r+I*h+A*c,v[13]=D*e+C*n+I*p+A*f,v[14]=D*i+C*a+I*l+A*d,v[15]=D*s+C*o+I*u+A*m,this._identityCalculated=!1,this}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function g(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function k(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function S(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function T(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function M(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function w(t){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],i=this.props[5]/e,s=-this.props[1]/e,r=-this.props[4]/e,n=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e;return[t[0]*i+t[1]*r+a,t[0]*s+t[1]*n+o,0]}function x(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=w(t[e]);return s}function P(t,e,i){var s=V("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=e[0],s[3]=e[1],s[4]=i[0],s[5]=i[1];else{var r=this.props[0],n=this.props[1],a=this.props[4],o=this.props[5],h=this.props[12],p=this.props[13];s[0]=t[0]*r+t[1]*a+h,s[1]=t[0]*n+t[1]*o+p,s[2]=e[0]*r+e[1]*a+h,s[3]=e[0]*n+e[1]*o+p,s[4]=i[0]*r+i[1]*a+h,s[5]=i[0]*n+i[1]*o+p}return s}function b(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function L(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function D(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=s(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function C(t){return t<1e-6&&t>0||t>-1e-6&&t<0?s(1e4*t)/1e4:t}function I(){var t=this.props;return"matrix("+C(t[0])+","+C(t[1])+","+C(t[4])+","+C(t[5])+","+C(t[12])+","+C(t[13])+")"}return function(){this.reset=r,this.rotate=n,this.rotateX=a,this.rotateY=o,this.rotateZ=h,this.skew=l,this.skewFromAxis=u,this.shear=p,this.scale=c,this.setTransform=f,this.translate=d,this.transform=m,this.applyToPoint=k,this.applyToX=S,this.applyToY=T,this.applyToZ=M,this.applyToPointArray=b,this.applyToTriplePoints=P,this.applyToPointStringified=L,this.toCSS=D,this.to2dCSS=I,this.clone=g,this.cloneFromProps=_,this.equals=y,this.inversePoints=x,this.inversePoint=w,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=V("float32",16),this.reset()}}(),Ot=function(){function t(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}var e=t.prototype;return e.addTransformSequence=function(t){for(var e=t.length,i="_",s=0;s<e;s+=1)i+=t[s].transform.key+"_";var r=this.sequences[i];return r||(r={transforms:[].concat(t),finalTransform:new At,_mdf:!1},this.sequences[i]=r,this.sequenceList.push(r)),r},e.processSequence=function(t,e){for(var i,s=0,r=e,n=t.transforms.length;s<n&&!e;){if(t.transforms[s].transform.mProps._mdf){r=!0;break}s+=1}if(r)for(t.finalTransform.reset(),s=n-1;s>=0;s-=1)i=t.transforms[s].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=r},e.processSequences=function(t){for(var e=this.sequenceList.length,i=0;i<e;i+=1)this.processSequence(this.sequenceList[i],t)},e.getNewKey=function(){return"_"+this.transform_key_count++},t}(),Ft=function(t,e){this.elem=t,this.pos=e},Et=function(){function t(t,e,i,s){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;"rc"==e.ty?r=5:"el"==e.ty?r=6:"sr"==e.ty&&(r=7),this.sh=Ct(t,e,r);for(var n=i.length,a=0;a<n;a+=1)if(!i[a].closed){var o={transforms:s.addTransformSequence(i[a].transforms),trNodes:[]};this.styledShapes.push(o),i[a].elements.push(o)}}return t.prototype.setAsAnimated=function(){this._isAnimated=!0},t}(),Vt={};function Nt(t){return Vt[t]}var qt={Null:"Null",Path:"Path",Shape:"Shape",Solid:"Solid",Sprite:"Sprite",Component:"Component",Container:"Container"},jt=function(t,e){Vt[t]=e},Rt=function(){function t(t,e,i){this.elem=t,this.data=e,this.type=e.ty,this.preTransforms=i,this.transforms=[],this.elements=[],this.closed=!0===e.hd,this.displayType=qt.Path;var s=Nt(this.displayType);this.display=new s(this,e),this.elem.innerDisplay?this.elem.innerDisplay.addChild(this.display):this.elem.display.addChild(this.display)}return t.prototype.updateGrahpics=function(){this.display.updateLottieGrahpics(this)},t}(),zt=function(t){function e(e,i,s){var r;if((r=t.call(this)||this).elem=e,r.frameId=-1,r.propType="transform",r.data=i,r.v=new At,r.pre=new At,r.appliedTransformations=0,r.initDynamicPropertyContainer(s||e),i.p&&i.p.s?(r.px=Tt(e,i.p.x,0,0,_assertThisInitialized(r)),r.py=Tt(e,i.p.y,0,0,_assertThisInitialized(r)),i.p.z&&(r.pz=Tt(e,i.p.z,0,0,_assertThisInitialized(r)))):r.p=Tt(e,i.p||{k:[0,0,0]},1,0,_assertThisInitialized(r)),i.rx){if(r.rx=Tt(e,i.rx,0,ot,_assertThisInitialized(r)),r.ry=Tt(e,i.ry,0,ot,_assertThisInitialized(r)),r.rz=Tt(e,i.rz,0,ot,_assertThisInitialized(r)),i.or.k[0].ti){var n,a=i.or.k.length;for(n=0;n<a;n+=1)i.or.k[n].to=i.or.k[n].ti=null}r.or=Tt(e,i.or,1,ot,_assertThisInitialized(r)),r.or.sh=!0}else r.r=Tt(e,i.r||{k:0},0,ot,_assertThisInitialized(r));return i.sk&&(r.sk=Tt(e,i.sk,0,ot,_assertThisInitialized(r)),r.sa=Tt(e,i.sa,0,ot,_assertThisInitialized(r))),r.a=Tt(e,i.a||{k:[0,0,0]},1,0,_assertThisInitialized(r)),r.s=Tt(e,i.s||{k:[100,100,100]},1,.01,_assertThisInitialized(r)),i.o?r.o=Tt(e,i.o,0,.01,e):r.o={_mdf:!1,v:1},r._isDirty=!0,r.dynamicProperties.length||r.getValue(-999999,!0),_assertThisInitialized(r)}_inheritsLoose(e,t);var i=e.prototype;return i.getValue=function(t,e){if(t!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){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 i,s,r=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),s=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,s=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],s=[];var n=this.px,a=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(i[0]=n.getValueAtTime((n.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),s[0]=n.getValueAtTime(n.keyframes[0].t/r,0),s[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(i[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),s[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/r,0),s[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[n.pv,a.pv],s[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/r,n.offsetTime),s[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=s=ht;this.v.rotate(-Math.atan2(i[1]-s[1],i[0]-s[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=t}},i.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}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else 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)}},i.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])},e}(K);function Xt(t,e,i){return new zt(t,e,i)}var Yt=function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var i=e.prototype;return i.initModifierProperties=function(){},i.addShapeToModifier=function(){},i.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:H()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},i.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=-999999,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},i.processKeys=function(t){t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t))},e}(K),Bt={};function Gt(t,e){Bt[t]||(Bt[t]=e)}Gt("tm",function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var i=e.prototype;return i.initModifierProperties=function(t,e){this.s=Tt(t,e.s,0,.01,this),this.e=Tt(t,e.e,0,.01,this),this.o=Tt(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},i.addShapeToModifier=function(t){t.pathsData=[]},i.calculateShapeEdges=function(t,e,i,s,r){var n=[];e<=1?n.push({s:t,e:e}):t>=1?n.push({s:t-1,e:e-1}):(n.push({s:t,e:1}),n.push({s:0,e:e-1}));var a,o,h=[],p=n.length;for(a=0;a<p;a+=1)if((o=n[a]).e*r<s||o.s*r>s+i);else{var l,u;l=o.s*r<=s?0:(o.s*r-s)/i,u=o.e*r>=s+i?1:(o.e*r-s)/i,h.push([l,u])}return h.length||h.push([0,0]),h},i.releasePathsData=function(t){for(var e=t.length,i=0;i<e;i+=1)Q.release(t[i]);return t.length=0,t},i.processShapes=function(t){var e,i,s,r;if(this._mdf||t){var n=this.o.v%360/360;if(n<0&&(n+=1),(e=(this.s.v>1?1:this.s.v<0?0:this.s.v)+n)>(i=(this.e.v>1?1:this.e.v<0?0:this.e.v)+n)){var a=e;e=i,i=a}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,h,p,l,u,c=this.shapes.length,f=0;if(i===e)for(r=0;r<c;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(r=0;r<c;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var d,m,v=[];for(r=0;r<c;r+=1)if((d=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(h=(s=d.shape.paths)._length,u=0,!d.shape._mdf&&d.pathsData.length)u=d.totalShapeLength;else{for(p=this.releasePathsData(d.pathsData),o=0;o<h;o+=1)l=at.getSegmentsLength(s.shapes[o]),p.push(l),u+=l.totalLength;d.totalShapeLength=u,d.pathsData=p}f+=u,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var y,g=e,_=i,k=0;for(r=c-1;r>=0;r-=1)if((d=this.shapes[r]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&c>1?(y=this.calculateShapeEdges(e,i,d.totalShapeLength,k,f),k+=d.totalShapeLength):y=[[g,_]],h=y.length,o=0;o<h;o+=1){g=y[o][0],_=y[o][1],v.length=0,_<=1?v.push({s:d.totalShapeLength*g,e:d.totalShapeLength*_}):g>=1?v.push({s:d.totalShapeLength*(g-1),e:d.totalShapeLength*(_-1)}):(v.push({s:d.totalShapeLength*g,e:d.totalShapeLength}),v.push({s:0,e:d.totalShapeLength*(_-1)}));var S=this.addShapes(d,v[0]);if(v[0].s!==v[0].e){if(v.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var T=S.pop();this.addPaths(S,m),S=this.addShapes(d,v[1],T)}else this.addPaths(S,m),S=this.addShapes(d,v[1]);this.addPaths(S,m)}}d.shape.paths=m}}},i.addPaths=function(t,e){for(var i=t.length,s=0;s<i;s+=1)e.addShape(t[s])},i.addSegment=function(t,e,i,s,r,n,a){r.setXYAt(e[0],e[1],"o",n),r.setXYAt(i[0],i[1],"i",n+1),a&&r.setXYAt(t[0],t[1],"v",n),r.setXYAt(s[0],s[1],"v",n+1)},i.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),s&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},i.addShapes=function(t,e,i){var s,r,n,a,o,h,p,l,u=t.pathsData,c=t.shape.paths.shapes,f=t.shape.paths._length,d=0,m=[],v=!0;for(i?(o=i._length,l=i._length):(i=B.newElement(),o=0,l=0),m.push(i),s=0;s<f;s+=1){for(h=u[s].lengths,i.c=c[s].c,n=c[s].c?h.length:h.length+1,r=1;r<n;r+=1)if(d+(a=h[r-1]).addedLength<e.s)d+=a.addedLength,i.c=!1;else{if(d>e.e){i.c=!1;break}e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(c[s].v[r-1],c[s].o[r-1],c[s].i[r],c[s].v[r],i,o,v),v=!1):(p=at.getNewSegment(c[s].v[r-1],c[s].v[r],c[s].o[r-1],c[s].i[r],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,h[r-1]),this.addSegmentFromArray(p,i,o,v),v=!1,i.c=!1),d+=a.addedLength,o+=1}if(c[s].c&&h.length){if(a=h[r-1],d<=e.e){var y=h[r-1].addedLength;e.s<=d&&e.e>=d+y?(this.addSegment(c[s].v[r-1],c[s].o[r-1],c[s].i[0],c[s].v[0],i,o,v),v=!1):(p=at.getNewSegment(c[s].v[r-1],c[s].v[0],c[s].o[r-1],c[s].i[0],(e.s-d)/y,(e.e-d)/y,h[r-1]),this.addSegmentFromArray(p,i,o,v),v=!1,i.c=!1)}else i.c=!1;d+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[l][0],i.v[l][1],"i",l),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;s<f-1&&(i=B.newElement(),v=!0,m.push(i),o=0)}return m},e}(Yt)),Gt("rd",function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var i=e.prototype;return i.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=Tt(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},i.processPath=function(t,e){var i,s=B.newElement();s.c=t.c;var r,n,a,o,h,p,l,u,c,f,d,m,v=t._length,y=0;for(i=0;i<v;i+=1)r=t.v[i],a=t.o[i],n=t.i[i],r[0]===a[0]&&r[1]===a[1]&&r[0]===n[0]&&r[1]===n[1]?0!==i&&i!==v-1||t.c?(o=0===i?t.v[v-1]:t.v[i-1],p=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,l=d=r[0]+(o[0]-r[0])*p,u=m=r[1]-(r[1]-o[1])*p,c=l-.5519*(l-r[0]),f=u-.5519*(u-r[1]),s.setTripleAt(l,u,c,f,d,m,y),y+=1,o=i===v-1?t.v[0]:t.v[i+1],p=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,l=c=r[0]+(o[0]-r[0])*p,u=f=r[1]+(o[1]-r[1])*p,d=l-.5519*(l-r[0]),m=u-.5519*(u-r[1]),s.setTripleAt(l,u,c,f,d,m,y),y+=1):(s.setTripleAt(r[0],r[1],a[0],a[1],n[0],n[1],y),y+=1):(s.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],y),y+=1);return s},i.processShapes=function(t){var e,i,s,r,n,a,o=this.shapes.length,h=this.rd.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||t)for(a.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)a.addShape(this.processPath(e[s],h));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},e}(Yt)),Gt("rp",function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var i=e.prototype;return i.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=Tt(t,e.c,0,null,this),this.o=Tt(t,e.o,0,null,this),this.tr=Xt(t,e.tr,this),this.so=Tt(t,e.tr.so,0,.01,this),this.eo=Tt(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new At,this.rMatrix=new At,this.sMatrix=new At,this.tMatrix=new At,this.matrix=new At},i.applyTransforms=function(t,e,i,s,r,n){var a=n?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-r),h=s.s.v[1]+(1-s.s.v[1])*(1-r);t.translate(s.p.v[0]*a*r,s.p.v[1]*a*r,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*a*r),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(n?1/o:o,n?1/h:h),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},i.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},i.resetElements=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},i.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},i.changeGroupRender=function(t,e){for(var i=t.length,s=0;s<i;s+=1)t[s]._render=e,"gr"===t[s].ty&&this.changeGroupRender(t[s].it,e)},i.processShapes=function(t){if(this._mdf||t){var e=Math.ceil(this.c.v);if(this._groups.length<e){for(;this._groups.length<e;){var i={it:this.cloneElements(this._elements),ty:"gr"};i.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,i),this._groups.splice(0,0,i),this._currentCopies+=1}this.elem.reloadShapes()}var s,r,n=0;for(s=0;s<=this._groups.length-1;s+=1)r=n<e,this._groups[s]._render=r,this.changeGroupRender(this._groups[s].it,r),n+=1;this._currentCopies=e;var a=this.o.v,o=a%1,h=a>0?Math.floor(a):Math.ceil(a),p=this.pMatrix.props,l=this.rMatrix.props,u=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var c=0;if(a>0){for(;c<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),c+=1;o&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,o,!1),c+=o)}else if(a<0){for(;c>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),c-=1;o&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-o,!0),c-=o)}s=1===this.data.m?0:this._currentCopies-1;var f=1===this.data.m?1:-1;for(n=this._currentCopies;n;){var d=this.elemsData[s].it,m=d[d.length-1].transform.mProps.v.props,v=m.length;if(d[d.length-1].transform.mProps._mdf=!0,d[d.length-1].transform.op._mdf=!0,d[d.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(s/(this._currentCopies-1)),0!==c){(0!==s&&1===f||s!==this._currentCopies-1&&-1===f)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15]),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]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]);for(var y=0;y<v;y+=1)m[y]=this.matrix.props[y];this.matrix.reset()}else{this.matrix.reset();for(var g=0;g<v;g+=1)m[g]=this.matrix.props[g]}c+=1,n-=1,s+=f}}else for(var _=this._currentCopies,k=0;_;){var S=this.elemsData[k].it;S[S.length-1].transform.mProps._mdf=!1,S[S.length-1].transform.op._mdf=!1,_-=1,k+=1}},i.addShape=function(){},e}(Yt)),Gt("ms",function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var i=e.prototype;return i.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.data=e,this.positions=[]},i.processKeys=function(t,e){(t!==this.frameId||e)&&(this._mdf=!0)},i.addShapeToModifier=function(){this.positions.push([])},i.processPath=function(t,e,i){var s,r,n,a,o=t.v.length,h=[],p=[],l=[];for(s=0;s<o;s+=1){i.v[s]||(i.v[s]=[t.v[s][0],t.v[s][1]],i.o[s]=[t.o[s][0],t.o[s][1]],i.i[s]=[t.i[s][0],t.i[s][1]],i.distV[s]=0,i.distO[s]=0,i.distI[s]=0),r=Math.atan2(t.v[s][1]-e[1],t.v[s][0]-e[0]),n=e[0]-i.v[s][0],a=e[1]-i.v[s][1];var u=Math.sqrt(n*n+a*a);i.distV[s]+=(u-i.distV[s])*this.data.dc,i.v[s][0]=Math.cos(r)*Math.max(0,this.data.maxDist-i.distV[s])/2+t.v[s][0],i.v[s][1]=Math.sin(r)*Math.max(0,this.data.maxDist-i.distV[s])/2+t.v[s][1],r=Math.atan2(t.o[s][1]-e[1],t.o[s][0]-e[0]),n=e[0]-i.o[s][0],a=e[1]-i.o[s][1],u=Math.sqrt(n*n+a*a),i.distO[s]+=(u-i.distO[s])*this.data.dc,i.o[s][0]=Math.cos(r)*Math.max(0,this.data.maxDist-i.distO[s])/2+t.o[s][0],i.o[s][1]=Math.sin(r)*Math.max(0,this.data.maxDist-i.distO[s])/2+t.o[s][1],r=Math.atan2(t.i[s][1]-e[1],t.i[s][0]-e[0]),n=e[0]-i.i[s][0],a=e[1]-i.i[s][1],u=Math.sqrt(n*n+a*a),i.distI[s]+=(u-i.distI[s])*this.data.dc,i.i[s][0]=Math.cos(r)*Math.max(0,this.data.maxDist-i.distI[s])/2+t.i[s][0],i.i[s][1]=Math.sin(r)*Math.max(0,this.data.maxDist-i.distI[s])/2+t.i[s][1],h.push(i.v[s]),p.push(i.o[s]),l.push(i.i[s])}return{v:h,o:p,i:l,c:t.c}},i.processShapes=function(){var t,e,i,s,r=this.elem.globalData.mouseX,n=this.elem.globalData.mouseY,a=this.shapes.length;if(r){var o,h=this.elem.globalToLocal([r,n,0]),p=[];for(e=0;e<a;e+=1)if((o=this.shapes[e]).shape._mdf||this._mdf){for(o.shape._mdf=!0,s=(t=o.shape.paths).length,i=0;i<s;i+=1)this.positions[e][i]||(this.positions[e][i]={v:[],o:[],i:[],distV:[],distO:[],distI:[]}),p.push(this.processPath(t[i],h,this.positions[e][i]));o.shape.paths=p,o.last=p}else o.shape.paths=o.last}},e}(Yt));var Ut=function(t,e,i){return new Bt[t](e,i)},Wt=function(t){function e(e,i,s){var r,n;(r=t.call(this)||this).elem=e,r.frameId=-1,r.dataProps=j(i.length),r.k=!1,r.dashArray=V("float32",i.length?i.length-1:0),r.dashoffset=V("float32",1),r.initDynamicPropertyContainer(s);var a,o=i.length||0;for(n=0;n<o;n+=1)a=Tt(e,i[n].v,0,0,_assertThisInitialized(r)),r.k=a.k||r.k,r.dataProps[n]={n:i[n].n,p:a};return r.k||r.getValue(!0),r._isAnimated=r.k,r}return _inheritsLoose(e,t),e.prototype.getValue=function(t,e){if((t!==this.frameId||e)&&(this.frameId=t,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,s=this.dataProps.length;for(i=0;i<s;i+=1)"o"!=this.dataProps[i].n?this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},e}(K),Jt=function(t){function e(e,i,s){var r;(r=t.call(this)||this).data=i,r.c=V("uint8c",4*i.p);var n=i.k.k[0].s?i.k.k[0].s.length-4*i.p:i.k.k.length-4*i.p;return r.o=V("float32",n),r._cmdf=!1,r._omdf=!1,r._collapsable=r.checkCollapsable(),r._hasOpacity=n,r.initDynamicPropertyContainer(s),r.prop=Tt(e,i.k,1,null,_assertThisInitialized(r)),r.k=r.prop.k,r.getValue(!0),r}_inheritsLoose(e,t);var i=e.prototype;return i.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},i.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},i.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,s,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},e}(K),Ht=function(t){function e(e,i,s){var r;return(r=t.call(this)||this).frameId=-1,r.keyframesManager=e,r.elem=e.elem,r.session=s,r.shapes=[],r.shapesData=i,r.stylesList=[],r.itemsData=[],r.prevViewData=[],r.shapeModifiers=[],r.processedElements=[],r.transformsManager=new Ot,r.initDynamicPropertyContainer(e),r.lcEnum={1:"butt",2:"round",3:"square"},r.ljEnum={1:"miter",2:"round",3:"bevel"},r._isFirstFrame=!0,r.transformHelper={opacity:1,_opMdf:!1},r.searchShapes(r.shapesData,r.itemsData,r.prevViewData,!0,[]),r._isAnimated||(r.transformHelper.opacity=1,r.transformHelper._opMdf=!1,r.updateModifiers(r.frameId),r.transformsManager.processSequences(r._isFirstFrame),r.updateShape(r.transformHelper,r.shapesData,r.itemsData),r.updateGrahpics()),r}_inheritsLoose(e,t);var i=e.prototype;return i.createStyleElement=function(t,e){var i=new Rt(this.elem,t,this.transformsManager.addTransformSequence(e)),s={};if("fl"==t.ty||"st"==t.ty?(s.c=Tt(this,t.c,1,255,this),s.c.k||(i.co=s.c.v)):"gf"!==t.ty&&"gs"!==t.ty||(s.s=Tt(this,t.s,1,null,this),s.e=Tt(this,t.e,1,null,this),s.h=Tt(this,t.h||{k:0},0,.01,this),s.a=Tt(this,t.a||{k:0},0,ot,this),s.g=new Jt(this,t.g,this)),s.o=Tt(this,t.o,0,.01,this),"st"==t.ty||"gs"==t.ty){if(i.lc=this.lcEnum[t.lc]||"round",i.lj=this.ljEnum[t.lj]||"round",1==t.lj&&(i.ml=t.ml),s.w=Tt(this,t.w,0,null,this),s.w.k||(i.wi=s.w.v),t.d){var r=new Wt(this,t.d,"canvas",this);s.d=r,s.d.k||(i.da=s.d.dashArray,i.do=s.d.dashoffset[0])}}else i.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(i),s.style=i,s},i.addShapeToModifiers=function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},i.isShapeInAnimatedModifiers=function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},i.updateModifiers=function(t){if(this.shapeModifiers.length){var e,i=this.shapes.length;for(e=0;e<i;e+=1)this.shapes[e].sh.reset();for(e=(i=this.shapeModifiers.length)-1;e>=0;e-=1)this.shapeModifiers[e].processShapes(t,this._isFirstFrame)}},i.searchProcessedElement=function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},i.addProcessedElement=function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[s-=1].elem===t)return void(i[s].pos=e);i.push(new Ft(t,e))},i.createGroupElement=function(){return{it:[],prevViewData:[]}},i.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:Tt(this,t.o,0,.01,this),mProps:Xt(this,t,this)}}},i.createShapeElement=function(t){var e=new Et(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},i.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,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.updateModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},i.addTransformToStyleList=function(t){for(var e=this.stylesList.length,i=0;i<e;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.push(t)},i.removeTransformFromStyleList=function(){for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},i.closeStyles=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].closed=!0},i.searchShapes=function(t,e,i,s,r){var n,a,o,h,p,l,u=t.length-1,c=[],f=[],d=[].concat(r);for(n=u;n>=0;n-=1){if((h=this.searchProcessedElement(t[n]))?e[n]=i[h-1]:t[n]._shouldRender=s,"fl"==t[n].ty||"st"==t[n].ty||"gf"==t[n].ty||"gs"==t[n].ty)h?e[n].style.closed=!1:e[n]=this.createStyleElement(t[n],d),c.push(e[n].style);else if("gr"==t[n].ty){if(h)for(o=e[n].it.length,a=0;a<o;a+=1)e[n].prevViewData[a]=e[n].it[a];else e[n]=this.createGroupElement(t[n]);this.searchShapes(t[n].it,e[n].it,e[n].prevViewData,s,d)}else"tr"==t[n].ty?(h||(l=this.createTransformElement(t[n]),e[n]=l),d.push(e[n]),this.addTransformToStyleList(e[n])):"sh"==t[n].ty||"rc"==t[n].ty||"el"==t[n].ty||"sr"==t[n].ty?h||(e[n]=this.createShapeElement(t[n])):"tm"==t[n].ty||"rd"==t[n].ty?(h?(p=e[n]).closed=!1:((p=Ut(t[n].ty)).init(this,t[n]),e[n]=p,this.shapeModifiers.push(p)),f.push(p)):"rp"==t[n].ty&&(h?(p=e[n]).closed=!0:(p=Ut(t[n].ty),e[n]=p,p.init(this,t,n,e),this.shapeModifiers.push(p),s=!1),f.push(p));this.addProcessedElement(t[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),u=f.length,n=0;n<u;n+=1)f[n].closed=!0},i.updateShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},i.updateStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,s,r,n=t.trNodes,a=e.paths,o=a._length;n.length=0;var h=t.transforms.finalTransform;for(r=0;r<o;r+=1){var p=a.shapes[r];if(p&&p.v){for(s=p._length,i=1;i<s;i+=1)1===i&&n.push({t:"m",p:h.applyToPointArray(p.v[0][0],p.v[0][1],0)}),n.push({t:"c",pts:h.applyToTriplePoints(p.o[i-1],p.i[i],p.v[i])});1===s&&n.push({t:"m",p:h.applyToPointArray(p.v[0][0],p.v[0][1],0)}),p.c&&s&&(n.push({t:"c",pts:h.applyToTriplePoints(p.o[i-1],p.i[0],p.v[0])}),n.push({t:"z"}))}}t.trNodes=n}},i.updatePath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,s=e.styledShapes.length;for(i=0;i<s;i+=1)this.updateStyledShape(e.styledShapes[i],e.sh)}},i.updateFill=function(t,e,i){var s=e.style;(e.c._mdf||this._isFirstFrame)&&(s.co=e.c.v),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity)},i.updateStroke=function(t,e,i){var s=e.style,r=e.d;r&&(r._mdf||this._isFirstFrame)&&(s.da=r.dashArray,s.do=r.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(s.co=e.c.v),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(s.wi=e.w.v)},i.updateGradientFill=function(t,e,i){var s=e.style;s.grd=e.g.c,s.coOp=e.o.v*i.opacity},i.updateShape=function(t,e,i){for(var s=t,r=e.length-1;r>=0;r-=1)"tr"==e[r].ty?(s=i[r].transform,this.updateShapeTransform(t,s)):"sh"==e[r].ty||"el"==e[r].ty||"rc"==e[r].ty||"sr"==e[r].ty?this.updatePath(e[r],i[r]):"fl"==e[r].ty?this.updateFill(e[r],i[r],s):"st"==e[r].ty?this.updateStroke(e[r],i[r],s):"gf"==e[r].ty||"gs"==e[r].ty?this.updateGradientFill(e[r],i[r],s):"gr"==e[r].ty&&this.updateShape(s,e[r].it,i[r].it)},i.updateGrahpics=function(){for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].updateGrahpics()},i.getValue=function(t){t!==this.frameId&&(this.iterateDynamicProperties(t),this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.updateModifiers(t),this.transformsManager.processSequences(this._isFirstFrame),this.updateShape(this.transformHelper,this.shapesData,this.itemsData),this.updateGrahpics(),this.frameId=t)},e}(K),Kt=function(t){function e(e,i,s){var r;return(r=t.call(this,e,i)||this).frameId=-1,r.hs=i,r.session=s,r}return _inheritsLoose(e,t),e.prototype.getValue=function(t){t!==this.frameId&&(this.iterateDynamicProperties(t),this.frameId=t)},_createClass(e,[{key:"x",get:function(){return this.p?this.p.v[0]:this.px.v}},{key:"y",get:function(){return this.p?this.p.v[1]:this.py.v}},{key:"anchorX",get:function(){return this.a.v[0]}},{key:"anchorY",get:function(){return this.a.v[1]}},{key:"scaleX",get:function(){return this.s.v[0]}},{key:"scaleY",get:function(){return this.s.v[1]}},{key:"rotation",get:function(){return this.r&&this.r.v||0}},{key:"alpha",get:function(){return this.o.v}}]),e}(zt),Zt=function(){function t(t){this.elem=t,this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1,this.transform=null,this.masks=null,this.shapes=null,this._hasOutTypeExpression=!1,this.needUpdateOverlap=!1,this.isOverlapMode=!1,this.visible=!0,this._isFirstFrame=!0}var e=t.prototype;return e.initFrame=function(t,e){this.layer=t;var i=e.local,s=e.global;this.session=e,this.isOverlapLayer=this.layer.op>=i.op-i.st,this.isOverlapMode=s.overlapMode,this.parseLayer(t,e)},e.outTypeExpressionMode=function(){this._hasOutTypeExpression=!0,this.isOverlapLayer&&(this.needUpdateOverlap=!0)},e.prepareProperties=function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this.needUpdateOverlap||this.elem._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(t),this.dynamicProperties[i]._mdf&&(this._mdf=!0))},e.addDynamicProperty=function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)},e.parseLayer=function(t,e){var i=t.ks,s=t.hasMask,r=t.masksProperties,n=t.shapes,a=t.tm;if(i&&(this.transform=new Kt(this,i,e)),s&&(this.masks=new It(this,r,e)),n&&(this.shapes=new Ht(this,n,e)),a){var o=e.global.frameRate;this.tm=Tt(this,a,0,o,this)}},e.updateFrame=function(t){this._mdf=!1;var e=c.inRange(t,this.layer.ip,this.layer.op);this.isOverlapMode&&this.isOverlapLayer?this.visible=t>=this.layer.ip:this.visible=e,this.prepareProperties(t,e)},e.updateDisplay=function(){var t=this.elem.display;this.elem._isRoot||(this.visible?t.show():t.hide(),(this._mdf||this.transform._mdf||this._isFirstFrame)&&t.updateLottieTransform(this.transform),this.masks&&(this.masks._mdf||this._isFirstFrame)&&t.updateLottieMasks(this.masks)),this._isFirstFrame=!1},t}(),Qt=function(){function t(t){this.data=t,void 0===this.data.sr&&(this.data.sr=1),this.offsetTime=t.st||0,this.fullname=t.nm||"",this.idname=t.ln||"",this.classnames=t.cl?t.cl.split(" "):[],this.bodymovin=new Zt(this),this.displayType="",this.display=null,this.hierarchy=null,this.lottieTreeParent=null}var e=t.prototype;return e.initBodymovin=function(t,e){this.bodymovin.initFrame(t,e),this.display&&this.display.onSetupLottie&&this.display.onSetupLottie()},e.hasValidMasks=function(){return!(!this.bodymovin.masks||!this.bodymovin.masks.hasMasks)},e.setHierarchy=function(t){this.hierarchy=t,this.display.setHierarchy(t.display)},e.initDisplayInstance=function(t,e){return new(Nt(t))(this,e)},e.updateFrame=function(t){this.bodymovin.updateFrame(t),this.bodymovin.updateDisplay()},t}(),$t=function(t){function e(e,i){var s;s=t.call(this,e)||this;var r=i.global;s.session=i;var n={layer:e,session:i};if(r.maskComp){n.maskComp=r.maskComp;var a=e.w,o=e.h;n.viewport={w:a,h:o}}return s.config=n,s.childNodes=[],s.displayType=qt.Component,s.innerDisplay=null,s.display=s.initDisplayInstance(s.displayType,n),s.initBodymovin(e,i),s}_inheritsLoose(e,t);var i=e.prototype;return i.updateFrame=function(t){if(this.bodymovin.updateFrame(t),this.bodymovin.updateDisplay(),t-=this.offsetTime,this.bodymovin.tm){var e=this.bodymovin.tm.v;e===this.data.op&&(e=this.data.op-1),t=e}else t/=this.data.sr;for(var i=0;i<this.childNodes.length;i++)this.childNodes[i].updateFrame(t)},i.addChild=function(t){t.lottieTreeParent=this,this.childNodes.push(t),this.innerDisplay?this.innerDisplay.addChild(t.display):this.display.addChild(t.display)},e}(Qt),te=function(t){function e(e,i){var s;s=t.call(this,e)||this;var r={layer:e,session:i,rect:{x:0,y:0,width:e.sw,height:e.sh},color:e.sc};return s.config=r,s.session=i,s.displayType=qt.Solid,s.display=s.initDisplayInstance(s.displayType,r),s.initBodymovin(e,i),s}return _inheritsLoose(e,t),e}(Qt),ee=function(t){function e(e,i){var s;s=t.call(this,e)||this;var r=i.global,n=r.textureLoader,a=r.assets,o=c.getAssets(e.refId,a),h={layer:e,session:i,texture:n.getTextureById(o.id),asset:o};return s.config=h,s.session=i,s.displayType=qt.Sprite,s.display=s.initDisplayInstance(s.displayType,h),s.initBodymovin(e,i),s}return _inheritsLoose(e,t),e}(Qt),ie=function(t){function e(e,i){var s,r={layer:e,session:i};return(s=t.call(this,e)||this).config=r,s.session=i,s.displayType=qt.Shape,s.display=s.initDisplayInstance(s.displayType,r),s.initBodymovin(e,i),s}return _inheritsLoose(e,t),e}(Qt),se=function(t){function e(e,i){var s,r={layer:e,session:i};return(s=t.call(this,e)||this).config=r,s.session=i,s.displayType=qt.Null,s.display=s.initDisplayInstance(s.displayType,r),s.initBodymovin(e,i),s}return _inheritsLoose(e,t),e}(Qt),re=function(t){function e(e){var i;(i=t.call(this)||this).living=!0,i.infinite=e.infinite||!1,i.repeats=e.repeats||0,i.alternate=e.alternate||!1,i.wait=e.wait||0,i.delay=e.delay||0,i.overlapMode=e.overlapMode||!1,i.timeScale=c.isNumber(e.timeScale)?e.timeScale:1,i.frameNum=0,i.isPaused=!0,i.direction=1,i._lastFrame=-1/0,i._repeatsCut=i.repeats,i._delayCut=i.delay,i._waitCut=i.wait,i.segments=e.segments||{},i._segmentName=e.initSegment||"",i._prefix=e.prefix||"",i._autoLoad=!c.isBoolean(e.autoLoad)||e.autoLoad,i._autoStart=!c.isBoolean(e.autoStart)||e.autoStart,i._justDisplayOnImagesLoaded=!c.isBoolean(e.justDisplayOnImagesLoaded)||e.justDisplayOnImagesLoaded,i._maskComp=e.maskComp||!1,i.textureLoader=null,i.jsonLoader=null,i.root=null,i.parent=null;var s=Nt(qt.Container);if(i.group=new s,i.display=null,i.isDisplayLoaded=!1,i.isImagesLoaded=!1,i._copyJSON=e.copyJSON||!1,e.keyframes)!i._prefix&&e.keyframes.prefix&&(i._prefix=e.keyframes.prefix),i._setupDate(e.keyframes);else if(e.path){var r;r=-1!==e.path.lastIndexOf("\\")?e.path.substr(0,e.path.lastIndexOf("\\")+1):e.path.substr(0,e.path.lastIndexOf("/")+1),!i._prefix&&r&&(i._prefix=r),i.jsonLoader=function(t){var e=d[m.Ajax];return e||console.warn("must register an ajax loader, before you parse an animation from path"),e(t)}(e.path),i.jsonLoader.once("success",(function(t){i._setupDate(t)})),i.jsonLoader.once("error",(function(t){i.emit("error",t)}))}return i}_inheritsLoose(e,t);var i=e.prototype;return i._setupDate=function(t){var e=this;this._sourceData=t,this._copyJSON&&(t=c.copyJSON(t)),L(t),this.keyframes=t;var i=t,s=i.w,r=i.h,n=i.st,a=void 0===n?0:n,o=i.fr,h=i.ip,p=i.op,l=i.assets;this.frameRate=o,this.frameMult=o/1e3,this._defaultSegment=[h,p];var u=this._segmentName&&this.segments[this._segmentName]||this._defaultSegment;this.beginFrame=u[0],this.endFrame=u[1],this._timePerFrame=1e3/o,this.duration=Math.floor(this.endFrame-this.beginFrame);var f=null,v=l.filter((function(t){return t.u||t.p}));v.length>0?(this.textureLoader=f=function(t,e){var i=d[m.Texture];return i||console.warn("must register an image loader, before you parse an animation some has image assets"),i(t,e)}(v,{prefix:this._prefix,autoLoad:this._autoLoad}),f.loaded?(this.isImagesLoaded=!0,this.isPaused=!this._autoStart,this.emit("ImageReady")):(f.once("complete",(function(){e.isImagesLoaded=!0,e.emit("ImageReady")})),null!==this._pausedNeedSet&&(this._pausedNeedSet=!0,f.once("complete",(function(){e._pausedNeedSet&&(e._pausedNeedSet=!1,e.isPaused=!e._autoStart)}))))):(this.isImagesLoaded=!0,this.isPaused=!this._autoStart);var y={global:{assets:l,textureLoader:f,frameRate:o,maskComp:this._maskComp,overlapMode:this.overlapMode},local:{w:s,h:r,ip:h,op:p,st:a}};this._buildElements(y),null!==this.textureLoader&&this._justDisplayOnImagesLoaded&&!this.textureLoader.loaded&&null!==this._justDisplayNeedSet&&(this.group.visible=!1,this._justDisplayNeedSet=!0,this.textureLoader.once("complete",(function(){e._justDisplayNeedSet&&(e._justDisplayNeedSet=!1,e.group.visible=!0)}))),this.isDisplayLoaded=!0,this.update(0,!0)},i._buildElements=function(t){var e=this;this.root=this._extraCompositions(this.keyframes,t,!0),this.display=this.root.display,this.group.addChild(this.display),this.emit("DOMLoaded").emit("DisplayReady"),null===this.textureLoader||this.textureLoader.loaded?this.emit("success"):this.textureLoader.once("complete",(function(){return e.emit("success")}))},i._extraCompositions=function(t,e,i){var s=e.global,r=e.local;void 0===i&&(i=!1);var n=t.w,a=t.h,o=t.ip,h=t.op,p=t.st,l=void 0===p?0:p,u=new $t(t,{global:s,local:r});u._isRoot=i;for(var f=t.layers||c.getAssets(t.refId,s.assets).layers,d={global:s,local:{w:n,h:a,ip:o,op:h,st:l}},m=this._createElements(f,d),v=f.length-1;v>=0;v--){var y=f[v],g=m[y.ind];if(g){if(!c.isUndefined(y.parent)){var _=m[y.parent];_._isParent=!0,g.setHierarchy(_)}u.addChild(g)}}return u},i._createElements=function(t,e){for(var i={},s=t.length-1;s>=0;s--){var r=t[s],n=null;if(void 0===r.td){switch(r.ty){case 0:n=this._extraCompositions(r,e);break;case 1:n=new te(r,e);break;case 2:n=new ee(r,e);break;case 3:n=new se(r,e);break;case 4:n=new ie(r,e);break;default:continue}n&&(void 0===r.ind&&(r.ind=s),i[r.ind]=n,n.name=r.nm||null)}}return i},i.getDisplayByQuerySelector=function(t){var e=this.querySelector(t);return e&&e.display?e.display:(console.warn("can not find display which query with ",t),null)},i._queryMatch=function(t,e,i){var s,r=t.substr(0,1),n=t.substr(1,t.length);return(s="#"===r?e.idname===n:"."===r?-1!==e.classnames.indexOf(n):e.fullname===t)&&i.push(e),s},i._searchNodes=function(t,e,i,s){if(void 0===s&&(s=!1),e.childNodes&&e.childNodes.length>0){for(var r=[],n=0;n<e.childNodes.length;n++){var a=e.childNodes[n];if(this._queryMatch(t,a,i)&&s)return!0;a.childNodes&&a.childNodes.length>0&&r.push(a)}for(var o=0;o<r.length;o++)if(this._searchNodes(t,r[o],i,s))return!0}return!1},i.querySelector=function(t){var e=[];return this._queryMatch(t,this.root,e)?e[0]:(this._searchNodes(t,this.root,e,!0),e[0]||null)},i.querySelectorAll=function(t){var e=[],i="#"===t.substr(0,1);return this._queryMatch(t,this.root,e)&&i||this._searchNodes(t,this.root,e,i),e},i.bindSlot=function(t,e){return this.getDisplayByQuerySelector(t).addChild(e),this},i.unbindSlot=function(t,e){return this.getDisplayByQuerySelector(t).removeChild(e),this},i._emitFrame=function(t){this.emit("@"+t)},i.update=function(t,e){if(void 0===e&&(e=!1),this.living&&this.isDisplayLoaded&&(!this.isPaused||e)){var i=this._updateTime(t),s=this.beginFrame+this.frameNum;this.root.updateFrame(s);var r=s>>0;this._lastFrame!==r&&(this._emitFrame(this.direction>0?r:this._lastFrame),this._lastFrame=r),!1===i?(this.emit("enterFrame",s),this.emit("update",this.frameNum/this.duration)):this.hadEnded!==i&&!0===i&&this.emit("complete"),this.hadEnded=i}},i._updateTime=function(t){var e=this.direction*this.timeScale*t;if(this._waitCut>0)return this._waitCut-=Math.abs(e),null;if(this.isPaused||this._delayCut>0)return this._delayCut>0&&(this._delayCut-=Math.abs(e)),null;this.frameNum+=e/this._timePerFrame;var i=!1;return this._spill()&&(this._repeatsCut>0||this.infinite?(this._repeatsCut>0&&--this._repeatsCut,this._delayCut=this.delay,this.alternate?(this.direction*=-1,this.frameNum=c.codomainBounce(this.frameNum,0,this.duration)):(this.direction=1,this.frameNum=c.euclideanModulo(this.frameNum,this.duration)),this.emit("loopComplete")):(this.overlapMode||(this.frameNum=c.clamp(this.frameNum,0,this.duration),this.living=!1),i=!0)),i},i._spill=function(){var t=this.frameNum<=0&&-1===this.direction,e=this.frameNum>=this.duration&&1===this.direction;return t||e},i.frameToTime=function(t){return t*this._timePerFrame},i.setSpeed=function(t){this.timeScale=t},i.playSegment=function(t,e){if(void 0===e&&(e={}),t){var i=null;c.isArray(t)?i=t:c.isString(t)&&(i=this.segments[t],c.isArray(i)&&(this._segmentName=t)),c.isArray(i)&&(this.beginFrame=c.isNumber(i[0])?i[0]:this._defaultSegment[0],this.endFrame=c.isNumber(i[1])?i[1]:this._defaultSegment[1],c.isNumber(e.repeats)&&(this.repeats=e.repeats),c.isBoolean(e.infinite)&&(this.infinite=e.infinite),c.isBoolean(e.alternate)&&(this.alternate=e.alternate),c.isNumber(e.wait)&&(this.wait=e.wait),c.isNumber(e.delay)&&(this.delay=e.delay),this.replay())}},i.goToAndStop=function(t,e){void 0===e&&(e=!1),this.frameNum=e?t:t*this.frameMult,this.update(0,!0),this.pause()},i.goToAndPlay=function(t,e){void 0===e&&(e=!1),this.frameNum=e?t:t*this.frameMult,this.update(0,!0),this.resume()},i.getDuration=function(t){var e=this.endFrame-this.beginFrame;return t?e:e/this.frameRate},i.setDirection=function(t){return this.direction=t<0?-1:1,this},i.pause=function(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!0,this},i.resume=function(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!1,this},i.play=function(){return this.resume()},i.replay=function(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!1,this._repeatsCut=this.repeats,this._delayCut=this.delay,this.living=!0,this.frameNum=0,this.duration=Math.floor(this.endFrame-this.beginFrame),this.direction=1,this},i.show=function(){this._justDisplayNeedSet?this._justDisplayNeedSet=!1:this._justDisplayNeedSet=null,this.group.visible=!0},i.hide=function(){this._justDisplayNeedSet?this._justDisplayNeedSet=!1:this._justDisplayNeedSet=null,this.group.visible=!1},i.destroy=function(){this.parent&&this.parent.remove(this),this.group.parent&&this.group.parent.removeChild(this.group),this.pause(),this.root=null,this.group=null,this.display=null,this.textureLoader&&(this.textureLoader.off("complete"),this.textureLoader=null),this.jsonLoader&&(this.jsonLoader.off("success"),this.jsonLoader=null),this.keyframes=null,this.living=!1},e}(f),ne=function(t){function e(e){var i;return(i=t.call(this)||this)._lastTime=0,i._snippet=0,i.timeScale=1,i.isPaused=!1,i.ticker=e.ticker?e.ticker:e,i.groups=[],i.update=i.update.bind(_assertThisInitialized(i)),i.ticker&&i.start(),i}_inheritsLoose(e,t);var i=e.prototype;return i.add=function(t){var e=arguments.length;if(e>1)for(var i=0;i<e;i++)this.add(arguments[i]);else null!==t.parent&&t.parent.remove(t),t.parent=this,this.groups.push(t);return t},i.remove=function(t){if(arguments.length>1)for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);var i=this.groups.indexOf(t);-1!==i&&(t.parent=null,this.groups.splice(i,1))},i.parseAnimation=function(t){var e=new re(t);return this.add(e)},i.setSpeed=function(t){this.timeScale=t},i.start=function(){return this._lastTime=Date.now(),this.ticker.add(this.update),this},i.stop=function(){return this.ticker.remove(this.update),this},i.pause=function(){return this.isPaused=!0,this},i.resume=function(){return this.isPaused=!1,this},i.update=function(){if(this.timeline(),!this.isPaused){for(var t=this.timeScale*this._snippet,e=this.groups.length,i=0;i<e;i++)this.groups[i].update(t);this.emit("update",this._snippet)}},i.timeline=function(){var t=Date.now()-this._lastTime;(!this._lastTime||t>200)&&(this._lastTime=Date.now(),t=Date.now()-this._lastTime),this._lastTime+=t,this._snippet=t},i.destroy=function(){for(var t=this.groups.length-1;t>=0;t--)this.groups[t].destroy()},e}(f),ae=function(t){function e(e){var i;return(i=t.call(this)||this).parentCompBox=e,i.lineStyle(0),i}_inheritsLoose(e,t);var i=e.prototype;return i.updateLayerMask=function(t){for(var e=0;e<t.viewData.length;e++){if(t.viewData[e].inv){var i=this.parentCompBox;this.moveTo(0,0),this.lineTo(i.w,0),this.lineTo(i.w,i.h),this.lineTo(0,i.h),this.lineTo(0,0)}var s=t.viewData[e].v,r=s.v[0];this.moveTo(r[0],r[1]);for(var n=s._length,a=1;a<n;a++){var o=s.o[a-1],h=s.i[a],p=s.v[a];this.bezierCurveTo(o[0],o[1],h[0],h[1],p[0],p[1])}var l=s.o[a-1],u=s.i[0],c=s.v[0];this.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1]),t.viewData[e].inv&&this.addHole()}},i.updateMasks=function(t){this.clear(),this.beginFill(0),this.updateLayerMask(t),this.endFill()},e}(s.Graphics),oe=function(t){function e(e){var i;return(i=t.call(this)||this).viewport=e,i.lineStyle(0),i.initCompMask(),i}return _inheritsLoose(e,t),e.prototype.initCompMask=function(){this.clear(),this.beginFill(0);var t=this.viewport;this.moveTo(0,0),this.lineTo(t.w,0),this.lineTo(t.w,t.h),this.lineTo(0,t.h),this.lineTo(0,0),this.endFill()},e}(s.Graphics),he=function(t){function e(e,i){var s;return(s=t.call(this)||this).lottieElement=e,s.config=i,s}_inheritsLoose(e,t);var i=e.prototype;return i.onSetupLottie=function(){if(this.config.maskComp){var t=this.config.viewport;this.preCompMask=new oe(t),this.mask=this.preCompMask,this.addChild(this.mask)}if(this.lottieElement.hasValidMasks()){var e=this.config.session.local;if(this.graphicsMasks=new ae(e),this.mask){var i=new s.Container;i.mask=this.graphicsMasks,i.addChild(this.mask),this.lottieElement.innerDisplay=i,this.addChild(i)}else this.mask=this.graphicsMasks,this.addChild(this.mask)}},i.setHierarchy=function(t){this.hierarchy=t},i.show=function(){this.visible=!0},i.hide=function(){this.visible=!1},i.updateLottieTransform=function(t){this.x=t.x,this.y=t.y,this.pivot.x=t.anchorX,this.pivot.y=t.anchorY,this.scale.x=t.scaleX,this.scale.y=t.scaleY,this.rotation=t.rotation,this.alpha=t.alpha},i.updateLottieMasks=function(t){this.graphicsMasks&&this.graphicsMasks.updateMasks(t)},e}(s.Container),pe=function(t){function e(e){return t.call(this,e,["attribute vec2 aVertexPosition;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","void main(void){"," gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);","}"].join("\n"),["uniform float alpha;","uniform vec3 color;","void main(void){"," gl_FragColor = vec4(color * alpha, alpha);","}"].join("\n"))||this}return _inheritsLoose(e,t),e}(s.Shader);function le(t,e){this.buffer=new t(10),this.length=0}le.prototype={reset:function(){this.length=0},destroy:function(){this.buffer=null,this.length=0},push:function(){if(this.length+arguments.length>this.buffer.length){var t=new this.buffer.constructor(Math.max(this.length+arguments.length,Math.round(2*this.buffer.length)));t.set(this.buffer,0),this.buffer=t}for(var e=0;e<arguments.length;e++)this.buffer[this.length++]=e<0||arguments.length<=e?void 0:arguments[e];return this.length},setBuffer:function(t){this.buffer=t,this.length=this.buffer.length}};var ue=function(){function t(t,e,i){this.gl=t,this.vertices=new le(Float32Array),this.indices=new le(Uint16Array),this.buffer=s.glCore.GLBuffer.createVertexBuffer(t),this.indexBuffer=s.glCore.GLBuffer.createIndexBuffer(t),this.dirty=!0,this.shader=e,this.vao=new s.glCore.VertexArrayObject(t,i).addIndex(this.indexBuffer).addAttribute(this.buffer,e.attributes.aVertexPosition,t.FLOAT,!1,8,0)}var e=t.prototype;return e.reset=function(){this.vertices.reset(),this.indices.reset()},e.upload=function(){this.buffer.upload(this.vertices.buffer),this.indexBuffer.upload(this.indices.buffer),this.dirty=!1},e.destroy=function(){this.vertices.destroy(),this.indices.destroy(),this.vao.destroy(),this.buffer.destroy(),this.indexBuffer.destroy(),this.gl=null,this.buffer=null,this.indexBuffer=null},t}();function ce(t,e,i){return t.push(e,i),t}function fe(t,e){return Math.sqrt(t*t+e*e)}function de(t,e,i,s,r){return function(t,e){var i=1-t;return i*i*i*e}(t,e)+function(t,e){var i=1-t;return 3*i*i*t*e}(t,i)+function(t,e){return 3*(1-t)*t*t*e}(t,s)+function(t,e){return t*t*t*e}(t,r)}function me(t,e,i,s,r,n,a){if(!(isFinite(e)&&isFinite(i)&&isFinite(s)&&isFinite(r)&&isFinite(n)&&isFinite(a)))return t;for(var o=t[t.length-2],h=t[t.length-1],p=function(t,e,i,s,r,n,a,o){var h=r-i,p=n-s,l=i-t,u=s-e;return fe(a-r,o-n)+fe(h,p)+fe(l,u)}(o,h,e,i,s,r,n,a),l=Math.min(10/p,.5),u=l;u<1;u+=l){var c=de(u,o,e,s,n),f=de(u,h,i,r,a);t.push(c,f)}return t.push(n,a),t}function ve(t,e){for(var i=0;i<t.length;i++){var s=t[i],r=s.cmd,n=s.args;switch(r){case"M":case"L":ce(e,n[0],n[1]);break;case"C":me(e,n[0],n[1],n[2],n[3],n[4],n[5])}}return e}function ye(t,e,i,s,r,n,a){r%=2*Math.PI,n%=2*Math.PI,r<0&&(r+=2*Math.PI),n<0&&(n+=2*Math.PI),r>=n&&(n+=2*Math.PI);var o=n-r,h=1;a&&(h=-1,0==(o=2*Math.PI-o)&&(o=2*Math.PI));for(var p=o*s,l=Math.sqrt(p/1)>>0,u=o/(l=l%2==0?l+1:l),c=r,f=0;f<l+1;f++)t.push(e,i,e+s*Math.cos(c),i+s*Math.sin(c)),c+=h*u}function ge(t,e,i){for(var s,r=ve(t.cmds,[]),n=t.isClosed,a=e.lineDash.length>=2,o=e.lineWidth/2,h=[r[0],r[1]],p=2;p<r.length;p+=2)r[p]==h[h.length-2]&&r[p+1]==h[h.length-1]||h.push(r[p],r[p+1]);if(!n||h[h.length-2]==h[0]&&h[h.length-1]==h[1]||h.push(h[0],h[1]),a){var l=function(t,e,i,s){e&&t.push(t[0],t[1]);for(var r=s,n=0,a=1;r>i[n];)r-=i[n],a=a?0:1,++n==i.length&&(n=0);for(var o=[t[0],t[1]],h=[a],p=2;p<t.length;p+=2){var l=[t[p]-t[p-2],t[p+1]-t[p-1]],u=fe(l[0],l[1]);l[0]/=u,l[1]/=u;for(var c=0;u-c+r>=i[n];)c+=i[n]-r,r=0,a=a?0:1,++n==i.length&&(n=0),h.push(a),o.push(t[p-2]+c*l[0],t[p-1]+c*l[1]);u-c!=0&&(o.push(t[p],t[p+1]),h.push(a)),r+=u-c}return e&&(t.pop(),t.pop(),o.pop(),o.pop(),h.pop()),{newPoints:o,toDrawOrNotToDraw:h}}(h,n,e.lineDash,e.lineDashOffset);s=l.toDrawOrNotToDraw,h=l.newPoints}var u=i.length,c=i.length,f=[];if(n)h.push(h[2],h[3]);else{var d=[h[2]-h[0],h[3]-h[1]],m=fe(d[0],d[1]);d[0]/=m,d[1]/=m;var v=[-d[1],d[0]],y=[h[0]+o*v[0],h[1]+o*v[1]],g=[h[0]-o*v[0],h[1]-o*v[1]];if("butt"==e.lineCap)i.push(y[0],y[1],g[0],g[1]);else if("square"==e.lineCap)i.push(y[0]-o*d[0],y[1]-o*d[1],g[0]-o*d[0],g[1]-o*d[1]);else{i.push(h[0],h[1],y[0],y[1]);var _=Math.atan2(y[1]-h[1],y[0]-h[0]),k=Math.atan2(g[1]-h[1],g[0]-h[0]);ye(i,h[0],h[1],o,_,k),i.push(h[0],h[1],g[0],g[1]),i.push(y[0],y[1],g[0],g[1])}if(a){for(var S=s[0],T=c;T<i.length;T+=2)f.push(S);c=i.length}}for(var M=2;M<h.length-2;M+=2){var w=[h[M]-h[M-2],h[M+1]-h[M-1]],x=[-w[1],w[0]],P=fe(x[0],x[1]);x[0]/=P,x[1]/=P;var b=[h[M+2]-h[M],h[M+3]-h[M+1]];P=fe(b[0],b[1]),b[0]/=P,b[1]/=P;var L=[h[M]-h[M-2],h[M+1]-h[M-1]];P=fe(L[0],L[1]),L[0]/=P,L[1]/=P;var D=[L[0]+b[0],L[1]+b[1]],C=void 0,I=void 0,A=0;(P=fe(D[0],D[1]))>0?(D[0]/=P,D[1]/=P,A=o/(C=(I=[-D[1],D[0]])[0]*x[0]+I[1]*x[1])):(A=0,I=[-D[1],D[0]]);var O=[h[M]+A*I[0],h[M+1]+A*I[1]],F=[h[M]-A*I[0],h[M+1]-A*I[1]];if("miter"==e.lineJoin&&1/C<=e.miterLimit)i.push(O[0],O[1],F[0],F[1]);else{var E=L[1]*b[0]-L[0]*b[1];if("round"==e.lineJoin)if(E<0){var V=[h[M]+L[1]*o,h[M+1]-L[0]*o],N=[h[M]+b[1]*o,h[M+1]-b[0]*o];i.push(O[0],O[1],V[0],V[1]);var q=Math.atan2(V[1]-h[M+1],V[0]-h[M]),j=Math.atan2(N[1]-h[M+1],N[0]-h[M]);ye(i,h[M],h[M+1],o,q,j),i.push(O[0],O[1],N[0],N[1])}else{var R=[h[M]-L[1]*o,h[M+1]+L[0]*o],z=[h[M]-b[1]*o,h[M+1]+b[0]*o];i.push(R[0],R[1],F[0],F[1]);var X=Math.atan2(z[1]-h[M+1],z[0]-h[M]),Y=Math.atan2(R[1]-h[M+1],R[0]-h[M]);ye(i,h[M],h[M+1],o,X,Y),i.push(z[0],z[1],F[0],F[1])}else if(E<0){var B=[h[M]+L[1]*o,h[M+1]-L[0]*o],G=[h[M]+b[1]*o,h[M+1]-b[0]*o];i.push(O[0],O[1],B[0],B[1],O[0],O[1],G[0],G[1])}else{var U=[h[M]-L[1]*o,h[M+1]+L[0]*o],W=[h[M]-b[1]*o,h[M+1]+b[0]*o];i.push(U[0],U[1],F[0],F[1],W[0],W[1],F[0],F[1])}}if(a){for(var J=s[M/2],H=c;H<i.length;H+=2)f.push(J);c=i.length}}if(n)i.push(i.buffer[u],i.buffer[u+1],i.buffer[u+2],i.buffer[u+3]);else{var K=[h[h.length-2]-h[h.length-4],h[h.length-1]-h[h.length-3]],Z=Math.sqrt(Math.pow(K[0],2)+Math.pow(K[1],2));K[0]/=Z,K[1]/=Z;var Q=[-K[1],K[0]],$=[h[h.length-2]+o*Q[0],h[h.length-1]+o*Q[1]],tt=[h[h.length-2]-o*Q[0],h[h.length-1]-o*Q[1]];if("butt"==e.lineCap)i.push($[0],$[1],tt[0],tt[1]);else if("square"==e.lineCap)i.push($[0]+o*K[0],$[1]+o*K[1],tt[0]+o*K[0],tt[1]+o*K[1]);else{i.push($[0],$[1],tt[0],tt[1]),i.push(h[h.length-2],h[h.length-1],tt[0],tt[1]);var et=Math.atan2(tt[1]-h[h.length-1],tt[0]-h[h.length-2]),it=Math.atan2($[1]-h[h.length-1],$[0]-h[h.length-2]);ye(i,h[h.length-2],h[h.length-1],o,et,it),i.push(h[h.length-2],h[h.length-1],$[0],$[1])}}if(a){for(var st=s[s.length-1],rt=c;rt<i.length;rt+=2)f.push(st);c=i.length}return f}function _e(t,e){for(var i=t.isClosed,s=!0,r=ve(t.cmds,[]),n=[r[0],r[1]],a=2;a<r.length;a+=2)r[a]==n[n.length-2]&&r[a+1]==n[n.length-1]||n.push(r[a],r[a+1]);if(!i||n[n.length-2]==n[0]&&n[n.length-1]==n[1]||n.push(n[0],n[1]),n.length>=6){for(var o=0;o<n.length;o++)e.push(n[o]);s=!1}return s}s.WebGLRenderer.registerPlugin("lottiegraphics",function(t){function e(e){var i;return(i=t.call(this,e)||this).graphicsDataPool=[],i.primitiveShader=null,i.webGLData=null,i.gl=e.gl,i.CONTEXT_UID=0,i}_inheritsLoose(e,t);var i=e.prototype;return i.onContextChange=function(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.primitiveShader=new pe(this.gl)},i.destroy=function(){s.ObjectRenderer.prototype.destroy.call(this);for(var t=0;t<this.graphicsDataPool.length;++t)this.graphicsDataPool[t].destroy();this.graphicsDataPool=null},i.render=function(t){var e=this.renderer,i=e.gl,r=this.getWebGLData(t);if(t.isDirty&&this.updateGraphics(t,r),0!==r.indices.length){var n=this.primitiveShader;e.bindShader(n),e.state.setBlendMode(t.blendMode),n.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),n.uniforms.color=s.utils.hex2rgb(t.color),n.uniforms.alpha=t.worldAlpha,e.bindVao(r.vao),r.vao.draw(i.TRIANGLES,r.indices.length)}},i.updateGraphics=function(t,e){e.reset(),"stroke"===t.drawType?this.buildStroke(t,e):this.buildFill(t,e),t.isDirty=!1},i.buildStroke=function(t,e){for(var i=e.vertices,s=e.indices,r=t.paths,n=t.lineStyle,a=n.lineDash.length>=2,o=0;o<r.length;o++){var h=r[o],p=i.length/2,l=ge(h,n,i);if(a)for(var u=p+2;u<i.length/2;u+=2)l[u-p-1]&&s.push(u-2,u,u-1,u,u+1,u-1);else for(var c=p+2;c<i.length/2;c+=2)s.push(c-2,c,c-1,c,c+1,c-1)}e.upload()},i.buildFill=function(t,e){for(var i=e.vertices,r=e.indices,n=t.paths,a=[],o=[],h=0;h<n.length;h++){var p=n[h],l=[];if(_e(p,l))break;for(var u=p.holes,c=[],f=0;f<u.length;f++){var d=u[f],m=l.length;if(_e(d,l))break;c.push(m/2)}for(var v=s.utils.earcut(l,c,2),y=a.length/2,g=0;g<l.length;g+=2)a.push(l[g],l[g+1]);for(var _=0;_<v.length;_+=3)o.push(y+v[_],y+v[_+1],y+v[_+2])}a.length<6||o<3||(i.setBuffer(new Float32Array(a)),r.setBuffer(new Uint16Array(o)),e.upload())},i.getWebGLData=function(t){return t.webGLData&&this.CONTEXT_UID===t.webGLData.CONTEXT_UID||(t.webGLData=new ue(this.renderer.gl,this.primitiveShader,this.renderer.state.attribState),t.webGLData.CONTEXT_UID=this.CONTEXT_UID),t.webGLData},e}(s.ObjectRenderer)),s.CanvasRenderer.registerPlugin("lottiegraphics",function(){function t(t){this.renderer=t}var e=t.prototype;return e.destroy=function(){this.renderer=null},e.render=function(t){var e=this.renderer,i=e.context,s=t.lineStyle,r=t.worldAlpha,n=t.transform.worldTransform,a=e.resolution;i.setTransform(n.a*a,n.b*a,n.c*a,n.d*a,n.tx*a,n.ty*a),e.setBlendMode(t.blendMode),i.globalAlpha=r,"stroke"===t.drawType?(i.lineWidth=s.lineWidth,i.lineJoin=s.lineJoin,i.miterLimit=s.miterLimit,i.lineCap=s.lineCap,i.lineDashOffset=s.lineDashOffset,i.setLineDash(s.lineDash||[]),this.buildStroke(t)):this.buildFill(t)},e.buildStroke=function(t){var e=this.renderer.context,i="#"+("00000"+(0|t.color).toString(16)).substr(-6),s=t.paths,r=t.lineStyle;e.lineWidth=r.lineWidth,e.lineJoin=r.lineJoin,e.miterLimit=r.miterLimit,e.lineCap=r.lineCap,e.lineDashOffset=r.lineDashOffset,e.setLineDash(r.lineDash||[]),e.beginPath();for(var n=0;n<s.length;n++)this.drawPath(e,s[n]);e.strokeStyle=i,e.stroke()},e.buildFill=function(t){var e=this.renderer.context,i="#"+("00000"+(0|t.color).toString(16)).substr(-6),s=t.paths;e.beginPath();for(var r=0;r<s.length;r++){var n=s[r];this.drawPath(e,n);for(var a=0;a<n.holes.length;a++)this.drawPath(e,n.holes[a])}e.fillStyle=i,e.fill()},e.drawPath=function(t,e){for(var i=0;i<e.cmds.length;i++){var s=e.cmds[i],r=s.cmd,n=s.args;switch(r){case"M":t.moveTo(n[0],n[1]);break;case"L":t.lineTo(n[0],n[1]);break;case"C":t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}}},t}());var ke=function(){function t(){this.cmds=[],this.holes=[],this.isClosed=!1,this.isClockWise=!1}var e=t.prototype;return e.getLength=function(){return this.cmds.length},e.add=function(t,e){this.cmds.push({cmd:t,args:e})},e.moveTo=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.add("M",[t,e])},e.lineTo=function(t,e){this.add("L",[t,e])},e.bezierCurveTo=function(t,e,i,s,r,n){this.add("C",[t,e,i,s,r,n])},e.closePath=function(){this.isClosed=!0},t}(),Se=function(t){function e(){var e;return(e=t.call(this)||this).paths=[],e._samplerPoints=[],e.currentPath=null,e.color=0,e.lineStyle={lineWidth:1,lineJoin:"miter",miterLimit:10,lineCap:"butt",lineDash:[],lineDashOffset:0},e.isDirty=!0,e.drawType="",e.blendMode=s.BLEND_MODES.NORMAL,e.webGLData=null,e.firstIsClockWise=!0,e.preClockWiseStatus=null,e}_inheritsLoose(e,t);var i=e.prototype;return i.clear=function(){this.paths.length=0,this.currentPath=null,this.firstIsClockWise=!0,this.preClockWiseStatus=null,this.isDirty=!0},i.moveTo=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.endPath(),this.currentPath=new ke,this.currentPath.moveTo(t,e),this._samplerPoints.push([t,e])},i.lineTo=function(t,e){this.currentPath.lineTo(t,e),this._samplerPoints.push([t,e])},i.bezierCurveTo=function(t,e,i,s,r,n){this.currentPath.bezierCurveTo(t,e,i,s,r,n),this._samplerPoints.push([r,n])},i.endPath=function(){if(this.currentPath&&this.currentPath.getLength()>1){var t=this.paths.length,e=function(t){for(var e=t.length,i=0,s=e-1,r=0;r<e;s=r++)i+=t[s][0]*t[r][1]-t[r][0]*t[s][1];return.5*i}(this._samplerPoints)>0;this.currentPath.isClockWise=e,0===t&&(this.firstIsClockWise=e),t>0&&this.preClockWiseStatus===this.firstIsClockWise&&this.preClockWiseStatus!==e?(t>0?this.paths[t-1]:null).holes.push(this.currentPath):(this.paths.push(this.currentPath),this.preClockWiseStatus=e),this.currentPath=null,this.isDirty=!0}this._samplerPoints.length=0},i.closePath=function(){this.currentPath.closePath()},i.stroke=function(){this.endPath(),this.drawType="stroke"},i.fill=function(){null!==this.currentPath&&(this.closePath(),this.endPath(),this.drawType="fill")},i._renderWebGL=function(t){t.setObjectRenderer(t.plugins.lottiegraphics),t.plugins.lottiegraphics.render(this)},i._renderCanvas=function(t){t.plugins.lottiegraphics.render(this)},e}(s.Container),Te=function(t){function e(e,i){var r;return(r=t.call(this)||this).lottieElement=e,r.config=i,r.passMatrix=new s.Matrix,r}_inheritsLoose(e,t);var i=e.prototype;return i.setShapeTransform=function(){var t=this.lottieElement.preTransforms.finalTransform.props;this.passMatrix.set(t[0],t[1],t[4],t[5],t[12],t[13]),this.transform.setFromMatrix(this.passMatrix)},i.updateTransform=function(){this.setShapeTransform(),this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._bounds.updateID++},i.updateLottieGrahpics=function(t){var e=t.type;if(this.clear(),("st"!==e&&"gs"!==e||0!==t.wi)&&t.data._shouldRender&&0!==t.coOp){for(var i=t.elements,s=i.length,r=0;r<s;r+=1)for(var n=i[r].trNodes,a=n.length,o=0;o<a;o++)"m"==n[o].t?this.moveTo(n[o].p[0],n[o].p[1]):"c"==n[o].t?this.bezierCurveTo(n[o].pts[0],n[o].pts[1],n[o].pts[2],n[o].pts[3],n[o].pts[4],n[o].pts[5]):this.closePath();"st"!==e&&"gs"!==e||(t.da?(this.lineStyle.lineDash=t.da,this.lineStyle.lineDashOffset=t.do):this.lineStyle.lineDash=[]),"st"===e||"gs"===e?(this.lineStyle.lineWidth=t.wi,this.lineStyle.lineCap=t.lc,this.lineStyle.lineJoin=t.lj,this.lineStyle.miterLimit=t.ml||0,this.color=c.rgb2hex(t.co||t.grd),this.alpha=t.coOp,this.stroke()):(this.color=c.rgb2hex(t.co||t.grd),this.alpha=t.coOp,this.fill())}},e}(Se),Me=function(t){function e(e,i){var s;(s=t.call(this)||this).lottieElement=e,s.config=i;var r=parseInt(i.color.replace("#",""),16);return s.beginFill(r),s.drawRect(0,0,i.rect.width,i.rect.height),s.endFill(),s}_inheritsLoose(e,t);var i=e.prototype;return i.onSetupLottie=function(){if(this.lottieElement.hasValidMasks()){var t=this.config.session.local;this.graphicsMasks=new ae(t),this.mask=this.graphicsMasks,this.addChild(this.mask)}},i.setHierarchy=function(t){this.hierarchy=t},i.show=function(){this.visible=!0},i.hide=function(){this.visible=!1},i.updateLottieTransform=function(t){this.x=t.x,this.y=t.y,this.pivot.x=t.anchorX,this.pivot.y=t.anchorY,this.scale.x=t.scaleX,this.scale.y=t.scaleY,this.rotation=t.rotation,this.alpha=t.alpha},i.updateLottieMasks=function(t){this.graphicsMasks&&this.graphicsMasks.updateMasks(t)},e}(s.Graphics),we=function(t){function e(e,i){var r,n=i.texture,a=i.asset;return r=t.call(this,n)||this,n.baseTexture.hasLoaded?(n.orig=new s.Rectangle(0,0,a.w,a.h),n._updateUvs()):n.baseTexture.on("loaded",(function(){n.orig=new s.Rectangle(0,0,a.w,a.h),n._updateUvs()})),r.lottieElement=e,r.config=i,r}_inheritsLoose(e,t);var i=e.prototype;return i.onSetupLottie=function(){if(this.lottieElement.hasValidMasks()){var t=this.config.session.local;this.graphicsMasks=new ae(t),this.mask=this.graphicsMasks,this.addChild(this.mask)}},i.setHierarchy=function(t){this.hierarchy=t},i.show=function(){this.visible=!0},i.hide=function(){this.visible=!1},i.updateLottieTransform=function(t){this.x=t.x,this.y=t.y,this.pivot.x=t.anchorX,this.pivot.y=t.anchorY,this.scale.x=t.scaleX,this.scale.y=t.scaleY,this.rotation=t.rotation,this.alpha=t.alpha},i.updateLottieMasks=function(t){this.graphicsMasks&&this.graphicsMasks.updateMasks(t)},e}(s.Sprite),xe=/^(https?:)?\/\//,Pe=function(t){function e(e,i){var s,r=i.prefix,n=i.autoLoad,a=void 0===n||n;return(s=t.call(this)||this).assets=e,s.prefix=r||"",s.textures={},s._total=0,s._failed=0,s._received=0,s.loaded=!1,a&&s.load(),s}_inheritsLoose(e,t);var i=e.prototype;return i.load=function(){var t=this;this.assets.forEach((function(e){var i=e.id,r=function(t,e){if(1===t.e)return t.p;e&&(e=e.replace(/\/?$/,"/"));var i=t.u+t.p;return t.up?t.up:xe.test(i)?i:e+i}(e,t.prefix),n=s.Texture.fromImage(r,"*");t.textures[i]=n,t._total++,n.baseTexture.hasLoaded?(t._received++,t.emit("update"),t._received+t._failed>=t._total&&t._onComplete()):(n.baseTexture.once("loaded",(function(){t._received++,t.emit("update"),t._received+t._failed>=t._total&&t._onComplete()})),n.baseTexture.once("error",(function(){t._failed++,t.emit("update"),t._received+t._failed>=t._total&&t._onComplete()})))}))},i._onComplete=function(){this.loaded=!0,this.emit("complete"),this._failed>0&&(this._failed>=this._total?this.emit("fail"):this.emit("partlyfail",this._failed))},i.getTextureById=function(t){return this.textures[t]},e}(f);function be(t){return t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):void 0}var Le=function(t){function e(e){var i;return(i=t.call(this)||this).path=e,i.onSuccess=i.onSuccess.bind(_assertThisInitialized(i)),i.onFail=i.onFail.bind(_assertThisInitialized(i)),function(t,e,i){var s,r=new XMLHttpRequest;r.open("GET",t,!0);try{r.responseType="json"}catch(t){console.error("lottie-pixi loadAjax:",t)}r.send(),r.onreadystatechange=function(){if(4==r.readyState)if(200==r.status)s=be(r),e(s);else try{s=be(r),e(s)}catch(t){i&&i(t)}}}(e,i.onSuccess,i.onFail),i}_inheritsLoose(e,t);var i=e.prototype;return i.onSuccess=function(t){this.emit("success",t),this.emit("complete",t)},i.onFail=function(t){this.emit("fail",t),this.emit("error",t)},e}(f),De={Linear:{None:function(t){return t}},Ease:{In:function(){var t=new E(.42,0,1,1);return function(e){return t.get(e)}}(),Out:function(){var t=new E(0,0,.58,1);return function(e){return t.get(e)}}(),InOut:function(){var t=new E(.42,0,.58,1);return function(e){return t.get(e)}}(),Bezier:function(t,e,i,s){var r=new E(t,e,i,s);return function(t){return r.get(t)}}},Elastic:{In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1}},Back:{In:function(t){var e=1.70158;return t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-De.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*De.Bounce.In(2*t):.5*De.Bounce.Out(2*t-1)+.5}}};function Ce(t){f.call(this),this.element=t.element||{},this.duration=t.duration||300,this.living=!0,this.resident=t.resident||!1,this.infinite=t.infinite||!1,this.alternate=t.alternate||!1,this.repeats=t.repeats||0,this.delay=t.delay||0,this.wait=t.wait||0,this.timeScale=c.isNumber(t.timeScale)?t.timeScale:1,t.onComplete&&this.on("complete",t.onComplete.bind(this)),t.onUpdate&&this.on("update",t.onUpdate.bind(this)),this.init(),this.paused=!1}function Ie(t){for(var e in Ce.call(this,t),t.from=t.from||{},t.to)c.isUndefined(t.from[e])&&(t.from[e]=this.element[e]);this.ease=t.ease||De.Ease.InOut,this.from=t.from,this.to=t.to}function Ae(t){Ce.call(this,t),this.dynamicProperties=[],this._mdf=!1,this.keyframes=c.copyJSON(t.keyframes),this.frameRate=t.frameRate||30,this.tpf=1e3/this.frameRate,this.ip=c.isUndefined(t.ip)?this.keyframes.ip:t.ip,this.op=c.isUndefined(t.ip)?this.keyframes.op:t.op,this.tfs=this.op-this.ip,this.duration=this.tfs*this.tpf,this.ignoreProps=c.isArray(t.ignoreProps)?t.ignoreProps:[],this.transform=new Kt(this,this.keyframes.ks)}function Oe(t,e){Ce.call(this,e),this.runners=[],this.queues=[],this.cursor=0,this.total=0,this.alternate=!1,t&&this.then(t)}Ce.prototype=Object.create(f.prototype),Ce.prototype.update=function(t){var e=this.direction*this.timeScale*t;if(this.waitCut>0)this.waitCut-=Math.abs(e);else{if(!(this.paused||!this.living||this.delayCut>0)){this.progress+=e;var i,s=!1,r=this.progress;return this.spill()&&(this.repeatsCut>0||this.infinite?(this.repeatsCut>0&&--this.repeatsCut,this.delayCut=this.delay,this.alternate?(this.direction*=-1,this.progress=c.codomainBounce(this.progress,0,this.duration)):(this.direction=1,this.progress=c.euclideanModulo(this.progress,this.duration))):s=!0),s?(this.resident||(this.living=!1),this.progress=c.clamp(r,0,this.duration),i=this.nextPose(),this.emit("complete",i,r-this.progress)):(i=this.nextPose(),this.emit("update",i,this.progress/this.duration)),i}this.delayCut>0&&(this.delayCut-=Math.abs(e))}},Ce.prototype.spill=function(){var t=this.progress<=0&&-1===this.direction,e=this.progress>=this.duration&&1===this.direction;return t||e},Ce.prototype.init=function(){this.direction=1,this.progress=0,this.repeatsCut=this.repeats,this.delayCut=this.delay,this.waitCut=this.wait},Ce.prototype.nextPose=function(){console.warn("should be overwrite")},Ce.prototype.linear=function(t,e,i){return(e-t)*i+t},Ce.prototype.setSpeed=function(t){return this.timeScale=t,this},Ce.prototype.pause=function(){return this.paused=!0,this},Ce.prototype.resume=function(){return this.paused=!1,this},Ce.prototype.restart=Ce.prototype.resume,Ce.prototype.stop=function(){return this.repeats=0,this.infinite=!1,this.progress=this.duration,this},Ce.prototype.cancel=function(){return this.living=!1,this},Ie.prototype=Object.create(Ce.prototype),Ie.prototype.nextPose=function(){var t={},e=this.ease(this.progress/this.duration);for(var i in this.to)void 0!==this.element[i]&&(this.element[i]=t[i]=this.linear(this.from[i],this.to[i],e));return t},Ae.prototype=Object.create(Ce.prototype),Ae.prototype.prepareProperties=function(t){var e,i=this.dynamicProperties.length;for(e=0;e<i;e+=1)this.dynamicProperties[e].getValue(t),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},Ae.prototype.addDynamicProperty=function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)},Ae.prototype.nextPose=function(){var t={},e=this.ip+this.progress/this.tpf;return this.prepareProperties(e),-1===this.ignoreProps.indexOf("position")&&(-1===this.ignoreProps.indexOf("x")&&(t.x=this.element.x=this.transform.x),-1===this.ignoreProps.indexOf("y")&&(t.y=this.element.y=this.transform.y)),-1===this.ignoreProps.indexOf("pivot")&&(t.pivot={},-1===this.ignoreProps.indexOf("pivotX")&&(t.pivot.x=this.element.pivot.x=this.transform.anchorX),-1===this.ignoreProps.indexOf("pivotY")&&(t.pivot.y=this.element.pivot.y=this.transform.anchorY)),-1===this.ignoreProps.indexOf("scale")&&(t.scale={},-1===this.ignoreProps.indexOf("scaleX")&&(t.scale.x=this.element.scale.x=this.transform.scaleX),-1===this.ignoreProps.indexOf("scaleY")&&(t.scale.y=this.element.scale.y=this.transform.scaleY)),-1===this.ignoreProps.indexOf("rotation")&&(t.rotation=this.element.rotation=this.transform.rotation),-1===this.ignoreProps.indexOf("alpha")&&(t.alpha=this.element.alpha=this.transform.alpha),t},Oe.prototype=Object.create(Ce.prototype),Oe.prototype.then=function(t){return this.queues.push(t),this.total=this.queues.length,this},Oe.prototype.nextOne=function(t,e){this.runners[this.cursor].init(),this.cursor++,this._residueTime=Math.abs(e)},Oe.prototype.initOne=function(){var t=this.queues[this.cursor];t.infinite=!1,t.resident=!0,t.element=this.element;var e=null;t.keyframes?e=new Ae(t):t.to&&(e=new Ie(t)),null!==e&&(e.on("complete",this.nextOne.bind(this)),this.runners.push(e))},Oe.prototype.nextPose=function(t){return!this.runners[this.cursor]&&this.queues[this.cursor]&&this.initOne(),this._residueTime>0&&(t+=this._residueTime,this._residueTime=0),this.runners[this.cursor].update(t)},Oe.prototype.update=function(t){if(this.wait>0)this.wait-=Math.abs(t);else{if(!(this.paused||!this.living||this.delayCut>0)){var e=this.cursor,i=this.nextPose(this.timeScale*t);return this.emit("update",{index:e,pose:i},this.progress/this.duration),this.spill()&&(this.repeats>0||this.infinite?(this.repeats>0&&--this.repeats,this.delayCut=this.delay,this.cursor=0):(this.resident||(this.living=!1),this.emit("complete",i))),i}this.delayCut>0&&(this.delayCut-=Math.abs(t))}},Oe.prototype.spill=function(){return this.cursor>=this.total};var Fe={settings:s.settings,UPDATE_PRIORITY:s.UPDATE_PRIORITY,animationTicker:s.ticker.shared};function Ee(t){this.element=t,this.animates=[],this.timeScale=1,this.paused=!1,this.updateDeltaTime=this.updateDeltaTime.bind(this),Fe.animationTicker.add(this.updateDeltaTime,Fe.UPDATE_PRIORITY.HIGH)}Ee.prototype.clearAnimators=function(t){if(!this.paused)for(var e=this.animates,i=0;i<t.length;i++){var s=t[i];e[s].living||e[s].resident||this.animates.splice(s,1)}},Ee.prototype.updateDeltaTime=function(t){if(!(this.animates.length<=0)){var e=t/Fe.settings.TARGET_FPMS;this.update(e)}},Ee.prototype.update=function(t){if(!(this.paused||this.animates.length<=0)){t=this.timeScale*t;for(var e=[],i=0;i<this.animates.length;i++)this.animates[i].living||this.animates[i].resident?this.animates[i].update(t):e.push(i);e.length>0&&this.clearAnimators(e)}},Ee.prototype.animate=function(t,e){return t.element=this.element,this._addMove(new Ie(t),e)},Ee.prototype.queues=function(t,e,i){return e.element=this.element,this._addMove(new Oe(t,e),i)},Ee.prototype.bodymovin=function(t,e){return t.element=this.element,this._addMove(new Ae(t),e)},Ee.prototype._addMove=function(t,e){return e&&this.clearAll(),this.animates.push(t),t},Ee.prototype.pause=function(){this.paused=!0},Ee.prototype.resume=function(){this.paused=!1},Ee.prototype.restart=Ee.prototype.resume,Ee.prototype.setSpeed=function(t){this.timeScale=t},Ee.prototype.clearAll=function(){this.animates.length=0},s.DisplayObject.prototype.setupAnimations=function(){this.animations||(this.animations=new Ee(this))},s.DisplayObject.prototype.animate=function(t,e){return this.animations||this.setupAnimations(),this.animations.animate(t,e)},s.DisplayObject.prototype.queues=function(t,e,i){return void 0===e&&(e={}),this.animations||this.setupAnimations(),this.animations.queues(t,e,i)},s.DisplayObject.prototype.bodymovin=function(t,e){return this.animations||this.setupAnimations(),this.animations.bodymovin(t,e)},Object.defineProperties(s.DisplayObject.prototype,{scaleXY:{get:function(){return this.scale.x},set:function(t){this.scale.set(t)}},scaleX:{get:function(){return this.scale.x},set:function(t){this.scale.x=t}},scaleY:{get:function(){return this.scale.y},set:function(t){this.scale.y=t}},pivotX:{get:function(){return this.pivot.x},set:function(t){this.pivot.x=t}},pivotY:{get:function(){return this.pivot.y},set:function(t){this.pivot.y=t}}}),s.Container.prototype.updateTransform=function(){this.emit("pretransform"),this._boundsID++,this.hierarchy&&this.hierarchy.transform?(this.hierarchy.updateTransform(),this.transform.updateTransform(this.hierarchy.transform)):this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var t=0,e=this.children.length;t<e;++t){var i=this.children[t];i.visible&&i.updateTransform()}this.emit("posttransform")},s.Container.prototype.containerUpdateTransform=s.Container.prototype.updateTransform;var Ve=Number.isFinite||function(t){return!("number"!=typeof t||t!=t||t===1/0||t===-1/0)},Ne=Number.isInteger||function(t){return"number"==typeof t&&Ve(t)&&Math.floor(t)===t},qe=/^-?\d+$/,je=function(t){return"number"==typeof t?Ne(t)?t:void 0:"string"==typeof t&&qe.test(t)?parseInt(t,10):void 0},Re=/OS (\d\d?_\d(_\d)?)/,ze=(function(t){if(!t)return null;var e=Re.exec(t);if(!e)return null;var i=e[1].split("_").map(je);return{major:i[0],minor:i[1],patch:i[2]||0}}(window.navigator.userAgent)||{}).major;function Xe(t){if(window.URL=window.URL||window.webkitURL,window.URL&&URL.createObjectURL){var e=function(t){for(var e=atob(t.split(",")[1]),i=new ArrayBuffer(e.length),s=new Uint8Array(i),r=t.split(",")[0].match(/:(.*?);/)[1],n=0,a=e.length;n<a;n++)s[n]=e.charCodeAt(n);var o,h=[s];try{o=new Blob(h,{type:r})}catch(t){console.log(t)}return o}(t);return URL.createObjectURL(e)}return t}y(v.Texture,(function(t,e){return new Pe(t,e)})),y(v.Ajax,(function(t){return new Le(t)})),jt(qt.Null,he),jt(qt.Path,Te),jt(qt.Shape,he),jt(qt.Solid,Me),jt(qt.Sprite,we),jt(qt.Component,he),jt(qt.Container,s.Container);var Ye=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.managerLife=["DisplayReady","ImageReady","success","error","complete","loopComplete","enterFrame","update"],e}return n(i,t),i.prototype.init=function(){this.renderSystem=this.game.getSystem("Renderer"),this.app=this.renderSystem.application},i.prototype.componentChanged=function(t){return p(this,void 0,void 0,(function(){return l(this,(function(i){return"Lottie"===t.componentName&&(t.type===e.OBSERVER_TYPE.ADD?this.add(t):t.type===e.OBSERVER_TYPE.REMOVE&&this.remove(t)),[2]}))}))},i.prototype.add=function(t){return p(this,void 0,void 0,(function(){var i,s,r,n,o,h,p,u;return l(this,(function(l){switch(l.label){case 0:return this.manager=new ne(this.app),i=t.component,(s=this.renderSystem.containerManager.getContainer(t.gameObject.id))?(r=i.options,n=r.resource,o=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]])}return i}(r,["resource"]),[4,e.resource.getResource(n)]):[2];case 1:return h=l.sent().data,p=a({},h.json||{}),(p.assets||[]).forEach((function(t){var e;t.p&&(t.p=(e=t.p,ze<=8&&/^data:image\/png;base64/.test(e)?Xe(e):e))})),u=this.manager.parseAnimation(a({keyframes:p},o)),i.anim=u,s.addChildAt(u.group,0),this.managerLife.forEach((function(t){u.on(t,(function(e){return i.emit(t,e)}))})),u.isImagesLoaded&&i.emit("success",{}),[2]}}))}))},i.prototype.remove=function(t){var e=t.component,i=this.renderSystem.containerManager.getContainer(t.gameObject.id);i&&(i.removeChild(e.anim.group),e.anim.destroy()),e.anim=null},i.systemName="LottieSystem",i=o([e.decorators.componentObserver({Lottie:[]})],i)}(i.Renderer),Be=Ye,Ge=function(t){function e(){var e=this.constructor,i=t.call(this,"Symbol keys are not supported yet!")||this;return Object.setPrototypeOf(i,e.prototype),i}return n(e,t),e}(Error);!function(t){function e(){var e=this.constructor,i=t.call(this,"getProperties is not a function!")||this;return Object.setPrototypeOf(i,e.prototype),i}n(e,t)}(Error);var Ue,We="IDE_PROPERTY_METADATA";function Je(t,e,i,s){var r=Reflect.getMetadata("design:type",t,e),n=r===Array,o=function(t){return t===String?"string":t===Number?"number":t===Boolean?"boolean":"unknown"}(r);if("unknown"!==o&&(r=o),s){var h=s();Array.isArray(h)?(n=!0,r=h[0]):r=h}var p=Reflect.getMetadata(We,t.constructor)||{};p[e]=a({type:r,isArray:n},i),Reflect.defineMetadata(We,p,t.constructor)}!function(t){t[t.Edit=2]="Edit",t[t.Game=4]="Game",t[t.All=6]="All"}(Ue||(Ue={}));var He=function(t){function e(e){var i=t.call(this)||this;return i.loadStatus=!1,i.firstPlay=null,i.prevSlot={},i.currentSlot={},i.options=a({autoStart:!1},e),i.on("success",(function(){i.loadStatus=!0;for(var t=i.anim.keyframes,e=t.ip,s=t.op,r=function(t){var e="@"+t;i.anim.on(e,(function(t){return i.emit(e,t)}))},n=e;n<=s;n++)r(n);i.firstPlay&&i.firstPlay()})),i}var i,r;return n(e,t),e.prototype.play=function(t,e){var i=this;if(void 0===t&&(t=[]),void 0===e&&(e={repeats:0}),this.loadStatus){var r=e.slot;(void 0===r?[]:r).forEach((function(t){var e=t.name,r=t.type,n=t.value,a=t.style,o=void 0===a?{}:a,h=o.x,p=o.y,l=o.anchor,u=void 0===l?{x:0,y:0}:l,c=o.pivot,f=void 0===c?{x:0,y:0}:c,d=o.width,m=o.height;"IMAGE"===r?i.currentSlot[e]=s.Sprite.from(n):"TEXT"===r&&(i.currentSlot[e]=new s.Text(n,new s.TextStyle(o))),h&&(i.currentSlot[e].x=h),p&&(i.currentSlot[e].y=p),d&&(i.currentSlot[e].width=d),m&&(i.currentSlot[e].height=m),i.currentSlot[e].anchor.set(u.x||0,u.y||0),i.currentSlot[e].pivot.set(i.currentSlot[e].width*(f.x||0),i.currentSlot[e].height*(f.y||0)),i.prevSlot[e]&&i.anim.unbindSlot(e,i.prevSlot[e]),i.anim.bindSlot(e,i.currentSlot[e]),i.prevSlot[e]=i.currentSlot[e]})),this.anim.playSegment(this.playParamsHandle(t),e)}else this.firstPlay=function(){i.play(t,e)}},e.prototype.playParamsHandle=function(t){var e=[].concat(t),i=this.anim.keyframes;return!e.length||e.length>2?e=[i.ip,i.op]:1===e.length&&(e=[e[0]%i.op,i.op]),e},e.prototype.onTap=function(t,e){var i=this,r=new s.Graphics;this.on("success",(function(){var s=i.anim.querySelector(t),n=s.display;r.beginFill(16777215),r.drawRect(0,0,100,100),r.endFill(),r.alpha=0,n.addChild(r),s.display.interactive=!0,s.display.on("pointertap",(function(){e()}))}))},e.componentName="Lottie",o([(i={type:"resource",required:!0},function(t,e){if("symbol"==typeof e)throw new Ge;var s=function(t,e){return"function"==typeof t?{returnTypeFunc:t,options:e||{}}:{options:t||{}}}(i,r);Je(t,e,s.options,s.returnTypeFunc)}),h("design:type",String)],e.prototype,"resource",void 0),e}(e.Component),Ke=He;return e.resource.registerResourceType("LOTTIE"),t.Lottie=Ke,t.LottieSystem=Be,Object.defineProperty(t,"__esModule",{value:!0}),t}({},EVA,EVA.plugin.renderer,PIXI);window.EVA.plugin.renderer.lottie=window.EVA.plugin.renderer.lottie||_EVA_IIFE_lottie;
1
+ function _defineProperties(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}window.EVA=window.EVA||{},window.EVA.plugin=window.EVA.plugin||{},window.EVA.plugin.renderer=window.EVA.plugin.renderer||{};var _EVA_IIFE_lottie=function(t,e,i,s){"use strict";var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},r(t,e)};function n(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var a=function(){return a=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},a.apply(this,arguments)};function o(t,e,i,s){return new(i||(i=Promise))((function(r,n){function a(t){try{h(s.next(t))}catch(t){n(t)}}function o(t){try{h(s.throw(t))}catch(t){n(t)}}function h(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,o)}h((s=s.apply(t,e||[])).next())}))}function h(t,e){var i,s,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(n){return function(o){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,s&&(r=2&n[0]?s.return:n[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,n[1])).done)return r;switch(s=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,s=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],s=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,o])}}}function p(t){return Object.prototype.toString.call(t)}var l={copyJSON:function(t){return JSON.parse(JSON.stringify(t))},isArray:function(){var t=p([]);return function(e){return p(e)===t}}(),isString:function(){var t=p("s");return function(e){return p(e)===t}}(),isNumber:function(){var t=p(1);return function(e){return p(e)===t}}(),isFunction:function(){var t=p((function(){}));return function(e){return p(e)===t}}(),isUndefined:function(t){return void 0===t},isBoolean:function(){var t=p(!0);return function(e){return p(e)===t}}(),isObject:function(){var t=p({});return function(e){return p(e)===t}}(),random:function(t,e){return this.isArray(t)?t[~~(Math.random()*t.length)]:(this.isNumber(e)||(e=t||1,t=0),t+Math.random()*(e-t))},euclideanModulo:function(t,e){return(t%e+e)%e},codomainBounce:function(t,e,i){return t<e?2*e-t:t>i?2*i-t:t},clamp:function(t,e,i){return t<e?e:t>i?i:t},inRange:function(t,e,i){return t>=e&&t<=i},getAssets:function(t,e){for(var i=0;i<e.length;i++)if(t===e[i].id)return e[i];return console.error("have not assets name as",t),{}},rgb2hex:function(t){return(t[0]<<16)+(t[1]<<8)+(0|t[2])}},u=function(){function t(){this.listeners={},this.addEventListener=this.on,this.removeEventListener=this.off}var e=t.prototype;return e.on=function(t,e){return l.isFunction(e)?(l.isUndefined(this.listeners[t])&&(this.listeners[t]=[]),this.listeners[t].push(e),this):this},e.off=function(t,e){if(l.isUndefined(this.listeners[t]))return this;var i=this.listeners[t],s=i.length;if(s>0)if(e)for(;s--;)i[s]===e&&i.splice(s,1);else i.length=0;return this},e.once=function(t,e){var i=this;if(!l.isFunction(e))return this;return this.on(t,(function s(r){e(r),i.off(t,s)})),this},e.emit=function(t){if(l.isUndefined(this.listeners[t]))return this;for(var e=(this.listeners[t]||[]).slice(0),i=arguments.length,s=new Array(i>1?i-1:0),r=1;r<i;r++)s[r-1]=arguments[r];for(var n=0;n<e.length;n++)e[n].apply(this,s);return this},t}(),c={},f={Ajax:"Ajax",Texture:"Texture"},d=f,m=function(t,e){c[t]=e};function v(t,e,i){var s,r,n,a,o,h,p=t.length;for(r=0;r<p;r+=1)if("ks"in(s=t[r])&&!s.completed){if(s.completed=!0,s.tt&&(t[r-1].td=s.tt),s.hasMask){var l=s.masksProperties;for(a=l.length,n=0;n<a;n+=1)if(l[n].pt.k.i)_(l[n].pt.k);else for(h=l[n].pt.k.length,o=0;o<h;o+=1)l[n].pt.k[o].s&&_(l[n].pt.k[o].s[0]),l[n].pt.k[o].e&&_(l[n].pt.k[o].e[0])}0===s.ty?(s.layers=y(s.refId,e),v(s.layers,e)):4===s.ty?g(s.shapes):5==s.ty&&x(s)}}function y(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i].layers.__used?JSON.parse(JSON.stringify(e[i].layers)):(e[i].layers.__used=!0,e[i].layers);i+=1}}function g(t){var e,i,s;for(e=t.length-1;e>=0;e-=1)if("sh"==t[e].ty)if(t[e].ks.k.i)_(t[e].ks.k);else for(s=t[e].ks.k.length,i=0;i<s;i+=1)t[e].ks.k[i].s&&_(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&_(t[e].ks.k[i].e[0]);else"gr"==t[e].ty&&g(t[e].it)}function _(t){var e,i=t.i.length;for(e=0;e<i;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 k(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&void 0))}var S=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(k(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),T=function(){var t=[4,7,99];return function(e){if(e.chars&&!k(t,e.v)){var i,s,r,n,a,o=e.chars.length;for(i=0;i<o;i+=1)if(e.chars[i].data&&e.chars[i].data.shapes)for(r=(a=e.chars[i].data.shapes[0].it).length,s=0;s<r;s+=1)(n=a[s].ks.k).__converted||(_(a[s].ks.k),n.__converted=!0)}}}(),M=function(){var t=[4,1,9];function e(t){var i,s,r,n=t.length;for(i=0;i<n;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(r=t[i].c.k.length,s=0;s<r;s+=1)t[i].c.k[s].s&&(t[i].c.k[s].s[0]/=255,t[i].c.k[s].s[1]/=255,t[i].c.k[s].s[2]/=255,t[i].c.k[s].s[3]/=255),t[i].c.k[s].e&&(t[i].c.k[s].e[0]/=255,t[i].c.k[s].e[1]/=255,t[i].c.k[s].e[2]/=255,t[i].c.k[s].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(k(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),w=function(){var t=[4,4,18];function e(t){var i,s,r;for(i=t.length-1;i>=0;i-=1)if("sh"==t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,s=0;s<r;s+=1)t[i].ks.k[s].s&&(t[i].ks.k[s].s[0].c=t[i].closed),t[i].ks.k[s].e&&(t[i].ks.k[s].e[0].c=t[i].closed);else"gr"==t[i].ty&&e(t[i].it)}function i(t){var i,s,r,n,a,o,h=t.length;for(s=0;s<h;s+=1){if((i=t[s]).hasMask){var p=i.masksProperties;for(n=p.length,r=0;r<n;r+=1)if(p[r].pt.k.i)p[r].pt.k.c=p[r].cl;else for(o=p[r].pt.k.length,a=0;a<o;a+=1)p[r].pt.k[a].s&&(p[r].pt.k[a].s[0].c=p[r].cl),p[r].pt.k[a].e&&(p[r].pt.k[a].e[0].c=p[r].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(k(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}();function x(t,e){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var P=function(t,e){t.__complete||(M(t),S(t),T(t),w(t),v(t.layers,t.assets),t.__complete=!0)},b="function"==typeof Float32Array;function L(t,e){return 1-3*e+3*t}function C(t,e){return 3*e-6*t}function D(t){return 3*t}function I(t,e,i){return((L(e,i)*t+C(e,i))*t+D(e))*t}function A(t,e,i){return 3*L(e,i)*t*t+2*C(e,i)*t+D(e)}function O(t,e,i,s){if(!(0<=t&&t<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");this.mX1=t,this.mY1=e,this.mX2=i,this.mY2=s,this.sampleValues=b?new Float32Array(11):new Array(11),this._preCompute(),this.get=this.get.bind(this)}O.prototype._preCompute=function(){if(this.mX1!==this.mY1||this.mX2!==this.mY2)for(var t=0;t<11;++t)this.sampleValues[t]=I(.1*t,this.mX1,this.mX2)},O.prototype._getTForX=function(t){for(var e=0,i=1;10!==i&&this.sampleValues[i]<=t;++i)e+=.1;--i;var s=e+(t-this.sampleValues[i])/(this.sampleValues[i+1]-this.sampleValues[i])*.1,r=A(s,this.mX1,this.mX2);return r>=.001?function(t,e,i,s){for(var r=0;r<4;++r){var n=A(e,i,s);if(0===n)return e;e-=(I(e,i,s)-t)/n}return e}(t,s,this.mX1,this.mX2):0===r?s:function(t,e,i,s,r){var n,a,o=0;do{(n=I(a=e+(i-e)/2,s,r)-t)>0?i=a:e=a}while(Math.abs(n)>1e-7&&++o<10);return a}(t,e,e+.1,this.mX1,this.mX2)},O.prototype.get=function(t){return this.mX1===this.mY1&&this.mX2===this.mY2?t:0===t?0:1===t?1:I(this._getTForX(t),this.mY1,this.mY2)};var F,E={},V=function(t,e,i,s,r){var n=r||("bez_"+t+"_"+e+"_"+i+"_"+s).replace(/\./g,"p");if(E[n])return E[n];var a=new O(t,e,i,s);return E[n]=a,a};function N(t){return new Array(t)}F="function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):void 0}:function(t,e){var i,s=0,r=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)r.push(i);return r};var q=function(t){return t.concat(N(t.length))},j=function(t,e,i){var s=0,r=t,n=N(r);return{newElement:function(){var t;return s?t=n[s-=1]:t=e(),t},release:function(t){s===r&&(n=q(n),r*=2),i&&i(t),n[s]=t,s+=1}}},z=j(8,(function(){return F("float32",2)})),R=function(){function t(){this.c=!1,this._length=0,this._maxLength=8,this.v=N(this._maxLength),this.o=N(this._maxLength),this.i=N(this._maxLength)}var e=t.prototype;return e.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=z.newElement(),this.o[i]=z.newElement(),this.i[i]=z.newElement(),i+=1},e.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},e.doubleArrayLength=function(){this.v=this.v.concat(N(this._maxLength)),this.i=this.i.concat(N(this._maxLength)),this.o=this.o.concat(N(this._maxLength)),this._maxLength*=2},e.setXYAt=function(t,e,i,s,r){var n;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o}(!n[s]||n[s]&&!r)&&(n[s]=z.newElement()),n[s][0]=t,n[s][1]=e},e.setTripleAt=function(t,e,i,s,r,n,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,s,"o",a,o),this.setXYAt(r,n,"i",a,o)},e.reverse=function(){var e=new t;e.setPathData(this.c,this._length);var i=this.v,s=this.o,r=this.i,n=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],r[0][0],r[0][1],s[0][0],s[0][1],0,!1),n=1);for(var a=this._length-1,o=this._length,h=n;h<o;h+=1)e.setTripleAt(i[a][0],i[a][1],r[a][0],r[a][1],s[a][0],s[a][1],h,!1),a-=1;return e},t}(),X=j(4,(function(){return new R}),(function(t){for(var e=t._length,i=0;i<e;i+=1)z.release(t.v[i]),z.release(t.i[i]),z.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1}));X.clone=function(t){var e=X.newElement(),i=void 0===t._length?t.v.length:t._length;e.setLength(i),e.c=t.c;for(var s=0;s<i;s+=1)e.setTripleAt(t.v[s][0],t.v[s][1],t.o[s][0],t.o[s][1],t.i[s][0],t.i[s][1],s);return e};var Y=function(){function t(){this._length=0,this._maxLength=4,this.shapes=N(this._maxLength)}var e=t.prototype;return e.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(N(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},e.releaseShapes=function(){for(var t=0;t<this._length;t+=1)X.release(this.shapes[t]);this._length=0},t}(),B=0,G=4,U=N(G),W=function(){var t;return B?t=U[B-=1]:t=new Y,t},J=function(){function t(){}var e=t.prototype;return e.outTypeExpressionMode=function(){this._hasOutTypeExpression=!0,this.container&&this.container.outTypeExpressionMode()},e.addDynamicProperty=function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0,t._hasOutTypeExpression&&this.outTypeExpressionMode())},e.iterateDynamicProperties=function(t){this._mdf=!1;for(var e=this.dynamicProperties.length,i=0;i<e;i+=1)this.dynamicProperties[i].getValue(t),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},e.initDynamicPropertyContainer=function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1,this._hasOutTypeExpression=!1},t}(),H=j(8,(function(){return{addedLength:0,percents:F("float32",200),lengths:F("float32",200)}})),K=j(8,(function(){return{lengths:[],totalLength:0}}),(function(t){for(var e=t.lengths.length,i=0;i<e;i+=1)H.release(t.lengths[i]);t.lengths.length=0}));function Z(t,e,i,s,r,n){var a=t*s+e*r+i*n-r*s-n*t-i*e;return a>-.001&&a<.001}function Q(t,e,i,s){for(var r,n=0,a=[],o=[],h=H.newElement(),p=i.length,l=0;l<200;l+=1){var u=l/199;r=0;for(var c=0;c<p;c+=1){var f=Math.pow(1-u,3)*t[c]+3*Math.pow(1-u,2)*u*i[c]+3*(1-u)*Math.pow(u,2)*s[c]+Math.pow(u,3)*e[c];a[c]=f,null!==o[c]&&(r+=Math.pow(a[c]-o[c],2)),o[c]=a[c]}r&&(n+=r=Math.sqrt(r)),h.percents[l]=u,h.lengths[l]=n}return h.addedLength=n,h}function $(t){this.segmentLength=0,this.points=new Array(t)}function tt(t,e){this.partialLength=t,this.point=e}var et={};function it(t,e){var i=e.percents,s=e.lengths,r=i.length,n=Math.floor((r-1)*t),a=t*e.addedLength,o=0;if(n===r-1||0===n||a===s[n])return i[n];for(var h=s[n]>a?-1:1,p=!0;p;)if(s[n]<=a&&s[n+1]>a?(o=(a-s[n])/(s[n+1]-s[n]),p=!1):n+=h,n<0||n>=r-1){if(n===r-1)return i[n];p=!1}return i[n]+(i[n+1]-i[n])*o}var st=F("float32",8),rt={getSegmentsLength:function(t){for(var e=K.newElement(),i=t.c,s=t.v,r=t.o,n=t.i,a=t._length,o=e.lengths,h=0,p=0;p<a-1;p+=1)o[p]=Q(s[p],s[p+1],r[p],n[p+1]),h+=o[p].addedLength;return i&&a&&(o[p]=Q(s[p],s[0],r[p],n[0]),h+=o[p].addedLength),e.totalLength=h,e},getNewSegment:function(t,e,i,s,r,n,a){for(var o=it(r=r<0?0:r>1?1:r,a),h=it(n=n>1?1:n,a),p=t.length,l=1-o,u=1-h,c=l*l*l,f=o*l*l*3,d=o*o*l*3,m=o*o*o,v=l*l*u,y=o*l*u+l*o*u+l*l*h,g=o*o*u+l*o*h+o*l*h,_=o*o*h,k=l*u*u,S=o*u*u+l*h*u+l*u*h,T=o*h*u+l*h*h+o*u*h,M=o*h*h,w=u*u*u,x=h*u*u+u*h*u+u*u*h,P=h*h*u+u*h*h+h*u*h,b=h*h*h,L=0;L<p;L+=1)st[4*L]=Math.round(1e3*(c*t[L]+f*i[L]+d*s[L]+m*e[L]))/1e3,st[4*L+1]=Math.round(1e3*(v*t[L]+y*i[L]+g*s[L]+_*e[L]))/1e3,st[4*L+2]=Math.round(1e3*(k*t[L]+S*i[L]+T*s[L]+M*e[L]))/1e3,st[4*L+3]=Math.round(1e3*(w*t[L]+x*i[L]+P*s[L]+b*e[L]))/1e3;return st},getPointInSegment:function(t,e,i,s,r,n){var a=it(r,n),o=1-a;return[Math.round(1e3*(o*o*o*t[0]+(a*o*o+o*a*o+o*o*a)*i[0]+(a*a*o+o*a*a+a*o*a)*s[0]+a*a*a*e[0]))/1e3,Math.round(1e3*(o*o*o*t[1]+(a*o*o+o*a*o+o*o*a)*i[1]+(a*a*o+o*a*a+a*o*a)*s[1]+a*a*a*e[1]))/1e3]},buildBezierData:function(t,e,i,s){var r=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!et[r]){var n,a,o=200,h=0,p=null;2===t.length&&(t[0]!=e[0]||t[1]!=e[1])&&Z(t[0],t[1],e[0],e[1],t[0]+i[0],t[1]+i[1])&&Z(t[0],t[1],e[0],e[1],e[0]+s[0],e[1]+s[1])&&(o=2);for(var l=new $(o),u=i.length,c=0;c<o;c+=1){a=N(u);var f=c/(o-1);n=0;for(var d=0;d<u;d+=1){var m=Math.pow(1-f,3)*t[d]+3*Math.pow(1-f,2)*f*(t[d]+i[d])+3*(1-f)*Math.pow(f,2)*(e[d]+s[d])+Math.pow(f,3)*e[d];a[d]=m,null!==p&&(n+=Math.pow(a[d]-p[d],2))}h+=n=Math.sqrt(n),l.points[c]=new tt(n,a),p=a}l.segmentLength=h,et[r]=l}return et[r]},pointOnLine2D:Z,pointOnLine3D:function(t,e,i,s,r,n,a,o,h){if(0===i&&0===n&&0===h)return Z(t,e,s,r,a,o);var p,l=Math.sqrt(Math.pow(s-t,2)+Math.pow(r-e,2)+Math.pow(n-i,2)),u=Math.sqrt(Math.pow(a-t,2)+Math.pow(o-e,2)+Math.pow(h-i,2)),c=Math.sqrt(Math.pow(a-s,2)+Math.pow(o-r,2)+Math.pow(h-n,2));return(p=l>u?l>c?l-u-c:c-u-l:c>u?c-u-l:u-l-c)>-1e-4&&p<1e-4}},nt=Math.PI/180,at=[0,0],ot=/(loopIn|loopOut)\(([^)]+)/,ht=/["']\w+["']/,pt=function(){function t(t,e,i){this.begin=e,this.end=i,this.total=this.end-this.begin,this.type=t}return t.prototype.update=function(t){return"in"===this.type?t>=this.begin?t:this.end-l.euclideanModulo(this.begin-t,this.total):"out"===this.type?t<=this.end?t:this.begin+l.euclideanModulo(t-this.end,this.total):void 0},t}(),lt=function(){function t(t,e,i){this.begin=e,this.end=i,this.total=this.end-this.begin,this.type=t}var e=t.prototype;return e.update=function(t){if("in"===this.type&&t<this.begin||"out"===this.type&&t>this.end){var e=t-this.end;return this.pingpong(e)}return t},e.pingpong=function(t){return Math.floor(t/this.total)%2?this.begin+l.euclideanModulo(t,this.total):this.end-l.euclideanModulo(t,this.total)},t}(),ut={loopIn:function(t,e,i){var s=t[0].t,r=t.length-1,n=t[Math.min(r,i)].t;switch(e){case"cycle":return new pt("in",s,n);case"pingpong":return new lt("in",s,n)}return null},loopOut:function(t,e,i){var s=t.length-1,r=t[Math.max(0,s-i)].t,n=t[s].t;switch(e){case"cycle":return new pt("out",r,n);case"pingpong":return new lt("out",r,n)}return null}};var ct=function(t){return t.x&&ot.test(t.x)},ft=function(t){var e=function(t){var e=t.match(ot),i=e[2].split(/\s*,\s*/).map((function(t){return ht.test(t)?t.replace(/"|'/g,""):parseInt(t)}));return{name:e[1],mode:i[0],offset:i[1]}}(t.x),i=e.name,s=e.mode,r=e.offset,n=void 0===r?0:r,a=0===n?t.k.length-1:n;return ut[i]&&ut[i](t.k,s,a)};function dt(t){var e=t[0]*nt,i=t[1]*nt,s=t[2]*nt,r=Math.cos(e/2),n=Math.cos(i/2),a=Math.cos(s/2),o=Math.sin(e/2),h=Math.sin(i/2),p=Math.sin(s/2);return[o*h*a+r*n*p,o*n*a+r*h*p,r*h*a-o*n*p,r*n*a-o*h*p]}var mt=function(){function t(){}var e=t.prototype;return e.interpolateValue=function(t,e){var i;"multidimensional"===this.propType&&(i=F("float32",this.pv.length));for(var s,r,n,a,o,h,p,l,u=e.lastIndex,c=u,f=this.keyframes.length-1,d=!0;d;){if(s=this.keyframes[c],r=this.keyframes[c+1],c===f-1&&t>=r.t){s.h&&(s=r),u=0;break}if(r.t>t){u=c;break}c<f-1?c+=1:(u=0,d=!1)}var m,v=r.t,y=s.t;if(s.to){s.bezierData||(s.bezierData=rt.buildBezierData(s.s,r.s||s.e,s.to,s.ti));var g=s.bezierData;if(t>=v||t<y){var _=t>=v?g.points.length-1:0;for(a=g.points[_].point.length,n=0;n<a;n+=1)i[n]=g.points[_].point[n]}else{s.__fnct?l=s.__fnct:(l=V(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,s.__fnct=l),o=l((t-y)/(v-y));var k,S=g.segmentLength*o,T=e.lastFrame<t&&e._lastKeyframeIndex===c?e._lastAddedLength:0;for(p=e.lastFrame<t&&e._lastKeyframeIndex===c?e._lastPoint:0,d=!0,h=g.points.length;d;){if(T+=g.points[p].partialLength,0===S||0===o||p===g.points.length-1){for(a=g.points[p].point.length,n=0;n<a;n+=1)i[n]=g.points[p].point[n];break}if(S>=T&&S<T+g.points[p+1].partialLength){for(k=(S-T)/g.points[p+1].partialLength,a=g.points[p].point.length,n=0;n<a;n+=1)i[n]=g.points[p].point[n]+(g.points[p+1].point[n]-g.points[p].point[n])*k;break}p<h-1?p+=1:d=!1}e._lastPoint=p,e._lastAddedLength=T-g.points[p].partialLength,e._lastKeyframeIndex=c}}else{var M,w,x,P,b;if(f=s.s.length,m=r.s||s.e,this.sh&&1!==s.h)t>=v?(i[0]=m[0],i[1]=m[1],i[2]=m[2]):t<=y?(i[0]=s.s[0],i[1]=s.s[1],i[2]=s.s[2]):function(t,e){var i=e[0],s=e[1],r=e[2],n=e[3],a=Math.atan2(2*s*n-2*i*r,1-2*s*s-2*r*r),o=Math.asin(2*i*s+2*r*n),h=Math.atan2(2*i*n-2*s*r,1-2*i*i-2*r*r);t[0]=a/nt,t[1]=o/nt,t[2]=h/nt}(i,function(t,e,i){var s,r,n,a,o,h=[],p=t[0],l=t[1],u=t[2],c=t[3],f=e[0],d=e[1],m=e[2],v=e[3];return(r=p*f+l*d+u*m+c*v)<0&&(r=-r,f=-f,d=-d,m=-m,v=-v),1-r>1e-6?(s=Math.acos(r),n=Math.sin(s),a=Math.sin((1-i)*s)/n,o=Math.sin(i*s)/n):(a=1-i,o=i),h[0]=a*p+o*f,h[1]=a*l+o*d,h[2]=a*u+o*m,h[3]=a*c+o*v,h}(dt(s.s),dt(m),(t-y)/(v-y)));else for(c=0;c<f;c+=1)1!==s.h&&(t>=v?o=1:t<y?o=0:(s.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[c]?l=s.__fnct[c]:(M=void 0===s.o.x[c]?s.o.x[0]:s.o.x[c],w=void 0===s.o.y[c]?s.o.y[0]:s.o.y[c],x=void 0===s.i.x[c]?s.i.x[0]:s.i.x[c],P=void 0===s.i.y[c]?s.i.y[0]:s.i.y[c],l=V(M,w,x,P).get,s.__fnct[c]=l)):s.__fnct?l=s.__fnct:(M=s.o.x,w=s.o.y,x=s.i.x,P=s.i.y,l=V(M,w,x,P).get,s.__fnct=l),o=l((t-y)/(v-y)))),m=r.s||s.e,b=1===s.h?s.s[c]:s.s[c]+(m[c]-s.s[c])*o,"multidimensional"===this.propType?i[c]=b:i=b}return e.lastIndex=u,i},e.getValueAtCurrentTime=function(t){var e=this.keyframes[0].t,i=this.keyframes[this.keyframes.length-1].t;if(!(t===this._caching.lastFrame||-999999!==this._caching.lastFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv},e.setVValue=function(t){var e;if("unidimensional"===this.propType)e=t*this.mult,Math.abs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,Math.abs(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1},e.processEffectsSequence=function(t){if(this.expression&&(t=this.expression.update(t)),t!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var i=this.effectsSequence.length,s=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)s=this.effectsSequence[e](t);this.setVValue(s),this._isFirstFrame=!1,this.lock=!1,this.frameId=t}},e.addEffect=function(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)},t}(),vt=function(t){function e(e,i,s,r){var n;return(n=t.call(this)||this).propType="unidimensional",n.mult=s||1,n.data=i,n.v=s?i.k*s:i.k,n.pv=i.k,n._mdf=!1,n.elem=e,n.container=r,n.k=!1,n.kf=!1,n.vel=0,n.effectsSequence=[],n._isFirstFrame=!0,n.getValue=n.processEffectsSequence,n}return _inheritsLoose(e,t),e}(mt),yt=function(t){function e(e,i,s,r){var n;(n=t.call(this)||this).propType="multidimensional",n.mult=s||1,n.data=i,n._mdf=!1,n.elem=e,n.container=r,n.comp=e.comp,n.k=!1,n.kf=!1,n.frameId=-1;var a=i.k.length;n.v=F("float32",a),n.pv=F("float32",a),n.vel=F("float32",a);for(var o=0;o<a;o+=1)n.v[o]=i.k[o]*n.mult,n.pv[o]=i.k[o];return n._isFirstFrame=!0,n.effectsSequence=[],n.getValue=n.processEffectsSequence,n}return _inheritsLoose(e,t),e}(mt),gt=function(t){function e(e,i,s,r){var n;return(n=t.call(this)||this).propType="unidimensional",n.keyframes=i.k,n.frameId=-1,n._caching={lastFrame:-999999,lastIndex:0,value:0,_lastKeyframeIndex:-1},n.k=!0,n.kf=!0,n.data=i,n.mult=s||1,n.elem=e,n.container=r,n.comp=e.comp,n.v=-999999,n.pv=-999999,n._isFirstFrame=!0,n.getValue=n.processEffectsSequence,n.effectsSequence=[n.getValueAtCurrentTime.bind(_assertThisInitialized(n))],n._hasOutTypeExpression=!1,ct(i)&&(n.expression=ft(i),n._hasOutTypeExpression="out"===n.expression.type),n}return _inheritsLoose(e,t),e}(mt),_t=function(t){function e(e,i,s,r){var n,a;(n=t.call(this)||this).propType="multidimensional";var o,h,p,l,u=i.k.length;for(a=0;a<u-1;a+=1)i.k[a].to&&i.k[a].s&&i.k[a+1]&&i.k[a+1].s&&(o=i.k[a].s,h=i.k[a+1].s,p=i.k[a].to,l=i.k[a].ti,(2===o.length&&(o[0]!==h[0]||o[1]!==h[1])&&rt.pointOnLine2D(o[0],o[1],h[0],h[1],o[0]+p[0],o[1]+p[1])&&rt.pointOnLine2D(o[0],o[1],h[0],h[1],h[0]+l[0],h[1]+l[1])||3===o.length&&(o[0]!==h[0]||o[1]!==h[1]||o[2]!==h[2])&&rt.pointOnLine3D(o[0],o[1],o[2],h[0],h[1],h[2],o[0]+p[0],o[1]+p[1],o[2]+p[2])&&rt.pointOnLine3D(o[0],o[1],o[2],h[0],h[1],h[2],h[0]+l[0],h[1]+l[1],h[2]+l[2]))&&(i.k[a].to=null,i.k[a].ti=null),o[0]===h[0]&&o[1]===h[1]&&0===p[0]&&0===p[1]&&0===l[0]&&0===l[1]&&(2===o.length||o[2]===h[2]&&0===p[2]&&0===l[2])&&(i.k[a].to=null,i.k[a].ti=null));n.effectsSequence=[n.getValueAtCurrentTime.bind(_assertThisInitialized(n))],n.keyframes=i.k,n.k=!0,n.kf=!0,n._isFirstFrame=!0,n.mult=s||1,n.elem=e,n.container=r,n.comp=e.comp,n.getValue=n.processEffectsSequence,n.frameId=-1;var c=i.k[0].s.length;for(n.v=F("float32",c),n.pv=F("float32",c),a=0;a<c;a+=1)n.v[a]=-999999,n.pv[a]=-999999;return n._caching={lastFrame:-999999,lastIndex:0,value:F("float32",c)},n._hasOutTypeExpression=!1,ct(i)&&(n.expression=ft(i),n._hasOutTypeExpression="out"===n.expression.type),n}return _inheritsLoose(e,t),e}(mt),kt=function(t,e,i,s,r){var n;if(e.k.length)if("number"==typeof e.k[0])n=new yt(t,e,s,r);else switch(i){case 0:n=new gt(t,e,s,r);break;case 1:n=new _t(t,e,s,r)}else n=new vt(t,e,s,r);return n.effectsSequence.length&&r.addDynamicProperty(n),n},St=function(){function t(){}var e=t.prototype;return e.interpolateShape=function(t,e,i){var s,r,n,a,o,h,p,l,u,c=i.lastIndex,f=this.keyframes;if(t<f[0].t)s=f[0].s[0],n=!0,c=0;else if(t>=f[f.length-1].t)s=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],n=!0;else{for(var d,m,v=c,y=f.length-1,g=!0;g&&(d=f[v],!((m=f[v+1]).t>t));)v<y-1?v+=1:g=!1;if(c=v,!(n=1===d.h)){if(t>=m.t)l=1;else if(t<d.t)l=0;else{var _;d.__fnct?_=d.__fnct:(_=V(d.o.x,d.o.y,d.i.x,d.i.y).get,d.__fnct=_),l=_((t-d.t)/(m.t-d.t))}r=m.s?m.s[0]:d.e[0]}s=d.s[0]}for(h=e._length,p=s.i[0].length,i.lastIndex=c,a=0;a<h;a+=1)for(o=0;o<p;o+=1)u=n?s.i[a][o]:s.i[a][o]+(r.i[a][o]-s.i[a][o])*l,e.i[a][o]=u,u=n?s.o[a][o]:s.o[a][o]+(r.o[a][o]-s.o[a][o])*l,e.o[a][o]=u,u=n?s.v[a][o]:s.v[a][o]+(r.v[a][o]-s.v[a][o])*l,e.v[a][o]=u},e.interpolateShapeCurrentTime=function(t){var e=this.keyframes[0].t,i=this.keyframes[this.keyframes.length-1].t,s=this._caching.lastFrame;return-999999!==s&&(s<e&&t<e||s>i&&t>i)||(this._caching.lastIndex=s<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv},e.resetShape=function(){this.paths=this.localShapeCollection},e.shapesEqual=function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,s=t._length;for(i=0;i<s;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0},e.setVValue=function(t){this.shapesEqual(this.v,t)||(this.v=X.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)},e.processEffectsSequence=function(t){if(t!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1;var e,i=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k,s=this.effectsSequence.length;for(e=0;e<s;e+=1)i=this.effectsSequence[e](t);this.setVValue(i),this.lock=!1,this.frameId=t}else this._mdf=!1},e.addEffect=function(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)},t}(),Tt=function(t){function e(e,i,s){var r;(r=t.call(this)||this).propType="shape",r.comp=e.comp,r.container=e,r.elem=e,r.data=i,r.k=!1,r.kf=!1,r._mdf=!1;var n=3===s?i.pt.k:i.ks.k;return r.v=X.clone(n),r.pv=X.clone(r.v),r.localShapeCollection=W(),r.paths=r.localShapeCollection,r.paths.addShape(r.v),r.reset=r.resetShape,r.effectsSequence=[],r.getValue=r.processEffectsSequence,r}return _inheritsLoose(e,t),e}(St),Mt=function(t){function e(e,i,s){var r;(r=t.call(this)||this).propType="shape",r.comp=e.comp,r.elem=e,r.container=e,r.keyframes=3===s?i.pt.k:i.ks.k,r.k=!0,r.kf=!0;var n=r.keyframes[0].s[0].i.length;return r.v=X.newElement(),r.v.setPathData(r.keyframes[0].s[0].c,n),r.pv=X.clone(r.v),r.localShapeCollection=W(),r.paths=r.localShapeCollection,r.paths.addShape(r.v),r.lastFrame=-999999,r.reset=r.resetShape,r._caching={lastFrame:-999999,lastIndex:0},r.effectsSequence=[r.interpolateShapeCurrentTime.bind(_assertThisInitialized(r))],r.getValue=r.processEffectsSequence,r._hasOutTypeExpression=!1,ct(i)&&(r.expression=ft(i),r._hasOutTypeExpression="out"===r.expression.type),r}return _inheritsLoose(e,t),e}(St),wt=function(t){function e(e,i){var s;return(s=t.call(this)||this).v=X.newElement(),s.v.setPathData(!0,4),s.localShapeCollection=W(),s.paths=s.localShapeCollection,s.localShapeCollection.addShape(s.v),s.d=i.d,s.elem=e,s.comp=e.comp,s.frameId=-1,s.initDynamicPropertyContainer(e),s.p=kt(e,i.p,1,0,_assertThisInitialized(s)),s.s=kt(e,i.s,1,0,_assertThisInitialized(s)),s.dynamicProperties.length?s.k=!0:(s.k=!1,s.convertEllToPath()),s}_inheritsLoose(e,t);var i=e.prototype;return i.reset=function(){this.paths=this.localShapeCollection},i.getValue=function(t){t!==this.frameId&&(this.iterateDynamicProperties(t),this.frameId=t,this._mdf&&this.convertEllToPath())},i.convertEllToPath=function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,r=3!==this.d,n=this.v;n.v[0][0]=t,n.v[0][1]=e-s,n.v[1][0]=r?t+i:t-i,n.v[1][1]=e,n.v[2][0]=t,n.v[2][1]=e+s,n.v[3][0]=r?t-i:t+i,n.v[3][1]=e,n.i[0][0]=r?t-i*Pt:t+i*Pt,n.i[0][1]=e-s,n.i[1][0]=r?t+i:t-i,n.i[1][1]=e-s*Pt,n.i[2][0]=r?t+i*Pt:t-i*Pt,n.i[2][1]=e+s,n.i[3][0]=r?t-i:t+i,n.i[3][1]=e+s*Pt,n.o[0][0]=r?t+i*Pt:t-i*Pt,n.o[0][1]=e-s,n.o[1][0]=r?t+i:t-i,n.o[1][1]=e+s*Pt,n.o[2][0]=r?t-i*Pt:t+i*Pt,n.o[2][1]=e+s,n.o[3][0]=r?t-i:t+i,n.o[3][1]=e-s*Pt},e}(J),xt=function(t){function e(e,i){var s;return(s=t.call(this)||this).v=X.newElement(),s.v.setPathData(!0,0),s.elem=e,s.comp=e.comp,s.data=i,s.frameId=-1,s.d=i.d,s.initDynamicPropertyContainer(e),1===i.sy?(s.ir=kt(e,i.ir,0,0,_assertThisInitialized(s)),s.is=kt(e,i.is,0,.01,_assertThisInitialized(s)),s.convertToPath=s.convertStarToPath):s.convertToPath=s.convertPolygonToPath,s.pt=kt(e,i.pt,0,0,_assertThisInitialized(s)),s.p=kt(e,i.p,1,0,_assertThisInitialized(s)),s.r=kt(e,i.r,0,nt,_assertThisInitialized(s)),s.or=kt(e,i.or,0,0,_assertThisInitialized(s)),s.os=kt(e,i.os,0,.01,_assertThisInitialized(s)),s.localShapeCollection=W(),s.localShapeCollection.addShape(s.v),s.paths=s.localShapeCollection,s.dynamicProperties.length?s.k=!0:(s.k=!1,s.convertToPath()),s}_inheritsLoose(e,t);var i=e.prototype;return i.reset=function(){this.paths=this.localShapeCollection},i.getValue=function(t){t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t),this._mdf&&this.convertToPath())},i.convertStarToPath=function(){var t,e,i,s,r=2*Math.floor(this.pt.v),n=2*Math.PI/r,a=!0,o=this.or.v,h=this.ir.v,p=this.os.v,l=this.is.v,u=2*Math.PI*o/(2*r),c=2*Math.PI*h/(2*r),f=-Math.PI/2;f+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){i=a?p:l,s=a?u:c;var m=(e=a?o:h)*Math.cos(f),v=e*Math.sin(f),y=0===m&&0===v?0:v/Math.sqrt(m*m+v*v),g=0===m&&0===v?0:-m/Math.sqrt(m*m+v*v);m+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(m,v,m-y*s*i*d,v-g*s*i*d,m+y*s*i*d,v+g*s*i*d,t,!0),a=!a,f+=n*d}},i.convertPolygonToPath=function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,r=this.os.v,n=2*Math.PI*s/(4*e),a=-Math.PI/2,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(a),p=s*Math.sin(a),l=0===h&&0===p?0:p/Math.sqrt(h*h+p*p),u=0===h&&0===p?0:-h/Math.sqrt(h*h+p*p);h+=+this.p.v[0],p+=+this.p.v[1],this.v.setTripleAt(h,p,h-l*n*r*o,p-u*n*r*o,h+l*n*r*o,p+u*n*r*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v},e}(J),Pt=.5519,bt=function(t){function e(e,i){var s;return(s=t.call(this)||this).v=X.newElement(),s.v.c=!0,s.localShapeCollection=W(),s.localShapeCollection.addShape(s.v),s.paths=s.localShapeCollection,s.elem=e,s.comp=e.comp,s.frameId=-1,s.d=i.d,s.initDynamicPropertyContainer(e),s.p=kt(e,i.p,1,0,_assertThisInitialized(s)),s.s=kt(e,i.s,1,0,_assertThisInitialized(s)),s.r=kt(e,i.r,0,0,_assertThisInitialized(s)),s.dynamicProperties.length?s.k=!0:(s.k=!1,s.convertRectToPath()),s}_inheritsLoose(e,t);var i=e.prototype;return i.reset=function(){this.paths=this.localShapeCollection},i.getValue=function(t){t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t),this._mdf&&this.convertRectToPath())},i.convertRectToPath=function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,r=Math.min(i,s,this.r.v),n=r*(1-.5519);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+r,t+i,e-s+n,0,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-n,t+i,e+s-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+s,t+i-r,e+s,t+i-n,e+s,2,!0),this.v.setTripleAt(t-i+r,e+s,t-i+n,e+s,t-i+r,e+s,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-r,t-i,e+s-n,4,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+n,t-i,e-s+r,5,!0),this.v.setTripleAt(t-i+r,e-s,t-i+r,e-s,t-i+n,e-s,6,!0),this.v.setTripleAt(t+i-r,e-s,t+i-n,e-s,t+i-r,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+n,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+n,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+n,t+i,e-s+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-s,t+i-r,e-s,t+i-n,e-s,1,!0),this.v.setTripleAt(t-i+r,e-s,t-i+n,e-s,t-i+r,e-s,2,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+r,t-i,e-s+n,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-n,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i+r,e+s,t-i+r,e+s,t-i+n,e+s,5,!0),this.v.setTripleAt(t+i-r,e+s,t+i-n,e+s,t+i-r,e+s,6,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-r,t+i,e+s-n,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+n,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-n,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-n,e+s,t+i,e+s,3,!0)))},e}(J),Lt=function(t,e,i){var s;return 3===i||4===i?s=(3===i?e.pt:e.ks).k.length?new Mt(t,e,i):new Tt(t,e,i):5===i?s=new bt(t,e):6===i?s=new wt(t,e):7===i&&(s=new xt(t,e)),s.k&&t.addDynamicProperty(s),s},Ct=function(t){function e(e,i,s){var r;(r=t.call(this)||this).frameId=-1,r.elem=e,r.session=s,r.masksProperties=i||[],r.initDynamicPropertyContainer(e),r.viewData=N(r.masksProperties.length);for(var n=r.masksProperties.length,a=!1,o=0;o<n;o++)"n"!==r.masksProperties[o].mode&&(a=!0),r.viewData[o]=Lt(_assertThisInitialized(r),r.masksProperties[o],3),r.viewData[o].inv=r.masksProperties[o].inv;return r.hasMasks=a,r}return _inheritsLoose(e,t),e.prototype.getValue=function(t){t!==this.frameId&&(this.iterateDynamicProperties(t),this.frameId=t)},e}(J),Dt=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function r(){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 n(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(1,0,0,0,0,s,-r,0,0,r,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,0,r,0,0,1,0,0,-r,0,s,0,0,0,0,1)}function h(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function p(t,e){return this._t(1,e,t,1,0,0)}function l(t,e){return this.shear(i(t),i(e))}function u(s,r){var n=t(r),a=e(r);return this._t(n,a,0,0,-a,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(s),1,0,0,0,0,1,0,0,0,0,1)._t(n,-a,0,0,a,n,0,0,0,0,1,0,0,0,0,1)}function c(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function f(t,e,i,s,r,n,a,o,h,p,l,u,c,f,d,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=r,this.props[5]=n,this.props[6]=a,this.props[7]=o,this.props[8]=h,this.props[9]=p,this.props[10]=l,this.props[11]=u,this.props[12]=c,this.props[13]=f,this.props[14]=d,this.props[15]=m,this}function d(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function m(t,e,i,s,r,n,a,o,h,p,l,u,c,f,d,m){var v=this.props;if(1===t&&0===e&&0===i&&0===s&&0===r&&1===n&&0===a&&0===o&&0===h&&0===p&&1===l&&0===u)return v[12]=v[12]*t+v[15]*c,v[13]=v[13]*n+v[15]*f,v[14]=v[14]*l+v[15]*d,v[15]=v[15]*m,this._identityCalculated=!1,this;var y=v[0],g=v[1],_=v[2],k=v[3],S=v[4],T=v[5],M=v[6],w=v[7],x=v[8],P=v[9],b=v[10],L=v[11],C=v[12],D=v[13],I=v[14],A=v[15];return v[0]=y*t+g*r+_*h+k*c,v[1]=y*e+g*n+_*p+k*f,v[2]=y*i+g*a+_*l+k*d,v[3]=y*s+g*o+_*u+k*m,v[4]=S*t+T*r+M*h+w*c,v[5]=S*e+T*n+M*p+w*f,v[6]=S*i+T*a+M*l+w*d,v[7]=S*s+T*o+M*u+w*m,v[8]=x*t+P*r+b*h+L*c,v[9]=x*e+P*n+b*p+L*f,v[10]=x*i+P*a+b*l+L*d,v[11]=x*s+P*o+b*u+L*m,v[12]=C*t+D*r+I*h+A*c,v[13]=C*e+D*n+I*p+A*f,v[14]=C*i+D*a+I*l+A*d,v[15]=C*s+D*o+I*u+A*m,this._identityCalculated=!1,this}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function g(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function k(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function S(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function T(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function M(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function w(t){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],i=this.props[5]/e,s=-this.props[1]/e,r=-this.props[4]/e,n=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e;return[t[0]*i+t[1]*r+a,t[0]*s+t[1]*n+o,0]}function x(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=w(t[e]);return s}function P(t,e,i){var s=F("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=e[0],s[3]=e[1],s[4]=i[0],s[5]=i[1];else{var r=this.props[0],n=this.props[1],a=this.props[4],o=this.props[5],h=this.props[12],p=this.props[13];s[0]=t[0]*r+t[1]*a+h,s[1]=t[0]*n+t[1]*o+p,s[2]=e[0]*r+e[1]*a+h,s[3]=e[0]*n+e[1]*o+p,s[4]=i[0]*r+i[1]*a+h,s[5]=i[0]*n+i[1]*o+p}return s}function b(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function L(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function C(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=s(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function D(t){return t<1e-6&&t>0||t>-1e-6&&t<0?s(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=r,this.rotate=n,this.rotateX=a,this.rotateY=o,this.rotateZ=h,this.skew=l,this.skewFromAxis=u,this.shear=p,this.scale=c,this.setTransform=f,this.translate=d,this.transform=m,this.applyToPoint=k,this.applyToX=S,this.applyToY=T,this.applyToZ=M,this.applyToPointArray=b,this.applyToTriplePoints=P,this.applyToPointStringified=L,this.toCSS=C,this.to2dCSS=I,this.clone=g,this.cloneFromProps=_,this.equals=y,this.inversePoints=x,this.inversePoint=w,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=F("float32",16),this.reset()}}(),It=function(){function t(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}var e=t.prototype;return e.addTransformSequence=function(t){for(var e=t.length,i="_",s=0;s<e;s+=1)i+=t[s].transform.key+"_";var r=this.sequences[i];return r||(r={transforms:[].concat(t),finalTransform:new Dt,_mdf:!1},this.sequences[i]=r,this.sequenceList.push(r)),r},e.processSequence=function(t,e){for(var i,s=0,r=e,n=t.transforms.length;s<n&&!e;){if(t.transforms[s].transform.mProps._mdf){r=!0;break}s+=1}if(r)for(t.finalTransform.reset(),s=n-1;s>=0;s-=1)i=t.transforms[s].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=r},e.processSequences=function(t){for(var e=this.sequenceList.length,i=0;i<e;i+=1)this.processSequence(this.sequenceList[i],t)},e.getNewKey=function(){return"_"+this.transform_key_count++},t}(),At=function(t,e){this.elem=t,this.pos=e},Ot=function(){function t(t,e,i,s){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;"rc"==e.ty?r=5:"el"==e.ty?r=6:"sr"==e.ty&&(r=7),this.sh=Lt(t,e,r);for(var n=i.length,a=0;a<n;a+=1)if(!i[a].closed){var o={transforms:s.addTransformSequence(i[a].transforms),trNodes:[]};this.styledShapes.push(o),i[a].elements.push(o)}}return t.prototype.setAsAnimated=function(){this._isAnimated=!0},t}(),Ft={};function Et(t){return Ft[t]}var Vt={Null:"Null",Path:"Path",Shape:"Shape",Solid:"Solid",Sprite:"Sprite",Component:"Component",Container:"Container"},Nt=function(t,e){Ft[t]=e},qt=function(){function t(t,e,i){this.elem=t,this.data=e,this.type=e.ty,this.preTransforms=i,this.transforms=[],this.elements=[],this.closed=!0===e.hd,this.displayType=Vt.Path;var s=Et(this.displayType);this.display=new s(this,e),this.elem.innerDisplay?this.elem.innerDisplay.addChild(this.display):this.elem.display.addChild(this.display)}return t.prototype.updateGrahpics=function(){this.display.updateLottieGrahpics(this)},t}(),jt=function(t){function e(e,i,s){var r;if((r=t.call(this)||this).elem=e,r.frameId=-1,r.propType="transform",r.data=i,r.v=new Dt,r.pre=new Dt,r.appliedTransformations=0,r.initDynamicPropertyContainer(s||e),i.p&&i.p.s?(r.px=kt(e,i.p.x,0,0,_assertThisInitialized(r)),r.py=kt(e,i.p.y,0,0,_assertThisInitialized(r)),i.p.z&&(r.pz=kt(e,i.p.z,0,0,_assertThisInitialized(r)))):r.p=kt(e,i.p||{k:[0,0,0]},1,0,_assertThisInitialized(r)),i.rx){if(r.rx=kt(e,i.rx,0,nt,_assertThisInitialized(r)),r.ry=kt(e,i.ry,0,nt,_assertThisInitialized(r)),r.rz=kt(e,i.rz,0,nt,_assertThisInitialized(r)),i.or.k[0].ti){var n,a=i.or.k.length;for(n=0;n<a;n+=1)i.or.k[n].to=i.or.k[n].ti=null}r.or=kt(e,i.or,1,nt,_assertThisInitialized(r)),r.or.sh=!0}else r.r=kt(e,i.r||{k:0},0,nt,_assertThisInitialized(r));return i.sk&&(r.sk=kt(e,i.sk,0,nt,_assertThisInitialized(r)),r.sa=kt(e,i.sa,0,nt,_assertThisInitialized(r))),r.a=kt(e,i.a||{k:[0,0,0]},1,0,_assertThisInitialized(r)),r.s=kt(e,i.s||{k:[100,100,100]},1,.01,_assertThisInitialized(r)),i.o?r.o=kt(e,i.o,0,.01,e):r.o={_mdf:!1,v:1},r._isDirty=!0,r.dynamicProperties.length||r.getValue(-999999,!0),_assertThisInitialized(r)}_inheritsLoose(e,t);var i=e.prototype;return i.getValue=function(t,e){if(t!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){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 i,s,r=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),s=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,s=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],s=[];var n=this.px,a=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(i[0]=n.getValueAtTime((n.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),s[0]=n.getValueAtTime(n.keyframes[0].t/r,0),s[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(i[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),s[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/r,0),s[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[n.pv,a.pv],s[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/r,n.offsetTime),s[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=s=at;this.v.rotate(-Math.atan2(i[1]-s[1],i[0]-s[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=t}},i.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}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else 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)}},i.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])},e}(J);function zt(t,e,i){return new jt(t,e,i)}var Rt=function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var i=e.prototype;return i.initModifierProperties=function(){},i.addShapeToModifier=function(){},i.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:W()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},i.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=-999999,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},i.processKeys=function(t){t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t))},e}(J),Xt={};function Yt(t,e){Xt[t]||(Xt[t]=e)}Yt("tm",function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var i=e.prototype;return i.initModifierProperties=function(t,e){this.s=kt(t,e.s,0,.01,this),this.e=kt(t,e.e,0,.01,this),this.o=kt(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},i.addShapeToModifier=function(t){t.pathsData=[]},i.calculateShapeEdges=function(t,e,i,s,r){var n=[];e<=1?n.push({s:t,e:e}):t>=1?n.push({s:t-1,e:e-1}):(n.push({s:t,e:1}),n.push({s:0,e:e-1}));var a,o,h=[],p=n.length;for(a=0;a<p;a+=1)if((o=n[a]).e*r<s||o.s*r>s+i);else{var l,u;l=o.s*r<=s?0:(o.s*r-s)/i,u=o.e*r>=s+i?1:(o.e*r-s)/i,h.push([l,u])}return h.length||h.push([0,0]),h},i.releasePathsData=function(t){for(var e=t.length,i=0;i<e;i+=1)K.release(t[i]);return t.length=0,t},i.processShapes=function(t){var e,i,s,r;if(this._mdf||t){var n=this.o.v%360/360;if(n<0&&(n+=1),(e=(this.s.v>1?1:this.s.v<0?0:this.s.v)+n)>(i=(this.e.v>1?1:this.e.v<0?0:this.e.v)+n)){var a=e;e=i,i=a}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,h,p,l,u,c=this.shapes.length,f=0;if(i===e)for(r=0;r<c;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(r=0;r<c;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var d,m,v=[];for(r=0;r<c;r+=1)if((d=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(h=(s=d.shape.paths)._length,u=0,!d.shape._mdf&&d.pathsData.length)u=d.totalShapeLength;else{for(p=this.releasePathsData(d.pathsData),o=0;o<h;o+=1)l=rt.getSegmentsLength(s.shapes[o]),p.push(l),u+=l.totalLength;d.totalShapeLength=u,d.pathsData=p}f+=u,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var y,g=e,_=i,k=0;for(r=c-1;r>=0;r-=1)if((d=this.shapes[r]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&c>1?(y=this.calculateShapeEdges(e,i,d.totalShapeLength,k,f),k+=d.totalShapeLength):y=[[g,_]],h=y.length,o=0;o<h;o+=1){g=y[o][0],_=y[o][1],v.length=0,_<=1?v.push({s:d.totalShapeLength*g,e:d.totalShapeLength*_}):g>=1?v.push({s:d.totalShapeLength*(g-1),e:d.totalShapeLength*(_-1)}):(v.push({s:d.totalShapeLength*g,e:d.totalShapeLength}),v.push({s:0,e:d.totalShapeLength*(_-1)}));var S=this.addShapes(d,v[0]);if(v[0].s!==v[0].e){if(v.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var T=S.pop();this.addPaths(S,m),S=this.addShapes(d,v[1],T)}else this.addPaths(S,m),S=this.addShapes(d,v[1]);this.addPaths(S,m)}}d.shape.paths=m}}},i.addPaths=function(t,e){for(var i=t.length,s=0;s<i;s+=1)e.addShape(t[s])},i.addSegment=function(t,e,i,s,r,n,a){r.setXYAt(e[0],e[1],"o",n),r.setXYAt(i[0],i[1],"i",n+1),a&&r.setXYAt(t[0],t[1],"v",n),r.setXYAt(s[0],s[1],"v",n+1)},i.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),s&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},i.addShapes=function(t,e,i){var s,r,n,a,o,h,p,l,u=t.pathsData,c=t.shape.paths.shapes,f=t.shape.paths._length,d=0,m=[],v=!0;for(i?(o=i._length,l=i._length):(i=X.newElement(),o=0,l=0),m.push(i),s=0;s<f;s+=1){for(h=u[s].lengths,i.c=c[s].c,n=c[s].c?h.length:h.length+1,r=1;r<n;r+=1)if(d+(a=h[r-1]).addedLength<e.s)d+=a.addedLength,i.c=!1;else{if(d>e.e){i.c=!1;break}e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(c[s].v[r-1],c[s].o[r-1],c[s].i[r],c[s].v[r],i,o,v),v=!1):(p=rt.getNewSegment(c[s].v[r-1],c[s].v[r],c[s].o[r-1],c[s].i[r],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,h[r-1]),this.addSegmentFromArray(p,i,o,v),v=!1,i.c=!1),d+=a.addedLength,o+=1}if(c[s].c&&h.length){if(a=h[r-1],d<=e.e){var y=h[r-1].addedLength;e.s<=d&&e.e>=d+y?(this.addSegment(c[s].v[r-1],c[s].o[r-1],c[s].i[0],c[s].v[0],i,o,v),v=!1):(p=rt.getNewSegment(c[s].v[r-1],c[s].v[0],c[s].o[r-1],c[s].i[0],(e.s-d)/y,(e.e-d)/y,h[r-1]),this.addSegmentFromArray(p,i,o,v),v=!1,i.c=!1)}else i.c=!1;d+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[l][0],i.v[l][1],"i",l),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;s<f-1&&(i=X.newElement(),v=!0,m.push(i),o=0)}return m},e}(Rt)),Yt("rd",function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var i=e.prototype;return i.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=kt(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},i.processPath=function(t,e){var i,s=X.newElement();s.c=t.c;var r,n,a,o,h,p,l,u,c,f,d,m,v=t._length,y=0;for(i=0;i<v;i+=1)r=t.v[i],a=t.o[i],n=t.i[i],r[0]===a[0]&&r[1]===a[1]&&r[0]===n[0]&&r[1]===n[1]?0!==i&&i!==v-1||t.c?(o=0===i?t.v[v-1]:t.v[i-1],p=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,l=d=r[0]+(o[0]-r[0])*p,u=m=r[1]-(r[1]-o[1])*p,c=l-.5519*(l-r[0]),f=u-.5519*(u-r[1]),s.setTripleAt(l,u,c,f,d,m,y),y+=1,o=i===v-1?t.v[0]:t.v[i+1],p=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,l=c=r[0]+(o[0]-r[0])*p,u=f=r[1]+(o[1]-r[1])*p,d=l-.5519*(l-r[0]),m=u-.5519*(u-r[1]),s.setTripleAt(l,u,c,f,d,m,y),y+=1):(s.setTripleAt(r[0],r[1],a[0],a[1],n[0],n[1],y),y+=1):(s.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],y),y+=1);return s},i.processShapes=function(t){var e,i,s,r,n,a,o=this.shapes.length,h=this.rd.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||t)for(a.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)a.addShape(this.processPath(e[s],h));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},e}(Rt)),Yt("rp",function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var i=e.prototype;return i.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=kt(t,e.c,0,null,this),this.o=kt(t,e.o,0,null,this),this.tr=zt(t,e.tr,this),this.so=kt(t,e.tr.so,0,.01,this),this.eo=kt(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Dt,this.rMatrix=new Dt,this.sMatrix=new Dt,this.tMatrix=new Dt,this.matrix=new Dt},i.applyTransforms=function(t,e,i,s,r,n){var a=n?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-r),h=s.s.v[1]+(1-s.s.v[1])*(1-r);t.translate(s.p.v[0]*a*r,s.p.v[1]*a*r,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*a*r),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(n?1/o:o,n?1/h:h),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},i.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},i.resetElements=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},i.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},i.changeGroupRender=function(t,e){for(var i=t.length,s=0;s<i;s+=1)t[s]._render=e,"gr"===t[s].ty&&this.changeGroupRender(t[s].it,e)},i.processShapes=function(t){if(this._mdf||t){var e=Math.ceil(this.c.v);if(this._groups.length<e){for(;this._groups.length<e;){var i={it:this.cloneElements(this._elements),ty:"gr"};i.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,i),this._groups.splice(0,0,i),this._currentCopies+=1}this.elem.reloadShapes()}var s,r,n=0;for(s=0;s<=this._groups.length-1;s+=1)r=n<e,this._groups[s]._render=r,this.changeGroupRender(this._groups[s].it,r),n+=1;this._currentCopies=e;var a=this.o.v,o=a%1,h=a>0?Math.floor(a):Math.ceil(a),p=this.pMatrix.props,l=this.rMatrix.props,u=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var c=0;if(a>0){for(;c<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),c+=1;o&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,o,!1),c+=o)}else if(a<0){for(;c>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),c-=1;o&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-o,!0),c-=o)}s=1===this.data.m?0:this._currentCopies-1;var f=1===this.data.m?1:-1;for(n=this._currentCopies;n;){var d=this.elemsData[s].it,m=d[d.length-1].transform.mProps.v.props,v=m.length;if(d[d.length-1].transform.mProps._mdf=!0,d[d.length-1].transform.op._mdf=!0,d[d.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(s/(this._currentCopies-1)),0!==c){(0!==s&&1===f||s!==this._currentCopies-1&&-1===f)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15]),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]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]);for(var y=0;y<v;y+=1)m[y]=this.matrix.props[y];this.matrix.reset()}else{this.matrix.reset();for(var g=0;g<v;g+=1)m[g]=this.matrix.props[g]}c+=1,n-=1,s+=f}}else for(var _=this._currentCopies,k=0;_;){var S=this.elemsData[k].it;S[S.length-1].transform.mProps._mdf=!1,S[S.length-1].transform.op._mdf=!1,_-=1,k+=1}},i.addShape=function(){},e}(Rt)),Yt("ms",function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var i=e.prototype;return i.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.data=e,this.positions=[]},i.processKeys=function(t,e){(t!==this.frameId||e)&&(this._mdf=!0)},i.addShapeToModifier=function(){this.positions.push([])},i.processPath=function(t,e,i){var s,r,n,a,o=t.v.length,h=[],p=[],l=[];for(s=0;s<o;s+=1){i.v[s]||(i.v[s]=[t.v[s][0],t.v[s][1]],i.o[s]=[t.o[s][0],t.o[s][1]],i.i[s]=[t.i[s][0],t.i[s][1]],i.distV[s]=0,i.distO[s]=0,i.distI[s]=0),r=Math.atan2(t.v[s][1]-e[1],t.v[s][0]-e[0]),n=e[0]-i.v[s][0],a=e[1]-i.v[s][1];var u=Math.sqrt(n*n+a*a);i.distV[s]+=(u-i.distV[s])*this.data.dc,i.v[s][0]=Math.cos(r)*Math.max(0,this.data.maxDist-i.distV[s])/2+t.v[s][0],i.v[s][1]=Math.sin(r)*Math.max(0,this.data.maxDist-i.distV[s])/2+t.v[s][1],r=Math.atan2(t.o[s][1]-e[1],t.o[s][0]-e[0]),n=e[0]-i.o[s][0],a=e[1]-i.o[s][1],u=Math.sqrt(n*n+a*a),i.distO[s]+=(u-i.distO[s])*this.data.dc,i.o[s][0]=Math.cos(r)*Math.max(0,this.data.maxDist-i.distO[s])/2+t.o[s][0],i.o[s][1]=Math.sin(r)*Math.max(0,this.data.maxDist-i.distO[s])/2+t.o[s][1],r=Math.atan2(t.i[s][1]-e[1],t.i[s][0]-e[0]),n=e[0]-i.i[s][0],a=e[1]-i.i[s][1],u=Math.sqrt(n*n+a*a),i.distI[s]+=(u-i.distI[s])*this.data.dc,i.i[s][0]=Math.cos(r)*Math.max(0,this.data.maxDist-i.distI[s])/2+t.i[s][0],i.i[s][1]=Math.sin(r)*Math.max(0,this.data.maxDist-i.distI[s])/2+t.i[s][1],h.push(i.v[s]),p.push(i.o[s]),l.push(i.i[s])}return{v:h,o:p,i:l,c:t.c}},i.processShapes=function(){var t,e,i,s,r=this.elem.globalData.mouseX,n=this.elem.globalData.mouseY,a=this.shapes.length;if(r){var o,h=this.elem.globalToLocal([r,n,0]),p=[];for(e=0;e<a;e+=1)if((o=this.shapes[e]).shape._mdf||this._mdf){for(o.shape._mdf=!0,s=(t=o.shape.paths).length,i=0;i<s;i+=1)this.positions[e][i]||(this.positions[e][i]={v:[],o:[],i:[],distV:[],distO:[],distI:[]}),p.push(this.processPath(t[i],h,this.positions[e][i]));o.shape.paths=p,o.last=p}else o.shape.paths=o.last}},e}(Rt));var Bt=function(t,e,i){return new Xt[t](e,i)},Gt=function(t){function e(e,i,s){var r,n;(r=t.call(this)||this).elem=e,r.frameId=-1,r.dataProps=N(i.length),r.k=!1,r.dashArray=F("float32",i.length?i.length-1:0),r.dashoffset=F("float32",1),r.initDynamicPropertyContainer(s);var a,o=i.length||0;for(n=0;n<o;n+=1)a=kt(e,i[n].v,0,0,_assertThisInitialized(r)),r.k=a.k||r.k,r.dataProps[n]={n:i[n].n,p:a};return r.k||r.getValue(!0),r._isAnimated=r.k,r}return _inheritsLoose(e,t),e.prototype.getValue=function(t,e){if((t!==this.frameId||e)&&(this.frameId=t,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,s=this.dataProps.length;for(i=0;i<s;i+=1)"o"!=this.dataProps[i].n?this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},e}(J),Ut=function(t){function e(e,i,s){var r;(r=t.call(this)||this).data=i,r.c=F("uint8c",4*i.p);var n=i.k.k[0].s?i.k.k[0].s.length-4*i.p:i.k.k.length-4*i.p;return r.o=F("float32",n),r._cmdf=!1,r._omdf=!1,r._collapsable=r.checkCollapsable(),r._hasOpacity=n,r.initDynamicPropertyContainer(s),r.prop=kt(e,i.k,1,null,_assertThisInitialized(r)),r.k=r.prop.k,r.getValue(!0),r}_inheritsLoose(e,t);var i=e.prototype;return i.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},i.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},i.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,s,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},e}(J),Wt=function(t){function e(e,i,s){var r;return(r=t.call(this)||this).frameId=-1,r.keyframesManager=e,r.elem=e.elem,r.session=s,r.shapes=[],r.shapesData=i,r.stylesList=[],r.itemsData=[],r.prevViewData=[],r.shapeModifiers=[],r.processedElements=[],r.transformsManager=new It,r.initDynamicPropertyContainer(e),r.lcEnum={1:"butt",2:"round",3:"square"},r.ljEnum={1:"miter",2:"round",3:"bevel"},r._isFirstFrame=!0,r.transformHelper={opacity:1,_opMdf:!1},r.searchShapes(r.shapesData,r.itemsData,r.prevViewData,!0,[]),r._isAnimated||(r.transformHelper.opacity=1,r.transformHelper._opMdf=!1,r.updateModifiers(r.frameId),r.transformsManager.processSequences(r._isFirstFrame),r.updateShape(r.transformHelper,r.shapesData,r.itemsData),r.updateGrahpics()),r}_inheritsLoose(e,t);var i=e.prototype;return i.createStyleElement=function(t,e){var i=new qt(this.elem,t,this.transformsManager.addTransformSequence(e)),s={};if("fl"==t.ty||"st"==t.ty?(s.c=kt(this,t.c,1,255,this),s.c.k||(i.co=s.c.v)):"gf"!==t.ty&&"gs"!==t.ty||(s.s=kt(this,t.s,1,null,this),s.e=kt(this,t.e,1,null,this),s.h=kt(this,t.h||{k:0},0,.01,this),s.a=kt(this,t.a||{k:0},0,nt,this),s.g=new Ut(this,t.g,this)),s.o=kt(this,t.o,0,.01,this),"st"==t.ty||"gs"==t.ty){if(i.lc=this.lcEnum[t.lc]||"round",i.lj=this.ljEnum[t.lj]||"round",1==t.lj&&(i.ml=t.ml),s.w=kt(this,t.w,0,null,this),s.w.k||(i.wi=s.w.v),t.d){var r=new Gt(this,t.d,"canvas",this);s.d=r,s.d.k||(i.da=s.d.dashArray,i.do=s.d.dashoffset[0])}}else i.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(i),s.style=i,s},i.addShapeToModifiers=function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},i.isShapeInAnimatedModifiers=function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},i.updateModifiers=function(t){if(this.shapeModifiers.length){var e,i=this.shapes.length;for(e=0;e<i;e+=1)this.shapes[e].sh.reset();for(e=(i=this.shapeModifiers.length)-1;e>=0;e-=1)this.shapeModifiers[e].processShapes(t,this._isFirstFrame)}},i.searchProcessedElement=function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},i.addProcessedElement=function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[s-=1].elem===t)return void(i[s].pos=e);i.push(new At(t,e))},i.createGroupElement=function(){return{it:[],prevViewData:[]}},i.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:kt(this,t.o,0,.01,this),mProps:zt(this,t,this)}}},i.createShapeElement=function(t){var e=new Ot(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},i.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,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.updateModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},i.addTransformToStyleList=function(t){for(var e=this.stylesList.length,i=0;i<e;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.push(t)},i.removeTransformFromStyleList=function(){for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},i.closeStyles=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].closed=!0},i.searchShapes=function(t,e,i,s,r){var n,a,o,h,p,l,u=t.length-1,c=[],f=[],d=[].concat(r);for(n=u;n>=0;n-=1){if((h=this.searchProcessedElement(t[n]))?e[n]=i[h-1]:t[n]._shouldRender=s,"fl"==t[n].ty||"st"==t[n].ty||"gf"==t[n].ty||"gs"==t[n].ty)h?e[n].style.closed=!1:e[n]=this.createStyleElement(t[n],d),c.push(e[n].style);else if("gr"==t[n].ty){if(h)for(o=e[n].it.length,a=0;a<o;a+=1)e[n].prevViewData[a]=e[n].it[a];else e[n]=this.createGroupElement(t[n]);this.searchShapes(t[n].it,e[n].it,e[n].prevViewData,s,d)}else"tr"==t[n].ty?(h||(l=this.createTransformElement(t[n]),e[n]=l),d.push(e[n]),this.addTransformToStyleList(e[n])):"sh"==t[n].ty||"rc"==t[n].ty||"el"==t[n].ty||"sr"==t[n].ty?h||(e[n]=this.createShapeElement(t[n])):"tm"==t[n].ty||"rd"==t[n].ty?(h?(p=e[n]).closed=!1:((p=Bt(t[n].ty)).init(this,t[n]),e[n]=p,this.shapeModifiers.push(p)),f.push(p)):"rp"==t[n].ty&&(h?(p=e[n]).closed=!0:(p=Bt(t[n].ty),e[n]=p,p.init(this,t,n,e),this.shapeModifiers.push(p),s=!1),f.push(p));this.addProcessedElement(t[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),u=f.length,n=0;n<u;n+=1)f[n].closed=!0},i.updateShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},i.updateStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,s,r,n=t.trNodes,a=e.paths,o=a._length;n.length=0;var h=t.transforms.finalTransform;for(r=0;r<o;r+=1){var p=a.shapes[r];if(p&&p.v){for(s=p._length,i=1;i<s;i+=1)1===i&&n.push({t:"m",p:h.applyToPointArray(p.v[0][0],p.v[0][1],0)}),n.push({t:"c",pts:h.applyToTriplePoints(p.o[i-1],p.i[i],p.v[i])});1===s&&n.push({t:"m",p:h.applyToPointArray(p.v[0][0],p.v[0][1],0)}),p.c&&s&&(n.push({t:"c",pts:h.applyToTriplePoints(p.o[i-1],p.i[0],p.v[0])}),n.push({t:"z"}))}}t.trNodes=n}},i.updatePath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,s=e.styledShapes.length;for(i=0;i<s;i+=1)this.updateStyledShape(e.styledShapes[i],e.sh)}},i.updateFill=function(t,e,i){var s=e.style;(e.c._mdf||this._isFirstFrame)&&(s.co=e.c.v),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity)},i.updateStroke=function(t,e,i){var s=e.style,r=e.d;r&&(r._mdf||this._isFirstFrame)&&(s.da=r.dashArray,s.do=r.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(s.co=e.c.v),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(s.wi=e.w.v)},i.updateGradientFill=function(t,e,i){var s=e.style;s.grd=e.g.c,s.coOp=e.o.v*i.opacity},i.updateShape=function(t,e,i){for(var s=t,r=e.length-1;r>=0;r-=1)"tr"==e[r].ty?(s=i[r].transform,this.updateShapeTransform(t,s)):"sh"==e[r].ty||"el"==e[r].ty||"rc"==e[r].ty||"sr"==e[r].ty?this.updatePath(e[r],i[r]):"fl"==e[r].ty?this.updateFill(e[r],i[r],s):"st"==e[r].ty?this.updateStroke(e[r],i[r],s):"gf"==e[r].ty||"gs"==e[r].ty?this.updateGradientFill(e[r],i[r],s):"gr"==e[r].ty&&this.updateShape(s,e[r].it,i[r].it)},i.updateGrahpics=function(){for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].updateGrahpics()},i.getValue=function(t){t!==this.frameId&&(this.iterateDynamicProperties(t),this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.updateModifiers(t),this.transformsManager.processSequences(this._isFirstFrame),this.updateShape(this.transformHelper,this.shapesData,this.itemsData),this.updateGrahpics(),this.frameId=t)},e}(J),Jt=function(t){function e(e,i,s){var r;return(r=t.call(this,e,i)||this).frameId=-1,r.hs=i,r.session=s,r}return _inheritsLoose(e,t),e.prototype.getValue=function(t){t!==this.frameId&&(this.iterateDynamicProperties(t),this.frameId=t)},_createClass(e,[{key:"x",get:function(){return this.p?this.p.v[0]:this.px.v}},{key:"y",get:function(){return this.p?this.p.v[1]:this.py.v}},{key:"anchorX",get:function(){return this.a.v[0]}},{key:"anchorY",get:function(){return this.a.v[1]}},{key:"scaleX",get:function(){return this.s.v[0]}},{key:"scaleY",get:function(){return this.s.v[1]}},{key:"rotation",get:function(){return this.r&&this.r.v||0}},{key:"alpha",get:function(){return this.o.v}}]),e}(jt),Ht=function(){function t(t){this.elem=t,this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1,this.transform=null,this.masks=null,this.shapes=null,this._hasOutTypeExpression=!1,this.needUpdateOverlap=!1,this.isOverlapMode=!1,this.visible=!0,this._isFirstFrame=!0}var e=t.prototype;return e.initFrame=function(t,e){this.layer=t;var i=e.local,s=e.global;this.session=e,this.isOverlapLayer=this.layer.op>=i.op-i.st,this.isOverlapMode=s.overlapMode,this.parseLayer(t,e)},e.outTypeExpressionMode=function(){this._hasOutTypeExpression=!0,this.isOverlapLayer&&(this.needUpdateOverlap=!0)},e.prepareProperties=function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this.needUpdateOverlap||this.elem._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(t),this.dynamicProperties[i]._mdf&&(this._mdf=!0))},e.addDynamicProperty=function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)},e.parseLayer=function(t,e){var i=t.ks,s=t.hasMask,r=t.masksProperties,n=t.shapes,a=t.tm;if(i&&(this.transform=new Jt(this,i,e)),s&&(this.masks=new Ct(this,r,e)),n&&(this.shapes=new Wt(this,n,e)),a){var o=e.global.frameRate;this.tm=kt(this,a,0,o,this)}},e.updateFrame=function(t){this._mdf=!1;var e=l.inRange(t,this.layer.ip,this.layer.op);this.isOverlapMode&&this.isOverlapLayer?this.visible=t>=this.layer.ip:this.visible=e,this.prepareProperties(t,e)},e.updateDisplay=function(){var t=this.elem.display;this.elem._isRoot||(this.visible?t.show():t.hide(),(this._mdf||this.transform._mdf||this._isFirstFrame)&&t.updateLottieTransform(this.transform),this.masks&&(this.masks._mdf||this._isFirstFrame)&&t.updateLottieMasks(this.masks)),this._isFirstFrame=!1},t}(),Kt=function(){function t(t){this.data=t,void 0===this.data.sr&&(this.data.sr=1),this.offsetTime=t.st||0,this.fullname=t.nm||"",this.idname=t.ln||"",this.classnames=t.cl?t.cl.split(" "):[],this.bodymovin=new Ht(this),this.displayType="",this.display=null,this.hierarchy=null,this.lottieTreeParent=null}var e=t.prototype;return e.initBodymovin=function(t,e){this.bodymovin.initFrame(t,e),this.display&&this.display.onSetupLottie&&this.display.onSetupLottie()},e.hasValidMasks=function(){return!(!this.bodymovin.masks||!this.bodymovin.masks.hasMasks)},e.setHierarchy=function(t){this.hierarchy=t,this.display.setHierarchy(t.display)},e.initDisplayInstance=function(t,e){return new(Et(t))(this,e)},e.updateFrame=function(t){this.bodymovin.updateFrame(t),this.bodymovin.updateDisplay()},t}(),Zt=function(t){function e(e,i){var s;s=t.call(this,e)||this;var r=i.global;s.session=i;var n={layer:e,session:i};if(r.maskComp){n.maskComp=r.maskComp;var a=e.w,o=e.h;n.viewport={w:a,h:o}}return s.config=n,s.childNodes=[],s.displayType=Vt.Component,s.innerDisplay=null,s.display=s.initDisplayInstance(s.displayType,n),s.initBodymovin(e,i),s}_inheritsLoose(e,t);var i=e.prototype;return i.updateFrame=function(t){if(this.bodymovin.updateFrame(t),this.bodymovin.updateDisplay(),t-=this.offsetTime,this.bodymovin.tm){var e=this.bodymovin.tm.v;e===this.data.op&&(e=this.data.op-1),t=e}else t/=this.data.sr;for(var i=0;i<this.childNodes.length;i++)this.childNodes[i].updateFrame(t)},i.addChild=function(t){t.lottieTreeParent=this,this.childNodes.push(t),this.innerDisplay?this.innerDisplay.addChild(t.display):this.display.addChild(t.display)},e}(Kt),Qt=function(t){function e(e,i){var s;s=t.call(this,e)||this;var r={layer:e,session:i,rect:{x:0,y:0,width:e.sw,height:e.sh},color:e.sc};return s.config=r,s.session=i,s.displayType=Vt.Solid,s.display=s.initDisplayInstance(s.displayType,r),s.initBodymovin(e,i),s}return _inheritsLoose(e,t),e}(Kt),$t=function(t){function e(e,i){var s;s=t.call(this,e)||this;var r=i.global,n=r.textureLoader,a=r.assets,o=l.getAssets(e.refId,a),h={layer:e,session:i,texture:n.getTextureById(o.id),asset:o};return s.config=h,s.session=i,s.displayType=Vt.Sprite,s.display=s.initDisplayInstance(s.displayType,h),s.initBodymovin(e,i),s}return _inheritsLoose(e,t),e}(Kt),te=function(t){function e(e,i){var s,r={layer:e,session:i};return(s=t.call(this,e)||this).config=r,s.session=i,s.displayType=Vt.Shape,s.display=s.initDisplayInstance(s.displayType,r),s.initBodymovin(e,i),s}return _inheritsLoose(e,t),e}(Kt),ee=function(t){function e(e,i){var s,r={layer:e,session:i};return(s=t.call(this,e)||this).config=r,s.session=i,s.displayType=Vt.Null,s.display=s.initDisplayInstance(s.displayType,r),s.initBodymovin(e,i),s}return _inheritsLoose(e,t),e}(Kt),ie=function(t){function e(e){var i;(i=t.call(this)||this).living=!0,i.infinite=e.infinite||!1,i.repeats=e.repeats||0,i.alternate=e.alternate||!1,i.wait=e.wait||0,i.delay=e.delay||0,i.overlapMode=e.overlapMode||!1,i.timeScale=l.isNumber(e.timeScale)?e.timeScale:1,i.frameNum=0,i.isPaused=!0,i.direction=1,i._lastFrame=-1/0,i._repeatsCut=i.repeats,i._delayCut=i.delay,i._waitCut=i.wait,i.segments=e.segments||{},i._segmentName=e.initSegment||"",i._prefix=e.prefix||"",i._autoLoad=!l.isBoolean(e.autoLoad)||e.autoLoad,i._autoStart=!l.isBoolean(e.autoStart)||e.autoStart,i._justDisplayOnImagesLoaded=!l.isBoolean(e.justDisplayOnImagesLoaded)||e.justDisplayOnImagesLoaded,i._maskComp=e.maskComp||!1,i.textureLoader=null,i.jsonLoader=null,i.root=null,i.parent=null;var s=Et(Vt.Container);if(i.group=new s,i.display=null,i.isDisplayLoaded=!1,i.isImagesLoaded=!1,i._copyJSON=e.copyJSON||!1,e.keyframes)!i._prefix&&e.keyframes.prefix&&(i._prefix=e.keyframes.prefix),i._setupDate(e.keyframes);else if(e.path){var r;r=-1!==e.path.lastIndexOf("\\")?e.path.substr(0,e.path.lastIndexOf("\\")+1):e.path.substr(0,e.path.lastIndexOf("/")+1),!i._prefix&&r&&(i._prefix=r),i.jsonLoader=function(t){var e=c[f.Ajax];return e||console.warn("must register an ajax loader, before you parse an animation from path"),e(t)}(e.path),i.jsonLoader.once("success",(function(t){i._setupDate(t)})),i.jsonLoader.once("error",(function(t){i.emit("error",t)}))}return i}_inheritsLoose(e,t);var i=e.prototype;return i._setupDate=function(t){var e=this;this._sourceData=t,this._copyJSON&&(t=l.copyJSON(t)),P(t),this.keyframes=t;var i=t,s=i.w,r=i.h,n=i.st,a=void 0===n?0:n,o=i.fr,h=i.ip,p=i.op,u=i.assets;this.frameRate=o,this.frameMult=o/1e3,this._defaultSegment=[h,p];var d=this._segmentName&&this.segments[this._segmentName]||this._defaultSegment;this.beginFrame=d[0],this.endFrame=d[1],this._timePerFrame=1e3/o,this.duration=Math.floor(this.endFrame-this.beginFrame);var m=null,v=u.filter((function(t){return t.u||t.p}));v.length>0?(this.textureLoader=m=function(t,e){var i=c[f.Texture];return i||console.warn("must register an image loader, before you parse an animation some has image assets"),i(t,e)}(v,{prefix:this._prefix,autoLoad:this._autoLoad}),m.loaded?(this.isImagesLoaded=!0,this.isPaused=!this._autoStart,this.emit("ImageReady")):(m.once("complete",(function(){e.isImagesLoaded=!0,e.emit("ImageReady")})),null!==this._pausedNeedSet&&(this._pausedNeedSet=!0,m.once("complete",(function(){e._pausedNeedSet&&(e._pausedNeedSet=!1,e.isPaused=!e._autoStart)}))))):(this.isImagesLoaded=!0,this.isPaused=!this._autoStart);var y={global:{assets:u,textureLoader:m,frameRate:o,maskComp:this._maskComp,overlapMode:this.overlapMode},local:{w:s,h:r,ip:h,op:p,st:a}};this._buildElements(y),null!==this.textureLoader&&this._justDisplayOnImagesLoaded&&!this.textureLoader.loaded&&null!==this._justDisplayNeedSet&&(this.group.visible=!1,this._justDisplayNeedSet=!0,this.textureLoader.once("complete",(function(){e._justDisplayNeedSet&&(e._justDisplayNeedSet=!1,e.group.visible=!0)}))),this.isDisplayLoaded=!0,this.update(0,!0)},i._buildElements=function(t){var e=this;this.root=this._extraCompositions(this.keyframes,t,!0),this.display=this.root.display,this.group.addChild(this.display),this.emit("DOMLoaded").emit("DisplayReady"),null===this.textureLoader||this.textureLoader.loaded?this.emit("success"):this.textureLoader.once("complete",(function(){return e.emit("success")}))},i._extraCompositions=function(t,e,i){var s=e.global,r=e.local;void 0===i&&(i=!1);var n=t.w,a=t.h,o=t.ip,h=t.op,p=t.st,u=void 0===p?0:p,c=new Zt(t,{global:s,local:r});c._isRoot=i;for(var f=t.layers||l.getAssets(t.refId,s.assets).layers,d={global:s,local:{w:n,h:a,ip:o,op:h,st:u}},m=this._createElements(f,d),v=f.length-1;v>=0;v--){var y=f[v],g=m[y.ind];if(g){if(!l.isUndefined(y.parent)){var _=m[y.parent];_._isParent=!0,g.setHierarchy(_)}c.addChild(g)}}return c},i._createElements=function(t,e){for(var i={},s=t.length-1;s>=0;s--){var r=t[s],n=null;if(void 0===r.td){switch(r.ty){case 0:n=this._extraCompositions(r,e);break;case 1:n=new Qt(r,e);break;case 2:n=new $t(r,e);break;case 3:n=new ee(r,e);break;case 4:n=new te(r,e);break;default:continue}n&&(void 0===r.ind&&(r.ind=s),i[r.ind]=n,n.name=r.nm||null)}}return i},i.getDisplayByQuerySelector=function(t){var e=this.querySelector(t);return e&&e.display?e.display:(console.warn("can not find display which query with ",t),null)},i._queryMatch=function(t,e,i){var s,r=t.substr(0,1),n=t.substr(1,t.length);return(s="#"===r?e.idname===n:"."===r?-1!==e.classnames.indexOf(n):e.fullname===t)&&i.push(e),s},i._searchNodes=function(t,e,i,s){if(void 0===s&&(s=!1),e.childNodes&&e.childNodes.length>0){for(var r=[],n=0;n<e.childNodes.length;n++){var a=e.childNodes[n];if(this._queryMatch(t,a,i)&&s)return!0;a.childNodes&&a.childNodes.length>0&&r.push(a)}for(var o=0;o<r.length;o++)if(this._searchNodes(t,r[o],i,s))return!0}return!1},i.querySelector=function(t){var e=[];return this._queryMatch(t,this.root,e)?e[0]:(this._searchNodes(t,this.root,e,!0),e[0]||null)},i.querySelectorAll=function(t){var e=[],i="#"===t.substr(0,1);return this._queryMatch(t,this.root,e)&&i||this._searchNodes(t,this.root,e,i),e},i.bindSlot=function(t,e){return this.getDisplayByQuerySelector(t).addChild(e),this},i.unbindSlot=function(t,e){return this.getDisplayByQuerySelector(t).removeChild(e),this},i._emitFrame=function(t){this.emit("@"+t)},i.update=function(t,e){if(void 0===e&&(e=!1),this.living&&this.isDisplayLoaded&&(!this.isPaused||e)){var i=this._updateTime(t),s=this.beginFrame+this.frameNum;this.root.updateFrame(s);var r=s>>0;this._lastFrame!==r&&(this._emitFrame(this.direction>0?r:this._lastFrame),this._lastFrame=r),!1===i?(this.emit("enterFrame",s),this.emit("update",this.frameNum/this.duration)):this.hadEnded!==i&&!0===i&&this.emit("complete"),this.hadEnded=i}},i._updateTime=function(t){var e=this.direction*this.timeScale*t;if(this._waitCut>0)return this._waitCut-=Math.abs(e),null;if(this.isPaused||this._delayCut>0)return this._delayCut>0&&(this._delayCut-=Math.abs(e)),null;this.frameNum+=e/this._timePerFrame;var i=!1;return this._spill()&&(this._repeatsCut>0||this.infinite?(this._repeatsCut>0&&--this._repeatsCut,this._delayCut=this.delay,this.alternate?(this.direction*=-1,this.frameNum=l.codomainBounce(this.frameNum,0,this.duration)):(this.direction=1,this.frameNum=l.euclideanModulo(this.frameNum,this.duration)),this.emit("loopComplete")):(this.overlapMode||(this.frameNum=l.clamp(this.frameNum,0,this.duration),this.living=!1),i=!0)),i},i._spill=function(){var t=this.frameNum<=0&&-1===this.direction,e=this.frameNum>=this.duration&&1===this.direction;return t||e},i.frameToTime=function(t){return t*this._timePerFrame},i.setSpeed=function(t){this.timeScale=t},i.playSegment=function(t,e){if(void 0===e&&(e={}),t){var i=null;l.isArray(t)?i=t:l.isString(t)&&(i=this.segments[t],l.isArray(i)&&(this._segmentName=t)),l.isArray(i)&&(this.beginFrame=l.isNumber(i[0])?i[0]:this._defaultSegment[0],this.endFrame=l.isNumber(i[1])?i[1]:this._defaultSegment[1],l.isNumber(e.repeats)&&(this.repeats=e.repeats),l.isBoolean(e.infinite)&&(this.infinite=e.infinite),l.isBoolean(e.alternate)&&(this.alternate=e.alternate),l.isNumber(e.wait)&&(this.wait=e.wait),l.isNumber(e.delay)&&(this.delay=e.delay),this.replay())}},i.goToAndStop=function(t,e){void 0===e&&(e=!1),this.frameNum=e?t:t*this.frameMult,this.update(0,!0),this.pause()},i.goToAndPlay=function(t,e){void 0===e&&(e=!1),this.frameNum=e?t:t*this.frameMult,this.update(0,!0),this.resume()},i.getDuration=function(t){var e=this.endFrame-this.beginFrame;return t?e:e/this.frameRate},i.setDirection=function(t){return this.direction=t<0?-1:1,this},i.pause=function(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!0,this},i.resume=function(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!1,this},i.play=function(){return this.resume()},i.replay=function(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!1,this._repeatsCut=this.repeats,this._delayCut=this.delay,this.living=!0,this.frameNum=0,this.duration=Math.floor(this.endFrame-this.beginFrame),this.direction=1,this},i.show=function(){this._justDisplayNeedSet?this._justDisplayNeedSet=!1:this._justDisplayNeedSet=null,this.group.visible=!0},i.hide=function(){this._justDisplayNeedSet?this._justDisplayNeedSet=!1:this._justDisplayNeedSet=null,this.group.visible=!1},i.destroy=function(){this.parent&&this.parent.remove(this),this.group.parent&&this.group.parent.removeChild(this.group),this.pause(),this.root=null,this.group=null,this.display=null,this.textureLoader&&(this.textureLoader.off("complete"),this.textureLoader=null),this.jsonLoader&&(this.jsonLoader.off("success"),this.jsonLoader=null),this.keyframes=null,this.living=!1},e}(u),se=function(t){function e(e){var i;return(i=t.call(this)||this)._lastTime=0,i._snippet=0,i.timeScale=1,i.isPaused=!1,i.ticker=e.ticker?e.ticker:e,i.groups=[],i.update=i.update.bind(_assertThisInitialized(i)),i.ticker&&i.start(),i}_inheritsLoose(e,t);var i=e.prototype;return i.add=function(t){var e=arguments.length;if(e>1)for(var i=0;i<e;i++)this.add(arguments[i]);else null!==t.parent&&t.parent.remove(t),t.parent=this,this.groups.push(t);return t},i.remove=function(t){if(arguments.length>1)for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);var i=this.groups.indexOf(t);-1!==i&&(t.parent=null,this.groups.splice(i,1))},i.parseAnimation=function(t){var e=new ie(t);return this.add(e)},i.setSpeed=function(t){this.timeScale=t},i.start=function(){return this._lastTime=Date.now(),this.ticker.add(this.update),this},i.stop=function(){return this.ticker.remove(this.update),this},i.pause=function(){return this.isPaused=!0,this},i.resume=function(){return this.isPaused=!1,this},i.update=function(){if(this.timeline(),!this.isPaused){for(var t=this.timeScale*this._snippet,e=this.groups.length,i=0;i<e;i++)this.groups[i].update(t);this.emit("update",this._snippet)}},i.timeline=function(){var t=Date.now()-this._lastTime;(!this._lastTime||t>200)&&(this._lastTime=Date.now(),t=Date.now()-this._lastTime),this._lastTime+=t,this._snippet=t},i.destroy=function(){for(var t=this.groups.length-1;t>=0;t--)this.groups[t].destroy()},e}(u),re=function(t){function e(e){var i;return(i=t.call(this)||this).parentCompBox=e,i.lineStyle(0),i}_inheritsLoose(e,t);var i=e.prototype;return i.updateLayerMask=function(t){for(var e=0;e<t.viewData.length;e++){if(t.viewData[e].inv){var i=this.parentCompBox;this.moveTo(0,0),this.lineTo(i.w,0),this.lineTo(i.w,i.h),this.lineTo(0,i.h),this.lineTo(0,0)}var s=t.viewData[e].v,r=s.v[0];this.moveTo(r[0],r[1]);for(var n=s._length,a=1;a<n;a++){var o=s.o[a-1],h=s.i[a],p=s.v[a];this.bezierCurveTo(o[0],o[1],h[0],h[1],p[0],p[1])}var l=s.o[a-1],u=s.i[0],c=s.v[0];this.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1]),t.viewData[e].inv&&this.addHole()}},i.updateMasks=function(t){this.clear(),this.beginFill(0),this.updateLayerMask(t),this.endFill()},e}(s.Graphics),ne=function(t){function e(e){var i;return(i=t.call(this)||this).viewport=e,i.lineStyle(0),i.initCompMask(),i}return _inheritsLoose(e,t),e.prototype.initCompMask=function(){this.clear(),this.beginFill(0);var t=this.viewport;this.moveTo(0,0),this.lineTo(t.w,0),this.lineTo(t.w,t.h),this.lineTo(0,t.h),this.lineTo(0,0),this.endFill()},e}(s.Graphics),ae=function(t){function e(e,i){var s;return(s=t.call(this)||this).lottieElement=e,s.config=i,s}_inheritsLoose(e,t);var i=e.prototype;return i.onSetupLottie=function(){if(this.config.maskComp){var t=this.config.viewport;this.preCompMask=new ne(t),this.mask=this.preCompMask,this.addChild(this.mask)}if(this.lottieElement.hasValidMasks()){var e=this.config.session.local;if(this.graphicsMasks=new re(e),this.mask){var i=new s.Container;i.mask=this.graphicsMasks,i.addChild(this.mask),this.lottieElement.innerDisplay=i,this.addChild(i)}else this.mask=this.graphicsMasks,this.addChild(this.mask)}},i.setHierarchy=function(t){this.hierarchy=t},i.show=function(){this.visible=!0},i.hide=function(){this.visible=!1},i.updateLottieTransform=function(t){this.x=t.x,this.y=t.y,this.pivot.x=t.anchorX,this.pivot.y=t.anchorY,this.scale.x=t.scaleX,this.scale.y=t.scaleY,this.rotation=t.rotation,this.alpha=t.alpha},i.updateLottieMasks=function(t){this.graphicsMasks&&this.graphicsMasks.updateMasks(t)},e}(s.Container),oe=function(t){function e(e){return t.call(this,e,["attribute vec2 aVertexPosition;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","void main(void){"," gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);","}"].join("\n"),["uniform float alpha;","uniform vec3 color;","void main(void){"," gl_FragColor = vec4(color * alpha, alpha);","}"].join("\n"))||this}return _inheritsLoose(e,t),e}(s.Shader);function he(t,e){this.buffer=new t(10),this.length=0}he.prototype={reset:function(){this.length=0},destroy:function(){this.buffer=null,this.length=0},push:function(){if(this.length+arguments.length>this.buffer.length){var t=new this.buffer.constructor(Math.max(this.length+arguments.length,Math.round(2*this.buffer.length)));t.set(this.buffer,0),this.buffer=t}for(var e=0;e<arguments.length;e++)this.buffer[this.length++]=e<0||arguments.length<=e?void 0:arguments[e];return this.length},setBuffer:function(t){this.buffer=t,this.length=this.buffer.length}};var pe=function(){function t(t,e,i){this.gl=t,this.vertices=new he(Float32Array),this.indices=new he(Uint16Array),this.buffer=s.glCore.GLBuffer.createVertexBuffer(t),this.indexBuffer=s.glCore.GLBuffer.createIndexBuffer(t),this.dirty=!0,this.shader=e,this.vao=new s.glCore.VertexArrayObject(t,i).addIndex(this.indexBuffer).addAttribute(this.buffer,e.attributes.aVertexPosition,t.FLOAT,!1,8,0)}var e=t.prototype;return e.reset=function(){this.vertices.reset(),this.indices.reset()},e.upload=function(){this.buffer.upload(this.vertices.buffer),this.indexBuffer.upload(this.indices.buffer),this.dirty=!1},e.destroy=function(){this.vertices.destroy(),this.indices.destroy(),this.vao.destroy(),this.buffer.destroy(),this.indexBuffer.destroy(),this.gl=null,this.buffer=null,this.indexBuffer=null},t}();function le(t,e,i){return t.push(e,i),t}function ue(t,e){return Math.sqrt(t*t+e*e)}function ce(t,e,i,s,r){return function(t,e){var i=1-t;return i*i*i*e}(t,e)+function(t,e){var i=1-t;return 3*i*i*t*e}(t,i)+function(t,e){return 3*(1-t)*t*t*e}(t,s)+function(t,e){return t*t*t*e}(t,r)}function fe(t,e,i,s,r,n,a){if(!(isFinite(e)&&isFinite(i)&&isFinite(s)&&isFinite(r)&&isFinite(n)&&isFinite(a)))return t;for(var o=t[t.length-2],h=t[t.length-1],p=function(t,e,i,s,r,n,a,o){var h=r-i,p=n-s,l=i-t,u=s-e;return ue(a-r,o-n)+ue(h,p)+ue(l,u)}(o,h,e,i,s,r,n,a),l=Math.min(10/p,.5),u=l;u<1;u+=l){var c=ce(u,o,e,s,n),f=ce(u,h,i,r,a);t.push(c,f)}return t.push(n,a),t}function de(t,e){for(var i=0;i<t.length;i++){var s=t[i],r=s.cmd,n=s.args;switch(r){case"M":case"L":le(e,n[0],n[1]);break;case"C":fe(e,n[0],n[1],n[2],n[3],n[4],n[5])}}return e}function me(t,e,i,s,r,n,a){r%=2*Math.PI,n%=2*Math.PI,r<0&&(r+=2*Math.PI),n<0&&(n+=2*Math.PI),r>=n&&(n+=2*Math.PI);var o=n-r,h=1;a&&(h=-1,0==(o=2*Math.PI-o)&&(o=2*Math.PI));for(var p=o*s,l=Math.sqrt(p/1)>>0,u=o/(l=l%2==0?l+1:l),c=r,f=0;f<l+1;f++)t.push(e,i,e+s*Math.cos(c),i+s*Math.sin(c)),c+=h*u}function ve(t,e,i){for(var s,r=de(t.cmds,[]),n=t.isClosed,a=e.lineDash.length>=2,o=e.lineWidth/2,h=[r[0],r[1]],p=2;p<r.length;p+=2)r[p]==h[h.length-2]&&r[p+1]==h[h.length-1]||h.push(r[p],r[p+1]);if(!n||h[h.length-2]==h[0]&&h[h.length-1]==h[1]||h.push(h[0],h[1]),a){var l=function(t,e,i,s){e&&t.push(t[0],t[1]);for(var r=s,n=0,a=1;r>i[n];)r-=i[n],a=a?0:1,++n==i.length&&(n=0);for(var o=[t[0],t[1]],h=[a],p=2;p<t.length;p+=2){var l=[t[p]-t[p-2],t[p+1]-t[p-1]],u=ue(l[0],l[1]);l[0]/=u,l[1]/=u;for(var c=0;u-c+r>=i[n];)c+=i[n]-r,r=0,a=a?0:1,++n==i.length&&(n=0),h.push(a),o.push(t[p-2]+c*l[0],t[p-1]+c*l[1]);u-c!=0&&(o.push(t[p],t[p+1]),h.push(a)),r+=u-c}return e&&(t.pop(),t.pop(),o.pop(),o.pop(),h.pop()),{newPoints:o,toDrawOrNotToDraw:h}}(h,n,e.lineDash,e.lineDashOffset);s=l.toDrawOrNotToDraw,h=l.newPoints}var u=i.length,c=i.length,f=[];if(n)h.push(h[2],h[3]);else{var d=[h[2]-h[0],h[3]-h[1]],m=ue(d[0],d[1]);d[0]/=m,d[1]/=m;var v=[-d[1],d[0]],y=[h[0]+o*v[0],h[1]+o*v[1]],g=[h[0]-o*v[0],h[1]-o*v[1]];if("butt"==e.lineCap)i.push(y[0],y[1],g[0],g[1]);else if("square"==e.lineCap)i.push(y[0]-o*d[0],y[1]-o*d[1],g[0]-o*d[0],g[1]-o*d[1]);else{i.push(h[0],h[1],y[0],y[1]);var _=Math.atan2(y[1]-h[1],y[0]-h[0]),k=Math.atan2(g[1]-h[1],g[0]-h[0]);me(i,h[0],h[1],o,_,k),i.push(h[0],h[1],g[0],g[1]),i.push(y[0],y[1],g[0],g[1])}if(a){for(var S=s[0],T=c;T<i.length;T+=2)f.push(S);c=i.length}}for(var M=2;M<h.length-2;M+=2){var w=[h[M]-h[M-2],h[M+1]-h[M-1]],x=[-w[1],w[0]],P=ue(x[0],x[1]);x[0]/=P,x[1]/=P;var b=[h[M+2]-h[M],h[M+3]-h[M+1]];P=ue(b[0],b[1]),b[0]/=P,b[1]/=P;var L=[h[M]-h[M-2],h[M+1]-h[M-1]];P=ue(L[0],L[1]),L[0]/=P,L[1]/=P;var C=[L[0]+b[0],L[1]+b[1]],D=void 0,I=void 0,A=0;(P=ue(C[0],C[1]))>0?(C[0]/=P,C[1]/=P,A=o/(D=(I=[-C[1],C[0]])[0]*x[0]+I[1]*x[1])):(A=0,I=[-C[1],C[0]]);var O=[h[M]+A*I[0],h[M+1]+A*I[1]],F=[h[M]-A*I[0],h[M+1]-A*I[1]];if("miter"==e.lineJoin&&1/D<=e.miterLimit)i.push(O[0],O[1],F[0],F[1]);else{var E=L[1]*b[0]-L[0]*b[1];if("round"==e.lineJoin)if(E<0){var V=[h[M]+L[1]*o,h[M+1]-L[0]*o],N=[h[M]+b[1]*o,h[M+1]-b[0]*o];i.push(O[0],O[1],V[0],V[1]);var q=Math.atan2(V[1]-h[M+1],V[0]-h[M]),j=Math.atan2(N[1]-h[M+1],N[0]-h[M]);me(i,h[M],h[M+1],o,q,j),i.push(O[0],O[1],N[0],N[1])}else{var z=[h[M]-L[1]*o,h[M+1]+L[0]*o],R=[h[M]-b[1]*o,h[M+1]+b[0]*o];i.push(z[0],z[1],F[0],F[1]);var X=Math.atan2(R[1]-h[M+1],R[0]-h[M]),Y=Math.atan2(z[1]-h[M+1],z[0]-h[M]);me(i,h[M],h[M+1],o,X,Y),i.push(R[0],R[1],F[0],F[1])}else if(E<0){var B=[h[M]+L[1]*o,h[M+1]-L[0]*o],G=[h[M]+b[1]*o,h[M+1]-b[0]*o];i.push(O[0],O[1],B[0],B[1],O[0],O[1],G[0],G[1])}else{var U=[h[M]-L[1]*o,h[M+1]+L[0]*o],W=[h[M]-b[1]*o,h[M+1]+b[0]*o];i.push(U[0],U[1],F[0],F[1],W[0],W[1],F[0],F[1])}}if(a){for(var J=s[M/2],H=c;H<i.length;H+=2)f.push(J);c=i.length}}if(n)i.push(i.buffer[u],i.buffer[u+1],i.buffer[u+2],i.buffer[u+3]);else{var K=[h[h.length-2]-h[h.length-4],h[h.length-1]-h[h.length-3]],Z=Math.sqrt(Math.pow(K[0],2)+Math.pow(K[1],2));K[0]/=Z,K[1]/=Z;var Q=[-K[1],K[0]],$=[h[h.length-2]+o*Q[0],h[h.length-1]+o*Q[1]],tt=[h[h.length-2]-o*Q[0],h[h.length-1]-o*Q[1]];if("butt"==e.lineCap)i.push($[0],$[1],tt[0],tt[1]);else if("square"==e.lineCap)i.push($[0]+o*K[0],$[1]+o*K[1],tt[0]+o*K[0],tt[1]+o*K[1]);else{i.push($[0],$[1],tt[0],tt[1]),i.push(h[h.length-2],h[h.length-1],tt[0],tt[1]);var et=Math.atan2(tt[1]-h[h.length-1],tt[0]-h[h.length-2]),it=Math.atan2($[1]-h[h.length-1],$[0]-h[h.length-2]);me(i,h[h.length-2],h[h.length-1],o,et,it),i.push(h[h.length-2],h[h.length-1],$[0],$[1])}}if(a){for(var st=s[s.length-1],rt=c;rt<i.length;rt+=2)f.push(st);c=i.length}return f}function ye(t,e){for(var i=t.isClosed,s=!0,r=de(t.cmds,[]),n=[r[0],r[1]],a=2;a<r.length;a+=2)r[a]==n[n.length-2]&&r[a+1]==n[n.length-1]||n.push(r[a],r[a+1]);if(!i||n[n.length-2]==n[0]&&n[n.length-1]==n[1]||n.push(n[0],n[1]),n.length>=6){for(var o=0;o<n.length;o++)e.push(n[o]);s=!1}return s}s.WebGLRenderer.registerPlugin("lottiegraphics",function(t){function e(e){var i;return(i=t.call(this,e)||this).graphicsDataPool=[],i.primitiveShader=null,i.webGLData=null,i.gl=e.gl,i.CONTEXT_UID=0,i}_inheritsLoose(e,t);var i=e.prototype;return i.onContextChange=function(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.primitiveShader=new oe(this.gl)},i.destroy=function(){s.ObjectRenderer.prototype.destroy.call(this);for(var t=0;t<this.graphicsDataPool.length;++t)this.graphicsDataPool[t].destroy();this.graphicsDataPool=null},i.render=function(t){var e=this.renderer,i=e.gl,r=this.getWebGLData(t);if(t.isDirty&&this.updateGraphics(t,r),0!==r.indices.length){var n=this.primitiveShader;e.bindShader(n),e.state.setBlendMode(t.blendMode),n.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),n.uniforms.color=s.utils.hex2rgb(t.color),n.uniforms.alpha=t.worldAlpha,e.bindVao(r.vao),r.vao.draw(i.TRIANGLES,r.indices.length)}},i.updateGraphics=function(t,e){e.reset(),"stroke"===t.drawType?this.buildStroke(t,e):this.buildFill(t,e),t.isDirty=!1},i.buildStroke=function(t,e){for(var i=e.vertices,s=e.indices,r=t.paths,n=t.lineStyle,a=n.lineDash.length>=2,o=0;o<r.length;o++){var h=r[o],p=i.length/2,l=ve(h,n,i);if(a)for(var u=p+2;u<i.length/2;u+=2)l[u-p-1]&&s.push(u-2,u,u-1,u,u+1,u-1);else for(var c=p+2;c<i.length/2;c+=2)s.push(c-2,c,c-1,c,c+1,c-1)}e.upload()},i.buildFill=function(t,e){for(var i=e.vertices,r=e.indices,n=t.paths,a=[],o=[],h=0;h<n.length;h++){var p=n[h],l=[];if(ye(p,l))break;for(var u=p.holes,c=[],f=0;f<u.length;f++){var d=u[f],m=l.length;if(ye(d,l))break;c.push(m/2)}for(var v=s.utils.earcut(l,c,2),y=a.length/2,g=0;g<l.length;g+=2)a.push(l[g],l[g+1]);for(var _=0;_<v.length;_+=3)o.push(y+v[_],y+v[_+1],y+v[_+2])}a.length<6||o<3||(i.setBuffer(new Float32Array(a)),r.setBuffer(new Uint16Array(o)),e.upload())},i.getWebGLData=function(t){return t.webGLData&&this.CONTEXT_UID===t.webGLData.CONTEXT_UID||(t.webGLData=new pe(this.renderer.gl,this.primitiveShader,this.renderer.state.attribState),t.webGLData.CONTEXT_UID=this.CONTEXT_UID),t.webGLData},e}(s.ObjectRenderer)),s.CanvasRenderer.registerPlugin("lottiegraphics",function(){function t(t){this.renderer=t}var e=t.prototype;return e.destroy=function(){this.renderer=null},e.render=function(t){var e=this.renderer,i=e.context,s=t.lineStyle,r=t.worldAlpha,n=t.transform.worldTransform,a=e.resolution;i.setTransform(n.a*a,n.b*a,n.c*a,n.d*a,n.tx*a,n.ty*a),e.setBlendMode(t.blendMode),i.globalAlpha=r,"stroke"===t.drawType?(i.lineWidth=s.lineWidth,i.lineJoin=s.lineJoin,i.miterLimit=s.miterLimit,i.lineCap=s.lineCap,i.lineDashOffset=s.lineDashOffset,i.setLineDash(s.lineDash||[]),this.buildStroke(t)):this.buildFill(t)},e.buildStroke=function(t){var e=this.renderer.context,i="#"+("00000"+(0|t.color).toString(16)).substr(-6),s=t.paths,r=t.lineStyle;e.lineWidth=r.lineWidth,e.lineJoin=r.lineJoin,e.miterLimit=r.miterLimit,e.lineCap=r.lineCap,e.lineDashOffset=r.lineDashOffset,e.setLineDash(r.lineDash||[]),e.beginPath();for(var n=0;n<s.length;n++)this.drawPath(e,s[n]);e.strokeStyle=i,e.stroke()},e.buildFill=function(t){var e=this.renderer.context,i="#"+("00000"+(0|t.color).toString(16)).substr(-6),s=t.paths;e.beginPath();for(var r=0;r<s.length;r++){var n=s[r];this.drawPath(e,n);for(var a=0;a<n.holes.length;a++)this.drawPath(e,n.holes[a])}e.fillStyle=i,e.fill()},e.drawPath=function(t,e){for(var i=0;i<e.cmds.length;i++){var s=e.cmds[i],r=s.cmd,n=s.args;switch(r){case"M":t.moveTo(n[0],n[1]);break;case"L":t.lineTo(n[0],n[1]);break;case"C":t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}}},t}());var ge=function(){function t(){this.cmds=[],this.holes=[],this.isClosed=!1,this.isClockWise=!1}var e=t.prototype;return e.getLength=function(){return this.cmds.length},e.add=function(t,e){this.cmds.push({cmd:t,args:e})},e.moveTo=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.add("M",[t,e])},e.lineTo=function(t,e){this.add("L",[t,e])},e.bezierCurveTo=function(t,e,i,s,r,n){this.add("C",[t,e,i,s,r,n])},e.closePath=function(){this.isClosed=!0},t}(),_e=function(t){function e(){var e;return(e=t.call(this)||this).paths=[],e._samplerPoints=[],e.currentPath=null,e.color=0,e.lineStyle={lineWidth:1,lineJoin:"miter",miterLimit:10,lineCap:"butt",lineDash:[],lineDashOffset:0},e.isDirty=!0,e.drawType="",e.blendMode=s.BLEND_MODES.NORMAL,e.webGLData=null,e.firstIsClockWise=!0,e.preClockWiseStatus=null,e}_inheritsLoose(e,t);var i=e.prototype;return i.clear=function(){this.paths.length=0,this.currentPath=null,this.firstIsClockWise=!0,this.preClockWiseStatus=null,this.isDirty=!0},i.moveTo=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.endPath(),this.currentPath=new ge,this.currentPath.moveTo(t,e),this._samplerPoints.push([t,e])},i.lineTo=function(t,e){this.currentPath.lineTo(t,e),this._samplerPoints.push([t,e])},i.bezierCurveTo=function(t,e,i,s,r,n){this.currentPath.bezierCurveTo(t,e,i,s,r,n),this._samplerPoints.push([r,n])},i.endPath=function(){if(this.currentPath&&this.currentPath.getLength()>1){var t=this.paths.length,e=function(t){for(var e=t.length,i=0,s=e-1,r=0;r<e;s=r++)i+=t[s][0]*t[r][1]-t[r][0]*t[s][1];return.5*i}(this._samplerPoints)>0;this.currentPath.isClockWise=e,0===t&&(this.firstIsClockWise=e),t>0&&this.preClockWiseStatus===this.firstIsClockWise&&this.preClockWiseStatus!==e?(t>0?this.paths[t-1]:null).holes.push(this.currentPath):(this.paths.push(this.currentPath),this.preClockWiseStatus=e),this.currentPath=null,this.isDirty=!0}this._samplerPoints.length=0},i.closePath=function(){this.currentPath.closePath()},i.stroke=function(){this.endPath(),this.drawType="stroke"},i.fill=function(){null!==this.currentPath&&(this.closePath(),this.endPath(),this.drawType="fill")},i._renderWebGL=function(t){t.setObjectRenderer(t.plugins.lottiegraphics),t.plugins.lottiegraphics.render(this)},i._renderCanvas=function(t){t.plugins.lottiegraphics.render(this)},e}(s.Container),ke=function(t){function e(e,i){var r;return(r=t.call(this)||this).lottieElement=e,r.config=i,r.passMatrix=new s.Matrix,r}_inheritsLoose(e,t);var i=e.prototype;return i.setShapeTransform=function(){var t=this.lottieElement.preTransforms.finalTransform.props;this.passMatrix.set(t[0],t[1],t[4],t[5],t[12],t[13]),this.transform.setFromMatrix(this.passMatrix)},i.updateTransform=function(){this.setShapeTransform(),this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._bounds.updateID++},i.updateLottieGrahpics=function(t){var e=t.type;if(this.clear(),("st"!==e&&"gs"!==e||0!==t.wi)&&t.data._shouldRender&&0!==t.coOp){for(var i=t.elements,s=i.length,r=0;r<s;r+=1)for(var n=i[r].trNodes,a=n.length,o=0;o<a;o++)"m"==n[o].t?this.moveTo(n[o].p[0],n[o].p[1]):"c"==n[o].t?this.bezierCurveTo(n[o].pts[0],n[o].pts[1],n[o].pts[2],n[o].pts[3],n[o].pts[4],n[o].pts[5]):this.closePath();"st"!==e&&"gs"!==e||(t.da?(this.lineStyle.lineDash=t.da,this.lineStyle.lineDashOffset=t.do):this.lineStyle.lineDash=[]),"st"===e||"gs"===e?(this.lineStyle.lineWidth=t.wi,this.lineStyle.lineCap=t.lc,this.lineStyle.lineJoin=t.lj,this.lineStyle.miterLimit=t.ml||0,this.color=l.rgb2hex(t.co||t.grd),this.alpha=t.coOp,this.stroke()):(this.color=l.rgb2hex(t.co||t.grd),this.alpha=t.coOp,this.fill())}},e}(_e),Se=function(t){function e(e,i){var s;(s=t.call(this)||this).lottieElement=e,s.config=i;var r=parseInt(i.color.replace("#",""),16);return s.beginFill(r),s.drawRect(0,0,i.rect.width,i.rect.height),s.endFill(),s}_inheritsLoose(e,t);var i=e.prototype;return i.onSetupLottie=function(){if(this.lottieElement.hasValidMasks()){var t=this.config.session.local;this.graphicsMasks=new re(t),this.mask=this.graphicsMasks,this.addChild(this.mask)}},i.setHierarchy=function(t){this.hierarchy=t},i.show=function(){this.visible=!0},i.hide=function(){this.visible=!1},i.updateLottieTransform=function(t){this.x=t.x,this.y=t.y,this.pivot.x=t.anchorX,this.pivot.y=t.anchorY,this.scale.x=t.scaleX,this.scale.y=t.scaleY,this.rotation=t.rotation,this.alpha=t.alpha},i.updateLottieMasks=function(t){this.graphicsMasks&&this.graphicsMasks.updateMasks(t)},e}(s.Graphics),Te=function(t){function e(e,i){var r,n=i.texture,a=i.asset;return r=t.call(this,n)||this,n.baseTexture.hasLoaded?(n.orig=new s.Rectangle(0,0,a.w,a.h),n._updateUvs()):n.baseTexture.on("loaded",(function(){n.orig=new s.Rectangle(0,0,a.w,a.h),n._updateUvs()})),r.lottieElement=e,r.config=i,r}_inheritsLoose(e,t);var i=e.prototype;return i.onSetupLottie=function(){if(this.lottieElement.hasValidMasks()){var t=this.config.session.local;this.graphicsMasks=new re(t),this.mask=this.graphicsMasks,this.addChild(this.mask)}},i.setHierarchy=function(t){this.hierarchy=t},i.show=function(){this.visible=!0},i.hide=function(){this.visible=!1},i.updateLottieTransform=function(t){this.x=t.x,this.y=t.y,this.pivot.x=t.anchorX,this.pivot.y=t.anchorY,this.scale.x=t.scaleX,this.scale.y=t.scaleY,this.rotation=t.rotation,this.alpha=t.alpha},i.updateLottieMasks=function(t){this.graphicsMasks&&this.graphicsMasks.updateMasks(t)},e}(s.Sprite),Me=/^(https?:)?\/\//,we=function(t){function e(e,i){var s,r=i.prefix,n=i.autoLoad,a=void 0===n||n;return(s=t.call(this)||this).assets=e,s.prefix=r||"",s.textures={},s._total=0,s._failed=0,s._received=0,s.loaded=!1,a&&s.load(),s}_inheritsLoose(e,t);var i=e.prototype;return i.load=function(){var t=this;this.assets.forEach((function(e){var i=e.id,r=function(t,e){if(1===t.e)return t.p;e&&(e=e.replace(/\/?$/,"/"));var i=t.u+t.p;return t.up?t.up:Me.test(i)?i:e+i}(e,t.prefix),n=s.Texture.fromImage(r,"*");t.textures[i]=n,t._total++,n.baseTexture.hasLoaded?(t._received++,t.emit("update"),t._received+t._failed>=t._total&&t._onComplete()):(n.baseTexture.once("loaded",(function(){t._received++,t.emit("update"),t._received+t._failed>=t._total&&t._onComplete()})),n.baseTexture.once("error",(function(){t._failed++,t.emit("update"),t._received+t._failed>=t._total&&t._onComplete()})))}))},i._onComplete=function(){this.loaded=!0,this.emit("complete"),this._failed>0&&(this._failed>=this._total?this.emit("fail"):this.emit("partlyfail",this._failed))},i.getTextureById=function(t){return this.textures[t]},e}(u);function xe(t){return t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):void 0}var Pe=function(t){function e(e){var i;return(i=t.call(this)||this).path=e,i.onSuccess=i.onSuccess.bind(_assertThisInitialized(i)),i.onFail=i.onFail.bind(_assertThisInitialized(i)),function(t,e,i){var s,r=new XMLHttpRequest;r.open("GET",t,!0);try{r.responseType="json"}catch(t){console.error("lottie-pixi loadAjax:",t)}r.send(),r.onreadystatechange=function(){if(4==r.readyState)if(200==r.status)s=xe(r),e(s);else try{s=xe(r),e(s)}catch(t){i&&i(t)}}}(e,i.onSuccess,i.onFail),i}_inheritsLoose(e,t);var i=e.prototype;return i.onSuccess=function(t){this.emit("success",t),this.emit("complete",t)},i.onFail=function(t){this.emit("fail",t),this.emit("error",t)},e}(u),be={Linear:{None:function(t){return t}},Ease:{In:function(){var t=new O(.42,0,1,1);return function(e){return t.get(e)}}(),Out:function(){var t=new O(0,0,.58,1);return function(e){return t.get(e)}}(),InOut:function(){var t=new O(.42,0,.58,1);return function(e){return t.get(e)}}(),Bezier:function(t,e,i,s){var r=new O(t,e,i,s);return function(t){return r.get(t)}}},Elastic:{In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1}},Back:{In:function(t){var e=1.70158;return t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-be.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*be.Bounce.In(2*t):.5*be.Bounce.Out(2*t-1)+.5}}};function Le(t){u.call(this),this.element=t.element||{},this.duration=t.duration||300,this.living=!0,this.resident=t.resident||!1,this.infinite=t.infinite||!1,this.alternate=t.alternate||!1,this.repeats=t.repeats||0,this.delay=t.delay||0,this.wait=t.wait||0,this.timeScale=l.isNumber(t.timeScale)?t.timeScale:1,t.onComplete&&this.on("complete",t.onComplete.bind(this)),t.onUpdate&&this.on("update",t.onUpdate.bind(this)),this.init(),this.paused=!1}function Ce(t){for(var e in Le.call(this,t),t.from=t.from||{},t.to)l.isUndefined(t.from[e])&&(t.from[e]=this.element[e]);this.ease=t.ease||be.Ease.InOut,this.from=t.from,this.to=t.to}function De(t){Le.call(this,t),this.dynamicProperties=[],this._mdf=!1,this.keyframes=l.copyJSON(t.keyframes),this.frameRate=t.frameRate||30,this.tpf=1e3/this.frameRate,this.ip=l.isUndefined(t.ip)?this.keyframes.ip:t.ip,this.op=l.isUndefined(t.ip)?this.keyframes.op:t.op,this.tfs=this.op-this.ip,this.duration=this.tfs*this.tpf,this.ignoreProps=l.isArray(t.ignoreProps)?t.ignoreProps:[],this.transform=new Jt(this,this.keyframes.ks)}function Ie(t,e){Le.call(this,e),this.runners=[],this.queues=[],this.cursor=0,this.total=0,this.alternate=!1,t&&this.then(t)}Le.prototype=Object.create(u.prototype),Le.prototype.update=function(t){var e=this.direction*this.timeScale*t;if(this.waitCut>0)this.waitCut-=Math.abs(e);else{if(!(this.paused||!this.living||this.delayCut>0)){this.progress+=e;var i,s=!1,r=this.progress;return this.spill()&&(this.repeatsCut>0||this.infinite?(this.repeatsCut>0&&--this.repeatsCut,this.delayCut=this.delay,this.alternate?(this.direction*=-1,this.progress=l.codomainBounce(this.progress,0,this.duration)):(this.direction=1,this.progress=l.euclideanModulo(this.progress,this.duration))):s=!0),s?(this.resident||(this.living=!1),this.progress=l.clamp(r,0,this.duration),i=this.nextPose(),this.emit("complete",i,r-this.progress)):(i=this.nextPose(),this.emit("update",i,this.progress/this.duration)),i}this.delayCut>0&&(this.delayCut-=Math.abs(e))}},Le.prototype.spill=function(){var t=this.progress<=0&&-1===this.direction,e=this.progress>=this.duration&&1===this.direction;return t||e},Le.prototype.init=function(){this.direction=1,this.progress=0,this.repeatsCut=this.repeats,this.delayCut=this.delay,this.waitCut=this.wait},Le.prototype.nextPose=function(){console.warn("should be overwrite")},Le.prototype.linear=function(t,e,i){return(e-t)*i+t},Le.prototype.setSpeed=function(t){return this.timeScale=t,this},Le.prototype.pause=function(){return this.paused=!0,this},Le.prototype.resume=function(){return this.paused=!1,this},Le.prototype.restart=Le.prototype.resume,Le.prototype.stop=function(){return this.repeats=0,this.infinite=!1,this.progress=this.duration,this},Le.prototype.cancel=function(){return this.living=!1,this},Ce.prototype=Object.create(Le.prototype),Ce.prototype.nextPose=function(){var t={},e=this.ease(this.progress/this.duration);for(var i in this.to)void 0!==this.element[i]&&(this.element[i]=t[i]=this.linear(this.from[i],this.to[i],e));return t},De.prototype=Object.create(Le.prototype),De.prototype.prepareProperties=function(t){var e,i=this.dynamicProperties.length;for(e=0;e<i;e+=1)this.dynamicProperties[e].getValue(t),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},De.prototype.addDynamicProperty=function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)},De.prototype.nextPose=function(){var t={},e=this.ip+this.progress/this.tpf;return this.prepareProperties(e),-1===this.ignoreProps.indexOf("position")&&(-1===this.ignoreProps.indexOf("x")&&(t.x=this.element.x=this.transform.x),-1===this.ignoreProps.indexOf("y")&&(t.y=this.element.y=this.transform.y)),-1===this.ignoreProps.indexOf("pivot")&&(t.pivot={},-1===this.ignoreProps.indexOf("pivotX")&&(t.pivot.x=this.element.pivot.x=this.transform.anchorX),-1===this.ignoreProps.indexOf("pivotY")&&(t.pivot.y=this.element.pivot.y=this.transform.anchorY)),-1===this.ignoreProps.indexOf("scale")&&(t.scale={},-1===this.ignoreProps.indexOf("scaleX")&&(t.scale.x=this.element.scale.x=this.transform.scaleX),-1===this.ignoreProps.indexOf("scaleY")&&(t.scale.y=this.element.scale.y=this.transform.scaleY)),-1===this.ignoreProps.indexOf("rotation")&&(t.rotation=this.element.rotation=this.transform.rotation),-1===this.ignoreProps.indexOf("alpha")&&(t.alpha=this.element.alpha=this.transform.alpha),t},Ie.prototype=Object.create(Le.prototype),Ie.prototype.then=function(t){return this.queues.push(t),this.total=this.queues.length,this},Ie.prototype.nextOne=function(t,e){this.runners[this.cursor].init(),this.cursor++,this._residueTime=Math.abs(e)},Ie.prototype.initOne=function(){var t=this.queues[this.cursor];t.infinite=!1,t.resident=!0,t.element=this.element;var e=null;t.keyframes?e=new De(t):t.to&&(e=new Ce(t)),null!==e&&(e.on("complete",this.nextOne.bind(this)),this.runners.push(e))},Ie.prototype.nextPose=function(t){return!this.runners[this.cursor]&&this.queues[this.cursor]&&this.initOne(),this._residueTime>0&&(t+=this._residueTime,this._residueTime=0),this.runners[this.cursor].update(t)},Ie.prototype.update=function(t){if(this.wait>0)this.wait-=Math.abs(t);else{if(!(this.paused||!this.living||this.delayCut>0)){var e=this.cursor,i=this.nextPose(this.timeScale*t);return this.emit("update",{index:e,pose:i},this.progress/this.duration),this.spill()&&(this.repeats>0||this.infinite?(this.repeats>0&&--this.repeats,this.delayCut=this.delay,this.cursor=0):(this.resident||(this.living=!1),this.emit("complete",i))),i}this.delayCut>0&&(this.delayCut-=Math.abs(t))}},Ie.prototype.spill=function(){return this.cursor>=this.total};var Ae={settings:s.settings,UPDATE_PRIORITY:s.UPDATE_PRIORITY,animationTicker:s.ticker.shared};function Oe(t){this.element=t,this.animates=[],this.timeScale=1,this.paused=!1,this.updateDeltaTime=this.updateDeltaTime.bind(this),Ae.animationTicker.add(this.updateDeltaTime,Ae.UPDATE_PRIORITY.HIGH)}Oe.prototype.clearAnimators=function(t){if(!this.paused)for(var e=this.animates,i=0;i<t.length;i++){var s=t[i];e[s].living||e[s].resident||this.animates.splice(s,1)}},Oe.prototype.updateDeltaTime=function(t){if(!(this.animates.length<=0)){var e=t/Ae.settings.TARGET_FPMS;this.update(e)}},Oe.prototype.update=function(t){if(!(this.paused||this.animates.length<=0)){t=this.timeScale*t;for(var e=[],i=0;i<this.animates.length;i++)this.animates[i].living||this.animates[i].resident?this.animates[i].update(t):e.push(i);e.length>0&&this.clearAnimators(e)}},Oe.prototype.animate=function(t,e){return t.element=this.element,this._addMove(new Ce(t),e)},Oe.prototype.queues=function(t,e,i){return e.element=this.element,this._addMove(new Ie(t,e),i)},Oe.prototype.bodymovin=function(t,e){return t.element=this.element,this._addMove(new De(t),e)},Oe.prototype._addMove=function(t,e){return e&&this.clearAll(),this.animates.push(t),t},Oe.prototype.pause=function(){this.paused=!0},Oe.prototype.resume=function(){this.paused=!1},Oe.prototype.restart=Oe.prototype.resume,Oe.prototype.setSpeed=function(t){this.timeScale=t},Oe.prototype.clearAll=function(){this.animates.length=0},s.DisplayObject.prototype.setupAnimations=function(){this.animations||(this.animations=new Oe(this))},s.DisplayObject.prototype.animate=function(t,e){return this.animations||this.setupAnimations(),this.animations.animate(t,e)},s.DisplayObject.prototype.queues=function(t,e,i){return void 0===e&&(e={}),this.animations||this.setupAnimations(),this.animations.queues(t,e,i)},s.DisplayObject.prototype.bodymovin=function(t,e){return this.animations||this.setupAnimations(),this.animations.bodymovin(t,e)},Object.defineProperties(s.DisplayObject.prototype,{scaleXY:{get:function(){return this.scale.x},set:function(t){this.scale.set(t)}},scaleX:{get:function(){return this.scale.x},set:function(t){this.scale.x=t}},scaleY:{get:function(){return this.scale.y},set:function(t){this.scale.y=t}},pivotX:{get:function(){return this.pivot.x},set:function(t){this.pivot.x=t}},pivotY:{get:function(){return this.pivot.y},set:function(t){this.pivot.y=t}}}),s.Container.prototype.updateTransform=function(){this.emit("pretransform"),this._boundsID++,this.hierarchy&&this.hierarchy.transform?(this.hierarchy.updateTransform(),this.transform.updateTransform(this.hierarchy.transform)):this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var t=0,e=this.children.length;t<e;++t){var i=this.children[t];i.visible&&i.updateTransform()}this.emit("posttransform")},s.Container.prototype.containerUpdateTransform=s.Container.prototype.updateTransform;var Fe=Number.isFinite||function(t){return!("number"!=typeof t||t!=t||t===1/0||t===-1/0)},Ee=Number.isInteger||function(t){return"number"==typeof t&&Fe(t)&&Math.floor(t)===t},Ve=/^-?\d+$/,Ne=function(t){return"number"==typeof t?Ee(t)?t:void 0:"string"==typeof t&&Ve.test(t)?parseInt(t,10):void 0},qe=/OS (\d\d?_\d(_\d)?)/,je=(function(t){if(!t)return null;var e=qe.exec(t);if(!e)return null;var i=e[1].split("_").map(Ne);return{major:i[0],minor:i[1],patch:i[2]||0}}(window.navigator.userAgent)||{}).major;function ze(t){if(window.URL=window.URL||window.webkitURL,window.URL&&URL.createObjectURL){var e=function(t){for(var e=atob(t.split(",")[1]),i=new ArrayBuffer(e.length),s=new Uint8Array(i),r=t.split(",")[0].match(/:(.*?);/)[1],n=0,a=e.length;n<a;n++)s[n]=e.charCodeAt(n);var o,h=[s];try{o=new Blob(h,{type:r})}catch(t){console.log(t)}return o}(t);return URL.createObjectURL(e)}return t}m(d.Texture,(function(t,e){return new we(t,e)})),m(d.Ajax,(function(t){return new Pe(t)})),Nt(Vt.Null,ae),Nt(Vt.Path,ke),Nt(Vt.Shape,ae),Nt(Vt.Solid,Se),Nt(Vt.Sprite,Te),Nt(Vt.Component,ae),Nt(Vt.Container,s.Container);var Re=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.managerLife=["DisplayReady","ImageReady","success","error","complete","loopComplete","enterFrame","update"],e}return n(i,t),i.prototype.init=function(){this.renderSystem=this.game.getSystem("Renderer"),this.app=this.renderSystem.application},i.prototype.componentChanged=function(t){return o(this,void 0,void 0,(function(){return h(this,(function(i){return"Lottie"===t.componentName&&(t.type===e.OBSERVER_TYPE.ADD?this.add(t):t.type===e.OBSERVER_TYPE.REMOVE&&this.remove(t)),[2]}))}))},i.prototype.add=function(t){return o(this,void 0,void 0,(function(){var i,s,r,n,o,p,l,u;return h(this,(function(h){switch(h.label){case 0:return this.manager=new se(this.app),i=t.component,(s=this.renderSystem.containerManager.getContainer(t.gameObject.id))?(r=i.options,n=r.resource,o=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]])}return i}(r,["resource"]),[4,e.resource.getResource(n)]):[2];case 1:return p=h.sent().data,l=a({},p.json||{}),(l.assets||[]).forEach((function(t){var e;t.p&&(t.p=(e=t.p,je<=8&&/^data:image\/png;base64/.test(e)?ze(e):e))})),u=this.manager.parseAnimation(a({keyframes:l},o)),i.anim=u,s.addChildAt(u.group,0),this.managerLife.forEach((function(t){u.on(t,(function(e){return i.emit(t,e)}))})),u.isImagesLoaded&&i.emit("success",{}),[2]}}))}))},i.prototype.remove=function(t){var e=t.component,i=this.renderSystem.containerManager.getContainer(t.gameObject.id);i&&(i.removeChild(e.anim.group),e.anim.destroy()),e.anim=null},i.systemName="LottieSystem",i=function(t,e,i,s){var r,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a}([e.decorators.componentObserver({Lottie:[]})],i),i}(i.Renderer),Xe=Re,Ye=function(t){function e(e){var i=t.call(this)||this;return i.loadStatus=!1,i.firstPlay=null,i.prevSlot={},i.currentSlot={},i.options=a({autoStart:!1},e),i.on("success",(function(){i.loadStatus=!0;for(var t=i.anim.keyframes,e=t.ip,s=t.op,r=function(t){var e="@"+t;i.anim.on(e,(function(t){return i.emit(e,t)}))},n=e;n<=s;n++)r(n);i.firstPlay&&i.firstPlay()})),i}return n(e,t),e.prototype.play=function(t,e){var i=this;if(void 0===t&&(t=[]),void 0===e&&(e={repeats:0}),this.loadStatus){var r=e.slot;(void 0===r?[]:r).forEach((function(t){var e=t.name,r=t.type,n=t.value,a=t.style,o=void 0===a?{}:a,h=o.x,p=o.y,l=o.anchor,u=void 0===l?{x:0,y:0}:l,c=o.pivot,f=void 0===c?{x:0,y:0}:c,d=o.width,m=o.height;"IMAGE"===r?i.currentSlot[e]=s.Sprite.from(n):"TEXT"===r&&(i.currentSlot[e]=new s.Text(n,new s.TextStyle(o))),h&&(i.currentSlot[e].x=h),p&&(i.currentSlot[e].y=p),d&&(i.currentSlot[e].width=d),m&&(i.currentSlot[e].height=m),i.currentSlot[e].anchor.set(u.x||0,u.y||0),i.currentSlot[e].pivot.set(i.currentSlot[e].width*(f.x||0),i.currentSlot[e].height*(f.y||0)),i.prevSlot[e]&&i.anim.unbindSlot(e,i.prevSlot[e]),i.anim.bindSlot(e,i.currentSlot[e]),i.prevSlot[e]=i.currentSlot[e]})),this.anim.playSegment(this.playParamsHandle(t),e)}else this.firstPlay=function(){i.play(t,e)}},e.prototype.playParamsHandle=function(t){var e=[].concat(t),i=this.anim.keyframes;return!e.length||e.length>2?e=[i.ip,i.op]:1===e.length&&(e=[e[0]%i.op,i.op]),e},e.prototype.onTap=function(t,e){var i=this,r=new s.Graphics;this.on("success",(function(){var s=i.anim.querySelector(t),n=s.display;r.beginFill(16777215),r.drawRect(0,0,100,100),r.endFill(),r.alpha=0,n.addChild(r),s.display.interactive=!0,s.display.on("pointertap",(function(){e()}))}))},e.componentName="Lottie",e}(e.Component),Be=Ye;return e.resource.registerResourceType("LOTTIE"),t.Lottie=Be,t.LottieSystem=Xe,Object.defineProperty(t,"__esModule",{value:!0}),t}({},EVA,EVA.plugin.renderer,PIXI);window.EVA.plugin.renderer.lottie=window.EVA.plugin.renderer.lottie||_EVA_IIFE_lottie;