@developer_tribe/react-builder 0.1.31 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-components/Button/ButtonProps.generated.d.ts +2 -1
- package/dist/build-components/CarouselButtons/CarouselButtonsProps.generated.d.ts +2 -1
- package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +2 -1
- package/dist/build-components/Image/ImageProps.generated.d.ts +2 -1
- package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +8 -4
- package/dist/build-components/OnboardButtons/OnboardButtonsProps.generated.d.ts +6 -3
- package/dist/build-components/OnboardDot/OnboardDotProps.generated.d.ts +2 -1
- package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +10 -5
- package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +4 -1
- package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +4 -2
- package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +10 -5
- package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +10 -5
- package/dist/build-components/Text/TextProps.generated.d.ts +10 -5
- package/dist/build-components/View/ViewProps.generated.d.ts +6 -3
- package/dist/build-components/patterns.generated.d.ts +7 -2
- package/dist/index.cjs.js +6 -4
- package/dist/index.esm.js +6 -4
- package/package.json +2 -1
- package/scripts/prebuild/utils/createGeneratedProps.js +64 -5
- package/src/assets/samples/getSamples.ts +6 -0
- package/src/assets/samples/vpn-onboard-5.json +1025 -0
- package/src/assets/samples/vpn-onboard-6.json +709 -0
- package/src/build-components/Button/ButtonProps.generated.ts +14 -12
- package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +6 -1
- package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +9 -7
- package/src/build-components/Image/ImageProps.generated.ts +3 -1
- package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +14 -9
- package/src/build-components/OnboardButton/pattern.json +3 -2
- package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +10 -3
- package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +9 -7
- package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +33 -22
- package/src/build-components/OnboardImage/OnboardImage.tsx +24 -1
- package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +5 -1
- package/src/build-components/OnboardImage/pattern.json +3 -5
- package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +5 -2
- package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +33 -22
- package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +33 -22
- package/src/build-components/Text/TextProps.generated.ts +33 -22
- package/src/build-components/View/ViewProps.generated.ts +18 -9
- package/src/build-components/patterns.generated.ts +7 -2
- package/src/utils/novaToJson.ts +5 -0
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as t,jsxs as e,Fragment as o}from"react/jsx-runtime";import n,{useRef as i,useState as a,useCallback as r,useEffect as s,createContext as l,useContext as u,useMemo as c}from"react";function d(t){return null==t}function p(t){return"string"==typeof t}function y(t){return t instanceof Array}function g(t){return 0===Object.keys(t).length}function b(t){if(d(t))return{valid:!0,message:"null or undefined is valid"};if(p(t))return{valid:!0,message:"string is valid"};if(y(t)){const e=t;for(const t of e){const{valid:e,message:o}=b(t);if(!e)return{valid:!1,message:o}}return{valid:!0,message:"Array is valid"}}const e=t;if(g(e))return{valid:!0,message:"empty object is valid"};if(e.children){const{valid:t,message:o}=b(e.children);if(!t)return{valid:!1,message:o}}return{valid:!0,message:"everthing is valid"}}function h(t){const e=t?.type,o=function(t){const e=pe(t);return e?.defaults}(e);if(!o)return t;const n={...o,...t.attributes??{}};return{...t,attributes:n}}var f=n.memo(function({node:t}){return t=h(t),String(t?.type??"button")});var _=n.memo(function({node:e}){return e=h(e),t("div",{className:"embla__container",children:Array.isArray(e.children)?e.children.map((e,o)=>t(ue,{node:e},o)):(t=>!(!t||"object"!=typeof t||Array.isArray(t))&&"type"in t&&"carouselItem"===t.type)(e.children)?t(ue,{node:e.children}):null})});function m(t){return function(t){return"[object Object]"===Object.prototype.toString.call(t)}(t)||Array.isArray(t)}function k(t,e){const o=Object.keys(t),n=Object.keys(e);if(o.length!==n.length)return!1;return JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&o.every(o=>{const n=t[o],i=e[o];return"function"==typeof n?`${n}`==`${i}`:m(n)&&m(i)?k(n,i):n===i})}function v(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function w(t){return"number"==typeof t}function x(t){return"string"==typeof t}function F(t){return"boolean"==typeof t}function S(t){return"[object Object]"===Object.prototype.toString.call(t)}function T(t){return Math.abs(t)}function z(t){return Math.sign(t)}function A(t,e){return T(t-e)}function B(t){return E(t).map(Number)}function C(t){return t[O(t)]}function O(t){return Math.max(0,t.length-1)}function D(t,e){return e===O(t)}function L(t,e=0){return Array.from(Array(t),(t,o)=>e+o)}function E(t){return Object.keys(t)}function N(t,e){return[t,e].reduce((t,e)=>(E(e).forEach(o=>{const n=t[o],i=e[o],a=S(n)&&S(i);t[o]=a?N(n,i):i}),t),{})}function I(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function P(){let t=[];const e={add:function(o,n,i,a={passive:!0}){let r;if("addEventListener"in o)o.addEventListener(n,i,a),r=()=>o.removeEventListener(n,i,a);else{const t=o;t.addListener(i),r=()=>t.removeListener(i)}return t.push(r),e},clear:function(){t=t.filter(t=>t())}};return e}function R(t,e,o,n){const i=P(),a=1e3/60;let r=null,s=0,l=0;function u(t){if(!l)return;r||(r=t,o(),o());const i=t-r;for(r=t,s+=i;s>=a;)o(),s-=a;n(s/a),l&&(l=e.requestAnimationFrame(u))}function c(){e.cancelAnimationFrame(l),r=null,s=0,l=0}return{init:function(){i.add(t,"visibilitychange",()=>{t.hidden&&(r=null,s=0)})},destroy:function(){c(),i.clear()},start:function(){l||(l=e.requestAnimationFrame(u))},stop:c,update:o,render:n}}function W(t=0,e=0){const o=T(t-e);function n(e){return e<t}function i(t){return t>e}function a(t){return n(t)||i(t)}return{length:o,max:e,min:t,constrain:function(o){return a(o)?n(o)?t:e:o},reachedAny:a,reachedMax:i,reachedMin:n,removeOffset:function(t){return o?t-o*Math.ceil((t-e)/o):t}}}function j(t,e,o){const{constrain:n}=W(0,t),i=t+1;let a=r(e);function r(t){return o?T((i+t)%i):n(t)}function s(){return a}function l(){return j(t,s(),o)}const u={get:s,set:function(t){return a=r(t),u},add:function(t){return l().set(s()+t)},clone:l};return u}function V(t,e,o,n,i,a,r,s,l,u,c,d,p,y,g,b,h,f,_){const{cross:m,direction:k}=t,v=["INPUT","SELECT","TEXTAREA"],w={passive:!1},x=P(),S=P(),B=W(50,225).constrain(y.measure(20)),C={mouse:300,touch:400},O={mouse:500,touch:600},D=g?43:25;let L=!1,E=0,N=0,R=!1,j=!1,V=!1,H=!1;function M(t){if(!I(t,n)&&t.touches.length>=2)return K(t);const e=a.readPoint(t),o=a.readPoint(t,m),r=A(e,E),l=A(o,N);if(!j&&!H){if(!t.cancelable)return K(t);if(j=r>l,!j)return K(t)}const c=a.pointerMove(t);r>b&&(V=!0),u.useFriction(.3).useDuration(.75),s.start(),i.add(k(c)),t.preventDefault()}function K(t){const e=c.byDistance(0,!1).index!==d.get(),o=a.pointerUp(t)*(g?O:C)[H?"mouse":"touch"],n=function(t,e){const o=d.add(-1*z(t)),n=c.byDistance(t,!g).distance;return g||T(t)<B?n:h&&e?.5*n:c.byIndex(o.get(),0).distance}(k(o),e),i=function(t,e){if(0===t||0===e)return 0;if(T(t)<=T(e))return 0;const o=A(T(t),T(e));return T(o/t)}(o,n),r=D-10*i,s=f+i/50;j=!1,R=!1,S.clear(),u.useDuration(r).useFriction(s),l.distance(n,!g),H=!1,p.emit("pointerUp")}function q(t){V&&(t.stopPropagation(),t.preventDefault(),V=!1)}return{init:function(t){if(!_)return;function s(s){(F(_)||_(t,s))&&function(t){const s=I(t,n);if(H=s,V=g&&s&&!t.buttons&&L,L=A(i.get(),r.get())>=2,s&&0!==t.button)return;if(function(t){const e=t.nodeName||"";return v.includes(e)}(t.target))return;R=!0,a.pointerDown(t),u.useFriction(0).useDuration(0),i.set(r),function(){const t=H?o:e;S.add(t,"touchmove",M,w).add(t,"touchend",K).add(t,"mousemove",M,w).add(t,"mouseup",K)}(),E=a.readPoint(t),N=a.readPoint(t,m),p.emit("pointerDown")}(s)}const l=e;x.add(l,"dragstart",t=>t.preventDefault(),w).add(l,"touchmove",()=>{},w).add(l,"touchend",()=>{}).add(l,"touchstart",s).add(l,"mousedown",s).add(l,"touchcancel",K).add(l,"contextmenu",K).add(l,"click",q,!0)},destroy:function(){x.clear(),S.clear()},pointerDown:function(){return R}}}function H(t,e){let o,n;function i(t){return t.timeStamp}function a(o,n){const i="client"+("x"===(n||t.scroll)?"X":"Y");return(I(o,e)?o:o.touches[0])[i]}return{pointerDown:function(t){return o=t,n=t,a(t)},pointerMove:function(t){const e=a(t)-a(n),r=i(t)-i(o)>170;return n=t,r&&(o=t),e},pointerUp:function(t){if(!o||!n)return 0;const e=a(n)-a(o),r=i(t)-i(o),s=i(t)-i(n)>170,l=e/r;return r&&!s&&T(l)>.1?l:0},readPoint:a}}function M(t,e,o,n,i,a,r){const s=[t].concat(n);let l,u,c=[],d=!1;function p(t){return i.measureSize(r.measure(t))}return{init:function(i){a&&(u=p(t),c=n.map(p),l=new ResizeObserver(o=>{(F(a)||a(i,o))&&function(o){for(const a of o){if(d)return;const o=a.target===t,r=n.indexOf(a.target),s=o?u:c[r];if(T(p(o?t:n[r])-s)>=.5){i.reInit(),e.emit("resize");break}}}(o)}),o.requestAnimationFrame(()=>{s.forEach(t=>l.observe(t))}))},destroy:function(){d=!0,l&&l.disconnect()}}}function K(t,e,o,n,i){const a=i.measure(10),r=i.measure(50),s=W(.1,.99);let l=!1;function u(){return!l&&(!!t.reachedAny(o.get())&&!!t.reachedAny(e.get()))}return{shouldConstrain:u,constrain:function(i){if(!u())return;const l=t.reachedMin(e.get())?"min":"max",c=T(t[l]-e.get()),d=o.get()-e.get(),p=s.constrain(c/r);o.subtract(d*p),!i&&T(d)<a&&(o.set(t.constrain(o.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}function q(t,e,o,n){const i=e.min+.1,a=e.max+.1,{reachedMin:r,reachedMax:s}=W(i,a);return{loop:function(e){if(!function(t){return 1===t?s(o.get()):-1===t&&r(o.get())}(e))return;const i=t*(-1*e);n.forEach(t=>t.add(i))}}}function X(t,e,o,n,i){const{reachedAny:a,removeOffset:r,constrain:s}=n;function l(t){return t.concat().sort((t,e)=>T(t)-T(e))[0]}function u(e,n){const i=[e,e+o,e-o];if(!t)return e;if(!n)return l(i);const a=i.filter(t=>z(t)===n);return a.length?l(a):C(i)-o}return{byDistance:function(o,n){const l=i.get()+o,{index:c,distance:d}=function(o){const n=t?r(o):s(o),i=e.map((t,e)=>({diff:u(t-n,0),index:e})).sort((t,e)=>T(t.diff)-T(e.diff)),{index:a}=i[0];return{index:a,distance:n}}(l),p=!t&&a(l);return!n||p?{index:c,distance:o}:{index:c,distance:o+u(e[c]-d,0)}},byIndex:function(t,o){return{index:t,distance:u(e[t]-i.get(),o)}},shortcut:u}}function J(t,e,o,n,i,a,r,s){const l={passive:!0,capture:!0};let u=0;function c(t){"Tab"===t.code&&(u=(new Date).getTime())}return{init:function(d){s&&(a.add(document,"keydown",c,!1),e.forEach((e,c)=>{a.add(e,"focus",e=>{(F(s)||s(d,e))&&function(e){if((new Date).getTime()-u>10)return;r.emit("slideFocusStart"),t.scrollLeft=0;const a=o.findIndex(t=>t.includes(e));w(a)&&(i.useDuration(0),n.index(a,0),r.emit("slideFocus"))}(c)},l)}))}}}function U(t){let e=t;function o(t){return w(t)?t:t.get()}return{get:function(){return e},set:function(t){e=o(t)},add:function(t){e+=o(t)},subtract:function(t){e-=o(t)}}}function Q(t,e){const o="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},n=e.style;let i=null,a=!1;return{clear:function(){a||(n.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(a)return;const r=(s=t.direction(e),Math.round(100*s)/100);var s;r!==i&&(n.transform=o(r),i=r)},toggleActive:function(t){a=!t}}}function G(t,e,o,n,i,a,r,s,l){const u=B(i),c=B(i).reverse(),d=function(){const t=r[0];return g(y(c,t),o,!1)}().concat(function(){const t=e-r[0]-1;return g(y(u,t),-o,!0)}());function p(t,e){return t.reduce((t,e)=>t-i[e],e)}function y(t,e){return t.reduce((t,o)=>p(t,e)>0?t.concat([o]):t,[])}function g(i,r,u){const c=function(t){return a.map((o,i)=>({start:o-n[i]+.5+t,end:o+e-.5+t}))}(r);return i.map(e=>{const n=u?0:-o,i=u?o:0,a=u?"end":"start",r=c[e][a];return{index:e,loopPoint:r,slideLocation:U(-1),translate:Q(t,l[e]),target:()=>s.get()>r?n:i}})}return{canLoop:function(){return d.every(({index:t})=>p(u.filter(e=>e!==t),e)<=.1)},clear:function(){d.forEach(t=>t.translate.clear())},loop:function(){d.forEach(t=>{const{target:e,translate:o,slideLocation:n}=t,i=e();i!==n.get()&&(o.to(i),n.set(i))})},loopPoints:d}}function Y(t,e,o){let n,i=!1;return{init:function(a){o&&(n=new MutationObserver(t=>{i||(F(o)||o(a,t))&&function(t){for(const o of t)if("childList"===o.type){a.reInit(),e.emit("slidesChanged");break}}(t)}),n.observe(t,{childList:!0}))},destroy:function(){n&&n.disconnect(),i=!0}}}function Z(t,e,o,n){const i={};let a,r=null,s=null,l=!1;return{init:function(){a=new IntersectionObserver(t=>{l||(t.forEach(t=>{const o=e.indexOf(t.target);i[o]=t}),r=null,s=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:n}),e.forEach(t=>a.observe(t))},destroy:function(){a&&a.disconnect(),l=!0},get:function(t=!0){if(t&&r)return r;if(!t&&s)return s;const e=function(t){return E(i).reduce((e,o)=>{const n=parseInt(o),{isIntersecting:a}=i[n];return(t&&a||!t&&!a)&&e.push(n),e},[])}(t);return t&&(r=e),t||(s=e),e}}}function $(t,e,o,n,i,a,r,s,l){const{startEdge:u,endEdge:c,direction:d}=t,p=w(o);return{groupSlides:function(t){return p?function(t,e){return B(t).filter(t=>t%e===0).map(o=>t.slice(o,o+e))}(t,o):function(t){return t.length?B(t).reduce((o,p,y)=>{const g=C(o)||0,b=0===g,h=p===O(t),f=i[u]-a[g][u],_=i[u]-a[p][c],m=!n&&b?d(r):0,k=T(_-(!n&&h?d(s):0)-(f+m));return y&&k>e+l&&o.push(p),h&&o.push(t.length),o},[]).map((e,o,n)=>{const i=Math.max(n[o-1]||0);return t.slice(i,e)}):[]}(t)}}}function tt(t,e,o,n,i,a,r){const{align:s,axis:l,direction:u,startIndex:c,loop:d,duration:p,dragFree:y,dragThreshold:g,inViewThreshold:b,slidesToScroll:h,skipSnaps:f,containScroll:_,watchResize:m,watchSlides:k,watchDrag:v,watchFocus:w}=a,F={measure:function(t){const{offsetTop:e,offsetLeft:o,offsetWidth:n,offsetHeight:i}=t;return{top:e,right:o+n,bottom:e+i,left:o,width:n,height:i}}},S=F.measure(e),E=o.map(F.measure),N=function(t,e){const o="rtl"===e,n="y"===t,i=!n&&o?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":o?"right":"left",endEdge:n?"bottom":o?"left":"right",measureSize:function(t){const{height:e,width:o}=t;return n?e:o},direction:function(t){return t*i}}}(l,u),I=N.measureSize(S),tt=function(t){return{measure:function(e){return t*(e/100)}}}(I),et=function(t,e){const o={start:function(){return 0},center:function(t){return n(t)/2},end:n};function n(t){return e-t}return{measure:function(n,i){return x(t)?o[t](n):t(e,n,i)}}}(s,I),ot=!d&&!!_,nt=d||!!_,{slideSizes:it,slideSizesWithGaps:at,startGap:rt,endGap:st}=function(t,e,o,n,i,a){const{measureSize:r,startEdge:s,endEdge:l}=t,u=o[0]&&i,c=function(){if(!u)return 0;const t=o[0];return T(e[s]-t[s])}(),d=function(){if(!u)return 0;const t=a.getComputedStyle(C(n));return parseFloat(t.getPropertyValue(`margin-${l}`))}(),p=o.map(r),y=o.map((t,e,o)=>{const n=!e,i=D(o,e);return n?p[e]+c:i?p[e]+d:o[e+1][s]-t[s]}).map(T);return{slideSizes:p,slideSizesWithGaps:y,startGap:c,endGap:d}}(N,S,E,o,nt,i),lt=$(N,I,h,d,S,E,rt,st,2),{snaps:ut,snapsAligned:ct}=function(t,e,o,n,i){const{startEdge:a,endEdge:r}=t,{groupSlides:s}=i,l=s(n).map(t=>C(t)[r]-t[0][a]).map(T).map(e.measure),u=n.map(t=>o[a]-t[a]).map(t=>-T(t)),c=s(u).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:u,snapsAligned:c}}(N,et,S,E,lt),dt=-C(ut)+C(at),{snapsContained:pt,scrollContainLimit:yt}=function(t,e,o,n,i){const a=W(-e+t,0),r=o.map((t,e)=>{const{min:n,max:i}=a,r=a.constrain(t),s=!e,u=D(o,e);return s?i:u||l(n,r)?n:l(i,r)?i:r}).map(t=>parseFloat(t.toFixed(3))),s=function(){const t=r[0],e=C(r);return W(r.lastIndexOf(t),r.indexOf(e)+1)}();function l(t,e){return A(t,e)<=1}return{snapsContained:function(){if(e<=t+i)return[a.max];if("keepSnaps"===n)return r;const{min:o,max:l}=s;return r.slice(o,l)}(),scrollContainLimit:s}}(I,dt,ct,_,2),gt=ot?pt:ct,{limit:bt}=function(t,e,o){const n=e[0];return{limit:W(o?n-t:C(e),n)}}(dt,gt,d),ht=j(O(gt),c,d),ft=ht.clone(),_t=B(o),mt=R(n,i,()=>(({dragHandler:t,scrollBody:e,scrollBounds:o,options:{loop:n}})=>{n||o.constrain(t.pointerDown()),e.seek()})(Lt),t=>(({scrollBody:t,translate:e,location:o,offsetLocation:n,previousLocation:i,scrollLooper:a,slideLooper:r,dragHandler:s,animation:l,eventHandler:u,scrollBounds:c,options:{loop:d}},p)=>{const y=t.settled(),g=!c.shouldConstrain(),b=d?y:y&&g,h=b&&!s.pointerDown();h&&l.stop();const f=o.get()*p+i.get()*(1-p);n.set(f),d&&(a.loop(t.direction()),r.loop()),e.to(n.get()),h&&u.emit("settle"),b||u.emit("scroll")})(Lt,t)),kt=gt[ht.get()],vt=U(kt),wt=U(kt),xt=U(kt),Ft=U(kt),St=function(t,e,o,n,i,a){let r=0,s=0,l=i,u=a,c=t.get(),d=0;function p(t){return l=t,g}function y(t){return u=t,g}const g={direction:function(){return s},duration:function(){return l},velocity:function(){return r},seek:function(){const e=n.get()-t.get();let i=0;return l?(o.set(t),r+=e/l,r*=u,c+=r,t.add(r),i=c-d):(r=0,o.set(n),t.set(n),i=e),s=z(i),d=c,g},settled:function(){return T(n.get()-e.get())<.001},useBaseFriction:function(){return y(a)},useBaseDuration:function(){return p(i)},useFriction:y,useDuration:p};return g}(vt,xt,wt,Ft,p,.68),Tt=X(d,gt,dt,bt,Ft),zt=function(t,e,o,n,i,a,r){function s(i){const s=i.distance,l=i.index!==e.get();a.add(s),s&&(n.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(o.set(e.get()),e.set(i.index),r.emit("select"))}return{distance:function(t,e){s(i.byDistance(t,e))},index:function(t,o){const n=e.clone().set(t);s(i.byIndex(n.get(),o))}}}(mt,ht,ft,St,Tt,Ft,r),At=function(t){const{max:e,length:o}=t;return{get:function(t){return o?(t-e)/-o:0}}}(bt),Bt=P(),Ct=Z(e,o,r,b),{slideRegistry:Ot}=function(t,e,o,n,i,a){const{groupSlides:r}=i,{min:s,max:l}=n;return{slideRegistry:function(){const n=r(a),i=!t||"keepSnaps"===e;return 1===o.length?[a]:i?n:n.slice(s,l).map((t,e,o)=>{const n=!e,i=D(o,e);return n?L(C(o[0])+1):i?L(O(a)-C(o)[0]+1,C(o)[0]):t})}()}}(ot,_,gt,yt,lt,_t),Dt=J(t,o,Ot,zt,St,Bt,r,w),Lt={ownerDocument:n,ownerWindow:i,eventHandler:r,containerRect:S,slideRects:E,animation:mt,axis:N,dragHandler:V(N,t,n,i,Ft,H(N,i),vt,mt,zt,St,Tt,ht,r,tt,y,g,f,.68,v),eventStore:Bt,percentOfView:tt,index:ht,indexPrevious:ft,limit:bt,location:vt,offsetLocation:xt,previousLocation:wt,options:a,resizeHandler:M(e,r,i,o,N,m,F),scrollBody:St,scrollBounds:K(bt,xt,Ft,St,tt),scrollLooper:q(dt,bt,xt,[vt,xt,wt,Ft]),scrollProgress:At,scrollSnapList:gt.map(At.get),scrollSnaps:gt,scrollTarget:Tt,scrollTo:zt,slideLooper:G(N,I,dt,it,at,ut,gt,xt,o),slideFocus:Dt,slidesHandler:Y(e,r,k),slidesInView:Ct,slideIndexes:_t,slideRegistry:Ot,slidesToScroll:lt,target:Ft,translate:Q(N,e)};return Lt}const et={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function ot(t){function e(t,e){return N(t,e||{})}const o={mergeOptions:e,optionsAtMedia:function(o){const n=o.breakpoints||{},i=E(n).filter(e=>t.matchMedia(e).matches).map(t=>n[t]).reduce((t,o)=>e(t,o),{});return e(o,i)},optionsMediaQueries:function(e){return e.map(t=>E(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}};return o}function nt(t,e,o){const n=t.ownerDocument,i=n.defaultView,a=ot(i),r=function(t){let e=[];return{init:function(o,n){return e=n.filter(({options:e})=>!1!==t.optionsAtMedia(e).active),e.forEach(e=>e.init(o,t)),n.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){e=e.filter(t=>t.destroy())}}}(a),s=P(),l=function(){let t,e={};function o(t){return e[t]||[]}const n={init:function(e){t=e},emit:function(e){return o(e).forEach(o=>o(t,e)),n},off:function(t,i){return e[t]=o(t).filter(t=>t!==i),n},on:function(t,i){return e[t]=o(t).concat([i]),n},clear:function(){e={}}};return n}(),{mergeOptions:u,optionsAtMedia:c,optionsMediaQueries:d}=a,{on:p,off:y,emit:g}=l,b=z;let h,f,_,m,k=!1,v=u(et,nt.globalOptions),w=u(v),F=[];function S(e){const o=tt(t,_,m,n,i,e,l);if(e.loop&&!o.slideLooper.canLoop()){return S(Object.assign({},e,{loop:!1}))}return o}function T(e,o){k||(v=u(v,e),w=c(v),F=o||F,function(){const{container:e,slides:o}=w,n=x(e)?t.querySelector(e):e;_=n||t.children[0];const i=x(o)?_.querySelectorAll(o):o;m=[].slice.call(i||_.children)}(),h=S(w),d([v,...F.map(({options:t})=>t)]).forEach(t=>s.add(t,"change",z)),w.active&&(h.translate.to(h.location.get()),h.animation.init(),h.slidesInView.init(),h.slideFocus.init(O),h.eventHandler.init(O),h.resizeHandler.init(O),h.slidesHandler.init(O),h.options.loop&&h.slideLooper.loop(),_.offsetParent&&m.length&&h.dragHandler.init(O),f=r.init(O,F)))}function z(t,e){const o=C();A(),T(u({startIndex:o},t),e),l.emit("reInit")}function A(){h.dragHandler.destroy(),h.eventStore.clear(),h.translate.clear(),h.slideLooper.clear(),h.resizeHandler.destroy(),h.slidesHandler.destroy(),h.slidesInView.destroy(),h.animation.destroy(),r.destroy(),s.clear()}function B(t,e,o){w.active&&!k&&(h.scrollBody.useBaseFriction().useDuration(!0===e?0:w.duration),h.scrollTo.index(t,o||0))}function C(){return h.index.get()}const O={canScrollNext:function(){return h.index.add(1).get()!==C()},canScrollPrev:function(){return h.index.add(-1).get()!==C()},containerNode:function(){return _},internalEngine:function(){return h},destroy:function(){k||(k=!0,s.clear(),A(),l.emit("destroy"),l.clear())},off:y,on:p,emit:g,plugins:function(){return f},previousScrollSnap:function(){return h.indexPrevious.get()},reInit:b,rootNode:function(){return t},scrollNext:function(t){B(h.index.add(1).get(),t,-1)},scrollPrev:function(t){B(h.index.add(-1).get(),t,1)},scrollProgress:function(){return h.scrollProgress.get(h.offsetLocation.get())},scrollSnapList:function(){return h.scrollSnapList},scrollTo:B,selectedScrollSnap:C,slideNodes:function(){return m},slidesInView:function(){return h.slidesInView.get()},slidesNotInView:function(){return h.slidesInView.get(!1)}};return T(e,o),setTimeout(()=>l.emit("init"),0),O}function it(t={},e=[]){const o=i(t),n=i(e),[l,u]=a(),[c,d]=a(),p=r(()=>{l&&l.reInit(o.current,n.current)},[l]);return s(()=>{k(o.current,t)||(o.current=t,p())},[t,p]),s(()=>{(function(t,e){if(t.length!==e.length)return!1;const o=v(t),n=v(e);return o.every((t,e)=>k(t,n[e]))})(n.current,e)||(n.current=e,p())},[e,p]),s(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&c){nt.globalOptions=it.globalOptions;const t=nt(c,o.current,n.current);return u(t),()=>t.destroy()}u(void 0)},[c,u]),[d,l]}nt.globalOptions=void 0,it.globalOptions=void 0;const at=l(void 0);var rt=n.memo(function({node:e}){e=h(e);const[o,n]=it(e.attributes);return t(at.Provider,{value:n,children:t("div",{className:"carousel-provider",children:t("div",{className:"embla",children:t("div",{className:"embla__viewport",ref:o,children:e.children&&t(ue,{node:e.children})})})})})});var st=n.memo(function({node:o}){o=h(o);const n=u(at),i=o.attributes?.buttonType||["previous_button","next_button"];return e("div",{className:"embla__buttons",children:[i.includes("previous_button")&&t("button",{onClick:()=>n?.scrollPrev(),className:"embla__button embla__button--prev",children:"Previous"}),i.includes("next_button")&&t("button",{onClick:()=>n?.scrollNext(),className:"embla__button embla__button--next",children:"Next"}),i.includes("skip_button")&&t("button",{onClick:()=>n?.scrollTo(o.attributes?.skipNumber),className:"embla__button embla__button--skip",children:"Skip"})]})});var lt=n.memo(function({node:e}){e=h(e);const o=e.attributes?.dotType||"normal_dot",n=u(at),[i,r]=a(0),[l,c]=a([]);return s(()=>{n&&(c(n.scrollSnapList()),r(n.selectedScrollSnap()),n.on("select",()=>{r(n.selectedScrollSnap())}))},[n]),t("div",{className:`embla__dots embla__dots--${o}`,children:l.map((e,o)=>t("button",{onClick:()=>n?.scrollTo(e),className:"embla__dot "+(i===o?"embla__dot--selected":""),children:o===i?"●":"○"},o))})});var ut=n.memo(function({node:e}){return e=h(e),t("div",{className:"embla__slide",...e.attributes,children:e.children&&t(ue,{node:e.children})})});function ct(t){const e=t.attributes,o={};return e?(void 0!==e.width&&(o.width=e.width),void 0!==e.height&&(o.height=e.height),void 0!==e.borderRadius&&(o.borderRadius=e.borderRadius),"cover"===e.resizeMode?o.objectFit="cover":"contain"===e.resizeMode?o.objectFit="contain":"stretch"===e.resizeMode?o.objectFit="fill":"center"===e.resizeMode&&(o.objectFit="none"),o):o}var dt=n.memo(function({node:e}){return e=h(e),t("img",{src:e.attributes?.src,width:e.attributes?.width,height:e.attributes?.height,style:ct(e),alt:""},e.key)});var pt=n.memo(function({node:e}){return e=h(e),t(_,{node:{...e,type:"carousel"}})});function yt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gt,bt={exports:{}},ht={},ft={exports:{}},_t={};var mt,kt,vt,wt={};
|
|
1
|
+
import{jsx,jsxs,Fragment}from"react/jsx-runtime";import React,{useRef,useState,useCallback,useEffect,createContext,useContext,useMemo}from"react";function isNodeNullOrUndefined(t){return null==t}function isNodeString(t){return"string"==typeof t}function isNodeArray(t){return t instanceof Array}function isEmptyObject(t){return 0===Object.keys(t).length}function analyseNode(t){if(isNodeNullOrUndefined(t))return{valid:!0,message:"null or undefined is valid"};if(isNodeString(t))return{valid:!0,message:"string is valid"};if(isNodeArray(t)){const e=t;for(const t of e){const{valid:e,message:i}=analyseNode(t);if(!e)return{valid:!1,message:i}}return{valid:!0,message:"Array is valid"}}const e=t;if(isEmptyObject(e))return{valid:!0,message:"empty object is valid"};if(e.children){const{valid:t,message:i}=analyseNode(e.children);if(!t)return{valid:!1,message:i}}return{valid:!0,message:"everthing is valid"}}function other(t,e){return null}function useNode(t){const e=t?.type,i=getDefaultsForType(e);if(!i)return t;const a={...i,...t.attributes??{}};return{...t,attributes:a}}function Button({node:t}){return t=useNode(t),String(t?.type??"button")}var Button$1=React.memo(Button);const isCarouselItem=t=>!(!t||"object"!=typeof t||Array.isArray(t))&&("type"in t&&"carouselItem"===t.type);function Carousel({node:t}){t=useNode(t);return jsx("div",{className:"embla__container",children:Array.isArray(t.children)?t.children.map((t,e)=>jsx(RenderNode$1,{node:t},e)):isCarouselItem(t.children)?jsx(RenderNode$1,{node:t.children}):null})}var Carousel$1=React.memo(Carousel);function isObject$1(t){return"[object Object]"===Object.prototype.toString.call(t)}function isRecord(t){return isObject$1(t)||Array.isArray(t)}function canUseDOM(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function areOptionsEqual(t,e){const i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;return JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&i.every(i=>{const a=t[i],r=e[i];return"function"==typeof a?`${a}`==`${r}`:isRecord(a)&&isRecord(r)?areOptionsEqual(a,r):a===r})}function sortAndMapPluginToOptions(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function arePluginsEqual(t,e){if(t.length!==e.length)return!1;const i=sortAndMapPluginToOptions(t),a=sortAndMapPluginToOptions(e);return i.every((t,e)=>areOptionsEqual(t,a[e]))}function isNumber(t){return"number"==typeof t}function isString(t){return"string"==typeof t}function isBoolean(t){return"boolean"==typeof t}function isObject(t){return"[object Object]"===Object.prototype.toString.call(t)}function mathAbs(t){return Math.abs(t)}function mathSign(t){return Math.sign(t)}function deltaAbs(t,e){return mathAbs(t-e)}function factorAbs(t,e){if(0===t||0===e)return 0;if(mathAbs(t)<=mathAbs(e))return 0;const i=deltaAbs(mathAbs(t),mathAbs(e));return mathAbs(i/t)}function roundToTwoDecimals(t){return Math.round(100*t)/100}function arrayKeys(t){return objectKeys(t).map(Number)}function arrayLast(t){return t[arrayLastIndex(t)]}function arrayLastIndex(t){return Math.max(0,t.length-1)}function arrayIsLastIndex(t,e){return e===arrayLastIndex(t)}function arrayFromNumber(t,e=0){return Array.from(Array(t),(t,i)=>e+i)}function objectKeys(t){return Object.keys(t)}function objectsMergeDeep(t,e){return[t,e].reduce((t,e)=>(objectKeys(e).forEach(i=>{const a=t[i],r=e[i],n=isObject(a)&&isObject(r);t[i]=n?objectsMergeDeep(a,r):r}),t),{})}function isMouseEvent(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function Alignment(t,e){const i={start:function(){return 0},center:function(t){return a(t)/2},end:a};function a(t){return e-t}return{measure:function(a,r){return isString(t)?i[t](a):t(e,a,r)}}}function EventStore(){let t=[];const e={add:function(i,a,r,n={passive:!0}){let o;if("addEventListener"in i)i.addEventListener(a,r,n),o=()=>i.removeEventListener(a,r,n);else{const t=i;t.addListener(r),o=()=>t.removeListener(r)}return t.push(o),e},clear:function(){t=t.filter(t=>t())}};return e}function Animations(t,e,i,a){const r=EventStore(),n=1e3/60;let o=null,s=0,l=0;function h(t){if(!l)return;o||(o=t,i(),i());const r=t-o;for(o=t,s+=r;s>=n;)i(),s-=n;a(s/n),l&&(l=e.requestAnimationFrame(h))}function p(){e.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){r.add(t,"visibilitychange",()=>{t.hidden&&(o=null,s=0)})},destroy:function(){p(),r.clear()},start:function(){l||(l=e.requestAnimationFrame(h))},stop:p,update:i,render:a}}function Axis(t,e){const i="rtl"===e,a="y"===t,r=!a&&i?-1:1;return{scroll:a?"y":"x",cross:a?"x":"y",startEdge:a?"top":i?"right":"left",endEdge:a?"bottom":i?"left":"right",measureSize:function(t){const{height:e,width:i}=t;return a?e:i},direction:function(t){return t*r}}}function Limit(t=0,e=0){const i=mathAbs(t-e);function a(e){return e<t}function r(t){return t>e}function n(t){return a(t)||r(t)}return{length:i,max:e,min:t,constrain:function(i){return n(i)?a(i)?t:e:i},reachedAny:n,reachedMax:r,reachedMin:a,removeOffset:function(t){return i?t-i*Math.ceil((t-e)/i):t}}}function Counter(t,e,i){const{constrain:a}=Limit(0,t),r=t+1;let n=o(e);function o(t){return i?mathAbs((r+t)%r):a(t)}function s(){return n}function l(){return Counter(t,s(),i)}const h={get:s,set:function(t){return n=o(t),h},add:function(t){return l().set(s()+t)},clone:l};return h}function DragHandler(t,e,i,a,r,n,o,s,l,h,p,u,c,d,f,m,y,g,b){const{cross:v,direction:_}=t,x=["INPUT","SELECT","TEXTAREA"],k={passive:!1},S=EventStore(),w=EventStore(),E=Limit(50,225).constrain(d.measure(20)),P={mouse:300,touch:400},C={mouse:500,touch:600},T=f?43:25;let A=!1,F=0,D=0,M=!1,I=!1,B=!1,R=!1;function L(t){if(!isMouseEvent(t,a)&&t.touches.length>=2)return z(t);const e=n.readPoint(t),i=n.readPoint(t,v),o=deltaAbs(e,F),l=deltaAbs(i,D);if(!I&&!R){if(!t.cancelable)return z(t);if(I=o>l,!I)return z(t)}const p=n.pointerMove(t);o>m&&(B=!0),h.useFriction(.3).useDuration(.75),s.start(),r.add(_(p)),t.preventDefault()}function z(t){const e=p.byDistance(0,!1).index!==u.get(),i=n.pointerUp(t)*(f?C:P)[R?"mouse":"touch"],a=function(t,e){const i=u.add(-1*mathSign(t)),a=p.byDistance(t,!f).distance;return f||mathAbs(t)<E?a:y&&e?.5*a:p.byIndex(i.get(),0).distance}(_(i),e),r=factorAbs(i,a),o=T-10*r,s=g+r/50;I=!1,M=!1,w.clear(),h.useDuration(o).useFriction(s),l.distance(a,!f),R=!1,c.emit("pointerUp")}function V(t){B&&(t.stopPropagation(),t.preventDefault(),B=!1)}return{init:function(t){if(!b)return;function s(s){(isBoolean(b)||b(t,s))&&function(t){const s=isMouseEvent(t,a);if(R=s,B=f&&s&&!t.buttons&&A,A=deltaAbs(r.get(),o.get())>=2,s&&0!==t.button)return;if(function(t){const e=t.nodeName||"";return x.includes(e)}(t.target))return;M=!0,n.pointerDown(t),h.useFriction(0).useDuration(0),r.set(o),function(){const t=R?i:e;w.add(t,"touchmove",L,k).add(t,"touchend",z).add(t,"mousemove",L,k).add(t,"mouseup",z)}(),F=n.readPoint(t),D=n.readPoint(t,v),c.emit("pointerDown")}(s)}const l=e;S.add(l,"dragstart",t=>t.preventDefault(),k).add(l,"touchmove",()=>{},k).add(l,"touchend",()=>{}).add(l,"touchstart",s).add(l,"mousedown",s).add(l,"touchcancel",z).add(l,"contextmenu",z).add(l,"click",V,!0)},destroy:function(){S.clear(),w.clear()},pointerDown:function(){return M}}}function DragTracker(t,e){let i,a;function r(t){return t.timeStamp}function n(i,a){const r="client"+("x"===(a||t.scroll)?"X":"Y");return(isMouseEvent(i,e)?i:i.touches[0])[r]}return{pointerDown:function(t){return i=t,a=t,n(t)},pointerMove:function(t){const e=n(t)-n(a),o=r(t)-r(i)>170;return a=t,o&&(i=t),e},pointerUp:function(t){if(!i||!a)return 0;const e=n(a)-n(i),o=r(t)-r(i),s=r(t)-r(a)>170,l=e/o;return o&&!s&&mathAbs(l)>.1?l:0},readPoint:n}}function NodeRects(){return{measure:function(t){const{offsetTop:e,offsetLeft:i,offsetWidth:a,offsetHeight:r}=t;return{top:e,right:i+a,bottom:e+r,left:i,width:a,height:r}}}}function PercentOfView(t){return{measure:function(e){return t*(e/100)}}}function ResizeHandler(t,e,i,a,r,n,o){const s=[t].concat(a);let l,h,p=[],u=!1;function c(t){return r.measureSize(o.measure(t))}return{init:function(r){n&&(h=c(t),p=a.map(c),l=new ResizeObserver(i=>{(isBoolean(n)||n(r,i))&&function(i){for(const n of i){if(u)return;const i=n.target===t,o=a.indexOf(n.target),s=i?h:p[o];if(mathAbs(c(i?t:a[o])-s)>=.5){r.reInit(),e.emit("resize");break}}}(i)}),i.requestAnimationFrame(()=>{s.forEach(t=>l.observe(t))}))},destroy:function(){u=!0,l&&l.disconnect()}}}function ScrollBody(t,e,i,a,r,n){let o=0,s=0,l=r,h=n,p=t.get(),u=0;function c(t){return l=t,f}function d(t){return h=t,f}const f={direction:function(){return s},duration:function(){return l},velocity:function(){return o},seek:function(){const e=a.get()-t.get();let r=0;return!l?(o=0,i.set(a),t.set(a),r=e):(i.set(t),o+=e/l,o*=h,p+=o,t.add(o),r=p-u),s=mathSign(r),u=p,f},settled:function(){return mathAbs(a.get()-e.get())<.001},useBaseFriction:function(){return d(n)},useBaseDuration:function(){return c(r)},useFriction:d,useDuration:c};return f}function ScrollBounds(t,e,i,a,r){const n=r.measure(10),o=r.measure(50),s=Limit(.1,.99);let l=!1;function h(){return!l&&(!!t.reachedAny(i.get())&&!!t.reachedAny(e.get()))}return{shouldConstrain:h,constrain:function(r){if(!h())return;const l=t.reachedMin(e.get())?"min":"max",p=mathAbs(t[l]-e.get()),u=i.get()-e.get(),c=s.constrain(p/o);i.subtract(u*c),!r&&mathAbs(u)<n&&(i.set(t.constrain(i.get())),a.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}function ScrollContain(t,e,i,a,r){const n=Limit(-e+t,0),o=i.map((t,e)=>{const{min:a,max:r}=n,o=n.constrain(t),s=!e,h=arrayIsLastIndex(i,e);return s?r:h||l(a,o)?a:l(r,o)?r:o}).map(t=>parseFloat(t.toFixed(3))),s=function(){const t=o[0],e=arrayLast(o),i=o.lastIndexOf(t),a=o.indexOf(e)+1;return Limit(i,a)}();function l(t,e){return deltaAbs(t,e)<=1}return{snapsContained:function(){if(e<=t+r)return[n.max];if("keepSnaps"===a)return o;const{min:i,max:l}=s;return o.slice(i,l)}(),scrollContainLimit:s}}function ScrollLimit(t,e,i){const a=e[0];return{limit:Limit(i?a-t:arrayLast(e),a)}}function ScrollLooper(t,e,i,a){const r=e.min+.1,n=e.max+.1,{reachedMin:o,reachedMax:s}=Limit(r,n);return{loop:function(e){if(!function(t){return 1===t?s(i.get()):-1===t&&o(i.get())}(e))return;const r=t*(-1*e);a.forEach(t=>t.add(r))}}}function ScrollProgress(t){const{max:e,length:i}=t;return{get:function(t){return i?(t-e)/-i:0}}}function ScrollSnaps(t,e,i,a,r){const{startEdge:n,endEdge:o}=t,{groupSlides:s}=r,l=s(a).map(t=>arrayLast(t)[o]-t[0][n]).map(mathAbs).map(e.measure),h=a.map(t=>i[n]-t[n]).map(t=>-mathAbs(t)),p=s(h).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:h,snapsAligned:p}}function SlideRegistry(t,e,i,a,r,n){const{groupSlides:o}=r,{min:s,max:l}=a;return{slideRegistry:function(){const a=o(n),r=!t||"keepSnaps"===e;return 1===i.length?[n]:r?a:a.slice(s,l).map((t,e,i)=>{const a=!e,r=arrayIsLastIndex(i,e);if(a){return arrayFromNumber(arrayLast(i[0])+1)}if(r){return arrayFromNumber(arrayLastIndex(n)-arrayLast(i)[0]+1,arrayLast(i)[0])}return t})}()}}function ScrollTarget(t,e,i,a,r){const{reachedAny:n,removeOffset:o,constrain:s}=a;function l(t){return t.concat().sort((t,e)=>mathAbs(t)-mathAbs(e))[0]}function h(e,a){const r=[e,e+i,e-i];if(!t)return e;if(!a)return l(r);const n=r.filter(t=>mathSign(t)===a);return n.length?l(n):arrayLast(r)-i}return{byDistance:function(i,a){const l=r.get()+i,{index:p,distance:u}=function(i){const a=t?o(i):s(i),r=e.map((t,e)=>({diff:h(t-a,0),index:e})).sort((t,e)=>mathAbs(t.diff)-mathAbs(e.diff)),{index:n}=r[0];return{index:n,distance:a}}(l),c=!t&&n(l);return!a||c?{index:p,distance:i}:{index:p,distance:i+h(e[p]-u,0)}},byIndex:function(t,i){return{index:t,distance:h(e[t]-r.get(),i)}},shortcut:h}}function ScrollTo(t,e,i,a,r,n,o){function s(r){const s=r.distance,l=r.index!==e.get();n.add(s),s&&(a.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(i.set(e.get()),e.set(r.index),o.emit("select"))}return{distance:function(t,e){s(r.byDistance(t,e))},index:function(t,i){const a=e.clone().set(t);s(r.byIndex(a.get(),i))}}}function SlideFocus(t,e,i,a,r,n,o,s){const l={passive:!0,capture:!0};let h=0;function p(t){"Tab"===t.code&&(h=(new Date).getTime())}return{init:function(u){s&&(n.add(document,"keydown",p,!1),e.forEach((e,p)=>{n.add(e,"focus",e=>{(isBoolean(s)||s(u,e))&&function(e){if((new Date).getTime()-h>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;const n=i.findIndex(t=>t.includes(e));isNumber(n)&&(r.useDuration(0),a.index(n,0),o.emit("slideFocus"))}(p)},l)}))}}}function Vector1D(t){let e=t;function i(t){return isNumber(t)?t:t.get()}return{get:function(){return e},set:function(t){e=i(t)},add:function(t){e+=i(t)},subtract:function(t){e-=i(t)}}}function Translate(t,e){const i="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},a=e.style;let r=null,n=!1;return{clear:function(){n||(a.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(n)return;const o=roundToTwoDecimals(t.direction(e));o!==r&&(a.transform=i(o),r=o)},toggleActive:function(t){n=!t}}}function SlideLooper(t,e,i,a,r,n,o,s,l){const h=arrayKeys(r),p=arrayKeys(r).reverse(),u=function(){const t=o[0];return f(d(p,t),i,!1)}().concat(function(){const t=e-o[0]-1;return f(d(h,t),-i,!0)}());function c(t,e){return t.reduce((t,e)=>t-r[e],e)}function d(t,e){return t.reduce((t,i)=>c(t,e)>0?t.concat([i]):t,[])}function f(r,o,h){const p=function(t){return n.map((i,r)=>({start:i-a[r]+.5+t,end:i+e-.5+t}))}(o);return r.map(e=>{const a=h?0:-i,r=h?i:0,n=h?"end":"start",o=p[e][n];return{index:e,loopPoint:o,slideLocation:Vector1D(-1),translate:Translate(t,l[e]),target:()=>s.get()>o?a:r}})}return{canLoop:function(){return u.every(({index:t})=>c(h.filter(e=>e!==t),e)<=.1)},clear:function(){u.forEach(t=>t.translate.clear())},loop:function(){u.forEach(t=>{const{target:e,translate:i,slideLocation:a}=t,r=e();r!==a.get()&&(i.to(r),a.set(r))})},loopPoints:u}}function SlidesHandler(t,e,i){let a,r=!1;return{init:function(n){i&&(a=new MutationObserver(t=>{r||(isBoolean(i)||i(n,t))&&function(t){for(const i of t)if("childList"===i.type){n.reInit(),e.emit("slidesChanged");break}}(t)}),a.observe(t,{childList:!0}))},destroy:function(){a&&a.disconnect(),r=!0}}}function SlidesInView(t,e,i,a){const r={};let n,o=null,s=null,l=!1;return{init:function(){n=new IntersectionObserver(t=>{l||(t.forEach(t=>{const i=e.indexOf(t.target);r[i]=t}),o=null,s=null,i.emit("slidesInView"))},{root:t.parentElement,threshold:a}),e.forEach(t=>n.observe(t))},destroy:function(){n&&n.disconnect(),l=!0},get:function(t=!0){if(t&&o)return o;if(!t&&s)return s;const e=function(t){return objectKeys(r).reduce((e,i)=>{const a=parseInt(i),{isIntersecting:n}=r[a];return(t&&n||!t&&!n)&&e.push(a),e},[])}(t);return t&&(o=e),t||(s=e),e}}}function SlideSizes(t,e,i,a,r,n){const{measureSize:o,startEdge:s,endEdge:l}=t,h=i[0]&&r,p=function(){if(!h)return 0;const t=i[0];return mathAbs(e[s]-t[s])}(),u=function(){if(!h)return 0;const t=n.getComputedStyle(arrayLast(a));return parseFloat(t.getPropertyValue(`margin-${l}`))}(),c=i.map(o),d=i.map((t,e,i)=>{const a=!e,r=arrayIsLastIndex(i,e);return a?c[e]+p:r?c[e]+u:i[e+1][s]-t[s]}).map(mathAbs);return{slideSizes:c,slideSizesWithGaps:d,startGap:p,endGap:u}}function SlidesToScroll(t,e,i,a,r,n,o,s,l){const{startEdge:h,endEdge:p,direction:u}=t,c=isNumber(i);return{groupSlides:function(t){return c?function(t,e){return arrayKeys(t).filter(t=>t%e===0).map(i=>t.slice(i,i+e))}(t,i):function(t){return t.length?arrayKeys(t).reduce((i,c,d)=>{const f=arrayLast(i)||0,m=0===f,y=c===arrayLastIndex(t),g=r[h]-n[f][h],b=r[h]-n[c][p],v=!a&&m?u(o):0,_=mathAbs(b-(!a&&y?u(s):0)-(g+v));return d&&_>e+l&&i.push(c),y&&i.push(t.length),i},[]).map((e,i,a)=>{const r=Math.max(a[i-1]||0);return t.slice(r,e)}):[]}(t)}}}function Engine(t,e,i,a,r,n,o){const{align:s,axis:l,direction:h,startIndex:p,loop:u,duration:c,dragFree:d,dragThreshold:f,inViewThreshold:m,slidesToScroll:y,skipSnaps:g,containScroll:b,watchResize:v,watchSlides:_,watchDrag:x,watchFocus:k}=n,S=NodeRects(),w=S.measure(e),E=i.map(S.measure),P=Axis(l,h),C=P.measureSize(w),T=PercentOfView(C),A=Alignment(s,C),F=!u&&!!b,D=u||!!b,{slideSizes:M,slideSizesWithGaps:I,startGap:B,endGap:R}=SlideSizes(P,w,E,i,D,r),L=SlidesToScroll(P,C,y,u,w,E,B,R,2),{snaps:z,snapsAligned:V}=ScrollSnaps(P,A,w,E,L),O=-arrayLast(z)+arrayLast(I),{snapsContained:N,scrollContainLimit:j}=ScrollContain(C,O,V,b,2),G=F?N:V,{limit:H}=ScrollLimit(O,G,u),W=Counter(arrayLastIndex(G),p,u),q=W.clone(),$=arrayKeys(i),K=Animations(a,r,()=>(({dragHandler:t,scrollBody:e,scrollBounds:i,options:{loop:a}})=>{a||i.constrain(t.pointerDown()),e.seek()})(st),t=>(({scrollBody:t,translate:e,location:i,offsetLocation:a,previousLocation:r,scrollLooper:n,slideLooper:o,dragHandler:s,animation:l,eventHandler:h,scrollBounds:p,options:{loop:u}},c)=>{const d=t.settled(),f=!p.shouldConstrain(),m=u?d:d&&f,y=m&&!s.pointerDown();y&&l.stop();const g=i.get()*c+r.get()*(1-c);a.set(g),u&&(n.loop(t.direction()),o.loop()),e.to(a.get()),y&&h.emit("settle"),m||h.emit("scroll")})(st,t)),X=G[W.get()],J=Vector1D(X),Y=Vector1D(X),U=Vector1D(X),Z=Vector1D(X),Q=ScrollBody(J,U,Y,Z,c,.68),tt=ScrollTarget(u,G,O,H,Z),et=ScrollTo(K,W,q,Q,tt,Z,o),it=ScrollProgress(H),at=EventStore(),rt=SlidesInView(e,i,o,m),{slideRegistry:nt}=SlideRegistry(F,b,G,j,L,$),ot=SlideFocus(t,i,nt,et,Q,at,o,k),st={ownerDocument:a,ownerWindow:r,eventHandler:o,containerRect:w,slideRects:E,animation:K,axis:P,dragHandler:DragHandler(P,t,a,r,Z,DragTracker(P,r),J,K,et,Q,tt,W,o,T,d,f,g,.68,x),eventStore:at,percentOfView:T,index:W,indexPrevious:q,limit:H,location:J,offsetLocation:U,previousLocation:Y,options:n,resizeHandler:ResizeHandler(e,o,r,i,P,v,S),scrollBody:Q,scrollBounds:ScrollBounds(H,U,Z,Q,T),scrollLooper:ScrollLooper(O,H,U,[J,U,Y,Z]),scrollProgress:it,scrollSnapList:G.map(it.get),scrollSnaps:G,scrollTarget:tt,scrollTo:et,slideLooper:SlideLooper(P,C,O,M,I,z,G,U,i),slideFocus:ot,slidesHandler:SlidesHandler(e,o,_),slidesInView:rt,slideIndexes:$,slideRegistry:nt,slidesToScroll:L,target:Z,translate:Translate(P,e)};return st}function EventHandler(){let t,e={};function i(t){return e[t]||[]}const a={init:function(e){t=e},emit:function(e){return i(e).forEach(i=>i(t,e)),a},off:function(t,r){return e[t]=i(t).filter(t=>t!==r),a},on:function(t,r){return e[t]=i(t).concat([r]),a},clear:function(){e={}}};return a}const defaultOptions={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function OptionsHandler(t){function e(t,e){return objectsMergeDeep(t,e||{})}const i={mergeOptions:e,optionsAtMedia:function(i){const a=i.breakpoints||{},r=objectKeys(a).filter(e=>t.matchMedia(e).matches).map(t=>a[t]).reduce((t,i)=>e(t,i),{});return e(i,r)},optionsMediaQueries:function(e){return e.map(t=>objectKeys(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}};return i}function PluginsHandler(t){let e=[];return{init:function(i,a){return e=a.filter(({options:e})=>!1!==t.optionsAtMedia(e).active),e.forEach(e=>e.init(i,t)),a.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){e=e.filter(t=>t.destroy())}}}function EmblaCarousel(t,e,i){const a=t.ownerDocument,r=a.defaultView,n=OptionsHandler(r),o=PluginsHandler(n),s=EventStore(),l=EventHandler(),{mergeOptions:h,optionsAtMedia:p,optionsMediaQueries:u}=n,{on:c,off:d,emit:f}=l,m=P;let y,g,b,v,_=!1,x=h(defaultOptions,EmblaCarousel.globalOptions),k=h(x),S=[];function w(e){const i=Engine(t,b,v,a,r,e,l);if(e.loop&&!i.slideLooper.canLoop()){return w(Object.assign({},e,{loop:!1}))}return i}function E(e,i){_||(x=h(x,e),k=p(x),S=i||S,function(){const{container:e,slides:i}=k,a=isString(e)?t.querySelector(e):e;b=a||t.children[0];const r=isString(i)?b.querySelectorAll(i):i;v=[].slice.call(r||b.children)}(),y=w(k),u([x,...S.map(({options:t})=>t)]).forEach(t=>s.add(t,"change",P)),k.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(F),y.eventHandler.init(F),y.resizeHandler.init(F),y.slidesHandler.init(F),y.options.loop&&y.slideLooper.loop(),b.offsetParent&&v.length&&y.dragHandler.init(F),g=o.init(F,S)))}function P(t,e){const i=A();C(),E(h({startIndex:i},t),e),l.emit("reInit")}function C(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),o.destroy(),s.clear()}function T(t,e,i){k.active&&!_&&(y.scrollBody.useBaseFriction().useDuration(!0===e?0:k.duration),y.scrollTo.index(t,i||0))}function A(){return y.index.get()}const F={canScrollNext:function(){return y.index.add(1).get()!==A()},canScrollPrev:function(){return y.index.add(-1).get()!==A()},containerNode:function(){return b},internalEngine:function(){return y},destroy:function(){_||(_=!0,s.clear(),C(),l.emit("destroy"),l.clear())},off:d,on:c,emit:f,plugins:function(){return g},previousScrollSnap:function(){return y.indexPrevious.get()},reInit:m,rootNode:function(){return t},scrollNext:function(t){T(y.index.add(1).get(),t,-1)},scrollPrev:function(t){T(y.index.add(-1).get(),t,1)},scrollProgress:function(){return y.scrollProgress.get(y.offsetLocation.get())},scrollSnapList:function(){return y.scrollSnapList},scrollTo:T,selectedScrollSnap:A,slideNodes:function(){return v},slidesInView:function(){return y.slidesInView.get()},slidesNotInView:function(){return y.slidesInView.get(!1)}};return E(e,i),setTimeout(()=>l.emit("init"),0),F}function useEmblaCarousel(t={},e=[]){const i=useRef(t),a=useRef(e),[r,n]=useState(),[o,s]=useState(),l=useCallback(()=>{r&&r.reInit(i.current,a.current)},[r]);return useEffect(()=>{areOptionsEqual(i.current,t)||(i.current=t,l())},[t,l]),useEffect(()=>{arePluginsEqual(a.current,e)||(a.current=e,l())},[e,l]),useEffect(()=>{if(canUseDOM()&&o){EmblaCarousel.globalOptions=useEmblaCarousel.globalOptions;const t=EmblaCarousel(o,i.current,a.current);return n(t),()=>t.destroy()}n(void 0)},[o,n]),[s,r]}EmblaCarousel.globalOptions=void 0,useEmblaCarousel.globalOptions=void 0;const carouselContext=createContext(void 0);function CarouselProvider({node:t}){t=useNode(t);const[e,i]=useEmblaCarousel(t.attributes);return jsx(carouselContext.Provider,{value:i,children:jsx("div",{className:"carousel-provider",children:jsx("div",{className:"embla",children:jsx("div",{className:"embla__viewport",ref:e,children:t.children&&jsx(RenderNode$1,{node:t.children})})})})})}var CarouselProvider$1=React.memo(CarouselProvider);function CarouselButtons({node:t}){t=useNode(t);const e=useContext(carouselContext),i=t.attributes?.buttonType||["previous_button","next_button"];return jsxs("div",{className:"embla__buttons",children:[i.includes("previous_button")&&jsx("button",{onClick:()=>e?.scrollPrev(),className:"embla__button embla__button--prev",children:"Previous"}),i.includes("next_button")&&jsx("button",{onClick:()=>e?.scrollNext(),className:"embla__button embla__button--next",children:"Next"}),i.includes("skip_button")&&jsx("button",{onClick:()=>e?.scrollTo(t.attributes?.skipNumber),className:"embla__button embla__button--skip",children:"Skip"})]})}var CarouselButtons$1=React.memo(CarouselButtons);function CarouselDots({node:t}){t=useNode(t);const e=t.attributes?.dotType||"normal_dot",i=useContext(carouselContext),[a,r]=useState(0),[n,o]=useState([]);return useEffect(()=>{i&&(o(i.scrollSnapList()),r(i.selectedScrollSnap()),i.on("select",()=>{r(i.selectedScrollSnap())}))},[i]),jsx("div",{className:`embla__dots embla__dots--${e}`,children:n.map((t,e)=>jsx("button",{onClick:()=>i?.scrollTo(t),className:"embla__dot "+(a===e?"embla__dot--selected":""),children:e===a?"●":"○"},e))})}var CarouselDots$1=React.memo(CarouselDots);function CarouselItem({node:t}){return t=useNode(t),jsx("div",{className:"embla__slide",...t.attributes,children:t.children&&jsx(RenderNode$1,{node:t.children})})}var CarouselItem$1=React.memo(CarouselItem);function extractImageStyle(t){const e=t.attributes,i={};return e?(void 0!==e.width&&(i.width=e.width),void 0!==e.height&&(i.height=e.height),void 0!==e.borderRadius&&(i.borderRadius=e.borderRadius),"cover"===e.resizeMode?i.objectFit="cover":"contain"===e.resizeMode?i.objectFit="contain":"stretch"===e.resizeMode?i.objectFit="fill":"center"===e.resizeMode&&(i.objectFit="none"),i):i}function Image$1({node:t}){return t=useNode(t),jsx("img",{src:t.attributes?.src,width:t.attributes?.width,height:t.attributes?.height,style:extractImageStyle(t),alt:""},t.key)}var Image$2=React.memo(Image$1);function Onboard({node:t}){return t=useNode(t),jsx(Carousel$1,{node:{...t,type:"carousel"}})}var Onboard$1=React.memo(Onboard);function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var withSelector={exports:{}},withSelector_production={},shim={exports:{}},useSyncExternalStoreShim_production={},hasRequiredUseSyncExternalStoreShim_production;function requireUseSyncExternalStoreShim_production(){if(hasRequiredUseSyncExternalStoreShim_production)return useSyncExternalStoreShim_production;hasRequiredUseSyncExternalStoreShim_production=1;var t=React;var e="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=t.useState,a=t.useEffect,r=t.useLayoutEffect,n=t.useDebugValue;function o(t){var i=t.getSnapshot;t=t.value;try{var a=i();return!e(t,a)}catch(t){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),l=i({inst:{value:s,getSnapshot:e}}),h=l[0].inst,p=l[1];return r(function(){h.value=s,h.getSnapshot=e,o(h)&&p({inst:h})},[t,s,e]),a(function(){return o(h)&&p({inst:h}),t(function(){o(h)&&p({inst:h})})},[t]),n(s),s};return useSyncExternalStoreShim_production.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:s,useSyncExternalStoreShim_production}var useSyncExternalStoreShim_development={},hasRequiredUseSyncExternalStoreShim_development,hasRequiredShim,hasRequiredWithSelector_production;
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* use-sync-external-store-shim.development.js
|
|
@@ -7,7 +7,7 @@ import{jsx as t,jsxs as e,Fragment as o}from"react/jsx-runtime";import n,{useRef
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/function
|
|
10
|
+
*/function requireUseSyncExternalStoreShim_development(){return hasRequiredUseSyncExternalStoreShim_development||(hasRequiredUseSyncExternalStoreShim_development=1,"production"!==process.env.NODE_ENV&&function(){function t(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!i(t,a)}catch(t){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=React,i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=e.useState,r=e.useEffect,n=e.useLayoutEffect,o=e.useDebugValue,s=!1,l=!1,h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(h,p){s||void 0===e.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var u=p();if(!l){var c=p();i(u,c)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var d=(c=a({inst:{value:u,getSnapshot:p}}))[0].inst,f=c[1];return n(function(){d.value=u,d.getSnapshot=p,t(d)&&f({inst:d})},[h,u,p]),r(function(){return t(d)&&f({inst:d}),h(function(){t(d)&&f({inst:d})})},[h]),o(u),u};useSyncExternalStoreShim_development.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:h,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),useSyncExternalStoreShim_development}function requireShim(){return hasRequiredShim||(hasRequiredShim=1,"production"===process.env.NODE_ENV?shim.exports=requireUseSyncExternalStoreShim_production():shim.exports=requireUseSyncExternalStoreShim_development()),shim.exports}
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* use-sync-external-store-shim/with-selector.production.js
|
|
@@ -16,7 +16,7 @@ import{jsx as t,jsxs as e,Fragment as o}from"react/jsx-runtime";import n,{useRef
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var
|
|
19
|
+
*/function requireWithSelector_production(){if(hasRequiredWithSelector_production)return withSelector_production;hasRequiredWithSelector_production=1;var t=React,e=requireShim();var i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=e.useSyncExternalStore,r=t.useRef,n=t.useEffect,o=t.useMemo,s=t.useDebugValue;return withSelector_production.useSyncExternalStoreWithSelector=function(t,e,l,h,p){var u=r(null);if(null===u.current){var c={hasValue:!1,value:null};u.current=c}else c=u.current;u=o(function(){function t(t){if(!n){if(n=!0,a=t,t=h(t),void 0!==p&&c.hasValue){var e=c.value;if(p(e,t))return r=e}return r=t}if(e=r,i(a,t))return e;var o=h(t);return void 0!==p&&p(e,o)?(a=t,e):(a=t,r=o)}var a,r,n=!1,o=void 0===l?null:l;return[function(){return t(e())},null===o?void 0:function(){return t(o())}]},[e,l,h,p]);var d=a(t,u[0],u[1]);return n(function(){c.hasValue=!0,c.value=d},[d]),s(d),d},withSelector_production}var withSelector_development={},hasRequiredWithSelector_development,hasRequiredWithSelector;
|
|
20
20
|
/**
|
|
21
21
|
* @license React
|
|
22
22
|
* use-sync-external-store-shim/with-selector.development.js
|
|
@@ -25,4 +25,6 @@ import{jsx as t,jsxs as e,Fragment as o}from"react/jsx-runtime";import n,{useRef
|
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var zt=(St||(St=1,"production"===process.env.NODE_ENV?bt.exports=function(){if(vt)return ht;vt=1;var t=n,e=xt(),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=e.useSyncExternalStore,a=t.useRef,r=t.useEffect,s=t.useMemo,l=t.useDebugValue;return ht.useSyncExternalStoreWithSelector=function(t,e,n,u,c){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s(function(){function t(t){if(!r){if(r=!0,i=t,t=u(t),void 0!==c&&p.hasValue){var e=p.value;if(c(e,t))return a=e}return a=t}if(e=a,o(i,t))return e;var n=u(t);return void 0!==c&&c(e,n)?(i=t,e):(i=t,a=n)}var i,a,r=!1,s=void 0===n?null:n;return[function(){return t(e())},null===s?void 0:function(){return t(s())}]},[e,n,u,c]);var y=i(t,d[0],d[1]);return r(function(){p.hasValue=!0,p.value=y},[y]),l(y),y},ht}():bt.exports=(Ft||(Ft=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=n,e=xt(),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=e.useSyncExternalStore,a=t.useRef,r=t.useEffect,s=t.useMemo,l=t.useDebugValue;Tt.useSyncExternalStoreWithSelector=function(t,e,n,u,c){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s(function(){function t(t){if(!r){if(r=!0,i=t,t=u(t),void 0!==c&&p.hasValue){var e=p.value;if(c(e,t))return a=e}return a=t}if(e=a,o(i,t))return e;var n=u(t);return void 0!==c&&c(e,n)?(i=t,e):(i=t,a=n)}var i,a,r=!1,s=void 0===n?null:n;return[function(){return t(e())},null===s?void 0:function(){return t(s())}]},[e,n,u,c]);var y=i(t,d[0],d[1]);return r(function(){p.hasValue=!0,p.value=y},[y]),l(y),y},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Tt)),bt.exports),At=yt(zt);const Bt=t=>{let e;const o=new Set,n=(t,n)=>{const i="function"==typeof t?t(e):t;if(!Object.is(i,e)){const t=e;e=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},e,i),o.forEach(o=>o(e,t))}},i=()=>e,a={setState:n,getState:i,getInitialState:()=>r,subscribe:t=>(o.add(t),()=>o.delete(t))},r=e=t(n,i,a);return a},{useSyncExternalStoreWithSelector:Ct}=At,Ot=t=>t;const Dt=(t,e)=>{const o=(t=>t?Bt(t):Bt)(t),i=(t,i=e)=>function(t,e=Ot,o){const i=Ct(t.subscribe,t.getState,t.getInitialState,e,o);return n.useDebugValue(i),i}(o,t,i);return Object.assign(i,o),i},Lt=t=>Symbol.iterator in t,Et=t=>"entries"in t,Nt=(t,e)=>{const o=t instanceof Map?t:new Map(t.entries()),n=e instanceof Map?e:new Map(e.entries());if(o.size!==n.size)return!1;for(const[t,e]of o)if(!n.has(t)||!Object.is(e,n.get(t)))return!1;return!0};var It=[{name:"iphone 12",platform:"ios",width:390,height:844,type:"phone",importance:13,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 12 pro",platform:"ios",width:390,height:844,type:"phone",importance:19,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13",platform:"ios",width:390,height:844,type:"phone",importance:4,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 pro",platform:"ios",width:390,height:844,type:"phone",importance:8,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14",platform:"ios",width:390,height:844,type:"phone",importance:15,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 pro",platform:"ios",width:393,height:852,type:"phone",importance:15,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15",platform:"ios",width:393,height:852,type:"phone",importance:6,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 pro",platform:"ios",width:393,height:852,type:"phone",importance:18,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"pixel 3 xl",platform:"android",width:412,height:847,type:"phone",importance:8,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 4 xl",platform:"android",width:412,height:869,type:"phone",importance:14,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 6",platform:"android",width:412,height:915,type:"phone",importance:10,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 6 pro",platform:"android",width:412,height:892,type:"phone",importance:4,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 7",platform:"android",width:412,height:915,type:"phone",importance:11,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 7 pro",platform:"android",width:412,height:892,type:"phone",importance:5,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 8",platform:"android",width:412,height:915,type:"phone",importance:12,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 8 pro",platform:"android",width:412,height:919,type:"phone",importance:16,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s8",platform:"android",width:360,height:740,type:"phone",importance:5,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s8+",platform:"android",width:360,height:740,type:"phone",importance:1,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s9",platform:"android",width:360,height:740,type:"phone",importance:4,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s9+",platform:"android",width:360,height:740,type:"phone",importance:4,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s10",platform:"android",width:360,height:760,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s10+",platform:"android",width:412,height:869,type:"phone",importance:15,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20",platform:"android",width:360,height:800,type:"phone",importance:13,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20+",platform:"android",width:412,height:915,type:"phone",importance:16,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20 ultra",platform:"android",width:412,height:915,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21",platform:"android",width:360,height:800,type:"phone",importance:13,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21+",platform:"android",width:412,height:915,type:"phone",importance:12,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21 ultra",platform:"android",width:412,height:915,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22",platform:"android",width:360,height:780,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22+",platform:"android",width:412,height:915,type:"phone",importance:8,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22 ultra",platform:"android",width:412,height:915,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23",platform:"android",width:360,height:780,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23+",platform:"android",width:412,height:915,type:"phone",importance:1,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23 ultra",platform:"android",width:412,height:915,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 8",platform:"android",width:412,height:915,type:"phone",importance:4,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 8 pro",platform:"android",width:412,height:915,type:"phone",importance:20,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 9",platform:"android",width:412,height:915,type:"phone",importance:3,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 9 pro",platform:"android",width:412,height:915,type:"phone",importance:1,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"xiaomi mi 11",platform:"android",width:412,height:915,type:"phone",importance:9,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"huawei p30",platform:"android",width:360,height:750,type:"phone",importance:10,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"huawei p30 pro",platform:"android",width:360,height:780,type:"phone",importance:14,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"oppo find x3 pro",platform:"android",width:412,height:915,type:"phone",importance:7,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"iphone 6 plus",platform:"ios",width:414,height:736,type:"phone",importance:27,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 6s plus",platform:"ios",width:414,height:736,type:"phone",importance:35,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 7 plus",platform:"ios",width:414,height:736,type:"phone",importance:40,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 8 plus",platform:"ios",width:414,height:736,type:"phone",importance:32,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone xs max",platform:"ios",width:414,height:896,type:"phone",importance:21,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone xr",platform:"ios",width:414,height:896,type:"phone",importance:31,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11",platform:"ios",width:414,height:896,type:"phone",importance:36,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11 pro max",platform:"ios",width:414,height:896,type:"phone",importance:22,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 12 pro max",platform:"ios",width:428,height:926,type:"phone",importance:28,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 pro max",platform:"ios",width:428,height:926,type:"phone",importance:30,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 plus",platform:"ios",width:428,height:926,type:"phone",importance:29,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 pro max",platform:"ios",width:430,height:932,type:"phone",importance:39,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 plus",platform:"ios",width:430,height:932,type:"phone",importance:24,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 pro max",platform:"ios",width:430,height:932,type:"phone",importance:22,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"pixel 2",platform:"android",width:411,height:731,type:"phone",importance:29,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"pixel 2 xl",platform:"android",width:411,height:823,type:"phone",importance:36,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"pixel 3",platform:"android",width:393,height:786,type:"phone",importance:39,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 4",platform:"android",width:411,height:869,type:"phone",importance:24,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 5",platform:"android",width:393,height:851,type:"phone",importance:23,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"xiaomi mi 9",platform:"android",width:393,height:851,type:"phone",importance:39,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"iphone 6",platform:"ios",width:375,height:667,type:"phone",importance:42,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 6s",platform:"ios",width:375,height:667,type:"phone",importance:60,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 7",platform:"ios",width:375,height:667,type:"phone",importance:41,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 8",platform:"ios",width:375,height:667,type:"phone",importance:59,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone x",platform:"ios",width:375,height:812,type:"phone",importance:46,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone xs",platform:"ios",width:375,height:812,type:"phone",importance:56,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11 pro",platform:"ios",width:375,height:812,type:"phone",importance:57,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone se (2nd gen)",platform:"ios",width:375,height:667,type:"phone",importance:56,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone se (3rd gen)",platform:"ios",width:375,height:667,type:"phone",importance:59,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 12 mini",platform:"ios",width:360,height:780,type:"phone",importance:70,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 mini",platform:"ios",width:360,height:780,type:"phone",importance:78,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone (1st gen)",platform:"ios",width:320,height:480,type:"phone",importance:82,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 3g",platform:"ios",width:320,height:480,type:"phone",importance:84,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 3gs",platform:"ios",width:320,height:480,type:"phone",importance:88,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 4",platform:"ios",width:320,height:480,type:"phone",importance:86,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 4s",platform:"ios",width:320,height:480,type:"phone",importance:92,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5",platform:"ios",width:320,height:568,type:"phone",importance:100,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5c",platform:"ios",width:320,height:568,type:"phone",importance:92,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5s",platform:"ios",width:320,height:568,type:"phone",importance:96,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone se (1st gen)",platform:"ios",width:320,height:568,type:"phone",importance:86,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"nexus 7 (2013)",platform:"android",width:600,height:960,type:"tablet",importance:83,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"nexus 9",platform:"android",width:768,height:1024,type:"tablet",importance:90,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"pixel c",platform:"android",width:900,height:1280,type:"tablet",importance:100,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"galaxy tab s6",platform:"android",width:800,height:1280,type:"tablet",importance:97,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab s7",platform:"android",width:800,height:1280,type:"tablet",importance:99,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab s8",platform:"android",width:800,height:1280,type:"tablet",importance:81,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab a 10.1",platform:"android",width:800,height:1280,type:"tablet",importance:94,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"lenovo tab p11",platform:"android",width:800,height:1280,type:"tablet",importance:91,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"fire hd 10",platform:"android",width:800,height:1280,type:"tablet",importance:98,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12}];function Pt(){const t=It.slice();return t.sort((t,e)=>(t.importance??999)-(e.importance??999)),t}function Rt(){return Pt()[0]}const Wt=(jt?Dt(jt,Vt):Dt)(t=>({device:Rt(),localication:null,defaultLanguage:void 0,baseSize:{width:390,height:844},theme:"light",screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827",seperatorColor:"#E5E7EB"},dark:{backgroundColor:"#12131A",color:"#E9EBF9",seperatorColor:"#E5E7EB"}},setBaseSize:e=>t({baseSize:e}),setDevice:e=>t({device:e}),setLocalication:e=>t({localication:e}),setDefaultLanguage:e=>t({defaultLanguage:e}),setTheme:e=>t({theme:e}),setScreenStyle:e=>t({screenStyle:e})}),function(t,e){return!!Object.is(t,e)||"object"==typeof t&&null!==t&&"object"==typeof e&&null!==e&&(Object.getPrototypeOf(t)===Object.getPrototypeOf(e)&&(Lt(t)&&Lt(e)?Et(t)&&Et(e)?Nt(t,e):((t,e)=>{const o=t[Symbol.iterator](),n=e[Symbol.iterator]();let i=o.next(),a=n.next();for(;!i.done&&!a.done;){if(!Object.is(i.value,a.value))return!1;i=o.next(),a=n.next()}return!!i.done&&!!a.done})(t,e):Nt({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})))});var jt,Vt;const Ht=l(void 0);var Mt=n.memo(function({node:e}){e=h(e);const o=Wt(t=>t.device),[n,i]=it(e.attributes),[r,l]=a(0),u=c(()=>{const t=e.children.filter(t=>"Onboard"===t.type)[0];if("Onboard"!==t?.type)throw new Error("OnboardProvider at least has an Onboard child");const o=t.children[r].children.filter(t=>"OnboardButtons"==t?.type);return[...e.children,...o]},[r,e.children]);return s(()=>{i&&(l(i.selectedScrollSnap()),i.on("select",()=>{l(i.selectedScrollSnap())}))},[i]),t(Ht.Provider,{value:{emblaApi:i,selectedIndex:r},children:t("div",{className:"carousel-provider",style:{paddingTop:o?.insets?.[0]+e.attributes?.paddingTop,paddingRight:o?.insets?.[1]+e.attributes?.paddingRight,paddingBottom:o?.insets?.[2]+e.attributes?.paddingBottom,paddingLeft:o?.insets?.[3]+e.attributes?.paddingLeft},children:t("div",{className:"embla",children:t("div",{className:"embla__viewport",ref:n,children:e.children&&t(ue,{node:u})})})})})});var Kt=n.memo(function({node:e}){e=h(e);const{emblaApi:o}=u(Ht)??{},{defaultLanguage:n,localication:i}=Wt(t=>({defaultLanguage:t.defaultLanguage,localication:t.localication})),a=e.attributes?.labelKey??"",r=i?.[n??"en"]?.[a]??a,s=e.attributes?.flex??1,l=e.attributes?.button_text_color??"#FFFFFF",c=e.attributes?.button_background_color??"#0066FF";return t("button",{className:"onboard__button",onClick:()=>{const t=e.attributes?.events||[];for(const e of t)if("Permission"===e.type)alert(`Permission requested: ${e.permission??"unknown"}`);else if("Navigate"===e.type){const t=e?.targetIndex;"number"==typeof t&&o?.scrollTo(t)}},style:{flex:s,color:l,backgroundColor:c,border:"none",borderRadius:20,height:"100%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:r})});var qt=n.memo(function({node:n}){n=h(n);const{screenStyle:i,theme:r}=Wt(t=>({screenStyle:t.screenStyle,theme:t.theme})),l="light"===r?i.light.seperatorColor:i.dark.seperatorColor,c=u(Ht)??{};c.emblaApi;const[d,p]=a(c.selectedIndex??0);s(()=>{"number"==typeof c.selectedIndex&&p(c.selectedIndex)},[c.selectedIndex]);const y=n.attributes?.condition,g=n.attributes?.conditionVariable;if("carousel-index"===y&&"number"==typeof g&&g!==d)return null;const b="column"===n.attributes?.buttons_direction?"column":"row",f=n.attributes?.seperatorColor??l;return e(o,{children:[t("div",{className:"onboard__separator",style:{height:1,backgroundColor:f,width:"100%"}}),t("div",{className:"onboard__buttons",style:{display:"flex",flexDirection:b,height:40,gap:12,alignItems:"center",justifyContent:"center",margin:"12px 24px"},children:Array.isArray(n.children)?n.children.map((e,o)=>t(ue,{node:e},o)):t(ue,{node:n.children})})]})});var Xt=n.memo(function({node:e}){return e=h(e),t(lt,{node:{...e,type:"carouselDots"}})});function Jt(){const t=Wt.getState();let e=t.device;const[o,n]=e.width<e.height?[e.width,e.height]:[e.height,e.width];return{baseSize:t.baseSize,shortDimension:o,longDimension:n}}function Ut(t){const{baseSize:e,longDimension:o}=Jt();return o/e.height*t}const Qt=function(t){const{baseSize:e,shortDimension:o}=Jt();return o/e.width*t},Gt=Ut,Yt=Ut;function Zt(t){if(void 0===t)return;if("number"==typeof t)return t;const e=String(t).trim(),o=e.toLowerCase();if(o.endsWith("@s")){const t=parseFloat(o.slice(0,-2));return Number.isFinite(t)?Qt(t):e}if(o.endsWith("@vs")){const t=parseFloat(o.slice(0,-3));return Number.isFinite(t)?Gt(t):e}if(o.endsWith("@f")||o.endsWith("@fs")){const t=o.endsWith("@f")?-2:-3,n=parseFloat(o.slice(0,t));return Number.isFinite(n)?Yt(n):e}if(o.endsWith("px")){const t=parseFloat(o.replace("px",""));return Number.isFinite(t)?t:e}const n=parseFloat(o);return Number.isFinite(n)?n:e}function $t(t){const e=t.attributes,{screenStyle:o,theme:n}=Wt.getState(),i="light"===n?o.light.color:o.dark.color,a={};if(!e)return a.fontSize=Yt(14),a.color=i,a;if(void 0!==e.fontSize){const t=Zt(e.fontSize);a.fontSize=t}else a.fontSize=Yt(14);if(e.fontWeight&&(a.fontWeight=e.fontWeight),a.color=e.color??i,e.textAlign&&(a.textAlign=e.textAlign),void 0!==e.padding&&(a.padding=e.padding),void 0!==e.margin&&(a.margin=e.margin),void 0!==e.paddingHorizontal){const t=Zt(e.paddingHorizontal);a.paddingLeft=t,a.paddingRight=t}if(void 0!==e.paddingVertical){const t=Zt(e.paddingVertical);a.paddingTop=t,a.paddingBottom=t}if(void 0!==e.marginHorizontal){const t=Zt(e.marginHorizontal);a.marginLeft=t,a.marginRight=t}if(void 0!==e.marginVertical){const t=Zt(e.marginVertical);a.marginTop=t,a.marginBottom=t}return void 0!==e.paddingTop&&(a.paddingTop=Zt(e.paddingTop)),void 0!==e.paddingBottom&&(a.paddingBottom=Zt(e.paddingBottom)),void 0!==e.paddingLeft&&(a.paddingLeft=Zt(e.paddingLeft)),void 0!==e.paddingRight&&(a.paddingRight=Zt(e.paddingRight)),void 0!==e.marginTop&&(a.marginTop=Zt(e.marginTop)),void 0!==e.marginBottom&&(a.marginBottom=Zt(e.marginBottom)),void 0!==e.marginLeft&&(a.marginLeft=Zt(e.marginLeft)),void 0!==e.marginRight&&(a.marginRight=Zt(e.marginRight)),e.backgroundColor&&(a.backgroundColor=e.backgroundColor),void 0!==e.borderRadius&&(a.borderRadius=e.borderRadius),void 0!==e.width&&(a.width=e.width),void 0!==e.height&&(a.height=e.height),a}function te(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var ee=n.memo(function({node:n}){n=h(n);const{defaultLanguage:i,localication:a}=Wt(t=>({defaultLanguage:t.defaultLanguage,localication:t.localication})),r=t=>t?a?.[i??"en"]?.[t]??t:"",s=r(n?.attributes?.textLocalizationKey),l=$t(n),u=t=>({color:t,cursor:t?"pointer":void 0}),c=Zt(n?.attributes?.paddingHorizontal);return t("div",{style:{...l,paddingLeft:c,paddingRight:c,textAlign:"center"},children:!!s&&(()=>{const i=r(n?.attributes?.linkedWordFirstLocalizationKey),a=r(n?.attributes?.linkedWordSecondLocalizationKey),{segments:l,matchCount:c}=function(t,e){const o=[];for(const n of e){if(!n.value)continue;const e=new RegExp(te(n.value),"gi");for(const i of t.matchAll(e)){if(null==i.index)continue;const t=i[0];t&&o.push({start:i.index,end:i.index+t.length,value:t,color:n.color,page:n.page})}}if(0===o.length)return{segments:[{type:"text",value:t}],matchCount:0};o.sort((t,e)=>{if(t.start!==e.start)return t.start-e.start;const o=t.end-t.start;return e.end-e.start-o});const n=[];let i=-1;for(const t of o)t.start>=i&&(n.push(t),i=t.end);const a=[];let r=0;for(const{start:e,end:o,value:i,color:s,page:l}of n)e>r&&a.push({type:"text",value:t.slice(r,e)}),a.push({type:"match",value:i,color:s,page:l}),r=o;return r<t.length&&a.push({type:"text",value:t.slice(r)}),{segments:a,matchCount:n.length}}(s,[{value:i,color:n?.attributes?.linkedWordFirstColor,page:n?.attributes?.linkedWordFirstPage},{value:a,color:n?.attributes?.linkedWordSecondColor,page:n?.attributes?.linkedWordSecondPage}]),d=n?.attributes?.color;return e(o,{children:[t("p",{style:{color:d,alignItems:"center"},children:l.map((e,o)=>"text"===e.type?t("span",{children:e.value},o):t("span",{style:u(e.color),onClick:()=>{e.page},children:e.value},o))}),0===c&&e("div",{children:[n?.attributes?.linkedWordFirstLocalizationKey&&t("span",{style:u(n?.attributes?.linkedWordFirstColor),onClick:()=>{},children:i}),n?.attributes?.linkedWordSecondLocalizationKey&&t("span",{style:u(n?.attributes?.linkedWordSecondColor),onClick:()=>{},children:a})]})]})})()})});var oe=n.memo(function({node:e}){return e=h(e),t(dt,{node:{...e,type:"image"}})});var ne=n.memo(function({node:e}){e=h(e);const o=e.attributes?.flexDirection,n=e.attributes?.display,i=Zt(e.attributes?.paddingHorizontal);return t("div",{className:"embla__slide",style:{gap:Zt(e.attributes?.gap),flexDirection:o,display:n,paddingRight:i,paddingLeft:i},children:e.children&&t(ue,{node:e.children})})});var ie=n.memo(function({node:e}){e=h(e);const{defaultLanguage:o,localication:n}=Wt(t=>({defaultLanguage:t.defaultLanguage,localication:t.localication})),i=e.children,a=$t(e);return t("p",{style:a,children:n?.[o??"en"]?.[i]??i})});var ae=n.memo(function({node:e}){return e=h(e),t(ie,{node:e})});var re=n.memo(function({node:e}){return e=h(e),t(ie,{node:e})});function se(t){const e=t.attributes,o={display:"flex",flexDirection:"column"};return e?((e?.scrollable??!1)&&("row"===e.flexDirection?(o.overflowX="auto",o.overflowY="hidden",o.maxWidth="100%",o.maxHeight="100%"):(o.overflowY="auto",o.overflowX="hidden",o.maxHeight="100%",o.maxWidth="100%")),e.flexDirection&&(o.flexDirection=e.flexDirection),e.alignItems&&(o.alignItems=e.alignItems),e.justifyContent&&(o.justifyContent=e.justifyContent),void 0!==e.gap&&(o.gap=e.gap),void 0!==e.padding&&(o.padding=e.padding),void 0!==e.margin&&(o.margin=e.margin),e.backgroundColor&&(o.backgroundColor=e.backgroundColor),void 0!==e.borderRadius&&(o.borderRadius=e.borderRadius),void 0!==e.width&&(o.width=e.width),void 0!==e.height&&(o.height=e.height),o):o}var le=n.memo(function({node:e}){return e=h(e),t("div",{style:se(e),className:"scroll-container",children:t(ue,{node:e.children})})});var ue=n.memo(function e({node:n}){if(d(n))return null;if(p(n))return t(ie,{node:{children:n,type:"text"}});if(y(n))return t(o,{children:n.map((o,n)=>t(e,{node:o},n))});const i=n;switch(i?.type){case"button":return t(f,{node:i});case"carousel":return t(_,{node:i});case"carouselButtons":return t(st,{node:i});case"carouselDots":return t(lt,{node:i});case"carouselItem":return t(ut,{node:i});case"carouselProvider":return t(rt,{node:i});case"image":return t(dt,{node:i});case"Onboard":return t(pt,{node:i});case"OnboardButton":return t(Kt,{node:i});case"OnboardButtons":return t(qt,{node:i});case"OnboardDot":return t(Xt,{node:i});case"OnboardFooter":return t(ee,{node:i});case"OnboardImage":return t(oe,{node:i});case"OnboardItem":return t(ne,{node:i});case"OnboardProvider":return t(Mt,{node:i});case"OnboardSubtitle":return t(ae,{node:i});case"OnboardTitle":return t(re,{node:i});case"text":return t(ie,{node:i});case"view":return t(le,{node:i});default:return null}});const ce=[{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"button",children:"string",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"]}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carousel",children:"carouselItem",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselButtons",children:"never",attributes:{buttonType:["previous_button","next_button","skip_button"],skipNumber:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselDots",children:"never",attributes:{dotType:["expanding_dot","normal_dot","scaling_dot","sliding_border","sliding_dot","liquid_like"]}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselItem",children:"node",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselProvider",children:"node",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"image",children:"never",attributes:{src:"string",width:"number",height:"number",resizeMode:["cover","contain","stretch","center"],borderRadius:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"Onboard",children:"node",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardButton",children:"never",attributes:{labelKey:"string",button_text_color:"string",animation:["simple-animation","line-animation","blur","blur-animation","blur-line-animation"],animation_color:"string",button_background_color:"string",flex:"number",events:"EventObject[]"}},types:{EventObject:{type:["Permission","Navigate"],permission:["att","notification","rating","null"],navigate_to:["string","null"]}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardButtons",children:"node",attributes:{buttonType:["previous_button","next_button","skip_button"],skipNumber:"number",buttons_direction:["row","column"],forIndex:"number",seperatorColor:"string",condition:["carousel-index"],conditionVariable:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardDot",children:"node",attributes:{dotType:["expanding_dot","normal_dot","scaling_dot","sliding_border","sliding_dot","liquid_like"],inactive_dot_opacity:"number",expanding_dot_width:"number",dot_style:"string",container_style:"string",active_dot_color:"string"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardFooter",children:"node",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number",textLocalizationKey:"string",linkedWordFirstLocalizationKey:"string",linkedWordFirstColor:"string",linkedWordFirstPage:"string",linkedWordSecondLocalizationKey:"string",linkedWordSecondColor:"string",linkedWordSecondPage:"string"}},defaults:{paddingHorizontal:"24@s"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardImage",children:"node",attributes:{src:"string",width:"number",height:"number",resizeMode:["cover","contain","stretch","center"],borderRadius:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardItem",children:"node",attributes:{display:["flex","block"],gap:"string",flexDirection:["row","column"],paddingHorizontal:"string"}},defaults:{gap:"16@vs",display:"flex",flexDirection:"column",paddingHorizontal:"24@s"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardProvider",children:"node",attributes:{theme:"string",use_safe_area_inset:"boolean",paddingTop:"number",paddingRight:"number",paddingBottom:"number",paddingLeft:"number"}},defaults:{paddingTop:0,paddingRight:0,paddingBottom:8,paddingLeft:0}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardSubtitle",children:"node",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number"}},defaults:{fontSize:"14@fs",fontWeight:"600"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardTitle",children:"node",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number"}},defaults:{fontSize:"24@fs",fontWeight:"700",textAlign:"center"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"text",children:"string",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number",color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"]}},types:{},defaults:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"view",children:["node","array"],attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number"}}}],de=new Map(ce.map(t=>[t.pattern.type,t]));function pe(t){if("string"==typeof t)return de.get(t)}function ye(t,e){if(!t||!e)return;const o=pe(t),n=o?.types;return n?.[e]}function ge(t){return"string"===t||"number"===t||"boolean"===t}function be({name:o,type:i,value:a,onChange:r,componentType:s}){if(Array.isArray(i))return e("select",{value:a??"",onChange:t=>r(t.target.value),className:"input",children:[t("option",{value:"",children:"(none)"}),i.map(e=>t("option",{value:e,children:e},e))]});const l="string"==typeof i?"string"!=typeof(u=i)?null:u.endsWith("[]")?u.slice(0,-2):null:null;var u;if(l){const o=Array.isArray(a)?a:[];if(ge(l))return e("div",{style:{display:"grid",gap:8},children:[o.map((n,i)=>e("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[t("input","number"===l?{type:"number",value:n??"",onChange:t=>{const e=[...o];e[i]=""===t.target.value?void 0:Number(t.target.value),r(e)},className:"input",style:{flex:1}}:"boolean"===l?{type:"checkbox",checked:Boolean(n),onChange:t=>{const e=[...o];e[i]=t.target.checked,r(e)}}:{type:"text",value:n??"",onChange:t=>{const e=[...o];e[i]=""===t.target.value?void 0:t.target.value,r(e)},className:"input",style:{flex:1}}),t("button",{type:"button",onClick:()=>{const t=o.filter((t,e)=>e!==i);r(t.length?t:void 0)},children:"remove"})]},i)),t("div",{children:t("button",{type:"button",onClick:()=>{const t=[...o,"boolean"!==l&&("number"===l?0:"")];r(t)},children:"add"})})]});const i=ye(s,l)??{};return e("div",{style:{display:"grid",gap:8},children:[o.map((a,l)=>{const u=a??{};return e("div",{style:{border:"1px solid #ddd",borderRadius:6,padding:8},children:[t("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(i).map(([i,a])=>e(n.Fragment,{children:[t("div",{style:{alignSelf:"center"},children:i}),t(be,{name:i,type:a,value:u?.[i],onChange:t=>{const e=[...o],n={...u??{},[i]:t};e[l]=n,r(e)},componentType:s})]},i))}),t("div",{style:{marginTop:8},children:t("button",{type:"button",onClick:()=>{const t=o.filter((t,e)=>e!==l);r(t.length?t:void 0)},children:"remove"})})]},l)}),t("div",{children:t("button",{type:"button",onClick:()=>{const t=[...o,{}];r(t)},children:"add"})})]})}if("string"==typeof i&&!ge(i)){const o=ye(s,i);if(o){const i=a??{};return t("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(o).map(([o,a])=>e(n.Fragment,{children:[t("div",{style:{alignSelf:"center"},children:o}),t(be,{name:o,type:a,value:i?.[o],onChange:t=>{const e={...i??{},[o]:t};r(e)},componentType:s})]},o))})}}if("number"===i)return t("input",{type:"number",value:a??"",onChange:t=>r(""===t.target.value?void 0:Number(t.target.value)),className:"input"});if("boolean"===i)return t("input",{type:"checkbox",checked:Boolean(a),onChange:t=>r(t.target.checked)});if("string[]"===i){const o=Array.isArray(a)?a:[];return e("div",{style:{display:"grid",gap:8},children:[o.map((n,i)=>e("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[t("input",{type:"text",value:n??"",onChange:t=>{const e=[...o];e[i]=t.target.value,r(e)},className:"input",style:{flex:1}}),t("button",{type:"button",onClick:()=>{const t=o.filter((t,e)=>e!==i);r(t.length?t:void 0)},children:"remove"})]},i)),t("div",{children:t("button",{type:"button",onClick:()=>{const t=[...o,""];r(t)},children:"add"})})]})}return t("input",{type:"text",value:a??"",onChange:t=>r(""===t.target.value?void 0:t.target.value),className:"input"})}var he=n.memo(function({node:o,onChange:i}){if(!o||p(o))return null;const a=o,r=function(t){const e=pe(t);return e?.pattern.attributes}(a?.type)??{},s=a?.attributes??{},l=Object.entries(r);return 0===l.length?t("div",{style:{padding:8,opacity:.7},children:"No editable attributes"}):t("div",{style:{},children:l.map(([o,r])=>e(n.Fragment,{children:[t("p",{style:{alignSelf:"center",marginBottom:4,fontWeight:700},children:o}),t("div",{style:{marginBottom:16},children:t(be,{name:o,type:r,value:s?.[o],onChange:t=>{const e={...a,attributes:{...s??{},[o]:t}};i(e)},componentType:a?.type})})]},o))})}),fe={name:"hello-world",version:"1.0.0",previewConfig:{theme:"light",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data:{type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:16,backgroundColor:"#F5F7FA"},children:[{type:"text",children:"Hello, world!",attributes:{color:"#111827",fontSize:24,fontWeight:"600"}},{type:"text",children:"Welcome to react-native-builder",attributes:{color:"#6B7280",fontSize:14,fontWeight:"400"}}]}},_e={name:"hello-world-2-advanced",version:"1.0.0",previewConfig:{theme:"light",screenSize:{width:390,height:844},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data:{type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",gap:16,padding:16,backgroundColor:"#F3F4F6"},children:[{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#111827",borderRadius:12},children:[{type:"text",children:"Dashboard",attributes:{color:"#FFFFFF",fontSize:20,fontWeight:"600"}},{type:"view",attributes:{flexDirection:"row",gap:8},children:[{type:"text",children:"Help",attributes:{color:"#D1D5DB",fontSize:14}},{type:"text",children:"Profile",attributes:{color:"#D1D5DB",fontSize:14}}]}]},{type:"image",attributes:{src:"https://picsum.photos/720/320",width:358,height:160,borderRadius:12,resizeMode:"cover"},children:null},{type:"view",attributes:{flexDirection:"column",gap:8,padding:12,backgroundColor:"#FFFFFF",borderRadius:12},children:[{type:"text",children:"Welcome back!",attributes:{color:"#111827",fontSize:18,fontWeight:"600"}},{type:"text",children:"Here's what's new today.",attributes:{color:"#6B7280",fontSize:14}}]},{type:"view",attributes:{flexDirection:"column",gap:12},children:[{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 1",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"Due today",attributes:{color:"#059669",fontSize:12,fontWeight:"600"}}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 2",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"2 days left",attributes:{color:"#D97706",fontSize:12,fontWeight:"600"}}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 3",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"Completed",attributes:{color:"#6B7280",fontSize:12,fontWeight:"600"}}]}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",padding:12,backgroundColor:"#111827",borderRadius:12},children:[{type:"text",children:"Home",attributes:{color:"#FFFFFF",fontSize:14}},{type:"text",children:"Search",attributes:{color:"#9CA3AF",fontSize:14}},{type:"text",children:"Settings",attributes:{color:"#9CA3AF",fontSize:14}}]}]}},me={name:"carousel-sample",version:"1.0.0",previewConfig:{theme:"light",screenSize:{width:375,height:812}},data:{type:"carouselProvider",children:[{type:"carousel",attributes:{loop:!0,align:"center",dragFree:!0},children:[{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#f5f5f5",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Welcome to our app!"}}},{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#e8f5e9",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Discover amazing features"}}},{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#e3f2fd",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Get started now!"}}}]},{type:"carouselDots",attributes:{dotType:"expanding_dot"}},{type:"carouselButtons",attributes:{buttonType:["previous_button","next_button","skip_button"],skipNumber:3}}]}},ke={name:"vpn-onboard-1 (legacy)",version:"0.0.0",previewConfig:{theme:"dark",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"Secure your connection","onboard.title.two-page":"Access content worldwide","onboard.title.three-page":"Fast and reliable","onboard.title.four-page":"Stay notified and safe","onboard.subtitle.one-page":"Encrypt your traffic and protect your privacy on public Wi‑Fi.","onboard.subtitle.two-page":"Connect to high‑speed servers in many countries with one tap.","onboard.subtitle.three-page":"Auto‑connect to the best server for speed and stability.","onboard.subtitle.four-page":"Enable notifications for connection status and security tips.","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy Policy","view.onboarding.btnTerms":"Terms of Service"},ar:{"onboard.title.one-page":"أمّن اتصالك","onboard.title.two-page":"وصول إلى المحتوى حول العالم","onboard.title.three-page":"سرعة واعتمادية","onboard.title.four-page":"إشعارات وحماية دائمة","onboard.subtitle.one-page":"قم بتشفير حركة المرور وحماية خصوصيتك على شبكات Wi‑Fi العامة.","onboard.subtitle.two-page":"اتصل بخوادم عالية السرعة في بلدان متعددة بضغطة واحدة.","onboard.subtitle.three-page":"يتصل التطبيق تلقائياً بأفضل خادم لسرعة وثبات أعلى.","onboard.subtitle.four-page":"فعّل الإشعارات لمعرفة حالة الاتصال والحصول على نصائح الأمان.","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة، فإنك توافق على","view.onboarding.btnPrivacy":"سياسة الخصوصية","view.onboarding.btnTerms":"شروط الخدمة"}},defaultLanguage:"en"},data:{name:"Dark TextCall Onboard",key:"app_onboard",theme:"dark",order:1,data:{layout:"onboard-layout",key:"c92tR8J5wbTb3fav",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cfVlTs4XoBH6eHhy",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"c9BoiuHQQ8yWnnrH",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:"#007AFF"}}],styles:[]}},{layout:"footer-layout",key:"c1yg0ajCz15VwbXO",attributes:{texts:[{layout:"Text",key:"cUEOEGlJHu98Bm4M",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#A2A4B1",width:null,linkedwords:[{layout:"LinkedWords",key:"clmIqcwqLbpf5lIC",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#1778F2",page:"privacy"}},{layout:"LinkedWords",key:"cR2iFjXZv6aKSipt",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#1778F2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"ctJKE0JpoyY2U2py",attributes:{key:"app_onboard-page1",components:[{layout:"title-layout",key:"czW0y11EJ3Gh2zzu",attributes:{title_localization_key:"onboard.title.one-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cFtkJ7cGjlbh0Onm",attributes:{styles:[{layout:"Styles",key:"cRfjSLASNf4EfmRk",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"ccaPDeW3TvadGknh",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png"}},{layout:"subtitle-layout",key:"cS8AJFtYl83g6N7l",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cfxys3dqXXQIoWib",attributes:{styles:[{layout:"Styles",key:"cdqzVzWecbtQHHOZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cADNBYmKZhuqHDe3",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cvgeWjSVK9714zE4",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cYbS4tQuDbqRjJP6",attributes:{events:[{layout:"Navigate",key:"cnwVlRVwR2Oa37Wa",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cO7EfoP6WnwCbZFN",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cLDTXbDjepmRilZP",attributes:{events:[{layout:"Navigate",key:"cVe34D6lvpt6jfkc",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cJ5P9VObBmpapdIz",attributes:{key:"app_onboard-page2",components:[{layout:"title-layout",key:"cWaHDeqd8N5LpAdr",attributes:{title_localization_key:"onboard.title.two-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"c5n7fUy2koZD1iY5",attributes:{styles:[{layout:"Styles",key:"c7uK89glQz4MHrZc",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"czvCm7FXp4sQrlBi",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png"}},{layout:"subtitle-layout",key:"cJO33EgsbvxZVV57",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cKZLIPtywsfi5Mbz",attributes:{styles:[{layout:"Styles",key:"cce8Yv695FQgSOIH",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cR43NhA7k4XN4bFU",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cZbvXpcCDBzCy4xq",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cOweHSx9FF1rKmXE",attributes:{events:[{layout:"Permission",key:"cfnK7ww1nyzVLquV",attributes:{permission:"att"}},{layout:"Navigate",key:"cdQXhjSGC97aDV5Q",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cP3ZMgA0DgYBMTjH",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5ud1yXzSHQOl99m",attributes:{events:[{layout:"Permission",key:"caWvIjHlpzkWsSkU",attributes:{permission:"att"}},{layout:"Navigate",key:"cqCP16bRc8OrVYnj",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cxNW3BfLJV7m1Rwb",attributes:{key:"app_onboard-page3",components:[{layout:"title-layout",key:"c4jWJqatyNrpRDv5",attributes:{title_localization_key:"onboard.title.three-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cyxWxkO4H6GcLGpV",attributes:{styles:[{layout:"Styles",key:"c2EQHxoKIHqE6usb",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"cQPrCUhAFzzvZvFL",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png"}},{layout:"subtitle-layout",key:"c845kgEFTytoeb5n",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c8I866TChSrcTxLA",attributes:{styles:[{layout:"Styles",key:"cPi4CsGpMpnyl1Qo",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cHRet3F1pMbLLv4e",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cPjaITcYuN3jYXaz",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cwHy3RdNIAhrdyk9",attributes:{events:[{layout:"Navigate",key:"c9tQ5JwLNEl4m6iE",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"calWhCnS7bVqDLSm",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5WDaaMMyzF6wbMw",attributes:{events:[{layout:"Permission",key:"czWoimoKrntcpPMu",attributes:{permission:"rating"}},{layout:"Navigate",key:"csga6VsmtRL4dJoH",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"c6OPQRoj7nIYq8qP",attributes:{key:"app_onboard-page4",components:[{layout:"title-layout",key:"cY7hE2QfCFUpAvIr",attributes:{title_localization_key:"onboard.title.four-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"ch0psI5S3gY93lkS",attributes:{styles:[{layout:"Styles",key:"ci8SBK0k6Ox0cAY4",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"cyzRYhHdmYpSZKWz",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png"}},{layout:"subtitle-layout",key:"cEtGSW5s89pVPO3p",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c7q1e8klEqvuTib2",attributes:{styles:[{layout:"Styles",key:"cRoSg4908XkN9tLr",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cFOXUx3qf7wvRQPK",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cILIurDiN8C6Nk9t",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cPkTX9lI025TuA2d",attributes:{events:[{layout:"Permission",key:"cenFPRHcA87TmbkC",attributes:{permission:"notification"}},{layout:"Navigate",key:"c0ZQIOWZ81XjaWmA",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}}]}}}},ve={name:"vpn-onboard-2 (legacy)",version:"0.0.0",previewConfig:{theme:"light",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.two-page":"Two Page","onboard.title.three-page":"Three Page","onboard.title.four-page":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.two-page":" العربية","onboard.title.three-page":" العربية","onboard.title.four-page":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.four-page":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data:{name:"Light TextCall Onboard",key:"app_onboard",theme:"light",order:3,data:{layout:"onboard-layout",key:"ckcw0WXRY8sNR2SF",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cGCRrFJjSzYghZ4Q",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"cDpkxR1j6ooHGrU9",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:"#007AFF"}}],styles:[]}},{layout:"footer-layout",key:"cqkMhW1f0q0tDK1r",attributes:{texts:[{layout:"Text",key:"cAxC6cU3U9i1jxTq",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#A2A4B1",width:null,linkedwords:[{layout:"LinkedWords",key:"cLISLCL0ybiWxpze",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#1778F2",page:"privacy"}},{layout:"LinkedWords",key:"ccsI2OTvUzQJLo6g",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#1778F2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cFxlMJ99IXCFJfba",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"cEgDUYy0F2959VoY",attributes:{title_localization_key:"onboard.title.one-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cIflKK6zz4926DQA",attributes:{styles:[{layout:"Styles",key:"cXGRCly7sTM1wPXp",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cd3LFLBcjBfEz90D",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/0c65cbe8e0c2e1242146e15dfd50a486.png"}},{layout:"subtitle-layout",key:"cumoZTMcp3Ewdgtq",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"c8iENqCAEKDzSNEq",attributes:{styles:[{layout:"Styles",key:"cRjElXN8FhsCbwbt",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cQgWwz7oN0lXiGnV",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cmbJYRjfh25VI7pA",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8fR08Jp0GWJtW4U",attributes:{events:[{layout:"Navigate",key:"cGFaKCTZ6RkGAKw7",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:"line-animation",animation_color:"#FFFFFF"}},{layout:"button-layout",key:"cBx6we1fBvBHNCdM",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cqC2H6ygkjzKj1TW",attributes:{events:[{layout:"Navigate",key:"cMmDIAW9MAUNcPQA",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:"simple-animation",animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cgh6jEnSF0m2MrAE",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cuIDsIKqy8wnkxWO",attributes:{title_localization_key:"onboard.title.two-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c1wm3B4Avb8ewdwB",attributes:{styles:[{layout:"Styles",key:"cS5KY2wak36qZ7Po",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"c0uaSOOOFSldTX3O",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/e8bbdde825cd23bdc44a9b2b32af22dc.png"}},{layout:"subtitle-layout",key:"cJUPKqGxDQLJhF3r",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cjgSBQCcdIHlgqAL",attributes:{styles:[{layout:"Styles",key:"cRmpdFLYvNtRBrjZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"chGpEveV4xybUQje",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cdjnq57fneiIxBd2",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8XixwmhiXnhSWJN",attributes:{events:[{layout:"Permission",key:"cBsbZMsU90ojXQqO",attributes:{permission:"att"}},{layout:"Navigate",key:"c3ByPHQlA5V0EDfL",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cQEeZInlfh7u3vXB",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cmu069qysyrgassB",attributes:{events:[{layout:"Permission",key:"c4hcnecQIMrouWCy",attributes:{permission:"att"}},{layout:"Navigate",key:"cxHcZeIJBXHmR779",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cSvSxn9VJuC5Ld7i",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"cKrfdMzfUxGdYhst",attributes:{title_localization_key:"onboard.title.three-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cO0uTIgytvIPus6O",attributes:{styles:[{layout:"Styles",key:"ccUpxb1n3yNqZig0",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cW7eKTK8kwrmHPZF",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/3f312b38faf844746250cd54f27f91da.png"}},{layout:"subtitle-layout",key:"cKeCJntAd8La4kt6",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cl8QMTgTLyRZEo5d",attributes:{styles:[{layout:"Styles",key:"c7IfOTlsraVDcxsv",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cVnKizCpTO9oedvX",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cQh6Yr0AySTv7JTJ",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cXBXIWhYO8sMiAea",attributes:{events:[{layout:"Navigate",key:"ckR5hy3gdEX9Tbcp",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"caD93TUBvqM9stiK",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cUWsk6ZaobgtjygM",attributes:{events:[{layout:"Permission",key:"cD9EfBXK9ojHo5K3",attributes:{permission:"rating"}},{layout:"Navigate",key:"cvdgLEu69Or72lJh",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cmx3sT3YRgACNoBv",attributes:{key:"app_onboard-page4",min_android_version:"12",components:[{layout:"title-layout",key:"cLijTCmxd6N2beqg",attributes:{title_localization_key:"onboard.title.four-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c9E18gzzew8i3c0i",attributes:{styles:[{layout:"Styles",key:"cEgw4X1DFG20kX7Y",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cZoslaVC3xb7mcWc",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/f4db2a32a43239c3bbbe742cb0f18b61.png"}},{layout:"subtitle-layout",key:"cdCwD5nJ2DlDO5KY",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cNc4qj0KNwAXFENj",attributes:{styles:[{layout:"Styles",key:"c2GDBOndoaWxghsj",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cAOcd1hyFKZNzosk",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cxFfSJNZcJqPavkh",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cgtBZJvdDVlzDAIE",attributes:{events:[{layout:"Permission",key:"cO5VtdbSc4xVTEUo",attributes:{permission:"notification"}},{layout:"Navigate",key:"cTEG49LslKtvx85s",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}}},we={name:"vpn-onboard-3 (legacy)",version:"0.0.0",previewConfig:{theme:"light",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data:{name:"Light TextCall Onboard - 2",key:"app_onboard_ab_classic",theme:"light",order:7,data:{layout:"onboard-layout",key:"ckcw0WXRY8sNR2SF",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cGCRrFJjSzYghZ4Q",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"cgk7eew2LNqwIfdl",attributes:{inactive_dot_opacity:null,active_dot_color:null,expanding_dot_width:null,dot_style:null,container_style:null}}],styles:[]}},{layout:"footer-layout",key:"cqkMhW1f0q0tDK1r",attributes:{texts:[{layout:"Text",key:"cAxC6cU3U9i1jxTq",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#81838F",width:null,linkedwords:[{layout:"LinkedWords",key:"cLISLCL0ybiWxpze",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#81838F",page:"privacy"}},{layout:"LinkedWords",key:"ccsI2OTvUzQJLo6g",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#81838F",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cFxlMJ99IXCFJfba",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"cEgDUYy0F2959VoY",attributes:{title_localization_key:"onboard.title.one-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cIflKK6zz4926DQA",attributes:{styles:[{layout:"Styles",key:"cXGRCly7sTM1wPXp",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cd3LFLBcjBfEz90D",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/c68cca84580d6920c883c220e57346c0.jpg"}},{layout:"subtitle-layout",key:"cumoZTMcp3Ewdgtq",attributes:{subtitle_localization_key:"onboard.subtitle.one-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"c8iENqCAEKDzSNEq",attributes:{styles:[{layout:"Styles",key:"cRjElXN8FhsCbwbt",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cQgWwz7oN0lXiGnV",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cmbJYRjfh25VI7pA",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8fR08Jp0GWJtW4U",attributes:{events:[{layout:"Navigate",key:"cGFaKCTZ6RkGAKw7",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cBx6we1fBvBHNCdM",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cqC2H6ygkjzKj1TW",attributes:{events:[{layout:"Navigate",key:"cMmDIAW9MAUNcPQA",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cgh6jEnSF0m2MrAE",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cuIDsIKqy8wnkxWO",attributes:{title_localization_key:"onboard.title.two-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c1wm3B4Avb8ewdwB",attributes:{styles:[{layout:"Styles",key:"cS5KY2wak36qZ7Po",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"c0uaSOOOFSldTX3O",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cJUPKqGxDQLJhF3r",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cjgSBQCcdIHlgqAL",attributes:{styles:[{layout:"Styles",key:"cRmpdFLYvNtRBrjZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"chGpEveV4xybUQje",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cdjnq57fneiIxBd2",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8XixwmhiXnhSWJN",attributes:{events:[{layout:"Permission",key:"cBsbZMsU90ojXQqO",attributes:{permission:"att"}},{layout:"Navigate",key:"c3ByPHQlA5V0EDfL",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cQEeZInlfh7u3vXB",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cmu069qysyrgassB",attributes:{events:[{layout:"Permission",key:"c4hcnecQIMrouWCy",attributes:{permission:"att"}},{layout:"Navigate",key:"cxHcZeIJBXHmR779",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cSvSxn9VJuC5Ld7i",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"cKrfdMzfUxGdYhst",attributes:{title_localization_key:"onboard.title.three-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cO0uTIgytvIPus6O",attributes:{styles:[{layout:"Styles",key:"ccUpxb1n3yNqZig0",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cW7eKTK8kwrmHPZF",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cKeCJntAd8La4kt6",attributes:{subtitle_localization_key:"onboard.subtitle.three-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cl8QMTgTLyRZEo5d",attributes:{styles:[{layout:"Styles",key:"c7IfOTlsraVDcxsv",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cVnKizCpTO9oedvX",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cQh6Yr0AySTv7JTJ",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cXBXIWhYO8sMiAea",attributes:{events:[{layout:"Navigate",key:"ckR5hy3gdEX9Tbcp",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"caD93TUBvqM9stiK",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cUWsk6ZaobgtjygM",attributes:{events:[{layout:"Permission",key:"cAD0IWOPG8glmDtL",attributes:{permission:"rating"}},{layout:"Navigate",key:"cvdgLEu69Or72lJh",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cmx3sT3YRgACNoBv",attributes:{key:"app_onboard-page4",min_android_version:"12",components:[{layout:"title-layout",key:"cLijTCmxd6N2beqg",attributes:{title_localization_key:"onboard.title.four-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c9E18gzzew8i3c0i",attributes:{styles:[{layout:"Styles",key:"cEgw4X1DFG20kX7Y",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cZoslaVC3xb7mcWc",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cdCwD5nJ2DlDO5KY",attributes:{subtitle_localization_key:"onboard.subtitle.four-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cNc4qj0KNwAXFENj",attributes:{styles:[{layout:"Styles",key:"c2GDBOndoaWxghsj",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cAOcd1hyFKZNzosk",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cxFfSJNZcJqPavkh",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cgtBZJvdDVlzDAIE",attributes:{events:[{layout:"Permission",key:"cO5VtdbSc4xVTEUo",attributes:{permission:"notification"}},{layout:"Navigate",key:"cTEG49LslKtvx85s",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}}},xe={name:"vpn-onboard-4 (legacy)",version:"0.0.0",type:"nova",previewConfig:{theme:"dark",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data:{name:"Dark TextCall Onboard - 2",key:"app_onboard_ab_classic",theme:"dark",order:8,data:{layout:"onboard-layout",key:"c92tR8J5wbTb3fav",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cfVlTs4XoBH6eHhy",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"ca08ia4pBmSgWK9o",attributes:{inactive_dot_opacity:null,active_dot_color:null,expanding_dot_width:null,dot_style:null,container_style:null}}],styles:[]}},{layout:"footer-layout",key:"c1yg0ajCz15VwbXO",attributes:{texts:[{layout:"Text",key:"cUEOEGlJHu98Bm4M",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#81838F",width:null,linkedwords:[{layout:"LinkedWords",key:"clmIqcwqLbpf5lIC",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#81838F",page:"privacy"}},{layout:"LinkedWords",key:"cR2iFjXZv6aKSipt",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#81838F",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"ctJKE0JpoyY2U2py",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"czW0y11EJ3Gh2zzu",attributes:{title_localization_key:"onboard.title.one-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cFtkJ7cGjlbh0Onm",attributes:{styles:[{layout:"Styles",key:"cRfjSLASNf4EfmRk",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"ccaPDeW3TvadGknh",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/aadf6191a8f1091831647b3a01e1a1aa.jpg"}},{layout:"subtitle-layout",key:"cS8AJFtYl83g6N7l",attributes:{subtitle_localization_key:"onboard.subtitle.one-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cfxys3dqXXQIoWib",attributes:{styles:[{layout:"Styles",key:"cdqzVzWecbtQHHOZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cADNBYmKZhuqHDe3",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cvgeWjSVK9714zE4",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cYbS4tQuDbqRjJP6",attributes:{events:[{layout:"Navigate",key:"cnwVlRVwR2Oa37Wa",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cO7EfoP6WnwCbZFN",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cLDTXbDjepmRilZP",attributes:{events:[{layout:"Navigate",key:"cVe34D6lvpt6jfkc",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cJ5P9VObBmpapdIz",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cWaHDeqd8N5LpAdr",attributes:{title_localization_key:"onboard.title.two-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"c5n7fUy2koZD1iY5",attributes:{styles:[{layout:"Styles",key:"c7uK89glQz4MHrZc",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"czvCm7FXp4sQrlBi",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cJO33EgsbvxZVV57",attributes:{subtitle_localization_key:"onboard.subtitle.two-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cKZLIPtywsfi5Mbz",attributes:{styles:[{layout:"Styles",key:"cce8Yv695FQgSOIH",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cR43NhA7k4XN4bFU",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cZbvXpcCDBzCy4xq",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cOweHSx9FF1rKmXE",attributes:{events:[{layout:"Permission",key:"cfnK7ww1nyzVLquV",attributes:{permission:"att"}},{layout:"Navigate",key:"cdQXhjSGC97aDV5Q",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cP3ZMgA0DgYBMTjH",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5ud1yXzSHQOl99m",attributes:{events:[{layout:"Permission",key:"caWvIjHlpzkWsSkU",attributes:{permission:"att"}},{layout:"Navigate",key:"cqCP16bRc8OrVYnj",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cxNW3BfLJV7m1Rwb",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"c4jWJqatyNrpRDv5",attributes:{title_localization_key:"onboard.title.three-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cyxWxkO4H6GcLGpV",attributes:{styles:[{layout:"Styles",key:"c2EQHxoKIHqE6usb",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cQPrCUhAFzzvZvFL",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"c845kgEFTytoeb5n",attributes:{subtitle_localization_key:"onboard.subtitle.three-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c8I866TChSrcTxLA",attributes:{styles:[{layout:"Styles",key:"cPi4CsGpMpnyl1Qo",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cHRet3F1pMbLLv4e",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cPjaITcYuN3jYXaz",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cwHy3RdNIAhrdyk9",attributes:{events:[{layout:"Navigate",key:"c9tQ5JwLNEl4m6iE",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"calWhCnS7bVqDLSm",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5WDaaMMyzF6wbMw",attributes:{events:[{layout:"Permission",key:"cVbu3bzJMfCd2WQY",attributes:{permission:"rating"}},{layout:"Navigate",key:"csga6VsmtRL4dJoH",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"c6OPQRoj7nIYq8qP",attributes:{key:"app_onboard-page4",min_android_version:null,components:[{layout:"title-layout",key:"cY7hE2QfCFUpAvIr",attributes:{title_localization_key:"onboard.title.four-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"ch0psI5S3gY93lkS",attributes:{styles:[{layout:"Styles",key:"ci8SBK0k6Ox0cAY4",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cyzRYhHdmYpSZKWz",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cEtGSW5s89pVPO3p",attributes:{subtitle_localization_key:"onboard.subtitle.four-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c7q1e8klEqvuTib2",attributes:{styles:[{layout:"Styles",key:"cRoSg4908XkN9tLr",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cFOXUx3qf7wvRQPK",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cILIurDiN8C6Nk9t",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cPkTX9lI025TuA2d",attributes:{events:[{layout:"Permission",key:"cenFPRHcA87TmbkC",attributes:{permission:"notification"}},{layout:"Navigate",key:"c0ZQIOWZ81XjaWmA",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}}};function Fe(t){const e=t.data.data?.layout;return console.info("layout",e),"onboard-layout"===e?function(t){const e=t?.data?.data?.attributes||t?.data?.attributes||{},o=e?.general_components||[],n=e?.data||[],i=function(t){const e=t.find(t=>"dots-layout"===t?.layout);if(!e)return null;const o=e?.attributes?.dot||[],n=o?.[0],i=n?.layout,a=n?.attributes||{},r=t=>{if("number"==typeof t)return t;if("string"==typeof t&&t.trim().length>0){const e=Number(t);return Number.isFinite(e)?e:void 0}},s=r(a?.inactive_dot_opacity),l=r(a?.expanding_dot_width),u="string"==typeof a?.dot_style?a.dot_style:void 0,c="string"==typeof a?.container_style?a.container_style:void 0,d="string"==typeof a?.active_dot_color?a.active_dot_color:void 0,p={};i&&(p.dotType=i);void 0!==s&&(p.inactive_dot_opacity=s);void 0!==l&&(p.expanding_dot_width=l);u&&(p.dot_style=u);c&&(p.container_style=c);d&&(p.active_dot_color=d);return{type:"OnboardDot",attributes:Object.keys(p).length?p:void 0,children:void 0}}(o),a=function(t){const e=t.find(t=>"footer-layout"===t?.layout);if(!e)return null;const o=e?.attributes?.texts||[],n=[];let i,a;for(const t of o)if("Text"===t?.layout){const e=t?.attributes?.text_localization_key||"",o=t?.attributes?.text_color||void 0;i||(i=e),a||"string"!=typeof o||(a=o);const r=t?.attributes?.linkedwords||[];for(const t of r)if("LinkedWords"===t?.layout){const e=t?.attributes?.linked_word_localization_key,o=t?.attributes?.linked_word_color,i=t?.attributes?.page;n.push({text_key:e,color:o,page:i})}}const r={gap:8};i&&(r.textLocalizationKey=i);a&&(r.textColor=a);const s=n[0],l=n[1];s&&(s.text_key&&(r.linkedWordFirstLocalizationKey=s.text_key),s.color&&(r.linkedWordFirstColor=s.color),s.page&&(r.linkedWordFirstPage=s.page));l&&(l.text_key&&(r.linkedWordSecondLocalizationKey=l.text_key),l.color&&(r.linkedWordSecondColor=l.color),l.page&&(r.linkedWordSecondPage=l.page));return{type:"OnboardFooter",attributes:r,children:void 0}}(o),{carouselNode:r,providerLevelButtons:s}=function(t){const e=t.filter(t=>"simple-onboard-layout"===t?.layout),o=new Map;e.forEach((t,e)=>{const n=t?.attributes?.key;"string"==typeof n&&o.set(n,e)});const n=[],i=e.map(t=>function(t,e,o){const n=t?.attributes?.components||[],i=[],a=t?.attributes?.key,r="string"==typeof a&&e.has(a)?e.get(a):void 0;for(const t of n)if("title-layout"===t?.layout){const e=t?.attributes?.title_localization_key||"",o=t?.attributes?.title_color||void 0,{fontSize:n,textAlign:a,marginTop:r,fontWeight:s}=Se(t);i.push({type:"OnboardTitle",attributes:o||n||a||r||s?{...o?{color:o}:{},..."number"==typeof n?{fontSize:n}:{},...a?{textAlign:a}:{},..."number"==typeof r?{marginTop:r}:{},...s?{fontWeight:s}:{}}:void 0,children:e})}else if("subtitle-layout"===t?.layout){const e=t?.attributes?.subtitle_localization_key||"",o=t?.attributes?.subtitle_color||void 0,{fontSize:n,textAlign:a,marginTop:r,fontWeight:s}=Se(t);i.push({type:"OnboardSubtitle",attributes:o||n||a||r||s?{...o?{color:o}:{},..."number"==typeof n?{fontSize:n}:{},...a?{textAlign:a}:{},..."number"==typeof r?{marginTop:r}:{},...s?{fontWeight:s}:{}}:void 0,children:e})}else if("image-layout"===t?.layout){const e=t?.attributes?.image||t?.attributes?.src||"",o=t?.attributes?.height??t?.attributes?.ios_height??t?.attributes?.android_height,n="string"==typeof o?Number.parseInt(o,10):"number"==typeof o?o:void 0,a=Boolean(t?.attributes?.is_bg_image),r=Te(t);e&&i.push({type:"OnboardImage",attributes:{src:e,...n?{height:n}:{},resizeMode:a?"cover":"contain",..."number"==typeof r.borderRadius?{borderRadius:r.borderRadius}:{}},children:void 0})}else if("Buttons"===t?.layout){const n=t?.attributes?.buttons_direction,i=t?.attributes?.buttons||[],a=[];for(const t of i){const o=t?.attributes||{},n=o?.button_text_localization_key||"",i=o?.button_text_color,r=o?.button_background_color,s=o?.animation,l=o?.animation_color,u=o?.flex?Number(o.flex):void 0,c=o?.actions||[],d=[];for(const t of c){const o=t?.attributes?.events||[];for(const t of o)if("Permission"===t?.layout){const e=t?.attributes?.permission;d.push({type:"Permission",permission:e})}else if("Navigate"===t?.layout){const o=t?.attributes?.next_page_key,n="string"==typeof o&&e.has(o),i=n?null:"string"==typeof o?o:null;d.push({type:"Navigate",navigate_to:i,...n?{targetIndex:e.get(o)}:{}}),n&&e.get(o)}}a.push({type:"OnboardButton",attributes:{labelKey:n,..."string"==typeof i?{button_text_color:i}:{},..."string"==typeof s?{animation:s}:{},..."string"==typeof l?{animation_color:l}:{},..."string"==typeof r?{button_background_color:r}:{},..."number"==typeof u?{flex:u}:{},...d.length?{events:d}:{}},children:void 0})}a.length>0&&o.push({type:"OnboardButtons",attributes:{...n?{buttons_direction:n}:{},..."number"==typeof r?{condition:"carousel-index",conditionVariable:r}:{}},children:a})}const s=t?.attributes?.key,l="string"==typeof s&&s||("string"==typeof t?.key?t.key:void 0);return{type:"OnboardItem",...l?{key:l}:{},children:i}}(t,o,n)),a={type:"Onboard",children:i};return{carouselNode:a,providerLevelButtons:n}}(n),l={type:"OnboardProvider",isMain:!0,key:t?.data?.data?.key,children:[r,...i?[i]:[],...s.length?s:[],...a?[a]:[]],attributes:{theme:t?.data?.theme,use_safe_area_inset:void 0===e?.use_safe_area_inset||e?.use_safe_area_inset}};return l}(t):null}function Se(t){const e={},o=t?.attributes?.styles||[];if(!Array.isArray(o)||0===o.length)return e;const n=new Set(["left","center","right","justify"]),i=new Set(["normal","bold","100","200","300","400","500","600","700","800","900"]);for(const t of o){if("style-layout"!==t?.layout)continue;const o=t?.attributes?.styles||[];if(Array.isArray(o))for(const t of o){if("Styles"!==t?.layout)continue;const o=t?.attributes?.type;if("textStyle"!==o)continue;const a=t?.attributes?.style||{},r=a?.fontSize;if("number"==typeof r&&Number.isFinite(r))e.fontSize=r;else if("string"==typeof r){const t=Number.parseInt(r,10);Number.isFinite(t)&&(e.fontSize=t)}const s=a?.textAlign;"string"==typeof s&&n.has(s)&&(e.textAlign=s);const l=a?.marginTop;if("number"==typeof l&&Number.isFinite(l))e.marginTop=l;else if("string"==typeof l){const t=Number.parseInt(l,10);Number.isFinite(t)&&(e.marginTop=t)}const u=a?.fontWeight;let c;"number"==typeof u&&Number.isFinite(u)?c=String(u):"string"==typeof u&&(c=u),c&&i.has(c)&&(e.fontWeight=c)}}return e}function Te(t){const e={},o=t?.attributes?.styles||[];if(!Array.isArray(o)||0===o.length)return e;for(const t of o){if("style-layout"!==t?.layout)continue;const o=t?.attributes?.styles||[];if(Array.isArray(o))for(const t of o){if("Styles"!==t?.layout)continue;const o=t?.attributes?.style||{},n=o?.borderRadius;if("number"==typeof n&&Number.isFinite(n))e.borderRadius=n;else if("string"==typeof n){const t=Number.parseInt(n,10);Number.isFinite(t)&&(e.borderRadius=t)}}}return e}function ze(){const t=[{...ke},{...ve},{...we},{...xe}];return t.forEach(t=>{t.data=Fe(t)}),[fe,_e,me,...t]}function Ae(){return[fe,_e,me]}function Be(){const t=[ke,ve,we,xe];return t.forEach(t=>{t.data=Fe(t)}),t}function Ce({width:o,height:n,isRtl:i,screenStyle:a,theme:r,children:s,device:l}){const u="dark"===r,[c,d,p,y]=l.insets??[0,0,0,0],g=c||("ios"===l.platform?20:24),b=(()=>{switch(l.navigationBarType){case"none":return 0;case"homeIndicator":return p||6;case"gesture":return p||24;case"threeButtons":return p||48;case"tabBar":return p||49;default:return p||0}})(),h=u?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.06)",f=u?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.04)";return t("div",{className:"stage-wrapper",style:{overflow:"auto"},children:e("div",{className:"stage",style:{width:o,height:n,minWidth:o,maxWidth:o,minHeight:n,maxHeight:n,overflow:"hidden",position:"relative",padding:4,direction:i?"rtl":"ltr",backgroundColor:"dark"===r?a.dark.backgroundColor:a.light.backgroundColor,color:"dark"===r?a.dark.color:a.light.color,display:"flex",flexDirection:"column",borderRadius:l.radius??0},children:[t("div",{className:"device-status-bar",style:{position:"absolute",top:0,left:0,right:0,height:g,backgroundColor:h,flex:"0 0 auto"}}),t("div",{className:"device-content",style:{flex:1,overflow:"hidden",position:"relative",paddingLeft:y,paddingRight:d},children:s}),t("div",{className:"device-navigation-bar",style:{height:b,backgroundColor:f,flex:"0 0 auto"}})]})})}function Oe({data:e,theme:o,isRtl:n,screenStyle:i,localication:a,defaultLanguage:r,device:l}){const u=800*l.width/l.height;return s(()=>{const{setDevice:t,setLocalication:e,setDefaultLanguage:n,setTheme:s,setScreenStyle:u}=Wt.getState();t(l),e(a),n(r),s(o),u(i)},[l,a,r,o,i]),t(Ce,{width:u,height:800,isRtl:n,screenStyle:i,theme:o,device:l,children:t(ue,{node:e})})}function De(t,e){if(null==t)return[];if(!e)return[];const o=e.startsWith("#"),n=o?e.slice(1):void 0,i=[],a=t=>{var r,s;if(null!=t)if(Array.isArray(t))for(const e of t)a(e);else"string"!=typeof t&&null!=(s=t)&&!Array.isArray(s)&&"string"!=typeof s&&"object"==typeof s&&"type"in s&&"children"in s&&(r=t,(o?r.key===n:r.type===e)&&i.push(t),a(t.children))};return a(t),i}export{he as AttributesEditor,Ce as DeviceMockFrame,ue as RenderNode,Oe as RenderPage,b as analyseNode,ct as extractImageStyle,$t as extractTextStyle,se as extractViewStyle,Ae as getBasicSamples,Rt as getDefaultDevice,Pt as getDevices,Be as getOnboardSamples,ze as getSamples,g as isEmptyObject,y as isNodeArray,d as isNodeNullOrUndefined,p as isNodeString,Fe as novaToJson,ce as patterns,De as querySelector,h as useNode};
|
|
28
|
+
*/function requireWithSelector_development(){return hasRequiredWithSelector_development||(hasRequiredWithSelector_development=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=React,e=requireShim(),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=e.useSyncExternalStore,r=t.useRef,n=t.useEffect,o=t.useMemo,s=t.useDebugValue;withSelector_development.useSyncExternalStoreWithSelector=function(t,e,l,h,p){var u=r(null);if(null===u.current){var c={hasValue:!1,value:null};u.current=c}else c=u.current;u=o(function(){function t(t){if(!n){if(n=!0,a=t,t=h(t),void 0!==p&&c.hasValue){var e=c.value;if(p(e,t))return r=e}return r=t}if(e=r,i(a,t))return e;var o=h(t);return void 0!==p&&p(e,o)?(a=t,e):(a=t,r=o)}var a,r,n=!1,o=void 0===l?null:l;return[function(){return t(e())},null===o?void 0:function(){return t(o())}]},[e,l,h,p]);var d=a(t,u[0],u[1]);return n(function(){c.hasValue=!0,c.value=d},[d]),s(d),d},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),withSelector_development}function requireWithSelector(){return hasRequiredWithSelector||(hasRequiredWithSelector=1,"production"===process.env.NODE_ENV?withSelector.exports=requireWithSelector_production():withSelector.exports=requireWithSelector_development()),withSelector.exports}var withSelectorExports=requireWithSelector(),useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports);const createStoreImpl=t=>{let e;const i=new Set,a=(t,a)=>{const r="function"==typeof t?t(e):t;if(!Object.is(r,e)){const t=e;e=(null!=a?a:"object"!=typeof r||null===r)?r:Object.assign({},e,r),i.forEach(i=>i(e,t))}},r=()=>e,n={setState:a,getState:r,getInitialState:()=>o,subscribe:t=>(i.add(t),()=>i.delete(t))},o=e=t(a,r,n);return n},createStore=t=>t?createStoreImpl(t):createStoreImpl,{useSyncExternalStoreWithSelector:useSyncExternalStoreWithSelector}=useSyncExternalStoreExports,identity=t=>t;function useStoreWithEqualityFn(t,e=identity,i){const a=useSyncExternalStoreWithSelector(t.subscribe,t.getState,t.getInitialState,e,i);return React.useDebugValue(a),a}const createWithEqualityFnImpl=(t,e)=>{const i=createStore(t),a=(t,a=e)=>useStoreWithEqualityFn(i,t,a);return Object.assign(a,i),a},createWithEqualityFn=(t,e)=>t?createWithEqualityFnImpl(t,e):createWithEqualityFnImpl,isIterable=t=>Symbol.iterator in t,hasIterableEntries=t=>"entries"in t,compareEntries=(t,e)=>{const i=t instanceof Map?t:new Map(t.entries()),a=e instanceof Map?e:new Map(e.entries());if(i.size!==a.size)return!1;for(const[t,e]of i)if(!a.has(t)||!Object.is(e,a.get(t)))return!1;return!0},compareIterables=(t,e)=>{const i=t[Symbol.iterator](),a=e[Symbol.iterator]();let r=i.next(),n=a.next();for(;!r.done&&!n.done;){if(!Object.is(r.value,n.value))return!1;r=i.next(),n=a.next()}return!!r.done&&!!n.done};function shallow(t,e){return!!Object.is(t,e)||"object"==typeof t&&null!==t&&"object"==typeof e&&null!==e&&(Object.getPrototypeOf(t)===Object.getPrototypeOf(e)&&(isIterable(t)&&isIterable(e)?hasIterableEntries(t)&&hasIterableEntries(e)?compareEntries(t,e):compareIterables(t,e):compareEntries({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})))}var devices=[{name:"iphone 12",platform:"ios",width:390,height:844,type:"phone",importance:13,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 12 pro",platform:"ios",width:390,height:844,type:"phone",importance:19,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13",platform:"ios",width:390,height:844,type:"phone",importance:4,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 pro",platform:"ios",width:390,height:844,type:"phone",importance:8,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14",platform:"ios",width:390,height:844,type:"phone",importance:15,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 pro",platform:"ios",width:393,height:852,type:"phone",importance:15,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15",platform:"ios",width:393,height:852,type:"phone",importance:6,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 pro",platform:"ios",width:393,height:852,type:"phone",importance:18,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"pixel 3 xl",platform:"android",width:412,height:847,type:"phone",importance:8,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 4 xl",platform:"android",width:412,height:869,type:"phone",importance:14,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 6",platform:"android",width:412,height:915,type:"phone",importance:10,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 6 pro",platform:"android",width:412,height:892,type:"phone",importance:4,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 7",platform:"android",width:412,height:915,type:"phone",importance:11,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 7 pro",platform:"android",width:412,height:892,type:"phone",importance:5,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 8",platform:"android",width:412,height:915,type:"phone",importance:12,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 8 pro",platform:"android",width:412,height:919,type:"phone",importance:16,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s8",platform:"android",width:360,height:740,type:"phone",importance:5,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s8+",platform:"android",width:360,height:740,type:"phone",importance:1,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s9",platform:"android",width:360,height:740,type:"phone",importance:4,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s9+",platform:"android",width:360,height:740,type:"phone",importance:4,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s10",platform:"android",width:360,height:760,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s10+",platform:"android",width:412,height:869,type:"phone",importance:15,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20",platform:"android",width:360,height:800,type:"phone",importance:13,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20+",platform:"android",width:412,height:915,type:"phone",importance:16,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20 ultra",platform:"android",width:412,height:915,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21",platform:"android",width:360,height:800,type:"phone",importance:13,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21+",platform:"android",width:412,height:915,type:"phone",importance:12,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21 ultra",platform:"android",width:412,height:915,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22",platform:"android",width:360,height:780,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22+",platform:"android",width:412,height:915,type:"phone",importance:8,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22 ultra",platform:"android",width:412,height:915,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23",platform:"android",width:360,height:780,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23+",platform:"android",width:412,height:915,type:"phone",importance:1,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23 ultra",platform:"android",width:412,height:915,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 8",platform:"android",width:412,height:915,type:"phone",importance:4,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 8 pro",platform:"android",width:412,height:915,type:"phone",importance:20,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 9",platform:"android",width:412,height:915,type:"phone",importance:3,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 9 pro",platform:"android",width:412,height:915,type:"phone",importance:1,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"xiaomi mi 11",platform:"android",width:412,height:915,type:"phone",importance:9,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"huawei p30",platform:"android",width:360,height:750,type:"phone",importance:10,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"huawei p30 pro",platform:"android",width:360,height:780,type:"phone",importance:14,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"oppo find x3 pro",platform:"android",width:412,height:915,type:"phone",importance:7,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"iphone 6 plus",platform:"ios",width:414,height:736,type:"phone",importance:27,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 6s plus",platform:"ios",width:414,height:736,type:"phone",importance:35,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 7 plus",platform:"ios",width:414,height:736,type:"phone",importance:40,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 8 plus",platform:"ios",width:414,height:736,type:"phone",importance:32,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone xs max",platform:"ios",width:414,height:896,type:"phone",importance:21,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone xr",platform:"ios",width:414,height:896,type:"phone",importance:31,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11",platform:"ios",width:414,height:896,type:"phone",importance:36,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11 pro max",platform:"ios",width:414,height:896,type:"phone",importance:22,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 12 pro max",platform:"ios",width:428,height:926,type:"phone",importance:28,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 pro max",platform:"ios",width:428,height:926,type:"phone",importance:30,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 plus",platform:"ios",width:428,height:926,type:"phone",importance:29,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 pro max",platform:"ios",width:430,height:932,type:"phone",importance:39,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 plus",platform:"ios",width:430,height:932,type:"phone",importance:24,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 pro max",platform:"ios",width:430,height:932,type:"phone",importance:22,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"pixel 2",platform:"android",width:411,height:731,type:"phone",importance:29,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"pixel 2 xl",platform:"android",width:411,height:823,type:"phone",importance:36,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"pixel 3",platform:"android",width:393,height:786,type:"phone",importance:39,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 4",platform:"android",width:411,height:869,type:"phone",importance:24,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 5",platform:"android",width:393,height:851,type:"phone",importance:23,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"xiaomi mi 9",platform:"android",width:393,height:851,type:"phone",importance:39,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"iphone 6",platform:"ios",width:375,height:667,type:"phone",importance:42,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 6s",platform:"ios",width:375,height:667,type:"phone",importance:60,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 7",platform:"ios",width:375,height:667,type:"phone",importance:41,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 8",platform:"ios",width:375,height:667,type:"phone",importance:59,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone x",platform:"ios",width:375,height:812,type:"phone",importance:46,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone xs",platform:"ios",width:375,height:812,type:"phone",importance:56,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11 pro",platform:"ios",width:375,height:812,type:"phone",importance:57,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone se (2nd gen)",platform:"ios",width:375,height:667,type:"phone",importance:56,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone se (3rd gen)",platform:"ios",width:375,height:667,type:"phone",importance:59,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 12 mini",platform:"ios",width:360,height:780,type:"phone",importance:70,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 mini",platform:"ios",width:360,height:780,type:"phone",importance:78,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone (1st gen)",platform:"ios",width:320,height:480,type:"phone",importance:82,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 3g",platform:"ios",width:320,height:480,type:"phone",importance:84,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 3gs",platform:"ios",width:320,height:480,type:"phone",importance:88,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 4",platform:"ios",width:320,height:480,type:"phone",importance:86,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 4s",platform:"ios",width:320,height:480,type:"phone",importance:92,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5",platform:"ios",width:320,height:568,type:"phone",importance:100,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5c",platform:"ios",width:320,height:568,type:"phone",importance:92,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5s",platform:"ios",width:320,height:568,type:"phone",importance:96,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone se (1st gen)",platform:"ios",width:320,height:568,type:"phone",importance:86,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"nexus 7 (2013)",platform:"android",width:600,height:960,type:"tablet",importance:83,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"nexus 9",platform:"android",width:768,height:1024,type:"tablet",importance:90,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"pixel c",platform:"android",width:900,height:1280,type:"tablet",importance:100,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"galaxy tab s6",platform:"android",width:800,height:1280,type:"tablet",importance:97,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab s7",platform:"android",width:800,height:1280,type:"tablet",importance:99,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab s8",platform:"android",width:800,height:1280,type:"tablet",importance:81,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab a 10.1",platform:"android",width:800,height:1280,type:"tablet",importance:94,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"lenovo tab p11",platform:"android",width:800,height:1280,type:"tablet",importance:91,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"fire hd 10",platform:"android",width:800,height:1280,type:"tablet",importance:98,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12}];function getDevices(){const t=devices.slice();return t.sort((t,e)=>(t.importance??999)-(e.importance??999)),t}function getDefaultDevice(){return getDevices()[0]}const useRenderStore=createWithEqualityFn()(t=>({device:getDefaultDevice(),localication:null,defaultLanguage:void 0,baseSize:{width:390,height:844},theme:"light",screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827",seperatorColor:"#E5E7EB"},dark:{backgroundColor:"#12131A",color:"#E9EBF9",seperatorColor:"#E5E7EB"}},setBaseSize:e=>t({baseSize:e}),setDevice:e=>t({device:e}),setLocalication:e=>t({localication:e}),setDefaultLanguage:e=>t({defaultLanguage:e}),setTheme:e=>t({theme:e}),setScreenStyle:e=>t({screenStyle:e})}),shallow),onboardContext=createContext(void 0);function OnboardProvider({node:t}){t=useNode(t);const e=useRenderStore(t=>t.device),[i,a]=useEmblaCarousel(t.attributes),[r,n]=useState(0),o=useMemo(()=>{const e=t.children.filter(t=>"Onboard"===t.type)[0];if("Onboard"!==e?.type)throw new Error("OnboardProvider at least has an Onboard child");const i=e.children[r].children.filter(t=>"OnboardButtons"==t?.type);return[...t.children,...i]},[r,t.children]);return useEffect(()=>{a&&(n(a.selectedScrollSnap()),a.on("select",()=>{n(a.selectedScrollSnap())}))},[a]),jsx(onboardContext.Provider,{value:{emblaApi:a,selectedIndex:r},children:jsx("div",{className:"carousel-provider",style:{paddingTop:e?.insets?.[0]+t.attributes?.paddingTop,paddingRight:e?.insets?.[1]+t.attributes?.paddingRight,paddingBottom:e?.insets?.[2]+t.attributes?.paddingBottom,paddingLeft:e?.insets?.[3]+t.attributes?.paddingLeft},children:jsx("div",{className:"embla",children:jsx("div",{className:"embla__viewport",ref:i,children:t.children&&jsx(RenderNode$1,{node:o})})})})})}var OnboardProvider$1=React.memo(OnboardProvider);function OnboardButton({node:t}){t=useNode(t);const{emblaApi:e}=useContext(onboardContext)??{},{defaultLanguage:i,localication:a}=useRenderStore(t=>({defaultLanguage:t.defaultLanguage,localication:t.localication})),r=t.attributes?.labelKey??"",n=a?.[i??"en"]?.[r]??r,o=t.attributes?.flex??1,s=t.attributes?.button_text_color??"#FFFFFF",l=t.attributes?.button_background_color??"#0066FF";return jsx("button",{className:"onboard__button",onClick:()=>{const i=t.attributes?.events||[];for(const t of i)if("Permission"===t.type)alert(`Permission requested: ${t.permission??"unknown"}`);else if("Navigate"===t.type){const i=t?.targetIndex;"number"==typeof i&&e?.scrollTo(i)}},style:{flex:o,color:s,backgroundColor:l,border:"none",borderRadius:20,height:"100%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:n})}var OnboardButton$1=React.memo(OnboardButton);function OnboardButtons({node:t}){t=useNode(t);const{screenStyle:e,theme:i}=useRenderStore(t=>({screenStyle:t.screenStyle,theme:t.theme})),a="light"===i?e.light.seperatorColor:e.dark.seperatorColor,r=useContext(onboardContext)??{};r.emblaApi;const[n,o]=useState(r.selectedIndex??0);useEffect(()=>{"number"==typeof r.selectedIndex&&o(r.selectedIndex)},[r.selectedIndex]);const s=t.attributes?.condition,l=t.attributes?.conditionVariable;if("carousel-index"===s&&"number"==typeof l&&l!==n)return null;const h="column"===t.attributes?.buttons_direction?"column":"row",p=t.attributes?.seperatorColor??a;return jsxs(Fragment,{children:[jsx("div",{className:"onboard__separator",style:{height:1,backgroundColor:p,width:"100%"}}),jsx("div",{className:"onboard__buttons",style:{display:"flex",flexDirection:h,height:40,gap:12,alignItems:"center",justifyContent:"center",margin:"12px 24px"},children:Array.isArray(t.children)?t.children.map((t,e)=>jsx(RenderNode$1,{node:t},e)):jsx(RenderNode$1,{node:t.children})})]})}var OnboardButtons$1=React.memo(OnboardButtons);function OnboardDot({node:t}){return t=useNode(t),jsx(CarouselDots$1,{node:{...t,type:"carouselDots"}})}var OnboardDot$1=React.memo(OnboardDot);function getBaseDimensions(){const t=useRenderStore.getState();let e=t.device;const[i,a]=e.width<e.height?[e.width,e.height]:[e.height,e.width];return{baseSize:t.baseSize,shortDimension:i,longDimension:a}}function scale(t){const{baseSize:e,shortDimension:i}=getBaseDimensions();return i/e.width*t}function verticalScale(t){const{baseSize:e,longDimension:i}=getBaseDimensions();return i/e.height*t}const s=scale,vs=verticalScale,fs=verticalScale;function parseSize(t){if(void 0===t)return;if("number"==typeof t)return t;const e=String(t).trim(),i=e.toLowerCase();if(i.endsWith("@s")){const t=parseFloat(i.slice(0,-2));return Number.isFinite(t)?s(t):e}if(i.endsWith("@vs")){const t=parseFloat(i.slice(0,-3));return Number.isFinite(t)?vs(t):e}if(i.endsWith("@f")||i.endsWith("@fs")){const t=i.endsWith("@f")?-2:-3,a=parseFloat(i.slice(0,t));return Number.isFinite(a)?fs(a):e}if(i.endsWith("px")){const t=parseFloat(i.replace("px",""));return Number.isFinite(t)?t:e}const a=parseFloat(i);return Number.isFinite(a)?a:e}function extractTextStyle(t){const e=t.attributes,{screenStyle:i,theme:a}=useRenderStore.getState(),r="light"===a?i.light.color:i.dark.color,n={};if(!e)return n.fontSize=fs(14),n.color=r,n;if(void 0!==e.fontSize){const t=parseSize(e.fontSize);n.fontSize=t}else n.fontSize=fs(14);if(e.fontWeight&&(n.fontWeight=e.fontWeight),n.color=e.color??r,e.textAlign&&(n.textAlign=e.textAlign),void 0!==e.padding&&(n.padding=e.padding),void 0!==e.margin&&(n.margin=e.margin),void 0!==e.paddingHorizontal){const t=parseSize(e.paddingHorizontal);n.paddingLeft=t,n.paddingRight=t}if(void 0!==e.paddingVertical){const t=parseSize(e.paddingVertical);n.paddingTop=t,n.paddingBottom=t}if(void 0!==e.marginHorizontal){const t=parseSize(e.marginHorizontal);n.marginLeft=t,n.marginRight=t}if(void 0!==e.marginVertical){const t=parseSize(e.marginVertical);n.marginTop=t,n.marginBottom=t}return void 0!==e.paddingTop&&(n.paddingTop=parseSize(e.paddingTop)),void 0!==e.paddingBottom&&(n.paddingBottom=parseSize(e.paddingBottom)),void 0!==e.paddingLeft&&(n.paddingLeft=parseSize(e.paddingLeft)),void 0!==e.paddingRight&&(n.paddingRight=parseSize(e.paddingRight)),void 0!==e.marginTop&&(n.marginTop=parseSize(e.marginTop)),void 0!==e.marginBottom&&(n.marginBottom=parseSize(e.marginBottom)),void 0!==e.marginLeft&&(n.marginLeft=parseSize(e.marginLeft)),void 0!==e.marginRight&&(n.marginRight=parseSize(e.marginRight)),e.backgroundColor&&(n.backgroundColor=e.backgroundColor),void 0!==e.borderRadius&&(n.borderRadius=e.borderRadius),void 0!==e.width&&(n.width=e.width),void 0!==e.height&&(n.height=e.height),n}function escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function buildSegments(t,e){const i=[];for(const a of e){if(!a.value)continue;const e=new RegExp(escapeRegExp(a.value),"gi");for(const r of t.matchAll(e)){if(null==r.index)continue;const t=r[0];t&&i.push({start:r.index,end:r.index+t.length,value:t,color:a.color,page:a.page})}}if(0===i.length)return{segments:[{type:"text",value:t}],matchCount:0};i.sort((t,e)=>{if(t.start!==e.start)return t.start-e.start;const i=t.end-t.start;return e.end-e.start-i});const a=[];let r=-1;for(const t of i)t.start>=r&&(a.push(t),r=t.end);const n=[];let o=0;for(const{start:e,end:i,value:r,color:s,page:l}of a)e>o&&n.push({type:"text",value:t.slice(o,e)}),n.push({type:"match",value:r,color:s,page:l}),o=i;return o<t.length&&n.push({type:"text",value:t.slice(o)}),{segments:n,matchCount:a.length}}function OnboardFooter({node:t}){t=useNode(t);const{defaultLanguage:e,localication:i}=useRenderStore(t=>({defaultLanguage:t.defaultLanguage,localication:t.localication})),a=t=>t?i?.[e??"en"]?.[t]??t:"",r=a(t?.attributes?.textLocalizationKey),n=extractTextStyle(t),o=t=>({color:t,cursor:t?"pointer":void 0}),s=parseSize(t?.attributes?.paddingHorizontal);return jsx("div",{style:{...n,paddingLeft:s,paddingRight:s,textAlign:"center"},children:!!r&&(()=>{const e=a(t?.attributes?.linkedWordFirstLocalizationKey),i=a(t?.attributes?.linkedWordSecondLocalizationKey),{segments:n,matchCount:s}=buildSegments(r,[{value:e,color:t?.attributes?.linkedWordFirstColor,page:t?.attributes?.linkedWordFirstPage},{value:i,color:t?.attributes?.linkedWordSecondColor,page:t?.attributes?.linkedWordSecondPage}]),l=t?.attributes?.color;return jsxs(Fragment,{children:[jsx("p",{style:{color:l,alignItems:"center"},children:n.map((t,e)=>"text"===t.type?jsx("span",{children:t.value},e):jsx("span",{style:o(t.color),onClick:()=>{t.page},children:t.value},e))}),0===s&&jsxs("div",{children:[t?.attributes?.linkedWordFirstLocalizationKey&&jsx("span",{style:o(t?.attributes?.linkedWordFirstColor),onClick:()=>{},children:e}),t?.attributes?.linkedWordSecondLocalizationKey&&jsx("span",{style:o(t?.attributes?.linkedWordSecondColor),onClick:()=>{},children:i})]})]})})()})}var OnboardFooter$1=React.memo(OnboardFooter),lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,function(module,exports){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,a,r=t.length;for(i=0;i<r;i+=1)for(var n in a=t[i].prototype)Object.prototype.hasOwnProperty.call(a,n)&&(e.prototype[n]=a[n])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var i,a=0,r=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(a=0;a<e;a+=1)r.push(i);return r}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=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 t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,i=createSizedArray(t.length),a=t.length;for(e=0;e<a;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,a){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=a<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,a){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=a<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,i){var a,r,n,o,s,l,h,p;switch(l=i*(1-e),h=i*(1-(s=6*t-(o=Math.floor(6*t)))*e),p=i*(1-(1-s)*e),o%6){case 0:a=i,r=p,n=l;break;case 1:a=h,r=i,n=l;break;case 2:a=l,r=i,n=p;break;case 3:a=l,r=h,n=i;break;case 4:a=p,r=l,n=i;break;case 5:a=i,r=l,n=h}return[a,r,n]}function RGBtoHSV(t,e,i){var a,r=Math.max(t,e,i),n=Math.min(t,e,i),o=r-n,s=0===r?0:o/r,l=r/255;switch(r){case n:a=0;break;case t:a=e-i+o*(e<i?6:0),a/=6*o;break;case e:a=i-t+2*o,a/=6*o;break;case i:a=t-e+4*o,a/=6*o}return[a,s,l]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(t,e,a){return t<0&&(t=0),e<0&&(e=0),a<0&&(a=0),"#"+i[t]+i[e]+i[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,i=1,a=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},n={postMessage:function(t){r.onmessage({data:t})}};function o(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),a=URL.createObjectURL(i);return new Worker(a)}return t=e,r}(function(t){if(n.dataManager||(n.dataManager=function(){function t(r,n){var o,s,l,h,p,c,d=r.length;for(s=0;s<d;s+=1)if("ks"in(o=r[s])&&!o.completed){if(o.completed=!0,o.hasMask){var f=o.masksProperties;for(h=f.length,l=0;l<h;l+=1)if(f[l].pt.k.i)a(f[l].pt.k);else for(c=f[l].pt.k.length,p=0;p<c;p+=1)f[l].pt.k[p].s&&a(f[l].pt.k[p].s[0]),f[l].pt.k[p].e&&a(f[l].pt.k[p].e[0])}0===o.ty?(o.layers=e(o.refId,n),t(o.layers,n)):4===o.ty?i(o.shapes):5===o.ty&&u(o)}}function e(t,e){var i=function(t,e){for(var i=0,a=e.length;i<a;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,r,n;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)a(t[e].ks.k);else for(n=t[e].ks.k.length,r=0;r<n;r+=1)t[e].ks.k[r].s&&a(t[e].ks.k[r].s[0]),t[e].ks.k[r].e&&a(t[e].ks.k[r].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function a(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function r(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var n,o=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,a=t.length;for(i=0;i<a;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var a,n=e.assets.length;for(a=0;a<n;a+=1)e.assets[a].layers&&i(e.assets[a].layers)}}}(),s=(n=[4,7,99],function(t){if(t.chars&&!r(n,t.v)){var e,a=t.chars.length;for(e=0;e<a;e+=1){var o=t.chars[e];o.data&&o.data.shapes&&(i(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(o.data.shapes.push({ty:"no"}),o.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 t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function i(t){var i,a=t.length;for(i=0;i<a;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var a,n=e.assets.length;for(a=0;a<n;a+=1)e.assets[a].layers&&i(e.assets[a].layers)}}}(),h=function(){var t=[4,1,9];function e(t){var i,a,r,n=t.length;for(i=0;i<n;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(r=t[i].c.k.length,a=0;a<r;a+=1)t[i].c.k[a].s&&(t[i].c.k[a].s[0]/=255,t[i].c.k[a].s[1]/=255,t[i].c.k[a].s[2]/=255,t[i].c.k[a].s[3]/=255),t[i].c.k[a].e&&(t[i].c.k[a].e[0]/=255,t[i].c.k[a].e[1]/=255,t[i].c.k[a].e[2]/=255,t[i].c.k[a].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,a=t.length;for(i=0;i<a;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var a,n=e.assets.length;for(a=0;a<n;a+=1)e.assets[a].layers&&i(e.assets[a].layers)}}}(),p=function(){var t=[4,4,18];function e(t){var i,a,r;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,a=0;a<r;a+=1)t[i].ks.k[a].s&&(t[i].ks.k[a].s[0].c=t[i].closed),t[i].ks.k[a].e&&(t[i].ks.k[a].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,a,r,n,o,s,l=t.length;for(a=0;a<l;a+=1){if((i=t[a]).hasMask){var h=i.masksProperties;for(n=h.length,r=0;r<n;r+=1)if(h[r].pt.k.i)h[r].pt.k.c=h[r].cl;else for(s=h[r].pt.k.length,o=0;o<s;o+=1)h[r].pt.k[o].s&&(h[r].pt.k[o].s[0].c=h[r].cl),h[r].pt.k[o].e&&(h[r].pt.k[o].e[0].c=h[r].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var a,n=e.assets.length;for(a=0;a<n;a+=1)e.assets[a].layers&&i(e.assets[a].layers)}}}();function u(t){0===t.t.a.length&&t.t.p}var c={completeData:function(i){i.__complete||(h(i),o(i),s(i),l(i),p(i),t(i.layers,i.assets),function(i,a){if(i){var r=0,n=i.length;for(r=0;r<n;r+=1)1===i[r].t&&(i[r].data.layers=e(i[r].data.refId,a),t(i[r].data.layers,a))}}(i.chars,i.assets),i.__complete=!0)}};return c.checkColors=h,c.checkChars=s,c.checkPathProperties=l,c.checkShapes=p,c.completeLayers=t,c}()),n.assetLoader||(n.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,a,r){var n,o=new XMLHttpRequest;try{o.responseType="json"}catch(t){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)n=t(o),a(n);else try{n=t(o),a(n)}catch(t){r&&r(t)}};try{o.open(["G","E","T"].join(""),e,!0)}catch(t){o.open(["G","E","T"].join(""),i+"/"+e,!0)}o.send()}}}()),"loadAnimation"===t.data.type)n.assetLoader.load(t.data.path,t.data.fullPath,function(e){n.dataManager.completeData(e),n.postMessage({id:t.data.id,payload:e,status:"success"})},function(){n.postMessage({id:t.data.id,status:"error"})});else if("complete"===t.data.type){var e=t.data.animation;n.dataManager.completeData(e),n.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&n.assetLoader.load(t.data.path,t.data.fullPath,function(e){n.postMessage({id:t.data.id,payload:e,status:"success"})},function(){n.postMessage({id:t.data.id,status:"error"})})}),e.onmessage=function(t){var e=t.data,i=e.id,r=a[i];a[i]=null,"success"===e.status?r.onComplete(e.payload):r.onError&&r.onError()})}function s(t,e){var r="processId_"+(i+=1);return a[r]={onComplete:t,onError:e},r}return{loadAnimation:function(t,i,a){o();var r=s(i,a);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},loadData:function(t,i,a){o();var r=s(i,a);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},completeAnimation:function(t,i,a){o();var r=s(i,a);e.postMessage({type:"complete",animation:t,id:r})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(t,e,i){var a="";if(t.e)a=t.p;else if(e){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),a=e+r}else a=i,a+=t.u?t.u:"",a+=t.p;return a}function r(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function n(t){var e={assetData:t},i=a(t,this.assetsPath,this.path);return dataManager.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=r.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 o.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var a=t.length;for(i=0;i<a;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=a(e,this.assetsPath,this.path),r=createTag("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),r.src=i;var n={img:r,assetData:e};return n},createImageData:function(e){var i=a(e,this.assetsPath,this.path),r=createNS("image");isSafari?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var n={img:r,assetData:e};return n},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],a=0;a<i.length;a+=1)i[a](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,a=this._cbs[t].length;i<a;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,a-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,i=t.split("\r\n"),a={},r=0,n=0;n<i.length;n+=1)2===(e=i[n].split(":")).length&&(a[e[0]]=e[1].trim(),r+=1);if(0===r)throw new Error;return a}return function(e){for(var i=[],a=0;a<e.length;a+=1){var r=e[a],n={time:r.tm,duration:r.dr};try{n.payload=JSON.parse(e[a].cm)}catch(i){try{n.payload=t(e[a].cm)}catch(t){n.payload={name:e[a].cm}}}i.push(n)}return i}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}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),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},a=t.attributes;i.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:"",i.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:getRegisteredRenderer()||"canvas";var r=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"===r?i.loop=!1:"true"===r?i.loop=!0:""!==r&&(i.loop=parseInt(r,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;i.autoplay="false"!==n,i.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:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,a=this.animationData.layers,r=a.length,n=t.layers,o=n.length;for(i=0;i<o;i+=1)for(e=0;e<r;){if(a[e].id===n[i].id){a[e]=n[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,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(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.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 t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,a="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,a)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},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.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var a=Number(t);if(isNaN(a)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var a=Number(t);if(isNaN(a)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(a,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var i,a=t.length;for(i=0;i<a;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||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(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,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(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],i=0,a=0,r=0,n=!0,o=!1;function s(t){for(var i=0,r=t.target;i<a;)e[i].animation===r&&(e.splice(i,1),i-=1,a-=1,r.isPaused||p()),i+=1}function l(t,i){if(!t)return null;for(var r=0;r<a;){if(e[r].elem===t&&null!==e[r].elem)return e[r].animation;r+=1}var n=new AnimationItem;return u(n,t),n.setData(t,i),n}function h(){r+=1,f()}function p(){r-=1}function u(t,i){t.addEventListener("destroy",s),t.addEventListener("_active",h),t.addEventListener("_idle",p),e.push({elem:i,animation:t}),a+=1}function c(t){var s,l=t-i;for(s=0;s<a;s+=1)e[s].animation.advanceTime(l);i=t,r&&!o?window.requestAnimationFrame(c):n=!0}function d(t){i=t,window.requestAnimationFrame(c)}function f(){!o&&r&&n&&(window.requestAnimationFrame(d),n=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return u(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var r;for(r=0;r<a;r+=1)e[r].animation.setSpeed(t,i)},t.setDirection=function(t,i){var r;for(r=0;r<a;r+=1)e[r].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<a;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<a;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<a;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<a;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var a,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=r.length;for(a=0;a<n;a+=1)i&&r[a].setAttribute("data-bm-type",i),l(r[a],t);if(e&&0===n){i||(i="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",i),o.appendChild(s),l(s,t)}},t.resize=function(){var t;for(t=0;t<a;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,r){var n;for(n=0;n<a;n+=1)e[n].animation.goToAndStop(t,i,r)},t.destroy=function(t){var i;for(i=a-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,f()},t.setVolume=function(t,i){var r;for(r=0;r<a;r+=1)e[r].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<a;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<a;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,a=[];for(t=0;t<i;t+=1)a.push(e[t].animation);return a},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,i,a,r,n){var o=n||("bez_"+t+"_"+i+"_"+a+"_"+r).replace(/\./g,"p");if(e[o])return e[o];var s=new p([t,i,a,r]);return e[o]=s,s}},e={},i=11,a=1/(i-1),r="function"==typeof Float32Array;function n(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,i){return((n(e,i)*t+o(e,i))*t+s(e))*t}function h(t,e,i){return 3*n(e,i)*t*t+2*o(e,i)*t+s(e)}function p(t){this._p=t,this._mSampleValues=r?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return p.prototype={get:function(t){var e=this._p[0],i=this._p[1],a=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),e===i&&a===r?t:0===t?0:1===t?1:l(this._getTForX(t),i,r)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],a=this._p[3];this._precomputed=!0,t===e&&i===a||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;r<i;++r)this._mSampleValues[r]=l(r*a,t,e)},_getTForX:function(t){for(var e=this._p[0],r=this._p[2],n=this._mSampleValues,o=0,s=1,p=i-1;s!==p&&n[s]<=t;++s)o+=a;var u=o+(t-n[--s])/(n[s+1]-n[s])*a,c=h(u,e,r);return c>=.001?function(t,e,i,a){for(var r=0;r<4;++r){var n=h(e,i,a);if(0===n)return e;e-=(l(e,i,a)-t)/n}return e}(t,u,e,r):0===c?u:function(t,e,i,a,r){var n,o,s=0;do{(n=l(o=e+(i-e)/2,a,r)-t)>0?i=o:e=o}while(Math.abs(n)>1e-7&&++s<10);return o}(t,o,o+a,e,r)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var a=0,r=t,n=createSizedArray(r);return{newElement:function(){return a?n[a-=1]:e()},release:function(t){a===r&&(n=pooling.double(n),r*=2),i&&i(t),n[a]=t,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(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(t,e,i,a,r,n){var o=t*a+e*r+i*n-r*a-n*t-i*e;return o>-.001&&o<.001}var i=function(t,e,i,a){var r,n,o,s,l,h,p=getDefaultCurveSegments(),u=0,c=[],d=[],f=bezierLengthPool.newElement();for(o=i.length,r=0;r<p;r+=1){for(l=r/(p-1),h=0,n=0;n<o;n+=1)s=bmPow(1-l,3)*t[n]+3*bmPow(1-l,2)*l*i[n]+3*(1-l)*bmPow(l,2)*a[n]+bmPow(l,3)*e[n],c[n]=s,null!==d[n]&&(h+=bmPow(c[n]-d[n],2)),d[n]=c[n];h&&(u+=h=bmSqrt(h)),f.percents[r]=l,f.lengths[r]=u}return f.addedLength=u,f};function a(t){this.segmentLength=0,this.points=new Array(t)}function r(t,e){this.partialLength=t,this.point=e}var n,o=(n={},function(t,i,o,s){var l=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!n[l]){var h,p,u,c,d,f,m,y=getDefaultCurveSegments(),g=0,b=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+o[0],t[1]+o[1])&&e(t[0],t[1],i[0],i[1],i[0]+s[0],i[1]+s[1])&&(y=2);var v=new a(y);for(u=o.length,h=0;h<y;h+=1){for(m=createSizedArray(u),d=h/(y-1),f=0,p=0;p<u;p+=1)c=bmPow(1-d,3)*t[p]+3*bmPow(1-d,2)*d*(t[p]+o[p])+3*(1-d)*bmPow(d,2)*(i[p]+s[p])+bmPow(d,3)*i[p],m[p]=c,null!==b&&(f+=bmPow(m[p]-b[p],2));g+=f=bmSqrt(f),v.points[h]=new r(f,m),b=m}v.segmentLength=g,n[l]=v}return n[l]});function s(t,e){var i=e.percents,a=e.lengths,r=i.length,n=bmFloor((r-1)*t),o=t*e.addedLength,s=0;if(n===r-1||0===n||o===a[n])return i[n];for(var l=a[n]>o?-1:1,h=!0;h;)if(a[n]<=o&&a[n+1]>o?(s=(o-a[n])/(a[n+1]-a[n]),h=!1):n+=l,n<0||n>=r-1){if(n===r-1)return i[n];h=!1}return i[n]+(i[n+1]-i[n])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,a=segmentsLengthPool.newElement(),r=t.c,n=t.v,o=t.o,s=t.i,l=t._length,h=a.lengths,p=0;for(e=0;e<l-1;e+=1)h[e]=i(n[e],n[e+1],o[e],s[e+1]),p+=h[e].addedLength;return r&&l&&(h[e]=i(n[e],n[0],o[e],s[0]),p+=h[e].addedLength),a.totalLength=p,a},getNewSegment:function(e,i,a,r,n,o,h){n<0?n=0:n>1&&(n=1);var p,u=s(n,h),c=s(o=o>1?1:o,h),d=e.length,f=1-u,m=1-c,y=f*f*f,g=u*f*f*3,b=u*u*f*3,v=u*u*u,_=f*f*m,x=u*f*m+f*u*m+f*f*c,k=u*u*m+f*u*c+u*f*c,S=u*u*c,w=f*m*m,E=u*m*m+f*c*m+f*m*c,P=u*c*m+f*c*c+u*m*c,C=u*c*c,T=m*m*m,A=c*m*m+m*c*m+m*m*c,F=c*c*m+m*c*c+c*m*c,D=c*c*c;for(p=0;p<d;p+=1)l[4*p]=t.round(1e3*(y*e[p]+g*a[p]+b*r[p]+v*i[p]))/1e3,l[4*p+1]=t.round(1e3*(_*e[p]+x*a[p]+k*r[p]+S*i[p]))/1e3,l[4*p+2]=t.round(1e3*(w*e[p]+E*a[p]+P*r[p]+C*i[p]))/1e3,l[4*p+3]=t.round(1e3*(T*e[p]+A*a[p]+F*r[p]+D*i[p]))/1e3;return l},getPointInSegment:function(e,i,a,r,n,o){var l=s(n,o),h=1-l;return[t.round(1e3*(h*h*h*e[0]+(l*h*h+h*l*h+h*h*l)*a[0]+(l*l*h+h*l*l+l*h*l)*r[0]+l*l*l*i[0]))/1e3,t.round(1e3*(h*h*h*e[1]+(l*h*h+h*l*h+h*h*l)*a[1]+(l*l*h+h*l*l+l*h*l)*r[1]+l*l*l*i[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(i,a,r,n,o,s,l,h,p){if(0===r&&0===s&&0===p)return e(i,a,n,o,l,h);var u,c=t.sqrt(t.pow(n-i,2)+t.pow(o-a,2)+t.pow(s-r,2)),d=t.sqrt(t.pow(l-i,2)+t.pow(h-a,2)+t.pow(p-r,2)),f=t.sqrt(t.pow(l-n,2)+t.pow(h-o,2)+t.pow(p-s,2));return(u=c>d?c>f?c-d-f:f-d-c:f>d?f-d-c:d-c-f)>-1e-4&&u<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,a=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var r,n,o,s,l,h,p,u,c,d=e.lastIndex,f=d,m=this.keyframes.length-1,y=!0;y;){if(r=this.keyframes[f],n=this.keyframes[f+1],f===m-1&&t>=n.t-a){r.h&&(r=n),d=0;break}if(n.t-a>t){d=f;break}f<m-1?f+=1:(d=0,y=!1)}o=this.keyframesMetadata[f]||{};var g,b=n.t-a,v=r.t-a;if(r.to){o.bezierData||(o.bezierData=bez.buildBezierData(r.s,n.s||r.e,r.to,r.ti));var _=o.bezierData;if(t>=b||t<v){var x=t>=b?_.points.length-1:0;for(l=_.points[x].point.length,s=0;s<l;s+=1)i[s]=_.points[x].point[s]}else{o.__fnct?c=o.__fnct:(c=BezierFactory.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,o.__fnct=c),h=c((t-v)/(b-v));var k,S=_.segmentLength*h,w=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastAddedLength:0;for(u=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastPoint:0,y=!0,p=_.points.length;y;){if(w+=_.points[u].partialLength,0===S||0===h||u===_.points.length-1){for(l=_.points[u].point.length,s=0;s<l;s+=1)i[s]=_.points[u].point[s];break}if(S>=w&&S<w+_.points[u+1].partialLength){for(k=(S-w)/_.points[u+1].partialLength,l=_.points[u].point.length,s=0;s<l;s+=1)i[s]=_.points[u].point[s]+(_.points[u+1].point[s]-_.points[u].point[s])*k;break}u<p-1?u+=1:y=!1}e._lastPoint=u,e._lastAddedLength=w-_.points[u].partialLength,e._lastKeyframeIndex=f}}else{var E,P,C,T,A;if(m=r.s.length,g=n.s||r.e,this.sh&&1!==r.h)t>=b?(i[0]=g[0],i[1]=g[1],i[2]=g[2]):t<=v?(i[0]=r.s[0],i[1]=r.s[1],i[2]=r.s[2]):quaternionToEuler(i,slerp(createQuaternion(r.s),createQuaternion(g),(t-v)/(b-v)));else for(f=0;f<m;f+=1)1!==r.h&&(t>=b?h=1:t<v?h=0:(r.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[f]?c=o.__fnct[f]:(E=void 0===r.o.x[f]?r.o.x[0]:r.o.x[f],P=void 0===r.o.y[f]?r.o.y[0]:r.o.y[f],C=void 0===r.i.x[f]?r.i.x[0]:r.i.x[f],T=void 0===r.i.y[f]?r.i.y[0]:r.i.y[f],c=BezierFactory.getBezierEasing(E,P,C,T).get,o.__fnct[f]=c)):o.__fnct?c=o.__fnct:(E=r.o.x,P=r.o.y,C=r.i.x,T=r.i.y,c=BezierFactory.getBezierEasing(E,P,C,T).get,r.keyframeMetadata=c),h=c((t-v)/(b-v)))),g=n.s||r.e,A=1===r.h?r.s[f]:r.s[f]+(g[f]-r.s[f])*h,"multidimensional"===this.propType?i[f]=A:i=A}return e.lastIndex=d,i}function slerp(t,e,i){var a,r,n,o,s,l=[],h=t[0],p=t[1],u=t[2],c=t[3],d=e[0],f=e[1],m=e[2],y=e[3];return(r=h*d+p*f+u*m+c*y)<0&&(r=-r,d=-d,f=-f,m=-m,y=-y),1-r>1e-6?(a=Math.acos(r),n=Math.sin(a),o=Math.sin((1-i)*a)/n,s=Math.sin(i*a)/n):(o=1-i,s=i),l[0]=o*h+s*d,l[1]=o*p+s*f,l[2]=o*u+s*m,l[3]=o*c+s*y,l}function quaternionToEuler(t,e){var i=e[0],a=e[1],r=e[2],n=e[3],o=Math.atan2(2*a*n-2*i*r,1-2*a*a-2*r*r),s=Math.asin(2*i*a+2*r*n),l=Math.atan2(2*i*n-2*a*r,1-2*i*i-2*r*r);t[0]=o/degToRads,t[1]=s/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,a=t[2]*degToRads,r=Math.cos(e/2),n=Math.cos(i/2),o=Math.cos(a/2),s=Math.sin(e/2),l=Math.sin(i/2),h=Math.sin(a/2);return[s*l*o+r*n*h,s*n*o+r*l*h,r*l*o-s*n*h,r*n*o-s*l*h]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(t,this._caching);this.pv=a}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,a=this.v.length;i<a;)e=t[i]*this.mult,mathAbs(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,a){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,i,a){var r;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n=e.k.length;for(this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n),r=0;r<n;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,a){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,i,a){var r;this.propType="multidimensional";var n,o,s,l,h=e.k.length;for(r=0;r<h-1;r+=1)e.k[r].to&&e.k[r].s&&e.k[r+1]&&e.k[r+1].s&&(n=e.k[r].s,o=e.k[r+1].s,s=e.k[r].to,l=e.k[r].ti,(2===n.length&&(n[0]!==o[0]||n[1]!==o[1])&&bez.pointOnLine2D(n[0],n[1],o[0],o[1],n[0]+s[0],n[1]+s[1])&&bez.pointOnLine2D(n[0],n[1],o[0],o[1],o[0]+l[0],o[1]+l[1])||3===n.length&&(n[0]!==o[0]||n[1]!==o[1]||n[2]!==o[2])&&bez.pointOnLine3D(n[0],n[1],n[2],o[0],o[1],o[2],n[0]+s[0],n[1]+s[1],n[2]+s[2])&&bez.pointOnLine3D(n[0],n[1],n[2],o[0],o[1],o[2],o[0]+l[0],o[1]+l[1],o[2]+l[2]))&&(e.k[r].to=null,e.k[r].ti=null),n[0]===o[0]&&n[1]===o[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===n.length||n[2]===o[2]&&0===s[2]&&0===l[2])&&(e.k[r].to=null,e.k[r].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var p=e.k[0].s.length;for(this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p),r=0;r<p;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",p)},this.addEffect=addEffect}var PropertyFactory=(ob={getProp:function(t,e,i,a,r){var n;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])n=new MultiDimensionalProperty(t,e,a,r);else switch(i){case 0:n=new KeyframedValueProperty(t,e,a,r);break;case 1:n=new KeyframedMultidimensionalProperty(t,e,a,r)}else n=new ValueProperty(t,e,a,r);return n.effectsSequence.length&&r.addDynamicProperty(n),n}},ob),ob;function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var 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(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},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(t,e,i,a,r){var n;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[]}(!n[a]||n[a]&&!r)&&(n[a]=pointPool.newElement()),n[a][0]=t,n[a][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,a,r,n,o,s){this.setXYAt(t,e,"v",o,s),this.setXYAt(i,a,"o",o,s),this.setXYAt(r,n,"i",o,s)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,a=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],a[0][0],a[0][1],i[0][0],i[0][1],0,!1),r=1);var n,o=this._length-1,s=this._length;for(n=r;n<s;n+=1)t.setTripleAt(e[o][0],e[o][1],a[o][0],a[o][1],i[o][0],i[o][1],n,!1),o-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,i=t._length;for(e=0;e<i;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}),factory.clone=function(t){var e,i=factory.newElement(),a=void 0===t._length?t.v.length:t._length;for(i.setLength(a),i.c=t.c,e=0;e<a;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:function(){return e?a[e-=1]:new ShapeCollection},release:function(t){var r,n=t._length;for(r=0;r<n;r+=1)shapePool.release(t.shapes[r]);t._length=0,e===i&&(a=pooling.double(a),i*=2),a[e]=t,e+=1}},e=0,i=4,a=createSizedArray(i);return t}(),ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var a,r,n,o,s,l,h,p,u,c=i.lastIndex,d=this.keyframes;if(t<d[0].t-this.offsetTime)a=d[0].s[0],n=!0,c=0;else if(t>=d[d.length-1].t-this.offsetTime)a=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],n=!0;else{for(var f,m,y,g=c,b=d.length-1,v=!0;v&&(f=d[g],!((m=d[g+1]).t-this.offsetTime>t));)g<b-1?g+=1:v=!1;if(y=this.keyframesMetadata[g]||{},c=g,!(n=1===f.h)){if(t>=m.t-this.offsetTime)p=1;else if(t<f.t-this.offsetTime)p=0;else{var _;y.__fnct?_=y.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,y.__fnct=_),p=_((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}r=m.s?m.s[0]:f.e[0]}a=f.s[0]}for(l=e._length,h=a.i[0].length,i.lastIndex=c,o=0;o<l;o+=1)for(s=0;s<h;s+=1)u=n?a.i[o][s]:a.i[o][s]+(r.i[o][s]-a.i[o][s])*p,e.i[o][s]=u,u=n?a.o[o][s]:a.o[o][s]+(r.o[o][s]-a.o[o][s])*p,e.o[o][s]=u,u=n?a.v[o][s]:a.v[o][s]+(r.v[o][s]-a.v[o][s])*p,e.v[o][s]=u}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<i&&e<i||r>a&&e>a)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function a(){this.paths=this.localShapeCollection}function r(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,a=t._length;for(i=0;i<a;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),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 t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(r),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 s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,r,n){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===n?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=a,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=n,o.prototype.setVValue=r,o.prototype.addEffect=s,l.prototype.getValue=n,l.prototype.interpolateShape=e,l.prototype.setVValue=r,l.prototype.addEffect=s;var h=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],a=this.s.v[0]/2,r=this.s.v[1]/2,n=3!==this.d,o=this.v;o.v[0][0]=e,o.v[0][1]=i-r,o.v[1][0]=n?e+a:e-a,o.v[1][1]=i,o.v[2][0]=e,o.v[2][1]=i+r,o.v[3][0]=n?e-a:e+a,o.v[3][1]=i,o.i[0][0]=n?e-a*t:e+a*t,o.i[0][1]=i-r,o.i[1][0]=n?e+a:e-a,o.i[1][1]=i-r*t,o.i[2][0]=n?e+a*t:e-a*t,o.i[2][1]=i+r,o.i[3][0]=n?e-a:e+a,o.i[3][1]=i+r*t,o.o[0][0]=n?e+a*t:e-a*t,o.o[0][1]=i-r,o.o[1][0]=n?e+a:e-a,o.o[1][1]=i+r*t,o.o[2][0]=n?e-a*t:e+a*t,o.o[2][1]=i+r,o.o[3][0]=n?e-a:e+a,o.o[3][1]=i-r*t}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.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 t.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,a,r=2*Math.floor(this.pt.v),n=2*Math.PI/r,o=!0,s=this.or.v,l=this.ir.v,h=this.os.v,p=this.is.v,u=2*Math.PI*s/(2*r),c=2*Math.PI*l/(2*r),d=-Math.PI/2;d+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){i=o?h:p,a=o?u:c;var m=(e=o?s:l)*Math.cos(d),y=e*Math.sin(d),g=0===m&&0===y?0:y/Math.sqrt(m*m+y*y),b=0===m&&0===y?0:-m/Math.sqrt(m*m+y*y);m+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(m,y,m-g*a*i*f,y-b*a*i*f,m+g*a*i*f,y+b*a*i*f,t,!0),o=!o,d+=n*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,a=this.or.v,r=this.os.v,n=2*Math.PI*a/(4*e),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=a*Math.cos(o),h=a*Math.sin(o),p=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),u=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-p*n*r*s,h-u*n*r*s,l+p*n*r*s,h+u*n*r*s,t,!0),o+=i*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,a=this.s.v[1]/2,r=bmMin(i,a,this.r.v),n=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-a+r,t+i,e-a+r,t+i,e-a+n,0,!0),this.v.setTripleAt(t+i,e+a-r,t+i,e+a-n,t+i,e+a-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+a,t+i-r,e+a,t+i-n,e+a,2,!0),this.v.setTripleAt(t-i+r,e+a,t-i+n,e+a,t-i+r,e+a,3,!0),this.v.setTripleAt(t-i,e+a-r,t-i,e+a-r,t-i,e+a-n,4,!0),this.v.setTripleAt(t-i,e-a+r,t-i,e-a+n,t-i,e-a+r,5,!0),this.v.setTripleAt(t-i+r,e-a,t-i+r,e-a,t-i+n,e-a,6,!0),this.v.setTripleAt(t+i-r,e-a,t+i-n,e-a,t+i-r,e-a,7,!0)):(this.v.setTripleAt(t-i,e+a,t-i+n,e+a,t-i,e+a,2),this.v.setTripleAt(t-i,e-a,t-i,e-a+n,t-i,e-a,3))):(this.v.setTripleAt(t+i,e-a+r,t+i,e-a+n,t+i,e-a+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-a,t+i-r,e-a,t+i-n,e-a,1,!0),this.v.setTripleAt(t-i+r,e-a,t-i+n,e-a,t-i+r,e-a,2,!0),this.v.setTripleAt(t-i,e-a+r,t-i,e-a+r,t-i,e-a+n,3,!0),this.v.setTripleAt(t-i,e+a-r,t-i,e+a-n,t-i,e+a-r,4,!0),this.v.setTripleAt(t-i+r,e+a,t-i+r,e+a,t-i+n,e+a,5,!0),this.v.setTripleAt(t+i-r,e+a,t+i-n,e+a,t+i-r,e+a,6,!0),this.v.setTripleAt(t+i,e+a-r,t+i,e+a-r,t+i,e+a-n,7,!0)):(this.v.setTripleAt(t-i,e-a,t-i+n,e-a,t-i,e-a,1,!0),this.v.setTripleAt(t-i,e+a,t-i,e+a-n,t-i,e+a,2,!0),this.v.setTripleAt(t+i,e+a,t+i-n,e+a,t+i,e+a,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],t),t}(),c={getShapeProp:function(t,e,i){var a;return 3===i||4===i?a=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new o(t,e,i):5===i?a=new u(t,e):6===i?a=new h(t,e):7===i&&(a=new p(t,e)),a.k&&t.addDynamicProperty(a),a},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}};return c}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,a=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function n(i){if(0===i)return this;var a=t(i),r=e(i);return this._t(a,-r,0,0,r,a,0,0,0,0,1,0,0,0,0,1)}function o(i){if(0===i)return this;var a=t(i),r=e(i);return this._t(1,0,0,0,0,a,-r,0,0,r,a,0,0,0,0,1)}function s(i){if(0===i)return this;var a=t(i),r=e(i);return this._t(a,0,r,0,0,1,0,0,-r,0,a,0,0,0,0,1)}function l(i){if(0===i)return this;var a=t(i),r=e(i);return this._t(a,-r,0,0,r,a,0,0,0,0,1,0,0,0,0,1)}function h(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(i(t),i(e))}function u(a,r){var n=t(r),o=e(r);return this._t(n,o,0,0,-o,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(a),1,0,0,0,0,1,0,0,0,0,1)._t(n,-o,0,0,o,n,0,0,0,0,1,0,0,0,0,1)}function c(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function d(t,e,i,a,r,n,o,s,l,h,p,u,c,d,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=a,this.props[4]=r,this.props[5]=n,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=h,this.props[10]=p,this.props[11]=u,this.props[12]=c,this.props[13]=d,this.props[14]=f,this.props[15]=m,this}function f(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function m(t,e,i,a,r,n,o,s,l,h,p,u,c,d,f,m){var y=this.props;if(1===t&&0===e&&0===i&&0===a&&0===r&&1===n&&0===o&&0===s&&0===l&&0===h&&1===p&&0===u)return y[12]=y[12]*t+y[15]*c,y[13]=y[13]*n+y[15]*d,y[14]=y[14]*p+y[15]*f,y[15]*=m,this._identityCalculated=!1,this;var g=y[0],b=y[1],v=y[2],_=y[3],x=y[4],k=y[5],S=y[6],w=y[7],E=y[8],P=y[9],C=y[10],T=y[11],A=y[12],F=y[13],D=y[14],M=y[15];return y[0]=g*t+b*r+v*l+_*c,y[1]=g*e+b*n+v*h+_*d,y[2]=g*i+b*o+v*p+_*f,y[3]=g*a+b*s+v*u+_*m,y[4]=x*t+k*r+S*l+w*c,y[5]=x*e+k*n+S*h+w*d,y[6]=x*i+k*o+S*p+w*f,y[7]=x*a+k*s+S*u+w*m,y[8]=E*t+P*r+C*l+T*c,y[9]=E*e+P*n+C*h+T*d,y[10]=E*i+P*o+C*p+T*f,y[11]=E*a+P*s+C*u+T*m,y[12]=A*t+F*r+D*l+M*c,y[13]=A*e+F*n+D*h+M*d,y[14]=A*i+F*o+D*p+M*f,y[15]=A*a+F*s+D*u+M*m,this._identityCalculated=!1,this}function y(t){var e=t.props;return this.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])}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 b(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function x(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function k(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function S(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function w(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function E(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,a=-this.props[4]/t,r=this.props[0]/t,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,s=new Matrix;return s.props[0]=e,s.props[1]=i,s.props[4]=a,s.props[5]=r,s.props[12]=n,s.props[13]=o,s}function P(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function C(t){var e,i=t.length,a=[];for(e=0;e<i;e+=1)a[e]=P(t[e]);return a}function T(t,e,i){var a=createTypedArray("float32",6);if(this.isIdentity())a[0]=t[0],a[1]=t[1],a[2]=e[0],a[3]=e[1],a[4]=i[0],a[5]=i[1];else{var r=this.props[0],n=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],h=this.props[13];a[0]=t[0]*r+t[1]*o+l,a[1]=t[0]*n+t[1]*s+h,a[2]=e[0]*r+e[1]*o+l,a[3]=e[0]*n+e[1]*s+h,a[4]=i[0]*r+i[1]*o+l,a[5]=i[0]*n+i[1]*s+h}return a}function A(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function F(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function D(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=a(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function M(t){return t<1e-6&&t>0||t>-1e-6&&t<0?a(1e4*t)/1e4:t}function I(){var t=this.props;return"matrix("+M(t[0])+","+M(t[1])+","+M(t[4])+","+M(t[5])+","+M(t[12])+","+M(t[13])+")"}return function(){this.reset=r,this.rotate=n,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=p,this.skewFromAxis=u,this.shear=h,this.scale=c,this.setTransform=d,this.translate=f,this.transform=m,this.multiply=y,this.applyToPoint=x,this.applyToX=k,this.applyToY=S,this.applyToZ=w,this.applyToPointArray=A,this.applyToTriplePoints=T,this.applyToPointStringified=F,this.toCSS=D,this.to2dCSS=I,this.clone=v,this.cloneFromProps=_,this.equals=b,this.inversePoints=C,this.inversePoint=P,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){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(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var a=e[i].split("=");if(decodeURIComponent(a[0])==t)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.13.0";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(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,a){return new e[t](i,a)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),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(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,a,r){var n=[];e<=1?n.push({s:t,e:e}):t>=1?n.push({s:t-1,e:e-1}):(n.push({s:t,e:1}),n.push({s:0,e:e-1}));var o,s,l=[],h=n.length;for(o=0;o<h;o+=1){var p,u;(s=n[o]).e*r<a||s.s*r>a+i||(p=s.s*r<=a?0:(s.s*r-a)/i,u=s.e*r>=a+i?1:(s.e*r-a)/i,l.push([p,u]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i,a,r;if(this._mdf||t){var n=this.o.v%360/360;if(n<0&&(n+=1),(e=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(i=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var o=e;e=i,i=o}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var s,l,h,p,u,c=this.shapes.length,d=0;if(i===e)for(r=0;r<c;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(r=0;r<c;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var f,m,y=[];for(r=0;r<c;r+=1)if((f=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(l=(a=f.shape.paths)._length,u=0,!f.shape._mdf&&f.pathsData.length)u=f.totalShapeLength;else{for(h=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)p=bez.getSegmentsLength(a.shapes[s]),h.push(p),u+=p.totalLength;f.totalShapeLength=u,f.pathsData=h}d+=u,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var g,b=e,v=i,_=0;for(r=c-1;r>=0;r-=1)if((f=this.shapes[r]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&c>1?(g=this.calculateShapeEdges(e,i,f.totalShapeLength,_,d),_+=f.totalShapeLength):g=[[b,v]],l=g.length,s=0;s<l;s+=1){b=g[s][0],v=g[s][1],y.length=0,v<=1?y.push({s:f.totalShapeLength*b,e:f.totalShapeLength*v}):b>=1?y.push({s:f.totalShapeLength*(b-1),e:f.totalShapeLength*(v-1)}):(y.push({s:f.totalShapeLength*b,e:f.totalShapeLength}),y.push({s:0,e:f.totalShapeLength*(v-1)}));var x=this.addShapes(f,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var k=x.pop();this.addPaths(x,m),x=this.addShapes(f,y[1],k)}else this.addPaths(x,m),x=this.addShapes(f,y[1]);this.addPaths(x,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var i,a=t.length;for(i=0;i<a;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,a,r,n,o){r.setXYAt(e[0],e[1],"o",n),r.setXYAt(i[0],i[1],"i",n+1),o&&r.setXYAt(t[0],t[1],"v",n),r.setXYAt(a[0],a[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,a){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),a&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var a,r,n,o,s,l,h,p,u=t.pathsData,c=t.shape.paths.shapes,d=t.shape.paths._length,f=0,m=[],y=!0;for(i?(s=i._length,p=i._length):(i=shapePool.newElement(),s=0,p=0),m.push(i),a=0;a<d;a+=1){for(l=u[a].lengths,i.c=c[a].c,n=c[a].c?l.length:l.length+1,r=1;r<n;r+=1)if(f+(o=l[r-1]).addedLength<e.s)f+=o.addedLength,i.c=!1;else{if(f>e.e){i.c=!1;break}e.s<=f&&e.e>=f+o.addedLength?(this.addSegment(c[a].v[r-1],c[a].o[r-1],c[a].i[r],c[a].v[r],i,s,y),y=!1):(h=bez.getNewSegment(c[a].v[r-1],c[a].v[r],c[a].o[r-1],c[a].i[r],(e.s-f)/o.addedLength,(e.e-f)/o.addedLength,l[r-1]),this.addSegmentFromArray(h,i,s,y),y=!1,i.c=!1),f+=o.addedLength,s+=1}if(c[a].c&&l.length){if(o=l[r-1],f<=e.e){var g=l[r-1].addedLength;e.s<=f&&e.e>=f+g?(this.addSegment(c[a].v[r-1],c[a].o[r-1],c[a].i[0],c[a].v[0],i,s,y),y=!1):(h=bez.getNewSegment(c[a].v[r-1],c[a].v[0],c[a].o[r-1],c[a].i[0],(e.s-f)/g,(e.e-f)/g,l[r-1]),this.addSegmentFromArray(h,i,s,y),y=!1,i.c=!1)}else i.c=!1;f+=o.addedLength,s+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],"i",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;a<d-1&&(i=shapePool.newElement(),y=!0,m.push(i),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i=e/100,a=[0,0],r=t._length,n=0;for(n=0;n<r;n+=1)a[0]+=t.v[n][0],a[1]+=t.v[n][1];a[0]/=r,a[1]/=r;var o,s,l,h,p,u,c=shapePool.newElement();for(c.c=t.c,n=0;n<r;n+=1)o=t.v[n][0]+(a[0]-t.v[n][0])*i,s=t.v[n][1]+(a[1]-t.v[n][1])*i,l=t.o[n][0]+(a[0]-t.o[n][0])*-i,h=t.o[n][1]+(a[1]-t.o[n][1])*-i,p=t.i[n][0]+(a[0]-t.i[n][0])*-i,u=t.i[n][1]+(a[1]-t.i[n][1])*-i,c.setTripleAt(o,s,l,h,p,u,n);return c},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,a,r,n,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,a=0;a<r;a+=1)o.addShape(this.processPath(e[a],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var a,r=e.or.k.length;for(a=0;a<r;a+=1)e.or.k[a].to=null,e.or.k[a].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;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,r;if(i=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)/i,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/i,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/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(a=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){a=[],r=[];var n=this.px,o=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(a[0]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),a[1]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),r[0]=n.getValueAtTime(n.keyframes[0].t/i,0),r[1]=o.getValueAtTime(o.keyframes[0].t/i,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(a[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),a[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),r[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0),r[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0)):(a=[n.pv,o.pv],r[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime),r[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime))}else a=r=t;this.v.rotate(-Math.atan2(a[1]-r[1],a[0]-r[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.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(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],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,i,a){return new e(t,i,a)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(0===t)return[];var a=e*e-4*t*i;if(a<0)return[];var r=-e/(2*t);if(0===a)return[r];var n=Math.sqrt(a)/(2*t);return[r-n,r+n]}function polynomialCoefficients(t,e,i,a){return[3*e-t-3*i+a,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,a,r){r&&pointEqual(t,e)&&(e=lerpPoint(t,a,1/3)),r&&pointEqual(i,a)&&(i=lerpPoint(t,a,2/3));var n=polynomialCoefficients(t[0],e[0],i[0],a[0]),o=polynomialCoefficients(t[1],e[1],i[1],a[1]);this.a=[n[0],o[0]],this.b=[n[1],o[1]],this.c=[n[2],o[2]],this.d=[n[3],o[3]],this.points=[t,e,i,a]}function extrema(t,e){var i=t.points[0][e],a=t.points[t.points.length-1][e];if(i>a){var r=a;a=i,i=r}for(var n=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<n.length;o+=1)if(n[o]>0&&n[o]<1){var s=t.point(n[o])[e];s<i?i=s:s>a&&(a=s)}return{min:i,max:a}}function intersectData(t,e,i){var a=t.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,a,r,n){if(boxIntersect(t,e))if(i>=n||t.width<=a&&t.height<=a&&e.width<=a&&e.height<=a)r.push([t.t,e.t]);else{var o=splitData(t),s=splitData(e);intersectsImpl(o[0],s[0],i+1,a,r,n),intersectsImpl(o[0],s[1],i+1,a,r,n),intersectsImpl(o[1],s[0],i+1,a,r,n),intersectsImpl(o[1],s[1],i+1,a,r,n)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,a){var r=[t[0],t[1],1],n=[e[0],e[1],1],o=[i[0],i[1],1],s=[a[0],a[1],1],l=crossProduct(crossProduct(r,n),crossProduct(o,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,a,r,n,o){var s=i-Math.PI/2,l=i+Math.PI/2,h=e[0]+Math.cos(i)*a*r,p=e[1]-Math.sin(i)*a*r;t.setTripleAt(h,p,h+Math.cos(s)*n,p-Math.sin(s)*n,h+Math.cos(l)*o,p-Math.sin(l)*o,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],a=.5*-Math.PI;return[Math.cos(a)*i[0]-Math.sin(a)*i[1],Math.sin(a)*i[0]+Math.cos(a)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,a=(e+1)%t.length(),r=getPerpendicularVector(t.v[i],t.v[a]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function zigZagCorner(t,e,i,a,r,n,o){var s=getProjectingAngle(e,i),l=e.v[i%e._length],h=e.v[0===i?e._length-1:i-1],p=e.v[(i+1)%e._length],u=2===n?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,c=2===n?Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)):0;setPoint(t,e.v[i%e._length],s,o,a,c/(2*(r+1)),u/(2*(r+1)))}function zigZagSegment(t,e,i,a,r,n){for(var o=0;o<a;o+=1){var s=(o+1)/(a+1),l=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,h=e.normalAngle(s);setPoint(t,e.point(s),h,n,i,l/(2*(a+1)),l/(2*(a+1))),n=-n}return n}function linearOffset(t,e,i){var a=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,a,i),polarOffset(e,a,i)]}function offsetSegment(t,e){var i,a,r,n,o,s,l;i=(l=linearOffset(t.points[0],t.points[1],e))[0],a=l[1],r=(l=linearOffset(t.points[1],t.points[2],e))[0],n=l[1],o=(l=linearOffset(t.points[2],t.points[3],e))[0],s=l[1];var h=lineIntersection(i,a,r,n);null===h&&(h=a);var p=lineIntersection(o,s,r,n);return null===p&&(p=o),new PolynomialBezier(i,h,p,s)}function joinLines(t,e,i,a,r){var n=e.points[3],o=i.points[0];if(3===a)return n;if(pointEqual(n,o))return n;if(2===a){var s=-e.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,h=lineIntersection(n,polarOffset(n,s+Math.PI/2,100),o,polarOffset(o,s+Math.PI/2,100)),p=h?pointDistance(h,n):pointDistance(n,o)/2,u=polarOffset(n,s,2*p*roundCorner);return t.setXYAt(u[0],u[1],"o",t.length()-1),u=polarOffset(o,l,2*p*roundCorner),t.setTripleAt(o[0],o[1],o[0],o[1],u[0],u[1],t.length()),o}var c=lineIntersection(pointEqual(n,e.points[2])?e.points[0]:e.points[2],n,o,pointEqual(o,i.points[1])?i.points[3]:i.points[1]);return c&&pointDistance(c,n)<r?(t.setTripleAt(c[0],c[1],c[0],c[1],c[0],c[1],t.length()),c):n}function getIntersection(t,e){var i=t.intersections(e);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),a=e.slice(),r=getIntersection(t[t.length-1],e[0]);return r&&(i[t.length-1]=t[t.length-1].split(r[0])[0],a[0]=e[0].split(r[1])[1]),t.length>1&&e.length>1&&(r=getIntersection(t[0],e[e.length-1]))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[i,a]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,a,r,n,o=t.inflectionPoints();if(0===o.length)return[offsetSegment(t,e)];if(1===o.length||floatEqual(o[1],1))return i=(r=t.split(o[0]))[0],a=r[1],[offsetSegment(i,e),offsetSegment(a,e)];i=(r=t.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return n=(r=r[1].split(s))[0],a=r[1],[offsetSegment(i,e),offsetSegment(n,e),offsetSegment(a,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",a="normal",r=e.length,n=0;n<r;n+=1)switch(e[n].toLowerCase()){case"italic":a="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:a,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,a,r,n){var o=n?-1:1,s=a.s.v[0]+(1-a.s.v[0])*(1-r),l=a.s.v[1]+(1-a.s.v[1])*(1-r);t.translate(a.p.v[0]*o*r,a.p.v[1]*o*r,a.p.v[2]),e.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),e.rotate(-a.r.v*o*r),e.translate(a.a.v[0],a.a.v[1],a.a.v[2]),i.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),i.scale(n?1/s:s,n?1/l:l),i.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,a){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,a=t.length;for(i=0;i<a;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,a,r,n,o=!1;if(this._mdf||t){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(n=0,a=0;a<=this._groups.length-1;a+=1){if(s=n<l,this._groups[a]._render=s,this.changeGroupRender(this._groups[a].it,s),!s){var p=this.elemsData[a].it,u=p[p.length-1];0!==u.transform.op.v?(u.transform.op._mdf=!0,u.transform.op.v=0):u.transform.op._mdf=!1}n+=1}this._currentCopies=l;var c=this.o.v,d=c%1,f=c>0?Math.floor(c):Math.ceil(c),m=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b,v,_=0;if(c>0){for(;_<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),_+=d)}else if(c<0){for(;_>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),_-=d)}for(a=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,n=this._currentCopies;n;){if(v=(i=(e=this.elemsData[a].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),0!==_){for((0!==a&&1===r||a!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),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(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(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),b=0;b<v;b+=1)i[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<v;b+=1)i[b]=this.matrix.props[b];_+=1,n-=1,a+=r}}else for(n=this._currentCopies,a=0,r=1;n;)i=(e=this.elemsData[a].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,n-=1,a+=r;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i,a=shapePool.newElement();a.c=t.c;var r,n,o,s,l,h,p,u,c,d,f,m,y=t._length,g=0;for(i=0;i<y;i+=1)r=t.v[i],o=t.o[i],n=t.i[i],r[0]===o[0]&&r[1]===o[1]&&r[0]===n[0]&&r[1]===n[1]?0!==i&&i!==y-1||t.c?(s=0===i?t.v[y-1]:t.v[i-1],h=(l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)))?Math.min(l/2,e)/l:0,p=f=r[0]+(s[0]-r[0])*h,u=m=r[1]-(r[1]-s[1])*h,c=p-(p-r[0])*roundCorner,d=u-(u-r[1])*roundCorner,a.setTripleAt(p,u,c,d,f,m,g),g+=1,s=i===y-1?t.v[0]:t.v[i+1],h=(l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)))?Math.min(l/2,e)/l:0,p=c=r[0]+(s[0]-r[0])*h,u=d=r[1]+(s[1]-r[1])*h,f=p-(p-r[0])*roundCorner,m=u-(u-r[1])*roundCorner,a.setTripleAt(p,u,c,d,f,m,g),g+=1):(a.setTripleAt(r[0],r[1],o[0],o[1],n[0],n[1],g),g+=1):(a.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],g),g+=1);return a},RoundCornersModifier.prototype.processShapes=function(t){var e,i,a,r,n,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,a=0;a<r;a+=1)o.addShape(this.processPath(e[a],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var a=Math.sqrt(i);return floatZero(a)?a>0&&a<1?[e]:[]:[e-a,e+a].filter(function(t){return t>0&&t<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),a=lerpPoint(this.points[2],this.points[3],t),r=lerpPoint(e,i,t),n=lerpPoint(i,a,t),o=lerpPoint(r,n,t);return[new PolynomialBezier(this.points[0],e,r,o,!0),new PolynomialBezier(o,n,a,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var a=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,a,i),a},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,a){var r=t._length,n=shapePool.newElement();if(n.c=t.c,t.c||(r-=1),0===r)return n;var o=-1,s=PolynomialBezier.shapeSegment(t,0);zigZagCorner(n,t,0,e,i,a,o);for(var l=0;l<r;l+=1)o=zigZagSegment(n,s,e,i,a,-o),s=l!==r-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%r):null,zigZagCorner(n,t,l+1,e,i,a,o);return n},ZigZagModifier.prototype.processShapes=function(t){var e,i,a,r,n,o,s=this.shapes.length,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,a=0;a<r;a+=1)o.addShape(this.processPath(e[a],l,h,p));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,a){var r=shapePool.newElement();r.c=t.c;var n,o,s,l=t.length();t.c||(l-=1);var h=[];for(n=0;n<l;n+=1)s=PolynomialBezier.shapeSegment(t,n),h.push(offsetSegmentSplit(s,e));if(!t.c)for(n=l-1;n>=0;n-=1)s=PolynomialBezier.shapeSegmentInverted(t,n),h.push(offsetSegmentSplit(s,e));h=pruneIntersections(h);var p=null,u=null;for(n=0;n<h.length;n+=1){var c=h[n];for(u&&(p=joinLines(r,u,c[0],i,a)),u=c[c.length-1],o=0;o<c.length;o+=1)s=c[o],p&&pointEqual(s.points[0],p)?r.setXYAt(s.points[1][0],s.points[1][1],"o",r.length()-1):r.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],r.length()),r.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],r.length()),p=s.points[3]}return h.length&&joinLines(r,u,h[0][0],i,a),r},OffsetPathModifier.prototype.processShapes=function(t){var e,i,a,r,n,o,s=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,p=this.lineJoin;if(0!==l)for(i=0;i<s;i+=1){if(o=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,a=0;a<r;a+=1)o.addShape(this.processPath(e[a],l,p,h));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,a=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function r(t,e){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var a=createTag("span");a.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(a),document.body.appendChild(i);var r=a.offsetWidth;return a.style.fontFamily=function(t){var e,i=t.split(","),a=i.length,r=[];for(e=0;e<a;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&r.push(i[e]);return r.join(",")}(t)+", "+e,{node:a,w:r,parent:i}}function n(t,e){var i,a=document.body&&e?"svg":"canvas",r=getFontProperties(t);if("svg"===a){var n=createNS("text");n.style.fontSize="100px",n.setAttribute("font-family",t.fFamily),n.setAttribute("font-style",r.style),n.setAttribute("font-weight",r.weight),n.textContent="1",t.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",t.fClass)):n.style.fontFamily=t.fFamily,e.appendChild(n),i=n}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=r.style+" "+r.weight+" 100px "+t.fFamily,i=o}return{measureText:function(t){return"svg"===a?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function o(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var a=t.charCodeAt(1);a>=56320&&a<=57343&&(e=1024*(i-55296)+a-56320+65536)}return e}function s(t){var e=o(t);return e>=127462&&e<=127487}var l=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)};l.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==a.indexOf(i)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return s(t.substr(0,2))&&s(t.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var a=o(t.substr(e,2));if(a!==i)return!1;var r=0;for(e+=2;r<5;){if((a=o(t.substr(e,2)))<917601||a>917626)return!1;r+=1,e+=2}return 917631===o(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=i;var h={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,a,r=t.length,n=this.chars.length;for(e=0;e<r;e+=1){for(i=0,a=!1;i<n;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(a=!0),i+=1;a||(this.chars.push(t[e]),n+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach(function(t){t.helper=n(t),t.cache={}}),void(this.fonts=t.list);var i,a=t.list,o=a.length,s=o;for(i=0;i<o;i+=1){var l,h,p=!0;if(a[i].loaded=!1,a[i].monoCase=r(a[i].fFamily,"monospace"),a[i].sansCase=r(a[i].fFamily,"sans-serif"),a[i].fPath){if("p"===a[i].fOrigin||3===a[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+a[i].fFamily+'"], style[f-origin="3"][f-family="'+a[i].fFamily+'"]')).length>0&&(p=!1),p){var u=createTag("style");u.setAttribute("f-forigin",a[i].fOrigin),u.setAttribute("f-origin",a[i].origin),u.setAttribute("f-family",a[i].fFamily),u.type="text/css",u.innerText="@font-face {font-family: "+a[i].fFamily+"; font-style: normal; src: url('"+a[i].fPath+"');}",e.appendChild(u)}}else if("g"===a[i].fOrigin||1===a[i].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[i].fPath)&&(p=!1);if(p){var c=createTag("link");c.setAttribute("f-forigin",a[i].fOrigin),c.setAttribute("f-origin",a[i].origin),c.type="text/css",c.rel="stylesheet",c.href=a[i].fPath,document.body.appendChild(c)}}else if("t"===a[i].fOrigin||2===a[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)a[i].fPath===l[h].src&&(p=!1);if(p){var d=createTag("link");d.setAttribute("f-forigin",a[i].fOrigin),d.setAttribute("f-origin",a[i].origin),d.setAttribute("rel","stylesheet"),d.setAttribute("href",a[i].fPath),e.appendChild(d)}}}else a[i].loaded=!0,s-=1;a[i].helper=n(a[i],e),a[i].cache={},this.fonts.push(a[i])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,a){for(var r=0,n=this.chars.length;r<n;){if(this.chars[r].ch===e&&this.chars[r].style===i&&this.chars[r].fFamily===a)return this.chars[r];r+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,a)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var a=this.getFontByName(e),r=t;if(!a.cache[r]){var n=a.helper;if(" "===t){var o=n.measureText("|"+t+"|"),s=n.measureText("||");a.cache[r]=(o-s)/100}else a.cache[r]=n.measureText(t)/100}return a.cache[r]*i},checkLoadedFonts:function(){var t,e,i,a=this.fonts.length,r=a;for(t=0;t<a;t+=1)this.fonts[t].loaded?r-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(r-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(r-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==r&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=h,l}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i,a=t.ef||[];this.effectElements=[];var r,n=a.length;for(i=0;i<n;i+=1)r=new GroupEffect(a[i],e),this.effectElements.push(r)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),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=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var a,r=this.data.ef.length,n=this.data.ef;for(i=0;i<r;i+=1){switch(a=null,n[i].ty){case 0:a=new SliderEffect(n[i],e,this);break;case 1:a=new AngleEffect(n[i],e,this);break;case 2:a=new ColorEffect(n[i],e,this);break;case 3:a=new PointEffect(n[i],e,this);break;case 4:case 7:a=new CheckboxEffect(n[i],e,this);break;case 10:a=new LayerIndexEffect(n[i],e,this);break;case 11:a=new MaskIndexEffect(n[i],e,this);break;case 5:a=new EffectsManager(n[i],e);break;default:a=new NoValueEffect(n[i])}a&&this.effectElements.push(a)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),i=t("effects"),a=t("shape"),r=t("text"),n=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),0===this.data.ty||this.data.xt?this.compInterface=n(this):4===this.data.ty?(this.layerInterface.shapeInterface=a(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=r(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,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(t,e){var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},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(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},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(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*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(t){var e,i,a=this.layers.length;for(this.completeLayers=!0,e=a-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,a=t.length,r=this.layers.length;for(e=0;e<a;e+=1)for(i=0;i<r;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var a=this.elements,r=this.layers,n=0,o=r.length;n<o;)r[n].ind==e&&(a[n]&&!0!==a[n]?(i.push(a[n]),a[n].setAsParent(),void 0!==r[n].parent?this.buildElementParenting(t,r[n].parent,i):t.setHierarchy(i)):(this.buildItem(n),this.addPendingElement(t))),n+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var a=this.createComp(t[e]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var a,r=this.elements.length;for(a=0;a<r;a+=1)if(this.elements[a].data.nm===i){e=this.elements[a];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a,r,n=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l,h,p,u,c,d=this.masksProperties,f=0,m=[],y=createElementID(),g="clipPath",b="clip-path";for(a=0;a<o;a+=1)if(("a"!==d[a].mode&&"n"!==d[a].mode||d[a].inv||100!==d[a].o.k||d[a].o.x)&&(g="mask",b="mask"),"s"!==d[a].mode&&"i"!==d[a].mode||0!==f?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),m.push(h)),r=createNS("path"),"n"===d[a].mode)this.viewData[a]={op:PropertyFactory.getProp(this.element,d[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[a],3),elem:r,lastPath:""},n.appendChild(r);else{var v;if(f+=1,r.setAttribute("fill","s"===d[a].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==d[a].x.k?(g="mask",b="mask",c=PropertyFactory.getProp(this.element,d[a].x,0,null,this.element),v=createElementID(),(p=createNS("filter")).setAttribute("id",v),(u=createNS("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),p.appendChild(u),n.appendChild(p),r.setAttribute("stroke","s"===d[a].mode?"#000000":"#ffffff")):(u=null,c=null),this.storedData[a]={elem:r,x:c,expan:u,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===d[a].mode){l=m.length;var _=createNS("g");for(s=0;s<l;s+=1)_.appendChild(m[s]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",y+"_"+f),x.appendChild(r),n.appendChild(x),_.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+f+")"),m.length=0,m.push(_)}else m.push(r);d[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,d[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[a],3),invRect:h},this.viewData[a].prop.k||this.drawPath(d[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(g),o=m.length,a=0;a<o;a+=1)this.maskElement.appendChild(m[a]);f>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+y+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<a;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<a;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var a=this.localTransforms[t].matrix;i.multiply(a)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var r=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)r*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=r}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,a=!0,r=this.comp;a;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):a=!1;var n,o=e.length;for(i=0;i<o;i+=1)n=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-n[0],t[1]-n[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,a=this.masksProperties.length;for(e=0;e<a;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,i){var a,r,n=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,a=1;a<r;a+=1)n+=" C"+e.o[a-1][0]+","+e.o[a-1][1]+" "+e.i[a][0]+","+e.i[a][1]+" "+e.v[a][0]+","+e.v[a][1];if(e.c&&r>1&&(n+=" C"+e.o[a-1][0]+","+e.o[a-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==n){var o="";i.elem&&(e.c&&(o=t.inv?this.solidPath+n:n),i.elem.setAttribute("d",o)),i.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 t={createFilter:function(t,e){var i=createNS("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i,a="SourceGraphic",r=t.data.ef?t.data.ef.length:0,n=createElementID(),o=filtersFactory.createFilter(n,!0),s=0;for(this.filters=[],e=0;e<r;e+=1){i=null;var l=t.data.ef[e].ty;registeredEffects$1[l]&&(i=new(0,registeredEffects$1[l].effect)(o,t.effectsManager.effectElements[e],t,idPrefix+s,a),a=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),i&&this.filters.push(i)}s&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,i){registeredEffects$1[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,i=this.filters.length,a=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&a.push(this.filters[e]);return a},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 t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=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 i=createNS("clipPath"),a=createNS("path");a.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var r=createElementID();if(i.setAttribute("id",r),i.appendChild(a),this.globalData.defs.appendChild(i),this.checkMasks()){var n=createNS("g");n.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),n.appendChild(this.layerElement),this.transformedElement=n,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},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),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,a,r,n=this.layerId+"_"+t;if(1===t||3===t){var o=createNS("mask");o.setAttribute("id",n),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(a=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(a),this.globalData.defs.appendChild(o),featureSupport.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(a),o.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var s=createNS("mask");s.setAttribute("id",n),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),e=createElementID(),i=filtersFactory.createFilter(e);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),i.appendChild(h);var p=createNS("feFuncA");p.setAttribute("type","table"),p.setAttribute("tableValues","1.0 0.0"),h.appendChild(p),this.globalData.defs.appendChild(i);var u=createNS("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(u),(a=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(a),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),l.appendChild(u),r.appendChild(this.layerElement),l.appendChild(r)),this.globalData.defs.appendChild(s)}this.matteMasks[t]=n}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),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.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=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",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,a=e.length;i<a;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,a=i.length;a;)if(i[a-=1].elem===t)return void(i[a].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var a=0,r=t.length;a<r;){if(t[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,a){var r;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(a);var n,o=e.length||0;for(r=0;r<o;r+=1)n=PropertyFactory.getProp(t,e[r].v,0,0,this),this.k=n.k||this.k,this.dataProps[r]={n:e[r].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var a=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},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(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,a=this.o.length/2;i<a;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=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 t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,a,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,a=Math.round(this.prop.v[e]*i),this.c[e]!==a&&(this.c[e]=a,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,a=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==a&&(this.o[e-4*this.data.p]=a,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i=createElementID(),a=createNS(1===e.t?"linearGradient":"radialGradient");a.setAttribute("id",i),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var r,n,o,s=[];for(o=4*e.g.p,n=0;n<o;n+=4)r=createNS("stop"),a.appendChild(r),s.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=a,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,a,r,n=createNS("mask"),o=createNS("path");n.appendChild(o);var s=createElementID(),l=createElementID();n.setAttribute("id",l);var h=createNS(1===t.t?"linearGradient":"radialGradient");h.setAttribute("id",s),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(a=4*t.g.p;a<r;a+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),p.push(i);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=n,this.ost=p,this.maskId=l,e.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,a){if(0===e)return"";var r,n=t.o,o=t.i,s=t.v,l=" M"+a.applyToPointStringified(s[0][0],s[0][1]);for(r=1;r<e;r+=1)l+=" C"+a.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+a.applyToPointStringified(o[r][0],o[r][1])+" "+a.applyToPointStringified(s[r][0],s[r][1]);return i&&e&&(l+=" C"+a.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+a.applyToPointStringified(o[0][0],o[0][1])+" "+a.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix,i={createRenderFunction:function(t){switch(t.ty){case"fl":return o;case"gf":return l;case"gs":return s;case"st":return h;case"sh":case"el":case"rc":case"sr":return n;case"tr":return a;case"no":return r;default:return null}}};function a(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function r(){}function n(i,a,r){var n,o,s,l,h,p,u,c,d,f,m=a.styles.length,y=a.lvl;for(p=0;p<m;p+=1){if(l=a.sh._mdf||r,a.styles[p].lvl<y){for(c=e.reset(),d=y-a.styles[p].lvl,f=a.transformers.length-1;!l&&d>0;)l=a.transformers[f].mProps._mdf||l,d-=1,f-=1;if(l)for(d=y-a.styles[p].lvl,f=a.transformers.length-1;d>0;)c.multiply(a.transformers[f].mProps.v),d-=1,f-=1}else c=t;if(o=(u=a.sh.paths)._length,l){for(s="",n=0;n<o;n+=1)(h=u.shapes[n])&&h._length&&(s+=buildShapeString(h,h._length,h.c,c));a.caches[p]=s}else s=a.caches[p];a.styles[p].d+=!0===i.hd?"":s,a.styles[p]._mdf=l||a.styles[p]._mdf}}function o(t,e,i){var a=e.style;(e.c._mdf||i)&&a.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&a.pElem.setAttribute("fill-opacity",e.o.v)}function s(t,e,i){l(t,e,i),h(0,e,i)}function l(t,e,i){var a,r,n,o,s,l=e.gf,h=e.g._hasOpacity,p=e.s.v,u=e.e.v;if(e.o._mdf||i){var c="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(c,e.o.v)}if(e.s._mdf||i){var d=1===t.t?"x1":"cx",f="x1"===d?"y1":"cy";l.setAttribute(d,p[0]),l.setAttribute(f,p[1]),h&&!e.g._collapsable&&(e.of.setAttribute(d,p[0]),e.of.setAttribute(f,p[1]))}if(e.g._cmdf||i){a=e.cst;var m=e.g.c;for(n=a.length,r=0;r<n;r+=1)(o=a[r]).setAttribute("offset",m[4*r]+"%"),o.setAttribute("stop-color","rgb("+m[4*r+1]+","+m[4*r+2]+","+m[4*r+3]+")")}if(h&&(e.g._omdf||i)){var y=e.g.o;for(n=(a=e.g._collapsable?e.cst:e.ost).length,r=0;r<n;r+=1)o=a[r],e.g._collapsable||o.setAttribute("offset",y[2*r]+"%"),o.setAttribute("stop-opacity",y[2*r+1])}if(1===t.t)(e.e._mdf||i)&&(l.setAttribute("x2",u[0]),l.setAttribute("y2",u[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",u[0]),e.of.setAttribute("y2",u[1])));else if((e.s._mdf||e.e._mdf||i)&&(s=Math.sqrt(Math.pow(p[0]-u[0],2)+Math.pow(p[1]-u[1],2)),l.setAttribute("r",s),h&&!e.g._collapsable&&e.of.setAttribute("r",s)),e.s._mdf||e.e._mdf||e.h._mdf||e.a._mdf||i){s||(s=Math.sqrt(Math.pow(p[0]-u[0],2)+Math.pow(p[1]-u[1],2)));var g=Math.atan2(u[1]-p[1],u[0]-p[0]),b=e.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var v=s*b,_=Math.cos(g+e.a.v)*v+p[0],x=Math.sin(g+e.a.v)*v+p[1];l.setAttribute("fx",_),l.setAttribute("fy",x),h&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",x))}}function h(t,e,i){var a=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(a.pElem.setAttribute("stroke-dasharray",r.dashStr),a.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&a.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&a.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(a.pElem.setAttribute("stroke-width",e.w.v),a.msElem&&a.msElem.setAttribute("stroke-width",e.w.v))}return i}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,a,r,n){this.o=t,this.sw=e,this.sc=i,this.fc=a,this.m=r,this.p=n,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!a,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}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 t,e,i,a,r=this.shapes.length,n=this.stylesList.length,o=[],s=!1;for(i=0;i<n;i+=1){for(a=this.stylesList[i],s=!1,o.length=0,t=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(a)&&(o.push(e),s=e._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,a=new SVGStyleData(t,e),r=a.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,a):"fl"===t.ty?i=new SVGFillStyleData(this,t,a):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,a),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,a)),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(a),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),a=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,a),a},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var a=4;"rc"===t.ty?a=5:"el"===t.ty?a=6:"sr"===t.ty&&(a=7);var r=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,a,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,a=this.animatedContents.length;i<a;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,i=t.styles,a=this.stylesList.length;for(e=0;e<a;e+=1)-1!==i.indexOf(this.stylesList[e])||this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,a,r,n,o){var s,l,h,p,u,c,d=[].concat(n),f=t.length-1,m=[],y=[];for(s=f;s>=0;s-=1){if((c=this.searchProcessedElement(t[s]))?e[s]=i[c-1]:t[s]._render=o,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty||"no"===t[s].ty)c?e[s].style.closed=t[s].hd:e[s]=this.createStyleElement(t[s],r),t[s]._render&&e[s].style.pElem.parentNode!==a&&a.appendChild(e[s].style.pElem),m.push(e[s].style);else if("gr"===t[s].ty){if(c)for(h=e[s].it.length,l=0;l<h;l+=1)e[s].prevViewData[l]=e[s].it[l];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,e[s].gr,r+1,d,o),t[s]._render&&e[s].gr.parentNode!==a&&a.appendChild(e[s].gr)}else"tr"===t[s].ty?(c||(e[s]=this.createTransformElement(t[s],a)),p=e[s].transform,d.push(p)):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?(c||(e[s]=this.createShapeElement(t[s],d,r)),this.setElementStyles(e[s])):"tm"===t[s].ty||"rd"===t[s].ty||"ms"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(c?(u=e[s]).closed=!1:((u=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=u,this.shapeModifiers.push(u)),y.push(u)):"rp"===t[s].ty&&(c?(u=e[s]).closed=!0:(u=ShapeModifiers.getModifier(t[s].ty),e[s]=u,u.init(this,t,s,e),this.shapeModifiers.push(u),o=!1),y.push(u));this.addProcessedElement(t[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=y.length,s=0;s<f;s+=1)y[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,a,r,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 o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,o=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,o=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,o=!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,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,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(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var a;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,n=t||this.data.d.k[this.keysIndex].s;for(a=0;a<r;a+=1)n=i!==this.keysIndex?this.effectsSequence[a](n,n.t):this.effectsSequence[a](this.currentData,n.t);e!==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 t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,a=t.length;i<=a-1&&!(i===a-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,a=[],r=0,n=t.length,o=!1,s=!1,l="";r<n;)o=s,s=!1,e=t.charCodeAt(r),l=t.charAt(r),FontManager.isCombinedCharacter(e)?o=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,r)?l=t.substr(r,14):(i=t.charCodeAt(r+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(l=t.substr(r,2),o=!0):l=FontManager.isFlagEmoji(t.substr(r,4))?t.substr(r,4):t.substr(r,2)):e>56319?(i=t.charCodeAt(r+1),FontManager.isVariationSelector(e)&&(o=!0)):FontManager.isZeroWidthJoiner(e)&&(o=!0,s=!0),o?(a[a.length-1]+=l,o=!1):a.push(l),r+=l.length;return a},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,a,r,n,o,s,l=this.elem.globalData.fontManager,h=this.data,p=[],u=0,c=h.m.g,d=0,f=0,m=0,y=[],g=0,b=0,v=l.getFontByName(t.f),_=0,x=getFontProperties(v);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var k,S=t.tr/1e3*t.finalSize;if(t.sz)for(var w,E,P=!0,C=t.sz[0],T=t.sz[1];P;){w=0,g=0,i=(E=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var A=-1;for(e=0;e<i;e+=1)k=E[e].charCodeAt(0),a=!1," "===E[e]?A=e:13!==k&&3!==k||(g=0,a=!0,w+=t.finalLineHeight||1.2*t.finalSize),l.chars?(s=l.getCharData(E[e],v.fStyle,v.fFamily),_=a?0:s.w*t.finalSize/100):_=l.measureText(E[e],t.f,t.finalSize),g+_>C&&" "!==E[e]?(-1===A?i+=1:e=A,w+=t.finalLineHeight||1.2*t.finalSize,E.splice(e,A===e?1:0,"\r"),A=-1,g=0):(g+=_,g+=S);w+=v.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&T<w?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=E,i=t.finalText.length,P=!1)}g=-S,_=0;var F,D=0;for(e=0;e<i;e+=1)if(a=!1,13===(k=(F=t.finalText[e]).charCodeAt(0))||3===k?(D=0,y.push(g),b=g>b?g:b,g=-2*S,r="",a=!0,m+=1):r=F,l.chars?(s=l.getCharData(F,v.fStyle,l.getFontByName(t.f).fFamily),_=a?0:s.w*t.finalSize/100):_=l.measureText(r,t.f,t.finalSize)," "===F?D+=_+S:(g+=_+S+D,D=0),p.push({l:_,an:_,add:d,n:a,anIndexes:[],val:r,line:m,animatorJustifyOffset:0}),2==c){if(d+=_,""===r||" "===r||e===i-1){for(""!==r&&" "!==r||(d-=_);f<=e;)p[f].an=d,p[f].ind=u,p[f].extra=_,f+=1;u+=1,d=0}}else if(3==c){if(d+=_,""===r||e===i-1){for(""===r&&(d-=_);f<=e;)p[f].an=d,p[f].ind=u,p[f].extra=_,f+=1;d=0,u+=1}}else p[u].ind=u,p[u].extra=0,u+=1;if(t.l=p,b=g>b?g:b,y.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=b,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var M,I,B,R,L=h.a;o=L.length;var z=[];for(n=0;n<o;n+=1){for((M=L[n]).a.sc&&(t.strokeColorAnim=!0),M.a.sw&&(t.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(t.fillColorAnim=!0),R=0,B=M.s.b,e=0;e<i;e+=1)(I=p[e]).anIndexes[n]=R,(1==B&&""!==I.val||2==B&&""!==I.val&&" "!==I.val||3==B&&(I.n||" "==I.val||e==i-1)||4==B&&(I.n||e==i-1))&&(1===M.s.rn&&z.push(R),R+=1);h.a[n].s.totalChars=R;var V,O=-1;if(1===M.s.rn)for(e=0;e<i;e+=1)O!=(I=p[e]).anIndexes[n]&&(O=I.anIndexes[n],V=z.splice(Math.floor(Math.random()*z.length),1)[0]),I.anIndexes[n]=V}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=v.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,i=Math.floor;function a(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return a.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,n=0,o=1,s=1;this.ne.v>0?r=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(r,n,o,s).get,h=0,p=this.finalS,u=this.finalE,c=this.data.sh;if(2===c)h=l(h=u===p?a>=u?1:0:t(0,e(.5/(u-p)+(a-p)/(u-p),1)));else if(3===c)h=l(h=u===p?a>=u?0:1:1-t(0,e(.5/(u-p)+(a-p)/(u-p),1)));else if(4===c)u===p?h=0:(h=t(0,e(.5/(u-p)+(a-p)/(u-p),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===c){if(u===p)h=0;else{var d=u-p,f=-d/2+(a=e(t(0,a+.5-p),u-p)),m=d/2;h=Math.sqrt(1-f*f/(m*m))}h=l(h)}else 6===c?(u===p?h=0:(a=e(t(0,a+.5-p),u-p),h=(1+Math.cos(Math.PI+2*Math.PI*a/(u-p)))/2),h=l(h)):(a>=i(p)&&(h=t(0,e(a-p<0?e(u,1)-(p-a):u-a,1))),h=l(h));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var g=.5-.5*y;h<g?h=0:(h=(h-g)/y)>1&&(h=1)}return h*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,a=this.s.v/e+i,r=this.e.v/e+i;if(a>r){var n=a;a=r,r=n}this.finalS=a,this.finalE=r}},extendPrototype([DynamicPropertyContainer],a),{getTextSelectorProp:function(t,e,i){return new a(t,e)}}}();function TextAnimatorDataProperty(t,e,i){var a={propType:!1},r=PropertyFactory.getProp,n=e.a;this.a={r:n.r?r(t,n.r,0,degToRads,i):a,rx:n.rx?r(t,n.rx,0,degToRads,i):a,ry:n.ry?r(t,n.ry,0,degToRads,i):a,sk:n.sk?r(t,n.sk,0,degToRads,i):a,sa:n.sa?r(t,n.sa,0,degToRads,i):a,s:n.s?r(t,n.s,1,.01,i):a,a:n.a?r(t,n.a,1,0,i):a,o:n.o?r(t,n.o,0,.01,i):a,p:n.p?r(t,n.p,1,0,i):a,sw:n.sw?r(t,n.sw,0,0,i):a,sc:n.sc?r(t,n.sc,1,0,i):a,fc:n.fc?r(t,n.fc,1,0,i):a,fh:n.fh?r(t,n.fh,0,0,i):a,fs:n.fs?r(t,n.fs,0,.01,i):a,fb:n.fb?r(t,n.fb,0,.01,i):a,t:n.t?r(t,n.t,0,0,i):a},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,a=PropertyFactory.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=a(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,a,r,n,o,s,l,h,p,u,c,d,f,m,y,g,b,v,_,x=this._moreOptions.alignment.v,k=this._animatorsData,S=this._textData,w=this.mHelper,E=this._renderType,P=this.renderedLetters.length,C=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var T,A=_.v;for(this._pathData.r.v&&(A=A.reverse()),o={tLength:0,segments:[]},n=A._length-1,g=0,r=0;r<n;r+=1)T=bez.buildBezierData(A.v[r],A.v[r+1],[A.o[r][0]-A.v[r][0],A.o[r][1]-A.v[r][1]],[A.i[r+1][0]-A.v[r+1][0],A.i[r+1][1]-A.v[r+1][1]]),o.tLength+=T.segmentLength,o.segments.push(T),g+=T.segmentLength;r=n,_.v.c&&(T=bez.buildBezierData(A.v[r],A.v[0],[A.o[r][0]-A.v[r][0],A.o[r][1]-A.v[r][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),o.tLength+=T.segmentLength,o.segments.push(T),g+=T.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,c=0,u=1,h=0,p=!0,m=o.segments,s<0&&_.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),u=(f=m[c=m.length-1].points).length-1;s<0;)s+=f[u].partialLength,(u-=1)<0&&(u=(f=m[c-=1].points).length-1);d=(f=m[c].points)[u-1],y=(l=f[u]).partialLength}n=C.length,i=0,a=0;var F,D,M,I,B,R=1.2*t.finalSize*.714,L=!0;M=k.length;var z,V,O,N,j,G,H,W,q,$,K,X,J=-1,Y=s,U=c,Z=u,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,at=0,rt=2===t.j?-.5:-1,nt=0,ot=!0;for(r=0;r<n;r+=1)if(C[r].n){for(it&&(it+=at);nt<r;)C[nt].animatorJustifyOffset=it,nt+=1;it=0,ot=!0}else{for(D=0;D<M;D+=1)(F=k[D].a).t.propType&&(ot&&2===t.j&&(at+=F.t.v*rt),(B=k[D].s.getMult(C[r].anIndexes[D],S.a[D].s.totalChars)).length?it+=F.t.v*B[0]*rt:it+=F.t.v*B*rt);ot=!1}for(it&&(it+=at);nt<r;)C[nt].animatorJustifyOffset=it,nt+=1}for(r=0;r<n;r+=1){if(w.reset(),N=1,C[r].n)i=0,a+=t.yOffset,a+=L?1:0,s=Y,L=!1,this._hasMaskedPath&&(u=Z,d=(f=m[c=U].points)[u-1],y=(l=f[u]).partialLength,h=0),tt="",K="",q="",X="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==C[r].line){switch(t.j){case 1:s+=g-t.lineWidths[C[r].line];break;case 2:s+=(g-t.lineWidths[C[r].line])/2}Q=C[r].line}J!==C[r].ind&&(C[J]&&(s+=C[J].extra),s+=C[r].an/2,J=C[r].ind),s+=x[0]*C[r].an*.005;var st=0;for(D=0;D<M;D+=1)(F=k[D].a).p.propType&&((B=k[D].s.getMult(C[r].anIndexes[D],S.a[D].s.totalChars)).length?st+=F.p.v[0]*B[0]:st+=F.p.v[0]*B),F.a.propType&&((B=k[D].s.getMult(C[r].anIndexes[D],S.a[D].s.totalChars)).length?st+=F.a.v[0]*B[0]:st+=F.a.v[0]*B);for(p=!0,this._pathData.a.v&&(s=.5*C[0].an+(g-this._pathData.f.v-.5*C[0].an-.5*C[C.length-1].an)*J/(n-1),s+=this._pathData.f.v);p;)h+y>=s+st||!f?(b=(s+st-h)/l.partialLength,V=d.point[0]+(l.point[0]-d.point[0])*b,O=d.point[1]+(l.point[1]-d.point[1])*b,w.translate(-x[0]*C[r].an*.005,-x[1]*R*.01),p=!1):f&&(h+=l.partialLength,(u+=1)>=f.length&&(u=0,m[c+=1]?f=m[c].points:_.v.c?(u=0,f=m[c=0].points):(h-=l.partialLength,f=null)),f&&(d=l,y=(l=f[u]).partialLength));z=C[r].an/2-C[r].add,w.translate(-z,0,0)}else z=C[r].an/2-C[r].add,w.translate(-z,0,0),w.translate(-x[0]*C[r].an*.005,-x[1]*R*.01,0);for(D=0;D<M;D+=1)(F=k[D].a).t.propType&&(B=k[D].s.getMult(C[r].anIndexes[D],S.a[D].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?B.length?s+=F.t.v*B[0]:s+=F.t.v*B:B.length?i+=F.t.v*B[0]:i+=F.t.v*B));for(t.strokeWidthAnim&&(G=t.sw||0),t.strokeColorAnim&&(j=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),D=0;D<M;D+=1)(F=k[D].a).a.propType&&((B=k[D].s.getMult(C[r].anIndexes[D],S.a[D].s.totalChars)).length?w.translate(-F.a.v[0]*B[0],-F.a.v[1]*B[1],F.a.v[2]*B[2]):w.translate(-F.a.v[0]*B,-F.a.v[1]*B,F.a.v[2]*B));for(D=0;D<M;D+=1)(F=k[D].a).s.propType&&((B=k[D].s.getMult(C[r].anIndexes[D],S.a[D].s.totalChars)).length?w.scale(1+(F.s.v[0]-1)*B[0],1+(F.s.v[1]-1)*B[1],1):w.scale(1+(F.s.v[0]-1)*B,1+(F.s.v[1]-1)*B,1));for(D=0;D<M;D+=1){if(F=k[D].a,B=k[D].s.getMult(C[r].anIndexes[D],S.a[D].s.totalChars),F.sk.propType&&(B.length?w.skewFromAxis(-F.sk.v*B[0],F.sa.v*B[1]):w.skewFromAxis(-F.sk.v*B,F.sa.v*B)),F.r.propType&&(B.length?w.rotateZ(-F.r.v*B[2]):w.rotateZ(-F.r.v*B)),F.ry.propType&&(B.length?w.rotateY(F.ry.v*B[1]):w.rotateY(F.ry.v*B)),F.rx.propType&&(B.length?w.rotateX(F.rx.v*B[0]):w.rotateX(F.rx.v*B)),F.o.propType&&(B.length?N+=(F.o.v*B[0]-N)*B[0]:N+=(F.o.v*B-N)*B),t.strokeWidthAnim&&F.sw.propType&&(B.length?G+=F.sw.v*B[0]:G+=F.sw.v*B),t.strokeColorAnim&&F.sc.propType)for(W=0;W<3;W+=1)B.length?j[W]+=(F.sc.v[W]-j[W])*B[0]:j[W]+=(F.sc.v[W]-j[W])*B;if(t.fillColorAnim&&t.fc){if(F.fc.propType)for(W=0;W<3;W+=1)B.length?H[W]+=(F.fc.v[W]-H[W])*B[0]:H[W]+=(F.fc.v[W]-H[W])*B;F.fh.propType&&(H=B.length?addHueToRGB(H,F.fh.v*B[0]):addHueToRGB(H,F.fh.v*B)),F.fs.propType&&(H=B.length?addSaturationToRGB(H,F.fs.v*B[0]):addSaturationToRGB(H,F.fs.v*B)),F.fb.propType&&(H=B.length?addBrightnessToRGB(H,F.fb.v*B[0]):addBrightnessToRGB(H,F.fb.v*B))}}for(D=0;D<M;D+=1)(F=k[D].a).p.propType&&(B=k[D].s.getMult(C[r].anIndexes[D],S.a[D].s.totalChars),this._hasMaskedPath?B.length?w.translate(0,F.p.v[1]*B[0],-F.p.v[2]*B[1]):w.translate(0,F.p.v[1]*B,-F.p.v[2]*B):B.length?w.translate(F.p.v[0]*B[0],F.p.v[1]*B[1],-F.p.v[2]*B[2]):w.translate(F.p.v[0]*B,F.p.v[1]*B,-F.p.v[2]*B));if(t.strokeWidthAnim&&(q=G<0?0:G),t.strokeColorAnim&&($="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),t.fillColorAnim&&t.fc&&(K="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(w.translate(0,-t.ls),w.translate(0,x[1]*R*.01+a,0),this._pathData.p.v){v=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var lt=180*Math.atan(v)/Math.PI;l.point[0]<d.point[0]&&(lt+=180),w.rotate(-lt*Math.PI/180)}w.translate(V,O,0),s-=x[0]*C[r].an*.005,C[r+1]&&J!==C[r+1].ind&&(s+=C[r].an/2,s+=.001*t.tr*t.finalSize)}else{switch(w.translate(i,a,0),t.ps&&w.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:w.translate(C[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[C[r].line]),0,0);break;case 2:w.translate(C[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[C[r].line])/2,0,0)}w.translate(0,-t.ls),w.translate(z,0,0),w.translate(x[0]*C[r].an*.005,x[1]*R*.01,0),i+=C[r].l+.001*t.tr*t.finalSize}"html"===E?tt=w.toCSS():"svg"===E?tt=w.to2dCSS():et=[w.props[0],w.props[1],w.props[2],w.props[3],w.props[4],w.props[5],w.props[6],w.props[7],w.props[8],w.props[9],w.props[10],w.props[11],w.props[12],w.props[13],w.props[14],w.props[15]],X=N}P<=r?(I=new LetterProps(X,q,$,K,tt,et),this.renderedLetters.push(I),P+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[r],this.lettersChangedFlag=I.update(X,q,$,K,tt,et)||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(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var i,a,r=e.length,n="";for(i=0;i<r;i+=1)"sh"===e[i].ty&&(a=e[i].ks.k,n+=buildShapeString(a,a.i.length,!0,t));return n},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,a,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(a,r,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(e&&e.title){var a=createNS("title"),r=createElementID();a.setAttribute("id",r),a.textContent=e.title,this.svgElement.appendChild(a),i+=r}if(e&&e.description){var n=createNS("desc"),o=createElementID();n.setAttribute("id",o),n.textContent=e.description,this.svgElement.appendChild(n),i+=" "+o}i&&this.svgElement.setAttribute("aria-labelledby",i);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}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(t){for(var e=0,i=t.length,a=[],r="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(a.push(r),r=""):r+=t[e],e+=1;return a.push(r),a},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var a=i.it[i.it.length-1];a.s&&(a.s.k[0]=e,a.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var a=this.globalData.fontManager.getFontByName(i.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var r=i.fWeight,n=i.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",i.t);var o,s=i.l||[],l=!!this.globalData.fontManager.chars;e=s.length;var h=this.mHelper,p=this.data.singleShape,u=0,c=0,d=!0,f=.001*i.tr*i.finalSize;if(!p||l||i.sz){var m,y=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!p||0===t){if(o=y>t?this.textSpans[t].span:createNS(l?"g":"text"),y<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,l){var g=createNS("g");o.appendChild(g),this.textSpans[t].childSpan=g}this.textSpans[t].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(h.reset(),p&&(s[t].n&&(u=-f,c+=i.yOffset,c+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(i,h,s[t].line,u,c),u+=s[t].l||0,u+=f),l){var b;if(1===(m=this.globalData.fontManager.getCharData(i.finalText[t],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)b=new SVGCompElement(m.data,this.globalData,this);else{var v=emptyShapeData;m.data&&m.data.shapes&&(v=this.buildShapeData(m.data,i.finalSize)),b=new SVGShapeElement(v,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[t].childSpan.appendChild(b.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else p&&o.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),o.textContent=s[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&o&&o.setAttribute("d","")}else{var x=this.textContainer,k="start";switch(i.j){case 1:k="end";break;case 2:k="middle";break;default:k="start"}x.setAttribute("text-anchor",k),x.setAttribute("letter-spacing",f);var S=this.buildTextContents(i.finalText);for(e=S.length,c=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t].span||createNS("tspan")).textContent=S[t],o.setAttribute("x",0),o.setAttribute("y",c),o.style.display="inherit",x.appendChild(o),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=o,c+=i.finalLineHeight;this.layerElement.appendChild(x)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=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 t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,a,r,n=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(i=n[t],a=this.textSpans[t].span,(r=this.textSpans[t].glyph)&&r.renderFrame(),i._mdf.m&&a.setAttribute("transform",i.m),i._mdf.o&&a.setAttribute("opacity",i.o),i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i._mdf.sc&&a.setAttribute("stroke",i.sc),i._mdf.fc&&a.setAttribute("fill",i.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.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 e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",t.w),a.setAttribute("height",t.h),a.setAttribute("x",0),a.setAttribute("y",0);var r=createElementID();i.setAttribute("id",r),i.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var a="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===a)return;if(this.elements[a]&&!0!==this.elements[a]){var r=e[a].getMatte(this.layers[t].tt);i.setMatte(r)}else this.buildItem(a),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var a="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,r=this.elements[a].getMatte(this.layers[e].tt);t.setMatte(r);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var a,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(a=this.elements[r].getBaseElement()),r+=1;a?this.layerElement.insertBefore(i,a):this.layerElement.appendChild(i)}},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(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,a="_";for(e=0;e<i;e+=1)a+=t[e].transform.key+"_";var r=this.sequences[a];return r||(r={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=r,this.sequenceList.push(r)),r},processSequence:function(t,e){for(var i=0,a=t.transforms.length,r=e;i<a&&!e;){if(t.transforms[i].transform.mProps._mdf){r=!0;break}i+=1}if(r)for(t.finalTransform.reset(),i=a-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=r},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,i=null,a=null;function r(){var r,n,o;e||(r=createNS("svg"),n=createNS("filter"),o=createNS("feColorMatrix"),n.setAttribute("id",t),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),n.appendChild(o),r.appendChild(n),r.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(r.style.display="none"),a=r,document.body.appendChild(a),e=createTag("canvas"),(i=e.getContext("2d")).filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}return{load:r,get:function(a){return e||r(),e.width=a.width,e.height=a.height,i.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var i=createTag("canvas");return i.width=t,i.height=e,i}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(t){var e,i,a=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<a;e+=1){i=null;var r=t.data.ef[e].ty;registeredEffects[r]&&(i=new(0,registeredEffects[r].effect)(t.effectsManager.effectElements[e],t)),i&&this.filters.push(i)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){var i;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a=this.masksProperties.length,r=!1;for(i=0;i<a;i+=1)"n"!==this.masksProperties[i].mode&&(r=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=r,r&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,i=this.filters.length,a=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&a.push(this.filters[e]);return a},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,a,r=this.element.finalTransform.mat,n=this.element.canvasContext,o=this.masksProperties.length;for(n.beginPath(),t=0;t<o;t+=1)if("n"!==this.masksProperties[t].mode){var s;this.masksProperties[t].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[t].v,e=r.applyToPointArray(a.v[0][0],a.v[0][1],0),n.moveTo(e[0],e[1]);var l=a._length;for(s=1;s<l;s+=1)i=r.applyToTriplePoints(a.o[s-1],a.i[s],a.v[s]),n.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=r.applyToTriplePoints(a.o[s-1],a.i[0],a.v[0]),n.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),n.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,i,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r,n=4;"rc"===e.ty?n=5:"el"===e.ty?n=6:"sr"===e.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,n,t);var o,s=i.length;for(r=0;r<s;r+=1)i[r].closed||(o={transforms:a.addTransformSequence(i[r].transforms),trNodes:[]},this.styledShapes.push(o),i[r].elements.push(o))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){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(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var t;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,t=0;t<15;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,t.pe,0,0,this),t.ks.p.s?(this.px=a(this,t.ks.p.x,1,0,this),this.py=a(this,t.ks.p.y,1,0,this),this.pz=a(this,t.ks.p.z,1,0,this)):this.p=a(this,t.ks.p,1,0,this),t.ks.a&&(this.a=a(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var r,n=t.ks.or.k.length;for(r=0;r<n;r+=1)t.ks.or.k[r].to=null,t.ks.or.k[r].ti=null}this.or=a(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,t.ks.rx,0,degToRads,this),this.ry=a(this,t.ks.ry,0,degToRads,this),this.rz=a(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},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"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},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)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),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(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},a={};if("fl"===t.ty||"st"===t.ty?(a.c=PropertyFactory.getProp(this,t.c,1,255,this),a.c.k||(i.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(a.s=PropertyFactory.getProp(this,t.s,1,null,this),a.e=PropertyFactory.getProp(this,t.e,1,null,this),a.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,t.g,this)),a.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],1==t.lj&&(i.ml=t.ml),a.w=PropertyFactory.getProp(this,t.w,0,null,this),a.w.k||(i.wi=a.w.v),t.d){var r=new DashProperty(this,t.d,"canvas",this);a.d=r,a.d.k||(i.da=a.d.dashArray,i.do=a.d.dashoffset[0])}}else i.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(i),a.style=i,a},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,a,r){var n,o,s,l,h,p,u=t.length-1,c=[],d=[],f=[].concat(r);for(n=u;n>=0;n-=1){if((l=this.searchProcessedElement(t[n]))?e[n]=i[l-1]:t[n]._shouldRender=a,"fl"===t[n].ty||"st"===t[n].ty||"gf"===t[n].ty||"gs"===t[n].ty)l?e[n].style.closed=!1:e[n]=this.createStyleElement(t[n],f),c.push(e[n].style);else if("gr"===t[n].ty){if(l)for(s=e[n].it.length,o=0;o<s;o+=1)e[n].prevViewData[o]=e[n].it[o];else e[n]=this.createGroupElement(t[n]);this.searchShapes(t[n].it,e[n].it,e[n].prevViewData,a,f)}else"tr"===t[n].ty?(l||(p=this.createTransformElement(t[n]),e[n]=p),f.push(e[n]),this.addTransformToStyleList(e[n])):"sh"===t[n].ty||"rc"===t[n].ty||"el"===t[n].ty||"sr"===t[n].ty?l||(e[n]=this.createShapeElement(t[n])):"tm"===t[n].ty||"rd"===t[n].ty||"pb"===t[n].ty||"zz"===t[n].ty||"op"===t[n].ty?(l?(h=e[n]).closed=!1:((h=ShapeModifiers.getModifier(t[n].ty)).init(this,t[n]),e[n]=h,this.shapeModifiers.push(h)),d.push(h)):"rp"===t[n].ty&&(l?(h=e[n]).closed=!0:(h=ShapeModifiers.getModifier(t[n].ty),e[n]=h,h.init(this,t,n,e),this.shapeModifiers.push(h),a=!1),d.push(h));this.addProcessedElement(t[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),u=d.length,n=0;n<u;n+=1)d[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(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,i,a,r,n,o,s,l,h=this.stylesList.length,p=this.globalData.renderer,u=this.globalData.canvasContext;for(t=0;t<h;t+=1)if(("st"!==(s=(l=this.stylesList[t]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(p.save(),n=l.elements,"st"===s||"gs"===s?(p.ctxStrokeStyle("st"===s?l.co:l.grd),p.ctxLineWidth(l.wi),p.ctxLineCap(l.lc),p.ctxLineJoin(l.lj),p.ctxMiterLimit(l.ml||0)):p.ctxFillStyle("fl"===s?l.co:l.grd),p.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&u.beginPath(),p.ctxTransform(l.preTransforms.finalTransform.props),i=n.length,e=0;e<i;e+=1){for("st"!==s&&"gs"!==s||(u.beginPath(),l.da&&(u.setLineDash(l.da),u.lineDashOffset=l.do)),r=(o=n[e].trNodes).length,a=0;a<r;a+=1)"m"===o[a].t?u.moveTo(o[a].p[0],o[a].p[1]):"c"===o[a].t?u.bezierCurveTo(o[a].pts[0],o[a].pts[1],o[a].pts[2],o[a].pts[3],o[a].pts[4],o[a].pts[5]):u.closePath();"st"!==s&&"gs"!==s||(p.ctxStroke(),l.da&&u.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),p.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,a){var r,n;for(n=t,r=e.length-1;r>=0;r-=1)"tr"===e[r].ty?(n=i[r].transform,this.renderShapeTransform(t,n)):"sh"===e[r].ty||"el"===e[r].ty||"rc"===e[r].ty||"sr"===e[r].ty?this.renderPath(e[r],i[r]):"fl"===e[r].ty?this.renderFill(e[r],i[r],n):"st"===e[r].ty?this.renderStroke(e[r],i[r],n):"gf"===e[r].ty||"gs"===e[r].ty?this.renderGradientFill(e[r],i[r],n):"gr"===e[r].ty?this.renderShape(n,e[r].it,i[r].it):e[r].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,a,r,n=t.trNodes,o=e.paths,s=o._length;n.length=0;var l=t.transforms.finalTransform;for(r=0;r<s;r+=1){var h=o.shapes[r];if(h&&h.v){for(a=h._length,i=1;i<a;i+=1)1===i&&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[i-1],h.i[i],h.v[i])});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[i-1],h.i[0],h.v[0])}),n.push({t:"z"}))}}t.trNodes=n}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,a=e.styledShapes.length;for(i=0;i<a;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var a=e.style;(e.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(a.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var a,r=e.style;if(!r.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var n,o=this.globalData.canvasContext,s=e.s.v,l=e.e.v;if(1===t.t)a=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),p=Math.atan2(l[1]-s[1],l[0]-s[0]),u=e.h.v;u>=1?u=.99:u<=-1&&(u=-.99);var c=h*u,d=Math.cos(p+e.a.v)*c+s[0],f=Math.sin(p+e.a.v)*c+s[1];a=o.createRadialGradient(d,f,0,s[0],s[1],h)}var m=t.g.p,y=e.g.c,g=1;for(n=0;n<m;n+=1)e.g._hasOpacity&&e.g._collapsable&&(g=e.g.o[2*n+1]),a.addColorStop(y[4*n]/100,"rgba("+y[4*n+1]+","+y[4*n+2]+","+y[4*n+3]+","+g+")");r.grd=a}r.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var a=e.style,r=e.d;r&&(r._mdf||this._isFirstFrame)&&(a.da=r.dashArray,a.do=r.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(a.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(a.wi=e.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 t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var i=!1;t.sc&&(i=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var a,r,n,o,s,l,h,p,u,c,d,f,m=this.globalData.fontManager.getFontByName(t.f),y=t.l,g=this.mHelper;this.stroke=i,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,r=t.finalText.length;var b=this.data.singleShape,v=.001*t.tr*t.finalSize,_=0,x=0,k=!0,S=0;for(a=0;a<r;a+=1){o=(n=this.globalData.fontManager.getCharData(t.finalText[a],m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&n.data||{},g.reset(),b&&y[a].n&&(_=-v,x+=t.yOffset,x+=k?1:0,k=!1),u=(h=o.shapes?o.shapes[0].it:[]).length,g.scale(t.finalSize/100,t.finalSize/100),b&&this.applyTextPropertiesToMatrix(t,g,y[a].line,_,x),d=createSizedArray(u-1);var w=0;for(p=0;p<u;p+=1)if("sh"===h[p].ty){for(l=h[p].ks.k.i.length,c=h[p].ks.k,f=[],s=1;s<l;s+=1)1===s&&f.push(g.applyToX(c.v[0][0],c.v[0][1],0),g.applyToY(c.v[0][0],c.v[0][1],0)),f.push(g.applyToX(c.o[s-1][0],c.o[s-1][1],0),g.applyToY(c.o[s-1][0],c.o[s-1][1],0),g.applyToX(c.i[s][0],c.i[s][1],0),g.applyToY(c.i[s][0],c.i[s][1],0),g.applyToX(c.v[s][0],c.v[s][1],0),g.applyToY(c.v[s][0],c.v[s][1],0));f.push(g.applyToX(c.o[s-1][0],c.o[s-1][1],0),g.applyToY(c.o[s-1][0],c.o[s-1][1],0),g.applyToX(c.i[0][0],c.i[0][1],0),g.applyToY(c.i[0][0],c.i[0][1],0),g.applyToX(c.v[0][0],c.v[0][1],0),g.applyToY(c.v[0][0],c.v[0][1],0)),d[w]=f,w+=1}b&&(_+=y[a].l,_+=v),this.textSpans[S]?this.textSpans[S].elem=d:this.textSpans[S]={elem:d},S+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,i,a,r,n;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var h,p,u=null,c=null,d=null,f=this.globalData.renderer;for(t=0;t<e;t+=1)if(!l[t].n){if((o=s[t])&&(f.save(),f.ctxTransform(o.p),f.ctxOpacity(o.o)),this.fill){for(o&&o.fc?u!==o.fc&&(f.ctxFillStyle(o.fc),u=o.fc):u!==this.values.fill&&(u=this.values.fill,f.ctxFillStyle(this.values.fill)),a=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(n=(p=h[i]).length,this.globalData.canvasContext.moveTo(p[0],p[1]),r=2;r<n;r+=6)this.globalData.canvasContext.bezierCurveTo(p[r],p[r+1],p[r+2],p[r+3],p[r+4],p[r+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(o&&o.sw?d!==o.sw&&(d=o.sw,f.ctxLineWidth(o.sw)):d!==this.values.sWidth&&(d=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),o&&o.sc?c!==o.sc&&(c=o.sc,f.ctxStrokeStyle(o.sc)):c!==this.values.stroke&&(c=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),a=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(n=(p=h[i]).length,this.globalData.canvasContext.moveTo(p[0],p[1]),r=2;r<n;r+=6)this.globalData.canvasContext.bezierCurveTo(p[r],p[r+1],p[r+2],p[r+3],p[r+4],p[r+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}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 t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,i,a=t.getContext("2d"),r=this.img.width,n=this.img.height,o=r/n,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>s&&"xMidYMid slice"===l||o<s&&"xMidYMid slice"!==l?e=(i=n)*s:i=(e=r)/s,a.drawImage(this.img,(r-e)/2,(n-i)/2,e,i,0,0,this.assetData.w,this.assetData.h),this.img=t}},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(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,i,a){this.canvasContext.fillRect(t,e,i,a)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){this.renderConfig.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var i="0px 0px 0px";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.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.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,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(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var i,a,r,n;if(this.reset(),t?(i=t,a=e,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=a):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,a=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=a*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),s=o[1]||"meet",l=o[0]||"xMidYMid",h=l.substr(0,4),p=l.substr(4);r=i/a,(n=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===s||n<r&&"slice"===s?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===h&&(n<r&&"meet"===s||n>r&&"slice"===s)?(i-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===h&&(n<r&&"meet"===s||n>r&&"slice"===s)?(i-this.transformCanvas.w*(a/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===p&&(n>r&&"meet"===s||n<r&&"slice"===s)?(a-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===p&&(n>r&&"meet"===s||n<r&&"slice"===s)?(a-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(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 t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var a=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.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"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e,i=this.stack[this.cArrPos],a=i.transform,r=this.cTr.props;for(e=0;e<16;e+=1)r[e]=a[e];if(t){this.nativeContext.restore();var n=this.stack[this.cArrPos+1];this.appliedFillStyle=n.fillStyle,this.appliedStrokeStyle=n.strokeStyle,this.appliedLineWidth=n.lineWidth,this.appliedLineCap=n.lineCap,this.appliedLineJoin=n.lineJoin,this.appliedMiterLimit=n.miterLimit}this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]),(t||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i,a=this.stack[this.cArrPos];for(i=0;i<16;i+=1)a.transform[i]=e[i];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=a.opacity,r.fillStyle=a.fillStyle,r.strokeStyle=a.strokeStyle,r.lineWidth=a.lineWidth,r.lineCap=a.lineCap,r.lineJoin=a.lineJoin,r.miterLimit=a.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var i=e.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,i,a){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,a)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,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),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 t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.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 t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,a=t.length;for(i=0;i<a;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,a,r,n,o,s=t.sh.v,l=t.transformers,h=s._length;if(!(h<=1)){for(i=0;i<h-1;i+=1)a=this.getTransformedPoint(l,s.v[i]),r=this.getTransformedPoint(l,s.o[i]),n=this.getTransformedPoint(l,s.i[i+1]),o=this.getTransformedPoint(l,s.v[i+1]),this.checkBounds(a,r,n,o,e);s.c&&(a=this.getTransformedPoint(l,s.v[i]),r=this.getTransformedPoint(l,s.o[i]),n=this.getTransformedPoint(l,s.i[0]),o=this.getTransformedPoint(l,s.v[0]),this.checkBounds(a,r,n,o,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,a,r){this.getBoundsOfCurve(t,e,i,a);var n=this.shapeBoundingBox;r.x=bmMin(n.left,r.x),r.xMax=bmMax(n.right,r.xMax),r.y=bmMin(n.top,r.y),r.yMax=bmMax(n.bottom,r.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(t,e,i,a){for(var r,n,o,s,l,h,p,u=[[t[0],a[0]],[t[1],a[1]]],c=0;c<2;++c)n=6*t[c]-12*e[c]+6*i[c],r=-3*t[c]+9*e[c]-9*i[c]+3*a[c],o=3*e[c]-3*t[c],n|=0,o|=0,0==(r|=0)&&0===n||(0===r?(s=-o/n)>0&&s<1&&u[c].push(this.calculateF(s,t,e,i,a,c)):(l=n*n-4*o*r)>=0&&((h=(-n+bmSqrt(l))/(2*r))>0&&h<1&&u[c].push(this.calculateF(h,t,e,i,a,c)),(p=(-n-bmSqrt(l))/(2*r))>0&&p<1&&u[c].push(this.calculateF(p,t,e,i,a,c))));this.shapeBoundingBox.left=bmMin.apply(null,u[0]),this.shapeBoundingBox.top=bmMin.apply(null,u[1]),this.shapeBoundingBox.right=bmMax.apply(null,u[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,u[1])},HShapeElement.prototype.calculateF=function(t,e,i,a,r,n){return bmPow(1-t,3)*e[n]+3*bmPow(1-t,2)*t*i[n]+3*(1-t)*bmPow(t,2)*a[n]+bmPow(t,3)*r[n]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,a=t.length;for(i=0;i<a;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it?this.calculateBoundingBox(t[i].it,e):t[i]&&t[i].style&&t[i].w&&this.expandStrokeBoundingBox(t[i].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var a=0;a<t.keyframes.length;a+=1){var r=t.keyframes[a].s;r>i&&(i=r)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var i=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),i=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),i=!0),i||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var a=this.shapeCont.style,r="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=r,a.webkitTransform=r}}},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 t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,i=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var a,r,n=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{e.fontFamily=n.fFamily;var o=t.fWeight,s=t.fStyle;e.fontStyle=s,e.fontWeight=o}var l,h,p,u=t.l;r=u.length;var c,d=this.mHelper,f="",m=0;for(a=0;a<r;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?p=(h=this.textSpans[m]).children[0]:((h=createTag("div")).style.lineHeight=0,(p=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(h=this.textSpans[m],l=this.textPaths[m]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var y,g=this.globalData.fontManager.getCharData(t.finalText[a],n.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(y=g?g.data:null,d.reset(),y&&y.shapes&&y.shapes.length&&(c=y.shapes[0].it,d.scale(t.finalSize/100,t.finalSize/100),f=this.createPathShape(d,c),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),y&&y.shapes){document.body.appendChild(p);var b=p.getBBox();p.setAttribute("width",b.width+2),p.setAttribute("height",b.height+2),p.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var v=p.style,_="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";v.transform=_,v.webkitTransform=_,u[a].yOffset=b.y-1}else p.setAttribute("width",1),p.setAttribute("height",1);h.appendChild(p)}}else if(l.textContent=u[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,k="translate3d(0,"+-t.finalSize/1.2+"px,0)";x.transform=k,x.webkitTransform=k}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=h,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.validateText(),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),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var i,a,r,n,o,s=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(a=h.length,i=0;i<a;i+=1)h[i].n?s+=1:(n=this.textSpans[i],o=this.textPaths[i],r=l[s],s+=1,r._mdf.m&&(this.isMasked?n.setAttribute("transform",r.m):(n.style.webkitTransform=r.m,n.style.transform=r.m)),n.style.opacity=r.o,r.sw&&r._mdf.sw&&o.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&o.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(o.setAttribute("fill",r.fc),o.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var p=this.innerElem.getBBox();if(this.currentBBox.w!==p.width&&(this.currentBBox.w=p.width,this.svgElement.setAttribute("width",p.width)),this.currentBBox.h!==p.height&&(this.currentBBox.h=p.height,this.svgElement.setAttribute("height",p.height)),this.currentBBox.w!==p.width+2||this.currentBBox.h!==p.height+2||this.currentBBox.x!==p.x-1||this.currentBBox.y!==p.y-1){this.currentBBox.w=p.width+2,this.currentBBox.h=p.height+2,this.currentBBox.x=p.x-1,this.currentBBox.y=p.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var u="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=u,t.webkitTransform=u}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i,a,r=this.comp.threeDElements.length;for(t=0;t<r;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){i=e.perspectiveElem.style,a=e.container.style;var n=this.pe.v+"px",o="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=n,i.webkitPerspective=n,a.transformOrigin=o,a.mozTransformOrigin=o,a.webkitTransformOrigin=o,i.transform=s,i.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,i=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)i=this.hierarchy[t].finalTransform.mProp._mdf||i;if(i||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(t=e=this.hierarchy.length-1;t>=0;t-=1){var a=this.hierarchy[t].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 r;r=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(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),o=[r[0]/n,r[1]/n,r[2]/n],s=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],s),h=Math.atan2(o[0],-o[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 p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){var u,c,d;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(u=this.comp.threeDElements[t]).type){if(p){var f=this.mat.toCSS();(d=u.container.style).transform=f,d.webkitTransform=f}this.pe._mdf&&((c=u.perspectiveElem.style).perspective=this.pe.v+"px",c.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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 t=this.globalData.getAssetsPath(this.assetData),e=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",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,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(t,e){var i=t.getBaseElement();if(i){var a=this.layers[e];if(a.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var r,n,o=0;o<e;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(n=this.elements[o],r=(this.layers[o].ddd?this.getThreeDContainerByPos(o):n.getBaseElement())||r),o+=1;r?a.ddd&&this.supports3d||this.layerElement.insertBefore(i,r):a.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,a,r=createTag("div");styleDiv(r);var n=createTag("div");if(styleDiv(n),"3d"===e){(i=r.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var o="50% 50%";i.webkitTransformOrigin=o,i.mozTransformOrigin=o,i.transformOrigin=o;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(a=n.style).transform=s,a.webkitTransform=s}r.appendChild(n);var l={container:n,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e,i=this.layers.length,a="";for(t=0;t<i;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==a&&(a="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==a&&(a="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(i=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,a=this.threeDElements.length;i<a;){if(e<=this.threeDElements[i].endPos){for(var r,n=this.threeDElements[i].startPos;n<e;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.threeDElements[i].container.insertBefore(t,r):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,a=e.style;a.width=t.w+"px",a.height=t.h+"px",this.resizerElem=e,styleDiv(e),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),a.overflow="hidden";var r=createNS("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),styleDiv(r),this.resizerElem.appendChild(r);var n=createNS("defs");r.appendChild(n),this.data=t,this.setupGlobalData(t,r),this.globalData.defs=n,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,a,r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,o=r/n;this.globalData.compSize.w/this.globalData.compSize.h>o?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,a=(n-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=n/this.globalData.compSize.h,e=n/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,a=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+a+",0,1)",s.transform=s.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 t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,a=this.threeDElements.length;for(t=0;t<a;t+=1){var r=this.threeDElements[t].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))+"px",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,i=t.length,a=createTag("div");for(e=0;e<i;e+=1)if(t[e].xt){var r=this.createComp(t[e],a,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},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(t,e){for(var i,a=0;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(i=this.elements[a].getBaseElement()),a+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var i=0,a=t.layers.length;i<a;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e};function _typeof$2(t){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}function seedRandom(t,e){var i=this,a=256,r="random",n=e.pow(a,6),o=e.pow(2,52),s=2*o,l=255;function h(t){var e,i=t.length,r=this,n=0,o=r.i=r.j=0,s=r.S=[];for(i||(t=[i++]);n<a;)s[n]=n++;for(n=0;n<a;n++)s[n]=s[o=l&o+t[n%i]+(e=s[n])],s[o]=e;r.g=function(t){for(var e,i=0,n=r.i,o=r.j,s=r.S;t--;)e=s[n=l&n+1],i=i*a+s[l&(s[n]=s[o=l&o+e])+(s[o]=e)];return r.i=n,r.j=o,i}}function p(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function u(t,e){var i,a=[],r=_typeof$2(t);if(e&&"object"==r)for(i in t)try{a.push(u(t[i],e-1))}catch(t){}return a.length?a:"string"==r?t:t+"\0"}function c(t,e){for(var i,a=t+"",r=0;r<a.length;)e[l&r]=l&(i^=19*e[l&r])+a.charCodeAt(r++);return d(e)}function d(t){return String.fromCharCode.apply(0,t)}e["seed"+r]=function(l,f,m){var y=[],g=c(u((f=!0===f?{entropy:!0}:f||{}).entropy?[l,d(t)]:null===l?function(){try{var e=new Uint8Array(a);return(i.crypto||i.msCrypto).getRandomValues(e),d(e)}catch(e){var r=i.navigator,n=r&&r.plugins;return[+new Date,i,n,i.screen,d(t)]}}():l,3),y),b=new h(y),v=function(){for(var t=b.g(6),e=n,i=0;t<o;)t=(t+i)*a,e*=a,i=b.g(1);for(;t>=s;)t/=2,e/=2,i>>>=1;return(t+i)/e};return v.int32=function(){return 0|b.g(4)},v.quick=function(){return b.g(4)/4294967296},v.double=v,c(d(b.S),t),(f.pass||m||function(t,i,a,n){return n&&(n.S&&p(n,b),t.state=function(){return p(b,{})}),a?(e[r]=t,i):t})(v,g,"global"in f?f.global:this==e,f.state)},c(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){var i,a=t.length,r=[];for(i=0;i<a;i+=1)r[i]=-t[i];return r}return t.propType?t.v:-t}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(t,e){var i=_typeof$1(t),a=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(a,e)||"string"===i||"string"===a)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,n=t.length,o=e.length,s=[];r<n||r<o;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?s[r]=t[r]+e[r]:s[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return s}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),a=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(a,e))return"string"===i&&(t=parseInt(t,10)),"string"===a&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,n=t.length,o=e.length,s=[];r<n||r<o;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?s[r]=t[r]-e[r]:s[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return s}return 0}function mul(t,e){var i,a,r,n=_typeof$1(t),o=_typeof$1(e);if(isNumerable(n,t)&&isNumerable(o,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(r=t.length,i=createTypedArray("float32",r),a=0;a<r;a+=1)i[a]=t[a]*e;return i}if(isNumerable(n,t)&&$bm_isInstanceOfArray(e)){for(r=e.length,i=createTypedArray("float32",r),a=0;a<r;a+=1)i[a]=t*e[a];return i}return 0}function div(t,e){var i,a,r,n=_typeof$1(t),o=_typeof$1(e);if(isNumerable(n,t)&&isNumerable(o,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(r=t.length,i=createTypedArray("float32",r),a=0;a<r;a+=1)i[a]=t[a]/e;return i}if(isNumerable(n,t)&&$bm_isInstanceOfArray(e)){for(r=e.length,i=createTypedArray("float32",r),a=0;a<r;a+=1)i[a]=t/e[a];return i}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var a=i;i=e,e=a}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var i;e||(e=helperLengthArray);var a=Math.min(t.length,e.length),r=0;for(i=0;i<a;i+=1)r+=Math.pow(e[i]-t[i],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,a=t[0],r=t[1],n=t[2],o=Math.max(a,r,n),s=Math.min(a,r,n),l=(o+s)/2;if(o===s)e=0,i=0;else{var h=o-s;switch(i=l>.5?h/(2-o-s):h/(o+s),o){case a:e=(r-n)/h+(r<n?6:0);break;case r:e=(n-a)/h+2;break;case n:e=(a-r)/h+4}e/=6}return[e,i,l,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,a,r=t[0],n=t[1],o=t[2];if(0===n)e=o,a=o,i=o;else{var s=o<.5?o*(1+n):o+n-o*n,l=2*o-s;e=hue2rgb(l,s,r+1/3),i=hue2rgb(l,s,r),a=hue2rgb(l,s,r-1/3)}return[e,i,a,t[3]]}function linear(t,e,i,a,r){if(void 0!==a&&void 0!==r||(a=e,r=i,e=0,i=1),i<e){var n=i;i=e,e=n}if(t<=e)return a;if(t>=i)return r;var o,s=i===e?0:(t-e)/(i-e);if(!a.length)return a+(r-a)*s;var l=a.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=a[o]+(r[o]-a[o])*s;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,a=e.length;t||(t=createTypedArray("float32",a));var r=createTypedArray("float32",a),n=BMMath.random();for(i=0;i<a;i+=1)r[i]=t[i]+n*(e[i]-t[i]);return r}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,a){var r,n=t.length,o=shapePool.newElement();o.setPathData(!!a,n);var s,l,h=[0,0];for(r=0;r<n;r+=1)s=e&&e[r]?e[r]:h,l=i&&i[r]?i[r]:h,o.setTripleAt(t[r][0],t[r][1],l[0]+t[r][0],l[1]+t[r][1],s[0]+t[r][0],s[1]+t[r][1],r,!0);return o}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;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._name=elem.data.nm,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(t,e){var i,a,r=this.pv.length?this.pv.length:1,n=createTypedArray("float32",r),o=Math.floor(5*time);for(i=0,a=0;i<o;){for(a=0;a<r;a+=1)n[a]+=-e+2*e*BMMath.random();i+=1}var s=5*time,l=s-Math.floor(s),h=createTypedArray("float32",r);if(r>1){for(a=0;a<r;a+=1)h[a]=this.pv[a]+n[a]+(-e+2*e*BMMath.random())*l;return h}return this.pv+n[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!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(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],a=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,a,0]}function easeOut(t,e,i,a,r){return applyEase(easeOutBez,t,e,i,a,r)}function easeIn(t,e,i,a,r){return applyEase(easeInBez,t,e,i,a,r)}function ease(t,e,i,a,r){return applyEase(easeInOutBez,t,e,i,a,r)}function applyEase(t,e,i,a,r,n){void 0===r?(r=i,n=a):e=(e-i)/(a-i),e>1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(r)){var s,l=r.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=(n[s]-r[s])*o+r[s];return h}return(n-r)*o+r}function nearestKey(t){var e,i,a,r=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,a=data.k[0].t;else{for(e=0;e<r-1;e+=1){if(t===data.k[e].t){i=e+1,a=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,a=data.k[e+1].t):(i=e+1,a=data.k[e].t);break}}-1===i&&(i=e+1,a=data.k[e].t)}else i=0,a=0;var n={};return n.index=i,n.time=a/elem.comp.globalData.frameRate,n}function key(t){var e,i,a;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(a=r.length,i=0;i<a;i+=1)e[i]=r[i],e.value[i]=r[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,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(t){return value=t,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,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={initExpressions:function(t){var e=0,i=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===i.indexOf(t)&&i.push(t)}}};return t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,a=createSizedArray(e.viewData.length),r=e.viewData.length;for(i=0;i<r;i+=1)a[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<r;){if(e.masksProperties[i].nm===t)return a[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(t,e,i){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(a){if(!t.numKeys)return 0;var r="";r="s"in e.keyframes[a-1]?e.keyframes[a-1].s:"e"in e.keyframes[a-2]?e.keyframes[a-2].e:e.keyframes[a-2].s;var n="unidimensional"===i?new Number(r):Object.assign({},r);return n.time=e.keyframes[a-1].t/e.elem.comp.globalData.frameRate,n.value="unidimensional"===i?r[0]:r,n},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function a(){return t}return function(r){return r?"unidimensional"===r.propType?function(e){e&&"pv"in e||(e=t);var a=1/e.mult,r=e.pv*a,n=new Number(r);return n.value=r,i(n,e,"unidimensional"),function(){return e.k&&e.getValue(),r=e.v*a,n.value!==r&&((n=new Number(r)).value=r,n[0]=r,i(n,e,"unidimensional")),n}}(r):function(t){t&&"pv"in t||(t=e);var a=1/t.mult,r=t.data&&t.data.l||t.pv.length,n=createTypedArray("float32",r),o=createTypedArray("float32",r);return n.value=o,i(n,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<r;e+=1)o[e]=t.v[e]*a,n[e]=o[e];return n}}(r):a}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,a,r,n;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?n=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),a=ExpressionPropertyInterface(t.py),t.pz&&(r=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?n():[i(),a(),r?r():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,t)}function i(t,e){var i=this.getMatrix(e);return this.applyPoint(i,t)}function a(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,t)}function r(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function n(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,a=this._elem.hierarchy.length;for(i=0;i<a;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function o(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,a=this._elem.hierarchy.length;for(i=0;i<a;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function s(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,a=this._elem.hierarchy.length;for(i=0;i<a;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(h){var p;function u(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return u.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return p;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return u.effect;case"ADBE Text Properties":return u.textInterface;default:return null}}u.getMatrix=t,u.invertPoint=o,u.applyPoint=n,u.toWorld=i,u.toWorldVec=e,u.fromWorld=r,u.fromWorldVec=a,u.toComp=i,u.fromComp=s,u.sampleImage=l,u.sourceRectAtTime=h.sourceRectAtTime.bind(h),u._elem=h;var c=getDescriptor(p=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(u,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(p,"rotation"),scale:getDescriptor(p,"scale"),position:getDescriptor(p,"position"),opacity:getDescriptor(p,"opacity"),anchorPoint:c,anchor_point:c,transform:{get:function(){return p}},active:{get:function(){return h.isInRange}}}),u.startTime=h.data.st,u.index=h.data.ind,u.source=h.data.refId,u.height=0===h.data.ty?h.data.h:100,u.width=0===h.data.ty?h.data.w:100,u.inPoint=h.data.ip/h.comp.globalData.frameRate,u.outPoint=h.data.op/h.comp.globalData.frameRate,u._name=h.data.nm,u.registerMaskInterface=function(t){u.mask=new MaskManagerInterface(t,h)},u.registerEffectsInterface=function(t){u.effect=t},u}}(),propertyGroupFactory=function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}},EffectsExpressionInterface=function(){var t={createEffectsInterface:function(t,i){if(t.effectsManager){var a,r=[],n=t.data.ef,o=t.effectsManager.effectElements.length;for(a=0;a<o;a+=1)r.push(e(n[a],t.effectsManager.effectElements[a],i,t));var s=t.data.ef||[],l=function(t){for(a=0,o=s.length;a<o;){if(t===s[a].nm||t===s[a].mn||t===s[a].ix)return r[a];a+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}};function e(t,a,r,n){function o(e){for(var i=t.ef,a=0,r=i.length;a<r;){if(e===i[a].nm||e===i[a].mn||e===i[a].ix)return 5===i[a].ty?h[a]:h[a]();a+=1}throw new Error}var s,l=propertyGroupFactory(o,r),h=[],p=t.ef.length;for(s=0;s<p;s+=1)5===t.ef[s].ty?h.push(e(t.ef[s],a.effectElements[s],a.effectElements[s].propertyGroup,n)):h.push(i(a.effectElements[s],t.ef[s].ty,n,l));return"ADBE Color Control"===t.mn&&Object.defineProperty(o,"color",{get:function(){return h[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return t.np}},_name:{value:t.nm},propertyGroup:{value:l}}),o.enabled=0!==t.en,o.active=o.enabled,o}function i(t,e,i,a){var r=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",a)),function(){return 10===e?i.comp.compInterface(t.p.v):r()}}return t}(),ShapePathInterface=function(t,e,i){var a=e.sh;function r(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?r.path:null}var n=propertyGroupFactory(r,i);return a.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(r,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r},ShapeExpressionInterface=function(){function t(t,s,d){var f,m=[],y=t?t.length:0;for(f=0;f<y;f+=1)"gr"===t[f].ty?m.push(e(t[f],s[f],d)):"fl"===t[f].ty?m.push(i(t[f],s[f],d)):"st"===t[f].ty?m.push(n(t[f],s[f],d)):"tm"===t[f].ty?m.push(o(t[f],s[f],d)):"tr"===t[f].ty||("el"===t[f].ty?m.push(l(t[f],s[f],d)):"sr"===t[f].ty?m.push(h(t[f],s[f],d)):"sh"===t[f].ty?m.push(ShapePathInterface(t[f],s[f],d)):"rc"===t[f].ty?m.push(p(t[f],s[f],d)):"rd"===t[f].ty?m.push(u(t[f],s[f],d)):"rp"===t[f].ty?m.push(c(t[f],s[f],d)):"gf"===t[f].ty?m.push(a(t[f],s[f],d)):m.push(r(t[f],s[f])));return m}function e(e,i,a){var r=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,a);var n=function(e,i,a){var r,n=function(t){for(var e=0,i=r.length;e<i;){if(r[e]._name===t||r[e].mn===t||r[e].propertyIndex===t||r[e].ix===t||r[e].ind===t)return r[e];e+=1}return"number"==typeof t?r[t-1]:null};n.propertyGroup=propertyGroupFactory(n,a),r=t(e.it,i.it,n.propertyGroup),n.numProperties=r.length;var o=s(e.it[e.it.length-1],i.it[i.it.length-1],n.propertyGroup);return n.transform=o,n.propertyIndex=e.cix,n._name=e.nm,n}(e,i,r.propertyGroup),o=s(e.it[e.it.length-1],i.it[i.it.length-1],r.propertyGroup);return r.content=n,r.transform=o,Object.defineProperty(r,"_name",{get:function(){return e.nm}}),r.numProperties=e.np,r.propertyIndex=e.ix,r.nm=e.nm,r.mn=e.mn,r}function i(t,e,i){function a(t){return"Color"===t||"color"===t?a.color:"Opacity"===t||"opacity"===t?a.opacity:null}return Object.defineProperties(a,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),a}function a(t,e,i){function a(t){return"Start Point"===t||"start point"===t?a.startPoint:"End Point"===t||"end point"===t?a.endPoint:"Opacity"===t||"opacity"===t?a.opacity:null}return Object.defineProperties(a,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),a}function r(){return function(){return null}}function n(t,e,i){var a,r=propertyGroupFactory(h,i),n=propertyGroupFactory(l,r);function o(i){Object.defineProperty(l,t.d[i].nm,{get:ExpressionPropertyInterface(e.d.dataProps[i].p)})}var s=t.d?t.d.length:0,l={};for(a=0;a<s;a+=1)o(a),e.d.dataProps[a].p.setGroupProperty(n);function h(t){return"Color"===t||"color"===t?h.color:"Opacity"===t||"opacity"===t?h.opacity:"Stroke Width"===t||"stroke width"===t?h.strokeWidth:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),e.w.setGroupProperty(PropertyInterface("Stroke Width",r)),h}function o(t,e,i){function a(e){return e===t.e.ix||"End"===e||"end"===e?a.end:e===t.s.ix?a.start:e===t.o.ix?a.offset:null}var r=propertyGroupFactory(a,i);return a.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",r)),e.e.setGroupProperty(PropertyInterface("End",r)),e.o.setGroupProperty(PropertyInterface("Offset",r)),a.propertyIndex=t.ix,a.propertyGroup=i,Object.defineProperties(a,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),a.mn=t.mn,a}function s(t,e,i){function a(e){return t.a.ix===e||"Anchor Point"===e?a.anchorPoint:t.o.ix===e||"Opacity"===e?a.opacity:t.p.ix===e||"Position"===e?a.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?a.rotation:t.s.ix===e||"Scale"===e?a.scale:t.sk&&t.sk.ix===e||"Skew"===e?a.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?a.skewAxis:null}var r=propertyGroupFactory(a,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",r)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",r)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",r)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",r)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",r)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",r)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",r))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",r)),Object.defineProperties(a,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),a.ty="tr",a.mn=t.mn,a.propertyGroup=i,a}function l(t,e,i){function a(e){return t.p.ix===e?a.position:t.s.ix===e?a.size:null}var r=propertyGroupFactory(a,i);a.propertyIndex=t.ix;var n="tm"===e.sh.ty?e.sh.prop:e.sh;return n.s.setGroupProperty(PropertyInterface("Size",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),Object.defineProperties(a,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:t.nm}}),a.mn=t.mn,a}function h(t,e,i){function a(e){return t.p.ix===e?a.position:t.r.ix===e?a.rotation:t.pt.ix===e?a.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?a.outerRadius:t.os.ix===e?a.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?a.innerRoundness:null:a.innerRadius}var r=propertyGroupFactory(a,i),n="tm"===e.sh.ty?e.sh.prop:e.sh;return a.propertyIndex=t.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",r)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",r)),n.pt.setGroupProperty(PropertyInterface("Points",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),t.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",r)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",r))),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:t.nm}}),a.mn=t.mn,a}function p(t,e,i){function a(e){return t.p.ix===e?a.position:t.r.ix===e?a.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?a.size:null}var r=propertyGroupFactory(a,i),n="tm"===e.sh.ty?e.sh.prop:e.sh;return a.propertyIndex=t.ix,n.p.setGroupProperty(PropertyInterface("Position",r)),n.s.setGroupProperty(PropertyInterface("Size",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:t.nm}}),a.mn=t.mn,a}function u(t,e,i){function a(e){return t.r.ix===e||"Round Corners 1"===e?a.radius:null}var r=propertyGroupFactory(a,i),n=e;return a.propertyIndex=t.ix,n.rd.setGroupProperty(PropertyInterface("Radius",r)),Object.defineProperties(a,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:t.nm}}),a.mn=t.mn,a}function c(t,e,i){function a(e){return t.c.ix===e||"Copies"===e?a.copies:t.o.ix===e||"Offset"===e?a.offset:null}var r=propertyGroupFactory(a,i),n=e;return a.propertyIndex=t.ix,n.c.setGroupProperty(PropertyInterface("Copies",r)),n.o.setGroupProperty(PropertyInterface("Offset",r)),Object.defineProperties(a,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:t.nm}}),a.mn=t.mn,a}return function(e,i,a){var r;function n(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?a:r[t-1];for(var e=0,i=r.length;e<i;){if(r[e]._name===t)return r[e];e+=1}return null}return n.propertyGroup=propertyGroupFactory(n,function(){return a}),r=t(e,i,n.propertyGroup),n.numProperties=r.length,n._name="Contents",n}}(),TextExpressionInterface=function(t){var e;function i(t){return"ADBE Text Document"===t?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return e&&i===e.value||((e=new String(i)).value=i||new String(i),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),i};function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",i=t.getFootageData();function a(t){if(i[t])return e=t,"object"===_typeof(i=i[t])?a:i;var r=t.indexOf(e);if(-1!==r){var n=parseInt(t.substr(r+e.length),10);return"object"===_typeof(i=i[n])?a:i}return""}return function(){return e="",i=t.getFootageData(),a}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),a=0;if(e.length){var r;for(r=0;r<e.length;r+=1)a+=Math.pow(i[r]-e[r],2);a=100*Math.sqrt(a)}else a=0;return a},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,a=-.001,r=this.getValueAtTime(t),n=this.getValueAtTime(t+a);if(r.length)for(e=createTypedArray("float32",r.length),i=0;i<r.length;i+=1)e[i]=(n[i]-r[i])/a;else e=(n-r)/a;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var a,r,n,o,s,l=this.comp.renderedFrame,h=this.keyframes,p=h[h.length-1].t;if(l<=p)return this.pv;if(i?r=p-(a=e?Math.abs(p-this.elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>h.length-1)&&(e=h.length-1),a=p-(r=h[h.length-1-e].t)),"pingpong"===t){if(Math.floor((l-r)/a)%2!=0)return this.getValueAtTime((a-(l-r)%a+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var u=this.getValueAtTime(r/this.comp.globalData.frameRate,0),c=this.getValueAtTime(p/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((l-r)%a+r)/this.comp.globalData.frameRate,0),f=Math.floor((l-r)/a);if(this.pv.length){for(o=(s=new Array(u.length)).length,n=0;n<o;n+=1)s[n]=(c[n]-u[n])*f+d[n];return s}return(c-u)*f+d}if("continue"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,n=0;n<o;n+=1)s[n]=m[n]+(m[n]-y[n])*((l-p)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-p)/.001*(m-y)}}return this.getValueAtTime(((l-r)%a+r)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var a,r,n,o,s,l=this.comp.renderedFrame,h=this.keyframes,p=h[0].t;if(l>=p)return this.pv;if(i?r=p+(a=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):((!e||e>h.length-1)&&(e=h.length-1),a=(r=h[e].t)-p),"pingpong"===t){if(Math.floor((p-l)/a)%2==0)return this.getValueAtTime(((p-l)%a+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(r/this.comp.globalData.frameRate,0),d=this.getValueAtTime((a-(p-l)%a+p)/this.comp.globalData.frameRate,0),f=Math.floor((p-l)/a)+1;if(this.pv.length){for(o=(s=new Array(u.length)).length,n=0;n<o;n+=1)s[n]=d[n]-(c[n]-u[n])*f;return s}return d-(c-u)*f}if("continue"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,n=0;n<o;n+=1)s[n]=m[n]+(m[n]-y[n])*(p-l)/.001;return s}return m+(m-y)*(p-l)/.001}}return this.getValueAtTime((a-((p-l)%a+p))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var i,a,r=this.comp.renderedFrame/this.comp.globalData.frameRate,n=r-t,o=e>1?(r+t-n)/(e-1):1,s=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;s<e;){if(a=this.getValueAtTime(n+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=a[l];else i+=a;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=e;else i/=e;return i}function a(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(t);e.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var a=this.s.getValueAtTime(t);e.scale(a[0]*this.s.mult,a[1]*this.s.mult,a[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(t),n=this.sa.getValueAtTime(t);e.skewFromAxis(-r*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(t);e.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),h=this.rx.getValueAtTime(t),p=this.or.getValueAtTime(t);e.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-p[2]*this.or.mult).rotateY(p[1]*this.or.mult).rotateX(p[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var u=this.px.getValueAtTime(t),c=this.py.getValueAtTime(t);if(this.data.p.z){var d=this.pz.getValueAtTime(t);e.translate(u*this.px.mult,c*this.py.mult,-d*this.pz.mult)}else e.translate(u*this.px.mult,c*this.py.mult,0)}else{var f=this.p.getValueAtTime(t);e.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return e}function r(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var o=n(t,e,i);return o.dynamicProperties.length?o.getValueAtTime=a.bind(o):o.getValueAtTime=r.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(a,r,n,s,l){var h=o(a,r,n,s,l);h.kf?h.getValueAtTime=expressionHelpers.getValueAtTime.bind(h):h.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h.loopOut=t,h.loopIn=e,h.smooth=i,h.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(h),h.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(h),h.numKeys=1===r.a?r.k.length:0,h.propertyIndex=r.ix;var p=0;return 0!==n&&(p=createTypedArray("float32",1===r.a?r.k[0].s.length:r.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(a,r,h),h.k&&l.addDynamicProperty(h),h};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(t,e){this.k&&this.getValue();var i,a=this.v;void 0!==e&&(a=this.getValueAtTime(e,0));var r=a._length,n=a[t],o=a.v,s=createSizedArray(r);for(i=0;i<r;i+=1)s[i]="i"===t||"o"===t?[n[i][0]-o[i][0],n[i][1]-o[i][1]]:[n[i][0],n[i][1]];return s},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var a,r=this._segmentsLength,n=r.lengths,o=r.totalLength*t,s=0,l=n.length,h=0;s<l;){if(h+n[s].addedLength>o){var p=s,u=i.c&&s===l-1?0:s+1,c=(o-h)/n[s].addedLength;a=bez.getPointInSegment(i.v[p],i.v[u],i.o[p],i.i[u],c,n[s]);break}h+=n[s].addedLength,s+=1}return a||(a=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),a},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var a=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),n=r[0]-a[0],o=r[1]-a[1],s=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===i?[n/s,o/s]:[-o/s,n/s]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],s),extendPrototype([h],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,a,r){var n=p(t,e,i,a,r);return n.propertyIndex=e.ix,n.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,n):4===i&&expressionHelpers.searchExpressions(t,e.ks,n),n.k&&t.addDynamicProperty(n),n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var a={};return this.copyData(a,t),a.t=i.toString(),a.__complete=!1,a}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,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(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,a,r=createNS("feMerge");for(r.setAttribute("result",t),a=0;a<e.length;a+=1)(i=createNS("feMergeNode")).setAttribute("in",e[a]),r.appendChild(i),r.appendChild(i);return r}};var linearFilterValue="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";function SVGTintFilter(t,e,i,a,r){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=n,n.setAttribute("result",a+"_tint_1"),t.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"),t.appendChild(n),this.matrixFilter=n;var o=this.createMergeNode(a,[r,a+"_tint_1",a+"_tint_2"]);t.appendChild(o)}function SVGFillFilter(t,e,i,a){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",a),t.appendChild(r),this.matrixFilter=r}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,a){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(r);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),this.matrixFilter=n;var o=createNS("feFuncR");o.setAttribute("type","table"),n.appendChild(o),this.feFuncR=o;var s=createNS("feFuncG");s.setAttribute("type","table"),n.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),n.appendChild(l),this.feFuncB=l,t.appendChild(n)}function SVGProLevelsFilter(t,e,i,a){this.filterManager=e;var r=this.filterManager.effectElements,n=createNS("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n)),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&((n=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),t.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(t,e,i,a,r){var n=e.container.globalData.renderConfig.filterSize,o=e.data.fs||n;t.setAttribute("x",o.x||n.x),t.setAttribute("y",o.y||n.y),t.setAttribute("width",o.width||n.width),t.setAttribute("height",o.height||n.height),this.filterManager=e;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",a+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,t.appendChild(s);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,t.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,t.appendChild(h);var p=createNS("feComposite");p.setAttribute("in",a+"_drop_shadow_3"),p.setAttribute("in2",a+"_drop_shadow_2"),p.setAttribute("operator","in"),p.setAttribute("result",a+"_drop_shadow_4"),t.appendChild(p);var u=this.createMergeNode(a,[a+"_drop_shadow_4",r]);t.appendChild(u)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+a+" 0"),this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,a,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(a=this.elem.maskManager.masksProperties.length,i=0):a=1+(i=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<a;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),o=createElementID();n.setAttribute("id",o),n.setAttribute("mask-type","alpha"),n.appendChild(e),this.elem.globalData.defs.appendChild(n);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");r[0];)s.appendChild(r[0]);this.elem.layerElement.appendChild(s),this.masker=n,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var i,a,r=this.paths.length;for(e=0;e<r;e+=1)if(-1!==this.paths[e].m&&(i=this.elem.maskManager.viewData[this.paths[e].m],a=this.paths[e].p,(t||this.filterManager._mdf||i.prop._mdf)&&a.setAttribute("d",i.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=a.getTotalLength();n="0 0 0 "+l*o+" ";var h,p=l*(s-o),u=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,c=Math.floor(p/u);for(h=0;h<c;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((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var d=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*d[0])+","+bmFloor(255*d[1])+","+bmFloor(255*d[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,r=a[0]+" "+i[0]+" "+e[0],n=a[1]+" "+i[1]+" "+e[1],o=a[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute("type","table"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,a,r){for(var n,o,s=0,l=Math.min(t,e),h=Math.max(t,e),p=Array.call(null,{length:256}),u=0,c=r-a,d=e-t;s<=256;)o=(n=s/256)<=l?d<0?r:a:n>=h?d<0?a:r:a+c*Math.pow((n-t)/d,1/i),p[u]=o,u+=1,s+=256/255;return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(a),n=i*Math.sin(a);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,a){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var r=createNS("feGaussianBlur");r.setAttribute("result",a),t.appendChild(r),this.feGaussianBlur=r}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var a,r=i.children,n=0,o=r.length;n<o&&r[n]!==t.layerElement;)n+=1;n<=o-2&&(a=r[n+1]);var s=createNS("use");s.setAttribute("href","#"+e),a?i.insertBefore(s,a):i.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),a=createNS("mask");a.setAttribute("id",e.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var r=t.globalData.defs;r.appendChild(a);var n=createNS("symbol");n.setAttribute("id",i),this.replaceInParent(e,i),n.appendChild(e.layerElement),r.appendChild(n);var o=createNS("use");o.setAttribute("href","#"+i),a.appendChild(o),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,a=e.length;i<a;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,a=3==i?0:e,r=2==i?0:e;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+r);var n=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,i=e[0].p.v,a=e[1].p.v,r=1===e[2].p.v,n=e[3].p.v,o=r?n:e[4].p.v,s=e[5].p.v,l=e[6].p.v,h=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(.01*o,.01*n,1),this.matrix.rotate(-h*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(a[0],a[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())}(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie(),lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=Array(e);i<e;i++)a[i]=t[i];return a}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _defineProperty(t,e,i){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _iterableToArrayLimit(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var a,r,n,o,s=[],l=!0,h=!1;try{if(n=(i=i.call(t)).next,0===e);else for(;!(l=(a=n.call(i)).done)&&(s.push(a.value),s.length!==e);l=!0);}catch(t){h=!0,r=t}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(h)throw r}}return s}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ownKeys(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,a)}return i}function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(i),!0).forEach(function(e){_defineProperty(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function _objectWithoutProperties(t,e){if(null==t)return{};var i,a,r=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(a=0;a<n.length;a++)i=n[a],e.includes(i)||{}.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var i={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.includes(a))continue;i[a]=t[a]}return i}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var a=i.call(t,e);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:e+""}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function(t,e){var i=t.animationData,a=t.loop,r=t.autoplay,n=t.initialSegment,o=t.onComplete,s=t.onLoopComplete,l=t.onEnterFrame,h=t.onSegmentStart,p=t.onConfigReady,u=t.onDataReady,c=t.onDataFailed,d=t.onLoadedImages,f=t.onDOMLoaded,m=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var y=_objectWithoutProperties(t,_excluded$1),g=_slicedToArray(useState(!1),2),b=g[0],v=g[1],_=useRef(),x=useRef(null);return useEffect(function(){var e=function(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(x.current){null===(e=_.current)||void 0===e||e.destroy();var a=_objectSpread2(_objectSpread2(_objectSpread2({},t),i),{},{container:x.current});return _.current=lottie.loadAnimation(a),v(!!_.current),function(){var t;null===(t=_.current)||void 0===t||t.destroy(),_.current=void 0}}}();return function(){return null==e?void 0:e()}},[i,a]),useEffect(function(){_.current&&(_.current.autoplay=!!r)},[r]),useEffect(function(){_.current&&(n?Array.isArray(n)&&n.length&&((_.current.currentRawFrame<n[0]||_.current.currentRawFrame>n[1])&&(_.current.currentRawFrame=n[0]),_.current.setSegment(n[0],n[1])):_.current.resetSegments(!0))},[n]),useEffect(function(){var t=[{name:"complete",handler:o},{name:"loopComplete",handler:s},{name:"enterFrame",handler:l},{name:"segmentStart",handler:h},{name:"config_ready",handler:p},{name:"data_ready",handler:u},{name:"data_failed",handler:c},{name:"loaded_images",handler:d},{name:"DOMLoaded",handler:f},{name:"destroy",handler:m}].filter(function(t){return null!=t.handler});if(t.length){var e=t.map(function(t){var e;return null===(e=_.current)||void 0===e||e.addEventListener(t.name,t.handler),function(){var e;null===(e=_.current)||void 0===e||e.removeEventListener(t.name,t.handler)}});return function(){e.forEach(function(t){return t()})}}},[o,s,l,h,p,u,c,d,f,m]),{View:React.createElement("div",_objectSpread2({style:e,ref:x},y)),play:function(){var t;null===(t=_.current)||void 0===t||t.play()},stop:function(){var t;null===(t=_.current)||void 0===t||t.stop()},pause:function(){var t;null===(t=_.current)||void 0===t||t.pause()},setSpeed:function(t){var e;null===(e=_.current)||void 0===e||e.setSpeed(t)},goToAndStop:function(t,e){var i;null===(i=_.current)||void 0===i||i.goToAndStop(t,e)},goToAndPlay:function(t,e){var i;null===(i=_.current)||void 0===i||i.goToAndPlay(t,e)},setDirection:function(t){var e;null===(e=_.current)||void 0===e||e.setDirection(t)},playSegments:function(t,e){var i;null===(i=_.current)||void 0===i||i.playSegments(t,e)},setSubframe:function(t){var e;null===(e=_.current)||void 0===e||e.setSubframe(t)},getDuration:function(t){var e;return null===(e=_.current)||void 0===e?void 0:e.getDuration(t)},destroy:function(){var t;null===(t=_.current)||void 0===t||t.destroy(),_.current=void 0},animationContainerRef:x,animationLoaded:b,animationItem:_.current}};function getContainerVisibility(t){var e=t.getBoundingClientRect(),i=e.top,a=e.height;return(window.innerHeight-i)/(window.innerHeight+a)}function getContainerCursorPosition(t,e,i){var a=t.getBoundingClientRect(),r=a.top;return{x:(e-a.left)/a.width,y:(i-r)/a.height}}var useInitInteractivity=function(t){var e=t.wrapperRef,i=t.animationItem,a=t.mode,r=t.actions;useEffect(function(){var t=e.current;if(t&&i&&r.length){i.stop();var n,o,s,l,h;switch(a){case"scroll":return l=null,h=function(){var e=getContainerVisibility(t),a=r.find(function(t){var i=t.visibility;return i&&e>=i[0]&&e<=i[1]});if(a){if("seek"===a.type&&a.visibility&&2===a.frames.length){var n=a.frames[0]+Math.ceil((e-a.visibility[0])/(a.visibility[1]-a.visibility[0])*a.frames[1]);
|
|
29
|
+
//! goToAndStop must be relative to the start of the current segment
|
|
30
|
+
i.goToAndStop(n-i.firstFrame-1,!0)}"loop"===a.type&&(null===l||l!==a.frames||i.isPaused)&&(i.playSegments(a.frames,!0),l=a.frames),"play"===a.type&&i.isPaused&&(i.resetSegments(!0),i.play()),"stop"===a.type&&i.goToAndStop(a.frames[0]-i.firstFrame-1,!0)}},document.addEventListener("scroll",h),function(){document.removeEventListener("scroll",h)};case"cursor":return n=function(e,a){var n=e,o=a;if(-1!==n&&-1!==o){var s=getContainerCursorPosition(t,n,o);n=s.x,o=s.y}var l=r.find(function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?n>=e.x[0]&&n<=e.x[1]&&o>=e.y[0]&&o<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&n===e.x&&o===e.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var h=(n-l.position.x[0])/(l.position.x[1]-l.position.x[0]),p=(o-l.position.y[0])/(l.position.y[1]-l.position.y[0]);i.playSegments(l.frames,!0),i.goToAndStop(Math.ceil((h+p)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&i.playSegments(l.frames,!0),"play"===l.type&&(i.isPaused&&i.resetSegments(!1),i.playSegments(l.frames)),"stop"===l.type&&i.goToAndStop(l.frames[0],!0)}},o=function(t){n(t.clientX,t.clientY)},s=function(){n(-1,-1)},t.addEventListener("mousemove",o),t.addEventListener("mouseout",s),function(){t.removeEventListener("mousemove",o),t.removeEventListener("mouseout",s)}}}},[a,i])},useLottieInteractivity=function(t){var e=t.actions,i=t.mode,a=t.lottieObj,r=a.animationItem,n=a.View,o=a.animationContainerRef;return useInitInteractivity({actions:e,animationItem:r,mode:i,wrapperRef:o}),n},_excluded=["style","interactivity"],Lottie=function(t){var e,i,a,r=t.style,n=t.interactivity,o=_objectWithoutProperties(t,_excluded),s=useLottie(o,r),l=s.View,h=s.play,p=s.stop,u=s.pause,c=s.setSpeed,d=s.goToAndStop,f=s.goToAndPlay,m=s.setDirection,y=s.playSegments,g=s.setSubframe,b=s.getDuration,v=s.destroy,_=s.animationContainerRef,x=s.animationLoaded,k=s.animationItem;return useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:h,stop:p,pause:u,setSpeed:c,goToAndPlay:f,goToAndStop:d,setDirection:m,playSegments:y,setSubframe:g,getDuration:b,destroy:v,animationContainerRef:_,animationLoaded:x,animationItem:k})},[null===(e=t.lottieRef)||void 0===e?void 0:e.current]),useLottieInteractivity({lottieObj:{View:l,play:h,stop:p,pause:u,setSpeed:c,goToAndStop:d,goToAndPlay:f,setDirection:m,playSegments:y,setSubframe:g,getDuration:b,destroy:v,animationContainerRef:_,animationLoaded:x,animationItem:k},actions:null!==(i=null==n?void 0:n.actions)&&void 0!==i?i:[],mode:null!==(a=null==n?void 0:n.mode)&&void 0!==a?a:"scroll"})};function OnboardImage({node:t}){t=useNode(t);const[e,i]=useState(null);return useEffect(()=>{t.attributes?.lottie&&fetch(t.attributes?.lottie).then(t=>t.json()).then(t=>i(t))},[t.attributes?.lottie]),t.attributes?.video_url?jsx("video",{autoPlay:!0,muted:!0,loop:!0,src:t.attributes?.video_url}):t.attributes?.lottie?e?jsx(Lottie,{animationData:e}):jsx("div",{children:"Loading..."}):jsx(Image$2,{node:{...t,type:"image"}})}var OnboardImage$1=React.memo(OnboardImage);function OnboardItem({node:t}){t=useNode(t);const e=t.attributes?.flexDirection,i=t.attributes?.display,a=parseSize(t.attributes?.paddingHorizontal);return jsx("div",{className:"embla__slide",style:{gap:parseSize(t.attributes?.gap),flexDirection:e,display:i,paddingRight:a,paddingLeft:a},children:t.children&&jsx(RenderNode$1,{node:t.children})})}var OnboardItem$1=React.memo(OnboardItem);function Text({node:t}){t=useNode(t);const{defaultLanguage:e,localication:i}=useRenderStore(t=>({defaultLanguage:t.defaultLanguage,localication:t.localication})),a=t.children,r=extractTextStyle(t);return jsx("p",{style:r,children:i?.[e??"en"]?.[a]??a})}var Text$1=React.memo(Text);function OnboardSubtitle({node:t}){return t=useNode(t),jsx(Text$1,{node:t})}var OnboardSubtitle$1=React.memo(OnboardSubtitle);function OnboardTitle({node:t}){return t=useNode(t),jsx(Text$1,{node:t})}var OnboardTitle$1=React.memo(OnboardTitle);function extractViewStyle(t){const e=t.attributes,i={display:"flex",flexDirection:"column"};return e?((e?.scrollable??!1)&&("row"===e.flexDirection?(i.overflowX="auto",i.overflowY="hidden",i.maxWidth="100%",i.maxHeight="100%"):(i.overflowY="auto",i.overflowX="hidden",i.maxHeight="100%",i.maxWidth="100%")),e.flexDirection&&(i.flexDirection=e.flexDirection),e.alignItems&&(i.alignItems=e.alignItems),e.justifyContent&&(i.justifyContent=e.justifyContent),void 0!==e.gap&&(i.gap=e.gap),void 0!==e.padding&&(i.padding=e.padding),void 0!==e.margin&&(i.margin=e.margin),e.backgroundColor&&(i.backgroundColor=e.backgroundColor),void 0!==e.borderRadius&&(i.borderRadius=e.borderRadius),void 0!==e.width&&(i.width=e.width),void 0!==e.height&&(i.height=e.height),i):i}function View({node:t}){return t=useNode(t),jsx("div",{style:extractViewStyle(t),className:"scroll-container",children:jsx(RenderNode$1,{node:t.children})})}var View$1=React.memo(View);function RenderNode({node:t}){if(isNodeNullOrUndefined(t))return null;if(isNodeString(t))return jsx(Text$1,{node:{children:t,type:"text"}});if(isNodeArray(t))return jsx(Fragment,{children:t.map((t,e)=>jsx(RenderNode,{node:t},e))});const e=t;switch(e?.type){case"button":return jsx(Button$1,{node:e});case"carousel":return jsx(Carousel$1,{node:e});case"carouselButtons":return jsx(CarouselButtons$1,{node:e});case"carouselDots":return jsx(CarouselDots$1,{node:e});case"carouselItem":return jsx(CarouselItem$1,{node:e});case"carouselProvider":return jsx(CarouselProvider$1,{node:e});case"image":return jsx(Image$2,{node:e});case"Onboard":return jsx(Onboard$1,{node:e});case"OnboardButton":return jsx(OnboardButton$1,{node:e});case"OnboardButtons":return jsx(OnboardButtons$1,{node:e});case"OnboardDot":return jsx(OnboardDot$1,{node:e});case"OnboardFooter":return jsx(OnboardFooter$1,{node:e});case"OnboardImage":return jsx(OnboardImage$1,{node:e});case"OnboardItem":return jsx(OnboardItem$1,{node:e});case"OnboardProvider":return jsx(OnboardProvider$1,{node:e});case"OnboardSubtitle":return jsx(OnboardSubtitle$1,{node:e});case"OnboardTitle":return jsx(OnboardTitle$1,{node:e});case"text":return jsx(Text$1,{node:e});case"view":return jsx(View$1,{node:e});default:return other(e?.type)}}var RenderNode$1=React.memo(RenderNode);const patterns$1=[{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"button",children:"string",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"]}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carousel",children:"carouselItem",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselButtons",children:"never",attributes:{buttonType:["previous_button","next_button","skip_button"],skipNumber:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselDots",children:"never",attributes:{dotType:["expanding_dot","normal_dot","scaling_dot","sliding_border","sliding_dot","liquid_like"]}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselItem",children:"node",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselProvider",children:"node",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"image",children:"never",attributes:{src:"string",width:"number",height:"number",resizeMode:["cover","contain","stretch","center"],borderRadius:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"Onboard",children:"node",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardButton",children:"never",attributes:{labelKey:"string",button_text_color:"string",animation:["simple-animation","line-animation","blur","blur-animation","blur-line-animation"],animation_color:"string",button_background_color:"string",flex:"number",events:"EventObject[]"}},types:{EventObject:{type:["Permission","Navigate"],permission:["att","notification","rating","GDPR","null"],navigate_to:"string",targetIndex:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardButtons",children:"node",attributes:{buttonType:["previous_button","next_button","skip_button"],skipNumber:"number",buttons_direction:["row","column"],forIndex:"number",seperatorColor:"string",condition:["carousel-index"],conditionVariable:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardDot",children:"node",attributes:{dotType:["expanding_dot","normal_dot","scaling_dot","sliding_border","sliding_dot","liquid_like"],inactive_dot_opacity:"number",expanding_dot_width:"number",dot_style:"string",container_style:"string",active_dot_color:"string"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardFooter",children:"node",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number",textLocalizationKey:"string",linkedWordFirstLocalizationKey:"string",linkedWordFirstColor:"string",linkedWordFirstPage:"string",linkedWordSecondLocalizationKey:"string",linkedWordSecondColor:"string",linkedWordSecondPage:"string"}},defaults:{paddingHorizontal:"24@s"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardImage",children:"node",attributes:{src:"string",width:"number",height:"number",resizeMode:["cover","contain","stretch","center"],borderRadius:"number",video_url:"string",lottie:"string"}},types:{},defaults:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardItem",children:"node",attributes:{display:["flex","block"],gap:"string",flexDirection:["row","column"],paddingHorizontal:"string"}},defaults:{gap:"16@vs",display:"flex",flexDirection:"column",paddingHorizontal:"24@s"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardProvider",children:"node",attributes:{theme:"string",use_safe_area_inset:"boolean",paddingTop:"number",paddingRight:"number",paddingBottom:"number",paddingLeft:"number"}},defaults:{paddingTop:0,paddingRight:0,paddingBottom:8,paddingLeft:0}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardSubtitle",children:"node",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number"}},defaults:{fontSize:"14@fs",fontWeight:"600"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardTitle",children:"node",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number"}},defaults:{fontSize:"24@fs",fontWeight:"700",textAlign:"center"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"text",children:"string",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number",color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"]}},types:{},defaults:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"view",children:["node","array"],attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number"}}}],patterns=patterns$1,patternIndex=new Map(patterns.map(t=>[t.pattern.type,t]));function getPatternByType(t){if("string"==typeof t)return patternIndex.get(t)}function getAttributeSchema(t){const e=getPatternByType(t);return e?.pattern.attributes}function getDefaultsForType(t){const e=getPatternByType(t);return e?.defaults}function getTypeSchema(t,e){if(!t||!e)return;const i=getPatternByType(t),a=i?.types;return a?.[e]}function isPrimitiveType(t){return"string"===t||"number"===t||"boolean"===t}function getArrayItemType(t){return"string"!=typeof t?null:t.endsWith("[]")?t.slice(0,-2):null}function Field({name:t,type:e,value:i,onChange:a,componentType:r}){if(Array.isArray(e))return jsxs("select",{value:i??"",onChange:t=>a(t.target.value),className:"input",children:[jsx("option",{value:"",children:"(none)"}),e.map(t=>jsx("option",{value:t,children:t},t))]});const n="string"==typeof e?getArrayItemType(e):null;if(n){const t=Array.isArray(i)?i:[];if(isPrimitiveType(n))return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,i)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("input","number"===n?{type:"number",value:e??"",onChange:e=>{const r=[...t];r[i]=""===e.target.value?void 0:Number(e.target.value),a(r)},className:"input",style:{flex:1}}:"boolean"===n?{type:"checkbox",checked:Boolean(e),onChange:e=>{const r=[...t];r[i]=e.target.checked,a(r)}}:{type:"text",value:e??"",onChange:e=>{const r=[...t];r[i]=""===e.target.value?void 0:e.target.value,a(r)},className:"input",style:{flex:1}}),jsx("button",{type:"button",onClick:()=>{const e=t.filter((t,e)=>e!==i);a(e.length?e:void 0)},children:"remove"})]},i)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,"boolean"!==n&&("number"===n?0:"")];a(e)},children:"add"})})]});const e=getTypeSchema(r,n)??{};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((i,n)=>{const o=i??{};return jsxs("div",{style:{border:"1px solid #ddd",borderRadius:6,padding:8},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(e).map(([e,i])=>jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:i,value:o?.[e],onChange:i=>{const r=[...t],s={...o??{},[e]:i};r[n]=s,a(r)},componentType:r})]},e))}),jsx("div",{style:{marginTop:8},children:jsx("button",{type:"button",onClick:()=>{const e=t.filter((t,e)=>e!==n);a(e.length?e:void 0)},children:"remove"})})]},n)}),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,{}];a(e)},children:"add"})})]})}if("string"==typeof e&&!isPrimitiveType(e)){const t=getTypeSchema(r,e);if(t){const e=i??{};return jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(t).map(([t,i])=>jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:t}),jsx(Field,{name:t,type:i,value:e?.[t],onChange:i=>{const r={...e??{},[t]:i};a(r)},componentType:r})]},t))})}}if("number"===e)return jsx("input",{type:"number",value:i??"",onChange:t=>a(""===t.target.value?void 0:Number(t.target.value)),className:"input"});if("boolean"===e)return jsx("input",{type:"checkbox",checked:Boolean(i),onChange:t=>a(t.target.checked)});if("string[]"===e){const t=Array.isArray(i)?i:[];return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,i)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("input",{type:"text",value:e??"",onChange:e=>{const r=[...t];r[i]=e.target.value,a(r)},className:"input",style:{flex:1}}),jsx("button",{type:"button",onClick:()=>{const e=t.filter((t,e)=>e!==i);a(e.length?e:void 0)},children:"remove"})]},i)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,""];a(e)},children:"add"})})]})}return jsx("input",{type:"text",value:i??"",onChange:t=>a(""===t.target.value?void 0:t.target.value),className:"input"})}function AttributesEditor({node:t,onChange:e}){if(!t||isNodeString(t))return null;const i=t,a=getAttributeSchema(i?.type)??{},r=i?.attributes??{},n=Object.entries(a);return 0===n.length?jsx("div",{style:{padding:8,opacity:.7},children:"No editable attributes"}):jsx("div",{style:{},children:n.map(([t,a])=>jsxs(React.Fragment,{children:[jsx("p",{style:{alignSelf:"center",marginBottom:4,fontWeight:700},children:t}),jsx("div",{style:{marginBottom:16},children:jsx(Field,{name:t,type:a,value:r?.[t],onChange:a=>{const n={...i,attributes:{...r??{},[t]:a}};e(n)},componentType:i?.type})})]},t))})}var AttributesEditor$1=React.memo(AttributesEditor),name$8="hello-world",version$8="1.0.0",previewConfig$8={theme:"light",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data$8={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:16,backgroundColor:"#F5F7FA"},children:[{type:"text",children:"Hello, world!",attributes:{color:"#111827",fontSize:24,fontWeight:"600"}},{type:"text",children:"Welcome to react-native-builder",attributes:{color:"#6B7280",fontSize:14,fontWeight:"400"}}]},simple1={name:name$8,version:version$8,previewConfig:previewConfig$8,data:data$8},name$7="hello-world-2-advanced",version$7="1.0.0",previewConfig$7={theme:"light",screenSize:{width:390,height:844},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data$7={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",gap:16,padding:16,backgroundColor:"#F3F4F6"},children:[{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#111827",borderRadius:12},children:[{type:"text",children:"Dashboard",attributes:{color:"#FFFFFF",fontSize:20,fontWeight:"600"}},{type:"view",attributes:{flexDirection:"row",gap:8},children:[{type:"text",children:"Help",attributes:{color:"#D1D5DB",fontSize:14}},{type:"text",children:"Profile",attributes:{color:"#D1D5DB",fontSize:14}}]}]},{type:"image",attributes:{src:"https://picsum.photos/720/320",width:358,height:160,borderRadius:12,resizeMode:"cover"},children:null},{type:"view",attributes:{flexDirection:"column",gap:8,padding:12,backgroundColor:"#FFFFFF",borderRadius:12},children:[{type:"text",children:"Welcome back!",attributes:{color:"#111827",fontSize:18,fontWeight:"600"}},{type:"text",children:"Here's what's new today.",attributes:{color:"#6B7280",fontSize:14}}]},{type:"view",attributes:{flexDirection:"column",gap:12},children:[{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 1",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"Due today",attributes:{color:"#059669",fontSize:12,fontWeight:"600"}}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 2",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"2 days left",attributes:{color:"#D97706",fontSize:12,fontWeight:"600"}}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 3",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"Completed",attributes:{color:"#6B7280",fontSize:12,fontWeight:"600"}}]}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",padding:12,backgroundColor:"#111827",borderRadius:12},children:[{type:"text",children:"Home",attributes:{color:"#FFFFFF",fontSize:14}},{type:"text",children:"Search",attributes:{color:"#9CA3AF",fontSize:14}},{type:"text",children:"Settings",attributes:{color:"#9CA3AF",fontSize:14}}]}]},simple2={name:name$7,version:version$7,previewConfig:previewConfig$7,data:data$7},name$6="carousel-sample",version$6="1.0.0",previewConfig$6={theme:"light",screenSize:{width:375,height:812}},data$6={type:"carouselProvider",children:[{type:"carousel",attributes:{loop:!0,align:"center",dragFree:!0},children:[{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#f5f5f5",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Welcome to our app!"}}},{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#e8f5e9",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Discover amazing features"}}},{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#e3f2fd",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Get started now!"}}}]},{type:"carouselDots",attributes:{dotType:"expanding_dot"}},{type:"carouselButtons",attributes:{buttonType:["previous_button","next_button","skip_button"],skipNumber:3}}]},carouselSample={name:name$6,version:version$6,previewConfig:previewConfig$6,data:data$6},name$5="vpn-onboard-1 (legacy)",version$5="0.0.0",previewConfig$5={theme:"dark",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"Secure your connection","onboard.title.two-page":"Access content worldwide","onboard.title.three-page":"Fast and reliable","onboard.title.four-page":"Stay notified and safe","onboard.subtitle.one-page":"Encrypt your traffic and protect your privacy on public Wi‑Fi.","onboard.subtitle.two-page":"Connect to high‑speed servers in many countries with one tap.","onboard.subtitle.three-page":"Auto‑connect to the best server for speed and stability.","onboard.subtitle.four-page":"Enable notifications for connection status and security tips.","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy Policy","view.onboarding.btnTerms":"Terms of Service"},ar:{"onboard.title.one-page":"أمّن اتصالك","onboard.title.two-page":"وصول إلى المحتوى حول العالم","onboard.title.three-page":"سرعة واعتمادية","onboard.title.four-page":"إشعارات وحماية دائمة","onboard.subtitle.one-page":"قم بتشفير حركة المرور وحماية خصوصيتك على شبكات Wi‑Fi العامة.","onboard.subtitle.two-page":"اتصل بخوادم عالية السرعة في بلدان متعددة بضغطة واحدة.","onboard.subtitle.three-page":"يتصل التطبيق تلقائياً بأفضل خادم لسرعة وثبات أعلى.","onboard.subtitle.four-page":"فعّل الإشعارات لمعرفة حالة الاتصال والحصول على نصائح الأمان.","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة، فإنك توافق على","view.onboarding.btnPrivacy":"سياسة الخصوصية","view.onboarding.btnTerms":"شروط الخدمة"}},defaultLanguage:"en"},data$5={name:"Dark TextCall Onboard",key:"app_onboard",theme:"dark",order:1,data:{layout:"onboard-layout",key:"c92tR8J5wbTb3fav",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cfVlTs4XoBH6eHhy",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"c9BoiuHQQ8yWnnrH",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:"#007AFF"}}],styles:[]}},{layout:"footer-layout",key:"c1yg0ajCz15VwbXO",attributes:{texts:[{layout:"Text",key:"cUEOEGlJHu98Bm4M",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#A2A4B1",width:null,linkedwords:[{layout:"LinkedWords",key:"clmIqcwqLbpf5lIC",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#1778F2",page:"privacy"}},{layout:"LinkedWords",key:"cR2iFjXZv6aKSipt",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#1778F2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"ctJKE0JpoyY2U2py",attributes:{key:"app_onboard-page1",components:[{layout:"title-layout",key:"czW0y11EJ3Gh2zzu",attributes:{title_localization_key:"onboard.title.one-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cFtkJ7cGjlbh0Onm",attributes:{styles:[{layout:"Styles",key:"cRfjSLASNf4EfmRk",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"ccaPDeW3TvadGknh",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png"}},{layout:"subtitle-layout",key:"cS8AJFtYl83g6N7l",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cfxys3dqXXQIoWib",attributes:{styles:[{layout:"Styles",key:"cdqzVzWecbtQHHOZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cADNBYmKZhuqHDe3",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cvgeWjSVK9714zE4",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cYbS4tQuDbqRjJP6",attributes:{events:[{layout:"Navigate",key:"cnwVlRVwR2Oa37Wa",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cO7EfoP6WnwCbZFN",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cLDTXbDjepmRilZP",attributes:{events:[{layout:"Navigate",key:"cVe34D6lvpt6jfkc",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cJ5P9VObBmpapdIz",attributes:{key:"app_onboard-page2",components:[{layout:"title-layout",key:"cWaHDeqd8N5LpAdr",attributes:{title_localization_key:"onboard.title.two-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"c5n7fUy2koZD1iY5",attributes:{styles:[{layout:"Styles",key:"c7uK89glQz4MHrZc",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"czvCm7FXp4sQrlBi",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png"}},{layout:"subtitle-layout",key:"cJO33EgsbvxZVV57",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cKZLIPtywsfi5Mbz",attributes:{styles:[{layout:"Styles",key:"cce8Yv695FQgSOIH",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cR43NhA7k4XN4bFU",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cZbvXpcCDBzCy4xq",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cOweHSx9FF1rKmXE",attributes:{events:[{layout:"Permission",key:"cfnK7ww1nyzVLquV",attributes:{permission:"att"}},{layout:"Navigate",key:"cdQXhjSGC97aDV5Q",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cP3ZMgA0DgYBMTjH",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5ud1yXzSHQOl99m",attributes:{events:[{layout:"Permission",key:"caWvIjHlpzkWsSkU",attributes:{permission:"att"}},{layout:"Navigate",key:"cqCP16bRc8OrVYnj",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cxNW3BfLJV7m1Rwb",attributes:{key:"app_onboard-page3",components:[{layout:"title-layout",key:"c4jWJqatyNrpRDv5",attributes:{title_localization_key:"onboard.title.three-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cyxWxkO4H6GcLGpV",attributes:{styles:[{layout:"Styles",key:"c2EQHxoKIHqE6usb",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"cQPrCUhAFzzvZvFL",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png"}},{layout:"subtitle-layout",key:"c845kgEFTytoeb5n",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c8I866TChSrcTxLA",attributes:{styles:[{layout:"Styles",key:"cPi4CsGpMpnyl1Qo",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cHRet3F1pMbLLv4e",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cPjaITcYuN3jYXaz",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cwHy3RdNIAhrdyk9",attributes:{events:[{layout:"Navigate",key:"c9tQ5JwLNEl4m6iE",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"calWhCnS7bVqDLSm",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5WDaaMMyzF6wbMw",attributes:{events:[{layout:"Permission",key:"czWoimoKrntcpPMu",attributes:{permission:"rating"}},{layout:"Navigate",key:"csga6VsmtRL4dJoH",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"c6OPQRoj7nIYq8qP",attributes:{key:"app_onboard-page4",components:[{layout:"title-layout",key:"cY7hE2QfCFUpAvIr",attributes:{title_localization_key:"onboard.title.four-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"ch0psI5S3gY93lkS",attributes:{styles:[{layout:"Styles",key:"ci8SBK0k6Ox0cAY4",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"cyzRYhHdmYpSZKWz",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png"}},{layout:"subtitle-layout",key:"cEtGSW5s89pVPO3p",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c7q1e8klEqvuTib2",attributes:{styles:[{layout:"Styles",key:"cRoSg4908XkN9tLr",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cFOXUx3qf7wvRQPK",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cILIurDiN8C6Nk9t",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cPkTX9lI025TuA2d",attributes:{events:[{layout:"Permission",key:"cenFPRHcA87TmbkC",attributes:{permission:"notification"}},{layout:"Navigate",key:"c0ZQIOWZ81XjaWmA",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}}]}}},vpnOnboard1={name:name$5,version:version$5,previewConfig:previewConfig$5,data:data$5},name$4="vpn-onboard-2 (legacy)",version$4="0.0.0",previewConfig$4={theme:"light",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.two-page":"Two Page","onboard.title.three-page":"Three Page","onboard.title.four-page":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.two-page":" العربية","onboard.title.three-page":" العربية","onboard.title.four-page":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.four-page":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$4={name:"Light TextCall Onboard",key:"app_onboard",theme:"light",order:3,data:{layout:"onboard-layout",key:"ckcw0WXRY8sNR2SF",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cGCRrFJjSzYghZ4Q",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"cDpkxR1j6ooHGrU9",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:"#007AFF"}}],styles:[]}},{layout:"footer-layout",key:"cqkMhW1f0q0tDK1r",attributes:{texts:[{layout:"Text",key:"cAxC6cU3U9i1jxTq",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#A2A4B1",width:null,linkedwords:[{layout:"LinkedWords",key:"cLISLCL0ybiWxpze",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#1778F2",page:"privacy"}},{layout:"LinkedWords",key:"ccsI2OTvUzQJLo6g",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#1778F2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cFxlMJ99IXCFJfba",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"cEgDUYy0F2959VoY",attributes:{title_localization_key:"onboard.title.one-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cIflKK6zz4926DQA",attributes:{styles:[{layout:"Styles",key:"cXGRCly7sTM1wPXp",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cd3LFLBcjBfEz90D",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/0c65cbe8e0c2e1242146e15dfd50a486.png"}},{layout:"subtitle-layout",key:"cumoZTMcp3Ewdgtq",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"c8iENqCAEKDzSNEq",attributes:{styles:[{layout:"Styles",key:"cRjElXN8FhsCbwbt",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cQgWwz7oN0lXiGnV",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cmbJYRjfh25VI7pA",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8fR08Jp0GWJtW4U",attributes:{events:[{layout:"Navigate",key:"cGFaKCTZ6RkGAKw7",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:"line-animation",animation_color:"#FFFFFF"}},{layout:"button-layout",key:"cBx6we1fBvBHNCdM",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cqC2H6ygkjzKj1TW",attributes:{events:[{layout:"Navigate",key:"cMmDIAW9MAUNcPQA",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:"simple-animation",animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cgh6jEnSF0m2MrAE",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cuIDsIKqy8wnkxWO",attributes:{title_localization_key:"onboard.title.two-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c1wm3B4Avb8ewdwB",attributes:{styles:[{layout:"Styles",key:"cS5KY2wak36qZ7Po",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"c0uaSOOOFSldTX3O",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/e8bbdde825cd23bdc44a9b2b32af22dc.png"}},{layout:"subtitle-layout",key:"cJUPKqGxDQLJhF3r",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cjgSBQCcdIHlgqAL",attributes:{styles:[{layout:"Styles",key:"cRmpdFLYvNtRBrjZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"chGpEveV4xybUQje",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cdjnq57fneiIxBd2",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8XixwmhiXnhSWJN",attributes:{events:[{layout:"Permission",key:"cBsbZMsU90ojXQqO",attributes:{permission:"att"}},{layout:"Navigate",key:"c3ByPHQlA5V0EDfL",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cQEeZInlfh7u3vXB",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cmu069qysyrgassB",attributes:{events:[{layout:"Permission",key:"c4hcnecQIMrouWCy",attributes:{permission:"att"}},{layout:"Navigate",key:"cxHcZeIJBXHmR779",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cSvSxn9VJuC5Ld7i",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"cKrfdMzfUxGdYhst",attributes:{title_localization_key:"onboard.title.three-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cO0uTIgytvIPus6O",attributes:{styles:[{layout:"Styles",key:"ccUpxb1n3yNqZig0",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cW7eKTK8kwrmHPZF",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/3f312b38faf844746250cd54f27f91da.png"}},{layout:"subtitle-layout",key:"cKeCJntAd8La4kt6",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cl8QMTgTLyRZEo5d",attributes:{styles:[{layout:"Styles",key:"c7IfOTlsraVDcxsv",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cVnKizCpTO9oedvX",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cQh6Yr0AySTv7JTJ",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cXBXIWhYO8sMiAea",attributes:{events:[{layout:"Navigate",key:"ckR5hy3gdEX9Tbcp",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"caD93TUBvqM9stiK",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cUWsk6ZaobgtjygM",attributes:{events:[{layout:"Permission",key:"cD9EfBXK9ojHo5K3",attributes:{permission:"rating"}},{layout:"Navigate",key:"cvdgLEu69Or72lJh",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cmx3sT3YRgACNoBv",attributes:{key:"app_onboard-page4",min_android_version:"12",components:[{layout:"title-layout",key:"cLijTCmxd6N2beqg",attributes:{title_localization_key:"onboard.title.four-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c9E18gzzew8i3c0i",attributes:{styles:[{layout:"Styles",key:"cEgw4X1DFG20kX7Y",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cZoslaVC3xb7mcWc",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/f4db2a32a43239c3bbbe742cb0f18b61.png"}},{layout:"subtitle-layout",key:"cdCwD5nJ2DlDO5KY",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cNc4qj0KNwAXFENj",attributes:{styles:[{layout:"Styles",key:"c2GDBOndoaWxghsj",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cAOcd1hyFKZNzosk",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cxFfSJNZcJqPavkh",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cgtBZJvdDVlzDAIE",attributes:{events:[{layout:"Permission",key:"cO5VtdbSc4xVTEUo",attributes:{permission:"notification"}},{layout:"Navigate",key:"cTEG49LslKtvx85s",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}},vpnOnboard2={name:name$4,version:version$4,previewConfig:previewConfig$4,data:data$4},name$3="vpn-onboard-3 (legacy)",version$3="0.0.0",previewConfig$3={theme:"light",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$3={name:"Light TextCall Onboard - 2",key:"app_onboard_ab_classic",theme:"light",order:7,data:{layout:"onboard-layout",key:"ckcw0WXRY8sNR2SF",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cGCRrFJjSzYghZ4Q",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"cgk7eew2LNqwIfdl",attributes:{inactive_dot_opacity:null,active_dot_color:null,expanding_dot_width:null,dot_style:null,container_style:null}}],styles:[]}},{layout:"footer-layout",key:"cqkMhW1f0q0tDK1r",attributes:{texts:[{layout:"Text",key:"cAxC6cU3U9i1jxTq",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#81838F",width:null,linkedwords:[{layout:"LinkedWords",key:"cLISLCL0ybiWxpze",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#81838F",page:"privacy"}},{layout:"LinkedWords",key:"ccsI2OTvUzQJLo6g",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#81838F",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cFxlMJ99IXCFJfba",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"cEgDUYy0F2959VoY",attributes:{title_localization_key:"onboard.title.one-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cIflKK6zz4926DQA",attributes:{styles:[{layout:"Styles",key:"cXGRCly7sTM1wPXp",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cd3LFLBcjBfEz90D",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/c68cca84580d6920c883c220e57346c0.jpg"}},{layout:"subtitle-layout",key:"cumoZTMcp3Ewdgtq",attributes:{subtitle_localization_key:"onboard.subtitle.one-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"c8iENqCAEKDzSNEq",attributes:{styles:[{layout:"Styles",key:"cRjElXN8FhsCbwbt",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cQgWwz7oN0lXiGnV",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cmbJYRjfh25VI7pA",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8fR08Jp0GWJtW4U",attributes:{events:[{layout:"Navigate",key:"cGFaKCTZ6RkGAKw7",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cBx6we1fBvBHNCdM",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cqC2H6ygkjzKj1TW",attributes:{events:[{layout:"Navigate",key:"cMmDIAW9MAUNcPQA",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cgh6jEnSF0m2MrAE",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cuIDsIKqy8wnkxWO",attributes:{title_localization_key:"onboard.title.two-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c1wm3B4Avb8ewdwB",attributes:{styles:[{layout:"Styles",key:"cS5KY2wak36qZ7Po",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"c0uaSOOOFSldTX3O",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cJUPKqGxDQLJhF3r",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cjgSBQCcdIHlgqAL",attributes:{styles:[{layout:"Styles",key:"cRmpdFLYvNtRBrjZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"chGpEveV4xybUQje",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cdjnq57fneiIxBd2",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8XixwmhiXnhSWJN",attributes:{events:[{layout:"Permission",key:"cBsbZMsU90ojXQqO",attributes:{permission:"att"}},{layout:"Navigate",key:"c3ByPHQlA5V0EDfL",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cQEeZInlfh7u3vXB",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cmu069qysyrgassB",attributes:{events:[{layout:"Permission",key:"c4hcnecQIMrouWCy",attributes:{permission:"att"}},{layout:"Navigate",key:"cxHcZeIJBXHmR779",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cSvSxn9VJuC5Ld7i",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"cKrfdMzfUxGdYhst",attributes:{title_localization_key:"onboard.title.three-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cO0uTIgytvIPus6O",attributes:{styles:[{layout:"Styles",key:"ccUpxb1n3yNqZig0",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cW7eKTK8kwrmHPZF",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cKeCJntAd8La4kt6",attributes:{subtitle_localization_key:"onboard.subtitle.three-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cl8QMTgTLyRZEo5d",attributes:{styles:[{layout:"Styles",key:"c7IfOTlsraVDcxsv",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cVnKizCpTO9oedvX",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cQh6Yr0AySTv7JTJ",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cXBXIWhYO8sMiAea",attributes:{events:[{layout:"Navigate",key:"ckR5hy3gdEX9Tbcp",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"caD93TUBvqM9stiK",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cUWsk6ZaobgtjygM",attributes:{events:[{layout:"Permission",key:"cAD0IWOPG8glmDtL",attributes:{permission:"rating"}},{layout:"Navigate",key:"cvdgLEu69Or72lJh",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cmx3sT3YRgACNoBv",attributes:{key:"app_onboard-page4",min_android_version:"12",components:[{layout:"title-layout",key:"cLijTCmxd6N2beqg",attributes:{title_localization_key:"onboard.title.four-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c9E18gzzew8i3c0i",attributes:{styles:[{layout:"Styles",key:"cEgw4X1DFG20kX7Y",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cZoslaVC3xb7mcWc",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cdCwD5nJ2DlDO5KY",attributes:{subtitle_localization_key:"onboard.subtitle.four-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cNc4qj0KNwAXFENj",attributes:{styles:[{layout:"Styles",key:"c2GDBOndoaWxghsj",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cAOcd1hyFKZNzosk",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cxFfSJNZcJqPavkh",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cgtBZJvdDVlzDAIE",attributes:{events:[{layout:"Permission",key:"cO5VtdbSc4xVTEUo",attributes:{permission:"notification"}},{layout:"Navigate",key:"cTEG49LslKtvx85s",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}},vpnOnboard3={name:name$3,version:version$3,previewConfig:previewConfig$3,data:data$3},name$2="vpn-onboard-4 (legacy)",version$2="0.0.0",type$2="nova",previewConfig$2={theme:"dark",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$2={name:"Dark TextCall Onboard - 2",key:"app_onboard_ab_classic",theme:"dark",order:8,data:{layout:"onboard-layout",key:"c92tR8J5wbTb3fav",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cfVlTs4XoBH6eHhy",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"ca08ia4pBmSgWK9o",attributes:{inactive_dot_opacity:null,active_dot_color:null,expanding_dot_width:null,dot_style:null,container_style:null}}],styles:[]}},{layout:"footer-layout",key:"c1yg0ajCz15VwbXO",attributes:{texts:[{layout:"Text",key:"cUEOEGlJHu98Bm4M",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#81838F",width:null,linkedwords:[{layout:"LinkedWords",key:"clmIqcwqLbpf5lIC",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#81838F",page:"privacy"}},{layout:"LinkedWords",key:"cR2iFjXZv6aKSipt",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#81838F",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"ctJKE0JpoyY2U2py",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"czW0y11EJ3Gh2zzu",attributes:{title_localization_key:"onboard.title.one-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cFtkJ7cGjlbh0Onm",attributes:{styles:[{layout:"Styles",key:"cRfjSLASNf4EfmRk",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"ccaPDeW3TvadGknh",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/aadf6191a8f1091831647b3a01e1a1aa.jpg"}},{layout:"subtitle-layout",key:"cS8AJFtYl83g6N7l",attributes:{subtitle_localization_key:"onboard.subtitle.one-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cfxys3dqXXQIoWib",attributes:{styles:[{layout:"Styles",key:"cdqzVzWecbtQHHOZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cADNBYmKZhuqHDe3",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cvgeWjSVK9714zE4",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cYbS4tQuDbqRjJP6",attributes:{events:[{layout:"Navigate",key:"cnwVlRVwR2Oa37Wa",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cO7EfoP6WnwCbZFN",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cLDTXbDjepmRilZP",attributes:{events:[{layout:"Navigate",key:"cVe34D6lvpt6jfkc",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cJ5P9VObBmpapdIz",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cWaHDeqd8N5LpAdr",attributes:{title_localization_key:"onboard.title.two-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"c5n7fUy2koZD1iY5",attributes:{styles:[{layout:"Styles",key:"c7uK89glQz4MHrZc",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"czvCm7FXp4sQrlBi",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cJO33EgsbvxZVV57",attributes:{subtitle_localization_key:"onboard.subtitle.two-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cKZLIPtywsfi5Mbz",attributes:{styles:[{layout:"Styles",key:"cce8Yv695FQgSOIH",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cR43NhA7k4XN4bFU",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cZbvXpcCDBzCy4xq",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cOweHSx9FF1rKmXE",attributes:{events:[{layout:"Permission",key:"cfnK7ww1nyzVLquV",attributes:{permission:"att"}},{layout:"Navigate",key:"cdQXhjSGC97aDV5Q",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cP3ZMgA0DgYBMTjH",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5ud1yXzSHQOl99m",attributes:{events:[{layout:"Permission",key:"caWvIjHlpzkWsSkU",attributes:{permission:"att"}},{layout:"Navigate",key:"cqCP16bRc8OrVYnj",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cxNW3BfLJV7m1Rwb",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"c4jWJqatyNrpRDv5",attributes:{title_localization_key:"onboard.title.three-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cyxWxkO4H6GcLGpV",attributes:{styles:[{layout:"Styles",key:"c2EQHxoKIHqE6usb",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cQPrCUhAFzzvZvFL",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"c845kgEFTytoeb5n",attributes:{subtitle_localization_key:"onboard.subtitle.three-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c8I866TChSrcTxLA",attributes:{styles:[{layout:"Styles",key:"cPi4CsGpMpnyl1Qo",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cHRet3F1pMbLLv4e",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cPjaITcYuN3jYXaz",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cwHy3RdNIAhrdyk9",attributes:{events:[{layout:"Navigate",key:"c9tQ5JwLNEl4m6iE",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"calWhCnS7bVqDLSm",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5WDaaMMyzF6wbMw",attributes:{events:[{layout:"Permission",key:"cVbu3bzJMfCd2WQY",attributes:{permission:"rating"}},{layout:"Navigate",key:"csga6VsmtRL4dJoH",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"c6OPQRoj7nIYq8qP",attributes:{key:"app_onboard-page4",min_android_version:null,components:[{layout:"title-layout",key:"cY7hE2QfCFUpAvIr",attributes:{title_localization_key:"onboard.title.four-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"ch0psI5S3gY93lkS",attributes:{styles:[{layout:"Styles",key:"ci8SBK0k6Ox0cAY4",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cyzRYhHdmYpSZKWz",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cEtGSW5s89pVPO3p",attributes:{subtitle_localization_key:"onboard.subtitle.four-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c7q1e8klEqvuTib2",attributes:{styles:[{layout:"Styles",key:"cRoSg4908XkN9tLr",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cFOXUx3qf7wvRQPK",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cILIurDiN8C6Nk9t",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cPkTX9lI025TuA2d",attributes:{events:[{layout:"Permission",key:"cenFPRHcA87TmbkC",attributes:{permission:"notification"}},{layout:"Navigate",key:"c0ZQIOWZ81XjaWmA",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}},vpnOnboard4={name:name$2,version:version$2,type:type$2,previewConfig:previewConfig$2,data:data$2},name$1="vpn-onboard-5 (legacy)",version$1="0.0.0",type$1="nova",previewConfig$1={theme:"light",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$1={name:"app_onboard",key:"app_onboard",theme:"all",order:2,data:{layout:"onboard-layout",key:"cJVVSS7q9Qe1trnb",attributes:{general_components:[{layout:"dots-layout",key:"cdNahru8m9BDyVr9",attributes:{position:"before_buttons",dots_type:null,dot:[{layout:"expanding_dot",key:"ctWoX6jkgKy1nNGQ",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:null}}],styles:[]}},{layout:"footer-layout",key:"cgOl0PVI66a51Xr3",attributes:{texts:[{layout:"Text",key:"cAqUfPg1uA4PjtmV",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#A2A4B1",width:null,linkedwords:[{layout:"LinkedWords",key:"c0wJnbvQu8vLB0BJ",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#0450E2",page:"privacy"}},{layout:"LinkedWords",key:"cyoIya4E71u4OHWq",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#0450E2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cQcJZFJji41pTo1Q",attributes:{key:"app_onboard-page1",components:[{layout:"image-layout",key:"cXoQJuJ7cxH4s64I",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"c8qXZHfKYcivItNT",attributes:{styles:[{layout:"Styles",key:"ckUXExyauqNBUAwB",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",lottie:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/lottie/0be045f9fe44c790a4525a1a6bc4b837.json",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/d237d6cde8bc9126cee7b47e30cd19f0.png"}},{layout:"title-layout",key:"cDhqeMQJnHwrKDWx",attributes:{title_localization_key:"onboard.title.one-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNXYD8CPZaJoOKjR",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cWgBUJIek4XF9XfH",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cG54WG2pH8LVehkt",attributes:{button_text_localization_key:"onboard.skip.one-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cxo62SYr15CFXzWj",attributes:{events:[{layout:"Navigate",key:"cLhVLu0pR5E3OuHk",attributes:{next_page_key:"app_onboard-page4","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],width:"50",flex:"1",animation:null,animation_color:null}},{layout:"button-layout",key:"c8r6biKAKhGKBZXn",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,width:"50",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c7fcavpy1HpWKAHU",attributes:{events:[{layout:"Navigate",key:"cEgzPBOiNNrbshp5",attributes:{next_page_key:"app_onboard-page2","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"crIFXHKvOoOdLFbc",attributes:{key:"app_onboard-page2",components:[{layout:"image-layout",key:"crGN7ZD9Al0KDbyO",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"cw0P5mczWuONhEbg",attributes:{styles:[{layout:"Styles",key:"cHzPzMduoxMt2IY1",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/820dc32b8252555058e7014a7fd1652f.png",video_url:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/video/440346112d02e65be3767c39b96cd7c0.mp4"}},{layout:"title-layout",key:"cSlHcp6WVRGdj233",attributes:{title_localization_key:"onboard.title.two-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ciJuUH1g7kHrcZDq",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cSDr8RbSvsWaHgVS",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cl9p09wdxNez5TmI",attributes:{button_text_localization_key:"onboard.skip.two-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cOARcdUyemgWucuS",attributes:{events:[{layout:"Navigate",key:"cdF9gJjTW63M4S3c",attributes:{next_page_key:"app_onboard-page4","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],width:"50",flex:"1",animation:null,animation_color:null}},{layout:"button-layout",key:"cC9C4xf7Kwnryduw",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,width:"50",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cO0ZNlY08Wa33OUp",attributes:{events:[{layout:"Navigate",key:"cOwrXBiSMDOXAARa",attributes:{next_page_key:"app_onboard-page3","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cRcBQOfcmficdPUY",attributes:{key:"app_onboard-page3",components:[{layout:"image-layout",key:"chWqWfotZ42DTHkU",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"cOyhSl2d6xD4YBT8",attributes:{styles:[{layout:"Styles",key:"cStijuDpCE47LXF4",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/fbb8677cd23cba79eef0ebef181e3b57.png"}},{layout:"title-layout",key:"cc69aqukeCYi6zuO",attributes:{title_localization_key:"onboard.title.three-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNtG6fvLNACSZliB",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cRNaL0iEMtwOMqVT",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"ceQNn3ve4OdblaEm",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cM9lBEdgv8VzYR0t",attributes:{events:[{layout:"Navigate",key:"cEt0vTfkypQWrkrx",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cFjtaB6BOUV3Ip29",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,width:"50",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cuPFPKGosJNEU49L",attributes:{events:[{layout:"Navigate",key:"c47aYuDXDJXnpdCF",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cvF8znA2sZJvJKV5",attributes:{key:"app_onboard-page4",components:[{layout:"image-layout",key:"cmw7qmHSA52Mttez",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"cDnXLpY6QmMXPGhT",attributes:{styles:[{layout:"Styles",key:"cVzDRXhfx5P3NQKQ",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/18cdd5cc478389df8ff362f95b7173ea.png"}},{layout:"title-layout",key:"cMW4PNcuTdZKSngn",attributes:{title_localization_key:"onboard.title.five-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ccpicN327gsRyFJp",attributes:{subtitle_localization_key:"onboard.subtitle.five-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cdm2DIT7kD4SvwxW",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cDDu4EvIPgtDFSOe",attributes:{flex:"1",button_text_localization_key:"onboard.skip.five-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"ciNwcrOQRS8rUQWX",attributes:{events:[{layout:"Navigate",key:"ceoJdn5Vi8VlKwGB",attributes:{next_page_key:"app_onboard-page6",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cvNQ3BzQKrtWrLaK",attributes:{show_text:!0,button_text_localization_key:"onboard.next.five-page",is_passive_button:!1,flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cixURShcsDonDzuS",attributes:{events:[{layout:"Permission",key:"cYiDsu5eOu4VHjTb",attributes:{permission:"GDPR"}},{layout:"Navigate",key:"c424DHuSbxJtA4m8",attributes:{next_page_key:"app_onboard-page6",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cULySX5qq2hxSO5N",attributes:{key:"app_onboard-page6",min_android_version:"12",components:[{layout:"image-layout",key:"cZCzg1jcXG2rXy1b",attributes:{is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",styles:[{layout:"style-layout",key:"ckoRsXLKpMCILG9F",attributes:{styles:[{layout:"Styles",key:"cHURGqbxNgt96chA",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/3c1225f83f5a5c934926fab3cb0e65d5.png"}},{layout:"title-layout",key:"cO6wWotYOuJPLDbc",attributes:{title_localization_key:"onboard.title.six-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#080A17",coloredwords:[],styles:[]}},{layout:"subtitle-layout",key:"cDIVj9rl0VIBxbI2",attributes:{subtitle_localization_key:"onboard.subtitle.six-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cxRVdgxRS50IFXeQ",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"ckLBCEjo9LbNbgtq",attributes:{flex:"1",button_text_localization_key:"onboard.skip.five-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cXZQSRK1d7cHi73U",attributes:{events:[{layout:"Navigate",key:"cINgrHJRYvVyheTR",attributes:{next_page_key:"app_onboard-page5",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"chWb7guVX17iKROt",attributes:{show_text:!0,button_text_localization_key:"onboard.next.five-page",is_passive_button:!1,flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cYIevROTAbCVnyyQ",attributes:{events:[{layout:"Permission",key:"cm5mY6ECMFw1WyMB",attributes:{permission:"rating"}},{layout:"Navigate",key:"cQ3RIXG05B7MHlKH",attributes:{next_page_key:"app_onboard-page5",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cvwqV44zsCpvLwy7",attributes:{key:"app_onboard-page5",min_android_version:"12",components:[{layout:"image-layout",key:"chRCiye8FT1Cy6SA",attributes:{is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",styles:[{layout:"style-layout",key:"c3b9w6meMhe7XkUE",attributes:{styles:[{layout:"Styles",key:"cPy0O9UunlzDGjHK",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ff07e162b2a63d38f07909e87848d46f.png"}},{layout:"title-layout",key:"chcc2uafpnDHXSD8",attributes:{title_localization_key:"onboard.title.four-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#080A17",coloredwords:[],styles:[]}},{layout:"subtitle-layout",key:"c0VwHBlerb8RtnWH",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"ccaVCvljoCGjS7Rk",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cizDbKCkioVCtGHQ",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"ck2MWHW68aJnpBxI",attributes:{events:[{layout:"Permission",key:"cSpEVuZ4QYflHoCs",attributes:{permission:"notification"}},{layout:"Navigate",key:"cqEcD9va4vTra00o",attributes:{next_page_key:"subscriptions",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:"home",close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}],use_safe_area_inset:!0}}},vpnOnboard5={name:name$1,version:version$1,type:type$1,previewConfig:previewConfig$1,data:data$1},name="vpn-onboard-6 (legacy)",version="0.0.0",type="nova",previewConfig={theme:"dark",screenSize:{width:375,height:812},isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data={name:"app_onboard1",key:"app_onboard",theme:"dark",order:3,data:{layout:"onboard-layout",key:"cJVVSS7q9Qe1trnb",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cdNahru8m9BDyVr9",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"ctWoX6jkgKy1nNGQ",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:null}}],styles:[]}},{layout:"footer-layout",key:"cgOl0PVI66a51Xr3",attributes:{texts:[{layout:"Text",key:"cAqUfPg1uA4PjtmV",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#81838F",width:null,linkedwords:[{layout:"LinkedWords",key:"c0wJnbvQu8vLB0BJ",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#0450E2",page:"privacy"}},{layout:"LinkedWords",key:"cyoIya4E71u4OHWq",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#0450E2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cQcJZFJji41pTo1Q",attributes:{key:"app_onboard-page1",components:[{layout:"image-layout",key:"cXoQJuJ7cxH4s64I",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"c5j5kKdUlw2FPgpj",attributes:{styles:[{layout:"Styles",key:"c2wx1diAfvoO73UE",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/9cb1d668b3724655f93a91e5eee771c5.png"}},{layout:"title-layout",key:"cDhqeMQJnHwrKDWx",attributes:{title_localization_key:"onboard.title.one-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNXYD8CPZaJoOKjR",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cWgBUJIek4XF9XfH",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cG54WG2pH8LVehkt",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#161827",actions:[{layout:"action-layout",key:"cxo62SYr15CFXzWj",attributes:{events:[{layout:"Navigate",key:"cLhVLu0pR5E3OuHk",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"c8r6biKAKhGKBZXn",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c7fcavpy1HpWKAHU",attributes:{events:[{layout:"Navigate",key:"cEgzPBOiNNrbshp5",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"crIFXHKvOoOdLFbc",attributes:{key:"app_onboard-page2",components:[{layout:"image-layout",key:"crGN7ZD9Al0KDbyO",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"ctLDm5bItpLEGj67",attributes:{styles:[{layout:"Styles",key:"cjvTMl0iVyMoSLJX",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/f8d0c64bf89cc5f2f14126d0544ba174.png"}},{layout:"title-layout",key:"cSlHcp6WVRGdj233",attributes:{title_localization_key:"onboard.title.two-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ciJuUH1g7kHrcZDq",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cSDr8RbSvsWaHgVS",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cl9p09wdxNez5TmI",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#161827",actions:[{layout:"action-layout",key:"cOARcdUyemgWucuS",attributes:{events:[{layout:"Navigate",key:"cdF9gJjTW63M4S3c",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cC9C4xf7Kwnryduw",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cO0ZNlY08Wa33OUp",attributes:{events:[{layout:"Navigate",key:"cOwrXBiSMDOXAARa",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cRcBQOfcmficdPUY",attributes:{key:"app_onboard-page3",components:[{layout:"image-layout",key:"chWqWfotZ42DTHkU",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"cjqEEYogrLEzZRtY",attributes:{styles:[{layout:"Styles",key:"c5PHmIfw5M0ncTMb",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ad823809885c1a2a8e4632039f35a94e.png"}},{layout:"title-layout",key:"cc69aqukeCYi6zuO",attributes:{title_localization_key:"onboard.title.three-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNtG6fvLNACSZliB",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cRNaL0iEMtwOMqVT",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"c70LtlMO3Nv6Cgb4",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#161827",actions:[{layout:"action-layout",key:"cmLkX9THQz0n5cmC",attributes:{events:[{layout:"Navigate",key:"cUsGGKCMR6jtd041",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cFjtaB6BOUV3Ip29",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cWnCp8SEvoozyzHt",attributes:{events:[{layout:"Permission",key:"cuBXgAPhZi9KjP9e",attributes:{permission:"rating"}},{layout:"Navigate",key:"cuDh9kCby5zuxxM2",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cvF8znA2sZJvJKV5",attributes:{key:"app_onboard-page4",components:[{layout:"image-layout",key:"cmw7qmHSA52Mttez",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"clFXKiPX8Zc5DZa9",attributes:{styles:[{layout:"Styles",key:"cPLa5Mzc2mMNHcVS",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ede1705c51f3434ae9053ed5f29bf5dd.png"}},{layout:"title-layout",key:"cMW4PNcuTdZKSngn",attributes:{title_localization_key:"onboard.title.four-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ccpicN327gsRyFJp",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cdm2DIT7kD4SvwxW",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cc4zDTvmHh5AhjTr",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cab9Uvd4nqeUA4Hb",attributes:{events:[{layout:"Permission",key:"cW6WWySokxpYwV9w",attributes:{permission:"notification"}},{layout:"Navigate",key:"cBdaRtFk5Iqo1FGu",attributes:{next_page_key:"subscriptions",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:"home",close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:"12"}}]}}},vpnOnboard6={name:name,version:version,type:type,previewConfig:previewConfig,data:data};function novaToJson(t){const e=t.data.data?.layout;return console.info("layout",e),"onboard-layout"===e?onboardNovaToJson(t):null}function onboardNovaToJson(t){const e=t?.data?.data?.attributes||t?.data?.attributes||{},i=e?.general_components||[],a=e?.data||[],r=mapDotsFromGeneralComponents(i),n=mapFooterFromGeneralComponents(i),{carouselNode:o,providerLevelButtons:s}=buildCarouselFromPages(a);return{type:"OnboardProvider",isMain:!0,key:t?.data?.data?.key,children:[o,...r?[r]:[],...s.length?s:[],...n?[n]:[]],attributes:{theme:t?.data?.theme,use_safe_area_inset:void 0===e?.use_safe_area_inset||e?.use_safe_area_inset}}}function buildCarouselFromPages(t){const e=t.filter(t=>"simple-onboard-layout"===t?.layout),i=new Map;e.forEach((t,e)=>{const a=t?.attributes?.key;"string"==typeof a&&i.set(a,e)});const a=[];return{carouselNode:{type:"Onboard",children:e.map(t=>buildCarouselItem(t,i,a))},providerLevelButtons:a}}function buildCarouselItem(t,e,i){const a=t?.attributes?.components||[],r=[],n=t?.attributes?.key,o="string"==typeof n&&e.has(n)?e.get(n):void 0;for(const t of a)if("title-layout"===t?.layout){const e=t?.attributes?.title_localization_key||"",i=t?.attributes?.title_color||void 0,{fontSize:a,textAlign:n,marginTop:o,fontWeight:s}=extractTextStyleAttributesFromComponent(t);r.push({type:"OnboardTitle",attributes:i||a||n||o||s?{...i?{color:i}:{},..."number"==typeof a?{fontSize:a}:{},...n?{textAlign:n}:{},..."number"==typeof o?{marginTop:o}:{},...s?{fontWeight:s}:{}}:void 0,children:e})}else if("subtitle-layout"===t?.layout){const e=t?.attributes?.subtitle_localization_key||"",i=t?.attributes?.subtitle_color||void 0,{fontSize:a,textAlign:n,marginTop:o,fontWeight:s}=extractTextStyleAttributesFromComponent(t);r.push({type:"OnboardSubtitle",attributes:i||a||n||o||s?{...i?{color:i}:{},..."number"==typeof a?{fontSize:a}:{},...n?{textAlign:n}:{},..."number"==typeof o?{marginTop:o}:{},...s?{fontWeight:s}:{}}:void 0,children:e})}else if("image-layout"===t?.layout){const e=t?.attributes?.image||t?.attributes?.src||"",i=t?.attributes?.height??t?.attributes?.ios_height??t?.attributes?.android_height,a="string"==typeof i?Number.parseInt(i,10):"number"==typeof i?i:void 0,n=Boolean(t?.attributes?.is_bg_image),o=extractViewStyleAttributesFromComponent(t),s=t?.attributes?.lottie,l=t?.attributes?.video_url;e&&r.push({type:"OnboardImage",attributes:{src:e,...a?{height:a}:{},resizeMode:n?"cover":"contain",..."number"==typeof o.borderRadius?{borderRadius:o.borderRadius}:{},..."string"==typeof s?{lottie:s}:{},..."string"==typeof l?{video_url:l}:{}},children:void 0})}else if("Buttons"===t?.layout){const a=t?.attributes?.buttons_direction,r=t?.attributes?.buttons||[],n=[];for(const t of r){const i=t?.attributes||{},a=i?.button_text_localization_key||"",r=i?.button_text_color,o=i?.button_background_color,s=i?.animation,l=i?.animation_color,h=i?.flex?Number(i.flex):void 0,p=i?.actions||[],u=[];for(const t of p){const i=t?.attributes?.events||[];for(const t of i)if("Permission"===t?.layout){const e=t?.attributes?.permission;u.push({type:"Permission",permission:e})}else if("Navigate"===t?.layout){const i=t?.attributes?.next_page_key,a="string"==typeof i&&e.has(i),r=a?null:"string"==typeof i?i:null;u.push({type:"Navigate",navigate_to:r,...a?{targetIndex:e.get(i)}:{}}),a&&e.get(i)}}n.push({type:"OnboardButton",attributes:{labelKey:a,..."string"==typeof r?{button_text_color:r}:{},..."string"==typeof s?{animation:s}:{},..."string"==typeof l?{animation_color:l}:{},..."string"==typeof o?{button_background_color:o}:{},..."number"==typeof h?{flex:h}:{},...u.length?{events:u}:{}},children:void 0})}n.length>0&&i.push({type:"OnboardButtons",attributes:{...a?{buttons_direction:a}:{},..."number"==typeof o?{condition:"carousel-index",conditionVariable:o}:{}},children:n})}const s=t?.attributes?.key,l="string"==typeof s&&s||("string"==typeof t?.key?t.key:void 0);return{type:"OnboardItem",...l?{key:l}:{},children:r}}function extractTextStyleAttributesFromComponent(t){const e={},i=t?.attributes?.styles||[];if(!Array.isArray(i)||0===i.length)return e;const a=new Set(["left","center","right","justify"]),r=new Set(["normal","bold","100","200","300","400","500","600","700","800","900"]);for(const t of i){if("style-layout"!==t?.layout)continue;const i=t?.attributes?.styles||[];if(Array.isArray(i))for(const t of i){if("Styles"!==t?.layout)continue;const i=t?.attributes?.type;if("textStyle"!==i)continue;const n=t?.attributes?.style||{},o=n?.fontSize;if("number"==typeof o&&Number.isFinite(o))e.fontSize=o;else if("string"==typeof o){const t=Number.parseInt(o,10);Number.isFinite(t)&&(e.fontSize=t)}const s=n?.textAlign;"string"==typeof s&&a.has(s)&&(e.textAlign=s);const l=n?.marginTop;if("number"==typeof l&&Number.isFinite(l))e.marginTop=l;else if("string"==typeof l){const t=Number.parseInt(l,10);Number.isFinite(t)&&(e.marginTop=t)}const h=n?.fontWeight;let p;"number"==typeof h&&Number.isFinite(h)?p=String(h):"string"==typeof h&&(p=h),p&&r.has(p)&&(e.fontWeight=p)}}return e}function extractViewStyleAttributesFromComponent(t){const e={},i=t?.attributes?.styles||[];if(!Array.isArray(i)||0===i.length)return e;for(const t of i){if("style-layout"!==t?.layout)continue;const i=t?.attributes?.styles||[];if(Array.isArray(i))for(const t of i){if("Styles"!==t?.layout)continue;const i=t?.attributes?.style||{},a=i?.borderRadius;if("number"==typeof a&&Number.isFinite(a))e.borderRadius=a;else if("string"==typeof a){const t=Number.parseInt(a,10);Number.isFinite(t)&&(e.borderRadius=t)}}}return e}function mapDotsFromGeneralComponents(t){const e=t.find(t=>"dots-layout"===t?.layout);if(!e)return null;const i=e?.attributes?.dot||[],a=i?.[0],r=a?.layout,n=a?.attributes||{},o=t=>{if("number"==typeof t)return t;if("string"==typeof t&&t.trim().length>0){const e=Number(t);return Number.isFinite(e)?e:void 0}},s=o(n?.inactive_dot_opacity),l=o(n?.expanding_dot_width),h="string"==typeof n?.dot_style?n.dot_style:void 0,p="string"==typeof n?.container_style?n.container_style:void 0,u="string"==typeof n?.active_dot_color?n.active_dot_color:void 0,c={};return r&&(c.dotType=r),void 0!==s&&(c.inactive_dot_opacity=s),void 0!==l&&(c.expanding_dot_width=l),h&&(c.dot_style=h),p&&(c.container_style=p),u&&(c.active_dot_color=u),{type:"OnboardDot",attributes:Object.keys(c).length?c:void 0,children:void 0}}function mapFooterFromGeneralComponents(t){const e=t.find(t=>"footer-layout"===t?.layout);if(!e)return null;const i=e?.attributes?.texts||[],a=[];let r,n;for(const t of i)if("Text"===t?.layout){const e=t?.attributes?.text_localization_key||"",i=t?.attributes?.text_color||void 0;r||(r=e),n||"string"!=typeof i||(n=i);const o=t?.attributes?.linkedwords||[];for(const t of o)if("LinkedWords"===t?.layout){const e=t?.attributes?.linked_word_localization_key,i=t?.attributes?.linked_word_color,r=t?.attributes?.page;a.push({text_key:e,color:i,page:r})}}const o={gap:8};r&&(o.textLocalizationKey=r),n&&(o.textColor=n);const s=a[0],l=a[1];return s&&(s.text_key&&(o.linkedWordFirstLocalizationKey=s.text_key),s.color&&(o.linkedWordFirstColor=s.color),s.page&&(o.linkedWordFirstPage=s.page)),l&&(l.text_key&&(o.linkedWordSecondLocalizationKey=l.text_key),l.color&&(o.linkedWordSecondColor=l.color),l.page&&(o.linkedWordSecondPage=l.page)),{type:"OnboardFooter",attributes:o,children:void 0}}function getSamples(){const t=[{...vpnOnboard1},{...vpnOnboard2},{...vpnOnboard3},{...vpnOnboard4},{...vpnOnboard5},{...vpnOnboard6}];return t.forEach(t=>{t.data=novaToJson(t)}),[simple1,simple2,carouselSample,...t]}function getBasicSamples(){return[simple1,simple2,carouselSample]}function getOnboardSamples(){const t=[vpnOnboard1,vpnOnboard2,vpnOnboard3,vpnOnboard4,vpnOnboard5,vpnOnboard6];return t.forEach(t=>{t.data=novaToJson(t)}),t}function DeviceMockFrame({width:t,height:e,isRtl:i,screenStyle:a,theme:r,children:n,device:o}){const s="dark"===r,[l,h,p,u]=o.insets??[0,0,0,0],c=l||("ios"===o.platform?20:24),d=(()=>{switch(o.navigationBarType){case"none":return 0;case"homeIndicator":return p||6;case"gesture":return p||24;case"threeButtons":return p||48;case"tabBar":return p||49;default:return p||0}})(),f=s?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.06)",m=s?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.04)";return jsx("div",{className:"stage-wrapper",style:{overflow:"auto"},children:jsxs("div",{className:"stage",style:{width:t,height:e,minWidth:t,maxWidth:t,minHeight:e,maxHeight:e,overflow:"hidden",position:"relative",padding:4,direction:i?"rtl":"ltr",backgroundColor:"dark"===r?a.dark.backgroundColor:a.light.backgroundColor,color:"dark"===r?a.dark.color:a.light.color,display:"flex",flexDirection:"column",borderRadius:o.radius??0},children:[jsx("div",{className:"device-status-bar",style:{position:"absolute",top:0,left:0,right:0,height:c,backgroundColor:f,flex:"0 0 auto"}}),jsx("div",{className:"device-content",style:{flex:1,overflow:"hidden",position:"relative",paddingLeft:u,paddingRight:h},children:n}),jsx("div",{className:"device-navigation-bar",style:{height:d,backgroundColor:m,flex:"0 0 auto"}})]})})}function RenderPage({data:t,theme:e,isRtl:i,screenStyle:a,localication:r,defaultLanguage:n,device:o}){const s=800*o.width/o.height;return useEffect(()=>{const{setDevice:t,setLocalication:i,setDefaultLanguage:s,setTheme:l,setScreenStyle:h}=useRenderStore.getState();t(o),i(r),s(n),l(e),h(a)},[o,r,n,e,a]),jsx(DeviceMockFrame,{width:s,height:800,isRtl:i,screenStyle:a,theme:e,device:o,children:jsx(RenderNode$1,{node:t})})}function isNodeData(t){return null!=t&&(!Array.isArray(t)&&("string"!=typeof t&&("object"==typeof t&&("type"in t&&"children"in t))))}function querySelector(t,e){if(null==t)return[];if(!e)return[];const i=e.startsWith("#"),a=i?e.slice(1):void 0,r=[],n=t=>{var o;if(null!=t)if(Array.isArray(t))for(const e of t)n(e);else"string"!=typeof t&&isNodeData(t)&&(o=t,(i?o.key===a:o.type===e)&&r.push(t),n(t.children))};return n(t),r}export{AttributesEditor$1 as AttributesEditor,DeviceMockFrame,RenderNode$1 as RenderNode,RenderPage,analyseNode,extractImageStyle,extractTextStyle,extractViewStyle,getBasicSamples,getDefaultDevice,getDevices,getOnboardSamples,getSamples,isEmptyObject,isNodeArray,isNodeNullOrUndefined,isNodeString,novaToJson,patterns$1 as patterns,querySelector,useNode};
|