@lifesg/react-design-system 1.0.0-alpha.19 → 1.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/index.js +4 -4
- package/accordion/index.js.map +1 -1
- package/alert/index.js +42 -42
- package/alert/index.js.map +1 -1
- package/box-container/index.js +5 -5
- package/box-container/index.js.map +1 -1
- package/breadcrumb/index.js +2 -2
- package/breadcrumb/index.js.map +1 -1
- package/button/index.js +125 -125
- package/button/index.js.map +1 -1
- package/card/index.js +23 -23
- package/card/index.js.map +1 -1
- package/checkbox/index.js +3 -3
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +44 -46
- package/cjs/index.js.map +1 -1
- package/color/color.d.ts +4 -59
- package/color/index.js +1 -1
- package/color/index.js.map +1 -1
- package/color/types.d.ts +4 -0
- package/date-input/index.js +53 -49
- package/date-input/index.js.map +1 -1
- package/design-token/design-token.d.ts +4 -0
- package/design-token/index.d.ts +2 -0
- package/design-token/index.js +6 -0
- package/design-token/index.js.map +1 -0
- package/{icon → design-token}/package.json +1 -1
- package/design-token/types.d.ts +7 -0
- package/error-display/index.js +92 -92
- package/error-display/index.js.map +1 -1
- package/feedback-rating/index.js +58 -58
- package/feedback-rating/index.js.map +1 -1
- package/footer/index.js +10 -10
- package/footer/index.js.map +1 -1
- package/form/index.js +144 -140
- package/form/index.js.map +1 -1
- package/icon-button/index.js +3 -3
- package/icon-button/index.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +63 -65
- package/index.js.map +1 -1
- package/input/index.js +18 -14
- package/input/index.js.map +1 -1
- package/input-group/index.js +125 -121
- package/input-group/index.js.map +1 -1
- package/input-select/index.js +32 -28
- package/input-select/index.js.map +1 -1
- package/input-textarea/index.js +112 -108
- package/input-textarea/index.js.map +1 -1
- package/link-list/index.js +35 -35
- package/link-list/index.js.map +1 -1
- package/modal/index.js +15 -15
- package/modal/index.js.map +1 -1
- package/navbar/index.js +188 -188
- package/navbar/index.js.map +1 -1
- package/notification-banner/index.js +2 -2
- package/notification-banner/index.js.map +1 -1
- package/package.json +1 -1
- package/phone-number-input/index.js +126 -122
- package/phone-number-input/index.js.map +1 -1
- package/popover/index.js +7 -7
- package/popover/index.js.map +1 -1
- package/progress-indicator/index.js +7 -7
- package/progress-indicator/index.js.map +1 -1
- package/radio-button/index.js +7 -7
- package/radio-button/index.js.map +1 -1
- package/smart-app-banner/index.js +14 -14
- package/smart-app-banner/index.js.map +1 -1
- package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
- package/text/index.js +18 -18
- package/text/index.js.map +1 -1
- package/text/text-style.d.ts +4 -100
- package/text-list/index.js +7 -7
- package/text-list/index.js.map +1 -1
- package/theme/design-token-helper.d.ts +2 -0
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
- package/theme/types.d.ts +10 -1
- package/timeline/index.js +8 -8
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +61 -57
- package/timepicker/index.js.map +1 -1
- package/toggle-button/index.js +109 -109
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.js +5 -5
- package/tooltip/index.js.map +1 -1
- package/unit-number/index.js +113 -109
- package/unit-number/index.js.map +1 -1
- package/util/utility-types.d.ts +3 -0
- package/icon/document-with-pencil-icon.d.ts +0 -5
- package/icon/icon-data.d.ts +0 -3
- package/icon/icon-style.d.ts +0 -1
- package/icon/icon.d.ts +0 -6
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -8
- package/icon/index.js.map +0 -1
- package/icon/location-unknown-icon.d.ts +0 -5
- package/icon/mail-unread-icon.d.ts +0 -5
- package/icon/types.d.ts +0 -18
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";import React__default,{cloneElement,useRef,useState,isValidElement,createRef,PureComponent,useEffect,useLayoutEffect,forwardRef,useCallback,useContext,useMemo,Children,createElement}from"react";import ReactDOM,{findDOMNode,unstable_batchedUpdates}from"react-dom";import styled,{css,keyframes}from"styled-components";var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)};function __rest(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r}var commonjsGlobal$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function isObject$3$1(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1$1=isObject$3$1,freeGlobal$1$1="object"==typeof commonjsGlobal$1&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal$1=freeGlobal$1$1,freeGlobal$2=_freeGlobal$1,freeSelf$1="object"==typeof self&&self&&self.Object===Object&&self,root$2$1=freeGlobal$2||freeSelf$1||Function("return this")(),_root$1=root$2$1,root$1$1=_root$1,now$1$1=function(){return root$1$1.Date.now()},now_1$1=now$1$1,reWhitespace$1=/\s/;function trimmedEndIndex$1$1(e){for(var t=e.length;t--&&reWhitespace$1.test(e.charAt(t)););return t}var _trimmedEndIndex$1=trimmedEndIndex$1$1,trimmedEndIndex$2=_trimmedEndIndex$1,reTrimStart$1=/^\s+/;function baseTrim$1$1(e){return e?e.slice(0,trimmedEndIndex$2(e)+1).replace(reTrimStart$1,""):e}var _baseTrim$1=baseTrim$1$1,root$a=_root$1,Symbol$2$1=root$a.Symbol,_Symbol$1=Symbol$2$1,Symbol$1$1=_Symbol$1,objectProto$1$1=Object.prototype,hasOwnProperty$a=objectProto$1$1.hasOwnProperty,nativeObjectToString$1$1=objectProto$1$1.toString,symToStringTag$1$1=Symbol$1$1?Symbol$1$1.toStringTag:void 0;function getRawTag$1$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1$1),r=e[symToStringTag$1$1];try{e[symToStringTag$1$1]=void 0;var a=!0}catch(e){}var i=nativeObjectToString$1$1.call(e);return a&&(t?e[symToStringTag$1$1]=r:delete e[symToStringTag$1$1]),i}var _getRawTag$1=getRawTag$1$1,objectProto$c=Object.prototype,nativeObjectToString$2=objectProto$c.toString;function objectToString$1$1(e){return nativeObjectToString$2.call(e)}var _objectToString$1=objectToString$1$1,Symbol$6=_Symbol$1,getRawTag$2=_getRawTag$1,objectToString$2=_objectToString$1,nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$6?Symbol$6.toStringTag:void 0;function baseGetTag$1$1(e){return null==e?void 0===e?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(e)?getRawTag$2(e):objectToString$2(e)}var _baseGetTag$1=baseGetTag$1$1;function isObjectLike$1$1(e){return null!=e&&"object"==typeof e}var isObjectLike_1$1=isObjectLike$1$1,baseGetTag$6=_baseGetTag$1,isObjectLike$6=isObjectLike_1$1,symbolTag$2="[object Symbol]";function isSymbol$1$1(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$6(e)==symbolTag$2}var isSymbol_1$1=isSymbol$1$1,baseTrim$2=_baseTrim$1,isObject$2$1=isObject_1$1,isSymbol$5=isSymbol_1$1,NAN$1=NaN,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$1$1(e){if("number"==typeof e)return e;if(isSymbol$5(e))return NAN$1;if(isObject$2$1(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2$1(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim$2(e);var r=reIsBinary$1.test(e);return r||reIsOctal$1.test(e)?freeParseInt$1(e.slice(2),r?2:8):reIsBadHex$1.test(e)?NAN$1:+e}var toNumber_1$1=toNumber$1$1,isObject$1$1=isObject_1$1,now$2=now_1$1,toNumber$3=toNumber_1$1,FUNC_ERROR_TEXT$1$1="Expected a function",nativeMax$2=Math.max,nativeMin$1=Math.min;function debounce$1(e,t,r){var a,i,n,s,o,l,h=0,d=!1,c=!1,p=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1$1);function u(t){var r=a,n=i;return a=i=void 0,h=t,s=e.apply(n,r)}function m(e){return h=e,o=setTimeout(g,t),d?u(e):s}function f(e){var r=e-l;return void 0===l||r>=t||r<0||c&&e-h>=n}function g(){var e=now$2();if(f(e))return y(e);o=setTimeout(g,function(e){var r=t-(e-l);return c?nativeMin$1(r,n-(e-h)):r}(e))}function y(e){return o=void 0,p&&a?u(e):(a=i=void 0,s)}function b(){var e=now$2(),r=f(e);if(a=arguments,i=this,l=e,r){if(void 0===o)return m(l);if(c)return clearTimeout(o),o=setTimeout(g,t),u(l)}return void 0===o&&(o=setTimeout(g,t)),s}return t=toNumber$3(t)||0,isObject$1$1(r)&&(d=!!r.leading,n=(c="maxWait"in r)?nativeMax$2(toNumber$3(r.maxWait)||0,t):n,p="trailing"in r?!!r.trailing:p),b.cancel=function(){void 0!==o&&clearTimeout(o),h=0,a=l=i=o=void 0},b.flush=function(){return void 0===o?s:y(now$2())},b}var debounce_1$1=debounce$1,debounce$2=debounce_1$1,isObject$6=isObject_1$1,FUNC_ERROR_TEXT$2="Expected a function";function throttle(e,t,r){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$2);return isObject$6(r)&&(a="leading"in r?!!r.leading:a,i="trailing"in r?!!r.trailing:i),debounce$2(e,t,{leading:a,maxWait:t,trailing:i})}var throttle_1=throttle,patchResizeHandler=function(e,t,r,a){switch(t){case"debounce":return debounce_1$1(e,r,a);case"throttle":return throttle_1(e,r,a);default:return e}},isFunction$3=function(e){return"function"==typeof e},isSSR$1=function(){return"undefined"==typeof window},isDOMElement=function(e){return e instanceof Element||e instanceof HTMLDocument},createNotifier=function(e,t,r,a){return function(i){var n=i.width,s=i.height;t((function(t){return t.width===n&&t.height===s||t.width===n&&!a||t.height===s&&!r?t:(e&&isFunction$3(e)&&e(n,s),{width:n,height:s})}))}};!function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,a=e.observerOptions;if(!isSSR$1()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,a)))}},r.getElement=function(){var e=r.props,t=e.querySelector,a=e.targetDomEl;if(isSSR$1())return null;if(t)return document.querySelector(t);if(a&&isDOMElement(a))return a;if(r.targetRef&&isDOMElement(r.targetRef.current))return r.targetRef.current;var i=findDOMNode(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,a=t.handleWidth,i=void 0===a||a,n=t.handleHeight,s=void 0===n||n,o=t.onResize;if(i||s){var l=createNotifier(o,r.setState.bind(r),i,s);e.forEach((function(e){var t=e&&e.contentRect||{},a=t.width,i=t.height;!r.skipOnMount&&!isSSR$1()&&l({width:a,height:i}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,a=e.children;return isFunction$3(t)?"renderProp":isFunction$3(a)?"childFunction":isValidElement(a)?"child":Array.isArray(a)?"childArray":"parent"};var a=t.skipOnMount,i=t.refreshMode,n=t.refreshRate,s=void 0===n?1e3:n,o=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=a,r.targetRef=createRef(),r.observableElement=null,isSSR$1()||(r.resizeHandler=patchResizeHandler(r.createResizeHandler,i,s,o),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}__extends(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){isSSR$1()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,a=t.children,i=t.nodeType,n=void 0===i?"div":i,s=this.state,o={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(o);case"childFunction":return(e=a)(o);case"child":if((e=a).type&&"string"==typeof e.type){var l=__rest(o,["targetRef"]);return cloneElement(e,l)}return cloneElement(e,o);case"childArray":return(e=a).map((function(e){return!!e&&cloneElement(e,o)}));default:return React.createElement(n,null)}}}(PureComponent);var useEnhancedEffect=isSSR$1()?useEffect:useLayoutEffect;function useResizeDetector(e){void 0===e&&(e={});var t=e.skipOnMount,r=void 0!==t&&t,a=e.refreshMode,i=e.refreshRate,n=void 0===i?1e3:i,s=e.refreshOptions,o=e.handleWidth,l=void 0===o||o,h=e.handleHeight,d=void 0===h||h,c=e.targetRef,p=e.observerOptions,u=e.onResize,m=useRef(r),f=useRef(null),g=null!=c?c:f,y=useRef(),b=useState({width:void 0,height:void 0}),v=b[0],C=b[1];return useEnhancedEffect((function(){if(!isSSR$1()){var e=createNotifier(u,C,l,d);y.current=patchResizeHandler((function(t){(l||d)&&t.forEach((function(t){var r=t&&t.contentRect||{},a=r.width,i=r.height;!m.current&&!isSSR$1()&&e({width:a,height:i}),m.current=!1}))}),a,n,s);var t=new window.ResizeObserver(y.current);return g.current&&t.observe(g.current,p),function(){t.disconnect();var e=y.current;e&&e.cancel&&e.cancel()}}}),[a,n,s,l,d,u,p,g.current]),__assign({ref:g},v)}let updateQueue=makeQueue();const raf=e=>schedule(e,updateQueue);let writeQueue=makeQueue();raf.write=e=>schedule(e,writeQueue);let onStartQueue=makeQueue();raf.onStart=e=>schedule(e,onStartQueue);let onFrameQueue=makeQueue();raf.onFrame=e=>schedule(e,onFrameQueue);let onFinishQueue=makeQueue();raf.onFinish=e=>schedule(e,onFinishQueue);let timeouts=[];raf.setTimeout=(e,t)=>{let r=raf.now()+t,a=()=>{let e=timeouts.findIndex((e=>e.cancel==a));~e&&timeouts.splice(e,1),pendingCount-=~e?1:0},i={time:r,handler:e,cancel:a};return timeouts.splice(findTimeout(r),0,i),pendingCount+=1,start(),i};let findTimeout=e=>~(~timeouts.findIndex((t=>t.time>e))||~timeouts.length);raf.cancel=e=>{onStartQueue.delete(e),onFrameQueue.delete(e),onFinishQueue.delete(e),updateQueue.delete(e),writeQueue.delete(e)},raf.sync=e=>{sync=!0,raf.batchedUpdates(e),sync=!1},raf.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function a(...e){t=e,raf.onStart(r)}return a.handler=e,a.cancel=()=>{onStartQueue.delete(r),t=null},a};let nativeRaf="undefined"!=typeof window?window.requestAnimationFrame:()=>{};raf.use=e=>nativeRaf=e,raf.now="undefined"!=typeof performance?()=>performance.now():Date.now,raf.batchedUpdates=e=>e(),raf.catch=console.error,raf.frameLoop="always",raf.advance=()=>{"demand"!==raf.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};let ts=-1,pendingCount=0,sync=!1;function schedule(e,t){sync?(t.delete(e),e(0)):(t.add(e),start())}function start(){ts<0&&(ts=0,"demand"!==raf.frameLoop&&nativeRaf(loop))}function stop(){ts=-1}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){let e=ts;ts=raf.now();let t=findTimeout(ts);t&&(eachSafely(timeouts.splice(0,t),(e=>e.handler())),pendingCount-=t),pendingCount?(onStartQueue.flush(),updateQueue.flush(e?Math.min(64,ts-e):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()):stop()}function makeQueue(){let e=new Set,t=e;return{add(r){pendingCount+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(pendingCount-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,pendingCount-=t.size,eachSafely(t,(t=>t(r)&&e.add(t))),pendingCount+=e.size,t=e)}}}function eachSafely(e,t){e.forEach((e=>{try{t(e)}catch(e){raf.catch(e)}}))}function noop(){}const defineHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),is={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function isEqual(e,t){if(is.arr(e)){if(!is.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const each=(e,t)=>e.forEach(t);function eachProp(e,t,r){if(is.arr(e))for(let a=0;a<e.length;a++)t.call(r,e[a],`${a}`);else for(const a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a)}const toArray=e=>is.und(e)?[]:is.arr(e)?e:[e];function flush(e,t){if(e.size){const r=Array.from(e);e.clear(),each(r,t)}}const flushCalls=(e,...t)=>flush(e,(e=>e(...t))),isSSR=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let createStringInterpolator$1,to,colors$1=null,skipAnimation=!1,willAdvance=noop;const assign=e=>{e.to&&(to=e.to),e.now&&(raf.now=e.now),void 0!==e.colors&&(colors$1=e.colors),null!=e.skipAnimation&&(skipAnimation=e.skipAnimation),e.createStringInterpolator&&(createStringInterpolator$1=e.createStringInterpolator),e.requestAnimationFrame&&raf.use(e.requestAnimationFrame),e.batchedUpdates&&(raf.batchedUpdates=e.batchedUpdates),e.willAdvance&&(willAdvance=e.willAdvance),e.frameLoop&&(raf.frameLoop=e.frameLoop)};var globals=Object.freeze({__proto__:null,get createStringInterpolator(){return createStringInterpolator$1},get to(){return to},get colors(){return colors$1},get skipAnimation(){return skipAnimation},get willAdvance(){return willAdvance},assign:assign});const startQueue=new Set;let currentFrame=[],prevFrame=[],priority=0;const frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(e){priority>e.priority?(startQueue.add(e),raf.onStart(flushStartQueue)):(startSafely(e),raf(advance))},advance:advance,sort(e){if(priority)raf.onFrame((()=>frameLoop.sort(e)));else{const t=currentFrame.indexOf(e);~t&&(currentFrame.splice(t,1),startUnsafely(e))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(e){currentFrame.includes(e)||startUnsafely(e)}function startUnsafely(e){currentFrame.splice(findIndex$1(currentFrame,(t=>t.priority>e.priority)),0,e)}function advance(e){const t=prevFrame;for(let r=0;r<currentFrame.length;r++){const a=currentFrame[r];priority=a.priority,a.idle||(willAdvance(a),a.advance(e),a.idle||t.push(a))}return priority=0,prevFrame=currentFrame,prevFrame.length=0,currentFrame=t,currentFrame.length>0}function findIndex$1(e,t){const r=e.findIndex(t);return r<0?e.length:r}const colors={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hex6.exec(e))?parseInt(t[1]+"ff",16)>>>0:colors$1&&void 0!==colors$1[e]?colors$1[e]:(t=rgb.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|255)>>>0:(t=rgba.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|parse1(t[4]))>>>0:(t=hex3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hex8.exec(e))?parseInt(t[1],16)>>>0:(t=hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hsl.exec(e))?(255|hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3])))>>>0:(t=hsla.exec(e))?(hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3]))|parse1(t[4]))>>>0:null}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e,t,r){const a=r<.5?r*(1+t):r+t-r*t,i=2*r-a,n=hue2rgb(i,a,e+1/3),s=hue2rgb(i,a,e),o=hue2rgb(i,a,e-1/3);return Math.round(255*n)<<24|Math.round(255*s)<<16|Math.round(255*o)<<8}function parse255(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function parse360(e){return(parseFloat(e)%360+360)%360/360}function parse1(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function parsePercentage(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function colorToRgba(e){let t=normalizeColor(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const createInterpolator=(e,t,r)=>{if(is.fun(e))return e;if(is.arr(e))return createInterpolator({range:e,output:t,extrapolate:r});if(is.str(e.output[0]))return createStringInterpolator$1(e);const a=e,i=a.output,n=a.range||[0,1],s=a.extrapolateLeft||a.extrapolate||"extend",o=a.extrapolateRight||a.extrapolate||"extend",l=a.easing||(e=>e);return e=>{const t=findRange(e,n);return interpolate(e,n[t],n[t+1],i[t],i[t+1],l,s,o,a.map)}};function interpolate(e,t,r,a,i,n,s,o,l){let h=l?l(e):e;if(h<t){if("identity"===s)return h;"clamp"===s&&(h=t)}if(h>r){if("identity"===o)return h;"clamp"===o&&(h=r)}return a===i?a:t===r?e<=t?a:i:(t===-1/0?h=-h:r===1/0?h-=t:h=(h-t)/(r-t),h=n(h),a===-1/0?h=-h:i===1/0?h+=a:h=h*(i-a)+a,h)}function findRange(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends$2.apply(this,arguments)}const $get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=e=>Boolean(e&&e[$get]),getFluidValue=e=>e&&e[$get]?e[$get]():e,getFluidObservers=e=>e[$observers]||null;function callFluidObserver(e,t){e.eventObserved?e.eventObserved(t):e(t)}function callFluidObservers(e,t){let r=e[$observers];r&&r.forEach((e=>{callFluidObserver(e,t)}))}class FluidValue{constructor(e){if(this[$get]=void 0,this[$observers]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");setFluidGetter(this,e)}}const setFluidGetter=(e,t)=>setHidden(e,$get,t);function addFluidObserver(e,t){if(e[$get]){let r=e[$observers];r||setHidden(e,$observers,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function removeFluidObserver(e,t){let r=e[$observers];if(r&&r.has(t)){const a=r.size-1;a?r.delete(t):e[$observers]=null,e.observerRemoved&&e.observerRemoved(a,t)}}const setHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=e=>{const[t,r]=parseCSSVariable(e);if(!t||isSSR())return e;const a=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(a)return a.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&cssVariableRegex.test(r)?variableToRgba(r):r||e},parseCSSVariable=e=>{const t=cssVariableRegex.exec(e);if(!t)return[,];const[,r,a]=t;return[r,a]};let namedColorRegex;const rgbaRound=(e,t,r,a,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(a)}, ${i})`,createStringInterpolator=e=>{namedColorRegex||(namedColorRegex=colors$1?new RegExp(`(${Object.keys(colors$1).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>getFluidValue(e).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba))),r=t.map((e=>e.match(numberRegex).map(Number))),a=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>createInterpolator(_extends$2({},e,{output:t}))));return e=>{var r;const i=!unitRegex.test(t[0])&&(null==(r=t.find((e=>unitRegex.test(e))))?void 0:r.replace(numberRegex,""));let n=0;return t[0].replace(numberRegex,(()=>`${a[n++](e)}${i||""}`)).replace(rgbaRegex,rgbaRound)}},prefix$1="react-spring: ",once=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${prefix$1}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix$1}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix$1}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString(e){return is.str(e)&&("#"==e[0]||/\d/.test(e)||!isSSR()&&cssVariableRegex.test(e)||e in(colors$1||{}))}const useIsomorphicLayoutEffect=isSSR()?useEffect:useLayoutEffect,useIsMounted=()=>{const e=useRef(!1);return useIsomorphicLayoutEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function useForceUpdate(){const e=useState()[1],t=useIsMounted();return()=>{t.current&&e(Math.random())}}function useMemoOne(e,t){const[r]=useState((()=>({inputs:t,result:e()}))),a=useRef(),i=a.current;let n=i;if(n){Boolean(t&&n.inputs&&areInputsEqual(t,n.inputs))||(n={inputs:t,result:e()})}else n=r;return useEffect((()=>{a.current=n,i==r&&(r.inputs=r.result=void 0)}),[n]),n.result}function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const useOnce=e=>useEffect(e,emptyDeps),emptyDeps=[];function usePrev(e){const t=useRef();return useEffect((()=>{t.current=e})),t.current}const $node=Symbol.for("Animated:node"),isAnimated=e=>!!e&&e[$node]===e,getAnimated=e=>e&&e[$node],setAnimated=(e,t)=>defineHidden(e,$node,t),getPayload=e=>e&&e[$node]&&e[$node].getPayload();class Animated{constructor(){this.payload=void 0,setAnimated(this,this)}getPayload(){return this.payload||[]}}class AnimatedValue extends Animated{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new AnimatedValue(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class AnimatedString extends AnimatedValue{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=createInterpolator({output:[e,e]})}static create(e){return new AnimatedString(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=createInterpolator({output:[this.getValue(),e]})),this._value=0,super.reset()}}const TreeContext={dependencies:null};class AnimatedObject extends Animated{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return eachProp(this.source,((r,a)=>{isAnimated(r)?t[a]=r.getValue(e):hasFluidValue(r)?t[a]=getFluidValue(r):e||(t[a]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&each(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return eachProp(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){TreeContext.dependencies&&hasFluidValue(e)&&TreeContext.dependencies.add(e);const t=getPayload(e);t&&each(t,(e=>this.add(e)))}}class AnimatedArray extends AnimatedObject{constructor(e){super(e)}static create(e){return new AnimatedArray(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(makeAnimated)),!0)}}function makeAnimated(e){return(isAnimatedString(e)?AnimatedString:AnimatedValue).create(e)}function getAnimatedType(e){const t=getAnimated(e);return t?t.constructor:is.arr(e)?AnimatedArray:isAnimatedString(e)?AnimatedString:AnimatedValue}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends$1.apply(this,arguments)}const withAnimated=(e,t)=>{const r=!is.fun(e)||e.prototype&&e.prototype.isReactComponent;return forwardRef(((a,i)=>{const n=useRef(null),s=r&&useCallback((e=>{n.current=updateRef(i,e)}),[i]),[o,l]=getAnimatedState(a,t),h=useForceUpdate(),d=()=>{const e=n.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,o.getValue(!0)))&&h()},c=new PropsObserver(d,l),p=useRef();useIsomorphicLayoutEffect((()=>(p.current=c,each(l,(e=>addFluidObserver(e,c))),()=>{p.current&&(each(p.current.deps,(e=>removeFluidObserver(e,p.current))),raf.cancel(p.current.update))}))),useEffect(d,[]),useOnce((()=>()=>{const e=p.current;each(e.deps,(t=>removeFluidObserver(t,e)))}));const u=t.getComponentProps(o.getValue());return React.createElement(e,_extends$1({},u,{ref:s}))}))};class PropsObserver{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&raf.write(this.update)}}function getAnimatedState(e,t){const r=new Set;return TreeContext.dependencies=r,e.style&&(e=_extends$1({},e,{style:t.createAnimatedStyle(e.style)})),e=new AnimatedObject(e),TreeContext.dependencies=null,[e,r]}function updateRef(e,t){return e&&(is.fun(e)?e(t):e.current=t),t}const cacheKey=Symbol.for("AnimatedComponent"),createHost=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new AnimatedObject(e)),getComponentProps:a=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:a},n=e=>{const t=getDisplayName(e)||"Anonymous";return(e=is.str(e)?n[e]||(n[e]=withAnimated(e,i)):e[cacheKey]||(e[cacheKey]=withAnimated(e,i))).displayName=`Animated(${t})`,e};return eachProp(e,((t,r)=>{is.arr(e)&&(r=getDisplayName(t)),n[r]=n(t)})),{animated:n}},getDisplayName=e=>is.str(e)?e:e&&is.str(e.displayName)?e.displayName:is.fun(e)&&e.name||null;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends.apply(this,arguments)}function callProp(e,...t){return is.fun(e)?e(...t):e}const matchProp=(e,t)=>!0===e||!!(t&&e&&(is.fun(e)?e(t):toArray(e).includes(t))),resolveProp=(e,t)=>is.obj(e)?t&&e[t]:e,getDefaultProp=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,noopTransform=e=>e,getDefaultProps=(e,t=noopTransform)=>{let r=DEFAULT_PROPS;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const a={};for(const i of r){const r=t(e[i],i);is.und(r)||(a[i]=r)}return a},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function getForwardProps(e){const t={};let r=0;if(eachProp(e,((e,a)=>{RESERVED_PROPS[a]||(t[a]=e,r++)})),r)return t}function inferTo(e){const t=getForwardProps(e);if(t){const r={to:t};return eachProp(e,((e,a)=>a in t||(r[a]=e))),r}return _extends({},e)}function computeGoal(e){return e=getFluidValue(e),is.arr(e)?e.map(computeGoal):isAnimatedString(e)?globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function hasProps(e){for(const t in e)return!0;return!1}function isAsyncTo(e){return is.fun(e)||is.arr(e)&&is.obj(e[0])}function detachRefs(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}function replaceRef(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}const config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},c1=1.70158,c2=1.525*c1,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},easings={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>c3*e*e*e-c1*e*e,easeOutBack:e=>1+c3*Math.pow(e-1,3)+c1*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(c2+1)*e-c2)/2:(Math.pow(2*e-2,2)*((c2+1)*(2*e-2)+c2)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*c4),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*c4)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*c5)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*c5)/2+1,easeInBounce:e=>1-bounceOut(1-e),easeOutBounce:bounceOut,easeInOutBounce:e=>e<.5?(1-bounceOut(1-2*e))/2:(1+bounceOut(2*e-1))/2},defaults=_extends({},config.default,{mass:1,damping:1,easing:easings.linear,clamp:!1});class AnimationConfig{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,defaults)}}function mergeConfig(e,t,r){r&&(sanitizeConfig(r=_extends({},r),t),t=_extends({},r,t)),sanitizeConfig(e,t),Object.assign(e,t);for(const t in defaults)null==e[t]&&(e[t]=defaults[t]);let{mass:a,frequency:i,damping:n}=e;return is.und(i)||(i<.01&&(i=.01),n<0&&(n=0),e.tension=Math.pow(2*Math.PI/i,2)*a,e.friction=4*Math.PI*n*a/i),e}function sanitizeConfig(e,t){if(is.und(t.decay)){const r=!is.und(t.tension)||!is.und(t.friction);!r&&is.und(t.frequency)&&is.und(t.damping)&&is.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const emptyArray=[];class Animation{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.to=void 0,this.from=void 0,this.config=new AnimationConfig,this.immediate=!1}}function scheduleProps(e,{key:t,props:r,defaultProps:a,state:i,actions:n}){return new Promise(((s,o)=>{var l;let h,d,c=matchProp(null!=(l=r.cancel)?l:null==a?void 0:a.cancel,t);if(c)m();else{is.und(r.pause)||(i.paused=matchProp(r.pause,t));let e=null==a?void 0:a.pause;!0!==e&&(e=i.paused||matchProp(e,t)),h=callProp(r.delay||0,t),e?(i.resumeQueue.add(u),n.pause()):(n.resume(),u())}function p(){i.resumeQueue.add(u),i.timeouts.delete(d),d.cancel(),h=d.time-raf.now()}function u(){h>0&&!globals.skipAnimation?(i.delayed=!0,d=raf.setTimeout(m,h),i.pauseQueue.add(p),i.timeouts.add(d)):m()}function m(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(p),i.timeouts.delete(d),e<=(i.cancelId||0)&&(c=!0);try{n.start(_extends({},r,{callId:e,cancel:c}),s)}catch(e){o(e)}}}))}const getCombinedResult=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?getCancelledResult(e.get()):t.every((e=>e.noop))?getNoopResult(e.get()):getFinishedResult(e.get(),t.every((e=>e.finished))),getNoopResult=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),getCancelledResult=e=>({value:e,cancelled:!0,finished:!1});function runAsync(e,t,r,a){const{callId:i,parentId:n,onRest:s}=t,{asyncTo:o,promise:l}=r;return n||e!==o||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const h=getDefaultProps(t,((e,t)=>"onRest"===t?void 0:e));let d,c;const p=new Promise(((e,t)=>(d=e,c=t))),u=e=>{const t=i<=(r.cancelId||0)&&getCancelledResult(a)||i!==r.asyncId&&getFinishedResult(a,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{const n=new BailSignal,s=new SkipAniamtionSignal;return(async()=>{if(globals.skipAnimation)throw stopAsync(r),s.result=getFinishedResult(a,!1),c(s),s;u(n);const o=is.obj(e)?_extends({},e):_extends({},t,{to:e});o.parentId=i,eachProp(h,((e,t)=>{is.und(o[t])&&(o[t]=e)}));const l=await a.start(o);return u(n),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let f;if(globals.skipAnimation)return stopAsync(r),getFinishedResult(a,!1);try{let t;t=is.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,a.stop.bind(a))),await Promise.all([t.then(d),p]),f=getFinishedResult(a.get(),!0,!1)}catch(e){if(e instanceof BailSignal)f=e.result;else{if(!(e instanceof SkipAniamtionSignal))throw e;f=e.result}}finally{i==r.asyncId&&(r.asyncId=n,r.asyncTo=n?o:void 0,r.promise=n?l:void 0)}return is.fun(s)&&raf.batchedUpdates((()=>{s(f,a,a.item)})),f})():l}function stopAsync(e,t){flush(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class BailSignal extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class SkipAniamtionSignal extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const isFrameValue=e=>e instanceof FrameValue;let nextId$1=1;class FrameValue extends FluidValue{constructor(...e){super(...e),this.id=nextId$1++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=getAnimated(this);return e&&e.getValue()}to(...e){return globals.to(this,e)}interpolate(...e){return deprecateInterpolate(),globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){callFluidObservers(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:e})}}const $P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=e=>(e[$P]&HAS_ANIMATED)>0,isAnimating=e=>(e[$P]&IS_ANIMATING)>0,isPaused=e=>(e[$P]&IS_PAUSED)>0,setActiveBit=(e,t)=>t?e[$P]|=IS_ANIMATING|HAS_ANIMATED:e[$P]&=~IS_ANIMATING,setPausedBit=(e,t)=>t?e[$P]|=IS_PAUSED:e[$P]&=~IS_PAUSED;class SpringValue extends FrameValue{constructor(e,t){if(super(),this.key=void 0,this.animation=new Animation,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!is.und(e)||!is.und(t)){const r=is.obj(e)?_extends({},e):_extends({},t,{from:e});is.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const e=getAnimated(this);return e instanceof AnimatedValue?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const a=this.animation;let{config:i,toValues:n}=a;const s=getPayload(a.to);!s&&hasFluidValue(a.to)&&(n=toArray(getFluidValue(a.to))),a.values.forEach(((o,l)=>{if(o.done)return;const h=o.constructor==AnimatedString?1:s?s[l].lastPosition:n[l];let d=a.immediate,c=h;if(!d){if(c=o.lastPosition,i.tension<=0)return void(o.done=!0);let t=o.elapsedTime+=e;const r=a.fromValues[l],n=null!=o.v0?o.v0:o.v0=is.arr(i.velocity)?i.velocity[l]:i.velocity;let s;const p=i.precision||(r==h?.005:Math.min(1,.001*Math.abs(h-r)));if(is.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,a=Math.exp(-(1-e)*t);c=r+n/(1-e)*(1-a),d=Math.abs(o.lastPosition-c)<=p,s=n*a}else{s=null==o.lastVelocity?n:o.lastVelocity;const t=i.restVelocity||p/10,a=i.clamp?0:i.bounce,l=!is.und(a),u=r==h?o.v0>0:r<h;let m,f=!1;const g=1,y=Math.ceil(e/g);for(let e=0;e<y&&(m=Math.abs(s)>t,m||(d=Math.abs(h-c)<=p,!d));++e){l&&(f=c==h||c>h==u,f&&(s=-s*a,c=h));s+=(1e-6*-i.tension*(c-h)+.001*-i.friction*s)/i.mass*g,c+=s*g}}else{let a=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,o.durationProgress>0&&(o.elapsedTime=i.duration*o.durationProgress,t=o.elapsedTime+=e)),a=(i.progress||0)+t/this._memoizedDuration,a=a>1?1:a<0?0:a,o.durationProgress=a),c=r+i.easing(a)*(h-r),s=(c-o.lastPosition)/e,d=1==a}o.lastVelocity=s,Number.isNaN(c)&&(console.warn("Got NaN while animating:",this),d=!0)}s&&!s[l].done&&(d=!1),d?o.done=!0:t=!1,o.setValue(c,i.round)&&(r=!0)}));const o=getAnimated(this),l=o.getValue();if(t){const e=getFluidValue(a.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(o.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return raf.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:e,config:t}=this.animation;raf.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return is.und(e)?(r=this.queue||[],this.queue=[]):r=[is.obj(e)?e:_extends({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>getCombinedResult(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),stopAsync(this._state,e&&this._lastCallId),raf.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:a}=e;r=is.obj(r)?r[t]:r,(null==r||isAsyncTo(r))&&(r=void 0),a=is.obj(a)?a[t]:a,null==a&&(a=void 0);const i={to:r,from:a};return hasAnimated(this)||(e.reverse&&([r,a]=[a,r]),a=getFluidValue(a),is.und(a)?getAnimated(this)||this._set(r):this._set(a)),i}_update(e,t){let r=_extends({},e);const{key:a,defaultProps:i}=this;r.default&&Object.assign(i,getDefaultProps(r,((e,t)=>/^on/.test(t)?resolveProp(e,a):e))),mergeActiveFn(this,r,"onProps"),sendEvent(this,"onProps",r,this);const n=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return scheduleProps(++this._lastCallId,{key:a,props:r,defaultProps:i,state:s,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(s.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(s.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,n)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=createLoopUpdate(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(getCancelledResult(this));const a=!is.und(e.to),i=!is.und(e.from);if(a||i){if(!(t.callId>this._lastToId))return r(getCancelledResult(this));this._lastToId=t.callId}const{key:n,defaultProps:s,animation:o}=this,{to:l,from:h}=o;let{to:d=l,from:c=h}=e;!i||a||t.default&&!is.und(d)||(d=c),t.reverse&&([d,c]=[c,d]);const p=!isEqual(c,h);p&&(o.from=c),c=getFluidValue(c);const u=!isEqual(d,l);u&&this._focus(d);const m=isAsyncTo(t.to),{config:f}=o,{decay:g,velocity:y}=f;(a||i)&&(f.velocity=0),t.config&&!m&&mergeConfig(f,callProp(t.config,n),t.config!==s.config?callProp(s.config,n):void 0);let b=getAnimated(this);if(!b||is.und(d))return r(getFinishedResult(this,!0));const v=is.und(t.reset)?i&&!t.default:!is.und(c)&&matchProp(t.reset,n),C=v?c:this.get(),x=computeGoal(d),S=is.num(x)||is.arr(x)||isAnimatedString(x),_=!m&&(!S||matchProp(s.immediate||t.immediate,n));if(u){const e=getAnimatedType(d);if(e!==b.constructor){if(!_)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(x)}}const T=b.constructor;let $=hasFluidValue(d),w=!1;if(!$){const e=v||!hasAnimated(this)&&p;(u||e)&&(w=isEqual(computeGoal(C),x),$=!w),(isEqual(o.immediate,_)||_)&&isEqual(f.decay,g)&&isEqual(f.velocity,y)||($=!0)}if(w&&isAnimating(this)&&(o.changed&&!v?$=!0:$||this._stop(l)),!m&&(($||hasFluidValue(l))&&(o.values=b.getPayload(),o.toValues=hasFluidValue(d)?null:T==AnimatedString?[1]:toArray(x)),o.immediate!=_&&(o.immediate=_,_||v||this._set(l)),$)){const{onRest:e}=o;each(ACTIVE_EVENTS,(e=>mergeActiveFn(this,t,e)));const a=getFinishedResult(this,checkFinished(this,l));flushCalls(this._pendingCalls,a),this._pendingCalls.add(r),o.changed&&raf.batchedUpdates((()=>{o.changed=!v,null==e||e(a,this),v?callProp(s.onRest,a):null==o.onStart||o.onStart(a,this)}))}v&&this._set(C),m?r(runAsync(t.to,t,this._state,this)):$?this._start():isAnimating(this)&&!u?this._pendingCalls.add(r):r(getNoopResult(C))}_focus(e){const t=this.animation;e!==t.to&&(getFluidObservers(this)&&this._detach(),t.to=e,getFluidObservers(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;hasFluidValue(t)&&(addFluidObserver(t,this),isFrameValue(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;hasFluidValue(e)&&removeFluidObserver(e,this)}_set(e,t=!0){const r=getFluidValue(e);if(!is.und(r)){const e=getAnimated(this);if(!e||!isEqual(r,e.getValue())){const a=getAnimatedType(r);e&&e.constructor==a?e.setValue(r):setAnimated(this,a.create(r)),e&&raf.batchedUpdates((()=>{this._onChange(r,t)}))}}return getAnimated(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),callProp(this.animation.onChange,e,this)),callProp(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;getAnimated(this).reset(getFluidValue(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals.skipAnimation?this.finish():frameLoop.start(this)}_stop(e,t){if(isAnimating(this)){setActiveBit(this,!1);const r=this.animation;each(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const a=t?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,null!=e?e:r.to));flushCalls(this._pendingCalls,a),r.changed&&(r.changed=!1,sendEvent(this,"onRest",a,this))}}}function checkFinished(e,t){const r=computeGoal(t);return isEqual(computeGoal(e.get()),r)}function createLoopUpdate(e,t=e.loop,r=e.to){let a=callProp(t);if(a){const i=!0!==a&&inferTo(a),n=(i||e).reverse,s=!i||i.reset;return createUpdate(_extends({},e,{loop:t,default:!1,pause:void 0,to:!n||isAsyncTo(r)?r:void 0,from:s?e.from:void 0,reset:s},i))}}function createUpdate(e){const{to:t,from:r}=e=inferTo(e),a=new Set;return is.obj(t)&&findDefined(t,a),is.obj(r)&&findDefined(r,a),e.keys=a.size?Array.from(a):null,e}function declareUpdate(e){const t=createUpdate(e);return is.und(t.default)&&(t.default=getDefaultProps(t)),t}function findDefined(e,t){eachProp(e,((e,r)=>null!=e&&t.add(r)))}const ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(e,t,r){e.animation[r]=t[r]!==getDefaultProp(t,r)?resolveProp(t[r],e.key):void 0}function sendEvent(e,t,...r){var a,i,n,s;null==(a=(i=e.animation)[t])||a.call(i,...r),null==(n=(s=e.defaultProps)[t])||n.call(s,...r)}const BATCHED_EVENTS=["onStart","onChange","onRest"];let nextId=1;class Controller{constructor(e,t){this.id=nextId++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(_extends({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];is.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(createUpdate(e)),this}start(e){let{queue:t}=this;return e?t=toArray(e).map(createUpdate):this.queue=[],this._flush?this._flush(this,t):(prepareKeys(this,t),flushUpdateQueue(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;each(toArray(t),(t=>r[t].stop(!!e)))}else stopAsync(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(is.und(e))this.start({pause:!0});else{const t=this.springs;each(toArray(e),(e=>t[e].pause()))}return this}resume(e){if(is.und(e))this.start({pause:!1});else{const t=this.springs;each(toArray(e),(e=>t[e].resume()))}return this}each(e){eachProp(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,a=this._active.size>0,i=this._changed.size>0;(a&&!this._started||i&&!this._started)&&(this._started=!0,flush(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const n=!a&&this._started,s=i||n&&r.size?this.get():null;i&&t.size&&flush(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),n&&(this._started=!1,flush(r,(([e,t])=>{t.value=s,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}raf.onFrame(this._onFrame)}}function flushUpdateQueue(e,t){return Promise.all(t.map((t=>flushUpdate(e,t)))).then((t=>getCombinedResult(e,t)))}async function flushUpdate(e,t,r){const{keys:a,to:i,from:n,loop:s,onRest:o,onResolve:l}=t,h=is.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===n&&(t.from=null);const d=is.arr(i)||is.fun(i)?i:void 0;d?(t.to=void 0,t.onRest=void 0,h&&(h.onRest=void 0)):each(BATCHED_EVENTS,(r=>{const a=t[r];if(is.fun(a)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(a);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(a,{value:null,finished:e||!1,cancelled:t||!1})},h&&(h[r]=t[r])}}));const c=e._state;t.pause===!c.paused?(c.paused=t.pause,flushCalls(t.pause?c.pauseQueue:c.resumeQueue)):c.paused&&(t.pause=!0);const p=(a||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),u=!0===t.cancel||!0===getDefaultProp(t,"cancel");(d||u&&c.asyncId)&&p.push(scheduleProps(++e._lastAsyncId,{props:t,state:c,actions:{pause:noop,resume:noop,start(t,r){u?(stopAsync(c,e._lastAsyncId),r(getCancelledResult(e))):(t.onRest=o,r(runAsync(d,t,c,e)))}}})),c.paused&&await new Promise((e=>{c.resumeQueue.add(e)}));const m=getCombinedResult(e,await Promise.all(p));if(s&&m.finished&&(!r||!m.noop)){const r=createLoopUpdate(t,s,i);if(r)return prepareKeys(e,[r]),flushUpdate(e,r,!0)}return l&&raf.batchedUpdates((()=>l(m,e,e.item))),m}function getSprings(e,t){const r=_extends({},e.springs);return t&&each(toArray(t),(e=>{is.und(e.keys)&&(e=createUpdate(e)),is.obj(e.to)||(e=_extends({},e,{to:void 0})),prepareSprings(r,e,(e=>createSpring(e)))})),setSprings(e,r),r}function setSprings(e,t){eachProp(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,addFluidObserver(t,e))}))}function createSpring(e,t){const r=new SpringValue;return r.key=e,t&&addFluidObserver(r,t),r}function prepareSprings(e,t,r){t.keys&&each(t.keys,(a=>{(e[a]||(e[a]=r(a)))._prepareNode(t)}))}function prepareKeys(e,t){each(t,(t=>{prepareSprings(e.springs,t,(t=>createSpring(t,e)))}))}function _objectWithoutPropertiesLoose$2(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}const _excluded$3=["children"],SpringContext=e=>{let{children:t}=e,r=_objectWithoutPropertiesLoose$2(e,_excluded$3);const a=useContext(ctx),i=r.pause||!!a.pause,n=r.immediate||!!a.immediate;r=useMemoOne((()=>({pause:i,immediate:n})),[i,n]);const{Provider:s}=ctx;return React.createElement(s,{value:r},t)},ctx=makeContext(SpringContext,{});function makeContext(e,t){return Object.assign(e,React.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}SpringContext.Provider=ctx.Provider,SpringContext.Consumer=ctx.Consumer;const SpringRef=()=>{const e=[],t=function(t){deprecateDirectCall();const a=[];return each(e,((e,i)=>{if(is.und(t))a.push(e.start());else{const n=r(t,e,i);n&&a.push(e.start(n))}})),a};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return each(e,(e=>e.pause(...arguments))),this},t.resume=function(){return each(e,(e=>e.resume(...arguments))),this},t.set=function(t){each(e,(e=>e.set(t)))},t.start=function(t){const r=[];return each(e,((e,a)=>{if(is.und(t))r.push(e.start());else{const i=this._getProps(t,e,a);i&&r.push(e.start(i))}})),r},t.stop=function(){return each(e,(e=>e.stop(...arguments))),this},t.update=function(t){return each(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return is.fun(e)?e(r,t):e};return t._getProps=r,t};function useSprings(e,t,r){const a=is.fun(t)&&t;a&&!r&&(r=[]);const i=useMemo((()=>a||3==arguments.length?SpringRef():void 0),[]),n=useRef(0),s=useForceUpdate(),o=useMemo((()=>({ctrls:[],queue:[],flush(e,t){const r=getSprings(e,t);return n.current>0&&!o.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?flushUpdateQueue(e,t):new Promise((a=>{setSprings(e,r),o.queue.push((()=>{a(flushUpdateQueue(e,t))})),s()}))}})),[]),l=useRef([...o.ctrls]),h=[],d=usePrev(e)||0;function c(e,r){for(let i=e;i<r;i++){const e=l.current[i]||(l.current[i]=new Controller(null,o.flush)),r=a?a(i,e):t[i];r&&(h[i]=declareUpdate(r))}}useMemo((()=>{each(l.current.slice(e,d),(e=>{detachRefs(e,i),e.stop(!0)})),l.current.length=e,c(d,e)}),[e]),useMemo((()=>{c(0,Math.min(d,e))}),r);const p=l.current.map(((e,t)=>getSprings(e,h[t]))),u=useContext(SpringContext),m=usePrev(u),f=u!==m&&hasProps(u);useIsomorphicLayoutEffect((()=>{n.current++,o.ctrls=l.current;const{queue:e}=o;e.length&&(o.queue=[],each(e,(e=>e()))),each(l.current,((e,t)=>{null==i||i.add(e),f&&e.start({default:u});const r=h[t];r&&(replaceRef(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),useOnce((()=>()=>{each(o.ctrls,(e=>e.stop(!0)))}));const g=p.map((e=>_extends({},e)));return i?[g,i]:g}function useSpring(e,t){const r=is.fun(e),[[a],i]=useSprings(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[a,i]:a}let TransitionPhase;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(TransitionPhase||(TransitionPhase={}));class Interpolation extends FrameValue{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=createInterpolator(...t);const r=this._get(),a=getAnimatedType(r);setAnimated(this,a.create(r))}advance(e){const t=this._get();isEqual(t,this.get())||(getAnimated(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const e=is.arr(this.source)?this.source.map(getFluidValue):toArray(getFluidValue(this.source));return this.calc(...e)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each(getPayload(this),(e=>{e.done=!1})),globals.skipAnimation?(raf.batchedUpdates((()=>this.advance())),becomeIdle(this)):frameLoop.start(this))}_attach(){let e=1;each(toArray(this.source),(t=>{hasFluidValue(t)&&addFluidObserver(t,this),isFrameValue(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){each(toArray(this.source),(e=>{hasFluidValue(e)&&removeFluidObserver(e,this)})),this._active.clear(),becomeIdle(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=toArray(this.source).reduce(((e,t)=>Math.max(e,(isFrameValue(t)?t.priority:0)+1)),0))}}function isIdle(e){return!1!==e.idle}function checkIdle(e){return!e.size||Array.from(e).every(isIdle)}function becomeIdle(e){e.idle||(e.idle=!0,each(getPayload(e),(e=>{e.done=!0})),callFluidObservers(e,{type:"idle",parent:e}))}function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}globals.assign({createStringInterpolator:createStringInterpolator,to:(e,t)=>new Interpolation(e,t)});const _excluded$2=["style","children","scrollTop","scrollLeft"],isCustomPropRE=/^--/;function dangerousStyleValue(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||isCustomPropRE.test(e)||isUnitlessNumber.hasOwnProperty(e)&&isUnitlessNumber[e]?(""+t).trim():t+"px"}const attributeCache={};function applyAnimatedValues(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,a=t,{style:i,children:n,scrollTop:s,scrollLeft:o}=a,l=_objectWithoutPropertiesLoose$1(a,_excluded$2),h=Object.values(l),d=Object.keys(l).map((t=>r||e.hasAttribute(t)?t:attributeCache[t]||(attributeCache[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==n&&(e.textContent=n);for(let t in i)if(i.hasOwnProperty(t)){const r=dangerousStyleValue(t,i[t]);isCustomPropRE.test(t)?e.style.setProperty(t,r):e.style[t]=r}d.forEach(((t,r)=>{e.setAttribute(t,h[r])})),void 0!==s&&(e.scrollTop=s),void 0!==o&&(e.scrollLeft=o)}let isUnitlessNumber={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const prefixKey=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),prefixes=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce(((e,t)=>(prefixes.forEach((r=>e[prefixKey(r,t)]=e[t])),e)),isUnitlessNumber);const _excluded$1$1=["x","y","z"],domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(e,t)=>is.num(e)&&0!==e?e+t:e,isValueIdentity=(e,t)=>is.arr(e)?e.every((e=>isValueIdentity(e,t))):is.num(e)?e===t:parseFloat(e)===t;class AnimatedStyle extends AnimatedObject{constructor(e){let{x:t,y:r,z:a}=e,i=_objectWithoutPropertiesLoose$1(e,_excluded$1$1);const n=[],s=[];(t||r||a)&&(n.push([t||0,r||0,a||0]),s.push((e=>[`translate3d(${e.map((e=>addUnit(e,"px"))).join(",")})`,isValueIdentity(e,0)]))),eachProp(i,((e,t)=>{if("transform"===t)n.push([e||""]),s.push((e=>[e,""===e]));else if(domTransforms.test(t)){if(delete i[t],is.und(e))return;const r=pxTransforms.test(t)?"px":degTransforms.test(t)?"deg":"";n.push(toArray(e)),s.push("rotate3d"===t?([e,t,a,i])=>[`rotate3d(${e},${t},${a},${addUnit(i,r)})`,isValueIdentity(i,0)]:e=>[`${t}(${e.map((e=>addUnit(e,r))).join(",")})`,isValueIdentity(e,t.startsWith("scale")?1:0)])}})),n.length&&(i.transform=new FluidTransform(n,s)),super(i)}}class FluidTransform extends FluidValue{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return each(this.inputs,((r,a)=>{const i=getFluidValue(r[0]),[n,s]=this.transforms[a](is.arr(i)?i:r.map(getFluidValue));e+=" "+n,t=t&&s})),t?"none":e}observerAdded(e){1==e&&each(this.inputs,(e=>each(e,(e=>hasFluidValue(e)&&addFluidObserver(e,this)))))}observerRemoved(e){0==e&&each(this.inputs,(e=>each(e,(e=>hasFluidValue(e)&&removeFluidObserver(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),callFluidObservers(this,e)}}const primitives=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],_excluded=["scrollTop","scrollLeft"];globals.assign({batchedUpdates:unstable_batchedUpdates,createStringInterpolator:createStringInterpolator,colors:colors});const host=createHost(primitives,{applyAnimatedValues:applyAnimatedValues,createAnimatedStyle:e=>new AnimatedStyle(e),getComponentProps:e=>_objectWithoutPropertiesLoose$1(e,_excluded)}),animated=host.animated,AccordionContext=React__default.createContext(!1);var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},chevronUp={},ChevronUpIcon;Object.defineProperty(chevronUp,"__esModule",{value:!0});var e$f=require$$0;const r$5=e=>e$f.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:e$f.jsx("path",{d:"M17.7279 14.2091C17.5059 14.4311 17.2492 14.5421 16.9579 14.5421C16.6659 14.5421 16.4089 14.4311 16.1869 14.2091L10.1659 8.18812L4.12389 14.2301C3.91589 14.4381 3.66589 14.5421 3.37389 14.5421C3.08256 14.5421 2.82589 14.4311 2.60389 14.2091C2.39523 14.0005 2.29089 13.7468 2.29089 13.4481C2.29089 13.1495 2.39523 12.8961 2.60389 12.6881L9.54089 5.75012C9.63823 5.65346 9.73889 5.58412 9.84289 5.54212C9.94689 5.50079 10.0546 5.48012 10.1659 5.48012C10.2772 5.48012 10.3849 5.50079 10.4889 5.54212C10.5929 5.58412 10.6936 5.65346 10.7909 5.75012L17.7489 12.7091C17.9716 12.9311 18.0759 13.1845 18.0619 13.4691C18.0479 13.7538 17.9366 14.0005 17.7279 14.2091Z",fill:"currentColor"})});r$5.displayName="ChevronUpIcon",ChevronUpIcon=chevronUp.ChevronUpIcon=r$5;const BaseColorSet={Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}},BookingSGColorSet={Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}};var isArray$9=Array.isArray,isArray_1=isArray$9,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$5=root$8.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty,nativeObjectToString$1=objectProto$b.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(e){var t=hasOwnProperty$9.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var a=!0}catch(e){}var i=nativeObjectToString$1.call(e);return a&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),i}var _getRawTag=getRawTag$1,objectProto$a=Object.prototype,nativeObjectToString=objectProto$a.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$5;function isObjectLike$5(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$5,baseGetTag$4=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag$1="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$4(e)&&baseGetTag$4(e)==symbolTag$1}var isSymbol_1=isSymbol$4,isArray$8=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(e,t){if(isArray$8(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol$3(e))||(reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$3;function isObject$5(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$5,baseGetTag$3=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){if(!isObject$4(e))return!1;var t=baseGetTag$3(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var isFunction_1=isFunction$2,root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""),uid?"Symbol(src)_1."+uid:""),uid;function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$3(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$2(e,t){return null==e?void 0:e[t]}var _getValue=getValue$2,baseIsNative=_baseIsNative,getValue$1=_getValue;function getNative$6(e,t){var r=getValue$1(e,t);return baseIsNative(r)?r:void 0}var _getNative=getNative$6,getNative$5=_getNative,nativeCreate$4=getNative$5(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(e){var t=this.__data__;if(nativeCreate$2){var r=t[e];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$7.call(t,e)?t[e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?void 0!==t[e]:hasOwnProperty$6.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var r=e.length;r--;)if(eq$1(e[r][0],t))return r;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,r=assocIndexOf$3(t,e);return!(r<0)&&(r==t.length-1?t.pop():splice.call(t,r,1),--this.size,!0)}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,r=assocIndexOf$2(t,e);return r<0?void 0:t[r][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return assocIndexOf$1(this.__data__,e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var r=this.__data__,a=assocIndexOf(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$4=_getNative,root$6=_root,Map$4=getNative$4(root$6,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,t){var r=e.__data__;return isKeyable(t)?r["string"==typeof t?"string":"hash"]:r.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){var t=getMapData$3(this,e).delete(e);return this.size-=t?1:0,t}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,t){var r=getMapData(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,MapCache$2=_MapCache,FUNC_ERROR_TEXT$1="Expected a function";function memoize$1(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT$1);var r=function(){var a=arguments,i=t?t.apply(this,a):a[0],n=r.cache;if(n.has(i))return n.get(i);var s=e.apply(this,a);return r.cache=n.set(i,s)||n,s};return r.cache=new(memoize$1.Cache||MapCache$2),r}memoize$1.Cache=MapCache$2;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var t=memoize(e,(function(e){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),e})),r=t.cache;return t}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rePropName,(function(e,r,a,i){t.push(a?i.replace(reEscapeChar,"$1"):r||e)})),t})),_stringToPath=stringToPath$1;function arrayMap$1(e,t){for(var r=-1,a=null==e?0:e.length,i=Array(a);++r<a;)i[r]=t(e[r],r,e);return i}var _arrayMap=arrayMap$1,Symbol$2=_Symbol,arrayMap=_arrayMap,isArray$7=isArray_1,isSymbol$2=isSymbol_1,INFINITY$2=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(e){if("string"==typeof e)return e;if(isArray$7(e))return arrayMap(e,baseToString$1)+"";if(isSymbol$2(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY$2?"-0":t}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$3(e){return null==e?"":baseToString(e)}var toString_1=toString$3,isArray$6=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString$2=toString_1;function castPath$2(e,t){return isArray$6(e)?e:isKey$2(e,t)?[e]:stringToPath(toString$2(e))}var _castPath=castPath$2,isSymbol$1=isSymbol_1,INFINITY$1=1/0;function toKey$4(e){if("string"==typeof e||isSymbol$1(e))return e;var t=e+"";return"0"==t&&1/e==-INFINITY$1?"-0":t}var _toKey=toKey$4,castPath$1=_castPath,toKey$3=_toKey;function baseGet$2(e,t){for(var r=0,a=(t=castPath$1(t,e)).length;null!=e&&r<a;)e=e[toKey$3(t[r++])];return r&&r==a?e:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$1(e,t,r){var a=null==e?void 0:baseGet$1(e,t);return void 0===a?r:a}var get_1=get$1;const getValue=(e,t,r)=>t?get_1(r,t)||get_1(e,t):r||e,getCollection=(e,t)=>{const r=t||e.defaultValue;return get_1(e.collections,r)};var ThemeContextKeys;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme"}(ThemeContextKeys||(ThemeContextKeys={}));const ColorSpec={collections:{base:BaseColorSet,bookingsg:BookingSGColorSet},defaultValue:"base"},getThemeColors=e=>t=>{const r=t.theme,a=getCollection(ColorSpec,r[ThemeContextKeys.colorScheme]);return r.options&&r.options.color?getValue(a,e,r.options.color):getValue(a,e)},Color={Brand:{1:getThemeColors("Brand.1"),2:getThemeColors("Brand.2"),3:getThemeColors("Brand.3"),4:getThemeColors("Brand.4"),5:getThemeColors("Brand.5"),6:getThemeColors("Brand.6")},Primary:getThemeColors("Primary"),PrimaryDark:getThemeColors("PrimaryDark"),Secondary:getThemeColors("Secondary"),Accent:{Light:{1:getThemeColors("Accent.Light.1"),2:getThemeColors("Accent.Light.2"),3:getThemeColors("Accent.Light.3"),4:getThemeColors("Accent.Light.4"),5:getThemeColors("Accent.Light.5"),6:getThemeColors("Accent.Light.6")},Dark:{1:getThemeColors("Accent.Dark.1"),2:getThemeColors("Accent.Dark.2"),3:getThemeColors("Accent.Dark.3")}},Neutral:{1:getThemeColors("Neutral.1"),2:getThemeColors("Neutral.2"),3:getThemeColors("Neutral.3"),4:getThemeColors("Neutral.4"),5:getThemeColors("Neutral.5"),6:getThemeColors("Neutral.6"),7:getThemeColors("Neutral.7"),8:getThemeColors("Neutral.8")},Validation:{Green:{Text:getThemeColors("Validation.Green.Text"),Icon:getThemeColors("Validation.Green.Icon"),Border:getThemeColors("Validation.Green.Border"),Background:getThemeColors("Validation.Green.Background")},Orange:{Text:getThemeColors("Validation.Orange.Text"),Icon:getThemeColors("Validation.Orange.Icon"),Border:getThemeColors("Validation.Orange.Border"),Background:getThemeColors("Validation.Orange.Background"),Badge:getThemeColors("Validation.Orange.Badge")},Red:{Text:getThemeColors("Validation.Red.Text"),Icon:getThemeColors("Validation.Red.Icon"),Border:getThemeColors("Validation.Red.Border"),Background:getThemeColors("Validation.Red.Background")}}},Main$1=styled.button`
|
|
1
|
+
import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";import React__default,{cloneElement,useRef,useState,isValidElement,createRef,PureComponent,useEffect,useLayoutEffect,forwardRef,useCallback,useContext,useMemo,Children,createElement}from"react";import ReactDOM,{findDOMNode,unstable_batchedUpdates}from"react-dom";import styled,{css,keyframes}from"styled-components";var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)};function __rest(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r}var commonjsGlobal$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function isObject$3$1(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1$1=isObject$3$1,freeGlobal$1$1="object"==typeof commonjsGlobal$1&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal$1=freeGlobal$1$1,freeGlobal$2=_freeGlobal$1,freeSelf$1="object"==typeof self&&self&&self.Object===Object&&self,root$2$1=freeGlobal$2||freeSelf$1||Function("return this")(),_root$1=root$2$1,root$1$1=_root$1,now$1$1=function(){return root$1$1.Date.now()},now_1$1=now$1$1,reWhitespace$1=/\s/;function trimmedEndIndex$1$1(e){for(var t=e.length;t--&&reWhitespace$1.test(e.charAt(t)););return t}var _trimmedEndIndex$1=trimmedEndIndex$1$1,trimmedEndIndex$2=_trimmedEndIndex$1,reTrimStart$1=/^\s+/;function baseTrim$1$1(e){return e?e.slice(0,trimmedEndIndex$2(e)+1).replace(reTrimStart$1,""):e}var _baseTrim$1=baseTrim$1$1,root$a=_root$1,Symbol$2$1=root$a.Symbol,_Symbol$1=Symbol$2$1,Symbol$1$1=_Symbol$1,objectProto$1$1=Object.prototype,hasOwnProperty$a=objectProto$1$1.hasOwnProperty,nativeObjectToString$1$1=objectProto$1$1.toString,symToStringTag$1$1=Symbol$1$1?Symbol$1$1.toStringTag:void 0;function getRawTag$1$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1$1),r=e[symToStringTag$1$1];try{e[symToStringTag$1$1]=void 0;var a=!0}catch(e){}var i=nativeObjectToString$1$1.call(e);return a&&(t?e[symToStringTag$1$1]=r:delete e[symToStringTag$1$1]),i}var _getRawTag$1=getRawTag$1$1,objectProto$c=Object.prototype,nativeObjectToString$2=objectProto$c.toString;function objectToString$1$1(e){return nativeObjectToString$2.call(e)}var _objectToString$1=objectToString$1$1,Symbol$6=_Symbol$1,getRawTag$2=_getRawTag$1,objectToString$2=_objectToString$1,nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$6?Symbol$6.toStringTag:void 0;function baseGetTag$1$1(e){return null==e?void 0===e?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(e)?getRawTag$2(e):objectToString$2(e)}var _baseGetTag$1=baseGetTag$1$1;function isObjectLike$1$1(e){return null!=e&&"object"==typeof e}var isObjectLike_1$1=isObjectLike$1$1,baseGetTag$6=_baseGetTag$1,isObjectLike$6=isObjectLike_1$1,symbolTag$2="[object Symbol]";function isSymbol$1$1(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$6(e)==symbolTag$2}var isSymbol_1$1=isSymbol$1$1,baseTrim$2=_baseTrim$1,isObject$2$1=isObject_1$1,isSymbol$5=isSymbol_1$1,NAN$1=NaN,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$1$1(e){if("number"==typeof e)return e;if(isSymbol$5(e))return NAN$1;if(isObject$2$1(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2$1(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim$2(e);var r=reIsBinary$1.test(e);return r||reIsOctal$1.test(e)?freeParseInt$1(e.slice(2),r?2:8):reIsBadHex$1.test(e)?NAN$1:+e}var toNumber_1$1=toNumber$1$1,isObject$1$1=isObject_1$1,now$2=now_1$1,toNumber$3=toNumber_1$1,FUNC_ERROR_TEXT$1$1="Expected a function",nativeMax$2=Math.max,nativeMin$1=Math.min;function debounce$1(e,t,r){var a,i,n,s,o,l,h=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1$1);function u(t){var r=a,n=i;return a=i=void 0,h=t,s=e.apply(n,r)}function m(e){return h=e,o=setTimeout(g,t),c?u(e):s}function f(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-h>=n}function g(){var e=now$2();if(f(e))return y(e);o=setTimeout(g,function(e){var r=t-(e-l);return d?nativeMin$1(r,n-(e-h)):r}(e))}function y(e){return o=void 0,p&&a?u(e):(a=i=void 0,s)}function b(){var e=now$2(),r=f(e);if(a=arguments,i=this,l=e,r){if(void 0===o)return m(l);if(d)return clearTimeout(o),o=setTimeout(g,t),u(l)}return void 0===o&&(o=setTimeout(g,t)),s}return t=toNumber$3(t)||0,isObject$1$1(r)&&(c=!!r.leading,n=(d="maxWait"in r)?nativeMax$2(toNumber$3(r.maxWait)||0,t):n,p="trailing"in r?!!r.trailing:p),b.cancel=function(){void 0!==o&&clearTimeout(o),h=0,a=l=i=o=void 0},b.flush=function(){return void 0===o?s:y(now$2())},b}var debounce_1$1=debounce$1,debounce$2=debounce_1$1,isObject$6=isObject_1$1,FUNC_ERROR_TEXT$2="Expected a function";function throttle(e,t,r){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$2);return isObject$6(r)&&(a="leading"in r?!!r.leading:a,i="trailing"in r?!!r.trailing:i),debounce$2(e,t,{leading:a,maxWait:t,trailing:i})}var throttle_1=throttle,patchResizeHandler=function(e,t,r,a){switch(t){case"debounce":return debounce_1$1(e,r,a);case"throttle":return throttle_1(e,r,a);default:return e}},isFunction$3=function(e){return"function"==typeof e},isSSR$1=function(){return"undefined"==typeof window},isDOMElement=function(e){return e instanceof Element||e instanceof HTMLDocument},createNotifier=function(e,t,r,a){return function(i){var n=i.width,s=i.height;t((function(t){return t.width===n&&t.height===s||t.width===n&&!a||t.height===s&&!r?t:(e&&isFunction$3(e)&&e(n,s),{width:n,height:s})}))}};!function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,a=e.observerOptions;if(!isSSR$1()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,a)))}},r.getElement=function(){var e=r.props,t=e.querySelector,a=e.targetDomEl;if(isSSR$1())return null;if(t)return document.querySelector(t);if(a&&isDOMElement(a))return a;if(r.targetRef&&isDOMElement(r.targetRef.current))return r.targetRef.current;var i=findDOMNode(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,a=t.handleWidth,i=void 0===a||a,n=t.handleHeight,s=void 0===n||n,o=t.onResize;if(i||s){var l=createNotifier(o,r.setState.bind(r),i,s);e.forEach((function(e){var t=e&&e.contentRect||{},a=t.width,i=t.height;!r.skipOnMount&&!isSSR$1()&&l({width:a,height:i}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,a=e.children;return isFunction$3(t)?"renderProp":isFunction$3(a)?"childFunction":isValidElement(a)?"child":Array.isArray(a)?"childArray":"parent"};var a=t.skipOnMount,i=t.refreshMode,n=t.refreshRate,s=void 0===n?1e3:n,o=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=a,r.targetRef=createRef(),r.observableElement=null,isSSR$1()||(r.resizeHandler=patchResizeHandler(r.createResizeHandler,i,s,o),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}__extends(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){isSSR$1()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,a=t.children,i=t.nodeType,n=void 0===i?"div":i,s=this.state,o={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(o);case"childFunction":return(e=a)(o);case"child":if((e=a).type&&"string"==typeof e.type){var l=__rest(o,["targetRef"]);return cloneElement(e,l)}return cloneElement(e,o);case"childArray":return(e=a).map((function(e){return!!e&&cloneElement(e,o)}));default:return React.createElement(n,null)}}}(PureComponent);var useEnhancedEffect=isSSR$1()?useEffect:useLayoutEffect;function useResizeDetector(e){void 0===e&&(e={});var t=e.skipOnMount,r=void 0!==t&&t,a=e.refreshMode,i=e.refreshRate,n=void 0===i?1e3:i,s=e.refreshOptions,o=e.handleWidth,l=void 0===o||o,h=e.handleHeight,c=void 0===h||h,d=e.targetRef,p=e.observerOptions,u=e.onResize,m=useRef(r),f=useRef(null),g=null!=d?d:f,y=useRef(),b=useState({width:void 0,height:void 0}),v=b[0],x=b[1];return useEnhancedEffect((function(){if(!isSSR$1()){var e=createNotifier(u,x,l,c);y.current=patchResizeHandler((function(t){(l||c)&&t.forEach((function(t){var r=t&&t.contentRect||{},a=r.width,i=r.height;!m.current&&!isSSR$1()&&e({width:a,height:i}),m.current=!1}))}),a,n,s);var t=new window.ResizeObserver(y.current);return g.current&&t.observe(g.current,p),function(){t.disconnect();var e=y.current;e&&e.cancel&&e.cancel()}}}),[a,n,s,l,c,u,p,g.current]),__assign({ref:g},v)}let updateQueue=makeQueue();const raf=e=>schedule(e,updateQueue);let writeQueue=makeQueue();raf.write=e=>schedule(e,writeQueue);let onStartQueue=makeQueue();raf.onStart=e=>schedule(e,onStartQueue);let onFrameQueue=makeQueue();raf.onFrame=e=>schedule(e,onFrameQueue);let onFinishQueue=makeQueue();raf.onFinish=e=>schedule(e,onFinishQueue);let timeouts=[];raf.setTimeout=(e,t)=>{let r=raf.now()+t,a=()=>{let e=timeouts.findIndex((e=>e.cancel==a));~e&&timeouts.splice(e,1),pendingCount-=~e?1:0},i={time:r,handler:e,cancel:a};return timeouts.splice(findTimeout(r),0,i),pendingCount+=1,start(),i};let findTimeout=e=>~(~timeouts.findIndex((t=>t.time>e))||~timeouts.length);raf.cancel=e=>{onStartQueue.delete(e),onFrameQueue.delete(e),onFinishQueue.delete(e),updateQueue.delete(e),writeQueue.delete(e)},raf.sync=e=>{sync=!0,raf.batchedUpdates(e),sync=!1},raf.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function a(...e){t=e,raf.onStart(r)}return a.handler=e,a.cancel=()=>{onStartQueue.delete(r),t=null},a};let nativeRaf="undefined"!=typeof window?window.requestAnimationFrame:()=>{};raf.use=e=>nativeRaf=e,raf.now="undefined"!=typeof performance?()=>performance.now():Date.now,raf.batchedUpdates=e=>e(),raf.catch=console.error,raf.frameLoop="always",raf.advance=()=>{"demand"!==raf.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};let ts=-1,pendingCount=0,sync=!1;function schedule(e,t){sync?(t.delete(e),e(0)):(t.add(e),start())}function start(){ts<0&&(ts=0,"demand"!==raf.frameLoop&&nativeRaf(loop))}function stop(){ts=-1}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){let e=ts;ts=raf.now();let t=findTimeout(ts);t&&(eachSafely(timeouts.splice(0,t),(e=>e.handler())),pendingCount-=t),pendingCount?(onStartQueue.flush(),updateQueue.flush(e?Math.min(64,ts-e):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()):stop()}function makeQueue(){let e=new Set,t=e;return{add(r){pendingCount+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(pendingCount-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,pendingCount-=t.size,eachSafely(t,(t=>t(r)&&e.add(t))),pendingCount+=e.size,t=e)}}}function eachSafely(e,t){e.forEach((e=>{try{t(e)}catch(e){raf.catch(e)}}))}function noop(){}const defineHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),is={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function isEqual(e,t){if(is.arr(e)){if(!is.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const each=(e,t)=>e.forEach(t);function eachProp(e,t,r){if(is.arr(e))for(let a=0;a<e.length;a++)t.call(r,e[a],`${a}`);else for(const a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a)}const toArray=e=>is.und(e)?[]:is.arr(e)?e:[e];function flush(e,t){if(e.size){const r=Array.from(e);e.clear(),each(r,t)}}const flushCalls=(e,...t)=>flush(e,(e=>e(...t))),isSSR=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let createStringInterpolator$1,to,colors$1=null,skipAnimation=!1,willAdvance=noop;const assign=e=>{e.to&&(to=e.to),e.now&&(raf.now=e.now),void 0!==e.colors&&(colors$1=e.colors),null!=e.skipAnimation&&(skipAnimation=e.skipAnimation),e.createStringInterpolator&&(createStringInterpolator$1=e.createStringInterpolator),e.requestAnimationFrame&&raf.use(e.requestAnimationFrame),e.batchedUpdates&&(raf.batchedUpdates=e.batchedUpdates),e.willAdvance&&(willAdvance=e.willAdvance),e.frameLoop&&(raf.frameLoop=e.frameLoop)};var globals=Object.freeze({__proto__:null,get createStringInterpolator(){return createStringInterpolator$1},get to(){return to},get colors(){return colors$1},get skipAnimation(){return skipAnimation},get willAdvance(){return willAdvance},assign:assign});const startQueue=new Set;let currentFrame=[],prevFrame=[],priority=0;const frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(e){priority>e.priority?(startQueue.add(e),raf.onStart(flushStartQueue)):(startSafely(e),raf(advance))},advance:advance,sort(e){if(priority)raf.onFrame((()=>frameLoop.sort(e)));else{const t=currentFrame.indexOf(e);~t&&(currentFrame.splice(t,1),startUnsafely(e))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(e){currentFrame.includes(e)||startUnsafely(e)}function startUnsafely(e){currentFrame.splice(findIndex$1(currentFrame,(t=>t.priority>e.priority)),0,e)}function advance(e){const t=prevFrame;for(let r=0;r<currentFrame.length;r++){const a=currentFrame[r];priority=a.priority,a.idle||(willAdvance(a),a.advance(e),a.idle||t.push(a))}return priority=0,prevFrame=currentFrame,prevFrame.length=0,currentFrame=t,currentFrame.length>0}function findIndex$1(e,t){const r=e.findIndex(t);return r<0?e.length:r}const colors={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hex6.exec(e))?parseInt(t[1]+"ff",16)>>>0:colors$1&&void 0!==colors$1[e]?colors$1[e]:(t=rgb.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|255)>>>0:(t=rgba.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|parse1(t[4]))>>>0:(t=hex3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hex8.exec(e))?parseInt(t[1],16)>>>0:(t=hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hsl.exec(e))?(255|hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3])))>>>0:(t=hsla.exec(e))?(hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3]))|parse1(t[4]))>>>0:null}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e,t,r){const a=r<.5?r*(1+t):r+t-r*t,i=2*r-a,n=hue2rgb(i,a,e+1/3),s=hue2rgb(i,a,e),o=hue2rgb(i,a,e-1/3);return Math.round(255*n)<<24|Math.round(255*s)<<16|Math.round(255*o)<<8}function parse255(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function parse360(e){return(parseFloat(e)%360+360)%360/360}function parse1(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function parsePercentage(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function colorToRgba(e){let t=normalizeColor(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const createInterpolator=(e,t,r)=>{if(is.fun(e))return e;if(is.arr(e))return createInterpolator({range:e,output:t,extrapolate:r});if(is.str(e.output[0]))return createStringInterpolator$1(e);const a=e,i=a.output,n=a.range||[0,1],s=a.extrapolateLeft||a.extrapolate||"extend",o=a.extrapolateRight||a.extrapolate||"extend",l=a.easing||(e=>e);return e=>{const t=findRange(e,n);return interpolate(e,n[t],n[t+1],i[t],i[t+1],l,s,o,a.map)}};function interpolate(e,t,r,a,i,n,s,o,l){let h=l?l(e):e;if(h<t){if("identity"===s)return h;"clamp"===s&&(h=t)}if(h>r){if("identity"===o)return h;"clamp"===o&&(h=r)}return a===i?a:t===r?e<=t?a:i:(t===-1/0?h=-h:r===1/0?h-=t:h=(h-t)/(r-t),h=n(h),a===-1/0?h=-h:i===1/0?h+=a:h=h*(i-a)+a,h)}function findRange(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends$2.apply(this,arguments)}const $get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=e=>Boolean(e&&e[$get]),getFluidValue=e=>e&&e[$get]?e[$get]():e,getFluidObservers=e=>e[$observers]||null;function callFluidObserver(e,t){e.eventObserved?e.eventObserved(t):e(t)}function callFluidObservers(e,t){let r=e[$observers];r&&r.forEach((e=>{callFluidObserver(e,t)}))}class FluidValue{constructor(e){if(this[$get]=void 0,this[$observers]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");setFluidGetter(this,e)}}const setFluidGetter=(e,t)=>setHidden(e,$get,t);function addFluidObserver(e,t){if(e[$get]){let r=e[$observers];r||setHidden(e,$observers,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function removeFluidObserver(e,t){let r=e[$observers];if(r&&r.has(t)){const a=r.size-1;a?r.delete(t):e[$observers]=null,e.observerRemoved&&e.observerRemoved(a,t)}}const setHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=e=>{const[t,r]=parseCSSVariable(e);if(!t||isSSR())return e;const a=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(a)return a.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&cssVariableRegex.test(r)?variableToRgba(r):r||e},parseCSSVariable=e=>{const t=cssVariableRegex.exec(e);if(!t)return[,];const[,r,a]=t;return[r,a]};let namedColorRegex;const rgbaRound=(e,t,r,a,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(a)}, ${i})`,createStringInterpolator=e=>{namedColorRegex||(namedColorRegex=colors$1?new RegExp(`(${Object.keys(colors$1).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>getFluidValue(e).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba))),r=t.map((e=>e.match(numberRegex).map(Number))),a=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>createInterpolator(_extends$2({},e,{output:t}))));return e=>{var r;const i=!unitRegex.test(t[0])&&(null==(r=t.find((e=>unitRegex.test(e))))?void 0:r.replace(numberRegex,""));let n=0;return t[0].replace(numberRegex,(()=>`${a[n++](e)}${i||""}`)).replace(rgbaRegex,rgbaRound)}},prefix$1="react-spring: ",once=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${prefix$1}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix$1}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix$1}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString(e){return is.str(e)&&("#"==e[0]||/\d/.test(e)||!isSSR()&&cssVariableRegex.test(e)||e in(colors$1||{}))}const useIsomorphicLayoutEffect=isSSR()?useEffect:useLayoutEffect,useIsMounted=()=>{const e=useRef(!1);return useIsomorphicLayoutEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function useForceUpdate(){const e=useState()[1],t=useIsMounted();return()=>{t.current&&e(Math.random())}}function useMemoOne(e,t){const[r]=useState((()=>({inputs:t,result:e()}))),a=useRef(),i=a.current;let n=i;if(n){Boolean(t&&n.inputs&&areInputsEqual(t,n.inputs))||(n={inputs:t,result:e()})}else n=r;return useEffect((()=>{a.current=n,i==r&&(r.inputs=r.result=void 0)}),[n]),n.result}function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const useOnce=e=>useEffect(e,emptyDeps),emptyDeps=[];function usePrev(e){const t=useRef();return useEffect((()=>{t.current=e})),t.current}const $node=Symbol.for("Animated:node"),isAnimated=e=>!!e&&e[$node]===e,getAnimated=e=>e&&e[$node],setAnimated=(e,t)=>defineHidden(e,$node,t),getPayload=e=>e&&e[$node]&&e[$node].getPayload();class Animated{constructor(){this.payload=void 0,setAnimated(this,this)}getPayload(){return this.payload||[]}}class AnimatedValue extends Animated{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new AnimatedValue(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class AnimatedString extends AnimatedValue{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=createInterpolator({output:[e,e]})}static create(e){return new AnimatedString(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=createInterpolator({output:[this.getValue(),e]})),this._value=0,super.reset()}}const TreeContext={dependencies:null};class AnimatedObject extends Animated{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return eachProp(this.source,((r,a)=>{isAnimated(r)?t[a]=r.getValue(e):hasFluidValue(r)?t[a]=getFluidValue(r):e||(t[a]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&each(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return eachProp(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){TreeContext.dependencies&&hasFluidValue(e)&&TreeContext.dependencies.add(e);const t=getPayload(e);t&&each(t,(e=>this.add(e)))}}class AnimatedArray extends AnimatedObject{constructor(e){super(e)}static create(e){return new AnimatedArray(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(makeAnimated)),!0)}}function makeAnimated(e){return(isAnimatedString(e)?AnimatedString:AnimatedValue).create(e)}function getAnimatedType(e){const t=getAnimated(e);return t?t.constructor:is.arr(e)?AnimatedArray:isAnimatedString(e)?AnimatedString:AnimatedValue}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends$1.apply(this,arguments)}const withAnimated=(e,t)=>{const r=!is.fun(e)||e.prototype&&e.prototype.isReactComponent;return forwardRef(((a,i)=>{const n=useRef(null),s=r&&useCallback((e=>{n.current=updateRef(i,e)}),[i]),[o,l]=getAnimatedState(a,t),h=useForceUpdate(),c=()=>{const e=n.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,o.getValue(!0)))&&h()},d=new PropsObserver(c,l),p=useRef();useIsomorphicLayoutEffect((()=>(p.current=d,each(l,(e=>addFluidObserver(e,d))),()=>{p.current&&(each(p.current.deps,(e=>removeFluidObserver(e,p.current))),raf.cancel(p.current.update))}))),useEffect(c,[]),useOnce((()=>()=>{const e=p.current;each(e.deps,(t=>removeFluidObserver(t,e)))}));const u=t.getComponentProps(o.getValue());return React.createElement(e,_extends$1({},u,{ref:s}))}))};class PropsObserver{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&raf.write(this.update)}}function getAnimatedState(e,t){const r=new Set;return TreeContext.dependencies=r,e.style&&(e=_extends$1({},e,{style:t.createAnimatedStyle(e.style)})),e=new AnimatedObject(e),TreeContext.dependencies=null,[e,r]}function updateRef(e,t){return e&&(is.fun(e)?e(t):e.current=t),t}const cacheKey=Symbol.for("AnimatedComponent"),createHost=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new AnimatedObject(e)),getComponentProps:a=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:a},n=e=>{const t=getDisplayName(e)||"Anonymous";return(e=is.str(e)?n[e]||(n[e]=withAnimated(e,i)):e[cacheKey]||(e[cacheKey]=withAnimated(e,i))).displayName=`Animated(${t})`,e};return eachProp(e,((t,r)=>{is.arr(e)&&(r=getDisplayName(t)),n[r]=n(t)})),{animated:n}},getDisplayName=e=>is.str(e)?e:e&&is.str(e.displayName)?e.displayName:is.fun(e)&&e.name||null;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends.apply(this,arguments)}function callProp(e,...t){return is.fun(e)?e(...t):e}const matchProp=(e,t)=>!0===e||!!(t&&e&&(is.fun(e)?e(t):toArray(e).includes(t))),resolveProp=(e,t)=>is.obj(e)?t&&e[t]:e,getDefaultProp=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,noopTransform=e=>e,getDefaultProps=(e,t=noopTransform)=>{let r=DEFAULT_PROPS;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const a={};for(const i of r){const r=t(e[i],i);is.und(r)||(a[i]=r)}return a},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function getForwardProps(e){const t={};let r=0;if(eachProp(e,((e,a)=>{RESERVED_PROPS[a]||(t[a]=e,r++)})),r)return t}function inferTo(e){const t=getForwardProps(e);if(t){const r={to:t};return eachProp(e,((e,a)=>a in t||(r[a]=e))),r}return _extends({},e)}function computeGoal(e){return e=getFluidValue(e),is.arr(e)?e.map(computeGoal):isAnimatedString(e)?globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function hasProps(e){for(const t in e)return!0;return!1}function isAsyncTo(e){return is.fun(e)||is.arr(e)&&is.obj(e[0])}function detachRefs(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}function replaceRef(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}const config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},c1=1.70158,c2=1.525*c1,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},easings={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>c3*e*e*e-c1*e*e,easeOutBack:e=>1+c3*Math.pow(e-1,3)+c1*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(c2+1)*e-c2)/2:(Math.pow(2*e-2,2)*((c2+1)*(2*e-2)+c2)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*c4),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*c4)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*c5)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*c5)/2+1,easeInBounce:e=>1-bounceOut(1-e),easeOutBounce:bounceOut,easeInOutBounce:e=>e<.5?(1-bounceOut(1-2*e))/2:(1+bounceOut(2*e-1))/2},defaults=_extends({},config.default,{mass:1,damping:1,easing:easings.linear,clamp:!1});class AnimationConfig{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,defaults)}}function mergeConfig(e,t,r){r&&(sanitizeConfig(r=_extends({},r),t),t=_extends({},r,t)),sanitizeConfig(e,t),Object.assign(e,t);for(const t in defaults)null==e[t]&&(e[t]=defaults[t]);let{mass:a,frequency:i,damping:n}=e;return is.und(i)||(i<.01&&(i=.01),n<0&&(n=0),e.tension=Math.pow(2*Math.PI/i,2)*a,e.friction=4*Math.PI*n*a/i),e}function sanitizeConfig(e,t){if(is.und(t.decay)){const r=!is.und(t.tension)||!is.und(t.friction);!r&&is.und(t.frequency)&&is.und(t.damping)&&is.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const emptyArray=[];class Animation{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.to=void 0,this.from=void 0,this.config=new AnimationConfig,this.immediate=!1}}function scheduleProps(e,{key:t,props:r,defaultProps:a,state:i,actions:n}){return new Promise(((s,o)=>{var l;let h,c,d=matchProp(null!=(l=r.cancel)?l:null==a?void 0:a.cancel,t);if(d)m();else{is.und(r.pause)||(i.paused=matchProp(r.pause,t));let e=null==a?void 0:a.pause;!0!==e&&(e=i.paused||matchProp(e,t)),h=callProp(r.delay||0,t),e?(i.resumeQueue.add(u),n.pause()):(n.resume(),u())}function p(){i.resumeQueue.add(u),i.timeouts.delete(c),c.cancel(),h=c.time-raf.now()}function u(){h>0&&!globals.skipAnimation?(i.delayed=!0,c=raf.setTimeout(m,h),i.pauseQueue.add(p),i.timeouts.add(c)):m()}function m(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(p),i.timeouts.delete(c),e<=(i.cancelId||0)&&(d=!0);try{n.start(_extends({},r,{callId:e,cancel:d}),s)}catch(e){o(e)}}}))}const getCombinedResult=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?getCancelledResult(e.get()):t.every((e=>e.noop))?getNoopResult(e.get()):getFinishedResult(e.get(),t.every((e=>e.finished))),getNoopResult=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),getCancelledResult=e=>({value:e,cancelled:!0,finished:!1});function runAsync(e,t,r,a){const{callId:i,parentId:n,onRest:s}=t,{asyncTo:o,promise:l}=r;return n||e!==o||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const h=getDefaultProps(t,((e,t)=>"onRest"===t?void 0:e));let c,d;const p=new Promise(((e,t)=>(c=e,d=t))),u=e=>{const t=i<=(r.cancelId||0)&&getCancelledResult(a)||i!==r.asyncId&&getFinishedResult(a,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{const n=new BailSignal,s=new SkipAniamtionSignal;return(async()=>{if(globals.skipAnimation)throw stopAsync(r),s.result=getFinishedResult(a,!1),d(s),s;u(n);const o=is.obj(e)?_extends({},e):_extends({},t,{to:e});o.parentId=i,eachProp(h,((e,t)=>{is.und(o[t])&&(o[t]=e)}));const l=await a.start(o);return u(n),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let f;if(globals.skipAnimation)return stopAsync(r),getFinishedResult(a,!1);try{let t;t=is.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,a.stop.bind(a))),await Promise.all([t.then(c),p]),f=getFinishedResult(a.get(),!0,!1)}catch(e){if(e instanceof BailSignal)f=e.result;else{if(!(e instanceof SkipAniamtionSignal))throw e;f=e.result}}finally{i==r.asyncId&&(r.asyncId=n,r.asyncTo=n?o:void 0,r.promise=n?l:void 0)}return is.fun(s)&&raf.batchedUpdates((()=>{s(f,a,a.item)})),f})():l}function stopAsync(e,t){flush(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class BailSignal extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class SkipAniamtionSignal extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const isFrameValue=e=>e instanceof FrameValue;let nextId$1=1;class FrameValue extends FluidValue{constructor(...e){super(...e),this.id=nextId$1++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=getAnimated(this);return e&&e.getValue()}to(...e){return globals.to(this,e)}interpolate(...e){return deprecateInterpolate(),globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){callFluidObservers(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:e})}}const $P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=e=>(e[$P]&HAS_ANIMATED)>0,isAnimating=e=>(e[$P]&IS_ANIMATING)>0,isPaused=e=>(e[$P]&IS_PAUSED)>0,setActiveBit=(e,t)=>t?e[$P]|=IS_ANIMATING|HAS_ANIMATED:e[$P]&=~IS_ANIMATING,setPausedBit=(e,t)=>t?e[$P]|=IS_PAUSED:e[$P]&=~IS_PAUSED;class SpringValue extends FrameValue{constructor(e,t){if(super(),this.key=void 0,this.animation=new Animation,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!is.und(e)||!is.und(t)){const r=is.obj(e)?_extends({},e):_extends({},t,{from:e});is.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const e=getAnimated(this);return e instanceof AnimatedValue?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const a=this.animation;let{config:i,toValues:n}=a;const s=getPayload(a.to);!s&&hasFluidValue(a.to)&&(n=toArray(getFluidValue(a.to))),a.values.forEach(((o,l)=>{if(o.done)return;const h=o.constructor==AnimatedString?1:s?s[l].lastPosition:n[l];let c=a.immediate,d=h;if(!c){if(d=o.lastPosition,i.tension<=0)return void(o.done=!0);let t=o.elapsedTime+=e;const r=a.fromValues[l],n=null!=o.v0?o.v0:o.v0=is.arr(i.velocity)?i.velocity[l]:i.velocity;let s;const p=i.precision||(r==h?.005:Math.min(1,.001*Math.abs(h-r)));if(is.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,a=Math.exp(-(1-e)*t);d=r+n/(1-e)*(1-a),c=Math.abs(o.lastPosition-d)<=p,s=n*a}else{s=null==o.lastVelocity?n:o.lastVelocity;const t=i.restVelocity||p/10,a=i.clamp?0:i.bounce,l=!is.und(a),u=r==h?o.v0>0:r<h;let m,f=!1;const g=1,y=Math.ceil(e/g);for(let e=0;e<y&&(m=Math.abs(s)>t,m||(c=Math.abs(h-d)<=p,!c));++e){l&&(f=d==h||d>h==u,f&&(s=-s*a,d=h));s+=(1e-6*-i.tension*(d-h)+.001*-i.friction*s)/i.mass*g,d+=s*g}}else{let a=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,o.durationProgress>0&&(o.elapsedTime=i.duration*o.durationProgress,t=o.elapsedTime+=e)),a=(i.progress||0)+t/this._memoizedDuration,a=a>1?1:a<0?0:a,o.durationProgress=a),d=r+i.easing(a)*(h-r),s=(d-o.lastPosition)/e,c=1==a}o.lastVelocity=s,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}s&&!s[l].done&&(c=!1),c?o.done=!0:t=!1,o.setValue(d,i.round)&&(r=!0)}));const o=getAnimated(this),l=o.getValue();if(t){const e=getFluidValue(a.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(o.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return raf.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:e,config:t}=this.animation;raf.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return is.und(e)?(r=this.queue||[],this.queue=[]):r=[is.obj(e)?e:_extends({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>getCombinedResult(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),stopAsync(this._state,e&&this._lastCallId),raf.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:a}=e;r=is.obj(r)?r[t]:r,(null==r||isAsyncTo(r))&&(r=void 0),a=is.obj(a)?a[t]:a,null==a&&(a=void 0);const i={to:r,from:a};return hasAnimated(this)||(e.reverse&&([r,a]=[a,r]),a=getFluidValue(a),is.und(a)?getAnimated(this)||this._set(r):this._set(a)),i}_update(e,t){let r=_extends({},e);const{key:a,defaultProps:i}=this;r.default&&Object.assign(i,getDefaultProps(r,((e,t)=>/^on/.test(t)?resolveProp(e,a):e))),mergeActiveFn(this,r,"onProps"),sendEvent(this,"onProps",r,this);const n=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return scheduleProps(++this._lastCallId,{key:a,props:r,defaultProps:i,state:s,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(s.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(s.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,n)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=createLoopUpdate(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(getCancelledResult(this));const a=!is.und(e.to),i=!is.und(e.from);if(a||i){if(!(t.callId>this._lastToId))return r(getCancelledResult(this));this._lastToId=t.callId}const{key:n,defaultProps:s,animation:o}=this,{to:l,from:h}=o;let{to:c=l,from:d=h}=e;!i||a||t.default&&!is.und(c)||(c=d),t.reverse&&([c,d]=[d,c]);const p=!isEqual(d,h);p&&(o.from=d),d=getFluidValue(d);const u=!isEqual(c,l);u&&this._focus(c);const m=isAsyncTo(t.to),{config:f}=o,{decay:g,velocity:y}=f;(a||i)&&(f.velocity=0),t.config&&!m&&mergeConfig(f,callProp(t.config,n),t.config!==s.config?callProp(s.config,n):void 0);let b=getAnimated(this);if(!b||is.und(c))return r(getFinishedResult(this,!0));const v=is.und(t.reset)?i&&!t.default:!is.und(d)&&matchProp(t.reset,n),x=v?d:this.get(),S=computeGoal(c),C=is.num(S)||is.arr(S)||isAnimatedString(S),_=!m&&(!C||matchProp(s.immediate||t.immediate,n));if(u){const e=getAnimatedType(c);if(e!==b.constructor){if(!_)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(S)}}const T=b.constructor;let $=hasFluidValue(c),w=!1;if(!$){const e=v||!hasAnimated(this)&&p;(u||e)&&(w=isEqual(computeGoal(x),S),$=!w),(isEqual(o.immediate,_)||_)&&isEqual(f.decay,g)&&isEqual(f.velocity,y)||($=!0)}if(w&&isAnimating(this)&&(o.changed&&!v?$=!0:$||this._stop(l)),!m&&(($||hasFluidValue(l))&&(o.values=b.getPayload(),o.toValues=hasFluidValue(c)?null:T==AnimatedString?[1]:toArray(S)),o.immediate!=_&&(o.immediate=_,_||v||this._set(l)),$)){const{onRest:e}=o;each(ACTIVE_EVENTS,(e=>mergeActiveFn(this,t,e)));const a=getFinishedResult(this,checkFinished(this,l));flushCalls(this._pendingCalls,a),this._pendingCalls.add(r),o.changed&&raf.batchedUpdates((()=>{o.changed=!v,null==e||e(a,this),v?callProp(s.onRest,a):null==o.onStart||o.onStart(a,this)}))}v&&this._set(x),m?r(runAsync(t.to,t,this._state,this)):$?this._start():isAnimating(this)&&!u?this._pendingCalls.add(r):r(getNoopResult(x))}_focus(e){const t=this.animation;e!==t.to&&(getFluidObservers(this)&&this._detach(),t.to=e,getFluidObservers(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;hasFluidValue(t)&&(addFluidObserver(t,this),isFrameValue(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;hasFluidValue(e)&&removeFluidObserver(e,this)}_set(e,t=!0){const r=getFluidValue(e);if(!is.und(r)){const e=getAnimated(this);if(!e||!isEqual(r,e.getValue())){const a=getAnimatedType(r);e&&e.constructor==a?e.setValue(r):setAnimated(this,a.create(r)),e&&raf.batchedUpdates((()=>{this._onChange(r,t)}))}}return getAnimated(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),callProp(this.animation.onChange,e,this)),callProp(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;getAnimated(this).reset(getFluidValue(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals.skipAnimation?this.finish():frameLoop.start(this)}_stop(e,t){if(isAnimating(this)){setActiveBit(this,!1);const r=this.animation;each(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const a=t?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,null!=e?e:r.to));flushCalls(this._pendingCalls,a),r.changed&&(r.changed=!1,sendEvent(this,"onRest",a,this))}}}function checkFinished(e,t){const r=computeGoal(t);return isEqual(computeGoal(e.get()),r)}function createLoopUpdate(e,t=e.loop,r=e.to){let a=callProp(t);if(a){const i=!0!==a&&inferTo(a),n=(i||e).reverse,s=!i||i.reset;return createUpdate(_extends({},e,{loop:t,default:!1,pause:void 0,to:!n||isAsyncTo(r)?r:void 0,from:s?e.from:void 0,reset:s},i))}}function createUpdate(e){const{to:t,from:r}=e=inferTo(e),a=new Set;return is.obj(t)&&findDefined(t,a),is.obj(r)&&findDefined(r,a),e.keys=a.size?Array.from(a):null,e}function declareUpdate(e){const t=createUpdate(e);return is.und(t.default)&&(t.default=getDefaultProps(t)),t}function findDefined(e,t){eachProp(e,((e,r)=>null!=e&&t.add(r)))}const ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(e,t,r){e.animation[r]=t[r]!==getDefaultProp(t,r)?resolveProp(t[r],e.key):void 0}function sendEvent(e,t,...r){var a,i,n,s;null==(a=(i=e.animation)[t])||a.call(i,...r),null==(n=(s=e.defaultProps)[t])||n.call(s,...r)}const BATCHED_EVENTS=["onStart","onChange","onRest"];let nextId=1;class Controller{constructor(e,t){this.id=nextId++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(_extends({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];is.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(createUpdate(e)),this}start(e){let{queue:t}=this;return e?t=toArray(e).map(createUpdate):this.queue=[],this._flush?this._flush(this,t):(prepareKeys(this,t),flushUpdateQueue(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;each(toArray(t),(t=>r[t].stop(!!e)))}else stopAsync(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(is.und(e))this.start({pause:!0});else{const t=this.springs;each(toArray(e),(e=>t[e].pause()))}return this}resume(e){if(is.und(e))this.start({pause:!1});else{const t=this.springs;each(toArray(e),(e=>t[e].resume()))}return this}each(e){eachProp(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,a=this._active.size>0,i=this._changed.size>0;(a&&!this._started||i&&!this._started)&&(this._started=!0,flush(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const n=!a&&this._started,s=i||n&&r.size?this.get():null;i&&t.size&&flush(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),n&&(this._started=!1,flush(r,(([e,t])=>{t.value=s,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}raf.onFrame(this._onFrame)}}function flushUpdateQueue(e,t){return Promise.all(t.map((t=>flushUpdate(e,t)))).then((t=>getCombinedResult(e,t)))}async function flushUpdate(e,t,r){const{keys:a,to:i,from:n,loop:s,onRest:o,onResolve:l}=t,h=is.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===n&&(t.from=null);const c=is.arr(i)||is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,h&&(h.onRest=void 0)):each(BATCHED_EVENTS,(r=>{const a=t[r];if(is.fun(a)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(a);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(a,{value:null,finished:e||!1,cancelled:t||!1})},h&&(h[r]=t[r])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,flushCalls(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(a||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),u=!0===t.cancel||!0===getDefaultProp(t,"cancel");(c||u&&d.asyncId)&&p.push(scheduleProps(++e._lastAsyncId,{props:t,state:d,actions:{pause:noop,resume:noop,start(t,r){u?(stopAsync(d,e._lastAsyncId),r(getCancelledResult(e))):(t.onRest=o,r(runAsync(c,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const m=getCombinedResult(e,await Promise.all(p));if(s&&m.finished&&(!r||!m.noop)){const r=createLoopUpdate(t,s,i);if(r)return prepareKeys(e,[r]),flushUpdate(e,r,!0)}return l&&raf.batchedUpdates((()=>l(m,e,e.item))),m}function getSprings(e,t){const r=_extends({},e.springs);return t&&each(toArray(t),(e=>{is.und(e.keys)&&(e=createUpdate(e)),is.obj(e.to)||(e=_extends({},e,{to:void 0})),prepareSprings(r,e,(e=>createSpring(e)))})),setSprings(e,r),r}function setSprings(e,t){eachProp(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,addFluidObserver(t,e))}))}function createSpring(e,t){const r=new SpringValue;return r.key=e,t&&addFluidObserver(r,t),r}function prepareSprings(e,t,r){t.keys&&each(t.keys,(a=>{(e[a]||(e[a]=r(a)))._prepareNode(t)}))}function prepareKeys(e,t){each(t,(t=>{prepareSprings(e.springs,t,(t=>createSpring(t,e)))}))}function _objectWithoutPropertiesLoose$2(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}const _excluded$3=["children"],SpringContext=e=>{let{children:t}=e,r=_objectWithoutPropertiesLoose$2(e,_excluded$3);const a=useContext(ctx),i=r.pause||!!a.pause,n=r.immediate||!!a.immediate;r=useMemoOne((()=>({pause:i,immediate:n})),[i,n]);const{Provider:s}=ctx;return React.createElement(s,{value:r},t)},ctx=makeContext(SpringContext,{});function makeContext(e,t){return Object.assign(e,React.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}SpringContext.Provider=ctx.Provider,SpringContext.Consumer=ctx.Consumer;const SpringRef=()=>{const e=[],t=function(t){deprecateDirectCall();const a=[];return each(e,((e,i)=>{if(is.und(t))a.push(e.start());else{const n=r(t,e,i);n&&a.push(e.start(n))}})),a};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return each(e,(e=>e.pause(...arguments))),this},t.resume=function(){return each(e,(e=>e.resume(...arguments))),this},t.set=function(t){each(e,(e=>e.set(t)))},t.start=function(t){const r=[];return each(e,((e,a)=>{if(is.und(t))r.push(e.start());else{const i=this._getProps(t,e,a);i&&r.push(e.start(i))}})),r},t.stop=function(){return each(e,(e=>e.stop(...arguments))),this},t.update=function(t){return each(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return is.fun(e)?e(r,t):e};return t._getProps=r,t};function useSprings(e,t,r){const a=is.fun(t)&&t;a&&!r&&(r=[]);const i=useMemo((()=>a||3==arguments.length?SpringRef():void 0),[]),n=useRef(0),s=useForceUpdate(),o=useMemo((()=>({ctrls:[],queue:[],flush(e,t){const r=getSprings(e,t);return n.current>0&&!o.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?flushUpdateQueue(e,t):new Promise((a=>{setSprings(e,r),o.queue.push((()=>{a(flushUpdateQueue(e,t))})),s()}))}})),[]),l=useRef([...o.ctrls]),h=[],c=usePrev(e)||0;function d(e,r){for(let i=e;i<r;i++){const e=l.current[i]||(l.current[i]=new Controller(null,o.flush)),r=a?a(i,e):t[i];r&&(h[i]=declareUpdate(r))}}useMemo((()=>{each(l.current.slice(e,c),(e=>{detachRefs(e,i),e.stop(!0)})),l.current.length=e,d(c,e)}),[e]),useMemo((()=>{d(0,Math.min(c,e))}),r);const p=l.current.map(((e,t)=>getSprings(e,h[t]))),u=useContext(SpringContext),m=usePrev(u),f=u!==m&&hasProps(u);useIsomorphicLayoutEffect((()=>{n.current++,o.ctrls=l.current;const{queue:e}=o;e.length&&(o.queue=[],each(e,(e=>e()))),each(l.current,((e,t)=>{null==i||i.add(e),f&&e.start({default:u});const r=h[t];r&&(replaceRef(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),useOnce((()=>()=>{each(o.ctrls,(e=>e.stop(!0)))}));const g=p.map((e=>_extends({},e)));return i?[g,i]:g}function useSpring(e,t){const r=is.fun(e),[[a],i]=useSprings(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[a,i]:a}let TransitionPhase;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(TransitionPhase||(TransitionPhase={}));class Interpolation extends FrameValue{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=createInterpolator(...t);const r=this._get(),a=getAnimatedType(r);setAnimated(this,a.create(r))}advance(e){const t=this._get();isEqual(t,this.get())||(getAnimated(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const e=is.arr(this.source)?this.source.map(getFluidValue):toArray(getFluidValue(this.source));return this.calc(...e)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each(getPayload(this),(e=>{e.done=!1})),globals.skipAnimation?(raf.batchedUpdates((()=>this.advance())),becomeIdle(this)):frameLoop.start(this))}_attach(){let e=1;each(toArray(this.source),(t=>{hasFluidValue(t)&&addFluidObserver(t,this),isFrameValue(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){each(toArray(this.source),(e=>{hasFluidValue(e)&&removeFluidObserver(e,this)})),this._active.clear(),becomeIdle(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=toArray(this.source).reduce(((e,t)=>Math.max(e,(isFrameValue(t)?t.priority:0)+1)),0))}}function isIdle(e){return!1!==e.idle}function checkIdle(e){return!e.size||Array.from(e).every(isIdle)}function becomeIdle(e){e.idle||(e.idle=!0,each(getPayload(e),(e=>{e.done=!0})),callFluidObservers(e,{type:"idle",parent:e}))}function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}globals.assign({createStringInterpolator:createStringInterpolator,to:(e,t)=>new Interpolation(e,t)});const _excluded$2=["style","children","scrollTop","scrollLeft"],isCustomPropRE=/^--/;function dangerousStyleValue(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||isCustomPropRE.test(e)||isUnitlessNumber.hasOwnProperty(e)&&isUnitlessNumber[e]?(""+t).trim():t+"px"}const attributeCache={};function applyAnimatedValues(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,a=t,{style:i,children:n,scrollTop:s,scrollLeft:o}=a,l=_objectWithoutPropertiesLoose$1(a,_excluded$2),h=Object.values(l),c=Object.keys(l).map((t=>r||e.hasAttribute(t)?t:attributeCache[t]||(attributeCache[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==n&&(e.textContent=n);for(let t in i)if(i.hasOwnProperty(t)){const r=dangerousStyleValue(t,i[t]);isCustomPropRE.test(t)?e.style.setProperty(t,r):e.style[t]=r}c.forEach(((t,r)=>{e.setAttribute(t,h[r])})),void 0!==s&&(e.scrollTop=s),void 0!==o&&(e.scrollLeft=o)}let isUnitlessNumber={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const prefixKey=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),prefixes=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce(((e,t)=>(prefixes.forEach((r=>e[prefixKey(r,t)]=e[t])),e)),isUnitlessNumber);const _excluded$1$1=["x","y","z"],domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(e,t)=>is.num(e)&&0!==e?e+t:e,isValueIdentity=(e,t)=>is.arr(e)?e.every((e=>isValueIdentity(e,t))):is.num(e)?e===t:parseFloat(e)===t;class AnimatedStyle extends AnimatedObject{constructor(e){let{x:t,y:r,z:a}=e,i=_objectWithoutPropertiesLoose$1(e,_excluded$1$1);const n=[],s=[];(t||r||a)&&(n.push([t||0,r||0,a||0]),s.push((e=>[`translate3d(${e.map((e=>addUnit(e,"px"))).join(",")})`,isValueIdentity(e,0)]))),eachProp(i,((e,t)=>{if("transform"===t)n.push([e||""]),s.push((e=>[e,""===e]));else if(domTransforms.test(t)){if(delete i[t],is.und(e))return;const r=pxTransforms.test(t)?"px":degTransforms.test(t)?"deg":"";n.push(toArray(e)),s.push("rotate3d"===t?([e,t,a,i])=>[`rotate3d(${e},${t},${a},${addUnit(i,r)})`,isValueIdentity(i,0)]:e=>[`${t}(${e.map((e=>addUnit(e,r))).join(",")})`,isValueIdentity(e,t.startsWith("scale")?1:0)])}})),n.length&&(i.transform=new FluidTransform(n,s)),super(i)}}class FluidTransform extends FluidValue{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return each(this.inputs,((r,a)=>{const i=getFluidValue(r[0]),[n,s]=this.transforms[a](is.arr(i)?i:r.map(getFluidValue));e+=" "+n,t=t&&s})),t?"none":e}observerAdded(e){1==e&&each(this.inputs,(e=>each(e,(e=>hasFluidValue(e)&&addFluidObserver(e,this)))))}observerRemoved(e){0==e&&each(this.inputs,(e=>each(e,(e=>hasFluidValue(e)&&removeFluidObserver(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),callFluidObservers(this,e)}}const primitives=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],_excluded=["scrollTop","scrollLeft"];globals.assign({batchedUpdates:unstable_batchedUpdates,createStringInterpolator:createStringInterpolator,colors:colors});const host=createHost(primitives,{applyAnimatedValues:applyAnimatedValues,createAnimatedStyle:e=>new AnimatedStyle(e),getComponentProps:e=>_objectWithoutPropertiesLoose$1(e,_excluded)}),animated=host.animated,AccordionContext=React__default.createContext(!1);var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},chevronUp={},ChevronUpIcon;Object.defineProperty(chevronUp,"__esModule",{value:!0});var e$f=require$$0;const r$5=e=>e$f.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:e$f.jsx("path",{d:"M17.7279 14.2091C17.5059 14.4311 17.2492 14.5421 16.9579 14.5421C16.6659 14.5421 16.4089 14.4311 16.1869 14.2091L10.1659 8.18812L4.12389 14.2301C3.91589 14.4381 3.66589 14.5421 3.37389 14.5421C3.08256 14.5421 2.82589 14.4311 2.60389 14.2091C2.39523 14.0005 2.29089 13.7468 2.29089 13.4481C2.29089 13.1495 2.39523 12.8961 2.60389 12.6881L9.54089 5.75012C9.63823 5.65346 9.73889 5.58412 9.84289 5.54212C9.94689 5.50079 10.0546 5.48012 10.1659 5.48012C10.2772 5.48012 10.3849 5.50079 10.4889 5.54212C10.5929 5.58412 10.6936 5.65346 10.7909 5.75012L17.7489 12.7091C17.9716 12.9311 18.0759 13.1845 18.0619 13.4691C18.0479 13.7538 17.9366 14.0005 17.7279 14.2091Z",fill:"currentColor"})});r$5.displayName="ChevronUpIcon",ChevronUpIcon=chevronUp.ChevronUpIcon=r$5;const BaseColorSet={Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}},BookingSGColorSet={Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}};var isArray$9=Array.isArray,isArray_1=isArray$9,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$5=root$8.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty,nativeObjectToString$1=objectProto$b.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(e){var t=hasOwnProperty$9.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var a=!0}catch(e){}var i=nativeObjectToString$1.call(e);return a&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),i}var _getRawTag=getRawTag$1,objectProto$a=Object.prototype,nativeObjectToString=objectProto$a.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$5;function isObjectLike$5(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$5,baseGetTag$4=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag$1="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$4(e)&&baseGetTag$4(e)==symbolTag$1}var isSymbol_1=isSymbol$4,isArray$8=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(e,t){if(isArray$8(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol$3(e))||(reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$3;function isObject$5(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$5,baseGetTag$3=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){if(!isObject$4(e))return!1;var t=baseGetTag$3(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var isFunction_1=isFunction$2,root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""),uid?"Symbol(src)_1."+uid:""),uid;function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$3(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$2(e,t){return null==e?void 0:e[t]}var _getValue=getValue$2,baseIsNative=_baseIsNative,getValue$1=_getValue;function getNative$6(e,t){var r=getValue$1(e,t);return baseIsNative(r)?r:void 0}var _getNative=getNative$6,getNative$5=_getNative,nativeCreate$4=getNative$5(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(e){var t=this.__data__;if(nativeCreate$2){var r=t[e];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$7.call(t,e)?t[e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?void 0!==t[e]:hasOwnProperty$6.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var r=e.length;r--;)if(eq$1(e[r][0],t))return r;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,r=assocIndexOf$3(t,e);return!(r<0)&&(r==t.length-1?t.pop():splice.call(t,r,1),--this.size,!0)}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,r=assocIndexOf$2(t,e);return r<0?void 0:t[r][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return assocIndexOf$1(this.__data__,e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var r=this.__data__,a=assocIndexOf(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$4=_getNative,root$6=_root,Map$4=getNative$4(root$6,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,t){var r=e.__data__;return isKeyable(t)?r["string"==typeof t?"string":"hash"]:r.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){var t=getMapData$3(this,e).delete(e);return this.size-=t?1:0,t}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,t){var r=getMapData(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,MapCache$2=_MapCache,FUNC_ERROR_TEXT$1="Expected a function";function memoize$1(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT$1);var r=function(){var a=arguments,i=t?t.apply(this,a):a[0],n=r.cache;if(n.has(i))return n.get(i);var s=e.apply(this,a);return r.cache=n.set(i,s)||n,s};return r.cache=new(memoize$1.Cache||MapCache$2),r}memoize$1.Cache=MapCache$2;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var t=memoize(e,(function(e){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),e})),r=t.cache;return t}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rePropName,(function(e,r,a,i){t.push(a?i.replace(reEscapeChar,"$1"):r||e)})),t})),_stringToPath=stringToPath$1;function arrayMap$1(e,t){for(var r=-1,a=null==e?0:e.length,i=Array(a);++r<a;)i[r]=t(e[r],r,e);return i}var _arrayMap=arrayMap$1,Symbol$2=_Symbol,arrayMap=_arrayMap,isArray$7=isArray_1,isSymbol$2=isSymbol_1,INFINITY$2=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(e){if("string"==typeof e)return e;if(isArray$7(e))return arrayMap(e,baseToString$1)+"";if(isSymbol$2(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY$2?"-0":t}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$3(e){return null==e?"":baseToString(e)}var toString_1=toString$3,isArray$6=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString$2=toString_1;function castPath$2(e,t){return isArray$6(e)?e:isKey$2(e,t)?[e]:stringToPath(toString$2(e))}var _castPath=castPath$2,isSymbol$1=isSymbol_1,INFINITY$1=1/0;function toKey$4(e){if("string"==typeof e||isSymbol$1(e))return e;var t=e+"";return"0"==t&&1/e==-INFINITY$1?"-0":t}var _toKey=toKey$4,castPath$1=_castPath,toKey$3=_toKey;function baseGet$2(e,t){for(var r=0,a=(t=castPath$1(t,e)).length;null!=e&&r<a;)e=e[toKey$3(t[r++])];return r&&r==a?e:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$1(e,t,r){var a=null==e?void 0:baseGet$1(e,t);return void 0===a?r:a}var get_1=get$1;const getValue=(e,t,r)=>t?get_1(r,t)||get_1(e,t):r||e,getCollection=(e,t)=>{const r=t||e.defaultValue;return get_1(e.collections,r)};var ThemeContextKeys;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(ThemeContextKeys||(ThemeContextKeys={}));const ColorSpec={collections:{base:BaseColorSet,bookingsg:BookingSGColorSet},defaultValue:"base"},getThemeColors=e=>t=>{const r=t.theme,a=getCollection(ColorSpec,r[ThemeContextKeys.colorScheme]);return r.options&&r.options.color?getValue(a,e,r.options.color):getValue(a,e)},Color={Brand:{1:getThemeColors("Brand.1"),2:getThemeColors("Brand.2"),3:getThemeColors("Brand.3"),4:getThemeColors("Brand.4"),5:getThemeColors("Brand.5"),6:getThemeColors("Brand.6")},Primary:getThemeColors("Primary"),PrimaryDark:getThemeColors("PrimaryDark"),Secondary:getThemeColors("Secondary"),Accent:{Light:{1:getThemeColors("Accent.Light.1"),2:getThemeColors("Accent.Light.2"),3:getThemeColors("Accent.Light.3"),4:getThemeColors("Accent.Light.4"),5:getThemeColors("Accent.Light.5"),6:getThemeColors("Accent.Light.6")},Dark:{1:getThemeColors("Accent.Dark.1"),2:getThemeColors("Accent.Dark.2"),3:getThemeColors("Accent.Dark.3")}},Neutral:{1:getThemeColors("Neutral.1"),2:getThemeColors("Neutral.2"),3:getThemeColors("Neutral.3"),4:getThemeColors("Neutral.4"),5:getThemeColors("Neutral.5"),6:getThemeColors("Neutral.6"),7:getThemeColors("Neutral.7"),8:getThemeColors("Neutral.8")},Validation:{Green:{Text:getThemeColors("Validation.Green.Text"),Icon:getThemeColors("Validation.Green.Icon"),Border:getThemeColors("Validation.Green.Border"),Background:getThemeColors("Validation.Green.Background")},Orange:{Text:getThemeColors("Validation.Orange.Text"),Icon:getThemeColors("Validation.Orange.Icon"),Border:getThemeColors("Validation.Orange.Border"),Background:getThemeColors("Validation.Orange.Background"),Badge:getThemeColors("Validation.Orange.Badge")},Red:{Text:getThemeColors("Validation.Red.Text"),Icon:getThemeColors("Validation.Red.Icon"),Border:getThemeColors("Validation.Red.Border"),Background:getThemeColors("Validation.Red.Background")}},Shadow:{Accent:getThemeColors("Shadow.Accent"),Red:getThemeColors("Shadow.Red")}},Main$1=styled.button`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -185,7 +185,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
185
185
|
${MediaQuery.MaxWidth.tablet} {
|
|
186
186
|
padding-right: 0;
|
|
187
187
|
}
|
|
188
|
-
`,AccordionItem=({title:e,children:t,expanded:r=!0,type:a="default",...i})=>{const n=useContext(AccordionContext),[s,o]=useState(n||r),l=i["data-testid"]||"accordion-item",h=useResizeDetector(),
|
|
188
|
+
`,AccordionItem=({title:e,children:t,expanded:r=!0,type:a="default",...i})=>{const n=useContext(AccordionContext),[s,o]=useState(n||r),l=i["data-testid"]||"accordion-item",h=useResizeDetector(),c=h.ref;useEffect((()=>{o(n)}),[n]),useEffect((()=>{o(r)}),[r]);const d=useSpring({height:s?h.height:0});return jsxs(Container$l,{"data-testid":l,className:i.className,$isCollapsed:s,children:[jsxs(TitleContainer,{children:[jsx("small"===a?TitleH4:Title$3,{"data-testid":`${l}-title`,$isCollapsed:s,children:e}),jsx(ExpandCollapseButton,{"data-testid":`${l}-expand-collapse-button`,onClick:e=>{e.preventDefault(),o((e=>!e))},$isCollapsed:s,focusHighlight:!1,focusOutline:"browser","aria-label":s?"Collapse":"Expand",children:jsx(ChevronIcon,{})})]}),jsx(Expandable$2,{style:d,$isCollapsed:s,children:jsx(DescriptionContainer$1,{ref:c,id:"content-container",children:t})})]})},OuterRing=styled.div`
|
|
189
189
|
display: inline-block;
|
|
190
190
|
position: relative;
|
|
191
191
|
width: ${e=>e.$size}px;
|
|
@@ -389,7 +389,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
389
389
|
height: 1.375rem;
|
|
390
390
|
width: 1.375rem;
|
|
391
391
|
margin-left: 0.25rem;
|
|
392
|
-
`,Alert=({type:e,className:t,children:r,actionLink:a,...i})=>jsxs(Wrapper$f,{className:t,$type:e,"data-testid":i["data-testid"],children:[r,a&&jsxs(ActionLinkText,{weight:"semibold",...a,"data-testid":"action-link",children:[a.children,jsx(ArrowIcon,{})]})]});var lottie$1={exports:{}};(function(module,exports){var factory;"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,a,i=e.length;for(r=0;r<i;r+=1)for(var n in a=e[r].prototype)Object.prototype.hasOwnProperty.call(a,n)&&(t.prototype[n]=a[n])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,a=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(a=0;a<t;a+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),a=e.length;for(t=0;t<a;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,a){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=a<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,a){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=a<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var a,i,n,s,o,l,h,d;switch(l=r*(1-t),h=r*(1-(o=6*e-(s=Math.floor(6*e)))*t),d=r*(1-(1-o)*t),s%6){case 0:a=r,i=d,n=l;break;case 1:a=h,i=r,n=l;break;case 2:a=l,i=r,n=d;break;case 3:a=l,i=h,n=r;break;case 4:a=d,i=l,n=r;break;case 5:a=r,i=l,n=h}return[a,i,n]}function RGBtoHSV(e,t,r){var a,i=Math.max(e,t,r),n=Math.min(e,t,r),s=i-n,o=0===i?0:s/i,l=i/255;switch(i){case n:a=0;break;case e:a=t-r+s*(t<r?6:0),a/=6*s;break;case t:a=r-e+2*s,a/=6*s;break;case r:a=e-t+4*s,a/=6*s}return[a,o,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,a){return e<0&&(e=0),t<0&&(t=0),a<0&&(a=0),"#"+r[e]+r[t]+r[a]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,r=1,a=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},n={postMessage:function(e){i.onmessage({data:e})}};function s(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),a=URL.createObjectURL(r);return new Worker(a)}return e=t,i}((function(e){if(n.dataManager||(n.dataManager=function(){function e(i,n){var s,o,l,h,d,p,u=i.length;for(o=0;o<u;o+=1)if("ks"in(s=i[o])&&!s.completed){if(s.completed=!0,s.tt&&(i[o-1].td=s.tt),s.hasMask){var m=s.masksProperties;for(h=m.length,l=0;l<h;l+=1)if(m[l].pt.k.i)a(m[l].pt.k);else for(p=m[l].pt.k.length,d=0;d<p;d+=1)m[l].pt.k[d].s&&a(m[l].pt.k[d].s[0]),m[l].pt.k[d].e&&a(m[l].pt.k[d].e[0])}0===s.ty?(s.layers=t(s.refId,n),e(s.layers,n)):4===s.ty?r(s.shapes):5===s.ty&&c(s)}}function t(e,t){var r=function(e,t){for(var r=0,a=t.length;r<a;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,i,n;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)a(e[t].ks.k);else for(n=e[t].ks.k.length,i=0;i<n;i+=1)e[t].ks.k[i].s&&a(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&a(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function a(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var n,s=function(){var e=[4,4,14];function t(e){var t,r,a,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(a=void 0,a=(r=e[t]).t.d,r.t.d={k:[{s:a,t:0}]})}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var a,n=r.assets.length;for(a=0;a<n;a+=1)r.assets[a].layers&&t(r.assets[a].layers)}}}(),o=(n=[4,7,99],function(e){if(e.chars&&!i(n,e.v)){var t,a=e.chars.length;for(t=0;t<a;t+=1){var s=e.chars[t];s.data&&s.data.shapes&&(r(s.data.shapes),s.data.ip=0,s.data.op=99999,s.data.st=0,s.data.sr=1,s.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}},e.chars[t].t||(s.data.shapes.push({ty:"no"}),s.data.shapes[0].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"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,r,a=e.length;for(t=0;t<a;t+=1)5===e[t].ty&&(r=void 0,"number"==typeof(r=e[t].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var a,n=r.assets.length;for(a=0;a<n;a+=1)r.assets[a].layers&&t(r.assets[a].layers)}}}(),h=function(){var e=[4,1,9];function t(e){var r,a,i,n=e.length;for(r=0;r<n;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,a=0;a<i;a+=1)e[r].c.k[a].s&&(e[r].c.k[a].s[0]/=255,e[r].c.k[a].s[1]/=255,e[r].c.k[a].s[2]/=255,e[r].c.k[a].s[3]/=255),e[r].c.k[a].e&&(e[r].c.k[a].e[0]/=255,e[r].c.k[a].e[1]/=255,e[r].c.k[a].e[2]/=255,e[r].c.k[a].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,a=e.length;for(r=0;r<a;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&r(t.assets[a].layers)}}}(),d=function(){var e=[4,4,18];function t(e){var r,a,i;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,a=0;a<i;a+=1)e[r].ks.k[a].s&&(e[r].ks.k[a].s[0].c=e[r].closed),e[r].ks.k[a].e&&(e[r].ks.k[a].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,a,i,n,s,o,l=e.length;for(a=0;a<l;a+=1){if((r=e[a]).hasMask){var h=r.masksProperties;for(n=h.length,i=0;i<n;i+=1)if(h[i].pt.k.i)h[i].pt.k.c=h[i].cl;else for(o=h[i].pt.k.length,s=0;s<o;s+=1)h[i].pt.k[s].s&&(h[i].pt.k[s].s[0].c=h[i].cl),h[i].pt.k[s].e&&(h[i].pt.k[s].e[0].c=h[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&r(t.assets[a].layers)}}}();function c(e){0===e.t.a.length&&e.t.p}var p={completeData:function(r){r.__complete||(h(r),s(r),o(r),l(r),d(r),e(r.layers,r.assets),function(r,a){if(r){var i=0,n=r.length;for(i=0;i<n;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,a),e(r[i].data.layers,a))}}(r.chars,r.assets),r.__complete=!0)}};return p.checkColors=h,p.checkChars=o,p.checkPathProperties=l,p.checkShapes=d,p.completeLayers=e,p}()),n.assetLoader||(n.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,a,i){var n,s=new XMLHttpRequest;try{s.responseType="json"}catch(e){}s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)n=e(s),a(n);else try{n=e(s),a(n)}catch(e){i&&i(e)}};try{s.open("GET",t,!0)}catch(e){s.open("GET",r+"/"+t,!0)}s.send()}}}()),"loadAnimation"===e.data.type)n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,i=a[r];a[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function o(e,t){var i="processId_"+(r+=1);return a[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(e,t,r){var a="";if(e.e)a=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),a=t+i}else a=r,a+=e.u?e.u:"",a+=e.p;return a}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function n(e){var t={assetData:e},r=a(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function s(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return s.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var a=e.length;for(r=0;r<a;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=a(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var n={img:i,assetData:t};return n},createImageData:function(t){var r=a(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var n={img:i,assetData:t};return n},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},s}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],a=0;a<r.length;a+=1)r[a](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,a=this._cbs[e].length;r<a;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,a-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),a={},i=0,n=0;n<r.length;n+=1)2===(t=r[n].split(":")).length&&(a[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return a}return function(t){for(var r=[],a=0;a<t.length;a+=1){var i=t[a],n={time:i.tm,duration:i.dr};try{n.payload=JSON.parse(t[a].cm)}catch(r){try{n.payload=e(t[a].cm)}catch(e){n.payload={name:t[a].cm}}}r.push(n)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},a=e.attributes;r.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",r.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:"canvas";var i=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var n=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:!a.getNamedItem("bm-autoplay")||a.getNamedItem("bm-autoplay").value;r.autoplay="false"!==n,r.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"","false"===(a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,a=this.animationData.layers,i=a.length,n=e.layers,s=n.length;for(r=0;r<s;r+=1)for(t=0;t<i;){if(a[t].id===n[r].id){a[t]=n[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.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.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var a=Number(e);if(isNaN(a)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var a=Number(e);if(isNaN(a)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(a,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,a=e.length;for(r=0;r<a;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,a=0,i=0,n=!0,s=!1;function o(e){for(var r=0,i=e.target;r<a;)t[r].animation===i&&(t.splice(r,1),r-=1,a-=1,i.isPaused||d()),r+=1}function l(e,r){if(!e)return null;for(var i=0;i<a;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var n=new AnimationItem;return c(n,e),n.setData(e,r),n}function h(){i+=1,m()}function d(){i-=1}function c(e,r){e.addEventListener("destroy",o),e.addEventListener("_active",h),e.addEventListener("_idle",d),t.push({elem:r,animation:e}),a+=1}function p(e){var o,l=e-r;for(o=0;o<a;o+=1)t[o].animation.advanceTime(l);r=e,i&&!s?window.requestAnimationFrame(p):n=!0}function u(e){r=e,window.requestAnimationFrame(p)}function m(){!s&&i&&n&&(window.requestAnimationFrame(u),n=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return c(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var a,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=i.length;for(a=0;a<n;a+=1)r&&i[a].setAttribute("data-bm-type",r),l(i[a],e);if(t&&0===n){r||(r="svg");var s=document.getElementsByTagName("body")[0];s.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",r),s.appendChild(o),l(o,e)}},e.resize=function(){var e;for(e=0;e<a;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var n;for(n=0;n<a;n+=1)t[n].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=a-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){s=!0},e.unfreeze=function(){s=!1,m()},e.setVolume=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,a=[];for(e=0;e<r;e+=1)a.push(t[e].animation);return a},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,a,i,n){var s=n||("bez_"+e+"_"+r+"_"+a+"_"+i).replace(/\./g,"p");if(t[s])return t[s];var o=new h([e,r,a,i]);return t[s]=o,o}},t={},r=.1,a="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function s(e){return 3*e}function o(e,t,r){return((i(t,r)*e+n(t,r))*e+s(t))*e}function l(e,t,r){return 3*i(t,r)*e*e+2*n(t,r)*e+s(t)}function h(e){this._p=e,this._mSampleValues=a?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(e){var t=this._p[0],r=this._p[1],a=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&a===i?e:0===e?0:1===e?1:o(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],a=this._p[3];this._precomputed=!0,e===t&&r===a||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],a=0;a<11;++a)this._mSampleValues[a]=o(a*r,e,t)},_getTForX:function(e){for(var t=this._p[0],a=this._p[2],i=this._mSampleValues,n=0,s=1;10!==s&&i[s]<=e;++s)n+=r;var h=n+(e-i[--s])/(i[s+1]-i[s])*r,d=l(h,t,a);return d>=.001?function(e,t,r,a){for(var i=0;i<4;++i){var n=l(t,r,a);if(0===n)return t;t-=(o(t,r,a)-e)/n}return t}(e,h,t,a):0===d?h:function(e,t,r,a,i){var n,s,l=0;do{(n=o(s=t+(r-t)/2,a,i)-e)>0?r=s:t=s}while(Math.abs(n)>1e-7&&++l<10);return s}(e,n,n+r,t,a)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var a=0,i=e,n=createSizedArray(i);return{newElement:function(){return a?n[a-=1]:t()},release:function(e){a===i&&(n=pooling.double(n),i*=2),r&&r(e),n[a]=e,a+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,r,a,i,n){var s=e*a+t*i+r*n-i*a-n*e-r*t;return s>-.001&&s<.001}var r=function(e,t,r,a){var i,n,s,o,l,h,d=getDefaultCurveSegments(),c=0,p=[],u=[],m=bezierLengthPool.newElement();for(s=r.length,i=0;i<d;i+=1){for(l=i/(d-1),h=0,n=0;n<s;n+=1)o=bmPow(1-l,3)*e[n]+3*bmPow(1-l,2)*l*r[n]+3*(1-l)*bmPow(l,2)*a[n]+bmPow(l,3)*t[n],p[n]=o,null!==u[n]&&(h+=bmPow(p[n]-u[n],2)),u[n]=p[n];h&&(c+=h=bmSqrt(h)),m.percents[i]=l,m.lengths[i]=c}return m.addedLength=c,m};function a(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var n,s=(n={},function(e,r,s,o){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+s[0]+"_"+s[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!n[l]){var h,d,c,p,u,m,f,g=getDefaultCurveSegments(),y=0,b=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+s[0],e[1]+s[1])&&t(e[0],e[1],r[0],r[1],r[0]+o[0],r[1]+o[1])&&(g=2);var v=new a(g);for(c=s.length,h=0;h<g;h+=1){for(f=createSizedArray(c),u=h/(g-1),m=0,d=0;d<c;d+=1)p=bmPow(1-u,3)*e[d]+3*bmPow(1-u,2)*u*(e[d]+s[d])+3*(1-u)*bmPow(u,2)*(r[d]+o[d])+bmPow(u,3)*r[d],f[d]=p,null!==b&&(m+=bmPow(f[d]-b[d],2));y+=m=bmSqrt(m),v.points[h]=new i(m,f),b=f}v.segmentLength=y,n[l]=v}return n[l]});function o(e,t){var r=t.percents,a=t.lengths,i=r.length,n=bmFloor((i-1)*e),s=e*t.addedLength,o=0;if(n===i-1||0===n||s===a[n])return r[n];for(var l=a[n]>s?-1:1,h=!0;h;)if(a[n]<=s&&a[n+1]>s?(o=(s-a[n])/(a[n+1]-a[n]),h=!1):n+=l,n<0||n>=i-1){if(n===i-1)return r[n];h=!1}return r[n]+(r[n+1]-r[n])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,a=segmentsLengthPool.newElement(),i=e.c,n=e.v,s=e.o,o=e.i,l=e._length,h=a.lengths,d=0;for(t=0;t<l-1;t+=1)h[t]=r(n[t],n[t+1],s[t],o[t+1]),d+=h[t].addedLength;return i&&l&&(h[t]=r(n[t],n[0],s[t],o[0]),d+=h[t].addedLength),a.totalLength=d,a},getNewSegment:function(t,r,a,i,n,s,h){n<0?n=0:n>1&&(n=1);var d,c=o(n,h),p=o(s=s>1?1:s,h),u=t.length,m=1-c,f=1-p,g=m*m*m,y=c*m*m*3,b=c*c*m*3,v=c*c*c,C=m*m*f,x=c*m*f+m*c*f+m*m*p,S=c*c*f+m*c*p+c*m*p,_=c*c*p,T=m*f*f,$=c*f*f+m*p*f+m*f*p,w=c*p*f+m*p*p+c*f*p,E=c*p*p,k=f*f*f,A=p*f*f+f*p*f+f*f*p,P=p*p*f+f*p*p+p*f*p,M=p*p*p;for(d=0;d<u;d+=1)l[4*d]=e.round(1e3*(g*t[d]+y*a[d]+b*i[d]+v*r[d]))/1e3,l[4*d+1]=e.round(1e3*(C*t[d]+x*a[d]+S*i[d]+_*r[d]))/1e3,l[4*d+2]=e.round(1e3*(T*t[d]+$*a[d]+w*i[d]+E*r[d]))/1e3,l[4*d+3]=e.round(1e3*(k*t[d]+A*a[d]+P*i[d]+M*r[d]))/1e3;return l},getPointInSegment:function(t,r,a,i,n,s){var l=o(n,s),h=1-l;return[e.round(1e3*(h*h*h*t[0]+(l*h*h+h*l*h+h*h*l)*a[0]+(l*l*h+h*l*l+l*h*l)*i[0]+l*l*l*r[0]))/1e3,e.round(1e3*(h*h*h*t[1]+(l*h*h+h*l*h+h*h*l)*a[1]+(l*l*h+h*l*l+l*h*l)*i[1]+l*l*l*r[1]))/1e3]},buildBezierData:s,pointOnLine2D:t,pointOnLine3D:function(r,a,i,n,s,o,l,h,d){if(0===i&&0===o&&0===d)return t(r,a,n,s,l,h);var c,p=e.sqrt(e.pow(n-r,2)+e.pow(s-a,2)+e.pow(o-i,2)),u=e.sqrt(e.pow(l-r,2)+e.pow(h-a,2)+e.pow(d-i,2)),m=e.sqrt(e.pow(l-n,2)+e.pow(h-s,2)+e.pow(d-o,2));return(c=p>u?p>m?p-u-m:m-u-p:m>u?m-u-p:u-p-m)>-1e-4&&c<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var e=initialDefaultFrame,t=Math.abs;function r(e,t){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var n,s,o,l,h,d,c,p,u,m=t.lastIndex,f=m,g=this.keyframes.length-1,y=!0;y;){if(n=this.keyframes[f],s=this.keyframes[f+1],f===g-1&&e>=s.t-i){n.h&&(n=s),m=0;break}if(s.t-i>e){m=f;break}f<g-1?f+=1:(m=0,y=!1)}o=this.keyframesMetadata[f]||{};var b,v,C,x,S,_,T,$,w,E,k=s.t-i,A=n.t-i;if(n.to){o.bezierData||(o.bezierData=bez.buildBezierData(n.s,s.s||n.e,n.to,n.ti));var P=o.bezierData;if(e>=k||e<A){var M=e>=k?P.points.length-1:0;for(h=P.points[M].point.length,l=0;l<h;l+=1)r[l]=P.points[M].point[l]}else{o.__fnct?u=o.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,o.__fnct=u),d=u((e-A)/(k-A));var I,L=P.segmentLength*d,D=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,y=!0,c=P.points.length;y;){if(D+=P.points[p].partialLength,0===L||0===d||p===P.points.length-1){for(h=P.points[p].point.length,l=0;l<h;l+=1)r[l]=P.points[p].point[l];break}if(L>=D&&L<D+P.points[p+1].partialLength){for(I=(L-D)/P.points[p+1].partialLength,h=P.points[p].point.length,l=0;l<h;l+=1)r[l]=P.points[p].point[l]+(P.points[p+1].point[l]-P.points[p].point[l])*I;break}p<c-1?p+=1:y=!1}t._lastPoint=p,t._lastAddedLength=D-P.points[p].partialLength,t._lastKeyframeIndex=f}}else{var F,R,O,j,V;if(g=n.s.length,b=s.s||n.e,this.sh&&1!==n.h)if(e>=k)r[0]=b[0],r[1]=b[1],r[2]=b[2];else if(e<=A)r[0]=n.s[0],r[1]=n.s[1],r[2]=n.s[2];else{var B=a(n.s),H=a(b);v=r,C=function(e,t,r){var a,i,n,s,o,l=[],h=e[0],d=e[1],c=e[2],p=e[3],u=t[0],m=t[1],f=t[2],g=t[3];return(i=h*u+d*m+c*f+p*g)<0&&(i=-i,u=-u,m=-m,f=-f,g=-g),1-i>1e-6?(a=Math.acos(i),n=Math.sin(a),s=Math.sin((1-r)*a)/n,o=Math.sin(r*a)/n):(s=1-r,o=r),l[0]=s*h+o*u,l[1]=s*d+o*m,l[2]=s*c+o*f,l[3]=s*p+o*g,l}(B,H,(e-A)/(k-A)),x=C[0],S=C[1],_=C[2],T=C[3],$=Math.atan2(2*S*T-2*x*_,1-2*S*S-2*_*_),w=Math.asin(2*x*S+2*_*T),E=Math.atan2(2*x*T-2*S*_,1-2*x*x-2*_*_),v[0]=$/degToRads,v[1]=w/degToRads,v[2]=E/degToRads}else for(f=0;f<g;f+=1)1!==n.h&&(e>=k?d=1:e<A?d=0:(n.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[f]?u=o.__fnct[f]:(F=void 0===n.o.x[f]?n.o.x[0]:n.o.x[f],R=void 0===n.o.y[f]?n.o.y[0]:n.o.y[f],O=void 0===n.i.x[f]?n.i.x[0]:n.i.x[f],j=void 0===n.i.y[f]?n.i.y[0]:n.i.y[f],u=BezierFactory.getBezierEasing(F,R,O,j).get,o.__fnct[f]=u)):o.__fnct?u=o.__fnct:(F=n.o.x,R=n.o.y,O=n.i.x,j=n.i.y,u=BezierFactory.getBezierEasing(F,R,O,j).get,n.keyframeMetadata=u),d=u((e-A)/(k-A)))),b=s.s||n.e,V=1===n.h?n.s[f]:n.s[f]+(b[f]-n.s[f])*d,"multidimensional"===this.propType?r[f]=V:r=V}return t.lastIndex=m,r}function a(e){var t=e[0]*degToRads,r=e[1]*degToRads,a=e[2]*degToRads,i=Math.cos(t/2),n=Math.cos(r/2),s=Math.cos(a/2),o=Math.sin(t/2),l=Math.sin(r/2),h=Math.sin(a/2);return[o*l*s+i*n*h,o*n*s+i*l*h,i*l*s-o*n*h,i*n*s-o*l*h]}function i(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=a&&t>=a||this._caching.lastFrame<r&&t<r))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function n(e){var r;if("unidimensional"===this.propType)r=e*this.mult,t(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var a=0,i=this.v.length;a<i;)r=e[a]*this.mult,t(this.v[a]-r)>1e-5&&(this.v[a]=r,this._mdf=!0),a+=1}function s(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(e,t,r,a){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=s,this.setVValue=n,this.addEffect=o}function h(e,t,r,a){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=t.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),i=0;i<l;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=s,this.setVValue=n,this.addEffect=o}function d(t,a,l,h){this.propType="unidimensional",this.keyframes=a.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=a,this.mult=l||1,this.elem=t,this.container=h,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=s,this.setVValue=n,this.interpolateValue=r,this.effectsSequence=[i.bind(this)],this.addEffect=o}function c(t,a,l,h){var d;this.propType="multidimensional";var c,p,u,m,f=a.k.length;for(d=0;d<f-1;d+=1)a.k[d].to&&a.k[d].s&&a.k[d+1]&&a.k[d+1].s&&(c=a.k[d].s,p=a.k[d+1].s,u=a.k[d].to,m=a.k[d].ti,(2===c.length&&(c[0]!==p[0]||c[1]!==p[1])&&bez.pointOnLine2D(c[0],c[1],p[0],p[1],c[0]+u[0],c[1]+u[1])&&bez.pointOnLine2D(c[0],c[1],p[0],p[1],p[0]+m[0],p[1]+m[1])||3===c.length&&(c[0]!==p[0]||c[1]!==p[1]||c[2]!==p[2])&&bez.pointOnLine3D(c[0],c[1],c[2],p[0],p[1],p[2],c[0]+u[0],c[1]+u[1],c[2]+u[2])&&bez.pointOnLine3D(c[0],c[1],c[2],p[0],p[1],p[2],p[0]+m[0],p[1]+m[1],p[2]+m[2]))&&(a.k[d].to=null,a.k[d].ti=null),c[0]===p[0]&&c[1]===p[1]&&0===u[0]&&0===u[1]&&0===m[0]&&0===m[1]&&(2===c.length||c[2]===p[2]&&0===u[2]&&0===m[2])&&(a.k[d].to=null,a.k[d].ti=null));this.effectsSequence=[i.bind(this)],this.data=a,this.keyframes=a.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=t,this.container=h,this.comp=t.comp,this.getValue=s,this.setVValue=n,this.interpolateValue=r,this.frameId=-1;var g=a.k[0].s.length;for(this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g),d=0;d<g;d+=1)this.v[d]=e,this.pv[d]=e;this._caching={lastFrame:e,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=o}return{getProp:function(e,t,r,a,i){var n;if(t.k.length)if("number"==typeof t.k[0])n=new h(e,t,a,i);else switch(r){case 0:n=new d(e,t,a,i);break;case 1:n=new c(e,t,a,i)}else n=new l(e,t,a,i);return n.effectsSequence.length&&i.addDynamicProperty(n),n}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,a,i){var n;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[]}(!n[a]||n[a]&&!i)&&(n[a]=pointPool.newElement()),n[a][0]=e,n[a][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,a,i,n,s,o){this.setXYAt(e,t,"v",s,o),this.setXYAt(r,a,"o",s,o),this.setXYAt(i,n,"i",s,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,a=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],a[0][0],a[0][1],r[0][0],r[0][1],0,!1),i=1);var n,s=this._length-1,o=this._length;for(n=i;n<o;n+=1)e.setTripleAt(t[s][0],t[s][1],a[s][0],a[s][1],r[s][0],r[s][1],n,!1),s-=1;return e};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),a=void 0===e._length?e.v.length:e._length;for(r.setLength(a),r.c=e.c,t=0;t<a;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var a,i,n,s,o,l,h,d,c,p=r.lastIndex,u=this.keyframes;if(e<u[0].t-this.offsetTime)a=u[0].s[0],n=!0,p=0;else if(e>=u[u.length-1].t-this.offsetTime)a=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],n=!0;else{for(var m,f,g,y=p,b=u.length-1,v=!0;v&&(m=u[y],!((f=u[y+1]).t-this.offsetTime>e));)y<b-1?y+=1:v=!1;if(g=this.keyframesMetadata[y]||{},p=y,!(n=1===m.h)){if(e>=f.t-this.offsetTime)d=1;else if(e<m.t-this.offsetTime)d=0;else{var C;g.__fnct?C=g.__fnct:(C=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,g.__fnct=C),d=C((e-(m.t-this.offsetTime))/(f.t-this.offsetTime-(m.t-this.offsetTime)))}i=f.s?f.s[0]:m.e[0]}a=m.s[0]}for(l=t._length,h=a.i[0].length,r.lastIndex=p,s=0;s<l;s+=1)for(o=0;o<h;o+=1)c=n?a.i[s][o]:a.i[s][o]+(i.i[s][o]-a.i[s][o])*d,t.i[s][o]=c,c=n?a.o[s][o]:a.o[s][o]+(i.o[s][o]-a.o[s][o])*d,t.o[s][o]=c,c=n?a.v[s][o]:a.v[s][o]+(i.v[s][o]-a.v[s][o])*d,t.v[s][o]=c}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>a&&t>a)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function a(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,a=e._length;for(r=0;r<a;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,n){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===n?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=n,s.prototype.setVValue=i,s.prototype.addEffect=o,l.prototype.getValue=n,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=o;var h=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],a=this.s.v[0]/2,i=this.s.v[1]/2,n=3!==this.d,s=this.v;s.v[0][0]=t,s.v[0][1]=r-i,s.v[1][0]=n?t+a:t-a,s.v[1][1]=r,s.v[2][0]=t,s.v[2][1]=r+i,s.v[3][0]=n?t-a:t+a,s.v[3][1]=r,s.i[0][0]=n?t-a*e:t+a*e,s.i[0][1]=r-i,s.i[1][0]=n?t+a:t-a,s.i[1][1]=r-i*e,s.i[2][0]=n?t+a*e:t-a*e,s.i[2][1]=r+i,s.i[3][0]=n?t-a:t+a,s.i[3][1]=r+i*e,s.o[0][0]=n?t+a*e:t-a*e,s.o[0][1]=r-i,s.o[1][0]=n?t+a:t-a,s.o[1][1]=r+i*e,s.o[2][0]=n?t-a*e:t+a*e,s.o[2][1]=r+i,s.o[3][0]=n?t-a:t+a,s.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,a,i=2*Math.floor(this.pt.v),n=2*Math.PI/i,s=!0,o=this.or.v,l=this.ir.v,h=this.os.v,d=this.is.v,c=2*Math.PI*o/(2*i),p=2*Math.PI*l/(2*i),u=-Math.PI/2;u+=this.r.v;var m=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=s?h:d,a=s?c:p;var f=(t=s?o:l)*Math.cos(u),g=t*Math.sin(u),y=0===f&&0===g?0:g/Math.sqrt(f*f+g*g),b=0===f&&0===g?0:-f/Math.sqrt(f*f+g*g);f+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(f,g,f-y*a*r*m,g-b*a*r*m,f+y*a*r*m,g+b*a*r*m,e,!0),s=!s,u+=n*m}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,a=this.or.v,i=this.os.v,n=2*Math.PI*a/(4*t),s=.5*-Math.PI,o=3===this.data.d?-1:1;for(s+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=a*Math.cos(s),h=a*Math.sin(s),d=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),c=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-d*n*i*o,h-c*n*i*o,l+d*n*i*o,h+c*n*i*o,e,!0),s+=r*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,a=this.s.v[1]/2,i=bmMin(r,a,this.r.v),n=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-a+i,e+r,t-a+i,e+r,t-a+n,0,!0),this.v.setTripleAt(e+r,t+a-i,e+r,t+a-n,e+r,t+a-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+a,e+r-i,t+a,e+r-n,t+a,2,!0),this.v.setTripleAt(e-r+i,t+a,e-r+n,t+a,e-r+i,t+a,3,!0),this.v.setTripleAt(e-r,t+a-i,e-r,t+a-i,e-r,t+a-n,4,!0),this.v.setTripleAt(e-r,t-a+i,e-r,t-a+n,e-r,t-a+i,5,!0),this.v.setTripleAt(e-r+i,t-a,e-r+i,t-a,e-r+n,t-a,6,!0),this.v.setTripleAt(e+r-i,t-a,e+r-n,t-a,e+r-i,t-a,7,!0)):(this.v.setTripleAt(e-r,t+a,e-r+n,t+a,e-r,t+a,2),this.v.setTripleAt(e-r,t-a,e-r,t-a+n,e-r,t-a,3))):(this.v.setTripleAt(e+r,t-a+i,e+r,t-a+n,e+r,t-a+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-a,e+r-i,t-a,e+r-n,t-a,1,!0),this.v.setTripleAt(e-r+i,t-a,e-r+n,t-a,e-r+i,t-a,2,!0),this.v.setTripleAt(e-r,t-a+i,e-r,t-a+i,e-r,t-a+n,3,!0),this.v.setTripleAt(e-r,t+a-i,e-r,t+a-n,e-r,t+a-i,4,!0),this.v.setTripleAt(e-r+i,t+a,e-r+i,t+a,e-r+n,t+a,5,!0),this.v.setTripleAt(e+r-i,t+a,e+r-n,t+a,e+r-i,t+a,6,!0),this.v.setTripleAt(e+r,t+a-i,e+r,t+a-i,e+r,t+a-n,7,!0)):(this.v.setTripleAt(e-r,t-a,e-r+n,t-a,e-r,t-a,1,!0),this.v.setTripleAt(e-r,t+a,e-r,t+a-n,e-r,t+a,2,!0),this.v.setTripleAt(e+r,t+a,e+r-n,t+a,e+r,t+a,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],e),e}(),p={getShapeProp:function(e,t,r){var a;return 3===r||4===r?a=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new s(e,t,r):5===r?a=new c(e,t):6===r?a=new h(e,t):7===r&&(a=new d(e,t)),a.k&&e.addDynamicProperty(a),a},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return l}};return p}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,a=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function n(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,-i,0,0,i,a,0,0,0,0,1,0,0,0,0,1)}function s(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(1,0,0,0,0,a,-i,0,0,i,a,0,0,0,0,1)}function o(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,0,i,0,0,1,0,0,-i,0,a,0,0,0,0,1)}function l(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,-i,0,0,i,a,0,0,0,0,1,0,0,0,0,1)}function h(e,t){return this._t(1,t,e,1,0,0)}function d(e,t){return this.shear(r(e),r(t))}function c(a,i){var n=e(i),s=t(i);return this._t(n,s,0,0,-s,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(a),1,0,0,0,0,1,0,0,0,0,1)._t(n,-s,0,0,s,n,0,0,0,0,1,0,0,0,0,1)}function p(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function u(e,t,r,a,i,n,s,o,l,h,d,c,p,u,m,f){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=a,this.props[4]=i,this.props[5]=n,this.props[6]=s,this.props[7]=o,this.props[8]=l,this.props[9]=h,this.props[10]=d,this.props[11]=c,this.props[12]=p,this.props[13]=u,this.props[14]=m,this.props[15]=f,this}function m(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function f(e,t,r,a,i,n,s,o,l,h,d,c,p,u,m,f){var g=this.props;if(1===e&&0===t&&0===r&&0===a&&0===i&&1===n&&0===s&&0===o&&0===l&&0===h&&1===d&&0===c)return g[12]=g[12]*e+g[15]*p,g[13]=g[13]*n+g[15]*u,g[14]=g[14]*d+g[15]*m,g[15]*=f,this._identityCalculated=!1,this;var y=g[0],b=g[1],v=g[2],C=g[3],x=g[4],S=g[5],_=g[6],T=g[7],$=g[8],w=g[9],E=g[10],k=g[11],A=g[12],P=g[13],M=g[14],I=g[15];return g[0]=y*e+b*i+v*l+C*p,g[1]=y*t+b*n+v*h+C*u,g[2]=y*r+b*s+v*d+C*m,g[3]=y*a+b*o+v*c+C*f,g[4]=x*e+S*i+_*l+T*p,g[5]=x*t+S*n+_*h+T*u,g[6]=x*r+S*s+_*d+T*m,g[7]=x*a+S*o+_*c+T*f,g[8]=$*e+w*i+E*l+k*p,g[9]=$*t+w*n+E*h+k*u,g[10]=$*r+w*s+E*d+k*m,g[11]=$*a+w*o+E*c+k*f,g[12]=A*e+P*i+M*l+I*p,g[13]=A*t+P*n+M*h+I*u,g[14]=A*r+P*s+M*d+I*m,g[15]=A*a+P*o+M*c+I*f,this._identityCalculated=!1,this}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function v(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function C(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function x(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function S(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function _(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function T(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,a=-this.props[4]/e,i=this.props[0]/e,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,o=new Matrix;return o.props[0]=t,o.props[1]=r,o.props[4]=a,o.props[5]=i,o.props[12]=n,o.props[13]=s,o}function $(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function w(e){var t,r=e.length,a=[];for(t=0;t<r;t+=1)a[t]=$(e[t]);return a}function E(e,t,r){var a=createTypedArray("float32",6);if(this.isIdentity())a[0]=e[0],a[1]=e[1],a[2]=t[0],a[3]=t[1],a[4]=r[0],a[5]=r[1];else{var i=this.props[0],n=this.props[1],s=this.props[4],o=this.props[5],l=this.props[12],h=this.props[13];a[0]=e[0]*i+e[1]*s+l,a[1]=e[0]*n+e[1]*o+h,a[2]=t[0]*i+t[1]*s+l,a[3]=t[0]*n+t[1]*o+h,a[4]=r[0]*i+r[1]*s+l,a[5]=r[0]*n+r[1]*o+h}return a}function k(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function A(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function P(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=a(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function M(e){return e<1e-6&&e>0||e>-1e-6&&e<0?a(1e4*e)/1e4:e}function I(){var e=this.props;return"matrix("+M(e[0])+","+M(e[1])+","+M(e[4])+","+M(e[5])+","+M(e[12])+","+M(e[13])+")"}return function(){this.reset=i,this.rotate=n,this.rotateX=s,this.rotateY=o,this.rotateZ=l,this.skew=d,this.skewFromAxis=c,this.shear=h,this.scale=p,this.setTransform=u,this.translate=m,this.transform=f,this.applyToPoint=C,this.applyToX=x,this.applyToY=S,this.applyToZ=_,this.applyToPointArray=k,this.applyToTriplePoints=E,this.applyToPointStringified=A,this.toCSS=P,this.to2dCSS=I,this.clone=b,this.cloneFromProps=v,this.equals=y,this.inversePoints=w,this.inversePoint=$,this.getInverseMatrix=T,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var a=t[r].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.9.6";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,a){return new t[e](r,a)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,a,i){var n=[];t<=1?n.push({s:e,e:t}):e>=1?n.push({s:e-1,e:t-1}):(n.push({s:e,e:1}),n.push({s:0,e:t-1}));var s,o,l=[],h=n.length;for(s=0;s<h;s+=1){var d,c;(o=n[s]).e*i<a||o.s*i>a+r||(d=o.s*i<=a?0:(o.s*i-a)/r,c=o.e*i>=a+r?1:(o.e*i-a)/r,l.push([d,c]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,a,i;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),(t=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(r=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var s=t;t=r,r=s}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var o,l,h,d,c,p=this.shapes.length,u=0;if(r===t)for(i=0;i<p;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(i=0;i<p;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var m,f,g=[];for(i=0;i<p;i+=1)if((m=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(a=m.shape.paths)._length,c=0,!m.shape._mdf&&m.pathsData.length)c=m.totalShapeLength;else{for(h=this.releasePathsData(m.pathsData),o=0;o<l;o+=1)d=bez.getSegmentsLength(a.shapes[o]),h.push(d),c+=d.totalLength;m.totalShapeLength=c,m.pathsData=h}u+=c,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var y,b=t,v=r,C=0;for(i=p-1;i>=0;i-=1)if((m=this.shapes[i]).shape._mdf){for((f=m.localShapeCollection).releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(t,r,m.totalShapeLength,C,u),C+=m.totalShapeLength):y=[[b,v]],l=y.length,o=0;o<l;o+=1){b=y[o][0],v=y[o][1],g.length=0,v<=1?g.push({s:m.totalShapeLength*b,e:m.totalShapeLength*v}):b>=1?g.push({s:m.totalShapeLength*(b-1),e:m.totalShapeLength*(v-1)}):(g.push({s:m.totalShapeLength*b,e:m.totalShapeLength}),g.push({s:0,e:m.totalShapeLength*(v-1)}));var x=this.addShapes(m,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var S=x.pop();this.addPaths(x,f),x=this.addShapes(m,g[1],S)}else this.addPaths(x,f),x=this.addShapes(m,g[1]);this.addPaths(x,f)}}m.shape.paths=f}}},TrimModifier.prototype.addPaths=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,a,i,n,s){i.setXYAt(t[0],t[1],"o",n),i.setXYAt(r[0],r[1],"i",n+1),s&&i.setXYAt(e[0],e[1],"v",n),i.setXYAt(a[0],a[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,a){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),a&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var a,i,n,s,o,l,h,d,c=e.pathsData,p=e.shape.paths.shapes,u=e.shape.paths._length,m=0,f=[],g=!0;for(r?(o=r._length,d=r._length):(r=shapePool.newElement(),o=0,d=0),f.push(r),a=0;a<u;a+=1){for(l=c[a].lengths,r.c=p[a].c,n=p[a].c?l.length:l.length+1,i=1;i<n;i+=1)if(m+(s=l[i-1]).addedLength<t.s)m+=s.addedLength,r.c=!1;else{if(m>t.e){r.c=!1;break}t.s<=m&&t.e>=m+s.addedLength?(this.addSegment(p[a].v[i-1],p[a].o[i-1],p[a].i[i],p[a].v[i],r,o,g),g=!1):(h=bez.getNewSegment(p[a].v[i-1],p[a].v[i],p[a].o[i-1],p[a].i[i],(t.s-m)/s.addedLength,(t.e-m)/s.addedLength,l[i-1]),this.addSegmentFromArray(h,r,o,g),g=!1,r.c=!1),m+=s.addedLength,o+=1}if(p[a].c&&l.length){if(s=l[i-1],m<=t.e){var y=l[i-1].addedLength;t.s<=m&&t.e>=m+y?(this.addSegment(p[a].v[i-1],p[a].o[i-1],p[a].i[0],p[a].v[0],r,o,g),g=!1):(h=bez.getNewSegment(p[a].v[i-1],p[a].v[0],p[a].o[i-1],p[a].i[0],(t.s-m)/y,(t.e-m)/y,l[i-1]),this.addSegmentFromArray(h,r,o,g),g=!1,r.c=!1)}else r.c=!1;m+=s.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[d][0],r.v[d][1],"i",d),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>t.e)break;a<u-1&&(r=shapePool.newElement(),g=!0,f.push(r),o=0)}return f},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,a=[0,0],i=e._length,n=0;for(n=0;n<i;n+=1)a[0]+=e.v[n][0],a[1]+=e.v[n][1];a[0]/=i,a[1]/=i;var s,o,l,h,d,c,p=shapePool.newElement();for(p.c=e.c,n=0;n<i;n+=1)s=e.v[n][0]+(a[0]-e.v[n][0])*r,o=e.v[n][1]+(a[1]-e.v[n][1])*r,l=e.o[n][0]+(a[0]-e.o[n][0])*-r,h=e.o[n][1]+(a[1]-e.o[n][1])*-r,d=e.i[n][0]+(a[0]-e.i[n][0])*-r,c=e.i[n][1]+(a[1]-e.i[n][1])*-r,p.setTripleAt(s,o,l,h,d,c,n);return p},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,a,i,n,s,o=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<o;r+=1){if(s=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(s.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,i=n.shape.paths._length,a=0;a<i;a+=1)s.addShape(this.processPath(t[a],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var a,i=t.or.k.length;for(a=0;a<i;a+=1)t.or.k[a].to=null,t.or.k[a].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var a,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(a=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(a=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(a=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){a=[],i=[];var n=this.px,s=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(a[0]=n.getValueAtTime((n.keyframes[0].t+.01)/r,0),a[1]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[0]=n.getValueAtTime(n.keyframes[0].t/r,0),i[1]=s.getValueAtTime(s.keyframes[0].t/r,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(a[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/r,0),a[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/r,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0)):(a=[n.pv,s.pv],i[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/r,n.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime))}else a=i=e;this.v.rotate(-Math.atan2(a[1]-i[1],a[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,a){return new t(e,r,a)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",a="normal",i=t.length,n=0;n<i;n+=1)switch(t[n].toLowerCase()){case"italic":a="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:a,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,a,i,n){var s=n?-1:1,o=a.s.v[0]+(1-a.s.v[0])*(1-i),l=a.s.v[1]+(1-a.s.v[1])*(1-i);e.translate(a.p.v[0]*s*i,a.p.v[1]*s*i,a.p.v[2]),t.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),t.rotate(-a.r.v*s*i),t.translate(a.a.v[0],a.a.v[1],a.a.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.scale(n?1/o:o,n?1/l:l),r.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,a){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,a,i,n,s=!1;if(this._mdf||e){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}for(n=0,a=0;a<=this._groups.length-1;a+=1){if(o=n<l,this._groups[a]._render=o,this.changeGroupRender(this._groups[a].it,o),!o){var d=this.elemsData[a].it,c=d[d.length-1];0!==c.transform.op.v?(c.transform.op._mdf=!0,c.transform.op.v=0):c.transform.op._mdf=!1}n+=1}this._currentCopies=l;var p=this.o.v,u=p%1,m=p>0?Math.floor(p):Math.ceil(p),f=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b,v,C=0;if(p>0){for(;C<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),C+=u)}else if(p<0){for(;C>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),C-=u)}for(a=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,n=this._currentCopies;n;){if(v=(r=(t=this.elemsData[a].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),0!==C){for((0!==a&&1===i||a!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),b=0;b<v;b+=1)r[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<v;b+=1)r[b]=this.matrix.props[b];C+=1,n-=1,a+=i}}else for(n=this._currentCopies,a=0,i=1;n;)r=(t=this.elemsData[a].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,n-=1,a+=i;return s},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,a=shapePool.newElement();a.c=e.c;var i,n,s,o,l,h,d,c,p,u,m,f,g=e._length,y=0;for(r=0;r<g;r+=1)i=e.v[r],s=e.o[r],n=e.i[r],i[0]===s[0]&&i[1]===s[1]&&i[0]===n[0]&&i[1]===n[1]?0!==r&&r!==g-1||e.c?(o=0===r?e.v[g-1]:e.v[r-1],h=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,d=m=i[0]+(o[0]-i[0])*h,c=f=i[1]-(i[1]-o[1])*h,p=d-(d-i[0])*roundCorner,u=c-(c-i[1])*roundCorner,a.setTripleAt(d,c,p,u,m,f,y),y+=1,o=r===g-1?e.v[0]:e.v[r+1],h=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,d=p=i[0]+(o[0]-i[0])*h,c=u=i[1]+(o[1]-i[1])*h,m=d-(d-i[0])*roundCorner,f=c-(c-i[1])*roundCorner,a.setTripleAt(d,c,p,u,m,f,y),y+=1):(a.setTripleAt(i[0],i[1],s[0],s[1],n[0],n[1],y),y+=1):(a.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],y),y+=1);return a},RoundCornersModifier.prototype.processShapes=function(e){var t,r,a,i,n,s,o=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<o;r+=1){if(s=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(s.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,i=n.shape.paths._length,a=0;a<i;a+=1)s.addShape(this.processPath(t[a],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],a=[65039,8205];function i(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var a=createTag("span");a.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(a),document.body.appendChild(r);var i=a.offsetWidth;return a.style.fontFamily=function(e){var t,r=e.split(","),a=r.length,i=[];for(t=0;t<a;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:a,w:i,parent:r}}function n(e,t){var r,a=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===a){var n=createNS("text");n.style.fontSize="100px",n.setAttribute("font-family",e.fFamily),n.setAttribute("font-style",i.style),n.setAttribute("font-weight",i.weight),n.textContent="1",e.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",e.fClass)):n.style.fontFamily=e.fFamily,t.appendChild(n),r=n}else{var s=new OffscreenCanvas(500,500).getContext("2d");s.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=s}return{measureText:function(e){return"svg"===a?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}var s=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};s.isModifier=function(e,t){var a=e.toString(16)+t.toString(16);return-1!==r.indexOf(a)},s.isZeroWidthJoiner=function(e,t){return t?e===a[0]&&t===a[1]:e===a[1]},s.isCombinedCharacter=function(e){return-1!==t.indexOf(e)};var o={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,a,i=e.length,n=this.chars.length;for(t=0;t<i;t+=1){for(r=0,a=!1;r<n;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(a=!0),r+=1;a||(this.chars.push(e[t]),n+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=n(e),e.cache={}})),void(this.fonts=e.list);var r,a=e.list,s=a.length,o=s;for(r=0;r<s;r+=1){var l,h,d=!0;if(a[r].loaded=!1,a[r].monoCase=i(a[r].fFamily,"monospace"),a[r].sansCase=i(a[r].fFamily,"sans-serif"),a[r].fPath){if("p"===a[r].fOrigin||3===a[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+a[r].fFamily+'"], style[f-origin="3"][f-family="'+a[r].fFamily+'"]')).length>0&&(d=!1),d){var c=createTag("style");c.setAttribute("f-forigin",a[r].fOrigin),c.setAttribute("f-origin",a[r].origin),c.setAttribute("f-family",a[r].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+a[r].fFamily+"; font-style: normal; src: url('"+a[r].fPath+"');}",t.appendChild(c)}}else if("g"===a[r].fOrigin||1===a[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<l.length;h+=1)-1!==l[h].href.indexOf(a[r].fPath)&&(d=!1);if(d){var p=createTag("link");p.setAttribute("f-forigin",a[r].fOrigin),p.setAttribute("f-origin",a[r].origin),p.type="text/css",p.rel="stylesheet",p.href=a[r].fPath,document.body.appendChild(p)}}else if("t"===a[r].fOrigin||2===a[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)a[r].fPath===l[h].src&&(d=!1);if(d){var u=createTag("link");u.setAttribute("f-forigin",a[r].fOrigin),u.setAttribute("f-origin",a[r].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",a[r].fPath),t.appendChild(u)}}}else a[r].loaded=!0,o-=1;a[r].helper=n(a[r],t),a[r].cache={},this.fonts.push(a[r])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,a){for(var i=0,n=this.chars.length;i<n;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===a)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,a)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var a=this.getFontByName(t),i=e.charCodeAt(0);if(!a.cache[i+1]){var n=a.helper;if(" "===e){var s=n.measureText("|"+e+"|"),o=n.measureText("||");a.cache[i+1]=(s-o)/100}else a.cache[i+1]=n.measureText(e)/100}return a.cache[i+1]*r},checkLoadedFonts:function(){var e,t,r,a=this.fonts.length,i=a;for(e=0;e<a;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return s.prototype=o,s}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,a=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)a[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return a[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(a){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[a-1]?t.keyframes[a-1].s:"e"in t.keyframes[a-2]?t.keyframes[a-2].e:t.keyframes[a-2].s;var n="unidimensional"===r?new Number(i):Object.assign({},i);return n.time=t.keyframes[a-1].t/t.elem.comp.globalData.frameRate,n.value="unidimensional"===r?i[0]:i,n},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function a(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var a=1/t.mult,i=t.pv*a,n=new Number(i);return n.value=i,r(n,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*a,n.value!==i&&((n=new Number(i)).value=i,r(n,t,"unidimensional")),n}}(i):function(e){e&&"pv"in e||(e=t);var a=1/e.mult,i=e.data&&e.data.l||e.pv.length,n=createTypedArray("float32",i),s=createTypedArray("float32",i);return n.value=s,r(n,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)s[t]=e.v[t]*a,n[t]=s[t];return n}}(i):a}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,a,i,n;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?n=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[r(),a(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function a(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function n(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function s(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function o(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(h){var d;function c(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return c.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return d;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return c.effect;case"ADBE Text Properties":return c.textInterface;default:return null}}c.getMatrix=e,c.invertPoint=s,c.applyPoint=n,c.toWorld=r,c.toWorldVec=t,c.fromWorld=i,c.fromWorldVec=a,c.toComp=r,c.fromComp=o,c.sampleImage=l,c.sourceRectAtTime=h.sourceRectAtTime.bind(h),c._elem=h;var p=getDescriptor(d=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(c,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(d,"rotation"),scale:getDescriptor(d,"scale"),position:getDescriptor(d,"position"),opacity:getDescriptor(d,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return d}},active:{get:function(){return h.isInRange}}}),c.startTime=h.data.st,c.index=h.data.ind,c.source=h.data.refId,c.height=0===h.data.ty?h.data.h:100,c.width=0===h.data.ty?h.data.w:100,c.inPoint=h.data.ip/h.comp.globalData.frameRate,c.outPoint=h.data.op/h.comp.globalData.frameRate,c._name=h.data.nm,c.registerMaskInterface=function(e){c.mask=new MaskManagerInterface(e,h)},c.registerEffectsInterface=function(e){c.effect=e},c}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){function e(r,a,i,n){function s(e){for(var t=r.ef,a=0,i=t.length;a<i;){if(e===t[a].nm||e===t[a].mn||e===t[a].ix)return 5===t[a].ty?h[a]:h[a]();a+=1}throw new Error}var o,l=propertyGroupFactory(s,i),h=[],d=r.ef.length;for(o=0;o<d;o+=1)5===r.ef[o].ty?h.push(e(r.ef[o],a.effectElements[o],a.effectElements[o].propertyGroup,n)):h.push(t(a.effectElements[o],r.ef[o].ty,n,l));return"ADBE Color Control"===r.mn&&Object.defineProperty(s,"color",{get:function(){return h[0]()}}),Object.defineProperties(s,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),s.enabled=0!==r.en,s.active=s.enabled,s}function t(e,t,r,a){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",a)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var a,i=[],n=t.data.ef,s=t.effectsManager.effectElements.length;for(a=0;a<s;a+=1)i.push(e(n[a],t.effectsManager.effectElements[a],r,t));var o=t.data.ef||[],l=function(e){for(a=0,s=o.length;a<s;){if(e===o[a].nm||e===o[a].mn||e===o[a].ix)return i[a];a+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),CompExpressionInterface=function(e){function t(t){for(var r=0,a=e.layers.length;r<a;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t},ShapePathInterface=function(e,t,r){var a=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var n=propertyGroupFactory(i,r);return a.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(i,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function e(e,s,p){var u,m=[],f=e?e.length:0;for(u=0;u<f;u+=1)"gr"===e[u].ty?m.push(t(e[u],s[u],p)):"fl"===e[u].ty?m.push(r(e[u],s[u],p)):"st"===e[u].ty?m.push(i(e[u],s[u],p)):"tm"===e[u].ty?m.push(n(e[u],s[u],p)):"tr"===e[u].ty||("el"===e[u].ty?m.push(o(e[u],s[u],p)):"sr"===e[u].ty?m.push(l(e[u],s[u],p)):"sh"===e[u].ty?m.push(ShapePathInterface(e[u],s[u],p)):"rc"===e[u].ty?m.push(h(e[u],s[u],p)):"rd"===e[u].ty?m.push(d(e[u],s[u],p)):"rp"===e[u].ty?m.push(c(e[u],s[u],p)):"gf"===e[u].ty?m.push(a(e[u],s[u],p)):m.push((e[u],s[u],function(){return null})));return m}function t(t,r,a){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,a);var n=function(t,r,a){var i,n=function(e){for(var t=0,r=i.length;t<r;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};n.propertyGroup=propertyGroupFactory(n,a),i=e(t.it,r.it,n.propertyGroup),n.numProperties=i.length;var o=s(t.it[t.it.length-1],r.it[r.it.length-1],n.propertyGroup);return n.transform=o,n.propertyIndex=t.cix,n._name=t.nm,n}(t,r,i.propertyGroup),o=s(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=n,i.transform=o,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function r(e,t,r){function a(e){return"Color"===e||"color"===e?a.color:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),a}function a(e,t,r){function a(e){return"Start Point"===e||"start point"===e?a.startPoint:"End Point"===e||"end point"===e?a.endPoint:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),a}function i(e,t,r){var a,i=propertyGroupFactory(h,r),n=propertyGroupFactory(l,i);function s(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var o=e.d?e.d.length:0,l={};for(a=0;a<o;a+=1)s(a),t.d.dataProps[a].p.setGroupProperty(n);function h(e){return"Color"===e||"color"===e?h.color:"Opacity"===e||"opacity"===e?h.opacity:"Stroke Width"===e||"stroke width"===e?h.strokeWidth:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),h}function n(e,t,r){function a(t){return t===e.e.ix||"End"===t||"end"===t?a.end:t===e.s.ix?a.start:t===e.o.ix?a.offset:null}var i=propertyGroupFactory(a,r);return a.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),a.propertyIndex=e.ix,a.propertyGroup=r,Object.defineProperties(a,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),a.mn=e.mn,a}function s(e,t,r){function a(t){return e.a.ix===t||"Anchor Point"===t?a.anchorPoint:e.o.ix===t||"Opacity"===t?a.opacity:e.p.ix===t||"Position"===t?a.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?a.rotation:e.s.ix===t||"Scale"===t?a.scale:e.sk&&e.sk.ix===t||"Skew"===t?a.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?a.skewAxis:null}var i=propertyGroupFactory(a,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(a,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),a.ty="tr",a.mn=e.mn,a.propertyGroup=r,a}function o(e,t,r){function a(t){return e.p.ix===t?a.position:e.s.ix===t?a.size:null}var i=propertyGroupFactory(a,r);a.propertyIndex=e.ix;var n="tm"===t.sh.ty?t.sh.prop:t.sh;return n.s.setGroupProperty(PropertyInterface("Size",i)),n.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(a,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:e.nm}}),a.mn=e.mn,a}function l(e,t,r){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.rotation:e.pt.ix===t?a.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?a.outerRadius:e.os.ix===t?a.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?a.innerRoundness:null:a.innerRadius}var i=propertyGroupFactory(a,r),n="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",i)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),n.pt.setGroupProperty(PropertyInterface("Points",i)),n.p.setGroupProperty(PropertyInterface("Position",i)),n.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:e.nm}}),a.mn=e.mn,a}function h(e,t,r){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?a.size:null}var i=propertyGroupFactory(a,r),n="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,n.p.setGroupProperty(PropertyInterface("Position",i)),n.s.setGroupProperty(PropertyInterface("Size",i)),n.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:e.nm}}),a.mn=e.mn,a}function d(e,t,r){function a(t){return e.r.ix===t||"Round Corners 1"===t?a.radius:null}var i=propertyGroupFactory(a,r),n=t;return a.propertyIndex=e.ix,n.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(a,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:e.nm}}),a.mn=e.mn,a}function c(e,t,r){function a(t){return e.c.ix===t||"Copies"===t?a.copies:e.o.ix===t||"Offset"===t?a.offset:null}var i=propertyGroupFactory(a,r),n=t;return a.propertyIndex=e.ix,n.c.setGroupProperty(PropertyInterface("Copies",i)),n.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(a,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:e.nm}}),a.mn=e.mn,a}return function(t,r,a){var i;function n(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?a:i[e-1];for(var t=0,r=i.length;t<r;){if(i[t]._name===e)return i[t];t+=1}return null}return n.propertyGroup=propertyGroupFactory(n,(function(){return a})),i=e(t,r,n.propertyGroup),n.numProperties=i.length,n._name="Contents",n}}(),TextExpressionInterface=function(e){var t,r;function a(e){return"ADBE Text Document"===e?a.sourceText:null}return Object.defineProperty(a,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return a!==t&&(e.textProperty.currentData.t=t,(r=new String(a)).value=a||new String(a)),r}}),a},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(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,a=e.ef||[];this.effectElements=[];var i,n=a.length;for(r=0;r<n;r+=1)i=new GroupEffect(a[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var a,i=this.data.ef.length,n=this.data.ef;for(r=0;r<i;r+=1){switch(a=null,n[r].ty){case 0:a=new SliderEffect(n[r],t,this);break;case 1:a=new AngleEffect(n[r],t,this);break;case 2:a=new ColorEffect(n[r],t,this);break;case 3:a=new PointEffect(n[r],t,this);break;case 4:case 7:a=new CheckboxEffect(n[r],t,this);break;case 10:a=new LayerIndexEffect(n[r],t,this);break;case 11:a=new MaskIndexEffect(n[r],t,this);break;case 5:a=new EffectsManager(n[r],t);break;default:a=new NoValueEffect(n[r])}a&&this.effectElements.push(a)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var e=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(e),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new 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(e,t){var r,a=this.dynamicProperties.length;for(r=0;r<a;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}};var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function a(e){if(r[e])return t=e,"object"===_typeof$2(r=r[e])?a:r;var i=e.indexOf(t);if(-1!==i){var n=parseInt(e.substr(i+t.length),10);return"object"===_typeof$2(r=r[n])?a:r}return""}return function(){return t="",r=e.getFootageData(),a}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory;function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a,i,n=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var o,l,h,d,c,p,u=this.masksProperties,m=0,f=[],g=createElementID(),y="clipPath",b="clip-path";for(a=0;a<s;a+=1)if(("a"!==u[a].mode&&"n"!==u[a].mode||u[a].inv||100!==u[a].o.k||u[a].o.x)&&(y="mask",b="mask"),"s"!==u[a].mode&&"i"!==u[a].mode||0!==m?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),f.push(h)),i=createNS("path"),"n"===u[a].mode)this.viewData[a]={op:PropertyFactory.getProp(this.element,u[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[a],3),elem:i,lastPath:""},n.appendChild(i);else{var v;if(m+=1,i.setAttribute("fill","s"===u[a].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==u[a].x.k?(y="mask",b="mask",p=PropertyFactory.getProp(this.element,u[a].x,0,null,this.element),v=createElementID(),(d=createNS("filter")).setAttribute("id",v),(c=createNS("feMorphology")).setAttribute("operator","erode"),c.setAttribute("in","SourceGraphic"),c.setAttribute("radius","0"),d.appendChild(c),n.appendChild(d),i.setAttribute("stroke","s"===u[a].mode?"#000000":"#ffffff")):(c=null,p=null),this.storedData[a]={elem:i,x:p,expan:c,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===u[a].mode){l=f.length;var C=createNS("g");for(o=0;o<l;o+=1)C.appendChild(f[o]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",g+"_"+m),x.appendChild(i),n.appendChild(x),C.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+m+")"),f.length=0,f.push(C)}else f.push(i);u[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,u[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[a],3),invRect:h},this.viewData[a].prop.k||this.drawPath(u[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(y),s=f.length,a=0;a<s;a+=1)this.maskElement.appendChild(f[a]);m>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+g+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,a=this.layers.length;for(this.completeLayers=!0,t=a-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,a=e.length,i=this.layers.length;for(t=0;t<a;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var a=this.elements,i=this.layers,n=0,s=i.length;n<s;)i[n].ind==t&&(a[n]&&!0!==a[n]?(r.push(a[n]),a[n].setAsParent(),void 0!==i[n].parent?this.buildElementParenting(e,i[n].parent,r):e.setHierarchy(r)):(this.buildItem(n),this.addPendingElement(e))),n+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var a=this.createComp(e[t]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var a,i=this.elements.length;for(a=0;a<i;a+=1)if(this.elements[a].data.nm===r){t=this.elements[a];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}},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._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<a;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<a;r+=1)e=this.hierarchy[r].finalTransform.mProp.v.props,t.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,a=!0,i=this.comp;a;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):a=!1;var n,s=t.length;for(r=0;r<s;r+=1)n=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-n[0],e[1]-n[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,a=this.masksProperties.length;for(t=0;t<a;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var a,i,n=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,a=1;a<i;a+=1)n+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[a][0]+","+t.i[a][1]+" "+t.v[a][0]+","+t.v[a][1];if(t.c&&i>1&&(n+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==n){var s="";r.elem&&(t.c&&(s=e.inv?this.solidPath+n:n),r.elem.setAttribute("d",s)),r.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),e}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(e){var t,r,a="SourceGraphic",i=e.data.ef?e.data.ef.length:0,n=createElementID(),s=filtersFactory.createFilter(n,!0),o=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects[l]&&(r=new(0,registeredEffects[l].effect)(s,e.effectsManager.effectElements[t],e,idPrefix+o,a),a=idPrefix+o,registeredEffects[l].countsAsEffect&&(o+=1)),r&&this.filters.push(r)}o&&(e.globalData.defs.appendChild(s),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t,r){registeredEffects[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e,t,r,a=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var i=createNS("mask");i.setAttribute("id",this.layerId),i.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),i.appendChild(this.layerElement),a=i,this.globalData.defs.appendChild(i),featureSupport.maskType||1!=this.data.td||(i.setAttribute("mask-type","luminance"),e=createElementID(),t=filtersFactory.createFilter(e),this.globalData.defs.appendChild(t),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(this.layerElement),a=r,i.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2==this.data.td){var n=createNS("mask");n.setAttribute("id",this.layerId),n.setAttribute("mask-type","alpha");var s=createNS("g");n.appendChild(s),e=createElementID(),t=filtersFactory.createFilter(e);var o=createNS("feComponentTransfer");o.setAttribute("in","SourceGraphic"),t.appendChild(o);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),o.appendChild(l),this.globalData.defs.appendChild(t);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),s.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),s.appendChild(h),s.appendChild(this.layerElement),a=s,featureSupport.maskType||(n.setAttribute("mask-type","luminance"),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),s.appendChild(h),r.appendChild(this.layerElement),a=r,s.appendChild(r)),this.globalData.defs.appendChild(n)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),a=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var d=createNS("clipPath"),c=createNS("path");c.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=createElementID();if(d.setAttribute("id",p),d.appendChild(c),this.globalData.defs.appendChild(d),this.checkMasks()){var u=createNS("g");u.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")"),u.appendChild(this.layerElement),this.transformedElement=u,a?a.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,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.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,a=t.length;r<a;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,a=r.length;a;)if(r[a-=1].elem===e)return void(r[a].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var a=0,i=e.length;a<i;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,a){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(a);var n,s=t.length||0;for(i=0;i<s;i+=1)n=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=n.k||this.k,this.dataProps[i]={n:t[i].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var a=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,a=this.o.length/2;r<a;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,a,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,a=Math.round(this.prop.v[t]*r),this.c[t]!==a&&(this.c[t]=a,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)r=t%2==0?100:1,a=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==a&&(this.o[t-4*this.data.p]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),a=createNS(1===t.t?"linearGradient":"radialGradient");a.setAttribute("id",r),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var i,n,s,o=[];for(s=4*t.g.p,n=0;n<s;n+=4)i=createNS("stop"),a.appendChild(i),o.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=a,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,a,i,n=createNS("mask"),s=createNS("path");n.appendChild(s);var o=createElementID(),l=createElementID();n.setAttribute("id",l);var h=createNS(1===e.t?"linearGradient":"radialGradient");h.setAttribute("id",o),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(a=4*e.g.p;a<i;a+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(r),d.push(r);s.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===e.ty&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=h,this.ms=n,this.ost=d,this.maskId=l,t.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,a){if(0===t)return"";var i,n=e.o,s=e.i,o=e.v,l=" M"+a.applyToPointStringified(o[0][0],o[0][1]);for(i=1;i<t;i+=1)l+=" C"+a.applyToPointStringified(n[i-1][0],n[i-1][1])+" "+a.applyToPointStringified(s[i][0],s[i][1])+" "+a.applyToPointStringified(o[i][0],o[i][1]);return r&&t&&(l+=" C"+a.applyToPointStringified(n[i-1][0],n[i-1][1])+" "+a.applyToPointStringified(s[0][0],s[0][1])+" "+a.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function a(){}function i(r,a,i){var n,s,o,l,h,d,c,p,u,m,f,g=a.styles.length,y=a.lvl;for(d=0;d<g;d+=1){if(l=a.sh._mdf||i,a.styles[d].lvl<y){for(p=t.reset(),m=y-a.styles[d].lvl,f=a.transformers.length-1;!l&&m>0;)l=a.transformers[f].mProps._mdf||l,m-=1,f-=1;if(l)for(m=y-a.styles[d].lvl,f=a.transformers.length-1;m>0;)u=a.transformers[f].mProps.v.props,p.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),m-=1,f-=1}else p=e;if(s=(c=a.sh.paths)._length,l){for(o="",n=0;n<s;n+=1)(h=c.shapes[n])&&h._length&&(o+=buildShapeString(h,h._length,h.c,p));a.caches[d]=o}else o=a.caches[d];a.styles[d].d+=!0===r.hd?"":o,a.styles[d]._mdf=l||a.styles[d]._mdf}}function n(e,t,r){var a=t.style;(t.c._mdf||r)&&a.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&a.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,r){o(e,t,r),l(0,t,r)}function o(e,t,r){var a,i,n,s,o,l=t.gf,h=t.g._hasOpacity,d=t.s.v,c=t.e.v;if(t.o._mdf||r){var p="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(p,t.o.v)}if(t.s._mdf||r){var u=1===e.t?"x1":"cx",m="x1"===u?"y1":"cy";l.setAttribute(u,d[0]),l.setAttribute(m,d[1]),h&&!t.g._collapsable&&(t.of.setAttribute(u,d[0]),t.of.setAttribute(m,d[1]))}if(t.g._cmdf||r){a=t.cst;var f=t.g.c;for(n=a.length,i=0;i<n;i+=1)(s=a[i]).setAttribute("offset",f[4*i]+"%"),s.setAttribute("stop-color","rgb("+f[4*i+1]+","+f[4*i+2]+","+f[4*i+3]+")")}if(h&&(t.g._omdf||r)){var g=t.g.o;for(n=(a=t.g._collapsable?t.cst:t.ost).length,i=0;i<n;i+=1)s=a[i],t.g._collapsable||s.setAttribute("offset",g[2*i]+"%"),s.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",c[0]),l.setAttribute("y2",c[1]),h&&!t.g._collapsable&&(t.of.setAttribute("x2",c[0]),t.of.setAttribute("y2",c[1])));else if((t.s._mdf||t.e._mdf||r)&&(o=Math.sqrt(Math.pow(d[0]-c[0],2)+Math.pow(d[1]-c[1],2)),l.setAttribute("r",o),h&&!t.g._collapsable&&t.of.setAttribute("r",o)),t.e._mdf||t.h._mdf||t.a._mdf||r){o||(o=Math.sqrt(Math.pow(d[0]-c[0],2)+Math.pow(d[1]-c[1],2)));var y=Math.atan2(c[1]-d[1],c[0]-d[0]),b=t.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var v=o*b,C=Math.cos(y+t.a.v)*v+d[0],x=Math.sin(y+t.a.v)*v+d[1];l.setAttribute("fx",C),l.setAttribute("fy",x),h&&!t.g._collapsable&&(t.of.setAttribute("fx",C),t.of.setAttribute("fy",x))}}function l(e,t,r){var a=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(a.pElem.setAttribute("stroke-dasharray",i.dashStr),a.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&a.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&a.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(a.pElem.setAttribute("stroke-width",t.w.v),a.msElem&&a.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return n;case"gf":return o;case"gs":return s;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return a;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,a,i,n){this.o=e,this.sw=t,this.sc=r,this.fc=a,this.m=i,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!a,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,a,i=this.shapes.length,n=this.stylesList.length,s=[],o=!1;for(r=0;r<n;r+=1){for(a=this.stylesList[r],o=!1,s.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(a)&&(s.push(t),o=t._isAnimated||o);s.length>1&&o&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,a=new SVGStyleData(e,t),i=a.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,a):"fl"===e.ty?r=new SVGFillStyleData(this,e,a):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,a),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,a)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),a=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,a,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,a=this.animatedContents.length;r<a;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,a=this.stylesList.length;for(t=0;t<a;t+=1)this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,a,i,n,s){var o,l,h,d,c,p,u=[].concat(n),m=e.length-1,f=[],g=[];for(o=m;o>=0;o-=1){if((p=this.searchProcessedElement(e[o]))?t[o]=r[p-1]:e[o]._render=s,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty||"no"===e[o].ty)p?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],i),e[o]._render&&t[o].style.pElem.parentNode!==a&&a.appendChild(t[o].style.pElem),f.push(t[o].style);else if("gr"===e[o].ty){if(p)for(h=t[o].it.length,l=0;l<h;l+=1)t[o].prevViewData[l]=t[o].it[l];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,t[o].gr,i+1,u,s),e[o]._render&&t[o].gr.parentNode!==a&&a.appendChild(t[o].gr)}else"tr"===e[o].ty?(p||(t[o]=this.createTransformElement(e[o],a)),d=t[o].transform,u.push(d)):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?(p||(t[o]=this.createShapeElement(e[o],u,i)),this.setElementStyles(t[o])):"tm"===e[o].ty||"rd"===e[o].ty||"ms"===e[o].ty||"pb"===e[o].ty?(p?(c=t[o]).closed=!1:((c=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=c,this.shapeModifiers.push(c)),g.push(c)):"rp"===e[o].ty&&(p?(c=t[o]).closed=!0:(c=ShapeModifiers.getModifier(e[o].ty),t[o]=c,c.init(this,e,o,t),this.shapeModifiers.push(c),s=!1),g.push(c));this.addProcessedElement(e[o],o+1)}for(m=f.length,o=0;o<m;o+=1)f[o].closed=!0;for(m=g.length,o=0;o<m;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,a,i,n){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 s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,s=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,s=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,s=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,s=!0),!n.length||this.p[0]===n[0]&&this.p[1]===n[1]&&this.p[4]===n[4]&&this.p[5]===n[5]&&this.p[12]===n[12]&&this.p[13]===n[13]||(this.p=n,this._mdf.p=!0,s=!0),s},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var a;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(a=0;a<i;a+=1)n=r!==this.keysIndex?this.effectsSequence[a](n,n.t):this.effectsSequence[a](this.currentData,n.t);t!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,a=e.length;r<=a-1&&!(r===a-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,a=[],i=0,n=e.length,s=!1;i<n;)t=e.charCodeAt(i),FontManager.isCombinedCharacter(t)?a[a.length-1]+=e.charAt(i):t>=55296&&t<=56319?(r=e.charCodeAt(i+1))>=56320&&r<=57343?(s||FontManager.isModifier(t,r)?(a[a.length-1]+=e.substr(i,2),s=!1):a.push(e.substr(i,2)),i+=1):a.push(e.charAt(i)):t>56319?(r=e.charCodeAt(i+1),FontManager.isZeroWidthJoiner(t,r)?(s=!0,a[a.length-1]+=e.substr(i,2),i+=1):a.push(e.charAt(i))):FontManager.isZeroWidthJoiner(t)?(a[a.length-1]+=e.charAt(i),s=!0):a.push(e.charAt(i)),i+=1;return a},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,a,i,n,s,o,l=this.elem.globalData.fontManager,h=this.data,d=[],c=0,p=h.m.g,u=0,m=0,f=0,g=[],y=0,b=0,v=l.getFontByName(e.f),C=0,x=getFontProperties(v);e.fWeight=x.weight,e.fStyle=x.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var S,_=e.tr/1e3*e.finalSize;if(e.sz)for(var T,$,w=!0,E=e.sz[0],k=e.sz[1];w;){T=0,y=0,r=($=this.buildFinalText(e.t)).length,_=e.tr/1e3*e.finalSize;var A=-1;for(t=0;t<r;t+=1)S=$[t].charCodeAt(0),a=!1," "===$[t]?A=t:13!==S&&3!==S||(y=0,a=!0,T+=e.finalLineHeight||1.2*e.finalSize),l.chars?(o=l.getCharData($[t],v.fStyle,v.fFamily),C=a?0:o.w*e.finalSize/100):C=l.measureText($[t],e.f,e.finalSize),y+C>E&&" "!==$[t]?(-1===A?r+=1:t=A,T+=e.finalLineHeight||1.2*e.finalSize,$.splice(t,A===t?1:0,"\r"),A=-1,y=0):(y+=C,y+=_);T+=v.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&k<T?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=$,r=e.finalText.length,w=!1)}y=-_,C=0;var P,M=0;for(t=0;t<r;t+=1)if(a=!1,13===(S=(P=e.finalText[t]).charCodeAt(0))||3===S?(M=0,g.push(y),b=y>b?y:b,y=-2*_,i="",a=!0,f+=1):i=P,l.chars?(o=l.getCharData(P,v.fStyle,l.getFontByName(e.f).fFamily),C=a?0:o.w*e.finalSize/100):C=l.measureText(i,e.f,e.finalSize)," "===P?M+=C+_:(y+=C+_+M,M=0),d.push({l:C,an:C,add:u,n:a,anIndexes:[],val:i,line:f,animatorJustifyOffset:0}),2==p){if(u+=C,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(u-=C);m<=t;)d[m].an=u,d[m].ind=c,d[m].extra=C,m+=1;c+=1,u=0}}else if(3==p){if(u+=C,""===i||t===r-1){for(""===i&&(u-=C);m<=t;)d[m].an=u,d[m].ind=c,d[m].extra=C,m+=1;u=0,c+=1}}else d[c].ind=c,d[c].extra=0,c+=1;if(e.l=d,b=y>b?y:b,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=b,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var I,L,D,F,R=h.a;s=R.length;var O=[];for(n=0;n<s;n+=1){for((I=R[n]).a.sc&&(e.strokeColorAnim=!0),I.a.sw&&(e.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(e.fillColorAnim=!0),F=0,D=I.s.b,t=0;t<r;t+=1)(L=d[t]).anIndexes[n]=F,(1==D&&""!==L.val||2==D&&""!==L.val&&" "!==L.val||3==D&&(L.n||" "==L.val||t==r-1)||4==D&&(L.n||t==r-1))&&(1===I.s.rn&&O.push(F),F+=1);h.a[n].s.totalChars=F;var j,V=-1;if(1===I.s.rn)for(t=0;t<r;t+=1)V!=(L=d[t]).anIndexes[n]&&(V=L.anIndexes[n],j=O.splice(Math.floor(Math.random()*O.length),1)[0]),L.anIndexes[n]=j}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=v.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function a(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return a.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,n=0,s=1,o=1;this.ne.v>0?i=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,n,s,o).get,h=0,d=this.finalS,c=this.finalE,p=this.data.sh;if(2===p)h=l(h=c===d?a>=c?1:0:e(0,t(.5/(c-d)+(a-d)/(c-d),1)));else if(3===p)h=l(h=c===d?a>=c?0:1:1-e(0,t(.5/(c-d)+(a-d)/(c-d),1)));else if(4===p)c===d?h=0:(h=e(0,t(.5/(c-d)+(a-d)/(c-d),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===p){if(c===d)h=0;else{var u=c-d,m=-u/2+(a=t(e(0,a+.5-d),c-d)),f=u/2;h=Math.sqrt(1-m*m/(f*f))}h=l(h)}else 6===p?(c===d?h=0:(a=t(e(0,a+.5-d),c-d),h=(1+Math.cos(Math.PI+2*Math.PI*a/(c-d)))/2),h=l(h)):(a>=r(d)&&(h=e(0,t(a-d<0?t(c,1)-(d-a):c-a,1))),h=l(h));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;h<y?h=0:(h=(h-y)/g)>1&&(h=1)}return h*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,a=this.s.v/t+r,i=this.e.v/t+r;if(a>i){var n=a;a=i,i=n}this.finalS=a,this.finalE=i}},extendPrototype([DynamicPropertyContainer],a),{getTextSelectorProp:function(e,t,r){return new a(e,t)}}}();function TextAnimatorDataProperty(e,t,r){var a={propType:!1},i=PropertyFactory.getProp,n=t.a;this.a={r:n.r?i(e,n.r,0,degToRads,r):a,rx:n.rx?i(e,n.rx,0,degToRads,r):a,ry:n.ry?i(e,n.ry,0,degToRads,r):a,sk:n.sk?i(e,n.sk,0,degToRads,r):a,sa:n.sa?i(e,n.sa,0,degToRads,r):a,s:n.s?i(e,n.s,1,.01,r):a,a:n.a?i(e,n.a,1,0,r):a,o:n.o?i(e,n.o,0,.01,r):a,p:n.p?i(e,n.p,1,0,r):a,sw:n.sw?i(e,n.sw,0,0,r):a,sc:n.sc?i(e,n.sc,1,0,r):a,fc:n.fc?i(e,n.fc,1,0,r):a,fh:n.fh?i(e,n.fh,0,0,r):a,fs:n.fs?i(e,n.fs,0,.01,r):a,fb:n.fb?i(e,n.fb,0,.01,r):a,t:n.t?i(e,n.t,0,0,r):a},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,a=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=a(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,a,i,n,s,o,l,h,d,c,p,u,m,f,g,y,b,v,C,x=this._moreOptions.alignment.v,S=this._animatorsData,_=this._textData,T=this.mHelper,$=this._renderType,w=this.renderedLetters.length,E=e.l;if(this._hasMaskedPath){if(C=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,A=C.v;for(this._pathData.r.v&&(A=A.reverse()),s={tLength:0,segments:[]},n=A._length-1,y=0,i=0;i<n;i+=1)k=bez.buildBezierData(A.v[i],A.v[i+1],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[i+1][0]-A.v[i+1][0],A.i[i+1][1]-A.v[i+1][1]]),s.tLength+=k.segmentLength,s.segments.push(k),y+=k.segmentLength;i=n,C.v.c&&(k=bez.buildBezierData(A.v[i],A.v[0],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),s.tLength+=k.segmentLength,s.segments.push(k),y+=k.segmentLength),this._pathData.pi=s}if(s=this._pathData.pi,o=this._pathData.f.v,p=0,c=1,h=0,d=!0,f=s.segments,o<0&&C.v.c)for(s.tLength<Math.abs(o)&&(o=-Math.abs(o)%s.tLength),c=(m=f[p=f.length-1].points).length-1;o<0;)o+=m[c].partialLength,(c-=1)<0&&(c=(m=f[p-=1].points).length-1);u=(m=f[p].points)[c-1],g=(l=m[c]).partialLength}n=E.length,r=0,a=0;var P,M,I,L,D,F=1.2*e.finalSize*.714,R=!0;I=S.length;var O,j,V,B,H,N,z,G,W,U,Z,q,Q=-1,Y=o,K=p,X=c,J=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ae=0,ie=2===e.j?-.5:-1,ne=0,se=!0;for(i=0;i<n;i+=1)if(E[i].n){for(re&&(re+=ae);ne<i;)E[ne].animatorJustifyOffset=re,ne+=1;re=0,se=!0}else{for(M=0;M<I;M+=1)(P=S[M].a).t.propType&&(se&&2===e.j&&(ae+=P.t.v*ie),(D=S[M].s.getMult(E[i].anIndexes[M],_.a[M].s.totalChars)).length?re+=P.t.v*D[0]*ie:re+=P.t.v*D*ie);se=!1}for(re&&(re+=ae);ne<i;)E[ne].animatorJustifyOffset=re,ne+=1}for(i=0;i<n;i+=1){if(T.reset(),B=1,E[i].n)r=0,a+=e.yOffset,a+=R?1:0,o=Y,R=!1,this._hasMaskedPath&&(c=X,u=(m=f[p=K].points)[c-1],g=(l=m[c]).partialLength,h=0),ee="",Z="",W="",q="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(J!==E[i].line){switch(e.j){case 1:o+=y-e.lineWidths[E[i].line];break;case 2:o+=(y-e.lineWidths[E[i].line])/2}J=E[i].line}Q!==E[i].ind&&(E[Q]&&(o+=E[Q].extra),o+=E[i].an/2,Q=E[i].ind),o+=x[0]*E[i].an*.005;var oe=0;for(M=0;M<I;M+=1)(P=S[M].a).p.propType&&((D=S[M].s.getMult(E[i].anIndexes[M],_.a[M].s.totalChars)).length?oe+=P.p.v[0]*D[0]:oe+=P.p.v[0]*D),P.a.propType&&((D=S[M].s.getMult(E[i].anIndexes[M],_.a[M].s.totalChars)).length?oe+=P.a.v[0]*D[0]:oe+=P.a.v[0]*D);for(d=!0,this._pathData.a.v&&(o=.5*E[0].an+(y-this._pathData.f.v-.5*E[0].an-.5*E[E.length-1].an)*Q/(n-1),o+=this._pathData.f.v);d;)h+g>=o+oe||!m?(b=(o+oe-h)/l.partialLength,j=u.point[0]+(l.point[0]-u.point[0])*b,V=u.point[1]+(l.point[1]-u.point[1])*b,T.translate(-x[0]*E[i].an*.005,-x[1]*F*.01),d=!1):m&&(h+=l.partialLength,(c+=1)>=m.length&&(c=0,f[p+=1]?m=f[p].points:C.v.c?(c=0,m=f[p=0].points):(h-=l.partialLength,m=null)),m&&(u=l,g=(l=m[c]).partialLength));O=E[i].an/2-E[i].add,T.translate(-O,0,0)}else O=E[i].an/2-E[i].add,T.translate(-O,0,0),T.translate(-x[0]*E[i].an*.005,-x[1]*F*.01,0);for(M=0;M<I;M+=1)(P=S[M].a).t.propType&&(D=S[M].s.getMult(E[i].anIndexes[M],_.a[M].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?D.length?o+=P.t.v*D[0]:o+=P.t.v*D:D.length?r+=P.t.v*D[0]:r+=P.t.v*D));for(e.strokeWidthAnim&&(N=e.sw||0),e.strokeColorAnim&&(H=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(z=[e.fc[0],e.fc[1],e.fc[2]]),M=0;M<I;M+=1)(P=S[M].a).a.propType&&((D=S[M].s.getMult(E[i].anIndexes[M],_.a[M].s.totalChars)).length?T.translate(-P.a.v[0]*D[0],-P.a.v[1]*D[1],P.a.v[2]*D[2]):T.translate(-P.a.v[0]*D,-P.a.v[1]*D,P.a.v[2]*D));for(M=0;M<I;M+=1)(P=S[M].a).s.propType&&((D=S[M].s.getMult(E[i].anIndexes[M],_.a[M].s.totalChars)).length?T.scale(1+(P.s.v[0]-1)*D[0],1+(P.s.v[1]-1)*D[1],1):T.scale(1+(P.s.v[0]-1)*D,1+(P.s.v[1]-1)*D,1));for(M=0;M<I;M+=1){if(P=S[M].a,D=S[M].s.getMult(E[i].anIndexes[M],_.a[M].s.totalChars),P.sk.propType&&(D.length?T.skewFromAxis(-P.sk.v*D[0],P.sa.v*D[1]):T.skewFromAxis(-P.sk.v*D,P.sa.v*D)),P.r.propType&&(D.length?T.rotateZ(-P.r.v*D[2]):T.rotateZ(-P.r.v*D)),P.ry.propType&&(D.length?T.rotateY(P.ry.v*D[1]):T.rotateY(P.ry.v*D)),P.rx.propType&&(D.length?T.rotateX(P.rx.v*D[0]):T.rotateX(P.rx.v*D)),P.o.propType&&(D.length?B+=(P.o.v*D[0]-B)*D[0]:B+=(P.o.v*D-B)*D),e.strokeWidthAnim&&P.sw.propType&&(D.length?N+=P.sw.v*D[0]:N+=P.sw.v*D),e.strokeColorAnim&&P.sc.propType)for(G=0;G<3;G+=1)D.length?H[G]+=(P.sc.v[G]-H[G])*D[0]:H[G]+=(P.sc.v[G]-H[G])*D;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(G=0;G<3;G+=1)D.length?z[G]+=(P.fc.v[G]-z[G])*D[0]:z[G]+=(P.fc.v[G]-z[G])*D;P.fh.propType&&(z=D.length?addHueToRGB(z,P.fh.v*D[0]):addHueToRGB(z,P.fh.v*D)),P.fs.propType&&(z=D.length?addSaturationToRGB(z,P.fs.v*D[0]):addSaturationToRGB(z,P.fs.v*D)),P.fb.propType&&(z=D.length?addBrightnessToRGB(z,P.fb.v*D[0]):addBrightnessToRGB(z,P.fb.v*D))}}for(M=0;M<I;M+=1)(P=S[M].a).p.propType&&(D=S[M].s.getMult(E[i].anIndexes[M],_.a[M].s.totalChars),this._hasMaskedPath?D.length?T.translate(0,P.p.v[1]*D[0],-P.p.v[2]*D[1]):T.translate(0,P.p.v[1]*D,-P.p.v[2]*D):D.length?T.translate(P.p.v[0]*D[0],P.p.v[1]*D[1],-P.p.v[2]*D[2]):T.translate(P.p.v[0]*D,P.p.v[1]*D,-P.p.v[2]*D));if(e.strokeWidthAnim&&(W=N<0?0:N),e.strokeColorAnim&&(U="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),e.fillColorAnim&&e.fc&&(Z="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),this._hasMaskedPath){if(T.translate(0,-e.ls),T.translate(0,x[1]*F*.01+a,0),this._pathData.p.v){v=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var le=180*Math.atan(v)/Math.PI;l.point[0]<u.point[0]&&(le+=180),T.rotate(-le*Math.PI/180)}T.translate(j,V,0),o-=x[0]*E[i].an*.005,E[i+1]&&Q!==E[i+1].ind&&(o+=E[i].an/2,o+=.001*e.tr*e.finalSize)}else{switch(T.translate(r,a,0),e.ps&&T.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:T.translate(E[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[i].line]),0,0);break;case 2:T.translate(E[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[i].line])/2,0,0)}T.translate(0,-e.ls),T.translate(O,0,0),T.translate(x[0]*E[i].an*.005,x[1]*F*.01,0),r+=E[i].l+.001*e.tr*e.finalSize}"html"===$?ee=T.toCSS():"svg"===$?ee=T.to2dCSS():te=[T.props[0],T.props[1],T.props[2],T.props[3],T.props[4],T.props[5],T.props[6],T.props[7],T.props[8],T.props[9],T.props[10],T.props[11],T.props[12],T.props[13],T.props[14],T.props[15]],q=B}w<=i?(L=new LetterProps(q,W,U,Z,ee,te),this.renderedLetters.push(L),w+=1,this.lettersChangedFlag=!0):(L=this.renderedLetters[i],this.lettersChangedFlag=L.update(q,W,U,Z,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,t){var r,a,i=t.length,n="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(a=t[r].ks.k,n+=buildShapeString(a,a.i.length,!0,e));return n},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,a,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(a,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var a=createNS("title"),i=createElementID();a.setAttribute("id",i),a.textContent=t.title,this.svgElement.appendChild(a),r+=i}if(t&&t.description){var n=createNS("desc"),s=createElementID();n.setAttribute("id",s),n.textContent=t.description,this.svgElement.appendChild(n),r+=" "+s}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var e;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),e=0;e<15;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a=this.masksProperties.length,i=!1;for(r=0;r<a;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(e,t,r,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,n,e);var s,o=r.length;for(i=0;i<o;i+=1)r[i].closed||(s={transforms:a.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(s),r[i].elements.push(s))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,n=e.ks.or.k.length;for(i=0;i<n;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,a=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(a.push(i),i=""):i+=e[t],t+=1;return a.push(i),a},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var a=r.it[r.it.length-1];a.s&&(a.s.k[0]=t,a.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(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 a=this.globalData.fontManager.getFontByName(r.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var i=r.fWeight,n=r.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var s,o=r.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var h=this.mHelper,d=this.data.singleShape,c=0,p=0,u=!0,m=.001*r.tr*r.finalSize;if(!d||l||r.sz){var f,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!d||0===e){if(s=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=s,l){var y=createNS("g");s.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(h.reset(),d&&(o[e].n&&(c=-m,p+=r.yOffset,p+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,h,o[e].line,c,p),c+=o[e].l||0,c+=m),l){var b;if(1===(f=this.globalData.fontManager.getCharData(r.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)b=new SVGCompElement(f.data,this.globalData,this);else{var v=emptyShapeData;f.data&&f.data.shapes&&(v=this.buildShapeData(f.data,r.finalSize)),b=new SVGShapeElement(v,this.globalData,this)}if(this.textSpans[e].glyph){var C=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(C.layerElement),C.destroy()}this.textSpans[e].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[e].childSpan.appendChild(b.layerElement),1===f.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else d&&s.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),s.textContent=o[e].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&s&&s.setAttribute("d","")}else{var x=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}x.setAttribute("text-anchor",S),x.setAttribute("letter-spacing",m);var _=this.buildTextContents(r.finalText);for(t=_.length,p=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(s=this.textSpans[e].span||createNS("tspan")).textContent=_[e],s.setAttribute("x",0),s.setAttribute("y",p),s.style.display="inherit",x.appendChild(s),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=s,p+=r.finalLineHeight;this.layerElement.appendChild(x)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,a,i,n=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(t=s.length,e=0;e<t;e+=1)s[e].n||(r=n[e],a=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&a.setAttribute("transform",r.m),r._mdf.o&&a.setAttribute("opacity",r.o),r._mdf.sw&&a.setAttribute("stroke-width",r.sw),r._mdf.sc&&a.setAttribute("stroke",r.sc),r._mdf.fc&&a.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.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 t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt&&(this.elements[e-1]&&!0!==this.elements[e-1]?r.setMatte(t[e-1].layerId):(this.buildItem(e-1),this.addPendingElement(r)))}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){e.setMatte(this.elements[t-1].layerId);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var a,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(r,a):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=this.savedOp;this.savedOp=createTypedArray("float32",e),this.savedOp.set(t);var r=0;for(r=this._length;r<e;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,a="_";for(t=0;t<r;t+=1)a+=e[t].transform.key+"_";var i=this.sequences[a];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r,a=0,i=e.transforms.length,n=t;a<i&&!t;){if(e.transforms[a].transform.mProps._mdf){n=!0;break}a+=1}if(n)for(e.finalTransform.reset(),a=i-1;a>=0;a-=1)r=e.transforms[a].transform.mProps.v.props,e.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);e._mdf=n},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,a,i=this.element.finalTransform.mat,n=this.element.canvasContext,s=this.masksProperties.length;for(n.beginPath(),e=0;e<s;e+=1)if("n"!==this.masksProperties[e].mode){var o;this.masksProperties[e].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),a=this.viewData[e].v,t=i.applyToPointArray(a.v[0][0],a.v[0][1],0),n.moveTo(t[0],t[1]);var l=a._length;for(o=1;o<l;o+=1)r=i.applyToTriplePoints(a.o[o-1],a.i[o],a.v[o]),n.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(a.o[o-1],a.i[0],a.v[0]),n.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),n.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new 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 e=0===this.data.ty;this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(e),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},a={};if("fl"===e.ty||"st"===e.ty?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(r.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(r.wi=a.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);a.d=i,a.d.k||(r.da=a.d.dashArray,r.do=a.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),a.style=r,a},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,a,i){var n,s,o,l,h,d,c=e.length-1,p=[],u=[],m=[].concat(i);for(n=c;n>=0;n-=1){if((l=this.searchProcessedElement(e[n]))?t[n]=r[l-1]:e[n]._shouldRender=a,"fl"===e[n].ty||"st"===e[n].ty||"gf"===e[n].ty||"gs"===e[n].ty)l?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],m),p.push(t[n].style);else if("gr"===e[n].ty){if(l)for(o=t[n].it.length,s=0;s<o;s+=1)t[n].prevViewData[s]=t[n].it[s];else t[n]=this.createGroupElement(e[n]);this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,a,m)}else"tr"===e[n].ty?(l||(d=this.createTransformElement(e[n]),t[n]=d),m.push(t[n]),this.addTransformToStyleList(t[n])):"sh"===e[n].ty||"rc"===e[n].ty||"el"===e[n].ty||"sr"===e[n].ty?l||(t[n]=this.createShapeElement(e[n])):"tm"===e[n].ty||"rd"===e[n].ty||"pb"===e[n].ty?(l?(h=t[n]).closed=!1:((h=ShapeModifiers.getModifier(e[n].ty)).init(this,e[n]),t[n]=h,this.shapeModifiers.push(h)),u.push(h)):"rp"===e[n].ty&&(l?(h=t[n]).closed=!0:(h=ShapeModifiers.getModifier(e[n].ty),t[n]=h,h.init(this,e,n,t),this.shapeModifiers.push(h),a=!1),u.push(h));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),c=u.length,n=0;n<c;n+=1)u[n].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,a,i,n,s,o,l,h=this.stylesList.length,d=this.globalData.renderer,c=this.globalData.canvasContext;for(e=0;e<h;e+=1)if(("st"!==(o=(l=this.stylesList[e]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(d.save(),n=l.elements,"st"===o||"gs"===o?(c.strokeStyle="st"===o?l.co:l.grd,c.lineWidth=l.wi,c.lineCap=l.lc,c.lineJoin=l.lj,c.miterLimit=l.ml||0):c.fillStyle="fl"===o?l.co:l.grd,d.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&c.beginPath(),d.ctxTransform(l.preTransforms.finalTransform.props),r=n.length,t=0;t<r;t+=1){for("st"!==o&&"gs"!==o||(c.beginPath(),l.da&&(c.setLineDash(l.da),c.lineDashOffset=l.do)),i=(s=n[t].trNodes).length,a=0;a<i;a+=1)"m"===s[a].t?c.moveTo(s[a].p[0],s[a].p[1]):"c"===s[a].t?c.bezierCurveTo(s[a].pts[0],s[a].pts[1],s[a].pts[2],s[a].pts[3],s[a].pts[4],s[a].pts[5]):c.closePath();"st"!==o&&"gs"!==o||(c.stroke(),l.da&&c.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&c.fill(l.r),d.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,a){var i,n;for(n=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(n=r[i].transform,this.renderShapeTransform(e,n)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],n):"st"===t[i].ty?this.renderStroke(t[i],r[i],n):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],n):"gr"===t[i].ty?this.renderShape(n,t[i].it,r[i].it):t[i].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,a,i,n=e.trNodes,s=t.paths,o=s._length;n.length=0;var l=e.transforms.finalTransform;for(i=0;i<o;i+=1){var h=s.shapes[i];if(h&&h.v){for(a=h._length,r=1;r<a;r+=1)1===r&&n.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),n.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[r],h.v[r])});1===a&&n.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&a&&(n.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,a=t.styledShapes.length;for(r=0;r<a;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var a=t.style;(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var a,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var n,s=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(1===e.t)a=s.createLinearGradient(o[0],o[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),d=Math.atan2(l[1]-o[1],l[0]-o[0]),c=t.h.v;c>=1?c=.99:c<=-1&&(c=-.99);var p=h*c,u=Math.cos(d+t.a.v)*p+o[0],m=Math.sin(d+t.a.v)*p+o[1];a=s.createRadialGradient(u,m,0,o[0],o[1],h)}var f=e.g.p,g=t.g.c,y=1;for(n=0;n<f;n+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*n+1]),a.addColorStop(g[4*n]/100,"rgba("+g[4*n+1]+","+g[4*n+2]+","+g[4*n+3]+","+y+")");i.grd=a}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var a=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(a.da=i.dashArray,a.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(a.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var a,i,n,s,o,l,h,d,c,p,u,m,f=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var b=this.data.singleShape,v=.001*e.tr*e.finalSize,C=0,x=0,S=!0,_=0;for(a=0;a<i;a+=1){s=(n=this.globalData.fontManager.getCharData(e.finalText[a],f.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&n.data||{},y.reset(),b&&g[a].n&&(C=-v,x+=e.yOffset,x+=S?1:0,S=!1),c=(h=s.shapes?s.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),b&&this.applyTextPropertiesToMatrix(e,y,g[a].line,C,x),u=createSizedArray(c-1);var T=0;for(d=0;d<c;d+=1)if("sh"===h[d].ty){for(l=h[d].ks.k.i.length,p=h[d].ks.k,m=[],o=1;o<l;o+=1)1===o&&m.push(y.applyToX(p.v[0][0],p.v[0][1],0),y.applyToY(p.v[0][0],p.v[0][1],0)),m.push(y.applyToX(p.o[o-1][0],p.o[o-1][1],0),y.applyToY(p.o[o-1][0],p.o[o-1][1],0),y.applyToX(p.i[o][0],p.i[o][1],0),y.applyToY(p.i[o][0],p.i[o][1],0),y.applyToX(p.v[o][0],p.v[o][1],0),y.applyToY(p.v[o][0],p.v[o][1],0));m.push(y.applyToX(p.o[o-1][0],p.o[o-1][1],0),y.applyToY(p.o[o-1][0],p.o[o-1][1],0),y.applyToX(p.i[0][0],p.i[0][1],0),y.applyToY(p.i[0][0],p.i[0][1],0),y.applyToX(p.v[0][0],p.v[0][1],0),y.applyToY(p.v[0][0],p.v[0][1],0)),u[T]=m,T+=1}b&&(C+=g[a].l,C+=v),this.textSpans[_]?this.textSpans[_].elem=u:this.textSpans[_]={elem:u},_+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,a,i,n,s=this.canvasContext;s.font=this.values.fValue,s.lineCap="butt",s.lineJoin="miter",s.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;t=h.length;var d,c,p=null,u=null,m=null;for(e=0;e<t;e+=1)if(!h[e].n){if((o=l[e])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?p!==o.fc&&(p=o.fc,s.fillStyle=o.fc):p!==this.values.fill&&(p=this.values.fill,s.fillStyle=this.values.fill),a=(d=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<a;r+=1)for(n=(c=d[r]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),i=2;i<n;i+=6)this.globalData.canvasContext.bezierCurveTo(c[i],c[i+1],c[i+2],c[i+3],c[i+4],c[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?m!==o.sw&&(m=o.sw,s.lineWidth=o.sw):m!==this.values.sWidth&&(m=this.values.sWidth,s.lineWidth=this.values.sWidth),o&&o.sc?u!==o.sc&&(u=o.sc,s.strokeStyle=o.sc):u!==this.values.stroke&&(u=this.values.stroke,s.strokeStyle=this.values.stroke),a=(d=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<a;r+=1)for(n=(c=d[r]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),i=2;i<n;i+=6)this.globalData.canvasContext.bezierCurveTo(c[i],c[i+1],c[i+2],c[i+3],c[i+4],c[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,a=e.getContext("2d"),i=this.img.width,n=this.img.height,s=i/n,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>o&&"xMidYMid slice"===l||s<o&&"xMidYMid slice"!==l?t=(r=n)*o:r=(t=i)/o,a.drawImage(this.img,(i-t)/2,(n-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){if(1!==e[0]||0!==e[1]||0!==e[4]||1!==e[5]||0!==e[12]||0!==e[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(e);var t=this.contextData.cTr.props;this.transformMat.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=e<0?0:e,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=e<0?0:e,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(e){if(this.renderConfig.clearCanvas){e&&this.canvasContext.save();var t,r=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var a=this.contextData.saved[this.contextData.cArrPos];for(t=0;t<16;t+=1)a[t]=r[t];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(this.renderConfig.clearCanvas){e&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var t,r=this.contextData.saved[this.contextData.cArrPos],a=this.contextData.cTr.props;for(t=0;t<16;t+=1)a[t]=r[t];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.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.canvasContext=this.renderConfig.context;this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(){var e,t,r,a;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",e*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",t*this.renderConfig.dpr)):(e=this.canvasContext.canvas.width*this.renderConfig.dpr,t=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var i=this.renderConfig.preserveAspectRatio.split(" "),n=i[1]||"meet",s=i[0]||"xMidYMid",o=s.substr(0,4),l=s.substr(4);r=e/t,(a=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===n||a<r&&"slice"===n?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===o&&(a<r&&"meet"===n||a>r&&"slice"===n)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(a<r&&"meet"===n||a>r&&"slice"===n)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(a>r&&"meet"===n||a<r&&"slice"===n)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(a>r&&"meet"===n||a<r&&"slice"===n)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.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.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var a=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=0;r<a;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects,this.transformedElement=this.baseElement,this.maskedElement=this.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 e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.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.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,a,i,n,s,o=e.sh.v,l=e.transformers,h=o._length;if(!(h<=1)){for(r=0;r<h-1;r+=1)a=this.getTransformedPoint(l,o.v[r]),i=this.getTransformedPoint(l,o.o[r]),n=this.getTransformedPoint(l,o.i[r+1]),s=this.getTransformedPoint(l,o.v[r+1]),this.checkBounds(a,i,n,s,t);o.c&&(a=this.getTransformedPoint(l,o.v[r]),i=this.getTransformedPoint(l,o.o[r]),n=this.getTransformedPoint(l,o.i[0]),s=this.getTransformedPoint(l,o.v[0]),this.checkBounds(a,i,n,s,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,a,i){this.getBoundsOfCurve(e,t,r,a);var n=this.shapeBoundingBox;i.x=bmMin(n.left,i.x),i.xMax=bmMax(n.right,i.xMax),i.y=bmMin(n.top,i.y),i.yMax=bmMax(n.bottom,i.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.getBoundsOfCurve=function(e,t,r,a){for(var i,n,s,o,l,h,d,c=[[e[0],a[0]],[e[1],a[1]]],p=0;p<2;++p)n=6*e[p]-12*t[p]+6*r[p],i=-3*e[p]+9*t[p]-9*r[p]+3*a[p],s=3*t[p]-3*e[p],n|=0,s|=0,0==(i|=0)&&0===n||(0===i?(o=-s/n)>0&&o<1&&c[p].push(this.calculateF(o,e,t,r,a,p)):(l=n*n-4*s*i)>=0&&((h=(-n+bmSqrt(l))/(2*i))>0&&h<1&&c[p].push(this.calculateF(h,e,t,r,a,p)),(d=(-n-bmSqrt(l))/(2*i))>0&&d<1&&c[p].push(this.calculateF(d,e,t,r,a,p))));this.shapeBoundingBox.left=bmMin.apply(null,c[0]),this.shapeBoundingBox.top=bmMin.apply(null,c[1]),this.shapeBoundingBox.right=bmMax.apply(null,c[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,c[1])},HShapeElement.prototype.calculateF=function(e,t,r,a,i,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*r[n]+3*(1-e)*bmPow(e,2)*a[n]+bmPow(e,3)*i[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var a=0;a<e.keyframes.length;a+=1){var i=e.keyframes[a].s;i>r&&(r=i)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var a=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=i,a.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var a,i,n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var s=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=s}var l,h,d,c=e.l;i=c.length;var p,u=this.mHelper,m="",f=0;for(a=0;a<i;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[f]?l=this.textPaths[f]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[f]?d=(h=this.textSpans[f]).children[0]:((h=createTag("div")).style.lineHeight=0,(d=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[f]?this.textPaths[f]:createNS("text"):this.textSpans[f]?(h=this.textSpans[f],l=this.textPaths[f]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(e.finalText[a],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,u.reset(),g&&g.shapes&&g.shapes.length&&(p=g.shapes[0].it,u.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(u,p),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),g&&g.shapes){document.body.appendChild(d);var b=d.getBBox();d.setAttribute("width",b.width+2),d.setAttribute("height",b.height+2),d.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var v=d.style,C="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";v.transform=C,v.webkitTransform=C,c[a].yOffset=b.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);h.appendChild(d)}}else if(l.textContent=c[a].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(h);var x=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";x.transform=S,x.webkitTransform=S}this.isMasked?this.textSpans[f]=l:this.textSpans[f]=h,this.textSpans[f].style.display="block",this.textPaths[f]=l,f+=1}for(;f<this.textSpans.length;)this.textSpans[f].style.display="none",f+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,a,i,n,s,o=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(a=h.length,r=0;r<a;r+=1)h[r].n?o+=1:(n=this.textSpans[r],s=this.textPaths[r],i=l[o],o+=1,i._mdf.m&&(this.isMasked?n.setAttribute("transform",i.m):(n.style.webkitTransform=i.m,n.style.transform=i.m)),n.style.opacity=i.o,i.sw&&i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&s.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(s.setAttribute("fill",i.fc),s.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var d=this.innerElem.getBBox();if(this.currentBBox.w!==d.width&&(this.currentBBox.w=d.width,this.svgElement.setAttribute("width",d.width)),this.currentBBox.h!==d.height&&(this.currentBBox.h=d.height,this.svgElement.setAttribute("height",d.height)),this.currentBBox.w!==d.width+2||this.currentBBox.h!==d.height+2||this.currentBBox.x!==d.x-1||this.currentBBox.y!==d.y-1){this.currentBBox.w=d.width+2,this.currentBBox.h=d.height+2,this.currentBBox.x=d.x-1,this.currentBBox.y=d.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var c="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=c,e.webkitTransform=c}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,a,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,a=t.container.style;var n=this.pe.v+"px",s="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=n,r.webkitPerspective=n,a.transformOrigin=s,a.mozTransformOrigin=s,a.webkitTransformOrigin=s,r.transform=o,r.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].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(e=t=this.hierarchy.length-1;e>=0;e-=1){var a=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),s=[i[0]/n,i[1]/n,i[2]/n],o=Math.sqrt(s[2]*s[2]+s[0]*s[0]),l=Math.atan2(s[1],o),h=Math.atan2(s[0],-s[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var d=!this._prevMat.equals(this.mat);if((d||this.pe._mdf)&&this.comp.threeDElements){var c,p,u;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(c=this.comp.threeDElements[e]).type){if(d){var m=this.mat.toCSS();(u=c.container.style).transform=m,u.webkitTransform=m}this.pe._mdf&&((p=c.perspectiveElem.style).perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("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",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var a=this.layers[t];if(a.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,n,s=0;s<t;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s],i=(this.layers[s].ddd?this.getThreeDContainerByPos(s):n.getBaseElement())||i),s+=1;i?a.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):a.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,a,i=createTag("div");styleDiv(i);var n=createTag("div");if(styleDiv(n),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var s="50% 50%";r.webkitTransformOrigin=s,r.mozTransformOrigin=s,r.transformOrigin=s;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(a=n.style).transform=o,a.webkitTransform=o}i.appendChild(n);var l={container:n,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,a="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==a&&(a="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==a&&(a="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,a=this.threeDElements.length;r<a;){if(t<=this.threeDElements[r].endPos){for(var i,n=this.threeDElements[r].startPos;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.threeDElements[r].container.insertBefore(e,i):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,a=t.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=t,styleDiv(t),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),a.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var n=createNS("defs");i.appendChild(n),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,a,i=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,s=i/n;this.globalData.compSize.w/this.globalData.compSize.h>s?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,a=(n-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=n/this.globalData.compSize.h,t=n/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,a=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+a+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,a=this.threeDElements.length;for(e=0;e<a;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,a=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],a,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,a=0;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(r=this.elements[a].getBaseElement()),a+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e}();function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}function seedRandom(e,t){var r=this,a=256,i=t.pow(a,6),n=t.pow(2,52),s=2*n,o=255;function l(e){var t,r=e.length,i=this,n=0,s=i.i=i.j=0,l=i.S=[];for(r||(e=[r++]);n<a;)l[n]=n++;for(n=0;n<a;n++)l[n]=l[s=o&s+e[n%r]+(t=l[n])],l[s]=t;i.g=function(e){for(var t,r=0,n=i.i,s=i.j,l=i.S;e--;)t=l[n=o&n+1],r=r*a+l[o&(l[n]=l[s=o&s+t])+(l[s]=t)];return i.i=n,i.j=s,r}}function h(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function d(e,t){var r,a=[],i=_typeof$1(e);if(t&&"object"==i)for(r in e)try{a.push(d(e[r],t-1))}catch(e){}return a.length?a:"string"==i?e:e+"\0"}function c(e,t){for(var r,a=e+"",i=0;i<a.length;)t[o&i]=o&(r^=19*t[o&i])+a.charCodeAt(i++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}t.seedrandom=function(o,u,m){var f=[],g=c(d((u=!0===u?{entropy:!0}:u||{}).entropy?[o,p(e)]:null===o?function(){try{var t=new Uint8Array(a);return(r.crypto||r.msCrypto).getRandomValues(t),p(t)}catch(t){var i=r.navigator,n=i&&i.plugins;return[+new Date,r,n,r.screen,p(e)]}}():o,3),f),y=new l(f),b=function(){for(var e=y.g(6),t=i,r=0;e<n;)e=(e+r)*a,t*=a,r=y.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return b.int32=function(){return 0|y.g(4)},b.quick=function(){return y.g(4)/4294967296},b.double=b,c(p(y.S),e),(u.pass||m||function(e,r,a,i){return i&&(i.S&&h(i,y),e.state=function(){return h(y,{})}),a?(t.random=e,r):e})(b,g,"global"in u?u.global:this==t,u.state)},c(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||"boolean"===e||"string"===e||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if("number"===t||"boolean"===t||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var r,a=e.length,i=[];for(r=0;r<a;r+=1)i[r]=-e[r];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof(e),a=_typeof(t);if("string"===r||"string"===a)return e+t;if(isNumerable(r,e)&&isNumerable(a,t))return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,n=e.length,s=t.length,o=[];i<n||i<s;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?o[i]=e[i]+t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}var add=sum;function sub(e,t){var r=_typeof(e),a=_typeof(t);if(isNumerable(r,e)&&isNumerable(a,t))return"string"===r&&(e=parseInt(e,10)),"string"===a&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,n=e.length,s=t.length,o=[];i<n||i<s;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?o[i]=e[i]-t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}function mul(e,t){var r,a,i,n=_typeof(e),s=_typeof(t);if(isNumerable(n,e)&&isNumerable(s,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(i=e.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e[a]*t;return r}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e*t[a];return r}return 0}function div(e,t){var r,a,i,n=_typeof(e),s=_typeof(t);if(isNumerable(n,e)&&isNumerable(s,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(i=e.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e[a]/t;return r}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e/t[a];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var a=r;r=t,t=a}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var a=Math.min(e.length,t.length),i=0;for(r=0;r<a;r+=1)i+=Math.pow(t[r]-e[r],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,a=e[0],i=e[1],n=e[2],s=Math.max(a,i,n),o=Math.min(a,i,n),l=(s+o)/2;if(s===o)t=0,r=0;else{var h=s-o;switch(r=l>.5?h/(2-s-o):h/(s+o),s){case a:t=(i-n)/h+(i<n?6:0);break;case i:t=(n-a)/h+2;break;case n:t=(a-i)/h+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,a,i=e[0],n=e[1],s=e[2];if(0===n)t=s,a=s,r=s;else{var o=s<.5?s*(1+n):s+n-s*n,l=2*s-o;t=hue2rgb(l,o,i+1/3),r=hue2rgb(l,o,i),a=hue2rgb(l,o,i-1/3)}return[t,r,a,e[3]]}function linear(e,t,r,a,i){if(void 0!==a&&void 0!==i||(a=t,i=r,t=0,r=1),r<t){var n=r;r=t,t=n}if(e<=t)return a;if(e>=r)return i;var s,o=r===t?0:(e-t)/(r-t);if(!a.length)return a+(i-a)*o;var l=a.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=a[s]+(i[s]-a[s])*o;return h}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,a=t.length;e||(e=createTypedArray("float32",a));var i=createTypedArray("float32",a),n=BMMath.random();for(r=0;r<a;r+=1)i[r]=e[r]+n*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,a){var i,n=e.length,s=shapePool.newElement();s.setPathData(!!a,n);var o,l,h=[0,0];for(i=0;i<n;i+=1)o=t&&t[i]?t[i]:h,l=r&&r[i]?r[i]:h,s.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],o[0]+e[i][0],o[1]+e[i][1],i,!0);return s}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.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_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,a,i=this.pv.length?this.pv.length:1,n=createTypedArray("float32",i),s=Math.floor(5*time);for(r=0,a=0;r<s;){for(a=0;a<i;a+=1)n[a]+=-t+2*t*BMMath.random();r+=1}var o=5*time,l=o-Math.floor(o),h=createTypedArray("float32",i);if(i>1){for(a=0;a<i;a+=1)h[a]=this.pv[a]+n[a]+(-t+2*t*BMMath.random())*l;return h}return this.pv+n[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],a=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,a,0]}function easeOut(e,t,r,a,i){return applyEase(easeOutBez,e,t,r,a,i)}function easeIn(e,t,r,a,i){return applyEase(easeInBez,e,t,r,a,i)}function ease(e,t,r,a,i){return applyEase(easeInOutBez,e,t,r,a,i)}function applyEase(e,t,r,a,i,n){void 0===i?(i=r,n=a):t=(t-r)/(a-r),t>1?t=1:t<0&&(t=0);var s=e(t);if($bm_isInstanceOfArray(i)){var o,l=i.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=(n[o]-i[o])*s+i[o];return h}return(n-i)*s+i}function nearestKey(e){var t,r,a,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,a=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,a=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,a=data.k[t+1].t):(r=t+1,a=data.k[t].t);break}}-1===r&&(r=t+1,a=data.k[t].t)}else r=0,a=0;var n={};return n.index=r,n.time=a/elem.comp.globalData.frameRate,n}function key(e){var t,r,a;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=i.length,r=0;r<a;r+=1)t[r]=i[r],t.value[r]=i[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.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.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,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(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),a=0;if(t.length){var i;for(i=0;i<t.length;i+=1)a+=Math.pow(r[i]-t[i],2);a=100*Math.sqrt(a)}else a=0;return a},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,a=-.001,i=this.getValueAtTime(e),n=this.getValueAtTime(e+a);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(n[r]-i[r])/a;else t=(n-i)/a;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var a,i,n,s,o,l=this.comp.renderedFrame,h=this.keyframes,d=h[h.length-1].t;if(l<=d)return this.pv;if(r?i=d-(a=t?Math.abs(d-this.elem.comp.globalData.frameRate*t):Math.max(0,d-this.elem.data.ip)):((!t||t>h.length-1)&&(t=h.length-1),a=d-(i=h[h.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/a)%2!=0)return this.getValueAtTime((a-(l-i)%a+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var c=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime(d/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((l-i)%a+i)/this.comp.globalData.frameRate,0),m=Math.floor((l-i)/a);if(this.pv.length){for(s=(o=new Array(c.length)).length,n=0;n<s;n+=1)o[n]=(p[n]-c[n])*m+u[n];return o}return(p-c)*m+u}if("continue"===e){var f=this.getValueAtTime(d/this.comp.globalData.frameRate,0),g=this.getValueAtTime((d-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(f.length)).length,n=0;n<s;n+=1)o[n]=f[n]+(f[n]-g[n])*((l-d)/this.comp.globalData.frameRate)/5e-4;return o}return f+(l-d)/.001*(f-g)}}return this.getValueAtTime(((l-i)%a+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var a,i,n,s,o,l=this.comp.renderedFrame,h=this.keyframes,d=h[0].t;if(l>=d)return this.pv;if(r?i=d+(a=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-d)):((!t||t>h.length-1)&&(t=h.length-1),a=(i=h[t].t)-d),"pingpong"===e){if(Math.floor((d-l)/a)%2==0)return this.getValueAtTime(((d-l)%a+d)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var c=this.getValueAtTime(d/this.comp.globalData.frameRate,0),p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),u=this.getValueAtTime((a-(d-l)%a+d)/this.comp.globalData.frameRate,0),m=Math.floor((d-l)/a)+1;if(this.pv.length){for(s=(o=new Array(c.length)).length,n=0;n<s;n+=1)o[n]=u[n]-(p[n]-c[n])*m;return o}return u-(p-c)*m}if("continue"===e){var f=this.getValueAtTime(d/this.comp.globalData.frameRate,0),g=this.getValueAtTime((d+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(f.length)).length,n=0;n<s;n+=1)o[n]=f[n]+(f[n]-g[n])*(d-l)/.001;return o}return f+(f-g)*(d-l)/.001}}return this.getValueAtTime((a-((d-l)%a+d))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,a,i=this.comp.renderedFrame/this.comp.globalData.frameRate,n=i-e,s=t>1?(i+e-n)/(t-1):1,o=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;o<t;){if(a=this.getValueAtTime(n+o*s),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=a[l];else r+=a;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function a(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var a=this.s.getValueAtTime(e);t.scale(a[0]*this.s.mult,a[1]*this.s.mult,a[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),n=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var s=this.r.getValueAtTime(e);t.rotate(-s*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),h=this.rx.getValueAtTime(e),d=this.or.getValueAtTime(e);t.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-d[2]*this.or.mult).rotateY(d[1]*this.or.mult).rotateX(d[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var c=this.px.getValueAtTime(e),p=this.py.getValueAtTime(e);if(this.data.p.z){var u=this.pz.getValueAtTime(e);t.translate(c*this.px.mult,p*this.py.mult,-u*this.pz.mult)}else t.translate(c*this.px.mult,p*this.py.mult,0)}else{var m=this.p.getValueAtTime(e);t.translate(m[0]*this.p.mult,m[1]*this.p.mult,-m[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var s=n(e,t,r);return s.dynamicProperties.length?s.getValueAtTime=a.bind(s):s.getValueAtTime=i.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(a,i,n,o,l){var h=s(a,i,n,o,l);h.kf?h.getValueAtTime=expressionHelpers.getValueAtTime.bind(h):h.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h.loopOut=e,h.loopIn=t,h.smooth=r,h.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(h),h.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(h),h.numKeys=1===i.a?i.k.length:0,h.propertyIndex=i.ix;var d=0;return 0!==n&&(d=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(a,i,h),h.k&&l.addDynamicProperty(h),h};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(e,t){this.k&&this.getValue();var r,a=this.v;void 0!==t&&(a=this.getValueAtTime(t,0));var i=a._length,n=a[e],s=a.v,o=createSizedArray(i);for(r=0;r<i;r+=1)o[r]="i"===e||"o"===e?[n[r][0]-s[r][0],n[r][1]-s[r][1]]:[n[r][0],n[r][1]];return o},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var a,i=this._segmentsLength,n=i.lengths,s=i.totalLength*e,o=0,l=n.length,h=0;o<l;){if(h+n[o].addedLength>s){var d=o,c=r.c&&o===l-1?0:o+1,p=(s-h)/n[o].addedLength;a=bez.getPointInSegment(r.v[d],r.v[c],r.o[d],r.i[c],p,n[o]);break}h+=n[o].addedLength,o+=1}return a||(a=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),a},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var a=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),n=i[0]-a[0],s=i[1]-a[1],o=Math.sqrt(Math.pow(n,2)+Math.pow(s,2));return 0===o?[0,0]:"tangent"===r?[n/o,s/o]:[-s/o,n/o]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],o),extendPrototype([h],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,a,i){var n=d(e,t,r,a,i);return n.propertyIndex=t.ix,n.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,n):4===r&&expressionHelpers.searchExpressions(e,t.ks,n),n.k&&e.addDynamicProperty(n),n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var a={};return this.copyData(a,e),a.t=r.toString(),a.__complete=!1,a}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(e,t,r,a,i){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result",a+"_tint_1"),e.appendChild(n),(n=createNS("feColorMatrix")).setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",a+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var s=this.createMergeNode(a,[i,a+"_tint_1",a+"_tint_2"]);e.appendChild(s)}function SVGFillFilter(e,t,r,a){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",a),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,a){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.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"),e.appendChild(i);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),this.matrixFilter=n;var s=createNS("feFuncR");s.setAttribute("type","table"),n.appendChild(s),this.feFuncR=s;var o=createNS("feFuncG");o.setAttribute("type","table"),n.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),n.appendChild(l),this.feFuncB=l,e.appendChild(n)}function SVGProLevelsFilter(e,t,r,a){this.filterManager=t;var i=this.filterManager.effectElements,n=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((n=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(e,t,r,a,i){var n=t.container.globalData.renderConfig.filterSize,s=t.data.fs||n;e.setAttribute("x",s.x||n.x),e.setAttribute("y",s.y||n.y),e.setAttribute("width",s.width||n.width),e.setAttribute("height",s.height||n.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",a+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",a+"_drop_shadow_1"),l.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=h,e.appendChild(h);var d=createNS("feComposite");d.setAttribute("in",a+"_drop_shadow_3"),d.setAttribute("in2",a+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(d);var c=this.createMergeNode(a,[a+"_drop_shadow_4",i]);e.appendChild(c)}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,a,i=createNS("feMerge");for(i.setAttribute("result",e),a=0;a<t.length;a+=1)(r=createNS("feMergeNode")).setAttribute("in",t[a]),i.appendChild(r),i.appendChild(r);return i}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+a+" 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,a,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(a=this.elem.maskManager.masksProperties.length,r=0):a=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<a;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),s=createElementID();n.setAttribute("id",s),n.setAttribute("mask-type","alpha"),n.appendChild(t),this.elem.globalData.defs.appendChild(n);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+s+")");i[0];)o.appendChild(i[0]);this.elem.layerElement.appendChild(o),this.masker=n,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,a,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],a=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&a.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var s=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=a.getTotalLength();n="0 0 0 "+l*s+" ";var h,d=l*(o-s),c=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(d/c);for(h=0;h<p;h+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*l+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,i=a[0]+" "+r[0]+" "+t[0],n=a[1]+" "+r[1]+" "+t[1],s=a[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",s)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,a,i){for(var n,s,o=0,l=Math.min(e,t),h=Math.max(e,t),d=Array.call(null,{length:256}),c=0,p=i-a,u=t-e;o<=256;)s=(n=o/256)<=l?u<0?i:a:n>=h?u<0?a:i:a+p*Math.pow((n-e)/u,1/r),d[c]=s,c+=1,o+=256/255;return d.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(a),n=r*Math.sin(a);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",a),e.appendChild(i),this.feGaussianBlur=i}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var a,i=r.children,n=0,s=i.length;n<s&&i[n]!==e.layerElement;)n+=1;n<=s-2&&(a=i[n+1]);var o=createNS("use");o.setAttribute("href","#"+t),a?r.insertBefore(o,a):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),a=createNS("mask");a.setAttribute("id",t.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(a);var n=createNS("symbol");n.setAttribute("id",r),this.replaceInParent(t,r),n.appendChild(t.layerElement),i.appendChild(n);var s=createNS("use");s.setAttribute("href","#"+r),a.appendChild(s),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,a=t.length;r<a;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+i);var n=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}},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),setExpressionsPlugin(Expressions),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.exports=factory())})(lottie$1,lottie$1.exports);var lottie=lottie$1.exports;function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}function _objectWithoutProperties(e,t){if(null==e)return{};var r,a,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray$1(e,t)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,i,n=[],s=!0,o=!1;try{for(r=r.call(e);!(s=(a=r.next()).done)&&(n.push(a.value),!t||n.length!==t);s=!0);}catch(e){o=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(o)throw i}}return n}}function _unsupportedIterableToArray$1(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray$1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray$1(e,t):void 0}}function _arrayLikeToArray$1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}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.")}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function(e,t){var r=e.animationData,a=e.loop,i=e.autoplay,n=e.initialSegment,s=e.onComplete,o=e.onLoopComplete,l=e.onEnterFrame,h=e.onSegmentStart,d=e.onConfigReady,c=e.onDataReady,p=e.onDataFailed,u=e.onLoadedImages,m=e.onDOMLoaded,f=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var g=_objectWithoutProperties(e,_excluded$1),y=_slicedToArray(useState(!1),2),b=y[0],v=y[1],C=useRef(),x=useRef(null);return useEffect((function(){var t=function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(x.current){null===(t=C.current)||void 0===t||t.destroy();var a=_objectSpread2(_objectSpread2(_objectSpread2({},e),r),{},{container:x.current});return C.current=lottie.loadAnimation(a),v(!!C.current),function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0}}}();return function(){return null==t?void 0:t()}}),[r,a]),useEffect((function(){C.current&&(C.current.autoplay=!!i)}),[i]),useEffect((function(){C.current&&(n?Array.isArray(n)&&n.length&&((C.current.currentRawFrame<n[0]||C.current.currentRawFrame>n[1])&&(C.current.currentRawFrame=n[0]),C.current.setSegment(n[0],n[1])):C.current.resetSegments(!0))}),[n]),useEffect((function(){var e=[{name:"complete",handler:s},{name:"loopComplete",handler:o},{name:"enterFrame",handler:l},{name:"segmentStart",handler:h},{name:"config_ready",handler:d},{name:"data_ready",handler:c},{name:"data_failed",handler:p},{name:"loaded_images",handler:u},{name:"DOMLoaded",handler:m},{name:"destroy",handler:f}].filter((function(e){return null!=e.handler}));if(e.length){var t=e.map((function(e){var t;return null===(t=C.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=C.current)||void 0===t||t.removeEventListener(e.name,e.handler)}}));return function(){t.forEach((function(e){return e()}))}}}),[s,o,l,h,d,c,p,u,m,f]),{View:React__default.createElement("div",_objectSpread2({style:t,ref:x},g)),play:function(){var e;null===(e=C.current)||void 0===e||e.play()},stop:function(){var e;null===(e=C.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=C.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=C.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var r;null===(r=C.current)||void 0===r||r.goToAndStop(e,t)},goToAndPlay:function(e,t){var r;null===(r=C.current)||void 0===r||r.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=C.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var r;null===(r=C.current)||void 0===r||r.playSegments(e,t)},setSubframe:function(e){var t;null===(t=C.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=C.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0},animationContainerRef:x,animationLoaded:b,animationItem:C.current}},v$1="4.10.1",fr$1=24,ip$1=0,op$1=72,w$1=250,h$1=250,nm$1="Comp 1",ddd$1=0,assets$1=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Capa de formas 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:24,s:[81.5,370.25,0],e:[445.5,199.25,0],to:[60.6666679382324,-28.5,0],ti:[-60.6666679382324,28.5,0]},{t:48}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[43,43,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[28,0],[34.935,-19.483],[31.619,18.821],[33,-14],[57,29],[0,0],[0,0],[0,0]],o:[[-28,0],[-52,29],[-42,-25],[-28.892,12.257],[-57,-29],[0,0],[0,0],[0,0]],v:[[367.75,-97],[277,-75],[155,-82],[35,-82],[-94,-82.326],[-200,-74],[-352.07,320.209],[499.162,354.093]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.9372549019607843,.2549019607843137,.23921568627450981,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{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:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:144,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Capa de formas 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:24,s:[-133,374,0],e:[231,203,0],to:[60.6666679382324,-28.5,0],ti:[-60.6666679382324,28.5,0]},{t:48}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[43,43,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[28,0],[34.935,-19.483],[31.619,18.821],[33,-14],[57,29],[0,0],[0,0],[0,0]],o:[[-28,0],[-52,29],[-42,-25],[-28.892,12.257],[-57,-29],[0,0],[0,0],[0,0]],v:[[367.75,-97],[277,-75],[155,-82],[35,-82],[-94,-82.326],[-200,-74],[-352.07,320.209],[499.162,354.093]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.9372549019607843,.2549019607843137,.23921568627450981,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{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:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:144,st:0,bm:0}]}],layers$1=[{ddd:0,ind:1,ty:4,nm:"Capa de formas 5",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:15,s:[100],e:[0]},{t:16}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:0,s:[124.375,-8.75,0],e:[199,156,0],to:[0,28.3333339691162,0],ti:[0,-28.9375,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:12,s:[124.375,97.5,0],e:[199,164.066,0],to:[0,4.54861259460449,0],ti:[0,-2.45892143249512,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:13,s:[124.375,102.54125,0],e:[199,166.125,0],to:[0,13.1843204498291,0],ti:[0,-1.72074222564697,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:14,s:[124.375,103.828125,0],e:[199,168.375,0],to:[0,2.04166674613953,0],ti:[0,-.04166666790843,0]},{t:15}],ix:2},a:{a:0,k:[-1,-182.375,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:0,s:[31.25,31.25,100],e:[31.25,58.75,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:12,s:[31.25,58.75,100],e:[43.75,27.083125,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:13,s:[43.75,27.083125,100],e:[65.16125000000001,20,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:14,s:[65.16125000000001,20,100],e:[132.5,11.25,100]},{t:15}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[.938,0],[0,-5.25],[-4.563,.125],[.108,4.624]],o:[[-.813,.125],[0,4.813],[4.563,-.125],[-.125,-5.375]],v:[[-1.344,-193.078],[-8.75,-180.5],[-1.063,-172.313],[6.938,-180.188]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{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:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:"Capa de formas 3",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:46,s:[0],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:47,s:[100],e:[100]},{t:48}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:47,s:[124.98749999999998,105.15625,0],e:[199.98,158.037,0],to:[0,-.20375619828701,0],ti:[0,17.58864402771,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:48,s:[124.98749999999998,98.77312500000001,0],e:[199.98,-10,0],to:[-28421709430404e-27,-50.4047393798828,0],ti:[0,1.17485654354095,0]},{t:53}],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:47,s:[-2.5,.625,100],e:[.9375,2.5,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:48,s:[.9375,2.5,100],e:[1.25,1.875,100]},{t:53}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"fl",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],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:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:9,ty:4,nm:"Capa de formas 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[124.375,158.125,0],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:0,k:[34.375,34.375,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:1,lj:1,ml:4,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],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:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:12,s:[50],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:24,s:[100],e:[50]},{t:48}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:12,s:[50],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:24,s:[0],e:[50]},{t:48}],ix:2},o:{a:0,k:180,ix:3},m:1,ix:2,nm:"Recortar trazados 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:10,ty:4,nm:"Capa de formas 1",td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[124.375,158.125,0],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:0,k:[31.25,31.25,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"fl",c:{a:0,k:[.913725490196,.347995563582,.03941561007,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],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:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:11,ty:0,nm:"Precomp. 1",tt:1,refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[125,125,0],ix:2},a:{a:0,k:[200,200,0],ix:1},s:{a:0,k:[62.5,62.5,100],ix:6}},ao:0,w:400,h:400,ip:0,op:144,st:0,bm:0}],animationData$1={v:v$1,fr:fr$1,ip:ip$1,op:op$1,w:w$1,h:h$1,nm:nm$1,ddd:ddd$1,assets:assets$1,layers:layers$1};const LottieSpinner=()=>{const e={animationData:animationData$1,loop:!0,autoplay:!0,style:{height:"200px",width:"200px"}},{View:t}=useLottie(e);return jsx(Fragment,{children:t})},LoadingSpinner=()=>jsx(Container$k,{children:jsx(LottieSpinner,{})}),Container$k=styled.div`
|
|
392
|
+
`,Alert=({type:e,className:t,children:r,actionLink:a,...i})=>jsxs(Wrapper$f,{className:t,$type:e,"data-testid":i["data-testid"],children:[r,a&&jsxs(ActionLinkText,{weight:"semibold",...a,"data-testid":"action-link",children:[a.children,jsx(ArrowIcon,{})]})]});var lottie$1={exports:{}};(function(module,exports){var factory;"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,a,i=e.length;for(r=0;r<i;r+=1)for(var n in a=e[r].prototype)Object.prototype.hasOwnProperty.call(a,n)&&(t.prototype[n]=a[n])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,a=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(a=0;a<t;a+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),a=e.length;for(t=0;t<a;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,a){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=a<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,a){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=a<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var a,i,n,s,o,l,h,c;switch(l=r*(1-t),h=r*(1-(o=6*e-(s=Math.floor(6*e)))*t),c=r*(1-(1-o)*t),s%6){case 0:a=r,i=c,n=l;break;case 1:a=h,i=r,n=l;break;case 2:a=l,i=r,n=c;break;case 3:a=l,i=h,n=r;break;case 4:a=c,i=l,n=r;break;case 5:a=r,i=l,n=h}return[a,i,n]}function RGBtoHSV(e,t,r){var a,i=Math.max(e,t,r),n=Math.min(e,t,r),s=i-n,o=0===i?0:s/i,l=i/255;switch(i){case n:a=0;break;case e:a=t-r+s*(t<r?6:0),a/=6*s;break;case t:a=r-e+2*s,a/=6*s;break;case r:a=e-t+4*s,a/=6*s}return[a,o,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,a){return e<0&&(e=0),t<0&&(t=0),a<0&&(a=0),"#"+r[e]+r[t]+r[a]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,r=1,a=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},n={postMessage:function(e){i.onmessage({data:e})}};function s(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),a=URL.createObjectURL(r);return new Worker(a)}return e=t,i}((function(e){if(n.dataManager||(n.dataManager=function(){function e(i,n){var s,o,l,h,c,p,u=i.length;for(o=0;o<u;o+=1)if("ks"in(s=i[o])&&!s.completed){if(s.completed=!0,s.tt&&(i[o-1].td=s.tt),s.hasMask){var m=s.masksProperties;for(h=m.length,l=0;l<h;l+=1)if(m[l].pt.k.i)a(m[l].pt.k);else for(p=m[l].pt.k.length,c=0;c<p;c+=1)m[l].pt.k[c].s&&a(m[l].pt.k[c].s[0]),m[l].pt.k[c].e&&a(m[l].pt.k[c].e[0])}0===s.ty?(s.layers=t(s.refId,n),e(s.layers,n)):4===s.ty?r(s.shapes):5===s.ty&&d(s)}}function t(e,t){var r=function(e,t){for(var r=0,a=t.length;r<a;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,i,n;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)a(e[t].ks.k);else for(n=e[t].ks.k.length,i=0;i<n;i+=1)e[t].ks.k[i].s&&a(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&a(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function a(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var n,s=function(){var e=[4,4,14];function t(e){var t,r,a,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(a=void 0,a=(r=e[t]).t.d,r.t.d={k:[{s:a,t:0}]})}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var a,n=r.assets.length;for(a=0;a<n;a+=1)r.assets[a].layers&&t(r.assets[a].layers)}}}(),o=(n=[4,7,99],function(e){if(e.chars&&!i(n,e.v)){var t,a=e.chars.length;for(t=0;t<a;t+=1){var s=e.chars[t];s.data&&s.data.shapes&&(r(s.data.shapes),s.data.ip=0,s.data.op=99999,s.data.st=0,s.data.sr=1,s.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}},e.chars[t].t||(s.data.shapes.push({ty:"no"}),s.data.shapes[0].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"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,r,a=e.length;for(t=0;t<a;t+=1)5===e[t].ty&&(r=void 0,"number"==typeof(r=e[t].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var a,n=r.assets.length;for(a=0;a<n;a+=1)r.assets[a].layers&&t(r.assets[a].layers)}}}(),h=function(){var e=[4,1,9];function t(e){var r,a,i,n=e.length;for(r=0;r<n;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,a=0;a<i;a+=1)e[r].c.k[a].s&&(e[r].c.k[a].s[0]/=255,e[r].c.k[a].s[1]/=255,e[r].c.k[a].s[2]/=255,e[r].c.k[a].s[3]/=255),e[r].c.k[a].e&&(e[r].c.k[a].e[0]/=255,e[r].c.k[a].e[1]/=255,e[r].c.k[a].e[2]/=255,e[r].c.k[a].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,a=e.length;for(r=0;r<a;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&r(t.assets[a].layers)}}}(),c=function(){var e=[4,4,18];function t(e){var r,a,i;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,a=0;a<i;a+=1)e[r].ks.k[a].s&&(e[r].ks.k[a].s[0].c=e[r].closed),e[r].ks.k[a].e&&(e[r].ks.k[a].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,a,i,n,s,o,l=e.length;for(a=0;a<l;a+=1){if((r=e[a]).hasMask){var h=r.masksProperties;for(n=h.length,i=0;i<n;i+=1)if(h[i].pt.k.i)h[i].pt.k.c=h[i].cl;else for(o=h[i].pt.k.length,s=0;s<o;s+=1)h[i].pt.k[s].s&&(h[i].pt.k[s].s[0].c=h[i].cl),h[i].pt.k[s].e&&(h[i].pt.k[s].e[0].c=h[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&r(t.assets[a].layers)}}}();function d(e){0===e.t.a.length&&e.t.p}var p={completeData:function(r){r.__complete||(h(r),s(r),o(r),l(r),c(r),e(r.layers,r.assets),function(r,a){if(r){var i=0,n=r.length;for(i=0;i<n;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,a),e(r[i].data.layers,a))}}(r.chars,r.assets),r.__complete=!0)}};return p.checkColors=h,p.checkChars=o,p.checkPathProperties=l,p.checkShapes=c,p.completeLayers=e,p}()),n.assetLoader||(n.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,a,i){var n,s=new XMLHttpRequest;try{s.responseType="json"}catch(e){}s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)n=e(s),a(n);else try{n=e(s),a(n)}catch(e){i&&i(e)}};try{s.open("GET",t,!0)}catch(e){s.open("GET",r+"/"+t,!0)}s.send()}}}()),"loadAnimation"===e.data.type)n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,i=a[r];a[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function o(e,t){var i="processId_"+(r+=1);return a[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(e,t,r){var a="";if(e.e)a=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),a=t+i}else a=r,a+=e.u?e.u:"",a+=e.p;return a}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function n(e){var t={assetData:e},r=a(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function s(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return s.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var a=e.length;for(r=0;r<a;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=a(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var n={img:i,assetData:t};return n},createImageData:function(t){var r=a(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var n={img:i,assetData:t};return n},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},s}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],a=0;a<r.length;a+=1)r[a](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,a=this._cbs[e].length;r<a;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,a-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),a={},i=0,n=0;n<r.length;n+=1)2===(t=r[n].split(":")).length&&(a[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return a}return function(t){for(var r=[],a=0;a<t.length;a+=1){var i=t[a],n={time:i.tm,duration:i.dr};try{n.payload=JSON.parse(t[a].cm)}catch(r){try{n.payload=e(t[a].cm)}catch(e){n.payload={name:t[a].cm}}}r.push(n)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},a=e.attributes;r.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",r.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:"canvas";var i=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var n=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:!a.getNamedItem("bm-autoplay")||a.getNamedItem("bm-autoplay").value;r.autoplay="false"!==n,r.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"","false"===(a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,a=this.animationData.layers,i=a.length,n=e.layers,s=n.length;for(r=0;r<s;r+=1)for(t=0;t<i;){if(a[t].id===n[r].id){a[t]=n[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.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.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var a=Number(e);if(isNaN(a)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var a=Number(e);if(isNaN(a)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(a,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,a=e.length;for(r=0;r<a;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,a=0,i=0,n=!0,s=!1;function o(e){for(var r=0,i=e.target;r<a;)t[r].animation===i&&(t.splice(r,1),r-=1,a-=1,i.isPaused||c()),r+=1}function l(e,r){if(!e)return null;for(var i=0;i<a;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var n=new AnimationItem;return d(n,e),n.setData(e,r),n}function h(){i+=1,m()}function c(){i-=1}function d(e,r){e.addEventListener("destroy",o),e.addEventListener("_active",h),e.addEventListener("_idle",c),t.push({elem:r,animation:e}),a+=1}function p(e){var o,l=e-r;for(o=0;o<a;o+=1)t[o].animation.advanceTime(l);r=e,i&&!s?window.requestAnimationFrame(p):n=!0}function u(e){r=e,window.requestAnimationFrame(p)}function m(){!s&&i&&n&&(window.requestAnimationFrame(u),n=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return d(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var a,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=i.length;for(a=0;a<n;a+=1)r&&i[a].setAttribute("data-bm-type",r),l(i[a],e);if(t&&0===n){r||(r="svg");var s=document.getElementsByTagName("body")[0];s.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",r),s.appendChild(o),l(o,e)}},e.resize=function(){var e;for(e=0;e<a;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var n;for(n=0;n<a;n+=1)t[n].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=a-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){s=!0},e.unfreeze=function(){s=!1,m()},e.setVolume=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,a=[];for(e=0;e<r;e+=1)a.push(t[e].animation);return a},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,a,i,n){var s=n||("bez_"+e+"_"+r+"_"+a+"_"+i).replace(/\./g,"p");if(t[s])return t[s];var o=new h([e,r,a,i]);return t[s]=o,o}},t={},r=.1,a="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function s(e){return 3*e}function o(e,t,r){return((i(t,r)*e+n(t,r))*e+s(t))*e}function l(e,t,r){return 3*i(t,r)*e*e+2*n(t,r)*e+s(t)}function h(e){this._p=e,this._mSampleValues=a?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(e){var t=this._p[0],r=this._p[1],a=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&a===i?e:0===e?0:1===e?1:o(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],a=this._p[3];this._precomputed=!0,e===t&&r===a||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],a=0;a<11;++a)this._mSampleValues[a]=o(a*r,e,t)},_getTForX:function(e){for(var t=this._p[0],a=this._p[2],i=this._mSampleValues,n=0,s=1;10!==s&&i[s]<=e;++s)n+=r;var h=n+(e-i[--s])/(i[s+1]-i[s])*r,c=l(h,t,a);return c>=.001?function(e,t,r,a){for(var i=0;i<4;++i){var n=l(t,r,a);if(0===n)return t;t-=(o(t,r,a)-e)/n}return t}(e,h,t,a):0===c?h:function(e,t,r,a,i){var n,s,l=0;do{(n=o(s=t+(r-t)/2,a,i)-e)>0?r=s:t=s}while(Math.abs(n)>1e-7&&++l<10);return s}(e,n,n+r,t,a)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var a=0,i=e,n=createSizedArray(i);return{newElement:function(){return a?n[a-=1]:t()},release:function(e){a===i&&(n=pooling.double(n),i*=2),r&&r(e),n[a]=e,a+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,r,a,i,n){var s=e*a+t*i+r*n-i*a-n*e-r*t;return s>-.001&&s<.001}var r=function(e,t,r,a){var i,n,s,o,l,h,c=getDefaultCurveSegments(),d=0,p=[],u=[],m=bezierLengthPool.newElement();for(s=r.length,i=0;i<c;i+=1){for(l=i/(c-1),h=0,n=0;n<s;n+=1)o=bmPow(1-l,3)*e[n]+3*bmPow(1-l,2)*l*r[n]+3*(1-l)*bmPow(l,2)*a[n]+bmPow(l,3)*t[n],p[n]=o,null!==u[n]&&(h+=bmPow(p[n]-u[n],2)),u[n]=p[n];h&&(d+=h=bmSqrt(h)),m.percents[i]=l,m.lengths[i]=d}return m.addedLength=d,m};function a(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var n,s=(n={},function(e,r,s,o){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+s[0]+"_"+s[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!n[l]){var h,c,d,p,u,m,f,g=getDefaultCurveSegments(),y=0,b=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+s[0],e[1]+s[1])&&t(e[0],e[1],r[0],r[1],r[0]+o[0],r[1]+o[1])&&(g=2);var v=new a(g);for(d=s.length,h=0;h<g;h+=1){for(f=createSizedArray(d),u=h/(g-1),m=0,c=0;c<d;c+=1)p=bmPow(1-u,3)*e[c]+3*bmPow(1-u,2)*u*(e[c]+s[c])+3*(1-u)*bmPow(u,2)*(r[c]+o[c])+bmPow(u,3)*r[c],f[c]=p,null!==b&&(m+=bmPow(f[c]-b[c],2));y+=m=bmSqrt(m),v.points[h]=new i(m,f),b=f}v.segmentLength=y,n[l]=v}return n[l]});function o(e,t){var r=t.percents,a=t.lengths,i=r.length,n=bmFloor((i-1)*e),s=e*t.addedLength,o=0;if(n===i-1||0===n||s===a[n])return r[n];for(var l=a[n]>s?-1:1,h=!0;h;)if(a[n]<=s&&a[n+1]>s?(o=(s-a[n])/(a[n+1]-a[n]),h=!1):n+=l,n<0||n>=i-1){if(n===i-1)return r[n];h=!1}return r[n]+(r[n+1]-r[n])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,a=segmentsLengthPool.newElement(),i=e.c,n=e.v,s=e.o,o=e.i,l=e._length,h=a.lengths,c=0;for(t=0;t<l-1;t+=1)h[t]=r(n[t],n[t+1],s[t],o[t+1]),c+=h[t].addedLength;return i&&l&&(h[t]=r(n[t],n[0],s[t],o[0]),c+=h[t].addedLength),a.totalLength=c,a},getNewSegment:function(t,r,a,i,n,s,h){n<0?n=0:n>1&&(n=1);var c,d=o(n,h),p=o(s=s>1?1:s,h),u=t.length,m=1-d,f=1-p,g=m*m*m,y=d*m*m*3,b=d*d*m*3,v=d*d*d,x=m*m*f,S=d*m*f+m*d*f+m*m*p,C=d*d*f+m*d*p+d*m*p,_=d*d*p,T=m*f*f,$=d*f*f+m*p*f+m*f*p,w=d*p*f+m*p*p+d*f*p,E=d*p*p,k=f*f*f,A=p*f*f+f*p*f+f*f*p,P=p*p*f+f*p*p+p*f*p,I=p*p*p;for(c=0;c<u;c+=1)l[4*c]=e.round(1e3*(g*t[c]+y*a[c]+b*i[c]+v*r[c]))/1e3,l[4*c+1]=e.round(1e3*(x*t[c]+S*a[c]+C*i[c]+_*r[c]))/1e3,l[4*c+2]=e.round(1e3*(T*t[c]+$*a[c]+w*i[c]+E*r[c]))/1e3,l[4*c+3]=e.round(1e3*(k*t[c]+A*a[c]+P*i[c]+I*r[c]))/1e3;return l},getPointInSegment:function(t,r,a,i,n,s){var l=o(n,s),h=1-l;return[e.round(1e3*(h*h*h*t[0]+(l*h*h+h*l*h+h*h*l)*a[0]+(l*l*h+h*l*l+l*h*l)*i[0]+l*l*l*r[0]))/1e3,e.round(1e3*(h*h*h*t[1]+(l*h*h+h*l*h+h*h*l)*a[1]+(l*l*h+h*l*l+l*h*l)*i[1]+l*l*l*r[1]))/1e3]},buildBezierData:s,pointOnLine2D:t,pointOnLine3D:function(r,a,i,n,s,o,l,h,c){if(0===i&&0===o&&0===c)return t(r,a,n,s,l,h);var d,p=e.sqrt(e.pow(n-r,2)+e.pow(s-a,2)+e.pow(o-i,2)),u=e.sqrt(e.pow(l-r,2)+e.pow(h-a,2)+e.pow(c-i,2)),m=e.sqrt(e.pow(l-n,2)+e.pow(h-s,2)+e.pow(c-o,2));return(d=p>u?p>m?p-u-m:m-u-p:m>u?m-u-p:u-p-m)>-1e-4&&d<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var e=initialDefaultFrame,t=Math.abs;function r(e,t){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var n,s,o,l,h,c,d,p,u,m=t.lastIndex,f=m,g=this.keyframes.length-1,y=!0;y;){if(n=this.keyframes[f],s=this.keyframes[f+1],f===g-1&&e>=s.t-i){n.h&&(n=s),m=0;break}if(s.t-i>e){m=f;break}f<g-1?f+=1:(m=0,y=!1)}o=this.keyframesMetadata[f]||{};var b,v,x,S,C,_,T,$,w,E,k=s.t-i,A=n.t-i;if(n.to){o.bezierData||(o.bezierData=bez.buildBezierData(n.s,s.s||n.e,n.to,n.ti));var P=o.bezierData;if(e>=k||e<A){var I=e>=k?P.points.length-1:0;for(h=P.points[I].point.length,l=0;l<h;l+=1)r[l]=P.points[I].point[l]}else{o.__fnct?u=o.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,o.__fnct=u),c=u((e-A)/(k-A));var M,D=P.segmentLength*c,F=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,y=!0,d=P.points.length;y;){if(F+=P.points[p].partialLength,0===D||0===c||p===P.points.length-1){for(h=P.points[p].point.length,l=0;l<h;l+=1)r[l]=P.points[p].point[l];break}if(D>=F&&D<F+P.points[p+1].partialLength){for(M=(D-F)/P.points[p+1].partialLength,h=P.points[p].point.length,l=0;l<h;l+=1)r[l]=P.points[p].point[l]+(P.points[p+1].point[l]-P.points[p].point[l])*M;break}p<d-1?p+=1:y=!1}t._lastPoint=p,t._lastAddedLength=F-P.points[p].partialLength,t._lastKeyframeIndex=f}}else{var R,L,O,B,j;if(g=n.s.length,b=s.s||n.e,this.sh&&1!==n.h)if(e>=k)r[0]=b[0],r[1]=b[1],r[2]=b[2];else if(e<=A)r[0]=n.s[0],r[1]=n.s[1],r[2]=n.s[2];else{var N=a(n.s),V=a(b);v=r,x=function(e,t,r){var a,i,n,s,o,l=[],h=e[0],c=e[1],d=e[2],p=e[3],u=t[0],m=t[1],f=t[2],g=t[3];return(i=h*u+c*m+d*f+p*g)<0&&(i=-i,u=-u,m=-m,f=-f,g=-g),1-i>1e-6?(a=Math.acos(i),n=Math.sin(a),s=Math.sin((1-r)*a)/n,o=Math.sin(r*a)/n):(s=1-r,o=r),l[0]=s*h+o*u,l[1]=s*c+o*m,l[2]=s*d+o*f,l[3]=s*p+o*g,l}(N,V,(e-A)/(k-A)),S=x[0],C=x[1],_=x[2],T=x[3],$=Math.atan2(2*C*T-2*S*_,1-2*C*C-2*_*_),w=Math.asin(2*S*C+2*_*T),E=Math.atan2(2*S*T-2*C*_,1-2*S*S-2*_*_),v[0]=$/degToRads,v[1]=w/degToRads,v[2]=E/degToRads}else for(f=0;f<g;f+=1)1!==n.h&&(e>=k?c=1:e<A?c=0:(n.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[f]?u=o.__fnct[f]:(R=void 0===n.o.x[f]?n.o.x[0]:n.o.x[f],L=void 0===n.o.y[f]?n.o.y[0]:n.o.y[f],O=void 0===n.i.x[f]?n.i.x[0]:n.i.x[f],B=void 0===n.i.y[f]?n.i.y[0]:n.i.y[f],u=BezierFactory.getBezierEasing(R,L,O,B).get,o.__fnct[f]=u)):o.__fnct?u=o.__fnct:(R=n.o.x,L=n.o.y,O=n.i.x,B=n.i.y,u=BezierFactory.getBezierEasing(R,L,O,B).get,n.keyframeMetadata=u),c=u((e-A)/(k-A)))),b=s.s||n.e,j=1===n.h?n.s[f]:n.s[f]+(b[f]-n.s[f])*c,"multidimensional"===this.propType?r[f]=j:r=j}return t.lastIndex=m,r}function a(e){var t=e[0]*degToRads,r=e[1]*degToRads,a=e[2]*degToRads,i=Math.cos(t/2),n=Math.cos(r/2),s=Math.cos(a/2),o=Math.sin(t/2),l=Math.sin(r/2),h=Math.sin(a/2);return[o*l*s+i*n*h,o*n*s+i*l*h,i*l*s-o*n*h,i*n*s-o*l*h]}function i(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=a&&t>=a||this._caching.lastFrame<r&&t<r))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function n(e){var r;if("unidimensional"===this.propType)r=e*this.mult,t(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var a=0,i=this.v.length;a<i;)r=e[a]*this.mult,t(this.v[a]-r)>1e-5&&(this.v[a]=r,this._mdf=!0),a+=1}function s(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(e,t,r,a){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=s,this.setVValue=n,this.addEffect=o}function h(e,t,r,a){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=t.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),i=0;i<l;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=s,this.setVValue=n,this.addEffect=o}function c(t,a,l,h){this.propType="unidimensional",this.keyframes=a.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=a,this.mult=l||1,this.elem=t,this.container=h,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=s,this.setVValue=n,this.interpolateValue=r,this.effectsSequence=[i.bind(this)],this.addEffect=o}function d(t,a,l,h){var c;this.propType="multidimensional";var d,p,u,m,f=a.k.length;for(c=0;c<f-1;c+=1)a.k[c].to&&a.k[c].s&&a.k[c+1]&&a.k[c+1].s&&(d=a.k[c].s,p=a.k[c+1].s,u=a.k[c].to,m=a.k[c].ti,(2===d.length&&(d[0]!==p[0]||d[1]!==p[1])&&bez.pointOnLine2D(d[0],d[1],p[0],p[1],d[0]+u[0],d[1]+u[1])&&bez.pointOnLine2D(d[0],d[1],p[0],p[1],p[0]+m[0],p[1]+m[1])||3===d.length&&(d[0]!==p[0]||d[1]!==p[1]||d[2]!==p[2])&&bez.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],d[0]+u[0],d[1]+u[1],d[2]+u[2])&&bez.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],p[0]+m[0],p[1]+m[1],p[2]+m[2]))&&(a.k[c].to=null,a.k[c].ti=null),d[0]===p[0]&&d[1]===p[1]&&0===u[0]&&0===u[1]&&0===m[0]&&0===m[1]&&(2===d.length||d[2]===p[2]&&0===u[2]&&0===m[2])&&(a.k[c].to=null,a.k[c].ti=null));this.effectsSequence=[i.bind(this)],this.data=a,this.keyframes=a.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=t,this.container=h,this.comp=t.comp,this.getValue=s,this.setVValue=n,this.interpolateValue=r,this.frameId=-1;var g=a.k[0].s.length;for(this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g),c=0;c<g;c+=1)this.v[c]=e,this.pv[c]=e;this._caching={lastFrame:e,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=o}return{getProp:function(e,t,r,a,i){var n;if(t.k.length)if("number"==typeof t.k[0])n=new h(e,t,a,i);else switch(r){case 0:n=new c(e,t,a,i);break;case 1:n=new d(e,t,a,i)}else n=new l(e,t,a,i);return n.effectsSequence.length&&i.addDynamicProperty(n),n}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,a,i){var n;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[]}(!n[a]||n[a]&&!i)&&(n[a]=pointPool.newElement()),n[a][0]=e,n[a][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,a,i,n,s,o){this.setXYAt(e,t,"v",s,o),this.setXYAt(r,a,"o",s,o),this.setXYAt(i,n,"i",s,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,a=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],a[0][0],a[0][1],r[0][0],r[0][1],0,!1),i=1);var n,s=this._length-1,o=this._length;for(n=i;n<o;n+=1)e.setTripleAt(t[s][0],t[s][1],a[s][0],a[s][1],r[s][0],r[s][1],n,!1),s-=1;return e};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),a=void 0===e._length?e.v.length:e._length;for(r.setLength(a),r.c=e.c,t=0;t<a;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var a,i,n,s,o,l,h,c,d,p=r.lastIndex,u=this.keyframes;if(e<u[0].t-this.offsetTime)a=u[0].s[0],n=!0,p=0;else if(e>=u[u.length-1].t-this.offsetTime)a=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],n=!0;else{for(var m,f,g,y=p,b=u.length-1,v=!0;v&&(m=u[y],!((f=u[y+1]).t-this.offsetTime>e));)y<b-1?y+=1:v=!1;if(g=this.keyframesMetadata[y]||{},p=y,!(n=1===m.h)){if(e>=f.t-this.offsetTime)c=1;else if(e<m.t-this.offsetTime)c=0;else{var x;g.__fnct?x=g.__fnct:(x=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,g.__fnct=x),c=x((e-(m.t-this.offsetTime))/(f.t-this.offsetTime-(m.t-this.offsetTime)))}i=f.s?f.s[0]:m.e[0]}a=m.s[0]}for(l=t._length,h=a.i[0].length,r.lastIndex=p,s=0;s<l;s+=1)for(o=0;o<h;o+=1)d=n?a.i[s][o]:a.i[s][o]+(i.i[s][o]-a.i[s][o])*c,t.i[s][o]=d,d=n?a.o[s][o]:a.o[s][o]+(i.o[s][o]-a.o[s][o])*c,t.o[s][o]=d,d=n?a.v[s][o]:a.v[s][o]+(i.v[s][o]-a.v[s][o])*c,t.v[s][o]=d}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>a&&t>a)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function a(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,a=e._length;for(r=0;r<a;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,n){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===n?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=n,s.prototype.setVValue=i,s.prototype.addEffect=o,l.prototype.getValue=n,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=o;var h=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],a=this.s.v[0]/2,i=this.s.v[1]/2,n=3!==this.d,s=this.v;s.v[0][0]=t,s.v[0][1]=r-i,s.v[1][0]=n?t+a:t-a,s.v[1][1]=r,s.v[2][0]=t,s.v[2][1]=r+i,s.v[3][0]=n?t-a:t+a,s.v[3][1]=r,s.i[0][0]=n?t-a*e:t+a*e,s.i[0][1]=r-i,s.i[1][0]=n?t+a:t-a,s.i[1][1]=r-i*e,s.i[2][0]=n?t+a*e:t-a*e,s.i[2][1]=r+i,s.i[3][0]=n?t-a:t+a,s.i[3][1]=r+i*e,s.o[0][0]=n?t+a*e:t-a*e,s.o[0][1]=r-i,s.o[1][0]=n?t+a:t-a,s.o[1][1]=r+i*e,s.o[2][0]=n?t-a*e:t+a*e,s.o[2][1]=r+i,s.o[3][0]=n?t-a:t+a,s.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),c=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,a,i=2*Math.floor(this.pt.v),n=2*Math.PI/i,s=!0,o=this.or.v,l=this.ir.v,h=this.os.v,c=this.is.v,d=2*Math.PI*o/(2*i),p=2*Math.PI*l/(2*i),u=-Math.PI/2;u+=this.r.v;var m=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=s?h:c,a=s?d:p;var f=(t=s?o:l)*Math.cos(u),g=t*Math.sin(u),y=0===f&&0===g?0:g/Math.sqrt(f*f+g*g),b=0===f&&0===g?0:-f/Math.sqrt(f*f+g*g);f+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(f,g,f-y*a*r*m,g-b*a*r*m,f+y*a*r*m,g+b*a*r*m,e,!0),s=!s,u+=n*m}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,a=this.or.v,i=this.os.v,n=2*Math.PI*a/(4*t),s=.5*-Math.PI,o=3===this.data.d?-1:1;for(s+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=a*Math.cos(s),h=a*Math.sin(s),c=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),d=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-c*n*i*o,h-d*n*i*o,l+c*n*i*o,h+d*n*i*o,e,!0),s+=r*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,a=this.s.v[1]/2,i=bmMin(r,a,this.r.v),n=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-a+i,e+r,t-a+i,e+r,t-a+n,0,!0),this.v.setTripleAt(e+r,t+a-i,e+r,t+a-n,e+r,t+a-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+a,e+r-i,t+a,e+r-n,t+a,2,!0),this.v.setTripleAt(e-r+i,t+a,e-r+n,t+a,e-r+i,t+a,3,!0),this.v.setTripleAt(e-r,t+a-i,e-r,t+a-i,e-r,t+a-n,4,!0),this.v.setTripleAt(e-r,t-a+i,e-r,t-a+n,e-r,t-a+i,5,!0),this.v.setTripleAt(e-r+i,t-a,e-r+i,t-a,e-r+n,t-a,6,!0),this.v.setTripleAt(e+r-i,t-a,e+r-n,t-a,e+r-i,t-a,7,!0)):(this.v.setTripleAt(e-r,t+a,e-r+n,t+a,e-r,t+a,2),this.v.setTripleAt(e-r,t-a,e-r,t-a+n,e-r,t-a,3))):(this.v.setTripleAt(e+r,t-a+i,e+r,t-a+n,e+r,t-a+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-a,e+r-i,t-a,e+r-n,t-a,1,!0),this.v.setTripleAt(e-r+i,t-a,e-r+n,t-a,e-r+i,t-a,2,!0),this.v.setTripleAt(e-r,t-a+i,e-r,t-a+i,e-r,t-a+n,3,!0),this.v.setTripleAt(e-r,t+a-i,e-r,t+a-n,e-r,t+a-i,4,!0),this.v.setTripleAt(e-r+i,t+a,e-r+i,t+a,e-r+n,t+a,5,!0),this.v.setTripleAt(e+r-i,t+a,e+r-n,t+a,e+r-i,t+a,6,!0),this.v.setTripleAt(e+r,t+a-i,e+r,t+a-i,e+r,t+a-n,7,!0)):(this.v.setTripleAt(e-r,t-a,e-r+n,t-a,e-r,t-a,1,!0),this.v.setTripleAt(e-r,t+a,e-r,t+a-n,e-r,t+a,2,!0),this.v.setTripleAt(e+r,t+a,e+r-n,t+a,e+r,t+a,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],e),e}(),p={getShapeProp:function(e,t,r){var a;return 3===r||4===r?a=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new s(e,t,r):5===r?a=new d(e,t):6===r?a=new h(e,t):7===r&&(a=new c(e,t)),a.k&&e.addDynamicProperty(a),a},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return l}};return p}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,a=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function n(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,-i,0,0,i,a,0,0,0,0,1,0,0,0,0,1)}function s(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(1,0,0,0,0,a,-i,0,0,i,a,0,0,0,0,1)}function o(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,0,i,0,0,1,0,0,-i,0,a,0,0,0,0,1)}function l(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,-i,0,0,i,a,0,0,0,0,1,0,0,0,0,1)}function h(e,t){return this._t(1,t,e,1,0,0)}function c(e,t){return this.shear(r(e),r(t))}function d(a,i){var n=e(i),s=t(i);return this._t(n,s,0,0,-s,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(a),1,0,0,0,0,1,0,0,0,0,1)._t(n,-s,0,0,s,n,0,0,0,0,1,0,0,0,0,1)}function p(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function u(e,t,r,a,i,n,s,o,l,h,c,d,p,u,m,f){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=a,this.props[4]=i,this.props[5]=n,this.props[6]=s,this.props[7]=o,this.props[8]=l,this.props[9]=h,this.props[10]=c,this.props[11]=d,this.props[12]=p,this.props[13]=u,this.props[14]=m,this.props[15]=f,this}function m(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function f(e,t,r,a,i,n,s,o,l,h,c,d,p,u,m,f){var g=this.props;if(1===e&&0===t&&0===r&&0===a&&0===i&&1===n&&0===s&&0===o&&0===l&&0===h&&1===c&&0===d)return g[12]=g[12]*e+g[15]*p,g[13]=g[13]*n+g[15]*u,g[14]=g[14]*c+g[15]*m,g[15]*=f,this._identityCalculated=!1,this;var y=g[0],b=g[1],v=g[2],x=g[3],S=g[4],C=g[5],_=g[6],T=g[7],$=g[8],w=g[9],E=g[10],k=g[11],A=g[12],P=g[13],I=g[14],M=g[15];return g[0]=y*e+b*i+v*l+x*p,g[1]=y*t+b*n+v*h+x*u,g[2]=y*r+b*s+v*c+x*m,g[3]=y*a+b*o+v*d+x*f,g[4]=S*e+C*i+_*l+T*p,g[5]=S*t+C*n+_*h+T*u,g[6]=S*r+C*s+_*c+T*m,g[7]=S*a+C*o+_*d+T*f,g[8]=$*e+w*i+E*l+k*p,g[9]=$*t+w*n+E*h+k*u,g[10]=$*r+w*s+E*c+k*m,g[11]=$*a+w*o+E*d+k*f,g[12]=A*e+P*i+I*l+M*p,g[13]=A*t+P*n+I*h+M*u,g[14]=A*r+P*s+I*c+M*m,g[15]=A*a+P*o+I*d+M*f,this._identityCalculated=!1,this}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function v(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function x(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function S(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function C(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function _(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function T(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,a=-this.props[4]/e,i=this.props[0]/e,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,o=new Matrix;return o.props[0]=t,o.props[1]=r,o.props[4]=a,o.props[5]=i,o.props[12]=n,o.props[13]=s,o}function $(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function w(e){var t,r=e.length,a=[];for(t=0;t<r;t+=1)a[t]=$(e[t]);return a}function E(e,t,r){var a=createTypedArray("float32",6);if(this.isIdentity())a[0]=e[0],a[1]=e[1],a[2]=t[0],a[3]=t[1],a[4]=r[0],a[5]=r[1];else{var i=this.props[0],n=this.props[1],s=this.props[4],o=this.props[5],l=this.props[12],h=this.props[13];a[0]=e[0]*i+e[1]*s+l,a[1]=e[0]*n+e[1]*o+h,a[2]=t[0]*i+t[1]*s+l,a[3]=t[0]*n+t[1]*o+h,a[4]=r[0]*i+r[1]*s+l,a[5]=r[0]*n+r[1]*o+h}return a}function k(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function A(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function P(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=a(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function I(e){return e<1e-6&&e>0||e>-1e-6&&e<0?a(1e4*e)/1e4:e}function M(){var e=this.props;return"matrix("+I(e[0])+","+I(e[1])+","+I(e[4])+","+I(e[5])+","+I(e[12])+","+I(e[13])+")"}return function(){this.reset=i,this.rotate=n,this.rotateX=s,this.rotateY=o,this.rotateZ=l,this.skew=c,this.skewFromAxis=d,this.shear=h,this.scale=p,this.setTransform=u,this.translate=m,this.transform=f,this.applyToPoint=x,this.applyToX=S,this.applyToY=C,this.applyToZ=_,this.applyToPointArray=k,this.applyToTriplePoints=E,this.applyToPointStringified=A,this.toCSS=P,this.to2dCSS=M,this.clone=b,this.cloneFromProps=v,this.equals=y,this.inversePoints=w,this.inversePoint=$,this.getInverseMatrix=T,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var a=t[r].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.9.6";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,a){return new t[e](r,a)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,a,i){var n=[];t<=1?n.push({s:e,e:t}):e>=1?n.push({s:e-1,e:t-1}):(n.push({s:e,e:1}),n.push({s:0,e:t-1}));var s,o,l=[],h=n.length;for(s=0;s<h;s+=1){var c,d;(o=n[s]).e*i<a||o.s*i>a+r||(c=o.s*i<=a?0:(o.s*i-a)/r,d=o.e*i>=a+r?1:(o.e*i-a)/r,l.push([c,d]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,a,i;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),(t=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(r=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var s=t;t=r,r=s}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var o,l,h,c,d,p=this.shapes.length,u=0;if(r===t)for(i=0;i<p;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(i=0;i<p;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var m,f,g=[];for(i=0;i<p;i+=1)if((m=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(a=m.shape.paths)._length,d=0,!m.shape._mdf&&m.pathsData.length)d=m.totalShapeLength;else{for(h=this.releasePathsData(m.pathsData),o=0;o<l;o+=1)c=bez.getSegmentsLength(a.shapes[o]),h.push(c),d+=c.totalLength;m.totalShapeLength=d,m.pathsData=h}u+=d,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var y,b=t,v=r,x=0;for(i=p-1;i>=0;i-=1)if((m=this.shapes[i]).shape._mdf){for((f=m.localShapeCollection).releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(t,r,m.totalShapeLength,x,u),x+=m.totalShapeLength):y=[[b,v]],l=y.length,o=0;o<l;o+=1){b=y[o][0],v=y[o][1],g.length=0,v<=1?g.push({s:m.totalShapeLength*b,e:m.totalShapeLength*v}):b>=1?g.push({s:m.totalShapeLength*(b-1),e:m.totalShapeLength*(v-1)}):(g.push({s:m.totalShapeLength*b,e:m.totalShapeLength}),g.push({s:0,e:m.totalShapeLength*(v-1)}));var S=this.addShapes(m,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var C=S.pop();this.addPaths(S,f),S=this.addShapes(m,g[1],C)}else this.addPaths(S,f),S=this.addShapes(m,g[1]);this.addPaths(S,f)}}m.shape.paths=f}}},TrimModifier.prototype.addPaths=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,a,i,n,s){i.setXYAt(t[0],t[1],"o",n),i.setXYAt(r[0],r[1],"i",n+1),s&&i.setXYAt(e[0],e[1],"v",n),i.setXYAt(a[0],a[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,a){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),a&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var a,i,n,s,o,l,h,c,d=e.pathsData,p=e.shape.paths.shapes,u=e.shape.paths._length,m=0,f=[],g=!0;for(r?(o=r._length,c=r._length):(r=shapePool.newElement(),o=0,c=0),f.push(r),a=0;a<u;a+=1){for(l=d[a].lengths,r.c=p[a].c,n=p[a].c?l.length:l.length+1,i=1;i<n;i+=1)if(m+(s=l[i-1]).addedLength<t.s)m+=s.addedLength,r.c=!1;else{if(m>t.e){r.c=!1;break}t.s<=m&&t.e>=m+s.addedLength?(this.addSegment(p[a].v[i-1],p[a].o[i-1],p[a].i[i],p[a].v[i],r,o,g),g=!1):(h=bez.getNewSegment(p[a].v[i-1],p[a].v[i],p[a].o[i-1],p[a].i[i],(t.s-m)/s.addedLength,(t.e-m)/s.addedLength,l[i-1]),this.addSegmentFromArray(h,r,o,g),g=!1,r.c=!1),m+=s.addedLength,o+=1}if(p[a].c&&l.length){if(s=l[i-1],m<=t.e){var y=l[i-1].addedLength;t.s<=m&&t.e>=m+y?(this.addSegment(p[a].v[i-1],p[a].o[i-1],p[a].i[0],p[a].v[0],r,o,g),g=!1):(h=bez.getNewSegment(p[a].v[i-1],p[a].v[0],p[a].o[i-1],p[a].i[0],(t.s-m)/y,(t.e-m)/y,l[i-1]),this.addSegmentFromArray(h,r,o,g),g=!1,r.c=!1)}else r.c=!1;m+=s.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>t.e)break;a<u-1&&(r=shapePool.newElement(),g=!0,f.push(r),o=0)}return f},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,a=[0,0],i=e._length,n=0;for(n=0;n<i;n+=1)a[0]+=e.v[n][0],a[1]+=e.v[n][1];a[0]/=i,a[1]/=i;var s,o,l,h,c,d,p=shapePool.newElement();for(p.c=e.c,n=0;n<i;n+=1)s=e.v[n][0]+(a[0]-e.v[n][0])*r,o=e.v[n][1]+(a[1]-e.v[n][1])*r,l=e.o[n][0]+(a[0]-e.o[n][0])*-r,h=e.o[n][1]+(a[1]-e.o[n][1])*-r,c=e.i[n][0]+(a[0]-e.i[n][0])*-r,d=e.i[n][1]+(a[1]-e.i[n][1])*-r,p.setTripleAt(s,o,l,h,c,d,n);return p},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,a,i,n,s,o=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<o;r+=1){if(s=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(s.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,i=n.shape.paths._length,a=0;a<i;a+=1)s.addShape(this.processPath(t[a],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var a,i=t.or.k.length;for(a=0;a<i;a+=1)t.or.k[a].to=null,t.or.k[a].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var a,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(a=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(a=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(a=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){a=[],i=[];var n=this.px,s=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(a[0]=n.getValueAtTime((n.keyframes[0].t+.01)/r,0),a[1]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[0]=n.getValueAtTime(n.keyframes[0].t/r,0),i[1]=s.getValueAtTime(s.keyframes[0].t/r,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(a[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/r,0),a[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/r,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0)):(a=[n.pv,s.pv],i[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/r,n.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime))}else a=i=e;this.v.rotate(-Math.atan2(a[1]-i[1],a[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,a){return new t(e,r,a)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",a="normal",i=t.length,n=0;n<i;n+=1)switch(t[n].toLowerCase()){case"italic":a="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:a,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,a,i,n){var s=n?-1:1,o=a.s.v[0]+(1-a.s.v[0])*(1-i),l=a.s.v[1]+(1-a.s.v[1])*(1-i);e.translate(a.p.v[0]*s*i,a.p.v[1]*s*i,a.p.v[2]),t.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),t.rotate(-a.r.v*s*i),t.translate(a.a.v[0],a.a.v[1],a.a.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.scale(n?1/o:o,n?1/l:l),r.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,a){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,a,i,n,s=!1;if(this._mdf||e){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}for(n=0,a=0;a<=this._groups.length-1;a+=1){if(o=n<l,this._groups[a]._render=o,this.changeGroupRender(this._groups[a].it,o),!o){var c=this.elemsData[a].it,d=c[c.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}n+=1}this._currentCopies=l;var p=this.o.v,u=p%1,m=p>0?Math.floor(p):Math.ceil(p),f=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b,v,x=0;if(p>0){for(;x<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),x+=u)}else if(p<0){for(;x>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),x-=u)}for(a=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,n=this._currentCopies;n;){if(v=(r=(t=this.elemsData[a].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),0!==x){for((0!==a&&1===i||a!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),b=0;b<v;b+=1)r[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<v;b+=1)r[b]=this.matrix.props[b];x+=1,n-=1,a+=i}}else for(n=this._currentCopies,a=0,i=1;n;)r=(t=this.elemsData[a].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,n-=1,a+=i;return s},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,a=shapePool.newElement();a.c=e.c;var i,n,s,o,l,h,c,d,p,u,m,f,g=e._length,y=0;for(r=0;r<g;r+=1)i=e.v[r],s=e.o[r],n=e.i[r],i[0]===s[0]&&i[1]===s[1]&&i[0]===n[0]&&i[1]===n[1]?0!==r&&r!==g-1||e.c?(o=0===r?e.v[g-1]:e.v[r-1],h=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,c=m=i[0]+(o[0]-i[0])*h,d=f=i[1]-(i[1]-o[1])*h,p=c-(c-i[0])*roundCorner,u=d-(d-i[1])*roundCorner,a.setTripleAt(c,d,p,u,m,f,y),y+=1,o=r===g-1?e.v[0]:e.v[r+1],h=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,c=p=i[0]+(o[0]-i[0])*h,d=u=i[1]+(o[1]-i[1])*h,m=c-(c-i[0])*roundCorner,f=d-(d-i[1])*roundCorner,a.setTripleAt(c,d,p,u,m,f,y),y+=1):(a.setTripleAt(i[0],i[1],s[0],s[1],n[0],n[1],y),y+=1):(a.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],y),y+=1);return a},RoundCornersModifier.prototype.processShapes=function(e){var t,r,a,i,n,s,o=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<o;r+=1){if(s=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(s.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,i=n.shape.paths._length,a=0;a<i;a+=1)s.addShape(this.processPath(t[a],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],a=[65039,8205];function i(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var a=createTag("span");a.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(a),document.body.appendChild(r);var i=a.offsetWidth;return a.style.fontFamily=function(e){var t,r=e.split(","),a=r.length,i=[];for(t=0;t<a;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:a,w:i,parent:r}}function n(e,t){var r,a=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===a){var n=createNS("text");n.style.fontSize="100px",n.setAttribute("font-family",e.fFamily),n.setAttribute("font-style",i.style),n.setAttribute("font-weight",i.weight),n.textContent="1",e.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",e.fClass)):n.style.fontFamily=e.fFamily,t.appendChild(n),r=n}else{var s=new OffscreenCanvas(500,500).getContext("2d");s.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=s}return{measureText:function(e){return"svg"===a?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}var s=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};s.isModifier=function(e,t){var a=e.toString(16)+t.toString(16);return-1!==r.indexOf(a)},s.isZeroWidthJoiner=function(e,t){return t?e===a[0]&&t===a[1]:e===a[1]},s.isCombinedCharacter=function(e){return-1!==t.indexOf(e)};var o={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,a,i=e.length,n=this.chars.length;for(t=0;t<i;t+=1){for(r=0,a=!1;r<n;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(a=!0),r+=1;a||(this.chars.push(e[t]),n+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=n(e),e.cache={}})),void(this.fonts=e.list);var r,a=e.list,s=a.length,o=s;for(r=0;r<s;r+=1){var l,h,c=!0;if(a[r].loaded=!1,a[r].monoCase=i(a[r].fFamily,"monospace"),a[r].sansCase=i(a[r].fFamily,"sans-serif"),a[r].fPath){if("p"===a[r].fOrigin||3===a[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+a[r].fFamily+'"], style[f-origin="3"][f-family="'+a[r].fFamily+'"]')).length>0&&(c=!1),c){var d=createTag("style");d.setAttribute("f-forigin",a[r].fOrigin),d.setAttribute("f-origin",a[r].origin),d.setAttribute("f-family",a[r].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+a[r].fFamily+"; font-style: normal; src: url('"+a[r].fPath+"');}",t.appendChild(d)}}else if("g"===a[r].fOrigin||1===a[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<l.length;h+=1)-1!==l[h].href.indexOf(a[r].fPath)&&(c=!1);if(c){var p=createTag("link");p.setAttribute("f-forigin",a[r].fOrigin),p.setAttribute("f-origin",a[r].origin),p.type="text/css",p.rel="stylesheet",p.href=a[r].fPath,document.body.appendChild(p)}}else if("t"===a[r].fOrigin||2===a[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)a[r].fPath===l[h].src&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",a[r].fOrigin),u.setAttribute("f-origin",a[r].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",a[r].fPath),t.appendChild(u)}}}else a[r].loaded=!0,o-=1;a[r].helper=n(a[r],t),a[r].cache={},this.fonts.push(a[r])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,a){for(var i=0,n=this.chars.length;i<n;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===a)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,a)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var a=this.getFontByName(t),i=e.charCodeAt(0);if(!a.cache[i+1]){var n=a.helper;if(" "===e){var s=n.measureText("|"+e+"|"),o=n.measureText("||");a.cache[i+1]=(s-o)/100}else a.cache[i+1]=n.measureText(e)/100}return a.cache[i+1]*r},checkLoadedFonts:function(){var e,t,r,a=this.fonts.length,i=a;for(e=0;e<a;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return s.prototype=o,s}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,a=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)a[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return a[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(a){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[a-1]?t.keyframes[a-1].s:"e"in t.keyframes[a-2]?t.keyframes[a-2].e:t.keyframes[a-2].s;var n="unidimensional"===r?new Number(i):Object.assign({},i);return n.time=t.keyframes[a-1].t/t.elem.comp.globalData.frameRate,n.value="unidimensional"===r?i[0]:i,n},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function a(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var a=1/t.mult,i=t.pv*a,n=new Number(i);return n.value=i,r(n,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*a,n.value!==i&&((n=new Number(i)).value=i,r(n,t,"unidimensional")),n}}(i):function(e){e&&"pv"in e||(e=t);var a=1/e.mult,i=e.data&&e.data.l||e.pv.length,n=createTypedArray("float32",i),s=createTypedArray("float32",i);return n.value=s,r(n,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)s[t]=e.v[t]*a,n[t]=s[t];return n}}(i):a}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,a,i,n;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?n=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[r(),a(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function a(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function n(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function s(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function o(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(h){var c;function d(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=s,d.applyPoint=n,d.toWorld=r,d.toWorldVec=t,d.fromWorld=i,d.fromWorldVec=a,d.toComp=r,d.fromComp=o,d.sampleImage=l,d.sourceRectAtTime=h.sourceRectAtTime.bind(h),d._elem=h;var p=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),d.startTime=h.data.st,d.index=h.data.ind,d.source=h.data.refId,d.height=0===h.data.ty?h.data.h:100,d.width=0===h.data.ty?h.data.w:100,d.inPoint=h.data.ip/h.comp.globalData.frameRate,d.outPoint=h.data.op/h.comp.globalData.frameRate,d._name=h.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,h)},d.registerEffectsInterface=function(e){d.effect=e},d}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){function e(r,a,i,n){function s(e){for(var t=r.ef,a=0,i=t.length;a<i;){if(e===t[a].nm||e===t[a].mn||e===t[a].ix)return 5===t[a].ty?h[a]:h[a]();a+=1}throw new Error}var o,l=propertyGroupFactory(s,i),h=[],c=r.ef.length;for(o=0;o<c;o+=1)5===r.ef[o].ty?h.push(e(r.ef[o],a.effectElements[o],a.effectElements[o].propertyGroup,n)):h.push(t(a.effectElements[o],r.ef[o].ty,n,l));return"ADBE Color Control"===r.mn&&Object.defineProperty(s,"color",{get:function(){return h[0]()}}),Object.defineProperties(s,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),s.enabled=0!==r.en,s.active=s.enabled,s}function t(e,t,r,a){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",a)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var a,i=[],n=t.data.ef,s=t.effectsManager.effectElements.length;for(a=0;a<s;a+=1)i.push(e(n[a],t.effectsManager.effectElements[a],r,t));var o=t.data.ef||[],l=function(e){for(a=0,s=o.length;a<s;){if(e===o[a].nm||e===o[a].mn||e===o[a].ix)return i[a];a+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),CompExpressionInterface=function(e){function t(t){for(var r=0,a=e.layers.length;r<a;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t},ShapePathInterface=function(e,t,r){var a=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var n=propertyGroupFactory(i,r);return a.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(i,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function e(e,s,p){var u,m=[],f=e?e.length:0;for(u=0;u<f;u+=1)"gr"===e[u].ty?m.push(t(e[u],s[u],p)):"fl"===e[u].ty?m.push(r(e[u],s[u],p)):"st"===e[u].ty?m.push(i(e[u],s[u],p)):"tm"===e[u].ty?m.push(n(e[u],s[u],p)):"tr"===e[u].ty||("el"===e[u].ty?m.push(o(e[u],s[u],p)):"sr"===e[u].ty?m.push(l(e[u],s[u],p)):"sh"===e[u].ty?m.push(ShapePathInterface(e[u],s[u],p)):"rc"===e[u].ty?m.push(h(e[u],s[u],p)):"rd"===e[u].ty?m.push(c(e[u],s[u],p)):"rp"===e[u].ty?m.push(d(e[u],s[u],p)):"gf"===e[u].ty?m.push(a(e[u],s[u],p)):m.push((e[u],s[u],function(){return null})));return m}function t(t,r,a){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,a);var n=function(t,r,a){var i,n=function(e){for(var t=0,r=i.length;t<r;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};n.propertyGroup=propertyGroupFactory(n,a),i=e(t.it,r.it,n.propertyGroup),n.numProperties=i.length;var o=s(t.it[t.it.length-1],r.it[r.it.length-1],n.propertyGroup);return n.transform=o,n.propertyIndex=t.cix,n._name=t.nm,n}(t,r,i.propertyGroup),o=s(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=n,i.transform=o,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function r(e,t,r){function a(e){return"Color"===e||"color"===e?a.color:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),a}function a(e,t,r){function a(e){return"Start Point"===e||"start point"===e?a.startPoint:"End Point"===e||"end point"===e?a.endPoint:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),a}function i(e,t,r){var a,i=propertyGroupFactory(h,r),n=propertyGroupFactory(l,i);function s(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var o=e.d?e.d.length:0,l={};for(a=0;a<o;a+=1)s(a),t.d.dataProps[a].p.setGroupProperty(n);function h(e){return"Color"===e||"color"===e?h.color:"Opacity"===e||"opacity"===e?h.opacity:"Stroke Width"===e||"stroke width"===e?h.strokeWidth:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),h}function n(e,t,r){function a(t){return t===e.e.ix||"End"===t||"end"===t?a.end:t===e.s.ix?a.start:t===e.o.ix?a.offset:null}var i=propertyGroupFactory(a,r);return a.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),a.propertyIndex=e.ix,a.propertyGroup=r,Object.defineProperties(a,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),a.mn=e.mn,a}function s(e,t,r){function a(t){return e.a.ix===t||"Anchor Point"===t?a.anchorPoint:e.o.ix===t||"Opacity"===t?a.opacity:e.p.ix===t||"Position"===t?a.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?a.rotation:e.s.ix===t||"Scale"===t?a.scale:e.sk&&e.sk.ix===t||"Skew"===t?a.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?a.skewAxis:null}var i=propertyGroupFactory(a,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(a,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),a.ty="tr",a.mn=e.mn,a.propertyGroup=r,a}function o(e,t,r){function a(t){return e.p.ix===t?a.position:e.s.ix===t?a.size:null}var i=propertyGroupFactory(a,r);a.propertyIndex=e.ix;var n="tm"===t.sh.ty?t.sh.prop:t.sh;return n.s.setGroupProperty(PropertyInterface("Size",i)),n.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(a,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:e.nm}}),a.mn=e.mn,a}function l(e,t,r){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.rotation:e.pt.ix===t?a.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?a.outerRadius:e.os.ix===t?a.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?a.innerRoundness:null:a.innerRadius}var i=propertyGroupFactory(a,r),n="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",i)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),n.pt.setGroupProperty(PropertyInterface("Points",i)),n.p.setGroupProperty(PropertyInterface("Position",i)),n.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:e.nm}}),a.mn=e.mn,a}function h(e,t,r){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?a.size:null}var i=propertyGroupFactory(a,r),n="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,n.p.setGroupProperty(PropertyInterface("Position",i)),n.s.setGroupProperty(PropertyInterface("Size",i)),n.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:e.nm}}),a.mn=e.mn,a}function c(e,t,r){function a(t){return e.r.ix===t||"Round Corners 1"===t?a.radius:null}var i=propertyGroupFactory(a,r),n=t;return a.propertyIndex=e.ix,n.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(a,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:e.nm}}),a.mn=e.mn,a}function d(e,t,r){function a(t){return e.c.ix===t||"Copies"===t?a.copies:e.o.ix===t||"Offset"===t?a.offset:null}var i=propertyGroupFactory(a,r),n=t;return a.propertyIndex=e.ix,n.c.setGroupProperty(PropertyInterface("Copies",i)),n.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(a,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:e.nm}}),a.mn=e.mn,a}return function(t,r,a){var i;function n(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?a:i[e-1];for(var t=0,r=i.length;t<r;){if(i[t]._name===e)return i[t];t+=1}return null}return n.propertyGroup=propertyGroupFactory(n,(function(){return a})),i=e(t,r,n.propertyGroup),n.numProperties=i.length,n._name="Contents",n}}(),TextExpressionInterface=function(e){var t,r;function a(e){return"ADBE Text Document"===e?a.sourceText:null}return Object.defineProperty(a,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return a!==t&&(e.textProperty.currentData.t=t,(r=new String(a)).value=a||new String(a)),r}}),a},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(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,a=e.ef||[];this.effectElements=[];var i,n=a.length;for(r=0;r<n;r+=1)i=new GroupEffect(a[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var a,i=this.data.ef.length,n=this.data.ef;for(r=0;r<i;r+=1){switch(a=null,n[r].ty){case 0:a=new SliderEffect(n[r],t,this);break;case 1:a=new AngleEffect(n[r],t,this);break;case 2:a=new ColorEffect(n[r],t,this);break;case 3:a=new PointEffect(n[r],t,this);break;case 4:case 7:a=new CheckboxEffect(n[r],t,this);break;case 10:a=new LayerIndexEffect(n[r],t,this);break;case 11:a=new MaskIndexEffect(n[r],t,this);break;case 5:a=new EffectsManager(n[r],t);break;default:a=new NoValueEffect(n[r])}a&&this.effectElements.push(a)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var e=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(e),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new 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(e,t){var r,a=this.dynamicProperties.length;for(r=0;r<a;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}};var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function a(e){if(r[e])return t=e,"object"===_typeof$2(r=r[e])?a:r;var i=e.indexOf(t);if(-1!==i){var n=parseInt(e.substr(i+t.length),10);return"object"===_typeof$2(r=r[n])?a:r}return""}return function(){return t="",r=e.getFootageData(),a}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory;function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a,i,n=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var o,l,h,c,d,p,u=this.masksProperties,m=0,f=[],g=createElementID(),y="clipPath",b="clip-path";for(a=0;a<s;a+=1)if(("a"!==u[a].mode&&"n"!==u[a].mode||u[a].inv||100!==u[a].o.k||u[a].o.x)&&(y="mask",b="mask"),"s"!==u[a].mode&&"i"!==u[a].mode||0!==m?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),f.push(h)),i=createNS("path"),"n"===u[a].mode)this.viewData[a]={op:PropertyFactory.getProp(this.element,u[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[a],3),elem:i,lastPath:""},n.appendChild(i);else{var v;if(m+=1,i.setAttribute("fill","s"===u[a].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==u[a].x.k?(y="mask",b="mask",p=PropertyFactory.getProp(this.element,u[a].x,0,null,this.element),v=createElementID(),(c=createNS("filter")).setAttribute("id",v),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),c.appendChild(d),n.appendChild(c),i.setAttribute("stroke","s"===u[a].mode?"#000000":"#ffffff")):(d=null,p=null),this.storedData[a]={elem:i,x:p,expan:d,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===u[a].mode){l=f.length;var x=createNS("g");for(o=0;o<l;o+=1)x.appendChild(f[o]);var S=createNS("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",g+"_"+m),S.appendChild(i),n.appendChild(S),x.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+m+")"),f.length=0,f.push(x)}else f.push(i);u[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,u[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[a],3),invRect:h},this.viewData[a].prop.k||this.drawPath(u[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(y),s=f.length,a=0;a<s;a+=1)this.maskElement.appendChild(f[a]);m>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+g+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,a=this.layers.length;for(this.completeLayers=!0,t=a-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,a=e.length,i=this.layers.length;for(t=0;t<a;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var a=this.elements,i=this.layers,n=0,s=i.length;n<s;)i[n].ind==t&&(a[n]&&!0!==a[n]?(r.push(a[n]),a[n].setAsParent(),void 0!==i[n].parent?this.buildElementParenting(e,i[n].parent,r):e.setHierarchy(r)):(this.buildItem(n),this.addPendingElement(e))),n+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var a=this.createComp(e[t]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var a,i=this.elements.length;for(a=0;a<i;a+=1)if(this.elements[a].data.nm===r){t=this.elements[a];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}},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._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<a;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<a;r+=1)e=this.hierarchy[r].finalTransform.mProp.v.props,t.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,a=!0,i=this.comp;a;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):a=!1;var n,s=t.length;for(r=0;r<s;r+=1)n=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-n[0],e[1]-n[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,a=this.masksProperties.length;for(t=0;t<a;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var a,i,n=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,a=1;a<i;a+=1)n+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[a][0]+","+t.i[a][1]+" "+t.v[a][0]+","+t.v[a][1];if(t.c&&i>1&&(n+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==n){var s="";r.elem&&(t.c&&(s=e.inv?this.solidPath+n:n),r.elem.setAttribute("d",s)),r.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),e}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(e){var t,r,a="SourceGraphic",i=e.data.ef?e.data.ef.length:0,n=createElementID(),s=filtersFactory.createFilter(n,!0),o=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects[l]&&(r=new(0,registeredEffects[l].effect)(s,e.effectsManager.effectElements[t],e,idPrefix+o,a),a=idPrefix+o,registeredEffects[l].countsAsEffect&&(o+=1)),r&&this.filters.push(r)}o&&(e.globalData.defs.appendChild(s),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t,r){registeredEffects[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e,t,r,a=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var i=createNS("mask");i.setAttribute("id",this.layerId),i.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),i.appendChild(this.layerElement),a=i,this.globalData.defs.appendChild(i),featureSupport.maskType||1!=this.data.td||(i.setAttribute("mask-type","luminance"),e=createElementID(),t=filtersFactory.createFilter(e),this.globalData.defs.appendChild(t),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(this.layerElement),a=r,i.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2==this.data.td){var n=createNS("mask");n.setAttribute("id",this.layerId),n.setAttribute("mask-type","alpha");var s=createNS("g");n.appendChild(s),e=createElementID(),t=filtersFactory.createFilter(e);var o=createNS("feComponentTransfer");o.setAttribute("in","SourceGraphic"),t.appendChild(o);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),o.appendChild(l),this.globalData.defs.appendChild(t);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),s.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),s.appendChild(h),s.appendChild(this.layerElement),a=s,featureSupport.maskType||(n.setAttribute("mask-type","luminance"),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),s.appendChild(h),r.appendChild(this.layerElement),a=r,s.appendChild(r)),this.globalData.defs.appendChild(n)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),a=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var c=createNS("clipPath"),d=createNS("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=createElementID();if(c.setAttribute("id",p),c.appendChild(d),this.globalData.defs.appendChild(c),this.checkMasks()){var u=createNS("g");u.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")"),u.appendChild(this.layerElement),this.transformedElement=u,a?a.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,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.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,a=t.length;r<a;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,a=r.length;a;)if(r[a-=1].elem===e)return void(r[a].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var a=0,i=e.length;a<i;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,a){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(a);var n,s=t.length||0;for(i=0;i<s;i+=1)n=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=n.k||this.k,this.dataProps[i]={n:t[i].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var a=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,a=this.o.length/2;r<a;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,a,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,a=Math.round(this.prop.v[t]*r),this.c[t]!==a&&(this.c[t]=a,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)r=t%2==0?100:1,a=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==a&&(this.o[t-4*this.data.p]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),a=createNS(1===t.t?"linearGradient":"radialGradient");a.setAttribute("id",r),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var i,n,s,o=[];for(s=4*t.g.p,n=0;n<s;n+=4)i=createNS("stop"),a.appendChild(i),o.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=a,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,a,i,n=createNS("mask"),s=createNS("path");n.appendChild(s);var o=createElementID(),l=createElementID();n.setAttribute("id",l);var h=createNS(1===e.t?"linearGradient":"radialGradient");h.setAttribute("id",o),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var c=this.stops;for(a=4*e.g.p;a<i;a+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(r),c.push(r);s.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===e.ty&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=h,this.ms=n,this.ost=c,this.maskId=l,t.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,a){if(0===t)return"";var i,n=e.o,s=e.i,o=e.v,l=" M"+a.applyToPointStringified(o[0][0],o[0][1]);for(i=1;i<t;i+=1)l+=" C"+a.applyToPointStringified(n[i-1][0],n[i-1][1])+" "+a.applyToPointStringified(s[i][0],s[i][1])+" "+a.applyToPointStringified(o[i][0],o[i][1]);return r&&t&&(l+=" C"+a.applyToPointStringified(n[i-1][0],n[i-1][1])+" "+a.applyToPointStringified(s[0][0],s[0][1])+" "+a.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function a(){}function i(r,a,i){var n,s,o,l,h,c,d,p,u,m,f,g=a.styles.length,y=a.lvl;for(c=0;c<g;c+=1){if(l=a.sh._mdf||i,a.styles[c].lvl<y){for(p=t.reset(),m=y-a.styles[c].lvl,f=a.transformers.length-1;!l&&m>0;)l=a.transformers[f].mProps._mdf||l,m-=1,f-=1;if(l)for(m=y-a.styles[c].lvl,f=a.transformers.length-1;m>0;)u=a.transformers[f].mProps.v.props,p.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),m-=1,f-=1}else p=e;if(s=(d=a.sh.paths)._length,l){for(o="",n=0;n<s;n+=1)(h=d.shapes[n])&&h._length&&(o+=buildShapeString(h,h._length,h.c,p));a.caches[c]=o}else o=a.caches[c];a.styles[c].d+=!0===r.hd?"":o,a.styles[c]._mdf=l||a.styles[c]._mdf}}function n(e,t,r){var a=t.style;(t.c._mdf||r)&&a.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&a.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,r){o(e,t,r),l(0,t,r)}function o(e,t,r){var a,i,n,s,o,l=t.gf,h=t.g._hasOpacity,c=t.s.v,d=t.e.v;if(t.o._mdf||r){var p="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(p,t.o.v)}if(t.s._mdf||r){var u=1===e.t?"x1":"cx",m="x1"===u?"y1":"cy";l.setAttribute(u,c[0]),l.setAttribute(m,c[1]),h&&!t.g._collapsable&&(t.of.setAttribute(u,c[0]),t.of.setAttribute(m,c[1]))}if(t.g._cmdf||r){a=t.cst;var f=t.g.c;for(n=a.length,i=0;i<n;i+=1)(s=a[i]).setAttribute("offset",f[4*i]+"%"),s.setAttribute("stop-color","rgb("+f[4*i+1]+","+f[4*i+2]+","+f[4*i+3]+")")}if(h&&(t.g._omdf||r)){var g=t.g.o;for(n=(a=t.g._collapsable?t.cst:t.ost).length,i=0;i<n;i+=1)s=a[i],t.g._collapsable||s.setAttribute("offset",g[2*i]+"%"),s.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),h&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||r)&&(o=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)),l.setAttribute("r",o),h&&!t.g._collapsable&&t.of.setAttribute("r",o)),t.e._mdf||t.h._mdf||t.a._mdf||r){o||(o=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)));var y=Math.atan2(d[1]-c[1],d[0]-c[0]),b=t.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var v=o*b,x=Math.cos(y+t.a.v)*v+c[0],S=Math.sin(y+t.a.v)*v+c[1];l.setAttribute("fx",x),l.setAttribute("fy",S),h&&!t.g._collapsable&&(t.of.setAttribute("fx",x),t.of.setAttribute("fy",S))}}function l(e,t,r){var a=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(a.pElem.setAttribute("stroke-dasharray",i.dashStr),a.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&a.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&a.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(a.pElem.setAttribute("stroke-width",t.w.v),a.msElem&&a.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return n;case"gf":return o;case"gs":return s;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return a;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,a,i,n){this.o=e,this.sw=t,this.sc=r,this.fc=a,this.m=i,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!a,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,a,i=this.shapes.length,n=this.stylesList.length,s=[],o=!1;for(r=0;r<n;r+=1){for(a=this.stylesList[r],o=!1,s.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(a)&&(s.push(t),o=t._isAnimated||o);s.length>1&&o&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,a=new SVGStyleData(e,t),i=a.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,a):"fl"===e.ty?r=new SVGFillStyleData(this,e,a):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,a),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,a)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),a=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,a,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,a=this.animatedContents.length;r<a;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,a=this.stylesList.length;for(t=0;t<a;t+=1)this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,a,i,n,s){var o,l,h,c,d,p,u=[].concat(n),m=e.length-1,f=[],g=[];for(o=m;o>=0;o-=1){if((p=this.searchProcessedElement(e[o]))?t[o]=r[p-1]:e[o]._render=s,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty||"no"===e[o].ty)p?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],i),e[o]._render&&t[o].style.pElem.parentNode!==a&&a.appendChild(t[o].style.pElem),f.push(t[o].style);else if("gr"===e[o].ty){if(p)for(h=t[o].it.length,l=0;l<h;l+=1)t[o].prevViewData[l]=t[o].it[l];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,t[o].gr,i+1,u,s),e[o]._render&&t[o].gr.parentNode!==a&&a.appendChild(t[o].gr)}else"tr"===e[o].ty?(p||(t[o]=this.createTransformElement(e[o],a)),c=t[o].transform,u.push(c)):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?(p||(t[o]=this.createShapeElement(e[o],u,i)),this.setElementStyles(t[o])):"tm"===e[o].ty||"rd"===e[o].ty||"ms"===e[o].ty||"pb"===e[o].ty?(p?(d=t[o]).closed=!1:((d=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===e[o].ty&&(p?(d=t[o]).closed=!0:(d=ShapeModifiers.getModifier(e[o].ty),t[o]=d,d.init(this,e,o,t),this.shapeModifiers.push(d),s=!1),g.push(d));this.addProcessedElement(e[o],o+1)}for(m=f.length,o=0;o<m;o+=1)f[o].closed=!0;for(m=g.length,o=0;o<m;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,a,i,n){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 s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,s=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,s=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,s=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,s=!0),!n.length||this.p[0]===n[0]&&this.p[1]===n[1]&&this.p[4]===n[4]&&this.p[5]===n[5]&&this.p[12]===n[12]&&this.p[13]===n[13]||(this.p=n,this._mdf.p=!0,s=!0),s},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var a;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(a=0;a<i;a+=1)n=r!==this.keysIndex?this.effectsSequence[a](n,n.t):this.effectsSequence[a](this.currentData,n.t);t!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,a=e.length;r<=a-1&&!(r===a-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,a=[],i=0,n=e.length,s=!1;i<n;)t=e.charCodeAt(i),FontManager.isCombinedCharacter(t)?a[a.length-1]+=e.charAt(i):t>=55296&&t<=56319?(r=e.charCodeAt(i+1))>=56320&&r<=57343?(s||FontManager.isModifier(t,r)?(a[a.length-1]+=e.substr(i,2),s=!1):a.push(e.substr(i,2)),i+=1):a.push(e.charAt(i)):t>56319?(r=e.charCodeAt(i+1),FontManager.isZeroWidthJoiner(t,r)?(s=!0,a[a.length-1]+=e.substr(i,2),i+=1):a.push(e.charAt(i))):FontManager.isZeroWidthJoiner(t)?(a[a.length-1]+=e.charAt(i),s=!0):a.push(e.charAt(i)),i+=1;return a},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,a,i,n,s,o,l=this.elem.globalData.fontManager,h=this.data,c=[],d=0,p=h.m.g,u=0,m=0,f=0,g=[],y=0,b=0,v=l.getFontByName(e.f),x=0,S=getFontProperties(v);e.fWeight=S.weight,e.fStyle=S.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var C,_=e.tr/1e3*e.finalSize;if(e.sz)for(var T,$,w=!0,E=e.sz[0],k=e.sz[1];w;){T=0,y=0,r=($=this.buildFinalText(e.t)).length,_=e.tr/1e3*e.finalSize;var A=-1;for(t=0;t<r;t+=1)C=$[t].charCodeAt(0),a=!1," "===$[t]?A=t:13!==C&&3!==C||(y=0,a=!0,T+=e.finalLineHeight||1.2*e.finalSize),l.chars?(o=l.getCharData($[t],v.fStyle,v.fFamily),x=a?0:o.w*e.finalSize/100):x=l.measureText($[t],e.f,e.finalSize),y+x>E&&" "!==$[t]?(-1===A?r+=1:t=A,T+=e.finalLineHeight||1.2*e.finalSize,$.splice(t,A===t?1:0,"\r"),A=-1,y=0):(y+=x,y+=_);T+=v.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&k<T?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=$,r=e.finalText.length,w=!1)}y=-_,x=0;var P,I=0;for(t=0;t<r;t+=1)if(a=!1,13===(C=(P=e.finalText[t]).charCodeAt(0))||3===C?(I=0,g.push(y),b=y>b?y:b,y=-2*_,i="",a=!0,f+=1):i=P,l.chars?(o=l.getCharData(P,v.fStyle,l.getFontByName(e.f).fFamily),x=a?0:o.w*e.finalSize/100):x=l.measureText(i,e.f,e.finalSize)," "===P?I+=x+_:(y+=x+_+I,I=0),c.push({l:x,an:x,add:u,n:a,anIndexes:[],val:i,line:f,animatorJustifyOffset:0}),2==p){if(u+=x,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(u-=x);m<=t;)c[m].an=u,c[m].ind=d,c[m].extra=x,m+=1;d+=1,u=0}}else if(3==p){if(u+=x,""===i||t===r-1){for(""===i&&(u-=x);m<=t;)c[m].an=u,c[m].ind=d,c[m].extra=x,m+=1;u=0,d+=1}}else c[d].ind=d,c[d].extra=0,d+=1;if(e.l=c,b=y>b?y:b,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=b,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var M,D,F,R,L=h.a;s=L.length;var O=[];for(n=0;n<s;n+=1){for((M=L[n]).a.sc&&(e.strokeColorAnim=!0),M.a.sw&&(e.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(e.fillColorAnim=!0),R=0,F=M.s.b,t=0;t<r;t+=1)(D=c[t]).anIndexes[n]=R,(1==F&&""!==D.val||2==F&&""!==D.val&&" "!==D.val||3==F&&(D.n||" "==D.val||t==r-1)||4==F&&(D.n||t==r-1))&&(1===M.s.rn&&O.push(R),R+=1);h.a[n].s.totalChars=R;var B,j=-1;if(1===M.s.rn)for(t=0;t<r;t+=1)j!=(D=c[t]).anIndexes[n]&&(j=D.anIndexes[n],B=O.splice(Math.floor(Math.random()*O.length),1)[0]),D.anIndexes[n]=B}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=v.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function a(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return a.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,n=0,s=1,o=1;this.ne.v>0?i=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,n,s,o).get,h=0,c=this.finalS,d=this.finalE,p=this.data.sh;if(2===p)h=l(h=d===c?a>=d?1:0:e(0,t(.5/(d-c)+(a-c)/(d-c),1)));else if(3===p)h=l(h=d===c?a>=d?0:1:1-e(0,t(.5/(d-c)+(a-c)/(d-c),1)));else if(4===p)d===c?h=0:(h=e(0,t(.5/(d-c)+(a-c)/(d-c),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===p){if(d===c)h=0;else{var u=d-c,m=-u/2+(a=t(e(0,a+.5-c),d-c)),f=u/2;h=Math.sqrt(1-m*m/(f*f))}h=l(h)}else 6===p?(d===c?h=0:(a=t(e(0,a+.5-c),d-c),h=(1+Math.cos(Math.PI+2*Math.PI*a/(d-c)))/2),h=l(h)):(a>=r(c)&&(h=e(0,t(a-c<0?t(d,1)-(c-a):d-a,1))),h=l(h));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;h<y?h=0:(h=(h-y)/g)>1&&(h=1)}return h*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,a=this.s.v/t+r,i=this.e.v/t+r;if(a>i){var n=a;a=i,i=n}this.finalS=a,this.finalE=i}},extendPrototype([DynamicPropertyContainer],a),{getTextSelectorProp:function(e,t,r){return new a(e,t)}}}();function TextAnimatorDataProperty(e,t,r){var a={propType:!1},i=PropertyFactory.getProp,n=t.a;this.a={r:n.r?i(e,n.r,0,degToRads,r):a,rx:n.rx?i(e,n.rx,0,degToRads,r):a,ry:n.ry?i(e,n.ry,0,degToRads,r):a,sk:n.sk?i(e,n.sk,0,degToRads,r):a,sa:n.sa?i(e,n.sa,0,degToRads,r):a,s:n.s?i(e,n.s,1,.01,r):a,a:n.a?i(e,n.a,1,0,r):a,o:n.o?i(e,n.o,0,.01,r):a,p:n.p?i(e,n.p,1,0,r):a,sw:n.sw?i(e,n.sw,0,0,r):a,sc:n.sc?i(e,n.sc,1,0,r):a,fc:n.fc?i(e,n.fc,1,0,r):a,fh:n.fh?i(e,n.fh,0,0,r):a,fs:n.fs?i(e,n.fs,0,.01,r):a,fb:n.fb?i(e,n.fb,0,.01,r):a,t:n.t?i(e,n.t,0,0,r):a},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,a=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=a(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,a,i,n,s,o,l,h,c,d,p,u,m,f,g,y,b,v,x,S=this._moreOptions.alignment.v,C=this._animatorsData,_=this._textData,T=this.mHelper,$=this._renderType,w=this.renderedLetters.length,E=e.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,A=x.v;for(this._pathData.r.v&&(A=A.reverse()),s={tLength:0,segments:[]},n=A._length-1,y=0,i=0;i<n;i+=1)k=bez.buildBezierData(A.v[i],A.v[i+1],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[i+1][0]-A.v[i+1][0],A.i[i+1][1]-A.v[i+1][1]]),s.tLength+=k.segmentLength,s.segments.push(k),y+=k.segmentLength;i=n,x.v.c&&(k=bez.buildBezierData(A.v[i],A.v[0],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),s.tLength+=k.segmentLength,s.segments.push(k),y+=k.segmentLength),this._pathData.pi=s}if(s=this._pathData.pi,o=this._pathData.f.v,p=0,d=1,h=0,c=!0,f=s.segments,o<0&&x.v.c)for(s.tLength<Math.abs(o)&&(o=-Math.abs(o)%s.tLength),d=(m=f[p=f.length-1].points).length-1;o<0;)o+=m[d].partialLength,(d-=1)<0&&(d=(m=f[p-=1].points).length-1);u=(m=f[p].points)[d-1],g=(l=m[d]).partialLength}n=E.length,r=0,a=0;var P,I,M,D,F,R=1.2*e.finalSize*.714,L=!0;M=C.length;var O,B,j,N,V,H,z,G,W,U,q,Q,Y=-1,K=o,X=p,Z=d,J=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ae=0,ie=2===e.j?-.5:-1,ne=0,se=!0;for(i=0;i<n;i+=1)if(E[i].n){for(re&&(re+=ae);ne<i;)E[ne].animatorJustifyOffset=re,ne+=1;re=0,se=!0}else{for(I=0;I<M;I+=1)(P=C[I].a).t.propType&&(se&&2===e.j&&(ae+=P.t.v*ie),(F=C[I].s.getMult(E[i].anIndexes[I],_.a[I].s.totalChars)).length?re+=P.t.v*F[0]*ie:re+=P.t.v*F*ie);se=!1}for(re&&(re+=ae);ne<i;)E[ne].animatorJustifyOffset=re,ne+=1}for(i=0;i<n;i+=1){if(T.reset(),N=1,E[i].n)r=0,a+=e.yOffset,a+=L?1:0,o=K,L=!1,this._hasMaskedPath&&(d=Z,u=(m=f[p=X].points)[d-1],g=(l=m[d]).partialLength,h=0),ee="",q="",W="",Q="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(J!==E[i].line){switch(e.j){case 1:o+=y-e.lineWidths[E[i].line];break;case 2:o+=(y-e.lineWidths[E[i].line])/2}J=E[i].line}Y!==E[i].ind&&(E[Y]&&(o+=E[Y].extra),o+=E[i].an/2,Y=E[i].ind),o+=S[0]*E[i].an*.005;var oe=0;for(I=0;I<M;I+=1)(P=C[I].a).p.propType&&((F=C[I].s.getMult(E[i].anIndexes[I],_.a[I].s.totalChars)).length?oe+=P.p.v[0]*F[0]:oe+=P.p.v[0]*F),P.a.propType&&((F=C[I].s.getMult(E[i].anIndexes[I],_.a[I].s.totalChars)).length?oe+=P.a.v[0]*F[0]:oe+=P.a.v[0]*F);for(c=!0,this._pathData.a.v&&(o=.5*E[0].an+(y-this._pathData.f.v-.5*E[0].an-.5*E[E.length-1].an)*Y/(n-1),o+=this._pathData.f.v);c;)h+g>=o+oe||!m?(b=(o+oe-h)/l.partialLength,B=u.point[0]+(l.point[0]-u.point[0])*b,j=u.point[1]+(l.point[1]-u.point[1])*b,T.translate(-S[0]*E[i].an*.005,-S[1]*R*.01),c=!1):m&&(h+=l.partialLength,(d+=1)>=m.length&&(d=0,f[p+=1]?m=f[p].points:x.v.c?(d=0,m=f[p=0].points):(h-=l.partialLength,m=null)),m&&(u=l,g=(l=m[d]).partialLength));O=E[i].an/2-E[i].add,T.translate(-O,0,0)}else O=E[i].an/2-E[i].add,T.translate(-O,0,0),T.translate(-S[0]*E[i].an*.005,-S[1]*R*.01,0);for(I=0;I<M;I+=1)(P=C[I].a).t.propType&&(F=C[I].s.getMult(E[i].anIndexes[I],_.a[I].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?F.length?o+=P.t.v*F[0]:o+=P.t.v*F:F.length?r+=P.t.v*F[0]:r+=P.t.v*F));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(V=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(z=[e.fc[0],e.fc[1],e.fc[2]]),I=0;I<M;I+=1)(P=C[I].a).a.propType&&((F=C[I].s.getMult(E[i].anIndexes[I],_.a[I].s.totalChars)).length?T.translate(-P.a.v[0]*F[0],-P.a.v[1]*F[1],P.a.v[2]*F[2]):T.translate(-P.a.v[0]*F,-P.a.v[1]*F,P.a.v[2]*F));for(I=0;I<M;I+=1)(P=C[I].a).s.propType&&((F=C[I].s.getMult(E[i].anIndexes[I],_.a[I].s.totalChars)).length?T.scale(1+(P.s.v[0]-1)*F[0],1+(P.s.v[1]-1)*F[1],1):T.scale(1+(P.s.v[0]-1)*F,1+(P.s.v[1]-1)*F,1));for(I=0;I<M;I+=1){if(P=C[I].a,F=C[I].s.getMult(E[i].anIndexes[I],_.a[I].s.totalChars),P.sk.propType&&(F.length?T.skewFromAxis(-P.sk.v*F[0],P.sa.v*F[1]):T.skewFromAxis(-P.sk.v*F,P.sa.v*F)),P.r.propType&&(F.length?T.rotateZ(-P.r.v*F[2]):T.rotateZ(-P.r.v*F)),P.ry.propType&&(F.length?T.rotateY(P.ry.v*F[1]):T.rotateY(P.ry.v*F)),P.rx.propType&&(F.length?T.rotateX(P.rx.v*F[0]):T.rotateX(P.rx.v*F)),P.o.propType&&(F.length?N+=(P.o.v*F[0]-N)*F[0]:N+=(P.o.v*F-N)*F),e.strokeWidthAnim&&P.sw.propType&&(F.length?H+=P.sw.v*F[0]:H+=P.sw.v*F),e.strokeColorAnim&&P.sc.propType)for(G=0;G<3;G+=1)F.length?V[G]+=(P.sc.v[G]-V[G])*F[0]:V[G]+=(P.sc.v[G]-V[G])*F;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(G=0;G<3;G+=1)F.length?z[G]+=(P.fc.v[G]-z[G])*F[0]:z[G]+=(P.fc.v[G]-z[G])*F;P.fh.propType&&(z=F.length?addHueToRGB(z,P.fh.v*F[0]):addHueToRGB(z,P.fh.v*F)),P.fs.propType&&(z=F.length?addSaturationToRGB(z,P.fs.v*F[0]):addSaturationToRGB(z,P.fs.v*F)),P.fb.propType&&(z=F.length?addBrightnessToRGB(z,P.fb.v*F[0]):addBrightnessToRGB(z,P.fb.v*F))}}for(I=0;I<M;I+=1)(P=C[I].a).p.propType&&(F=C[I].s.getMult(E[i].anIndexes[I],_.a[I].s.totalChars),this._hasMaskedPath?F.length?T.translate(0,P.p.v[1]*F[0],-P.p.v[2]*F[1]):T.translate(0,P.p.v[1]*F,-P.p.v[2]*F):F.length?T.translate(P.p.v[0]*F[0],P.p.v[1]*F[1],-P.p.v[2]*F[2]):T.translate(P.p.v[0]*F,P.p.v[1]*F,-P.p.v[2]*F));if(e.strokeWidthAnim&&(W=H<0?0:H),e.strokeColorAnim&&(U="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),e.fillColorAnim&&e.fc&&(q="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),this._hasMaskedPath){if(T.translate(0,-e.ls),T.translate(0,S[1]*R*.01+a,0),this._pathData.p.v){v=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var le=180*Math.atan(v)/Math.PI;l.point[0]<u.point[0]&&(le+=180),T.rotate(-le*Math.PI/180)}T.translate(B,j,0),o-=S[0]*E[i].an*.005,E[i+1]&&Y!==E[i+1].ind&&(o+=E[i].an/2,o+=.001*e.tr*e.finalSize)}else{switch(T.translate(r,a,0),e.ps&&T.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:T.translate(E[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[i].line]),0,0);break;case 2:T.translate(E[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[i].line])/2,0,0)}T.translate(0,-e.ls),T.translate(O,0,0),T.translate(S[0]*E[i].an*.005,S[1]*R*.01,0),r+=E[i].l+.001*e.tr*e.finalSize}"html"===$?ee=T.toCSS():"svg"===$?ee=T.to2dCSS():te=[T.props[0],T.props[1],T.props[2],T.props[3],T.props[4],T.props[5],T.props[6],T.props[7],T.props[8],T.props[9],T.props[10],T.props[11],T.props[12],T.props[13],T.props[14],T.props[15]],Q=N}w<=i?(D=new LetterProps(Q,W,U,q,ee,te),this.renderedLetters.push(D),w+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[i],this.lettersChangedFlag=D.update(Q,W,U,q,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,t){var r,a,i=t.length,n="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(a=t[r].ks.k,n+=buildShapeString(a,a.i.length,!0,e));return n},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,a,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(a,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var a=createNS("title"),i=createElementID();a.setAttribute("id",i),a.textContent=t.title,this.svgElement.appendChild(a),r+=i}if(t&&t.description){var n=createNS("desc"),s=createElementID();n.setAttribute("id",s),n.textContent=t.description,this.svgElement.appendChild(n),r+=" "+s}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var e;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),e=0;e<15;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a=this.masksProperties.length,i=!1;for(r=0;r<a;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(e,t,r,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,n,e);var s,o=r.length;for(i=0;i<o;i+=1)r[i].closed||(s={transforms:a.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(s),r[i].elements.push(s))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,n=e.ks.or.k.length;for(i=0;i<n;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,a=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(a.push(i),i=""):i+=e[t],t+=1;return a.push(i),a},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var a=r.it[r.it.length-1];a.s&&(a.s.k[0]=t,a.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(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 a=this.globalData.fontManager.getFontByName(r.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var i=r.fWeight,n=r.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var s,o=r.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var h=this.mHelper,c=this.data.singleShape,d=0,p=0,u=!0,m=.001*r.tr*r.finalSize;if(!c||l||r.sz){var f,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!c||0===e){if(s=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=s,l){var y=createNS("g");s.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(h.reset(),c&&(o[e].n&&(d=-m,p+=r.yOffset,p+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,h,o[e].line,d,p),d+=o[e].l||0,d+=m),l){var b;if(1===(f=this.globalData.fontManager.getCharData(r.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)b=new SVGCompElement(f.data,this.globalData,this);else{var v=emptyShapeData;f.data&&f.data.shapes&&(v=this.buildShapeData(f.data,r.finalSize)),b=new SVGShapeElement(v,this.globalData,this)}if(this.textSpans[e].glyph){var x=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(x.layerElement),x.destroy()}this.textSpans[e].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[e].childSpan.appendChild(b.layerElement),1===f.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else c&&s.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),s.textContent=o[e].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&s&&s.setAttribute("d","")}else{var S=this.textContainer,C="start";switch(r.j){case 1:C="end";break;case 2:C="middle";break;default:C="start"}S.setAttribute("text-anchor",C),S.setAttribute("letter-spacing",m);var _=this.buildTextContents(r.finalText);for(t=_.length,p=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(s=this.textSpans[e].span||createNS("tspan")).textContent=_[e],s.setAttribute("x",0),s.setAttribute("y",p),s.style.display="inherit",S.appendChild(s),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=s,p+=r.finalLineHeight;this.layerElement.appendChild(S)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,a,i,n=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(t=s.length,e=0;e<t;e+=1)s[e].n||(r=n[e],a=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&a.setAttribute("transform",r.m),r._mdf.o&&a.setAttribute("opacity",r.o),r._mdf.sw&&a.setAttribute("stroke-width",r.sw),r._mdf.sc&&a.setAttribute("stroke",r.sc),r._mdf.fc&&a.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.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 t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt&&(this.elements[e-1]&&!0!==this.elements[e-1]?r.setMatte(t[e-1].layerId):(this.buildItem(e-1),this.addPendingElement(r)))}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){e.setMatte(this.elements[t-1].layerId);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var a,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(r,a):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=this.savedOp;this.savedOp=createTypedArray("float32",e),this.savedOp.set(t);var r=0;for(r=this._length;r<e;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,a="_";for(t=0;t<r;t+=1)a+=e[t].transform.key+"_";var i=this.sequences[a];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r,a=0,i=e.transforms.length,n=t;a<i&&!t;){if(e.transforms[a].transform.mProps._mdf){n=!0;break}a+=1}if(n)for(e.finalTransform.reset(),a=i-1;a>=0;a-=1)r=e.transforms[a].transform.mProps.v.props,e.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);e._mdf=n},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,a,i=this.element.finalTransform.mat,n=this.element.canvasContext,s=this.masksProperties.length;for(n.beginPath(),e=0;e<s;e+=1)if("n"!==this.masksProperties[e].mode){var o;this.masksProperties[e].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),a=this.viewData[e].v,t=i.applyToPointArray(a.v[0][0],a.v[0][1],0),n.moveTo(t[0],t[1]);var l=a._length;for(o=1;o<l;o+=1)r=i.applyToTriplePoints(a.o[o-1],a.i[o],a.v[o]),n.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(a.o[o-1],a.i[0],a.v[0]),n.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),n.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new 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 e=0===this.data.ty;this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(e),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},a={};if("fl"===e.ty||"st"===e.ty?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(r.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(r.wi=a.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);a.d=i,a.d.k||(r.da=a.d.dashArray,r.do=a.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),a.style=r,a},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,a,i){var n,s,o,l,h,c,d=e.length-1,p=[],u=[],m=[].concat(i);for(n=d;n>=0;n-=1){if((l=this.searchProcessedElement(e[n]))?t[n]=r[l-1]:e[n]._shouldRender=a,"fl"===e[n].ty||"st"===e[n].ty||"gf"===e[n].ty||"gs"===e[n].ty)l?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],m),p.push(t[n].style);else if("gr"===e[n].ty){if(l)for(o=t[n].it.length,s=0;s<o;s+=1)t[n].prevViewData[s]=t[n].it[s];else t[n]=this.createGroupElement(e[n]);this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,a,m)}else"tr"===e[n].ty?(l||(c=this.createTransformElement(e[n]),t[n]=c),m.push(t[n]),this.addTransformToStyleList(t[n])):"sh"===e[n].ty||"rc"===e[n].ty||"el"===e[n].ty||"sr"===e[n].ty?l||(t[n]=this.createShapeElement(e[n])):"tm"===e[n].ty||"rd"===e[n].ty||"pb"===e[n].ty?(l?(h=t[n]).closed=!1:((h=ShapeModifiers.getModifier(e[n].ty)).init(this,e[n]),t[n]=h,this.shapeModifiers.push(h)),u.push(h)):"rp"===e[n].ty&&(l?(h=t[n]).closed=!0:(h=ShapeModifiers.getModifier(e[n].ty),t[n]=h,h.init(this,e,n,t),this.shapeModifiers.push(h),a=!1),u.push(h));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),d=u.length,n=0;n<d;n+=1)u[n].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,a,i,n,s,o,l,h=this.stylesList.length,c=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<h;e+=1)if(("st"!==(o=(l=this.stylesList[e]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),n=l.elements,"st"===o||"gs"===o?(d.strokeStyle="st"===o?l.co:l.grd,d.lineWidth=l.wi,d.lineCap=l.lc,d.lineJoin=l.lj,d.miterLimit=l.ml||0):d.fillStyle="fl"===o?l.co:l.grd,c.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&d.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),r=n.length,t=0;t<r;t+=1){for("st"!==o&&"gs"!==o||(d.beginPath(),l.da&&(d.setLineDash(l.da),d.lineDashOffset=l.do)),i=(s=n[t].trNodes).length,a=0;a<i;a+=1)"m"===s[a].t?d.moveTo(s[a].p[0],s[a].p[1]):"c"===s[a].t?d.bezierCurveTo(s[a].pts[0],s[a].pts[1],s[a].pts[2],s[a].pts[3],s[a].pts[4],s[a].pts[5]):d.closePath();"st"!==o&&"gs"!==o||(d.stroke(),l.da&&d.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&d.fill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,a){var i,n;for(n=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(n=r[i].transform,this.renderShapeTransform(e,n)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],n):"st"===t[i].ty?this.renderStroke(t[i],r[i],n):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],n):"gr"===t[i].ty?this.renderShape(n,t[i].it,r[i].it):t[i].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,a,i,n=e.trNodes,s=t.paths,o=s._length;n.length=0;var l=e.transforms.finalTransform;for(i=0;i<o;i+=1){var h=s.shapes[i];if(h&&h.v){for(a=h._length,r=1;r<a;r+=1)1===r&&n.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),n.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[r],h.v[r])});1===a&&n.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&a&&(n.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,a=t.styledShapes.length;for(r=0;r<a;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var a=t.style;(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var a,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var n,s=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(1===e.t)a=s.createLinearGradient(o[0],o[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),c=Math.atan2(l[1]-o[1],l[0]-o[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var p=h*d,u=Math.cos(c+t.a.v)*p+o[0],m=Math.sin(c+t.a.v)*p+o[1];a=s.createRadialGradient(u,m,0,o[0],o[1],h)}var f=e.g.p,g=t.g.c,y=1;for(n=0;n<f;n+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*n+1]),a.addColorStop(g[4*n]/100,"rgba("+g[4*n+1]+","+g[4*n+2]+","+g[4*n+3]+","+y+")");i.grd=a}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var a=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(a.da=i.dashArray,a.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(a.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var a,i,n,s,o,l,h,c,d,p,u,m,f=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var b=this.data.singleShape,v=.001*e.tr*e.finalSize,x=0,S=0,C=!0,_=0;for(a=0;a<i;a+=1){s=(n=this.globalData.fontManager.getCharData(e.finalText[a],f.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&n.data||{},y.reset(),b&&g[a].n&&(x=-v,S+=e.yOffset,S+=C?1:0,C=!1),d=(h=s.shapes?s.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),b&&this.applyTextPropertiesToMatrix(e,y,g[a].line,x,S),u=createSizedArray(d-1);var T=0;for(c=0;c<d;c+=1)if("sh"===h[c].ty){for(l=h[c].ks.k.i.length,p=h[c].ks.k,m=[],o=1;o<l;o+=1)1===o&&m.push(y.applyToX(p.v[0][0],p.v[0][1],0),y.applyToY(p.v[0][0],p.v[0][1],0)),m.push(y.applyToX(p.o[o-1][0],p.o[o-1][1],0),y.applyToY(p.o[o-1][0],p.o[o-1][1],0),y.applyToX(p.i[o][0],p.i[o][1],0),y.applyToY(p.i[o][0],p.i[o][1],0),y.applyToX(p.v[o][0],p.v[o][1],0),y.applyToY(p.v[o][0],p.v[o][1],0));m.push(y.applyToX(p.o[o-1][0],p.o[o-1][1],0),y.applyToY(p.o[o-1][0],p.o[o-1][1],0),y.applyToX(p.i[0][0],p.i[0][1],0),y.applyToY(p.i[0][0],p.i[0][1],0),y.applyToX(p.v[0][0],p.v[0][1],0),y.applyToY(p.v[0][0],p.v[0][1],0)),u[T]=m,T+=1}b&&(x+=g[a].l,x+=v),this.textSpans[_]?this.textSpans[_].elem=u:this.textSpans[_]={elem:u},_+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,a,i,n,s=this.canvasContext;s.font=this.values.fValue,s.lineCap="butt",s.lineJoin="miter",s.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;t=h.length;var c,d,p=null,u=null,m=null;for(e=0;e<t;e+=1)if(!h[e].n){if((o=l[e])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?p!==o.fc&&(p=o.fc,s.fillStyle=o.fc):p!==this.values.fill&&(p=this.values.fill,s.fillStyle=this.values.fill),a=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<a;r+=1)for(n=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),i=2;i<n;i+=6)this.globalData.canvasContext.bezierCurveTo(d[i],d[i+1],d[i+2],d[i+3],d[i+4],d[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?m!==o.sw&&(m=o.sw,s.lineWidth=o.sw):m!==this.values.sWidth&&(m=this.values.sWidth,s.lineWidth=this.values.sWidth),o&&o.sc?u!==o.sc&&(u=o.sc,s.strokeStyle=o.sc):u!==this.values.stroke&&(u=this.values.stroke,s.strokeStyle=this.values.stroke),a=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<a;r+=1)for(n=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),i=2;i<n;i+=6)this.globalData.canvasContext.bezierCurveTo(d[i],d[i+1],d[i+2],d[i+3],d[i+4],d[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,a=e.getContext("2d"),i=this.img.width,n=this.img.height,s=i/n,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>o&&"xMidYMid slice"===l||s<o&&"xMidYMid slice"!==l?t=(r=n)*o:r=(t=i)/o,a.drawImage(this.img,(i-t)/2,(n-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){if(1!==e[0]||0!==e[1]||0!==e[4]||1!==e[5]||0!==e[12]||0!==e[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(e);var t=this.contextData.cTr.props;this.transformMat.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=e<0?0:e,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=e<0?0:e,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(e){if(this.renderConfig.clearCanvas){e&&this.canvasContext.save();var t,r=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var a=this.contextData.saved[this.contextData.cArrPos];for(t=0;t<16;t+=1)a[t]=r[t];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(this.renderConfig.clearCanvas){e&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var t,r=this.contextData.saved[this.contextData.cArrPos],a=this.contextData.cTr.props;for(t=0;t<16;t+=1)a[t]=r[t];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.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.canvasContext=this.renderConfig.context;this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(){var e,t,r,a;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",e*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",t*this.renderConfig.dpr)):(e=this.canvasContext.canvas.width*this.renderConfig.dpr,t=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var i=this.renderConfig.preserveAspectRatio.split(" "),n=i[1]||"meet",s=i[0]||"xMidYMid",o=s.substr(0,4),l=s.substr(4);r=e/t,(a=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===n||a<r&&"slice"===n?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===o&&(a<r&&"meet"===n||a>r&&"slice"===n)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(a<r&&"meet"===n||a>r&&"slice"===n)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(a>r&&"meet"===n||a<r&&"slice"===n)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(a>r&&"meet"===n||a<r&&"slice"===n)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.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.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var a=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=0;r<a;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects,this.transformedElement=this.baseElement,this.maskedElement=this.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 e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.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.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,a,i,n,s,o=e.sh.v,l=e.transformers,h=o._length;if(!(h<=1)){for(r=0;r<h-1;r+=1)a=this.getTransformedPoint(l,o.v[r]),i=this.getTransformedPoint(l,o.o[r]),n=this.getTransformedPoint(l,o.i[r+1]),s=this.getTransformedPoint(l,o.v[r+1]),this.checkBounds(a,i,n,s,t);o.c&&(a=this.getTransformedPoint(l,o.v[r]),i=this.getTransformedPoint(l,o.o[r]),n=this.getTransformedPoint(l,o.i[0]),s=this.getTransformedPoint(l,o.v[0]),this.checkBounds(a,i,n,s,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,a,i){this.getBoundsOfCurve(e,t,r,a);var n=this.shapeBoundingBox;i.x=bmMin(n.left,i.x),i.xMax=bmMax(n.right,i.xMax),i.y=bmMin(n.top,i.y),i.yMax=bmMax(n.bottom,i.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.getBoundsOfCurve=function(e,t,r,a){for(var i,n,s,o,l,h,c,d=[[e[0],a[0]],[e[1],a[1]]],p=0;p<2;++p)n=6*e[p]-12*t[p]+6*r[p],i=-3*e[p]+9*t[p]-9*r[p]+3*a[p],s=3*t[p]-3*e[p],n|=0,s|=0,0==(i|=0)&&0===n||(0===i?(o=-s/n)>0&&o<1&&d[p].push(this.calculateF(o,e,t,r,a,p)):(l=n*n-4*s*i)>=0&&((h=(-n+bmSqrt(l))/(2*i))>0&&h<1&&d[p].push(this.calculateF(h,e,t,r,a,p)),(c=(-n-bmSqrt(l))/(2*i))>0&&c<1&&d[p].push(this.calculateF(c,e,t,r,a,p))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(e,t,r,a,i,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*r[n]+3*(1-e)*bmPow(e,2)*a[n]+bmPow(e,3)*i[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var a=0;a<e.keyframes.length;a+=1){var i=e.keyframes[a].s;i>r&&(r=i)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var a=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=i,a.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var a,i,n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var s=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=s}var l,h,c,d=e.l;i=d.length;var p,u=this.mHelper,m="",f=0;for(a=0;a<i;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[f]?l=this.textPaths[f]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[f]?c=(h=this.textSpans[f]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[f]?this.textPaths[f]:createNS("text"):this.textSpans[f]?(h=this.textSpans[f],l=this.textPaths[f]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(e.finalText[a],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,u.reset(),g&&g.shapes&&g.shapes.length&&(p=g.shapes[0].it,u.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(u,p),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),g&&g.shapes){document.body.appendChild(c);var b=c.getBBox();c.setAttribute("width",b.width+2),c.setAttribute("height",b.height+2),c.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var v=c.style,x="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";v.transform=x,v.webkitTransform=x,d[a].yOffset=b.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=d[a].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(h);var S=l.style,C="translate3d(0,"+-e.finalSize/1.2+"px,0)";S.transform=C,S.webkitTransform=C}this.isMasked?this.textSpans[f]=l:this.textSpans[f]=h,this.textSpans[f].style.display="block",this.textPaths[f]=l,f+=1}for(;f<this.textSpans.length;)this.textSpans[f].style.display="none",f+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,a,i,n,s,o=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(a=h.length,r=0;r<a;r+=1)h[r].n?o+=1:(n=this.textSpans[r],s=this.textPaths[r],i=l[o],o+=1,i._mdf.m&&(this.isMasked?n.setAttribute("transform",i.m):(n.style.webkitTransform=i.m,n.style.transform=i.m)),n.style.opacity=i.o,i.sw&&i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&s.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(s.setAttribute("fill",i.fc),s.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,a,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,a=t.container.style;var n=this.pe.v+"px",s="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=n,r.webkitPerspective=n,a.transformOrigin=s,a.mozTransformOrigin=s,a.webkitTransformOrigin=s,r.transform=o,r.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].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(e=t=this.hierarchy.length-1;e>=0;e-=1){var a=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),s=[i[0]/n,i[1]/n,i[2]/n],o=Math.sqrt(s[2]*s[2]+s[0]*s[0]),l=Math.atan2(s[1],o),h=Math.atan2(s[0],-s[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var d,p,u;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(d=this.comp.threeDElements[e]).type){if(c){var m=this.mat.toCSS();(u=d.container.style).transform=m,u.webkitTransform=m}this.pe._mdf&&((p=d.perspectiveElem.style).perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("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",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var a=this.layers[t];if(a.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,n,s=0;s<t;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s],i=(this.layers[s].ddd?this.getThreeDContainerByPos(s):n.getBaseElement())||i),s+=1;i?a.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):a.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,a,i=createTag("div");styleDiv(i);var n=createTag("div");if(styleDiv(n),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var s="50% 50%";r.webkitTransformOrigin=s,r.mozTransformOrigin=s,r.transformOrigin=s;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(a=n.style).transform=o,a.webkitTransform=o}i.appendChild(n);var l={container:n,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,a="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==a&&(a="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==a&&(a="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,a=this.threeDElements.length;r<a;){if(t<=this.threeDElements[r].endPos){for(var i,n=this.threeDElements[r].startPos;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.threeDElements[r].container.insertBefore(e,i):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,a=t.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=t,styleDiv(t),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),a.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var n=createNS("defs");i.appendChild(n),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,a,i=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,s=i/n;this.globalData.compSize.w/this.globalData.compSize.h>s?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,a=(n-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=n/this.globalData.compSize.h,t=n/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,a=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+a+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,a=this.threeDElements.length;for(e=0;e<a;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,a=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],a,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,a=0;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(r=this.elements[a].getBaseElement()),a+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e}();function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}function seedRandom(e,t){var r=this,a=256,i=t.pow(a,6),n=t.pow(2,52),s=2*n,o=255;function l(e){var t,r=e.length,i=this,n=0,s=i.i=i.j=0,l=i.S=[];for(r||(e=[r++]);n<a;)l[n]=n++;for(n=0;n<a;n++)l[n]=l[s=o&s+e[n%r]+(t=l[n])],l[s]=t;i.g=function(e){for(var t,r=0,n=i.i,s=i.j,l=i.S;e--;)t=l[n=o&n+1],r=r*a+l[o&(l[n]=l[s=o&s+t])+(l[s]=t)];return i.i=n,i.j=s,r}}function h(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function c(e,t){var r,a=[],i=_typeof$1(e);if(t&&"object"==i)for(r in e)try{a.push(c(e[r],t-1))}catch(e){}return a.length?a:"string"==i?e:e+"\0"}function d(e,t){for(var r,a=e+"",i=0;i<a.length;)t[o&i]=o&(r^=19*t[o&i])+a.charCodeAt(i++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}t.seedrandom=function(o,u,m){var f=[],g=d(c((u=!0===u?{entropy:!0}:u||{}).entropy?[o,p(e)]:null===o?function(){try{var t=new Uint8Array(a);return(r.crypto||r.msCrypto).getRandomValues(t),p(t)}catch(t){var i=r.navigator,n=i&&i.plugins;return[+new Date,r,n,r.screen,p(e)]}}():o,3),f),y=new l(f),b=function(){for(var e=y.g(6),t=i,r=0;e<n;)e=(e+r)*a,t*=a,r=y.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return b.int32=function(){return 0|y.g(4)},b.quick=function(){return y.g(4)/4294967296},b.double=b,d(p(y.S),e),(u.pass||m||function(e,r,a,i){return i&&(i.S&&h(i,y),e.state=function(){return h(y,{})}),a?(t.random=e,r):e})(b,g,"global"in u?u.global:this==t,u.state)},d(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||"boolean"===e||"string"===e||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if("number"===t||"boolean"===t||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var r,a=e.length,i=[];for(r=0;r<a;r+=1)i[r]=-e[r];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof(e),a=_typeof(t);if("string"===r||"string"===a)return e+t;if(isNumerable(r,e)&&isNumerable(a,t))return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,n=e.length,s=t.length,o=[];i<n||i<s;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?o[i]=e[i]+t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}var add=sum;function sub(e,t){var r=_typeof(e),a=_typeof(t);if(isNumerable(r,e)&&isNumerable(a,t))return"string"===r&&(e=parseInt(e,10)),"string"===a&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,n=e.length,s=t.length,o=[];i<n||i<s;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?o[i]=e[i]-t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}function mul(e,t){var r,a,i,n=_typeof(e),s=_typeof(t);if(isNumerable(n,e)&&isNumerable(s,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(i=e.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e[a]*t;return r}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e*t[a];return r}return 0}function div(e,t){var r,a,i,n=_typeof(e),s=_typeof(t);if(isNumerable(n,e)&&isNumerable(s,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(i=e.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e[a]/t;return r}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e/t[a];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var a=r;r=t,t=a}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var a=Math.min(e.length,t.length),i=0;for(r=0;r<a;r+=1)i+=Math.pow(t[r]-e[r],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,a=e[0],i=e[1],n=e[2],s=Math.max(a,i,n),o=Math.min(a,i,n),l=(s+o)/2;if(s===o)t=0,r=0;else{var h=s-o;switch(r=l>.5?h/(2-s-o):h/(s+o),s){case a:t=(i-n)/h+(i<n?6:0);break;case i:t=(n-a)/h+2;break;case n:t=(a-i)/h+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,a,i=e[0],n=e[1],s=e[2];if(0===n)t=s,a=s,r=s;else{var o=s<.5?s*(1+n):s+n-s*n,l=2*s-o;t=hue2rgb(l,o,i+1/3),r=hue2rgb(l,o,i),a=hue2rgb(l,o,i-1/3)}return[t,r,a,e[3]]}function linear(e,t,r,a,i){if(void 0!==a&&void 0!==i||(a=t,i=r,t=0,r=1),r<t){var n=r;r=t,t=n}if(e<=t)return a;if(e>=r)return i;var s,o=r===t?0:(e-t)/(r-t);if(!a.length)return a+(i-a)*o;var l=a.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=a[s]+(i[s]-a[s])*o;return h}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,a=t.length;e||(e=createTypedArray("float32",a));var i=createTypedArray("float32",a),n=BMMath.random();for(r=0;r<a;r+=1)i[r]=e[r]+n*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,a){var i,n=e.length,s=shapePool.newElement();s.setPathData(!!a,n);var o,l,h=[0,0];for(i=0;i<n;i+=1)o=t&&t[i]?t[i]:h,l=r&&r[i]?r[i]:h,s.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],o[0]+e[i][0],o[1]+e[i][1],i,!0);return s}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.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_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,a,i=this.pv.length?this.pv.length:1,n=createTypedArray("float32",i),s=Math.floor(5*time);for(r=0,a=0;r<s;){for(a=0;a<i;a+=1)n[a]+=-t+2*t*BMMath.random();r+=1}var o=5*time,l=o-Math.floor(o),h=createTypedArray("float32",i);if(i>1){for(a=0;a<i;a+=1)h[a]=this.pv[a]+n[a]+(-t+2*t*BMMath.random())*l;return h}return this.pv+n[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],a=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,a,0]}function easeOut(e,t,r,a,i){return applyEase(easeOutBez,e,t,r,a,i)}function easeIn(e,t,r,a,i){return applyEase(easeInBez,e,t,r,a,i)}function ease(e,t,r,a,i){return applyEase(easeInOutBez,e,t,r,a,i)}function applyEase(e,t,r,a,i,n){void 0===i?(i=r,n=a):t=(t-r)/(a-r),t>1?t=1:t<0&&(t=0);var s=e(t);if($bm_isInstanceOfArray(i)){var o,l=i.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=(n[o]-i[o])*s+i[o];return h}return(n-i)*s+i}function nearestKey(e){var t,r,a,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,a=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,a=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,a=data.k[t+1].t):(r=t+1,a=data.k[t].t);break}}-1===r&&(r=t+1,a=data.k[t].t)}else r=0,a=0;var n={};return n.index=r,n.time=a/elem.comp.globalData.frameRate,n}function key(e){var t,r,a;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=i.length,r=0;r<a;r+=1)t[r]=i[r],t.value[r]=i[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.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.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,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(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),a=0;if(t.length){var i;for(i=0;i<t.length;i+=1)a+=Math.pow(r[i]-t[i],2);a=100*Math.sqrt(a)}else a=0;return a},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,a=-.001,i=this.getValueAtTime(e),n=this.getValueAtTime(e+a);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(n[r]-i[r])/a;else t=(n-i)/a;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var a,i,n,s,o,l=this.comp.renderedFrame,h=this.keyframes,c=h[h.length-1].t;if(l<=c)return this.pv;if(r?i=c-(a=t?Math.abs(c-this.elem.comp.globalData.frameRate*t):Math.max(0,c-this.elem.data.ip)):((!t||t>h.length-1)&&(t=h.length-1),a=c-(i=h[h.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/a)%2!=0)return this.getValueAtTime((a-(l-i)%a+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((l-i)%a+i)/this.comp.globalData.frameRate,0),m=Math.floor((l-i)/a);if(this.pv.length){for(s=(o=new Array(d.length)).length,n=0;n<s;n+=1)o[n]=(p[n]-d[n])*m+u[n];return o}return(p-d)*m+u}if("continue"===e){var f=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(f.length)).length,n=0;n<s;n+=1)o[n]=f[n]+(f[n]-g[n])*((l-c)/this.comp.globalData.frameRate)/5e-4;return o}return f+(l-c)/.001*(f-g)}}return this.getValueAtTime(((l-i)%a+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var a,i,n,s,o,l=this.comp.renderedFrame,h=this.keyframes,c=h[0].t;if(l>=c)return this.pv;if(r?i=c+(a=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-c)):((!t||t>h.length-1)&&(t=h.length-1),a=(i=h[t].t)-c),"pingpong"===e){if(Math.floor((c-l)/a)%2==0)return this.getValueAtTime(((c-l)%a+c)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(c/this.comp.globalData.frameRate,0),p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),u=this.getValueAtTime((a-(c-l)%a+c)/this.comp.globalData.frameRate,0),m=Math.floor((c-l)/a)+1;if(this.pv.length){for(s=(o=new Array(d.length)).length,n=0;n<s;n+=1)o[n]=u[n]-(p[n]-d[n])*m;return o}return u-(p-d)*m}if("continue"===e){var f=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(f.length)).length,n=0;n<s;n+=1)o[n]=f[n]+(f[n]-g[n])*(c-l)/.001;return o}return f+(f-g)*(c-l)/.001}}return this.getValueAtTime((a-((c-l)%a+c))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,a,i=this.comp.renderedFrame/this.comp.globalData.frameRate,n=i-e,s=t>1?(i+e-n)/(t-1):1,o=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;o<t;){if(a=this.getValueAtTime(n+o*s),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=a[l];else r+=a;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function a(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var a=this.s.getValueAtTime(e);t.scale(a[0]*this.s.mult,a[1]*this.s.mult,a[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),n=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var s=this.r.getValueAtTime(e);t.rotate(-s*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),h=this.rx.getValueAtTime(e),c=this.or.getValueAtTime(e);t.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(e),p=this.py.getValueAtTime(e);if(this.data.p.z){var u=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,p*this.py.mult,-u*this.pz.mult)}else t.translate(d*this.px.mult,p*this.py.mult,0)}else{var m=this.p.getValueAtTime(e);t.translate(m[0]*this.p.mult,m[1]*this.p.mult,-m[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var s=n(e,t,r);return s.dynamicProperties.length?s.getValueAtTime=a.bind(s):s.getValueAtTime=i.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(a,i,n,o,l){var h=s(a,i,n,o,l);h.kf?h.getValueAtTime=expressionHelpers.getValueAtTime.bind(h):h.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h.loopOut=e,h.loopIn=t,h.smooth=r,h.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(h),h.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(h),h.numKeys=1===i.a?i.k.length:0,h.propertyIndex=i.ix;var c=0;return 0!==n&&(c=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(a,i,h),h.k&&l.addDynamicProperty(h),h};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(e,t){this.k&&this.getValue();var r,a=this.v;void 0!==t&&(a=this.getValueAtTime(t,0));var i=a._length,n=a[e],s=a.v,o=createSizedArray(i);for(r=0;r<i;r+=1)o[r]="i"===e||"o"===e?[n[r][0]-s[r][0],n[r][1]-s[r][1]]:[n[r][0],n[r][1]];return o},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var a,i=this._segmentsLength,n=i.lengths,s=i.totalLength*e,o=0,l=n.length,h=0;o<l;){if(h+n[o].addedLength>s){var c=o,d=r.c&&o===l-1?0:o+1,p=(s-h)/n[o].addedLength;a=bez.getPointInSegment(r.v[c],r.v[d],r.o[c],r.i[d],p,n[o]);break}h+=n[o].addedLength,o+=1}return a||(a=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),a},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var a=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),n=i[0]-a[0],s=i[1]-a[1],o=Math.sqrt(Math.pow(n,2)+Math.pow(s,2));return 0===o?[0,0]:"tangent"===r?[n/o,s/o]:[-s/o,n/o]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],o),extendPrototype([h],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,a,i){var n=c(e,t,r,a,i);return n.propertyIndex=t.ix,n.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,n):4===r&&expressionHelpers.searchExpressions(e,t.ks,n),n.k&&e.addDynamicProperty(n),n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var a={};return this.copyData(a,e),a.t=r.toString(),a.__complete=!1,a}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(e,t,r,a,i){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result",a+"_tint_1"),e.appendChild(n),(n=createNS("feColorMatrix")).setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",a+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var s=this.createMergeNode(a,[i,a+"_tint_1",a+"_tint_2"]);e.appendChild(s)}function SVGFillFilter(e,t,r,a){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",a),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,a){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.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"),e.appendChild(i);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),this.matrixFilter=n;var s=createNS("feFuncR");s.setAttribute("type","table"),n.appendChild(s),this.feFuncR=s;var o=createNS("feFuncG");o.setAttribute("type","table"),n.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),n.appendChild(l),this.feFuncB=l,e.appendChild(n)}function SVGProLevelsFilter(e,t,r,a){this.filterManager=t;var i=this.filterManager.effectElements,n=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((n=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(e,t,r,a,i){var n=t.container.globalData.renderConfig.filterSize,s=t.data.fs||n;e.setAttribute("x",s.x||n.x),e.setAttribute("y",s.y||n.y),e.setAttribute("width",s.width||n.width),e.setAttribute("height",s.height||n.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",a+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",a+"_drop_shadow_1"),l.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=h,e.appendChild(h);var c=createNS("feComposite");c.setAttribute("in",a+"_drop_shadow_3"),c.setAttribute("in2",a+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(c);var d=this.createMergeNode(a,[a+"_drop_shadow_4",i]);e.appendChild(d)}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,a,i=createNS("feMerge");for(i.setAttribute("result",e),a=0;a<t.length;a+=1)(r=createNS("feMergeNode")).setAttribute("in",t[a]),i.appendChild(r),i.appendChild(r);return i}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+a+" 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,a,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(a=this.elem.maskManager.masksProperties.length,r=0):a=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<a;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),s=createElementID();n.setAttribute("id",s),n.setAttribute("mask-type","alpha"),n.appendChild(t),this.elem.globalData.defs.appendChild(n);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+s+")");i[0];)o.appendChild(i[0]);this.elem.layerElement.appendChild(o),this.masker=n,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,a,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],a=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&a.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var s=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=a.getTotalLength();n="0 0 0 "+l*s+" ";var h,c=l*(o-s),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(c/d);for(h=0;h<p;h+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*l+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,i=a[0]+" "+r[0]+" "+t[0],n=a[1]+" "+r[1]+" "+t[1],s=a[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",s)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,a,i){for(var n,s,o=0,l=Math.min(e,t),h=Math.max(e,t),c=Array.call(null,{length:256}),d=0,p=i-a,u=t-e;o<=256;)s=(n=o/256)<=l?u<0?i:a:n>=h?u<0?a:i:a+p*Math.pow((n-e)/u,1/r),c[d]=s,d+=1,o+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(a),n=r*Math.sin(a);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",a),e.appendChild(i),this.feGaussianBlur=i}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var a,i=r.children,n=0,s=i.length;n<s&&i[n]!==e.layerElement;)n+=1;n<=s-2&&(a=i[n+1]);var o=createNS("use");o.setAttribute("href","#"+t),a?r.insertBefore(o,a):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),a=createNS("mask");a.setAttribute("id",t.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(a);var n=createNS("symbol");n.setAttribute("id",r),this.replaceInParent(t,r),n.appendChild(t.layerElement),i.appendChild(n);var s=createNS("use");s.setAttribute("href","#"+r),a.appendChild(s),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,a=t.length;r<a;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+i);var n=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}},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),setExpressionsPlugin(Expressions),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.exports=factory())})(lottie$1,lottie$1.exports);var lottie=lottie$1.exports;function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}function _objectWithoutProperties(e,t){if(null==e)return{};var r,a,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray$1(e,t)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,i,n=[],s=!0,o=!1;try{for(r=r.call(e);!(s=(a=r.next()).done)&&(n.push(a.value),!t||n.length!==t);s=!0);}catch(e){o=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(o)throw i}}return n}}function _unsupportedIterableToArray$1(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray$1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray$1(e,t):void 0}}function _arrayLikeToArray$1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}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.")}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function(e,t){var r=e.animationData,a=e.loop,i=e.autoplay,n=e.initialSegment,s=e.onComplete,o=e.onLoopComplete,l=e.onEnterFrame,h=e.onSegmentStart,c=e.onConfigReady,d=e.onDataReady,p=e.onDataFailed,u=e.onLoadedImages,m=e.onDOMLoaded,f=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var g=_objectWithoutProperties(e,_excluded$1),y=_slicedToArray(useState(!1),2),b=y[0],v=y[1],x=useRef(),S=useRef(null);return useEffect((function(){var t=function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(S.current){null===(t=x.current)||void 0===t||t.destroy();var a=_objectSpread2(_objectSpread2(_objectSpread2({},e),r),{},{container:S.current});return x.current=lottie.loadAnimation(a),v(!!x.current),function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0}}}();return function(){return null==t?void 0:t()}}),[r,a]),useEffect((function(){x.current&&(x.current.autoplay=!!i)}),[i]),useEffect((function(){x.current&&(n?Array.isArray(n)&&n.length&&((x.current.currentRawFrame<n[0]||x.current.currentRawFrame>n[1])&&(x.current.currentRawFrame=n[0]),x.current.setSegment(n[0],n[1])):x.current.resetSegments(!0))}),[n]),useEffect((function(){var e=[{name:"complete",handler:s},{name:"loopComplete",handler:o},{name:"enterFrame",handler:l},{name:"segmentStart",handler:h},{name:"config_ready",handler:c},{name:"data_ready",handler:d},{name:"data_failed",handler:p},{name:"loaded_images",handler:u},{name:"DOMLoaded",handler:m},{name:"destroy",handler:f}].filter((function(e){return null!=e.handler}));if(e.length){var t=e.map((function(e){var t;return null===(t=x.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=x.current)||void 0===t||t.removeEventListener(e.name,e.handler)}}));return function(){t.forEach((function(e){return e()}))}}}),[s,o,l,h,c,d,p,u,m,f]),{View:React__default.createElement("div",_objectSpread2({style:t,ref:S},g)),play:function(){var e;null===(e=x.current)||void 0===e||e.play()},stop:function(){var e;null===(e=x.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=x.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=x.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var r;null===(r=x.current)||void 0===r||r.goToAndStop(e,t)},goToAndPlay:function(e,t){var r;null===(r=x.current)||void 0===r||r.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=x.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var r;null===(r=x.current)||void 0===r||r.playSegments(e,t)},setSubframe:function(e){var t;null===(t=x.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=x.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0},animationContainerRef:S,animationLoaded:b,animationItem:x.current}},v$1="4.10.1",fr$1=24,ip$1=0,op$1=72,w$1=250,h$1=250,nm$1="Comp 1",ddd$1=0,assets$1=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Capa de formas 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:24,s:[81.5,370.25,0],e:[445.5,199.25,0],to:[60.6666679382324,-28.5,0],ti:[-60.6666679382324,28.5,0]},{t:48}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[43,43,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[28,0],[34.935,-19.483],[31.619,18.821],[33,-14],[57,29],[0,0],[0,0],[0,0]],o:[[-28,0],[-52,29],[-42,-25],[-28.892,12.257],[-57,-29],[0,0],[0,0],[0,0]],v:[[367.75,-97],[277,-75],[155,-82],[35,-82],[-94,-82.326],[-200,-74],[-352.07,320.209],[499.162,354.093]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.9372549019607843,.2549019607843137,.23921568627450981,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{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:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:144,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Capa de formas 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:24,s:[-133,374,0],e:[231,203,0],to:[60.6666679382324,-28.5,0],ti:[-60.6666679382324,28.5,0]},{t:48}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[43,43,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[28,0],[34.935,-19.483],[31.619,18.821],[33,-14],[57,29],[0,0],[0,0],[0,0]],o:[[-28,0],[-52,29],[-42,-25],[-28.892,12.257],[-57,-29],[0,0],[0,0],[0,0]],v:[[367.75,-97],[277,-75],[155,-82],[35,-82],[-94,-82.326],[-200,-74],[-352.07,320.209],[499.162,354.093]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.9372549019607843,.2549019607843137,.23921568627450981,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{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:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:144,st:0,bm:0}]}],layers$1=[{ddd:0,ind:1,ty:4,nm:"Capa de formas 5",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:15,s:[100],e:[0]},{t:16}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:0,s:[124.375,-8.75,0],e:[199,156,0],to:[0,28.3333339691162,0],ti:[0,-28.9375,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:12,s:[124.375,97.5,0],e:[199,164.066,0],to:[0,4.54861259460449,0],ti:[0,-2.45892143249512,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:13,s:[124.375,102.54125,0],e:[199,166.125,0],to:[0,13.1843204498291,0],ti:[0,-1.72074222564697,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:14,s:[124.375,103.828125,0],e:[199,168.375,0],to:[0,2.04166674613953,0],ti:[0,-.04166666790843,0]},{t:15}],ix:2},a:{a:0,k:[-1,-182.375,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:0,s:[31.25,31.25,100],e:[31.25,58.75,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:12,s:[31.25,58.75,100],e:[43.75,27.083125,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:13,s:[43.75,27.083125,100],e:[65.16125000000001,20,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:14,s:[65.16125000000001,20,100],e:[132.5,11.25,100]},{t:15}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[.938,0],[0,-5.25],[-4.563,.125],[.108,4.624]],o:[[-.813,.125],[0,4.813],[4.563,-.125],[-.125,-5.375]],v:[[-1.344,-193.078],[-8.75,-180.5],[-1.063,-172.313],[6.938,-180.188]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{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:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:"Capa de formas 3",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:46,s:[0],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:47,s:[100],e:[100]},{t:48}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:47,s:[124.98749999999998,105.15625,0],e:[199.98,158.037,0],to:[0,-.20375619828701,0],ti:[0,17.58864402771,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:48,s:[124.98749999999998,98.77312500000001,0],e:[199.98,-10,0],to:[-28421709430404e-27,-50.4047393798828,0],ti:[0,1.17485654354095,0]},{t:53}],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:47,s:[-2.5,.625,100],e:[.9375,2.5,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:48,s:[.9375,2.5,100],e:[1.25,1.875,100]},{t:53}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"fl",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],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:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:9,ty:4,nm:"Capa de formas 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[124.375,158.125,0],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:0,k:[34.375,34.375,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:1,lj:1,ml:4,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],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:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:12,s:[50],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:24,s:[100],e:[50]},{t:48}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:12,s:[50],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:24,s:[0],e:[50]},{t:48}],ix:2},o:{a:0,k:180,ix:3},m:1,ix:2,nm:"Recortar trazados 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:10,ty:4,nm:"Capa de formas 1",td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[124.375,158.125,0],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:0,k:[31.25,31.25,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"fl",c:{a:0,k:[.913725490196,.347995563582,.03941561007,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],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:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:11,ty:0,nm:"Precomp. 1",tt:1,refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[125,125,0],ix:2},a:{a:0,k:[200,200,0],ix:1},s:{a:0,k:[62.5,62.5,100],ix:6}},ao:0,w:400,h:400,ip:0,op:144,st:0,bm:0}],animationData$1={v:v$1,fr:fr$1,ip:ip$1,op:op$1,w:w$1,h:h$1,nm:nm$1,ddd:ddd$1,assets:assets$1,layers:layers$1};const LottieSpinner=()=>{const e={animationData:animationData$1,loop:!0,autoplay:!0,style:{height:"200px",width:"200px"}},{View:t}=useLottie(e);return jsx(Fragment,{children:t})},LoadingSpinner=()=>jsx(Container$k,{children:jsx(LottieSpinner,{})}),Container$k=styled.div`
|
|
393
393
|
margin: 0 auto;
|
|
394
394
|
padding: 1rem 2rem 4rem;
|
|
395
395
|
`;var v="5.7.4",fr=120,ip=0,op=180,w=640,h=160,nm="Loading Orb",ddd=0,assets=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:75,s:[50]},{t:100,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:60,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:75,s:[150,150,100]},{t:100,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{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:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.109803922474,.46274510026,.835294127464,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],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:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_1",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:76,s:[50]},{t:101,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:61,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:76,s:[150,150,100]},{t:101,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{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:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.584313750267,.607843160629,.772549033165,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],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:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_2",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:59,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:74,s:[50]},{t:99,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:59,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:74,s:[150,150,100]},{t:99,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{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:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.341176480055,.662745118141,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],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:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_3",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:59,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:74,s:[50]},{t:99,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:59,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:74,s:[150,150,100]},{t:99,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{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:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.949019610882,.40000000596,.392156869173,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],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:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_4",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:59,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:74,s:[50]},{t:99,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:59,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:74,s:[150,150,100]},{t:99,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{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:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.937254905701,.254901975393,.239215686917,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],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:!1}],ip:0,op:240,st:0,bm:0}]}],layers=[{ddd:0,ind:1,ty:0,nm:"Orb 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[80,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:-1,op:181,st:-59,bm:0},{ddd:0,ind:2,ty:0,nm:"Orb 2",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[200,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:191,st:-49,bm:0},{ddd:0,ind:3,ty:0,nm:"Orb 3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[320,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:201,st:-39,bm:0},{ddd:0,ind:4,ty:0,nm:"Orb 4",refId:"comp_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[440,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:211,st:-29,bm:0},{ddd:0,ind:5,ty:0,nm:"Orb 5",refId:"comp_4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[560,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:221,st:-19,bm:0}],markers=[],animationData={v:v,fr:fr,ip:ip,op:op,w:w,h:h,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers};const LottieLoadingDots=()=>{const e={animationData:animationData,loop:!0,autoplay:!0,style:{height:"16px",width:"64px"}},{View:t}=useLottie(e);return jsx(Fragment,{children:t})},LoadingDots=()=>jsx(Container$j,{children:jsx(LottieLoadingDots,{})}),Container$j=styled.div`
|
|
@@ -466,7 +466,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
466
466
|
color: ${Color.Neutral[3]};
|
|
467
467
|
height: 1.2rem;
|
|
468
468
|
width: 1.2rem;
|
|
469
|
-
`,BoxContainer=({children:e,title:t,collapsible:r=!0,expanded:a=!1,callToActionComponent:i,displayState:n="default",className:s,subComponentTestIds:o,...l})=>{const[h,
|
|
469
|
+
`,BoxContainer=({children:e,title:t,collapsible:r=!0,expanded:a=!1,callToActionComponent:i,displayState:n="default",className:s,subComponentTestIds:o,...l})=>{const[h,c]=useState(!r||a),d=useResizeDetector(),p=d.ref,u=useSpring({height:h?d.height:0});return jsxs(Container$i,{className:s,"data-testid":l["data-testid"],children:[jsxs(Header,{"data-testid":"header",children:[jsxs(LabelText,{id:"title","data-testid":o?.title||"title",weight:"semibold",children:[t,(()=>{switch(n){case"error":case"warning":return jsx(LabelIcon$1,{$displayState:n,"data-testid":o?.displayStateIcon||`${n}-icon`,children:jsx(AlertIcon,{})});default:return null}})()]}),i&&jsx(CallToActionContainer,{$collapsible:r,"data-testid":"call-to-action-container",children:i}),r&&jsx(Handle,{onClick:()=>{c(!h)},type:"button","data-testid":o?.handle||"handle",children:jsx(HandleIconContainer,{$expanded:h,children:jsx(HandleIcon,{})})})]}),r?jsx(Expandable$1,{style:u,"data-testid":"expandable-container",children:jsx(ChildContainer$1,{ref:p,children:e})}):jsx(NonExpandable,{"data-testid":"non-expandable-container",children:jsx(ChildContainer$1,{children:e})})]})};var chevronRight={},ChevronRightIcon;Object.defineProperty(chevronRight,"__esModule",{value:!0});var e$a=require$$0;const r$2=e=>e$a.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:e$a.jsx("path",{d:"M5.979 17.562C5.757 17.34 5.646 17.0833 5.646 16.792C5.646 16.5 5.757 16.243 5.979 16.021L12 10L5.958 3.958C5.75 3.75 5.646 3.5 5.646 3.208C5.646 2.91667 5.757 2.66 5.979 2.438C6.18766 2.22933 6.44133 2.125 6.74 2.125C7.03866 2.125 7.292 2.22933 7.5 2.438L14.438 9.375C14.5347 9.47233 14.604 9.573 14.646 9.677C14.6873 9.781 14.708 9.88867 14.708 10C14.708 10.1113 14.6873 10.219 14.646 10.323C14.604 10.427 14.5347 10.5277 14.438 10.625L7.479 17.583C7.257 17.8057 7.00366 17.91 6.719 17.896C6.43433 17.882 6.18766 17.7707 5.979 17.562Z",fill:"currentColor"})});r$2.displayName="ChevronRightIcon",ChevronRightIcon=chevronRight.ChevronRightIcon=r$2;const Wrapper$e=styled.div`
|
|
470
470
|
position: relative;
|
|
471
471
|
width: 100%;
|
|
472
472
|
z-index: 1;
|
|
@@ -519,11 +519,11 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
519
519
|
margin: 0.25rem !important;
|
|
520
520
|
`,PreviousLink=styled(Text.Hyperlink.Small)`
|
|
521
521
|
margin: 0.25rem !important;
|
|
522
|
-
`,Breadcrumb=({links:e,fadeColor:t,fadePosition:r="both",itemStyle:a,id:i,...n})=>{const[s,o]=useState(!!r),[l,h]=useState("left"===r||"both"===r),[d
|
|
523
|
-
border-radius:
|
|
522
|
+
`,Breadcrumb=({links:e,fadeColor:t,fadePosition:r="both",itemStyle:a,id:i,...n})=>{const[s,o]=useState(!!r),[l,h]=useState("left"===r||"both"===r),[c,d]=useState("right"===r||"both"===r),p=useRef(null),u=useRef(null);useResizeDetector({onResize:useCallback((()=>{const t=u.current,r=p.current;t&&r&&e&&e.length>1&&window.innerWidth<=MediaWidths$1.tablet&&(t.scrollLeft=t.scrollWidth-r.offsetWidth)}),[e.length]),targetRef:p,refreshMode:"debounce",refreshRate:50});const m=()=>{if(s){o(window.innerWidth<MediaWidths$1.tablet);const e=u.current,t=p.current;e&&t&&e.scrollWidth>t.offsetWidth?(o(!0),h(e.scrollLeft>=1),d(e.scrollWidth-e.scrollLeft>t.offsetWidth)):o(!1)}};if(useEffect((()=>{const e=u.current;return m(),window.addEventListener("resize",m),e&&e.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),e&&e.removeEventListener("scroll",m)}}),[]),!e)return null;return jsxs(Wrapper$e,{ref:p,id:i||"breadcrumb",...n,children:[jsx("nav",{children:jsx(Content$4,{ref:u,children:e.map(((t,r)=>{let i;return t.children?(i=r!==e.length-1&&t.href?jsx(PreviousLink,{...t,weight:"semibold"}):jsx(CurrentLabel,{weight:"semibold",children:t.children}),jsxs(Item$1,{$styleProps:a,children:[i,r<e.length-1&&jsx(Caret,{})]},r)):null}))})}),s&&(()=>{let e;return e=Array.isArray(t)&&t.length>0?{left:t,right:t}:t||{left:void 0,right:void 0},jsxs(Fragment,{children:[l&&jsx(Fade$1,{$backgroundColor:e.left,$position:"left"}),c&&jsx(Fade$1,{$backgroundColor:e.right,$position:"right"})]})})()]})},StyledCard=styled.div`
|
|
523
|
+
border-radius: 0.5rem;
|
|
524
524
|
background: ${Color.Neutral[8]};
|
|
525
525
|
padding: 1rem 2rem;
|
|
526
|
-
box-shadow: 0
|
|
526
|
+
box-shadow: 0 0.125rem 0.5rem rgba(104, 104, 104, 0.25);
|
|
527
527
|
`,Card=({children:e,...t})=>{const r=t["data-testid"]||"card";return jsx(StyledCard,{...t,"data-testid":r,children:"string"==typeof e?jsx(Text.Body,{children:e}):e})};var tick={},TickIcon;Object.defineProperty(tick,"__esModule",{value:!0});var e$9=require$$0;const r$1=e=>e$9.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:e$9.jsx("path",{d:"M7.97897 14.646C7.86764 14.646 7.75997 14.625 7.65597 14.583C7.55197 14.5417 7.4513 14.4723 7.35397 14.375L3.83297 10.854C3.6663 10.6873 3.58664 10.4757 3.59397 10.219C3.60064 9.96167 3.6873 9.74967 3.85397 9.583C4.02064 9.41634 4.22897 9.333 4.47897 9.333C4.72897 9.333 4.9373 9.41634 5.10397 9.583L8.02097 12.5L14.917 5.604C15.0836 5.43734 15.2883 5.354 15.531 5.354C15.7743 5.354 15.9793 5.43734 16.146 5.604C16.3126 5.77067 16.396 5.97567 16.396 6.219C16.396 6.46167 16.3126 6.66634 16.146 6.833L8.60397 14.375C8.50664 14.4723 8.40597 14.5417 8.30197 14.583C8.19797 14.625 8.0903 14.646 7.97897 14.646Z",fill:"currentColor"})});r$1.displayName="TickIcon",TickIcon=tick.TickIcon=r$1;const Container$h=styled.div`
|
|
528
528
|
display: flex;
|
|
529
529
|
justify-content: center;
|
|
@@ -553,7 +553,11 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
553
553
|
width: ${t};
|
|
554
554
|
`}}
|
|
555
555
|
color: ${e=>e.disabled?Color.Neutral[4]:Color.Neutral[8]};
|
|
556
|
-
`,Checkbox=({className:e,checked:t,disabled:r,onChange:a,onKeyPress:i,displaySize:n="default",...s})=>{const[o,l]=useState(t);useEffect((()=>{l(t)}),[t]);const h=e=>{if(!r){const t=e;if(!(" "===t.key||"change"===e.type))return;a&&a(e),i&&i(t)}};return jsxs(Container$h,{selected:o,disabled:r,className:e,"data-testid":"checkbox",$displaySize:n,role:"checkbox","aria-checked":o,"aria-labelledby":"checkbox-input",tabIndex:r?-1:0,onKeyDown:h,children:[jsx(Input$4,{id:"checkbox-input","data-testid":"checkbox-input","aria-hidden":"true",type:"checkbox",tabIndex:-1,onChange:h,disabled:r,checked:o,...s}),o&&jsx(Checkmark$1,{id:"checkmark","data-testid":"checkmark",disabled:r,$displaySize:n})]})},MONTHS_WITH_31_DAYS=[1,3,5,7,8,10,12],MONTHS_WITH_30_DAYS=[4,6,9,11];var DateHelper,StringHelper;!function(e){e.clampDay=(t,r,a)=>{const i=parseInt(t),n=parseInt(r),s=parseInt(a);return 0==i?"1":MONTHS_WITH_31_DAYS.includes(n)?Math.min(i,31).toString():MONTHS_WITH_30_DAYS.includes(n)?Math.min(i,30).toString():2===n?e.isLeapYear(s)?Math.min(i,29).toString():Math.min(i,28).toString():t},e.clampMonth=e=>{const t=parseInt(e);return 0==t?"1":t>12?"12":e},e.isLeapYear=e=>e%4==0&&e%100!=0||e%400==0}(DateHelper||(DateHelper={})),function(e){e.transformWithSpaces=(e,t)=>{const r="(.{"+t+"})";return e.replace(/[^\dA-Z]/gi,"").replace(new RegExp(r,"g"),"$1 ").trim()},e.padValue=(e,t)=>{if("0"===e)return t?e:e.padStart(2,"0");if(""===e)return e;return parseInt(e).toString().padStart(2,"0")},e.shouldTruncateToTwoLines=(e,t)=>{const r=Math.floor(t/9);return e.length>=2*r||1===e.split(" ").length&&e.length>r},e.truncateOneLine=(e,t,r,a)=>{let i=0;t>r&&(i=Math.floor((t-r)/8));const n=a+i;if(n<e.length){const t=Math.floor(n/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(StringHelper||(StringHelper={}));const
|
|
556
|
+
`,Checkbox=({className:e,checked:t,disabled:r,onChange:a,onKeyPress:i,displaySize:n="default",...s})=>{const[o,l]=useState(t);useEffect((()=>{l(t)}),[t]);const h=e=>{if(!r){const t=e;if(!(" "===t.key||"change"===e.type))return;a&&a(e),i&&i(t)}};return jsxs(Container$h,{selected:o,disabled:r,className:e,"data-testid":"checkbox",$displaySize:n,role:"checkbox","aria-checked":o,"aria-labelledby":"checkbox-input",tabIndex:r?-1:0,onKeyDown:h,children:[jsx(Input$4,{id:"checkbox-input","data-testid":"checkbox-input","aria-hidden":"true",type:"checkbox",tabIndex:-1,onChange:h,disabled:r,checked:o,...s}),o&&jsx(Checkmark$1,{id:"checkmark","data-testid":"checkmark",disabled:r,$displaySize:n})]})},MONTHS_WITH_31_DAYS=[1,3,5,7,8,10,12],MONTHS_WITH_30_DAYS=[4,6,9,11];var DateHelper,StringHelper;!function(e){e.clampDay=(t,r,a)=>{const i=parseInt(t),n=parseInt(r),s=parseInt(a);return 0==i?"1":MONTHS_WITH_31_DAYS.includes(n)?Math.min(i,31).toString():MONTHS_WITH_30_DAYS.includes(n)?Math.min(i,30).toString():2===n?e.isLeapYear(s)?Math.min(i,29).toString():Math.min(i,28).toString():t},e.clampMonth=e=>{const t=parseInt(e);return 0==t?"1":t>12?"12":e},e.isLeapYear=e=>e%4==0&&e%100!=0||e%400==0}(DateHelper||(DateHelper={})),function(e){e.transformWithSpaces=(e,t)=>{const r="(.{"+t+"})";return e.replace(/[^\dA-Z]/gi,"").replace(new RegExp(r,"g"),"$1 ").trim()},e.padValue=(e,t)=>{if("0"===e)return t?e:e.padStart(2,"0");if(""===e)return e;return parseInt(e).toString().padStart(2,"0")},e.shouldTruncateToTwoLines=(e,t)=>{const r=Math.floor(t/9);return e.length>=2*r||1===e.split(" ").length&&e.length>r},e.truncateOneLine=(e,t,r,a)=>{let i=0;t>r&&(i=Math.floor((t-r)/8));const n=a+i;if(n<e.length){const t=Math.floor(n/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(StringHelper||(StringHelper={}));const BaseDesignTokenSet={InputBoxShadow:css`
|
|
557
|
+
inset 0 0 6px 1px ${Color.Shadow.Accent}
|
|
558
|
+
`,InputErrorBoxShadow:css`
|
|
559
|
+
inset 0 0 6px 1px ${Color.Shadow.Red}
|
|
560
|
+
`},DesignTokenSpec={collections:{base:BaseDesignTokenSet},defaultValue:"base"},getThemeDesignToken=e=>t=>{const r=t.theme,a=getCollection(DesignTokenSpec,r[ThemeContextKeys.designTokenScheme]);return r.options?.designToken?getValue(a,e,r.options.designToken):getValue(a,e)},DesignToken={InputBoxShadow:getThemeDesignToken("InputBoxShadow"),InputErrorBoxShadow:getThemeDesignToken("InputErrorBoxShadow")},Container$g=styled.div`
|
|
557
561
|
display: flex;
|
|
558
562
|
position: relative;
|
|
559
563
|
align-items: center;
|
|
@@ -567,7 +571,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
567
571
|
:focus,
|
|
568
572
|
:focus-within {
|
|
569
573
|
border: 1px solid ${Color.Accent.Light[1]};
|
|
570
|
-
box-shadow:
|
|
574
|
+
box-shadow: ${DesignToken.InputBoxShadow};
|
|
571
575
|
}
|
|
572
576
|
|
|
573
577
|
${e=>e.$readOnly?css`
|
|
@@ -594,7 +598,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
594
598
|
|
|
595
599
|
:focus-within {
|
|
596
600
|
border: 1px solid ${Color.Validation.Red.Border(e)};
|
|
597
|
-
box-shadow:
|
|
601
|
+
box-shadow: ${DesignToken.InputErrorBoxShadow};
|
|
598
602
|
}
|
|
599
603
|
`:void 0}
|
|
600
604
|
`,InputContainer$2=styled.div`
|
|
@@ -647,7 +651,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
647
651
|
${e=>{if(e.$compress)return css`
|
|
648
652
|
margin: 0.1rem 0.1rem 0 0.1rem;
|
|
649
653
|
`}}
|
|
650
|
-
`;const DateInput=({disabled:e,error:t,value:r,onChange:a,onBlur:i,onChangeRaw:n,onBlurRaw:s,readOnly:o,id:l,...h})=>{const[d
|
|
654
|
+
`;const DateInput=({disabled:e,error:t,value:r,onChange:a,onBlur:i,onChangeRaw:n,onBlurRaw:s,readOnly:o,id:l,...h})=>{const[c,d]=useState(""),[p,u]=useState(""),[m,f]=useState(""),[g,y]=useState("none"),b=useRef(null),v=useRef(null),x=useRef(null),S=useRef(null),C=useRef(c),_=useRef(p),T=useRef(m),$=useRef(g),w=e=>{C.current=e,d(e)},E=e=>{_.current=e,u(e)},k=e=>{T.current=e,f(e)},A=e=>{$.current=e,y(e)};useEffect((()=>(document.addEventListener("mousedown",P),b.current&&b.current.addEventListener("keydown",I),()=>{document.removeEventListener("mousedown",P),b.current&&b.current.removeEventListener("keydown",I)})),[g]),useEffect((()=>{"day"===g&&2===c.length&&x.current&&x.current.focus()}),[c]),useEffect((()=>{"month"===g&&2===p.length&&S.current&&S.current.focus()}),[p]),useEffect((()=>{L(r)}),[r]);const P=t=>{e||o||b&&b.current.contains(t.target)||"none"!==$.current&&(A("none"),B())},I=e=>{"year"===e.target.name&&"Tab"===e.code&&(A("none"),B())},M=e=>{A(e.target.name),e.target.select()},D=e=>{const t=e.target.name,r=StringHelper.padValue(e.target.value,!0);switch(t){case"day":w(r);break;case"month":E(r)}const a=c.length&&p.length&&4===m.length,i="day"===t,n=DateHelper.clampMonth(p);a&&(w(StringHelper.padValue(DateHelper.clampDay(i?r:c,n,m))),E(StringHelper.padValue(n)))},F=e=>{const t=e.target.name,r=e.target.value.replace(/[^0-9]/g,"");switch(t){case"day":w(r),O(r,t);break;case"month":E(r),O(r,t);break;case"year":k(r),O(r,t)}},R=e=>{"Backspace"!==e.code&&"Backspace"!==e.key||("month"===g&&0===p.length&&v.current.focus(),"year"===g&&0===m.length&&x.current.focus())},L=e=>{if(void 0===e||""===e)w(""),E(""),k("");else{const t=new Date(e);if(!isNaN(t.getTime())){const e=(t.getMonth()+1).toString(),r=t.getFullYear().toString(),a=DateHelper.clampDay(t.getDate().toString(),e,r);w(StringHelper.padValue(a)),E(StringHelper.padValue(e)),k(r)}}},O=(e,t)=>{if(a){const r={day:c,month:p,year:m};r[t]=e;const i=j(r);a(i)}if(n){const r=[..."day"===t?[StringHelper.padValue(e)]:[c],..."month"===t?[StringHelper.padValue(e)]:[p],..."year"===t?[e]:[m]];n(r)}},B=()=>{if(i){const e={day:C.current,month:_.current,year:T.current},t=j(e);i(t)}if(s){const e=[StringHelper.padValue(C.current.toString()),StringHelper.padValue(_.current.toString()),T.current];s(e)}},j=e=>{const t=[e.year,e.month,e.day];return e.day.length>=1&&e.month.length>=1&&4===e.year.length?t.join("-"):t.every((e=>""===e))?"":INVALID_VALUE$1};return jsx(Container$g,{ref:b,onClick:()=>{"none"===g&&v.current&&v.current.focus()},disabled:e,$error:t,id:l,"data-testid":h["data-testid"],$readOnly:o,children:jsxs(InputContainer$2,{$readOnly:o,children:[jsx(BaseInput,{name:"day",maxLength:2,value:c,ref:v,onFocus:M,onBlur:D,onChange:F,disabled:e,type:"text",inputMode:"numeric",pattern:"[0-9]{2}","data-testid":"day-input","aria-label":"day-input",readOnly:o,placeholder:"day"!==g||o?"DD":""}),jsx(Divider$2,{$hide:0===c.length,children:"/"}),jsx(MonthInput,{name:"month",maxLength:2,value:p,ref:x,onFocus:M,onBlur:D,onChange:F,onKeyDown:R,disabled:e,type:"text",inputMode:"numeric",pattern:"[0-9]{2}","data-testid":"month-input","aria-label":"month-input",readOnly:o,placeholder:"month"!==g||o?"MM":""}),jsx(Divider$2,{$hide:0===p.length,children:"/"}),jsx(YearInput,{name:"year",maxLength:4,value:m,ref:S,onFocus:M,onBlur:D,onChange:F,onKeyDown:R,disabled:e,type:"text",inputMode:"numeric",pattern:"[0-9]{4}","data-testid":"year-input","aria-label":"year-input",readOnly:o,placeholder:"year"!==g||o?"YYYY":""})]})})},INVALID_VALUE$1="Invalid date",ImgPaths={400:{base:"https://assets.life.gov.sg/react-design-system/img/error/400.png",md:"https://assets.life.gov.sg/react-design-system/img/error/400@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/400@3x.png"},403:{base:"https://assets.life.gov.sg/react-design-system/img/error/403.png",md:"https://assets.life.gov.sg/react-design-system/img/error/403@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/403@3x.png"},404:{base:"https://assets.life.gov.sg/react-design-system/img/error/404.png",md:"https://assets.life.gov.sg/react-design-system/img/error/404@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/404@3x.png"},500:{base:"https://assets.life.gov.sg/react-design-system/img/error/generic-error.png",md:"https://assets.life.gov.sg/react-design-system/img/error/generic-error@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/generic-error@3x.png"},503:{base:"https://assets.life.gov.sg/react-design-system/img/error/503.png",md:"https://assets.life.gov.sg/react-design-system/img/error/503@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/503@3x.png"},"unsupported-browser":{base:"https://assets.life.gov.sg/react-design-system/img/error/generic-error.png",md:"https://assets.life.gov.sg/react-design-system/img/error/generic-error@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/generic-error@3x.png"}},oldImgAttributeHelper=e=>{const{base:t,md:r,lg:a}=e;return{srcSet:`${t} 416w, ${r} 832w, ${a} 1248w`,src:a,sizes:`(max-width: ${MediaWidths$1.mobileL}px) 416px, (max-width: ${MediaWidths$1.tablet}px) 832px, 1248px`}},imgAttributeHelper=e=>{const{base:t,md:r,lg:a}=e;return{srcSet:`${t} 400w, ${r} 800w, ${a} 1200w`,src:a,sizes:`(max-width: ${MediaWidths$1.mobileL}px) 400px, (max-width: ${MediaWidths$1.tablet}px) 800px, 1200px`}},ERROR_DISPLAY_DATA=new Map([["400",{img:oldImgAttributeHelper(ImgPaths[400]),title:"Something went wrong",description:jsxs(Fragment,{children:["Please refresh the page or try again later. If it’s still not working, email"," ",jsx("a",{href:"mailto:helpdesk@life.gov.sg",children:"helpdesk@life.gov.sg"})," ","and let us know you received a HTTP 400 error."]})}],["403",{img:oldImgAttributeHelper(ImgPaths[403]),title:"Error loading page",description:jsxs(Fragment,{children:["You may not have permission to view this page. If you believe this is a mistake, email"," ",jsx("a",{href:"mailto:helpdesk@life.gov.sg",children:"helpdesk@life.gov.sg"}),"."]})}],["404",{img:oldImgAttributeHelper(ImgPaths[404]),title:"Page not found",description:jsxs(Fragment,{children:["If you entered or pasted the URL, check that it’s correct. If you followed a link on LifeSG, email"," ",jsx("a",{href:"mailto:helpdesk@life.gov.sg",children:"helpdesk@life.gov.sg"})," ","to let us know."]})}],["408",{img:oldImgAttributeHelper(ImgPaths[400]),title:"Something went wrong",description:jsxs(Fragment,{children:["Please refresh the page or try again later. If it’s still not working, email"," ",jsx("a",{href:"mailto:helpdesk@life.gov.sg",children:"helpdesk@life.gov.sg"})," ","and let us know you received a HTTP 408 error."]})}],["500",{img:imgAttributeHelper(ImgPaths[500]),title:"Something went wrong",description:jsxs(Fragment,{children:["Please try again later. If it’s still not working, email"," ",jsx("a",{href:"mailto:helpdesk@life.gov.sg","data-testid":"link--helpdesk",children:"helpdesk@life.gov.sg"})," and let us know you received a HTTP 500 error. Do include a screenshot of this page in your email."]}),renderDescription:e=>jsxs(Fragment,{children:["Please try again later. If it’s still not working, email"," ",jsx("a",{href:"mailto:helpdesk@life.gov.sg","data-testid":"link--helpdesk",children:"helpdesk@life.gov.sg"})," and let us know you received a HTTP 500 error. Do include a screenshot of this page or this reference ID in your email: ",jsx("strong",{children:e.referenceId}),"."]})}],["503",{img:oldImgAttributeHelper(ImgPaths[503]),title:"Service under maintenance",description:"This service is currently unavailable. Please try again later."}],["maintenance",{img:oldImgAttributeHelper(ImgPaths[503]),title:"Service under maintenance",description:"This service is currently unavailable. Please try again later.",renderDescription:e=>jsxs(Fragment,{children:["This service is currently unavailable. Please try again after ",jsx("strong",{children:e.dateString}),"."]})}],["unsupported-browser",{img:imgAttributeHelper(ImgPaths["unsupported-browser"]),title:"Browser not supported",description:"To use LifeSG, download the latest version of Chrome, Edge, Firefox or Safari."}],["partially-supported-browser",{img:imgAttributeHelper(ImgPaths["unsupported-browser"]),title:"Browser not supported",description:"LifeSG works best with the latest version of Chrome, Edge, Firefox or Safari. If you continue with your browser, you may run into problems."}]]),Container$f=styled.div`
|
|
651
655
|
display: flex;
|
|
652
656
|
flex-direction: column;
|
|
653
657
|
align-items: center;
|
|
@@ -655,7 +659,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
655
659
|
position: relative;
|
|
656
660
|
`,Img=styled.img`
|
|
657
661
|
position: relative;
|
|
658
|
-
width:
|
|
662
|
+
width: 25rem;
|
|
659
663
|
height: auto;
|
|
660
664
|
|
|
661
665
|
${MediaQuery.MaxWidth.mobileL} {
|
|
@@ -704,7 +708,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
704
708
|
${MediaQuery.MaxWidth.mobileL} {
|
|
705
709
|
width: 100%;
|
|
706
710
|
}
|
|
707
|
-
`,ErrorDisplay=({type:e,img:t,title:r,description:a,actionButton:i,additionalProps:n,...s})=>{const o=ERROR_DISPLAY_DATA.get(e),l=s["data-testid"]||"error-display",h=()=>{switch(e){case"maintenance":{const e=n;return n&&e.dateString?o.renderDescription(e):a||void 0}case"500":{const e=n;return n&&e.referenceId?o.renderDescription(e):a||void 0}default:return a||void 0}};if(!o)return null;const
|
|
711
|
+
`,ErrorDisplay=({type:e,img:t,title:r,description:a,actionButton:i,additionalProps:n,...s})=>{const o=ERROR_DISPLAY_DATA.get(e),l=s["data-testid"]||"error-display",h=()=>{switch(e){case"maintenance":{const e=n;return n&&e.dateString?o.renderDescription(e):a||void 0}case"500":{const e=n;return n&&e.referenceId?o.renderDescription(e):a||void 0}default:return a||void 0}};if(!o)return null;const c={...o,...t&&{img:t},...r&&{title:r},...h()&&{description:h()}};return jsxs(Container$f,{...s,"data-testid":l,children:[jsx(Img,{...c.img,alt:""}),jsxs(TextContainer$2,{children:[jsx(Title$1,{"data-testid":`${l}--title`,children:c.title}),jsx(DescriptionContainer,{"data-testid":`${l}--description`,children:"string"==typeof c.description?jsx("p",{children:c.description}):c.description})]}),i&&(()=>{const e={children:"Proceed",...i};return jsx(ActionButton$1,{...e})})()]})},FeedbackRatingData={IMG:"https://assets.life.gov.sg/react-design-system/img/feedback-rating/feedback-rating-banner.png",DEFAULT_BUTTON_LABEL:"Submit",DEFAULT_DESCRIPTION:"Rate your experience"},Image$1=styled.img`
|
|
708
712
|
width: 9.5rem;
|
|
709
713
|
height: 9.5rem;
|
|
710
714
|
margin: 0 1rem;
|
|
@@ -804,7 +808,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
804
808
|
object-fit: contain;
|
|
805
809
|
}
|
|
806
810
|
}
|
|
807
|
-
`,APP_STORE_ICON$1="https://assets.life.gov.sg/react-design-system/img/download/apple-app-store.png",PLAY_STORE_ICON$1="https://assets.life.gov.sg/react-design-system/img/download/google-play-store.png",DownloadApp=()=>jsxs(Wrapper$d,{"data-testid":"download-app-section",children:[jsx(Label$3,{weight:"semibold",children:"Download the app"}),jsxs(Items,{children:[jsx(AppStoreLink,{href:"https://apps.apple.com/sg/app/moments-of-life/id1383218758",target:"_blank",rel:"noopener noreferrer",id:"footer-download-app-apple",children:jsx("img",{src:APP_STORE_ICON$1,alt:"apple-app-store"})}),jsx(AppStoreLink,{href:"https://play.google.com/store/apps/details?id=sg.gov.app.mol&hl=en_SG",target:"_blank",rel:"noopener noreferrer",id:"footer-download-app-android",children:jsx("img",{src:PLAY_STORE_ICON$1,alt:"google-play-store"})})]})]});var dayjs_min={exports:{}};dayjs_min.exports=function(){var e=1e3,t=6e4,r=36e5,a="millisecond",i="second",n="minute",s="hour",o="day",l="week",h="month",
|
|
811
|
+
`,APP_STORE_ICON$1="https://assets.life.gov.sg/react-design-system/img/download/apple-app-store.png",PLAY_STORE_ICON$1="https://assets.life.gov.sg/react-design-system/img/download/google-play-store.png",DownloadApp=()=>jsxs(Wrapper$d,{"data-testid":"download-app-section",children:[jsx(Label$3,{weight:"semibold",children:"Download the app"}),jsxs(Items,{children:[jsx(AppStoreLink,{href:"https://apps.apple.com/sg/app/moments-of-life/id1383218758",target:"_blank",rel:"noopener noreferrer",id:"footer-download-app-apple",children:jsx("img",{src:APP_STORE_ICON$1,alt:"apple-app-store"})}),jsx(AppStoreLink,{href:"https://play.google.com/store/apps/details?id=sg.gov.app.mol&hl=en_SG",target:"_blank",rel:"noopener noreferrer",id:"footer-download-app-android",children:jsx("img",{src:PLAY_STORE_ICON$1,alt:"google-play-store"})})]})]});var dayjs_min={exports:{}};dayjs_min.exports=function(){var e=1e3,t=6e4,r=36e5,a="millisecond",i="second",n="minute",s="hour",o="day",l="week",h="month",c="quarter",d="year",p="date",u="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},y=function(e,t,r){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(r)+e},b={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),a=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+y(a,2,"0")+":"+y(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var a=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(a,h),n=r-i<0,s=t.clone().add(a+(n?-1:1),h);return+(-(a+(r-i)/(n?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:h,y:d,w:l,d:o,D:p,h:s,m:n,s:i,ms:a,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",x={};x[v]=g;var S=function(e){return e instanceof $},C=function e(t,r,a){var i;if(!t)return v;if("string"==typeof t){var n=t.toLowerCase();x[n]&&(i=n),r&&(x[n]=r,i=n);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;x[o]=t,i=o}return!a&&i&&(v=i),i||!a&&v},_=function(e,t){if(S(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new $(r)},T=b;T.l=C,T.i=S,T.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var $=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e)}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(m);if(a){var i=a[2]-1||0,n=(a[7]||"0").substring(0,3);return r?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return T},y.isValid=function(){return!(this.$d.toString()===u)},y.isSame=function(e,t){var r=_(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return _(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<_(e)},y.$g=function(e,t,r){return T.u(e)?this[t]:this.set(r,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var r=this,a=!!T.u(t)||t,c=T.p(e),u=function(e,t){var i=T.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return a?i:i.endOf(o)},m=function(e,t){return T.w(r.toDate()[e].apply(r.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},f=this.$W,g=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(c){case d:return a?u(1,0):u(31,11);case h:return a?u(1,g):u(0,g+1);case l:var v=this.$locale().weekStart||0,x=(f<v?f+7:f)-v;return u(a?y-x:y+(6-x),g);case o:case p:return m(b+"Hours",0);case s:return m(b+"Minutes",1);case n:return m(b+"Seconds",2);case i:return m(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var r,l=T.p(e),c="set"+(this.$u?"UTC":""),u=(r={},r[o]=c+"Date",r[p]=c+"Date",r[h]=c+"Month",r[d]=c+"FullYear",r[s]=c+"Hours",r[n]=c+"Minutes",r[i]=c+"Seconds",r[a]=c+"Milliseconds",r)[l],m=l===o?this.$D+(t-this.$W):t;if(l===h||l===d){var f=this.clone().set(p,1);f.$d[u](m),f.init(),this.$d=f.set(p,Math.min(this.$D,f.daysInMonth())).$d}else u&&this.$d[u](m);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[T.p(e)]()},y.add=function(a,c){var p,u=this;a=Number(a);var m=T.p(c),f=function(e){var t=_(u);return T.w(t.date(t.date()+Math.round(e*a)),u)};if(m===h)return this.set(h,this.$M+a);if(m===d)return this.set(d,this.$y+a);if(m===o)return f(1);if(m===l)return f(7);var g=(p={},p[n]=t,p[s]=r,p[i]=e,p)[m]||1,y=this.$d.getTime()+a*g;return T.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var a=e||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),n=this.$H,s=this.$m,o=this.$M,l=r.weekdays,h=r.months,c=function(e,r,i,n){return e&&(e[r]||e(t,a))||i[r].slice(0,n)},d=function(e){return T.s(n%12||12,e,"0")},p=r.meridiem||function(e,t,r){var a=e<12?"AM":"PM";return r?a.toLowerCase():a},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:T.s(o+1,2,"0"),MMM:c(r.monthsShort,o,h,3),MMMM:c(h,o),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:c(r.weekdaysMin,this.$W,l,2),ddd:c(r.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(n),HH:T.s(n,2,"0"),h:d(1),hh:d(2),a:p(n,s,!0),A:p(n,s,!1),m:String(s),mm:T.s(s,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:i};return a.replace(f,(function(e,t){return t||m[e]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(a,p,u){var m,f=T.p(p),g=_(a),y=(g.utcOffset()-this.utcOffset())*t,b=this-g,v=T.m(this,g);return v=(m={},m[d]=v/12,m[h]=v,m[c]=v/3,m[l]=(b-y)/6048e5,m[o]=(b-y)/864e5,m[s]=b/r,m[n]=b/t,m[i]=b/e,m)[f]||b,u?v:T.a(v)},y.daysInMonth=function(){return this.endOf(h).$D},y.$locale=function(){return x[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),a=C(e,t,!0);return a&&(r.$L=a),r},y.clone=function(){return T.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),w=$.prototype;return _.prototype=w,[["$ms",a],["$s",i],["$m",n],["$H",s],["$W",o],["$M",h],["$y",d],["$D",p]].forEach((function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,$,_),e.$i=!0),_},_.locale=C,_.isDayjs=S,_.unix=function(e){return _(1e3*e)},_.en=x[v],_.Ls=x,_.p={},_}();var dayjs=dayjs_min.exports,FooterHelper;!function(e){e.getCopyrightInfo=(e=new Date)=>`${`${(new Date).getFullYear()} LifeSG, Government of Singapore.`} Last Updated ${dayjs(e).format("D MMMM YYYY")}`,e.getDisclaimerLinks=e=>({privacy:{href:"https://www.life.gov.sg/privacy-statement",target:"_blank",rel:"noopener",...e&&e.privacy?e.privacy:{},children:"Privacy Statement"},termsOfUse:{href:"https://www.life.gov.sg/terms-of-use",target:"_blank",rel:"noopener",...e&&e.termsOfUse?e.termsOfUse:{},children:"Terms of Use"},reportVulnerability:{href:"https://tech.gov.sg/report_vulnerability",target:"_blank",rel:"noopener",external:!0,...e&&e.reportVulnerability?e.reportVulnerability:{},children:"Report Vulnerability"}})}(FooterHelper||(FooterHelper={}));const Component$9=(e,t)=>{const{children:r,"data-testid":a="container",type:i="flex",...n}=e;return jsx(StyledContainer,{ref:t,"data-testid":a,type:i,...n,children:r})},Container$d=React__default.forwardRef(Component$9),StyledContainer=styled.div`
|
|
808
812
|
flex-grow: 1;
|
|
809
813
|
margin: 0 auto;
|
|
810
814
|
position: relative;
|
|
@@ -1017,7 +1021,7 @@ import require$$0,{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React fro
|
|
|
1017
1021
|
`,LIFESG_LOGO_SRC="https://assets.life.gov.sg/react-design-system/img/logo/lifesg-primary-logo.svg",Footer=({children:e,links:t,lastUpdated:r,disclaimerLinks:a,showDownloadAddon:i,logoSrc:n,copyrightInfo:s,onFooterLinkClick:o})=>{const l=e=>e.map(((e,t)=>{const{"data-options":r,...a}=e;return jsx("li",{children:jsx(StyledFooterLink,{...a,onClick:t=>((e,t)=>{t.onClick?(e.preventDefault(),t.onClick(e)):o&&(e.preventDefault(),o(t))})(t,e)})},t)}));return jsxs(BaseFooter,{children:[(()=>{let r=null;return e||((t||i)&&(r=jsxs(Fragment,{children:[jsx(LogoSection,{"data-testid":"logo-section",children:jsx("img",{src:n||LIFESG_LOGO_SRC,alt:"LifeSG","data-testid":"logo"})}),t?.[0]&&jsx(LinkSection,{"data-testid":"link-col-1",children:l(t[0])},"link-col-1"),t?.[1]&&jsx(LinkSection,{"data-testid":"link-col-2",children:l(t[1])},"link-col-2"),i&&jsx(AddonSection,{children:jsx(DownloadApp,{})})]})),r?jsx(TopSection,{type:"grid",children:r}):null)})(),jsx(MobileOnlyBorder,{}),jsxs(BottomSection,{type:"grid",children:[jsx(BottomSectionContent,{children:(()=>{const e=FooterHelper.getDisclaimerLinks(a);return Object.keys(e).map((t=>jsx(DisclaimerTextLink,{...e[t]},t)))})()},"disclaimer"),jsx(CopyrightSection,{children:jsx(Text.XSmall,{"data-testid":"copyright-text",children:s||jsxs(Fragment,{children:["©"," ",FooterHelper.getCopyrightInfo(r)]})})},"copyright")]})]})};var iCircleFill={},ICircleFillIcon;Object.defineProperty(iCircleFill,"__esModule",{value:!0});var e$6=require$$0;const C$5=e=>e$6.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:e$6.jsx("path",{d:"M10.0049 1.67001C5.40195 1.67001 1.66992 5.40339 1.66992 10.005C1.66992 14.6093 5.40195 18.34 10.0049 18.34C14.6079 18.34 18.3399 14.6093 18.3399 10.005C18.3399 5.40339 14.6079 1.67001 10.0049 1.67001ZM10.0049 5.36699C10.7845 5.36699 11.4165 5.99897 11.4165 6.77856C11.4165 7.55815 10.7845 8.19013 10.0049 8.19013C9.22533 8.19013 8.59335 7.55815 8.59335 6.77856C8.59335 5.99897 9.22533 5.36699 10.0049 5.36699ZM11.887 13.9036C11.887 14.1264 11.7064 14.3069 11.4837 14.3069H8.52613C8.30341 14.3069 8.12283 14.1264 8.12283 13.9036V13.097C8.12283 12.8743 8.30341 12.6937 8.52613 12.6937H8.92944V10.5428H8.52613C8.30341 10.5428 8.12283 10.3622 8.12283 10.1394V9.33284C8.12283 9.11011 8.30341 8.92953 8.52613 8.92953H10.6771C10.8998 8.92953 11.0804 9.11011 11.0804 9.33284V12.6937H11.4837C11.7064 12.6937 11.887 12.8743 11.887 13.097V13.9036Z",fill:"currentColor"})});C$5.displayName="ICircleFillIcon",ICircleFillIcon=iCircleFill.ICircleFillIcon=C$5;var reactResponsive={exports:{}},factory;factory=e=>(()=>{var t={"./node_modules/css-mediaquery/index.js":
|
|
1018
1022
|
/*!**********************************************!*\
|
|
1019
1023
|
!*** ./node_modules/css-mediaquery/index.js ***!
|
|
1020
|
-
\**********************************************/(e,t)=>{t.match=function(e,t){return o(e).some((function(e){var r=e.inverse,a="all"===e.type||t.type===e.type;if(a&&r||!a&&!r)return!1;var i=e.expressions.every((function(e){var r=e.feature,a=e.modifier,i=e.value,n=t[r];if(!n)return!1;switch(r){case"orientation":case"scan":return n.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=
|
|
1024
|
+
\**********************************************/(e,t)=>{t.match=function(e,t){return o(e).some((function(e){var r=e.inverse,a="all"===e.type||t.type===e.type;if(a&&r||!a&&!r)return!1;var i=e.expressions.every((function(e){var r=e.feature,a=e.modifier,i=e.value,n=t[r];if(!n)return!1;switch(r){case"orientation":case"scan":return n.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=c(i),n=c(n);break;case"resolution":i=h(i),n=h(n);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=l(i),n=l(n);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,n=parseInt(n,10)||0}switch(a){case"min":return n>=i;case"max":return n<=i;default:return n===i}}));return i&&!r||!i&&r}))},t.parse=o;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,a=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,n=/(em|rem|px|cm|mm|in|pt|pc)?$/,s=/(dpi|dpcm|dppx)?$/;function o(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],s=t[2],o=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=s?s.toLowerCase():"all",o=o.match(/\([^\)]+\)/g)||[],l.expressions=o.map((function(e){var t=e.match(a),r=t[1].toLowerCase().match(i);return{modifier:r[1],feature:r[2],value:t[2]}})),l}))}function l(e){var t,r=Number(e);return r||(r=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),r}function h(e){var t=parseFloat(e);switch(String(e).match(s)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function c(e){var t=parseFloat(e);switch(String(e).match(n)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},"./node_modules/hyphenate-style-name/index.js":
|
|
1021
1025
|
/*!****************************************************!*\
|
|
1022
1026
|
!*** ./node_modules/hyphenate-style-name/index.js ***!
|
|
1023
1027
|
\****************************************************/(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var a=/[A-Z]/g,i=/^ms-/,n={};function s(e){return"-"+e.toLowerCase()}const o=function(e){if(n.hasOwnProperty(e))return n[e];var t=e.replace(a,s);return n[e]=i.test(t)?"-"+t:t}},"./node_modules/matchmediaquery/index.js":
|
|
@@ -1032,13 +1036,13 @@ object-assign
|
|
|
1032
1036
|
(c) Sindre Sorhus
|
|
1033
1037
|
@license MIT
|
|
1034
1038
|
*/
|
|
1035
|
-
var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var s,o,l=i(e),h=1;h<arguments.length;h++){for(var
|
|
1039
|
+
var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var s,o,l=i(e),h=1;h<arguments.length;h++){for(var c in s=Object(arguments[h]))r.call(s,c)&&(l[c]=s[c]);if(t){o=t(s);for(var d=0;d<o.length;d++)a.call(s,o[d])&&(l[o[d]]=s[o[d]])}}return l}},"./node_modules/prop-types/checkPropTypes.js":
|
|
1036
1040
|
/*!***************************************************!*\
|
|
1037
1041
|
!*** ./node_modules/prop-types/checkPropTypes.js ***!
|
|
1038
|
-
\***************************************************/(e,t,r)=>{var a,i=r(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),n={},s=r(/*! ./lib/has */"./node_modules/prop-types/lib/has.js");function o(e,t,r,o,l){for(var h in e)if(s(e,h)){var
|
|
1042
|
+
\***************************************************/(e,t,r)=>{var a,i=r(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),n={},s=r(/*! ./lib/has */"./node_modules/prop-types/lib/has.js");function o(e,t,r,o,l){for(var h in e)if(s(e,h)){var c;try{if("function"!=typeof e[h]){var d=Error((o||"React class")+": "+r+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=e[h](t,h,o,r,null,i)}catch(e){c=e}if(!c||c instanceof Error||a((o||"React class")+": type specification of "+r+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var p=l?l():"";a("Failed "+r+" type: "+c.message+(null!=p?p:""))}}}a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},o.resetWarningCache=function(){n={}},e.exports=o},"./node_modules/prop-types/factoryWithTypeCheckers.js":
|
|
1039
1043
|
/*!************************************************************!*\
|
|
1040
1044
|
!*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
|
|
1041
|
-
\************************************************************/(e,t,r)=>{var a,i=r(/*! react-is */"./node_modules/react-is/index.js"),n=r(/*! object-assign */"./node_modules/object-assign/index.js"),s=r(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),o=r(/*! ./lib/has */"./node_modules/prop-types/lib/has.js"),l=r(/*! ./checkPropTypes */"./node_modules/prop-types/checkPropTypes.js");function h(){return null}a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},e.exports=function(e,t){var r="function"==typeof Symbol&&Symbol.iterator,
|
|
1045
|
+
\************************************************************/(e,t,r)=>{var a,i=r(/*! react-is */"./node_modules/react-is/index.js"),n=r(/*! object-assign */"./node_modules/object-assign/index.js"),s=r(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),o=r(/*! ./lib/has */"./node_modules/prop-types/lib/has.js"),l=r(/*! ./checkPropTypes */"./node_modules/prop-types/checkPropTypes.js");function h(){return null}a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},e.exports=function(e,t){var r="function"==typeof Symbol&&Symbol.iterator,c="<<anonymous>>",d={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:m(h),arrayOf:function(e){return m((function(t,r,a,i,n){if("function"!=typeof e)return new u("Property `"+n+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var o=t[r];if(!Array.isArray(o))return new u("Invalid "+i+" `"+n+"` of type `"+b(o)+"` supplied to `"+a+"`, expected an array.");for(var l=0;l<o.length;l++){var h=e(o,l,a,i,n+"["+l+"]",s);if(h instanceof Error)return h}return null}))},element:m((function(t,r,a,i,n){var s=t[r];return e(s)?null:new u("Invalid "+i+" `"+n+"` of type `"+b(s)+"` supplied to `"+a+"`, expected a single ReactElement.")})),elementType:m((function(e,t,r,a,n){var s=e[t];return i.isValidElementType(s)?null:new u("Invalid "+a+" `"+n+"` of type `"+b(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,r,a,i,n){if(!(t[r]instanceof e)){var s=e.name||c;return new u("Invalid "+i+" `"+n+"` of type `"+((o=t[r]).constructor&&o.constructor.name?o.constructor.name:c)+"` supplied to `"+a+"`, expected instance of `"+s+"`.")}var o;return null}))},node:m((function(e,t,r,a,i){return y(e[t])?null:new u("Invalid "+a+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,r,a,i,n){if("function"!=typeof e)return new u("Property `"+n+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[r],h=b(l);if("object"!==h)return new u("Invalid "+i+" `"+n+"` of type `"+h+"` supplied to `"+a+"`, expected an object.");for(var c in l)if(o(l,c)){var d=e(l,c,a,i,n+"."+c,s);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return a(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),h;function t(t,r,a,i,n){for(var s=t[r],o=0;o<e.length;o++)if(p(s,e[o]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new u("Invalid "+i+" `"+n+"` of value `"+String(s)+"` supplied to `"+a+"`, expected one of "+l+".")}return m(t)},oneOfType:function(e){if(!Array.isArray(e))return a("Invalid argument supplied to oneOfType, expected an instance of array."),h;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(r)+" at index "+t+"."),h}return m((function(t,r,a,i,n){for(var l=[],h=0;h<e.length;h++){var c=(0,e[h])(t,r,a,i,n,s);if(null==c)return null;c.data&&o(c.data,"expectedType")&&l.push(c.data.expectedType)}return new u("Invalid "+i+" `"+n+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,a,i,n){var o=t[r],l=b(o);if("object"!==l)return new u("Invalid "+i+" `"+n+"` of type `"+l+"` supplied to `"+a+"`, expected `object`.");for(var h in e){var c=e[h];if("function"!=typeof c)return g(a,i,n,h,v(c));var d=c(o,h,a,i,n+"."+h,s);if(d)return d}return null}))},exact:function(e){return m((function(t,r,a,i,l){var h=t[r],c=b(h);if("object"!==c)return new u("Invalid "+i+" `"+l+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var d=n({},t[r],e);for(var p in d){var m=e[p];if(o(e,p)&&"function"!=typeof m)return g(a,i,l,p,v(m));if(!m)return new u("Invalid "+i+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(t[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var f=m(h,p,a,i,l+"."+p,s);if(f)return f}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function u(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){var r={},i=0;function n(n,o,l,h,d,p,m){if(h=h||c,p=p||l,m!==s){if(t){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("undefined"!=typeof console){var g=h+":"+l;!r[g]&&i<3&&(a("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+h+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),r[g]=!0,i++)}}return null==o[l]?n?null===o[l]?new u("The "+d+" `"+p+"` is marked as required in `"+h+"`, but its value is `null`."):new u("The "+d+" `"+p+"` is marked as required in `"+h+"`, but its value is `undefined`."):null:e(o,l,h,d,p)}var o=n.bind(null,!1);return o.isRequired=n.bind(null,!0),o}function f(e){return m((function(t,r,a,i,n,s){var o=t[r];return b(o)!==e?new u("Invalid "+i+" `"+n+"` of type `"+v(o)+"` supplied to `"+a+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,r,a,i){return new u((e||"React class")+": "+t+" type `"+r+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||e(t))return!0;var a=function(e){var t=e&&(r&&e[r]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!a)return!1;var i,n=a.call(t);if(a!==t.entries){for(;!(i=n.next()).done;)if(!y(i.value))return!1}else for(;!(i=n.next()).done;){var s=i.value;if(s&&!y(s[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return u.prototype=Error.prototype,d.checkPropTypes=l,d.resetWarningCache=l.resetWarningCache,d.PropTypes=d,d}},"./node_modules/prop-types/index.js":
|
|
1042
1046
|
/*!******************************************!*\
|
|
1043
1047
|
!*** ./node_modules/prop-types/index.js ***!
|
|
1044
1048
|
\******************************************/(e,t,r)=>{var a=r(/*! react-is */"./node_modules/react-is/index.js");e.exports=r(/*! ./factoryWithTypeCheckers */"./node_modules/prop-types/factoryWithTypeCheckers.js")(a.isElement,!0)},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":
|
|
@@ -1050,7 +1054,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1050
1054
|
\********************************************/e=>{e.exports=Function.call.bind(Object.prototype.hasOwnProperty)},"./node_modules/react-is/cjs/react-is.development.js":
|
|
1051
1055
|
/*!***********************************************************!*\
|
|
1052
1056
|
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
|
1053
|
-
\***********************************************************/(e,t)=>{!function(){var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,
|
|
1057
|
+
\***********************************************************/(e,t)=>{!function(){var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var u=e.type;switch(u){case h:case c:case i:case s:case n:case p:return u;default:var g=u&&u.$$typeof;switch(g){case l:case d:case f:case m:case o:return g;default:return t}}case a:return t}}}var S=h,C=c,_=l,T=o,$=r,w=d,E=i,k=f,A=m,P=a,I=s,M=n,D=p,F=!1;function R(e){return x(e)===c}t.AsyncMode=S,t.ConcurrentMode=C,t.ContextConsumer=_,t.ContextProvider=T,t.Element=$,t.ForwardRef=w,t.Fragment=E,t.Lazy=k,t.Memo=A,t.Portal=P,t.Profiler=I,t.StrictMode=M,t.Suspense=D,t.isAsyncMode=function(e){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(e)||x(e)===h},t.isConcurrentMode=R,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===o},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===f},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===a},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===n},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===s||e===n||e===p||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===o||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},t.typeOf=x}()},"./node_modules/react-is/index.js":
|
|
1054
1058
|
/*!****************************************!*\
|
|
1055
1059
|
!*** ./node_modules/react-is/index.js ***!
|
|
1056
1060
|
\****************************************/(e,t,r)=>{e.exports=r(/*! ./cjs/react-is.development.js */"./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":
|
|
@@ -1068,16 +1072,16 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1068
1072
|
\**********************/function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.toQuery=t.useMediaQuery=t.default=void 0;var i=a(r(/*! ./useMediaQuery */"./src/useMediaQuery.ts"));t.useMediaQuery=i.default;var n=a(r(/*! ./Component */"./src/Component.ts"));t.default=n.default;var s=a(r(/*! ./toQuery */"./src/toQuery.ts"));t.toQuery=s.default;var o=a(r(/*! ./Context */"./src/Context.ts"));t.Context=o.default},"./src/mediaQuery.ts":
|
|
1069
1073
|
/*!***************************!*\
|
|
1070
1074
|
!*** ./src/mediaQuery.ts ***!
|
|
1071
|
-
\***************************/function(e,t,r){var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)},i=this&&this.__rest||function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(r(/*! prop-types */"./node_modules/prop-types/index.js")),o=s.default.oneOfType([s.default.string,s.default.number]),l={all:s.default.bool,grid:s.default.bool,aural:s.default.bool,braille:s.default.bool,handheld:s.default.bool,print:s.default.bool,projection:s.default.bool,screen:s.default.bool,tty:s.default.bool,tv:s.default.bool,embossed:s.default.bool},h={orientation:s.default.oneOf(["portrait","landscape"]),scan:s.default.oneOf(["progressive","interlace"]),aspectRatio:s.default.string,deviceAspectRatio:s.default.string,height:o,deviceHeight:o,width:o,deviceWidth:o,color:s.default.bool,colorIndex:s.default.bool,monochrome:s.default.bool,resolution:o,type:Object.keys(l)},
|
|
1075
|
+
\***************************/function(e,t,r){var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)},i=this&&this.__rest||function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(r(/*! prop-types */"./node_modules/prop-types/index.js")),o=s.default.oneOfType([s.default.string,s.default.number]),l={all:s.default.bool,grid:s.default.bool,aural:s.default.bool,braille:s.default.bool,handheld:s.default.bool,print:s.default.bool,projection:s.default.bool,screen:s.default.bool,tty:s.default.bool,tv:s.default.bool,embossed:s.default.bool},h={orientation:s.default.oneOf(["portrait","landscape"]),scan:s.default.oneOf(["progressive","interlace"]),aspectRatio:s.default.string,deviceAspectRatio:s.default.string,height:o,deviceHeight:o,width:o,deviceWidth:o,color:s.default.bool,colorIndex:s.default.bool,monochrome:s.default.bool,resolution:o,type:Object.keys(l)},c=i(h,["type"]),d=a({minAspectRatio:s.default.string,maxAspectRatio:s.default.string,minDeviceAspectRatio:s.default.string,maxDeviceAspectRatio:s.default.string,minHeight:o,maxHeight:o,minDeviceHeight:o,maxDeviceHeight:o,minWidth:o,maxWidth:o,minDeviceWidth:o,maxDeviceWidth:o,minColor:s.default.number,maxColor:s.default.number,minColorIndex:s.default.number,maxColorIndex:s.default.number,minMonochrome:s.default.number,maxMonochrome:s.default.number,minResolution:o,maxResolution:o},c),p=a(a({},l),d);t.default={all:p,types:l,matchers:h,features:d}},"./src/toQuery.ts":
|
|
1072
1076
|
/*!************************!*\
|
|
1073
1077
|
!*** ./src/toQuery.ts ***!
|
|
1074
1078
|
\************************/function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(r(/*! hyphenate-style-name */"./node_modules/hyphenate-style-name/index.js")),n=a(r(/*! ./mediaQuery */"./src/mediaQuery.ts"));t.default=function(e){var t=[];return Object.keys(n.default.all).forEach((function(r){var a=e[r];null!=a&&t.push(function(e,t){var r=(0,i.default)(e);return"number"==typeof t&&(t="".concat(t,"px")),!0===t?r:!1===t?"not ".concat(r):"(".concat(r,": ").concat(t,")")}(r,a))})),t.join(" and ")}},"./src/useMediaQuery.ts":
|
|
1075
1079
|
/*!******************************!*\
|
|
1076
1080
|
!*** ./src/useMediaQuery.ts ***!
|
|
1077
|
-
\******************************/function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(/*! react */"react"),n=a(r(/*! matchmediaquery */"./node_modules/matchmediaquery/index.js")),s=a(r(/*! hyphenate-style-name */"./node_modules/hyphenate-style-name/index.js")),o=r(/*! shallow-equal */"./node_modules/shallow-equal/dist/index.esm.js"),l=a(r(/*! ./toQuery */"./src/toQuery.ts")),h=a(r(/*! ./Context */"./src/Context.ts")),
|
|
1081
|
+
\******************************/function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(/*! react */"react"),n=a(r(/*! matchmediaquery */"./node_modules/matchmediaquery/index.js")),s=a(r(/*! hyphenate-style-name */"./node_modules/hyphenate-style-name/index.js")),o=r(/*! shallow-equal */"./node_modules/shallow-equal/dist/index.esm.js"),l=a(r(/*! ./toQuery */"./src/toQuery.ts")),h=a(r(/*! ./Context */"./src/Context.ts")),c=function(e){if(e)return Object.keys(e).reduce((function(t,r){return t[(0,s.default)(r)]=e[r],t}),{})},d=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){e.current=!0}),[]),e.current},p=function(e){var t=function(){return function(e){return e.query||(0,l.default)(e)}(e)},r=(0,i.useState)(t),a=r[0],n=r[1];return(0,i.useEffect)((function(){var e=t();a!==e&&n(e)}),[e]),a};t.default=function(e,t,r){var a=function(e){var t=(0,i.useContext)(h.default),r=function(){return c(e)||c(t)},a=(0,i.useState)(r),n=a[0],s=a[1];return(0,i.useEffect)((function(){var e=r();(0,o.shallowEqualObjects)(n,e)||s(e)}),[e,t]),n}(t),s=p(e);if(!s)throw new Error("Invalid or missing MediaQuery!");var l=function(e,t){var r=function(){return(0,n.default)(e,t||{},!!t)},a=(0,i.useState)(r),s=a[0],o=a[1],l=d();return(0,i.useEffect)((function(){if(l){var e=r();return o(e),function(){e&&e.dispose()}}}),[e,t]),s}(s,a),u=function(e){var t=(0,i.useState)(e.matches),r=t[0],a=t[1];return(0,i.useEffect)((function(){var t=function(e){a(e.matches)};return e.addListener(t),a(e.matches),function(){e.removeListener(t)}}),[e]),r}(l),m=d();return(0,i.useEffect)((function(){m&&r&&r(u)}),[u]),(0,i.useEffect)((function(){return function(){l&&l.dispose()}}),[]),u}},react:
|
|
1078
1082
|
/*!**************************************************************************************!*\
|
|
1079
1083
|
!*** external {"commonjs":"react","commonjs2":"react","amd":"react","root":"React"} ***!
|
|
1080
|
-
\**************************************************************************************/t=>{t.exports=e}},r={};function a(e){var i=r[e];if(void 0!==i)return i.exports;var n=r[e]={exports:{}};return t[e].call(n.exports,n,n.exports,a),n.exports}return a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a("./src/index.ts")})(),reactResponsive.exports=factory(React__default);var root$5=_root,now$1=function(){return root$5.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,""):e}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$2=isObject_1,isSymbol=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$2(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$2(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$2,isObject$1=isObject_1,now=now_1,toNumber$1=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce(e,t,r){var a,i,n,s,o,l,h=0,
|
|
1084
|
+
\**************************************************************************************/t=>{t.exports=e}},r={};function a(e){var i=r[e];if(void 0!==i)return i.exports;var n=r[e]={exports:{}};return t[e].call(n.exports,n,n.exports,a),n.exports}return a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a("./src/index.ts")})(),reactResponsive.exports=factory(React__default);var root$5=_root,now$1=function(){return root$5.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,""):e}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$2=isObject_1,isSymbol=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$2(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$2(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$2,isObject$1=isObject_1,now=now_1,toNumber$1=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce(e,t,r){var a,i,n,s,o,l,h=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function u(t){var r=a,n=i;return a=i=void 0,h=t,s=e.apply(n,r)}function m(e){return h=e,o=setTimeout(g,t),c?u(e):s}function f(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-h>=n}function g(){var e=now();if(f(e))return y(e);o=setTimeout(g,function(e){var r=t-(e-l);return d?nativeMin(r,n-(e-h)):r}(e))}function y(e){return o=void 0,p&&a?u(e):(a=i=void 0,s)}function b(){var e=now(),r=f(e);if(a=arguments,i=this,l=e,r){if(void 0===o)return m(l);if(d)return clearTimeout(o),o=setTimeout(g,t),u(l)}return void 0===o&&(o=setTimeout(g,t)),s}return t=toNumber$1(t)||0,isObject$1(r)&&(c=!!r.leading,n=(d="maxWait"in r)?nativeMax$1(toNumber$1(r.maxWait)||0,t):n,p="trailing"in r?!!r.trailing:p),b.cancel=function(){void 0!==o&&clearTimeout(o),h=0,a=l=i=o=void 0},b.flush=function(){return void 0===o?s:y(now())},b}var debounce_1=debounce;const getBackdropFilter=e=>{let t="";return e&&(t+="blur(10px)"),t.length>0?t:"none"},Root=styled.div`
|
|
1081
1085
|
position: fixed;
|
|
1082
1086
|
left: 0;
|
|
1083
1087
|
top: 0;
|
|
@@ -1115,7 +1119,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1115
1119
|
`,e.$disableTransition&&(t+=css`
|
|
1116
1120
|
transition: none;
|
|
1117
1121
|
`),t}}
|
|
1118
|
-
`,Overlay=({show:e=!1,rootId:t,onOverlayClick:r,children:a,backgroundOpacity:i,backgroundBlur:n=!0,disableTransition:s=!1,enableOverlayClick:o=!1,zIndex:l,id:h})=>{const[d
|
|
1122
|
+
`,Overlay=({show:e=!1,rootId:t,onOverlayClick:r,children:a,backgroundOpacity:i,backgroundBlur:n=!0,disableTransition:s=!1,enableOverlayClick:o=!1,zIndex:l,id:h})=>{const[c,d]=useState(null),[p,u]=useState(),m=useRef(),f=useRef(null),g=a&&React__default.cloneElement(a,{ref:f}),y=h?`lifesg-ds-overlay-root-${h}`:"lifesg-ds-overlay-root";useEffect((()=>{if(e){const e=x();if(b(e),!e){const e=setTimeout((()=>{C("add")}),200);return()=>clearTimeout(e)}}else if(!m.current){const e=setTimeout((()=>{C("remove")}),200);return()=>clearTimeout(e)}}),[e]),useEffect((()=>{d(v());const e=x();return b(e),e||S(),()=>{C("remove")}}),[]);const b=e=>{m.current=e,u(e)},v=()=>document&&t?document.getElementById(t):document?document.body:null,x=()=>document.body.classList.contains(OVERLAY_OPEN_CLASSNAME),S=()=>{if(!document.getElementById(STYLESHEET_ID)){const e=document.createElement("style");e.id=STYLESHEET_ID;const t=document.documentElement.clientWidth,r=window.innerWidth-t;e.innerHTML=`\n\t\t\t\t.${OVERLAY_OPEN_CLASSNAME} {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t\tpadding-right: ${r}px !important;\n\t\t\t\t\t-ms-overflow-style: none;\n\t\t\t\t\tscrollbar-width: none;\n\t\t\t\t}\n\n\t\t\t\t.${OVERLAY_OPEN_CLASSNAME}::-webkit-scrollbar {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t`,document.body.appendChild(e)}},C=e=>{const t=document.body.classList.contains(OVERLAY_OPEN_CLASSNAME);"add"!==e||t?"remove"===e&&t&&document.body.classList.remove(OVERLAY_OPEN_CLASSNAME):document.body.classList.add(OVERLAY_OPEN_CLASSNAME)},_=e=>{e.preventDefault();const t=f.current?.firstChild;t&&t.contains(e.target)||r&&o&&r()};return c?ReactDOM.createPortal(jsx(Root,{id:y,"data-testid":y,$show:e,zIndex:l,$stacked:p,children:a&&jsx(Wrapper$c,{"data-testid":"overlay-wrapper",$show:e,$backgroundOpacity:i||(p?.5:.8),$backgroundBlur:n,$disableTransition:s,$enableOverlayClick:o,onClick:_,children:g})}),c):null},STYLESHEET_ID="lifesg-ds-overlay-stylesheet",OVERLAY_OPEN_CLASSNAME="lifesg-ds-overlay-open",visibilityStyle=(e,t)=>e?`\n\t\t\t${t}: 0;\n\t\t\topacity: 1;\n\t\t\ttransition: all 300ms cubic-bezier(0.21, 0.79, 0.53, 1);\n\t\t\ttransition-delay: 200ms;\n\t\t`:`\n\t\t${t}: -3%;\n\t\topacity: 0;\n\t\ttransition: all 300ms cubic-bezier(0.4, 0.34, 0.38, 1);\n\t`,Container$c=styled.div`
|
|
1119
1123
|
position: relative;
|
|
1120
1124
|
display: flex;
|
|
1121
1125
|
justify-content: center;
|
|
@@ -1132,7 +1136,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1132
1136
|
|
|
1133
1137
|
top: ${e=>e.offsetTop||0}px;
|
|
1134
1138
|
}
|
|
1135
|
-
`,Modal$1=({id:e="modal",show:t,animationFrom:r="bottom",children:a,enableOverlayClick:i=!0,rootComponentId:n,zIndex:s,onOverlayClick:o,dismissKeyboardOnShow:l=!0,...h})=>{const[d
|
|
1139
|
+
`,Modal$1=({id:e="modal",show:t,animationFrom:r="bottom",children:a,enableOverlayClick:i=!0,rootComponentId:n,zIndex:s,onOverlayClick:o,dismissKeyboardOnShow:l=!0,...h})=>{const[c,d]=useState(),[p,u]=useState();useEffect((()=>window.visualViewport?(f(),window.visualViewport.addEventListener("resize",f),()=>{window.visualViewport.removeEventListener("resize",f)}):(m(),window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m)})),[]),useEffect((()=>{t&&l&&document.activeElement?.blur?.()}),[t]);const m=()=>{const e=.01*window.innerHeight;d(e)},f=()=>{const e=.01*window.visualViewport.height;d(e),u(window.visualViewport.offsetTop)};return jsx(Overlay,{"data-testid":`${e}-overlay`,show:t,enableOverlayClick:i,onOverlayClick:o,id:e,rootId:n,zIndex:s,children:jsx(Container$c,{show:t,animationFrom:r,"data-testid":e,verticalHeight:c,offsetTop:p,...h,children:a})})};var cross={},CrossIcon;Object.defineProperty(cross,"__esModule",{value:!0});var e$5=require$$0;const C$4=e=>e$5.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:e$5.jsx("path",{d:"M9.99991 11.229L5.97891 15.25C5.81224 15.4167 5.61091 15.4967 5.37491 15.49C5.13891 15.4827 4.93757 15.3957 4.77091 15.229C4.60424 15.0623 4.52091 14.8577 4.52091 14.615C4.52091 14.3717 4.60424 14.1667 4.77091 14L8.77091 10L4.74991 5.979C4.58324 5.81233 4.50324 5.60767 4.50991 5.365C4.51724 5.12167 4.60424 4.91667 4.77091 4.75C4.93757 4.58333 5.14224 4.5 5.38491 4.5C5.62824 4.5 5.83324 4.58333 5.99991 4.75L9.99991 8.771L14.0209 4.75C14.1876 4.58333 14.3922 4.5 14.6349 4.5C14.8782 4.5 15.0832 4.58333 15.2499 4.75C15.4166 4.91667 15.4999 5.12167 15.4999 5.365C15.4999 5.60767 15.4166 5.81233 15.2499 5.979L11.2289 10L15.2499 14.021C15.4166 14.1877 15.4999 14.389 15.4999 14.625C15.4999 14.861 15.4166 15.0623 15.2499 15.229C15.0832 15.3957 14.8782 15.479 14.6349 15.479C14.3922 15.479 14.1876 15.3957 14.0209 15.229L9.99991 11.229Z",fill:"currentColor"})});C$4.displayName="CrossIcon",CrossIcon=cross.CrossIcon=C$4;const Box=styled.div`
|
|
1136
1140
|
position: relative;
|
|
1137
1141
|
display: flex;
|
|
1138
1142
|
flex-direction: column;
|
|
@@ -1227,7 +1231,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1227
1231
|
background: none;
|
|
1228
1232
|
border: none;
|
|
1229
1233
|
padding: 0;
|
|
1230
|
-
`,Popover=({children:e,visible:t,onMobileClose:r,...a})=>{const i=a["data-testid"]||"popover",[n,s]=useState("none"),o=useRef(null),l=reactResponsive.exports.useMediaQuery({maxWidth:MediaWidths$1.mobileL}),h=useRef(n);useEffect((()=>(p(),window.addEventListener("resize",debounce_1(
|
|
1234
|
+
`,Popover=({children:e,visible:t,onMobileClose:r,...a})=>{const i=a["data-testid"]||"popover",[n,s]=useState("none"),o=useRef(null),l=reactResponsive.exports.useMediaQuery({maxWidth:MediaWidths$1.mobileL}),h=useRef(n);useEffect((()=>(p(),window.addEventListener("resize",debounce_1(c,300)),()=>{window.removeEventListener("resize",debounce_1(c,300))})),[]);const c=()=>{p()},d=()=>{r&&r()},p=()=>{const e=u();var t;e&&(t=e,h.current=t,s(t))},u=()=>{if(o.current){const e=o.current.getBoundingClientRect(),t=24,r=e.y<t,a=window.innerWidth-t;return e.x<t?r?"top-left":"left":e.x+e.width>a?r?"top-right":"right":("top-left"===h.current||"left"===h.current)&&e.x-e.width/2>t||("top-right"===h.current||"right"===h.current)&&e.x+2*e.width<a?r?"top-center":"none":void 0}},m=()=>"string"==typeof e?jsx(Text.BodySmall,{children:e}):e;return jsxs(Fragment,{children:[jsx(BubbleWrap$1,{ref:o,"data-testid":i,$visible:t,$offset:n,...a,children:jsx(Card,{children:m()})}),l&&jsx(Modal$1,{show:t,onOverlayClick:d,children:jsx(MobileModalBox,{onClose:d,children:m()})})]})},withPopover=(e,t)=>r=>{const{onPopoverAppear:a,onPopoverDismiss:i,...n}=r,s=t.trigger||"click",o=n,[l,h]=useState(!1),c=useRef(),d=reactResponsive.exports.useMediaQuery({maxWidth:MediaWidths$1.mobileL});useEffect((()=>{if(!d)return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}}),[l]);const p=e=>{c&&!c.current.contains(e.target)&&(l&&h(!1),i&&i())};return jsxs(HOCWrapper$1,{id:"popover-hoc-wrapper",ref:c,children:[jsx(HOCTrigger,{id:`popover-hoc-trigger${t["data-testid"]&&`-${t["data-testid"]}`}`,type:"button",onClick:e=>{e.preventDefault(),("click"===s||d)&&(h(!l),!l&&a&&a(),l&&i&&i())},onMouseEnter:()=>{"hover"!==s||d||h(!0)},onMouseLeave:()=>{"hover"===s&&l&&!d&&h(!1)},"aria-label":"popover-button",children:jsx(e,{...o})}),jsx(Popover,{visible:l,id:t.id,"data-testid":t["data-testid"],onMobileClose:()=>{h(!1)},children:t.content})]})},TriggerArea=styled.button`
|
|
1231
1235
|
padding: 0.25rem 0.5rem 0.25rem 0.25rem;
|
|
1232
1236
|
border: none;
|
|
1233
1237
|
background: none;
|
|
@@ -1286,7 +1290,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1286
1290
|
:focus-within {
|
|
1287
1291
|
outline: none;
|
|
1288
1292
|
border: 1px solid ${Color.Accent.Light[1]};
|
|
1289
|
-
box-shadow:
|
|
1293
|
+
box-shadow: ${DesignToken.InputBoxShadow};
|
|
1290
1294
|
}
|
|
1291
1295
|
|
|
1292
1296
|
::placeholder,
|
|
@@ -1330,7 +1334,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1330
1334
|
|
|
1331
1335
|
:focus-within {
|
|
1332
1336
|
border: 1px solid ${Color.Validation.Red.Border(e)};
|
|
1333
|
-
box-shadow:
|
|
1337
|
+
box-shadow: ${DesignToken.InputErrorBoxShadow};
|
|
1334
1338
|
}
|
|
1335
1339
|
`:void 0}
|
|
1336
1340
|
`,InputElement=styled.input`
|
|
@@ -1362,7 +1366,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1362
1366
|
`,ClearIcon=styled(CrossIcon)`
|
|
1363
1367
|
height: 1.25rem;
|
|
1364
1368
|
width: 1.25rem;
|
|
1365
|
-
`,Component$6=({value:e,spacing:t,type:r,error:a,disabled:i,readOnly:n,onChange:s,onClear:o,allowClear:l=!1,...h},
|
|
1369
|
+
`,Component$6=({value:e,spacing:t,type:r,error:a,disabled:i,readOnly:n,onChange:s,onClear:o,allowClear:l=!1,...h},c)=>{const d=()=>"tel"===r&&t,p=e=>{const t=e.target,r=t.value,a=t.value.replace(/\s/g,"");t.value=a,s(e),t.value=r},u=e?(e=>e?d()?StringHelper.transformWithSpaces(e,t):e:"")(e):e,m=s?e=>{d()?p(e):s(e)}:void 0,f=l&&!i&&!n&&!a;return jsxs(Container$a,{error:a,disabled:i,readOnly:n,className:h.className,children:[jsx(InputElement,{"data-testid":"input",ref:c,disabled:i,value:u,error:a,onChange:m,type:r,readOnly:n,...h}),f&&jsx(ClearContainer,{onClick:()=>{o&&o()},children:jsx(ClearIcon,{})})]})},Input$2=React__default.forwardRef(Component$6),Component$5=(e,t)=>{const{label:r,errorMessage:a,id:i="form-field","data-error-testid":n,"data-testid":s,...o}=e;return jsx(FormWrapper,{id:i,label:r,errorMessage:a,disabled:o.disabled,"data-error-testid":n,children:jsx(Input$2,{id:`${i}-base`,"data-testid":s||i,ref:t,error:!!a,...o})})},FormInput=React__default.forwardRef(Component$5),Container$9=styled.div`
|
|
1366
1370
|
display: flex;
|
|
1367
1371
|
position: relative;
|
|
1368
1372
|
border: 1px solid ${Color.Neutral[5]};
|
|
@@ -1374,7 +1378,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1374
1378
|
|
|
1375
1379
|
:focus-within {
|
|
1376
1380
|
border: 1px solid ${Color.Accent.Light[1]};
|
|
1377
|
-
box-shadow:
|
|
1381
|
+
box-shadow: ${DesignToken.InputBoxShadow};
|
|
1378
1382
|
}
|
|
1379
1383
|
|
|
1380
1384
|
${e=>e.$readOnly?css`
|
|
@@ -1401,7 +1405,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1401
1405
|
|
|
1402
1406
|
:focus-within {
|
|
1403
1407
|
border: 1px solid ${Color.Validation.Red.Border(e)};
|
|
1404
|
-
box-shadow:
|
|
1408
|
+
box-shadow: ${DesignToken.InputErrorBoxShadow};
|
|
1405
1409
|
}
|
|
1406
1410
|
`:void 0}
|
|
1407
1411
|
`,MainInput=styled(Input$2)`
|
|
@@ -1455,7 +1459,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1455
1459
|
}
|
|
1456
1460
|
}
|
|
1457
1461
|
`:void 0}
|
|
1458
|
-
`;function baseFindIndex$1(e,t,r,a){for(var i=e.length,n=r+(a?1:-1);a?n--:++n<i;)if(t(e[n],n,e))return n;return-1}var _baseFindIndex=baseFindIndex$1,ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var r=this.__data__;if(r instanceof ListCache$1){var a=r.__data__;if(!Map$2||a.length<LARGE_ARRAY_SIZE-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache$1(a)}return r.set(e,t),this.size=r.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(e){var t=this.__data__=new ListCache(e);this.size=t.size}Stack$2.prototype.clear=stackClear,Stack$2.prototype.delete=stackDelete,Stack$2.prototype.get=stackGet,Stack$2.prototype.has=stackHas,Stack$2.prototype.set=stackSet;var _Stack=Stack$2,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(e){return this.__data__.set(e,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(e){return this.__data__.has(e)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new MapCache;++t<r;)this.add(e[t])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd,SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(e,t){for(var r=-1,a=null==e?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(e,t){return e.has(t)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(e,t,r,a,i,n){var s=r&COMPARE_PARTIAL_FLAG$5,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var h=n.get(e),d=n.get(t);if(h&&d)return h==t&&d==e;var c=-1,p=!0,u=r&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(n.set(e,t),n.set(t,e);++c<o;){var m=e[c],f=t[c];if(a)var g=s?a(f,m,c,t,e,n):a(m,f,c,e,t,n);if(void 0!==g){if(g)continue;p=!1;break}if(u){if(!arraySome(t,(function(e,t){if(!cacheHas(u,t)&&(m===e||i(m,e,r,a,n)))return u.push(t)}))){p=!1;break}}else if(m!==f&&!i(m,f,r,a,n)){p=!1;break}}return n.delete(e),n.delete(t),p}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(e){var t=-1,r=Array(e.size);return e.forEach((function(e,a){r[++t]=[a,e]})),r}var _mapToArray=mapToArray$1;function setToArray$1(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(e,t,r,a,i,n,s){switch(r){case dataViewTag$2:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag$1:return!(e.byteLength!=t.byteLength||!n(new Uint8Array$1(e),new Uint8Array$1(t)));case boolTag$1:case dateTag$1:case numberTag$1:return eq(+e,+t);case errorTag$1:return e.name==t.name&&e.message==t.message;case regexpTag$1:case stringTag$1:return e==t+"";case mapTag$2:var o=mapToArray;case setTag$2:var l=a&COMPARE_PARTIAL_FLAG$4;if(o||(o=setToArray),e.size!=t.size&&!l)return!1;var h=s.get(e);if(h)return h==t;a|=COMPARE_UNORDERED_FLAG$2,s.set(e,t);var d=equalArrays$1(o(e),o(t),a,i,n,s);return s.delete(e),d;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var _equalByTag=equalByTag$1;function arrayPush$2(e,t){for(var r=-1,a=t.length,i=e.length;++r<a;)e[i+r]=t[r];return e}var _arrayPush=arrayPush$2,arrayPush$1=_arrayPush,isArray$5=isArray_1;function baseGetAllKeys$1(e,t,r){var a=t(e);return isArray$5(e)?a:arrayPush$1(a,r(e))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(e,t){for(var r=-1,a=null==e?0:e.length,i=0,n=[];++r<a;){var s=e[r];t(s,r,e)&&(n[i++]=s)}return n}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(e){return null==e?[]:(e=Object(e),arrayFilter(nativeGetSymbols(e),(function(t){return propertyIsEnumerable$1.call(e,t)})))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$3(e)&&baseGetTag$2(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$2(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable.call(e,"callee")},isArguments_1=isArguments$2,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;!function(e,t){var r=_root,a=stubFalse_1,i=t&&!t.nodeType&&t,n=i&&e&&!e.nodeType&&e,s=n&&n.exports===i?r.Buffer:void 0,o=(s?s.isBuffer:void 0)||a;e.exports=o}(isBuffer$2,isBuffer$2.exports);var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(e,t){var r=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==r||"symbol"!=r&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}var _isIndex=isIndex$2,MAX_SAFE_INTEGER=9007199254740991;function isLength$3(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$1=_baseGetTag,isLength$2=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(e){return isObjectLike$1(e)&&isLength$2(e.length)&&!!typedArrayTags[baseGetTag$1(e)]}typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(e){return function(t){return e(t)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};!function(e,t){var r=_freeGlobal,a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,n=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||n&&n.binding&&n.binding("util")}catch(e){}}();e.exports=s}(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtil.exports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$4=isArray_1,isBuffer$1=isBuffer$2.exports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(e,t){var r=isArray$4(e),a=!r&&isArguments$1(e),i=!r&&!a&&isBuffer$1(e),n=!r&&!a&&!i&&isTypedArray$1(e),s=r||a||i||n,o=s?baseTimes(e.length,String):[],l=o.length;for(var h in e)!t&&!hasOwnProperty$4.call(e,h)||s&&("length"==h||i&&("offset"==h||"parent"==h)||n&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||isIndex$1(h,l))||o.push(h);return o}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$3)}var _isPrototype=isPrototype$1;function overArg$1(e,t){return function(r){return e(t(r))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseKeys$1(e){if(!isPrototype(e))return nativeKeys(e);var t=[];for(var r in Object(e))hasOwnProperty$3.call(e,r)&&"constructor"!=r&&t.push(r);return t}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$2(e){return null!=e&&isLength$1(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$3(e){return isArrayLike$1(e)?arrayLikeKeys(e):baseKeys(e)}var keys_1=keys$3,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects$1(e,t,r,a,i,n){var s=r&COMPARE_PARTIAL_FLAG$3,o=getAllKeys(e),l=o.length;if(l!=getAllKeys(t).length&&!s)return!1;for(var h=l;h--;){var d=o[h];if(!(s?d in t:hasOwnProperty$2.call(t,d)))return!1}var c=n.get(e),p=n.get(t);if(c&&p)return c==t&&p==e;var u=!0;n.set(e,t),n.set(t,e);for(var m=s;++h<l;){var f=e[d=o[h]],g=t[d];if(a)var y=s?a(g,f,d,t,e,n):a(f,g,d,e,t,n);if(!(void 0===y?f===g||i(f,g,r,a,n):y)){u=!1;break}m||(m="constructor"==d)}if(u&&!m){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(u=!1)}return n.delete(e),n.delete(t),u}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root,DataView$1=getNative$3(root$3,"DataView"),_DataView=DataView$1,getNative$2=_getNative,root$2=_root,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root,WeakMap$1=getNative(root,"WeakMap"),_WeakMap=WeakMap$1,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap&&getTag$1(new WeakMap)!=weakMapTag)&&(getTag$1=function(e){var t=baseGetTag(e),r=t==objectTag$1?e.constructor:void 0,a=r?toSource(r):"";if(a)switch(a){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return t});var _getTag=getTag$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$3=isArray_1,isBuffer=isBuffer$2.exports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep$1(e,t,r,a,i,n){var s=isArray$3(e),o=isArray$3(t),l=s?arrayTag:getTag(e),h=o?arrayTag:getTag(t),d=(l=l==argsTag?objectTag:l)==objectTag,c=(h=h==argsTag?objectTag:h)==objectTag,p=l==h;if(p&&isBuffer(e)){if(!isBuffer(t))return!1;s=!0,d=!1}if(p&&!d)return n||(n=new Stack$1),s||isTypedArray(e)?equalArrays(e,t,r,a,i,n):equalByTag(e,t,l,r,a,i,n);if(!(r&COMPARE_PARTIAL_FLAG$2)){var u=d&&hasOwnProperty$1.call(e,"__wrapped__"),m=c&&hasOwnProperty$1.call(t,"__wrapped__");if(u||m){var f=u?e.value():e,g=m?t.value():t;return n||(n=new Stack$1),i(f,g,r,a,n)}}return!!p&&(n||(n=new Stack$1),equalObjects(e,t,r,a,i,n))}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$2(e,t,r,a,i){return e===t||(null==e||null==t||!isObjectLike(e)&&!isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,r,a,baseIsEqual$2,i))}var _baseIsEqual=baseIsEqual$2,Stack=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(e,t,r,a){var i=r.length,n=i,s=!a;if(null==e)return!n;for(e=Object(e);i--;){var o=r[i];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<n;){var l=(o=r[i])[0],h=e[l],d=o[1];if(s&&o[2]){if(void 0===h&&!(l in e))return!1}else{var c=new Stack;if(a)var p=a(h,d,l,e,t,c);if(!(void 0===p?baseIsEqual$1(d,h,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,a,c):p))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject=isObject_1;function isStrictComparable$2(e){return e==e&&!isObject(e)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$1=keys_1;function getMatchData$1(e){for(var t=keys$1(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,isStrictComparable$1(i)]}return t}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(e){var t=getMatchData(e);return 1==t.length&&t[0][2]?matchesStrictComparable$1(t[0][0],t[0][1]):function(r){return r===e||baseIsMatch(r,e,t)}}var _baseMatches=baseMatches$1;function baseHasIn$1(e,t){return null!=e&&t in Object(e)}var _baseHasIn=baseHasIn$1,castPath=_castPath,isArguments=isArguments_1,isArray$2=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$2=_toKey;function hasPath$1(e,t,r){for(var a=-1,i=(t=castPath(t,e)).length,n=!1;++a<i;){var s=toKey$2(t[a]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}return n||++a!=i?n:!!(i=null==e?0:e.length)&&isLength(i)&&isIndex(s,i)&&(isArray$2(e)||isArguments(e))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(e,t){return null!=e&&hasPath(e,t,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(e,t){return isKey$1(e)&&isStrictComparable(t)?matchesStrictComparable(toKey$1(e),t):function(r){var a=get(r,e);return void 0===a&&a===t?hasIn(r,e):baseIsEqual(t,a,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$1(e){return e}var identity_1=identity$1;function baseProperty$1(e){return function(t){return null==t?void 0:t[e]}}var _baseProperty=baseProperty$1,baseGet=_baseGet;function basePropertyDeep$1(e){return function(t){return baseGet(t,e)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity=identity_1,isArray$1=isArray_1,property=property_1;function baseIteratee$2(e){return"function"==typeof e?e:null==e?identity:"object"==typeof e?isArray$1(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}var _baseIteratee=baseIteratee$2,toNumber=toNumber_1,INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$1(e){return e?(e=toNumber(e))===INFINITY||e===-INFINITY?(e<0?-1:1)*MAX_INTEGER:e==e?e:0:0===e?e:0}var toFinite_1=toFinite$1,toFinite=toFinite_1;function toInteger$1(e){var t=toFinite(e),r=t%1;return t==t?r?t-r:t:0}var toInteger_1=toInteger$1,baseFindIndex=_baseFindIndex,baseIteratee$1=_baseIteratee,toInteger=toInteger_1,nativeMax=Math.max;function findIndex(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var i=null==r?0:toInteger(r);return i<0&&(i=nativeMax(a+i,0)),baseFindIndex(e,baseIteratee$1(t),i)}var findIndex_1=findIndex;const Container$8=styled(animated.div)`
|
|
1462
|
+
`;function baseFindIndex$1(e,t,r,a){for(var i=e.length,n=r+(a?1:-1);a?n--:++n<i;)if(t(e[n],n,e))return n;return-1}var _baseFindIndex=baseFindIndex$1,ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var r=this.__data__;if(r instanceof ListCache$1){var a=r.__data__;if(!Map$2||a.length<LARGE_ARRAY_SIZE-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache$1(a)}return r.set(e,t),this.size=r.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(e){var t=this.__data__=new ListCache(e);this.size=t.size}Stack$2.prototype.clear=stackClear,Stack$2.prototype.delete=stackDelete,Stack$2.prototype.get=stackGet,Stack$2.prototype.has=stackHas,Stack$2.prototype.set=stackSet;var _Stack=Stack$2,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(e){return this.__data__.set(e,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(e){return this.__data__.has(e)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new MapCache;++t<r;)this.add(e[t])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd,SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(e,t){for(var r=-1,a=null==e?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(e,t){return e.has(t)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(e,t,r,a,i,n){var s=r&COMPARE_PARTIAL_FLAG$5,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var h=n.get(e),c=n.get(t);if(h&&c)return h==t&&c==e;var d=-1,p=!0,u=r&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(n.set(e,t),n.set(t,e);++d<o;){var m=e[d],f=t[d];if(a)var g=s?a(f,m,d,t,e,n):a(m,f,d,e,t,n);if(void 0!==g){if(g)continue;p=!1;break}if(u){if(!arraySome(t,(function(e,t){if(!cacheHas(u,t)&&(m===e||i(m,e,r,a,n)))return u.push(t)}))){p=!1;break}}else if(m!==f&&!i(m,f,r,a,n)){p=!1;break}}return n.delete(e),n.delete(t),p}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(e){var t=-1,r=Array(e.size);return e.forEach((function(e,a){r[++t]=[a,e]})),r}var _mapToArray=mapToArray$1;function setToArray$1(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(e,t,r,a,i,n,s){switch(r){case dataViewTag$2:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag$1:return!(e.byteLength!=t.byteLength||!n(new Uint8Array$1(e),new Uint8Array$1(t)));case boolTag$1:case dateTag$1:case numberTag$1:return eq(+e,+t);case errorTag$1:return e.name==t.name&&e.message==t.message;case regexpTag$1:case stringTag$1:return e==t+"";case mapTag$2:var o=mapToArray;case setTag$2:var l=a&COMPARE_PARTIAL_FLAG$4;if(o||(o=setToArray),e.size!=t.size&&!l)return!1;var h=s.get(e);if(h)return h==t;a|=COMPARE_UNORDERED_FLAG$2,s.set(e,t);var c=equalArrays$1(o(e),o(t),a,i,n,s);return s.delete(e),c;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var _equalByTag=equalByTag$1;function arrayPush$2(e,t){for(var r=-1,a=t.length,i=e.length;++r<a;)e[i+r]=t[r];return e}var _arrayPush=arrayPush$2,arrayPush$1=_arrayPush,isArray$5=isArray_1;function baseGetAllKeys$1(e,t,r){var a=t(e);return isArray$5(e)?a:arrayPush$1(a,r(e))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(e,t){for(var r=-1,a=null==e?0:e.length,i=0,n=[];++r<a;){var s=e[r];t(s,r,e)&&(n[i++]=s)}return n}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(e){return null==e?[]:(e=Object(e),arrayFilter(nativeGetSymbols(e),(function(t){return propertyIsEnumerable$1.call(e,t)})))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$3(e)&&baseGetTag$2(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$2(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable.call(e,"callee")},isArguments_1=isArguments$2,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;!function(e,t){var r=_root,a=stubFalse_1,i=t&&!t.nodeType&&t,n=i&&e&&!e.nodeType&&e,s=n&&n.exports===i?r.Buffer:void 0,o=(s?s.isBuffer:void 0)||a;e.exports=o}(isBuffer$2,isBuffer$2.exports);var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(e,t){var r=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==r||"symbol"!=r&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}var _isIndex=isIndex$2,MAX_SAFE_INTEGER=9007199254740991;function isLength$3(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$1=_baseGetTag,isLength$2=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(e){return isObjectLike$1(e)&&isLength$2(e.length)&&!!typedArrayTags[baseGetTag$1(e)]}typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(e){return function(t){return e(t)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};!function(e,t){var r=_freeGlobal,a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,n=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||n&&n.binding&&n.binding("util")}catch(e){}}();e.exports=s}(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtil.exports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$4=isArray_1,isBuffer$1=isBuffer$2.exports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(e,t){var r=isArray$4(e),a=!r&&isArguments$1(e),i=!r&&!a&&isBuffer$1(e),n=!r&&!a&&!i&&isTypedArray$1(e),s=r||a||i||n,o=s?baseTimes(e.length,String):[],l=o.length;for(var h in e)!t&&!hasOwnProperty$4.call(e,h)||s&&("length"==h||i&&("offset"==h||"parent"==h)||n&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||isIndex$1(h,l))||o.push(h);return o}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$3)}var _isPrototype=isPrototype$1;function overArg$1(e,t){return function(r){return e(t(r))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseKeys$1(e){if(!isPrototype(e))return nativeKeys(e);var t=[];for(var r in Object(e))hasOwnProperty$3.call(e,r)&&"constructor"!=r&&t.push(r);return t}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$2(e){return null!=e&&isLength$1(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$3(e){return isArrayLike$1(e)?arrayLikeKeys(e):baseKeys(e)}var keys_1=keys$3,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects$1(e,t,r,a,i,n){var s=r&COMPARE_PARTIAL_FLAG$3,o=getAllKeys(e),l=o.length;if(l!=getAllKeys(t).length&&!s)return!1;for(var h=l;h--;){var c=o[h];if(!(s?c in t:hasOwnProperty$2.call(t,c)))return!1}var d=n.get(e),p=n.get(t);if(d&&p)return d==t&&p==e;var u=!0;n.set(e,t),n.set(t,e);for(var m=s;++h<l;){var f=e[c=o[h]],g=t[c];if(a)var y=s?a(g,f,c,t,e,n):a(f,g,c,e,t,n);if(!(void 0===y?f===g||i(f,g,r,a,n):y)){u=!1;break}m||(m="constructor"==c)}if(u&&!m){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(u=!1)}return n.delete(e),n.delete(t),u}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root,DataView$1=getNative$3(root$3,"DataView"),_DataView=DataView$1,getNative$2=_getNative,root$2=_root,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root,WeakMap$1=getNative(root,"WeakMap"),_WeakMap=WeakMap$1,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap&&getTag$1(new WeakMap)!=weakMapTag)&&(getTag$1=function(e){var t=baseGetTag(e),r=t==objectTag$1?e.constructor:void 0,a=r?toSource(r):"";if(a)switch(a){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return t});var _getTag=getTag$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$3=isArray_1,isBuffer=isBuffer$2.exports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep$1(e,t,r,a,i,n){var s=isArray$3(e),o=isArray$3(t),l=s?arrayTag:getTag(e),h=o?arrayTag:getTag(t),c=(l=l==argsTag?objectTag:l)==objectTag,d=(h=h==argsTag?objectTag:h)==objectTag,p=l==h;if(p&&isBuffer(e)){if(!isBuffer(t))return!1;s=!0,c=!1}if(p&&!c)return n||(n=new Stack$1),s||isTypedArray(e)?equalArrays(e,t,r,a,i,n):equalByTag(e,t,l,r,a,i,n);if(!(r&COMPARE_PARTIAL_FLAG$2)){var u=c&&hasOwnProperty$1.call(e,"__wrapped__"),m=d&&hasOwnProperty$1.call(t,"__wrapped__");if(u||m){var f=u?e.value():e,g=m?t.value():t;return n||(n=new Stack$1),i(f,g,r,a,n)}}return!!p&&(n||(n=new Stack$1),equalObjects(e,t,r,a,i,n))}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$2(e,t,r,a,i){return e===t||(null==e||null==t||!isObjectLike(e)&&!isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,r,a,baseIsEqual$2,i))}var _baseIsEqual=baseIsEqual$2,Stack=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(e,t,r,a){var i=r.length,n=i,s=!a;if(null==e)return!n;for(e=Object(e);i--;){var o=r[i];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<n;){var l=(o=r[i])[0],h=e[l],c=o[1];if(s&&o[2]){if(void 0===h&&!(l in e))return!1}else{var d=new Stack;if(a)var p=a(h,c,l,e,t,d);if(!(void 0===p?baseIsEqual$1(c,h,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,a,d):p))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject=isObject_1;function isStrictComparable$2(e){return e==e&&!isObject(e)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$1=keys_1;function getMatchData$1(e){for(var t=keys$1(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,isStrictComparable$1(i)]}return t}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(e){var t=getMatchData(e);return 1==t.length&&t[0][2]?matchesStrictComparable$1(t[0][0],t[0][1]):function(r){return r===e||baseIsMatch(r,e,t)}}var _baseMatches=baseMatches$1;function baseHasIn$1(e,t){return null!=e&&t in Object(e)}var _baseHasIn=baseHasIn$1,castPath=_castPath,isArguments=isArguments_1,isArray$2=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$2=_toKey;function hasPath$1(e,t,r){for(var a=-1,i=(t=castPath(t,e)).length,n=!1;++a<i;){var s=toKey$2(t[a]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}return n||++a!=i?n:!!(i=null==e?0:e.length)&&isLength(i)&&isIndex(s,i)&&(isArray$2(e)||isArguments(e))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(e,t){return null!=e&&hasPath(e,t,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(e,t){return isKey$1(e)&&isStrictComparable(t)?matchesStrictComparable(toKey$1(e),t):function(r){var a=get(r,e);return void 0===a&&a===t?hasIn(r,e):baseIsEqual(t,a,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$1(e){return e}var identity_1=identity$1;function baseProperty$1(e){return function(t){return null==t?void 0:t[e]}}var _baseProperty=baseProperty$1,baseGet=_baseGet;function basePropertyDeep$1(e){return function(t){return baseGet(t,e)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity=identity_1,isArray$1=isArray_1,property=property_1;function baseIteratee$2(e){return"function"==typeof e?e:null==e?identity:"object"==typeof e?isArray$1(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}var _baseIteratee=baseIteratee$2,toNumber=toNumber_1,INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$1(e){return e?(e=toNumber(e))===INFINITY||e===-INFINITY?(e<0?-1:1)*MAX_INTEGER:e==e?e:0:0===e?e:0}var toFinite_1=toFinite$1,toFinite=toFinite_1;function toInteger$1(e){var t=toFinite(e),r=t%1;return t==t?r?t-r:t:0}var toInteger_1=toInteger$1,baseFindIndex=_baseFindIndex,baseIteratee$1=_baseIteratee,toInteger=toInteger_1,nativeMax=Math.max;function findIndex(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var i=null==r?0:toInteger(r);return i<0&&(i=nativeMax(a+i,0)),baseFindIndex(e,baseIteratee$1(t),i)}var findIndex_1=findIndex;const Container$8=styled(animated.div)`
|
|
1459
1463
|
overflow: hidden;
|
|
1460
1464
|
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2);
|
|
1461
1465
|
`,List=styled.ul`
|
|
@@ -1632,7 +1636,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1632
1636
|
height: 1.375rem;
|
|
1633
1637
|
width: 1.375rem;
|
|
1634
1638
|
color: ${Color.Neutral[3]};
|
|
1635
|
-
`,Component$4=(e,t)=>{const{onClear:r,...a}=e;return jsxs(Container$7,{children:[jsx(SearchIcon,{}),jsx(SearchInput,{ref:t,...a}),a.value&&jsx(CancelButton,{"aria-label":"Clear search",focusOutline:"browser",onClick:r,children:jsx(CancelIcon,{})})]},"search")},DropdownSearch=forwardRef(Component$4),DropdownList=({listItems:e,listExtractor:t,valueExtractor:r,onSelectItem:a,listStyleWidth:i,visible:n,enableSearch:s,searchPlaceholder:o="Search",onSearch:l,searchFunction:h,onDismiss:
|
|
1639
|
+
`,Component$4=(e,t)=>{const{onClear:r,...a}=e;return jsxs(Container$7,{children:[jsx(SearchIcon,{}),jsx(SearchInput,{ref:t,...a}),a.value&&jsx(CancelButton,{"aria-label":"Clear search",focusOutline:"browser",onClick:r,children:jsx(CancelIcon,{})})]},"search")},DropdownSearch=forwardRef(Component$4),DropdownList=({listItems:e,listExtractor:t,valueExtractor:r,onSelectItem:a,listStyleWidth:i,visible:n,enableSearch:s,searchPlaceholder:o="Search",onSearch:l,searchFunction:h,onDismiss:c,multiSelect:d,selectedItems:p,onSelectAll:u,onRetry:m,itemsLoadState:f="success",itemTruncationType:g="end",renderListItem:y,...b})=>{const[v,x]=useState(0),[S,C]=useState(""),[_,T]=useState(e),[$,w]=useState(0),E=useSpring({height:$}),k=useRef(),A=useRef(),P=useRef([]),I=useRef(),M=useRef(v),D=useRef(_),F=e=>{M.current=e,x(e)},R=e=>{D.current=e,T(e)};useEffect((()=>(document.addEventListener("keydown",V),()=>{document.removeEventListener("keydown",V)})),[]),useEffect((()=>{j(S)}),[S]),useEffect((()=>{C(""),n?(w(N()),I&&I.current?(I.current.focus(),F(-1)):P.current[v]&&P.current[v].focus()):w(0)}),[n]),useEffect((()=>{if(n){const e=N();w(e)}}),[_]),useEffect((()=>{R(e),C(""),F(0)}),[e]);const L=e=>t?t(e):e.toString(),O=e=>{const r=t?t(e):e.toString();let a=0;return A&&A.current&&(a=A.current.getBoundingClientRect().width-100),StringHelper.shouldTruncateToTwoLines("string"==typeof r?r:r.title,a)},B=e=>findIndex_1(p,e)>-1,j=t=>{if(""===t)R(e);else if(h){const e=h(t);R(e)}else{const r=e.filter((e=>{const r=L(e),a="object"==typeof r?r.title.toLowerCase():r.toLowerCase();return"object"==typeof r&&r.secondaryLabel?a.includes(t.trim().toLowerCase())||r.secondaryLabel.includes(t.trim().toLowerCase()):a.includes(t.trim().toLowerCase())}));R(r)}},N=()=>A&&A.current?A.current.getBoundingClientRect().height:0,V=e=>{if(k&&k.current.contains(e.target))switch(e.code){case"ArrowDown":if(M.current<D.current.length-1){const e=M.current+1;P.current[e].focus(),F(e)}break;case"ArrowUp":if(M.current>0){const e=M.current-1;P.current[e].focus(),F(M.current-1)}break;case"Escape":c&&c()}},H=(e,t)=>{e.preventDefault(),a&&a(t,(e=>r?r(e):e)(t))},z=e=>{const t=e.target.value;C(t),l&&l()},G=()=>{C(""),l&&l()},W=()=>{m&&m()},U=e=>{const t=L(e),r="string"==typeof t?t:t.title;return jsxs(TruncateContainer,{"data-testid":"truncate-middle-container",children:[jsx(TruncateFirstLine,{children:r}),jsxs(TruncateSecondLine,{children:[" ",r]})]})},q=e=>{const t=L(e);return"string"==typeof t?jsx(Fragment,{children:t}):jsxs(Fragment,{children:[t.title,t.secondaryLabel&&jsx(SecondaryLabel,{children:t.secondaryLabel})]})},Q=()=>{if(!m||m&&"success"===f)return _.map(((e,t)=>jsx(ListItem,{checked:B(e)&&!d,children:jsxs(ListItemSelector,{onClick:t=>{H(t,e)},ref:e=>P.current[t]=e,"data-testid":"list-item",type:"button",tabIndex:n?0:-1,multiSelect:d,children:[d&&jsx(ListCheckbox,{checked:B(e),displaySize:"small"}),y?y(e,{selected:B(e)}):jsx(Label$1,{truncateType:g,children:"middle"===g&&O(e)?U(e):q(e)})]})},((e,t)=>`item_${t}__${r?r(e):e}`)(e,t))))},Y=()=>{if(d&&_.length>0&&!S&&"success"===f)return jsx(SelectAllContainer,{children:jsx(DropdownCommonButton,{onClick:u,children:0===p.length?"Select all":"Unselect all"})},"selectAll")},K=()=>{if(S&&0===_.length)return jsxs(ResultStateContainer,{"data-testid":"list-no-results",children:[jsx(LabelIcon,{"data-testid":"no-result-icon"}),jsx(ResultStateText,{children:"No results found."})]},"noResults")},X=()=>{if(m&&"loading"===f)return jsxs(ResultStateContainer,{"data-testid":"list-loading",children:[jsx(Spinner,{$buttonStyle:"secondary",size:24}),jsx(ResultStateText,{children:"Loading..."})]},"loading")},Z=()=>{if(m&&"fail"===f)return jsxs(ResultStateContainer,{"data-testid":"list-fail",children:[jsx(LabelIcon,{"data-testid":"load-error-icon"}),jsx(ResultStateText,{children:"Failed to load."}),jsx(DropdownCommonButton,{onClick:W,children:"Try again."})]},"noResults")};return jsx(Container$8,{style:E,"data-testid":n?"dropdown-container":"dropdown-container-hidden",ref:k,children:(()=>{if(n)return jsxs(List,{ref:A,"data-testid":"dropdown-list",width:i,role:"list",...b,children:[(s||h)&&"success"===f?jsx(DropdownSearch,{ref:I,onChange:z,value:S,placeholder:o,"data-testid":"search-input","aria-label":"search-input",tabIndex:n?0:-1,onClear:G}):null,Y(),K(),X(),Z(),Q()]})})()})},BORDER_RADIUS$2="4px",Wrapper$b=styled.div`
|
|
1636
1640
|
position: relative;
|
|
1637
1641
|
min-height: 3rem;
|
|
1638
1642
|
height: 3rem;
|
|
@@ -1677,7 +1681,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1677
1681
|
|
|
1678
1682
|
:focus-within {
|
|
1679
1683
|
border: 1px solid ${Color.Accent.Light[1]};
|
|
1680
|
-
box-shadow:
|
|
1684
|
+
box-shadow: ${DesignToken.InputBoxShadow};
|
|
1681
1685
|
}
|
|
1682
1686
|
|
|
1683
1687
|
${e=>e.expanded?css`
|
|
@@ -1718,7 +1722,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1718
1722
|
|
|
1719
1723
|
:focus-within {
|
|
1720
1724
|
border: 1px solid ${Color.Validation.Red.Border(e)};
|
|
1721
|
-
box-shadow:
|
|
1725
|
+
box-shadow: ${DesignToken.InputErrorBoxShadow};
|
|
1722
1726
|
}
|
|
1723
1727
|
`:void 0}
|
|
1724
1728
|
`,IconContainer$1=styled.div`
|
|
@@ -1799,7 +1803,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1799
1803
|
width: 1px;
|
|
1800
1804
|
height: 1.25rem;
|
|
1801
1805
|
background: ${Color.Neutral[5]};
|
|
1802
|
-
`,InputGroupListAddon=({addon:e,error:t,onChange:r,...a})=>{const{value:i,placeholder:n,options:s,enableSearch:o,searchFunction:l,searchPlaceholder:h,valueExtractor:
|
|
1806
|
+
`,InputGroupListAddon=({addon:e,error:t,onChange:r,...a})=>{const{value:i,placeholder:n,options:s,enableSearch:o,searchFunction:l,searchPlaceholder:h,valueExtractor:c,listExtractor:d,displayValueExtractor:p,selectedOption:u,onSelectOption:m,onHideOptions:f,onShowOptions:g,"data-selector-testid":y}=e.attributes,[b,v]=useState(i),[x,S]=useState(!1),C=useRef(),_=useRef();useEffect((()=>{v(i)}),[i]),useEffect((()=>(document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)})),[]);const T=e=>{!e&&f&&f(),e&&g&&g()},$=e=>{if(!a.disabled){if(C&&C.current.contains(e.target))return;S(!1),T(!1)}},w=e=>{e.preventDefault(),a.disabled||(S(!x),T(!x))},E=(e,t)=>{v(e),S(!1),T(!1),_&&_.current.focus(),m&&m(e,t)},k=e=>{r&&r(e)};return jsx(Wrapper$a,{children:jsxs(ElementBoundary,{ref:C,disabled:a.disabled,error:t&&!x,expanded:x,children:[jsxs(DisplayContainer,{$expanded:x,children:[jsx(Selector,{ref:_,type:"button","data-testid":y||"addon-selector",onClick:w,children:jsxs(Fragment,{children:[jsxs(LabelContainer$1,{children:[n&&!b&&jsx(PlaceholderLabel,{children:n}),b&&jsx(ValueLabel,{"data-testid":"selector-label",children:p?p(b):c?c(b):b.toString()})]}),jsx(IconContainer,{$expanded:x,children:jsx(StyledChevronIcon,{})})]})}),jsx(Divider,{}),jsx(MainInput,{...a,error:t,onChange:k,"data-testid":a["data-testid"]||"input"})]}),s&&s.length>0?jsx(DropdownList,{listItems:s,selectedItems:u?[u]:[],onSelectItem:E,valueExtractor:c,listExtractor:d,visible:x,enableSearch:o,searchFunction:l,searchPlaceholder:h,"data-testid":"dropdown-list"}):null]})})},Component$3=({addon:e,error:t,...r},a)=>{const i=()=>jsx(Container$9,{disabled:r.disabled,$error:t,$readOnly:r.readOnly,"data-testid":r["data-testid"],children:jsx(MainInput,{ref:a,...r,"data-testid":"input"})});if(!e)return i();{const{type:a="label",position:n="left"}=e,{allowClear:s}=r;switch(a){case"list":{const a=e.attributes;return a.options&&a.options.length>0?jsx(InputGroupListAddon,{addon:e,error:t,...r}):i()}case"custom":{const a=e.attributes;return a.children?jsxs(Container$9,{$error:t,disabled:r.disabled,$readOnly:r.readOnly,"data-testid":r["data-testid"],$position:n,children:[jsx(AddOnContainer,{"data-testid":"addon",disabled:r.disabled,$readOnly:r.readOnly,children:a.children}),jsx(MainInput,{...r,allowClear:s&&"right"!==n,error:t,$position:n,"data-testid":"input"})]}):i()}default:{const a=e.attributes;return a.value?jsxs(Container$9,{disabled:r.disabled,$error:t,$readOnly:r.readOnly,"data-testid":r["data-testid"],$position:n,children:[jsx(AddOnContainer,{"data-testid":"addon",disabled:r.disabled,$readOnly:r.readOnly,children:a.value}),jsx(MainInput,{...r,allowClear:s&&"right"!==n,error:t,$position:n,"data-testid":"input"})]}):i()}}}},InputGroup=React__default.forwardRef(Component$3),Component$2=(e,t)=>{const{label:r,errorMessage:a,id:i="form-field-group","data-error-testid":n,"data-testid":s,...o}=e;return jsx(FormWrapper,{id:i,label:r,errorMessage:a,disabled:o.disabled,"data-error-testid":n,children:jsx(InputGroup,{ref:t,id:`${i}-base`,"data-testid":s||i,error:!!a,...o})})},FormInputGroup=React__default.forwardRef(Component$2),InputSelectWrapper=({children:e,show:t,error:r,disabled:a,testId:i,onBlur:n,readOnly:s})=>{const o=useRef(),l=useRef(t);useEffect((()=>(document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)})),[]),useEffect((()=>{l.current=t}),[t]);const h=e=>{if(!a){if(o&&o.current.contains(e.target))return;l.current&&n()}};return jsx(Wrapper$b,{children:jsx(ElementBoundary$1,{ref:o,error:r&&!t,disabled:a,$readOnly:s,expanded:t,"data-testid":i,children:e})})},InputMultiSelect=({selectedOptions:e,placeholder:t="Select",options:r,disabled:a,error:i,"data-testid":n,enableSearch:s=!1,searchFunction:o,searchPlaceholder:l,valueExtractor:h,listExtractor:c,onSelectOptions:d,listStyleWidth:p,onShowOptions:u,onHideOptions:m,onRetry:f,optionsLoadState:g="success",optionTruncationType:y="end",...b})=>{const[v,x]=useState(e||[]),[S,C]=useState(!1),_=useRef();useEffect((()=>{x(e||[])}),[e]);const T=(e,t)=>{const r=[...v],a=findIndex_1(v,(e=>(h?h(e):e)===t));a>-1?r.splice(a,1):r.push(e),x(r),E(!1),_&&_.current.focus(),d&&d(r)},$=()=>{S&&(C(!1),E(!1)),_&&_.current.focus()},w=()=>{v&&v.length>0?(x([]),d([])):(x(r),d(r))},E=e=>{!e&&m&&m(),e&&u&&u()};return jsxs(InputSelectWrapper,{show:S,error:i&&!S,disabled:a,testId:n,onBlur:()=>{C(!1),E(!1)},children:[jsx(Selector$1,{ref:_,type:"button","data-testid":"selector",onClick:e=>{e.preventDefault(),a||(C(!S),E(!S))},...b,children:jsxs(Fragment,{children:[jsx(LabelContainer$2,{children:v&&0!==v.length?jsx(ValueLabel$1,{children:v&&0!=v.length?`${v.length} selected`:t}):jsx(PlaceholderLabel$1,{truncateType:y,children:t})}),jsx(IconContainer$1,{expanded:S,children:jsx(StyledChevronIcon$1,{})})]})}),S&&jsx(Divider$1,{}),r&&r.length>0||f?jsx(DropdownList,{listItems:r,onSelectItem:T,onDismiss:$,valueExtractor:h,listExtractor:c,listStyleWidth:p,visible:S,enableSearch:s,searchFunction:o,searchPlaceholder:l,"data-testid":"dropdown-list",multiSelect:!0,selectedItems:v,onSelectAll:w,onRetry:f,itemsLoadState:g,itemTruncationType:y}):null]})},FormMultiSelect=({label:e,errorMessage:t,id:r="form-multi-select","data-error-testid":a,"data-testid":i,enableSearch:n=!1,...s})=>jsx(FormWrapper,{id:r,label:e,errorMessage:t,"data-error-testid":a,disabled:s.disabled,children:jsx(InputMultiSelect,{id:`${r}-base`,"data-testid":i||r,error:!!t,enableSearch:n,...s})}),InputSelect=({selectedOption:e,placeholder:t="Select",options:r,disabled:a,error:i,"data-testid":n,id:s,enableSearch:o=!1,searchFunction:l,searchPlaceholder:h,valueExtractor:c,valueToStringFunction:d,listExtractor:p,displayValueExtractor:u,onSelectOption:m,listStyleWidth:f,onShowOptions:g,onHideOptions:y,onRetry:b,optionsLoadState:v="success",optionTruncationType:x="end",renderCustomSelectedOption:S,renderListItem:C,..._})=>{const[T,$]=useState(e),[w,E]=useState(!1),k=useRef(),A=useRef();useEffect((()=>{$(e)}),[e]);const P=(e,t)=>{$(e),E(!1),D(!1),k&&k.current.focus(),m&&m(e,t)},I=()=>{w&&(E(!1),D(!1)),k&&k.current.focus()},M=e=>{if("middle"===x){let t=0;return A&&A.current&&(t=A.current.getBoundingClientRect().width),StringHelper.truncateOneLine((e=>"string"==typeof e?e:d(e)||e.toString())(e),t,120,8)}return e},D=e=>{!e&&y&&y(),e&&g&&g()};return jsxs(InputSelectWrapper,{show:w,error:i&&!w,disabled:a,readOnly:_.readOnly,testId:n,onBlur:()=>{E(!1),D(!1)},children:[jsx(Selector$1,{ref:k,type:"button","data-testid":s||"selector",onClick:e=>{e.preventDefault(),a||_.readOnly||(E(!w),D(!w))},..._,children:jsxs(Fragment,{children:[jsx(LabelContainer$2,{ref:A,children:T?S?S(T):jsx(ValueLabel$1,{truncateType:x,children:M(u?u(T):c?c(T):T.toString())}):jsx(PlaceholderLabel$1,{truncateType:x,children:t})}),!_.readOnly&&jsx(IconContainer$1,{expanded:w,children:jsx(StyledChevronIcon$1,{})})]})}),w&&jsx(Divider$1,{}),r&&r.length>0?jsx(DropdownList,{listItems:r,onSelectItem:P,onDismiss:I,valueExtractor:c,listExtractor:p,listStyleWidth:f,visible:w,enableSearch:o,searchPlaceholder:h,searchFunction:l,"data-testid":"dropdown-list",selectedItems:T?[T]:[],onRetry:b,itemsLoadState:v,itemTruncationType:x,renderListItem:C}):null]})},FormSelect=({label:e,errorMessage:t,id:r="form-select","data-error-testid":a,"data-testid":i,enableSearch:n=!1,...s})=>jsx(FormWrapper,{id:r,label:e,errorMessage:t,"data-error-testid":a,disabled:s.disabled,children:jsx(InputSelect,{id:`${r}-base`,"data-testid":i||r,error:!!t,enableSearch:n,...s})}),CounterLabel=styled(Text.H6)`
|
|
1803
1807
|
text-align: right;
|
|
1804
1808
|
|
|
1805
1809
|
${e=>{if(e.disabled)return css`
|
|
@@ -1824,7 +1828,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1824
1828
|
:active {
|
|
1825
1829
|
outline: none;
|
|
1826
1830
|
border: 1px solid ${Color.Accent.Light[1]};
|
|
1827
|
-
box-shadow:
|
|
1831
|
+
box-shadow: ${DesignToken.InputBoxShadow};
|
|
1828
1832
|
}
|
|
1829
1833
|
|
|
1830
1834
|
::placeholder,
|
|
@@ -1858,7 +1862,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1858
1862
|
:focus,
|
|
1859
1863
|
:active {
|
|
1860
1864
|
border: 1px solid ${Color.Validation.Red.Border(e)};
|
|
1861
|
-
box-shadow:
|
|
1865
|
+
box-shadow: ${DesignToken.InputErrorBoxShadow};
|
|
1862
1866
|
}
|
|
1863
1867
|
`:void 0}
|
|
1864
1868
|
`,TextareaBaseComponent=({value:e,disabled:t,error:r,rows:a=5,...i},n)=>jsx(Element$1,{ref:n,disabled:t,value:e,error:r,rows:a,...i}),TextareaBase=React__default.forwardRef(TextareaBaseComponent),TextareaComponent=({value:e,disabled:t,rows:r=5,onChange:a,...i},n)=>{const[s,o]=useState(e);useEffect((()=>{o(e)}),[e]);return jsxs(Wrapper$9,{children:[jsx(Element$1,{ref:n,disabled:t,value:s,rows:r||5,onChange:e=>{const t=e.target.value;i.maxLength&&t.length>i.maxLength||(o(t),e.target.value=t,a&&a(e))},...i}),i.maxLength&&jsx(TextareaCounter,{disabled:t,value:s,maxLength:i.maxLength,renderCustomCounter:i.renderCustomCounter})]})},Textarea=React__default.forwardRef(TextareaComponent),LabelContainer=styled.div`
|
|
@@ -1871,7 +1875,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1871
1875
|
margin-right: 0.75rem;
|
|
1872
1876
|
`,ErrorMessageLabel=styled(ErrorMessage)`
|
|
1873
1877
|
margin-top: 0;
|
|
1874
|
-
`,FormTextareaComponent=(e,t)=>{const{label:r,value:a,errorMessage:i,id:n="form-textarea","data-error-testid":s,"data-testid":o,onChange:l,...h}=e,[d
|
|
1878
|
+
`,FormTextareaComponent=(e,t)=>{const{label:r,value:a,errorMessage:i,id:n="form-textarea","data-error-testid":s,"data-testid":o,onChange:l,...h}=e,[c,d]=useState(a);useEffect((()=>{d(a)}),[a]);return jsxs(FormWrapper,{id:n,label:r,disabled:h.disabled,children:[jsx(TextareaBase,{id:`${n}-base`,"data-testid":o||n,value:c,error:!!i,onChange:e=>{const t=e.target.value;h.maxLength&&t.length>h.maxLength||(d(t),e.target.value=t,l&&l(e))},ref:t,...h}),jsxs(LabelContainer,{children:[i&&jsx(ErrorMessageContainer,{children:jsx(ErrorMessageLabel,{weight:"semibold","data-testid":s||(n?`${n}-error-message`:"error-message"),children:i})}),h.maxLength&&jsx(TextareaCounter,{disabled:h.disabled,value:c,maxLength:h.maxLength,renderCustomCounter:h.renderCustomCounter})]})]})},FormTextarea=React__default.forwardRef(FormTextareaComponent);var TimepickerHelper;!function(e){e.getTimeValues=(e,t)=>{const r={hour:"",minute:"",period:"am"};if(!t)return r;try{if("24hr"===e){const a=convertToPlain(t,e);r.minute=StringHelper.padValue(a.minute);const i=parseInt(a.hour);0===Math.floor(i/12)?(r.period="am",r.hour=0===i?"12":StringHelper.padValue(i.toString())):(r.period="pm",r.hour=12===i?i.toString():StringHelper.padValue((i-12).toString()))}else{const a=convertToPlain(t,e);r.hour=StringHelper.padValue(a.hour),r.minute=StringHelper.padValue(a.minute),r.period="am"===a.period.toLowerCase()?"am":"pm"}return r}catch(e){return r}},e.updateMinutes=(e,t)=>{const r=parseInt(e);if(isNaN(r))return"add"===t?StringHelper.padValue("0"):"55";const a=Math.floor(r/5),i=(("add"===t?a+1:r%5==0?a-1:a)%12+12)%12;return StringHelper.padValue((5*i).toString())},e.updateHours=(e,t)=>{const r=parseInt(e);if(isNaN(r))return"add"===t?StringHelper.padValue("1"):"12";const a="add"===t?r+1:r-1;return a<=12&&a>0?StringHelper.padValue(a.toString()):13===a?StringHelper.padValue("1"):"12"},e.convertTo24HourFormat=e=>{const t=parseInt(e.hour);let r;return r="pm"===e.period?12===t?t.toString():(t+12).toString():12===t?"00":e.hour,`${r}:${e.minute}`},e.convertHourTo12HourFormat=e=>{const t=parseInt(e),r=t%12==0?12..toString():(t%12).toString();return StringHelper.padValue(r)},e.formatValue=(e,t)=>{try{const r=convertToPlain(e,t),a=StringHelper.padValue(r.hour);let i=`${a}:${StringHelper.padValue(r.minute)}`;return"12hr"===t?(i+=r.period.toLowerCase(),i):i}catch(e){return""}}}(TimepickerHelper||(TimepickerHelper={}));const isValidHour=(e,t)=>{const r=parseInt(e);return"24hr"===t?r>=0&&r<=23:r>=1&&r<=12},isValidMinutes=e=>{const t=parseInt(e);return t>=0&&t<=59},isValidTimePeriod=e=>"am"===e.toLowerCase()||"pm"===e.toLowerCase(),convertToPlain=(e,t)=>{const r=e.split(":"),a=new Error("Invalid format");if("12hr"===t){if(2!==r.length||4!==r[1].length)throw a;const e=r[1].substring(0,2),i=r[1].substring(2);if(!isValidHour(r[0],t)||!isValidMinutes(e)||!isValidTimePeriod(i))throw a;return{hour:r[0],minute:e,period:r[1].substring(2)}}if(2!==r.length)throw a;if(!isValidHour(r[0],t)||!isValidMinutes(r[1]))throw a;return{hour:r[0],minute:r[1]}},Container$6=styled.div`
|
|
1875
1879
|
position: relative;
|
|
1876
1880
|
display: inline-flex;
|
|
1877
1881
|
align-items: center;
|
|
@@ -1885,7 +1889,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1885
1889
|
cursor: pointer;
|
|
1886
1890
|
|
|
1887
1891
|
:hover {
|
|
1888
|
-
box-shadow: 0 0 4px 1px
|
|
1892
|
+
box-shadow: 0 0 4px 1px ${Color.Shadow.Accent};
|
|
1889
1893
|
}
|
|
1890
1894
|
|
|
1891
1895
|
${e=>e.disabled&&!e.$selected?css`
|
|
@@ -1931,7 +1935,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1931
1935
|
`:e.$selected?css`
|
|
1932
1936
|
color: ${Color.Primary(e)};
|
|
1933
1937
|
`:void 0}
|
|
1934
|
-
`,ToggleButton$1=({disabled:e,checked:t,onChange:r,type:a="checkbox",children:i,className:n,...s})=>{const[o,l]=useState(t),h=useRef();useEffect((()=>{l(t)}),[t]);const
|
|
1938
|
+
`,ToggleButton$1=({disabled:e,checked:t,onChange:r,type:a="checkbox",children:i,className:n,...s})=>{const[o,l]=useState(t),h=useRef();useEffect((()=>{l(t)}),[t]);const c=useCallback((t=>{e||("radio"!==a||o||l(!0),"checkbox"===a&&l((e=>!e)),r&&r(t))}),[]);return jsxs(Container$6,{$selected:o,disabled:e,role:"checkbox","aria-checked":o,className:n,children:[jsx(Input$1,{ref:h,type:"checkbox","data-testid":"toggle-button-input",disabled:e,onChange:c,checked:o,...s}),jsx(Label,{$weight:o?"bold":"regular",$selected:o,disabled:e,"data-testid":"toggle-button-label",children:i})]})},BORDER_RADIUS="4px",AnimatedDiv=styled(animated.div)`
|
|
1935
1939
|
position: absolute;
|
|
1936
1940
|
top: 3.5rem;
|
|
1937
1941
|
left: 0;
|
|
@@ -2020,7 +2024,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
2020
2024
|
:active {
|
|
2021
2025
|
outline: none;
|
|
2022
2026
|
border: 1px solid ${Color.Accent.Light[1]};
|
|
2023
|
-
box-shadow: inset 0 0 5px 1px
|
|
2027
|
+
box-shadow: inset 0 0 5px 1px ${Color.Shadow.Accent};
|
|
2024
2028
|
}
|
|
2025
2029
|
|
|
2026
2030
|
:focus::placeholder {
|
|
@@ -2072,7 +2076,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
2072
2076
|
${MediaQuery.MaxWidth.tablet} {
|
|
2073
2077
|
width: 50%;
|
|
2074
2078
|
}
|
|
2075
|
-
`;var EInputButtonName,EInputName,ETimePeriodToggleName;!function(e){e.HOUR_UP="hour-up",e.HOUR_DOWN="hour-down",e.MINUTE_UP="minute-up",e.MINUTE_DOWN="minute-down"}(EInputButtonName||(EInputButtonName={})),function(e){e.HOUR="hour",e.MINUTE="minute"}(EInputName||(EInputName={})),function(e){e.AM="am",e.PM="pm"}(ETimePeriodToggleName||(ETimePeriodToggleName={}));const TimepickerDropdown=({id:e,value:t,show:r,format:a,onChange:i,onCancel:n})=>{const s=TimepickerHelper.getTimeValues(a,t),[o,l]=useState(s.hour),[h,
|
|
2079
|
+
`;var EInputButtonName,EInputName,ETimePeriodToggleName;!function(e){e.HOUR_UP="hour-up",e.HOUR_DOWN="hour-down",e.MINUTE_UP="minute-up",e.MINUTE_DOWN="minute-down"}(EInputButtonName||(EInputButtonName={})),function(e){e.HOUR="hour",e.MINUTE="minute"}(EInputName||(EInputName={})),function(e){e.AM="am",e.PM="pm"}(ETimePeriodToggleName||(ETimePeriodToggleName={}));const TimepickerDropdown=({id:e,value:t,show:r,format:a,onChange:i,onCancel:n})=>{const s=TimepickerHelper.getTimeValues(a,t),[o,l]=useState(s.hour),[h,c]=useState(s.minute),[d,p]=useState(s.period),u=useRef(),m=useRef(),f=useResizeDetector();useEffect((()=>{if(r&&u.current&&u.current.focus(),r){const{hour:e,minute:r,period:i}=TimepickerHelper.getTimeValues(a,t);l(e),c(r),p(i)}}),[r,t,a]),useEffect((()=>{const e=u.current,t=m.current;return e&&e.addEventListener("keydown",g),t&&t.addEventListener("keydown",g),()=>{e&&e.removeEventListener("keydown",g),t&&t.removeEventListener("keydown",g)}}),[]);const g=e=>{["Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Tab","Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.code)||["Backspace","0","1","2","3","4","5","6","7","8","9"].includes(e.key)||e.preventDefault()},y=useCallback((e=>{switch(e.currentTarget.name){case EInputButtonName.MINUTE_UP:c(TimepickerHelper.updateMinutes(h,"add"));break;case EInputButtonName.MINUTE_DOWN:c(TimepickerHelper.updateMinutes(h,"minus"));break;case EInputButtonName.HOUR_UP:l(TimepickerHelper.updateHours(o,"add"));break;case EInputButtonName.HOUR_DOWN:l(TimepickerHelper.updateHours(o,"minus"))}}),[o,h]),b=e=>{e.target.select()},v=e=>{const t=e.target.value;switch(e.target.name){case EInputName.HOUR:t.length<=2&&l(t);break;case EInputName.MINUTE:t.length<=2&&c(t)}},x=e=>{const t=parseInt(e.target.value);if(!isNaN(t))switch(e.target.name){case EInputName.HOUR:{const r=t>23||t<0?s.hour:TimepickerHelper.convertHourTo12HourFormat(e.target.value);l(r);break}case EInputName.MINUTE:{const r=t>59||t<0?s.minute:e.target.value;c(StringHelper.padValue(r));break}}},S=e=>{switch(e.target.name){case ETimePeriodToggleName.AM:p("am");break;case ETimePeriodToggleName.PM:p("pm")}},C=t=>e?`${e}-${t}`:t,_=useSpring({height:r?f.height+32:0});return jsx(AnimatedDiv,{"data-testid":"animated-dropdown-wrapper",style:_,children:jsxs(Container$5,{ref:f.ref,"data-testid":C("timepicker-dropdown"),children:[jsxs(InputSection,{children:[jsxs(HourMinuteSection,{children:[jsxs(InputContainer$1,{children:[jsx(SwitchButton,{"aria-label":"increase hour",name:EInputButtonName.HOUR_UP,type:"button",tabIndex:-1,onClick:y,"data-testid":C("hour-increment-button"),children:jsx(ChevronUpIcon,{})}),jsx(TimeInput,{"aria-label":"hour",type:"number",name:EInputName.HOUR,id:"hour",maxLength:2,pattern:"[0-9]{2}",ref:u,value:o,onFocus:b,onChange:v,onBlur:x,min:1,max:12,placeholder:"HH","data-testid":C("hour-input")}),jsx(SwitchButton,{"aria-label":"decrease hour",name:EInputButtonName.HOUR_DOWN,type:"button",tabIndex:-1,onClick:y,"data-testid":C("hour-decrement-button"),children:jsx(ChevronDownIcon,{})})]}),jsx(DividerLabel,{children:":"}),jsxs(InputContainer$1,{children:[jsx(SwitchButton,{"aria-label":"increase minute",name:EInputButtonName.MINUTE_UP,type:"button",tabIndex:-1,onClick:y,"data-testid":C("minute-increment-button"),children:jsx(ChevronUpIcon,{})}),jsx(TimeInput,{"aria-label":"minute",type:"number",name:EInputName.MINUTE,id:"minute",maxLength:2,pattern:"[0-9]{2}",ref:m,value:h,onChange:v,onBlur:x,onFocus:b,min:0,max:59,placeholder:"MM","data-testid":C("minute-input")}),jsx(SwitchButton,{"aria-label":"decrease minute",name:EInputButtonName.MINUTE_DOWN,type:"button",tabIndex:-1,onClick:y,"data-testid":C("minute-decrement-button"),children:jsx(ChevronDownIcon,{})})]})]}),jsxs(TimePeriodSection,{children:[jsx(TimePeriodToggle,{checked:"am"===d,name:ETimePeriodToggleName.AM,type:"radio",onChange:S,"data-testid":C("am-toggle"),"aria-label":"AM",children:"AM"}),jsx(TimePeriodToggle,{checked:"pm"===d,name:ETimePeriodToggleName.PM,type:"radio",onChange:S,"data-testid":C("pm-toggle"),"aria-label":"PM",children:"PM"})]})]}),jsxs(ControlSection,{children:[jsx(ControlButton,{"aria-label":"close selector",type:"button",styleType:"secondary",onClick:n,"data-testid":C("cancel-button"),children:"Cancel"}),jsx(ControlButton,{"aria-label":"confirm selection",type:"button",onClick:()=>{let e;e="24hr"===a?TimepickerHelper.convertTo24HourFormat({hour:o,minute:h,period:d}):`${o}:${h}${d}`,i(e)},disabled:""===o||""===h,"data-testid":C("confirm-button"),children:"Confirm"})]})]})})},Wrapper$8=styled.div`
|
|
2076
2080
|
position: relative;
|
|
2077
2081
|
`,InputSelectorElement=styled.input`
|
|
2078
2082
|
${TextStyleHelper.getTextStyle("Body","regular")}
|
|
@@ -2097,12 +2101,12 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
2097
2101
|
border: 1px solid ${Color.Validation.Red.Border(e)};
|
|
2098
2102
|
`:e.error&&e.focused?css`
|
|
2099
2103
|
border: 1px solid ${Color.Validation.Red.Border(e)};
|
|
2100
|
-
box-shadow:
|
|
2104
|
+
box-shadow: ${DesignToken.InputErrorBoxShadow};
|
|
2101
2105
|
`:e.focused?css`
|
|
2102
2106
|
border: 1px solid ${Color.Accent.Light[1]};
|
|
2103
|
-
box-shadow:
|
|
2107
|
+
box-shadow: ${DesignToken.InputBoxShadow};
|
|
2104
2108
|
`:void 0}
|
|
2105
|
-
`,Timepicker=({id:e,disabled:t=!1,error:r,value:a,defaultValue:i,placeholder:n,format:s="24hr",onChange:o,onBlur:l,onSelectionCancel:h,...
|
|
2109
|
+
`,Timepicker=({id:e,disabled:t=!1,error:r,value:a,defaultValue:i,placeholder:n,format:s="24hr",onChange:o,onBlur:l,onSelectionCancel:h,...c})=>{const[d,p]=useState(!1),u=useRef();useEffect((()=>(document.addEventListener("mousedown",f),document.addEventListener("keyup",g),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keyup",g)})),[d]);const m=useCallback((()=>{t||d||p(!0)}),[d]),f=e=>{t||y(e)},g=e=>{if("Tab"===e.code)y(e)},y=e=>{u&&!u.current.contains(e.target)&&d&&(p(!1),l&&l())},b=useCallback((()=>"12hr"===s?"HH:MMam":"HH:MM"),[s,n]);return jsxs(Wrapper$8,{ref:u,id:e,...c,children:[jsx(InputSelectorElement,{onFocus:m,focused:d,readOnly:!0,placeholder:n||b(),value:TimepickerHelper.formatValue(a,s),defaultValue:i,disabled:t,error:r,"data-testid":e?`${e}-timepicker-selector`:"timepicker-selector"}),jsx(TimepickerDropdown,{id:e,show:d,value:a||i,format:s,onCancel:()=>{p(!1),h&&h()},onChange:e=>{p(!1),o&&o(e)}})]})},FormTimepicker=({label:e,errorMessage:t,id:r="form-timepicker","data-error-testid":a,"data-testid":i,...n})=>jsx(FormWrapper,{id:r,label:e,errorMessage:t,disabled:n.disabled,"data-error-testid":a,children:jsx(Timepicker,{id:`${r}-base`,"data-testid":i||r,error:!!t,...n})}),Container$4=styled.div`
|
|
2106
2110
|
display: flex;
|
|
2107
2111
|
position: relative;
|
|
2108
2112
|
align-items: center;
|
|
@@ -2116,7 +2120,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
2116
2120
|
:focus,
|
|
2117
2121
|
:focus-within {
|
|
2118
2122
|
border: 1px solid ${Color.Accent.Light[1]};
|
|
2119
|
-
box-shadow:
|
|
2123
|
+
box-shadow: ${DesignToken.InputBoxShadow};
|
|
2120
2124
|
}
|
|
2121
2125
|
|
|
2122
2126
|
${e=>e.$readOnly?css`
|
|
@@ -2143,7 +2147,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
2143
2147
|
|
|
2144
2148
|
:focus-within {
|
|
2145
2149
|
border: 1px solid ${Color.Validation.Red.Border(e)};
|
|
2146
|
-
box-shadow:
|
|
2150
|
+
box-shadow: ${DesignToken.InputErrorBoxShadow};
|
|
2147
2151
|
}
|
|
2148
2152
|
`:void 0}
|
|
2149
2153
|
`,InputContainer=styled.div`
|
|
@@ -2190,15 +2194,9 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
2190
2194
|
${e=>{if(e.$hide)return css`
|
|
2191
2195
|
color: ${Color.Neutral[3]};
|
|
2192
2196
|
`}}
|
|
2193
|
-
`,UnitNumberInput=({disabled:e,error:t,value:r,onChange:a,onBlur:i,onChangeRaw:n,onBlurRaw:s,readOnly:o,placeholder:l="00-8888",...h})=>{const[d,c]=useState(""),[p,u]=useState(""),[m,f]=useState("none"),g=useRef(null),y=useRef(null),b=useRef(null),v=useRef(d),C=useRef(p),x=useRef(m),S=e=>{v.current=e,c(e)},_=e=>{C.current=e,u(e)},T=e=>{x.current=e,f(e)};useEffect((()=>(document.addEventListener("mousedown",$),g.current&&g.current.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",$),g.current&&g.current.removeEventListener("keydown",w)})),[m]),useEffect((()=>{"floor"===m&&3===d.length&&b.current&&b.current.focus()}),[d]),useEffect((()=>{M(r)}),[r]);const $=t=>{e||o||g&&g.current.contains(t.target)||"none"!==x.current&&(T("none"),L())},w=e=>{"unit"===e.target.name&&"Tab"===e.code&&(T("none"),L())},E=e=>{T(e.target.name),e.target.select()},k=e=>{const t=e.target.name,r=e.target.value;"floor"===t?S(P(r)):_(P(r))},A=e=>{const t=e.target.name,r=e.target.value.toLocaleUpperCase().replace(/[^0-9A-Za-z]/,"");"floor"===t?(S(r),I(r,t)):(_(r),I(r,t))},P=e=>/^[0-9]$/.test(e)?StringHelper.padValue(e,!0):e.toLocaleUpperCase(),M=e=>{if(e!==INVALID_VALUE)if(void 0===e||0===e.length)S(""),_("");else{const t=e.split("-");if(2===t.length){const e=t[0],r=t[1];S("floor"===m?e:P(e)),_("unit"===m?r:P(r))}}},I=(e,t)=>{if(!a&&!n)return;const r={floor:v.current,unit:C.current};if(r[t]=e,a){const e=D(r);a(e)}n&&n([r.floor,r.unit])},L=()=>{if(!i&&!s)return;const e={floor:P(v.current),unit:P(C.current)};if(i){const t=D(e);i(t)}s&&s([e.floor,e.unit])},D=e=>{const t=[e.floor,e.unit];return e.floor.length>0&&e.unit.length>0?t.join("-"):t.every((e=>""===e))?"":INVALID_VALUE},F=e=>e.split("-");return jsxs(Container$4,{ref:g,onClick:()=>{"none"===m&&y.current&&y.current.focus()},disabled:e,$error:t,$readOnly:o,"data-testid":h["data-testid"],children:[jsx(AddOnContainer,{"data-testid":"addon",disabled:e,$readOnly:o,children:"#"}),jsxs(InputContainer,{$readOnly:o,children:[jsx(FloorInput,{name:"floor",maxLength:3,value:d,ref:y,onFocus:E,onBlur:k,onChange:A,disabled:e,readOnly:o,type:"text",pattern:"[0-9A-Z]{2,3}","data-testid":"floor-input","aria-label":"floor-input",placeholder:"floor"!==m||o?F(l)[0]:""}),jsx(UnitNumberDivider,{$hide:0===d.length,children:"-"}),jsx(UnitInput,{name:"unit",maxLength:5,value:p,ref:b,onFocus:E,onBlur:k,onChange:A,onKeyDown:e=>{"Backspace"!==e.code&&"Backspace"!==e.key||"unit"===m&&0===p.length&&y.current.focus()},disabled:e,readOnly:o,type:"text",pattern:"[0-9A-Z]{2,5}","data-testid":"unit-input","aria-label":"unit-input",placeholder:"unit"!==m||o?F(l)[1]:""})]})]})},INVALID_VALUE="Invalid unit number",FormUnitNumberInput=({label:e,errorMessage:t,id:r="form-unit-number-input","data-error-testid":a,"data-testid":i,...n})=>jsx(FormWrapper,{id:r,label:e,errorMessage:t,"data-error-testid":a,disabled:n.disabled,children:jsx(UnitNumberInput,{id:`${r}-base`,"data-testid":i||r,error:!!t,...n})});function arrayReduce$2(e,t,r,a){var i=-1,n=null==e?0:e.length;for(a&&n&&(r=e[++i]);++i<n;)r=t(r,e[i],i,e);return r}var _arrayReduce=arrayReduce$2;function createBaseFor$1(e){return function(t,r,a){for(var i=-1,n=Object(t),s=a(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===r(n[l],l,n))break}return t}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseFor=_baseFor,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike=isArrayLike_1;function createBaseEach$1(e,t){return function(r,a){if(null==r)return r;if(!isArrayLike(r))return e(r,a);for(var i=r.length,n=t?i:-1,s=Object(r);(t?n--:++n<i)&&!1!==a(s[n],n,s););return r}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1;function baseReduce$1(e,t,r,a,i){return i(e,(function(e,i,n){r=a?(a=!1,e):t(r,e,i,n)})),r}var _baseReduce=baseReduce$1,arrayReduce$1=_arrayReduce,baseEach=_baseEach,baseIteratee=_baseIteratee,baseReduce=_baseReduce,isArray=isArray_1;function reduce(e,t,r){var a=isArray(e)?arrayReduce$1:baseReduce,i=arguments.length<3;return a(e,baseIteratee(t),r,i,baseEach)}var reduce_1=reduce;const CountryData=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........"],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ...."],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ... ...."],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599",""],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86",".. ........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506",".... ...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599",""],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1",""],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503",".... ...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502",".... ...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509",".... ...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91","..... ....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... ......."],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ... .. .."],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60",".. .... ...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ...."],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) .. .. .."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","... ... ...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","... ......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","... ... ..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1",""],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ... .. .."],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65",".... ...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ... ..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ... ...."],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ...."],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],defaultMask="... ... ... ... ..",prefix="+",getMask=(e,t,r,a)=>r?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+a;var PhoneNumberInputHelper;!function(e){e.getCountries=[].concat(...CountryData.map((e=>({name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],format:getMask(prefix,e[3],e[4],defaultMask)})))),e.formatNumber=(e,t)=>{if(!t)return e;const{format:r}=t,a=r.split(" ");a.shift();const i=a.join(" ");return reduce_1(i,((e,t)=>{if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};const[r,...a]=e.remainingText;return{formattedText:e.formattedText+r,remainingText:a}}),{formattedText:"",remainingText:e.split("")}).formattedText}}(PhoneNumberInputHelper||(PhoneNumberInputHelper={}));const Wrapper$7=styled.div`
|
|
2197
|
+
`,UnitNumberInput=({disabled:e,error:t,value:r,onChange:a,onBlur:i,onChangeRaw:n,onBlurRaw:s,readOnly:o,placeholder:l="00-8888",...h})=>{const[c,d]=useState(""),[p,u]=useState(""),[m,f]=useState("none"),g=useRef(null),y=useRef(null),b=useRef(null),v=useRef(c),x=useRef(p),S=useRef(m),C=e=>{v.current=e,d(e)},_=e=>{x.current=e,u(e)},T=e=>{S.current=e,f(e)};useEffect((()=>(document.addEventListener("mousedown",$),g.current&&g.current.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",$),g.current&&g.current.removeEventListener("keydown",w)})),[m]),useEffect((()=>{"floor"===m&&3===c.length&&b.current&&b.current.focus()}),[c]),useEffect((()=>{I(r)}),[r]);const $=t=>{e||o||g&&g.current.contains(t.target)||"none"!==S.current&&(T("none"),D())},w=e=>{"unit"===e.target.name&&"Tab"===e.code&&(T("none"),D())},E=e=>{T(e.target.name),e.target.select()},k=e=>{const t=e.target.name,r=e.target.value;"floor"===t?C(P(r)):_(P(r))},A=e=>{const t=e.target.name,r=e.target.value.toLocaleUpperCase().replace(/[^0-9A-Za-z]/,"");"floor"===t?(C(r),M(r,t)):(_(r),M(r,t))},P=e=>/^[0-9]$/.test(e)?StringHelper.padValue(e,!0):e.toLocaleUpperCase(),I=e=>{if(e!==INVALID_VALUE)if(void 0===e||0===e.length)C(""),_("");else{const t=e.split("-");if(2===t.length){const e=t[0],r=t[1];C("floor"===m?e:P(e)),_("unit"===m?r:P(r))}}},M=(e,t)=>{if(!a&&!n)return;const r={floor:v.current,unit:x.current};if(r[t]=e,a){const e=F(r);a(e)}n&&n([r.floor,r.unit])},D=()=>{if(!i&&!s)return;const e={floor:P(v.current),unit:P(x.current)};if(i){const t=F(e);i(t)}s&&s([e.floor,e.unit])},F=e=>{const t=[e.floor,e.unit];return e.floor.length>0&&e.unit.length>0?t.join("-"):t.every((e=>""===e))?"":INVALID_VALUE},R=e=>e.split("-");return jsxs(Container$4,{ref:g,onClick:()=>{"none"===m&&y.current&&y.current.focus()},disabled:e,$error:t,$readOnly:o,"data-testid":h["data-testid"],children:[jsx(AddOnContainer,{"data-testid":"addon",disabled:e,$readOnly:o,children:"#"}),jsxs(InputContainer,{$readOnly:o,children:[jsx(FloorInput,{name:"floor",maxLength:3,value:c,ref:y,onFocus:E,onBlur:k,onChange:A,disabled:e,readOnly:o,type:"text",pattern:"[0-9A-Z]{2,3}","data-testid":"floor-input","aria-label":"floor-input",placeholder:"floor"!==m||o?R(l)[0]:""}),jsx(UnitNumberDivider,{$hide:0===c.length,children:"-"}),jsx(UnitInput,{name:"unit",maxLength:5,value:p,ref:b,onFocus:E,onBlur:k,onChange:A,onKeyDown:e=>{"Backspace"!==e.code&&"Backspace"!==e.key||"unit"===m&&0===p.length&&y.current.focus()},disabled:e,readOnly:o,type:"text",pattern:"[0-9A-Z]{2,5}","data-testid":"unit-input","aria-label":"unit-input",placeholder:"unit"!==m||o?R(l)[1]:""})]})]})},INVALID_VALUE="Invalid unit number",FormUnitNumberInput=({label:e,errorMessage:t,id:r="form-unit-number-input","data-error-testid":a,"data-testid":i,...n})=>jsx(FormWrapper,{id:r,label:e,errorMessage:t,"data-error-testid":a,disabled:n.disabled,children:jsx(UnitNumberInput,{id:`${r}-base`,"data-testid":i||r,error:!!t,...n})});function arrayReduce$2(e,t,r,a){var i=-1,n=null==e?0:e.length;for(a&&n&&(r=e[++i]);++i<n;)r=t(r,e[i],i,e);return r}var _arrayReduce=arrayReduce$2;function createBaseFor$1(e){return function(t,r,a){for(var i=-1,n=Object(t),s=a(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===r(n[l],l,n))break}return t}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseFor=_baseFor,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike=isArrayLike_1;function createBaseEach$1(e,t){return function(r,a){if(null==r)return r;if(!isArrayLike(r))return e(r,a);for(var i=r.length,n=t?i:-1,s=Object(r);(t?n--:++n<i)&&!1!==a(s[n],n,s););return r}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1;function baseReduce$1(e,t,r,a,i){return i(e,(function(e,i,n){r=a?(a=!1,e):t(r,e,i,n)})),r}var _baseReduce=baseReduce$1,arrayReduce$1=_arrayReduce,baseEach=_baseEach,baseIteratee=_baseIteratee,baseReduce=_baseReduce,isArray=isArray_1;function reduce(e,t,r){var a=isArray(e)?arrayReduce$1:baseReduce,i=arguments.length<3;return a(e,baseIteratee(t),r,i,baseEach)}var reduce_1=reduce;const CountryData=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........"],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ...."],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ... ...."],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599",""],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86",".. ........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506",".... ...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599",""],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1",""],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503",".... ...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502",".... ...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509",".... ...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91","..... ....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... ......."],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ... .. .."],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60",".. .... ...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ...."],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) .. .. .."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","... ... ...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","... ......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","... ... ..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1",""],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ... .. .."],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65",".... ...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ... ..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ... ...."],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ...."],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],defaultMask="... ... ... ... ..",prefix="+",getMask=(e,t,r,a)=>r?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+a;var PhoneNumberInputHelper;!function(e){e.getCountries=[].concat(...CountryData.map((e=>({name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],format:getMask(prefix,e[3],e[4],defaultMask)})))),e.formatNumber=(e,t)=>{if(!t)return e;const{format:r}=t,a=r.split(" ");a.shift();const i=a.join(" ");return reduce_1(i,((e,t)=>{if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};const[r,...a]=e.remainingText;return{formattedText:e.formattedText+r,remainingText:a}}),{formattedText:"",remainingText:e.split("")}).formattedText}}(PhoneNumberInputHelper||(PhoneNumberInputHelper={}));const Wrapper$7=styled.div`
|
|
2194
2198
|
width: 100%;
|
|
2195
|
-
`,PhoneNumberInput=({onChange:e,value:t,allowClear:r,onClear:a,error:i,optionPlaceholder:n="Select",optionSearchPlaceholder:s,enableSearch:o,onHideOptions:l,onShowOptions:h,placeholder:d
|
|
2196
|
-
height: 1rem;
|
|
2197
|
-
width: 1rem;
|
|
2198
|
-
color: ${Color.Primary};
|
|
2199
|
-
`,DocumentWithPencilIcon=e=>jsxs(SVG,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.5 26.563C25.5 27.9084 24.4362 29 23.125 29H8.875C7.5638 29 6.5 27.9084 6.5 26.563V5.44208C6.5 4.09664 7.5638 3.00506 8.875 3H18.9737C19.6021 3 20.2057 3.25891 20.651 3.71586L24.8024 7.97559C25.2477 8.43254 25.5 9.05701 25.5 9.70182V26.563ZM8.875 26.563H23.125V11.9408H17.9792C17.3211 11.9408 16.7917 11.3976 16.7917 10.7223V5.44208H8.875V26.563ZM22.9321 9.50376H19.1667V5.64008L22.9321 9.50376ZM12.0231 6.71357C11.3051 6.71357 10.7231 7.2956 10.7231 8.01357V9.74691C10.7231 10.4649 11.3051 11.0469 12.0231 11.0469H13.6461C14.3641 11.0469 14.9461 10.4649 14.9461 9.74691V8.01357C14.9461 7.2956 14.3641 6.71357 13.6461 6.71357H12.0231ZM10.7231 15.224C10.7231 14.6257 11.2081 14.1407 11.8064 14.1407H20.1973C20.7957 14.1407 21.2807 14.6257 21.2807 15.224C21.2807 15.8223 20.7957 16.3074 20.1973 16.3074H11.8064C11.2081 16.3074 10.7231 15.8223 10.7231 15.224ZM11.8064 19.25C11.2081 19.25 10.7231 19.735 10.7231 20.3333C10.7231 20.9316 11.2081 21.4167 11.8064 21.4167H20.1973C20.7957 21.4167 21.2807 20.9316 21.2807 20.3333C21.2807 19.735 20.7957 19.25 20.1973 19.25H11.8064Z",fill:"currentColor"}),jsx("mask",{id:"mask0_4_324",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"6",y:"3",width:"20",height:"26",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.5 26.563C25.5 27.9084 24.4362 29 23.125 29H8.875C7.5638 29 6.5 27.9084 6.5 26.563V5.44208C6.5 4.09664 7.5638 3.00506 8.875 3H18.9737C19.6021 3 20.2057 3.25891 20.651 3.71586L24.8024 7.97559C25.2477 8.43254 25.5 9.05701 25.5 9.70182V26.563ZM8.875 26.563H23.125V11.9408H17.9792C17.3211 11.9408 16.7917 11.3976 16.7917 10.7223V5.44208H8.875V26.563ZM22.9321 9.50376H19.1667V5.64008L22.9321 9.50376ZM12.0231 6.71357C11.3051 6.71357 10.7231 7.2956 10.7231 8.01357V9.74691C10.7231 10.4649 11.3051 11.0469 12.0231 11.0469H13.6461C14.3641 11.0469 14.9461 10.4649 14.9461 9.74691V8.01357C14.9461 7.2956 14.3641 6.71357 13.6461 6.71357H12.0231ZM10.7231 15.224C10.7231 14.6257 11.2081 14.1407 11.8064 14.1407H20.1973C20.7957 14.1407 21.2807 14.6257 21.2807 15.224C21.2807 15.8223 20.7957 16.3074 20.1973 16.3074H11.8064C11.2081 16.3074 10.7231 15.8223 10.7231 15.224ZM11.8064 19.25C11.2081 19.25 10.7231 19.735 10.7231 20.3333C10.7231 20.9316 11.2081 21.4167 11.8064 21.4167H20.1973C20.7957 21.4167 21.2807 20.9316 21.2807 20.3333C21.2807 19.735 20.7957 19.25 20.1973 19.25H11.8064Z",fill:"white"})}),jsx("g",{mask:"url(#mask0_4_324)",children:jsx("path",{d:"M23.5032 9.86464L14.743 18.5677L14.0245 22.923C13.8255 24.1295 14.8704 25.1745 16.0768 24.9756L20.4321 24.257L29.1382 15.494C30.293 14.3392 30.2879 12.4759 29.1188 11.3068L27.676 9.86454C26.5233 8.71184 24.6561 8.71177 23.5032 9.86464Z",fill:"white"})}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9146 23.0932L15.9861 23.7413C15.5584 23.8118 15.1881 23.4415 15.2587 23.0139L15.9068 19.0853L24.2752 10.7717C24.9709 10.0761 26.0967 10.0762 26.7922 10.7717L28.2123 12.1913C28.9298 12.9087 28.9231 14.0305 28.2289 14.7248L19.9146 23.0932ZM23.8181 12.8607L26.1392 15.1818L27.4056 13.9071L27.4069 13.9058L27.4083 13.9044C27.6538 13.6589 27.6522 13.272 27.3917 13.0116L25.9717 11.5916C25.7276 11.3475 25.3366 11.3505 25.0954 11.5916L25.0941 11.593L25.0927 11.5943L23.8181 12.8607ZM20.7871 20.569V19.4785H19.5215V18.2129H18.431L22.9203 13.7528L23.6735 14.5061L20.5351 17.6445C20.3086 17.8711 20.3086 18.2383 20.5351 18.4649C20.6484 18.5782 20.7969 18.6348 20.9453 18.6348C21.0937 18.6348 21.2422 18.5782 21.3555 18.4649L24.4939 15.3264L25.2472 16.0797L20.7871 20.569ZM16.6703 21.5844L17.4155 22.3296L19.3558 22.0095L19.8378 21.5243V20.4277H18.5722V19.1621H17.4756L16.9904 19.6441L16.6703 21.5844Z",fill:"currentColor"})]}),IconData={"address-book":{fillRule:"evenodd",clipRule:"evenodd",d:"M25.5 25.75C25.5 26.9922 24.4922 28 23.25 28H8.25C7.00781 28 6 26.9922 6 25.75V6.25C6 5.00781 7.00781 4 8.25 4H23.25C24.4922 4 25.5 5.00781 25.5 6.25V8.5H26.4375C26.7469 8.5 27 8.75314 27 9.0625V10.9375C27 11.2469 26.7469 11.5 26.4375 11.5H25.5V14.5H26.4375C26.7469 14.5 27 14.7531 27 15.0625V16.9375C27 17.2469 26.7469 17.5 26.4375 17.5H25.5V20.5H26.4375C26.7469 20.5 27 20.7531 27 21.0625V22.9375C27 23.2469 26.7469 23.5 26.4375 23.5H25.5V25.75ZM8.25 25.75H23.25V6.25H8.25V25.75ZM15.75 16C17.4047 16 18.75 14.6547 18.75 13C18.75 11.3453 17.4047 10 15.75 10C14.0953 10 12.75 11.3453 12.75 13C12.75 14.6547 14.0953 16 15.75 16ZM21 21.1C21 21.5969 20.5312 22 19.95 22H11.55C10.9688 22 10.5 21.5969 10.5 21.1V20.2C10.5 18.7094 11.9109 17.5 13.65 17.5C13.8607 17.5 14.0357 17.5583 14.2477 17.6289C14.5733 17.7374 14.9862 17.875 15.75 17.875C16.4945 17.875 16.9231 17.7361 17.2586 17.6274C17.4745 17.5575 17.6518 17.5 17.85 17.5C19.5891 17.5 21 18.7094 21 20.2V21.1Z"},alert:{d:"M16 4C22.6274 4 28 9.37258 28 16C28 22.6274 22.6274 28 16 28C9.37259 28 4 22.6274 4 16C4 9.37258 9.37259 4 16 4ZM16 21.1428C15.0532 21.1428 14.2857 21.9104 14.2857 22.8572C14.2857 23.8039 15.0532 24.5715 16 24.5715C16.9468 24.5715 17.7143 23.8039 17.7143 22.8572C17.7143 21.9104 16.9468 21.1428 16 21.1428ZM17.9605 9.14285H14.4111C14.3614 9.14285 14.3116 9.14567 14.2622 9.15134C13.5755 9.23017 13.0856 9.82756 13.1679 10.4856L14.1536 18.3713C14.229 18.9745 14.7629 19.4285 15.3968 19.4285H16.6462C17.2615 19.4285 17.7857 19.0002 17.8827 18.4179L19.197 10.5321C19.2075 10.4695 19.2127 10.4062 19.2127 10.3428C19.2127 9.68011 18.6521 9.14285 17.9605 9.14285Z"},"arrow-down":{d:"M2.7938 17.4124L14.9437 29.5624C15.525 30.15 16.475 30.15 17.0625 29.5624L29.2062 17.4124C29.7937 16.8312 29.7937 15.8812 29.2062 15.2937L27.8187 13.9062C27.225 13.3062 26.2562 13.3187 25.675 13.9312L18.5 21.4625V3.5C18.5 2.66876 17.8312 2 17 2H15C14.1688 2 13.5 2.66876 13.5 3.5V21.4625L6.32504 13.9312C5.7438 13.325 4.77505 13.3125 4.1813 13.9062L2.7938 15.2937C2.20627 15.875 2.20627 16.825 2.7938 17.4124Z"},"arrow-left":{d:"M14.5876 2.7938L2.43756 14.9437C1.85004 15.525 1.85004 16.475 2.43756 17.0625L14.5876 29.2062C15.1688 29.7937 16.1188 29.7937 16.7063 29.2062L18.0938 27.8187C18.6938 27.225 18.6813 26.2562 18.0688 25.675L10.5375 18.5H28.5C29.3312 18.5 30 17.8312 30 17L30 15C30 14.1688 29.3312 13.5 28.5 13.5L10.5375 13.5L18.0688 6.32504C18.675 5.7438 18.6875 4.77505 18.0938 4.1813L16.7063 2.7938C16.125 2.20627 15.175 2.20627 14.5876 2.7938Z"},"arrow-right":{d:"M17.4124 29.2062L29.5624 17.0563C30.15 16.475 30.15 15.525 29.5624 14.9375L17.4124 2.79379C16.8312 2.20627 15.8812 2.20627 15.2937 2.79379L13.9062 4.1813C13.3062 4.77505 13.3187 5.7438 13.9312 6.32503L21.4625 13.5H3.5C2.66876 13.5 2 14.1688 2 15V17C2 17.8312 2.66876 18.5 3.5 18.5H21.4625L13.9312 25.675C13.325 26.2562 13.3125 27.2249 13.9062 27.8187L15.2937 29.2062C15.875 29.7937 16.825 29.7937 17.4124 29.2062Z"},"arrow-up":{d:"M29.2062 14.5876L17.0563 2.43756C16.475 1.85004 15.525 1.85004 14.9375 2.43756L2.79381 14.5876C2.20628 15.1688 2.20628 16.1188 2.79381 16.7063L4.18132 18.0938C4.77506 18.6938 5.74381 18.6813 6.32505 18.0688L13.5 10.5375L13.5 28.5C13.5 29.3312 14.1688 30 15 30H17C17.8312 30 18.5 29.3312 18.5 28.5V10.5375L25.675 18.0688C26.2562 18.675 27.225 18.6875 27.8187 18.0938L29.2062 16.7063C29.7937 16.125 29.7937 15.175 29.2062 14.5876Z"},bookmark:{fillRule:"evenodd",clipRule:"evenodd",d:"M24.3436 4.6564C23.9056 4.2196 23.3752 4 22.75 4H9.25C8.6248 4 8.0944 4.2196 7.6564 4.6564C7.2184 5.0932 7 5.626 7 6.25V28L16 22.75L25 28V6.25C25 5.626 24.7816 5.0932 24.3436 4.6564ZM22.75 6.532V24.0628L16 20.1256L9.25 24.0628V6.532C9.25 6.4696 9.2812 6.406 9.3436 6.3436C9.406 6.2824 9.4684 6.25 9.5308 6.25H22.4692C22.5316 6.25 22.594 6.2824 22.6564 6.3436C22.7188 6.406 22.75 6.4696 22.75 6.532Z"},"bookmark-solid":{d:"M7 6.25C7 5.6248 7.2184 5.0932 7.6564 4.6564C8.0944 4.2196 8.6248 4 9.25 4H22.75C23.3752 4 23.9056 4.2196 24.3436 4.6564C24.7816 5.0932 25 5.6248 25 6.25V28L16 22.75L7 28V6.25Z"},"chevron-down":{d:"M4.36696 12.7493C4.11867 12.4903 3.98622 12.1374 4.00114 11.7746C3.99451 11.4132 4.12577 11.0635 4.36696 10.7998L5.57416 9.56261C5.81044 9.25868 6.15028 9.05774 6.52529 9.00024C6.87788 8.99346 7.21914 9.12797 7.47642 9.37515L16 18.1105L24.5236 9.37515C24.7809 9.12797 25.1221 8.99346 25.4747 9.00024C25.8294 9.01799 26.1664 9.16412 26.4258 9.41264L27.633 10.6498C27.8742 10.9135 28.0055 11.2633 27.9989 11.6246C28.0138 11.9874 27.8813 12.3403 27.633 12.5994L16.9511 23.5467C16.7148 23.8341 16.3667 24 16 24C15.6333 24 15.2852 23.8341 15.0489 23.5467L4.36696 12.7493Z"},calendar:{fillRule:"evenodd",clipRule:"evenodd",d:"M28 27.1429V8.85912C28 7.8435 27.1635 7.00198 26.1538 7.00198H24.7676V5.32143C24.7676 4.04464 23.7291 3 22.4599 3H21.5368C20.2676 3 19.2291 4.04464 19.2291 5.32143V7.00198H12.7674V5.32143C12.7674 4.04464 11.7289 3 10.4597 3H9.53662C8.26739 3 7.22893 4.04464 7.22893 5.32143V7.00198H5.84615C4.83654 7.00198 4 7.8435 4 8.85912V27.1429C4 28.1585 4.83654 29 5.84615 29H26.1538C27.1635 29 28 28.1585 28 27.1429ZM11 5.54545V10.4545C11 10.7614 10.7812 11 10.5 11H9.5C9.21875 11 9 10.7614 9 10.4545V5.54545C9 5.23864 9.21875 5 9.5 5H10.5C10.7812 5 11 5.23864 11 5.54545ZM26 27H6V13H26V27ZM23 10.4545V5.54545C23 5.23864 22.7812 5 22.5 5H21.5C21.2188 5 21 5.23864 21 5.54545V10.4545C21 10.7614 21.2188 11 21.5 11H22.5C22.7812 11 23 10.7614 23 10.4545Z"},"calendar-add":{fillRule:"evenodd",clipRule:"evenodd",d:"M28 8.85912V27.1429C28 28.1585 27.1635 29 26.1538 29H5.84615C4.83654 29 4 28.1585 4 27.1429V8.85912C4 7.8435 4.83654 7.00198 5.84615 7.00198H7.22893V5.32143C7.22893 4.04464 8.26739 3 9.53662 3H10.4597C11.7289 3 12.7674 4.04464 12.7674 5.32143V7.00198H19.2291V5.32143C19.2291 4.04464 20.2676 3 21.5368 3H22.4599C23.7291 3 24.7676 4.04464 24.7676 5.32143V7.00198H26.1538C27.1635 7.00198 28 7.8435 28 8.85912ZM11 10.4545V5.54545C11 5.23864 10.7812 5 10.5 5H9.5C9.21875 5 9 5.23864 9 5.54545V10.4545C9 10.7614 9.21875 11 9.5 11H10.5C10.7812 11 11 10.7614 11 10.4545ZM6 27H26V13H6V27ZM23 5.54545V10.4545C23 10.7614 22.7812 11 22.5 11H21.5C21.2188 11 21 10.7614 21 10.4545V5.54545C21 5.23864 21.2188 5 21.5 5H22.5C22.7812 5 23 5.23864 23 5.54545ZM17.1018 15.2362C17.1018 15.105 16.9969 15 16.8657 15H15.1329C15.0031 14.9986 14.8967 15.105 14.8982 15.2347L14.8967 18.662C14.8982 18.7917 14.7917 18.8982 14.6605 18.8982H11.2348C11.105 18.8967 10.9986 19.0031 11 19.1329V20.8657C11 20.9969 11.105 21.1018 11.2362 21.1018H14.662C14.7932 21.1018 14.8982 21.2068 14.8982 21.338V24.7638C14.8982 24.895 15.0031 25 15.1343 25H16.8671C16.9969 25.0014 17.1033 24.895 17.1018 24.7653V21.3395C17.1018 21.2083 17.2083 21.1018 17.338 21.1033L20.7653 21.1018C20.895 21.1033 21.0014 20.9969 21 20.8671V19.1343C21 19.0031 20.895 18.8982 20.7638 18.8982H17.338C17.2068 18.8982 17.1018 18.7932 17.1018 18.662V15.2362Z"},camera:{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3032 5C21.5628 5 21.7928 5.15429 21.8903 5.38396L21.9204 5.47347L22.5574 7.98755L25.8487 7.98766C26.9858 7.98766 27.9159 8.85586 27.9946 9.95451L28 10.1057V16.8279H26.7279V10.1057C26.7279 9.66177 26.3919 9.29642 25.9589 9.24284L25.8487 9.23607H22.0608C21.8011 9.23607 21.5711 9.08178 21.4737 8.85211L21.4435 8.7626L20.8058 6.24841H11.1934L10.5565 8.7626C10.4938 9.00989 10.2857 9.19166 10.035 9.229L9.93923 9.23607H6.15126C5.70368 9.23607 5.33332 9.56727 5.27899 9.99649L5.27213 10.1057L5.33289 23.6729C5.33289 24.1168 5.66883 24.4821 6.10188 24.5357L6.21202 24.5425H16.0608V25.7909H6.21202C5.07494 25.7909 4.14489 24.9227 4.06616 23.8241L4.06077 23.6729L4 10.1057C4 8.98741 4.88062 8.07059 5.99754 7.99298L6.15126 7.98766L9.44178 7.98755L10.0796 5.47347C10.1423 5.22619 10.3504 5.04442 10.601 5.00708L10.6968 5H21.3032ZM23.7713 18.0728L23.7713 21.3738L27.1165 21.3739V22.6989L23.7713 22.6988L23.7713 26H22.4212L22.4211 22.6988L19.076 22.6989V21.3739L22.4211 21.3738L22.4212 18.0728H23.7713ZM21.9351 16.6085C21.8181 13.4785 19.2062 10.9753 16 10.9753C12.7192 10.9753 10.0607 13.5962 10.0607 16.8279C10.0607 20.0596 12.7192 22.6805 16 22.6805V21.4321L15.7921 21.4276C13.3116 21.3204 11.3329 19.3026 11.3329 16.8279C11.3329 14.2844 13.4231 12.2237 16 12.2237C18.5769 12.2237 20.6671 14.2844 20.6671 16.8279H21.9392L21.9351 16.6085ZM13.0912 16.828C13.0912 15.2463 14.3928 13.963 16 13.963C17.6072 13.963 18.9089 15.2463 18.9089 16.828C18.9089 18.4096 17.6072 19.6929 16 19.6929C14.3928 19.6929 13.0912 18.4096 13.0912 16.828ZM17.6367 16.828C17.6367 15.9345 16.9033 15.2114 16 15.2114C15.0967 15.2114 14.3633 15.9345 14.3633 16.828C14.3633 17.7214 15.0967 18.4445 16 18.4445C16.9033 18.4445 17.6367 17.7214 17.6367 16.828ZM19.0304 9.23607V7.98766H12.9696V9.23607H19.0304Z"},"caret-down-lg":{d:"M17.986 22.9092C16.8901 24.3676 15.1073 24.3596 14.0174 22.9092L5.54971 11.6407C4.4538 10.1823 5.04679 9 6.88113 9L25.1222 9C26.9535 9 27.5436 10.1902 26.4537 11.6407L17.986 22.9092Z"},"caret-down-sm":{d:"M17.2638 20.2728C16.5664 21.2451 15.4319 21.2398 14.7383 20.2728L9.34981 12.7604C8.65242 11.7882 9.02978 11 10.1971 11L21.8051 11C22.9704 11 23.3459 11.7935 22.6523 12.7604L17.2638 20.2728Z"},"chevron-left":{d:"M18.2507 4.37924C18.5445 4.08987 18.9622 3.95418 19.3754 4.0138C19.7367 4.00719 20.0865 4.1383 20.3502 4.37924L21.5874 5.58517C21.8359 5.8443 21.982 6.18098 21.9998 6.53529C22.0065 6.88751 21.872 7.22841 21.6248 7.48542L12.8895 16L21.6248 24.5146C21.872 24.7716 22.0065 25.1125 21.9998 25.4647C21.982 25.819 21.8359 26.1557 21.5874 26.4148L20.3502 27.6208C20.0865 27.8617 19.7367 27.9928 19.3754 27.9862C18.9622 28.0458 18.5445 27.9101 18.2507 27.6208L7.45331 16.9501C7.16588 16.714 7 16.3664 7 16C7 15.6336 7.16588 15.286 7.45331 15.0499L18.2507 4.37924Z"},"chevron-right":{d:"M13.7493 27.6332C13.4903 27.8814 13.1374 28.0138 12.7746 27.9989C12.4132 28.0055 12.0635 27.8743 11.7998 27.6332L10.5626 26.4267C10.2587 26.1905 10.0577 25.8509 10.0002 25.476C9.99346 25.1236 10.128 24.7826 10.3752 24.5254L19.1105 16.0063L10.3752 7.48726C10.128 7.23011 9.99346 6.88904 10.0002 6.53663C10.018 6.18213 10.1641 5.84528 10.4126 5.586L11.6498 4.37944C11.9135 4.13838 12.2633 4.00719 12.6246 4.01381C13.0378 3.95415 13.4555 4.08992 13.7493 4.37944L24.5467 15.0557C24.8341 15.2919 25 15.6398 25 16.0063C25 16.3729 24.8341 16.7208 24.5467 16.957L13.7493 27.6332Z"},"chevron-up":{d:"M27.6332 19.2507C27.8814 19.5097 28.0138 19.8626 27.9989 20.2254C28.0055 20.5868 27.8743 20.9365 27.6332 21.2002L26.4267 22.4374C26.1905 22.7413 25.8509 22.9423 25.476 22.9998C25.1236 23.0065 24.7826 22.872 24.5254 22.6248L16.0063 13.8895L7.48726 22.6248C7.23011 22.872 6.88904 23.0065 6.53663 22.9998C6.18213 22.982 5.84528 22.8359 5.586 22.5874L4.37944 21.3502C4.13838 21.0865 4.00719 20.7367 4.01381 20.3754C3.95415 19.9622 4.08992 19.5445 4.37944 19.2507L15.0557 8.45331C15.2919 8.16588 15.6398 8 16.0063 8C16.3729 8 16.7208 8.16588 16.957 8.45331L27.6332 19.2507Z"},clock:{fillRule:"evenodd",clipRule:"evenodd",d:"M3 16.0019C3 8.82067 8.82024 3 15.999 3C23.1798 3 29 8.82067 29 16.0019C29 23.1812 23.1798 29 15.999 29C8.82024 29 3 23.1812 3 16.0019ZM26.2142 16.0009C26.2142 10.3676 21.6319 5.78571 15.9981 5.78571C10.3661 5.78571 5.78566 10.3676 5.78566 16.0009C5.78566 21.6305 10.3661 26.2143 15.9981 26.2143C21.6319 26.2143 26.2142 21.6305 26.2142 16.0009ZM17.2075 17.8513C17.5737 17.8055 17.8571 17.493 17.8571 17.1143V8.38568C17.8571 7.97542 17.5245 7.64283 17.1143 7.64283H15.8143C15.404 7.64283 15.0714 7.97542 15.0714 8.38568V15.0714H11.1714C10.7611 15.0714 10.4286 15.404 10.4286 15.8143V17.1143C10.4286 17.5245 10.7611 17.8571 11.1714 17.8571H17.1143L17.2075 17.8513Z"},cross:{d:"M23.8785 5.13337C24.0563 4.95554 24.3408 4.95554 24.5186 5.13337L26.8666 7.48184C27.0444 7.65572 27.0444 7.9442 26.8666 8.11808L19.3082 15.6819C19.1304 15.8558 19.1304 16.1442 19.3082 16.3221L26.8666 23.8819C27.0444 24.0558 27.0444 24.3443 26.8666 24.5182L24.5186 26.8666C24.3408 27.0445 24.0563 27.0445 23.8785 26.8666L16.32 19.3068C16.1422 19.129 15.8578 19.129 15.68 19.3068L8.12148 26.8666C7.94368 27.0445 7.65919 27.0445 7.48139 26.8666L5.13335 24.5182C4.95555 24.3443 4.95555 24.0558 5.13335 23.8819L12.6918 16.3221C12.8696 16.1442 12.8696 15.8558 12.6918 15.6819L5.13335 8.11808C4.95555 7.9442 4.95555 7.65572 5.13335 7.48184L7.48139 5.13337C7.65919 4.95554 7.94368 4.95554 8.12148 5.13337L15.68 12.6932C15.8578 12.871 16.1422 12.871 16.32 12.6932L23.8785 5.13337Z"},"cross-encased":{fillRule:"evenodd",clipRule:"evenodd",d:"M30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30C23.732 30 30 23.732 30 16ZM10.654 9.03055C10.7619 8.97624 10.8959 8.99434 10.9864 9.08487L15.7963 13.8957L15.8713 13.95C15.9792 14.0043 16.1131 13.9862 16.2037 13.8957L21.0136 9.08487L21.0886 9.03055C21.1964 8.97624 21.3304 8.99434 21.4209 9.08487L22.9151 10.5794L22.9695 10.6533C23.0238 10.7605 23.0057 10.8957 22.9151 10.9842L18.1052 15.7976L18.0509 15.8716C17.9966 15.9788 18.0147 16.1144 18.1052 16.205L22.9151 21.0158L22.9695 21.0897C23.0238 21.1969 23.0057 21.3321 22.9151 21.4206L21.4209 22.9151L21.346 22.9694C21.2381 23.0238 21.1041 23.0057 21.0136 22.9151L16.2037 18.1043L16.1287 18.05C16.0208 17.9957 15.8869 18.0138 15.7963 18.1043L10.9864 22.9151L10.9114 22.9694C10.8036 23.0238 10.6696 23.0057 10.5791 22.9151L9.08486 21.4206L9.03055 21.3467C8.97624 21.2395 8.99434 21.1043 9.08486 21.0158L13.8948 16.205L13.9491 16.1298C14.0034 16.0213 13.9853 15.8861 13.8948 15.7976L9.08486 10.9842L9.03055 10.9103C8.97624 10.8031 8.99434 10.6679 9.08486 10.5794L10.5791 9.08487L10.654 9.03055Z"},document:{fillRule:"evenodd",clipRule:"evenodd",d:"M23.125 29C24.4362 29 25.5 27.9084 25.5 26.563V9.70182C25.5 9.05701 25.2477 8.43254 24.8024 7.97559L20.651 3.71586C20.2057 3.25891 19.6021 3 18.9737 3H8.875C7.5638 3.00506 6.5 4.09664 6.5 5.44208V26.563C6.5 27.9084 7.5638 29 8.875 29H23.125ZM23.125 26.563H8.875V5.44208H16.7917V10.7223C16.7917 11.3976 17.3211 11.9408 17.9792 11.9408H23.125V26.563ZM19.1667 9.50376H22.9321L19.1667 5.64008V9.50376Z"},"document-with-pencil":null,fax:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.125 27.3245C10.6098 27.7403 9.96342 28 9.25 28H7C5.34299 28 4 26.657 4 25V13C4 11.343 5.34299 10 7 10H9.25C9.79936 10 10.307 10.1584 10.75 10.4162V5.5C10.75 4.67172 11.3894 4 12.1788 4H21.5074C22.1933 4.00005 23.1437 4.39359 23.6289 4.87845L25.6216 6.87109C26.1841 7.43405 26.5 8.19719 26.5 8.99265V10.4162C27.393 10.9356 28 11.8923 28 13V25C28 26.657 26.657 28 25 28H13C12.2866 28 11.6402 27.7403 11.125 27.3245ZM13 13H24.25V9.25H22C21.5856 9.25 21.25 8.91437 21.25 8.5V6.25H13V13ZM9.25 25.75H7C6.58655 25.75 6.25 25.4135 6.25 25V13C6.25 12.5865 6.58655 12.25 7 12.25H9.25C9.66345 12.25 10 12.5865 10 13V25C10 25.4135 9.66345 25.75 9.25 25.75ZM13 25.75H25C25.4135 25.75 25.75 25.4135 25.75 25V15.25H12.25V25C12.25 25.4135 12.5865 25.75 13 25.75ZM22 19.75C22.4144 19.75 22.75 19.4144 22.75 19V17.5C22.75 17.0856 22.4144 16.75 22 16.75H20.5C20.0856 16.75 19.75 17.0856 19.75 17.5V19C19.75 19.4144 20.0856 19.75 20.5 19.75H22ZM18.25 19C18.25 19.4144 17.9144 19.75 17.5 19.75H16C15.5856 19.75 15.25 19.4144 15.25 19V17.5C15.25 17.0856 15.5856 16.75 16 16.75H17.5C17.9144 16.75 18.25 17.0856 18.25 17.5V19ZM17.5 24.25C17.9144 24.25 18.25 23.9144 18.25 23.5V22C18.25 21.5856 17.9144 21.25 17.5 21.25H16C15.5856 21.25 15.25 21.5856 15.25 22V23.5C15.25 23.9144 15.5856 24.25 16 24.25H17.5ZM22.75 23.5C22.75 23.9144 22.4144 24.25 22 24.25H20.5C20.0856 24.25 19.75 23.9144 19.75 23.5V22C19.75 21.5856 20.0856 21.25 20.5 21.25H22C22.4144 21.25 22.75 21.5856 22.75 22V23.5Z"},filter:{fillRule:"evenodd",clipRule:"evenodd",d:"M10 6.2C10 6.08954 10.0895 6 10.2 6H11.8C11.9105 6 12 6.08954 12 6.2V8V12V13.8C12 13.9105 11.9105 14 11.8 14H10.2C10.0895 14 10 13.9105 10 13.8V12H4.8C4.35817 12 4 11.6418 4 11.2V8.8C4 8.35817 4.35817 8 4.8 8H10V6.2ZM27.2 8C27.6418 8 28 8.35817 28 8.8V11.2C28 11.6418 27.6418 12 27.2 12H16V8H27.2ZM27.2 20C27.6418 20 28 20.3582 28 20.8V23.2C28 23.6418 27.6418 24 27.2 24H22V25.8C22 25.9105 21.9105 26 21.8 26H20.2C20.0895 26 20 25.9105 20 25.8V24V20V18.2C20 18.0895 20.0895 18 20.2 18H21.8C21.9105 18 22 18.0895 22 18.2V20H27.2ZM4 20.8C4 20.3582 4.35817 20 4.8 20H16V24H4.8C4.35817 24 4 23.6418 4 23.2V20.8Z"},external:[{d:"M25.333 8.40088L16.4089 17.2653C15.8882 17.7826 15.0472 17.7811 14.5282 17.2622C14.0082 16.7422 14.0079 15.8993 14.5275 15.379L23.227 6.66687H20.0004C19.264 6.66687 18.667 6.06987 18.667 5.33344C18.667 4.59694 19.2641 3.99992 20.0005 4L27.0001 4.00075C27.5523 4.00081 28 4.44851 28 5.00076V12.0004C28 12.7369 27.403 13.3339 26.6665 13.3339C25.93 13.3339 25.333 12.7369 25.333 12.0004V8.40088Z"},{d:"M22.6671 25.333H6.66701V9.3329H14.667V6.66589H6.66701C5.194 6.66589 4 7.85989 4 9.3329V25.333C4 26.806 5.194 28 6.66701 28H22.6671C24.1401 28 25.3341 26.806 25.3341 25.333V17.3329H22.6671V25.333Z"}],inbox:[{fillRule:"evenodd",clipRule:"evenodd",d:"M5 14.9483C5 14.5198 5.3436 14.1724 5.76744 14.1724H10.8837C11.3076 14.1724 11.6512 14.5198 11.6512 14.9483V16.2414H20.3488V14.9483C20.3488 14.5198 20.6924 14.1724 21.1163 14.1724H26.2326C26.6564 14.1724 27 14.5198 27 14.9483V23.2241C27 23.6526 26.6564 24 26.2326 24H5.76744C5.3436 24 5 23.6526 5 23.2241V14.9483ZM6.53488 15.7241V22.4483H25.4651V15.7241H21.8837V17.0172C21.8837 17.4457 21.5401 17.7931 21.1163 17.7931H10.8837C10.4599 17.7931 10.1163 17.4457 10.1163 17.0172V15.7241H6.53488Z"},{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3954 19.0862C11.3954 18.8005 11.6244 18.569 11.907 18.569H20.093C20.3756 18.569 20.6047 18.8005 20.6047 19.0862V20.1207C20.6047 20.4064 20.3756 20.6379 20.093 20.6379H11.907C11.6244 20.6379 11.3954 20.4064 11.3954 20.1207V19.0862Z"},{fillRule:"evenodd",clipRule:"evenodd",d:"M7.63916 9.42889C7.76916 9.16604 8.0349 9 8.32558 9H23.5765C23.863 9 24.1256 9.16132 24.2576 9.41838L26.9137 14.5908C27.0372 14.8313 27.0276 15.1195 26.8884 15.3511C26.7492 15.5827 26.5006 15.7241 26.2326 15.7241H21.1163V14.1724H24.9695L23.1102 10.5517H8.79989L7.00919 14.1724H10.8837V15.7241H5.76744C5.50146 15.7241 5.25445 15.5849 5.11462 15.3562C4.97478 15.1274 4.96207 14.8418 5.08102 14.6013L7.63916 9.42889Z"}],info:{fillRule:"evenodd",clipRule:"evenodd",d:"M23 3.89232C20.8541 2.63007 18.5201 2 16 2C13.4778 2 11.1459 2.63007 9 3.89232C6.85624 5.15246 5.15222 6.85449 3.89218 9.00053C2.63214 11.1466 2 13.4787 2 16.0011C2 18.5213 2.63214 20.8555 3.89218 23.0016C5.15222 25.1455 6.85624 26.8475 9 28.1098C11.1459 29.3699 13.4778 30 16 30C18.5201 30 20.8541 29.3699 23 28.1098C25.1438 26.8475 26.8478 25.1455 28.1078 23.0016C29.3679 20.8555 30 18.5213 30 16.0011C30 13.4787 29.3679 11.1466 28.1078 9.00053C26.8478 6.85449 25.1438 5.15246 23 3.89232ZM16 6.91084C15.2527 6.91084 14.6064 7.18462 14.0564 7.73466C13.5088 8.28223 13.2326 8.93092 13.2326 9.67828C13.2326 10.4232 13.5088 11.0719 14.0564 11.6194C14.6064 12.1695 15.2527 12.4433 16 12.4433C16.7449 12.4433 17.3936 12.1695 17.9436 11.6194C18.4912 11.0719 18.765 10.4232 18.765 9.67828C18.765 8.93092 18.4912 8.28223 17.9436 7.73466C17.3936 7.18462 16.7449 6.91084 16 6.91084ZM19.6875 23.6388V22.0578C19.6875 21.8383 19.611 21.6533 19.4581 21.4979C19.3027 21.345 19.1177 21.2685 18.8982 21.2685H18.1065V14.6829C18.1065 14.4634 18.03 14.2759 17.8771 14.123C17.7241 13.9676 17.5367 13.8911 17.3172 13.8911H13.1019C12.8824 13.8911 12.6974 13.9676 12.542 14.123C12.3891 14.2759 12.3126 14.4634 12.3126 14.6829V16.2639C12.3126 16.481 12.3891 16.6684 12.542 16.8238C12.6974 16.9767 12.8824 17.0532 13.1019 17.0532H13.8936V21.2685H13.1019C12.8824 21.2685 12.6974 21.345 12.542 21.4979C12.3891 21.6533 12.3126 21.8383 12.3126 22.0578V23.6388C12.3126 23.8583 12.3891 24.0433 12.542 24.1987C12.6974 24.3517 12.8824 24.4281 13.1019 24.4281H18.8982C19.1177 24.4281 19.3027 24.3517 19.4581 24.1987C19.611 24.0433 19.6875 23.8583 19.6875 23.6388Z"},language:{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8889 2C18.3762 2 22.9135 6.06096 23.6677 11.3461L22.245 11.3456C22.1976 11.0594 22.1373 10.7775 22.0647 10.5007L21.9469 10.0894H17.9733C18.0274 10.5004 18.0705 10.9188 18.1014 11.3449L16.6956 11.3455C16.6743 11.0567 16.6473 10.7744 16.6154 10.4985L16.5639 10.0894H9.21388C9.09532 10.9599 9.02509 11.8963 9.02509 12.9031C9.02509 13.7421 9.07386 14.5322 9.15873 15.276L9.21388 15.7168L10.2963 15.7161V17.1231L9.45978 17.1236C9.67883 18.1205 9.96762 18.9926 10.2964 19.7255L10.2963 23.4954C5.5334 22.3313 2 18.0316 2 12.9031C2 6.88001 6.87366 2 12.8889 2ZM8.02835 17.1237H4.40604C5.52567 19.3746 7.51026 21.12 9.92514 21.9201C9.14643 20.822 8.51913 19.3106 8.1171 17.5374L8.02835 17.1237ZM3.83091 10.0894H7.80448L7.74145 10.6344C7.66501 11.3668 7.62006 12.1223 7.62006 12.9031C7.62006 13.8791 7.68592 14.8155 7.80448 15.7168H3.83091L3.72022 15.3328C3.5147 14.5579 3.40501 13.7434 3.40501 12.9031C3.40501 11.9227 3.55431 10.9775 3.83091 10.0894ZM12.8888 3.40685C11.7458 3.40685 10.2903 5.22258 9.53309 8.364L9.45973 8.68254H16.3179C15.5847 5.34565 14.0699 3.40685 12.8888 3.40685ZM17.6607 8.26874C17.2587 6.49554 16.6314 4.9842 15.8527 3.88606C18.2675 4.68617 20.2521 6.43155 21.3718 8.68252H17.7494L17.6607 8.26874ZM9.92514 3.88606C7.61526 4.65138 5.69905 6.28157 4.55695 8.39182L4.40604 8.68252H8.02835C8.42352 6.72612 9.09091 5.06429 9.92514 3.88606ZM13.3749 23.9728V14.4354H27.9583V23.9728H20.3022C20.0674 23.9728 19.8387 24.0548 19.657 24.2046L16.4864 26.81V24.9985C16.4864 24.4323 16.0291 23.9728 15.4656 23.9728H13.3749ZM14.4447 28.9743C14.4447 29.3702 14.6714 29.7313 15.0287 29.9015C15.1675 29.9672 15.3165 30 15.4656 30C15.6963 30 15.927 29.9221 16.1107 29.7702L20.6676 26.0242H27.9583C29.0853 26.0242 30 25.1052 30 23.9728V14.4354C30 13.305 29.0853 12.3839 27.9583 12.3839H13.3749C12.25 12.3839 11.3333 13.305 11.3333 14.4354V23.9728C11.3333 25.1052 12.25 26.0242 13.3749 26.0242H14.4447V28.9743Z"},link:{d:"M15.0055 7.05287L15.9998 6.05853C18.7456 3.31382 23.1964 3.31382 25.9411 6.05853C28.6858 8.80324 28.6868 13.2551 25.9411 15.9998L22.9591 18.9818C20.2133 21.7275 15.7626 21.7275 13.0178 18.9818C12.4685 18.4324 12.4685 17.5424 13.0178 16.9931C13.5672 16.4437 14.4572 16.4437 15.0065 16.9931C16.6536 18.6401 19.3245 18.6401 20.9715 16.9931L23.9535 14.0111C25.6005 12.3641 25.6005 9.69319 23.9535 8.04615C22.3064 6.39912 19.6355 6.39912 17.9885 8.04615L16.9941 9.04049C16.4448 9.58986 15.5548 9.58986 15.0055 9.04049C14.4561 8.49113 14.4561 7.60118 15.0055 7.05182V7.05287ZM18.9818 13.0178C19.5311 13.5672 19.5311 14.4572 18.9818 15.0065C18.4324 15.5559 17.5424 15.5559 16.9931 15.0065C15.346 13.3595 12.6752 13.3595 11.0281 15.0065L8.04615 17.9885C6.39912 19.6355 6.39912 22.3064 8.04615 23.9535C9.69319 25.6005 12.3641 25.6005 14.0111 23.9535L15.0055 22.9591C15.5548 22.4098 16.4448 22.4098 16.9941 22.9591C17.5435 23.5085 17.5435 24.3984 16.9941 24.9478L15.9998 25.9421C13.254 28.6879 8.80324 28.6879 6.05853 25.9421C3.31382 23.1964 3.31382 18.7456 6.05853 16.0009L9.04049 13.0189C11.7863 10.2731 16.2371 10.2731 18.9818 13.0189V13.0178Z"},location:{fillRule:"evenodd",clipRule:"evenodd",d:"M4.84159 14.1335C11.518 8.78 22.1633 5 26.1862 5C26.8882 5 27.3877 5.1155 27.6292 5.357C27.6307 5.35775 27.6314 5.35925 27.6322 5.36075C27.6329 5.36225 27.6337 5.36375 27.6352 5.3645C27.6359 5.36525 27.6374 5.366 27.6389 5.36675C27.6404 5.3675 27.6419 5.36825 27.6427 5.369C29.2716 6.995 25.1557 20.315 18.8663 28.1585C18.8648 28.154 18.8618 28.1465 18.8588 28.1405C18.8048 28.214 18.7493 28.277 18.6833 28.343C18.2453 28.781 17.6724 29 17.1039 29C16.5504 29 15.9999 28.7915 15.5814 28.373C15.3279 28.1195 15.1554 27.8225 15.0564 27.5L15.0069 27.305L14.9889 27.233L13.4979 21.2315C13.3884 20.7845 13.1784 20.408 12.8859 20.1125C12.5919 19.8215 12.2155 19.6115 11.77 19.502L5.76708 18.011C5.75128 18.008 5.73484 18.0031 5.71903 17.9984C5.71081 17.996 5.70277 17.9936 5.69508 17.9915L5.49858 17.9435C5.17759 17.8445 4.87909 17.6705 4.6256 17.4185C3.77962 16.5695 3.79311 15.1805 4.6571 14.3165C4.7216 14.2505 4.7861 14.195 4.85809 14.1395C4.85209 14.138 4.84459 14.135 4.84159 14.1335ZM26.6856 6.23148C26.5776 6.21498 26.4156 6.19998 26.1861 6.19998C22.5397 6.19998 13.0269 9.56149 6.583 14.309L5.59902 15.083C5.57052 15.1055 5.54352 15.128 5.51652 15.155C5.11003 15.5615 5.09653 16.1915 5.47602 16.571C5.58252 16.6775 5.70702 16.7525 5.85101 16.796L5.98151 16.8275L6.01001 16.8335L6.06851 16.85L6.06701 16.8515L12.0594 18.338C12.7014 18.4955 13.2804 18.815 13.7289 19.2605C14.1909 19.7255 14.5014 20.2895 14.6633 20.9465L16.1528 26.9435L16.2188 27.206C16.2488 27.293 16.3223 27.416 16.4288 27.5255C16.6073 27.7025 16.8458 27.8 17.1038 27.8C17.3768 27.8 17.6363 27.6905 17.8343 27.4925C17.8583 27.4685 17.8778 27.4475 17.8988 27.4205L19.0628 25.8665L19.0733 25.8875C24.1942 18.6425 27.3006 8.31948 26.7741 6.27648L26.6856 6.23148ZM16.4789 13.9836C16.4789 12.6276 17.5829 11.5236 18.9389 11.5236C20.2948 11.5236 21.3988 12.6276 21.3988 13.9836C21.3988 15.3396 20.2948 16.4436 18.9389 16.4436C17.5829 16.4436 16.4789 15.3396 16.4789 13.9836ZM15.3989 13.9836C15.3989 15.9366 16.9874 17.5236 18.9389 17.5236C20.8903 17.5236 22.4788 15.9366 22.4788 13.9836C22.4788 12.0321 20.8903 10.4436 18.9389 10.4436C16.9874 10.4436 15.3989 12.0321 15.3989 13.9836Z"},"location-solid":{fillRule:"evenodd",clipRule:"evenodd",d:"M27.6343 5.36008C27.6349 5.36187 27.6356 5.36392 27.6374 5.36484C27.6382 5.36559 27.6397 5.36634 27.6412 5.36709C27.6427 5.36784 27.6442 5.36859 27.6449 5.36934C29.2741 6.99534 25.1577 20.3153 18.8676 28.1588C18.8661 28.1528 18.8631 28.1468 18.8601 28.1408C18.8061 28.2128 18.7506 28.2758 18.6846 28.3418C17.819 29.2073 16.4314 29.2208 15.5823 28.3733C15.3288 28.1198 15.1563 27.8228 15.0573 27.5003L15.0078 27.3053C15.0055 27.2933 15.0021 27.2813 14.9988 27.2693C14.9954 27.2573 14.992 27.2453 14.9898 27.2333L13.4986 21.2318C13.3891 20.7848 13.1791 20.4083 12.8866 20.1128C12.5925 19.8218 12.216 19.6118 11.7705 19.5023L5.7669 18.0113C5.7525 18.0086 5.7381 18.0043 5.7237 18C5.7141 17.9971 5.7045 17.9942 5.69489 17.9918L5.49988 17.9438C5.17735 17.8448 4.88032 17.6708 4.62679 17.4188C3.77922 16.5698 3.79272 15.1808 4.6583 14.3168C4.7228 14.2508 4.78731 14.1953 4.85782 14.1398C4.85405 14.1389 4.85028 14.1373 4.84689 14.136C4.84487 14.1351 4.84299 14.1344 4.84131 14.1338C12.6855 7.84434 26.0053 3.72835 27.6329 5.35734C27.6335 5.35792 27.6339 5.35895 27.6343 5.36008ZM15.9409 13.9838C15.9409 15.6413 17.285 16.9838 18.9412 16.9838C20.5973 16.9838 21.9415 15.6413 21.9415 13.9838C21.9415 12.3278 20.5973 10.9838 18.9412 10.9838C17.285 10.9838 15.9409 12.3278 15.9409 13.9838Z"},"location-unknown":null,lock:{fillRule:"evenodd",clipRule:"evenodd",d:"M25.9999 16.3387C26.0032 15.4856 25.6811 14.7658 24.9794 14.2569C24.7682 14.1038 24.5262 13.9916 24.2725 13.874C24.1535 13.8188 24.0319 13.7625 23.9096 13.7001C23.9096 13.6793 23.9099 13.6545 23.9103 13.6269C23.9111 13.5555 23.9122 13.4649 23.909 13.3744C23.9006 13.1325 23.898 12.8897 23.8954 12.6469C23.8897 12.1038 23.8839 11.5607 23.8123 11.0261C23.4566 8.37042 22.087 6.3291 19.7187 5.02466C17.1985 3.63658 14.5957 3.66878 12.0942 5.06051C9.49735 6.5053 8.13478 8.75987 8.02308 11.7131C8.00396 12.2171 8.01057 12.722 8.01717 13.2267C8.01874 13.3466 8.02031 13.4664 8.02153 13.5862C8.02308 13.7319 7.98677 13.8058 7.8332 13.8587C6.70329 14.2469 6.05322 15.1385 6.04602 16.3089C6.02741 19.3211 6.01074 22.3334 6.00004 25.3456C5.99428 26.9236 7.0922 27.999 8.69721 27.9993C13.5484 28.0003 18.3996 28.0002 23.2507 27.9994C24.8378 27.9992 25.9353 26.9635 25.9511 25.4009C25.9765 22.8764 25.9855 20.3518 25.9945 17.8273C25.9963 17.3311 25.9981 16.8349 25.9999 16.3387ZM12.4421 13.7164H19.4014C19.4014 13.4882 19.406 13.2611 19.4106 13.0349L19.4106 13.0348V13.0348C19.4208 12.5394 19.4308 12.0486 19.3918 11.5616C19.262 9.93862 17.8779 8.58861 16.275 8.46143C14.5578 8.32523 12.9889 9.35698 12.629 11.0043C12.4988 11.6006 12.4854 12.2216 12.4718 12.8516V12.8516C12.4657 13.1385 12.4595 13.4273 12.4421 13.7164ZM18.4086 20.7229C18.4116 19.3893 17.3198 18.3114 15.9766 18.3222C14.6599 18.3327 13.5793 19.4028 13.5908 20.6846C13.6029 22.0211 14.673 23.0797 16.0053 23.0733C17.3201 23.067 18.4059 22.0051 18.4086 20.7229Z"},mail:{fillRule:"evenodd",clipRule:"evenodd",d:"M5.78366 24.5H26.2147C27.1974 24.5 28 23.674 28 22.659V9.33766C28 8.32429 27.1974 7.5 26.2147 7.5H5.78366C4.80103 7.5 4 8.32429 4 9.33766V22.659C4 23.674 4.80103 24.5 5.78366 24.5ZM7.65002 9.60964L16.0657 15.3432L24.3662 9.60964H7.65002ZM6.05447 22.387H25.9439V11.0609L17.1424 17.0996C16.4776 17.5623 15.6068 17.564 14.929 17.0996L6.05447 11.0576V22.387Z"},"mail-read":{fillRule:"evenodd",clipRule:"evenodd",d:"M16.479 2.62669L26.437 8.25616C27.401 8.80024 28 9.84592 28 10.9859V21.3909C28 23.1051 26.654 24.5 25 24.5H7C5.346 24.5 4 23.1051 4 21.3909V10.9859C4 9.84592 4.599 8.80024 5.564 8.25616L15.521 2.62669C15.82 2.45777 16.18 2.45777 16.479 2.62669ZM16 4.71699L6.521 10.076C6.2 10.2573 6 10.6055 6 10.9859V12.2803L15.417 17.3781C15.775 17.5698 16.225 17.5698 16.586 17.376L26 12.2803V10.9859C26 10.6055 25.8 10.2573 25.479 10.0749L16 4.71699Z"},"mail-unread":null,map:{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8354 24.8668C20.6135 24.9404 20.2439 25 20.0105 25C19.7715 25 19.3934 24.9375 19.1667 24.8605L12 22.2857L4.91459 24.9508C4.83167 24.9843 4.74792 25 4.66626 25C4.31376 25 4 24.7103 4 24.3206V9.63291C4.00012 9.12572 4.37569 8.56125 4.83834 8.37289L11.1646 6.13315C11.4329 6.04452 11.7113 6 11.99 6C12.2288 6.00008 12.6067 6.06241 12.8333 6.13912L20 8.71429H20.0004L27.0858 6.0492C27.1683 6.0157 27.2525 6 27.3341 6C27.6862 6 28 6.28967 28 6.6794V21.3671C28 21.8744 27.6244 22.4388 27.1617 22.6271L20.8354 24.8668ZM6 10.1168V22.3727L11.3067 20.376L11.3333 20.3662V8.22826L6 10.1168ZM18.6666 22.5223L13.3333 20.6058V8.4776L18.6666 10.3942V22.5223ZM20.6667 10.6338V22.7713L26 20.8827V8.62732L20.6934 10.6236L20.6667 10.6338Z"},menu:{fillRule:"evenodd",clipRule:"evenodd",d:"M27.3571 9.06249C27.7122 9.06249 28 8.76865 28 8.40624V6.65625C28 6.29384 27.7122 6 27.3571 6H4.64286C4.28784 6 4 6.29384 4 6.65625V8.40624C4 8.76865 4.28784 9.06249 4.64286 9.06249H27.3571ZM27.3571 17.5613C27.7122 17.5613 28 17.2677 28 16.9056V15.157C28 14.7949 27.7122 14.5013 27.3571 14.5013H4.64286C4.28784 14.5013 4 14.7949 4 15.157V16.9056C4 17.2677 4.28784 17.5613 4.64286 17.5613H27.3571ZM28 25.4062C28 25.7687 27.7122 26.0625 27.3571 26.0625H4.64286C4.28784 26.0625 4 25.7687 4 25.4062V23.6562C4 23.2938 4.28784 23 4.64286 23H27.3571C27.7122 23 28 23.2938 28 23.6562V25.4062Z"},minus:{d:"M27.4331 13.5C27.748 13.5 28 13.7382 28 14.0359V17.9674C28.0035 18.2618 27.748 18.5033 27.4366 18.5H4.56687C4.25196 18.5 4.00004 18.2618 4.00004 17.9641V14.0326C3.99654 13.7382 4.25196 13.4967 4.56337 13.5H27.4331Z"},pencil:{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2927 26.8323L5.30855 27.9846C4.5483 28.1099 3.89003 27.4515 4.01541 26.6915L5.16765 19.7073L20.0447 4.92741C21.2815 3.69076 23.2829 3.69095 24.5194 4.92746L27.0442 7.45115C28.3196 8.72653 28.3078 10.721 27.0736 11.9552L12.2927 26.8323ZM19.2322 8.64126L23.3586 12.7677L25.61 10.5016L25.6124 10.4992L25.6148 10.4968C26.0512 10.0603 26.0484 9.37254 25.5853 8.90956L23.0609 6.38513C22.627 5.95117 21.9317 5.95648 21.503 6.38518L21.5006 6.38751L21.4983 6.38989L19.2322 8.64126ZM13.8437 22.3448V20.4063H11.5937V18.1563H9.65515L17.6361 10.2271L18.9752 11.5663L13.3957 17.1458C12.9931 17.5485 12.9931 18.2015 13.3958 18.6042C13.5971 18.8056 13.8611 18.9063 14.125 18.9063C14.3889 18.9063 14.6528 18.8056 14.8542 18.6042L20.4337 13.0247L21.7729 14.3639L13.8437 22.3448ZM6.52507 24.1501L7.84988 25.4749L11.2992 24.9058L12.1562 24.0432V22.0937H9.9062V19.8437H7.95663L7.09412 20.7007L6.52507 24.1501Z"},phone:{fillRule:"evenodd",clipRule:"evenodd",d:"M27.5144 21.6157L27.7458 21.8489C28.0021 22.2326 28.0682 22.7138 27.9277 23.1537C27.8434 23.5225 27.7095 23.8781 27.5309 24.2121C27.1623 24.9695 26.6647 25.6575 26.0597 26.2462C24.9058 27.3923 23.3387 28.0257 21.712 27.9992C21.3252 27.9959 20.94 27.9694 20.5548 27.9182C18.5744 27.5692 16.7494 26.615 15.331 25.1878L6.83408 16.671C5.39588 15.2422 4.44204 13.3966 4.10646 11.3956C3.73451 9.40114 4.34946 7.34884 5.75956 5.88858C6.36294 5.28992 7.05394 4.78884 7.80941 4.40021C8.14333 4.22491 8.49875 4.09757 8.86739 4.01984C9.05915 3.99339 9.25422 3.99339 9.44598 4.01984C9.70221 4.03473 9.94852 4.12072 10.1568 4.26791C10.251 4.3324 10.3353 4.41013 10.4048 4.49943L13.7275 9.06378C14.0152 9.45406 13.9738 9.99649 13.6283 10.3372L12.6861 11.2798C12.4249 11.5113 12.2546 11.8272 12.2067 12.1728C12.1951 12.4507 12.3108 12.7186 12.5208 12.9005L16.2528 16.635L19.1332 19.5171C19.3051 19.7288 19.5712 19.8479 19.8457 19.8297C20.1912 19.7867 20.5085 19.6147 20.7383 19.3501L21.2062 18.8821L21.6789 18.4091C22.0195 18.0635 22.5617 18.0205 22.9518 18.3082L27.5144 21.6157ZM17.7445 20.8897L11.1321 14.2731C10.5238 13.6943 10.1981 12.879 10.2395 12.0405C10.3171 11.2219 10.6874 10.4595 11.2809 9.89065L11.6446 9.52683L9.09881 6.03742L8.66901 6.21933C8.11191 6.50708 7.60441 6.88083 7.16468 7.32734C6.1877 8.34771 5.76781 9.7782 6.04057 11.164C6.3216 12.7318 7.07707 14.1755 8.20614 15.2984L16.7196 23.8648C17.8454 24.9795 19.2902 25.7137 20.8524 25.9651C22.2278 26.2479 23.6527 25.8394 24.671 24.8736C25.1273 24.4255 25.5075 23.9062 25.7952 23.3356L25.9787 22.9057L22.4724 20.3754L22.1104 20.7227C21.55 21.3313 20.7829 21.71 19.9597 21.7828C19.1265 21.8208 18.3182 21.495 17.7445 20.8897Z"},pin:{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 13.6C6.5 19.5244 13.625 27.9988 16 28C18.375 28.0012 25.5 19.5244 25.5 13.6C25.5 8.2984 21.2464 4 16 4C10.7536 4 6.5 8.2984 6.5 13.6ZM12.6747 13.6C12.6747 15.4552 14.1638 16.96 15.9997 16.96C17.8368 16.96 19.3247 15.4552 19.3247 13.6C19.3247 11.7448 17.8368 10.24 15.9997 10.24C14.1638 10.24 12.6747 11.7448 12.6747 13.6Z"},play:{d:"M26.3809 18.6184L10.2372 26.6903C8.79089 27.4134 7.03223 26.8272 6.3091 25.3809C6.10583 24.9744 6 24.5261 6 24.0716L6 7.92781C6 6.31082 7.31082 5 8.92781 5C9.38234 5 9.83062 5.10583 10.2372 5.3091L26.3809 13.381C27.8272 14.1041 28.4134 15.8628 27.6903 17.309C27.407 17.8756 26.9475 18.3351 26.3809 18.6184Z"},plus:{d:"M27.4331 13.3556C27.748 13.3556 28 13.6075 28 13.9224V18.0811C28.0035 18.3925 27.748 18.6479 27.4366 18.6444L19.2112 18.6479C18.8998 18.6444 18.6444 18.8998 18.6444 19.2147V27.4366C18.6479 27.748 18.3925 28.0035 18.0811 28H13.9224C13.6075 28 13.3556 27.748 13.3556 27.4331V19.2112C13.3556 18.8963 13.1037 18.6444 12.7888 18.6444H4.56687C4.25196 18.6444 4.00004 18.3925 4.00004 18.0776V13.9189C3.99654 13.6075 4.25196 13.3521 4.56337 13.3556H12.7853C13.1002 13.3556 13.3556 13.1002 13.3521 12.7888L13.3556 4.56337C13.3521 4.25196 13.6075 3.99654 13.9189 4.00004H18.0776C18.3925 4.00004 18.6444 4.25196 18.6444 4.56687V12.7888C18.6444 13.1037 18.8963 13.3556 19.2112 13.3556H27.4331Z"},refresh:{fillRule:"evenodd",clipRule:"evenodd",d:"M7.45861 13.8429C7.38818 14.1241 7.1377 14.3226 6.84791 14.3226H3.84408C3.45109 14.3226 3.1525 13.9658 3.22519 13.5795C4.35937 7.55649 9.64748 3 16 3C19.4832 3 22.6463 4.37002 24.9802 6.6004L26.8524 4.72825C27.6449 3.93572 29 4.49702 29 5.6179V12.6452C29 13.34 28.4367 13.9032 27.7419 13.9032H20.7147C19.5938 13.9032 19.0325 12.5482 19.825 11.7556L22.0135 9.56711C20.3748 8.03267 18.2481 7.19155 15.992 7.19355C11.9317 7.19713 8.42643 9.98109 7.45861 13.8429ZM28.7749 18.4206C27.6406 24.4435 22.3525 29 16 29C12.5168 29 9.3537 27.63 7.01976 25.3996L5.14761 27.2717C4.35507 28.0643 3 27.5029 3 26.3821V19.3548C3 18.66 3.56325 18.0967 4.25806 18.0967H11.2853C12.4062 18.0967 12.9675 19.4518 12.175 20.2444L9.98647 22.4329C11.6252 23.9674 13.752 24.8085 16.0082 24.8065C20.0664 24.8028 23.5731 22.0207 24.5414 18.1571C24.6118 17.876 24.8623 17.6775 25.1521 17.6775H28.156C28.549 17.6775 28.8476 18.0343 28.7749 18.4206Z"},retry:{d:"M16.0239 3.00002C8.85244 2.98717 2.99995 8.82871 3 16.0001C3.00005 23.1797 8.82034 29 16 29C19.3509 29 22.4058 27.7322 24.7109 25.65C24.9789 25.4079 24.9916 24.9916 24.7362 24.7362L22.6571 22.6571C22.4232 22.4233 22.0477 22.41 21.7991 22.6282C20.1934 24.0371 18.1558 24.8065 16 24.8065C11.0822 24.8065 7.23358 20.8231 7.19386 16.0759C7.15198 11.0717 11.2347 7.15205 16.0781 7.19388C18.3022 7.21307 20.3957 8.05219 22.0135 9.56708L19.825 11.7556C19.0325 12.5482 19.5938 13.9032 20.7147 13.9032H27.7419C28.4367 13.9032 29 13.34 29 12.6452V5.61792C29 4.49704 27.6449 3.93574 26.8523 4.72827L24.9802 6.60042C22.6516 4.37516 19.4976 3.00627 16.0239 3.00002Z"},search:{fillRule:"evenodd",clipRule:"evenodd",d:"M7.60986 7.60986C5.86994 9.34977 5 11.445 5 13.8956C5 16.3462 5.86994 18.4414 7.60986 20.1813C9.34977 21.9212 11.445 22.7911 13.8956 22.7911C15.6355 22.7911 17.2345 22.3133 18.6926 21.3576L24.2063 26.8713C24.3044 26.9571 24.4146 27 24.5372 27C24.6597 27 24.77 26.9571 24.868 26.8713L26.8713 24.868C26.9571 24.77 27 24.6597 27 24.5372C27 24.4146 26.9571 24.3044 26.8713 24.2063L21.3576 18.6926C22.3133 17.2345 22.7911 15.6355 22.7911 13.8956C22.7911 11.445 21.9212 9.34977 20.1813 7.60986C18.4414 5.86994 16.3462 5 13.8956 5C11.445 5 9.34977 5.86994 7.60986 7.60986ZM9.59484 18.1779C8.4063 16.9894 7.81205 15.562 7.81205 13.8956C7.81205 12.2292 8.4063 10.8017 9.59484 9.61318C10.7834 8.42465 12.2169 7.83039 13.8956 7.83039C15.5742 7.83039 17.0047 8.42159 18.1872 9.60399C19.3696 10.7864 19.9608 12.2169 19.9608 13.8956C19.9608 15.5742 19.3696 17.0047 18.1872 18.1871C17.0047 19.3695 15.5742 19.9607 13.8956 19.9607C12.2169 19.9607 10.7834 19.3665 9.59484 18.1779Z"},share:{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4214 7.04965L12.3798 8.96221C11.7633 9.53968 10.7636 9.53987 10.1467 8.96221C9.53006 8.38455 9.53006 7.44804 10.1467 6.87037L14.8888 2.42844C14.924 2.3958 14.9608 2.36454 14.9992 2.33505C15.012 2.32512 15.0253 2.31611 15.0386 2.30708C15.0448 2.30293 15.0509 2.29877 15.057 2.29452C15.0635 2.29001 15.0699 2.28545 15.0763 2.28088C15.0917 2.26996 15.1071 2.25905 15.1232 2.24896C15.141 2.23784 15.1592 2.22785 15.1775 2.21783C15.1827 2.21497 15.1879 2.21211 15.1931 2.20922C15.1992 2.20578 15.2053 2.20229 15.2114 2.19881C15.226 2.19044 15.2405 2.18211 15.2557 2.17451C15.274 2.16541 15.2927 2.1573 15.3114 2.14919C15.317 2.14676 15.3225 2.14433 15.3281 2.14187C15.3343 2.13912 15.3405 2.13633 15.3467 2.13354C15.3629 2.12621 15.3791 2.11889 15.3959 2.11239C15.4127 2.10586 15.4298 2.10025 15.4469 2.09464C15.4536 2.09246 15.4602 2.09027 15.4669 2.08803C15.4728 2.08602 15.4788 2.08398 15.4847 2.08193C15.5036 2.07545 15.5225 2.06895 15.5418 2.06348C15.5583 2.05887 15.5748 2.05512 15.5914 2.05136C15.5986 2.04974 15.6058 2.04811 15.613 2.04642C15.6198 2.0448 15.6266 2.04313 15.6334 2.04147C15.6527 2.03674 15.672 2.03202 15.6918 2.02837C15.712 2.02458 15.7324 2.02197 15.7529 2.01935C15.7596 2.01849 15.7663 2.01763 15.773 2.01673C15.7814 2.01561 15.7899 2.01436 15.7983 2.0131C15.8136 2.01081 15.8289 2.00853 15.8445 2.00707C15.8933 2.00263 15.9421 2.00037 16.0096 2.00017C16.0584 2.00046 16.1072 2.00263 16.1558 2.00707C16.172 2.00856 16.1879 2.01093 16.2038 2.01331C16.2121 2.01456 16.2205 2.01581 16.2289 2.01693C16.2365 2.01797 16.2441 2.01895 16.2516 2.01992C16.2706 2.02237 16.2896 2.02482 16.3084 2.02827C16.3291 2.03205 16.3493 2.03701 16.3696 2.04196C16.3762 2.04359 16.3829 2.04522 16.3896 2.04681C16.3963 2.04842 16.4031 2.04997 16.4099 2.05152C16.4261 2.05519 16.4422 2.05887 16.4582 2.06338C16.4783 2.06901 16.4978 2.07573 16.5173 2.08245C16.5234 2.08455 16.5295 2.08665 16.5357 2.08872C16.5419 2.09083 16.5482 2.0929 16.5545 2.09496C16.5711 2.10039 16.5876 2.10582 16.604 2.11219C16.6223 2.11931 16.6399 2.12728 16.6577 2.13529C16.6633 2.13782 16.6689 2.14035 16.6745 2.14286C16.6798 2.1452 16.6852 2.1475 16.6905 2.14981C16.7085 2.15761 16.7264 2.16538 16.7441 2.17422C16.761 2.18269 16.7774 2.19205 16.7937 2.20143C16.799 2.20449 16.8044 2.20756 16.8098 2.2106C16.8155 2.21381 16.8213 2.21698 16.827 2.22014C16.8437 2.22932 16.8604 2.23848 16.8766 2.24867C16.8958 2.26075 16.9141 2.27376 16.9325 2.28681C16.9374 2.29027 16.9422 2.29374 16.9471 2.29718C16.9534 2.3016 16.9597 2.30591 16.9661 2.31022C16.9778 2.31813 16.9895 2.32607 17.0008 2.33476C17.0411 2.36572 17.08 2.39846 17.117 2.43307L21.8533 6.87037C22.4699 7.44804 22.4699 8.38455 21.8533 8.96221C21.5451 9.25114 21.141 9.39551 20.737 9.39551C20.3329 9.39551 19.9289 9.25104 19.6206 8.96221L17.5792 7.04975V19.0942C17.5792 19.9111 16.8723 20.5734 16.0003 20.5734C15.1284 20.5734 14.4214 19.9111 14.4214 19.0942V7.04965ZM11.1579 12.7729C11.1579 11.975 10.4981 11.3282 9.68421 11.3282H5.47368L5.27371 11.3414C4.55441 11.4371 4 12.0415 4 12.7729V28.5554L4.01345 28.7514C4.11104 29.4565 4.72762 30 5.47368 30H26.5263L26.7263 29.9868C27.4456 29.8911 28 29.2867 28 28.5554V12.7729L27.9865 12.5768C27.889 11.8717 27.2724 11.3282 26.5263 11.3282H22.3158L22.1158 11.3414C21.3965 11.4371 20.8421 12.0415 20.8421 12.7729L20.8556 12.9689C20.9531 13.674 21.5697 14.2175 22.3158 14.2175H25.0526V27.1108H6.94737V14.2175H9.68421L9.88418 14.2043C10.6035 14.1086 11.1579 13.5042 11.1579 12.7729Z"},"sort-high-low":{fillRule:"evenodd",clipRule:"evenodd",d:"M8.51293 26C8.73079 26 8.90268 25.922 9.02859 25.766L12.7761 22.016C13.0259 21.796 13.0879 21.532 12.964 21.218C12.8381 20.906 12.6042 20.75 12.2605 20.75H10.0119V5.75C10.0119 5.532 9.94199 5.352 9.80208 5.21C9.66017 5.07 9.48029 5 9.26244 5H7.76343C7.54558 5 7.36569 5.07 7.22379 5.21C7.08388 5.352 7.01393 5.532 7.01393 5.75V20.75H4.76542C4.42165 20.75 4.1878 20.906 4.06189 21.218C3.93797 21.532 3.99993 21.796 4.24976 22.016L7.99728 25.766C8.12319 25.922 8.29508 26 8.51293 26ZM27.2505 8C27.4684 8 27.6483 7.93 27.7902 7.79C27.9301 7.648 28 7.468 28 7.25V5.75C28 5.532 27.9301 5.352 27.7902 5.21C27.6483 5.07 27.4684 5 27.2505 5H15.2585C15.0406 5 14.8608 5.07 14.7189 5.21C14.5789 5.352 14.509 5.532 14.509 5.75V7.25C14.509 7.468 14.5789 7.648 14.7189 7.79C14.8608 7.93 15.0406 8 15.2585 8H27.2505ZM14.7189 11.21C14.5789 11.352 14.509 11.532 14.509 11.75V13.25C14.509 13.468 14.5789 13.648 14.7189 13.79C14.8608 13.93 15.0406 14 15.2585 14H24.2525C24.4704 14 24.6503 13.93 24.7922 13.79C24.9321 13.648 25.002 13.468 25.002 13.25V11.75C25.002 11.532 24.9321 11.352 24.7922 11.21C24.6503 11.07 24.4704 11 24.2525 11H15.2585C15.0406 11 14.8608 11.07 14.7189 11.21ZM14.509 17.75C14.509 17.532 14.5789 17.352 14.7189 17.21C14.8608 17.07 15.0406 17 15.2585 17H21.2545C21.4724 17 21.6523 17.07 21.7942 17.21C21.9341 17.352 22.004 17.532 22.004 17.75V19.25C22.004 19.468 21.9341 19.648 21.7942 19.79C21.6523 19.93 21.4724 20 21.2545 20H15.2585C15.0406 20 14.8608 19.93 14.7189 19.79C14.5789 19.648 14.509 19.468 14.509 19.25V17.75ZM14.509 23.75C14.509 23.532 14.5789 23.352 14.7189 23.21C14.8608 23.07 15.0406 23 15.2585 23H18.2565C18.4744 23 18.6542 23.07 18.7961 23.21C18.9361 23.352 19.006 23.532 19.006 23.75V25.25C19.006 25.468 18.9361 25.648 18.7961 25.79C18.6542 25.93 18.4744 26 18.2565 26H15.2585C15.0406 26 14.8608 25.93 14.7189 25.79C14.5789 25.648 14.509 25.468 14.509 25.25V23.75Z"},"sort-low-high":{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7761 9.984L9.02858 6.234C8.90266 6.078 8.73077 6 8.51292 6C8.29506 6 8.12318 6.078 7.99726 6.234L4.24974 9.984C3.99998 10.204 3.93795 10.468 4.06187 10.782C4.18779 11.094 4.42163 11.25 4.7654 11.25H7.01391V26.25C7.01391 26.468 7.08387 26.648 7.22377 26.79C7.36568 26.93 7.54556 27 7.76342 27H9.26242C9.48028 27 9.66016 26.93 9.80206 26.79C9.94197 26.648 10.0119 26.468 10.0119 26.25V11.25H12.2604C12.6042 11.25 12.8381 11.094 12.964 10.782C13.0879 10.468 13.0259 10.204 12.7761 9.984ZM14.509 8.25V6.75C14.509 6.532 14.5789 6.352 14.7188 6.21C14.8607 6.07 15.0406 6 15.2585 6H18.2565C18.4743 6 18.6542 6.07 18.7961 6.21C18.936 6.352 19.006 6.532 19.006 6.75V8.25C19.006 8.468 18.936 8.648 18.7961 8.79C18.6542 8.93 18.4743 9 18.2565 9H15.2585C15.0406 9 14.8607 8.93 14.7188 8.79C14.5789 8.648 14.509 8.468 14.509 8.25ZM14.509 14.25V12.75C14.509 12.532 14.5789 12.352 14.7188 12.21C14.8607 12.07 15.0406 12 15.2585 12H21.2545C21.4724 12 21.6522 12.07 21.7941 12.21C21.9341 12.352 22.004 12.532 22.004 12.75V14.25C22.004 14.468 21.9341 14.648 21.7941 14.79C21.6522 14.93 21.4724 15 21.2545 15H15.2585C15.0406 15 14.8607 14.93 14.7188 14.79C14.5789 14.648 14.509 14.468 14.509 14.25ZM14.509 18.75V20.25C14.509 20.468 14.5789 20.648 14.7188 20.79C14.8607 20.93 15.0406 21 15.2585 21H24.2525C24.4704 21 24.6503 20.93 24.7922 20.79C24.9321 20.648 25.002 20.468 25.002 20.25V18.75C25.002 18.532 24.9321 18.352 24.7922 18.21C24.6503 18.07 24.4704 18 24.2525 18H15.2585C15.0406 18 14.8607 18.07 14.7188 18.21C14.5789 18.352 14.509 18.532 14.509 18.75ZM27.2505 24C27.4684 24 27.6483 24.07 27.7902 24.21C27.9301 24.352 28 24.532 28 24.75V26.25C28 26.468 27.9301 26.648 27.7902 26.79C27.6483 26.93 27.4684 27 27.2505 27H15.2585C15.0406 27 14.8607 26.93 14.7188 26.79C14.5789 26.648 14.509 26.468 14.509 26.25V24.75C14.509 24.532 14.5789 24.352 14.7188 24.21C14.8607 24.07 15.0406 24 15.2585 24H27.2505Z"},star:[{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0003 22.7927C16.1434 22.7927 16.2874 22.8287 16.4159 22.9006L22.5083 26.2838L21.1587 19.5345C21.1021 19.2536 21.1904 18.9632 21.3926 18.7611L26.287 13.8687L20.0987 12.494C19.8597 12.4409 19.6549 12.2884 19.5358 12.0743L15.9978 5.70874L12.4649 12.0743C12.3458 12.2884 12.141 12.4409 11.9019 12.494L5.71365 13.8687L10.6081 18.7611C10.8103 18.9632 10.8986 19.2536 10.842 19.5345L9.49158 26.2838L15.5848 22.9006C15.7133 22.8287 15.8572 22.7927 16.0003 22.7927ZM9.48987 27.9994C9.13598 27.9994 8.78467 27.8881 8.48219 27.6671C7.93637 27.2688 7.67931 26.6101 7.81126 25.9481L9.07172 19.6484L4.50204 15.0798C4.05904 14.637 3.89367 13.9895 4.06847 13.3891C4.24327 12.7886 4.73254 12.3321 5.34263 12.1968L11.1539 10.906L14.5025 4.88049C14.8042 4.33746 15.3783 4 16.0003 4C16.6224 4 17.1965 4.33746 17.4981 4.88049L20.8468 10.906L26.6581 12.1968C27.2682 12.3321 27.7574 12.7886 27.9322 13.3891C28.107 13.9895 27.9417 14.637 27.4986 15.0798L22.929 19.6484L24.1894 25.9472C24.3214 26.6101 24.0643 27.2688 23.5185 27.6671C22.9727 28.0662 22.2666 28.1099 21.6762 27.781L16.0003 24.629L10.3245 27.781C10.0614 27.9275 9.77435 27.9994 9.48987 27.9994Z"},{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8416 16.2184C10.4491 16.2184 10.0944 15.9469 10.0053 15.5477C9.90331 15.0861 10.1946 14.6287 10.6565 14.5259L13.401 13.9161L15.251 10.5877C15.4807 10.1748 16.0025 10.0249 16.4164 10.2553C16.8302 10.4849 16.9793 11.0065 16.7497 11.4202L14.7129 15.0843C14.5938 15.2985 14.389 15.4509 14.1491 15.5049L11.0284 16.1978C10.9658 16.2115 10.9033 16.2184 10.8416 16.2184Z"}],"star-rating-filled":{fillRule:"evenodd",clipRule:"evenodd",d:"M 15.83,0.30 C 16.78,0.16 17.70,0.35 18.34,1.11 18.65,1.48 18.97,2.20 19.19,2.65 19.19,2.65 20.87,6.06 20.87,6.06 21.19,6.76 21.57,7.74 22.09,8.28 22.90,9.13 23.72,9.10 24.78,9.26 24.78,9.26 29.60,9.97 29.60,9.97 29.97,10.02 30.35,10.06 30.70,10.20 31.71,10.61 32.37,11.71 32.28,12.81 32.19,14.02 31.49,14.57 30.70,15.37 30.70,15.37 27.66,18.36 27.66,18.36 27.20,18.82 26.53,19.42 26.26,19.98 25.80,20.90 26.11,21.77 26.26,22.72 26.26,22.72 26.85,26.13 26.85,26.13 26.85,26.13 27.15,28.27 27.15,28.27 27.15,28.76 27.16,29.18 26.95,29.64 26.39,30.80 25.06,31.32 23.86,30.99 23.27,30.83 22.71,30.44 22.17,30.17 22.17,30.17 18.54,28.25 18.54,28.25 17.74,27.84 17.20,27.38 16.26,27.42 15.48,27.45 14.73,27.96 14.06,28.33 14.06,28.33 11.19,29.84 11.19,29.84 10.63,30.16 9.23,30.94 8.66,31.05 7.05,31.35 5.43,30.06 5.55,28.35 5.55,28.35 6.47,22.80 6.47,22.80 6.60,22.02 6.86,21.00 6.60,20.24 6.32,19.45 5.60,18.86 5.03,18.28 5.03,18.28 3.76,17.08 3.76,17.08 3.76,17.08 1.65,14.95 1.65,14.95 1.39,14.69 1.08,14.40 0.89,14.09 0.30,13.18 0.34,11.88 1.01,11.02 1.77,10.04 2.66,10.05 3.76,9.88 3.76,9.88 8.07,9.25 8.07,9.25 9.08,9.10 9.91,9.09 10.67,8.28 11.05,7.87 11.46,6.94 11.72,6.41 11.72,6.41 13.44,2.91 13.44,2.91 14.02,1.63 14.33,0.66 15.83,0.30 Z"},"star-rating-unfilled":{fillRule:"evenodd",clipRule:"evenodd",d:"M 15.47,0.18 C 16.63,0.04 17.89,0.49 18.65,1.41 19.03,1.88 19.51,2.96 19.80,3.54 19.80,3.54 21.17,6.30 21.17,6.30 21.40,6.77 21.66,7.51 21.99,7.88 22.54,8.48 23.64,8.46 24.41,8.58 24.41,8.58 27.62,9.05 27.62,9.05 28.31,9.15 29.11,9.23 29.74,9.49 30.99,10.02 31.78,11.27 31.78,12.61 31.78,13.20 31.81,13.54 31.59,14.11 31.25,14.98 30.77,15.36 30.13,16.00 30.13,16.00 27.47,18.61 27.47,18.61 27.14,18.93 26.27,19.74 26.11,20.11 25.90,20.57 26.18,21.63 26.27,22.16 26.27,22.16 26.82,25.39 26.82,25.39 26.82,25.39 27.07,27.13 27.07,27.13 27.08,27.86 27.08,28.34 26.74,29.02 26.53,29.44 26.32,29.71 25.98,30.04 25.02,30.93 23.69,31.21 22.45,30.83 21.79,30.63 21.09,30.19 20.49,29.87 20.49,29.87 18.06,28.60 18.06,28.60 17.55,28.34 16.38,27.60 15.86,27.61 15.39,27.62 13.99,28.46 13.51,28.72 13.51,28.72 11.07,29.99 11.07,29.99 10.51,30.28 9.97,30.64 9.35,30.83 8.10,31.21 6.71,30.93 5.76,30.01 5.46,29.72 5.17,29.33 5.00,28.94 4.81,28.51 4.65,27.75 4.68,27.28 4.68,27.28 5.51,22.16 5.51,22.16 5.61,21.58 5.89,20.54 5.63,20.03 5.41,19.61 4.41,18.69 4.02,18.35 4.02,18.35 2.06,16.40 2.06,16.40 0.94,15.27 0.04,14.65 -0.06,12.93 -0.07,12.64 0.00,12.19 0.07,11.90 0.14,11.57 0.24,11.33 0.39,11.03 1.32,9.25 2.99,9.22 4.72,8.97 4.72,8.97 7.23,8.60 7.23,8.60 7.86,8.51 9.20,8.44 9.65,8.02 9.99,7.71 10.47,6.61 10.70,6.14 10.70,6.14 11.95,3.62 11.95,3.62 12.60,2.25 12.94,1.10 14.45,0.45 14.85,0.28 15.05,0.25 15.47,0.18 Z M 15.70,2.62 C 14.83,2.84 14.56,3.83 14.19,4.57 14.19,4.57 12.62,7.72 12.62,7.72 12.25,8.49 12.10,9.05 11.46,9.69 10.50,10.67 9.60,10.71 8.33,10.90 8.33,10.90 5.11,11.37 5.11,11.37 4.68,11.43 3.31,11.58 3.00,11.76 2.78,11.88 2.60,12.07 2.49,12.30 2.10,13.11 2.72,13.60 3.23,14.11 3.23,14.11 4.02,14.90 4.02,14.90 4.02,14.90 5.74,16.62 5.74,16.62 7.10,17.86 8.20,18.68 8.17,20.66 8.17,21.23 7.98,22.04 7.88,22.63 7.88,22.63 7.26,26.26 7.26,26.26 7.13,27.05 6.83,28.01 7.78,28.45 8.40,28.73 8.90,28.37 9.43,28.09 9.43,28.09 10.37,27.61 10.37,27.61 10.37,27.61 13.19,26.12 13.19,26.12 14.26,25.55 14.97,25.04 16.25,25.17 17.18,25.26 17.59,25.61 18.37,26.00 18.37,26.00 21.90,27.86 21.90,27.86 22.69,28.25 23.60,29.01 24.39,28.14 24.90,27.58 24.59,26.63 24.47,25.94 24.47,25.94 23.97,23.02 23.97,23.02 23.85,22.37 23.63,21.30 23.62,20.66 23.62,20.10 23.61,19.78 23.82,19.24 24.13,18.43 24.60,18.02 25.19,17.42 25.19,17.42 27.62,15.06 27.62,15.06 28.14,14.54 29.50,13.46 29.40,12.69 29.26,11.63 28.29,11.61 27.47,11.49 27.47,11.49 23.94,10.97 23.94,10.97 23.38,10.89 22.22,10.76 21.74,10.58 20.19,10.04 19.80,9.07 19.13,7.72 19.13,7.72 17.99,5.36 17.99,5.36 17.99,5.36 17.21,3.78 17.21,3.78 17.06,3.47 16.90,3.09 16.64,2.86 16.35,2.62 16.06,2.59 15.70,2.62 Z"},tick:{d:"M13.8485 24.6465L27.6485 10.7671C28.1171 10.2958 28.1171 9.53161 27.6485 9.0603L25.9514 7.35348C25.4828 6.88217 24.723 6.88217 24.2544 7.35348L13 18.6726L7.74554 13.388C7.27693 12.9166 6.51709 12.9166 6.04848 13.388L4.35146 15.0948C3.88285 15.5661 3.88285 16.3303 4.35146 16.8016L12.1515 24.6465C12.62 25.1178 13.3798 25.1178 13.8485 24.6465Z"},ticket:{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0513 27.3568C13.3898 26.9479 12.633 26.7453 11.8762 26.7453C11.2559 26.7453 10.6355 26.8816 10.0637 27.1579L5.22019 22.7667C5.73219 21.47 5.53599 19.9854 4.68576 18.8673L17.9493 4.64753C19.1508 5.38983 20.6719 5.45799 21.9369 4.84646L26.7823 9.23764C26.2684 10.5362 26.4665 12.0208 27.3148 13.137L14.0513 27.3568ZM14.1167 30H14.1391C14.4512 30 14.752 29.8711 14.965 29.6427L29.7048 13.8425C29.9215 13.6104 30.0262 13.2991 29.9944 12.9842C29.9626 12.671 29.7963 12.3855 29.5385 12.2014C29.5357 12.1986 29.4871 12.1641 29.4385 12.1295C29.3899 12.095 29.3413 12.0604 29.3385 12.0577C28.6509 11.4351 28.5444 10.3963 29.09 9.63922C29.417 9.1861 29.3516 8.56352 28.9349 8.18593L22.8207 2.64353C22.404 2.26594 21.7668 2.25489 21.3371 2.61222C20.6176 3.21269 19.56 3.19427 18.8723 2.5717L18.138 3.35821L18.8649 2.56617L18.7191 2.39487C18.5098 2.15174 18.2071 2.00991 17.8857 2.00254C17.469 1.97859 17.2541 2.12595 17.0373 2.35988L2.29761 18.1619C2.07898 18.3958 1.97247 18.7089 2.0061 19.0239C2.03974 19.3389 2.20792 19.6262 2.46952 19.8086C2.47233 19.8104 2.51951 19.8436 2.56669 19.8767C2.61387 19.9099 2.66106 19.943 2.66386 19.9449C3.35152 20.5674 3.45803 21.6081 2.91239 22.3633C2.58538 22.8164 2.65078 23.4409 3.06748 23.8166L9.18163 29.359C9.59647 29.7366 10.2318 29.7477 10.6653 29.3922C11.3829 28.788 12.4405 28.8101 13.13 29.4327C13.13 29.4327 13.2814 29.6077 13.2833 29.6095C13.4907 29.8508 13.7934 29.9945 14.1167 30ZM12 15.3477L14.7272 14.6736L15.729 12L17.1981 14.4375L20 14.584L18.1824 16.7644L18.9118 19.5292L16.3178 18.4383L13.9685 20L14.1824 17.1455L12 15.3477Z"},"trash-bin":{fillRule:"evenodd",clipRule:"evenodd",d:"M13.1333 4C12.6915 4 12.3333 4.35817 12.3333 4.8V5.85508C8.6337 5.85888 5.63972 5.86507 5.60239 5.87492C5.21744 5.97638 4.96477 6.37342 5.004 6.80032C5.04324 7.22664 5.36033 7.56249 5.76094 7.57139C6.12413 7.57945 6.48749 7.57768 6.86116 7.57585H6.86117C7.02449 7.57505 7.18978 7.57425 7.35788 7.57425V8.06816L7.35759 12.5502V12.5522C7.35723 16.5536 7.35685 20.6925 7.35866 24.5247C7.35955 26.38 8.82392 27.9968 10.5024 27.9979C14.1512 28.0005 17.8 28.0014 21.4488 27.9966C23.1911 27.9943 24.6383 26.4073 24.6397 24.4958C24.6424 20.6371 24.6419 16.4715 24.6414 12.4437V12.4402V12.4284C24.6412 10.9015 24.641 9.39447 24.641 7.93156V7.57489C24.794 7.57489 24.9443 7.57635 25.0927 7.57779L25.0928 7.57779C25.4593 7.58135 25.8138 7.58479 26.1674 7.56584C26.3519 7.55592 26.5559 7.48163 26.7085 7.36788C26.9832 7.16319 27.0626 6.77062 26.9516 6.42652C26.835 6.06522 26.5512 5.85017 26.1746 5.8499C25.575 5.84942 22.8998 5.8493 19.6666 5.85041V4.8C19.6666 4.35817 19.3085 4 18.8666 4H13.1333ZM8.92887 7.92592V7.58807H23.0699V7.86312V8.94115C23.0699 13.9975 23.0699 19.4949 23.0693 24.4833L23.0693 24.5093C23.0693 24.6264 23.0694 24.7445 23.0545 24.8597C22.9354 25.7815 22.4202 26.2679 21.5386 26.271C19.8613 26.2771 12.5464 26.2753 10.5663 26.2696C10.3557 26.269 10.1387 26.2487 9.93587 26.1907C9.28204 26.0037 8.93171 25.4351 8.92999 24.5731C8.9274 23.2723 8.92794 21.6651 8.92844 20.1951V20.1949V20.194V20.1931C8.92863 19.6334 8.92882 19.0937 8.92882 18.5984L8.92887 7.92592ZM13.249 18.2631C13.2488 17.8337 13.2486 17.4043 13.2486 16.9749H13.2497L13.2499 15.6576C13.2501 14.5598 13.2503 13.462 13.2493 12.3643C13.2487 11.7781 12.8771 11.3942 12.3207 11.3981C11.7839 11.4019 11.4173 11.7907 11.4171 12.3596C11.4166 15.4245 11.4164 18.4894 11.4176 21.5542C11.4177 21.6512 11.4207 21.7513 11.4459 21.8443C11.5598 22.2656 11.9755 22.5348 12.4305 22.4903C12.903 22.4442 13.2462 22.0839 13.2473 21.6123C13.2499 20.4959 13.2495 19.3795 13.249 18.2631ZM16.9145 18.2431V18.2431V18.2431C16.9143 17.8108 16.9141 17.3785 16.9141 16.9462H16.9151C16.9151 16.5301 16.9149 16.114 16.9147 15.698V15.6975C16.9143 14.5776 16.9138 13.4577 16.9166 12.3378C16.9176 11.9446 16.7575 11.6446 16.3695 11.4785C15.7447 11.211 15.0851 11.6416 15.0847 12.3158C15.0825 15.4057 15.0832 18.4958 15.0844 21.5858C15.0844 21.6737 15.0906 21.7644 15.1141 21.8489C15.2314 22.2697 15.6472 22.5367 16.1016 22.4898C16.5732 22.4411 16.9118 22.0809 16.9129 21.6079C16.9153 20.4863 16.9149 19.3647 16.9145 18.2431ZM18.7504 15.5392L18.7504 15.5345C18.7499 14.4555 18.7494 13.3764 18.7523 12.2973C18.7542 11.5957 19.5056 11.1744 20.1296 11.5227C20.4639 11.7092 20.5841 11.9996 20.5833 12.3563C20.5799 13.9976 20.5801 15.6388 20.5804 17.2801L20.5805 18.9637L20.5806 19.656C20.5807 20.2866 20.5809 20.9173 20.5797 21.548C20.5788 22.1129 20.2055 22.4967 19.6627 22.4951C19.1225 22.4937 18.7506 22.1051 18.7506 21.5423C18.7506 20.0059 18.7506 18.4695 18.7508 16.9331C18.7509 16.4685 18.7506 16.0039 18.7504 15.5392Z"},upload:{fillRule:"evenodd",clipRule:"evenodd",d:"M8.24697 4.74594C8.24697 4.19992 7.80107 3.75565 7.25303 3.75565C7.11327 3.75565 7 3.64192 7 3.50159C7 3.36126 7.11327 3.24753 7.25303 3.24753C7.80107 3.24753 8.24697 2.80187 8.24697 2.25406C8.24697 2.11373 8.36024 2 8.5 2C8.63976 2 8.75303 2.11373 8.75303 2.25406C8.75303 2.80008 9.19893 3.24435 9.74697 3.24435C9.88673 3.24435 10 3.35808 10 3.49841C10 3.63867 9.88673 3.75247 9.74697 3.75247C9.19893 3.75247 8.75303 4.19813 8.75303 4.74594C8.75303 4.8862 8.63976 5 8.5 5C8.36024 5 8.24697 4.8862 8.24697 4.74594ZM24.1454 10.506C23.8674 8.79357 23.0494 7.23081 21.7983 6.04489C20.4082 4.72596 18.6011 4 16.7191 4C15.2649 4 13.848 4.43225 12.6344 5.24688C11.6239 5.92297 10.7845 6.83735 10.191 7.91244C9.9344 7.86257 9.66708 7.83486 9.39975 7.83486C7.12749 7.83486 5.27761 9.75229 5.27761 12.1075C5.27761 12.4123 5.30969 12.706 5.36315 12.9942C3.89286 14.1025 3 15.8869 3 17.7878C3 19.3228 3.55069 20.8135 4.55583 21.9939C5.5877 23.202 6.95106 23.9169 8.4053 24H8.44808H13.0461C13.447 24 13.7678 23.6675 13.7678 23.2519C13.7678 22.8362 13.447 22.5037 13.0461 22.5037H8.46946C6.28275 22.3652 4.44355 20.2095 4.44355 17.7822C4.44355 16.2139 5.25622 14.7509 6.56611 13.9584C6.87086 13.7756 6.99918 13.3932 6.88155 13.0496C6.77462 12.7503 6.72116 12.4345 6.72116 12.0964C6.72116 10.5669 7.92412 9.32003 9.39975 9.32003C9.7152 9.32003 10.0253 9.37545 10.314 9.48628C10.6669 9.61929 11.0572 9.45303 11.2176 9.10391C12.2174 6.90385 14.3773 5.48518 16.7244 5.48518C19.8789 5.48518 22.4826 7.93461 22.782 11.182C22.8141 11.5201 23.06 11.7916 23.3808 11.847C25.76 12.2682 27.5564 14.5459 27.5564 17.1449C27.5564 19.8991 25.466 22.2932 22.889 22.4982H18.9486C18.5476 22.4982 18.2268 22.8307 18.2268 23.2463C18.2268 23.662 18.5476 23.9945 18.9486 23.9945H22.9157H22.9692C24.5998 23.8725 26.1236 23.0967 27.257 21.7999C28.3852 20.5143 29 18.8628 29 17.1449C28.9947 14.036 26.9469 11.2707 24.1454 10.506ZM20.3217 18.7126C20.606 18.4224 20.606 17.9571 20.3217 17.6669L16.4863 13.7523C16.3522 13.6154 16.1645 13.5333 15.9767 13.5333C15.789 13.5333 15.6013 13.61 15.4672 13.7523L11.6318 17.6669C11.3475 17.9571 11.3475 18.4224 11.6318 18.7126C11.7713 18.855 11.959 18.9316 12.1414 18.9316C12.3238 18.9316 12.5115 18.8604 12.651 18.7126L15.2526 16.0573V26.972C15.2526 27.3826 15.5744 27.7111 15.9767 27.7111C16.379 27.7111 16.7009 27.3826 16.7009 26.972V16.0573L19.3025 18.7126C19.5814 19.0028 20.0374 19.0028 20.3217 18.7126ZM5.27244 4.27359C5.27244 5.07347 5.92522 5.72417 6.72756 5.72417C6.87804 5.72417 7 5.84671 7 5.99776C7 6.14887 6.87804 6.27134 6.72756 6.27134C5.92522 6.27134 5.27244 6.9241 5.27244 7.72641C5.27244 7.87746 5.15048 8 5 8C4.84952 8 4.72756 7.87746 4.72756 7.72641C4.72756 6.9241 4.07478 6.27134 3.27244 6.27134C3.12196 6.27134 3 6.14887 3 5.99776C3 5.84671 3.12196 5.72417 3.27244 5.72417C4.07478 5.72417 4.72756 5.07347 4.72756 4.27359C4.72756 4.12254 4.84952 4 5 4C5.15048 4 5.27244 4.12254 5.27244 4.27359ZM28.6452 26.0667C27.6003 26.0667 26.7501 25.2281 26.7501 24.1971C26.7501 24.0024 26.5913 23.8445 26.3953 23.8445C26.1994 23.8445 26.0405 24.0024 26.0405 24.1971C26.0405 25.2281 25.1904 26.0667 24.1455 26.0667C23.9495 26.0667 23.7907 26.2247 23.7907 26.4194C23.7907 26.6141 23.9495 26.772 24.1455 26.772C25.1904 26.772 26.0405 27.6133 26.0405 28.6474C26.0405 28.8421 26.1994 29 26.3953 29C26.5913 29 26.7501 28.8421 26.7501 28.6474C26.7501 27.6133 27.6003 26.772 28.6452 26.772C28.8412 26.772 29 26.6141 29 26.4194C29 26.2247 28.8412 26.0667 28.6452 26.0667Z"},users:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4511 10.5C11.4511 8.01257 13.4863 6 16.0017 6C18.5171 6 20.5523 8.01257 20.5523 10.5C20.5523 12.9874 18.5171 15 16.0017 15C13.4863 15 11.4511 12.9874 11.4511 10.5ZM21.8525 10.5C21.8525 8.724 23.307 7.28571 25.103 7.28571C26.8989 7.28571 28.3534 8.724 28.3534 10.5C28.3534 12.276 26.8989 13.7143 25.103 13.7143C23.307 13.7143 21.8525 12.276 21.8525 10.5ZM25.103 11.7857C24.387 11.7857 23.8028 11.208 23.8028 10.5C23.8028 9.792 24.387 9.21429 25.103 9.21429C25.8189 9.21429 26.4031 9.792 26.4031 10.5C26.4031 11.208 25.8189 11.7857 25.103 11.7857ZM28.024 19.3389C28.5614 19.3389 29 18.9051 29 18.3754C29.0034 16.5154 27.471 15 25.59 15H24.6158C23.9119 15 23.2584 15.2126 22.7141 15.5743C23.2584 15.9806 23.7369 16.4657 24.1113 17.0297C24.2708 16.9731 24.4372 16.9286 24.6106 16.9286H25.5866C26.3909 16.9286 27.0497 17.58 27.0497 18.3754C27.0497 18.9051 27.4883 19.3389 28.024 19.3389ZM16.0017 13.0714C14.5681 13.0714 13.4014 11.9177 13.4014 10.5C13.4014 9.08226 14.5681 7.92854 16.0017 7.92854C17.4354 7.92854 18.6021 9.08226 18.6021 10.5C18.6021 11.9177 17.4354 13.0714 16.0017 13.0714ZM19.195 17.5715C20.665 17.6109 21.8525 18.8057 21.8525 20.2715V22.0715H10.151V20.2715C10.151 18.8092 11.3385 17.6109 12.8085 17.5715C13.8435 17.9983 14.9165 18.2143 16.0017 18.2143C17.087 18.2143 18.16 17.9983 19.195 17.5715ZM23.7941 20.2715V22.0715C23.7941 23.136 22.9204 24 21.8438 24H10.1423C9.06574 24 8.19202 23.136 8.19202 22.0715V20.2715C8.19202 19.3149 8.485 18.4269 8.98946 17.688C10.1059 16.044 12.2676 15.4372 14.1815 16.0132C14.7588 16.1846 15.3638 16.2823 15.9983 16.2823C16.631 16.2823 17.236 16.1846 17.8133 16.0132C19.7272 15.4372 21.8889 16.0492 23.0071 17.688C23.5098 18.4269 23.8028 19.3149 23.7941 20.2715ZM6.90052 11.7857C6.18456 11.7857 5.60035 11.208 5.60035 10.5C5.60035 9.792 6.18456 9.21429 6.90052 9.21429C7.61648 9.21429 8.20069 9.792 8.20069 10.5C8.20069 11.208 7.61648 11.7857 6.90052 11.7857ZM3.65009 10.5C3.65009 8.724 5.10455 7.28571 6.90052 7.28571C8.69649 7.28571 10.151 8.724 10.151 10.5C10.151 12.276 8.69649 13.7143 6.90052 13.7143C5.10455 13.7143 3.65009 12.276 3.65009 10.5ZM7.38765 16.9286C7.56621 16.9286 7.73263 16.9731 7.88692 17.0297C8.26657 16.4657 8.74503 15.9806 9.28937 15.5743C8.74503 15.2126 8.09148 15 7.38765 15H6.41339C4.53247 15 3 16.5154 3 18.3754C3 18.9051 3.43859 19.3389 3.97426 19.3389C4.51167 19.3389 4.95026 18.9051 4.95026 18.3754C4.95026 17.58 5.60901 16.9286 6.41339 16.9286H7.38765Z"},web:{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12.6085C5.43027 7.08052 10.2671 3 16.0003 3C21.7334 3 26.5697 7.08052 28 12.6085H26.8729C26.4683 11.1949 25.8127 9.89527 24.969 8.75504C24.0458 9.29907 22.9784 9.75367 21.797 10.1039C21.9933 10.8956 22.1567 11.7297 22.2707 12.6085H21.1688C21.0591 11.8312 20.9095 11.09 20.7313 10.3843C19.4288 10.6847 18.0199 10.8612 16.5403 10.8968V12.6085H15.4597V10.8968C13.9796 10.8612 12.5712 10.6841 11.2687 10.3831C11.0905 11.0888 10.9409 11.8312 10.8312 12.6085H9.72932C9.84335 11.7297 10.0062 10.8956 10.203 10.1039C9.02213 9.75367 7.95422 9.29907 7.03104 8.75504C6.1879 9.89527 5.53169 11.1949 5.12766 12.6085H4ZM20.4243 9.29276C19.5378 6.51184 18.1284 4.56445 16.5402 4.19928V9.76628C17.9151 9.73074 19.2215 9.56564 20.4243 9.29276ZM24.2574 7.8762C22.8885 6.3536 21.1398 5.21452 19.1717 4.61316C20.1228 5.66167 20.9194 7.17739 21.4939 9.01414C22.5273 8.70916 23.4587 8.3245 24.2574 7.8762ZM20.3146 13.7396L21.6934 18.261H22.957L24.1039 14.881L25.2529 18.261H26.4891L27.8914 13.7396H26.7172L25.8318 16.8978L24.8198 13.7396H23.4339L22.3781 16.8444L21.5075 13.7396H20.3146ZM16.0003 29C10.2671 29 5.43027 24.9201 4 19.3915H5.12766C5.53169 20.8057 6.1879 22.1053 7.03104 23.2456C7.95422 22.7009 9.02213 22.2469 10.203 21.8967C10.0062 21.105 9.84335 20.2709 9.72932 19.3915H10.8312C10.9409 20.1688 11.0905 20.9106 11.2687 21.6157C12.5707 21.3159 13.9801 21.1388 15.4597 21.1038V19.3915H16.5403V21.1038C18.0199 21.1388 19.4288 21.3165 20.7313 21.6169C20.9095 20.9118 21.0591 20.1694 21.1688 19.3915H22.2707C22.1567 20.2709 21.9933 21.105 21.797 21.8967C22.9779 22.2469 24.0458 22.7015 24.969 23.2456C25.8127 22.1053 26.4683 20.8057 26.8729 19.3915H28C26.5697 24.9201 21.7334 29 16.0003 29ZM20.4243 22.7078C19.221 22.4349 17.9146 22.2693 16.5402 22.2337V27.8013C18.1284 27.4361 19.5373 25.4882 20.4243 22.7078ZM10.5072 22.9858C11.0817 24.8226 11.8771 26.3389 12.8288 27.3874C10.8602 26.786 9.11143 25.647 7.74256 24.1238C8.5413 23.6761 9.47325 23.2914 10.5072 22.9858ZM21.4939 22.9858C22.5273 23.2914 23.4587 23.6761 24.2574 24.1238C22.8885 25.647 21.1398 26.786 19.1717 27.3874C20.1228 26.3389 20.9194 24.8226 21.4939 22.9858ZM15.4597 22.2337V27.8013C13.8716 27.4361 12.4627 25.4882 11.5757 22.7078C12.7785 22.4349 14.0854 22.2693 15.4597 22.2337ZM13.5997 18.261L12.2259 13.7396H13.4144L14.2811 16.8444L15.3326 13.7396H16.7135L17.7217 16.8978L18.6043 13.7396H19.7742L18.3773 18.261H17.1455L16.0003 14.881L14.8589 18.261H13.5997ZM4.10857 13.7396L5.48128 18.261H6.74052L7.88298 14.881L9.02819 18.261H10.26L11.6568 13.7396H10.487L9.6049 16.8978L8.59675 13.7396H7.21581L6.16435 16.8444L5.29763 13.7396H4.10857ZM12.8288 4.61316C11.8771 5.66167 11.0806 7.17739 10.5061 9.01414C9.4727 8.70916 8.5413 8.3245 7.74256 7.8762C9.11143 6.3536 10.8602 5.21452 12.8288 4.61316ZM15.4597 4.19928V9.76628C14.0854 9.73074 12.7785 9.56564 11.5757 9.29276C12.4627 6.51184 13.8716 4.56445 15.4597 4.19928Z"}},LocationUnknownIcon=e=>jsxs(SVG,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.1862 5C22.1633 5 11.518 8.78 4.84159 14.1335C4.84459 14.135 4.85209 14.138 4.85809 14.1395C4.7861 14.195 4.7216 14.2505 4.6571 14.3165C3.79311 15.1805 3.77962 16.5695 4.6256 17.4185C4.87909 17.6705 5.17759 17.8445 5.49858 17.9435L5.69508 17.9915C5.71758 17.9975 5.74308 18.0065 5.76708 18.011L11.77 19.502C12.2155 19.6115 12.5919 19.8215 12.8859 20.1125C13.1784 20.408 13.3884 20.7845 13.4979 21.2315L14.9889 27.233L15.0069 27.305L15.0564 27.5C15.1554 27.8225 15.3279 28.1195 15.5814 28.373C15.9999 28.7915 16.5504 29 17.1039 29C17.6724 29 18.2453 28.781 18.6833 28.343C18.7493 28.277 18.8048 28.214 18.8588 28.1405C18.8618 28.1465 18.8648 28.154 18.8663 28.1585C25.1557 20.315 29.2716 6.995 27.6427 5.369C27.6412 5.3675 27.6367 5.366 27.6352 5.3645C27.6322 5.363 27.6322 5.3585 27.6292 5.357C27.3877 5.1155 26.8882 5 26.1862 5M26.1861 6.19998V6.19998C26.4156 6.19998 26.5776 6.21498 26.6856 6.23148L26.7741 6.27648C27.3006 8.31948 24.1942 18.6425 19.0733 25.8875L19.0628 25.8665L17.8988 27.4205C17.8778 27.4475 17.8583 27.4685 17.8343 27.4925C17.6363 27.6905 17.3768 27.8 17.1038 27.8C16.8458 27.8 16.6073 27.7025 16.4288 27.5255C16.3223 27.416 16.2488 27.293 16.2188 27.206L16.1528 26.9435L14.6633 20.9465C14.5014 20.2895 14.1909 19.7255 13.7289 19.2605C13.2804 18.815 12.7014 18.4955 12.0594 18.338L6.06701 16.8515L6.06851 16.85L6.01001 16.8335L5.98151 16.8275L5.85101 16.796C5.70702 16.7525 5.58252 16.6775 5.47602 16.571C5.09653 16.1915 5.11003 15.5615 5.51652 15.155C5.54352 15.128 5.57052 15.1055 5.59902 15.083L6.583 14.309C13.0269 9.56149 22.5397 6.19998 26.1861 6.19998",fill:"currentColor"}),jsx("mask",{id:"mask0_4_201",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"5",width:"24",height:"24",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.1862 5C22.1633 5 11.518 8.78 4.84159 14.1335C4.84459 14.135 4.85209 14.138 4.85809 14.1395C4.7861 14.195 4.7216 14.2505 4.6571 14.3165C3.79311 15.1805 3.77962 16.5695 4.6256 17.4185C4.87909 17.6705 5.17759 17.8445 5.49858 17.9435L5.69508 17.9915C5.71758 17.9975 5.74308 18.0065 5.76708 18.011L11.77 19.502C12.2155 19.6115 12.5919 19.8215 12.8859 20.1125C13.1784 20.408 13.3884 20.7845 13.4979 21.2315L14.9889 27.233L15.0069 27.305L15.0564 27.5C15.1554 27.8225 15.3279 28.1195 15.5814 28.373C15.9999 28.7915 16.5504 29 17.1039 29C17.6724 29 18.2453 28.781 18.6833 28.343C18.7493 28.277 18.8048 28.214 18.8588 28.1405C18.8618 28.1465 18.8648 28.154 18.8663 28.1585C25.1557 20.315 29.2716 6.995 27.6427 5.369C27.6412 5.3675 27.6367 5.366 27.6352 5.3645C27.6322 5.363 27.6322 5.3585 27.6292 5.357C27.3877 5.1155 26.8882 5 26.1862 5M26.1861 6.19998V6.19998C26.4156 6.19998 26.5776 6.21498 26.6856 6.23148L26.7741 6.27648C27.3006 8.31948 24.1942 18.6425 19.0733 25.8875L19.0628 25.8665L17.8988 27.4205C17.8778 27.4475 17.8583 27.4685 17.8343 27.4925C17.6363 27.6905 17.3768 27.8 17.1038 27.8C16.8458 27.8 16.6073 27.7025 16.4288 27.5255C16.3223 27.416 16.2488 27.293 16.2188 27.206L16.1528 26.9435L14.6633 20.9465C14.5014 20.2895 14.1909 19.7255 13.7289 19.2605C13.2804 18.815 12.7014 18.4955 12.0594 18.338L6.06701 16.8515L6.06851 16.85L6.01001 16.8335L5.98151 16.8275L5.85101 16.796C5.70702 16.7525 5.58252 16.6775 5.47602 16.571C5.09653 16.1915 5.11003 15.5615 5.51652 15.155C5.54352 15.128 5.57052 15.1055 5.59902 15.083L6.583 14.309C13.0269 9.56149 22.5397 6.19998 26.1861 6.19998",fill:"white"})}),jsx("g",{mask:"url(#mask0_4_201)",children:jsx("path",{d:"M22.2561 12.0586C24.6636 12.4058 26.6009 14.3627 26.9402 16.7368C27.1872 18.4228 26.6809 19.3679 25.2006 20.671L24.4203 21.3371L24.0346 21.6845L23.8906 21.8283L23.7548 21.9807L23.5868 22.1839L23.4672 22.3442L23.3645 22.5033L23.1988 22.8072C23.0699 23.0762 22.9904 23.361 22.9638 23.6686L22.9538 25.204V27.8049L22.7517 28H20.0568L19.8547 27.8049V25.204L19.894 23.7916L19.9242 23.3533C19.9528 22.9982 19.99 22.6835 20.0355 22.5226L20.1346 22.2163L20.1505 22.1533L20.1812 22.0789L20.2069 22.0346L20.3185 21.7872L20.436 21.5609L20.5707 21.3323L20.5823 21.3677L20.6183 21.2494L20.7769 21.032C20.9674 20.7859 21.1834 20.5609 21.4448 20.3302L21.7219 20.0967L21.9684 19.9032L22.8115 19.2658C23.5407 18.6823 23.8467 18.2398 23.8977 17.5803C23.9969 16.4196 23.1252 15.2967 21.9414 15.0562C20.7803 14.8168 19.6416 15.4002 19.1613 16.3935L19.0051 16.7543C18.779 17.2044 18.3671 17.5197 17.8834 17.5842L17.6988 17.5964H17.4293C16.4711 17.5964 15.7812 16.7017 16.064 15.822C16.8556 13.2939 19.4541 11.6648 22.2561 12.0586Z",fill:"white",stroke:"white",strokeWidth:"2"})}),jsx(StyledPath,{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6183 21.2494L20.7769 21.032C21.0309 20.7039 21.3303 20.4132 21.7219 20.0967L21.9684 19.9032L22.8115 19.2658C23.5407 18.6823 23.8467 18.2398 23.8977 17.5803C23.9969 16.4196 23.1252 15.2967 21.9414 15.0562C20.7029 14.8009 19.4899 15.4817 19.0742 16.5974L19.0051 16.7543C18.7508 17.2606 18.2612 17.5964 17.6988 17.5964H17.4293C16.4711 17.5964 15.7812 16.7017 16.064 15.822C16.8556 13.2939 19.4541 11.6648 22.2561 12.0586C24.6636 12.4058 26.6009 14.3627 26.9402 16.7368C27.2026 18.5281 26.6147 19.4831 24.9115 20.9198L24.4203 21.3371L24.0346 21.6845C23.9339 21.7803 23.8444 21.8733 23.7548 21.9807L23.5868 22.1839C23.5002 22.2934 23.4286 22.3956 23.3645 22.5033L23.1988 22.8072C23.0376 23.1434 22.9538 23.5045 22.9538 23.9036L22.7517 24.0986H20.0568L19.8547 23.9036C19.8547 23.2732 19.9524 22.7145 20.1346 22.2163L20.1505 22.1533L20.1812 22.0789L20.2069 22.0346L20.3185 21.7872C20.391 21.6369 20.4753 21.4858 20.5707 21.3323L20.6183 21.2494ZM20.0568 25.0089H22.7517L22.9538 25.204V27.8049L22.7517 28H20.0568L19.8547 27.8049V25.204L20.0568 25.0089Z"})]}),StyledPath=styled.path`
|
|
2200
|
-
fill: ${Color.Primary};
|
|
2201
|
-
`,MailUnreadIcon=e=>jsxs(SVG,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0205 7.50012H5.78366C4.80103 7.50012 4 8.32441 4 9.33778V22.6591C4 23.6742 4.80103 24.5001 5.78366 24.5001H26.2147C27.1974 24.5001 28 23.6742 28 22.6591V13.6586C27.3744 13.8797 26.7013 14 26 14C25.9813 14 25.9626 13.9999 25.9439 13.9997V22.387H6.05447V11.0576L14.929 17.0996C15.6068 17.564 16.4776 17.5623 17.1424 17.0996L22.9087 13.1434C22.2907 12.7712 21.7454 12.2908 21.2988 11.7285L16.0657 15.3432L7.65002 9.60964H20.2184C20.0761 9.0974 20 8.55758 20 8C20 7.83166 20.0069 7.66495 20.0205 7.50012Z",fill:"currentColor"}),jsx("circle",{cx:"26",cy:"8",r:"4",fill:"#F57F17"})]}),Icon=({type:e,...t})=>{switch(e){case"document-with-pencil":return jsx(DocumentWithPencilIcon,{...t});case"location-unknown":return jsx(LocationUnknownIcon,{...t});case"mail-unread":return jsx(MailUnreadIcon,{...t})}const r=IconData[e];if(!r)return null;return jsx(SVG,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t,children:Array.isArray(r)?r.map(((t,r)=>jsx("path",{fill:"currentColor",...t},`${e}-${r}`))):jsx("path",{fill:"currentColor",...r})})};var minus={},MinusIcon;Object.defineProperty(minus,"__esModule",{value:!0});var e$3=require$$0;const r=e=>e$3.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:e$3.jsx("path",{d:"M5.04199 10.833C4.80599 10.833 4.60099 10.7463 4.42699 10.573C4.25366 10.399 4.16699 10.194 4.16699 9.958C4.16699 9.722 4.25366 9.51733 4.42699 9.344C4.60099 9.17 4.80599 9.083 5.04199 9.083H14.958C15.194 9.083 15.399 9.17 15.573 9.344C15.7463 9.51733 15.833 9.722 15.833 9.958C15.833 10.194 15.7463 10.399 15.573 10.573C15.399 10.7463 15.194 10.833 14.958 10.833H5.04199Z",fill:"currentColor"})});r.displayName="MinusIcon",MinusIcon=minus.MinusIcon=r;var plus={},PlusIcon;Object.defineProperty(plus,"__esModule",{value:!0});var e$2=require$$0;const C$2=e=>e$2.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:e$2.jsx("path",{d:"M9.99999 15.833C9.76399 15.833 9.55899 15.7463 9.38499 15.573C9.21166 15.399 9.12499 15.194 9.12499 14.958V10.875H5.04199C4.80599 10.875 4.60099 10.7883 4.42699 10.615C4.25366 10.441 4.16699 10.236 4.16699 10C4.16699 9.764 4.25366 9.559 4.42699 9.385C4.60099 9.21167 4.80599 9.125 5.04199 9.125H9.12499V5.042C9.12499 4.806 9.21166 4.601 9.38499 4.427C9.55899 4.25367 9.76399 4.167 9.99999 4.167C10.236 4.167 10.441 4.25367 10.615 4.427C10.7883 4.601 10.875 4.806 10.875 5.042V9.125H14.958C15.194 9.125 15.399 9.21167 15.573 9.385C15.7463 9.559 15.833 9.764 15.833 10C15.833 10.236 15.7463 10.441 15.573 10.615C15.399 10.7883 15.194 10.875 14.958 10.875H10.875V14.958C10.875 15.194 10.7883 15.399 10.615 15.573C10.441 15.7463 10.236 15.833 9.99999 15.833Z",fill:"currentColor"})});C$2.displayName="PlusIcon",PlusIcon=plus.PlusIcon=C$2;const iconStyle=css`
|
|
2199
|
+
`,PhoneNumberInput=({onChange:e,value:t,allowClear:r,onClear:a,error:i,optionPlaceholder:n="Select",optionSearchPlaceholder:s,enableSearch:o,onHideOptions:l,onShowOptions:h,placeholder:c,...d})=>{const[p,u]=useState(t?.number||""),[m,f]=useState(t?.countryCode||""),g=PhoneNumberInputHelper.getCountries.filter((e=>e.countryCode===m.replace("+","")))[0],y=useRef();useEffect((()=>{const e=b(t?.number);u(e)}),[t]);const b=(e,t=g)=>{const r=e?.replace(/[\s()]+/g,"");return PhoneNumberInputHelper.formatNumber(r,t)},v=(e=p,t=m)=>{const r=e?.replace(/[\s()]+/g,"");return{number:r,countryCode:t.includes("+")?t:`+${t}`}};return jsx(Wrapper$7,{children:jsx(InputGroup,{ref:y,onKeyDown:e=>{/^[0-9\b]+$/.test(e.key)||"Backspace"===e.key||e.preventDefault()},value:p,onChange:t=>{const r=t.target.value;if(e){const t=v(r);e(t)}else{const e=b(r);u(e)}},allowClear:r&&!!p,onClear:()=>{a&&a()},error:i,placeholder:c,addon:{type:"list",attributes:{value:g,placeholder:n,options:PhoneNumberInputHelper.getCountries,selectedOption:g,enableSearch:o,searchPlaceholder:s,valueExtractor:e=>`+${e.countryCode}`,listExtractor:e=>({title:e.name,secondaryLabel:`+${e.countryCode}`}),onSelectOption:(t,r)=>{if(f(r),e){const t=v(p,r);e(t)}else if(p&&"string"==typeof p){const e=b(p,t);u(e)}},onHideOptions:l,onShowOptions:h}},...d})})},FormPhoneNumberInput=({label:e,errorMessage:t,id:r="form-phone-number-input","data-error-testid":a,"data-testid":i,...n})=>jsx(FormWrapper,{id:r,label:e,errorMessage:t,"data-error-testid":a,disabled:n.disabled,children:jsx(PhoneNumberInput,{id:`${r}-base`,"data-testid":i||r,error:!!t,...n})}),Form={DateInput:FormDateInput,Input:FormInput,InputGroup:FormInputGroup,Label:FormLabel,MultiSelect:FormMultiSelect,Select:FormSelect,Textarea:FormTextarea,Timepicker:FormTimepicker,CustomField:FormCustomField,UnitNumberInput:FormUnitNumberInput,PhoneNumberInput:FormPhoneNumberInput};var minus={},MinusIcon;Object.defineProperty(minus,"__esModule",{value:!0});var e$3=require$$0;const r=e=>e$3.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:e$3.jsx("path",{d:"M5.04199 10.833C4.80599 10.833 4.60099 10.7463 4.42699 10.573C4.25366 10.399 4.16699 10.194 4.16699 9.958C4.16699 9.722 4.25366 9.51733 4.42699 9.344C4.60099 9.17 4.80599 9.083 5.04199 9.083H14.958C15.194 9.083 15.399 9.17 15.573 9.344C15.7463 9.51733 15.833 9.722 15.833 9.958C15.833 10.194 15.7463 10.399 15.573 10.573C15.399 10.7463 15.194 10.833 14.958 10.833H5.04199Z",fill:"currentColor"})});r.displayName="MinusIcon",MinusIcon=minus.MinusIcon=r;var plus={},PlusIcon;Object.defineProperty(plus,"__esModule",{value:!0});var e$2=require$$0;const C$2=e=>e$2.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:e$2.jsx("path",{d:"M9.99999 15.833C9.76399 15.833 9.55899 15.7463 9.38499 15.573C9.21166 15.399 9.12499 15.194 9.12499 14.958V10.875H5.04199C4.80599 10.875 4.60099 10.7883 4.42699 10.615C4.25366 10.441 4.16699 10.236 4.16699 10C4.16699 9.764 4.25366 9.559 4.42699 9.385C4.60099 9.21167 4.80599 9.125 5.04199 9.125H9.12499V5.042C9.12499 4.806 9.21166 4.601 9.38499 4.427C9.55899 4.25367 9.76399 4.167 9.99999 4.167C10.236 4.167 10.441 4.25367 10.615 4.427C10.7883 4.601 10.875 4.806 10.875 5.042V9.125H14.958C15.194 9.125 15.399 9.21167 15.573 9.385C15.7463 9.559 15.833 9.764 15.833 10C15.833 10.236 15.7463 10.441 15.573 10.615C15.399 10.7883 15.194 10.875 14.958 10.875H10.875V14.958C10.875 15.194 10.7883 15.399 10.615 15.573C10.441 15.7463 10.236 15.833 9.99999 15.833Z",fill:"currentColor"})});C$2.displayName="PlusIcon",PlusIcon=plus.PlusIcon=C$2;const iconStyle=css`
|
|
2202
2200
|
height: 1.125rem;
|
|
2203
2201
|
width: 1.125rem;
|
|
2204
2202
|
color: ${Color.Primary};
|
|
@@ -2267,7 +2265,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
2267
2265
|
color: ${Color.PrimaryDark};
|
|
2268
2266
|
}
|
|
2269
2267
|
}
|
|
2270
|
-
`,LinkList=({items:e,maxShown:t,style:r="default",onItemClick:a,...i})=>{const[n,s]=useState(!t||t>=e.length),o=t?e.slice(0,t):e,l=t?e.slice(t):[],h=useResizeDetector(),
|
|
2268
|
+
`,LinkList=({items:e,maxShown:t,style:r="default",onItemClick:a,...i})=>{const[n,s]=useState(!t||t>=e.length),o=t?e.slice(0,t):e,l=t?e.slice(t):[],h=useResizeDetector(),c=h.ref,d=(e,t)=>{t.onClick?(e.preventDefault(),t.onClick(e)):a&&(e.preventDefault(),a(t,e))},p=()=>{s(!n)},u=(e,t,a,i)=>jsxs(Fragment,{children:[jsxs(ItemContent,{children:[jsx("small"===r?ItemTitleSmall:ItemTitleDefault,{"data-testid":`link-title-${e}`,weight:"semibold",children:t}),a&&jsx(Description$1,{"data-testid":`link-description-${e}`,children:a}),i]}),jsx(ItemIcon,{})]}),m=useSpring({height:n?h.height:0});return jsxs(Container$3,{...i,children:[o.map(((e,t)=>{const{title:r,description:a,secondaryDescription:i,onClick:n,...s}=e;return jsx(Item,{"data-testid":`list-item-shown-${t}`,onClick:t=>d(t,e),...s,children:u(t,r,a,i)},`list-item-shown-${t}`)})),l.length>0&&jsx(Expandable,{style:m,"data-testid":"minimised-content",children:jsx(ExpandableChild,{ref:c,children:l.map(((e,t)=>{const{title:r,description:a,onClick:i,secondaryDescription:n,...s}=e;return jsx(Item,{"data-testid":`list-item-minimised-${t}`,onClick:t=>d(t,e),...s,children:u(t,r,a,n)},`list-item-minimised-${t}`)}))})}),l.length>0&&jsxs(ToggleButton,{type:"button",onClick:p,"data-testid":"toggle-button",$showMinimised:n,children:[jsx(ToggleButtonLabel,{weight:"semibold","data-testid":"toggle-button-label",children:n?"View less":"View more"}),jsx(n?ViewLessIcon:ViewMoreIcon,{})]})]})},GridContainer=styled.div`
|
|
2271
2269
|
margin-top: 2.5rem;
|
|
2272
2270
|
display: grid;
|
|
2273
2271
|
align-items: center;
|
|
@@ -2580,7 +2578,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
2580
2578
|
width: 4px;
|
|
2581
2579
|
background-color: ${Color.Accent.Light[1]};
|
|
2582
2580
|
}
|
|
2583
|
-
`,NavbarItems=({items:e,selectedId:t,mobile:r=!1,onItemClick:a})=>{const i=e=>t=>{t.stopPropagation(),a(t,e)},n=(r=!1)=>e.map(((e,a)=>{const n=e.id===t,{children:s,options:o,...l}=e;return jsx(LinkItem,{children:jsxs(Link,{"data-testid":r?`link__mobile-${a+1}`:`link__${a+1}`,weight:n?r?"bold":"semibold":"regular",$selected:n,...l,onClick:i(e),...o,children:[s,n&&jsx(LinkIndicator,{})]})},a)}));if(e&&e.length>0){return jsx(Fragment,{children:jsx(r?MobileWrapper:Wrapper$2,{children:n(r)})})}return jsx(Fragment,{})},Component=({items:e,id:t,selectedId:r,compress:a=!1,fixed:i=!0,resources:n=DEFAULT_RESOURCES,hideNavElements:s=!1,drawerDismissalExclusions:o=[],actionButtons:l,onItemClick:h,onActionButtonClick:
|
|
2581
|
+
`,NavbarItems=({items:e,selectedId:t,mobile:r=!1,onItemClick:a})=>{const i=e=>t=>{t.stopPropagation(),a(t,e)},n=(r=!1)=>e.map(((e,a)=>{const n=e.id===t,{children:s,options:o,...l}=e;return jsx(LinkItem,{children:jsxs(Link,{"data-testid":r?`link__mobile-${a+1}`:`link__${a+1}`,weight:n?r?"bold":"semibold":"regular",$selected:n,...l,onClick:i(e),...o,children:[s,n&&jsx(LinkIndicator,{})]})},a)}));if(e&&e.length>0){return jsx(Fragment,{children:jsx(r?MobileWrapper:Wrapper$2,{children:n(r)})})}return jsx(Fragment,{})},Component=({items:e,id:t,selectedId:r,compress:a=!1,fixed:i=!0,resources:n=DEFAULT_RESOURCES,hideNavElements:s=!1,drawerDismissalExclusions:o=[],actionButtons:l,onItemClick:h,onActionButtonClick:c,onBrandClick:d,...p},u)=>{const[m,f]=useState(!1),[g,y]=useState(!1);useEffect((()=>(x(),window.addEventListener("resize",x),()=>{window.removeEventListener("resize",x)})),[]);const b=()=>{f(!1),setTimeout((()=>{y(!1)}),550)},v=e=>m&&-1===o.indexOf(e),x=()=>{window.innerWidth<=MediaWidths$1.tablet&&m&&b()},S=e=>{d&&(e.preventDefault(),d()),v("brand-click")&&b()},C=(e,t)=>{t.onClick?t.onClick(e):h&&(e.preventDefault(),h(t)),v("item-click")&&b()},_=(e,t)=>{t.args&&t.args.onClick?t.args.onClick(e):c&&(e.preventDefault(),c(t)),v("item-click")&&b()},T=()=>{f(!0),y(!0)},$=()=>{v("close-button-click")&&b()};return jsxs(Wrapper$5,{ref:u,fixed:i,id:t||"navbar-wrapper","data-testid":p["data-testid"]||"navbar-wrapper",children:[jsx(Masthead,{}),jsxs(Layout.Content,{children:[jsxs(Nav,{compress:a,children:[jsx(Brand,{resources:n,compress:a,onClick:S,"data-testid":"main__brand"}),!s&&jsxs(NavElementsContainer,{children:[jsx(NavbarItems,{items:e.desktop,onItemClick:C,selectedId:r}),jsx(NavbarActionButtons,{actionButtons:l&&l.desktop,onActionButtonClick:_}),jsx(MobileMenuButton,{"aria-label":"Open nav menu","data-testid":"button__mobile-menu",onClick:T,focusHighlight:!1,children:jsx(MobileMenuIcon,{})})]})]}),!s&&jsx(Overlay,{show:g,enableOverlayClick:!0,onOverlayClick:$,children:jsxs(Drawer,{show:m,resources:n,onClose:$,onBrandClick:S,actionButtons:l,children:[jsx(NavbarItems,{items:e.mobile||e.desktop,onItemClick:C,selectedId:r,mobile:!0}),jsx(NavbarActionButtons,{actionButtons:l&&(l?.mobile||l.desktop),onActionButtonClick:_,mobile:!0})]})})]})]})},Navbar=React__default.forwardRef(Component),DEFAULT_RESOURCES={brandName:"LifeSG",logoSrc:"https://assets.life.gov.sg/lifesg/logo-lifesg.svg"},NavbarHeight=NAVBAR_HEIGHT,NavbarMobileHeight=NAVBAR_MOBILE_HEIGHT,commonLinkStyle=css`
|
|
2584
2582
|
color: ${Color.Validation.Orange.Icon};
|
|
2585
2583
|
|
|
2586
2584
|
svg {
|
|
@@ -2642,9 +2640,9 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
2642
2640
|
height: 1.875rem;
|
|
2643
2641
|
width: 1.875rem;
|
|
2644
2642
|
color: ${Color.Neutral[8]};
|
|
2645
|
-
`,NBComponent=({children:e,visible:t=!0,dismissible:r=!0,sticky:a=!0,onDismiss:i,id:n,forwardedRef:s,...o})=>{const l=o["data-testid"],[h,
|
|
2643
|
+
`,NBComponent=({children:e,visible:t=!0,dismissible:r=!0,sticky:a=!0,onDismiss:i,id:n,forwardedRef:s,...o})=>{const l=o["data-testid"],[h,c]=useState(t);useEffect((()=>{c(t)}),[t]);return h?jsx(Wrapper$1,{ref:s,$sticky:a,...o,children:jsxs(Container$1,{id:formatId("container",n),children:[jsx(TextContainer$1,{children:jsx(Content$1,{"data-testid":formatId("text-content",l),children:e})}),r&&jsx(StyledIconButton,{onClick:()=>{c(!1),r&&i&&i()},id:formatId("dismiss-button",n),"data-testid":formatId("dismiss-button",l),focusHighlight:!1,children:jsx(StyledIcon,{})})]})}):null},NBWithRef=(e,t)=>jsx(NBComponent,{...e,forwardedRef:t}),formatId=(e,t="wrapper")=>`${t}-${e}`,Base=React__default.forwardRef(NBWithRef),NotificationBanner=Object.assign(Base,{Link:ContentLink});
|
|
2646
2644
|
/*! @license DOMPurify 2.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.1/LICENSE */
|
|
2647
|
-
function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _construct(e,t,r){return _construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,r){var a=[null];a.push.apply(a,t);var i=new(Function.bind.apply(e,a));return r&&_setPrototypeOf(i,r.prototype),i},_construct.apply(null,arguments)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}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.")}var hasOwnProperty=Object.hasOwnProperty,setPrototypeOf=Object.setPrototypeOf,isFrozen=Object.isFrozen,getPrototypeOf=Object.getPrototypeOf,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,freeze=Object.freeze,seal=Object.seal,create=Object.create,_ref="undefined"!=typeof Reflect&&Reflect,apply=_ref.apply,construct=_ref.construct;apply||(apply=function(e,t,r){return e.apply(t,r)}),freeze||(freeze=function(e){return e}),seal||(seal=function(e){return e}),construct||(construct=function(e,t){return _construct(e,_toConsumableArray(t))});var arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(e){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return apply(e,t,a)}}function unconstruct(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return construct(e,r)}}function addToSet(e,t,r){r=r||stringToLowerCase,setPrototypeOf&&setPrototypeOf(e,null);for(var a=t.length;a--;){var i=t[a];if("string"==typeof i){var n=r(i);n!==i&&(isFrozen(t)||(t[a]=n),i=n)}e[i]=!0}return e}function clone(e){var t,r=create(null);for(t in e)apply(hasOwnProperty,e,[t])&&(r[t]=e[t]);return r}function lookupGetter(e,t){for(;null!==e;){var r=getOwnPropertyDescriptor(e,t);if(r){if(r.get)return unapply(r.get);if("function"==typeof r.value)return unapply(r.value)}e=getPrototypeOf(e)}return function(e){return console.warn("fallback value for",e),null}}var html$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),getGlobal=function(){return"undefined"==typeof window?null:window},_createTrustedTypesPolicy=function(e,t){if("object"!==_typeof(e)||"function"!=typeof e.createPolicy)return null;var r=null,a="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(a)&&(r=t.currentScript.getAttribute(a));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function createDOMPurify(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:getGlobal(),t=function(e){return createDOMPurify(e)};if(t.version="2.4.1",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var r=e.document,a=e.document,i=e.DocumentFragment,n=e.HTMLTemplateElement,s=e.Node,o=e.Element,l=e.NodeFilter,h=e.NamedNodeMap,d=void 0===h?e.NamedNodeMap||e.MozNamedAttrMap:h,c=e.HTMLFormElement,p=e.DOMParser,u=e.trustedTypes,m=o.prototype,f=lookupGetter(m,"cloneNode"),g=lookupGetter(m,"nextSibling"),y=lookupGetter(m,"childNodes"),b=lookupGetter(m,"parentNode");if("function"==typeof n){var v=a.createElement("template");v.content&&v.content.ownerDocument&&(a=v.content.ownerDocument)}var C=_createTrustedTypesPolicy(u,r),x=C?C.createHTML(""):"",S=a,_=S.implementation,T=S.createNodeIterator,$=S.createDocumentFragment,w=S.getElementsByTagName,E=r.importNode,k={};try{k=clone(a).documentMode?a.documentMode:{}}catch(e){}var A={};t.isSupported="function"==typeof b&&_&&void 0!==_.createHTMLDocument&&9!==k;var P,M,I=MUSTACHE_EXPR,L=ERB_EXPR,D=TMPLIT_EXPR,F=DATA_ATTR,R=ARIA_ATTR,O=IS_SCRIPT_OR_DATA,j=ATTR_WHITESPACE,V=IS_ALLOWED_URI,B=null,H=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(svgFilters),_toConsumableArray(mathMl$1),_toConsumableArray(text))),N=null,z=addToSet({},[].concat(_toConsumableArray(html),_toConsumableArray(svg),_toConsumableArray(mathMl),_toConsumableArray(xml))),G=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,U=null,Z=!0,q=!0,Q=!1,Y=!1,K=!1,X=!1,J=!1,ee=!1,te=!1,re=!1,ae=!0,ie=!1,ne="user-content-",se=!0,oe=!1,le={},he=null,de=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ce=null,pe=addToSet({},["audio","video","img","source","image","track"]),ue=null,me=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml",be=ye,ve=!1,Ce=null,xe=addToSet({},[fe,ge,ye],stringToString),Se=["application/xhtml+xml","text/html"],_e="text/html",Te=null,$e=a.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},Ee=function(e){Te&&Te===e||(e&&"object"===_typeof(e)||(e={}),e=clone(e),P=P=-1===Se.indexOf(e.PARSER_MEDIA_TYPE)?_e:e.PARSER_MEDIA_TYPE,M="application/xhtml+xml"===P?stringToString:stringToLowerCase,B="ALLOWED_TAGS"in e?addToSet({},e.ALLOWED_TAGS,M):H,N="ALLOWED_ATTR"in e?addToSet({},e.ALLOWED_ATTR,M):z,Ce="ALLOWED_NAMESPACES"in e?addToSet({},e.ALLOWED_NAMESPACES,stringToString):xe,ue="ADD_URI_SAFE_ATTR"in e?addToSet(clone(me),e.ADD_URI_SAFE_ATTR,M):me,ce="ADD_DATA_URI_TAGS"in e?addToSet(clone(pe),e.ADD_DATA_URI_TAGS,M):pe,he="FORBID_CONTENTS"in e?addToSet({},e.FORBID_CONTENTS,M):de,W="FORBID_TAGS"in e?addToSet({},e.FORBID_TAGS,M):{},U="FORBID_ATTR"in e?addToSet({},e.FORBID_ATTR,M):{},le="USE_PROFILES"in e&&e.USE_PROFILES,Z=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,Q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ae=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,V=e.ALLOWED_URI_REGEXP||V,be=e.NAMESPACE||ye,e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(G.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(G.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(G.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(q=!1),te&&(ee=!0),le&&(B=addToSet({},_toConsumableArray(text)),N=[],!0===le.html&&(addToSet(B,html$1),addToSet(N,html)),!0===le.svg&&(addToSet(B,svg$1),addToSet(N,svg),addToSet(N,xml)),!0===le.svgFilters&&(addToSet(B,svgFilters),addToSet(N,svg),addToSet(N,xml)),!0===le.mathMl&&(addToSet(B,mathMl$1),addToSet(N,mathMl),addToSet(N,xml))),e.ADD_TAGS&&(B===H&&(B=clone(B)),addToSet(B,e.ADD_TAGS,M)),e.ADD_ATTR&&(N===z&&(N=clone(N)),addToSet(N,e.ADD_ATTR,M)),e.ADD_URI_SAFE_ATTR&&addToSet(ue,e.ADD_URI_SAFE_ATTR,M),e.FORBID_CONTENTS&&(he===de&&(he=clone(he)),addToSet(he,e.FORBID_CONTENTS,M)),se&&(B["#text"]=!0),K&&addToSet(B,["html","head","body"]),B.table&&(addToSet(B,["tbody"]),delete W.tbody),freeze&&freeze(e),Te=e)},ke=addToSet({},["mi","mo","mn","ms","mtext"]),Ae=addToSet({},["foreignobject","desc","title","annotation-xml"]),Pe=addToSet({},["title","style","font","a","script"]),Me=addToSet({},svg$1);addToSet(Me,svgFilters),addToSet(Me,svgDisallowed);var Ie=addToSet({},mathMl$1);addToSet(Ie,mathMlDisallowed);var Le=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});var r=stringToLowerCase(e.tagName),a=stringToLowerCase(t.tagName);return!!Ce[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===ye?"svg"===r:t.namespaceURI===fe?"svg"===r&&("annotation-xml"===a||ke[a]):Boolean(Me[r]):e.namespaceURI===fe?t.namespaceURI===ye?"math"===r:t.namespaceURI===ge?"math"===r&&Ae[a]:Boolean(Ie[r]):e.namespaceURI===ye?!(t.namespaceURI===ge&&!Ae[a])&&(!(t.namespaceURI===fe&&!ke[a])&&(!Ie[r]&&(Pe[r]||!Me[r]))):!("application/xhtml+xml"!==P||!Ce[e.namespaceURI]))},De=function(e){arrayPush(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=x}catch(t){e.remove()}}},Fe=function(e,r){try{arrayPush(t.removed,{attribute:r.getAttributeNode(e),from:r})}catch(e){arrayPush(t.removed,{attribute:null,from:r})}if(r.removeAttribute(e),"is"===e&&!N[e])if(ee||te)try{De(r)}catch(e){}else try{r.setAttribute(e,"")}catch(e){}},Re=function(e){var t,r;if(J)e="<remove></remove>"+e;else{var i=stringMatch(e,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===P&&be===ye&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var n=C?C.createHTML(e):e;if(be===ye)try{t=(new p).parseFromString(n,P)}catch(e){}if(!t||!t.documentElement){t=_.createDocument(be,"template",null);try{t.documentElement.innerHTML=ve?"":n}catch(e){}}var s=t.body||t.documentElement;return e&&r&&s.insertBefore(a.createTextNode(r),s.childNodes[0]||null),be===ye?w.call(t,K?"html":"body")[0]:K?t.documentElement:s},Oe=function(e){return T.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},je=function(e){return e instanceof c&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ve=function(e){return"object"===_typeof(s)?e instanceof s:e&&"object"===_typeof(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Be=function(e,r,a){A[e]&&arrayForEach(A[e],(function(e){e.call(t,r,a,Te)}))},He=function(e){var r;if(Be("beforeSanitizeElements",e,null),je(e))return De(e),!0;if(regExpTest(/[\u0080-\uFFFF]/,e.nodeName))return De(e),!0;var a=M(e.nodeName);if(Be("uponSanitizeElement",e,{tagName:a,allowedTags:B}),e.hasChildNodes()&&!Ve(e.firstElementChild)&&(!Ve(e.content)||!Ve(e.content.firstElementChild))&®ExpTest(/<[/\w]/g,e.innerHTML)&®ExpTest(/<[/\w]/g,e.textContent))return De(e),!0;if("select"===a&®ExpTest(/<template/i,e.innerHTML))return De(e),!0;if(!B[a]||W[a]){if(!W[a]&&ze(a)){if(G.tagNameCheck instanceof RegExp&®ExpTest(G.tagNameCheck,a))return!1;if(G.tagNameCheck instanceof Function&&G.tagNameCheck(a))return!1}if(se&&!he[a]){var i=b(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&i)for(var s=n.length-1;s>=0;--s)i.insertBefore(f(n[s],!0),g(e))}return De(e),!0}return e instanceof o&&!Le(e)?(De(e),!0):"noscript"!==a&&"noembed"!==a||!regExpTest(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(r=e.textContent,r=stringReplace(r,I," "),r=stringReplace(r,L," "),r=stringReplace(r,D," "),e.textContent!==r&&(arrayPush(t.removed,{element:e.cloneNode()}),e.textContent=r)),Be("afterSanitizeElements",e,null),!1):(De(e),!0)},Ne=function(e,t,r){if(ae&&("id"===t||"name"===t)&&(r in a||r in $e))return!1;if(q&&!U[t]&®ExpTest(F,t));else if(Z&®ExpTest(R,t));else if(!N[t]||U[t]){if(!(ze(e)&&(G.tagNameCheck instanceof RegExp&®ExpTest(G.tagNameCheck,e)||G.tagNameCheck instanceof Function&&G.tagNameCheck(e))&&(G.attributeNameCheck instanceof RegExp&®ExpTest(G.attributeNameCheck,t)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(t))||"is"===t&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&®ExpTest(G.tagNameCheck,r)||G.tagNameCheck instanceof Function&&G.tagNameCheck(r))))return!1}else if(ue[t]);else if(regExpTest(V,stringReplace(r,j,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==stringIndexOf(r,"data:")||!ce[e]){if(Q&&!regExpTest(O,stringReplace(r,j,"")));else if(r)return!1}else;return!0},ze=function(e){return e.indexOf("-")>0},Ge=function(e){var r,a,i,n;Be("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:N};for(n=s.length;n--;){var l=r=s[n],h=l.name,d=l.namespaceURI;if(a="value"===h?r.value:stringTrim(r.value),i=M(h),o.attrName=i,o.attrValue=a,o.keepAttr=!0,o.forceKeepAttr=void 0,Be("uponSanitizeAttribute",e,o),a=o.attrValue,!o.forceKeepAttr&&(Fe(h,e),o.keepAttr))if(regExpTest(/\/>/i,a))Fe(h,e);else{Y&&(a=stringReplace(a,I," "),a=stringReplace(a,L," "),a=stringReplace(a,D," "));var c=M(e.nodeName);if(Ne(c,i,a)){if(!ie||"id"!==i&&"name"!==i||(Fe(h,e),a=ne+a),C&&"object"===_typeof(u)&&"function"==typeof u.getAttributeType)if(d);else switch(u.getAttributeType(c,i)){case"TrustedHTML":a=C.createHTML(a);break;case"TrustedScriptURL":a=C.createScriptURL(a)}try{d?e.setAttributeNS(d,h,a):e.setAttribute(h,a),arrayPop(t.removed)}catch(e){}}}}Be("afterSanitizeAttributes",e,null)}},We=function e(t){var r,a=Oe(t);for(Be("beforeSanitizeShadowDOM",t,null);r=a.nextNode();)Be("uponSanitizeShadowNode",r,null),He(r)||(r.content instanceof i&&e(r.content),Ge(r));Be("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(a){var n,o,l,h,d,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ve=!a)&&(a="\x3c!--\x3e"),"string"!=typeof a&&!Ve(a)){if("function"!=typeof a.toString)throw typeErrorCreate("toString is not a function");if("string"!=typeof(a=a.toString()))throw typeErrorCreate("dirty is not a string, aborting")}if(!t.isSupported){if("object"===_typeof(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof a)return e.toStaticHTML(a);if(Ve(a))return e.toStaticHTML(a.outerHTML)}return a}if(X||Ee(c),t.removed=[],"string"==typeof a&&(oe=!1),oe){if(a.nodeName){var p=M(a.nodeName);if(!B[p]||W[p])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(a instanceof s)1===(o=(n=Re("\x3c!----\x3e")).ownerDocument.importNode(a,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!ee&&!Y&&!K&&-1===a.indexOf("<"))return C&&re?C.createHTML(a):a;if(!(n=Re(a)))return ee?null:re?x:""}n&&J&&De(n.firstChild);for(var u=Oe(oe?a:n);l=u.nextNode();)3===l.nodeType&&l===h||He(l)||(l.content instanceof i&&We(l.content),Ge(l),h=l);if(h=null,oe)return a;if(ee){if(te)for(d=$.call(n.ownerDocument);n.firstChild;)d.appendChild(n.firstChild);else d=n;return N.shadowroot&&(d=E.call(r,d,!0)),d}var m=K?n.outerHTML:n.innerHTML;return K&&B["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),Y&&(m=stringReplace(m,I," "),m=stringReplace(m,L," "),m=stringReplace(m,D," ")),C&&re?C.createHTML(m):m},t.setConfig=function(e){Ee(e),X=!0},t.clearConfig=function(){Te=null,X=!1},t.isValidAttribute=function(e,t,r){Te||Ee({});var a=M(e),i=M(t);return Ne(a,i,r)},t.addHook=function(e,t){"function"==typeof t&&(A[e]=A[e]||[],arrayPush(A[e],t))},t.removeHook=function(e){if(A[e])return arrayPop(A[e])},t.removeHooks=function(e){A[e]&&(A[e]=[])},t.removeAllHooks=function(){A={}},t}var purify=createDOMPurify();const withNotificationBanner=e=>React__default.forwardRef(((t,r)=>jsx(NBComponent,{forwardedRef:r,...t,children:e.length>0?e.map(((e,t)=>{if("text"===e.type){const r=e.otherAttributes,a=purify.sanitize(e.content);return jsx("p",{...r,dangerouslySetInnerHTML:{__html:a}},t)}{const r=e.otherAttributes;return jsx(NotificationBanner.Link,{...r,children:e.content},t)}})):(console.error("[NotificationBannerHOC] Empty data passed"),null)}))),INDICATOR_BAR_WIDTH_MOBILE=10,INDICATOR_BAR_MARGIN_RIGHT_MOBILE=.5,INDICATOR_BAR_FADE_WIDTH_MOBILE=4,Wrapper=styled.div`
|
|
2645
|
+
function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _construct(e,t,r){return _construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,r){var a=[null];a.push.apply(a,t);var i=new(Function.bind.apply(e,a));return r&&_setPrototypeOf(i,r.prototype),i},_construct.apply(null,arguments)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}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.")}var hasOwnProperty=Object.hasOwnProperty,setPrototypeOf=Object.setPrototypeOf,isFrozen=Object.isFrozen,getPrototypeOf=Object.getPrototypeOf,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,freeze=Object.freeze,seal=Object.seal,create=Object.create,_ref="undefined"!=typeof Reflect&&Reflect,apply=_ref.apply,construct=_ref.construct;apply||(apply=function(e,t,r){return e.apply(t,r)}),freeze||(freeze=function(e){return e}),seal||(seal=function(e){return e}),construct||(construct=function(e,t){return _construct(e,_toConsumableArray(t))});var arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(e){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return apply(e,t,a)}}function unconstruct(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return construct(e,r)}}function addToSet(e,t,r){r=r||stringToLowerCase,setPrototypeOf&&setPrototypeOf(e,null);for(var a=t.length;a--;){var i=t[a];if("string"==typeof i){var n=r(i);n!==i&&(isFrozen(t)||(t[a]=n),i=n)}e[i]=!0}return e}function clone(e){var t,r=create(null);for(t in e)apply(hasOwnProperty,e,[t])&&(r[t]=e[t]);return r}function lookupGetter(e,t){for(;null!==e;){var r=getOwnPropertyDescriptor(e,t);if(r){if(r.get)return unapply(r.get);if("function"==typeof r.value)return unapply(r.value)}e=getPrototypeOf(e)}return function(e){return console.warn("fallback value for",e),null}}var html$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),getGlobal=function(){return"undefined"==typeof window?null:window},_createTrustedTypesPolicy=function(e,t){if("object"!==_typeof(e)||"function"!=typeof e.createPolicy)return null;var r=null,a="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(a)&&(r=t.currentScript.getAttribute(a));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function createDOMPurify(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:getGlobal(),t=function(e){return createDOMPurify(e)};if(t.version="2.4.1",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var r=e.document,a=e.document,i=e.DocumentFragment,n=e.HTMLTemplateElement,s=e.Node,o=e.Element,l=e.NodeFilter,h=e.NamedNodeMap,c=void 0===h?e.NamedNodeMap||e.MozNamedAttrMap:h,d=e.HTMLFormElement,p=e.DOMParser,u=e.trustedTypes,m=o.prototype,f=lookupGetter(m,"cloneNode"),g=lookupGetter(m,"nextSibling"),y=lookupGetter(m,"childNodes"),b=lookupGetter(m,"parentNode");if("function"==typeof n){var v=a.createElement("template");v.content&&v.content.ownerDocument&&(a=v.content.ownerDocument)}var x=_createTrustedTypesPolicy(u,r),S=x?x.createHTML(""):"",C=a,_=C.implementation,T=C.createNodeIterator,$=C.createDocumentFragment,w=C.getElementsByTagName,E=r.importNode,k={};try{k=clone(a).documentMode?a.documentMode:{}}catch(e){}var A={};t.isSupported="function"==typeof b&&_&&void 0!==_.createHTMLDocument&&9!==k;var P,I,M=MUSTACHE_EXPR,D=ERB_EXPR,F=TMPLIT_EXPR,R=DATA_ATTR,L=ARIA_ATTR,O=IS_SCRIPT_OR_DATA,B=ATTR_WHITESPACE,j=IS_ALLOWED_URI,N=null,V=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(svgFilters),_toConsumableArray(mathMl$1),_toConsumableArray(text))),H=null,z=addToSet({},[].concat(_toConsumableArray(html),_toConsumableArray(svg),_toConsumableArray(mathMl),_toConsumableArray(xml))),G=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,U=null,q=!0,Q=!0,Y=!1,K=!1,X=!1,Z=!1,J=!1,ee=!1,te=!1,re=!1,ae=!0,ie=!1,ne="user-content-",se=!0,oe=!1,le={},he=null,ce=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),de=null,pe=addToSet({},["audio","video","img","source","image","track"]),ue=null,me=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml",be=ye,ve=!1,xe=null,Se=addToSet({},[fe,ge,ye],stringToString),Ce=["application/xhtml+xml","text/html"],_e="text/html",Te=null,$e=a.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},Ee=function(e){Te&&Te===e||(e&&"object"===_typeof(e)||(e={}),e=clone(e),P=P=-1===Ce.indexOf(e.PARSER_MEDIA_TYPE)?_e:e.PARSER_MEDIA_TYPE,I="application/xhtml+xml"===P?stringToString:stringToLowerCase,N="ALLOWED_TAGS"in e?addToSet({},e.ALLOWED_TAGS,I):V,H="ALLOWED_ATTR"in e?addToSet({},e.ALLOWED_ATTR,I):z,xe="ALLOWED_NAMESPACES"in e?addToSet({},e.ALLOWED_NAMESPACES,stringToString):Se,ue="ADD_URI_SAFE_ATTR"in e?addToSet(clone(me),e.ADD_URI_SAFE_ATTR,I):me,de="ADD_DATA_URI_TAGS"in e?addToSet(clone(pe),e.ADD_DATA_URI_TAGS,I):pe,he="FORBID_CONTENTS"in e?addToSet({},e.FORBID_CONTENTS,I):ce,W="FORBID_TAGS"in e?addToSet({},e.FORBID_TAGS,I):{},U="FORBID_ATTR"in e?addToSet({},e.FORBID_ATTR,I):{},le="USE_PROFILES"in e&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,Q=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,K=e.SAFE_FOR_TEMPLATES||!1,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ae=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,j=e.ALLOWED_URI_REGEXP||j,be=e.NAMESPACE||ye,e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(G.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(G.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(G.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(Q=!1),te&&(ee=!0),le&&(N=addToSet({},_toConsumableArray(text)),H=[],!0===le.html&&(addToSet(N,html$1),addToSet(H,html)),!0===le.svg&&(addToSet(N,svg$1),addToSet(H,svg),addToSet(H,xml)),!0===le.svgFilters&&(addToSet(N,svgFilters),addToSet(H,svg),addToSet(H,xml)),!0===le.mathMl&&(addToSet(N,mathMl$1),addToSet(H,mathMl),addToSet(H,xml))),e.ADD_TAGS&&(N===V&&(N=clone(N)),addToSet(N,e.ADD_TAGS,I)),e.ADD_ATTR&&(H===z&&(H=clone(H)),addToSet(H,e.ADD_ATTR,I)),e.ADD_URI_SAFE_ATTR&&addToSet(ue,e.ADD_URI_SAFE_ATTR,I),e.FORBID_CONTENTS&&(he===ce&&(he=clone(he)),addToSet(he,e.FORBID_CONTENTS,I)),se&&(N["#text"]=!0),X&&addToSet(N,["html","head","body"]),N.table&&(addToSet(N,["tbody"]),delete W.tbody),freeze&&freeze(e),Te=e)},ke=addToSet({},["mi","mo","mn","ms","mtext"]),Ae=addToSet({},["foreignobject","desc","title","annotation-xml"]),Pe=addToSet({},["title","style","font","a","script"]),Ie=addToSet({},svg$1);addToSet(Ie,svgFilters),addToSet(Ie,svgDisallowed);var Me=addToSet({},mathMl$1);addToSet(Me,mathMlDisallowed);var De=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});var r=stringToLowerCase(e.tagName),a=stringToLowerCase(t.tagName);return!!xe[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===ye?"svg"===r:t.namespaceURI===fe?"svg"===r&&("annotation-xml"===a||ke[a]):Boolean(Ie[r]):e.namespaceURI===fe?t.namespaceURI===ye?"math"===r:t.namespaceURI===ge?"math"===r&&Ae[a]:Boolean(Me[r]):e.namespaceURI===ye?!(t.namespaceURI===ge&&!Ae[a])&&(!(t.namespaceURI===fe&&!ke[a])&&(!Me[r]&&(Pe[r]||!Ie[r]))):!("application/xhtml+xml"!==P||!xe[e.namespaceURI]))},Fe=function(e){arrayPush(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=S}catch(t){e.remove()}}},Re=function(e,r){try{arrayPush(t.removed,{attribute:r.getAttributeNode(e),from:r})}catch(e){arrayPush(t.removed,{attribute:null,from:r})}if(r.removeAttribute(e),"is"===e&&!H[e])if(ee||te)try{Fe(r)}catch(e){}else try{r.setAttribute(e,"")}catch(e){}},Le=function(e){var t,r;if(J)e="<remove></remove>"+e;else{var i=stringMatch(e,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===P&&be===ye&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var n=x?x.createHTML(e):e;if(be===ye)try{t=(new p).parseFromString(n,P)}catch(e){}if(!t||!t.documentElement){t=_.createDocument(be,"template",null);try{t.documentElement.innerHTML=ve?"":n}catch(e){}}var s=t.body||t.documentElement;return e&&r&&s.insertBefore(a.createTextNode(r),s.childNodes[0]||null),be===ye?w.call(t,X?"html":"body")[0]:X?t.documentElement:s},Oe=function(e){return T.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Be=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof c)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"object"===_typeof(s)?e instanceof s:e&&"object"===_typeof(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ne=function(e,r,a){A[e]&&arrayForEach(A[e],(function(e){e.call(t,r,a,Te)}))},Ve=function(e){var r;if(Ne("beforeSanitizeElements",e,null),Be(e))return Fe(e),!0;if(regExpTest(/[\u0080-\uFFFF]/,e.nodeName))return Fe(e),!0;var a=I(e.nodeName);if(Ne("uponSanitizeElement",e,{tagName:a,allowedTags:N}),e.hasChildNodes()&&!je(e.firstElementChild)&&(!je(e.content)||!je(e.content.firstElementChild))&®ExpTest(/<[/\w]/g,e.innerHTML)&®ExpTest(/<[/\w]/g,e.textContent))return Fe(e),!0;if("select"===a&®ExpTest(/<template/i,e.innerHTML))return Fe(e),!0;if(!N[a]||W[a]){if(!W[a]&&ze(a)){if(G.tagNameCheck instanceof RegExp&®ExpTest(G.tagNameCheck,a))return!1;if(G.tagNameCheck instanceof Function&&G.tagNameCheck(a))return!1}if(se&&!he[a]){var i=b(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&i)for(var s=n.length-1;s>=0;--s)i.insertBefore(f(n[s],!0),g(e))}return Fe(e),!0}return e instanceof o&&!De(e)?(Fe(e),!0):"noscript"!==a&&"noembed"!==a||!regExpTest(/<\/no(script|embed)/i,e.innerHTML)?(K&&3===e.nodeType&&(r=e.textContent,r=stringReplace(r,M," "),r=stringReplace(r,D," "),r=stringReplace(r,F," "),e.textContent!==r&&(arrayPush(t.removed,{element:e.cloneNode()}),e.textContent=r)),Ne("afterSanitizeElements",e,null),!1):(Fe(e),!0)},He=function(e,t,r){if(ae&&("id"===t||"name"===t)&&(r in a||r in $e))return!1;if(Q&&!U[t]&®ExpTest(R,t));else if(q&®ExpTest(L,t));else if(!H[t]||U[t]){if(!(ze(e)&&(G.tagNameCheck instanceof RegExp&®ExpTest(G.tagNameCheck,e)||G.tagNameCheck instanceof Function&&G.tagNameCheck(e))&&(G.attributeNameCheck instanceof RegExp&®ExpTest(G.attributeNameCheck,t)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(t))||"is"===t&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&®ExpTest(G.tagNameCheck,r)||G.tagNameCheck instanceof Function&&G.tagNameCheck(r))))return!1}else if(ue[t]);else if(regExpTest(j,stringReplace(r,B,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==stringIndexOf(r,"data:")||!de[e]){if(Y&&!regExpTest(O,stringReplace(r,B,"")));else if(r)return!1}else;return!0},ze=function(e){return e.indexOf("-")>0},Ge=function(e){var r,a,i,n;Ne("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};for(n=s.length;n--;){var l=r=s[n],h=l.name,c=l.namespaceURI;if(a="value"===h?r.value:stringTrim(r.value),i=I(h),o.attrName=i,o.attrValue=a,o.keepAttr=!0,o.forceKeepAttr=void 0,Ne("uponSanitizeAttribute",e,o),a=o.attrValue,!o.forceKeepAttr&&(Re(h,e),o.keepAttr))if(regExpTest(/\/>/i,a))Re(h,e);else{K&&(a=stringReplace(a,M," "),a=stringReplace(a,D," "),a=stringReplace(a,F," "));var d=I(e.nodeName);if(He(d,i,a)){if(!ie||"id"!==i&&"name"!==i||(Re(h,e),a=ne+a),x&&"object"===_typeof(u)&&"function"==typeof u.getAttributeType)if(c);else switch(u.getAttributeType(d,i)){case"TrustedHTML":a=x.createHTML(a);break;case"TrustedScriptURL":a=x.createScriptURL(a)}try{c?e.setAttributeNS(c,h,a):e.setAttribute(h,a),arrayPop(t.removed)}catch(e){}}}}Ne("afterSanitizeAttributes",e,null)}},We=function e(t){var r,a=Oe(t);for(Ne("beforeSanitizeShadowDOM",t,null);r=a.nextNode();)Ne("uponSanitizeShadowNode",r,null),Ve(r)||(r.content instanceof i&&e(r.content),Ge(r));Ne("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(a){var n,o,l,h,c,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ve=!a)&&(a="\x3c!--\x3e"),"string"!=typeof a&&!je(a)){if("function"!=typeof a.toString)throw typeErrorCreate("toString is not a function");if("string"!=typeof(a=a.toString()))throw typeErrorCreate("dirty is not a string, aborting")}if(!t.isSupported){if("object"===_typeof(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof a)return e.toStaticHTML(a);if(je(a))return e.toStaticHTML(a.outerHTML)}return a}if(Z||Ee(d),t.removed=[],"string"==typeof a&&(oe=!1),oe){if(a.nodeName){var p=I(a.nodeName);if(!N[p]||W[p])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(a instanceof s)1===(o=(n=Le("\x3c!----\x3e")).ownerDocument.importNode(a,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!ee&&!K&&!X&&-1===a.indexOf("<"))return x&&re?x.createHTML(a):a;if(!(n=Le(a)))return ee?null:re?S:""}n&&J&&Fe(n.firstChild);for(var u=Oe(oe?a:n);l=u.nextNode();)3===l.nodeType&&l===h||Ve(l)||(l.content instanceof i&&We(l.content),Ge(l),h=l);if(h=null,oe)return a;if(ee){if(te)for(c=$.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return H.shadowroot&&(c=E.call(r,c,!0)),c}var m=X?n.outerHTML:n.innerHTML;return X&&N["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),K&&(m=stringReplace(m,M," "),m=stringReplace(m,D," "),m=stringReplace(m,F," ")),x&&re?x.createHTML(m):m},t.setConfig=function(e){Ee(e),Z=!0},t.clearConfig=function(){Te=null,Z=!1},t.isValidAttribute=function(e,t,r){Te||Ee({});var a=I(e),i=I(t);return He(a,i,r)},t.addHook=function(e,t){"function"==typeof t&&(A[e]=A[e]||[],arrayPush(A[e],t))},t.removeHook=function(e){if(A[e])return arrayPop(A[e])},t.removeHooks=function(e){A[e]&&(A[e]=[])},t.removeAllHooks=function(){A={}},t}var purify=createDOMPurify();const withNotificationBanner=e=>React__default.forwardRef(((t,r)=>jsx(NBComponent,{forwardedRef:r,...t,children:e.length>0?e.map(((e,t)=>{if("text"===e.type){const r=e.otherAttributes,a=purify.sanitize(e.content);return jsx("p",{...r,dangerouslySetInnerHTML:{__html:a}},t)}{const r=e.otherAttributes;return jsx(NotificationBanner.Link,{...r,children:e.content},t)}})):(console.error("[NotificationBannerHOC] Empty data passed"),null)}))),INDICATOR_BAR_WIDTH_MOBILE=10,INDICATOR_BAR_MARGIN_RIGHT_MOBILE=.5,INDICATOR_BAR_FADE_WIDTH_MOBILE=4,Wrapper=styled.div`
|
|
2648
2646
|
position: relative;
|
|
2649
2647
|
width: 100%;
|
|
2650
2648
|
z-index: 1;
|
|
@@ -2704,7 +2702,7 @@ function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof S
|
|
|
2704
2702
|
&:not(:last-child) {
|
|
2705
2703
|
margin-right: ${INDICATOR_BAR_MARGIN_RIGHT_MOBILE+"rem"};
|
|
2706
2704
|
}
|
|
2707
|
-
`;function basePropertyOf$1(e){return function(t){return null==e?void 0:e[t]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$1=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(e){return(e=toString$1(e))&&e.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(e){return e.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(e){return reHasUnicodeWord.test(e)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(e){return e.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString=toString_1,unicodeWords=_unicodeWords;function words$1(e,t,r){return e=toString(e),void 0===(t=r?void 0:t)?hasUnicodeWord(e)?unicodeWords(e):asciiWords(e):e.match(t)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(e){return function(t){return arrayReduce(words(deburr(t).replace(reApos,"")),e,"")}}var _createCompounder=createCompounder$1,createCompounder=_createCompounder,kebabCase=createCompounder((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),kebabCase_1=kebabCase;const ProgressIndicator=({steps:e,currentIndex:t,displayExtractor:r,fadeColor:a,fadePosition:i="both"})=>{const[n,s]=useState(!!i),[o,l]=useState("left"===i||"both"===i),[h,
|
|
2705
|
+
`;function basePropertyOf$1(e){return function(t){return null==e?void 0:e[t]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$1=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(e){return(e=toString$1(e))&&e.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(e){return e.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(e){return reHasUnicodeWord.test(e)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(e){return e.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString=toString_1,unicodeWords=_unicodeWords;function words$1(e,t,r){return e=toString(e),void 0===(t=r?void 0:t)?hasUnicodeWord(e)?unicodeWords(e):asciiWords(e):e.match(t)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(e){return function(t){return arrayReduce(words(deburr(t).replace(reApos,"")),e,"")}}var _createCompounder=createCompounder$1,createCompounder=_createCompounder,kebabCase=createCompounder((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),kebabCase_1=kebabCase;const ProgressIndicator=({steps:e,currentIndex:t,displayExtractor:r,fadeColor:a,fadePosition:i="both"})=>{const[n,s]=useState(!!i),[o,l]=useState("left"===i||"both"===i),[h,c]=useState("right"===i||"both"===i),d=useRef(null),p=useRef(null);useEffect((()=>{m(),window.addEventListener("resize",m);const e=p.current;return e&&e.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),e&&e.removeEventListener("scroll",m)}}),[]),useEffect((()=>(u(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)})),[t]);const u=()=>{if(window.innerWidth>MediaWidths.mobileL)return;const e=p.current;if(e){const r=(INDICATOR_BAR_WIDTH_MOBILE+INDICATOR_BAR_MARGIN_RIGHT_MOBILE)*t-INDICATOR_BAR_FADE_WIDTH_MOBILE;e.scrollLeft=16*r}},m=()=>{if(n){s(window.innerWidth<MediaWidths.mobileL);const e=p.current,t=d.current;e&&t&&e.scrollWidth>t.offsetWidth?(s(!0),l(e.scrollLeft>=1),c(e.scrollWidth-e.scrollLeft>t.offsetWidth)):s(!1)}},f=(e,t)=>e<t?"Completed step":e===t?"Current step":"Uncompleted step",g=(e,t)=>kebabCase_1(`${f(e,t)} ${e}`);if(!e.length)return null;return jsxs(Wrapper,{ref:d,children:[jsx(Content,{ref:p,children:e.map(((e,a)=>{const i=a<=t,n=a===t?"bold":"regular";return jsxs(Indicator,{"aria-label":f(a,t),id:g(a,t),children:[jsx(IndicatorBar,{highlighted:i}),jsx(IndicatorTitle,{highlighted:i,weight:n,children:(s=e,r?r(s):s.toString())})]},a);var s}))}),n&&jsxs(Fragment,{children:[o&&jsx(Fade,{backgroundColor:a,position:"left"}),h&&jsx(Fade,{backgroundColor:a,position:"right"})]})]})},Container=styled.div`
|
|
2708
2706
|
display: flex;
|
|
2709
2707
|
justify-content: center;
|
|
2710
2708
|
align-items: center;
|
|
@@ -2753,8 +2751,8 @@ function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof S
|
|
|
2753
2751
|
width: calc(100% - 2.5rem);
|
|
2754
2752
|
min-height: 5.5rem;
|
|
2755
2753
|
z-index: 9001;
|
|
2756
|
-
background:
|
|
2757
|
-
box-shadow:
|
|
2754
|
+
background: ${Color.Neutral[8]};
|
|
2755
|
+
box-shadow: 0 0.125rem 0.5rem rgba(104, 104, 104, 0.25);
|
|
2758
2756
|
border-radius: 0.5rem;
|
|
2759
2757
|
${e=>{if(e.$isAnimated)return css`
|
|
2760
2758
|
animation: ${slideDown} 0.3s;
|
|
@@ -2819,7 +2817,7 @@ function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof S
|
|
|
2819
2817
|
${starIconStyle}
|
|
2820
2818
|
`,StarEmpty=styled(StarIcon)`
|
|
2821
2819
|
${starIconStyle}
|
|
2822
|
-
`,APP_ICON="https://assets.life.gov.sg/react-design-system/img/app-icon/app-icon.png",ID="smart-app-banner";function SmartAppBannerComponent(e,t){const{className:r,show:a,href:i,content:n,offset:s=0,icon:o=APP_ICON,animated:l=!1,onDismiss:h,onClick:
|
|
2820
|
+
`,APP_ICON="https://assets.life.gov.sg/react-design-system/img/app-icon/app-icon.png",ID="smart-app-banner";function SmartAppBannerComponent(e,t){const{className:r,show:a,href:i,content:n,offset:s=0,icon:o=APP_ICON,animated:l=!1,onDismiss:h,onClick:c}=e,{title:d,message:p,buttonLabel:u,buttonAriaLabel:m,numberOfStars:f}=n,g=e=>{e.stopPropagation(),window.open(i,"_blank","noreferrer"),c?.()};return jsx(Fragment,{children:a&&jsxs(SmartAppBannerContainer,{ref:t,$isAnimated:l,$offset:s,className:r,children:[jsx(DismissContainer,{onClick:h,id:`${ID}-dismiss`,"data-testid":`${ID}-dismiss-container`,children:jsx(DismissButton,{"aria-label":"Dismiss",children:jsx(Cross,{})})}),jsxs(ProceedContainer,{onClick:g,id:`${ID}-proceed`,"data-testid":`${ID}-proceed-container`,children:[jsx(BannerIcon,{src:o,alt:"lifesg-app-icon"}),jsxs(TextContainer,{children:[jsx(Title,{children:d}),jsx(Description,{children:p}),(()=>{if(isNaN(f)||f<0)return;const e=[],t=f-Math.floor(f)>=.4;for(let t=0;t<Math.floor(f);t++)e.push(jsx(Star,{},`star${t}`));if(t&&e.push(jsx(StarHalf,{},"halfstar")),e.length<5){const t=5-e.length;for(let r=0;r<t;r++)e.push(jsx(StarEmpty,{},`emptystar${r}`))}return jsx(RatingContainer,{children:e.slice(0,5)})})()]}),jsx(ButtonContainer,{children:jsx(StyledButton,{onClick:g,"aria-label":m,children:u})})]})]})})}const SmartAppBanner=React__default.forwardRef(SmartAppBannerComponent),baseListStyle=e=>`\n\tmargin-bottom: ${e||0}rem;\n`,BASE_MARGIN=3,StyledOrderedList=styled.ol`
|
|
2823
2821
|
${e=>baseListStyle(e.bottomMargin)}
|
|
2824
2822
|
margin-left: ${BASE_MARGIN}rem;
|
|
2825
2823
|
|
|
@@ -2879,7 +2877,7 @@ function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof S
|
|
|
2879
2877
|
margin-top: 0.5rem;
|
|
2880
2878
|
margin-bottom: 0.5rem;
|
|
2881
2879
|
}
|
|
2882
|
-
`,UnorderedList=({size:e="Body",children:t,...r})=>jsx(StyledUnorderedList,{size:e,...r,children:t}),OrderedList=({size:e="Body",children:t,...r})=>jsx(StyledOrderedList,{size:e,...r,children:t}),TextList={Ul:UnorderedList,Ol:OrderedList},BaseTheme={[ThemeContextKeys.colorScheme]:"base",[ThemeContextKeys.textStyleScheme]:"base"},BookingSGTheme={[ThemeContextKeys.colorScheme]:"bookingsg",[ThemeContextKeys.textStyleScheme]:"base"},CircleIndicator=styled.div`
|
|
2880
|
+
`,UnorderedList=({size:e="Body",children:t,...r})=>jsx(StyledUnorderedList,{size:e,...r,children:t}),OrderedList=({size:e="Body",children:t,...r})=>jsx(StyledOrderedList,{size:e,...r,children:t}),TextList={Ul:UnorderedList,Ol:OrderedList},BaseTheme={[ThemeContextKeys.colorScheme]:"base",[ThemeContextKeys.textStyleScheme]:"base",[ThemeContextKeys.designTokenScheme]:"base"},BookingSGTheme={[ThemeContextKeys.colorScheme]:"bookingsg",[ThemeContextKeys.textStyleScheme]:"base",[ThemeContextKeys.designTokenScheme]:"base"},CircleIndicator=styled.div`
|
|
2883
2881
|
width: 1rem;
|
|
2884
2882
|
height: 1rem;
|
|
2885
2883
|
margin-top: 0.5rem;
|
|
@@ -3138,5 +3136,5 @@ function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof S
|
|
|
3138
3136
|
`}}}
|
|
3139
3137
|
`,HOCWrapper=styled.div`
|
|
3140
3138
|
position: relative;
|
|
3141
|
-
`,Tooltip=({visible:e,position:t="top",children:r,...a})=>{const i=a["data-testid"]||"tooltip",[n,s]=useState(t),o=useRef(null);useEffect((()=>(h(),window.addEventListener("resize",debounce_1(l,300)),()=>{window.removeEventListener("resize",debounce_1(l,300))})),[]);const l=()=>{h()},h=()=>{if(o.current){const e=o.current.getBoundingClientRect();if(e.x<0)switch(t){case"left":case"top":case"bottom":s("right");break;case"right":s("top")}else if(e.x+e.width>window.outerWidth)switch(t){case"right":case"top":case"bottom":s("left");break;case"left":s("top")}else s(t)}};return jsxs(BubbleWrap,{position:n,"data-testid":i,visible:e,ref:o,...a,children:[jsx(Bubble,{children:"string"==typeof r?jsx(Text.BodySmall,{children:r}):r}),jsx(Arrow,{position:n})]})},withTooltip=(e,t)=>r=>{const{tooltipVisible:a,position:i,...n}=r;return jsxs(HOCWrapper,{children:[jsx(e,{...n}),jsx(Tooltip,{visible:a,position:i,children:t.content})]})};export{Accordion,Alert,BaseTheme,BookingSGTheme,BoxContainer,Breadcrumb,Button,Card,Checkbox,Color,DateInput,ErrorDisplay,FeedbackRating,Footer,Form,
|
|
3139
|
+
`,Tooltip=({visible:e,position:t="top",children:r,...a})=>{const i=a["data-testid"]||"tooltip",[n,s]=useState(t),o=useRef(null);useEffect((()=>(h(),window.addEventListener("resize",debounce_1(l,300)),()=>{window.removeEventListener("resize",debounce_1(l,300))})),[]);const l=()=>{h()},h=()=>{if(o.current){const e=o.current.getBoundingClientRect();if(e.x<0)switch(t){case"left":case"top":case"bottom":s("right");break;case"right":s("top")}else if(e.x+e.width>window.outerWidth)switch(t){case"right":case"top":case"bottom":s("left");break;case"left":s("top")}else s(t)}};return jsxs(BubbleWrap,{position:n,"data-testid":i,visible:e,ref:o,...a,children:[jsx(Bubble,{children:"string"==typeof r?jsx(Text.BodySmall,{children:r}):r}),jsx(Arrow,{position:n})]})},withTooltip=(e,t)=>r=>{const{tooltipVisible:a,position:i,...n}=r;return jsxs(HOCWrapper,{children:[jsx(e,{...n}),jsx(Tooltip,{visible:a,position:i,children:t.content})]})};export{Accordion,Alert,BaseTheme,BookingSGTheme,BoxContainer,Breadcrumb,Button,Card,Checkbox,Color,DateInput,ErrorDisplay,FeedbackRating,Footer,Form,IconButton,Input$2 as Input,InputGroup,InputMultiSelect,InputSelect,Layout,LinkList,LoadingDots,LoadingSpinner,Masonry,Masthead,MediaQuery,MediaWidths,Modal,NBComponent,Navbar,NavbarHeight,NavbarMobileHeight,NotificationBanner,Overlay,PhoneNumberInput,Popover,ProgressIndicator,RadioButton,RedirectScope,SmartAppBanner,Text,TextList,TextStyle,TextStyleHelper,Textarea,ThemeContextKeys,Timeline,Timepicker,ToggleButton$1 as ToggleButton,Tooltip,Transition,withNotificationBanner,withPopover,withTooltip};
|
|
3142
3140
|
//# sourceMappingURL=index.js.map
|