Help
RSS
API
Feed
Maltego
Contact
Domain > royalties.dardanosnet.gr
×
More information on this domain is in
AlienVault OTX
Is this malicious?
Yes
No
DNS Resolutions
Date
IP Address
2025-01-21
108.143.110.37
(
ClassC
)
Port 80
HTTP/1.1 301 Moved PermanentlyServer: nginx/1.18.0 (Ubuntu)Date: Tue, 21 Jan 2025 09:43:21 GMTContent-Type: text/htmlContent-Length: 178Connection: keep-aliveLocation: https://royalties.dardanosnet.gr/ html>head>title>301 Moved Permanently/title>/head>body>center>h1>301 Moved Permanently/h1>/center>hr>center>nginx/1.18.0 (Ubuntu)/center>/body>/html>
Port 443
HTTP/1.1 404 Server: nginx/1.18.0 (Ubuntu)Date: Tue, 21 Jan 2025 09:43:21 GMTContent-Type: text/html;charsetUTF-8Transfer-Encoding: chunkedConnection: keep-alive !DOCTYPE html>html langen>head> meta charsetUTF-8> meta http-equivX-UA-Compatible contentIEedge> meta nameviewport contentwidthdevice-width, initial-scale1.0> title>Error Page/title> style> @import url(https://fonts.googleapis.com/css?familyLato:300,400|Poppins:300,400,800&displayswap); * { margin: 0; padding: 0;}body, html { overflow: hidden;}.container { width: 100%; height: 100vh; background: #232323; display: flex; justify-content: center; align-items: center; flex-gap:10px;}@media (max-width:767px) { .container { flex-direction:column; } }.container .box { width: 250px; height: 250px; position: relative; display: flex; justify-content: center; flex-direction: column;}.container .box .title { width: 100%; position: relative; display: flex; align-items: center; height: 50px;}.container .box .title .block { width: 0%; height: inherit; background: #ffb510; position: absolute; animation: mainBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards; display: flex;}.container .box .title h1 { font-family: Poppins; color: #fff; font-size: 32px; -webkit-animation: mainFadeIn 2s forwards; -o-animation: mainFadeIn 2s forwards; animation: mainFadeIn 2s forwards; animation-delay: 1.6s; opacity: 0; display: flex; align-items: baseline; position: relative;}.container .box .title h1 span { width: 0px; height: 0px; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; background: #ffb510; -webkit-animation: load 0.6s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards; animation: popIn 0.8s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards; animation-delay: 2s; margin-left: 5px; margin-top: -10px; position: absolute; bottom: 13px; right: -12px;}.container .box .role { width: 100%; position: relative; display: flex; align-items: center; height: 30px; margin-top: -10px;}.container .box .role .block { width: 0%; height: inherit; background: #e91e63; position: absolute; animation: secBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards; animation-delay: 2s; display: flex;}.container .box .role p { animation: secFadeIn 2s forwards; animation-delay: 3.2s; opacity: 0; font-weight: 400; font-family: Lato; color: #ffffff; font-size: 12px; text-transform: uppercase; letter-spacing: 5px;}@keyframes mainBlock { 0% { width: 0%; left: 0; } 50% { width: 100%; left: 0; } 100% { width: 0; left: 100%; }}@keyframes secBlock { 0% { width: 0%; left: 0; } 50% { width: 100%; left: 0; } 100% { width: 0; left: 100%; }}@keyframes mainFadeIn { 0% { opacity: 0; } 100% { opacity: 1; }}@keyframes popIn { 0% { width: 0px; height: 0px; background: #e9d856; border: 0px solid #ddd; opacity: 0; } 50% { width: 10px; height: 10px; background: #e9d856; opacity: 1; bottom: 45px; } 65% { width: 7px; height: 7px; bottom: 0px; width: 15px; } 80% { width: 10px; height: 10px; bottom: 20px; } 100% { width: 7px; height: 7px; background: #e9d856; border: 0px solid #222; bottom: 13px; }}@keyframes secFadeIn { 0% { opacity: 0; } 100% { opacity: 0.5; }}footer { width: 250px; height: 50px; background: #ffffff; position: absolute; padding:20px; right: 0; bottom: -100px; display: flex; justify-content: center; align-items: center; animation: top 0.8s forwards; animation-delay: 4s;}@keyframes top { 0% { opacity: 0; bottom: -120px; } 100% { opacity: 1; bottom: 0px; }}@keyframes icon { 0% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1.3) rotate(-2deg); } 100% { opacity: 1; bottom: 0px; }} /style>/head>body> div classcontainer> div classlottie> lottie-player idanimation src backgroundtransparent speed1 stylewidth: 200px; height: 200px; autoplay>/lottie-player> /div> div classbox> div classtitle> span classblock>/span> h1>ERROR 404span>/span>/h1> /div> div classrole> div classblock>/div> p>Not Found./p> /div> /div> /div> script> var jsonData {v:4.8.0,meta:{g:LottieFiles AE 1.1.0,a:,k:,d:,tc:},fr:30,ip:0,op:230,w:500,h:500,nm:Shake,ddd:0,assets:{id:comp_0,layers:{ddd:0,ind:1,ty:4,nm:Shape Layer 3,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:40,ix:10},p:{a:0,k:375,375,0,ix:2},a:{a:0,k:14,2.5,0,ix:1},s:{a:0,k:100,100,100,ix:6}},ao:0,shapes:{ty:gr,it:{ind:0,ty:sh,ix:1,ks:{a:0,k:{i:0,0,0,0,o:0,0,0,0,v:14,-121,14,126,c:false},ix:2},nm:Path 1,mn:ADBE Vector Shape - Group,hd:false},{ty:st,c:{a:0,k:1,1,1,1,ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:30,ix:5},lc:2,lj:1,ml:4,bm:0,nm:Stroke 1,mn:ADBE Vector Graphic - Stroke,hd:false},{ty:tr,p:{a:0,k:0,0,ix:2},a:{a:0,k:0,0,ix:1},s:{a:0,k:100,100,ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:Transform},nm:Shape 1,np:3,cix:2,bm:0,ix:1,mn:ADBE Vector Group,hd:false},{ty:tm,s:{a:0,k:0,ix:1},e:{a:1,k:{i:{x:0.261,y:1},o:{x:0.286,y:0},t:143,s:0},{t:166,s:100},ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:Trim Paths 1,mn:ADBE Vector Filter - Trim,hd:false},ip:143,op:260,st:22,bm:0},{ddd:0,ind:2,ty:4,nm:Shape Layer 2,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-40,ix:10},p:{a:0,k:375,375,0,ix:2},a:{a:0,k:14,2.5,0,ix:1},s:{a:0,k:100,100,100,ix:6}},ao:0,shapes:{ty:gr,it:{ind:0,ty:sh,ix:1,ks:{a:0,k:{i:0,0,0,0,o:0,0,0,0,v:14,-121,14,126,c:false},ix:2},nm:Path 1,mn:ADBE Vector Shape - Group,hd:false},{ty:st,c:{a:0,k:1,1,1,1,ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:30,ix:5},lc:2,lj:1,ml:4,bm:0,nm:Stroke 1,mn:ADBE Vector Graphic - Stroke,hd:false},{ty:tr,p:{a:0,k:0,0,ix:2},a:{a:0,k:0,0,ix:1},s:{a:0,k:100,100,ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:Transform},nm:Shape 1,np:3,cix:2,bm:0,ix:1,mn:ADBE Vector Group,hd:false},{ty:tm,s:{a:0,k:0,ix:1},e:{a:1,k:{i:{x:0.261,y:1},o:{x:0.286,y:0},t:134,s:0},{t:157,s:100},ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:Trim Paths 1,mn:ADBE Vector Filter - Trim,hd:false},ip:134,op:260,st:13,bm:0},{ddd:0,ind:3,ty:4,nm:Circle Stroke,sr:1,ks:{o:{a:1,k:{i:{x:0.833,y:0.833},o:{x:0.167,y:0.167},t:0,s:0},{t:7,s:100},ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:375,375,0,ix:2},a:{a:0,k:4,-6,0,ix:1},s:{a:0,k:132,132,100,ix:6}},ao:0,shapes:{ty:gr,it:{d:1,ty:el,s:{a:0,k:306,306,ix:2},p:{a:0,k:0,0,ix:3},nm:Ellipse Path 1,mn:ADBE Vector Shape - Ellipse,hd:false},{ty:st,c:{a:1,k:{i:{x:0.833,y:0.833},o:{x:0.167,y:0.167},t:0,s:0,0,0,1},{i:{x:0.833,y:0.833},o:{x:0.167,y:0.167},t:87,s:0,0,0,1},{t:99,s:0.949019610882,0.074509806931,0.074509806931,1},ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:8,ix:5},lc:2,lj:1,ml:4,bm:0,nm:Stroke 1,mn:ADBE Vector Graphic - Stroke,hd:false},{ty:tr,p:{a:0,k:4,-6,ix:2},a:{a:0,k:0,0,ix:1},s:{a:0,k:100,100,ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:Transform},nm:Ellipse 1,np:3,cix:2,bm:0,ix:1,mn:ADBE Vector Group,hd:false},{ty:tm,s:{a:1,k:{i:{x:0.338,y:1},o:{x:0.333,y:0},t:87,s:50},{t:122,s:100},ix:1},e:{a:1,k:{i:{x:0.338,y:1},o:{x:0.333,y:0},t:87,s:45},{t:122,s:0},ix:2},o:{a:1,k:{i:{x:0.474,y:1},o:{x:0.43,y:0},t:0,s:-170.4},{t:111,s:-1250.4},ix:3},m:1,ix:2,nm:Trim Paths 1,mn:ADBE Vector Filter - Trim,hd:false},ip:0,op:260,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:Circle Fill,sr:1,ks:{o:{a:1,k:{i:{x:0.833,y:0.833},o:{x:0.167,y:0.167},t:-33,s:0},{t:-26,s:100},ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:375,375,0,ix:2},a:{a:0,k:4,-6,0,ix:1},s:{a:1,k:{i:{x:0.389,0.389,0.667,y:1,1,1},o:{x:0.333,0.333,0.333,y:0,0,0},t:121,s:0,0,100},{t:133,s:130.1,130.1,100},ix:6}},ao:0,shapes:{ty:gr,it:{d:1,ty:el,s:{a:0,k:306,306,ix:2},p:{a:0,k:0,0,ix:3},nm:Ellipse Path 1,mn:ADBE Vector Shape - Ellipse,hd:false},{ty:st,c:{a:0,k:1,1,1,1,ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:2,lj:1,ml:4,bm:0,nm:Stroke 1,mn:ADBE Vector Graphic - Stroke,hd:false},{ty:fl,c:{a:0,k:0.949019607843,0.074432911592,0.074432911592,1,ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:Fill 1,mn:ADBE Vector Graphic - Fill,hd:false},{ty:tr,p:{a:0,k:4,-6,ix:2},a:{a:0,k:0,0,ix:1},s:{a:0,k:100,100,ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:Transform},nm:Ellipse 1,np:3,cix:2,bm:0,ix:1,mn:ADBE Vector Group,hd:false},ip:121,op:260,st:-33,bm:0}},layers:{ddd:0,ind:1,ty:0,nm:Error,refId:comp_0,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:261,250,0,ix:2},a:{a:0,k:375,375,0,ix:1},s:{a:0,k:100,100,100,ix:6}},ao:0,w:750,h:750,ip:179,op:230,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:Error,refId:comp_0,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:{i:{x:0.833,y:0.833},o:{x:0.167,y:0.167},t:171,s:250,250,0,to:1.833,0,0,ti:-1.833,0,0},{t:173,s:261,250,0},ix:2,x:var $bm_rt;\n$bm_rt loopOut();},a:{a:0,k:375,375,0,ix:1},s:{a:0,k:100,100,100,ix:6}},ao:0,w:750,h:750,ip:0,op:179,st:0,bm:0},markers:}; document.getElementById(animation).srcjsonData; !function(t,e){objecttypeof exports&&undefined!typeof module?e(exports):functiontypeof define&&define.amd?define(exports,e):e((tundefined!typeof globalThis?globalThis:t||self)lottie-player{})}(this,(function(exports){use strict;function _asyncIterator(t){var e,r,i,s2;for(undefined!typeof Symbol&&(rSymbol.asyncIterator,iSymbol.iterator);s--;){if(r&&null!(etr))return e.call(t);if(i&&null!(eti))return new AsyncFromSyncIterator(e.call(t));r@@asyncIterator,i@@iterator}throw new TypeError(Object is not async iterable)}function AsyncFromSyncIterator(t){function e(t){if(Object(t)!t)return Promise.reject(new TypeError(t+ is not an object.));var et.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return AsyncFromSyncIteratorfunction(t){this.st,this.nt.next},AsyncFromSyncIterator.prototype{s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var rthis.s.return;return void 0r?Promise.resolve({value:t,done:!0}):e(r.apply(this.s,arguments))},throw:function(t){var rthis.s.return;return void 0r?Promise.reject(t):e(r.apply(this.s,arguments))}},new AsyncFromSyncIterator(t)}var REACT_ELEMENT_TYPE;function _jsx(t,e,r,i){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPEfunctiontypeof Symbol&&Symbol.for&&Symbol.for(react.element)||60103);var st&&t.defaultProps,aarguments.length-3;if(e||0a||(e{children:void 0}),1a)e.childreni;else if(a>1){for(var nnew Array(a),o0;oa;o++)noargumentso+3;e.childrenn}if(e&&s)for(var h in s)void 0eh&&(ehsh);else e||(es||{});return{$$typeof:REACT_ELEMENT_TYPE,type:t,key:void 0r?null:+r,ref:null,props:e,_owner:null}}function ownKeys(t,e){var rObject.keys(t);if(Object.getOwnPropertySymbols){var iObject.getOwnPropertySymbols(t);e&&(ii.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function _objectSpread2(t){for(var e1;earguments.length;e++){var rnull!argumentse?argumentse:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,re)})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _typeof(t){return _typeoffunctiontypeof Symbol&&symboltypeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&functiontypeof Symbol&&t.constructorSymbol&&t!Symbol.prototype?symbol:typeof t},_typeof(t)}function _wrapRegExp(){_wrapRegExpfunction(t,e){return new r(t,void 0,e)};var tRegExp.prototype,enew WeakMap;function r(t,i,s){var anew RegExp(t,i);return e.set(a,s||e.get(t)),_setPrototypeOf(a,r.prototype)}function i(t,r){var ie.get(r);return Object.keys(i).reduce((function(e,r){return ertir,e}),Object.create(null))}return _inherits(r,RegExp),r.prototype.execfunction(e){var rt.exec.call(this,e);return r&&(r.groupsi(r,this)),r},r.prototypeSymbol.replacefunction(r,s){if(stringtypeof s){var ae.get(this);return tSymbol.replace.call(this,r,s.replace(/\$(^>+)>/g,(function(t,e){return$+ae})))}if(functiontypeof s){var nthis;return tSymbol.replace.call(this,r,(function(){var targuments;returnobject!typeof tt.length-1&&(t.slice.call(t)).push(i(t,n)),s.apply(this,t)}))}return tSymbol.replace.call(this,r,s)},_wrapRegExp.apply(this,arguments)}function _AwaitValue(t){this.wrappedt}function _AsyncGenerator(t){var e,r;function i(e,r){try{var ate(r),na.value,on instanceof _AwaitValue;Promise.resolve(o?n.wrapped:n).then((function(t){o?i(returne?return:next,t):s(a.done?return:normal,t)}),(function(t){i(throw,t)}))}catch(t){s(throw,t)}}function s(t,s){switch(t){casereturn:e.resolve({value:s,done:!0});break;casethrow:e.reject(s);break;default:e.resolve({value:s,done:!1})}(ee.next)?i(e.key,e.arg):rnull}this._invokefunction(t,s){return new Promise((function(a,n){var o{key:t,arg:s,resolve:a,reject:n,next:null};r?rr.nexto:(ero,i(t,s))}))},function!typeof t.return&&(this.returnvoid 0)}function _wrapAsyncGenerator(t){return function(){return new _AsyncGenerator(t.apply(this,arguments))}}function _awaitAsyncGenerator(t){return new _AwaitValue(t)}function _asyncGeneratorDelegate(t,e){var r{},i!1;function s(r,s){return i!0,snew Promise((function(e){e(tr(s))})),{done:!1,value:e(s)}}return rundefined!typeof Symbol&&Symbol.iterator||@@iteratorfunction(){return this},r.nextfunction(t){return i?(i!1,t):s(next,t)},functiontypeof t.throw&&(r.throwfunction(t){if(i)throw i!1,t;return s(throw,t)}),functiontypeof t.return&&(r.returnfunction(t){return i?(i!1,t):s(return,t)}),r}function asyncGeneratorStep(t,e,r,i,s,a,n){try{var ota(n),ho.value}catch(t){return void r(t)}o.done?e(h):Promise.resolve(h).then(i,s)}function _asyncToGenerator(t){return function(){var ethis,rarguments;return new Promise((function(i,s){var at.apply(e,r);function n(t){asyncGeneratorStep(a,i,s,n,o,next,t)}function o(t){asyncGeneratorStep(a,i,s,n,o,throw,t)}n(void 0)}))}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError(Cannot call a class as a function)}function _defineProperties(t,e){for(var r0;re.length;r++){var ier;i.enumerablei.enumerable||!1,i.configurable!0,valuein i&&(i.writable!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),Object.defineProperty(t,prototype,{writable:!1}),t}function _defineEnumerableProperties(t,e){for(var r in e){(aer).configurablea.enumerable!0,valuein a&&(a.writable!0),Object.defineProperty(t,r,a)}if(Object.getOwnPropertySymbols)for(var iObject.getOwnPropertySymbols(e),s0;si.length;s++){var a,nis;(aen).configurablea.enumerable!0,valuein a&&(a.writable!0),Object.defineProperty(t,n,a)}return t}function _defaults(t,e){for(var rObject.getOwnPropertyNames(e),i0;ir.length;i++){var sri,aObject.getOwnPropertyDescriptor(e,s);a&&a.configurable&&void 0ts&&Object.defineProperty(t,s,a)}return t}function _defineProperty(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):ter,t}function _extends(){return _extendsObject.assign||function(t){for(var e1;earguments.length;e++){var rargumentse;for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(tiri)}return t},_extends.apply(this,arguments)}function _objectSpread(t){for(var e1;earguments.length;e++){var rnull!argumentse?Object(argumentse):{},iObject.keys(r);functiontypeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),i.forEach((function(e){_defineProperty(t,e,re)}))}return t}function _inherits(t,e){if(function!typeof e&&null!e)throw new TypeError(Super expression must either be null or a function);t.prototypeObject.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,prototype,{writable:!1}),e&&_setPrototypeOf(t,e)}function _inheritsLoose(t,e){t.prototypeObject.create(e.prototype),t.prototype.constructort,_setPrototypeOf(t,e)}function _getPrototypeOf(t){return _getPrototypeOfObject.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _setPrototypeOf(t,e){return _setPrototypeOfObject.setPrototypeOf||function(t,e){return t.__proto__e,t},_setPrototypeOf(t,e)}function _isNativeReflectConstruct(){if(undefinedtypeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(functiontypeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,,(function(){}))),!0}catch(t){return!1}}function _construct(t,e,r){return _construct_isNativeReflectConstruct()?Reflect.construct:function(t,e,r){var inull;i.push.apply(i,e);var snew(Function.bind.apply(t,i));return r&&_setPrototypeOf(s,r.prototype),s},_construct.apply(null,arguments)}function _isNativeFunction(t){return-1!Function.toString.call(t).indexOf(native code)}function _wrapNativeSuper(t){var efunctiontypeof Map?new Map:void 0;return _wrapNativeSuperfunction(t){if(nullt||!_isNativeFunction(t))return t;if(function!typeof t)throw new TypeError(Super expression must either be null or a function);if(void 0!e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return r.prototypeObject.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,t)},_wrapNativeSuper(t)}function _instanceof(t,e){return null!e&&undefined!typeof Symbol&&eSymbol.hasInstance?!!eSymbol.hasInstance(t):t instanceof e}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _getRequireWildcardCache(t){if(function!typeof WeakMap)return null;var enew WeakMap,rnew WeakMap;return(_getRequireWildcardCachefunction(t){return t?r:e})(t)}function _interopRequireWildcard(t,e){if(!e&&t&&t.__esModule)return t;if(nullt||object!typeof t&&function!typeof t)return{default:t};var r_getRequireWildcardCache(e);if(r&&r.has(t))return r.get(t);var i{},sObject.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(default!a&&Object.prototype.hasOwnProperty.call(t,a)){var ns?Object.getOwnPropertyDescriptor(t,a):null;n&&(n.get||n.set)?Object.defineProperty(i,a,n):iata}return i.defaultt,r&&r.set(t,i),i}function _newArrowCheck(t,e){if(t!e)throw new TypeError(Cannot instantiate an arrow function)}function _objectDestructuringEmpty(t){if(nullt)throw new TypeError(Cannot destructure undefined)}function _objectWithoutPropertiesLoose(t,e){if(nullt)return{};var r,i,s{},aObject.keys(t);for(i0;ia.length;i++)rai,e.indexOf(r)>0||(srtr);return s}function _objectWithoutProperties(t,e){if(nullt)return{};var r,i,s_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var aObject.getOwnPropertySymbols(t);for(i0;ia.length;i++)rai,e.indexOf(r)>0||Object.prototype.propertyIsEnumerable.call(t,r)&&(srtr)}return s}function _assertThisInitialized(t){if(void 0t)throw new ReferenceError(this hasnt been initialised - super() hasnt been called);return t}function _possibleConstructorReturn(t,e){if(e&&(objecttypeof e||functiontypeof e))return e;if(void 0!e)throw new TypeError(Derived constructors may only return object or undefined);return _assertThisInitialized(t)}function _createSuper(t){var e_isNativeReflectConstruct();return function(){var r,i_getPrototypeOf(t);if(e){var s_getPrototypeOf(this).constructor;rReflect.construct(i,arguments,s)}else ri.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!(t_getPrototypeOf(t)););return t}function _get(){return _getundefined!typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var i_superPropBase(t,e);if(i){var sObject.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length3?t:r):s.value}},_get.apply(this,arguments)}function set(t,e,r,i){return setundefined!typeof Reflect&&Reflect.set?Reflect.set:function(t,e,r,i){var s,a_superPropBase(t,e);if(a){if((sObject.getOwnPropertyDescriptor(a,e)).set)return s.set.call(i,r),!0;if(!s.writable)return!1}if(sObject.getOwnPropertyDescriptor(i,e)){if(!s.writable)return!1;s.valuer,Object.defineProperty(i,e,s)}else _defineProperty(i,e,r);return!0},set(t,e,r,i)}function _set(t,e,r,i,s){if(!set(t,e,r,i||t)&&s)throw new Error(failed to set property);return r}function _taggedTemplateLiteral(t,e){return e||(et.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _taggedTemplateLiteralLoose(t,e){return e||(et.slice(0)),t.rawe,t}function _readOnlyError(t){throw new TypeError(+t+ is read-only)}function _writeOnlyError(t){throw new TypeError(+t+ is write-only)}function _classNameTDZError(t){throw new Error(Class +t+ cannot be referenced in computed property keys.)}function _temporalUndefined(){}function _tdz(t){throw new ReferenceError(t+ is not defined - temporal dead zone)}function _temporalRef(t,e){return t_temporalUndefined?_tdz(e):t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _slicedToArrayLoose(t,e){return _arrayWithHoles(t)||_iterableToArrayLimitLoose(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _toArray(t){return _arrayWithHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _maybeArrayLike(t,e,r){if(e&&!Array.isArray(e)&&numbertypeof e.length){var ie.length;return _arrayLikeToArray(e,void 0!r&&ri?r:i)}return t(e,r)}function _iterableToArray(t){if(undefined!typeof Symbol&&null!tSymbol.iterator||null!t@@iterator)return Array.from(t)}function _iterableToArrayLimit(t,e){var rnullt?null:undefined!typeof Symbol&&tSymbol.iterator||t@@iterator;if(null!r){var i,s,a,n!0,o!1;try{for(rr.call(t);!(n(ir.next()).done)&&(a.push(i.value),!e||a.length!e);n!0);}catch(t){o!0,st}finally{try{n||nullr.return||r.return()}finally{if(o)throw s}}return a}}function _iterableToArrayLimitLoose(t,e){var rt&&(undefined!typeof Symbol&&tSymbol.iterator||t@@iterator);if(null!r){var i;for(rr.call(t),_step;!(_stepr.next()).done&&(i.push(_step.value),!e||i.length!e););return i}}function _unsupportedIterableToArray(t,e){if(t){if(stringtypeof t)return _arrayLikeToArray(t,e);var rObject.prototype.toString.call(t).slice(8,-1);returnObjectr&&t.constructor&&(rt.constructor.name),Mapr||Setr?Array.from(t):Argumentsr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(nulle||e>t.length)&&(et.length);for(var r0,inew Array(e);re;r++)irtr;return i}function _nonIterableSpread(){throw new TypeError(Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a Symbol.iterator() method.)}function _nonIterableRest(){throw new TypeError(Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a Symbol.iterator() method.)}function _createForOfIteratorHelper(t,e){var rundefined!typeof Symbol&&tSymbol.iterator||t@@iterator;if(!r){if(Array.isArray(t)||(r_unsupportedIterableToArray(t))||e&&t&&numbertypeof t.length){r&&(tr);var i0,sfunction(){};return{s:s,n:function(){return i>t.length?{done:!0}:{done:!1,value:ti++}},e:function(t){throw t},f:s}}throw new TypeError(Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a Symbol.iterator() method.)}var a,n!0,o!1;return{s:function(){rr.call(t)},n:function(){var tr.next();return nt.done,t},e:function(t){o!0,at},f:function(){try{n||nullr.return||r.return()}finally{if(o)throw a}}}}function _createForOfIteratorHelperLoose(t,e){var rundefined!typeof Symbol&&tSymbol.iterator||t@@iterator;if(r)return(rr.call(t)).next.bind(r);if(Array.isArray(t)||(r_unsupportedIterableToArray(t))||e&&t&&numbertypeof t.length){r&&(tr);var i0;return function(){return i>t.length?{done:!0}:{done:!1,value:ti++}}}throw new TypeError(Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a Symbol.iterator() method.)}function _skipFirstGeneratorNext(t){return function(){var et.apply(this,arguments);return e.next(),e}}function _toPrimitive(t,e){if(object!typeof t||nullt)return t;var rtSymbol.toPrimitive;if(void 0!r){var ir.call(t,e||default);if(object!typeof i)return i;throw new TypeError(@@toPrimitive must return a primitive value.)}return(stringe?String:Number)(t)}function _toPropertyKey(t){var e_toPrimitive(t,string);returnsymboltypeof e?e:String(e)}function _initializerWarningHelper(t,e){throw new Error(Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.)}function _initializerDefineProperty(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function _applyDecoratedDescriptor(t,e,r,i,s){var a{};return Object.keys(i).forEach((function(t){atit})),a.enumerable!!a.enumerable,a.configurable!!a.configurable,(valuein a||a.initializer)&&(a.writable!0),ar.slice().reverse().reduce((function(r,i){return i(t,e,r)||r}),a),s&&void 0!a.initializer&&(a.valuea.initializer?a.initializer.call(s):void 0,a.initializervoid 0),void 0a.initializer&&(Object.defineProperty(t,e,a),anull),a}_AsyncGenerator.prototypefunctiontypeof Symbol&&Symbol.asyncIterator||@@asyncIteratorfunction(){return this},_AsyncGenerator.prototype.nextfunction(t){return this._invoke(next,t)},_AsyncGenerator.prototype.throwfunction(t){return this._invoke(throw,t)},_AsyncGenerator.prototype.returnfunction(t){return this._invoke(return,t)};var id0;function _classPrivateFieldLooseKey(t){return__private_+id+++_+t}function _classPrivateFieldLooseBase(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError(attempted to use private field on non-instance);return t}function _classPrivateFieldGet(t,e){return _classApplyDescriptorGet(t,_classExtractFieldDescriptor(t,e,get))}function _classPrivateFieldSet(t,e,r){return _classApplyDescriptorSet(t,_classExtractFieldDescriptor(t,e,set),r),r}function _classPrivateFieldDestructureSet(t,e){return _classApplyDescriptorDestructureSet(t,_classExtractFieldDescriptor(t,e,set))}function _classExtractFieldDescriptor(t,e,r){if(!e.has(t))throw new TypeError(attempted to +r+ private field on non-instance);return e.get(t)}function _classStaticPrivateFieldSpecGet(t,e,r){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,get),_classApplyDescriptorGet(t,r)}function _classStaticPrivateFieldSpecSet(t,e,r,i){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,set),_classApplyDescriptorSet(t,r,i),i}function _classStaticPrivateMethodGet(t,e,r){return _classCheckPrivateStaticAccess(t,e),r}function _classStaticPrivateMethodSet(){throw new TypeError(attempted to set read only static private field)}function _classApplyDescriptorGet(t,e){return e.get?e.get.call(t):e.value}function _classApplyDescriptorSet(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError(attempted to set read only private field);e.valuer}}function _classApplyDescriptorDestructureSet(t,e){if(e.set)return__destrObjin e||(e.__destrObj{set value(r){e.set.call(t,r)}}),e.__destrObj;if(!e.writable)throw new TypeError(attempted to set read only private field);return e}function _classStaticPrivateFieldDestructureSet(t,e,r){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,set),_classApplyDescriptorDestructureSet(t,r)}function _classCheckPrivateStaticAccess(t,e){if(t!e)throw new TypeError(Private static access of wrong provenance)}function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0t)throw new TypeError(attempted to +e+ private static field before its declaration)}function _decorate(t,e,r,i){var s_getDecoratorsApi();if(i)for(var a0;ai.length;a++)sia(s);var ne((function(t){s.initializeInstanceElements(t,o.elements)}),r),os.decorateClass(_coalesceClassElements(n.d.map(_createElementDescriptor)),t);return s.initializeClassElements(n.F,o.elements),s.runClassFinishers(n.F,o.finishers)}function _getDecoratorsApi(){_getDecoratorsApifunction(){return t};var t{elementsDefinitionOrder:method,field,initializeInstanceElements:function(t,e){method,field.forEach((function(r){e.forEach((function(e){e.kindr&&owne.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var rt.prototype;method,field.forEach((function(i){e.forEach((function(e){var se.placement;if(e.kindi&&(statics||prototypes)){var astatics?t:r;this.defineClassElement(a,e)}}),this)}),this)},defineClassElement:function(t,e){var re.descriptor;if(fielde.kind){var ie.initializer;r{enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0i?void 0:i.call(t)}}Object.defineProperty(t,e.key,r)},decorateClass:function(t,e){var r,i,s{static:,prototype:,own:};if(t.forEach((function(t){this.addElementPlacement(t,s)}),this),t.forEach((function(t){if(!_hasDecorators(t))return r.push(t);var ethis.decorateElement(t,s);r.push(e.element),r.push.apply(r,e.extras),i.push.apply(i,e.finishers)}),this),!e)return{elements:r,finishers:i};var athis.decorateConstructor(r,e);return i.push.apply(i,a.finishers),a.finishersi,a},addElementPlacement:function(t,e,r){var iet.placement;if(!r&&-1!i.indexOf(t.key))throw new TypeError(Duplicated element (+t.key+));i.push(t.key)},decorateElement:function(t,e){for(var r,i,st.decorators,as.length-1;a>0;a--){var net.placement;n.splice(n.indexOf(t.key),1);var othis.fromElementDescriptor(t),hthis.toElementFinisherExtras((0,sa)(o)||o);th.element,this.addElementPlacement(t,e),h.finisher&&i.push(h.finisher);var lh.extras;if(l){for(var p0;pl.length;p++)this.addElementPlacement(lp,e);r.push.apply(r,l)}}return{element:t,finishers:i,extras:r}},decorateConstructor:function(t,e){for(var r,ie.length-1;i>0;i--){var sthis.fromClassDescriptor(t),athis.toClassDescriptor((0,ei)(s)||s);if(void 0!a.finisher&&r.push(a.finisher),void 0!a.elements){ta.elements;for(var n0;nt.length-1;n++)for(var on+1;ot.length;o++)if(tn.keyto.key&&tn.placementto.placement)throw new TypeError(Duplicated element (+tn.key+))}}return{elements:t,finishers:r}},fromElementDescriptor:function(t){var e{kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:Descriptor,configurable:!0}),fieldt.kind&&(e.initializert.initializer),e},toElementDescriptors:function(t){if(void 0!t)return _toArray(t).map((function(t){var ethis.toElementDescriptor(t);return this.disallowProperty(t,finisher,An element descriptor),this.disallowProperty(t,extras,An element descriptor),e}),this)},toElementDescriptor:function(t){var eString(t.kind);if(method!e&&field!e)throw new TypeError(An element descriptor\s .kind property must be either method or field, but a decorator created an element descriptor with .kind +e+);var r_toPropertyKey(t.key),iString(t.placement);if(static!i&&prototype!i&&own!i)throw new TypeError(An element descriptor\s .placement property must be one of static, prototype or own, but a decorator created an element descriptor with .placement +i+);var st.descriptor;this.disallowProperty(t,elements,An element descriptor);var a{kind:e,key:r,placement:i,descriptor:Object.assign({},s)};returnfield!e?this.disallowProperty(t,initializer,A method descriptor):(this.disallowProperty(s,get,The property descriptor of a field descriptor),this.disallowProperty(s,set,The property descriptor of a field descriptor),this.disallowProperty(s,value,The property descriptor of a field descriptor),a.initializert.initializer),a},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:_optionalCallableProperty(t,finisher),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e{kind:class,elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:Descriptor,configurable:!0}),e},toClassDescriptor:function(t){var eString(t.kind);if(class!e)throw new TypeError(A class descriptor\s .kind property must be class, but a decorator created a class descriptor with .kind +e+);this.disallowProperty(t,key,A class descriptor),this.disallowProperty(t,placement,A class descriptor),this.disallowProperty(t,descriptor,A class descriptor),this.disallowProperty(t,initializer,A class descriptor),this.disallowProperty(t,extras,A class descriptor);var r_optionalCallableProperty(t,finisher);return{elements:this.toElementDescriptors(t.elements),finisher:r}},runClassFinishers:function(t,e){for(var r0;re.length;r++){var i(0,er)(t);if(void 0!i){if(function!typeof i)throw new TypeError(Finishers must return a constructor.);ti}}return t},disallowProperty:function(t,e,r){if(void 0!te)throw new TypeError(r+ cant have a .+e+ property.)}};return t}function _createElementDescriptor(t){var e,r_toPropertyKey(t.key);methodt.kind?e{value:t.value,writable:!0,configurable:!0,enumerable:!1}:gett.kind?e{get:t.value,configurable:!0,enumerable:!1}:sett.kind?e{set:t.value,configurable:!0,enumerable:!1}:fieldt.kind&&(e{configurable:!0,writable:!0,enumerable:!0});var i{kind:fieldt.kind?field:method,key:r,placement:t.static?static:fieldt.kind?own:prototype,descriptor:e};return t.decorators&&(i.decoratorst.decorators),fieldt.kind&&(i.initializert.value),i}function _coalesceGetterSetter(t,e){void 0!t.descriptor.get?e.descriptor.gett.descriptor.get:e.descriptor.sett.descriptor.set}function _coalesceClassElements(t){for(var e,rfunction(t){returnmethodt.kind&&t.keya.key&&t.placementa.placement},i0;it.length;i++){var s,ati;if(methoda.kind&&(se.find(r)))if(_isDataDescriptor(a.descriptor)||_isDataDescriptor(s.descriptor)){if(_hasDecorators(a)||_hasDecorators(s))throw new ReferenceError(Duplicated methods (+a.key+) cant be decorated.);s.descriptora.descriptor}else{if(_hasDecorators(a)){if(_hasDecorators(s))throw new ReferenceError(Decorators cant be placed on different accessors with for the same property (+a.key+).);s.decoratorsa.decorators}_coalesceGetterSetter(a,s)}else e.push(a)}return e}function _hasDecorators(t){return t.decorators&&t.decorators.length}function _isDataDescriptor(t){return void 0!t&&!(void 0t.value&&void 0t.writable)}function _optionalCallableProperty(t,e){var rte;if(void 0!r&&function!typeof r)throw new TypeError(Expected +e+ to be a function);return r}function _classPrivateMethodGet(t,e,r){if(!e.has(t))throw new TypeError(attempted to get private field on non-instance);return r}function _checkPrivateRedeclaration(t,e){if(e.has(t))throw new TypeError(Cannot initialize the same private elements twice on an object)}function _classPrivateFieldInitSpec(t,e,r){_checkPrivateRedeclaration(t,e),e.set(t,r)}function _classPrivateMethodInitSpec(t,e){_checkPrivateRedeclaration(t,e),e.add(t)}function _classPrivateMethodSet(){throw new TypeError(attempted to reassign private method)}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED AS IS AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var _extendStaticsfunction(t,e){return _extendStaticsObject.setPrototypeOf||{__proto__:}instanceof Array&&function(t,e){t.__proto__e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(trer)},_extendStatics(t,e)};function __extends(t,e){if(function!typeof e&&null!e)throw new TypeError(Class extends value +String(e)+ is not a constructor or null);function r(){this.constructort}_extendStatics(t,e),t.prototypenulle?Object.create(e):(r.prototypee.prototype,new r)}var _assignfunction(){return _assignObject.assign||function(t){for(var e,r1,iarguments.length;ri;r++)for(var s in eargumentsr)Object.prototype.hasOwnProperty.call(e,s)&&(tses);return t},_assign.apply(this,arguments)};function __rest(t,e){var r{};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)0&&(riti);if(null!t&&functiontypeof Object.getOwnPropertySymbols){var s0;for(iObject.getOwnPropertySymbols(t);si.length;s++)e.indexOf(is)0&&Object.prototype.propertyIsEnumerable.call(t,is)&&(ristis)}return r}function __decorate(t,e,r,i){var s,aarguments.length,na3?e:nulli?iObject.getOwnPropertyDescriptor(e,r):i;if(objecttypeof Reflect&&functiontypeof Reflect.decorate)nReflect.decorate(t,e,r,i);else for(var ot.length-1;o>0;o--)(sto)&&(n(a3?s(n):a>3?s(e,r,n):s(e,r))||n);return a>3&&n&&Object.defineProperty(e,r,n),n}function __param(t,e){return function(r,i){e(r,i,t)}}function __metadata(t,e){if(objecttypeof Reflect&&functiontypeof Reflect.metadata)return Reflect.metadata(t,e)}function __awaiter(t,e,r,i){return new(r||(rPromise))((function(s,a){function n(t){try{h(i.next(t))}catch(t){a(t)}}function o(t){try{h(i.throw(t))}catch(t){a(t)}}function h(t){var e;t.done?s(t.value):(et.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,o)}h((ii.apply(t,e||)).next())}))}function __generator(t,e){var r,i,s,a,n{label:0,sent:function(){if(1&s0)throw s1;return s1},trys:,ops:};return a{next:o(0),throw:o(1),return:o(2)},functiontypeof Symbol&&(aSymbol.iteratorfunction(){return this}),a;function o(a){return function(o){return function(a){if(r)throw new TypeError(Generator is already executing.);for(;n;)try{if(r1,i&&(s2&a0?i.return:a0?i.throw||((si.return)&&s.call(i),0):i.next)&&!(ss.call(i,a1)).done)return s;switch(i0,s&&(a2&a0,s.value),a0){case 0:case 1:sa;break;case 4:return n.label++,{value:a1,done:!1};case 5:n.label++,ia1,a0;continue;case 7:an.ops.pop(),n.trys.pop();continue;default:if(!(sn.trys,(ss.length>0&&ss.length-1)||6!a0&&2!a0)){n0;continue}if(3a0&&(!s||a1>s0&&a1s3)){n.labela1;break}if(6a0&&n.labels1){n.labels1,sa;break}if(s&&n.labels2){n.labels2,n.ops.push(a);break}s2&&n.ops.pop(),n.trys.pop();continue}ae.call(t,n)}catch(t){a6,t,i0}finally{rs0}if(5&a0)throw a1;return{value:a0?a1:void 0,done:!0}}(a,o)}}}var __createBindingObject.create?function(t,e,r,i){void 0i&&(ir),Object.defineProperty(t,i,{enumerable:!0,get:function(){return er}})}:function(t,e,r,i){void 0i&&(ir),tier};function __exportStar(t,e){for(var r in t)defaultr||Object.prototype.hasOwnProperty.call(e,r)||__createBinding(e,t,r)}function __values(t){var efunctiontypeof Symbol&&Symbol.iterator,re&&te,i0;if(r)return r.call(t);if(t&&numbertypeof t.length)return{next:function(){return t&&i>t.length&&(tvoid 0),{value:t&&ti++,done:!t}}};throw new TypeError(e?Object is not iterable.:Symbol.iterator is not defined.)}function __read(t,e){var rfunctiontypeof Symbol&&tSymbol.iterator;if(!r)return t;var i,s,ar.call(t),n;try{for(;(void 0e||e-- >0)&&!(ia.next()).done;)n.push(i.value)}catch(t){s{error:t}}finally{try{i&&!i.done&&(ra.return)&&r.call(a)}finally{if(s)throw s.error}}return n}function __spread(){for(var t,e0;earguments.length;e++)tt.concat(__read(argumentse));return t}function __spreadArrays(){for(var t0,e0,rarguments.length;er;e++)t+argumentse.length;var iArray(t),s0;for(e0;er;e++)for(var aargumentse,n0,oa.length;no;n++,s++)isan;return i}function __spreadArray(t,e,r){if(r||2arguments.length)for(var i,s0,ae.length;sa;s++)!i&&s in e||(i||(iArray.prototype.slice.call(e,0,s)),ises);return t.concat(i||Array.prototype.slice.call(e))}function __await(t){return this instanceof __await?(this.vt,this):new __await(t)}function __asyncGenerator(t,e,r){if(!Symbol.asyncIterator)throw new TypeError(Symbol.asyncIterator is not defined.);var i,sr.apply(t,e||),a;return i{},n(next),n(throw),n(return),iSymbol.asyncIteratorfunction(){return this},i;function n(t){st&&(itfunction(e){return new Promise((function(r,i){a.push(t,e,r,i)>1||o(t,e)}))})}function o(t,e){try{!function(t){t.value instanceof __await?Promise.resolve(t.value.v).then(h,l):p(a02,t)}(st(e))}catch(t){p(a03,t)}}function h(t){o(next,t)}function l(t){o(throw,t)}function p(t,e){t(e),a.shift(),a.length&&o(a00,a01)}}function __asyncDelegator(t){var e,r;return e{},i(next),i(throw,(function(t){throw t})),i(return),eSymbol.iteratorfunction(){return this},e;function i(i,s){eiti?function(e){return(r!r)?{value:__await(ti(e)),done:returni}:s?s(e):e}:s}}function __asyncValues(t){if(!Symbol.asyncIterator)throw new TypeError(Symbol.asyncIterator is not defined.);var e,rtSymbol.asyncIterator;return r?r.call(t):(tfunctiontypeof __values?__values(t):tSymbol.iterator(),e{},i(next),i(throw),i(return),eSymbol.asyncIteratorfunction(){return this},e);function i(r){ertr&&function(e){return new Promise((function(i,s){(function(t,e,r,i){Promise.resolve(i).then((function(e){t({value:e,done:r})}),e)})(i,s,(etr(e)).done,e.value)}))}}}function __makeTemplateObject(t,e){return Object.defineProperty?Object.defineProperty(t,raw,{value:e}):t.rawe,t}var __setModuleDefaultObject.create?function(t,e){Object.defineProperty(t,default,{enumerable:!0,value:e})}:function(t,e){t.defaulte};function __importStar(t){if(t&&t.__esModule)return t;var e{};if(null!t)for(var r in t)default!r&&Object.prototype.hasOwnProperty.call(t,r)&&__createBinding(e,t,r);return __setModuleDefault(e,t),e}function __importDefault(t){return t&&t.__esModule?t:{default:t}}function __classPrivateFieldGet(t,e,r,i){if(ar&&!i)throw new TypeError(Private accessor was defined without a getter);if(functiontypeof e?t!e||!i:!e.has(t))throw new TypeError(Cannot read private member from an object whose class did not declare it);returnmr?i:ar?i.call(t):i?i.value:e.get(t)}function __classPrivateFieldSet(t,e,r,i,s){if(mi)throw new TypeError(Private method is not writable);if(ai&&!s)throw new TypeError(Private accessor was defined without a setter);if(functiontypeof e?t!e||!s:!e.has(t))throw new TypeError(Cannot write private member to an object whose class did not declare it);returnai?s.call(t,r):s?s.valuer:e.set(t,r),r/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */}var t$3window.ShadowRoot&&(void 0window.ShadyCSS||window.ShadyCSS.nativeShadow)&&adoptedStyleSheetsin Document.prototype&&replacein CSSStyleSheet.prototype,e$8Symbol(),n$5new Map;class s$3{constructor(t,e){if(this._$cssResult$!0,e!e$8)throw Error(CSSResult is not constructable. Use `unsafeCSS` or `css` instead.);this.cssTextt}get styleSheet(){var tn$5.get(this.cssText);return t$3&&void 0t&&(n$5.set(this.cssText,tnew CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}var o$5t>new s$3(stringtypeof t?t:t+,e$8),r$3function(t){for(var earguments.length,rnew Array(e>1?e-1:0),i1;ie;i++)ri-1argumentsi;var s1t.length?t0:r.reduce(((e,r,i)>e+(t>{if(!0t._$cssResult$)return t.cssText;if(numbertypeof t)return t;throw Error(Value passed to css function must be a css function result: +t+. Use unsafeCSS to pass non-literal values, but take care to ensure page security.)})(r)+ti+1),t0);return new s$3(s,e$8)},i$3(t,e)>{t$3?t.adoptedStyleSheetse.map((t>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e>{var rdocument.createElement(style),iwindow.litNonce;void 0!i&&r.setAttribute(nonce,i),r.textContente.cssText,t.appendChild(r)}))},S$1t$3?t>t:t>t instanceof CSSStyleSheet?(t>{var e;for(var r of t.cssRules)e+r.cssText;return o$5(e)})(t):t/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */,s$2,e$7window.trustedTypes,r$2e$7?e$7.emptyScript:,h$2window.reactiveElementPolyfillSupport,o$4{toAttribute(t,e){switch(e){case Boolean:tt?r$2:null;break;case Object:case Array:tnullt?t:JSON.stringify(t)}return t},fromAttribute(t,e){var rt;switch(e){case Boolean:rnull!t;break;case Number:rnullt?null:Number(t);break;case Object:case Array:try{rJSON.parse(t)}catch(t){rnull}}return r}},n$4(t,e)>e!t&&(ee||tt),l$3{attribute:!0,type:String,converter:o$4,reflect:!1,hasChanged:n$4},t$2;class a$1 extends HTMLElement{constructor(){super(),this._$Etnew Map,this.isUpdatePending!1,this.hasUpdated!1,this._$Einull,this.o()}static addInitializer(t){var e;null!(ethis.l)&&void 0!e||(this.l),this.l.push(t)}static get observedAttributes(){this.finalize();var t;return this.elementProperties.forEach(((e,r)>{var ithis._$Eh(r,e);void 0!i&&(this._$Eu.set(i,r),t.push(i))})),t}static createProperty(t){var earguments.length>1&&void 0!arguments1?arguments1:l$3;if(e.state&&(e.attribute!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var rsymboltypeof t?Symbol():__+t,ithis.getPropertyDescriptor(t,r,e);void 0!i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){return{get(){return thise},set(i){var sthist;thisei,this.requestUpdate(t,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l$3}static finalize(){if(this.hasOwnProperty(finalized))return!1;this.finalized!0;var tObject.getPrototypeOf(this);if(t.finalize(),this.elementPropertiesnew Map(t.elementProperties),this._$Eunew Map,this.hasOwnProperty(properties)){var ethis.properties,r...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e);for(var i of r)this.createProperty(i,ei)}return this.elementStylesthis.finalizeStyles(this.styles),!0}static finalizeStyles(t){var e;if(Array.isArray(t)){var rnew Set(t.flat(1/0).reverse());for(var i of r)e.unshift(S$1(i))}else void 0!t&&e.push(S$1(t));return e}static _$Eh(t,e){var re.attribute;return!1r?void 0:stringtypeof r?r:stringtypeof t?t.toLowerCase():void 0}o(){var t;this._$Epnew Promise((t>this.enableUpdatingt)),this._$ALnew Map,this._$Em(),this.requestUpdate(),null(tthis.constructor.l)||void 0t||t.forEach((t>t(this)))}addController(t){var e,r;(null!(ethis._$Eg)&&void 0!e?e:this._$Eg).push(t),void 0!this.renderRoot&&this.isConnected&&(null(rt.hostConnected)||void 0r||r.call(t))}removeController(t){var e;null(ethis._$Eg)||void 0e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)>{this.hasOwnProperty(e)&&(this._$Et.set(e,thise),delete thise)}))}createRenderRoot(){var t,enull!(tthis.shadowRoot)&&void 0!t?t:this.attachShadow(this.constructor.shadowRootOptions);return i$3(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0this.renderRoot&&(this.renderRootthis.createRenderRoot()),this.enableUpdating(!0),null(tthis._$Eg)||void 0t||t.forEach((t>{var e;return null(et.hostConnected)||void 0e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null(tthis._$Eg)||void 0t||t.forEach((t>{var e;return null(et.hostDisconnected)||void 0e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ES(t,e){var r,i,sarguments.length>2&&void 0!arguments2?arguments2:l$3,athis.constructor._$Eh(t,s);if(void 0!a&&!0s.reflect){var n(null!(inull(rs.converter)||void 0r?void 0:r.toAttribute)&&void 0!i?i:o$4.toAttribute)(e,s.type);this._$Eit,nulln?this.removeAttribute(a):this.setAttribute(a,n),this._$Einull}}_$AK(t,e){var r,i,s,athis.constructor,na._$Eu.get(t);if(void 0!n&&this._$Ei!n){var oa.getPropertyOptions(n),ho.converter,lnull!(snull!(inull(rh)||void 0r?void 0:r.fromAttribute)&&void 0!i?i:functiontypeof h?h:null)&&void 0!s?s:o$4.fromAttribute;this._$Ein,thisnl(e,o.type),this._$Einull}}requestUpdate(t,e,r){var i!0;void 0!t&&(((rr||this.constructor.getPropertyOptions(t)).hasChanged||n$4)(thist,e)?(this._$AL.has(t)||this._$AL.set(t,e),!0r.reflect&&this._$Ei!t&&(void 0this._$E_&&(this._$E_new Map),this._$E_.set(t,r))):i!1),!this.isUpdatePending&&i&&(this._$Epthis._$EC())}_$EC(){var tthis;return _asyncToGenerator((function*(){t.isUpdatePending!0;try{yield t._$Ep}catch(e){Promise.reject(e)}var et.scheduleUpdate();return null!e&&(yield e),!t.isUpdatePending}))()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)>thiset)),this._$Etvoid 0);var e!1,rthis._$AL;try{(ethis.shouldUpdate(r))?(this.willUpdate(r),null(tthis._$Eg)||void 0t||t.forEach((t>{var e;return null(et.hostUpdate)||void 0e?void 0:e.call(t)})),this.update(r)):this._$EU()}catch(t){throw e!1,this._$EU(),t}e&&this._$AE(r)}}willUpdate(t){}_$AE(t){var e;null(ethis._$Eg)||void 0e||e.forEach((t>{var e;return null(et.hostUpdated)||void 0e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$ALnew Map,this.isUpdatePending!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!this._$E_&&(this._$E_.forEach(((t,e)>this._$ES(e,thise,t))),this._$E_void 0),this._$EU()}updated(t){}firstUpdated(t){}}a$1.finalized!0,a$1.elementPropertiesnew Map,a$1.elementStyles,a$1.shadowRootOptions{mode:open},nullh$2||h$2({ReactiveElement:a$1}),(null!(s$2globalThis.reactiveElementVersions)&&void 0!s$2?s$2:globalThis.reactiveElementVersions).push(1.2.1);var i$2globalThis.trustedTypes,s$1i$2?i$2.createPolicy(lit-html,{createHTML:t>t}):void 0,e$6lit$.concat((Math.random()+).slice(9),$),o$3?+e$6,n$3.concat(o$3,>),l$2document,h$1function(){var targuments.length>0&&void 0!arguments0?arguments0:;return l$2.createComment(t)},r$1t>nullt||object!typeof t&&function!typeof t,dArray.isArray,ut>{var e;return d(t)||functiontypeof(null(et)||void 0e?void 0:eSymbol.iterator)},c/(?:(!--|\/^a-zA-Z)|(\/?a-zA-Z^>\s*)|(\/?$))/g,v/-->/g,a/>/g,f/>| \n\r(?:(^\s>/+)( \n\r* \n\r*(?:^ \n\r`>|(|)|))|$)/g,_//g,m//g,g/^(?:script|style|textarea)$/i,pt>function(e){for(var rarguments.length,inew Array(r>1?r-1:0),s1;sr;s++)is-1argumentss;return{_$litType$:t,strings:e,values:i}},$p(1),yp(2),bSymbol.for(lit-noChange),wSymbol.for(lit-nothing),Tnew WeakMap,x(t,e,r)>{var i,s,anull!(inullr?void 0:r.renderBefore)&&void 0!i?i:e,na._$litPart$;if(void 0n){var onull!(snullr?void 0:r.renderBefore)&&void 0!s?s:null;a._$litPart$nnew N(e.insertBefore(h$1(),o),o,void 0,null!r?r:{})}return n._$AI(t),n},Al$2.createTreeWalker(l$2,129,null,!1),C(t,e)>{for(var r,it.length-1,s,n2e?svg>:,oc,h0;hi;h++){for(var lth,pvoid 0,dvoid 0,u-1,y0;yl.length&&(o.lastIndexy,null!(do.exec(l)));)yo.lastIndex,oc?!--d1?ov:void 0!d1?oa:void 0!d2?(g.test(d2)&&(rRegExp(/+d2,g)),of):void 0!d3&&(of):of?>d0?(onull!r?r:c,u-1):void 0d1?u-2:(uo.lastIndex-d2.length,pd1,ovoid 0d3?f:d3?m:_):om||o_?of:ov||oa?oc:(of,rvoid 0);var bof&&th+1.startsWith(/>)? :;n+oc?l+n$3:u>0?(s.push(p),l.slice(0,u)+$lit$+l.slice(u)+e$6+b):l+e$6+(-2u?(s.push(void 0),h):b)}var Pn+(ti||?>)+(2e?/svg>:);if(!Array.isArray(t)||!t.hasOwnProperty(raw))throw Error(invalid template strings array);returnvoid 0!s$1?s$1.createHTML(P):P,s};class E{constructor(t,e){var r,{strings:i,_$litType$:s}t;this.parts;var a0,n0,oi.length-1,hthis.parts,l,pC(i,s);if(this.elE.createElement(l,e),A.currentNodethis.el.content,2s){var cthis.el.content,fc.firstChild;f.remove(),c.append(...f.childNodes)}for(;null!(rA.nextNode())&&h.lengtho;){if(1r.nodeType){if(r.hasAttributes()){var d;for(var u of r.getAttributeNames())if(u.endsWith($lit$)||u.startsWith(e$6)){var mpn++;if(d.push(u),void 0!m){var yr.getAttribute(m.toLowerCase()+$lit$).split(e$6),v/(.?@)?(.*)/.exec(m);h.push({type:1,index:a,name:v2,strings:y,ctor:.v1?M:?v1?H:@v1?I:S})}else h.push({type:6,index:a})}for(var b of d)r.removeAttribute(b)}if(g.test(r.tagName)){var _r.textContent.split(e$6),P_.length-1;if(P>0){r.textContenti$2?i$2.emptyScript:;for(var x0;xP;x++)r.append(_x,h$1()),A.nextNode(),h.push({type:2,index:++a});r.append(_P,h$1())}}}else if(8r.nodeType)if(r.datao$3)h.push({type:2,index:a});else for(var w-1;-1!(wr.data.indexOf(e$6,w+1));)h.push({type:7,index:a}),w+e$6.length-1;a++}}static createElement(t,e){var rl$2.createElement(template);return r.innerHTMLt,r}}function P(t,e){var r,i,s,a,narguments.length>2&&void 0!arguments2?arguments2:t,oarguments.length>3?arguments3:void 0;if(eb)return e;var hvoid 0!o?null(rn._$Cl)||void 0r?void 0:ro:n._$Cu,lr$1(e)?void 0:e._$litDirective$;return(nullh?void 0:h.constructor)!l&&(null(inullh?void 0:h._$AO)||void 0i||i.call(h,!1),void 0l?hvoid 0:(hnew l(t))._$AT(t,n,o),void 0!o?(null!(s(an)._$Cl)&&void 0!s?s:a._$Cl)oh:n._$Cuh),void 0!h&&(eP(t,h._$AS(t,e.values),h,o)),e}class V{constructor(t,e){this.v,this._$ANvoid 0,this._$ADt,this._$AMe}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e,{el:{content:r},parts:i}this._$AD,s(null!(enullt?void 0:t.creationScope)&&void 0!e?e:l$2).importNode(r,!0);A.currentNodes;for(var aA.nextNode(),n0,o0,hi0;void 0!h;){if(nh.index){var lvoid 0;2h.type?lnew N(a,a.nextSibling,this,t):1h.type?lnew h.ctor(a,h.name,h.strings,this,t):6h.type&&(lnew L(a,this,t)),this.v.push(l),hi++o}n!(nullh?void 0:h.index)&&(aA.nextNode(),n++)}return s}m(t){var e0;for(var r of this.v)void 0!r&&(void 0!r.strings?(r._$AI(t,r,e),e+r.strings.length-2):r._$AI(te)),e++}}class N{constructor(t,e,r,i){var s;this.type2,this._$AHw,this._$ANvoid 0,this._$AAt,this._$ABe,this._$AMr,this.optionsi,this._$Cgnull(snulli?void 0:i.isConnected)||void 0s||s}get _$AU(){var t,e;return null!(enull(tthis._$AM)||void 0t?void 0:t._$AU)&&void 0!e?e:this._$Cg}get parentNode(){var tthis._$AA.parentNode,ethis._$AM;return void 0!e&&11t.nodeType&&(te.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t){tP(this,t,arguments.length>1&&void 0!arguments1?arguments1:this),r$1(t)?tw||nullt||t?(this._$AH!w&&this._$AR(),this._$AHw):t!this._$AH&&t!b&&this.$(t):void 0!t._$litType$?this.T(t):void 0!t.nodeType?this.S(t):u(t)?this.A(t):this.$(t)}M(t){var earguments.length>1&&void 0!arguments1?arguments1:this._$AB;return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!t&&(this._$AR(),this._$AHthis.M(t))}$(t){this._$AH!w&&r$1(this._$AH)?this._$AA.nextSibling.datat:this.S(l$2.createTextNode(t)),this._$AHt}T(t){var e,{values:r,_$litType$:i}t,snumbertypeof i?this._$AC(t):(void 0i.el&&(i.elE.createElement(i.h,this.options)),i);if((null(ethis._$AH)||void 0e?void 0:e._$AD)s)this._$AH.m(r);else{var anew V(s,this),na.p(this.options);a.m(r),this.S(n),this._$AHa}}_$AC(t){var eT.get(t.strings);return void 0e&&T.set(t.strings,enew E(t)),e}A(t){d(this._$AH)||(this._$AH,this._$AR());var e,rthis._$AH,i0;for(var s of t)ir.length?r.push(enew N(this.M(h$1()),this.M(h$1()),this,this.options)):eri,e._$AI(s),i++;ir.length&&(this._$AR(e&&e._$AB.nextSibling,i),r.lengthi)}_$AR(){var t,earguments.length>0&&void 0!arguments0?arguments0:this._$AA.nextSibling,rarguments.length>1?arguments1:void 0;for(null(tthis._$AP)||void 0t||t.call(this,!1,!0,r);e&&e!this._$AB;){var ie.nextSibling;e.remove(),ei}}setConnected(t){var e;void 0this._$AM&&(this._$Cgt,null(ethis._$AP)||void 0e||e.call(this,t))}}class S{constructor(t,e,r,i,s){this.type1,this._$AHw,this._$ANvoid 0,this.elementt,this.namee,this._$AMi,this.optionss,r.length>2||!r0||!r1?(this._$AHArray(r.length-1).fill(new String),this.stringsr):this._$AHw}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t){var earguments.length>1&&void 0!arguments1?arguments1:this,rarguments.length>2?arguments2:void 0,iarguments.length>3?arguments3:void 0,sthis.strings,a!1;if(void 0s)tP(this,t,e,0),(a!r$1(t)||t!this._$AH&&t!b)&&(this._$AHt);else{var n,o,ht;for(ts0,n0;ns.length-1;n++)(oP(this,hr+n,e,n))b&&(othis._$AHn),a||(a!r$1(o)||o!this._$AHn),ow?tw:t!w&&(t+(null!o?o:)+sn+1),this._$AHno}a&&!i&&this.k(t)}k(t){tw?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!t?t:)}}class M extends S{constructor(){super(...arguments),this.type3}k(t){this.elementthis.nametw?void 0:t}}var ki$2?i$2.emptyScript:;class H extends S{constructor(){super(...arguments),this.type4}k(t){t&&t!w?this.element.setAttribute(this.name,k):this.element.removeAttribute(this.name)}}class I extends S{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type5}_$AI(t){var e;if((tnull!(eP(this,t,arguments.length>1&&void 0!arguments1?arguments1:this,0))&&void 0!e?e:w)!b){var rthis._$AH,itw&&r!w||t.capture!r.capture||t.once!r.once||t.passive!r.passive,st!w&&(rw||i);i&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AHt}}handleEvent(t){var e,r;functiontypeof this._$AH?this._$AH.call(null!(rnull(ethis.options)||void 0e?void 0:e.host)&&void 0!r?r:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,e,r){this.elementt,this.type6,this._$ANvoid 0,this._$AMe,this.optionsr}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}var R{P:$lit$,V:e$6,L:o$3,I:1,N:C,R:V,D:u,j:P,H:N,O:S,F:H,B:I,W:M,Z:L},zwindow.litHtmlPolyfillSupport,l$1,o$2;nullz||z(E,N),(null!(t$2globalThis.litHtmlVersions)&&void 0!t$2?t$2:globalThis.litHtmlVersions).push(2.1.2);var ra$1;class s extends a$1{constructor(){super(...arguments),this.renderOptions{host:this},this._$Dtvoid 0}createRenderRoot(){var t,e,rsuper.createRenderRoot();return null!(t(ethis.renderOptions).renderBefore)&&void 0!t||(e.renderBeforer.firstChild),r}update(t){var ethis.render();this.hasUpdated||(this.renderOptions.isConnectedthis.isConnected),super.update(t),this._$Dtx(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null(tthis._$Dt)||void 0t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null(tthis._$Dt)||void 0t||t.setConnected(!1)}render(){return b}}s.finalized!0,s._$litElement$!0,null(l$1globalThis.litElementHydrateSupport)||void 0l$1||l$1.call(globalThis,{LitElement:s});var n$2globalThis.litElementPolyfillSupport;nulln$2||n$2({LitElement:s});var h{_$AK:(t,e,r)>{t._$AK(e,r)},_$AL:t>t._$AL};(null!(o$2globalThis.litElementVersions)&&void 0!o$2?o$2:globalThis.litElementVersions).push(3.1.2);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var n$1t>e>functiontypeof e?((t,e)>(window.customElements.define(t,e),e))(t,e):((t,e)>{var{kind:r,elements:i}e;return{kind:r,elements:i,finisher(e){window.customElements.define(t,e)}}})(t,e)/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */,i$1(t,e)>methode.kind&&e.descriptor&&!(valuein e.descriptor)?_objectSpread2(_objectSpread2({},e),{},{finisher(r){r.createProperty(e.key,t)}}):{kind:field,key:Symbol(),placement:own,descriptor:{},originalKey:e.key,initializer(){functiontypeof e.initializer&&(thise.keye.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function e$5(t){return(e,r)>void 0!r?((t,e,r)>{e.constructor.createProperty(r,t)})(t,e,r):i$1(t,e)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function t$1(t){return e$5(_objectSpread2(_objectSpread2({},t),{},{state:!0}))}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var e$4(t,e,r)>{Object.defineProperty(e,r,t)},t(t,e)>({kind:method,placement:prototype,key:e.key,descriptor:t}),o$1t>{var{finisher:e,descriptor:r}t;return(t,i)>{var s;if(void 0i){var anull!(st.originalKey)&&void 0!s?s:t.key,nnull!r?{kind:method,placement:prototype,key:a,descriptor:r(t.key)}:_objectSpread2(_objectSpread2({},t),{},{key:a});return null!e&&(n.finisherfunction(t){e(t,a)}),n}var ot.constructor;void 0!r&&Object.defineProperty(t,i,r(i)),nulle||e(o,i)}},n;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function e$3(t){return o$1({finisher:(e,r)>{Object.assign(e.prototyper,t)}})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function i(t,e){return o$1({descriptor:r>{var i{get(){var e,r;return null!(rnull(ethis.renderRoot)||void 0e?void 0:e.querySelector(t))&&void 0!r?r:null},enumerable:!0,configurable:!0};if(e){var ssymboltypeof r?Symbol():__+r;i.getfunction(){var e,r;return void 0thiss&&(thissnull!(rnull(ethis.renderRoot)||void 0e?void 0:e.querySelector(t))&&void 0!r?r:null),thiss}}return i}})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function e$2(t){return o$1({descriptor:e>({get(){var e,r;return null!(rnull(ethis.renderRoot)||void 0e?void 0:e.querySelectorAll(t))&&void 0!r?r:},enumerable:!0,configurable:!0})})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function e$1(t){return o$1({descriptor:e>({get(){var ethis;return _asyncToGenerator((function*(){var r;return yield e.updateComplete,null(re.renderRoot)||void 0r?void 0:r.querySelector(t)}))()},enumerable:!0,configurable:!0})})}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var enull!(null(nwindow.HTMLSlotElement)||void 0n?void 0:n.prototype.assignedElements)?(t,e)>t.assignedElements(e):(t,e)>t.assignedNodes(e).filter((t>t.nodeTypeNode.ELEMENT_NODE));function l(t){var{slot:r,selector:i}null!t?t:{};return o$1({descriptor:s>({get(){var s,aslot+(r?name.concat(r,)::not(name)),nnull(sthis.renderRoot)||void 0s?void 0:s.querySelector(a),onull!n?e(n,t):;return i?o.filter((t>t.matches(i))):o},enumerable:!0,configurable:!0})})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function o(t,e,r){var i,st;returnobjecttypeof t?(st.slot,it):i{flatten:e},r?l({slot:s,flatten:e,selector:r}):o$1({descriptor:t>({get(){var t,e,rslot+(s?name.concat(s,)::not(name)),anull(tthis.renderRoot)||void 0t?void 0:t.querySelector(r);return null!(enulla?void 0:a.assignedNodes(i))&&void 0!e?e:},enumerable:!0,configurable:!0})})}var commonjsGlobalundefined!typeof globalThis?globalThis:undefined!typeof window?window:undefined!typeof global?global:undefined!typeof self?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,default)?t.default:t}function getDefaultExportFromNamespaceIfPresent(t){return t&&Object.prototype.hasOwnProperty.call(t,default)?t.default:t}function getDefaultExportFromNamespaceIfNotNamed(t){return t&&Object.prototype.hasOwnProperty.call(t,default)&&1Object.keys(t).length?t.default:t}function getAugmentedNamespace(t){if(t.__esModule)return t;var eObject.defineProperty({},__esModule,{value:!0});return Object.keys(t).forEach((function(r){var iObject.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return tr}})})),e}function commonjsRequire(t){throw new Error(Could not dynamically require +t+. Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.)}var lottie$1{exports:{}};(function(module,exports){var factory;undefined!typeof navigator&&(factoryfunction(){var svgNShttp://www.w3.org/2000/svg,locationHref,_useWebWorker!1,initialDefaultFrame-999999,setWebWorkerfunction(t){_useWebWorker!!t},getWebWorkerfunction(){return _useWebWorker},setLocationHreffunction(t){locationHreft},getLocationHreffunction(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,i,st.length;for(r0;rs;r+1)for(var a in itr.prototype)Object.prototype.hasOwnProperty.call(i,a)&&(e.prototypeaia)}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototypet,e}var audioControllerFactoryfunction(){function t(t){this.audios,this.audioFactoryt,this._volume1,this._isMuted!1}return t.prototype{addAudio:function(t){this.audios.push(t)},pause:function(){var t,ethis.audios.length;for(t0;te;t+1)this.audiost.pause()},resume:function(){var t,ethis.audios.length;for(t0;te;t+1)this.audiost.resume()},setRate:function(t){var e,rthis.audios.length;for(e0;er;e+1)this.audiose.setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:t}):{isPlaying:!1,play:function(){this.isPlaying!0},seek:function(){this.isPlaying!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactoryt},setVolume:function(t){this._volumet,this._updateVolume()},mute:function(){this._isMuted!0,this._updateVolume()},unmute:function(){this._isMuted!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,ethis.audios.length;for(t0;te;t+1)this.audiost.volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArrayfunction(){function t(t,e){var r,i0,s;switch(t){caseint16:caseuint8c:r1;break;default:r1.1}for(i0;ie;i+1)s.push(r);return s}returnfunctiontypeof Uint8ClampedArray&&functiontypeof Float32Array?function(e,r){returnfloat32e?new Float32Array(r):int16e?new Int16Array(r):uint8ce?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6functiontypeof Symbol&&symboltypeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&functiontypeof Symbol&&t.constructorSymbol&&t!Symbol.prototype?symbol:typeof t},_typeof$6(t)}var subframeEnabled!0,expressionsPluginnull,expressionsInterfacesnull,idPrefix$1,isSafari/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues!1,bmPowMath.pow,bmSqrtMath.sqrt,bmFloorMath.floor,bmMaxMath.max,bmMinMath.min,BMMath{};function ProjectInterface$1(){return{}}!function(){var t,eabs,acos,acosh,asin,asinh,atan,atanh,atan2,ceil,cbrt,expm1,clz32,cos,cosh,exp,floor,fround,hypot,imul,log,log1p,log2,log10,max,min,pow,random,round,sign,sin,sinh,sqrt,tan,tanh,trunc,E,LN10,LN2,LOG10E,LOG2E,PI,SQRT1_2,SQRT2,re.length;for(t0;tr;t+1)BMMathetMathet}(),BMMath.randomMath.random,BMMath.absfunction(t){if(object_typeof$6(t)&&t.length){var e,rcreateSizedArray(t.length),it.length;for(e0;ei;e+1)reMath.abs(te);return r}return Math.abs(t)};var defaultCurveSegments150,degToRadsMath.PI/180,roundCorner.5519;function roundValues(t){_shouldRoundValues!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.positionabsolute,t.style.top0,t.style.left0,t.style.displayblock,t.style.transformOrigin0 0,t.style.webkitTransformOrigin0 0,t.style.backfaceVisibilityvisible,t.style.webkitBackfaceVisibilityvisible,t.style.transformStylepreserve-3d,t.style.webkitTransformStylepreserve-3d,t.style.mozTransformStylepreserve-3d}function BMEnterFrameEvent(t,e,r,i){this.typet,this.currentTimee,this.totalTimer,this.directioni0?-1:1}function BMCompleteEvent(t,e){this.typet,this.directione0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.typet,this.currentLoopr,this.totalLoopse,this.directioni0?-1:1}function BMSegmentStartEvent(t,e,r){this.typet,this.firstFramee,this.totalFramesr}function BMDestroyEvent(t,e){this.typet,this.targete}function BMRenderFrameErrorEvent(t,e){this.typerenderFrameError,this.nativeErrort,this.currentTimee}function BMConfigErrorEvent(t){this.typeconfigError,this.nativeErrort}function BMAnimationConfigErrorEvent(t,e){this.typet,this.nativeErrore}var createElementID(_count0,function(){return idPrefix$1+__lottie_element_+(_count+1)}),_count;function HSVtoRGB(t,e,r){var i,s,a,n,o,h,l,p;switch(hr*(1-e),lr*(1-(o6*t-(nMath.floor(6*t)))*e),pr*(1-(1-o)*e),n%6){case 0:ir,sp,ah;break;case 1:il,sr,ah;break;case 2:ih,sr,ap;break;case 3:ih,sl,ar;break;case 4:ip,sh,ar;break;case 5:ir,sh,al}returni,s,a}function RGBtoHSV(t,e,r){var i,sMath.max(t,e,r),aMath.min(t,e,r),ns-a,o0s?0:n/s,hs/255;switch(s){case a:i0;break;case t:ie-r+n*(er?6:0),i/6*n;break;case e:ir-t+2*n,i/6*n;break;case r:it-e+4*n,i/6*n}returni,o,h}function addSaturationToRGB(t,e){var rRGBtoHSV(255*t0,255*t1,255*t2);return r1+e,r1>1?r11:r10&&(r10),HSVtoRGB(r0,r1,r2)}function addBrightnessToRGB(t,e){var rRGBtoHSV(255*t0,255*t1,255*t2);return r2+e,r2>1?r21:r20&&(r20),HSVtoRGB(r0,r1,r2)}function addHueToRGB(t,e){var rRGBtoHSV(255*t0,255*t1,255*t2);return r0+e/360,r0>1?r0-1:r00&&(r0+1),HSVtoRGB(r0,r1,r2)}var rgbToHexfunction(){var t,e,r;for(t0;t256;t+1)et.toString(16),rt1e.length?0+e:e;return function(t,e,i){return t0&&(t0),e0&&(e0),i0&&(i0),#+rt+re+ri}}(),setSubframeEnabledfunction(t){subframeEnabled!!t},getSubframeEnabledfunction(){return subframeEnabled},setExpressionsPluginfunction(t){expressionsPlugint},getExpressionsPluginfunction(){return expressionsPlugin},setExpressionInterfacesfunction(t){expressionsInterfacest},getExpressionInterfacesfunction(){return expressionsInterfaces},setDefaultCurveSegmentsfunction(t){defaultCurveSegmentst},getDefaultCurveSegmentsfunction(){return defaultCurveSegments},setIdPrefixfunction(t){idPrefix$1t},getIdPrefixfunction(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5functiontypeof Symbol&&symboltypeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&functiontypeof Symbol&&t.constructorSymbol&&t!Symbol.prototype?symbol:typeof t},_typeof$5(t)}var dataManagerfunction(){var t,e,r1,i,s{onmessage:function(){},postMessage:function(e){t({data:e})}},_workerSelf{postMessage:function(t){s.onmessage({data:t})}};function a(){e||(efunction(e){if(window.Worker&&window.Blob&&getWebWorker()){var rnew Blob(var _workerSelf self; self.onmessage ,e.toString(),{type:text/javascript}),iURL.createObjectURL(r);return new Worker(i)}return te,s}((function(t){if(_workerSelf.dataManager||(_workerSelf.dataManagerfunction(){function t(s,a){var n,o,h,l,p,f,ds.length;for(o0;od;o+1)if(ksin(nso)&&!n.completed){if(n.completed!0,n.hasMask){var un.masksProperties;for(lu.length,h0;hl;h+1)if(uh.pt.k.i)i(uh.pt.k);else for(fuh.pt.k.length,p0;pf;p+1)uh.pt.kp.s&&i(uh.pt.kp.s0),uh.pt.kp.e&&i(uh.pt.kp.e0)}0n.ty?(n.layerse(n.refId,a),t(n.layers,a)):4n.ty?r(n.shapes):5n.ty&&c(n)}}function e(t,e){var rfunction(t,e){for(var r0,ie.length;ri;){if(er.idt)return er;r+1}return null}(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used!0,r.layers):null}function r(t){var e,s,a;for(et.length-1;e>0;e-1)if(shte.ty)if(te.ks.k.i)i(te.ks.k);else for(ate.ks.k.length,s0;sa;s+1)te.ks.ks.s&&i(te.ks.ks.s0),te.ks.ks.e&&i(te.ks.ks.e0);elsegrte.ty&&r(te.it)}function i(t){var e,rt.i.length;for(e0;er;e+1)t.ie0+t.ve0,t.ie1+t.ve1,t.oe0+t.ve0,t.oe1+t.ve1}function s(t,e){var re?e.split(.):100,100,100;return t0>r0||!(r0>t0)&&(t1>r1||!(r1>t1)&&(t2>r2||!(r2>t2)&&null))}var a,nfunction(){var t4,4,14;function e(t){var e,r,i,st.length;for(e0;es;e+1)5te.ty&&(ivoid 0,i(rte).t.d,r.t.d{k:{s:i,t:0}})}return function(r){if(s(t,r.v)&&(e(r.layers),r.assets)){var i,ar.assets.length;for(i0;ia;i+1)r.assetsi.layers&&e(r.assetsi.layers)}}}(),o(a4,7,99,function(t){if(t.chars&&!s(a,t.v)){var e,it.chars.length;for(e0;ei;e+1){var nt.charse;n.data&&n.data.shapes&&(r(n.data.shapes),n.data.ip0,n.data.op99999,n.data.st0,n.data.sr1,n.data.ks{p:{k:0,0,a:0},s:{k:100,100,a:0},a:{k:0,0,a:0},r:{k:0,a:0},o:{k:100,a:0}},t.charse.t||(n.data.shapes.push({ty:no}),n.data.shapes0.it.push({p:{k:0,0,a:0},s:{k:100,100,a:0},a:{k:0,0,a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:tr})))}}}),hfunction(){var t5,7,15;function e(t){var e,r,it.length;for(e0;ei;e+1)5te.ty&&(rvoid 0,numbertypeof(rte.t.p).a&&(r.a{a:0,k:r.a}),numbertypeof r.p&&(r.p{a:0,k:r.p}),numbertypeof r.r&&(r.r{a:0,k:r.r}))}return function(r){if(s(t,r.v)&&(e(r.layers),r.assets)){var i,ar.assets.length;for(i0;ia;i+1)r.assetsi.layers&&e(r.assetsi.layers)}}}(),lfunction(){var t4,1,9;function e(t){var r,i,s,at.length;for(r0;ra;r+1)if(grtr.ty)e(tr.it);else if(fltr.ty||sttr.ty)if(tr.c.k&&tr.c.k0.i)for(str.c.k.length,i0;is;i+1)tr.c.ki.s&&(tr.c.ki.s0/255,tr.c.ki.s1/255,tr.c.ki.s2/255,tr.c.ki.s3/255),tr.c.ki.e&&(tr.c.ki.e0/255,tr.c.ki.e1/255,tr.c.ki.e2/255,tr.c.ki.e3/255);else tr.c.k0/255,tr.c.k1/255,tr.c.k2/255,tr.c.k3/255}function r(t){var r,it.length;for(r0;ri;r+1)4tr.ty&&e(tr.shapes)}return function(e){if(s(t,e.v)&&(r(e.layers),e.assets)){var i,ae.assets.length;for(i0;ia;i+1)e.assetsi.layers&&r(e.assetsi.layers)}}}(),pfunction(){var t4,4,18;function e(t){var r,i,s;for(rt.length-1;r>0;r-1)if(shtr.ty)if(tr.ks.k.i)tr.ks.k.ctr.closed;else for(str.ks.k.length,i0;is;i+1)tr.ks.ki.s&&(tr.ks.ki.s0.ctr.closed),tr.ks.ki.e&&(tr.ks.ki.e0.ctr.closed);elsegrtr.ty&&e(tr.it)}function r(t){var r,i,s,a,n,o,ht.length;for(i0;ih;i+1){if((rti).hasMask){var lr.masksProperties;for(al.length,s0;sa;s+1)if(ls.pt.k.i)ls.pt.k.cls.cl;else for(ols.pt.k.length,n0;no;n+1)ls.pt.kn.s&&(ls.pt.kn.s0.cls.cl),ls.pt.kn.e&&(ls.pt.kn.e0.cls.cl)}4r.ty&&e(r.shapes)}}return function(e){if(s(t,e.v)&&(r(e.layers),e.assets)){var i,ae.assets.length;for(i0;ia;i+1)e.assetsi.layers&&r(e.assetsi.layers)}}}();function c(t){0t.t.a.length&&t.t.p}var f{completeData:function(r){r.__complete||(l(r),n(r),o(r),h(r),p(r),t(r.layers,r.assets),function(r,i){if(r){var s0,ar.length;for(s0;sa;s+1)1rs.t&&(rs.data.layerse(rs.data.refId,i),t(rs.data.layers,i))}}(r.chars,r.assets),r.__complete!0)}};return f.checkColorsl,f.checkCharso,f.checkPathPropertiesh,f.checkShapesp,f.completeLayerst,f}()),_workerSelf.assetLoader||(_workerSelf.assetLoaderfunction(){function t(t){var et.getResponseHeader(content-type);return e&&jsont.responseType&&-1!e.indexOf(json)||t.response&&object_typeof$5(t.response)?t.response:t.response&&stringtypeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,r,i,s){var a,nnew XMLHttpRequest;try{n.responseTypejson}catch(t){}n.onreadystatechangefunction(){if(4n.readyState)if(200n.status)at(n),i(a);else try{at(n),i(a)}catch(t){s&&s(t)}};try{n.open(G,E,T.join(),e,!0)}catch(t){n.open(G,E,T.join(),r+/+e,!0)}n.send()}}}()),loadAnimationt.data.type)_workerSelf.assetLoader.load(t.data.path,t.data.fullPath,(function(e){_workerSelf.dataManager.completeData(e),_workerSelf.postMessage({id:t.data.id,payload:e,status:success})}),(function(){_workerSelf.postMessage({id:t.data.id,status:error})}));else if(completet.data.type){var et.data.animation;_workerSelf.dataManager.completeData(e),_workerSelf.postMessage({id:t.data.id,payload:e,status:success})}elseloadDatat.data.type&&_workerSelf.assetLoader.load(t.data.path,t.data.fullPath,(function(e){_workerSelf.postMessage({id:t.data.id,payload:e,status:success})}),(function(){_workerSelf.postMessage({id:t.data.id,status:error})}))})),e.onmessagefunction(t){var et.data,re.id,sir;irnull,successe.status?s.onComplete(e.payload):s.onError&&s.onError()})}function n(t,e){var sprocessId_+(r+1);return is{onComplete:t,onError:e},s}return{loadAnimation:function(t,r,i){a();var sn(r,i);e.postMessage({type:loadAnimation,path:t,fullPath:window.location.origin+window.location.pathname,id:s})},loadData:function(t,r,i){a();var sn(r,i);e.postMessage({type:loadData,path:t,fullPath:window.location.origin+window.location.pathname,id:s})},completeAnimation:function(t,r,i){a();var sn(r,i);e.postMessage({type:complete,animation:t,id:s})}}}(),ImagePreloaderfunction(){var tfunction(){var tcreateTag(canvas);t.width1,t.height1;var et.getContext(2d);return e.fillStylergba(0,0,0,0),e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+1,this.loadedAssetsthis.totalImages&&this.loadedFootagesCountthis.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+1,this.loadedAssetsthis.totalImages&&this.loadedFootagesCountthis.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(t,e,r){var i;if(t.e)it.p;else if(e){var st.p;-1!s.indexOf(images/)&&(ss.split(/)1),ie+s}else ir,i+t.u?t.u:,i+t.p;return i}function s(t){var e0,rsetInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(r)),e+1}.bind(this),50)}function a(t){var e{assetData:t},ri(t,this.assetsPath,this.path);return dataManager.loadData(r,function(t){e.imgt,this._footageLoaded()}.bind(this),function(){e.img{},this._footageLoaded()}.bind(this)),e}function n(){this._imageLoadede.bind(this),this._footageLoadedr.bind(this),this.testImageLoadeds.bind(this),this.createFootageDataa.bind(this),this.assetsPath,this.path,this.totalImages0,this.totalFootages0,this.loadedAssets0,this.loadedFootagesCount0,this.imagesLoadedCbnull,this.images}return n.prototype{loadAssets:function(t,e){var r;this.imagesLoadedCbe;var it.length;for(r0;ri;r+1)tr.layers||(tr.t&&seq!tr.t?3tr.t&&(this.totalFootages+1,this.images.push(this.createFootageData(tr))):(this.totalImages+1,this.images.push(this._createImageData(tr))))},setAssetsPath:function(t){this.assetsPatht||},setPath:function(t){this.patht||},loadedImages:function(){return this.totalImagesthis.loadedAssets},loadedFootages:function(){return this.totalFootagesthis.loadedFootagesCount},destroy:function(){this.imagesLoadedCbnull,this.images.length0},getAsset:function(t){for(var e0,rthis.images.length;er;){if(this.imagese.assetDatat)return this.imagese.img;e+1}return null},createImgData:function(e){var ri(e,this.assetsPath,this.path),screateTag(img);s.crossOriginanonymous,s.addEventListener(load,this._imageLoaded,!1),s.addEventListener(error,function(){a.imgt,this._imageLoaded()}.bind(this),!1),s.srcr;var a{img:s,assetData:e};return a},createImageData:function(e){var ri(e,this.assetsPath,this.path),screateNS(image);isSafari?this.testImageLoaded(s):s.addEventListener(load,this._imageLoaded,!1),s.addEventListener(error,function(){a.imgt,this._imageLoaded()}.bind(this),!1),s.setAttributeNS(http://www.w3.org/1999/xlink,href,r),this._elementHelper.append?this._elementHelper.append(s):this._elementHelper.appendChild(s);var a{img:s,assetData:e};return a},imageLoaded:e,footageLoaded:r,setCacheType:function(t,e){svgt?(this._elementHelpere,this._createImageDatathis.createImageData.bind(this)):this._createImageDatathis.createImgData.bind(this)}},n}();function BaseEvent(){}BaseEvent.prototype{triggerEvent:function(t,e){if(this._cbst)for(var rthis._cbst,i0;ir.length;i+1)ri(e)},addEventListener:function(t,e){return this._cbst||(this._cbst),this._cbst.push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbst){for(var r0,ithis._cbst.length;ri;)this._cbstre&&(this._cbst.splice(r,1),r-1,i-1),r+1;this._cbst.length||(this._cbstnull)}}else this._cbstnull}};var markerParserfunction(){function t(t){for(var e,rt.split(\r\n),i{},s0,a0;ar.length;a+1)2(era.split(:)).length&&(ie0e1.trim(),s+1);if(0s)throw new Error;return i}return function(e){for(var r,i0;ie.length;i+1){var sei,a{time:s.tm,duration:s.dr};try{a.payloadJSON.parse(ei.cm)}catch(r){try{a.payloadt(ei.cm)}catch(t){a.payload{name:ei.cm}}}r.push(a)}return r}}(),ProjectInterfacefunction(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e0,rthis.compositions.length;er;){if(this.compositionse.data&&this.compositionse.data.nmt)return this.compositionse.prepareFrame&&this.compositionse.data.xt&&this.compositionse.prepareFrame(this.currentFrame),this.compositionse.compInterface;e+1}return null}return e.compositions,e.currentFrame0,e.registerCompositiont,e}}(),renderers{},registerRendererfunction(t,e){rendererste};function getRenderer(t){return rendererst}function _typeof$4(t){return _typeof$4functiontypeof Symbol&&symboltypeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&functiontypeof Symbol&&t.constructorSymbol&&t!Symbol.prototype?symbol:typeof t},_typeof$4(t)}var AnimationItemfunction(){this._cbs,this.name,this.path,this.isLoaded!1,this.currentFrame0,this.currentRawFrame0,this.firstFrame0,this.totalFrames0,this.frameRate0,this.frameMult0,this.playSpeed1,this.playDirection1,this.playCount0,this.animationData{},this.assets,this.isPaused!0,this.autoplay!1,this.loop!0,this.renderernull,this.animationIDcreateElementID(),this.assetsPath,this.timeCompleted0,this.segmentPos0,this.isSubframeEnabledgetSubframeEnabled(),this.segments,this._idle!0,this._completedLoop!1,this.projectInterfaceProjectInterface(),this.imagePreloadernew ImagePreloader,this.audioControlleraudioControllerFactory(),this.markers,this.configAnimationthis.configAnimation.bind(this),this.onSetupErrorthis.onSetupError.bind(this),this.onSegmentCompletethis.onSegmentComplete.bind(this),this.drawnFrameEventnew BMEnterFrameEvent(drawnFrame,0,0,0)};extendPrototype(BaseEvent,AnimationItem),AnimationItem.prototype.setParamsfunction(t){(t.wrapper||t.container)&&(this.wrappert.wrapper||t.container);var esvg;t.animType?et.animType:t.renderer&&(et.renderer);var rgetRenderer(e);this.renderernew r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animTypee,t.loop||nullt.loop||void 0t.loop||!0t.loop?this.loop!0:!1t.loop?this.loop!1:this.loopparseInt(t.loop,10),this.autoplay!(autoplayin t)||t.autoplay,this.namet.name?t.name:,this.autoloadSegments!Object.prototype.hasOwnProperty.call(t,autoloadSegments)||t.autoloadSegments,this.assetsPatht.assetsPath,this.initialSegmentt.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!t.path.lastIndexOf(\\)?this.patht.path.substr(0,t.path.lastIndexOf(\\)+1):this.patht.path.substr(0,t.path.lastIndexOf(/)+1),this.fileNamet.path.substr(t.path.lastIndexOf(/)+1),this.fileNamethis.fileName.substr(0,this.fileName.lastIndexOf(.json)),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupErrorfunction(){this.trigger(data_failed)},AnimationItem.prototype.setupAnimationfunction(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setDatafunction(t,e){e&&object!_typeof$4(e)&&(eJSON.parse(e));var r{wrapper:t,animationData:e},it.attributes;r.pathi.getNamedItem(data-animation-path)?i.getNamedItem(data-animation-path).value:i.getNamedItem(data-bm-path)?i.getNamedItem(data-bm-path).value:i.getNamedItem(bm-path)?i.getNamedItem(bm-path).value:,r.animTypei.getNamedItem(data-anim-type)?i.getNamedItem(data-anim-type).value:i.getNamedItem(data-bm-type)?i.getNamedItem(data-bm-type).value:i.getNamedItem(bm-type)?i.getNamedItem(bm-type).value:i.getNamedItem(data-bm-renderer)?i.getNamedItem(data-bm-renderer).value:i.getNamedItem(bm-renderer)?i.getNamedItem(bm-renderer).value:canvas;var si.getNamedItem(data-anim-loop)?i.getNamedItem(data-anim-loop).value:i.getNamedItem(data-bm-loop)?i.getNamedItem(data-bm-loop).value:i.getNamedItem(bm-loop)?i.getNamedItem(bm-loop).value:;falses?r.loop!1:trues?r.loop!0:!s&&(r.loopparseInt(s,10));var ai.getNamedItem(data-anim-autoplay)?i.getNamedItem(data-anim-autoplay).value:i.getNamedItem(data-bm-autoplay)?i.getNamedItem(data-bm-autoplay).value:!i.getNamedItem(bm-autoplay)||i.getNamedItem(bm-autoplay).value;r.autoplayfalse!a,r.namei.getNamedItem(data-name)?i.getNamedItem(data-name).value:i.getNamedItem(data-bm-name)?i.getNamedItem(data-bm-name).value:i.getNamedItem(bm-name)?i.getNamedItem(bm-name).value:,false(i.getNamedItem(data-anim-prerender)?i.getNamedItem(data-anim-prerender).value:i.getNamedItem(data-bm-prerender)?i.getNamedItem(data-bm-prerender).value:i.getNamedItem(bm-prerender)?i.getNamedItem(bm-prerender).value:)&&(r.prerender!1),this.setParams(r)},AnimationItem.prototype.includeLayersfunction(t){t.op>this.animationData.op&&(this.animationData.opt.op,this.totalFramesMath.floor(t.op-this.animationData.ip));var e,r,ithis.animationData.layers,si.length,at.layers,na.length;for(r0;rn;r+1)for(e0;es;){if(ie.idar.id){iear;break}e+1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(st.assets.length,e0;es;e+1)this.animationData.assets.push(t.assetse);this.animationData.__complete!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentCompletefunction(t){this.animationDatat;var egetExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegmentfunction(){var tthis.animationData.segments;if(!t||0t.length||!this.autoloadSegments)return this.trigger(data_ready),void(this.timeCompletedthis.totalFrames);var et.shift();this.timeCompletede.time*this.frameRate;var rthis.path+this.fileName+_+this.segmentPos+.json;this.segmentPos+1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger(data_failed)}.bind(this))},AnimationItem.prototype.loadSegmentsfunction(){this.animationData.segments||(this.timeCompletedthis.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoadedfunction(){this.trigger(loaded_images),this.checkLoaded()},AnimationItem.prototype.preloadImagesfunction(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimationfunction(t){if(this.renderer)try{this.animationDatat,this.initialSegment?(this.totalFramesMath.floor(this.initialSegment1-this.initialSegment0),this.firstFrameMath.round(this.initialSegment0)):(this.totalFramesMath.floor(this.animationData.op-this.animationData.ip),this.firstFrameMath.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets),this.assetsthis.animationData.assets,this.frameRatethis.animationData.fr,this.frameMultthis.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markersmarkerParser(t.markers||),this.trigger(config_ready),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoadedfunction(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoadedfunction(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||canvas!this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded!0;var tgetExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger(DOMLoaded)}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resizefunction(t,e){var rnumbertypeof t?t:void 0,inumbertypeof e?e:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframefunction(t){this.isSubframeEnabled!!t},AnimationItem.prototype.gotoFramefunction(){this.currentFramethis.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFramethis.timeCompleted),this.trigger(enterFrame),this.renderFrame(),this.trigger(drawnFrame)},AnimationItem.prototype.renderFramefunction(){if(!1!this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.playfunction(t){t&&this.name!t||!0this.isPaused&&(this.isPaused!1,this.trigger(_pause),this.audioController.resume(),this._idle&&(this._idle!1,this.trigger(_active)))},AnimationItem.prototype.pausefunction(t){t&&this.name!t||!1this.isPaused&&(this.isPaused!0,this.trigger(_play),this._idle!0,this.trigger(_idle),this.audioController.pause())},AnimationItem.prototype.togglePausefunction(t){t&&this.name!t||(!0this.isPaused?this.play():this.pause())},AnimationItem.prototype.stopfunction(t){t&&this.name!t||(this.pause(),this.playCount0,this._completedLoop!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerDatafunction(t){for(var e,r0;rthis.markers.length;r+1)if((ethis.markersr).payload&&e.payload.namet)return e;return null},AnimationItem.prototype.goToAndStopfunction(t,e,r){if(!r||this.namer){var iNumber(t);if(isNaN(i)){var sthis.getMarkerData(t);s&&this.goToAndStop(s.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlayfunction(t,e,r){if(!r||this.namer){var iNumber(t);if(isNaN(i)){var sthis.getMarkerData(t);s&&(s.duration?this.playSegments(s.time,s.time+s.duration,!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(i,e,r);this.play()}},AnimationItem.prototype.advanceTimefunction(t){if(!0!this.isPaused&&!1!this.isLoaded){var ethis.currentRawFrame+t*this.frameModifier,r!1;e>this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!this.loop?e>this.totalFrames?(this.playCount+1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop!0,this.trigger(loopComplete))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r!0,ethis.totalFrames-1):e0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--0&&!0!this.loop?(r!0,e0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger(loopComplete):this._completedLoop!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger(complete))}},AnimationItem.prototype.adjustSegmentfunction(t,e){this.playCount0,t1t0?(this.frameModifier>0&&(this.playSpeed0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFramest0-t1,this.timeCompletedthis.totalFrames,this.firstFramet1,this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t1>t0&&(this.frameModifier0&&(this.playSpeed0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFramest1-t0,this.timeCompletedthis.totalFrames,this.firstFramet0,this.setCurrentRawFrameValue(.001+e)),this.trigger(segmentStart)},AnimationItem.prototype.setSegmentfunction(t,e){var r-1;this.isPaused&&(this.currentRawFrame+this.firstFramet?rt:this.currentRawFrame+this.firstFrame>e&&(re-t)),this.firstFramet,this.totalFramese-t,this.timeCompletedthis.totalFrames,-1!r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegmentsfunction(t,e){if(e&&(this.segments.length0),object_typeof$4(t0)){var r,it.length;for(r0;ri;r+1)this.segments.push(tr)}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegmentsfunction(t){this.segments.length0,this.segments.push(this.animationData.ip,this.animationData.op),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegmentsfunction(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroyfunction(t){t&&this.name!t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger(destroy),this._cbsnull,this.onEnterFramenull,this.onLoopCompletenull,this.onCompletenull,this.onSegmentStartnull,this.onDestroynull,this.renderernull,this.renderernull,this.imagePreloadernull,this.projectInterfacenull)},AnimationItem.prototype.setCurrentRawFrameValuefunction(t){this.currentRawFramet,this.gotoFrame()},AnimationItem.prototype.setSpeedfunction(t){this.playSpeedt,this.updaFrameModifier()},AnimationItem.prototype.setDirectionfunction(t){this.playDirectiont0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolumefunction(t,e){e&&this.name!e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolumefunction(){return this.audioController.getVolume()},AnimationItem.prototype.mutefunction(t){t&&this.name!t||this.audioController.mute()},AnimationItem.prototype.unmutefunction(t){t&&this.name!t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifierfunction(){this.frameModifierthis.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPathfunction(){return this.path},AnimationItem.prototype.getAssetsPathfunction(t){var e;if(t.e)et.p;else if(this.assetsPath){var rt.p;-1!r.indexOf(images/)&&(rr.split(/)1),ethis.assetsPath+r}else ethis.path,e+t.u?t.u:,e+t.p;return e},AnimationItem.prototype.getAssetDatafunction(t){for(var e0,rthis.assets.length;er;){if(tthis.assetse.id)return this.assetse;e+1}return null},AnimationItem.prototype.hidefunction(){this.renderer.hide()},AnimationItem.prototype.showfunction(){this.renderer.show()},AnimationItem.prototype.getDurationfunction(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentDatafunction(t,e,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch(t){}},AnimationItem.prototype.triggerfunction(t){if(this._cbs&&this._cbst)switch(t){caseenterFrame:this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;casedrawnFrame:this.drawnFrameEvent.currentTimethis.currentFrame,this.drawnFrameEvent.totalTimethis.totalFrames,this.drawnFrameEvent.directionthis.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;caseloopComplete:this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;casecomplete:this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;casesegmentStart:this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;casedestroy:this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}enterFramet&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),loopCompletet&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),completet&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),segmentStartt&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),destroyt&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameErrorfunction(t){var enew BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent(error,e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigErrorfunction(t){var enew BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent(error,e),this.onError&&this.onError.call(this,e)};var animationManagerfunction(){var t{},e,r0,i0,s0,a!0,n!1;function o(t){for(var r0,st.target;ri;)er.animations&&(e.splice(r,1),r-1,i-1,s.isPaused||p()),r+1}function h(t,r){if(!t)return null;for(var s0;si;){if(es.elemt&&null!es.elem)return es.animation;s+1}var anew AnimationItem;return c(a,t),a.setData(t,r),a}function l(){s+1,u()}function p(){s-1}function c(t,r){t.addEventListener(destroy,o),t.addEventListener(_active,l),t.addEventListener(_idle,p),e.push({elem:r,animation:t}),i+1}function f(t){var o,ht-r;for(o0;oi;o+1)eo.animation.advanceTime(h);rt,s&&!n?window.requestAnimationFrame(f):a!0}function d(t){rt,window.requestAnimationFrame(f)}function u(){!n&&s&&a&&(window.requestAnimationFrame(d),a!1)}return t.registerAnimationh,t.loadAnimationfunction(t){var enew AnimationItem;return c(e,null),e.setParams(t),e},t.setSpeedfunction(t,r){var s;for(s0;si;s+1)es.animation.setSpeed(t,r)},t.setDirectionfunction(t,r){var s;for(s0;si;s+1)es.animation.setDirection(t,r)},t.playfunction(t){var r;for(r0;ri;r+1)er.animation.play(t)},t.pausefunction(t){var r;for(r0;ri;r+1)er.animation.pause(t)},t.stopfunction(t){var r;for(r0;ri;r+1)er.animation.stop(t)},t.togglePausefunction(t){var r;for(r0;ri;r+1)er.animation.togglePause(t)},t.searchAnimationsfunction(t,e,r){var i,s.concat(.slice.call(document.getElementsByClassName(lottie)),.slice.call(document.getElementsByClassName(bodymovin))),as.length;for(i0;ia;i+1)r&&si.setAttribute(data-bm-type,r),h(si,t);if(e&&0a){r||(rsvg);var ndocument.getElementsByTagName(body)0;n.innerText;var ocreateTag(div);o.style.width100%,o.style.height100%,o.setAttribute(data-bm-type,r),n.appendChild(o),h(o,t)}},t.resizefunction(){var t;for(t0;ti;t+1)et.animation.resize()},t.goToAndStopfunction(t,r,s){var a;for(a0;ai;a+1)ea.animation.goToAndStop(t,r,s)},t.destroyfunction(t){var r;for(ri-1;r>0;r-1)er.animation.destroy(t)},t.freezefunction(){n!0},t.unfreezefunction(){n!1,u()},t.setVolumefunction(t,r){var s;for(s0;si;s+1)es.animation.setVolume(t,r)},t.mutefunction(t){var r;for(r0;ri;r+1)er.animation.mute(t)},t.unmutefunction(t){var r;for(r0;ri;r+1)er.animation.unmute(t)},t.getRegisteredAnimationsfunction(){var t,re.length,i;for(t0;tr;t+1)i.push(et.animation);return i},t}(),BezierFactoryfunction(){var t{getBezierEasing:function(t,r,i,s,a){var na||(bez_+t+_+r+_+i+_+s).replace(/\./g,p);if(en)return en;var onew l(t,r,i,s);return eno,o}},e{},r.1,ifunctiontypeof Float32Array;function s(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function n(t){return 3*t}function o(t,e,r){return((s(e,r)*t+a(e,r))*t+n(e))*t}function h(t,e,r){return 3*s(e,r)*t*t+2*a(e,r)*t+n(e)}function l(t){this._pt,this._mSampleValuesi?new Float32Array(11):new Array(11),this._precomputed!1,this.getthis.get.bind(this)}return l.prototype{get:function(t){var ethis._p0,rthis._p1,ithis._p2,sthis._p3;return this._precomputed||this._precompute(),er&&is?t:0t?0:1t?1:o(this._getTForX(t),r,s)},_precompute:function(){var tthis._p0,ethis._p1,rthis._p2,ithis._p3;this._precomputed!0,te&&ri||this._calcSampleValues()},_calcSampleValues:function(){for(var tthis._p0,ethis._p2,i0;i11;++i)this._mSampleValuesio(i*r,t,e)},_getTForX:function(t){for(var ethis._p0,ithis._p2,sthis._mSampleValues,a0,n1;10!n&&snt;++n)a+r;var la+(t-s--n)/(sn+1-sn)*r,ph(l,e,i);return p>.001?function(t,e,r,i){for(var s0;s4;++s){var ah(e,r,i);if(0a)return e;e-(o(e,r,i)-t)/a}return e}(t,l,e,i):0p?l:function(t,e,r,i,s){var a,n,h0;do{(ao(ne+(r-e)/2,i,s)-t)>0?rn:en}while(Math.abs(a)>1e-7&&++h10);return n}(t,a,a+r,e,i)}},t}(),pooling{double:function(t){return t.concat(createSizedArray(t.length))}},poolFactoryfunction(t,e,r){var i0,st,acreateSizedArray(s);return{newElement:function(){return i?ai-1:e()},release:function(t){is&&(apooling.double(a),s*2),r&&r(t),ait,i+1}}},bezierLengthPoolpoolFactory(8,(function(){return{addedLength:0,percents:createTypedArray(float32,getDefaultCurveSegments()),lengths:createTypedArray(float32,getDefaultCurveSegments())}})),segmentsLengthPoolpoolFactory(8,(function(){return{lengths:,totalLength:0}}),(function(t){var e,rt.lengths.length;for(e0;er;e+1)bezierLengthPool.release(t.lengthse);t.lengths.length0}));function bezFunction(){var tMath;function e(t,e,r,i,s,a){var nt*i+e*s+r*a-s*i-a*t-r*e;return n>-.001&&n.001}var rfunction(t,e,r,i){var s,a,n,o,h,l,pgetDefaultCurveSegments(),c0,f,d,ubezierLengthPool.newElement();for(nr.length,s0;sp;s+1){for(hs/(p-1),l0,a0;an;a+1)obmPow(1-h,3)*ta+3*bmPow(1-h,2)*h*ra+3*(1-h)*bmPow(h,2)*ia+bmPow(h,3)*ea,fao,null!da&&(l+bmPow(fa-da,2)),dafa;l&&(c+lbmSqrt(l)),u.percentssh,u.lengthssc}return u.addedLengthc,u};function i(t){this.segmentLength0,this.pointsnew Array(t)}function s(t,e){this.partialLengtht,this.pointe}var a,n(a{},function(t,r,n,o){var h(t0+_+t1+_+r0+_+r1+_+n0+_+n1+_+o0+_+o1).replace(/\./g,p);if(!ah){var l,p,c,f,d,u,m,ygetDefaultCurveSegments(),g0,vnull;2t.length&&(t0!r0||t1!r1)&&e(t0,t1,r0,r1,t0+n0,t1+n1)&&e(t0,t1,r0,r1,r0+o0,r1+o1)&&(y2);var bnew i(y);for(cn.length,l0;ly;l+1){for(mcreateSizedArray(c),dl/(y-1),u0,p0;pc;p+1)fbmPow(1-d,3)*tp+3*bmPow(1-d,2)*d*(tp+np)+3*(1-d)*bmPow(d,2)*(rp+op)+bmPow(d,3)*rp,mpf,null!v&&(u+bmPow(mp-vp,2));g+ubmSqrt(u),b.pointslnew s(u,m),vm}b.segmentLengthg,ahb}return ah});function o(t,e){var re.percents,ie.lengths,sr.length,abmFloor((s-1)*t),nt*e.addedLength,o0;if(as-1||0a||nia)return ra;for(var hia>n?-1:1,l!0;l;)if(ian&&ia+1>n?(o(n-ia)/(ia+1-ia),l!1):a+h,a0||a>s-1){if(as-1)return ra;l!1}return ra+(ra+1-ra)*o}var hcreateTypedArray(float32,8);return{getSegmentsLength:function(t){var e,isegmentsLengthPool.newElement(),st.c,at.v,nt.o,ot.i,ht._length,li.lengths,p0;for(e0;eh-1;e+1)ler(ae,ae+1,ne,oe+1),p+le.addedLength;return s&&h&&(ler(ae,a0,ne,o0),p+le.addedLength),i.totalLengthp,i},getNewSegment:function(e,r,i,s,a,n,l){a0?a0:a>1&&(a1);var p,co(a,l),fo(nn>1?1:n,l),de.length,u1-c,m1-f,yu*u*u,gc*u*u*3,vc*c*u*3,bc*c*c,_u*u*m,Pc*u*m+u*c*m+u*u*f,Ec*c*m+u*c*f+c*u*f,Sc*c*f,xu*m*m,Ac*m*m+u*f*m+u*m*f,wc*f*m+u*f*f+c*m*f,Cc*f*f,km*m*m,Tf*m*m+m*f*m+m*m*f,Df*f*m+m*f*f+f*m*f,Mf*f*f;for(p0;pd;p+1)h4*pt.round(1e3*(y*ep+g*ip+v*sp+b*rp))/1e3,h4*p+1t.round(1e3*(_*ep+P*ip+E*sp+S*rp))/1e3,h4*p+2t.round(1e3*(x*ep+A*ip+w*sp+C*rp))/1e3,h4*p+3t.round(1e3*(k*ep+T*ip+D*sp+M*rp))/1e3;return h},getPointInSegment:function(e,r,i,s,a,n){var ho(a,n),l1-h;returnt.round(1e3*(l*l*l*e0+(h*l*l+l*h*l+l*l*h)*i0+(h*h*l+l*h*h+h*l*h)*s0+h*h*h*r0))/1e3,t.round(1e3*(l*l*l*e1+(h*l*l+l*h*l+l*l*h)*i1+(h*h*l+l*h*h+h*l*h)*s1+h*h*h*r1))/1e3},buildBezierData:n,pointOnLine2D:e,pointOnLine3D:function(r,i,s,a,n,o,h,l,p){if(0s&&0o&&0p)return e(r,i,a,n,h,l);var c,ft.sqrt(t.pow(a-r,2)+t.pow(n-i,2)+t.pow(o-s,2)),dt.sqrt(t.pow(h-r,2)+t.pow(l-i,2)+t.pow(p-s,2)),ut.sqrt(t.pow(h-a,2)+t.pow(l-n,2)+t.pow(p-o,2));return(cf>d?f>u?f-d-u:u-d-f:u>d?u-d-f:d-f-u)>-1e-4&&c1e-4}}}var bezbezFunction(),PropertyFactoryfunction(){var tinitialDefaultFrame,eMath.abs;function r(t,e){var r,sthis.offsetTime;multidimensionalthis.propType&&(rcreateTypedArray(float32,this.pv.length));for(var a,n,o,h,l,p,c,f,d,ue.lastIndex,mu,ythis.keyframes.length-1,g!0;g;){if(athis.keyframesm,nthis.keyframesm+1,my-1&&t>n.t-s){a.h&&(an),u0;break}if(n.t-s>t){um;break}my-1?m+1:(u0,g!1)}othis.keyframesMetadatam||{};var v,b,_,P,E,S,x,A,w,C,kn.t-s,Ta.t-s;if(a.to){o.bezierData||(o.bezierDatabez.buildBezierData(a.s,n.s||a.e,a.to,a.ti));var Do.bezierData;if(t>k||tT){var Mt>k?D.points.length-1:0;for(lD.pointsM.point.length,h0;hl;h+1)rhD.pointsM.pointh}else{o.__fnct?do.__fnct:(dBezierFactory.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,o.__fnctd),pd((t-T)/(k-T));var F,ID.segmentLength*p,Re.lastFramet&&e._lastKeyframeIndexm?e._lastAddedLength:0;for(fe.lastFramet&&e._lastKeyframeIndexm?e._lastPoint:0,g!0,cD.points.length;g;){if(R+D.pointsf.partialLength,0I||0p||fD.points.length-1){for(lD.pointsf.point.length,h0;hl;h+1)rhD.pointsf.pointh;break}if(I>R&&IR+D.pointsf+1.partialLength){for(F(I-R)/D.pointsf+1.partialLength,lD.pointsf.point.length,h0;hl;h+1)rhD.pointsf.pointh+(D.pointsf+1.pointh-D.pointsf.pointh)*F;break}fc-1?f+1:g!1}e._lastPointf,e._lastAddedLengthR-D.pointsf.partialLength,e._lastKeyframeIndexm}}else{var B,V,O,L,$;if(ya.s.length,vn.s||a.e,this.sh&&1!a.h)if(t>k)r0v0,r1v1,r2v2;else if(tT)r0a.s0,r1a.s1,r2a.s2;else{var zi(a.s),Gi(v);br,_function(t,e,r){var i,s,a,n,o,h,lt0,pt1,ct2,ft3,de0,ue1,me2,ye3;return(sl*d+p*u+c*m+f*y)0&&(s-s,d-d,u-u,m-m,y-y),1-s>1e-6?(iMath.acos(s),aMath.sin(i),nMath.sin((1-r)*i)/a,oMath.sin(r*i)/a):(n1-r,or),h0n*l+o*d,h1n*p+o*u,h2n*c+o*m,h3n*f+o*y,h}(z,G,(t-T)/(k-T)),P_0,E_1,S_2,x_3,AMath.atan2(2*E*x-2*P*S,1-2*E*E-2*S*S),wMath.asin(2*P*E+2*S*x),CMath.atan2(2*P*x-2*E*S,1-2*P*P-2*S*S),b0A/degToRads,b1w/degToRads,b2C/degToRads}else for(m0;my;m+1)1!a.h&&(t>k?p1:tT?p0:(a.o.x.constructorArray?(o.__fnct||(o.__fnct),o.__fnctm?do.__fnctm:(Bvoid 0a.o.xm?a.o.x0:a.o.xm,Vvoid 0a.o.ym?a.o.y0:a.o.ym,Ovoid 0a.i.xm?a.i.x0:a.i.xm,Lvoid 0a.i.ym?a.i.y0:a.i.ym,dBezierFactory.getBezierEasing(B,V,O,L).get,o.__fnctmd)):o.__fnct?do.__fnct:(Ba.o.x,Va.o.y,Oa.i.x,La.i.y,dBezierFactory.getBezierEasing(B,V,O,L).get,a.keyframeMetadatad),pd((t-T)/(k-T)))),vn.s||a.e,$1a.h?a.sm:a.sm+(vm-a.sm)*p,multidimensionalthis.propType?rm$:r$}return e.lastIndexu,r}function i(t){var et0*degToRads,rt1*degToRads,it2*degToRads,sMath.cos(e/2),aMath.cos(r/2),nMath.cos(i/2),oMath.sin(e/2),hMath.sin(r/2),lMath.sin(i/2);returno*h*n+s*a*l,o*a*n+s*h*l,s*h*n-o*a*l,s*a*n-o*h*l}function s(){var ethis.comp.renderedFrame-this.offsetTime,rthis.keyframes0.t-this.offsetTime,ithis.keyframesthis.keyframes.length-1.t-this.offsetTime;if(!(ethis._caching.lastFrame||this._caching.lastFrame!t&&(this._caching.lastFrame>i&&e>i||this._caching.lastFramer&&er))){this._caching.lastFrame>e&&(this._caching._lastKeyframeIndex-1,this._caching.lastIndex0);var sthis.interpolateValue(e,this._caching);this.pvs}return this._caching.lastFramee,this.pv}function a(t){var r;if(unidimensionalthis.propType)rt*this.mult,e(this.v-r)>1e-5&&(this.vr,this._mdf!0);else for(var i0,sthis.v.length;is;)rti*this.mult,e(this.vi-r)>1e-5&&(this.vir,this._mdf!0),i+1}function n(){if(this.elem.globalData.frameId!this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock!0,this._mdfthis._isFirstFrame;var ethis.effectsSequence.length,rthis.kf?this.pv:this.data.k;for(t0;te;t+1)rthis.effectsSequencet(r);this.setVValue(r),this._isFirstFrame!1,this.lock!1,this.frameIdthis.elem.globalData.frameId}}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(t,e,r,i){this.propTypeunidimensional,this.multr||1,this.datae,this.vr?e.k*r:e.k,this.pve.k,this._mdf!1,this.elemt,this.containeri,this.compt.comp,this.k!1,this.kf!1,this.vel0,this.effectsSequence,this._isFirstFrame!0,this.getValuen,this.setVValuea,this.addEffecto}function l(t,e,r,i){var s;this.propTypemultidimensional,this.multr||1,this.datae,this._mdf!1,this.elemt,this.containeri,this.compt.comp,this.k!1,this.kf!1,this.frameId-1;var he.k.length;for(this.vcreateTypedArray(float32,h),this.pvcreateTypedArray(float32,h),this.velcreateTypedArray(float32,h),s0;sh;s+1)this.vse.ks*this.mult,this.pvse.ks;this._isFirstFrame!0,this.effectsSequence,this.getValuen,this.setVValuea,this.addEffecto}function p(e,i,h,l){this.propTypeunidimensional,this.keyframesi.k,this.keyframesMetadata,this.offsetTimee.data.st,this.frameId-1,this._caching{lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k!0,this.kf!0,this.datai,this.multh||1,this.eleme,this.containerl,this.compe.comp,this.vt,this.pvt,this._isFirstFrame!0,this.getValuen,this.setVValuea,this.interpolateValuer,this.effectsSequences.bind(this),this.addEffecto}function c(e,i,h,l){var p;this.propTypemultidimensional;var c,f,d,u,mi.k.length;for(p0;pm-1;p+1)i.kp.to&&i.kp.s&&i.kp+1&&i.kp+1.s&&(ci.kp.s,fi.kp+1.s,di.kp.to,ui.kp.ti,(2c.length&&(c0!f0||c1!f1)&&bez.pointOnLine2D(c0,c1,f0,f1,c0+d0,c1+d1)&&bez.pointOnLine2D(c0,c1,f0,f1,f0+u0,f1+u1)||3c.length&&(c0!f0||c1!f1||c2!f2)&&bez.pointOnLine3D(c0,c1,c2,f0,f1,f2,c0+d0,c1+d1,c2+d2)&&bez.pointOnLine3D(c0,c1,c2,f0,f1,f2,f0+u0,f1+u1,f2+u2))&&(i.kp.tonull,i.kp.tinull),c0f0&&c1f1&&0d0&&0d1&&0u0&&0u1&&(2c.length||c2f2&&0d2&&0u2)&&(i.kp.tonull,i.kp.tinull));this.effectsSequences.bind(this),this.datai,this.keyframesi.k,this.keyframesMetadata,this.offsetTimee.data.st,this.k!0,this.kf!0,this._isFirstFrame!0,this.multh||1,this.eleme,this.containerl,this.compe.comp,this.getValuen,this.setVValuea,this.interpolateValuer,this.frameId-1;var yi.k0.s.length;for(this.vcreateTypedArray(float32,y),this.pvcreateTypedArray(float32,y),p0;py;p+1)this.vpt,this.pvpt;this._caching{lastFrame:t,lastIndex:0,value:createTypedArray(float32,y)},this.addEffecto}var f{getProp:function(t,e,r,i,s){var a;if(e.k.length)if(numbertypeof e.k0)anew l(t,e,i,s);else switch(r){case 0:anew p(t,e,i,s);break;case 1:anew c(t,e,i,s)}else anew h(t,e,i,s);return a.effectsSequence.length&&s.addDynamicProperty(a),a}};return f}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype{addDynamicProperty:function(t){-1this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated!0)},iterateDynamicProperties:function(){var t;this._mdf!1;var ethis.dynamicProperties.length;for(t0;te;t+1)this.dynamicPropertiest.getValue(),this.dynamicPropertiest._mdf&&(this._mdf!0)},initDynamicPropertyContainer:function(t){this.containert,this.dynamicProperties,this._mdf!1,this._isAnimated!1}};var pointPoolpoolFactory(8,(function(){return createTypedArray(float32,2)}));function ShapePath(){this.c!1,this._length0,this._maxLength8,this.vcreateSizedArray(this._maxLength),this.ocreateSizedArray(this._maxLength),this.icreateSizedArray(this._maxLength)}ShapePath.prototype.setPathDatafunction(t,e){this.ct,this.setLength(e);for(var r0;re;)this.vrpointPool.newElement(),this.orpointPool.newElement(),this.irpointPool.newElement(),r+1},ShapePath.prototype.setLengthfunction(t){for(;this._maxLengtht;)this.doubleArrayLength();this._lengtht},ShapePath.prototype.doubleArrayLengthfunction(){this.vthis.v.concat(createSizedArray(this._maxLength)),this.ithis.i.concat(createSizedArray(this._maxLength)),this.othis.o.concat(createSizedArray(this._maxLength)),this._maxLength*2},ShapePath.prototype.setXYAtfunction(t,e,r,i,s){var a;switch(this._lengthMath.max(this._length,i+1),this._length>this._maxLength&&this.doubleArrayLength(),r){casev:athis.v;break;casei:athis.i;break;caseo:athis.o;break;default:a}(!ai||ai&&!s)&&(aipointPool.newElement()),ai0t,ai1e},ShapePath.prototype.setTripleAtfunction(t,e,r,i,s,a,n,o){this.setXYAt(t,e,v,n,o),this.setXYAt(r,i,o,n,o),this.setXYAt(s,a,i,n,o)},ShapePath.prototype.reversefunction(){var tnew ShapePath;t.setPathData(this.c,this._length);var ethis.v,rthis.o,ithis.i,s0;this.c&&(t.setTripleAt(e00,e01,i00,i01,r00,r01,0,!1),s1);var a,nthis._length-1,othis._length;for(as;ao;a+1)t.setTripleAt(en0,en1,in0,in1,rn0,rn1,a,!1),n-1;return t},ShapePath.prototype.lengthfunction(){return this._length};var shapePool(factorypoolFactory(4,(function(){return new ShapePath}),(function(t){var e,rt._length;for(e0;er;e+1)pointPool.release(t.ve),pointPool.release(t.ie),pointPool.release(t.oe),t.venull,t.ienull,t.oenull;t._length0,t.c!1})),factory.clonefunction(t){var e,rfactory.newElement(),ivoid 0t._length?t.v.length:t._length;for(r.setLength(i),r.ct.c,e0;ei;e+1)r.setTripleAt(t.ve0,t.ve1,t.oe0,t.oe1,t.ie0,t.ie1,e);return r},factory),factory;function ShapeCollection(){this._length0,this._maxLength4,this.shapescreateSizedArray(this._maxLength)}ShapeCollection.prototype.addShapefunction(t){this._lengththis._maxLength&&(this.shapesthis.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*2),this.shapesthis._lengtht,this._length+1},ShapeCollection.prototype.releaseShapesfunction(){var t;for(t0;tthis._length;t+1)shapePool.release(this.shapest);this._length0};var shapeCollectionPool(ob{newShapeCollection:function(){return _length?pool_length-1:new ShapeCollection},release:function(t){var e,rt._length;for(e0;er;e+1)shapePool.release(t.shapese);t._length0,_length_maxLength&&(poolpooling.double(pool),_maxLength*2),pool_lengtht,_length+1}},_length0,_maxLength4,poolcreateSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactoryfunction(){var t-999999;function e(t,e,r){var i,s,a,n,o,h,l,p,c,fr.lastIndex,dthis.keyframes;if(td0.t-this.offsetTime)id0.s0,a!0,f0;else if(t>dd.length-1.t-this.offsetTime)idd.length-1.s?dd.length-1.s0:dd.length-2.e0,a!0;else{for(var u,m,y,gf,vd.length-1,b!0;b&&(udg,!((mdg+1).t-this.offsetTime>t));)gv-1?g+1:b!1;if(ythis.keyframesMetadatag||{},fg,!(a1u.h)){if(t>m.t-this.offsetTime)p1;else if(tu.t-this.offsetTime)p0;else{var _;y.__fnct?_y.__fnct:(_BezierFactory.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y).get,y.__fnct_),p_((t-(u.t-this.offsetTime))/(m.t-this.offsetTime-(u.t-this.offsetTime)))}sm.s?m.s0:u.e0}iu.s0}for(he._length,li.i0.length,r.lastIndexf,n0;nh;n+1)for(o0;ol;o+1)ca?i.ino:i.ino+(s.ino-i.ino)*p,e.inoc,ca?i.ono:i.ono+(s.ono-i.ono)*p,e.onoc,ca?i.vno:i.vno+(s.vno-i.vno)*p,e.vnoc}function r(){var ethis.comp.renderedFrame-this.offsetTime,rthis.keyframes0.t-this.offsetTime,ithis.keyframesthis.keyframes.length-1.t-this.offsetTime,sthis._caching.lastFrame;return s!t&&(sr&&er||s>i&&e>i)||(this._caching.lastIndexse?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFramee,this.pv}function i(){this.pathsthis.localShapeCollection}function s(t){(function(t,e){if(t._length!e._length||t.c!e.c)return!1;var r,it._length;for(r0;ri;r+1)if(t.vr0!e.vr0||t.vr1!e.vr1||t.or0!e.or0||t.or1!e.or1||t.ir0!e.ir0||t.ir1!e.ir1)return!1;return!0})(this.v,t)||(this.vshapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf!0,this.pathsthis.localShapeCollection)}function a(){if(this.elem.globalData.frameId!this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock!0,this._mdf!1,tthis.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var rthis.effectsSequence.length;for(e0;er;e+1)tthis.effectsSequencee(t);this.setVValue(t),this.lock!1,this.frameIdthis.elem.globalData.frameId}else this._mdf!1}function n(t,e,r){this.propTypeshape,this.compt.comp,this.containert,this.elemt,this.datae,this.k!1,this.kf!1,this._mdf!1;var s3r?e.pt.k:e.ks.k;this.vshapePool.clone(s),this.pvshapePool.clone(this.v),this.localShapeCollectionshapeCollectionPool.newShapeCollection(),this.pathsthis.localShapeCollection,this.paths.addShape(this.v),this.reseti,this.effectsSequence}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(e,s,a){this.propTypeshape,this.compe.comp,this.eleme,this.containere,this.offsetTimee.data.st,this.keyframes3a?s.pt.k:s.ks.k,this.keyframesMetadata,this.k!0,this.kf!0;var nthis.keyframes0.s0.i.length;this.vshapePool.newElement(),this.v.setPathData(this.keyframes0.s0.c,n),this.pvshapePool.clone(this.v),this.localShapeCollectionshapeCollectionPool.newShapeCollection(),this.pathsthis.localShapeCollection,this.paths.addShape(this.v),this.lastFramet,this.reseti,this._caching{lastFrame:t,lastIndex:0},this.effectsSequencer.bind(this)}n.prototype.interpolateShapee,n.prototype.getValuea,n.prototype.setVValues,n.prototype.addEffecto,h.prototype.getValuea,h.prototype.interpolateShapee,h.prototype.setVValues,h.prototype.addEffecto;var lfunction(){var troundCorner;function e(t,e){this.vshapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollectionshapeCollectionPool.newShapeCollection(),this.pathsthis.localShapeCollection,this.localShapeCollection.addShape(this.v),this.de.d,this.elemt,this.compt.comp,this.frameId-1,this.initDynamicPropertyContainer(t),this.pPropertyFactory.getProp(t,e.p,1,0,this),this.sPropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k!0:(this.k!1,this.convertEllToPath())}return e.prototype{reset:i,getValue:function(){this.elem.globalData.frameId!this.frameId&&(this.frameIdthis.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var ethis.p.v0,rthis.p.v1,ithis.s.v0/2,sthis.s.v1/2,a3!this.d,nthis.v;n.v00e,n.v01r-s,n.v10a?e+i:e-i,n.v11r,n.v20e,n.v21r+s,n.v30a?e-i:e+i,n.v31r,n.i00a?e-i*t:e+i*t,n.i01r-s,n.i10a?e+i:e-i,n.i11r-s*t,n.i20a?e+i*t:e-i*t,n.i21r+s,n.i30a?e-i:e+i,n.i31r+s*t,n.o00a?e+i*t:e-i*t,n.o01r-s,n.o10a?e+i:e-i,n.o11r+s*t,n.o20a?e-i*t:e+i*t,n.o21r+s,n.o30a?e-i:e+i,n.o31r-s*t}},extendPrototype(DynamicPropertyContainer,e),e}(),pfunction(){function t(t,e){this.vshapePool.newElement(),this.v.setPathData(!0,0),this.elemt,this.compt.comp,this.datae,this.frameId-1,this.de.d,this.initDynamicPropertyContainer(t),1e.sy?(this.irPropertyFactory.getProp(t,e.ir,0,0,this),this.isPropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPaththis.convertStarToPath):this.convertToPaththis.convertPolygonToPath,this.ptPropertyFactory.getProp(t,e.pt,0,0,this),this.pPropertyFactory.getProp(t,e.p,1,0,this),this.rPropertyFactory.getProp(t,e.r,0,degToRads,this),this.orPropertyFactory.getProp(t,e.or,0,0,this),this.osPropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollectionshapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.pathsthis.localShapeCollection,this.dynamicProperties.length?this.k!0:(this.k!1,this.convertToPath())}return t.prototype{reset:i,getValue:function(){this.elem.globalData.frameId!this.frameId&&(this.frameIdthis.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r,i,s2*Math.floor(this.pt.v),a2*Math.PI/s,n!0,othis.or.v,hthis.ir.v,lthis.os.v,pthis.is.v,c2*Math.PI*o/(2*s),f2*Math.PI*h/(2*s),d-Math.PI/2;d+this.r.v;var u3this.data.d?-1:1;for(this.v._length0,t0;ts;t+1){rn?l:p,in?c:f;var m(en?o:h)*Math.cos(d),ye*Math.sin(d),g0m&&0y?0:y/Math.sqrt(m*m+y*y),v0m&&0y?0:-m/Math.sqrt(m*m+y*y);m++this.p.v0,y++this.p.v1,this.v.setTripleAt(m,y,m-g*i*r*u,y-v*i*r*u,m+g*i*r*u,y+v*i*r*u,t,!0),n!n,d+a*u}},convertPolygonToPath:function(){var t,eMath.floor(this.pt.v),r2*Math.PI/e,ithis.or.v,sthis.os.v,a2*Math.PI*i/(4*e),n.5*-Math.PI,o3this.data.d?-1:1;for(n+this.r.v,this.v._length0,t0;te;t+1){var hi*Math.cos(n),li*Math.sin(n),p0h&&0l?0:l/Math.sqrt(h*h+l*l),c0h&&0l?0:-h/Math.sqrt(h*h+l*l);h++this.p.v0,l++this.p.v1,this.v.setTripleAt(h,l,h-p*a*s*o,l-c*a*s*o,h+p*a*s*o,l+c*a*s*o,t,!0),n+r*o}this.paths.length0,this.paths0this.v}},extendPrototype(DynamicPropertyContainer,t),t}(),cfunction(){function t(t,e){this.vshapePool.newElement(),this.v.c!0,this.localShapeCollectionshapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.pathsthis.localShapeCollection,this.elemt,this.compt.comp,this.frameId-1,this.de.d,this.initDynamicPropertyContainer(t),this.pPropertyFactory.getProp(t,e.p,1,0,this),this.sPropertyFactory.getProp(t,e.s,1,0,this),this.rPropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k!0:(this.k!1,this.convertRectToPath())}return t.prototype{convertRectToPath:function(){var tthis.p.v0,ethis.p.v1,rthis.s.v0/2,ithis.s.v1/2,sbmMin(r,i,this.r.v),as*(1-roundCorner);this.v._length0,2this.d||1this.d?(this.v.setTripleAt(t+r,e-i+s,t+r,e-i+s,t+r,e-i+a,0,!0),this.v.setTripleAt(t+r,e+i-s,t+r,e+i-a,t+r,e+i-s,1,!0),0!s?(this.v.setTripleAt(t+r-s,e+i,t+r-s,e+i,t+r-a,e+i,2,!0),this.v.setTripleAt(t-r+s,e+i,t-r+a,e+i,t-r+s,e+i,3,!0),this.v.setTripleAt(t-r,e+i-s,t-r,e+i-s,t-r,e+i-a,4,!0),this.v.setTripleAt(t-r,e-i+s,t-r,e-i+a,t-r,e-i+s,5,!0),this.v.setTripleAt(t-r+s,e-i,t-r+s,e-i,t-r+a,e-i,6,!0),this.v.setTripleAt(t+r-s,e-i,t+r-a,e-i,t+r-s,e-i,7,!0)):(this.v.setTripleAt(t-r,e+i,t-r+a,e+i,t-r,e+i,2),this.v.setTripleAt(t-r,e-i,t-r,e-i+a,t-r,e-i,3))):(this.v.setTripleAt(t+r,e-i+s,t+r,e-i+a,t+r,e-i+s,0,!0),0!s?(this.v.setTripleAt(t+r-s,e-i,t+r-s,e-i,t+r-a,e-i,1,!0),this.v.setTripleAt(t-r+s,e-i,t-r+a,e-i,t-r+s,e-i,2,!0),this.v.setTripleAt(t-r,e-i+s,t-r,e-i+s,t-r,e-i+a,3,!0),this.v.setTripleAt(t-r,e+i-s,t-r,e+i-a,t-r,e+i-s,4,!0),this.v.setTripleAt(t-r+s,e+i,t-r+s,e+i,t-r+a,e+i,5,!0),this.v.setTripleAt(t+r-s,e+i,t+r-a,e+i,t+r-s,e+i,6,!0),this.v.setTripleAt(t+r,e+i-s,t+r,e+i-s,t+r,e+i-a,7,!0)):(this.v.setTripleAt(t-r,e-i,t-r+a,e-i,t-r,e-i,1,!0),this.v.setTripleAt(t-r,e+i,t-r,e+i-a,t-r,e+i,2,!0),this.v.setTripleAt(t+r,e+i,t+r-a,e+i,t+r,e+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!this.frameId&&(this.frameIdthis.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype(DynamicPropertyContainer,t),t}(),f{getShapeProp:function(t,e,r){var i;return 3r||4r?i(3r?e.pt:e.ks).k.length?new h(t,e,r):new n(t,e,r):5r?inew c(t,e):6r?inew l(t,e):7r&&(inew p(t,e)),i.k&&t.addDynamicProperty(i),i},getConstructorFunction:function(){return n},getKeyframedConstructorFunction:function(){return h}};return f}(),Matrixfunction(){var tMath.cos,eMath.sin,rMath.tan,iMath.round;function s(){return this.props01,this.props10,this.props20,this.props30,this.props40,this.props51,this.props60,this.props70,this.props80,this.props90,this.props101,this.props110,this.props120,this.props130,this.props140,this.props151,this}function a(r){if(0r)return this;var it(r),se(r);return this._t(i,-s,0,0,s,i,0,0,0,0,1,0,0,0,0,1)}function n(r){if(0r)return this;var it(r),se(r);return this._t(1,0,0,0,0,i,-s,0,0,s,i,0,0,0,0,1)}function o(r){if(0r)return this;var it(r),se(r);return this._t(i,0,s,0,0,1,0,0,-s,0,i,0,0,0,0,1)}function h(r){if(0r)return this;var it(r),se(r);return this._t(i,-s,0,0,s,i,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(r(t),r(e))}function c(i,s){var at(s),ne(s);return this._t(a,n,0,0,-n,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(i),1,0,0,0,0,1,0,0,0,0,1)._t(a,-n,0,0,n,a,0,0,0,0,1,0,0,0,0,1)}function f(t,e,r){return r||0r||(r1),1t&&1e&&1r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function d(t,e,r,i,s,a,n,o,h,l,p,c,f,d,u,m){return this.props0t,this.props1e,this.props2r,this.props3i,this.props4s,this.props5a,this.props6n,this.props7o,this.props8h,this.props9l,this.props10p,this.props11c,this.props12f,this.props13d,this.props14u,this.props15m,this}function u(t,e,r){return rr||0,0!t||0!e||0!r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function m(t,e,r,i,s,a,n,o,h,l,p,c,f,d,u,m){var ythis.props;if(1t&&0e&&0r&&0i&&0s&&1a&&0n&&0o&&0h&&0l&&1p&&0c)return y12y12*t+y15*f,y13y13*a+y15*d,y14y14*p+y15*u,y15*m,this._identityCalculated!1,this;var gy0,vy1,by2,_y3,Py4,Ey5,Sy6,xy7,Ay8,wy9,Cy10,ky11,Ty12,Dy13,My14,Fy15;return y0g*t+v*s+b*h+_*f,y1g*e+v*a+b*l+_*d,y2g*r+v*n+b*p+_*u,y3g*i+v*o+b*c+_*m,y4P*t+E*s+S*h+x*f,y5P*e+E*a+S*l+x*d,y6P*r+E*n+S*p+x*u,y7P*i+E*o+S*c+x*m,y8A*t+w*s+C*h+k*f,y9A*e+w*a+C*l+k*d,y10A*r+w*n+C*p+k*u,y11A*i+w*o+C*c+k*m,y12T*t+D*s+M*h+F*f,y13T*e+D*a+M*l+F*d,y14T*r+D*n+M*p+F*u,y15T*i+D*o+M*c+F*m,this._identityCalculated!1,this}function y(){return this._identityCalculated||(this._identity!(1!this.props0||0!this.props1||0!this.props2||0!this.props3||0!this.props4||1!this.props5||0!this.props6||0!this.props7||0!this.props8||0!this.props9||1!this.props10||0!this.props11||0!this.props12||0!this.props13||0!this.props14||1!this.props15),this._identityCalculated!0),this._identity}function g(t){for(var e0;e16;){if(t.propse!this.propse)return!1;e+1}return!0}function v(t){var e;for(e0;e16;e+1)t.propsethis.propse;return t}function b(t){var e;for(e0;e16;e+1)this.propsete}function _(t,e,r){return{x:t*this.props0+e*this.props4+r*this.props8+this.props12,y:t*this.props1+e*this.props5+r*this.props9+this.props13,z:t*this.props2+e*this.props6+r*this.props10+this.props14}}function P(t,e,r){return t*this.props0+e*this.props4+r*this.props8+this.props12}function E(t,e,r){return t*this.props1+e*this.props5+r*this.props9+this.props13}function S(t,e,r){return t*this.props2+e*this.props6+r*this.props10+this.props14}function x(){var tthis.props0*this.props5-this.props1*this.props4,ethis.props5/t,r-this.props1/t,i-this.props4/t,sthis.props0/t,a(this.props4*this.props13-this.props5*this.props12)/t,n-(this.props0*this.props13-this.props1*this.props12)/t,onew Matrix;return o.props0e,o.props1r,o.props4i,o.props5s,o.props12a,o.props13n,o}function A(t){return this.getInverseMatrix().applyToPointArray(t0,t1,t2||0)}function w(t){var e,rt.length,i;for(e0;er;e+1)ieA(te);return i}function C(t,e,r){var icreateTypedArray(float32,6);if(this.isIdentity())i0t0,i1t1,i2e0,i3e1,i4r0,i5r1;else{var sthis.props0,athis.props1,nthis.props4,othis.props5,hthis.props12,lthis.props13;i0t0*s+t1*n+h,i1t0*a+t1*o+l,i2e0*s+e1*n+h,i3e0*a+e1*o+l,i4r0*s+r1*n+h,i5r0*a+r1*o+l}return i}function k(t,e,r){return this.isIdentity()?t,e,r:t*this.props0+e*this.props4+r*this.props8+this.props12,t*this.props1+e*this.props5+r*this.props9+this.props13,t*this.props2+e*this.props6+r*this.props10+this.props14}function T(t,e){if(this.isIdentity())return t+,+e;var rthis.props;return Math.round(100*(t*r0+e*r4+r12))/100+,+Math.round(100*(t*r1+e*r5+r13))/100}function D(){for(var t0,ethis.props,rmatrix3d(;t16;)r+i(1e4*et)/1e4,r+15t?):,,t+1;return r}function M(t){return t1e-6&&t>0||t>-1e-6&&t0?i(1e4*t)/1e4:t}function F(){var tthis.props;returnmatrix(+M(t0)+,+M(t1)+,+M(t4)+,+M(t5)+,+M(t12)+,+M(t13)+)}return function(){this.resets,this.rotatea,this.rotateXn,this.rotateYo,this.rotateZh,this.skewp,this.skewFromAxisc,this.shearl,this.scalef,this.setTransformd,this.translateu,this.transformm,this.applyToPoint_,this.applyToXP,this.applyToYE,this.applyToZS,this.applyToPointArrayk,this.applyToTriplePointsC,this.applyToPointStringifiedT,this.toCSSD,this.to2dCSSF,this.clonev,this.cloneFromPropsb,this.equalsg,this.inversePointsw,this.inversePointA,this.getInverseMatrixx,this._tthis.transform,this.isIdentityy,this._identity!0,this._identityCalculated!1,this.propscreateTypedArray(float32,16),this.reset()}}();function _typeof$3(t){return _typeof$3functiontypeof Symbol&&symboltypeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&functiontypeof Symbol&&t.constructorSymbol&&t!Symbol.prototype?symbol:typeof t},_typeof$3(t)}var lottie{},standalone__STANDALONE__,animationData__ANIMATIONDATA__,renderer;function setLocation(t){setLocationHref(t)}function searchAnimations(){!0standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0standalone&&(t.animationDataJSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if(stringtypeof t)switch(t){casehigh:setDefaultCurveSegments(200);break;default:casemedium:setDefaultCurveSegments(50);break;caselow:setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>50?roundValues(!1):roundValues(!0)}function inBrowser(){returnundefined!typeof navigator}function installPlugin(t,e){expressionst&&setExpressionsPlugin(e)}function getFactory(t){switch(t){casepropertyFactory:return PropertyFactory;caseshapePropertyFactory:return ShapePropertyFactory;casematrix:return Matrix;default:return null}}function checkReady(){completedocument.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var equeryString.split(&),r0;re.length;r+1){var ier.split();if(decodeURIComponent(i0)t)return decodeURIComponent(i1)}return null}lottie.playanimationManager.play,lottie.pauseanimationManager.pause,lottie.setLocationHrefsetLocation,lottie.togglePauseanimationManager.togglePause,lottie.setSpeedanimationManager.setSpeed,lottie.setDirectionanimationManager.setDirection,lottie.stopanimationManager.stop,lottie.searchAnimationssearchAnimations,lottie.registerAnimationanimationManager.registerAnimation,lottie.loadAnimationloadAnimation,lottie.setSubframeRenderingsetSubframeRendering,lottie.resizeanimationManager.resize,lottie.goToAndStopanimationManager.goToAndStop,lottie.destroyanimationManager.destroy,lottie.setQualitysetQuality,lottie.inBrowserinBrowser,lottie.installPlugininstallPlugin,lottie.freezeanimationManager.freeze,lottie.unfreezeanimationManager.unfreeze,lottie.setVolumeanimationManager.setVolume,lottie.muteanimationManager.mute,lottie.unmuteanimationManager.unmute,lottie.getRegisteredAnimationsanimationManager.getRegisteredAnimations,lottie.useWebWorkersetWebWorker,lottie.setIDPrefixsetPrefix,lottie.__getFactorygetFactory,lottie.version5.10.0;var queryString;if(standalone){var scriptsdocument.getElementsByTagName(script),indexscripts.length-1,myScriptscriptsindex||{src:};queryStringmyScript.src?myScript.src.replace(/^^\?+\??/,):,renderergetQueryVariable(renderer)}var readyStateCheckIntervalsetInterval(checkReady,100);try{object!_typeof$3(exports)&&(window.bodymovinlottie)}catch(t){}var ShapeModifiersfunction(){var t{},e{};return t.registerModifierfunction(t,r){et||(etr)},t.getModifierfunction(t,r,i){return new et(r,i)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierPropertiesfunction(){},ShapeModifier.prototype.addShapeToModifierfunction(){},ShapeModifier.prototype.addShapefunction(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e{shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.initfunction(t,e){this.shapes,this.elemt,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameIdinitialDefaultFrame,this.closed!1,this.k!1,this.dynamicProperties.length?this.k!0:this.getValue(!0)},ShapeModifier.prototype.processKeysfunction(){this.elem.globalData.frameId!this.frameId&&(this.frameIdthis.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype(DynamicPropertyContainer,ShapeModifier),extendPrototype(ShapeModifier,TrimModifier),TrimModifier.prototype.initModifierPropertiesfunction(t,e){this.sPropertyFactory.getProp(t,e.s,0,.01,this),this.ePropertyFactory.getProp(t,e.e,0,.01,this),this.oPropertyFactory.getProp(t,e.o,0,0,this),this.sValue0,this.eValue0,this.getValuethis.processKeys,this.me.m,this._isAnimated!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifierfunction(t){t.pathsData},TrimModifier.prototype.calculateShapeEdgesfunction(t,e,r,i,s){var a;e1?a.push({s:t,e:e}):t>1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n,o,h,la.length;for(n0;nl;n+1){var p,c;(oan).e*si||o.s*s>i+r||(po.s*si?0:(o.s*s-i)/r,co.e*s>i+r?1:(o.e*s-i)/r,h.push(p,c))}return h.length||h.push(0,0),h},TrimModifier.prototype.releasePathsDatafunction(t){var e,rt.length;for(e0;er;e+1)segmentsLengthPool.release(te);return t.length0,t},TrimModifier.prototype.processShapesfunction(t){var e,r,i,s;if(this._mdf||t){var athis.o.v%360/360;if(a0&&(a+1),(ethis.s.v>1?1+a:this.s.v0?0+a:this.s.v+a)>(rthis.e.v>1?1+a:this.e.v0?0+a:this.e.v+a)){var ne;er,rn}e1e-4*Math.round(1e4*e),r1e-4*Math.round(1e4*r),this.sValuee,this.eValuer}else ethis.sValue,rthis.eValue;var o,h,l,p,c,fthis.shapes.length,d0;if(re)for(s0;sf;s+1)this.shapess.localShapeCollection.releaseShapes(),this.shapess.shape._mdf!0,this.shapess.shape.pathsthis.shapess.localShapeCollection,this._mdf&&(this.shapess.pathsData.length0);else if(1r&&0e||0r&&1e){if(this._mdf)for(s0;sf;s+1)this.shapess.pathsData.length0,this.shapess.shape._mdf!0}else{var u,m,y;for(s0;sf;s+1)if((uthis.shapess).shape._mdf||this._mdf||t||2this.m){if(h(iu.shape.paths)._length,c0,!u.shape._mdf&&u.pathsData.length)cu.totalShapeLength;else{for(lthis.releasePathsData(u.pathsData),o0;oh;o+1)pbez.getSegmentsLength(i.shapeso),l.push(p),c+p.totalLength;u.totalShapeLengthc,u.pathsDatal}d+c,u.shape._mdf!0}else u.shape.pathsu.localShapeCollection;var g,ve,br,_0;for(sf-1;s>0;s-1)if((uthis.shapess).shape._mdf){for((mu.localShapeCollection).releaseShapes(),2this.m&&f>1?(gthis.calculateShapeEdges(e,r,u.totalShapeLength,_,d),_+u.totalShapeLength):gv,b,hg.length,o0;oh;o+1){vgo0,bgo1,y.length0,b1?y.push({s:u.totalShapeLength*v,e:u.totalShapeLength*b}):v>1?y.push({s:u.totalShapeLength*(v-1),e:u.totalShapeLength*(b-1)}):(y.push({s:u.totalShapeLength*v,e:u.totalShapeLength}),y.push({s:0,e:u.totalShapeLength*(b-1)}));var Pthis.addShapes(u,y0);if(y0.s!y0.e){if(y.length>1)if(u.shape.paths.shapesu.shape.paths._length-1.c){var EP.pop();this.addPaths(P,m),Pthis.addShapes(u,y1,E)}else this.addPaths(P,m),Pthis.addShapes(u,y1);this.addPaths(P,m)}}u.shape.pathsm}}},TrimModifier.prototype.addPathsfunction(t,e){var r,it.length;for(r0;ri;r+1)e.addShape(tr)},TrimModifier.prototype.addSegmentfunction(t,e,r,i,s,a,n){s.setXYAt(e0,e1,o,a),s.setXYAt(r0,r1,i,a+1),n&&s.setXYAt(t0,t1,v,a),s.setXYAt(i0,i1,v,a+1)},TrimModifier.prototype.addSegmentFromArrayfunction(t,e,r,i){e.setXYAt(t1,t5,o,r),e.setXYAt(t2,t6,i,r+1),i&&e.setXYAt(t0,t4,v,r),e.setXYAt(t3,t7,v,r+1)},TrimModifier.prototype.addShapesfunction(t,e,r){var i,s,a,n,o,h,l,p,ct.pathsData,ft.shape.paths.shapes,dt.shape.paths._length,u0,m,y!0;for(r?(or._length,pr._length):(rshapePool.newElement(),o0,p0),m.push(r),i0;id;i+1){for(hci.lengths,r.cfi.c,afi.c?h.length:h.length+1,s1;sa;s+1)if(u+(nhs-1).addedLengthe.s)u+n.addedLength,r.c!1;else{if(u>e.e){r.c!1;break}e.su&&e.e>u+n.addedLength?(this.addSegment(fi.vs-1,fi.os-1,fi.is,fi.vs,r,o,y),y!1):(lbez.getNewSegment(fi.vs-1,fi.vs,fi.os-1,fi.is,(e.s-u)/n.addedLength,(e.e-u)/n.addedLength,hs-1),this.addSegmentFromArray(l,r,o,y),y!1,r.c!1),u+n.addedLength,o+1}if(fi.c&&h.length){if(nhs-1,ue.e){var ghs-1.addedLength;e.su&&e.e>u+g?(this.addSegment(fi.vs-1,fi.os-1,fi.i0,fi.v0,r,o,y),y!1):(lbez.getNewSegment(fi.vs-1,fi.v0,fi.os-1,fi.i0,(e.s-u)/g,(e.e-u)/g,hs-1),this.addSegmentFromArray(l,r,o,y),y!1,r.c!1)}else r.c!1;u+n.addedLength,o+1}if(r._length&&(r.setXYAt(r.vp0,r.vp1,i,p),r.setXYAt(r.vr._length-10,r.vr._length-11,o,r._length-1)),u>e.e)break;id-1&&(rshapePool.newElement(),y!0,m.push(r),o0)}return m},extendPrototype(ShapeModifier,PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierPropertiesfunction(t,e){this.getValuethis.processKeys,this.amountPropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPathfunction(t,e){var re/100,i0,0,st._length,a0;for(a0;as;a+1)i0+t.va0,i1+t.va1;i0/s,i1/s;var n,o,h,l,p,c,fshapePool.newElement();for(f.ct.c,a0;as;a+1)nt.va0+(i0-t.va0)*r,ot.va1+(i1-t.va1)*r,ht.oa0+(i0-t.oa0)*-r,lt.oa1+(i1-t.oa1)*-r,pt.ia0+(i0-t.ia0)*-r,ct.ia1+(i1-t.ia1)*-r,f.setTripleAt(n,o,h,l,p,c,a);return f},PuckerAndBloatModifier.prototype.processShapesfunction(t){var e,r,i,s,a,n,othis.shapes.length,hthis.amount.v;if(0!h)for(r0;ro;r+1){if(n(athis.shapesr).localShapeCollection,a.shape._mdf||this._mdf||t)for(n.releaseShapes(),a.shape._mdf!0,ea.shape.paths.shapes,sa.shape.paths._length,i0;is;i+1)n.addShape(this.processPath(ei,h));a.shape.pathsa.localShapeCollection}this.dynamicProperties.length||(this._mdf!1)};var TransformPropertyFactoryfunction(){var t0,0;function e(t,e,r){if(this.elemt,this.frameId-1,this.propTypetransform,this.datae,this.vnew Matrix,this.prenew Matrix,this.appliedTransformations0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.pxPropertyFactory.getProp(t,e.p.x,0,0,this),this.pyPropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pzPropertyFactory.getProp(t,e.p.z,0,0,this))):this.pPropertyFactory.getProp(t,e.p||{k:0,0,0},1,0,this),e.rx){if(this.rxPropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ryPropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rzPropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k0.ti){var i,se.or.k.length;for(i0;is;i+1)e.or.ki.tonull,e.or.ki.tinull}this.orPropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh!0}else this.rPropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.skPropertyFactory.getProp(t,e.sk,0,degToRads,this),this.saPropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.aPropertyFactory.getProp(t,e.a||{k:0,0,0},1,0,this),this.sPropertyFactory.getProp(t,e.s||{k:100,100,100},1,.01,this),e.o?this.oPropertyFactory.getProp(t,e.o,0,.01,t):this.o{_mdf:!1,v:1},this._isDirty!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype{applyToMatrix:function(t){var ethis._mdf;this.iterateDynamicProperties(),this._mdfthis._mdf||e,this.a&&t.translate(-this.a.v0,-this.a.v1,this.a.v2),this.s&&t.scale(this.s.v0,this.s.v1,this.s.v2),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.v2).rotateY(this.or.v1).rotateX(this.or.v0),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.v0,this.p.v1,-this.p.v2)},getValue:function(e){if(this.elem.globalData.frameId!this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty!1),this.iterateDynamicProperties(),this._mdf||e){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations1&&this.v.translate(-this.a.v0,-this.a.v1,this.a.v2),this.appliedTransformations2&&this.v.scale(this.s.v0,this.s.v1,this.s.v2),this.sk&&this.appliedTransformations3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v2).rotateY(this.or.v1).rotateX(this.or.v0),this.autoOriented){var i,s;if(rthis.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTimethis.p.keyframes0.t?(ithis.p.getValueAtTime((this.p.keyframes0.t+.01)/r,0),sthis.p.getValueAtTime(this.p.keyframes0.t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>this.p.keyframesthis.p.keyframes.length-1.t?(ithis.p.getValueAtTime(this.p.keyframesthis.p.keyframes.length-1.t/r,0),sthis.p.getValueAtTime((this.p.keyframesthis.p.keyframes.length-1.t-.05)/r,0)):(ithis.p.pv,sthis.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 athis.px,nthis.py;a._caching.lastFrame+a.offsetTimea.keyframes0.t?(i0a.getValueAtTime((a.keyframes0.t+.01)/r,0),i1n.getValueAtTime((n.keyframes0.t+.01)/r,0),s0a.getValueAtTime(a.keyframes0.t/r,0),s1n.getValueAtTime(n.keyframes0.t/r,0)):a._caching.lastFrame+a.offsetTime>a.keyframesa.keyframes.length-1.t?(i0a.getValueAtTime(a.keyframesa.keyframes.length-1.t/r,0),i1n.getValueAtTime(n.keyframesn.keyframes.length-1.t/r,0),s0a.getValueAtTime((a.keyframesa.keyframes.length-1.t-.01)/r,0),s1n.getValueAtTime((n.keyframesn.keyframes.length-1.t-.01)/r,0)):(ia.pv,n.pv,s0a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime),s1n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/r,n.offsetTime))}else ist;this.v.rotate(-Math.atan2(i1-s1,i0-s0))}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.v0,this.p.v1,-this.p.v2)}this.frameIdthis.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v0,-this.a.v1,this.a.v2),this.appliedTransformations1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v0,this.s.v1,this.s.v2),this.appliedTransformations2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations4):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.v2).rotateY(this.or.v1).rotateX(this.or.v0),this.appliedTransformations4)}},autoOrient:function(){}},extendPrototype(DynamicPropertyContainer,e),e.prototype.addDynamicPropertyfunction(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty!0},e.prototype._addDynamicPropertyDynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,r,i){return new e(t,r,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){returnlerp(t0,e0,r),lerp(t1,e1,r)}function quadRoots(t,e,r){if(0t)return;var ie*e-4*t*r;if(i0)return;var s-e/(2*t);if(0i)returns;var aMath.sqrt(i)/(2*t);returns-a,s+a}function polynomialCoefficients(t,e,r,i){return3*e-t-3*r+i,3*t-6*e+3*r,-3*t+3*e,t}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,i,s){s&&pointEqual(t,e)&&(elerpPoint(t,i,1/3)),s&&pointEqual(r,i)&&(rlerpPoint(t,i,2/3));var apolynomialCoefficients(t0,e0,r0,i0),npolynomialCoefficients(t1,e1,r1,i1);this.aa0,n0,this.ba1,n1,this.ca2,n2,this.da3,n3,this.pointst,e,r,i}function extrema(t,e){var rt.points0e,it.pointst.points.length-1e;if(r>i){var si;ir,rs}for(var aquadRoots(3*t.ae,2*t.be,t.ce),n0;na.length;n+1)if(an>0&&an1){var ot.point(an)e;or?ro:o>i&&(io)}return{min:r,max:i}}function intersectData(t,e,r){var it.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var et.bez.split(.5);returnintersectData(e0,t.t1,t.t),intersectData(e1,t.t,t.t2)}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)t.width+e.width&&2*Math.abs(t.cy-e.cy)t.height+e.height}function intersectsImpl(t,e,r,i,s,a){if(boxIntersect(t,e))if(r>a||t.widthi&&t.heighti&&e.widthi&&e.heighti)s.push(t.t,e.t);else{var nsplitData(t),osplitData(e);intersectsImpl(n0,o0,r+1,i,s,a),intersectsImpl(n0,o1,r+1,i,s,a),intersectsImpl(n1,o0,r+1,i,s,a),intersectsImpl(n1,o1,r+1,i,s,a)}}function crossProduct(t,e){returnt1*e2-t2*e1,t2*e0-t0*e2,t0*e1-t1*e0}function lineIntersection(t,e,r,i){var st0,t1,1,ae0,e1,1,nr0,r1,1,oi0,i1,1,hcrossProduct(crossProduct(s,a),crossProduct(n,o));return floatZero(h2)?null:h0/h2,h1/h2}function polarOffset(t,e,r){returnt0+Math.cos(e)*r,t1-Math.sin(e)*r}function pointDistance(t,e){return Math.hypot(t0-e0,t1-e1)}function pointEqual(t,e){return floatEqual(t0,e0)&&floatEqual(t1,e1)}function ZigZagModifier(){}function setPoint(t,e,r,i,s,a,n){var or-Math.PI/2,hr+Math.PI/2,le0+Math.cos(r)*i*s,pe1-Math.sin(r)*i*s;t.setTripleAt(l,p,l+Math.cos(o)*a,p-Math.sin(o)*a,l+Math.cos(h)*n,p-Math.sin(h)*n,t.length())}function getPerpendicularVector(t,e){var re0-t0,e1-t1,i.5*-Math.PI;returnMath.cos(i)*r0-Math.sin(i)*r1,Math.sin(i)*r0+Math.cos(i)*r1}function getProjectingAngle(t,e){var r0e?t.length()-1:e-1,i(e+1)%t.length(),sgetPerpendicularVector(t.vr,t.vi);return Math.atan2(0,1)-Math.atan2(s1,s0)}function zigZagCorner(t,e,r,i,s,a,n){var ogetProjectingAngle(e,r),he.vr%e._length,le.v0r?e._length-1:r-1,pe.v(r+1)%e._length,c2a?Math.sqrt(Math.pow(h0-l0,2)+Math.pow(h1-l1,2)):0,f2a?Math.sqrt(Math.pow(h0-p0,2)+Math.pow(h1-p1,2)):0;setPoint(t,e.vr%e._length,o,n,i,f/(2*(s+1)),c/(2*(s+1)),a)}function zigZagSegment(t,e,r,i,s,a){for(var n0;ni;n+1){var o(n+1)/(i+1),h2s?Math.sqrt(Math.pow(e.points30-e.points00,2)+Math.pow(e.points31-e.points01,2)):0,le.normalAngle(o);setPoint(t,e.point(o),l,a,r,h/(2*(i+1)),h/(2*(i+1)),s),a-a}return a}function linearOffset(t,e,r){var iMath.atan2(e0-t0,e1-t1);returnpolarOffset(t,i,r),polarOffset(e,i,r)}function offsetSegment(t,e){var r,i,s,a,n,o,h;r(hlinearOffset(t.points0,t.points1,e))0,ih1,s(hlinearOffset(t.points1,t.points2,e))0,ah1,n(hlinearOffset(t.points2,t.points3,e))0,oh1;var llineIntersection(r,i,s,a);nulll&&(li);var plineIntersection(n,o,s,a);return nullp&&(pn),new PolynomialBezier(r,l,p,o)}function joinLines(t,e,r,i,s){var ae.points3,nr.points0;if(3i)return a;if(pointEqual(a,n))return a;if(2i){var o-e.tangentAngle(1),h-r.tangentAngle(0)+Math.PI,llineIntersection(a,polarOffset(a,o+Math.PI/2,100),n,polarOffset(n,o+Math.PI/2,100)),pl?pointDistance(l,a):pointDistance(a,n)/2,cpolarOffset(a,o,2*p*roundCorner);return t.setXYAt(c0,c1,o,t.length()-1),cpolarOffset(n,h,2*p*roundCorner),t.setTripleAt(n0,n1,n0,n1,c0,c1,t.length()),n}var flineIntersection(pointEqual(a,e.points2)?e.points0:e.points2,a,n,pointEqual(n,r.points1)?r.points3:r.points1);return f&&pointDistance(f,a)s?(t.setTripleAt(f0,f1,f0,f1,f0,f1,t.length()),f):a}function getIntersection(t,e){var rt.intersections(e);return r.length&&floatEqual(r00,1)&&r.shift(),r.length?r0:null}function pruneSegmentIntersection(t,e){var rt.slice(),ie.slice(),sgetIntersection(tt.length-1,e0);return s&&(rt.length-1tt.length-1.split(s0)0,i0e0.split(s1)1),t.length>1&&e.length>1&&(sgetIntersection(t0,ee.length-1))?t0.split(s0)0,ee.length-1.split(s1)1:r,i}function pruneIntersections(t){for(var e,r1;rt.length;r+1)epruneSegmentIntersection(tr-1,tr),tr-1e0,tre1;return t.length>1&&(epruneSegmentIntersection(tt.length-1,t0),tt.length-1e0,t0e1),t}function offsetSegmentSplit(t,e){var r,i,s,a,nt.inflectionPoints();if(0n.length)returnoffsetSegment(t,e);if(1n.length||floatEqual(n1,1))return r(st.split(n0))0,is1,offsetSegment(r,e),offsetSegment(i,e);r(st.split(n0))0;var o(n1-n0)/(1-n0);return a(ss1.split(o))0,is1,offsetSegment(r,e),offsetSegment(a,e),offsetSegment(i,e)}function OffsetPathModifier(){}function getFontProperties(t){for(var et.fStyle?t.fStyle.split( ):,rnormal,inormal,se.length,a0;as;a+1)switch(ea.toLowerCase()){caseitalic:iitalic;break;casebold:r700;break;caseblack:r900;break;casemedium:r500;break;caseregular:casenormal:r400;break;caselight:casethin:r200}return{style:i,weight:t.fWeight||r}}extendPrototype(ShapeModifier,RepeaterModifier),RepeaterModifier.prototype.initModifierPropertiesfunction(t,e){this.getValuethis.processKeys,this.cPropertyFactory.getProp(t,e.c,0,null,this),this.oPropertyFactory.getProp(t,e.o,0,null,this),this.trTransformPropertyFactory.getTransformProperty(t,e.tr,this),this.soPropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eoPropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.datae,this.dynamicProperties.length||this.getValue(!0),this._isAnimated!!this.dynamicProperties.length,this.pMatrixnew Matrix,this.rMatrixnew Matrix,this.sMatrixnew Matrix,this.tMatrixnew Matrix,this.matrixnew Matrix},RepeaterModifier.prototype.applyTransformsfunction(t,e,r,i,s,a){var na?-1:1,oi.s.v0+(1-i.s.v0)*(1-s),hi.s.v1+(1-i.s.v1)*(1-s);t.translate(i.p.v0*n*s,i.p.v1*n*s,i.p.v2),e.translate(-i.a.v0,-i.a.v1,i.a.v2),e.rotate(-i.r.v*n*s),e.translate(i.a.v0,i.a.v1,i.a.v2),r.translate(-i.a.v0,-i.a.v1,i.a.v2),r.scale(a?1/o:o,a?1/h:h),r.translate(i.a.v0,i.a.v1,i.a.v2)},RepeaterModifier.prototype.initfunction(t,e,r,i){for(this.elemt,this.arre,this.posr,this.elemsDatai,this._currentCopies0,this._elements,this._groups,this.frameId-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,er);r>0;)r-1,this._elements.unshift(er);this.dynamicProperties.length?this.k!0:this.getValue(!0)},RepeaterModifier.prototype.resetElementsfunction(t){var e,rt.length;for(e0;er;e+1)te._processed!1,grte.ty&&this.resetElements(te.it)},RepeaterModifier.prototype.cloneElementsfunction(t){var eJSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRenderfunction(t,e){var r,it.length;for(r0;ri;r+1)tr._rendere,grtr.ty&&this.changeGroupRender(tr.it,e)},RepeaterModifier.prototype.processShapesfunction(t){var e,r,i,s,a,n!1;if(this._mdf||t){var o,hMath.ceil(this.c.v);if(this._groups.lengthh){for(;this._groups.lengthh;){var l{it:this.cloneElements(this._elements),ty:gr};l.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,l),this._groups.splice(0,0,l),this._currentCopies+1}this.elem.reloadShapes(),n!0}for(a0,i0;ithis._groups.length-1;i+1){if(oah,this._groupsi._rendero,this.changeGroupRender(this._groupsi.it,o),!o){var pthis.elemsDatai.it,cpp.length-1;0!c.transform.op.v?(c.transform.op._mdf!0,c.transform.op.v0):c.transform.op._mdf!1}a+1}this._currentCopiesh;var fthis.o.v,df%1,uf>0?Math.floor(f):Math.ceil(f),mthis.pMatrix.props,ythis.rMatrix.props,gthis.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,_0;if(f>0){for(;_u;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),_+d)}else if(f0){for(;_>u;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),_-d)}for(i1this.data.m?0:this._currentCopies-1,s1this.data.m?1:-1,athis._currentCopies;a;){if(b(r(ethis.elemsDatai.it)e.length-1.transform.mProps.v.props).length,ee.length-1.transform.mProps._mdf!0,ee.length-1.transform.op._mdf!0,ee.length-1.transform.op.v1this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!_){for((0!i&&1s||i!this._currentCopies-1&&-1s)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y0,y1,y2,y3,y4,y5,y6,y7,y8,y9,y10,y11,y12,y13,y14,y15),this.matrix.transform(g0,g1,g2,g3,g4,g5,g6,g7,g8,g9,g10,g11,g12,g13,g14,g15),this.matrix.transform(m0,m1,m2,m3,m4,m5,m6,m7,m8,m9,m10,m11,m12,m13,m14,m15),v0;vb;v+1)rvthis.matrix.propsv;this.matrix.reset()}else for(this.matrix.reset(),v0;vb;v+1)rvthis.matrix.propsv;_+1,a-1,i+s}}else for(athis._currentCopies,i0,s1;a;)r(ethis.elemsDatai.it)e.length-1.transform.mProps.v.props,ee.length-1.transform.mProps._mdf!1,ee.length-1.transform.op._mdf!1,a-1,i+s;return n},RepeaterModifier.prototype.addShapefunction(){},extendPrototype(ShapeModifier,RoundCornersModifier),RoundCornersModifier.prototype.initModifierPropertiesfunction(t,e){this.getValuethis.processKeys,this.rdPropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPathfunction(t,e){var r,ishapePool.newElement();i.ct.c;var s,a,n,o,h,l,p,c,f,d,u,m,yt._length,g0;for(r0;ry;r+1)st.vr,nt.or,at.ir,s0n0&&s1n1&&s0a0&&s1a1?0!r&&r!y-1||t.c?(o0r?t.vy-1:t.vr-1,l(hMath.sqrt(Math.pow(s0-o0,2)+Math.pow(s1-o1,2)))?Math.min(h/2,e)/h:0,pus0+(o0-s0)*l,cms1-(s1-o1)*l,fp-(p-s0)*roundCorner,dc-(c-s1)*roundCorner,i.setTripleAt(p,c,f,d,u,m,g),g+1,ory-1?t.v0:t.vr+1,l(hMath.sqrt(Math.pow(s0-o0,2)+Math.pow(s1-o1,2)))?Math.min(h/2,e)/h:0,pfs0+(o0-s0)*l,cds1+(o1-s1)*l,up-(p-s0)*roundCorner,mc-(c-s1)*roundCorner,i.setTripleAt(p,c,f,d,u,m,g),g+1):(i.setTripleAt(s0,s1,n0,n1,a0,a1,g),g+1):(i.setTripleAt(t.vr0,t.vr1,t.or0,t.or1,t.ir0,t.ir1,g),g+1);return i},RoundCornersModifier.prototype.processShapesfunction(t){var e,r,i,s,a,n,othis.shapes.length,hthis.rd.v;if(0!h)for(r0;ro;r+1){if(n(athis.shapesr).localShapeCollection,a.shape._mdf||this._mdf||t)for(n.releaseShapes(),a.shape._mdf!0,ea.shape.paths.shapes,sa.shape.paths._length,i0;is;i+1)n.addShape(this.processPath(ei,h));a.shape.pathsa.localShapeCollection}this.dynamicProperties.length||(this._mdf!1)},PolynomialBezier.prototype.pointfunction(t){return((this.a0*t+this.b0)*t+this.c0)*t+this.d0,((this.a1*t+this.b1)*t+this.c1)*t+this.d1},PolynomialBezier.prototype.derivativefunction(t){return(3*t*this.a0+2*this.b0)*t+this.c0,(3*t*this.a1+2*this.b1)*t+this.c1},PolynomialBezier.prototype.tangentAnglefunction(t){var ethis.derivative(t);return Math.atan2(e1,e0)},PolynomialBezier.prototype.normalAnglefunction(t){var ethis.derivative(t);return Math.atan2(e0,e1)},PolynomialBezier.prototype.inflectionPointsfunction(){var tthis.a1*this.b0-this.a0*this.b1;if(floatZero(t))return;var e-.5*(this.a1*this.c0-this.a0*this.c1)/t,re*e-1/3*(this.b1*this.c0-this.b0*this.c1)/t;if(r0)return;var iMath.sqrt(r);return floatZero(i)?i>0&&i1?e::e-i,e+i.filter((function(t){return t>0&&t1}))},PolynomialBezier.prototype.splitfunction(t){if(t0)returnsinglePoint(this.points0),this;if(t>1)returnthis,singlePoint(this.pointsthis.points.length-1);var elerpPoint(this.points0,this.points1,t),rlerpPoint(this.points1,this.points2,t),ilerpPoint(this.points2,this.points3,t),slerpPoint(e,r,t),alerpPoint(r,i,t),nlerpPoint(s,a,t);returnnew PolynomialBezier(this.points0,e,s,n,!0),new PolynomialBezier(n,a,i,this.points3,!0)},PolynomialBezier.prototype.boundsfunction(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBoxfunction(){var tthis.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersectionsfunction(t,e,r){void 0e&&(e2),void 0r&&(r7);var i;return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegmentfunction(t,e){var r(e+1)%t.length();return new PolynomialBezier(t.ve,t.oe,t.ir,t.vr,!0)},PolynomialBezier.shapeSegmentInvertedfunction(t,e){var r(e+1)%t.length();return new PolynomialBezier(t.vr,t.ir,t.oe,t.ve,!0)},extendPrototype(ShapeModifier,ZigZagModifier),ZigZagModifier.prototype.initModifierPropertiesfunction(t,e){this.getValuethis.processKeys,this.amplitudePropertyFactory.getProp(t,e.s,0,null,this),this.frequencyPropertyFactory.getProp(t,e.r,0,null,this),this.pointsTypePropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated0!this.amplitude.effectsSequence.length||0!this.frequency.effectsSequence.length||0!this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPathfunction(t,e,r,i){var st._length,ashapePool.newElement();if(a.ct.c,t.c||(s-1),0s)return a;var n-1,oPolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,r,i,n);for(var h0;hs;h+1)nzigZagSegment(a,o,e,r,i,-n),oh!s-1||t.c?PolynomialBezier.shapeSegment(t,(h+1)%s):null,zigZagCorner(a,t,h+1,e,r,i,n);return a},ZigZagModifier.prototype.processShapesfunction(t){var e,r,i,s,a,n,othis.shapes.length,hthis.amplitude.v,lMath.max(0,Math.round(this.frequency.v)),pthis.pointsType.v;if(0!h)for(r0;ro;r+1){if(n(athis.shapesr).localShapeCollection,a.shape._mdf||this._mdf||t)for(n.releaseShapes(),a.shape._mdf!0,ea.shape.paths.shapes,sa.shape.paths._length,i0;is;i+1)n.addShape(this.processPath(ei,h,l,p));a.shape.pathsa.localShapeCollection}this.dynamicProperties.length||(this._mdf!1)},extendPrototype(ShapeModifier,OffsetPathModifier),OffsetPathModifier.prototype.initModifierPropertiesfunction(t,e){this.getValuethis.processKeys,this.amountPropertyFactory.getProp(t,e.a,0,null,this),this.miterLimitPropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoine.lj,this._isAnimated0!this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPathfunction(t,e,r,i){var sshapePool.newElement();s.ct.c;var a,n,o,ht.length();t.c||(h-1);var l;for(a0;ah;a+1)oPolynomialBezier.shapeSegment(t,a),l.push(offsetSegmentSplit(o,e));if(!t.c)for(ah-1;a>0;a-1)oPolynomialBezier.shapeSegmentInverted(t,a),l.push(offsetSegmentSplit(o,e));lpruneIntersections(l);var pnull,cnull;for(a0;al.length;a+1){var fla;for(c&&(pjoinLines(s,c,f0,r,i)),cff.length-1,n0;nf.length;n+1)ofn,p&&pointEqual(o.points0,p)?s.setXYAt(o.points10,o.points11,o,s.length()-1):s.setTripleAt(o.points00,o.points01,o.points10,o.points11,o.points00,o.points01,s.length()),s.setTripleAt(o.points30,o.points31,o.points30,o.points31,o.points20,o.points21,s.length()),po.points3}return l.length&&joinLines(s,c,l00,r,i),s},OffsetPathModifier.prototype.processShapesfunction(t){var e,r,i,s,a,n,othis.shapes.length,hthis.amount.v,lthis.miterLimit.v,pthis.lineJoin;if(0!h)for(r0;ro;r+1){if(n(athis.shapesr).localShapeCollection,a.shape._mdf||this._mdf||t)for(n.releaseShapes(),a.shape._mdf!0,ea.shape.paths.shapes,sa.shape.paths._length,i0;is;i+1)n.addShape(this.processPath(ei,h,p,l));a.shape.pathsa.localShapeCollection}this.dynamicProperties.length||(this._mdf!1)};var FontManagerfunction(){var t{w:0,size:0,shapes:,data:{shapes:}},e;ee.concat(2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403);var rd83cdffb,d83cdffc,d83cdffd,d83cdffe,d83cdfff,i65039,8205;function s(t,e){var rcreateTag(span);r.setAttribute(aria-hidden,!0),r.style.fontFamilye;var icreateTag(span);i.innerTextgiItT1WQy@!-/#,r.style.positionabsolute,r.style.left-10000px,r.style.top-10000px,r.style.fontSize300px,r.style.fontVariantnormal,r.style.fontStylenormal,r.style.fontWeightnormal,r.style.letterSpacing0,r.appendChild(i),document.body.appendChild(r);var si.offsetWidth;return i.style.fontFamilyfunction(t){var e,rt.split(,),ir.length,s;for(e0;ei;e+1)sans-serif!re&&monospace!re&&s.push(re);return s.join(,)}(t)+, +e,{node:i,w:s,parent:r}}function a(t,e){var r,idocument.body&&e?svg:canvas,sgetFontProperties(t);if(svgi){var acreateNS(text);a.style.fontSize100px,a.setAttribute(font-family,t.fFamily),a.setAttribute(font-style,s.style),a.setAttribute(font-weight,s.weight),a.textContent1,t.fClass?(a.style.fontFamilyinherit,a.setAttribute(class,t.fClass)):a.style.fontFamilyt.fFamily,e.appendChild(a),ra}else{var nnew OffscreenCanvas(500,500).getContext(2d);n.fonts.style+ +s.weight+ 100px +t.fFamily,rn}return{measureText:function(t){returnsvgi?(r.textContentt,r.getComputedTextLength()):r.measureText(t).width}}}var nfunction(){this.fonts,this.charsnull,this.typekitLoaded0,this.isLoaded!1,this._warned!1,this.initTimeDate.now(),this.setIsLoadedBindedthis.setIsLoaded.bind(this),this.checkLoadedFontsBindedthis.checkLoadedFonts.bind(this)};n.isModifierfunction(t,e){var it.toString(16)+e.toString(16);return-1!r.indexOf(i)},n.isZeroWidthJoinerfunction(t,e){return e?ti0&&ei1:ti1},n.isCombinedCharacterfunction(t){return-1!e.indexOf(t)};var o{addChars:function(t){if(t){var e;this.chars||(this.chars);var r,i,st.length,athis.chars.length;for(e0;es;e+1){for(r0,i!1;ra;)this.charsr.stylete.style&&this.charsr.fFamilyte.fFamily&&this.charsr.chte.ch&&(i!0),r+1;i||(this.chars.push(te),a+1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded!0,void(this.fontst.list);if(!document.body)return this.isLoaded!0,t.list.forEach((function(t){t.helpera(t),t.cache{}})),void(this.fontst.list);var r,it.list,ni.length,on;for(r0;rn;r+1){var h,l,p!0;if(ir.loaded!1,ir.monoCases(ir.fFamily,monospace),ir.sansCases(ir.fFamily,sans-serif),ir.fPath){if(pir.fOrigin||3ir.origin){if((hdocument.querySelectorAll(stylef-foriginpf-family+ir.fFamily+, stylef-origin3f-family+ir.fFamily+)).length>0&&(p!1),p){var ccreateTag(style);c.setAttribute(f-forigin,ir.fOrigin),c.setAttribute(f-origin,ir.origin),c.setAttribute(f-family,ir.fFamily),c.typetext/css,c.innerText@font-face {font-family: +ir.fFamily+; font-style: normal; src: url(+ir.fPath+);},e.appendChild(c)}}else if(gir.fOrigin||1ir.origin){for(hdocument.querySelectorAll(linkf-foriging, linkf-origin1),l0;lh.length;l+1)-1!hl.href.indexOf(ir.fPath)&&(p!1);if(p){var fcreateTag(link);f.setAttribute(f-forigin,ir.fOrigin),f.setAttribute(f-origin,ir.origin),f.typetext/css,f.relstylesheet,f.hrefir.fPath,document.body.appendChild(f)}}else if(tir.fOrigin||2ir.origin){for(hdocument.querySelectorAll(scriptf-forigint, scriptf-origin2),l0;lh.length;l+1)ir.fPathhl.src&&(p!1);if(p){var dcreateTag(link);d.setAttribute(f-forigin,ir.fOrigin),d.setAttribute(f-origin,ir.origin),d.setAttribute(rel,stylesheet),d.setAttribute(href,ir.fPath),e.appendChild(d)}}}else ir.loaded!0,o-1;ir.helpera(ir,e),ir.cache{},this.fonts.push(ir)}0o?this.isLoaded!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded!0},getCharData:function(e,r,i){for(var s0,athis.chars.length;sa;){if(this.charss.che&&this.charss.styler&&this.charss.fFamilyi)return this.charss;s+1}return(stringtypeof e&&13!e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned!0,console.warn(Missing character from exported characters list: ,e,r,i)),t},getFontByName:function(t){for(var e0,rthis.fonts.length;er;){if(this.fontse.fNamet)return this.fontse;e+1}return this.fonts0},measureText:function(t,e,r){var ithis.getFontByName(e),st.charCodeAt(0);if(!i.caches+1){var ai.helper;if( t){var na.measureText(|+t+|),oa.measureText(||);i.caches+1(n-o)/100}else i.caches+1a.measureText(t)/100}return i.caches+1*r},checkLoadedFonts:function(){var t,e,r,ithis.fonts.length,si;for(t0;ti;t+1)this.fontst.loaded?s-1:nthis.fontst.fOrigin||0this.fontst.origin?this.fontst.loaded!0:(ethis.fontst.monoCase.node,rthis.fontst.monoCase.w,e.offsetWidth!r?(s-1,this.fontst.loaded!0):(ethis.fontst.sansCase.node,rthis.fontst.sansCase.w,e.offsetWidth!r&&(s-1,this.fontst.loaded!0)),this.fontst.loaded&&(this.fontst.sansCase.parent.parentNode.removeChild(this.fontst.sansCase.parent),this.fontst.monoCase.parent.parentNode.removeChild(this.fontst.monoCase.parent)));0!s&&Date.now()-this.initTime5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded!0}};return n.prototypeo,n}();function RenderableElement(){}RenderableElement.prototype{initRenderable:function(){this.isInRange!1,this.hidden!1,this.isTransparent!1,this.renderableComponents},addRenderableComponent:function(t){-1this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent!0,this.hide()):this.isTransparent&&(this.isTransparent!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.stt&&this.data.op-this.data.st>t?!0!this.isInRange&&(this.globalData._mdf!0,this._mdf!0,this.isInRange!0,this.show()):!1!this.isInRange&&(this.globalData._mdf!0,this.isInRange!1,this.hide())},renderRenderable:function(){var t,ethis.renderableComponents.length;for(t0;te;t+1)this.renderableComponentst.renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode(blendModeEnums{0:source-over,1:multiply,2:screen,3:overlay,4:darken,5:lighten,6:color-dodge,7:color-burn,8:hard-light,9:soft-light,10:difference,11:exclusion,12:hue,13:saturation,14:color,15:luminosity},function(t){return blendModeEnumst||}),blendModeEnums;function SliderEffect(t,e,r){this.pPropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.pPropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.pPropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.pPropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.pPropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.pPropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.pPropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p{}}function EffectsManager(t,e){var r,it.ef||;this.effectElements;var s,ai.length;for(r0;ra;r+1)snew GroupEffect(ir,e),this.effectElements.push(s)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetDatae.getAssetData(t.refId),this.footageDatae.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetDatae.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying!1,this._canPlay!1;var ithis.globalData.getAssetsPath(this.assetData);this.audiothis.globalData.audioController.createAudio(i),this._currentTime0,this.globalData.audioController.addAudio(this),this._volumeMultiplier1,this._volume1,this._previousVolumenull,this.tmt.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lvPropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:100},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(t,e,r){this.datat,this.elemente,this.globalDatar,this.storedData,this.masksPropertiesthis.data.masksProperties||,this.maskElementnull;var i,s,athis.globalData.defs,nthis.masksProperties?this.masksProperties.length:0;this.viewDatacreateSizedArray(n),this.solidPath;var o,h,l,p,c,f,dthis.masksProperties,u0,m,ycreateElementID(),gclipPath,vclip-path;for(i0;in;i+1)if((a!di.mode&&n!di.mode||di.inv||100!di.o.k||di.o.x)&&(gmask,vmask),s!di.mode&&i!di.mode||0!u?lnull:((lcreateNS(rect)).setAttribute(fill,#ffffff),l.setAttribute(width,this.element.comp.data.w||0),l.setAttribute(height,this.element.comp.data.h||0),m.push(l)),screateNS(path),ndi.mode)this.viewDatai{op:PropertyFactory.getProp(this.element,di.o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,di,3),elem:s,lastPath:},a.appendChild(s);else{var b;if(u+1,s.setAttribute(fill,sdi.mode?#000000:#ffffff),s.setAttribute(clip-rule,nonzero),0!di.x.k?(gmask,vmask,fPropertyFactory.getProp(this.element,di.x,0,null,this.element),bcreateElementID(),(pcreateNS(filter)).setAttribute(id,b),(ccreateNS(feMorphology)).setAttribute(operator,erode),c.setAttribute(in,SourceGraphic),c.setAttribute(radius,0),p.appendChild(c),a.appendChild(p),s.setAttribute(stroke,sdi.mode?#000000:#ffffff)):(cnull,fnull),this.storedDatai{elem:s,x:f,expan:c,lastPath:,lastOperator:,filterId:b,lastRadius:0},idi.mode){hm.length;var _createNS(g);for(o0;oh;o+1)_.appendChild(mo);var PcreateNS(mask);P.setAttribute(mask-type,alpha),P.setAttribute(id,y+_+u),P.appendChild(s),a.appendChild(P),_.setAttribute(mask,url(+getLocationHref()+#+y+_+u+)),m.length0,m.push(_)}else m.push(s);di.inv&&!this.solidPath&&(this.solidPaththis.createLayerSolidPath()),this.viewDatai{elem:s,lastPath:,op:PropertyFactory.getProp(this.element,di.o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,di,3),invRect:l},this.viewDatai.prop.k||this.drawPath(di,this.viewDatai.prop.v,this.viewDatai)}for(this.maskElementcreateNS(g),nm.length,i0;in;i+1)this.maskElement.appendChild(mi);u>0&&(this.maskElement.setAttribute(id,y),this.element.maskedElement.setAttribute(v,url(+getLocationHref()+#+y+)),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype(DynamicPropertyContainer,GroupEffect),GroupEffect.prototype.getValueGroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.initfunction(t,e){var r;this.datat,this.effectElements,this.initDynamicPropertyContainer(e);var i,sthis.data.ef.length,athis.data.ef;for(r0;rs;r+1){switch(inull,ar.ty){case 0:inew SliderEffect(ar,e,this);break;case 1:inew AngleEffect(ar,e,this);break;case 2:inew ColorEffect(ar,e,this);break;case 3:inew PointEffect(ar,e,this);break;case 4:case 7:inew CheckboxEffect(ar,e,this);break;case 10:inew LayerIndexEffect(ar,e,this);break;case 11:inew MaskIndexEffect(ar,e,this);break;case 5:inew EffectsManager(ar,e,this);break;default:inew NoValueEffect(ar,e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype{checkMasks:function(){if(!this.data.hasMask)return!1;for(var t0,ethis.data.masksProperties.length;te;){if(n!this.data.masksPropertiest.mode&&!1!this.data.masksPropertiest.cl)return!0;t+1}return!1},initExpressions:function(){var tgetExpressionInterfaces();if(t){var et(layer),rt(effects),it(shape),st(text),at(comp);this.layerInterfacee(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var nr.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(n),0this.data.ty||this.data.xt?this.compInterfacea(this):4this.data.ty?(this.layerInterface.shapeInterfacei(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.contentthis.layerInterface.shapeInterface):5this.data.ty&&(this.layerInterface.textInterfaces(this),this.layerInterface.textthis.layerInterface.textInterface)}},setBlendMode:function(){var tgetBlendMode(this.data.bm);(this.baseElement||this.layerElement).stylemix-blend-modet},initBaseData:function(t,e,r){this.globalDatae,this.compr,this.datat,this.layerIdcreateElementID(),this.data.sr||(this.data.sr1),this.effectsManagernew EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype{initFrame:function(){this._isFirstFrame!1,this.dynamicProperties,this._mdf!1},prepareProperties:function(t,e){var r,ithis.dynamicProperties.length;for(r0;ri;r+1)(e||this._isParent&&transformthis.dynamicPropertiesr.propType)&&(this.dynamicPropertiesr.getValue(),this.dynamicPropertiesr._mdf&&(this.globalData._mdf!0,this._mdf!0))},addDynamicProperty:function(t){-1this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFramefunction(){},extendPrototype(RenderableElement,BaseElement,FrameElement,FootageElement),FootageElement.prototype.getBaseElementfunction(){return null},FootageElement.prototype.renderFramefunction(){},FootageElement.prototype.destroyfunction(){},FootageElement.prototype.initExpressionsfunction(){var tgetExpressionInterfaces();if(t){var et(footage);this.layerInterfacee(this)}},FootageElement.prototype.getFootageDatafunction(){return this.footageData},AudioElement.prototype.prepareFramefunction(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTimet/this.data.sr;else{var ethis.tm.v;this._currentTimee}this._volumethis.lv.v0;var rthis._volume*this._volumeMultiplier;this._previousVolume!r&&(this._previousVolumer,this.audio.volume(r))},extendPrototype(RenderableElement,BaseElement,FrameElement,AudioElement),AudioElement.prototype.renderFramefunction(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying!0))},AudioElement.prototype.showfunction(){},AudioElement.prototype.hidefunction(){this.audio.pause(),this._isPlaying!1},AudioElement.prototype.pausefunction(){this.audio.pause(),this._isPlaying!1,this._canPlay!1},AudioElement.prototype.resumefunction(){this._canPlay!0},AudioElement.prototype.setRatefunction(t){this.audio.rate(t)},AudioElement.prototype.volumefunction(t){this._volumeMultipliert,this._previousVolumet*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElementfunction(){return null},AudioElement.prototype.destroyfunction(){},AudioElement.prototype.sourceRectAtTimefunction(){},AudioElement.prototype.initExpressionsfunction(){},BaseRenderer.prototype.checkLayersfunction(t){var e,r,ithis.layers.length;for(this.completeLayers!0,ei-1;e>0;e-1)this.elementse||(rthis.layerse).ip-r.stt-this.layerse.st&&r.op-r.st>t-this.layerse.st&&this.buildItem(e),this.completeLayers!!this.elementse&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItemfunction(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamerafunction(){throw new Error(Youre using a 3d camera. Try the html renderer.)},BaseRenderer.prototype.createAudiofunction(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootagefunction(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItemsfunction(){var t,ethis.layers.length;for(t0;te;t+1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayersfunction(t){var e;this.completeLayers!1;var r,it.length,sthis.layers.length;for(e0;ei;e+1)for(r0;rs;){if(this.layersr.idte.id){this.layersrte;break}r+1}},BaseRenderer.prototype.setProjectInterfacefunction(t){this.globalData.projectInterfacet},BaseRenderer.prototype.initItemsfunction(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParentingfunction(t,e,r){for(var ithis.elements,sthis.layers,a0,ns.length;an;)sa.inde&&(ia&&!0!ia?(r.push(ia),ia.setAsParent(),void 0!sa.parent?this.buildElementParenting(t,sa.parent,r):t.setHierarchy(r)):(this.buildItem(a),this.addPendingElement(t))),a+1},BaseRenderer.prototype.addPendingElementfunction(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositionsfunction(t){var e,rt.length;for(e0;er;e+1)if(te.xt){var ithis.createComp(te);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementByPathfunction(t){var e,rt.shift();if(numbertypeof r)ethis.elementsr;else{var i,sthis.elements.length;for(i0;is;i+1)if(this.elementsi.data.nmr){ethis.elementsi;break}}return 0t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalDatafunction(t,e){this.globalData.fontManagernew FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetDatathis.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPaththis.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoaderthis.animationItem.imagePreloader,this.globalData.audioControllerthis.animationItem.audioController,this.globalData.frameId0,this.globalData.frameRatet.fr,this.globalData.nmt.nm,this.globalData.compSize{w:t.w,h:t.h}},TransformElement.prototype{initTransform:function(){this.finalTransform{mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdfthis.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdfthis.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,ethis.finalTransform.mat,r0,ithis.hierarchy.length;if(!this.finalTransform._matMdf)for(;ri;){if(this.hierarchyr.finalTransform.mProp._mdf){this.finalTransform._matMdf!0;break}r+1}if(this.finalTransform._matMdf)for(tthis.finalTransform.mProp.v.props,e.cloneFromProps(t),r0;ri;r+1)tthis.hierarchyr.finalTransform.mProp.v.props,e.transform(t0,t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15)}},globalToLocal:function(t){var e;e.push(this.finalTransform);for(var r,i!0,sthis.comp;i;)s.finalTransform?(s.data.hasMask&&e.splice(0,0,s.finalTransform),ss.comp):i!1;var a,ne.length;for(r0;rn;r+1)aer.mat.applyToPointArray(0,0,0),tt0-a0,t1-a1,0;return t},mHelper:new Matrix},MaskElement.prototype.getMaskPropertyfunction(t){return this.viewDatat.prop},MaskElement.prototype.renderFramefunction(t){var e,rthis.element.finalTransform.mat,ithis.masksProperties.length;for(e0;ei;e+1)if((this.viewDatae.prop._mdf||t)&&this.drawPath(this.masksPropertiese,this.viewDatae.prop.v,this.viewDatae),(this.viewDatae.op._mdf||t)&&this.viewDatae.elem.setAttribute(fill-opacity,this.viewDatae.op.v),n!this.masksPropertiese.mode&&(this.viewDatae.invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewDatae.invRect.setAttribute(transform,r.getInverseMatrix().to2dCSS()),this.storedDatae.x&&(this.storedDatae.x._mdf||t))){var sthis.storedDatae.expan;this.storedDatae.x.v0?(erode!this.storedDatae.lastOperator&&(this.storedDatae.lastOperatorerode,this.storedDatae.elem.setAttribute(filter,url(+getLocationHref()+#+this.storedDatae.filterId+))),s.setAttribute(radius,-this.storedDatae.x.v)):(dilate!this.storedDatae.lastOperator&&(this.storedDatae.lastOperatordilate,this.storedDatae.elem.setAttribute(filter,null)),this.storedDatae.elem.setAttribute(stroke-width,2*this.storedDatae.x.v))}},MaskElement.prototype.getMaskelementfunction(){return this.maskElement},MaskElement.prototype.createLayerSolidPathfunction(){var tM0,0 ;return t+ h+this.globalData.compSize.w,t+ v+this.globalData.compSize.h,t+ h-+this.globalData.compSize.w,t+ v-+this.globalData.compSize.h+ },MaskElement.prototype.drawPathfunction(t,e,r){var i,s,a M+e.v00+,+e.v01;for(se._length,i1;is;i+1)a+ C+e.oi-10+,+e.oi-11+ +e.ii0+,+e.ii1+ +e.vi0+,+e.vi1;if(e.c&&s>1&&(a+ C+e.oi-10+,+e.oi-11+ +e.i00+,+e.i01+ +e.v00+,+e.v01),r.lastPath!a){var n;r.elem&&(e.c&&(nt.inv?this.solidPath+a:a),r.elem.setAttribute(d,n)),r.lastPatha}},MaskElement.prototype.destroyfunction(){this.elementnull,this.globalDatanull,this.maskElementnull,this.datanull,this.masksPropertiesnull};var filtersFactoryfunction(){var t{createFilter:function(t,e){var rcreateNS(filter);return r.setAttribute(id,t),!0!e&&(r.setAttribute(filterUnits,objectBoundingBox),r.setAttribute(x,0%),r.setAttribute(y,0%),r.setAttribute(width,100%),r.setAttribute(height,100%)),r},createAlphaToLuminanceFilter:function(){var tcreateNS(feColorMatrix);return t.setAttribute(type,matrix),t.setAttribute(color-interpolation-filters,sRGB),t.setAttribute(values,0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1),t}};return t}(),featureSupportfunction(){var t{maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType!1),t}(),registeredEffects{},idPrefixfilter_result_;function SVGEffects(t){var e,r,iSourceGraphic,st.data.ef?t.data.ef.length:0,acreateElementID(),nfiltersFactory.createFilter(a,!0),o0;for(this.filters,e0;es;e+1){rnull;var ht.data.efe.ty;registeredEffectsh&&(rnew(0,registeredEffectsh.effect)(n,t.effectsManager.effectElementse,t,idPrefix+o,i),iidPrefix+o,registeredEffectsh.countsAsEffect&&(o+1)),r&&this.filters.push(r)}o&&(t.globalData.defs.appendChild(n),t.layerElement.setAttribute(filter,url(+getLocationHref()+#+a+))),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,r){registeredEffectst{effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetDatae.getAssetData(t.refId),this.initElement(t,e,r),this.sourceRect{top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elemt,this.pose}function IShapeElement(){}SVGEffects.prototype.renderFramefunction(t){var e,rthis.filters.length;for(e0;er;e+1)this.filterse.renderFrame(t)},SVGBaseElement.prototype{initRendererElement:function(){this.layerElementcreateNS(g)},createContainerElements:function(){this.matteElementcreateNS(g),this.transformedElementthis.layerElement,this.maskedElementthis.layerElement,this._sizeChanged!1;var tnull;if(this.data.td){this.matteMasks{};var ecreateNS(symbol);e.setAttribute(id,this.layerId);var rcreateNS(g);r.appendChild(this.layerElement),e.appendChild(r),tr,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),tthis.matteElement,this.baseElementthis.matteElement):this.baseElementthis.layerElement;if(this.data.ln&&this.layerElement.setAttribute(id,this.data.ln),this.data.cl&&this.layerElement.setAttribute(class,this.data.cl),0this.data.ty&&!this.data.hd){var icreateNS(clipPath),screateNS(path);s.setAttribute(d,M0,0 L+this.data.w+,0 L+this.data.w+,+this.data.h+ L0,+this.data.h+z);var acreateElementID();if(i.setAttribute(id,a),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var ncreateNS(g);n.setAttribute(clip-path,url(+getLocationHref()+#+a+)),n.appendChild(this.layerElement),this.transformedElementn,t?t.appendChild(this.transformedElement):this.baseElementthis.transformedElement}else this.layerElement.setAttribute(clip-path,url(+getLocationHref()+#+a+))}0!this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute(transform,this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute(opacity,this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElementnull,this.matteElementnull,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManagernew MaskElement(this.data,this,this.globalData),this.renderableEffectsManagernew SVGEffects(this)},getMatte:function(t){if(!this.matteMaskst){var e,r,i,s,athis.layerId+_+t;if(1t||3t){var ncreateNS(mask);n.setAttribute(id,a),n.setAttribute(mask-type,3t?luminance:alpha),(icreateNS(use)).setAttributeNS(http://www.w3.org/1999/xlink,href,#+this.layerId),n.appendChild(i),this.globalData.defs.appendChild(n),featureSupport.maskType||1!t||(n.setAttribute(mask-type,luminance),ecreateElementID(),rfiltersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(screateNS(g)).appendChild(i),n.appendChild(s),s.setAttribute(filter,url(+getLocationHref()+#+e+)))}else if(2t){var ocreateNS(mask);o.setAttribute(id,a),o.setAttribute(mask-type,alpha);var hcreateNS(g);o.appendChild(h),ecreateElementID(),rfiltersFactory.createFilter(e);var lcreateNS(feComponentTransfer);l.setAttribute(in,SourceGraphic),r.appendChild(l);var pcreateNS(feFuncA);p.setAttribute(type,table),p.setAttribute(tableValues,1.0 0.0),l.appendChild(p),this.globalData.defs.appendChild(r);var ccreateNS(rect);c.setAttribute(width,this.comp.data.w),c.setAttribute(height,this.comp.data.h),c.setAttribute(x,0),c.setAttribute(y,0),c.setAttribute(fill,#ffffff),c.setAttribute(opacity,0),h.setAttribute(filter,url(+getLocationHref()+#+e+)),h.appendChild(c),(icreateNS(use)).setAttributeNS(http://www.w3.org/1999/xlink,href,#+this.layerId),h.appendChild(i),featureSupport.maskType||(o.setAttribute(mask-type,luminance),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),screateNS(g),h.appendChild(c),s.appendChild(this.layerElement),h.appendChild(s)),this.globalData.defs.appendChild(o)}this.matteMasksta}return this.matteMaskst},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute(mask,url(+getLocationHref()+#+t+))}},HierarchyElement.prototype{initHierarchy:function(){this.hierarchy,this._isParent!1,this.checkParenting()},setHierarchy:function(t){this.hierarchyt},setAsParent:function(){this._isParent!0},checkParenting:function(){void 0!this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,)}},extendPrototype(RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.displaynone,this.hidden!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.displayblock),this.hidden!1,this._isFirstFrame!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElemnull,this.destroyBaseElement()}}),RenderableDOMElement),extendPrototype(BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,IImageElement),IImageElement.prototype.createContentfunction(){var tthis.globalData.getAssetsPath(this.assetData);this.innerElemcreateNS(image),this.innerElem.setAttribute(width,this.assetData.w+px),this.innerElem.setAttribute(height,this.assetData.h+px),this.innerElem.setAttribute(preserveAspectRatio,this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS(http://www.w3.org/1999/xlink,href,t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTimefunction(){return this.sourceRect},IShapeElement.prototype{addShapeToModifiers:function(t){var e,rthis.shapeModifiers.length;for(e0;er;e+1)this.shapeModifierse.addShape(t)},isShapeInAnimatedModifiers:function(t){for(var ethis.shapeModifiers.length;0e;)if(this.shapeModifiers0.isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,ethis.shapes.length;for(t0;te;t+1)this.shapest.sh.reset();for(t(ethis.shapeModifiers.length)-1;t>0&&!this.shapeModifierst.processShapes(this._isFirstFrame);t-1);}},searchProcessedElement:function(t){for(var ethis.processedElements,r0,ie.length;ri;){if(er.elemt)return er.pos;r+1}return 0},addProcessedElement:function(t,e){for(var rthis.processedElements,ir.length;i;)if(ri-1.elemt)return void(ri.pose);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum{1:butt,2:round,3:square},lineJoinEnum{1:miter,2:round,3:bevel};function SVGShapeData(t,e,r){this.caches,this.styles,this.transformerst,this.lStr,this.shr,this.lvle,this._isAnimated!!r.k;for(var i0,st.length;is;){if(ti.mProps.dynamicProperties.length){this._isAnimated!0;break}i+1}}function SVGStyleData(t,e){this.datat,this.typet.ty,this.d,this.lvle,this._mdf!1,this.closed!0t.hd,this.pElemcreateNS(path),this.msElemnull}function DashProperty(t,e,r,i){var s;this.elemt,this.frameId-1,this.dataPropscreateSizedArray(e.length),this.rendererr,this.k!1,this.dashStr,this.dashArraycreateTypedArray(float32,e.length?e.length-1:0),this.dashoffsetcreateTypedArray(float32,1),this.initDynamicPropertyContainer(i);var a,ne.length||0;for(s0;sn;s+1)aPropertyFactory.getProp(t,es.v,0,0,this),this.ka.k||this.k,this.dataPropss{n:es.n,p:a};this.k||this.getValue(!0),this._isAnimatedthis.k}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValuethis.iterateDynamicProperties,this.oPropertyFactory.getProp(t,e.o,0,.01,this),this.wPropertyFactory.getProp(t,e.w,0,null,this),this.dnew DashProperty(t,e.d||{},svg,this),this.cPropertyFactory.getProp(t,e.c,1,255,this),this.styler,this._isAnimated!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValuethis.iterateDynamicProperties,this.oPropertyFactory.getProp(t,e.o,0,.01,this),this.cPropertyFactory.getProp(t,e.c,1,255,this),this.styler}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValuethis.iterateDynamicProperties,this.styler}function GradientProperty(t,e,r){this.datae,this.ccreateTypedArray(uint8c,4*e.p);var ie.k.k0.s?e.k.k0.s.length-4*e.p:e.k.k.length-4*e.p;this.ocreateTypedArray(float32,i),this._cmdf!1,this._omdf!1,this._collapsablethis.checkCollapsable(),this._hasOpacityi,this.initDynamicPropertyContainer(r),this.propPropertyFactory.getProp(t,e.k,1,null,this),this.kthis.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValuethis.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValuethis.iterateDynamicProperties,this.wPropertyFactory.getProp(t,e.w,0,null,this),this.dnew DashProperty(t,e.d||{},svg,this),this.initGradientData(t,e,r),this._isAnimated!!this._isAnimated}function ShapeGroupData(){this.it,this.prevViewData,this.grcreateNS(g)}function SVGTransformData(t,e,r){this.transform{mProps:t,op:e,container:r},this.elements,this._isAnimatedthis.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimatedfunction(){this._isAnimated!0},SVGStyleData.prototype.resetfunction(){this.d,this._mdf!1},DashProperty.prototype.getValuefunction(t){if((this.elem.globalData.frameId!this.frameId||t)&&(this.frameIdthis.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdfthis._mdf||t,this._mdf)){var e0,rthis.dataProps.length;for(svgthis.renderer&&(this.dashStr),e0;er;e+1)o!this.dataPropse.n?svgthis.renderer?this.dashStr+ +this.dataPropse.p.v:this.dashArrayethis.dataPropse.p.v:this.dashoffset0this.dataPropse.p.v}},extendPrototype(DynamicPropertyContainer,DashProperty),extendPrototype(DynamicPropertyContainer,SVGStrokeStyleData),extendPrototype(DynamicPropertyContainer,SVGFillStyleData),extendPrototype(DynamicPropertyContainer,SVGNoStyleData),GradientProperty.prototype.comparePointsfunction(t,e){for(var r0,ithis.o.length/2;ri;){if(Math.abs(t4*r-t4*e+2*r)>.01)return!1;r+1}return!0},GradientProperty.prototype.checkCollapsablefunction(){if(this.o.length/2!this.c.length/4)return!1;if(this.data.k.k0.s)for(var t0,ethis.data.k.k.length;te;){if(!this.comparePoints(this.data.k.kt.s,this.data.p))return!1;t+1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValuefunction(t){if(this.prop.getValue(),this._mdf!1,this._cmdf!1,this._omdf!1,this.prop._mdf||t){var e,r,i,s4*this.data.p;for(e0;es;e+1)re%40?100:255,iMath.round(this.prop.ve*r),this.ce!i&&(this.cei,this._cmdf!t);if(this.o.length)for(sthis.prop.v.length,e4*this.data.p;es;e+1)re%20?100:1,ie%20?Math.round(100*this.prop.ve):this.prop.ve,this.oe-4*this.data.p!i&&(this.oe-4*this.data.pi,this._omdf!t);this._mdf!t}},extendPrototype(DynamicPropertyContainer,GradientProperty),SVGGradientFillStyleData.prototype.initGradientDatafunction(t,e,r){this.oPropertyFactory.getProp(t,e.o,0,.01,this),this.sPropertyFactory.getProp(t,e.s,1,null,this),this.ePropertyFactory.getProp(t,e.e,1,null,this),this.hPropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.aPropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.gnew GradientProperty(t,e.g,this),this.styler,this.stops,this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientDatafunction(t,e){var rcreateElementID(),icreateNS(1e.t?linearGradient:radialGradient);i.setAttribute(id,r),i.setAttribute(spreadMethod,pad),i.setAttribute(gradientUnits,userSpaceOnUse);var s,a,n,o;for(n4*e.g.p,a0;an;a+4)screateNS(stop),i.appendChild(s),o.push(s);t.setAttribute(gfe.ty?fill:stroke,url(+getLocationHref()+#+r+)),this.gfi,this.csto},SVGGradientFillStyleData.prototype.setGradientOpacityfunction(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,s,acreateNS(mask),ncreateNS(path);a.appendChild(n);var ocreateElementID(),hcreateElementID();a.setAttribute(id,h);var lcreateNS(1t.t?linearGradient:radialGradient);l.setAttribute(id,o),l.setAttribute(spreadMethod,pad),l.setAttribute(gradientUnits,userSpaceOnUse),st.g.k.k0.s?t.g.k.k0.s.length:t.g.k.k.length;var pthis.stops;for(i4*t.g.p;is;i+2)(rcreateNS(stop)).setAttribute(stop-color,rgb(255,255,255)),l.appendChild(r),p.push(r);n.setAttribute(gft.ty?fill:stroke,url(+getLocationHref()+#+o+)),gst.ty&&(n.setAttribute(stroke-linecap,lineCapEnumt.lc||2),n.setAttribute(stroke-linejoin,lineJoinEnumt.lj||2),1t.lj&&n.setAttribute(stroke-miterlimit,t.ml)),this.ofl,this.msa,this.ostp,this.maskIdh,e.msElemn}},extendPrototype(DynamicPropertyContainer,SVGGradientFillStyleData),extendPrototype(SVGGradientFillStyleData,DynamicPropertyContainer,SVGGradientStrokeStyleData);var buildShapeStringfunction(t,e,r,i){if(0e)return;var s,at.o,nt.i,ot.v,h M+i.applyToPointStringified(o00,o01);for(s1;se;s+1)h+ C+i.applyToPointStringified(as-10,as-11)+ +i.applyToPointStringified(ns0,ns1)+ +i.applyToPointStringified(os0,os1);return r&&e&&(h+ C+i.applyToPointStringified(as-10,as-11)+ +i.applyToPointStringified(n00,n01)+ +i.applyToPointStringified(o00,o01),h+z),h},SVGElementsRendererfunction(){var tnew Matrix,enew Matrix;function r(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute(opacity,e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute(transform,e.transform.mProps.v.to2dCSS())}function i(){}function s(r,i,s){var a,n,o,h,l,p,c,f,d,u,m,yi.styles.length,gi.lvl;for(p0;py;p+1){if(hi.sh._mdf||s,i.stylesp.lvlg){for(fe.reset(),ug-i.stylesp.lvl,mi.transformers.length-1;!h&&u>0;)hi.transformersm.mProps._mdf||h,u-1,m-1;if(h)for(ug-i.stylesp.lvl,mi.transformers.length-1;u>0;)di.transformersm.mProps.v.props,f.transform(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15),u-1,m-1}else ft;if(n(ci.sh.paths)._length,h){for(o,a0;an;a+1)(lc.shapesa)&&l._length&&(o+buildShapeString(l,l._length,l.c,f));i.cachespo}else oi.cachesp;i.stylesp.d+!0r.hd?:o,i.stylesp._mdfh||i.stylesp._mdf}}function a(t,e,r){var ie.style;(e.c._mdf||r)&&i.pElem.setAttribute(fill,rgb(+bmFloor(e.c.v0)+,+bmFloor(e.c.v1)+,+bmFloor(e.c.v2)+)),(e.o._mdf||r)&&i.pElem.setAttribute(fill-opacity,e.o.v)}function n(t,e,r){o(t,e,r),h(0,e,r)}function o(t,e,r){var i,s,a,n,o,he.gf,le.g._hasOpacity,pe.s.v,ce.e.v;if(e.o._mdf||r){var fgft.ty?fill-opacity:stroke-opacity;e.style.pElem.setAttribute(f,e.o.v)}if(e.s._mdf||r){var d1t.t?x1:cx,ux1d?y1:cy;h.setAttribute(d,p0),h.setAttribute(u,p1),l&&!e.g._collapsable&&(e.of.setAttribute(d,p0),e.of.setAttribute(u,p1))}if(e.g._cmdf||r){ie.cst;var me.g.c;for(ai.length,s0;sa;s+1)(nis).setAttribute(offset,m4*s+%),n.setAttribute(stop-color,rgb(+m4*s+1+,+m4*s+2+,+m4*s+3+))}if(l&&(e.g._omdf||r)){var ye.g.o;for(a(ie.g._collapsable?e.cst:e.ost).length,s0;sa;s+1)nis,e.g._collapsable||n.setAttribute(offset,y2*s+%),n.setAttribute(stop-opacity,y2*s+1)}if(1t.t)(e.e._mdf||r)&&(h.setAttribute(x2,c0),h.setAttribute(y2,c1),l&&!e.g._collapsable&&(e.of.setAttribute(x2,c0),e.of.setAttribute(y2,c1)));else if((e.s._mdf||e.e._mdf||r)&&(oMath.sqrt(Math.pow(p0-c0,2)+Math.pow(p1-c1,2)),h.setAttribute(r,o),l&&!e.g._collapsable&&e.of.setAttribute(r,o)),e.e._mdf||e.h._mdf||e.a._mdf||r){o||(oMath.sqrt(Math.pow(p0-c0,2)+Math.pow(p1-c1,2)));var gMath.atan2(c1-p1,c0-p0),ve.h.v;v>1?v.99:v-1&&(v-.99);var bo*v,_Math.cos(g+e.a.v)*b+p0,PMath.sin(g+e.a.v)*b+p1;h.setAttribute(fx,_),h.setAttribute(fy,P),l&&!e.g._collapsable&&(e.of.setAttribute(fx,_),e.of.setAttribute(fy,P))}}function h(t,e,r){var ie.style,se.d;s&&(s._mdf||r)&&s.dashStr&&(i.pElem.setAttribute(stroke-dasharray,s.dashStr),i.pElem.setAttribute(stroke-dashoffset,s.dashoffset0)),e.c&&(e.c._mdf||r)&&i.pElem.setAttribute(stroke,rgb(+bmFloor(e.c.v0)+,+bmFloor(e.c.v1)+,+bmFloor(e.c.v2)+)),(e.o._mdf||r)&&i.pElem.setAttribute(stroke-opacity,e.o.v),(e.w._mdf||r)&&(i.pElem.setAttribute(stroke-width,e.w.v),i.msElem&&i.msElem.setAttribute(stroke-width,e.w.v))}return{createRenderFunction:function(t){switch(t.ty){casefl:return a;casegf:return o;casegs:return n;casest:return h;casesh:caseel:caserc:casesr:return s;casetr:return r;caseno:return i;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes,this.shapesDatat.shapes,this.stylesList,this.shapeModifiers,this.itemsData,this.processedElements,this.animatedContents,this.initElement(t,e,r),this.prevViewData}function LetterProps(t,e,r,i,s,a){this.ot,this.swe,this.scr,this.fci,this.ms,this.pa,this._mdf{o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameIdinitialDefaultFrame,this.pv,this.v,this.kf!1,this._isFirstFrame!0,this._mdf!1,this.datae,this.elemt,this.compthis.elem.comp,this.keysIndex0,this.canResize!1,this.minimumFontSize1,this.effectsSequence,this.currentData{ascent:0,boxWidth:this.defaultBoxWidth,f:,fStyle:,fWeight:,fc:,j:,justifyOffset:,l:,lh:0,lineWidths:,ls:,of:,s:,sc:,sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:,finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k0.s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype(BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement,SVGShapeElement),SVGShapeElement.prototype.initSecondaryElementfunction(){},SVGShapeElement.prototype.identityMatrixnew Matrix,SVGShapeElement.prototype.buildExpressionInterfacefunction(){},SVGShapeElement.prototype.createContentfunction(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,,!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapesfunction(){var t,e,r,i,sthis.shapes.length,athis.stylesList.length,n,o!1;for(r0;ra;r+1){for(ithis.stylesListr,o!1,n.length0,t0;ts;t+1)-1!(ethis.shapest).styles.indexOf(i)&&(n.push(e),oe._isAnimated||o);n.length>1&&o&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimatedfunction(t){var e,rt.length;for(e0;er;e+1)te.setAsAnimated()},SVGShapeElement.prototype.createStyleElementfunction(t,e){var r,inew SVGStyleData(t,e),si.pElem;returnstt.ty?rnew SVGStrokeStyleData(this,t,i):flt.ty?rnew SVGFillStyleData(this,t,i):gft.ty||gst.ty?(rnew(gft.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute(mask,url(+getLocationHref()+#+r.maskId+)))):not.ty&&(rnew SVGNoStyleData(this,t,i)),st!t.ty&&gs!t.ty||(s.setAttribute(stroke-linecap,lineCapEnumt.lc||2),s.setAttribute(stroke-linejoin,lineJoinEnumt.lj||2),s.setAttribute(fill-opacity,0),1t.lj&&s.setAttribute(stroke-miterlimit,t.ml)),2t.r&&s.setAttribute(fill-rule,evenodd),t.ln&&s.setAttribute(id,t.ln),t.cl&&s.setAttribute(class,t.cl),t.bm&&(s.stylemix-blend-modegetBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElementfunction(t){var enew ShapeGroupData;return t.ln&&e.gr.setAttribute(id,t.ln),t.cl&&e.gr.setAttribute(class,t.cl),t.bm&&(e.gr.stylemix-blend-modegetBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElementfunction(t,e){var rTransformPropertyFactory.getTransformProperty(this,t,this),inew SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElementfunction(t,e,r){var i4;rct.ty?i5:elt.ty?i6:srt.ty&&(i7);var snew SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.addToAnimatedContentsfunction(t,e){for(var r0,ithis.animatedContents.length;ri;){if(this.animatedContentsr.elemente)return;r+1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStylesfunction(t){var e,rt.styles,ithis.stylesList.length;for(e0;ei;e+1)this.stylesListe.closed||r.push(this.stylesListe)},SVGShapeElement.prototype.reloadShapesfunction(){var t;this._isFirstFrame!0;var ethis.itemsData.length;for(t0;te;t+1)this.prevViewDatatthis.itemsDatat;for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,,!0),this.filterUniqueShapes(),ethis.dynamicProperties.length,t0;te;t+1)this.dynamicPropertiest.getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapesfunction(t,e,r,i,s,a,n){var o,h,l,p,c,f,d.concat(a),ut.length-1,m,y;for(ou;o>0;o-1){if((fthis.searchProcessedElement(to))?eorf-1:to._rendern,flto.ty||stto.ty||gfto.ty||gsto.ty||noto.ty)f?eo.style.closed!1:eothis.createStyleElement(to,s),to._render&&eo.style.pElem.parentNode!i&&i.appendChild(eo.style.pElem),m.push(eo.style);else if(grto.ty){if(f)for(leo.it.length,h0;hl;h+1)eo.prevViewDataheo.ith;else eothis.createGroupElement(to);this.searchShapes(to.it,eo.it,eo.prevViewData,eo.gr,s+1,d,n),to._render&&eo.gr.parentNode!i&&i.appendChild(eo.gr)}elsetrto.ty?(f||(eothis.createTransformElement(to,i)),peo.transform,d.push(p)):shto.ty||rcto.ty||elto.ty||srto.ty?(f||(eothis.createShapeElement(to,d,s)),this.setElementStyles(eo)):tmto.ty||rdto.ty||msto.ty||pbto.ty||zzto.ty||opto.ty?(f?(ceo).closed!1:((cShapeModifiers.getModifier(to.ty)).init(this,to),eoc,this.shapeModifiers.push(c)),y.push(c)):rpto.ty&&(f?(ceo).closed!0:(cShapeModifiers.getModifier(to.ty),eoc,c.init(this,t,o,e),this.shapeModifiers.push(c),n!1),y.push(c));this.addProcessedElement(to,o+1)}for(um.length,o0;ou;o+1)mo.closed!0;for(uy.length,o0;ou;o+1)yo.closed!0},SVGShapeElement.prototype.renderInnerContentfunction(){var t;this.renderModifiers();var ethis.stylesList.length;for(t0;te;t+1)this.stylesListt.reset();for(this.renderShape(),t0;te;t+1)(this.stylesListt._mdf||this._isFirstFrame)&&(this.stylesListt.msElem&&(this.stylesListt.msElem.setAttribute(d,this.stylesListt.d),this.stylesListt.dM0 0+this.stylesListt.d),this.stylesListt.pElem.setAttribute(d,this.stylesListt.d||M0 0))},SVGShapeElement.prototype.renderShapefunction(){var t,e,rthis.animatedContents.length;for(t0;tr;t+1)ethis.animatedContentst,(this._isFirstFrame||e.element._isAnimated)&&!0!e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroyfunction(){this.destroyBaseElement(),this.shapesDatanull,this.itemsDatanull},LetterProps.prototype.updatefunction(t,e,r,i,s,a){this._mdf.o!1,this._mdf.sw!1,this._mdf.sc!1,this._mdf.fc!1,this._mdf.m!1,this._mdf.p!1;var n!1;return this.o!t&&(this.ot,this._mdf.o!0,n!0),this.sw!e&&(this.swe,this._mdf.sw!0,n!0),this.sc!r&&(this.scr,this._mdf.sc!0,n!0),this.fc!i&&(this.fci,this._mdf.fc!0,n!0),this.m!s&&(this.ms,this._mdf.m!0,n!0),!a.length||this.p0a0&&this.p1a1&&this.p4a4&&this.p5a5&&this.p12a12&&this.p13a13||(this.pa,this._mdf.p!0,n!0),n},TextProperty.prototype.defaultBoxWidth0,0,TextProperty.prototype.copyDatafunction(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(trer);return t},TextProperty.prototype.setCurrentDatafunction(t){t.__complete||this.completeTextData(t),this.currentDatat,this.currentData.boxWidththis.currentData.boxWidth||this.defaultBoxWidth,this._mdf!0},TextProperty.prototype.searchPropertyfunction(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframesfunction(){return this.kfthis.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffectfunction(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValuefunction(t){if(this.elem.globalData.frameId!this.frameId&&this.effectsSequence.length||t){this.currentData.tthis.data.d.kthis.keysIndex.s.t;var ethis.currentData,rthis.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock!0,this._mdf!1;var sthis.effectsSequence.length,at||this.data.d.kthis.keysIndex.s;for(i0;is;i+1)ar!this.keysIndex?this.effectsSequencei(a,a.t):this.effectsSequencei(this.currentData,a.t);e!a&&this.setCurrentData(a),this.vthis.currentData,this.pvthis.v,this.lock!1,this.frameIdthis.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValuefunction(){for(var tthis.data.d.k,ethis.elem.comp.renderedFrame,r0,it.length;ri-1&&!(ri-1||tr+1.t>e);)r+1;return this.keysIndex!r&&(this.keysIndexr),this.data.d.kthis.keysIndex.s},TextProperty.prototype.buildFinalTextfunction(t){for(var e,r,i,s0,at.length,n!1;sa;)et.charCodeAt(s),FontManager.isCombinedCharacter(e)?ii.length-1+t.charAt(s):e>55296&&e56319?(rt.charCodeAt(s+1))>56320&&r57343?(n||FontManager.isModifier(e,r)?(ii.length-1+t.substr(s,2),n!1):i.push(t.substr(s,2)),s+1):i.push(t.charAt(s)):e>56319?(rt.charCodeAt(s+1),FontManager.isZeroWidthJoiner(e,r)?(n!0,ii.length-1+t.substr(s,2),s+1):i.push(t.charAt(s))):FontManager.isZeroWidthJoiner(e)?(ii.length-1+t.charAt(s),n!0):i.push(t.charAt(s)),s+1;return i},TextProperty.prototype.completeTextDatafunction(t){t.__complete!0;var e,r,i,s,a,n,o,hthis.elem.globalData.fontManager,lthis.data,p,c0,fl.m.g,d0,u0,m0,y,g0,v0,bh.getFontByName(t.f),_0,PgetFontProperties(b);t.fWeightP.weight,t.fStyleP.style,t.finalSizet.s,t.finalTextthis.buildFinalText(t.t),rt.finalText.length,t.finalLineHeightt.lh;var E,St.tr/1e3*t.finalSize;if(t.sz)for(var x,A,w!0,Ct.sz0,kt.sz1;w;){x0,g0,r(Athis.buildFinalText(t.t)).length,St.tr/1e3*t.finalSize;var T-1;for(e0;er;e+1)EAe.charCodeAt(0),i!1, Ae?Te:13!E&&3!E||(g0,i!0,x+t.finalLineHeight||1.2*t.finalSize),h.chars?(oh.getCharData(Ae,b.fStyle,b.fFamily),_i?0:o.w*t.finalSize/100):_h.measureText(Ae,t.f,t.finalSize),g+_>C&& !Ae?(-1T?r+1:eT,x+t.finalLineHeight||1.2*t.finalSize,A.splice(e,Te?1:0,\r),T-1,g0):(g+_,g+S);x+b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&kx?(t.finalSize-1,t.finalLineHeightt.finalSize*t.lh/t.s):(t.finalTextA,rt.finalText.length,w!1)}g-S,_0;var D,M0;for(e0;er;e+1)if(i!1,13(E(Dt.finalTexte).charCodeAt(0))||3E?(M0,y.push(g),vg>v?g:v,g-2*S,s,i!0,m+1):sD,h.chars?(oh.getCharData(D,b.fStyle,h.getFontByName(t.f).fFamily),_i?0:o.w*t.finalSize/100):_h.measureText(s,t.f,t.finalSize), D?M+_+S:(g+_+S+M,M0),p.push({l:_,an:_,add:d,n:i,anIndexes:,val:s,line:m,animatorJustifyOffset:0}),2f){if(d+_,s|| s||er-1){for(!s&& !s||(d-_);ue;)pu.and,pu.indc,pu.extra_,u+1;c+1,d0}}else if(3f){if(d+_,s||er-1){for(s&&(d-_);ue;)pu.and,pu.indc,pu.extra_,u+1;d0,c+1}}else pc.indc,pc.extra0,c+1;if(t.lp,vg>v?g:v,y.push(g),t.sz)t.boxWidtht.sz0,t.justifyOffset0;else switch(t.boxWidthv,t.j){case 1:t.justifyOffset-t.boxWidth;break;case 2:t.justifyOffset-t.boxWidth/2;break;default:t.justifyOffset0}t.lineWidthsy;var F,I,R,B,Vl.a;nV.length;var O;for(a0;an;a+1){for((FVa).a.sc&&(t.strokeColorAnim!0),F.a.sw&&(t.strokeWidthAnim!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(t.fillColorAnim!0),B0,RF.s.b,e0;er;e+1)(Ipe).anIndexesaB,(1R&&!I.val||2R&&!I.val&& !I.val||3R&&(I.n|| I.val||er-1)||4R&&(I.n||er-1))&&(1F.s.rn&&O.push(B),B+1);l.aa.s.totalCharsB;var L,$-1;if(1F.s.rn)for(e0;er;e+1)$!(Ipe).anIndexesa&&($I.anIndexesa,LO.splice(Math.floor(Math.random()*O.length),1)0),I.anIndexesaL}t.yOffsett.finalLineHeight||1.2*t.finalSize,t.lst.ls||0,t.ascentb.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentDatafunction(t,e){evoid 0e?this.keysIndex:e;var rthis.copyData({},this.data.d.ke.s);rthis.copyData(r,t),this.data.d.ke.sr,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculatefunction(t){var ethis.data.d.kt.s;e.__complete!1,this.keysIndex0,this._isFirstFrame!0,this.getValue(e)},TextProperty.prototype.canResizeFontfunction(t){this.canResizet,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSizefunction(t){this.minimumFontSizeMath.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorPropfunction(){var tMath.max,eMath.min,rMath.floor;function i(t,e){this._currentTextLength-1,this.k!1,this.datae,this.elemt,this.compt.comp,this.finalS0,this.finalE0,this.initDynamicPropertyContainer(t),this.sPropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.eein e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.oPropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xePropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.nePropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.smPropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.aPropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype{getMult:function(i){this._currentTextLength!this.elem.textProperty.currentData.l.length&&this.getValue();var s0,a0,n1,o1;this.ne.v>0?sthis.ne.v/100:a-this.ne.v/100,this.xe.v>0?n1-this.xe.v/100:o1+this.xe.v/100;var hBezierFactory.getBezierEasing(s,a,n,o).get,l0,pthis.finalS,cthis.finalE,fthis.data.sh;if(2f)lh(lcp?i>c?1:0:t(0,e(.5/(c-p)+(i-p)/(c-p),1)));else if(3f)lh(lcp?i>c?0:1:1-t(0,e(.5/(c-p)+(i-p)/(c-p),1)));else if(4f)cp?l0:(lt(0,e(.5/(c-p)+(i-p)/(c-p),1))).5?l*2:l1-2*(l-.5),lh(l);else if(5f){if(cp)l0;else{var dc-p,u-d/2+(ie(t(0,i+.5-p),c-p)),md/2;lMath.sqrt(1-u*u/(m*m))}lh(l)}else 6f?(cp?l0:(ie(t(0,i+.5-p),c-p),l(1+Math.cos(Math.PI+2*Math.PI*i/(c-p)))/2),lh(l)):(i>r(p)&&(lt(0,e(i-p0?e(c,1)-(p-i):c-i,1))),lh(l));if(100!this.sm.v){var y.01*this.sm.v;0y&&(y1e-8);var g.5-.5*y;lg?l0:(l(l-g)/y)>1&&(l1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdft||this._mdf,this._currentTextLengththis.elem.textProperty.currentData.l.length||0,t&&2this.data.r&&(this.e.vthis._currentTextLength);var e2this.data.r?1:100/this.data.totalChars,rthis.o.v/e,ithis.s.v/e+r,sthis.e.v/e+r;if(i>s){var ai;is,sa}this.finalSi,this.finalEs}},extendPrototype(DynamicPropertyContainer,i),{getTextSelectorProp:function(t,e,r){return new i(t,e,r)}}}();function TextAnimatorDataProperty(t,e,r){var i{propType:!1},sPropertyFactory.getProp,ae.a;this.a{r:a.r?s(t,a.r,0,degToRads,r):i,rx:a.rx?s(t,a.rx,0,degToRads,r):i,ry:a.ry?s(t,a.ry,0,degToRads,r):i,sk:a.sk?s(t,a.sk,0,degToRads,r):i,sa:a.sa?s(t,a.sa,0,degToRads,r):i,s:a.s?s(t,a.s,1,.01,r):i,a:a.a?s(t,a.a,1,0,r):i,o:a.o?s(t,a.o,0,.01,r):i,p:a.p?s(t,a.p,1,0,r):i,sw:a.sw?s(t,a.sw,0,0,r):i,sc:a.sc?s(t,a.sc,1,0,r):i,fc:a.fc?s(t,a.fc,1,0,r):i,fh:a.fh?s(t,a.fh,0,0,r):i,fs:a.fs?s(t,a.fs,0,.01,r):i,fb:a.fb?s(t,a.fb,0,.01,r):i,t:a.t?s(t,a.t,0,0,r):i},this.sTextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.te.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame!0,this._hasMaskedPath!1,this._frameId-1,this._textDatat,this._renderTypee,this._elemr,this._animatorsDatacreateSizedArray(this._textData.a.length),this._pathData{},this._moreOptions{alignment:{}},this.renderedLetters,this.lettersChangedFlag!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchPropertiesfunction(){var t,e,rthis._textData.a.length,iPropertyFactory.getProp;for(t0;tr;t+1)ethis._textData.at,this._animatorsDatatnew TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&min this._textData.p?(this._pathData{a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath!0):this._hasMaskedPath!1,this._moreOptions.alignmenti(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasuresfunction(t,e){if(this.lettersChangedFlage,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame!1;var r,i,s,a,n,o,h,l,p,c,f,d,u,m,y,g,v,b,_,Pthis._moreOptions.alignment.v,Ethis._animatorsData,Sthis._textData,xthis.mHelper,Athis._renderType,wthis.renderedLetters.length,Ct.l;if(this._hasMaskedPath){if(_this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,T_.v;for(this._pathData.r.v&&(TT.reverse()),n{tLength:0,segments:},aT._length-1,g0,s0;sa;s+1)kbez.buildBezierData(T.vs,T.vs+1,T.os0-T.vs0,T.os1-T.vs1,T.is+10-T.vs+10,T.is+11-T.vs+11),n.tLength+k.segmentLength,n.segments.push(k),g+k.segmentLength;sa,_.v.c&&(kbez.buildBezierData(T.vs,T.v0,T.os0-T.vs0,T.os1-T.vs1,T.i00-T.v00,T.i01-T.v01),n.tLength+k.segmentLength,n.segments.push(k),g+k.segmentLength),this._pathData.pin}if(nthis._pathData.pi,othis._pathData.f.v,f0,c1,l0,p!0,mn.segments,o0&&_.v.c)for(n.tLengthMath.abs(o)&&(o-Math.abs(o)%n.tLength),c(umfm.length-1.points).length-1;o0;)o+uc.partialLength,(c-1)0&&(c(umf-1.points).length-1);d(umf.points)c-1,y(huc).partialLength}aC.length,r0,i0;var D,M,F,I,R,B1.2*t.finalSize*.714,V!0;FE.length;var O,L,$,z,G,N,j,H,q,W,U,Y,X-1,Zo,Kf,Jc,Q-1,tt,etthis.defaultPropsArray;if(2t.j||1t.j){var rt0,it0,st2t.j?-.5:-1,at0,nt!0;for(s0;sa;s+1)if(Cs.n){for(rt&&(rt+it);ats;)Cat.animatorJustifyOffsetrt,at+1;rt0,nt!0}else{for(M0;MF;M+1)(DEM.a).t.propType&&(nt&&2t.j&&(it+D.t.v*st),(REM.s.getMult(Cs.anIndexesM,S.aM.s.totalChars)).length?rt+D.t.v*R0*st:rt+D.t.v*R*st);nt!1}for(rt&&(rt+it);ats;)Cat.animatorJustifyOffsetrt,at+1}for(s0;sa;s+1){if(x.reset(),z1,Cs.n)r0,i+t.yOffset,i+V?1:0,oZ,V!1,this._hasMaskedPath&&(cJ,d(umfK.points)c-1,y(huc).partialLength,l0),tt,U,q,Y,etthis.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!Cs.line){switch(t.j){case 1:o+g-t.lineWidthsCs.line;break;case 2:o+(g-t.lineWidthsCs.line)/2}QCs.line}X!Cs.ind&&(CX&&(o+CX.extra),o+Cs.an/2,XCs.ind),o+P0*Cs.an*.005;var ot0;for(M0;MF;M+1)(DEM.a).p.propType&&((REM.s.getMult(Cs.anIndexesM,S.aM.s.totalChars)).length?ot+D.p.v0*R0:ot+D.p.v0*R),D.a.propType&&((REM.s.getMult(Cs.anIndexesM,S.aM.s.totalChars)).length?ot+D.a.v0*R0:ot+D.a.v0*R);for(p!0,this._pathData.a.v&&(o.5*C0.an+(g-this._pathData.f.v-.5*C0.an-.5*CC.length-1.an)*X/(a-1),o+this._pathData.f.v);p;)l+y>o+ot||!u?(v(o+ot-l)/h.partialLength,Ld.point0+(h.point0-d.point0)*v,$d.point1+(h.point1-d.point1)*v,x.translate(-P0*Cs.an*.005,-P1*B*.01),p!1):u&&(l+h.partialLength,(c+1)>u.length&&(c0,mf+1?umf.points:_.v.c?(c0,umf0.points):(l-h.partialLength,unull)),u&&(dh,y(huc).partialLength));OCs.an/2-Cs.add,x.translate(-O,0,0)}else OCs.an/2-Cs.add,x.translate(-O,0,0),x.translate(-P0*Cs.an*.005,-P1*B*.01,0);for(M0;MF;M+1)(DEM.a).t.propType&&(REM.s.getMult(Cs.anIndexesM,S.aM.s.totalChars),0r&&0t.j||(this._hasMaskedPath?R.length?o+D.t.v*R0:o+D.t.v*R:R.length?r+D.t.v*R0:r+D.t.v*R));for(t.strokeWidthAnim&&(Nt.sw||0),t.strokeColorAnim&&(Gt.sc?t.sc0,t.sc1,t.sc2:0,0,0),t.fillColorAnim&&t.fc&&(jt.fc0,t.fc1,t.fc2),M0;MF;M+1)(DEM.a).a.propType&&((REM.s.getMult(Cs.anIndexesM,S.aM.s.totalChars)).length?x.translate(-D.a.v0*R0,-D.a.v1*R1,D.a.v2*R2):x.translate(-D.a.v0*R,-D.a.v1*R,D.a.v2*R));for(M0;MF;M+1)(DEM.a).s.propType&&((REM.s.getMult(Cs.anIndexesM,S.aM.s.totalChars)).length?x.scale(1+(D.s.v0-1)*R0,1+(D.s.v1-1)*R1,1):x.scale(1+(D.s.v0-1)*R,1+(D.s.v1-1)*R,1));for(M0;MF;M+1){if(DEM.a,REM.s.getMult(Cs.anIndexesM,S.aM.s.totalChars),D.sk.propType&&(R.length?x.skewFromAxis(-D.sk.v*R0,D.sa.v*R1):x.skewFromAxis(-D.sk.v*R,D.sa.v*R)),D.r.propType&&(R.length?x.rotateZ(-D.r.v*R2):x.rotateZ(-D.r.v*R)),D.ry.propType&&(R.length?x.rotateY(D.ry.v*R1):x.rotateY(D.ry.v*R)),D.rx.propType&&(R.length?x.rotateX(D.rx.v*R0):x.rotateX(D.rx.v*R)),D.o.propType&&(R.length?z+(D.o.v*R0-z)*R0:z+(D.o.v*R-z)*R),t.strokeWidthAnim&&D.sw.propType&&(R.length?N+D.sw.v*R0:N+D.sw.v*R),t.strokeColorAnim&&D.sc.propType)for(H0;H3;H+1)R.length?GH+(D.sc.vH-GH)*R0:GH+(D.sc.vH-GH)*R;if(t.fillColorAnim&&t.fc){if(D.fc.propType)for(H0;H3;H+1)R.length?jH+(D.fc.vH-jH)*R0:jH+(D.fc.vH-jH)*R;D.fh.propType&&(jR.length?addHueToRGB(j,D.fh.v*R0):addHueToRGB(j,D.fh.v*R)),D.fs.propType&&(jR.length?addSaturationToRGB(j,D.fs.v*R0):addSaturationToRGB(j,D.fs.v*R)),D.fb.propType&&(jR.length?addBrightnessToRGB(j,D.fb.v*R0):addBrightnessToRGB(j,D.fb.v*R))}}for(M0;MF;M+1)(DEM.a).p.propType&&(REM.s.getMult(Cs.anIndexesM,S.aM.s.totalChars),this._hasMaskedPath?R.length?x.translate(0,D.p.v1*R0,-D.p.v2*R1):x.translate(0,D.p.v1*R,-D.p.v2*R):R.length?x.translate(D.p.v0*R0,D.p.v1*R1,-D.p.v2*R2):x.translate(D.p.v0*R,D.p.v1*R,-D.p.v2*R));if(t.strokeWidthAnim&&(qN0?0:N),t.strokeColorAnim&&(Wrgb(+Math.round(255*G0)+,+Math.round(255*G1)+,+Math.round(255*G2)+)),t.fillColorAnim&&t.fc&&(Urgb(+Math.round(255*j0)+,+Math.round(255*j1)+,+Math.round(255*j2)+)),this._hasMaskedPath){if(x.translate(0,-t.ls),x.translate(0,P1*B*.01+i,0),this._pathData.p.v){b(h.point1-d.point1)/(h.point0-d.point0);var ht180*Math.atan(b)/Math.PI;h.point0d.point0&&(ht+180),x.rotate(-ht*Math.PI/180)}x.translate(L,$,0),o-P0*Cs.an*.005,Cs+1&&X!Cs+1.ind&&(o+Cs.an/2,o+.001*t.tr*t.finalSize)}else{switch(x.translate(r,i,0),t.ps&&x.translate(t.ps0,t.ps1+t.ascent,0),t.j){case 1:x.translate(Cs.animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidthsCs.line),0,0);break;case 2:x.translate(Cs.animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidthsCs.line)/2,0,0)}x.translate(0,-t.ls),x.translate(O,0,0),x.translate(P0*Cs.an*.005,P1*B*.01,0),r+Cs.l+.001*t.tr*t.finalSize}htmlA?ttx.toCSS():svgA?ttx.to2dCSS():etx.props0,x.props1,x.props2,x.props3,x.props4,x.props5,x.props6,x.props7,x.props8,x.props9,x.props10,x.props11,x.props12,x.props13,x.props14,x.props15,Yz}ws?(Inew LetterProps(Y,q,W,U,tt,et),this.renderedLetters.push(I),w+1,this.lettersChangedFlag!0):(Ithis.renderedLetterss,this.lettersChangedFlagI.update(Y,q,W,U,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValuefunction(){this._elem.globalData.frameId!this._frameId&&(this._frameIdthis._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelpernew Matrix,TextAnimatorProperty.prototype.defaultPropsArray,extendPrototype(DynamicPropertyContainer,TextAnimatorProperty),ITextElement.prototype.initElementfunction(t,e,r){this.lettersChangedFlag!0,this.initFrame(),this.initBaseData(t,e,r),this.textPropertynew TextProperty(this,t.t,this.dynamicProperties),this.textAnimatornew TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFramefunction(t){this._mdf!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame!1,this.textProperty._mdf!1)},ITextElement.prototype.createPathShapefunction(t,e){var r,i,se.length,a;for(r0;rs;r+1)sher.ty&&(ier.ks.k,a+buildShapeString(i,i.i.length,!0,t));return a},ITextElement.prototype.updateDocumentDatafunction(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFontfunction(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSizefunction(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrixfunction(t,e,r,i,s){switch(t.ps&&e.translate(t.ps0,t.ps1+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidthsr),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidthsr)/2,0,0)}e.translate(i,s,0)},ITextElement.prototype.buildColorfunction(t){returnrgb(+Math.round(255*t0)+,+Math.round(255*t1)+,+Math.round(255*t2)+)},ITextElement.prototype.emptyPropnew LetterProps,ITextElement.prototype.destroyfunction(){};var emptyShapeData{shapes:};function SVGTextLottieElement(t,e,r){this.textSpans,this.renderTypesvg,this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layerst.layers,this.supports3d!0,this.completeLayers!1,this.pendingElements,this.elementsthis.layers?createSizedArray(this.layers.length):,this.initElement(t,e,r),this.tmt.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItemt,this.layersnull,this.renderedFrame-1,this.svgElementcreateNS(svg);var r;if(e&&e.title){var icreateNS(title),screateElementID();i.setAttribute(id,s),i.textContente.title,this.svgElement.appendChild(i),r+s}if(e&&e.description){var acreateNS(desc),ncreateElementID();a.setAttribute(id,n),a.textContente.description,this.svgElement.appendChild(a),r+ +n}r&&this.svgElement.setAttribute(aria-labelledby,r);var ocreateNS(defs);this.svgElement.appendChild(o);var hcreateNS(g);this.svgElement.appendChild(h),this.layerElementh,this.renderConfig{preserveAspectRatio:e&&e.preserveAspectRatio||xMidYMid meet,imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||xMidYMid slice,contentVisibility:e&&e.contentVisibility||visible,progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||,id:e&&e.id||,focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||100%,height:e&&e.filterSize&&e.filterSize.height||100%,x:e&&e.filterSize&&e.filterSize.x||0%,y:e&&e.filterSize&&e.filterSize.y||0%},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0e.runExpressions||e.runExpressions},this.globalData{_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements,this.pendingElements,this.destroyed!1,this.rendererTypesvg}function CVContextData(){var t;for(this.saved,this.cArrPos0,this.cTrnew Matrix,this.cO1,this.savedOpcreateTypedArray(float32,15),t0;t15;t+1)this.savedtcreateTypedArray(float32,16);this._length15}function ShapeTransformManager(){this.sequences{},this.sequenceList,this.transform_key_count0}function CVEffects(){}function CVMaskElement(t,e){var r;this.datat,this.elemente,this.masksPropertiesthis.data.masksProperties||,this.viewDatacreateSizedArray(this.masksProperties.length);var ithis.masksProperties.length,s!1;for(r0;ri;r+1)n!this.masksPropertiesr.mode&&(s!0),this.viewDatarShapePropertyFactory.getShapeProp(this.element,this.masksPropertiesr,3);this.hasMaskss,s&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(t,e,r,i){this.styledShapes,this.tr0,0,0,0,0,0;var s,a4;rce.ty?a5:ele.ty?a6:sre.ty&&(a7),this.shShapePropertyFactory.getShapeProp(t,e,a,t);var n,or.length;for(s0;so;s+1)rs.closed||(n{transforms:i.addTransformSequence(rs.transforms),trNodes:},this.styledShapes.push(n),rs.elements.push(n))}function CVShapeElement(t,e,r){this.shapes,this.shapesDatat.shapes,this.stylesList,this.itemsData,this.prevViewData,this.shapeModifiers,this.processedElements,this.transformsManagernew ShapeTransformManager,this.initElement(t,e,r)}function CVTextElement(t,e,r){this.textSpans,this.yOffset0,this.fillColorAnim!1,this.strokeColorAnim!1,this.strokeWidthAnim!1,this.stroke!1,this.fill!1,this.justifyOffset0,this.currentRendernull,this.renderTypecanvas,this.values{fill:rgba(0,0,0,0),stroke:rgba(0,0,0,0),sWidth:0,fValue:},this.initElement(t,e,r)}function CVImageElement(t,e,r){this.assetDatae.getAssetData(t.refId),this.imge.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CanvasRendererBase(t,e){this.animationItemt,this.renderConfig{clearCanvas:!e||void 0e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||xMidYMid meet,imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||xMidYMid slice,contentVisibility:e&&e.contentVisibility||visible,className:e&&e.className||,id:e&&e.id||},this.renderConfig.dpre&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpre&&e.dpr||window.devicePixelRatio||1),this.renderedFrame-1,this.globalData{frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextDatanew CVContextData,this.elements,this.pendingElements,this.transformMatnew Matrix,this.completeLayers!1,this.rendererTypecanvas}function CVCompElement(t,e,r){this.completeLayers!1,this.layerst.layers,this.pendingElements,this.elementscreateSizedArray(this.layers.length),this.initElement(t,e,r),this.tmt.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItemt,this.renderConfig{clearCanvas:!e||void 0e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||xMidYMid meet,imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||xMidYMid slice,contentVisibility:e&&e.contentVisibility||visible,className:e&&e.className||,id:e&&e.id||,runExpressions:!e||void 0e.runExpressions||e.runExpressions},this.renderConfig.dpre&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpre&&e.dpr||window.devicePixelRatio||1),this.renderedFrame-1,this.globalData{frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextDatanew CVContextData,this.elements,this.pendingElements,this.transformMatnew Matrix,this.completeLayers!1,this.rendererTypecanvas}function HBaseElement(){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HShapeElement(t,e,r){this.shapes,this.shapesDatat.shapes,this.stylesList,this.shapeModifiers,this.itemsData,this.processedElements,this.animatedContents,this.shapesContainercreateNS(g),this.initElement(t,e,r),this.prevViewData,this.currentBBox{x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans,this.textPaths,this.currentBBox{x:999999,y:-999999,h:0,w:0},this.renderTypesvg,this.isMasked!1,this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var iPropertyFactory.getProp;if(this.pei(this,t.pe,0,0,this),t.ks.p.s?(this.pxi(this,t.ks.p.x,1,0,this),this.pyi(this,t.ks.p.y,1,0,this),this.pzi(this,t.ks.p.z,1,0,this)):this.pi(this,t.ks.p,1,0,this),t.ks.a&&(this.ai(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k0.to){var s,at.ks.or.k.length;for(s0;sa;s+1)t.ks.or.ks.tonull,t.ks.or.ks.tinull}this.ori(this,t.ks.or,1,degToRads,this),this.or.sh!0,this.rxi(this,t.ks.rx,0,degToRads,this),this.ryi(this,t.ks.ry,0,degToRads,this),this.rzi(this,t.ks.rz,0,degToRads,this),this.matnew Matrix,this._prevMatnew Matrix,this._isFirstFrame!0,this.finalTransform{mProp:this}}function HImageElement(t,e,r){this.assetDatae.getAssetData(t.refId),this.initElement(t,e,r)}function HybridRendererBase(t,e){this.animationItemt,this.layersnull,this.renderedFrame-1,this.renderConfig{className:e&&e.className||,imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||xMidYMid slice,hideOnTransparent:!(e&&!1e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||400%,height:e&&e.filterSize&&e.filterSize.height||400%,x:e&&e.filterSize&&e.filterSize.x||-100%,y:e&&e.filterSize&&e.filterSize.y||-100%}},this.globalData{_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements,this.elements,this.threeDElements,this.destroyed!1,this.cameranull,this.supports3d!0,this.rendererTypehtml}function HCompElement(t,e,r){this.layerst.layers,this.supports3d!t.hasMask,this.completeLayers!1,this.pendingElements,this.elementsthis.layers?createSizedArray(this.layers.length):,this.initElement(t,e,r),this.tmt.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItemt,this.layersnull,this.renderedFrame-1,this.renderConfig{className:e&&e.className||,imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||xMidYMid slice,hideOnTransparent:!(e&&!1e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||400%,height:e&&e.filterSize&&e.filterSize.height||400%,x:e&&e.filterSize&&e.filterSize.x||-100%,y:e&&e.filterSize&&e.filterSize.y||-100%},runExpressions:!e||void 0e.runExpressions||e.runExpressions},this.globalData{_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements,this.elements,this.threeDElements,this.destroyed!1,this.cameranull,this.supports3d!0,this.rendererTypehtml}extendPrototype(BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement,SVGTextLottieElement),SVGTextLottieElement.prototype.createContentfunction(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainercreateNS(text))},SVGTextLottieElement.prototype.buildTextContentsfunction(t){for(var e0,rt.length,i,s;er;)teString.fromCharCode(13)||teString.fromCharCode(3)?(i.push(s),s):s+te,e+1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeDatafunction(t,e){if(t.shapes&&t.shapes.length){var rt.shapes0;if(r.it){var ir.itr.it.length-1;i.s&&(i.s.k0e,i.s.k1e)}}return t},SVGTextLottieElement.prototype.buildNewTextfunction(){var t,e;this.addDynamicProperty(this);var rthis.textProperty.currentData;this.renderedLetterscreateSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute(fill,this.buildColor(r.fc)):this.layerElement.setAttribute(fill,rgba(0,0,0,0)),r.sc&&(this.layerElement.setAttribute(stroke,this.buildColor(r.sc)),this.layerElement.setAttribute(stroke-width,r.sw)),this.layerElement.setAttribute(font-size,r.finalSize);var ithis.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute(class,i.fClass);else{this.layerElement.setAttribute(font-family,i.fFamily);var sr.fWeight,ar.fStyle;this.layerElement.setAttribute(font-style,a),this.layerElement.setAttribute(font-weight,s)}this.layerElement.setAttribute(aria-label,r.t);var n,or.l||,h!!this.globalData.fontManager.chars;eo.length;var lthis.mHelper,pthis.data.singleShape,c0,f0,d!0,u.001*r.tr*r.finalSize;if(!p||h||r.sz){var m,ythis.textSpans.length;for(t0;te;t+1){if(this.textSpanst||(this.textSpanst{span:null,childSpan:null,glyph:null}),!h||!p||0t){if(ny>t?this.textSpanst.span:createNS(h?g:text),yt){if(n.setAttribute(stroke-linecap,butt),n.setAttribute(stroke-linejoin,round),n.setAttribute(stroke-miterlimit,4),this.textSpanst.spann,h){var gcreateNS(g);n.appendChild(g),this.textSpanst.childSpang}this.textSpanst.spann,this.layerElement.appendChild(n)}n.style.displayinherit}if(l.reset(),p&&(ot.n&&(c-u,f+r.yOffset,f+d?1:0,d!1),this.applyTextPropertiesToMatrix(r,l,ot.line,c,f),c+ot.l||0,c+u),h){var v;if(1(mthis.globalData.fontManager.getCharData(r.finalTextt,i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)vnew SVGCompElement(m.data,this.globalData,this);else{var bemptyShapeData;m.data&&m.data.shapes&&(bthis.buildShapeData(m.data,r.finalSize)),vnew SVGShapeElement(b,this.globalData,this)}if(this.textSpanst.glyph){var _this.textSpanst.glyph;this.textSpanst.childSpan.removeChild(_.layerElement),_.destroy()}this.textSpanst.glyphv,v._debug!0,v.prepareFrame(0),v.renderFrame(),this.textSpanst.childSpan.appendChild(v.layerElement),1m.t&&this.textSpanst.childSpan.setAttribute(transform,scale(+r.finalSize/100+,+r.finalSize/100+))}else p&&n.setAttribute(transform,translate(+l.props12+,+l.props13+)),n.textContentot.val,n.setAttributeNS(http://www.w3.org/XML/1998/namespace,xml:space,preserve)}p&&n&&n.setAttribute(d,)}else{var Pthis.textContainer,Estart;switch(r.j){case 1:Eend;break;case 2:Emiddle;break;default:Estart}P.setAttribute(text-anchor,E),P.setAttribute(letter-spacing,u);var Sthis.buildTextContents(r.finalText);for(eS.length,fr.ps?r.ps1+r.ascent:0,t0;te;t+1)(nthis.textSpanst.span||createNS(tspan)).textContentSt,n.setAttribute(x,0),n.setAttribute(y,f),n.style.displayinherit,P.appendChild(n),this.textSpanst||(this.textSpanst{span:null,glyph:null}),this.textSpanst.spann,f+r.finalLineHeight;this.layerElement.appendChild(P)}for(;tthis.textSpans.length;)this.textSpanst.span.style.displaynone,t+1;this._sizeChanged!0},SVGTextLottieElement.prototype.sourceRectAtTimefunction(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged!1;var tthis.layerElement.getBBox();this.bbox{top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValuefunction(){var t,e,rthis.textSpans.length;for(this.renderedFramethis.comp.renderedFrame,t0;tr;t+1)(ethis.textSpanst.glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf!0))},SVGTextLottieElement.prototype.renderInnerContentfunction(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged!0;var r,i,s,athis.textAnimator.renderedLetters,nthis.textProperty.currentData.l;for(en.length,t0;te;t+1)nt.n||(rat,ithis.textSpanst.span,(sthis.textSpanst.glyph)&&s.renderFrame(),r._mdf.m&&i.setAttribute(transform,r.m),r._mdf.o&&i.setAttribute(opacity,r.o),r._mdf.sw&&i.setAttribute(stroke-width,r.sw),r._mdf.sc&&i.setAttribute(stroke,r.sc),r._mdf.fc&&i.setAttribute(fill,r.fc))}},extendPrototype(IImageElement,ISolidElement),ISolidElement.prototype.createContentfunction(){var tcreateNS(rect);t.setAttribute(width,this.data.sw),t.setAttribute(height,this.data.sh),t.setAttribute(fill,this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFramefunction(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFramefunction(){},NullElement.prototype.getBaseElementfunction(){return null},NullElement.prototype.destroyfunction(){},NullElement.prototype.sourceRectAtTimefunction(){},NullElement.prototype.hidefunction(){},extendPrototype(BaseElement,TransformElement,HierarchyElement,FrameElement,NullElement),extendPrototype(BaseRenderer,SVGRendererBase),SVGRendererBase.prototype.createNullfunction(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShapefunction(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createTextfunction(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImagefunction(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolidfunction(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimationfunction(t){this.svgElement.setAttribute(xmlns,http://www.w3.org/2000/svg),this.svgElement.setAttribute(xmlns:xlink,http://www.w3.org/1999/xlink),this.renderConfig.viewBoxSize?this.svgElement.setAttribute(viewBox,this.renderConfig.viewBoxSize):this.svgElement.setAttribute(viewBox,0 0 +t.w+ +t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute(width,t.w),this.svgElement.setAttribute(height,t.h),this.svgElement.style.width100%,this.svgElement.style.height100%,this.svgElement.style.transformtranslate3d(0,0,0),this.svgElement.style.contentVisibilitythis.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute(width,this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute(height,this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute(class,this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute(id,this.renderConfig.id),void 0!this.renderConfig.focusable&&this.svgElement.setAttribute(focusable,this.renderConfig.focusable),this.svgElement.setAttribute(preserveAspectRatio,this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var ethis.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoadthis.renderConfig.progressiveLoad,this.datat;var rcreateNS(clipPath),icreateNS(rect);i.setAttribute(width,t.w),i.setAttribute(height,t.h),i.setAttribute(x,0),i.setAttribute(y,0);var screateElementID();r.setAttribute(id,s),r.appendChild(i),this.layerElement.setAttribute(clip-path,url(+getLocationHref()+#+s+)),e.appendChild(r),this.layerst.layers,this.elementscreateSizedArray(t.layers.length)},SVGRendererBase.prototype.destroyfunction(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText),this.layerElementnull,this.globalData.defsnull;var ethis.layers?this.layers.length:0;for(t0;te;t+1)this.elementst&&this.elementst.destroy();this.elements.length0,this.destroyed!0,this.animationItemnull},SVGRendererBase.prototype.updateContainerSizefunction(){},SVGRendererBase.prototype.findIndexByIndfunction(t){var e0,rthis.layers.length;for(e0;er;e+1)if(this.layerse.indt)return e;return-1},SVGRendererBase.prototype.buildItemfunction(t){var ethis.elements;if(!et&&99!this.layerst.ty){et!0;var rthis.createItem(this.layerst);if(etr,getExpressionsPlugin()&&(0this.layerst.ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layerst.tt){var itpin this.layerst?this.findIndexByInd(this.layerst.tp):t-1;if(-1i)return;if(this.elementsi&&!0!this.elementsi){var sei.getMatte(this.layerst.tt);r.setMatte(s)}else this.buildItem(i),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElementsfunction(){for(;this.pendingElements.length;){var tthis.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e0,rthis.elements.length;er;){if(this.elementset){var itpin t.data?this.findIndexByInd(t.data.tp):e-1,sthis.elementsi.getMatte(this.layerse.tt);t.setMatte(s);break}e+1}}},SVGRendererBase.prototype.renderFramefunction(t){if(this.renderedFrame!t&&!this.destroyed){var e;nullt?tthis.renderedFrame:this.renderedFramet,this.globalData.frameNumt,this.globalData.frameId+1,this.globalData.projectInterface.currentFramet,this.globalData._mdf!1;var rthis.layers.length;for(this.completeLayers||this.checkLayers(t),er-1;e>0;e-1)(this.completeLayers||this.elementse)&&this.elementse.prepareFrame(t-this.layerse.st);if(this.globalData._mdf)for(e0;er;e+1)(this.completeLayers||this.elementse)&&this.elementse.renderFrame()}},SVGRendererBase.prototype.appendElementInPosfunction(t,e){var rt.getBaseElement();if(r){for(var i,s0;se;)this.elementss&&!0!this.elementss&&this.elementss.getBaseElement()&&(ithis.elementss.getBaseElement()),s+1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hidefunction(){this.layerElement.style.displaynone},SVGRendererBase.prototype.showfunction(){this.layerElement.style.displayblock},extendPrototype(BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement,ICompElement),ICompElement.prototype.initElementfunction(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFramefunction(t){if(this._mdf!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFramet/this.data.sr;else{var ethis.tm.v;ethis.data.op&&(ethis.data.op-1),this.renderedFramee}var r,ithis.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),ri-1;r>0;r-1)(this.completeLayers||this.elementsr)&&(this.elementsr.prepareFrame(this.renderedFrame-this.layersr.st),this.elementsr._mdf&&(this._mdf!0))}},ICompElement.prototype.renderInnerContentfunction(){var t,ethis.layers.length;for(t0;te;t+1)(this.completeLayers||this.elementst)&&this.elementst.renderFrame()},ICompElement.prototype.setElementsfunction(t){this.elementst},ICompElement.prototype.getElementsfunction(){return this.elements},ICompElement.prototype.destroyElementsfunction(){var t,ethis.layers.length;for(t0;te;t+1)this.elementst&&this.elementst.destroy()},ICompElement.prototype.destroyfunction(){this.destroyElements(),this.destroyBaseElement()},extendPrototype(SVGRendererBase,ICompElement,SVGBaseElement,SVGCompElement),SVGCompElement.prototype.createCompfunction(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype(SVGRendererBase,SVGRenderer),SVGRenderer.prototype.createCompfunction(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicatefunction(){var t2*this._length,ethis.savedOp;this.savedOpcreateTypedArray(float32,t),this.savedOp.set(e);var r0;for(rthis._length;rt;r+1)this.savedrcreateTypedArray(float32,16);this._lengtht},CVContextData.prototype.resetfunction(){this.cArrPos0,this.cTr.reset(),this.cO1},ShapeTransformManager.prototype{addTransformSequence:function(t){var e,rt.length,i_;for(e0;er;e+1)i+te.transform.key+_;var sthis.sequencesi;return s||(s{transforms:.concat(t),finalTransform:new Matrix,_mdf:!1},this.sequencesis,this.sequenceList.push(s)),s},processSequence:function(t,e){for(var r,i0,st.transforms.length,ae;is&&!e;){if(t.transformsi.transform.mProps._mdf){a!0;break}i+1}if(a)for(t.finalTransform.reset(),is-1;i>0;i-1)rt.transformsi.transform.mProps.v.props,t.finalTransform.transform(r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15);t._mdfa},processSequences:function(t){var e,rthis.sequenceList.length;for(e0;er;e+1)this.processSequence(this.sequenceListe,t)},getNewKey:function(){return this.transform_key_count+1,_+this.transform_key_count}},CVEffects.prototype.renderFramefunction(){},CVMaskElement.prototype.renderFramefunction(){if(this.hasMasks){var t,e,r,i,sthis.element.finalTransform.mat,athis.element.canvasContext,nthis.masksProperties.length;for(a.beginPath(),t0;tn;t+1)if(n!this.masksPropertiest.mode){var o;this.masksPropertiest.inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),ithis.viewDatat.v,es.applyToPointArray(i.v00,i.v01,0),a.moveTo(e0,e1);var hi._length;for(o1;oh;o+1)rs.applyToTriplePoints(i.oo-1,i.io,i.vo),a.bezierCurveTo(r0,r1,r2,r3,r4,r5);rs.applyToTriplePoints(i.oo-1,i.i0,i.v0),a.bezierCurveTo(r0,r1,r2,r3,r4,r5)}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskPropertyMaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroyfunction(){this.elementnull},CVBaseElement.prototype{createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContextthis.globalData.canvasContext,this.renderableEffectsManagernew CVEffects(this)},createContent:function(){},setBlendMode:function(){var tthis.globalData;if(t.blendMode!this.data.bm){t.blendModethis.data.bm;var egetBlendMode(this.data.bm);t.canvasContext.globalCompositeOperatione}},createRenderableComponents:function(){this.maskManagernew CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden!1,this._isFirstFrame!0,this.maskManager._isFirstFrame!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t0this.data.ty;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame!1)}},destroy:function(){this.canvasContextnull,this.datanull,this.globalDatanull,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hideCVBaseElement.prototype.hideElement,CVBaseElement.prototype.showCVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimatedSVGShapeData.prototype.setAsAnimated,extendPrototype(BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement,CVShapeElement),CVShapeElement.prototype.initElementRenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper{opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter,CVShapeElement.prototype.createContentfunction(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,)},CVShapeElement.prototype.createStyleElementfunction(t,e){var r{data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:,elements:,closed:!0t.hd},i{};if(flt.ty||stt.ty?(i.cPropertyFactory.getProp(this,t.c,1,255,this),i.c.k||(r.corgb(+bmFloor(i.c.v0)+,+bmFloor(i.c.v1)+,+bmFloor(i.c.v2)+))):gf!t.ty&&gs!t.ty||(i.sPropertyFactory.getProp(this,t.s,1,null,this),i.ePropertyFactory.getProp(this,t.e,1,null,this),i.hPropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.aPropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.gnew GradientProperty(this,t.g,this)),i.oPropertyFactory.getProp(this,t.o,0,.01,this),stt.ty||gst.ty){if(r.lclineCapEnumt.lc||2,r.ljlineJoinEnumt.lj||2,1t.lj&&(r.mlt.ml),i.wPropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(r.wii.w.v),t.d){var snew DashProperty(this,t.d,canvas,this);i.ds,i.d.k||(r.dai.d.dashArray,r.doi.d.dashoffset0)}}else r.r2t.r?evenodd:nonzero;return this.stylesList.push(r),i.styler,i},CVShapeElement.prototype.createGroupElementfunction(){return{it:,prevViewData:}},CVShapeElement.prototype.createTransformElementfunction(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElementfunction(t){var enew CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapesfunction(){var t;this._isFirstFrame!0;var ethis.itemsData.length;for(t0;te;t+1)this.prevViewDatatthis.itemsDatat;for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,),ethis.dynamicProperties.length,t0;te;t+1)this.dynamicPropertiest.getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleListfunction(t){var e,rthis.stylesList.length;for(e0;er;e+1)this.stylesListe.closed||this.stylesListe.transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleListfunction(){var t,ethis.stylesList.length;for(t0;te;t+1)this.stylesListt.closed||this.stylesListt.transforms.pop()},CVShapeElement.prototype.closeStylesfunction(t){var e,rt.length;for(e0;er;e+1)te.closed!0},CVShapeElement.prototype.searchShapesfunction(t,e,r,i,s){var a,n,o,h,l,p,ct.length-1,f,d,u.concat(s);for(ac;a>0;a-1){if((hthis.searchProcessedElement(ta))?earh-1:ta._shouldRenderi,flta.ty||stta.ty||gfta.ty||gsta.ty)h?ea.style.closed!1:eathis.createStyleElement(ta,u),f.push(ea.style);else if(grta.ty){if(h)for(oea.it.length,n0;no;n+1)ea.prevViewDatanea.itn;else eathis.createGroupElement(ta);this.searchShapes(ta.it,ea.it,ea.prevViewData,i,u)}elsetrta.ty?(h||(pthis.createTransformElement(ta),eap),u.push(ea),this.addTransformToStyleList(ea)):shta.ty||rcta.ty||elta.ty||srta.ty?h||(eathis.createShapeElement(ta)):tmta.ty||rdta.ty||pbta.ty||zzta.ty||opta.ty?(h?(lea).closed!1:((lShapeModifiers.getModifier(ta.ty)).init(this,ta),eal,this.shapeModifiers.push(l)),d.push(l)):rpta.ty&&(h?(lea).closed!0:(lShapeModifiers.getModifier(ta.ty),eal,l.init(this,t,a,e),this.shapeModifiers.push(l),i!1),d.push(l));this.addProcessedElement(ta,a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),cd.length,a0;ac;a+1)da.closed!0},CVShapeElement.prototype.renderInnerContentfunction(){this.transformHelper.opacity1,this.transformHelper._opMdf!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransformfunction(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacityt.opacity,e.opacity*e.op.v,e._opMdf!0)},CVShapeElement.prototype.drawLayerfunction(){var t,e,r,i,s,a,n,o,h,lthis.stylesList.length,pthis.globalData.renderer,cthis.globalData.canvasContext;for(t0;tl;t+1)if((st!(o(hthis.stylesListt).type)&&gs!o||0!h.wi)&&h.data._shouldRender&&0!h.coOp&&0!this.globalData.currentGlobalAlpha){for(p.save(),ah.elements,sto||gso?(c.strokeStylesto?h.co:h.grd,c.lineWidthh.wi,c.lineCaph.lc,c.lineJoinh.lj,c.miterLimith.ml||0):c.fillStyleflo?h.co:h.grd,p.ctxOpacity(h.coOp),st!o&&gs!o&&c.beginPath(),p.ctxTransform(h.preTransforms.finalTransform.props),ra.length,e0;er;e+1){for(st!o&&gs!o||(c.beginPath(),h.da&&(c.setLineDash(h.da),c.lineDashOffseth.do)),s(nae.trNodes).length,i0;is;i+1)mni.t?c.moveTo(ni.p0,ni.p1):cni.t?c.bezierCurveTo(ni.pts0,ni.pts1,ni.pts2,ni.pts3,ni.pts4,ni.pts5):c.closePath();st!o&&gs!o||(c.stroke(),h.da&&c.setLineDash(this.dashResetter))}st!o&&gs!o&&c.fill(h.r),p.restore()}},CVShapeElement.prototype.renderShapefunction(t,e,r,i){var s,a;for(at,se.length-1;s>0;s-1)tres.ty?(ars.transform,this.renderShapeTransform(t,a)):shes.ty||eles.ty||rces.ty||sres.ty?this.renderPath(es,rs):fles.ty?this.renderFill(es,rs,a):stes.ty?this.renderStroke(es,rs,a):gfes.ty||gses.ty?this.renderGradientFill(es,rs,a):gres.ty?this.renderShape(a,es.it,rs.it):es.ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShapefunction(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,s,at.trNodes,ne.paths,on._length;a.length0;var ht.transforms.finalTransform;for(s0;so;s+1){var ln.shapess;if(l&&l.v){for(il._length,r1;ri;r+1)1r&&a.push({t:m,p:h.applyToPointArray(l.v00,l.v01,0)}),a.push({t:c,pts:h.applyToTriplePoints(l.or-1,l.ir,l.vr)});1i&&a.push({t:m,p:h.applyToPointArray(l.v00,l.v01,0)}),l.c&&i&&(a.push({t:c,pts:h.applyToTriplePoints(l.or-1,l.i0,l.v0)}),a.push({t:z}))}}t.trNodesa}},CVShapeElement.prototype.renderPathfunction(t,e){if(!0!t.hd&&t._shouldRender){var r,ie.styledShapes.length;for(r0;ri;r+1)this.renderStyledShape(e.styledShapesr,e.sh)}},CVShapeElement.prototype.renderFillfunction(t,e,r){var ie.style;(e.c._mdf||this._isFirstFrame)&&(i.corgb(+bmFloor(e.c.v0)+,+bmFloor(e.c.v1)+,+bmFloor(e.c.v2)+)),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOpe.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFillfunction(t,e,r){var i,se.style;if(!s.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!t.t&&(e.h._mdf||e.a._mdf)){var a,nthis.globalData.canvasContext,oe.s.v,he.e.v;if(1t.t)in.createLinearGradient(o0,o1,h0,h1);else{var lMath.sqrt(Math.pow(o0-h0,2)+Math.pow(o1-h1,2)),pMath.atan2(h1-o1,h0-o0),ce.h.v;c>1?c.99:c-1&&(c-.99);var fl*c,dMath.cos(p+e.a.v)*f+o0,uMath.sin(p+e.a.v)*f+o1;in.createRadialGradient(d,u,0,o0,o1,l)}var mt.g.p,ye.g.c,g1;for(a0;am;a+1)e.g._hasOpacity&&e.g._collapsable&&(ge.g.o2*a+1),i.addColorStop(y4*a/100,rgba(+y4*a+1+,+y4*a+2+,+y4*a+3+,+g+));s.grdi}s.coOpe.o.v*r.opacity},CVShapeElement.prototype.renderStrokefunction(t,e,r){var ie.style,se.d;s&&(s._mdf||this._isFirstFrame)&&(i.das.dashArray,i.dos.dashoffset0),(e.c._mdf||this._isFirstFrame)&&(i.corgb(+bmFloor(e.c.v0)+,+bmFloor(e.c.v1)+,+bmFloor(e.c.v2)+)),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOpe.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wie.w.v)},CVShapeElement.prototype.destroyfunction(){this.shapesDatanull,this.globalDatanull,this.canvasContextnull,this.stylesList.length0,this.itemsData.length0},extendPrototype(BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement,CVTextElement),CVTextElement.prototype.tHelpercreateTag(canvas).getContext(2d),CVTextElement.prototype.buildNewTextfunction(){var tthis.textProperty.currentData;this.renderedLetterscreateSizedArray(t.l?t.l.length:0);var e!1;t.fc?(e!0,this.values.fillthis.buildColor(t.fc)):this.values.fillrgba(0,0,0,0),this.fille;var r!1;t.sc&&(r!0,this.values.strokethis.buildColor(t.sc),this.values.sWidtht.sw);var i,s,a,n,o,h,l,p,c,f,d,u,mthis.globalData.fontManager.getFontByName(t.f),yt.l,gthis.mHelper;this.stroker,this.values.fValuet.finalSize+px +this.globalData.fontManager.getFontByName(t.f).fFamily,st.finalText.length;var vthis.data.singleShape,b.001*t.tr*t.finalSize,_0,P0,E!0,S0;for(i0;is;i+1){n(athis.globalData.fontManager.getCharData(t.finalTexti,m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&a.data||{},g.reset(),v&&yi.n&&(_-b,P+t.yOffset,P+E?1:0,E!1),c(ln.shapes?n.shapes0.it:).length,g.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,g,yi.line,_,P),dcreateSizedArray(c-1);var x0;for(p0;pc;p+1)if(shlp.ty){for(hlp.ks.k.i.length,flp.ks.k,u,o1;oh;o+1)1o&&u.push(g.applyToX(f.v00,f.v01,0),g.applyToY(f.v00,f.v01,0)),u.push(g.applyToX(f.oo-10,f.oo-11,0),g.applyToY(f.oo-10,f.oo-11,0),g.applyToX(f.io0,f.io1,0),g.applyToY(f.io0,f.io1,0),g.applyToX(f.vo0,f.vo1,0),g.applyToY(f.vo0,f.vo1,0));u.push(g.applyToX(f.oo-10,f.oo-11,0),g.applyToY(f.oo-10,f.oo-11,0),g.applyToX(f.i00,f.i01,0),g.applyToY(f.i00,f.i01,0),g.applyToX(f.v00,f.v01,0),g.applyToY(f.v00,f.v01,0)),dxu,x+1}v&&(_+yi.l,_+b),this.textSpansS?this.textSpansS.elemd:this.textSpansS{elem:d},S+1}},CVTextElement.prototype.renderInnerContentfunction(){var t,e,r,i,s,a,nthis.canvasContext;n.fontthis.values.fValue,n.lineCapbutt,n.lineJoinmiter,n.miterLimit4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,hthis.textAnimator.renderedLetters,lthis.textProperty.currentData.l;el.length;var p,c,fnull,dnull,unull;for(t0;te;t+1)if(!lt.n){if((oht)&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?f!o.fc&&(fo.fc,n.fillStyleo.fc):f!this.values.fill&&(fthis.values.fill,n.fillStylethis.values.fill),i(pthis.textSpanst.elem).length,this.globalData.canvasContext.beginPath(),r0;ri;r+1)for(a(cpr).length,this.globalData.canvasContext.moveTo(c0,c1),s2;sa;s+6)this.globalData.canvasContext.bezierCurveTo(cs,cs+1,cs+2,cs+3,cs+4,cs+5);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?u!o.sw&&(uo.sw,n.lineWidtho.sw):u!this.values.sWidth&&(uthis.values.sWidth,n.lineWidththis.values.sWidth),o&&o.sc?d!o.sc&&(do.sc,n.strokeStyleo.sc):d!this.values.stroke&&(dthis.values.stroke,n.strokeStylethis.values.stroke),i(pthis.textSpanst.elem).length,this.globalData.canvasContext.beginPath(),r0;ri;r+1)for(a(cpr).length,this.globalData.canvasContext.moveTo(c0,c1),s2;sa;s+6)this.globalData.canvasContext.bezierCurveTo(cs,cs+1,cs+2,cs+3,cs+4,cs+5);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}o&&this.globalData.renderer.restore()}},extendPrototype(BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,CVImageElement),CVImageElement.prototype.initElementSVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrameIImageElement.prototype.prepareFrame,CVImageElement.prototype.createContentfunction(){if(this.img.width&&(this.assetData.w!this.img.width||this.assetData.h!this.img.height)){var tcreateTag(canvas);t.widththis.assetData.w,t.heightthis.assetData.h;var e,r,it.getContext(2d),sthis.img.width,athis.img.height,ns/a,othis.assetData.w/this.assetData.h,hthis.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;n>o&&xMidYMid sliceh||no&&xMidYMid slice!h?e(ra)*o:r(es)/o,i.drawImage(this.img,(s-e)/2,(a-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.imgt}},CVImageElement.prototype.renderInnerContentfunction(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroyfunction(){this.imgnull},extendPrototype(BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,CVSolidElement),CVSolidElement.prototype.initElementSVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrameIImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContentfunction(){var tthis.canvasContext;t.fillStylethis.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype(BaseRenderer,CanvasRendererBase),CanvasRendererBase.prototype.createShapefunction(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createTextfunction(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImagefunction(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolidfunction(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNullSVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransformfunction(t){if(1!t0||0!t1||0!t4||1!t5||0!t12||0!t13)if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var ethis.contextData.cTr.props;this.transformMat.transform(e0,e1,e2,e3,e4,e5,e6,e7,e8,e9,e10,e11,e12,e13,e14,e15),this.contextData.cTr.cloneFromProps(this.transformMat.props);var rthis.contextData.cTr.props;this.canvasContext.setTransform(r0,r1,r4,r5,r12,r13)}else this.canvasContext.transform(t0,t1,t4,t5,t12,t13)},CanvasRendererBase.prototype.ctxOpacityfunction(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*t0?0:t,void(this.globalData.currentGlobalAlphathis.contextData.cO);this.contextData.cO*t0?0:t,this.globalData.currentGlobalAlpha!this.contextData.cO&&(this.canvasContext.globalAlphathis.contextData.cO,this.globalData.currentGlobalAlphathis.contextData.cO)},CanvasRendererBase.prototype.resetfunction(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.savefunction(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e,rthis.contextData.cTr.props;this.contextData._lengththis.contextData.cArrPos&&this.contextData.duplicate();var ithis.contextData.savedthis.contextData.cArrPos;for(e0;e16;e+1)iere;this.contextData.savedOpthis.contextData.cArrPosthis.contextData.cO,this.contextData.cArrPos+1}else this.canvasContext.save()},CanvasRendererBase.prototype.restorefunction(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendModesource-over),this.contextData.cArrPos-1;var e,rthis.contextData.savedthis.contextData.cArrPos,ithis.contextData.cTr.props;for(e0;e16;e+1)iere;this.canvasContext.setTransform(r0,r1,r4,r5,r12,r13),rthis.contextData.savedOpthis.contextData.cArrPos,this.contextData.cOr,this.globalData.currentGlobalAlpha!r&&(this.canvasContext.globalAlphar,this.globalData.currentGlobalAlphar)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimationfunction(t){if(this.animationItem.wrapper){this.animationItem.containercreateTag(canvas);var ethis.animationItem.container.style;e.width100%,e.height100%;var r0px 0px 0px;e.transformOriginr,e.mozTransformOriginr,e.webkitTransformOriginr,e-webkit-transformr,e.contentVisibilitythis.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContextthis.animationItem.container.getContext(2d),this.renderConfig.className&&this.animationItem.container.setAttribute(class,this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute(id,this.renderConfig.id)}else this.canvasContextthis.renderConfig.context;this.datat,this.layerst.layers,this.transformCanvas{w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContextthis.canvasContext,this.globalData.rendererthis,this.globalData.isDashed!1,this.globalData.progressiveLoadthis.renderConfig.progressiveLoad,this.globalData.transformCanvasthis.transformCanvas,this.elementscreateSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSizefunction(t,e){var r,i,s,a;if(this.reset(),t?(rt,ie,this.canvasContext.canvas.widthr,this.canvasContext.canvas.heighti):(this.animationItem.wrapper&&this.animationItem.container?(rthis.animationItem.wrapper.offsetWidth,ithis.animationItem.wrapper.offsetHeight):(rthis.canvasContext.canvas.width,ithis.canvasContext.canvas.height),this.canvasContext.canvas.widthr*this.renderConfig.dpr,this.canvasContext.canvas.heighti*this.renderConfig.dpr),-1!this.renderConfig.preserveAspectRatio.indexOf(meet)||-1!this.renderConfig.preserveAspectRatio.indexOf(slice)){var nthis.renderConfig.preserveAspectRatio.split( ),on1||meet,hn0||xMidYMid,lh.substr(0,4),ph.substr(4);sr/i,(athis.transformCanvas.w/this.transformCanvas.h)>s&&meeto||as&&sliceo?(this.transformCanvas.sxr/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.syr/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sxi/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.syi/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.txxMidl&&(as&&meeto||a>s&&sliceo)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:xMaxl&&(as&&meeto||a>s&&sliceo)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.tyYMidp&&(a>s&&meeto||as&&sliceo)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:YMaxp&&(a>s&&meeto||as&&sliceo)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}elsenonethis.renderConfig.preserveAspectRatio?(this.transformCanvas.sxr/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.syi/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx0,this.transformCanvas.ty0):(this.transformCanvas.sxthis.renderConfig.dpr,this.transformCanvas.sythis.renderConfig.dpr,this.transformCanvas.tx0,this.transformCanvas.ty0);this.transformCanvas.propsthis.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1,this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroyfunction(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText),t(this.layers?this.layers.length:0)-1;t>0;t-1)this.elementst&&this.elementst.destroy();this.elements.length0,this.globalData.canvasContextnull,this.animationItem.containernull,this.destroyed!0},CanvasRendererBase.prototype.renderFramefunction(t,e){if((this.renderedFrame!t||!0!this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!t){var r;this.renderedFramet,this.globalData.frameNumt-this.animationItem._isFirstFrame,this.globalData.frameId+1,this.globalData._mdf!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFramet;var ithis.layers.length;for(this.completeLayers||this.checkLayers(t),r0;ri;r+1)(this.completeLayers||this.elementsr)&&this.elementsr.prepareFrame(t-this.layersr.st);if(this.globalData._mdf){for(!0this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),ri-1;r>0;r-1)(this.completeLayers||this.elementsr)&&this.elementsr.renderFrame();!0!this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItemfunction(t){var ethis.elements;if(!et&&99!this.layerst.ty){var rthis.createItem(this.layerst,this,this.globalData);etr,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElementsfunction(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hidefunction(){this.animationItem.container.style.displaynone},CanvasRendererBase.prototype.showfunction(){this.animationItem.container.style.displayblock},extendPrototype(CanvasRendererBase,ICompElement,CVBaseElement,CVCompElement),CVCompElement.prototype.renderInnerContentfunction(){var t,ethis.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),tthis.layers.length-1;t>0;t-1)(this.completeLayers||this.elementst)&&this.elementst.renderFrame()},CVCompElement.prototype.destroyfunction(){var t;for(tthis.layers.length-1;t>0;t-1)this.elementst&&this.elementst.destroy();this.layersnull,this.elementsnull},CVCompElement.prototype.createCompfunction(t){return new CVCompElement(t,this.globalData,this)},extendPrototype(CanvasRendererBase,CanvasRenderer),CanvasRenderer.prototype.createCompfunction(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype{checkBlendMode:function(){},initRendererElement:function(){this.baseElementcreateTag(this.data.tg||div),this.data.hasMask?(this.svgElementcreateNS(svg),this.layerElementcreateNS(g),this.maskedElementthis.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElementthis.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManagernew CVEffects(this),this.transformedElementthis.baseElement,this.maskedElementthis.layerElement,this.data.ln&&this.layerElement.setAttribute(id,this.data.ln),this.data.cl&&this.layerElement.setAttribute(class,this.data.cl),0!this.data.bm&&this.setBlendMode()},renderElement:function(){var tthis.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var ethis.finalTransform.mat.toCSS();t.transforme,t.webkitTransforme}this.finalTransform._opMdf&&(t.opacitythis.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame!1))},destroy:function(){this.layerElementnull,this.transformedElementnull,this.matteElement&&(this.matteElementnull),this.maskManager&&(this.maskManager.destroy(),this.maskManagernull)},createRenderableComponents:function(){this.maskManagernew MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElementSVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElementHBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParentingBaseRenderer.prototype.buildElementParenting,extendPrototype(BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,HSolidElement),HSolidElement.prototype.createContentfunction(){var t;this.data.hasMask?((tcreateNS(rect)).setAttribute(width,this.data.sw),t.setAttribute(height,this.data.sh),t.setAttribute(fill,this.data.sc),this.svgElement.setAttribute(width,this.data.sw),this.svgElement.setAttribute(height,this.data.sh)):((tcreateTag(div)).style.widththis.data.sw+px,t.style.heightthis.data.sh+px,t.style.backgroundColorthis.data.sc),this.layerElement.appendChild(t)},extendPrototype(BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement,HShapeElement),HShapeElement.prototype._renderShapeFrameHShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContentfunction(){var t;if(this.baseElement.style.fontSize0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),tthis.svgElement;else{tcreateNS(svg);var ethis.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute(width,e.w),t.setAttribute(height,e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,,!0),this.filterUniqueShapes(),this.shapeContt},HShapeElement.prototype.getTransformedPointfunction(t,e){var r,it.length;for(r0;ri;r+1)etr.mProps.v.applyToPointArray(e0,e1,0);return e},HShapeElement.prototype.calculateShapeBoundingBoxfunction(t,e){var r,i,s,a,n,ot.sh.v,ht.transformers,lo._length;if(!(l1)){for(r0;rl-1;r+1)ithis.getTransformedPoint(h,o.vr),sthis.getTransformedPoint(h,o.or),athis.getTransformedPoint(h,o.ir+1),nthis.getTransformedPoint(h,o.vr+1),this.checkBounds(i,s,a,n,e);o.c&&(ithis.getTransformedPoint(h,o.vr),sthis.getTransformedPoint(h,o.or),athis.getTransformedPoint(h,o.i0),nthis.getTransformedPoint(h,o.v0),this.checkBounds(i,s,a,n,e))}},HShapeElement.prototype.checkBoundsfunction(t,e,r,i,s){this.getBoundsOfCurve(t,e,r,i);var athis.shapeBoundingBox;s.xbmMin(a.left,s.x),s.xMaxbmMax(a.right,s.xMax),s.ybmMin(a.top,s.y),s.yMaxbmMax(a.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox{left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox{x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurvefunction(t,e,r,i){for(var s,a,n,o,h,l,p,ct0,i0,t1,i1,f0;f2;++f)a6*tf-12*ef+6*rf,s-3*tf+9*ef-9*rf+3*if,n3*ef-3*tf,a|0,n|0,0(s|0)&&0a||(0s?(o-n/a)>0&&o1&&cf.push(this.calculateF(o,t,e,r,i,f)):(ha*a-4*n*s)>0&&((l(-a+bmSqrt(h))/(2*s))>0&&l1&&cf.push(this.calculateF(l,t,e,r,i,f)),(p(-a-bmSqrt(h))/(2*s))>0&&p1&&cf.push(this.calculateF(p,t,e,r,i,f))));this.shapeBoundingBox.leftbmMin.apply(null,c0),this.shapeBoundingBox.topbmMin.apply(null,c1),this.shapeBoundingBox.rightbmMax.apply(null,c0),this.shapeBoundingBox.bottombmMax.apply(null,c1)},HShapeElement.prototype.calculateFfunction(t,e,r,i,s,a){return bmPow(1-t,3)*ea+3*bmPow(1-t,2)*t*ra+3*(1-t)*bmPow(t,2)*ia+bmPow(t,3)*sa},HShapeElement.prototype.calculateBoundingBoxfunction(t,e){var r,it.length;for(r0;ri;r+1)tr&&tr.sh?this.calculateShapeBoundingBox(tr,e):tr&&tr.it?this.calculateBoundingBox(tr.it,e):tr&&tr.style&&tr.w&&this.expandStrokeBoundingBox(tr.w,e)},HShapeElement.prototype.expandStrokeBoundingBoxfunction(t,e){var r0;if(t.keyframes){for(var i0;it.keyframes.length;i+1){var st.keyframesi.s;s>r&&(rs)}r*t.mult}else rt.v*t.mult;e.x-r,e.xMax+r,e.y-r,e.yMax+r},HShapeElement.prototype.currentBoxContainsfunction(t){return this.currentBBox.xt.x&&this.currentBBox.yt.y&&this.currentBBox.width+this.currentBBox.x>t.x+t.width&&this.currentBBox.height+this.currentBBox.y>t.y+t.height},HShapeElement.prototype.renderInnerContentfunction(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var tthis.tempBoundingBox,e999999;if(t.xe,t.xMax-e,t.ye,t.yMax-e,this.calculateBoundingBox(this.itemsData,t),t.widtht.xMaxt.x?0:t.xMax-t.x,t.heightt.yMaxt.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r!1;if(this.currentBBox.w!t.width&&(this.currentBBox.wt.width,this.shapeCont.setAttribute(width,t.width),r!0),this.currentBBox.h!t.height&&(this.currentBBox.ht.height,this.shapeCont.setAttribute(height,t.height),r!0),r||this.currentBBox.x!t.x||this.currentBBox.y!t.y){this.currentBBox.wt.width,this.currentBBox.ht.height,this.currentBBox.xt.x,this.currentBBox.yt.y,this.shapeCont.setAttribute(viewBox,this.currentBBox.x+ +this.currentBBox.y+ +this.currentBBox.w+ +this.currentBBox.h);var ithis.shapeCont.style,stranslate(+this.currentBBox.x+px,+this.currentBBox.y+px);i.transforms,i.webkitTransforms}}},extendPrototype(BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement,HTextElement),HTextElement.prototype.createContentfunction(){if(this.isMaskedthis.checkMasks(),this.isMasked){this.renderTypesvg,this.compWthis.comp.data.w,this.compHthis.comp.data.h,this.svgElement.setAttribute(width,this.compW),this.svgElement.setAttribute(height,this.compH);var tcreateNS(g);this.maskedElement.appendChild(t),this.innerElemt}else this.renderTypehtml,this.innerElemthis.layerElement;this.checkParenting()},HTextElement.prototype.buildNewTextfunction(){var tthis.textProperty.currentData;this.renderedLetterscreateSizedArray(t.l?t.l.length:0);var ethis.innerElem.style,rt.fc?this.buildColor(t.fc):rgba(0,0,0,0);e.fillr,e.colorr,t.sc&&(e.strokethis.buildColor(t.sc),e.strokeWidtht.sw+px);var i,s,athis.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSizet.finalSize+px,e.lineHeightt.finalSize+px,a.fClass)this.innerElem.classNamea.fClass;else{e.fontFamilya.fFamily;var nt.fWeight,ot.fStyle;e.fontStyleo,e.fontWeightn}var h,l,p,ct.l;sc.length;var f,dthis.mHelper,u,m0;for(i0;is;i+1){if(this.globalData.fontManager.chars?(this.textPathsm?hthis.textPathsm:((hcreateNS(path)).setAttribute(stroke-linecap,lineCapEnum1),h.setAttribute(stroke-linejoin,lineJoinEnum2),h.setAttribute(stroke-miterlimit,4)),this.isMasked||(this.textSpansm?p(lthis.textSpansm).children0:((lcreateTag(div)).style.lineHeight0,(pcreateNS(svg)).appendChild(h),styleDiv(l)))):this.isMasked?hthis.textPathsm?this.textPathsm:createNS(text):this.textSpansm?(lthis.textSpansm,hthis.textPathsm):(styleDiv(lcreateTag(span)),styleDiv(hcreateTag(span)),l.appendChild(h)),this.globalData.fontManager.chars){var y,gthis.globalData.fontManager.getCharData(t.finalTexti,a.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(yg?g.data:null,d.reset(),y&&y.shapes&&y.shapes.length&&(fy.shapes0.it,d.scale(t.finalSize/100,t.finalSize/100),uthis.createPathShape(d,f),h.setAttribute(d,u)),this.isMasked)this.innerElem.appendChild(h);else{if(this.innerElem.appendChild(l),y&&y.shapes){document.body.appendChild(p);var vp.getBBox();p.setAttribute(width,v.width+2),p.setAttribute(height,v.height+2),p.setAttribute(viewBox,v.x-1+ +(v.y-1)+ +(v.width+2)+ +(v.height+2));var bp.style,_translate(+(v.x-1)+px,+(v.y-1)+px);b.transform_,b.webkitTransform_,ci.yOffsetv.y-1}else p.setAttribute(width,1),p.setAttribute(height,1);l.appendChild(p)}}else if(h.textContentci.val,h.setAttributeNS(http://www.w3.org/XML/1998/namespace,xml:space,preserve),this.isMasked)this.innerElem.appendChild(h);else{this.innerElem.appendChild(l);var Ph.style,Etranslate3d(0,+-t.finalSize/1.2+px,0);P.transformE,P.webkitTransformE}this.isMasked?this.textSpansmh:this.textSpansml,this.textSpansm.style.displayblock,this.textPathsmh,m+1}for(;mthis.textSpans.length;)this.textSpansm.style.displaynone,m+1},HTextElement.prototype.renderInnerContentfunction(){var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute(viewBox,-this.finalTransform.mProp.p.v0+ +-this.finalTransform.mProp.p.v1+ +this.compW+ +this.compH),tthis.svgElement.style;var etranslate(+-this.finalTransform.mProp.p.v0+px,+-this.finalTransform.mProp.p.v1+px);t.transforme,t.webkitTransforme}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,i,s,a,n,o0,hthis.textAnimator.renderedLetters,lthis.textProperty.currentData.l;for(il.length,r0;ri;r+1)lr.n?o+1:(athis.textSpansr,nthis.textPathsr,sho,o+1,s._mdf.m&&(this.isMasked?a.setAttribute(transform,s.m):(a.style.webkitTransforms.m,a.style.transforms.m)),a.style.opacitys.o,s.sw&&s._mdf.sw&&n.setAttribute(stroke-width,s.sw),s.sc&&s._mdf.sc&&n.setAttribute(stroke,s.sc),s.fc&&s._mdf.fc&&(n.setAttribute(fill,s.fc),n.style.colors.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var pthis.innerElem.getBBox();if(this.currentBBox.w!p.width&&(this.currentBBox.wp.width,this.svgElement.setAttribute(width,p.width)),this.currentBBox.h!p.height&&(this.currentBBox.hp.height,this.svgElement.setAttribute(height,p.height)),this.currentBBox.w!p.width+2||this.currentBBox.h!p.height+2||this.currentBBox.x!p.x-1||this.currentBBox.y!p.y-1){this.currentBBox.wp.width+2,this.currentBBox.hp.height+2,this.currentBBox.xp.x-1,this.currentBBox.yp.y-1,this.svgElement.setAttribute(viewBox,this.currentBBox.x+ +this.currentBBox.y+ +this.currentBBox.w+ +this.currentBBox.h),tthis.svgElement.style;var ctranslate(+this.currentBBox.x+px,+this.currentBBox.y+px);t.transformc,t.webkitTransformc}}}},extendPrototype(BaseElement,FrameElement,HierarchyElement,HCameraElement),HCameraElement.prototype.setupfunction(){var t,e,r,i,sthis.comp.threeDElements.length;for(t0;ts;t+1)if(3d(ethis.comp.threeDElementst).type){re.perspectiveElem.style,ie.container.style;var athis.pe.v+px,n0px 0px 0px,omatrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);r.perspectivea,r.webkitPerspectivea,i.transformOriginn,i.mozTransformOriginn,i.webkitTransformOriginn,r.transformo,r.webkitTransformo}},HCameraElement.prototype.createElementsfunction(){},HCameraElement.prototype.hidefunction(){},HCameraElement.prototype.renderFramefunction(){var t,e,rthis._isFirstFrame;if(this.hierarchy)for(ethis.hierarchy.length,t0;te;t+1)rthis.hierarchyt.finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(tethis.hierarchy.length-1;t>0;t-1){var ithis.hierarchyt.finalTransform.mProp;this.mat.translate(-i.p.v0,-i.p.v1,i.p.v2),this.mat.rotateX(-i.or.v0).rotateY(-i.or.v1).rotateZ(i.or.v2),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v0,1/i.s.v1,1/i.s.v2),this.mat.translate(i.a.v0,i.a.v1,i.a.v2)}if(this.p?this.mat.translate(-this.p.v0,-this.p.v1,this.p.v2):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;sthis.p?this.p.v0-this.a.v0,this.p.v1-this.a.v1,this.p.v2-this.a.v2:this.px.v-this.a.v0,this.py.v-this.a.v1,this.pz.v-this.a.v2;var aMath.sqrt(Math.pow(s0,2)+Math.pow(s1,2)+Math.pow(s2,2)),ns0/a,s1/a,s2/a,oMath.sqrt(n2*n2+n0*n0),hMath.atan2(n1,o),lMath.atan2(n0,-n2);this.mat.rotateY(l).rotateX(-h)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v0).rotateY(-this.or.v1).rotateZ(this.or.v2),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){var c,f,d;for(ethis.comp.threeDElements.length,t0;te;t+1)if(3d(cthis.comp.threeDElementst).type){if(p){var uthis.mat.toCSS();(dc.container.style).transformu,d.webkitTransformu}this.pe._mdf&&((fc.perspectiveElem.style).perspectivethis.pe.v+px,f.webkitPerspectivethis.pe.v+px)}this.mat.clone(this._prevMat)}}this._isFirstFrame!1},HCameraElement.prototype.prepareFramefunction(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroyfunction(){},HCameraElement.prototype.getBaseElementfunction(){return null},extendPrototype(BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement,HImageElement),HImageElement.prototype.createContentfunction(){var tthis.globalData.getAssetsPath(this.assetData),enew Image;this.data.hasMask?(this.imageElemcreateNS(image),this.imageElem.setAttribute(width,this.assetData.w+px),this.imageElem.setAttribute(height,this.assetData.h+px),this.imageElem.setAttributeNS(http://www.w3.org/1999/xlink,href,t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute(width,this.assetData.w),this.baseElement.setAttribute(height,this.assetData.h)):this.layerElement.appendChild(e),e.crossOriginanonymous,e.srct,this.data.ln&&this.baseElement.setAttribute(id,this.data.ln)},extendPrototype(BaseRenderer,HybridRendererBase),HybridRendererBase.prototype.buildItemSVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElementsfunction(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPosfunction(t,e){var rt.getBaseElement();if(r){var ithis.layerse;if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var s,a,n0;ne;)this.elementsn&&!0!this.elementsn&&this.elementsn.getBaseElement&&(athis.elementsn,s(this.layersn.ddd?this.getThreeDContainerByPos(n):a.getBaseElement())||s),n+1;s?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,s):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShapefunction(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createTextfunction(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamerafunction(t){return this.cameranew HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImagefunction(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolidfunction(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNullSVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPosfunction(t){for(var e0,rthis.threeDElements.length;er;){if(this.threeDElementse.startPost&&this.threeDElementse.endPos>t)return this.threeDElementse.perspectiveElem;e+1}return null},HybridRendererBase.prototype.createThreeDContainerfunction(t,e){var r,i,screateTag(div);styleDiv(s);var acreateTag(div);if(styleDiv(a),3de){(rs.style).widththis.globalData.compSize.w+px,r.heightthis.globalData.compSize.h+px;var n50% 50%;r.webkitTransformOriginn,r.mozTransformOriginn,r.transformOriginn;var omatrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);(ia.style).transformo,i.webkitTransformo}s.appendChild(a);var h{container:a,perspectiveElem:s,startPos:t,endPos:t,type:e};return this.threeDElements.push(h),h},HybridRendererBase.prototype.build3dContainersfunction(){var t,e,rthis.layers.length,i;for(t0;tr;t+1)this.layerst.ddd&&3!this.layerst.ty?(3d!i&&(i3d,ethis.createThreeDContainer(t,3d)),e.endPosMath.max(e.endPos,t)):(2d!i&&(i2d,ethis.createThreeDContainer(t,2d)),e.endPosMath.max(e.endPos,t));for(t(rthis.threeDElements.length)-1;t>0;t-1)this.resizerElem.appendChild(this.threeDElementst.perspectiveElem)},HybridRendererBase.prototype.addTo3dContainerfunction(t,e){for(var r0,ithis.threeDElements.length;ri;){if(ethis.threeDElementsr.endPos){for(var s,athis.threeDElementsr.startPos;ae;)this.elementsa&&this.elementsa.getBaseElement&&(sthis.elementsa.getBaseElement()),a+1;s?this.threeDElementsr.container.insertBefore(t,s):this.threeDElementsr.container.appendChild(t);break}r+1}},HybridRendererBase.prototype.configAnimationfunction(t){var ecreateTag(div),rthis.animationItem.wrapper,ie.style;i.widtht.w+px,i.heightt.h+px,this.resizerEleme,styleDiv(e),i.transformStyleflat,i.mozTransformStyleflat,i.webkitTransformStyleflat,this.renderConfig.className&&e.setAttribute(class,this.renderConfig.className),r.appendChild(e),i.overflowhidden;var screateNS(svg);s.setAttribute(width,1),s.setAttribute(height,1),styleDiv(s),this.resizerElem.appendChild(s);var acreateNS(defs);s.appendChild(a),this.datat,this.setupGlobalData(t,s),this.globalData.defsa,this.layerst.layers,this.layerElementthis.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroyfunction(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText),this.animationItem.containernull,this.globalData.defsnull;var ethis.layers?this.layers.length:0;for(t0;te;t+1)this.elementst.destroy();this.elements.length0,this.destroyed!0,this.animationItemnull},HybridRendererBase.prototype.updateContainerSizefunction(){var t,e,r,i,sthis.animationItem.wrapper.offsetWidth,athis.animationItem.wrapper.offsetHeight,ns/a;this.globalData.compSize.w/this.globalData.compSize.h>n?(ts/this.globalData.compSize.w,es/this.globalData.compSize.w,r0,i(a-this.globalData.compSize.h*(s/this.globalData.compSize.w))/2):(ta/this.globalData.compSize.h,ea/this.globalData.compSize.h,r(s-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,i0);var othis.resizerElem.style;o.webkitTransformmatrix3d(+t+,0,0,0,0,+e+,0,0,0,0,1,0,+r+,+i+,0,1),o.transformo.webkitTransform},HybridRendererBase.prototype.renderFrameSVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hidefunction(){this.resizerElem.style.displaynone},HybridRendererBase.prototype.showfunction(){this.resizerElem.style.displayblock},HybridRendererBase.prototype.initItemsfunction(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,ethis.globalData.compSize.w,rthis.globalData.compSize.h,ithis.threeDElements.length;for(t0;ti;t+1){var sthis.threeDElementst.perspectiveElem.style;s.webkitPerspectiveMath.sqrt(Math.pow(e,2)+Math.pow(r,2))+px,s.perspectives.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositionsfunction(t){var e,rt.length,icreateTag(div);for(e0;er;e+1)if(te.xt){var sthis.createComp(te,i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},extendPrototype(HybridRendererBase,ICompElement,HBaseElement,HCompElement),HCompElement.prototype._createBaseContainerElementsHCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElementsfunction(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute(width,this.data.w),this.svgElement.setAttribute(height,this.data.h),this.transformedElementthis.baseElement):this.transformedElementthis.layerElement},HCompElement.prototype.addTo3dContainerfunction(t,e){for(var r,i0;ie;)this.elementsi&&this.elementsi.getBaseElement&&(rthis.elementsi.getBaseElement()),i+1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},HCompElement.prototype.createCompfunction(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype(HybridRendererBase,HybridRenderer),HybridRenderer.prototype.createCompfunction(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterfacefunction(t){function e(e){for(var r0,it.layers.length;ri;){if(t.layersr.nme||t.layersr.inde)return t.elementsr.layerInterface;r+1}return null}return Object.defineProperty(e,_name,{value:t.data.nm}),e.layere,e.pixelAspect1,e.heightt.data.h||t.globalData.compSize.h,e.widtht.data.w||t.globalData.compSize.w,e.pixelAspect1,e.frameDuration1/t.globalData.frameRate,e.displayStartTime0,e.numLayerst.layers.length,e},Expressionsfunction(){var t{initExpressions:function(t){var e0,r;t.renderer.compInterfaceCompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpressionfunction(){e+1},t.renderer.globalData.popExpressionfunction(){0(e-1)&&function(){var t,er.length;for(t0;te;t+1)rt.release();r.length0}()},t.renderer.globalData.registerExpressionPropertyfunction(t){-1r.indexOf(t)&&r.push(t)}}};return t}(),MaskManagerInterfacefunction(){function t(t,e){this._maskt,this._datae}return Object.defineProperty(t.prototype,maskPath,{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,maskOpacity,{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var r,icreateSizedArray(e.viewData.length),se.viewData.length;for(r0;rs;r+1)irnew t(e.viewDatar,e.masksPropertiesr);return function(t){for(r0;rs;){if(e.masksPropertiesr.nmt)return ir;r+1}return null}}}(),ExpressionPropertyInterfacefunction(){var t{pv:0,v:0,mult:1},e{pv:0,0,0,v:0,0,0,mult:1};function r(t,e,r){Object.defineProperty(t,velocity,{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeyse.keyframes?e.keyframes.length:0,t.keyfunction(i){if(!t.numKeys)return 0;var s;ssin e.keyframesi-1?e.keyframesi-1.s:ein e.keyframesi-2?e.keyframesi-2.e:e.keyframesi-2.s;var aunidimensionalr?new Number(s):Object.assign({},s);return a.timee.keyframesi-1.t/e.elem.comp.globalData.frameRate,a.valueunidimensionalr?s0:s,a},t.valueAtTimee.getValueAtTime,t.speedAtTimee.getSpeedAtTime,t.velocityAtTimee.getVelocityAtTime,t.propertyGroupe.propertyGroup}function i(){return t}return function(s){return s?unidimensionals.propType?function(e){e&&pvin e||(et);var i1/e.mult,se.pv*i,anew Number(s);return a.values,r(a,e,unidimensional),function(){return e.k&&e.getValue(),se.v*i,a.value!s&&((anew Number(s)).values,r(a,e,unidimensional)),a}}(s):function(t){t&&pvin t||(te);var i1/t.mult,st.data&&t.data.l||t.pv.length,acreateTypedArray(float32,s),ncreateTypedArray(float32,s);return a.valuen,r(a,t,multidimensional),function(){t.k&&t.getValue();for(var e0;es;e+1)net.ve*i,aene;return a}}(s):i}}(),TransformExpressionInterfacefunction(t){function e(t){switch(t){casescale:caseScale:caseADBE Scale:case 6:return e.scale;caserotation:caseRotation:caseADBE Rotation:caseADBE Rotate Z:case 10:return e.rotation;caseADBE Rotate X:return e.xRotation;caseADBE Rotate Y:return e.yRotation;caseposition:casePosition:caseADBE Position:case 2:return e.position;caseADBE Position_0:return e.xPosition;caseADBE Position_1:return e.yPosition;caseADBE Position_2:return e.zPosition;caseanchorPoint:caseAnchorPoint:caseAnchor Point:caseADBE AnchorPoint:case 1:return e.anchorPoint;caseopacity:caseOpacity:case 11:return e.opacity;default:return null}}var r,i,s,a;return Object.defineProperty(e,rotation,{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,zRotation,{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,xRotation,{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,yRotation,{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,scale,{get:ExpressionPropertyInterface(t.s)}),t.p?aExpressionPropertyInterface(t.p):(rExpressionPropertyInterface(t.px),iExpressionPropertyInterface(t.py),t.pz&&(sExpressionPropertyInterface(t.pz))),Object.defineProperty(e,position,{get:function(){return t.p?a():r(),i(),s?s():0}}),Object.defineProperty(e,xPosition,{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,yPosition,{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,zPosition,{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,anchorPoint,{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,opacity,{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,skew,{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,skewAxis,{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,orientation,{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterfacefunction(){function t(t){var enew Matrix;return void 0!t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var rthis.getMatrix(e);return r.props120,r.props130,r.props140,this.applyPoint(r,t)}function r(t,e){var rthis.getMatrix(e);return this.applyPoint(r,t)}function i(t,e){var rthis.getMatrix(e);return r.props120,r.props130,r.props140,this.invertPoint(r,t)}function s(t,e){var rthis.getMatrix(e);return this.invertPoint(r,t)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,ithis._elem.hierarchy.length;for(r0;ri;r+1)this._elem.hierarchyr.finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e0,e1,e2||0)}function n(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,ithis._elem.hierarchy.length;for(r0;ri;r+1)this._elem.hierarchyr.finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function o(t){var enew Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var r,ithis._elem.hierarchy.length;for(r0;ri;r+1)this._elem.hierarchyr.finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function h(){return1,1,1,1}return function(l){var p;function c(t){switch(t){caseADBE Root Vectors Group:caseContents:case 2:return c.shapeInterface;case 1:case 6:caseTransform:casetransform:caseADBE Transform Group:return p;case 4:caseADBE Effect Parade:caseeffects:caseEffects:return c.effect;caseADBE Text Properties:return c.textInterface;default:return null}}c.getMatrixt,c.invertPointn,c.applyPointa,c.toWorldr,c.toWorldVece,c.fromWorlds,c.fromWorldVeci,c.toCompr,c.fromCompo,c.sampleImageh,c.sourceRectAtTimel.sourceRectAtTime.bind(l),c._eleml;var fgetDescriptor(pTransformExpressionInterface(l.finalTransform.mProp),anchorPoint);return Object.defineProperties(c,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy0.layerInterface}},rotation:getDescriptor(p,rotation),scale:getDescriptor(p,scale),position:getDescriptor(p,position),opacity:getDescriptor(p,opacity),anchorPoint:f,anchor_point:f,transform:{get:function(){return p}},active:{get:function(){return l.isInRange}}}),c.startTimel.data.st,c.indexl.data.ind,c.sourcel.data.refId,c.height0l.data.ty?l.data.h:100,c.width0l.data.ty?l.data.w:100,c.inPointl.data.ip/l.comp.globalData.frameRate,c.outPointl.data.op/l.comp.globalData.frameRate,c._namel.data.nm,c.registerMaskInterfacefunction(t){c.masknew MaskManagerInterface(t,l)},c.registerEffectsInterfacefunction(t){c.effectt},c}}(),propertyGroupFactoryfunction(t,e){return function(r){return(rvoid 0r?1:r)0?t:e(r-1)}},PropertyInterfacefunction(t,e){var r{_name:t};return function(t){return(tvoid 0t?1:t)0?r:e(t-1)}},EffectsExpressionInterfacefunction(){var t{createEffectsInterface:function(t,r){if(t.effectsManager){var i,s,at.data.ef,nt.effectsManager.effectElements.length;for(i0;in;i+1)s.push(e(ai,t.effectsManager.effectElementsi,r,t));var ot.data.ef||,hfunction(t){for(i0,no.length;in;){if(toi.nm||toi.mn||toi.ix)return si;i+1}return null};return Object.defineProperty(h,numProperties,{get:function(){return o.length}}),h}return null}};function e(t,i,s,a){function n(e){for(var rt.ef,i0,sr.length;is;){if(eri.nm||eri.mn||eri.ix)return 5ri.ty?li:li();i+1}throw new Error}var o,hpropertyGroupFactory(n,s),l,pt.ef.length;for(o0;op;o+1)5t.efo.ty?l.push(e(t.efo,i.effectElementso,i.effectElementso.propertyGroup,a)):l.push(r(i.effectElementso,t.efo.ty,a,h));returnADBE Color Controlt.mn&&Object.defineProperty(n,color,{get:function(){return l0()}}),Object.defineProperties(n,{numProperties:{get:function(){return t.np}},_name:{value:t.nm},propertyGroup:{value:h}}),n.enabled0!t.en,n.activen.enabled,n}function r(t,e,r,i){var sExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface(,i)),function(){return 10e?r.comp.compInterface(t.p.v):s()}}return t}(),ShapePathInterfacefunction(t,e,r){var ie.sh;function s(t){returnShapet||shapet||Patht||patht||ADBE Vector Shapet||2t?s.path:null}var apropertyGroupFactory(s,r);return i.setGroupProperty(PropertyInterface(Path,a)),Object.defineProperties(s,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),s},ShapeExpressionInterfacefunction(){function t(t,n,f){var d,u,mt?t.length:0;for(d0;dm;d+1)grtd.ty?u.push(e(td,nd,f)):fltd.ty?u.push(r(td,nd,f)):sttd.ty?u.push(s(td,nd,f)):tmtd.ty?u.push(a(td,nd,f)):trtd.ty||(eltd.ty?u.push(o(td,nd,f)):srtd.ty?u.push(h(td,nd,f)):shtd.ty?u.push(ShapePathInterface(td,nd,f)):rctd.ty?u.push(l(td,nd,f)):rdtd.ty?u.push(p(td,nd,f)):rptd.ty?u.push(c(td,nd,f)):gftd.ty?u.push(i(td,nd,f)):u.push((td,nd,function(){return null})));return u}function e(e,r,i){var sfunction(t){switch(t){caseADBE Vectors Group:caseContents:case 2:return s.content;default:return s.transform}};s.propertyGrouppropertyGroupFactory(s,i);var afunction(e,r,i){var s,afunction(t){for(var e0,rs.length;er;){if(se._namet||se.mnt||se.propertyIndext||se.ixt||se.indt)return se;e+1}returnnumbertypeof t?st-1:null};a.propertyGrouppropertyGroupFactory(a,i),st(e.it,r.it,a.propertyGroup),a.numPropertiess.length;var on(e.ite.it.length-1,r.itr.it.length-1,a.propertyGroup);return a.transformo,a.propertyIndexe.cix,a._namee.nm,a}(e,r,s.propertyGroup),on(e.ite.it.length-1,r.itr.it.length-1,s.propertyGroup);return s.contenta,s.transformo,Object.defineProperty(s,_name,{get:function(){return e.nm}}),s.numPropertiese.np,s.propertyIndexe.ix,s.nme.nm,s.mne.mn,s}function r(t,e,r){function i(t){returnColort||colort?i.color:Opacityt||opacityt?i.opacity:null}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface(Color,r)),e.o.setGroupProperty(PropertyInterface(Opacity,r)),i}function i(t,e,r){function i(t){returnStart Pointt||start pointt?i.startPoint:End Pointt||end pointt?i.endPoint:Opacityt||opacityt?i.opacity:null}return Object.defineProperties(i,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){returna}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface(Start Point,r)),e.e.setGroupProperty(PropertyInterface(End Point,r)),e.o.setGroupProperty(PropertyInterface(Opacity,r)),i}function s(t,e,r){var i,spropertyGroupFactory(l,r),apropertyGroupFactory(h,s);function n(r){Object.defineProperty(h,t.dr.nm,{get:ExpressionPropertyInterface(e.d.dataPropsr.p)})}var ot.d?t.d.length:0,h{};for(i0;io;i+1)n(i),e.d.dataPropsi.p.setGroupProperty(a);function l(t){returnColort||colort?l.color:Opacityt||opacityt?l.opacity:Stroke Widtht||stroke widtht?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return h}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface(Color,s)),e.o.setGroupProperty(PropertyInterface(Opacity,s)),e.w.setGroupProperty(PropertyInterface(Stroke Width,s)),l}function a(t,e,r){function i(e){return et.e.ix||Ende||ende?i.end:et.s.ix?i.start:et.o.ix?i.offset:null}var spropertyGroupFactory(i,r);return i.propertyIndext.ix,e.s.setGroupProperty(PropertyInterface(Start,s)),e.e.setGroupProperty(PropertyInterface(End,s)),e.o.setGroupProperty(PropertyInterface(Offset,s)),i.propertyIndext.ix,i.propertyGroupr,Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),i.mnt.mn,i}function n(t,e,r){function i(e){return t.a.ixe||Anchor Pointe?i.anchorPoint:t.o.ixe||Opacitye?i.opacity:t.p.ixe||Positione?i.position:t.r.ixe||Rotatione||ADBE Vector Rotatione?i.rotation:t.s.ixe||Scalee?i.scale:t.sk&&t.sk.ixe||Skewe?i.skew:t.sa&&t.sa.ixe||Skew Axise?i.skewAxis:null}var spropertyGroupFactory(i,r);return e.transform.mProps.o.setGroupProperty(PropertyInterface(Opacity,s)),e.transform.mProps.p.setGroupProperty(PropertyInterface(Position,s)),e.transform.mProps.a.setGroupProperty(PropertyInterface(Anchor Point,s)),e.transform.mProps.s.setGroupProperty(PropertyInterface(Scale,s)),e.transform.mProps.r.setGroupProperty(PropertyInterface(Rotation,s)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface(Skew,s)),e.transform.mProps.sa.setGroupProperty(PropertyInterface(Skew Angle,s))),e.transform.op.setGroupProperty(PropertyInterface(Opacity,s)),Object.defineProperties(i,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),i.tytr,i.mnt.mn,i.propertyGroupr,i}function o(t,e,r){function i(e){return t.p.ixe?i.position:t.s.ixe?i.size:null}var spropertyGroupFactory(i,r);i.propertyIndext.ix;var atme.sh.ty?e.sh.prop:e.sh;return a.s.setGroupProperty(PropertyInterface(Size,s)),a.p.setGroupProperty(PropertyInterface(Position,s)),Object.defineProperties(i,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:t.nm}}),i.mnt.mn,i}function h(t,e,r){function i(e){return t.p.ixe?i.position:t.r.ixe?i.rotation:t.pt.ixe?i.points:t.or.ixe||ADBE Vector Star Outer Radiuse?i.outerRadius:t.os.ixe?i.outerRoundness:!t.ir||t.ir.ix!e&&ADBE Vector Star Inner Radius!e?t.is&&t.is.ixe?i.innerRoundness:null:i.innerRadius}var spropertyGroupFactory(i,r),atme.sh.ty?e.sh.prop:e.sh;return i.propertyIndext.ix,a.or.setGroupProperty(PropertyInterface(Outer Radius,s)),a.os.setGroupProperty(PropertyInterface(Outer Roundness,s)),a.pt.setGroupProperty(PropertyInterface(Points,s)),a.p.setGroupProperty(PropertyInterface(Position,s)),a.r.setGroupProperty(PropertyInterface(Rotation,s)),t.ir&&(a.ir.setGroupProperty(PropertyInterface(Inner Radius,s)),a.is.setGroupProperty(PropertyInterface(Inner Roundness,s))),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:t.nm}}),i.mnt.mn,i}function l(t,e,r){function i(e){return t.p.ixe?i.position:t.r.ixe?i.roundness:t.s.ixe||Sizee||ADBE Vector Rect Sizee?i.size:null}var spropertyGroupFactory(i,r),atme.sh.ty?e.sh.prop:e.sh;return i.propertyIndext.ix,a.p.setGroupProperty(PropertyInterface(Position,s)),a.s.setGroupProperty(PropertyInterface(Size,s)),a.r.setGroupProperty(PropertyInterface(Rotation,s)),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:t.nm}}),i.mnt.mn,i}function p(t,e,r){function i(e){return t.r.ixe||Round Corners 1e?i.radius:null}var spropertyGroupFactory(i,r),ae;return i.propertyIndext.ix,a.rd.setGroupProperty(PropertyInterface(Radius,s)),Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:t.nm}}),i.mnt.mn,i}function c(t,e,r){function i(e){return t.c.ixe||Copiese?i.copies:t.o.ixe||Offsete?i.offset:null}var spropertyGroupFactory(i,r),ae;return i.propertyIndext.ix,a.c.setGroupProperty(PropertyInterface(Copies,s)),a.o.setGroupProperty(PropertyInterface(Offset,s)),Object.defineProperties(i,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:t.nm}}),i.mnt.mn,i}return function(e,r,i){var s;function a(t){if(numbertypeof t)return 0(tvoid 0t?1:t)?i:st-1;for(var e0,rs.length;er;){if(se._namet)return se;e+1}return null}return a.propertyGrouppropertyGroupFactory(a,(function(){return i})),st(e,r,a.propertyGroup),a.numPropertiess.length,a._nameContents,a}}(),TextExpressionInterfacefunction(t){var e,r;function i(t){returnADBE Text Documentt?i.sourceText:null}return Object.defineProperty(i,sourceText,{get:function(){t.textProperty.getValue();var it.textProperty.currentData.t;return i!e&&(t.textProperty.currentData.te,(rnew String(i)).valuei||new String(i)),r}}),i};function _typeof$2(t){return _typeof$2functiontypeof Symbol&&symboltypeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&functiontypeof Symbol&&t.constructorSymbol&&t!Symbol.prototype?symbol:typeof t},_typeof$2(t)}var FootageInterface(dataInterfaceFactoryfunction(t){function e(t){returnOutlinet?e.outlineInterface():null}return e._nameOutline,e.outlineInterfacefunction(t){var e,rt.getFootageData();function i(t){if(rt)return et,object_typeof$2(rrt)?i:r;var st.indexOf(e);if(-1!s){var aparseInt(t.substr(s+e.length),10);returnobject_typeof$2(rra)?i:r}return}return function(){return e,rt.getFootageData(),i}}(t),e},function(t){function e(t){returnDatat?e.dataInterface:null}return e._nameData,e.dataInterfacedataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces{layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfacest||null}function _typeof$1(t){return _typeof$1functiontypeof Symbol&&symboltypeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&functiontypeof Symbol&&t.constructorSymbol&&t!Symbol.prototype?symbol:typeof t},_typeof$1(t)}function seedRandom(t,e){var rthis,i256,se.pow(i,6),ae.pow(2,52),n2*a,o255;function h(t){var e,rt.length,sthis,a0,ns.is.j0,hs.S;for(r||(tr++);ai;)haa++;for(a0;ai;a++)hahno&n+ta%r+(eha),hne;s.gfunction(t){for(var e,r0,as.i,ns.j,hs.S;t--;)ehao&a+1,rr*i+ho&(hahno&n+e)+(hne);return s.ia,s.jn,r}}function l(t,e){return e.it.i,e.jt.j,e.St.S.slice(),e}function p(t,e){var r,i,s_typeof$1(t);if(e&&objects)for(r in t)try{i.push(p(tr,e-1))}catch(t){}return i.length?i:strings?t:t+\0}function c(t,e){for(var r,it+,s0;si.length;)eo&so&(r^19*eo&s)+i.charCodeAt(s++);return f(e)}function f(t){return String.fromCharCode.apply(0,t)}e.seedrandomfunction(o,d,u){var m,yc(p((d!0d?{entropy:!0}:d||{}).entropy?o,f(t):nullo?function(){try{var enew Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(e),f(e)}catch(e){var sr.navigator,as&&s.plugins;return+new Date,r,a,r.screen,f(t)}}():o,3),m),gnew h(m),vfunction(){for(var tg.g(6),es,r0;ta;)t(t+r)*i,e*i,rg.g(1);for(;t>n;)t/2,e/2,r>>>1;return(t+r)/e};return v.int32function(){return 0|g.g(4)},v.quickfunction(){return g.g(4)/4294967296},v.doublev,c(f(g.S),t),(d.pass||u||function(t,r,i,s){return s&&(s.S&&l(s,g),t.statefunction(){return l(g,{})}),i?(e.randomt,r):t})(v,y,globalin d?d.global:thise,d.state)},c(e.random(),t)}function initialize$2(t){seedRandom(,t)}var propTypes{SHAPE:shape};function _typeof(t){return _typeoffunctiontypeof Symbol&&symboltypeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&functiontypeof Symbol&&t.constructorSymbol&&t!Symbol.prototype?symbol:typeof t},_typeof(t)}var ExpressionManagerfunction(){var ob{},MathBMMath,windownull,documentnull,XMLHttpRequestnull,fetchnull,framesnull;function $bm_isInstanceOfArray(t){return t.constructorArray||t.constructorFloat32Array}function isNumerable(t,e){returnnumbert||booleant||stringt||e instanceof Number}function $bm_neg(t){var e_typeof(t);if(numbere||booleane||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,it.length,s;for(r0;ri;r+1)sr-tr;return s}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBezBezierFactory.getBezierEasing(.333,0,.833,.833,easeIn).get,easeOutBezBezierFactory.getBezierEasing(.167,.167,.667,1,easeOut).get,easeInOutBezBezierFactory.getBezierEasing(.33,0,.667,1,easeInOut).get;function sum(t,e){var r_typeof(t),i_typeof(e);if(stringr||stringi)return t+e;if(isNumerable(r,t)&&isNumerable(i,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(tt.slice(0))0+e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(ee.slice(0))0t+e0,e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s0,at.length,ne.length,o;sa||sn;)(numbertypeof ts||tsinstanceof Number)&&(numbertypeof es||esinstanceof Number)?osts+es:osvoid 0es?ts:ts||es,s+1;return o}return 0}var addsum;function sub(t,e){var r_typeof(t),i_typeof(e);if(isNumerable(r,t)&&isNumerable(i,e))returnstringr&&(tparseInt(t,10)),stringi&&(eparseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(tt.slice(0))0-e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(ee.slice(0))0t-e0,e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s0,at.length,ne.length,o;sa||sn;)(numbertypeof ts||tsinstanceof Number)&&(numbertypeof es||esinstanceof Number)?osts-es:osvoid 0es?ts:ts||es,s+1;return o}return 0}function mul(t,e){var r,i,s,a_typeof(t),n_typeof(e);if(isNumerable(a,t)&&isNumerable(n,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(st.length,rcreateTypedArray(float32,s),i0;is;i+1)riti*e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(se.length,rcreateTypedArray(float32,s),i0;is;i+1)rit*ei;return r}return 0}function div(t,e){var r,i,s,a_typeof(t),n_typeof(e);if(isNumerable(a,t)&&isNumerable(n,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(st.length,rcreateTypedArray(float32,s),i0;is;i+1)riti/e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(se.length,rcreateTypedArray(float32,s),i0;is;i+1)rit/ei;return r}return 0}function mod(t,e){returnstringtypeof t&&(tparseInt(t,10)),stringtypeof e&&(eparseInt(e,10)),t%e}var $bm_sumsum,$bm_subsub,$bm_mulmul,$bm_divdiv,$bm_modmod;function clamp(t,e,r){if(e>r){var ir;re,ei}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degreesradiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radiansradiansToDegrees,helperLengthArray0,0,0,0,0,0;function length(t,e){if(numbertypeof t||t instanceof Number)return ee||0,Math.abs(t-e);var r;e||(ehelperLengthArray);var iMath.min(t.length,e.length),s0;for(r0;ri;r+1)s+Math.pow(er-tr,2);return Math.sqrt(s)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,it0,st1,at2,nMath.max(i,s,a),oMath.min(i,s,a),h(n+o)/2;if(no)e0,r0;else{var ln-o;switch(rh>.5?l/(2-n-o):l/(n+o),n){case i:e(s-a)/l+(sa?6:0);break;case s:e(a-i)/l+2;break;case a:e(i-s)/l+4}e/6}returne,r,h,t3}function hue2rgb(t,e,r){return r0&&(r+1),r>1&&(r-1),r1/6?t+6*(e-t)*r:r.5?e:r2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,st0,at1,nt2;if(0a)en,in,rn;else{var on.5?n*(1+a):n+a-n*a,h2*n-o;ehue2rgb(h,o,s+1/3),rhue2rgb(h,o,s),ihue2rgb(h,o,s-1/3)}returne,r,i,t3}function linear(t,e,r,i,s){if(void 0!i&&void 0!s||(ie,sr,e0,r1),re){var ar;re,ea}if(te)return i;if(t>r)return s;var n,ore?0:(t-e)/(r-e);if(!i.length)return i+(s-i)*o;var hi.length,lcreateTypedArray(float32,h);for(n0;nh;n+1)lnin+(sn-in)*o;return l}function random(t,e){if(void 0e&&(void 0t?(t0,e1):(et,tvoid 0)),e.length){var r,ie.length;t||(tcreateTypedArray(float32,i));var screateTypedArray(float32,i),aBMMath.random();for(r0;ri;r+1)srtr+a*(er-tr);return s}return void 0t&&(t0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var s,at.length,nshapePool.newElement();n.setPathData(!!i,a);var o,h,l0,0;for(s0;sa;s+1)oe&&es?es:l,hr&&rs?rs:l,n.setTripleAt(ts0,ts1,h0+ts0,h1+ts1,o0+ts0,o1+ts1,s,!0);return n}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var valdata.x,needsVelocity/velocity(?!\w\d)/.test(val),_needsRandom-1!val.indexOf(random),elemTypeelem.data.ty,transform,$bm_transform,content,effect,thisPropertyproperty;thisProperty.valueAtTimethisProperty.getValueAtTime,Object.defineProperty(thisProperty,value,{get:function(){return thisProperty.v}}),elem.comp.frameDuration1/elem.comp.globalData.frameRate,elem.comp.displayStartTime0;var inPointelem.data.ip/elem.comp.globalData.frameRate,outPointelem.data.op/elem.comp.globalData.frameRate,widthelem.data.sw?elem.data.sw:0,heightelem.data.sh?elem.data.sh:0,nameelem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_functioneval(function _expression_function(){+val+;scoped_bm_rt$bm_rt})0,numKeysproperty.kf?data.k.length:0,active!this.data||!0!this.data.hd,wigglefunction(t,e){var r,i,sthis.pv.length?this.pv.length:1,acreateTypedArray(float32,s),nMath.floor(5*time);for(r0,i0;rn;){for(i0;is;i+1)ai+-e+2*e*BMMath.random();r+1}var o5*time,ho-Math.floor(o),lcreateTypedArray(float32,s);if(s>1){for(i0;is;i+1)lithis.pvi+ai+(-e+2*e*BMMath.random())*h;return l}return this.pv+a0+(-e+2*e*BMMath.random())*h}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopInthisProperty.loopIn.bind(thisProperty),loop_inloopIn),thisProperty.loopOut&&(loopOutthisProperty.loopOut.bind(thisProperty),loop_outloopOut),thisProperty.smooth&&(smooththisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTimethis.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTimethis.getVelocityAtTime.bind(this));var compelem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var re0-t0,e1-t1,e2-t2,iMath.atan2(r0,Math.sqrt(r1*r1+r2*r2))/degToRads;return-Math.atan2(r1,r2)/degToRads,i,0}function easeOut(t,e,r,i,s){return applyEase(easeOutBez,t,e,r,i,s)}function easeIn(t,e,r,i,s){return applyEase(easeInBez,t,e,r,i,s)}function ease(t,e,r,i,s){return applyEase(easeInOutBez,t,e,r,i,s)}function applyEase(t,e,r,i,s,a){void 0s?(sr,ai):e(e-r)/(i-r),e>1?e1:e0&&(e0);var nt(e);if($bm_isInstanceOfArray(s)){var o,hs.length,lcreateTypedArray(float32,h);for(o0;oh;o+1)lo(ao-so)*n+so;return l}return(a-s)*n+s}function nearestKey(t){var e,r,i,sdata.k.length;if(data.k.length&&number!typeof data.k0)if(r-1,(t*elem.comp.globalData.frameRate)data.k0.t)r1,idata.k0.t;else{for(e0;es-1;e+1){if(tdata.ke.t){re+1,idata.ke.t;break}if(t>data.ke.t&&tdata.ke+1.t){t-data.ke.t>data.ke+1.t-t?(re+2,idata.ke+1.t):(re+1,idata.ke.t);break}}-1r&&(re+1,idata.ke.t)}else r0,i0;var a{};return a.indexr,a.timei/elem.comp.globalData.frameRate,a}function key(t){var e,r,i;if(!data.k.length||numbertypeof data.k0)throw new Error(The property has no keyframe at index +t);t-1,e{time:data.kt.t/elem.comp.globalData.frameRate,value:};var sObject.prototype.hasOwnProperty.call(data.kt,s)?data.kt.s:data.kt-1.e;for(is.length,r0;ri;r+1)ersr,e.valuersr;return e}function framesToTime(t,e){return e||(eelem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0t||(ttime),e||(eelem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){returnstringtypeof value?void 0e?value.substring(t):value.substring(t,e):}function substr(t,e){returnstringtypeof value?void 0e?value.substr(t):value.substr(t,e):}function posterizeTime(t){time0t?0:Math.floor(time*t)/t,valuevalueAtTime(time)}var indexelem.data.ind,hasParent!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeedMath.floor(1e6*Math.random()),globalDataelem.globalData;function executeExpression(t){return valuet,this.frameExpressionIdelem.globalData.frameId&&textSelector!this.propType?value:(textSelectorthis.propType&&(textIndexthis.textIndex,textTotalthis.textTotal,selectorValuethis.selectorValue),thisLayer||(textelem.layerInterface.text,thisLayerelem.layerInterface,thisCompelem.comp.compInterface,toWorldthisLayer.toWorld.bind(thisLayer),fromWorldthisLayer.fromWorld.bind(thisLayer),fromCompthisLayer.fromComp.bind(thisLayer),toCompthisLayer.toComp.bind(thisLayer),maskthisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurfacefromComp),transform||(transformelem.layerInterface(ADBE Transform Group),$bm_transformtransform,transform&&(anchorPointtransform.anchorPoint)),4!elemType||content||(contentthisLayer(ADBE Root Vectors Group)),effect||(effectthisLayer(4)),(hasParent!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parentelem.hierarchy0.layerInterface),timethis.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocityvelocityAtTime(time)),expression_function(),this.frameExpressionIdelem.globalData.frameId,scoped_bm_rtscoped_bm_rt.propTypepropTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData,executeExpression}return ob.initiateExpressioninitiateExpression,ob.__preventDeadCodeRemovalwindow,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,ob}(),expressionHelpers{searchExpressions:function(t,e,r){e.x&&(r.k!0,r.x!0,r.initiateExpressionExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var ethis.getValueAtTime(t),rthis.getValueAtTime(t+-.01),i0;if(e.length){var s;for(s0;se.length;s+1)i+Math.pow(rs-es,2);i100*Math.sqrt(i)}else i0;return i},getVelocityAtTime:function(t){if(void 0!this.vel)return this.vel;var e,r,i-.001,sthis.getValueAtTime(t),athis.getValueAtTime(t+i);if(s.length)for(ecreateTypedArray(float32,s.length),r0;rs.length;r+1)er(ar-sr)/i;else e(a-s)/i;return e},getValueAtTime:function(t){return t*this.elem.globalData.frameRate,(t-this.offsetTime)!this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndexthis._cachingAtTime.lastFramet?this._cachingAtTime.lastIndex:0,this._cachingAtTime.valuethis.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFramet),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroupt}};function addPropertyDecorator(){function t(t,e,r){if(!this.k||!this.keyframes)return this.pv;tt?t.toLowerCase():;var i,s,a,n,o,hthis.comp.renderedFrame,lthis.keyframes,pll.length-1.t;if(hp)return this.pv;if(r?sp-(ie?Math.abs(p-this.elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>l.length-1)&&(el.length-1),ip-(sll.length-1-e.t)),pingpongt){if(Math.floor((h-s)/i)%2!0)return this.getValueAtTime((i-(h-s)%i+s)/this.comp.globalData.frameRate,0)}else{if(offsett){var cthis.getValueAtTime(s/this.comp.globalData.frameRate,0),fthis.getValueAtTime(p/this.comp.globalData.frameRate,0),dthis.getValueAtTime(((h-s)%i+s)/this.comp.globalData.frameRate,0),uMath.floor((h-s)/i);if(this.pv.length){for(n(onew Array(c.length)).length,a0;an;a+1)oa(fa-ca)*u+da;return o}return(f-c)*u+d}if(continuet){var mthis.getValueAtTime(p/this.comp.globalData.frameRate,0),ythis.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n(onew Array(m.length)).length,a0;an;a+1)oama+(ma-ya)*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return m+(h-p)/.001*(m-y)}}return this.getValueAtTime(((h-s)%i+s)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k)return this.pv;tt?t.toLowerCase():;var i,s,a,n,o,hthis.comp.renderedFrame,lthis.keyframes,pl0.t;if(h>p)return this.pv;if(r?sp+(ie?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):((!e||e>l.length-1)&&(el.length-1),i(sle.t)-p),pingpongt){if(Math.floor((p-h)/i)%20)return this.getValueAtTime(((p-h)%i+p)/this.comp.globalData.frameRate,0)}else{if(offsett){var cthis.getValueAtTime(p/this.comp.globalData.frameRate,0),fthis.getValueAtTime(s/this.comp.globalData.frameRate,0),dthis.getValueAtTime((i-(p-h)%i+p)/this.comp.globalData.frameRate,0),uMath.floor((p-h)/i)+1;if(this.pv.length){for(n(onew Array(c.length)).length,a0;an;a+1)oada-(fa-ca)*u;return o}return d-(f-c)*u}if(continuet){var mthis.getValueAtTime(p/this.comp.globalData.frameRate,0),ythis.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n(onew Array(m.length)).length,a0;an;a+1)oama+(ma-ya)*(p-h)/.001;return o}return m+(m-y)*(p-h)/.001}}return this.getValueAtTime((i-((p-h)%i+p))/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k)return this.pv;if(t.5*(t||.4),(eMath.floor(e||5))1)return this.pv;var r,i,sthis.comp.renderedFrame/this.comp.globalData.frameRate,as-t,ne>1?(s+t-a)/(e-1):1,o0,h0;for(rthis.pv.length?createTypedArray(float32,this.pv.length):0;oe;){if(ithis.getValueAtTime(a+o*n),this.pv.length)for(h0;hthis.pv.length;h+1)rh+ih;else r+i;o+1}if(this.pv.length)for(h0;hthis.pv.length;h+1)rh/e;else r/e;return r}function i(t){this._transformCachingAtTime||(this._transformCachingAtTime{v:new Matrix});var ethis._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations1){var rthis.a.getValueAtTime(t);e.translate(-r0*this.a.mult,-r1*this.a.mult,r2*this.a.mult)}if(this.appliedTransformations2){var ithis.s.getValueAtTime(t);e.scale(i0*this.s.mult,i1*this.s.mult,i2*this.s.mult)}if(this.sk&&this.appliedTransformations3){var sthis.sk.getValueAtTime(t),athis.sa.getValueAtTime(t);e.skewFromAxis(-s*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations4){var nthis.r.getValueAtTime(t);e.rotate(-n*this.r.mult)}else if(!this.r&&this.appliedTransformations4){var othis.rz.getValueAtTime(t),hthis.ry.getValueAtTime(t),lthis.rx.getValueAtTime(t),pthis.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(h*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-p2*this.or.mult).rotateY(p1*this.or.mult).rotateX(p0*this.or.mult)}if(this.data.p&&this.data.p.s){var cthis.px.getValueAtTime(t),fthis.py.getValueAtTime(t);if(this.data.p.z){var dthis.pz.getValueAtTime(t);e.translate(c*this.px.mult,f*this.py.mult,-d*this.pz.mult)}else e.translate(c*this.px.mult,f*this.py.mult,0)}else{var uthis.p.getValueAtTime(t);e.translate(u0*this.p.mult,u1*this.p.mult,-u2*this.p.mult)}return e}function s(){return this.v.clone(new Matrix)}var aTransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformPropertyfunction(t,e,r){var na(t,e,r);return n.dynamicProperties.length?n.getValueAtTimei.bind(n):n.getValueAtTimes.bind(n),n.setGroupPropertyexpressionHelpers.setGroupProperty,n};var nPropertyFactory.getProp;PropertyFactory.getPropfunction(i,s,a,o,h){var ln(i,s,a,o,h);l.kf?l.getValueAtTimeexpressionHelpers.getValueAtTime.bind(l):l.getValueAtTimeexpressionHelpers.getStaticValueAtTime.bind(l),l.setGroupPropertyexpressionHelpers.setGroupProperty,l.loopOutt,l.loopIne,l.smoothr,l.getVelocityAtTimeexpressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTimeexpressionHelpers.getSpeedAtTime.bind(l),l.numKeys1s.a?s.k.length:0,l.propertyIndexs.ix;var p0;return 0!a&&(pcreateTypedArray(float32,1s.a?s.k0.s.length:s.k.length)),l._cachingAtTime{lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(i,s,l),l.k&&h.addDynamicProperty(l),l};var oShapePropertyFactory.getConstructorFunction(),hShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.prototype{vertices:function(t,e){this.k&&this.getValue();var r,ithis.v;void 0!e&&(ithis.getValueAtTime(e,0));var si._length,ait,ni.v,ocreateSizedArray(s);for(r0;rs;r+1)orit||ot?ar0-nr0,ar1-nr1:ar0,ar1;return o},points:function(t){return this.vertices(v,t)},inTangents:function(t){return this.vertices(i,t)},outTangents:function(t){return this.vertices(o,t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var rthis.v;void 0!e&&(rthis.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLengthbez.getSegmentsLength(r));for(var i,sthis._segmentsLength,as.lengths,ns.totalLength*t,o0,ha.length,l0;oh;){if(l+ao.addedLength>n){var po,cr.c&&oh-1?0:o+1,f(n-l)/ao.addedLength;ibez.getPointInSegment(r.vp,r.vc,r.op,r.ic,f,ao);break}l+ao.addedLength,o+1}return i||(ir.c?r.v00,r.v01:r.vr._length-10,r.vr._length-11),i},vectorOnPath:function(t,e,r){1t?tthis.v.c:0t&&(t.999);var ithis.pointOnPath(t,e),sthis.pointOnPath(t+.001,e),as0-i0,ns1-i1,oMath.sqrt(Math.pow(a,2)+Math.pow(n,2));return 0o?0,0:tangentr?a/o,n/o:-n/o,a/o},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,tangent)},normalOnPath:function(t,e){return this.vectorOnPath(t,e,normal)},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype(l,o),extendPrototype(l,h),h.prototype.getValueAtTimefunction(t){return this._cachingAtTime||(this._cachingAtTime{shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*this.elem.globalData.frameRate,(t-this.offsetTime)!this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndexthis._cachingAtTime.lastTimet?this._caching.lastIndex:0,this._cachingAtTime.lastTimet,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},h.prototype.initiateExpressionExpressionManager.initiateExpression;var pShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapePropfunction(t,e,r,i,s){var ap(t,e,r,i,s);return a.propertyIndexe.ix,a.lock!1,3r?expressionHelpers.searchExpressions(t,e.pt,a):4r&&expressionHelpers.searchExpressions(t,e.ks,a),a.k&&t.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValuefunction(t,e){var rthis.calculateExpression(e);if(t.t!r){var i{};return this.copyData(i,t),i.tr.toString(),i.__complete!1,i}return t},TextProperty.prototype.searchPropertyfunction(){var tthis.searchKeyframes(),ethis.searchExpressions();return this.kft||e,this.kf},TextProperty.prototype.searchExpressionsfunction(){return this.data.d.x?(this.calculateExpressionExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(t,e,r,i,s){this.filterManagere;var acreateNS(feColorMatrix);a.setAttribute(type,matrix),a.setAttribute(color-interpolation-filters,linearRGB),a.setAttribute(values,0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0),a.setAttribute(result,i+_tint_1),t.appendChild(a),(acreateNS(feColorMatrix)).setAttribute(type,matrix),a.setAttribute(color-interpolation-filters,sRGB),a.setAttribute(values,1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0),a.setAttribute(result,i+_tint_2),t.appendChild(a),this.matrixFiltera;var nthis.createMergeNode(i,s,i+_tint_1,i+_tint_2);t.appendChild(n)}function SVGFillFilter(t,e,r,i){this.filterManagere;var screateNS(feColorMatrix);s.setAttribute(type,matrix),s.setAttribute(color-interpolation-filters,sRGB),s.setAttribute(values,1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0),s.setAttribute(result,i),t.appendChild(s),this.matrixFilters}function SVGStrokeEffect(t,e,r){this.initialized!1,this.filterManagere,this.elemr,this.paths}function SVGTritoneFilter(t,e,r,i){this.filterManagere;var screateNS(feColorMatrix);s.setAttribute(type,matrix),s.setAttribute(color-interpolation-filters,linearRGB),s.setAttribute(values,0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0),t.appendChild(s);var acreateNS(feComponentTransfer);a.setAttribute(color-interpolation-filters,sRGB),a.setAttribute(result,i),this.matrixFiltera;var ncreateNS(feFuncR);n.setAttribute(type,table),a.appendChild(n),this.feFuncRn;var ocreateNS(feFuncG);o.setAttribute(type,table),a.appendChild(o),this.feFuncGo;var hcreateNS(feFuncB);h.setAttribute(type,table),a.appendChild(h),this.feFuncBh,t.appendChild(a)}function SVGProLevelsFilter(t,e,r,i){this.filterManagere;var sthis.filterManager.effectElements,acreateNS(feComponentTransfer);(s10.p.k||0!s10.p.v||s11.p.k||1!s11.p.v||s12.p.k||1!s12.p.v||s13.p.k||0!s13.p.v||s14.p.k||1!s14.p.v)&&(this.feFuncRthis.createFeFunc(feFuncR,a)),(s17.p.k||0!s17.p.v||s18.p.k||1!s18.p.v||s19.p.k||1!s19.p.v||s20.p.k||0!s20.p.v||s21.p.k||1!s21.p.v)&&(this.feFuncGthis.createFeFunc(feFuncG,a)),(s24.p.k||0!s24.p.v||s25.p.k||1!s25.p.v||s26.p.k||1!s26.p.v||s27.p.k||0!s27.p.v||s28.p.k||1!s28.p.v)&&(this.feFuncBthis.createFeFunc(feFuncB,a)),(s31.p.k||0!s31.p.v||s32.p.k||1!s32.p.v||s33.p.k||1!s33.p.v||s34.p.k||0!s34.p.v||s35.p.k||1!s35.p.v)&&(this.feFuncAthis.createFeFunc(feFuncA,a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute(color-interpolation-filters,sRGB),t.appendChild(a)),(s3.p.k||0!s3.p.v||s4.p.k||1!s4.p.v||s5.p.k||1!s5.p.v||s6.p.k||0!s6.p.v||s7.p.k||1!s7.p.v)&&((acreateNS(feComponentTransfer)).setAttribute(color-interpolation-filters,sRGB),a.setAttribute(result,i),t.appendChild(a),this.feFuncRComposedthis.createFeFunc(feFuncR,a),this.feFuncGComposedthis.createFeFunc(feFuncG,a),this.feFuncBComposedthis.createFeFunc(feFuncB,a))}function SVGDropShadowEffect(t,e,r,i,s){var ae.container.globalData.renderConfig.filterSize,ne.data.fs||a;t.setAttribute(x,n.x||a.x),t.setAttribute(y,n.y||a.y),t.setAttribute(width,n.width||a.width),t.setAttribute(height,n.height||a.height),this.filterManagere;var ocreateNS(feGaussianBlur);o.setAttribute(in,SourceAlpha),o.setAttribute(result,i+_drop_shadow_1),o.setAttribute(stdDeviation,0),this.feGaussianBluro,t.appendChild(o);var hcreateNS(feOffset);h.setAttribute(dx,25),h.setAttribute(dy,0),h.setAttribute(in,i+_drop_shadow_1),h.setAttribute(result,i+_drop_shadow_2),this.feOffseth,t.appendChild(h);var lcreateNS(feFlood);l.setAttribute(flood-color,#00ff00),l.setAttribute(flood-opacity,1),l.setAttribute(result,i+_drop_shadow_3),this.feFloodl,t.appendChild(l);var pcreateNS(feComposite);p.setAttribute(in,i+_drop_shadow_3),p.setAttribute(in2,i+_drop_shadow_2),p.setAttribute(operator,in),p.setAttribute(result,i+_drop_shadow_4),t.appendChild(p);var cthis.createMergeNode(i,i+_drop_shadow_4,s);t.appendChild(c)}SVGComposableEffect.prototype{createMergeNode:function(t,e){var r,i,screateNS(feMerge);for(s.setAttribute(result,t),i0;ie.length;i+1)(rcreateNS(feMergeNode)).setAttribute(in,ei),s.appendChild(r),s.appendChild(r);return s}},extendPrototype(SVGComposableEffect,SVGTintFilter),SVGTintFilter.prototype.renderFramefunction(t){if(t||this.filterManager._mdf){var ethis.filterManager.effectElements0.p.v,rthis.filterManager.effectElements1.p.v,ithis.filterManager.effectElements2.p.v/100;this.matrixFilter.setAttribute(values,r0-e0+ 0 0 0 +e0+ +(r1-e1)+ 0 0 0 +e1+ +(r2-e2)+ 0 0 0 +e2+ 0 0 0 +i+ 0)}},SVGFillFilter.prototype.renderFramefunction(t){if(t||this.filterManager._mdf){var ethis.filterManager.effectElements2.p.v,rthis.filterManager.effectElements6.p.v;this.matrixFilter.setAttribute(values,0 0 0 0 +e0+ 0 0 0 0 +e1+ 0 0 0 0 +e2+ 0 0 0 +r+ 0)}},SVGStrokeEffect.prototype.initializefunction(){var t,e,r,i,sthis.elem.layerElement.children||this.elem.layerElement.childNodes;for(1this.filterManager.effectElements1.p.v?(ithis.elem.maskManager.masksProperties.length,r0):i1+(rthis.filterManager.effectElements0.p.v-1),(ecreateNS(g)).setAttribute(fill,none),e.setAttribute(stroke-linecap,round),e.setAttribute(stroke-dashoffset,1);ri;r+1)tcreateNS(path),e.appendChild(t),this.paths.push({p:t,m:r});if(3this.filterManager.effectElements10.p.v){var acreateNS(mask),ncreateElementID();a.setAttribute(id,n),a.setAttribute(mask-type,alpha),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var ocreateNS(g);for(o.setAttribute(mask,url(+getLocationHref()+#+n+));s0;)o.appendChild(s0);this.elem.layerElement.appendChild(o),this.maskera,e.setAttribute(stroke,#fff)}else if(1this.filterManager.effectElements10.p.v||2this.filterManager.effectElements10.p.v){if(2this.filterManager.effectElements10.p.v)for(sthis.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s0);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute(mask),e.setAttribute(stroke,#fff)}this.initialized!0,this.pathMaskere},SVGStrokeEffect.prototype.renderFramefunction(t){var e;this.initialized||this.initialize();var r,i,sthis.paths.length;for(e0;es;e+1)if(-1!this.pathse.m&&(rthis.elem.maskManager.viewDatathis.pathse.m,ithis.pathse.p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute(d,r.lastPath),t||this.filterManager.effectElements9.p._mdf||this.filterManager.effectElements4.p._mdf||this.filterManager.effectElements7.p._mdf||this.filterManager.effectElements8.p._mdf||r.prop._mdf)){var a;if(0!this.filterManager.effectElements7.p.v||100!this.filterManager.effectElements8.p.v){var n.01*Math.min(this.filterManager.effectElements7.p.v,this.filterManager.effectElements8.p.v),o.01*Math.max(this.filterManager.effectElements7.p.v,this.filterManager.effectElements8.p.v),hi.getTotalLength();a0 0 0 +h*n+ ;var l,ph*(o-n),c1+2*this.filterManager.effectElements4.p.v*this.filterManager.effectElements9.p.v*.01,fMath.floor(p/c);for(l0;lf;l+1)a+1 +2*this.filterManager.effectElements4.p.v*this.filterManager.effectElements9.p.v*.01+ ;a+0 +10*h+ 0 0}else a1 +2*this.filterManager.effectElements4.p.v*this.filterManager.effectElements9.p.v*.01;i.setAttribute(stroke-dasharray,a)}if((t||this.filterManager.effectElements4.p._mdf)&&this.pathMasker.setAttribute(stroke-width,2*this.filterManager.effectElements4.p.v),(t||this.filterManager.effectElements6.p._mdf)&&this.pathMasker.setAttribute(opacity,this.filterManager.effectElements6.p.v),(1this.filterManager.effectElements10.p.v||2this.filterManager.effectElements10.p.v)&&(t||this.filterManager.effectElements3.p._mdf)){var dthis.filterManager.effectElements3.p.v;this.pathMasker.setAttribute(stroke,rgb(+bmFloor(255*d0)+,+bmFloor(255*d1)+,+bmFloor(255*d2)+))}},SVGTritoneFilter.prototype.renderFramefunction(t){if(t||this.filterManager._mdf){var ethis.filterManager.effectElements0.p.v,rthis.filterManager.effectElements1.p.v,ithis.filterManager.effectElements2.p.v,si0+ +r0+ +e0,ai1+ +r1+ +e1,ni2+ +r2+ +e2;this.feFuncR.setAttribute(tableValues,s),this.feFuncG.setAttribute(tableValues,a),this.feFuncB.setAttribute(tableValues,n)}},SVGProLevelsFilter.prototype.createFeFuncfunction(t,e){var rcreateNS(t);return r.setAttribute(type,table),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValuefunction(t,e,r,i,s){for(var a,n,o0,hMath.min(t,e),lMath.max(t,e),pArray.call(null,{length:256}),c0,fs-i,de-t;o256;)n(ao/256)h?d0?s:i:a>l?d0?i:s:i+f*Math.pow((a-t)/d,1/r),pcn,c+1,o+256/255;return p.join( )},SVGProLevelsFilter.prototype.renderFramefunction(t){if(t||this.filterManager._mdf){var e,rthis.filterManager.effectElements;this.feFuncRComposed&&(t||r3.p._mdf||r4.p._mdf||r5.p._mdf||r6.p._mdf||r7.p._mdf)&&(ethis.getTableValue(r3.p.v,r4.p.v,r5.p.v,r6.p.v,r7.p.v),this.feFuncRComposed.setAttribute(tableValues,e),this.feFuncGComposed.setAttribute(tableValues,e),this.feFuncBComposed.setAttribute(tableValues,e)),this.feFuncR&&(t||r10.p._mdf||r11.p._mdf||r12.p._mdf||r13.p._mdf||r14.p._mdf)&&(ethis.getTableValue(r10.p.v,r11.p.v,r12.p.v,r13.p.v,r14.p.v),this.feFuncR.setAttribute(tableValues,e)),this.feFuncG&&(t||r17.p._mdf||r18.p._mdf||r19.p._mdf||r20.p._mdf||r21.p._mdf)&&(ethis.getTableValue(r17.p.v,r18.p.v,r19.p.v,r20.p.v,r21.p.v),this.feFuncG.setAttribute(tableValues,e)),this.feFuncB&&(t||r24.p._mdf||r25.p._mdf||r26.p._mdf||r27.p._mdf||r28.p._mdf)&&(ethis.getTableValue(r24.p.v,r25.p.v,r26.p.v,r27.p.v,r28.p.v),this.feFuncB.setAttribute(tableValues,e)),this.feFuncA&&(t||r31.p._mdf||r32.p._mdf||r33.p._mdf||r34.p._mdf||r35.p._mdf)&&(ethis.getTableValue(r31.p.v,r32.p.v,r33.p.v,r34.p.v,r35.p.v),this.feFuncA.setAttribute(tableValues,e))}},extendPrototype(SVGComposableEffect,SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFramefunction(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements4.p._mdf)&&this.feGaussianBlur.setAttribute(stdDeviation,this.filterManager.effectElements4.p.v/4),t||this.filterManager.effectElements0.p._mdf){var ethis.filterManager.effectElements0.p.v;this.feFlood.setAttribute(flood-color,rgbToHex(Math.round(255*e0),Math.round(255*e1),Math.round(255*e2)))}if((t||this.filterManager.effectElements1.p._mdf)&&this.feFlood.setAttribute(flood-opacity,this.filterManager.effectElements1.p.v/255),t||this.filterManager.effectElements2.p._mdf||this.filterManager.effectElements3.p._mdf){var rthis.filterManager.effectElements3.p.v,i(this.filterManager.effectElements2.p.v-90)*degToRads,sr*Math.cos(i),ar*Math.sin(i);this.feOffset.setAttribute(dx,s),this.feOffset.setAttribute(dy,a)}}};var _svgMatteSymbols;function SVGMatte3Effect(t,e,r){this.initialized!1,this.filterManagere,this.filterElemt,this.elemr,r.matteElementcreateNS(g),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElementr.matteElement}function SVGGaussianBlurEffect(t,e,r,i){t.setAttribute(x,-100%),t.setAttribute(y,-100%),t.setAttribute(width,300%),t.setAttribute(height,300%),this.filterManagere;var screateNS(feGaussianBlur);s.setAttribute(result,i),t.appendChild(s),this.feGaussianBlurs}return SVGMatte3Effect.prototype.findSymbolfunction(t){for(var e0,r_svgMatteSymbols.length;er;){if(_svgMatteSymbolset)return _svgMatteSymbolse;e+1}return null},SVGMatte3Effect.prototype.replaceInParentfunction(t,e){var rt.layerElement.parentNode;if(r){for(var i,sr.children,a0,ns.length;an&&sa!t.layerElement;)a+1;an-2&&(isa+1);var ocreateNS(use);o.setAttribute(href,#+e),i?r.insertBefore(o,i):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMaskfunction(t,e){if(!this.findSymbol(e)){var rcreateElementID(),icreateNS(mask);i.setAttribute(id,e.layerId),i.setAttribute(mask-type,alpha),_svgMatteSymbols.push(e);var st.globalData.defs;s.appendChild(i);var acreateNS(symbol);a.setAttribute(id,r),this.replaceInParent(e,r),a.appendChild(e.layerElement),s.appendChild(a);var ncreateNS(use);n.setAttribute(href,#+r),i.appendChild(n),e.data.hd!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initializefunction(){for(var tthis.filterManager.effectElements0.p.v,ethis.elem.comp.elements,r0,ie.length;ri;)er&&er.data.indt&&this.setElementAsMask(this.elem,er),r+1;this.initialized!0},SVGMatte3Effect.prototype.renderFramefunction(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFramefunction(t){if(t||this.filterManager._mdf){var e.3*this.filterManager.effectElements0.p.v,rthis.filterManager.effectElements1.p.v,i3r?0:e,s2r?0:e;this.feGaussianBlur.setAttribute(stdDeviation,i+ +s);var a1this.filterManager.effectElements2.p.v?wrap:duplicate;this.feGaussianBlur.setAttribute(edgeMode,a)}},registerRenderer(canvas,CanvasRenderer),registerRenderer(html,HybridRenderer),registerRenderer(svg,SVGRenderer),ShapeModifiers.registerModifier(tm,TrimModifier),ShapeModifiers.registerModifier(pb,PuckerAndBloatModifier),ShapeModifiers.registerModifier(rp,RepeaterModifier),ShapeModifiers.registerModifier(rd,RoundCornersModifier),ShapeModifiers.registerModifier(zz,ZigZagModifier),ShapeModifiers.registerModifier(op,OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exportsfactory())})(lottie$1,lottie$1.exports);var lottielottie$1.exports,_templateObject$1,stylesr$3(_templateObject$1||(_templateObject$1_taggedTemplateLiteral(\n * {\n box-sizing: border-box;\n }\n\n :host {\n --lottie-player-toolbar-height: 35px;\n --lottie-player-toolbar-background-color: transparent;\n --lottie-player-toolbar-icon-color: #999;\n --lottie-player-toolbar-icon-hover-color: #222;\n --lottie-player-toolbar-icon-active-color: #555;\n --lottie-player-seeker-track-color: #ccc;\n --lottie-player-seeker-thumb-color: rgba(0, 107, 120, 0.8);\n --lottie-player-seeker-display: block;\n\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .main {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n }\n\n .animation {\n width: 100%;\n height: 100%;\n display: flex;\n }\n .animation.controls {\n height: calc(100% - 35px);\n }\n\n .toolbar {\n display: flex;\n align-items: center;\n justify-items: center;\n background-color: var(--lottie-player-toolbar-background-color);\n margin: 0 5px;\n height: 35px;\n }\n\n .toolbar button {\n cursor: pointer;\n fill: var(--lottie-player-toolbar-icon-color);\n display: flex;\n background: none;\n border: 0;\n padding: 0;\n outline: none;\n height: 100%;\n }\n\n .toolbar button:hover {\n fill: var(--lottie-player-toolbar-icon-hover-color);\n }\n\n .toolbar button.active {\n fill: var(--lottie-player-toolbar-icon-active-color);\n }\n\n .toolbar button.active:hover {\n fill: var(--lottie-player-toolbar-icon-hover-color);\n }\n\n .toolbar button:focus {\n outline: 1px dotted var(--lottie-player-toolbar-icon-active-color);\n }\n\n .toolbar button svg {\n }\n\n .toolbar button.disabled svg {\n display: none;\n }\n\n .seeker {\n -webkit-appearance: none;\n width: 95%;\n outline: none;\n background-color: var(--lottie-player-toolbar-background-color);\n display: var(--lottie-player-seeker-display);\n }\n\n .seeker::-webkit-slider-runnable-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-webkit-slider-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -webkit-appearance: none;\n margin-top: -5px;\n }\n .seeker:focus::-webkit-slider-runnable-track {\n background: #999;\n }\n .seeker::-moz-range-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-moz-range-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n }\n .seeker::-ms-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n }\n .seeker::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-ms-thumb {\n border: 0;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n }\n .seeker:focus::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n }\n .seeker:focus::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n }\n\n .error {\n display: flex;\n justify-content: center;\n height: 100%;\n align-items: center;\n }\n))),LOTTIE_PLAYER_VERSION1.7.1,LOTTIE_WEB_VERSION^5.10.0,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,PlayerState,PlayMode,PlayerEvents;function parseSrc(t){if(objecttypeof t)return t;try{return JSON.parse(t)}catch(e){return new URL(t,window.location.href).toString()}}function isLottie(t){returnv,ip,op,layers,fr,w,h.every((e>Object.prototype.hasOwnProperty.call(t,e)))}function fromURL(t){return _fromURL.apply(this,arguments)}function _fromURL(){return(_fromURL_asyncToGenerator((function*(t){if(string!typeof t)throw new Error(The url value must be a string);var e;try{var rnew URL(t),iyield fetch(r.toString());eyield i.json()}catch(t){throw new Error(An error occurred while trying to load the Lottie file from URL)}return e}))).apply(this,arguments)}exports.PlayerStatevoid 0,PlayerStateexports.PlayerState||(exports.PlayerState{}),PlayerState.Destroyeddestroyed,PlayerState.Errorerror,PlayerState.Frozenfrozen,PlayerState.Loadingloading,PlayerState.Pausedpaused,PlayerState.Playingplaying,PlayerState.Stoppedstopped,exports.PlayModevoid 0,PlayModeexports.PlayMode||(exports.PlayMode{}),PlayMode.Bouncebounce,PlayMode.Normalnormal,exports.PlayerEventsvoid 0,PlayerEventsexports.PlayerEvents||(exports.PlayerEvents{}),PlayerEvents.Completecomplete,PlayerEvents.Destroyeddestroyed,PlayerEvents.Errorerror,PlayerEvents.Frameframe,PlayerEvents.Freezefreeze,PlayerEvents.Loadload,PlayerEvents.Looploop,PlayerEvents.Pausepause,PlayerEvents.Playplay,PlayerEvents.Readyready,PlayerEvents.Renderedrendered,PlayerEvents.Stopstop,exports.LottiePlayerclass extends s{constructor(){super(...arguments),this.autoplay!1,this.backgroundtransparent,this.controls!1,this.currentStateexports.PlayerState.Loading,this.descriptionLottie animation,this.direction1,this.disableCheck!1,this.disableShadowDOM!1,this.hover!1,this.intermission1,this.loop!1,this.modeexports.PlayMode.Normal,this.preserveAspectRatioxMidYMid meet,this.renderersvg,this.speed1,this._iovoid 0,this._counter1}load(t){var ethis;return _asyncToGenerator((function*(){var r{container:e.container,loop:!1,autoplay:!1,renderer:e.renderer,rendererSettings:Object.assign({preserveAspectRatio:e.preserveAspectRatio,clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0},e.viewBoxSize&&{viewBoxSize:e.viewBoxSize})};try{var iparseSrc(t),s{},astringtypeof i?path:animationData;e._lottie&&e._lottie.destroy(),e.webworkers&&lottie$1.exports.useWebWorker(!0),e._lottielottie$1.exports.loadAnimation(Object.assign(Object.assign({},r),{a:i})),e._attachEventListeners(),e.disableCheck||(patha?(syield fromURL(i),aanimationData):si,isLottie(s)||(e.currentStateexports.PlayerState.Error,e.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))))}catch(t){e.currentStateexports.PlayerState.Error,e.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))}}))()}getLottie(){return this._lottie}getVersions(){return{lottieWebVersion:LOTTIE_WEB_VERSION,lottiePlayerVersion:LOTTIE_PLAYER_VERSION}}play(){this._lottie&&(this._lottie.play(),this.currentStateexports.PlayerState.Playing,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Play)))}pause(){this._lottie&&(this._lottie.pause(),this.currentStateexports.PlayerState.Paused,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Pause)))}stop(){this._lottie&&(this._counter1,this._lottie.stop(),this.currentStateexports.PlayerState.Stopped,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Stop)))}destroy(){this._lottie&&(this._lottie.destroy(),this._lottienull,this.currentStateexports.PlayerState.Destroyed,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Destroyed)),this.remove())}seek(t){if(this._lottie){var e/^(\d+)(%?)$/.exec(t.toString());if(e){var r%e2?this._lottie.totalFrames*Number(e1)/100:Number(e1);this.seekerr,this.currentStateexports.PlayerState.Playing?this._lottie.goToAndPlay(r,!0):(this._lottie.goToAndStop(r,!0),this._lottie.pause())}}}snapshot(){var t!(arguments.length>0&&void 0!arguments0)||arguments0;if(this.shadowRoot){var ethis.shadowRoot.querySelector(.animation svg),r(new XMLSerializer).serializeToString(e);if(t){var idocument.createElement(a);i.hrefdata:image/svg+xml;charsetutf-8,.concat(encodeURIComponent(r)),i.downloaddownload_.concat(this.seeker,.svg),document.body.appendChild(i),i.click(),document.body.removeChild(i)}return r}}setSpeed(){var targuments.length>0&&void 0!arguments0?arguments0:1;this._lottie&&this._lottie.setSpeed(t)}setDirection(t){this._lottie&&this._lottie.setDirection(t)}setLooping(t){this._lottie&&(this.loopt,this._lottie.loopt)}togglePlay(){return this.currentStateexports.PlayerState.Playing?this.pause():this.play()}toggleLooping(){this.setLooping(!this.loop)}resize(){this._lottie&&this._lottie.resize()}static get styles(){return styles}disconnectedCallback(){this.isConnected||(this._io&&(this._io.disconnect(),this._iovoid 0),document.removeEventListener(visibilitychange,(()>this._onVisibilityChange())),this.destroy())}render(){var tthis.controls?main controls:main,ethis.controls?animation controls:animation;return $(_templateObject||(_templateObject_taggedTemplateLiteral( div\n idanimation-container\n class,\n langen\n aria-label,\n roleimg\n >\n div\n idanimation\n class,\n stylebackground:,;\n >\n ,\n /div>\n ,\n /div>)),t,this.description,e,this.background,this.currentStateexports.PlayerState.Error?$(_templateObject2||(_templateObject2_taggedTemplateLiteral(div classerror>⚠️/div>))):void 0,this.controls&&!this.disableShadowDOM?this.renderControls():void 0)}createRenderRoot(){return this.disableShadowDOM&&(this.style.displayblock),this.disableShadowDOM?this:super.createRenderRoot()}firstUpdated(){IntersectionObserverin window&&(this._ionew IntersectionObserver((t>{t0.isIntersecting?this.currentStateexports.PlayerState.Frozen&&this.play():this.currentStateexports.PlayerState.Playing&&this.freeze()})),this._io.observe(this.container)),void 0!document.hidden&&document.addEventListener(visibilitychange,(()>this._onVisibilityChange())),this.src&&this.load(this.src),this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Rendered))}renderControls(){var tthis.currentStateexports.PlayerState.Playing,ethis.currentStateexports.PlayerState.Paused,rthis.currentStateexports.PlayerState.Stopped;return $(_templateObject3||(_templateObject3_taggedTemplateLiteral(\n div\n idlottie-controls\n aria-labellottie-animation-controls\n classtoolbar\n >\n button\n idlottie-play-button\n @click,\n class,\n stylealign-items:center;\n tabindex0\n aria-labelplay-pause\n >\n ,\n /button>\n button\n idlottie-stop-button\n @click,\n class,\n stylealign-items:center;\n tabindex0\n aria-labelstop\n >\n svg width24 height24 aria-hiddentrue focusablefalse>\n path dM6 6h12v12H6V6z />\n /svg>\n /button>\n input\n idlottie-seeker-input\n classseeker\n typerange\n min0\n step1\n max100\n .value,\n @input,\n @mousedown,\n @mouseup,\n aria-valuemin1\n aria-valuemax100\n roleslider\n aria-valuenow,\n tabindex0\n aria-labellottie-seek-input\n />\n button\n idlottie-loop-toggle\n @click,\n class,\n stylealign-items:center;\n tabindex0\n aria-labelloop-toggle\n >\n svg width24 height24 aria-hiddentrue focusablefalse>\n path\n dM17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z\n />\n /svg>\n /button>\n /div>\n )),this.togglePlay,t||e?active:,$(t?_templateObject4||(_templateObject4_taggedTemplateLiteral(svg\n width24\n height24\n aria-hiddentrue\n focusablefalse\n >\n path\n dM14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z\n />\n /svg>)):_templateObject5||(_templateObject5_taggedTemplateLiteral(svg\n width24\n height24\n aria-hiddentrue\n focusablefalse\n >\n path dM8.016 5.016L18.985 12 8.016 18.984V5.015z />\n /svg>))),this.stop,r?active:,this.seeker,this._handleSeekChange,(()>{this._prevStatethis.currentState,this.freeze()}),(()>{this._prevStateexports.PlayerState.Playing&&this.play()}),this.seeker,this.toggleLooping,this.loop?active:)}_onVisibilityChange(){!0document.hidden&&this.currentStateexports.PlayerState.Playing?this.freeze():this.currentStateexports.PlayerState.Frozen&&this.play()}_handleSeekChange(t){if(this._lottie&&!isNaN(t.target.value)){var et.target.value/100*this._lottie.totalFrames;this.seek(e)}}_attachEventListeners(){this._lottie.addEventListener(enterFrame,(()>{this.seekerthis._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))})),this._lottie.addEventListener(complete,(()>{if(this.currentStateexports.PlayerState.Playing){if(!this.loop||this.count&&this._counter>this.count){if(this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete)),this.mode!exports.PlayMode.Bounce)return;if(0this._lottie.currentFrame)return}this.modeexports.PlayMode.Bounce?(this.count&&(this._counter+.5),setTimeout((()>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentStateexports.PlayerState.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())}),this.intermission)):(this.count&&(this._counter+1),window.setTimeout((()>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentStateexports.PlayerState.Playing&&(-1this.direction?(this.seek(99%),this.play()):(this._lottie.stop(),this._lottie.play()))}),this.intermission))}else this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete))})),this._lottie.addEventListener(DOMLoaded,(()>{this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&(-1this.direction&&this.seek(100%),this.play()),this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Ready))})),this._lottie.addEventListener(data_ready,(()>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Load))})),this._lottie.addEventListener(data_failed,(()>{this.currentStateexports.PlayerState.Error,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))})),this.container.addEventListener(mouseenter,(()>{this.hover&&this.currentState!exports.PlayerState.Playing&&this.play()})),this.container.addEventListener(mouseleave,(()>{this.hover&&this.currentStateexports.PlayerState.Playing&&this.stop()}))}freeze(){this._lottie&&(this._lottie.pause(),this.currentStateexports.PlayerState.Frozen,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Freeze)))}},__decorate(e$5({type:Boolean}),exports.LottiePlayer.prototype,autoplay,void 0),__decorate(e$5({type:String,reflect:!0}),exports.LottiePlayer.prototype,background,void 0),__decorate(e$5({type:Boolean}),exports.LottiePlayer.prototype,controls,void 0),__decorate(e$5({type:Number}),exports.LottiePlayer.prototype,count,void 0),__decorate(e$5({type:String}),exports.LottiePlayer.prototype,currentState,void 0),__decorate(e$5({type:String}),exports.LottiePlayer.prototype,description,void 0),__decorate(e$5({type:Number}),exports.LottiePlayer.prototype,direction,void 0),__decorate(e$5({type:Boolean}),exports.LottiePlayer.prototype,disableCheck,void 0),__decorate(e$5({type:Boolean}),exports.LottiePlayer.prototype,disableShadowDOM,void 0),__decorate(e$5({type:Boolean}),exports.LottiePlayer.prototype,hover,void 0),__decorate(e$5(),exports.LottiePlayer.prototype,intermission,void 0),__decorate(e$5({type:Boolean,reflect:!0}),exports.LottiePlayer.prototype,loop,void 0),__decorate(e$5(),exports.LottiePlayer.prototype,mode,void 0),__decorate(e$5({type:String}),exports.LottiePlayer.prototype,preserveAspectRatio,void 0),__decorate(e$5({type:String}),exports.LottiePlayer.prototype,renderer,void 0),__decorate(e$5({type:String}),exports.LottiePlayer.prototype,viewBoxSize,void 0),__decorate(e$5(),exports.LottiePlayer.prototype,seeker,void 0),__decorate(e$5({type:Number}),exports.LottiePlayer.prototype,speed,void 0),__decorate(e$5({type:String}),exports.LottiePlayer.prototype,src,void 0),__decorate(e$5({type:Boolean}),exports.LottiePlayer.prototype,webworkers,void 0),__decorate(i(.animation),exports.LottiePlayer.prototype,container,void 0),exports.LottiePlayer__decorate(n$1(lottie-player),exports.LottiePlayer),exports.parseSrcparseSrc,Object.defineProperty(exports,__esModule,{value:!0})}));//# sourceMappingURLlottie-player.js.map /script>/body>/html>
View on OTX
|
View on ThreatMiner
Please enable JavaScript to view the
comments powered by Disqus.
Data with thanks to
AlienVault OTX
,
VirusTotal
,
Malwr
and
others
. [
Sitemap
]