@developer_tribe/react-builder 0.1.31 → 1.0.1
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/DeviceMockFrame.d.ts +1 -17
- package/dist/RenderPage.d.ts +1 -9
- 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/index.d.ts +1 -0
- package/dist/build-components/patterns.generated.d.ts +7 -2
- package/dist/components/AttributesEditorPanel.d.ts +9 -0
- package/dist/components/Breadcrumb.d.ts +13 -0
- package/dist/components/Builder.d.ts +9 -0
- package/dist/components/EditorHeader.d.ts +15 -0
- package/dist/index.cjs.js +7 -4
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.esm.js +7 -4
- package/dist/index.esm.js.map +1 -0
- package/dist/pages/ProjectPage.d.ts +11 -0
- package/dist/pages/tabs/BuilderTab.d.ts +9 -0
- package/dist/pages/tabs/DebugTab.d.ts +7 -0
- package/dist/pages/tabs/PreviewTab.d.ts +3 -0
- package/dist/store.d.ts +17 -18
- package/dist/styles.css +1 -1
- package/dist/types/PreviewConfig.d.ts +6 -3
- package/dist/types/Project.d.ts +12 -2
- package/dist/utils/copyNode.d.ts +2 -0
- package/dist/utils/logger.d.ts +11 -0
- package/dist/utils/useLogRender.d.ts +1 -0
- package/package.json +17 -9
- package/scripts/prebuild/utils/createBuildComponentsIndex.js +15 -1
- package/scripts/prebuild/utils/createGeneratedProps.js +64 -5
- package/src/AttributesEditor.tsx +2 -0
- package/src/DeviceMockFrame.tsx +22 -31
- package/src/RenderPage.tsx +5 -42
- package/src/assets/images/android.svg +43 -0
- package/src/assets/images/apple.svg +16 -0
- package/src/assets/images/background.jpg +0 -0
- package/src/assets/samples/carousel-sample.json +2 -3
- package/src/assets/samples/getSamples.ts +51 -8
- package/src/assets/samples/simple-1.json +1 -2
- package/src/assets/samples/simple-2.json +1 -2
- package/src/assets/samples/vpn-onboard-1.json +1 -2
- package/src/assets/samples/vpn-onboard-2.json +1 -2
- package/src/assets/samples/vpn-onboard-3.json +1 -2
- package/src/assets/samples/vpn-onboard-4.json +1 -2
- package/src/assets/samples/vpn-onboard-5.json +1024 -0
- package/src/assets/samples/vpn-onboard-6.json +708 -0
- package/src/build-components/Button/Button.tsx +2 -0
- package/src/build-components/Button/ButtonProps.generated.ts +14 -12
- package/src/build-components/Carousel/Carousel.tsx +2 -0
- package/src/build-components/CarouselButtons/CarouselButtons.tsx +2 -0
- package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +6 -1
- package/src/build-components/CarouselDots/CarouselDots.tsx +2 -0
- package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +9 -7
- package/src/build-components/CarouselItem/CarouselItem.tsx +2 -0
- package/src/build-components/Image/Image.tsx +2 -0
- package/src/build-components/Image/ImageProps.generated.ts +3 -1
- package/src/build-components/Onboard/Onboard.tsx +2 -0
- package/src/build-components/OnboardButton/OnboardButton.tsx +7 -4
- package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +14 -9
- package/src/build-components/OnboardButton/pattern.json +3 -2
- package/src/build-components/OnboardButtons/OnboardButtons.tsx +7 -7
- package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +10 -3
- package/src/build-components/OnboardDot/OnboardDot.tsx +2 -0
- package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +9 -7
- package/src/build-components/OnboardFooter/OnboardFooter.tsx +5 -3
- package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +33 -22
- package/src/build-components/OnboardImage/OnboardImage.tsx +26 -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/OnboardItem.tsx +2 -0
- package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +5 -2
- package/src/build-components/OnboardProvider/OnboardProvider.tsx +2 -0
- package/src/build-components/OnboardSubtitle/OnboardSubtitle.tsx +2 -0
- package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +33 -22
- package/src/build-components/OnboardTitle/OnboardTitle.tsx +2 -0
- package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +33 -22
- package/src/build-components/Text/Text.tsx +5 -3
- package/src/build-components/Text/TextProps.generated.ts +33 -22
- package/src/build-components/View/View.tsx +2 -0
- package/src/build-components/View/ViewProps.generated.ts +18 -9
- package/src/build-components/index.ts +22 -0
- package/src/build-components/patterns.generated.ts +7 -2
- package/src/components/AttributesEditorPanel.tsx +112 -0
- package/src/components/Breadcrumb.tsx +48 -0
- package/src/components/Builder.tsx +272 -0
- package/src/components/EditorHeader.tsx +186 -0
- package/src/index.ts +8 -4
- package/src/pages/ProjectPage.tsx +152 -0
- package/src/pages/tabs/BuilderTab.tsx +33 -0
- package/src/pages/tabs/DebugTab.tsx +23 -0
- package/src/pages/tabs/PreviewTab.tsx +194 -0
- package/src/size-matters/index.ts +5 -1
- package/src/store.ts +60 -38
- package/src/styles/_mixins.scss +21 -0
- package/src/styles/_variables.scss +27 -0
- package/src/styles/builder.scss +60 -0
- package/src/styles/components.scss +88 -0
- package/src/styles/editor.scss +174 -0
- package/src/styles/global.scss +200 -0
- package/src/styles/index.scss +7 -0
- package/src/styles/pages.scss +2 -0
- package/src/types/PreviewConfig.ts +14 -5
- package/src/types/Project.ts +15 -2
- package/src/utils/copyNode.ts +7 -0
- package/src/utils/extractTextStyle.ts +4 -2
- package/src/utils/getDevices.ts +1 -0
- package/src/utils/logger.ts +76 -0
- package/src/utils/novaToJson.ts +5 -0
- package/src/utils/useLogRender.ts +13 -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,{useEffect,useRef,useState,useCallback,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 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,r=t.useEffect,n=t.useLayoutEffect,a=t.useDebugValue;function o(t){var i=t.getSnapshot;t=t.value;try{var r=i();return!e(t,r)}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,c=l[1];return n(function(){h.value=s,h.getSnapshot=e,o(h)&&c({inst:h})},[t,s,e]),r(function(){return o(h)&&c({inst:h}),t(function(){o(h)&&c({inst:h})})},[t]),a(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 r=e();return!i(t,r)}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},r=e.useState,n=e.useEffect,a=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,c){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 p=c();if(!l){var u=c();i(p,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var d=(u=r({inst:{value:p,getSnapshot:c}}))[0].inst,f=u[1];return a(function(){d.value=p,d.getSnapshot=c,t(d)&&f({inst:d})},[h,p,c]),n(function(){return t(d)&&f({inst:d}),h(function(){t(d)&&f({inst:d})})},[h]),o(p),p};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},r=e.useSyncExternalStore,n=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;return withSelector_production.useSyncExternalStoreWithSelector=function(t,e,l,h,c){var p=n(null);if(null===p.current){var u={hasValue:!1,value:null};p.current=u}else u=p.current;p=o(function(){function t(t){if(!a){if(a=!0,r=t,t=h(t),void 0!==c&&u.hasValue){var e=u.value;if(c(e,t))return n=e}return n=t}if(e=n,i(r,t))return e;var o=h(t);return void 0!==c&&c(e,o)?(r=t,e):(r=t,n=o)}var r,n,a=!1,o=void 0===l?null:l;return[function(){return t(e())},null===o?void 0:function(){return t(o())}]},[e,l,h,c]);var d=r(t,p[0],p[1]);return a(function(){u.hasValue=!0,u.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,7 @@ 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},r=e.useSyncExternalStore,n=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;withSelector_development.useSyncExternalStoreWithSelector=function(t,e,l,h,c){var p=n(null);if(null===p.current){var u={hasValue:!1,value:null};p.current=u}else u=p.current;p=o(function(){function t(t){if(!a){if(a=!0,r=t,t=h(t),void 0!==c&&u.hasValue){var e=u.value;if(c(e,t))return n=e}return n=t}if(e=n,i(r,t))return e;var o=h(t);return void 0!==c&&c(e,o)?(r=t,e):(r=t,n=o)}var r,n,a=!1,o=void 0===l?null:l;return[function(){return t(e())},null===o?void 0:function(){return t(o())}]},[e,l,h,c]);var d=r(t,p[0],p[1]);return a(function(){u.hasValue=!0,u.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,r=(t,r)=>{const n="function"==typeof t?t(e):t;if(!Object.is(n,e)){const t=e;e=(null!=r?r:"object"!=typeof n||null===n)?n:Object.assign({},e,n),i.forEach(i=>i(e,t))}},n=()=>e,a={setState:r,getState:n,getInitialState:()=>o,subscribe:t=>(i.add(t),()=>i.delete(t))},o=e=t(r,n,a);return a},createStore=t=>t?createStoreImpl(t):createStoreImpl,{useSyncExternalStoreWithSelector:useSyncExternalStoreWithSelector}=useSyncExternalStoreExports,identity=t=>t;function useStoreWithEqualityFn(t,e=identity,i){const r=useSyncExternalStoreWithSelector(t.subscribe,t.getState,t.getInitialState,e,i);return React.useDebugValue(r),r}const createWithEqualityFnImpl=(t,e)=>{const i=createStore(t),r=(t,r=e)=>useStoreWithEqualityFn(i,t,r);return Object.assign(r,i),r},createWithEqualityFn=(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()),r=e instanceof Map?e:new Map(e.entries());if(i.size!==r.size)return!1;for(const[t,e]of i)if(!r.has(t)||!Object.is(e,r.get(t)))return!1;return!0},compareIterables=(t,e)=>{const i=t[Symbol.iterator](),r=e[Symbol.iterator]();let n=i.next(),a=r.next();for(;!n.done&&!a.done;){if(!Object.is(n.value,a.value))return!1;n=i.next(),a=r.next()}return!!n.done&&!!a.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)})))}const defaultAppConfig={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{},baseSize:{width:375,height:812}};var devices$1=[{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$1.slice();return t.sort((t,e)=>(t.importance??999)-(e.importance??999)),t}function getDefaultDevice(){return getDevices()[0]}function createJSONStorage(t,e){let i;try{i=t()}catch(t){return}const r={getItem:t=>{var e;const r=t=>null===t?null:JSON.parse(t,void 0),n=null!=(e=i.getItem(t))?e:null;return n instanceof Promise?n.then(r):r(n)},setItem:(t,e)=>i.setItem(t,JSON.stringify(e,void 0)),removeItem:t=>i.removeItem(t)};return r}const useRenderStore=createWithEqualityFn()(t=>({copiedNode:null,setCopiedNode:e=>t({copiedNode:e}),renderCount:0,forceRender:()=>t(t=>({renderCount:t.renderCount+1})),device:getDefaultDevice(),setDevice:e=>t({device:e}),appConfig:defaultAppConfig,setAppConfig:e=>t({appConfig:e}),logs:[],logLevel:"INFO",setLogLevel:e=>t({logLevel:e}),addLog:e=>t(t=>{const i=Date.now(),r={id:e.id??`${i}-${Math.random().toString(36).slice(2,8)}`,timestamp:e.timestamp??i,level:e.level,source:e.source,message:e.message,payload:e.payload};return{logs:[...t.logs,r]}}),clearLogs:()=>t({logs:[]}),persist:{name:"render-store",partialize:t=>({copiedNode:t.copiedNode??null,logLevel:t.logLevel}),storage:createJSONStorage(()=>localStorage)}}),shallow),levelPriority={ERROR:0,WARN:1,INFO:2,VERBOSE:3};function shouldLog(t,e){if("NONE"===t||"NONE"===e)return!1;const i=levelPriority[t];return levelPriority[e]<=i}function consoleLog(t,e,i,r){const n=`[${e}] ${i}`;switch(t){case"ERROR":console.error(n,r);break;case"WARN":console.warn(n,r);break;case"INFO":console.info(n,r);break;case"VERBOSE":console.debug(n,r)}}const logger={setLevel(t){useRenderStore.getState().setLogLevel(t),console.info(`[Logger] level set to ${t}`)},log(t,e,i,r){const{logLevel:n,addLog:a}=useRenderStore.getState();shouldLog(n,t)&&(a({level:t,source:e,message:i,payload:r}),consoleLog(t,e,i,r))},verbose(t,e,i){this.log("VERBOSE",t,e,i)},info(t,e,i){this.log("INFO",t,e,i)},warn(t,e,i){this.log("WARN",t,e,i)},error(t,e,i){this.log("ERROR",t,e,i)},clear(){useRenderStore.getState().clearLogs()}};function useLogRender(t,e){useEffect(()=>(logger.verbose(t,"rendered",e),()=>{logger.verbose(t,"unmount")}),[])}function other(t,e){return null}function useNode(t){const e=t?.type,i=getDefaultsForType(e);if(!i)return t;const r={...i,...t.attributes??{}};return{...t,attributes:r}}function Button({node:t}){return useLogRender("Button"),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}){useLogRender("Carousel"),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),r=Object.keys(e);if(i.length!==r.length)return!1;return JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&i.every(i=>{const r=t[i],n=e[i];return"function"==typeof r?`${r}`==`${n}`:isRecord(r)&&isRecord(n)?areOptionsEqual(r,n):r===n})}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),r=sortAndMapPluginToOptions(e);return i.every((t,e)=>areOptionsEqual(t,r[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 r=t[i],n=e[i],a=isObject(r)&&isObject(n);t[i]=a?objectsMergeDeep(r,n):n}),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 r(t)/2},end:r};function r(t){return e-t}const n={measure:function(r,n){return isString(t)?i[t](r):t(e,r,n)}};return n}function EventStore(){let t=[];const e={add:function(i,r,n,a={passive:!0}){let o;if("addEventListener"in i)i.addEventListener(r,n,a),o=()=>i.removeEventListener(r,n,a);else{const t=i;t.addListener(n),o=()=>t.removeListener(n)}return t.push(o),e},clear:function(){t=t.filter(t=>t())}};return e}function Animations(t,e,i,r){const n=EventStore(),a=1e3/60;let o=null,s=0,l=0;function h(t){if(!l)return;o||(o=t,i(),i());const n=t-o;for(o=t,s+=n;s>=a;)i(),s-=a;r(s/a),l&&(l=e.requestAnimationFrame(h))}function c(){e.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){n.add(t,"visibilitychange",()=>{t.hidden&&(o=null,s=0)})},destroy:function(){c(),n.clear()},start:function(){l||(l=e.requestAnimationFrame(h))},stop:c,update:i,render:r}}function Axis(t,e){const i="rtl"===e,r="y"===t,n=!r&&i?-1:1;const a={scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":i?"right":"left",endEdge:r?"bottom":i?"left":"right",measureSize:function(t){const{height:e,width:i}=t;return r?e:i},direction:function(t){return t*n}};return a}function Limit(t=0,e=0){const i=mathAbs(t-e);function r(e){return e<t}function n(t){return t>e}function a(t){return r(t)||n(t)}const o={length:i,max:e,min:t,constrain:function(i){return a(i)?r(i)?t:e:i},reachedAny:a,reachedMax:n,reachedMin:r,removeOffset:function(t){return i?t-i*Math.ceil((t-e)/i):t}};return o}function Counter(t,e,i){const{constrain:r}=Limit(0,t),n=t+1;let a=o(e);function o(t){return i?mathAbs((n+t)%n):r(t)}function s(){return a}function l(){return Counter(t,s(),i)}const h={get:s,set:function(t){return a=o(t),h},add:function(t){return l().set(s()+t)},clone:l};return h}function DragHandler(t,e,i,r,n,a,o,s,l,h,c,p,u,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)),C={mouse:300,touch:400},P={mouse:500,touch:600},T=f?43:25;let A=!1,D=0,F=0,M=!1,I=!1,j=!1,R=!1;function O(t){if(!isMouseEvent(t,r)&&t.touches.length>=2)return B(t);const e=a.readPoint(t),i=a.readPoint(t,v),o=deltaAbs(e,D),l=deltaAbs(i,F);if(!I&&!R){if(!t.cancelable)return B(t);if(I=o>l,!I)return B(t)}const c=a.pointerMove(t);o>m&&(j=!0),h.useFriction(.3).useDuration(.75),s.start(),n.add(_(c)),t.preventDefault()}function B(t){const e=c.byDistance(0,!1).index!==p.get(),i=a.pointerUp(t)*(f?P:C)[R?"mouse":"touch"],r=function(t,e){const i=p.add(-1*mathSign(t)),r=c.byDistance(t,!f).distance;return f||mathAbs(t)<E?r:y&&e?.5*r:c.byIndex(i.get(),0).distance}(_(i),e),n=factorAbs(i,r),o=T-10*n,s=g+n/50;I=!1,M=!1,w.clear(),h.useDuration(o).useFriction(s),l.distance(r,!f),R=!1,u.emit("pointerUp")}function L(t){j&&(t.stopPropagation(),t.preventDefault(),j=!1)}return{init:function(t){if(!b)return;function s(s){(isBoolean(b)||b(t,s))&&function(t){const s=isMouseEvent(t,r);if(R=s,j=f&&s&&!t.buttons&&A,A=deltaAbs(n.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,a.pointerDown(t),h.useFriction(0).useDuration(0),n.set(o),function(){const t=R?i:e;w.add(t,"touchmove",O,k).add(t,"touchend",B).add(t,"mousemove",O,k).add(t,"mouseup",B)}(),D=a.readPoint(t),F=a.readPoint(t,v),u.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",B).add(l,"contextmenu",B).add(l,"click",L,!0)},destroy:function(){S.clear(),w.clear()},pointerDown:function(){return M}}}function DragTracker(t,e){let i,r;function n(t){return t.timeStamp}function a(i,r){const n="client"+("x"===(r||t.scroll)?"X":"Y");return(isMouseEvent(i,e)?i:i.touches[0])[n]}return{pointerDown:function(t){return i=t,r=t,a(t)},pointerMove:function(t){const e=a(t)-a(r),o=n(t)-n(i)>170;return r=t,o&&(i=t),e},pointerUp:function(t){if(!i||!r)return 0;const e=a(r)-a(i),o=n(t)-n(i),s=n(t)-n(r)>170,l=e/o;return o&&!s&&mathAbs(l)>.1?l:0},readPoint:a}}function NodeRects(){return{measure:function(t){const{offsetTop:e,offsetLeft:i,offsetWidth:r,offsetHeight:n}=t;return{top:e,right:i+r,bottom:e+n,left:i,width:r,height:n}}}}function PercentOfView(t){const e={measure:function(e){return t*(e/100)}};return e}function ResizeHandler(t,e,i,r,n,a,o){const s=[t].concat(r);let l,h,c=[],p=!1;function u(t){return n.measureSize(o.measure(t))}return{init:function(n){a&&(h=u(t),c=r.map(u),l=new ResizeObserver(i=>{(isBoolean(a)||a(n,i))&&function(i){for(const a of i){if(p)return;const i=a.target===t,o=r.indexOf(a.target),s=i?h:c[o];if(mathAbs(u(i?t:r[o])-s)>=.5){n.reInit(),e.emit("resize");break}}}(i)}),i.requestAnimationFrame(()=>{s.forEach(t=>l.observe(t))}))},destroy:function(){p=!0,l&&l.disconnect()}}}function ScrollBody(t,e,i,r,n,a){let o=0,s=0,l=n,h=a,c=t.get(),p=0;function u(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=r.get()-t.get();let n=0;return!l?(o=0,i.set(r),t.set(r),n=e):(i.set(t),o+=e/l,o*=h,c+=o,t.add(o),n=c-p),s=mathSign(n),p=c,f},settled:function(){return mathAbs(r.get()-e.get())<.001},useBaseFriction:function(){return d(a)},useBaseDuration:function(){return u(n)},useFriction:d,useDuration:u};return f}function ScrollBounds(t,e,i,r,n){const a=n.measure(10),o=n.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(n){if(!h())return;const l=t.reachedMin(e.get())?"min":"max",c=mathAbs(t[l]-e.get()),p=i.get()-e.get(),u=s.constrain(c/o);i.subtract(p*u),!n&&mathAbs(p)<a&&(i.set(t.constrain(i.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}function ScrollContain(t,e,i,r,n){const a=Limit(-e+t,0),o=i.map((t,e)=>{const{min:r,max:n}=a,o=a.constrain(t),s=!e,h=arrayIsLastIndex(i,e);return s?n:h||l(r,o)?r:l(n,o)?n:o}).map(t=>parseFloat(t.toFixed(3))),s=function(){const t=o[0],e=arrayLast(o),i=o.lastIndexOf(t),r=o.indexOf(e)+1;return Limit(i,r)}();function l(t,e){return deltaAbs(t,e)<=1}return{snapsContained:function(){if(e<=t+n)return[a.max];if("keepSnaps"===r)return o;const{min:i,max:l}=s;return o.slice(i,l)}(),scrollContainLimit:s}}function ScrollLimit(t,e,i){const r=e[0];return{limit:Limit(i?r-t:arrayLast(e),r)}}function ScrollLooper(t,e,i,r){const n=e.min+.1,a=e.max+.1,{reachedMin:o,reachedMax:s}=Limit(n,a);const l={loop:function(e){if(!function(t){return 1===t?s(i.get()):-1===t&&o(i.get())}(e))return;const n=t*(-1*e);r.forEach(t=>t.add(n))}};return l}function ScrollProgress(t){const{max:e,length:i}=t;const r={get:function(t){return i?(t-e)/-i:0}};return r}function ScrollSnaps(t,e,i,r,n){const{startEdge:a,endEdge:o}=t,{groupSlides:s}=n,l=s(r).map(t=>arrayLast(t)[o]-t[0][a]).map(mathAbs).map(e.measure),h=r.map(t=>i[a]-t[a]).map(t=>-mathAbs(t)),c=s(h).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:h,snapsAligned:c}}function SlideRegistry(t,e,i,r,n,a){const{groupSlides:o}=n,{min:s,max:l}=r;return{slideRegistry:function(){const r=o(a),n=!t||"keepSnaps"===e;return 1===i.length?[a]:n?r:r.slice(s,l).map((t,e,i)=>{const r=!e,n=arrayIsLastIndex(i,e);if(r){return arrayFromNumber(arrayLast(i[0])+1)}if(n){return arrayFromNumber(arrayLastIndex(a)-arrayLast(i)[0]+1,arrayLast(i)[0])}return t})}()}}function ScrollTarget(t,e,i,r,n){const{reachedAny:a,removeOffset:o,constrain:s}=r;function l(t){return t.concat().sort((t,e)=>mathAbs(t)-mathAbs(e))[0]}function h(e,r){const n=[e,e+i,e-i];if(!t)return e;if(!r)return l(n);const a=n.filter(t=>mathSign(t)===r);return a.length?l(a):arrayLast(n)-i}return{byDistance:function(i,r){const l=n.get()+i,{index:c,distance:p}=function(i){const r=t?o(i):s(i),n=e.map((t,e)=>({diff:h(t-r,0),index:e})).sort((t,e)=>mathAbs(t.diff)-mathAbs(e.diff)),{index:a}=n[0];return{index:a,distance:r}}(l),u=!t&&a(l);return!r||u?{index:c,distance:i}:{index:c,distance:i+h(e[c]-p,0)}},byIndex:function(t,i){return{index:t,distance:h(e[t]-n.get(),i)}},shortcut:h}}function ScrollTo(t,e,i,r,n,a,o){function s(n){const s=n.distance,l=n.index!==e.get();a.add(s),s&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(i.set(e.get()),e.set(n.index),o.emit("select"))}const l={distance:function(t,e){s(n.byDistance(t,e))},index:function(t,i){const r=e.clone().set(t);s(n.byIndex(r.get(),i))}};return l}function SlideFocus(t,e,i,r,n,a,o,s){const l={passive:!0,capture:!0};let h=0;function c(t){"Tab"===t.code&&(h=(new Date).getTime())}return{init:function(p){s&&(a.add(document,"keydown",c,!1),e.forEach((e,c)=>{a.add(e,"focus",e=>{(isBoolean(s)||s(p,e))&&function(e){if((new Date).getTime()-h>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;const a=i.findIndex(t=>t.includes(e));isNumber(a)&&(n.useDuration(0),r.index(a,0),o.emit("slideFocus"))}(c)},l)}))}}}function Vector1D(t){let e=t;function i(t){return isNumber(t)?t:t.get()}const r={get:function(){return e},set:function(t){e=i(t)},add:function(t){e+=i(t)},subtract:function(t){e-=i(t)}};return r}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)`},r=e.style;let n=null,a=!1;return{clear:function(){a||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(a)return;const o=roundToTwoDecimals(t.direction(e));o!==n&&(r.transform=i(o),n=o)},toggleActive:function(t){a=!t}}}function SlideLooper(t,e,i,r,n,a,o,s,l){const h=arrayKeys(n),c=arrayKeys(n).reverse(),p=function(){const t=o[0];return f(d(c,t),i,!1)}().concat(function(){const t=e-o[0]-1;return f(d(h,t),-i,!0)}());function u(t,e){return t.reduce((t,e)=>t-n[e],e)}function d(t,e){return t.reduce((t,i)=>u(t,e)>0?t.concat([i]):t,[])}function f(n,o,h){const c=function(t){return a.map((i,n)=>({start:i-r[n]+.5+t,end:i+e-.5+t}))}(o);return n.map(e=>{const r=h?0:-i,n=h?i:0,a=h?"end":"start",o=c[e][a];return{index:e,loopPoint:o,slideLocation:Vector1D(-1),translate:Translate(t,l[e]),target:()=>s.get()>o?r:n}})}const m={canLoop:function(){return p.every(({index:t})=>{const i=h.filter(e=>e!==t);return u(i,e)<=.1})},clear:function(){p.forEach(t=>t.translate.clear())},loop:function(){p.forEach(t=>{const{target:e,translate:i,slideLocation:r}=t,n=e();n!==r.get()&&(i.to(n),r.set(n))})},loopPoints:p};return m}function SlidesHandler(t,e,i){let r,n=!1;return{init:function(a){i&&(r=new MutationObserver(t=>{n||(isBoolean(i)||i(a,t))&&function(t){for(const i of t)if("childList"===i.type){a.reInit(),e.emit("slidesChanged");break}}(t)}),r.observe(t,{childList:!0}))},destroy:function(){r&&r.disconnect(),n=!0}}}function SlidesInView(t,e,i,r){const n={};let a,o=null,s=null,l=!1;return{init:function(){a=new IntersectionObserver(t=>{l||(t.forEach(t=>{const i=e.indexOf(t.target);n[i]=t}),o=null,s=null,i.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(t=>a.observe(t))},destroy:function(){a&&a.disconnect(),l=!0},get:function(t=!0){if(t&&o)return o;if(!t&&s)return s;const e=function(t){return objectKeys(n).reduce((e,i)=>{const r=parseInt(i),{isIntersecting:a}=n[r];return(t&&a||!t&&!a)&&e.push(r),e},[])}(t);return t&&(o=e),t||(s=e),e}}}function SlideSizes(t,e,i,r,n,a){const{measureSize:o,startEdge:s,endEdge:l}=t,h=i[0]&&n,c=function(){if(!h)return 0;const t=i[0];return mathAbs(e[s]-t[s])}(),p=function(){if(!h)return 0;const t=a.getComputedStyle(arrayLast(r));return parseFloat(t.getPropertyValue(`margin-${l}`))}(),u=i.map(o),d=i.map((t,e,i)=>{const r=!e,n=arrayIsLastIndex(i,e);return r?u[e]+c:n?u[e]+p:i[e+1][s]-t[s]}).map(mathAbs);return{slideSizes:u,slideSizesWithGaps:d,startGap:c,endGap:p}}function SlidesToScroll(t,e,i,r,n,a,o,s,l){const{startEdge:h,endEdge:c,direction:p}=t,u=isNumber(i);const d={groupSlides:function(t){return u?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,u,d)=>{const f=arrayLast(i)||0,m=0===f,y=u===arrayLastIndex(t),g=n[h]-a[f][h],b=n[h]-a[u][c],v=!r&&m?p(o):0,_=mathAbs(b-(!r&&y?p(s):0)-(g+v));return d&&_>e+l&&i.push(u),y&&i.push(t.length),i},[]).map((e,i,r)=>{const n=Math.max(r[i-1]||0);return t.slice(n,e)}):[]}(t)}};return d}function Engine(t,e,i,r,n,a,o){const{align:s,axis:l,direction:h,startIndex:c,loop:p,duration:u,dragFree:d,dragThreshold:f,inViewThreshold:m,slidesToScroll:y,skipSnaps:g,containScroll:b,watchResize:v,watchSlides:_,watchDrag:x,watchFocus:k}=a,S=NodeRects(),w=S.measure(e),E=i.map(S.measure),C=Axis(l,h),P=C.measureSize(w),T=PercentOfView(P),A=Alignment(s,P),D=!p&&!!b,F=p||!!b,{slideSizes:M,slideSizesWithGaps:I,startGap:j,endGap:R}=SlideSizes(C,w,E,i,F,n),O=SlidesToScroll(C,P,y,p,w,E,j,R,2),{snaps:B,snapsAligned:L}=ScrollSnaps(C,A,w,E,O),N=-arrayLast(B)+arrayLast(I),{snapsContained:V,scrollContainLimit:z}=ScrollContain(P,N,L,b,2),G=D?V:L,{limit:H}=ScrollLimit(N,G,p),W=Counter(arrayLastIndex(G),c,p),q=W.clone(),$=arrayKeys(i),K=Animations(r,n,()=>(({dragHandler:t,scrollBody:e,scrollBounds:i,options:{loop:r}})=>{r||i.constrain(t.pointerDown()),e.seek()})(st),t=>(({scrollBody:t,translate:e,location:i,offsetLocation:r,previousLocation:n,scrollLooper:a,slideLooper:o,dragHandler:s,animation:l,eventHandler:h,scrollBounds:c,options:{loop:p}},u)=>{const d=t.settled(),f=!c.shouldConstrain(),m=p?d:d&&f,y=m&&!s.pointerDown();y&&l.stop();const g=i.get()*u+n.get()*(1-u);r.set(g),p&&(a.loop(t.direction()),o.loop()),e.to(r.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,u,.68),tt=ScrollTarget(p,G,N,H,Z),et=ScrollTo(K,W,q,Q,tt,Z,o),it=ScrollProgress(H),rt=EventStore(),nt=SlidesInView(e,i,o,m),{slideRegistry:at}=SlideRegistry(D,b,G,z,O,$),ot=SlideFocus(t,i,at,et,Q,rt,o,k),st={ownerDocument:r,ownerWindow:n,eventHandler:o,containerRect:w,slideRects:E,animation:K,axis:C,dragHandler:DragHandler(C,t,r,n,Z,DragTracker(C,n),J,K,et,Q,tt,W,o,T,d,f,g,.68,x),eventStore:rt,percentOfView:T,index:W,indexPrevious:q,limit:H,location:J,offsetLocation:U,previousLocation:Y,options:a,resizeHandler:ResizeHandler(e,o,n,i,C,v,S),scrollBody:Q,scrollBounds:ScrollBounds(H,U,Z,Q,T),scrollLooper:ScrollLooper(N,H,U,[J,U,Y,Z]),scrollProgress:it,scrollSnapList:G.map(it.get),scrollSnaps:G,scrollTarget:tt,scrollTo:et,slideLooper:SlideLooper(C,P,N,M,I,B,G,U,i),slideFocus:ot,slidesHandler:SlidesHandler(e,o,_),slidesInView:nt,slideIndexes:$,slideRegistry:at,slidesToScroll:O,target:Z,translate:Translate(C,e)};return st}function EventHandler(){let t,e={};function i(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return i(e).forEach(i=>i(t,e)),r},off:function(t,n){return e[t]=i(t).filter(t=>t!==n),r},on:function(t,n){return e[t]=i(t).concat([n]),r},clear:function(){e={}}};return r}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 r=i.breakpoints||{},n=objectKeys(r).filter(e=>t.matchMedia(e).matches).map(t=>r[t]).reduce((t,i)=>e(t,i),{});return e(i,n)},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,r){return e=r.filter(({options:e})=>!1!==t.optionsAtMedia(e).active),e.forEach(e=>e.init(i,t)),r.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){e=e.filter(t=>t.destroy())}}}function EmblaCarousel(t,e,i){const r=t.ownerDocument,n=r.defaultView,a=OptionsHandler(n),o=PluginsHandler(a),s=EventStore(),l=EventHandler(),{mergeOptions:h,optionsAtMedia:c,optionsMediaQueries:p}=a,{on:u,off:d,emit:f}=l,m=C;let y,g,b,v,_=!1,x=h(defaultOptions,EmblaCarousel.globalOptions),k=h(x),S=[];function w(e){const i=Engine(t,b,v,r,n,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=c(x),S=i||S,function(){const{container:e,slides:i}=k,r=isString(e)?t.querySelector(e):e;b=r||t.children[0];const n=isString(i)?b.querySelectorAll(i):i;v=[].slice.call(n||b.children)}(),y=w(k),p([x,...S.map(({options:t})=>t)]).forEach(t=>s.add(t,"change",C)),k.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(D),y.eventHandler.init(D),y.resizeHandler.init(D),y.slidesHandler.init(D),y.options.loop&&y.slideLooper.loop(),b.offsetParent&&v.length&&y.dragHandler.init(D),g=o.init(D,S)))}function C(t,e){const i=A();P(),E(h({startIndex:i},t),e),l.emit("reInit")}function P(){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 D={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(),P(),l.emit("destroy"),l.clear())},off:d,on:u,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),D}function useEmblaCarousel(t={},e=[]){const i=useRef(t),r=useRef(e),[n,a]=useState(),[o,s]=useState(),l=useCallback(()=>{n&&n.reInit(i.current,r.current)},[n]);return useEffect(()=>{areOptionsEqual(i.current,t)||(i.current=t,l())},[t,l]),useEffect(()=>{arePluginsEqual(r.current,e)||(r.current=e,l())},[e,l]),useEffect(()=>{if(canUseDOM()&&o){EmblaCarousel.globalOptions=useEmblaCarousel.globalOptions;const t=EmblaCarousel(o,i.current,r.current);return a(t),()=>t.destroy()}a(void 0)},[o,a]),[s,n]}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}){useLogRender("CarouselButtons"),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}){useLogRender("CarouselDots"),t=useNode(t);const e=t.attributes?.dotType||"normal_dot",i=useContext(carouselContext),[r,n]=useState(0),[a,o]=useState([]);return useEffect(()=>{i&&(o(i.scrollSnapList()),n(i.selectedScrollSnap()),i.on("select",()=>{n(i.selectedScrollSnap())}))},[i]),jsx("div",{className:`embla__dots embla__dots--${e}`,children:a.map((t,e)=>jsx("button",{onClick:()=>i?.scrollTo(t),className:"embla__dot "+(r===e?"embla__dot--selected":""),children:e===r?"●":"○"},e))})}var CarouselDots$1=React.memo(CarouselDots);function CarouselItem({node:t}){return useLogRender("CarouselItem"),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 useLogRender("Image"),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 useLogRender("Onboard"),t=useNode(t),jsx(Carousel$1,{node:{...t,type:"carousel"}})}var Onboard$1=React.memo(Onboard);const onboardContext=createContext(void 0);function OnboardProvider({node:t}){useLogRender("OnboardProvider"),t=useNode(t);const e=useRenderStore(t=>t.device),[i,r]=useEmblaCarousel(t.attributes),[n,a]=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[n].children.filter(t=>"OnboardButtons"==t?.type);return[...t.children,...i]},[n,t.children]);return useEffect(()=>{r&&(a(r.selectedScrollSnap()),r.on("select",()=>{a(r.selectedScrollSnap())}))},[r]),jsx(onboardContext.Provider,{value:{emblaApi:r,selectedIndex:n},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}){useLogRender("OnboardButton"),t=useNode(t);const{emblaApi:e}=useContext(onboardContext)??{},{appConfig:i}=useRenderStore(t=>({appConfig:t.appConfig})),r=t.attributes?.labelKey??"",n=i.localication?.[i.defaultLanguage??"en"]?.[r]??r,a=t.attributes?.flex??1,o=t.attributes?.button_text_color??"#FFFFFF",s=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:a,color:o,backgroundColor:s,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}){useLogRender("OnboardButtons"),t=useNode(t);const{appConfig:e}=useRenderStore(t=>({appConfig:t.appConfig})),i="light"===e.theme?e.screenStyle.light.seperatorColor:e.screenStyle.dark.seperatorColor,r=useContext(onboardContext)??{},[n,a]=useState(r.selectedIndex??0);useEffect(()=>{"number"==typeof r.selectedIndex&&a(r.selectedIndex)},[r.selectedIndex]);const o=t.attributes?.condition,s=t.attributes?.conditionVariable;if("carousel-index"===o&&"number"==typeof s&&s!==n)return null;const l="column"===t.attributes?.buttons_direction?"column":"row",h=t.attributes?.seperatorColor??i;return jsxs(Fragment,{children:[jsx("div",{className:"onboard__separator",style:{height:1,backgroundColor:h,width:"100%"}}),jsx("div",{className:"onboard__buttons",style:{display:"flex",flexDirection:l,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 useLogRender("OnboardDot"),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,r]=e.width<e.height?[e.width,e.height]:[e.height,e.width];return{baseSize:t.appConfig.baseSize,shortDimension:i,longDimension:r}}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$1=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$1(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,r=parseFloat(i.slice(0,t));return Number.isFinite(r)?fs(r):e}if(i.endsWith("px")){const t=parseFloat(i.replace("px",""));return Number.isFinite(t)?t:e}const r=parseFloat(i);return Number.isFinite(r)?r:e}function extractTextStyle(t){const e=t.attributes,{appConfig:{screenStyle:i,theme:r}}=useRenderStore.getState(),n="light"===r?i.light.color:i.dark.color,a={};if(!e)return a.fontSize=fs(14),a.color=n,a;if(void 0!==e.fontSize){const t=parseSize(e.fontSize);a.fontSize=t}else a.fontSize=fs(14);if(e.fontWeight&&(a.fontWeight=e.fontWeight),a.color=e.color??n,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=parseSize(e.paddingHorizontal);a.paddingLeft=t,a.paddingRight=t}if(void 0!==e.paddingVertical){const t=parseSize(e.paddingVertical);a.paddingTop=t,a.paddingBottom=t}if(void 0!==e.marginHorizontal){const t=parseSize(e.marginHorizontal);a.marginLeft=t,a.marginRight=t}if(void 0!==e.marginVertical){const t=parseSize(e.marginVertical);a.marginTop=t,a.marginBottom=t}return void 0!==e.paddingTop&&(a.paddingTop=parseSize(e.paddingTop)),void 0!==e.paddingBottom&&(a.paddingBottom=parseSize(e.paddingBottom)),void 0!==e.paddingLeft&&(a.paddingLeft=parseSize(e.paddingLeft)),void 0!==e.paddingRight&&(a.paddingRight=parseSize(e.paddingRight)),void 0!==e.marginTop&&(a.marginTop=parseSize(e.marginTop)),void 0!==e.marginBottom&&(a.marginBottom=parseSize(e.marginBottom)),void 0!==e.marginLeft&&(a.marginLeft=parseSize(e.marginLeft)),void 0!==e.marginRight&&(a.marginRight=parseSize(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 escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function buildSegments(t,e){const i=[];for(const r of e){if(!r.value)continue;const e=new RegExp(escapeRegExp(r.value),"gi");for(const n of t.matchAll(e)){if(null==n.index)continue;const t=n[0];t&&i.push({start:n.index,end:n.index+t.length,value:t,color:r.color,page:r.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 r=[];let n=-1;for(const t of i)t.start>=n&&(r.push(t),n=t.end);const a=[];let o=0;for(const{start:e,end:i,value:n,color:s,page:l}of r)e>o&&a.push({type:"text",value:t.slice(o,e)}),a.push({type:"match",value:n,color:s,page:l}),o=i;return o<t.length&&a.push({type:"text",value:t.slice(o)}),{segments:a,matchCount:r.length}}function OnboardFooter({node:t}){useLogRender("OnboardFooter"),t=useNode(t);const{appConfig:e}=useRenderStore(t=>({appConfig:t.appConfig})),{localication:i,defaultLanguage:r}=e,n=t=>t?i?.[r??"en"]?.[t]??t:"",a=n(t?.attributes?.textLocalizationKey),o=extractTextStyle(t),s=t=>({color:t,cursor:t?"pointer":void 0}),l=parseSize(t?.attributes?.paddingHorizontal);return jsx("div",{style:{...o,paddingLeft:l,paddingRight:l,textAlign:"center"},children:!!a&&(()=>{const e=n(t?.attributes?.linkedWordFirstLocalizationKey),i=n(t?.attributes?.linkedWordSecondLocalizationKey),{segments:r,matchCount:o}=buildSegments(a,[{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:r.map((t,e)=>"text"===t.type?jsx("span",{children:t.value},e):jsx("span",{style:s(t.color),onClick:()=>{t.page},children:t.value},e))}),0===o&&jsxs("div",{children:[t?.attributes?.linkedWordFirstLocalizationKey&&jsx("span",{style:s(t?.attributes?.linkedWordFirstColor),onClick:()=>{},children:e}),t?.attributes?.linkedWordSecondLocalizationKey&&jsx("span",{style:s(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,r,n=t.length;for(i=0;i<n;i+=1)for(var a in r=t[i].prototype)Object.prototype.hasOwnProperty.call(r,a)&&(e.prototype[a]=r[a])}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,r=0,n=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(r=0;r<e;r+=1)n.push(i);return n}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),r=t.length;for(e=0;e<r;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,r){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,r){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=r<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 r,n,a,o,s,l,h,c;switch(l=i*(1-e),h=i*(1-(s=6*t-(o=Math.floor(6*t)))*e),c=i*(1-(1-s)*e),o%6){case 0:r=i,n=c,a=l;break;case 1:r=h,n=i,a=l;break;case 2:r=l,n=i,a=c;break;case 3:r=l,n=h,a=i;break;case 4:r=c,n=l,a=i;break;case 5:r=i,n=l,a=h}return[r,n,a]}function RGBtoHSV(t,e,i){var r,n=Math.max(t,e,i),a=Math.min(t,e,i),o=n-a,s=0===n?0:o/n,l=n/255;switch(n){case a:r=0;break;case t:r=e-i+o*(e<i?6:0),r/=6*o;break;case e:r=i-t+2*o,r/=6*o;break;case i:r=t-e+4*o,r/=6*o}return[r,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,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+i[t]+i[e]+i[r]}}(),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,r=[],n={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){n.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"}),r=URL.createObjectURL(i);return new Worker(r)}return t=e,n}(function(t){if(a.dataManager||(a.dataManager=function(){function t(n,a){var o,s,l,h,c,u,d=n.length;for(s=0;s<d;s+=1)if("ks"in(o=n[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)r(f[l].pt.k);else for(u=f[l].pt.k.length,c=0;c<u;c+=1)f[l].pt.k[c].s&&r(f[l].pt.k[c].s[0]),f[l].pt.k[c].e&&r(f[l].pt.k[c].e[0])}0===o.ty?(o.layers=e(o.refId,a),t(o.layers,a)):4===o.ty?i(o.shapes):5===o.ty&&p(o)}}function e(t,e){var i=function(t,e){for(var i=0,r=e.length;i<r;){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,n,a;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)r(t[e].ks.k);else for(a=t[e].ks.k.length,n=0;n<a;n+=1)t[e].ks.k[n].s&&r(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&r(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function r(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 n(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 a,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,r=t.length;for(i=0;i<r;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,a=e.assets.length;for(r=0;r<a;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),s=(a=[4,7,99],function(t){if(t.chars&&!n(a,t.v)){var e,r=t.chars.length;for(e=0;e<r;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,r=t.length;for(i=0;i<r;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,a=e.assets.length;for(r=0;r<a;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),h=function(){var t=[4,1,9];function e(t){var i,r,n,a=t.length;for(i=0;i<a;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(n=t[i].c.k.length,r=0;r<n;r+=1)t[i].c.k[r].s&&(t[i].c.k[r].s[0]/=255,t[i].c.k[r].s[1]/=255,t[i].c.k[r].s[2]/=255,t[i].c.k[r].s[3]/=255),t[i].c.k[r].e&&(t[i].c.k[r].e[0]/=255,t[i].c.k[r].e[1]/=255,t[i].c.k[r].e[2]/=255,t[i].c.k[r].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,r=t.length;for(i=0;i<r;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,a=e.assets.length;for(r=0;r<a;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var i,r,n;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(n=t[i].ks.k.length,r=0;r<n;r+=1)t[i].ks.k[r].s&&(t[i].ks.k[r].s[0].c=t[i].closed),t[i].ks.k[r].e&&(t[i].ks.k[r].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,r,n,a,o,s,l=t.length;for(r=0;r<l;r+=1){if((i=t[r]).hasMask){var h=i.masksProperties;for(a=h.length,n=0;n<a;n+=1)if(h[n].pt.k.i)h[n].pt.k.c=h[n].cl;else for(s=h[n].pt.k.length,o=0;o<s;o+=1)h[n].pt.k[o].s&&(h[n].pt.k[o].s[0].c=h[n].cl),h[n].pt.k[o].e&&(h[n].pt.k[o].e[0].c=h[n].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,a=e.assets.length;for(r=0;r<a;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}();function p(t){0===t.t.a.length&&t.t.p}var u={completeData:function(i){i.__complete||(h(i),o(i),s(i),l(i),c(i),t(i.layers,i.assets),function(i,r){if(i){var n=0,a=i.length;for(n=0;n<a;n+=1)1===i[n].t&&(i[n].data.layers=e(i[n].data.refId,r),t(i[n].data.layers,r))}}(i.chars,i.assets),i.__complete=!0)}};return u.checkColors=h,u.checkChars=s,u.checkPathProperties=l,u.checkShapes=c,u.completeLayers=t,u}()),a.assetLoader||(a.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,r,n){var a,o=new XMLHttpRequest;try{o.responseType="json"}catch(t){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)a=t(o),r(a);else try{a=t(o),r(a)}catch(t){n&&n(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)a.assetLoader.load(t.data.path,t.data.fullPath,function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})},function(){a.postMessage({id:t.data.id,status:"error"})});else if("complete"===t.data.type){var e=t.data.animation;a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,function(e){a.postMessage({id:t.data.id,payload:e,status:"success"})},function(){a.postMessage({id:t.data.id,status:"error"})})}),e.onmessage=function(t){var e=t.data,i=e.id,n=r[i];r[i]=null,"success"===e.status?n.onComplete(e.payload):n.onError&&n.onError()})}function s(t,e){var n="processId_"+(i+=1);return r[n]={onComplete:t,onError:e},n}return{loadAnimation:function(t,i,r){o();var n=s(i,r);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,i,r){o();var n=s(i,r);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,i,r){o();var n=s(i,r);e.postMessage({type:"complete",animation:t,id:n})}}}(),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 r(t,e,i){var r="";if(t.e)r=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),r=e+n}else r=i,r+=t.u?t.u:"",r+=t.p;return r}function n(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function a(t){var e={assetData:t},i=r(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=n.bind(this),this.createFootageData=a.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 r=t.length;for(i=0;i<r;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=r(e,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){a.img=t,this._imageLoaded()}.bind(this),!1),n.src=i;var a={img:n,assetData:e};return a},createImageData:function(e){var i=r(e,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){a.img=t,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var a={img:n,assetData:e};return a},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],r=0;r<i.length;r+=1)i[r](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,r=this._cbs[t].length;i<r;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,r-=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"),r={},n=0,a=0;a<i.length;a+=1)2===(e=i[a].split(":")).length&&(r[e[0]]=e[1].trim(),n+=1);if(0===n)throw new Error;return r}return function(e){for(var i=[],r=0;r<e.length;r+=1){var n=e[r],a={time:n.tm,duration:n.dr};try{a.payload=JSON.parse(e[r].cm)}catch(i){try{a.payload=t(e[r].cm)}catch(t){a.payload={name:e[r].cm}}}i.push(a)}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},r=t.attributes;i.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",i.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===n?i.loop=!1:"true"===n?i.loop=!0:""!==n&&(i.loop=parseInt(n,10));var a=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;i.autoplay="false"!==a,i.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.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,r=this.animationData.layers,n=r.length,a=t.layers,o=a.length;for(i=0;i<o;i+=1)for(e=0;e<n;){if(r[e].id===a[i].id){r[e]=a[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(n=t.assets.length,e=0;e<n;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,r="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,r)},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 r=Number(t);if(isNaN(r)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.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 r=Number(t);if(isNaN(r)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(r,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,r=t.length;for(i=0;i<r;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,r=0,n=0,a=!0,o=!1;function s(t){for(var i=0,n=t.target;i<r;)e[i].animation===n&&(e.splice(i,1),i-=1,r-=1,n.isPaused||c()),i+=1}function l(t,i){if(!t)return null;for(var n=0;n<r;){if(e[n].elem===t&&null!==e[n].elem)return e[n].animation;n+=1}var a=new AnimationItem;return p(a,t),a.setData(t,i),a}function h(){n+=1,f()}function c(){n-=1}function p(t,i){t.addEventListener("destroy",s),t.addEventListener("_active",h),t.addEventListener("_idle",c),e.push({elem:i,animation:t}),r+=1}function u(t){var s,l=t-i;for(s=0;s<r;s+=1)e[s].animation.advanceTime(l);i=t,n&&!o?window.requestAnimationFrame(u):a=!0}function d(t){i=t,window.requestAnimationFrame(u)}function f(){!o&&n&&a&&(window.requestAnimationFrame(d),a=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return p(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setSpeed(t,i)},t.setDirection=function(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var r,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=n.length;for(r=0;r<a;r+=1)i&&n[r].setAttribute("data-bm-type",i),l(n[r],t);if(e&&0===a){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<r;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,n){var a;for(a=0;a<r;a+=1)e[a].animation.goToAndStop(t,i,n)},t.destroy=function(t){var i;for(i=r-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 n;for(n=0;n<r;n+=1)e[n].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,r=[];for(t=0;t<i;t+=1)r.push(e[t].animation);return r},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,i,r,n,a){var o=a||("bez_"+t+"_"+i+"_"+r+"_"+n).replace(/\./g,"p");if(e[o])return e[o];var s=new c([t,i,r,n]);return e[o]=s,s}},e={},i=11,r=1/(i-1),n="function"==typeof Float32Array;function a(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((a(e,i)*t+o(e,i))*t+s(e))*t}function h(t,e,i){return 3*a(e,i)*t*t+2*o(e,i)*t+s(e)}function c(t){this._p=t,this._mSampleValues=n?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(t){var e=this._p[0],i=this._p[1],r=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===i&&r===n?t:0===t?0:1===t?1:l(this._getTForX(t),i,n)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&i===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<i;++n)this._mSampleValues[n]=l(n*r,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],a=this._mSampleValues,o=0,s=1,c=i-1;s!==c&&a[s]<=t;++s)o+=r;var p=o+(t-a[--s])/(a[s+1]-a[s])*r,u=h(p,e,n);return u>=.001?function(t,e,i,r){for(var n=0;n<4;++n){var a=h(e,i,r);if(0===a)return e;e-=(l(e,i,r)-t)/a}return e}(t,p,e,n):0===u?p:function(t,e,i,r,n){var a,o,s=0;do{(a=l(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o}while(Math.abs(a)>1e-7&&++s<10);return o}(t,o,o+r,e,n)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var r=0,n=t,a=createSizedArray(n);return{newElement:function(){return r?a[r-=1]:e()},release:function(t){r===n&&(a=pooling.double(a),n*=2),i&&i(t),a[r]=t,r+=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,r,n,a){var o=t*r+e*n+i*a-n*r-a*t-i*e;return o>-.001&&o<.001}var i=function(t,e,i,r){var n,a,o,s,l,h,c=getDefaultCurveSegments(),p=0,u=[],d=[],f=bezierLengthPool.newElement();for(o=i.length,n=0;n<c;n+=1){for(l=n/(c-1),h=0,a=0;a<o;a+=1)s=bmPow(1-l,3)*t[a]+3*bmPow(1-l,2)*l*i[a]+3*(1-l)*bmPow(l,2)*r[a]+bmPow(l,3)*e[a],u[a]=s,null!==d[a]&&(h+=bmPow(u[a]-d[a],2)),d[a]=u[a];h&&(p+=h=bmSqrt(h)),f.percents[n]=l,f.lengths[n]=p}return f.addedLength=p,f};function r(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var a,o=(a={},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(!a[l]){var h,c,p,u,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 r(y);for(p=o.length,h=0;h<y;h+=1){for(m=createSizedArray(p),d=h/(y-1),f=0,c=0;c<p;c+=1)u=bmPow(1-d,3)*t[c]+3*bmPow(1-d,2)*d*(t[c]+o[c])+3*(1-d)*bmPow(d,2)*(i[c]+s[c])+bmPow(d,3)*i[c],m[c]=u,null!==b&&(f+=bmPow(m[c]-b[c],2));g+=f=bmSqrt(f),v.points[h]=new n(f,m),b=m}v.segmentLength=g,a[l]=v}return a[l]});function s(t,e){var i=e.percents,r=e.lengths,n=i.length,a=bmFloor((n-1)*t),o=t*e.addedLength,s=0;if(a===n-1||0===a||o===r[a])return i[a];for(var l=r[a]>o?-1:1,h=!0;h;)if(r[a]<=o&&r[a+1]>o?(s=(o-r[a])/(r[a+1]-r[a]),h=!1):a+=l,a<0||a>=n-1){if(a===n-1)return i[a];h=!1}return i[a]+(i[a+1]-i[a])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),n=t.c,a=t.v,o=t.o,s=t.i,l=t._length,h=r.lengths,c=0;for(e=0;e<l-1;e+=1)h[e]=i(a[e],a[e+1],o[e],s[e+1]),c+=h[e].addedLength;return n&&l&&(h[e]=i(a[e],a[0],o[e],s[0]),c+=h[e].addedLength),r.totalLength=c,r},getNewSegment:function(e,i,r,n,a,o,h){a<0?a=0:a>1&&(a=1);var c,p=s(a,h),u=s(o=o>1?1:o,h),d=e.length,f=1-p,m=1-u,y=f*f*f,g=p*f*f*3,b=p*p*f*3,v=p*p*p,_=f*f*m,x=p*f*m+f*p*m+f*f*u,k=p*p*m+f*p*u+p*f*u,S=p*p*u,w=f*m*m,E=p*m*m+f*u*m+f*m*u,C=p*u*m+f*u*u+p*m*u,P=p*u*u,T=m*m*m,A=u*m*m+m*u*m+m*m*u,D=u*u*m+m*u*u+u*m*u,F=u*u*u;for(c=0;c<d;c+=1)l[4*c]=t.round(1e3*(y*e[c]+g*r[c]+b*n[c]+v*i[c]))/1e3,l[4*c+1]=t.round(1e3*(_*e[c]+x*r[c]+k*n[c]+S*i[c]))/1e3,l[4*c+2]=t.round(1e3*(w*e[c]+E*r[c]+C*n[c]+P*i[c]))/1e3,l[4*c+3]=t.round(1e3*(T*e[c]+A*r[c]+D*n[c]+F*i[c]))/1e3;return l},getPointInSegment:function(e,i,r,n,a,o){var l=s(a,o),h=1-l;return[t.round(1e3*(h*h*h*e[0]+(l*h*h+h*l*h+h*h*l)*r[0]+(l*l*h+h*l*l+l*h*l)*n[0]+l*l*l*i[0]))/1e3,t.round(1e3*(h*h*h*e[1]+(l*h*h+h*l*h+h*h*l)*r[1]+(l*l*h+h*l*l+l*h*l)*n[1]+l*l*l*i[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(i,r,n,a,o,s,l,h,c){if(0===n&&0===s&&0===c)return e(i,r,a,o,l,h);var p,u=t.sqrt(t.pow(a-i,2)+t.pow(o-r,2)+t.pow(s-n,2)),d=t.sqrt(t.pow(l-i,2)+t.pow(h-r,2)+t.pow(c-n,2)),f=t.sqrt(t.pow(l-a,2)+t.pow(h-o,2)+t.pow(c-s,2));return(p=u>d?u>f?u-d-f:f-d-u:f>d?f-d-u:d-u-f)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,r=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var n,a,o,s,l,h,c,p,u,d=e.lastIndex,f=d,m=this.keyframes.length-1,y=!0;y;){if(n=this.keyframes[f],a=this.keyframes[f+1],f===m-1&&t>=a.t-r){n.h&&(n=a),d=0;break}if(a.t-r>t){d=f;break}f<m-1?f+=1:(d=0,y=!1)}o=this.keyframesMetadata[f]||{};var g,b=a.t-r,v=n.t-r;if(n.to){o.bezierData||(o.bezierData=bez.buildBezierData(n.s,a.s||n.e,n.to,n.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?u=o.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,o.__fnct=u),h=u((t-v)/(b-v));var k,S=_.segmentLength*h,w=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastAddedLength:0;for(p=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastPoint:0,y=!0,c=_.points.length;y;){if(w+=_.points[p].partialLength,0===S||0===h||p===_.points.length-1){for(l=_.points[p].point.length,s=0;s<l;s+=1)i[s]=_.points[p].point[s];break}if(S>=w&&S<w+_.points[p+1].partialLength){for(k=(S-w)/_.points[p+1].partialLength,l=_.points[p].point.length,s=0;s<l;s+=1)i[s]=_.points[p].point[s]+(_.points[p+1].point[s]-_.points[p].point[s])*k;break}p<c-1?p+=1:y=!1}e._lastPoint=p,e._lastAddedLength=w-_.points[p].partialLength,e._lastKeyframeIndex=f}}else{var E,C,P,T,A;if(m=n.s.length,g=a.s||n.e,this.sh&&1!==n.h)t>=b?(i[0]=g[0],i[1]=g[1],i[2]=g[2]):t<=v?(i[0]=n.s[0],i[1]=n.s[1],i[2]=n.s[2]):quaternionToEuler(i,slerp(createQuaternion(n.s),createQuaternion(g),(t-v)/(b-v)));else for(f=0;f<m;f+=1)1!==n.h&&(t>=b?h=1:t<v?h=0:(n.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[f]?u=o.__fnct[f]:(E=void 0===n.o.x[f]?n.o.x[0]:n.o.x[f],C=void 0===n.o.y[f]?n.o.y[0]:n.o.y[f],P=void 0===n.i.x[f]?n.i.x[0]:n.i.x[f],T=void 0===n.i.y[f]?n.i.y[0]:n.i.y[f],u=BezierFactory.getBezierEasing(E,C,P,T).get,o.__fnct[f]=u)):o.__fnct?u=o.__fnct:(E=n.o.x,C=n.o.y,P=n.i.x,T=n.i.y,u=BezierFactory.getBezierEasing(E,C,P,T).get,n.keyframeMetadata=u),h=u((t-v)/(b-v)))),g=a.s||n.e,A=1===n.h?n.s[f]:n.s[f]+(g[f]-n.s[f])*h,"multidimensional"===this.propType?i[f]=A:i=A}return e.lastIndex=d,i}function slerp(t,e,i){var r,n,a,o,s,l=[],h=t[0],c=t[1],p=t[2],u=t[3],d=e[0],f=e[1],m=e[2],y=e[3];return(n=h*d+c*f+p*m+u*y)<0&&(n=-n,d=-d,f=-f,m=-m,y=-y),1-n>1e-6?(r=Math.acos(n),a=Math.sin(r),o=Math.sin((1-i)*r)/a,s=Math.sin(i*r)/a):(o=1-i,s=i),l[0]=o*h+s*d,l[1]=o*c+s*f,l[2]=o*p+s*m,l[3]=o*u+s*y,l}function quaternionToEuler(t,e){var i=e[0],r=e[1],n=e[2],a=e[3],o=Math.atan2(2*r*a-2*i*n,1-2*r*r-2*n*n),s=Math.asin(2*i*r+2*n*a),l=Math.atan2(2*i*a-2*r*n,1-2*i*i-2*n*n);t[0]=o/degToRads,t[1]=s/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,n=Math.cos(e/2),a=Math.cos(i/2),o=Math.cos(r/2),s=Math.sin(e/2),l=Math.sin(i/2),h=Math.sin(r/2);return[s*l*o+n*a*h,s*a*o+n*l*h,n*l*o-s*a*h,n*a*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 r=this.interpolateValue(t,this._caching);this.pv=r}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,r=this.v.length;i<r;)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,r){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=r,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,r){var n;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=e.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),n=0;n<a;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,r){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=r,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,r){var n;this.propType="multidimensional";var a,o,s,l,h=e.k.length;for(n=0;n<h-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n+1]&&e.k[n+1].s&&(a=e.k[n].s,o=e.k[n+1].s,s=e.k[n].to,l=e.k[n].ti,(2===a.length&&(a[0]!==o[0]||a[1]!==o[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],a[0]+s[0],a[1]+s[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],o[0]+l[0],o[1]+l[1])||3===a.length&&(a[0]!==o[0]||a[1]!==o[1]||a[2]!==o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],a[0]+s[0],a[1]+s[1],a[2]+s[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],o[0]+l[0],o[1]+l[1],o[2]+l[2]))&&(e.k[n].to=null,e.k[n].ti=null),a[0]===o[0]&&a[1]===o[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===a.length||a[2]===o[2]&&0===s[2]&&0===l[2])&&(e.k[n].to=null,e.k[n].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=r,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=e.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),n=0;n<c;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory=(ob={getProp:function(t,e,i,r,n){var a;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])a=new MultiDimensionalProperty(t,e,r,n);else switch(i){case 0:a=new KeyframedValueProperty(t,e,r,n);break;case 1:a=new KeyframedMultidimensionalProperty(t,e,r,n)}else a=new ValueProperty(t,e,r,n);return a.effectsSequence.length&&n.addDynamicProperty(a),a}},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,r,n){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[r]||a[r]&&!n)&&(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,r,n,a,o,s){this.setXYAt(t,e,"v",o,s),this.setXYAt(i,r,"o",o,s),this.setXYAt(n,a,"i",o,s)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),n=1);var a,o=this._length-1,s=this._length;for(a=n;a<s;a+=1)t.setTripleAt(e[o][0],e[o][1],r[o][0],r[o][1],i[o][0],i[o][1],a,!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(),r=void 0===t._length?t.v.length:t._length;for(i.setLength(r),i.c=t.c,e=0;e<r;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?r[e-=1]:new ShapeCollection},release:function(t){var n,a=t._length;for(n=0;n<a;n+=1)shapePool.release(t.shapes[n]);t._length=0,e===i&&(r=pooling.double(r),i*=2),r[e]=t,e+=1}},e=0,i=4,r=createSizedArray(i);return t}(),ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var r,n,a,o,s,l,h,c,p,u=i.lastIndex,d=this.keyframes;if(t<d[0].t-this.offsetTime)r=d[0].s[0],a=!0,u=0;else if(t>=d[d.length-1].t-this.offsetTime)r=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],a=!0;else{for(var f,m,y,g=u,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]||{},u=g,!(a=1===f.h)){if(t>=m.t-this.offsetTime)c=1;else if(t<f.t-this.offsetTime)c=0;else{var _;y.__fnct?_=y.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,y.__fnct=_),c=_((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}n=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=e._length,h=r.i[0].length,i.lastIndex=u,o=0;o<l;o+=1)for(s=0;s<h;s+=1)p=a?r.i[o][s]:r.i[o][s]+(n.i[o][s]-r.i[o][s])*c,e.i[o][s]=p,p=a?r.o[o][s]:r.o[o][s]+(n.o[o][s]-r.o[o][s])*c,e.o[o][s]=p,p=a?r.v[o][s]:r.v[o][s]+(n.v[o][s]-r.v[o][s])*c,e.v[o][s]=p}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==t&&(n<i&&e<i||n>r&&e>r)||(this._caching.lastIndex=n<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function r(){this.paths=this.localShapeCollection}function n(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,r=t._length;for(i=0;i<r;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 a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,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 n=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,n,a){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===a?n.pt.k:n.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=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=a,o.prototype.setVValue=n,o.prototype.addEffect=s,l.prototype.getValue=a,l.prototype.interpolateShape=e,l.prototype.setVValue=n,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:r,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],r=this.s.v[0]/2,n=this.s.v[1]/2,a=3!==this.d,o=this.v;o.v[0][0]=e,o.v[0][1]=i-n,o.v[1][0]=a?e+r:e-r,o.v[1][1]=i,o.v[2][0]=e,o.v[2][1]=i+n,o.v[3][0]=a?e-r:e+r,o.v[3][1]=i,o.i[0][0]=a?e-r*t:e+r*t,o.i[0][1]=i-n,o.i[1][0]=a?e+r:e-r,o.i[1][1]=i-n*t,o.i[2][0]=a?e+r*t:e-r*t,o.i[2][1]=i+n,o.i[3][0]=a?e-r:e+r,o.i[3][1]=i+n*t,o.o[0][0]=a?e+r*t:e-r*t,o.o[0][1]=i-n,o.o[1][0]=a?e+r:e-r,o.o[1][1]=i+n*t,o.o[2][0]=a?e-r*t:e+r*t,o.o[2][1]=i+n,o.o[3][0]=a?e-r:e+r,o.o[3][1]=i-n*t}},extendPrototype([DynamicPropertyContainer],e),e}(),c=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:r,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,r,n=2*Math.floor(this.pt.v),a=2*Math.PI/n,o=!0,s=this.or.v,l=this.ir.v,h=this.os.v,c=this.is.v,p=2*Math.PI*s/(2*n),u=2*Math.PI*l/(2*n),d=-Math.PI/2;d+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<n;t+=1){i=o?h:c,r=o?p:u;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*r*i*f,y-b*r*i*f,m+g*r*i*f,y+b*r*i*f,t,!0),o=!o,d+=a*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,r=this.or.v,n=this.os.v,a=2*Math.PI*r/(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=r*Math.cos(o),h=r*Math.sin(o),c=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),p=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-c*a*n*s,h-p*a*n*s,l+c*a*n*s,h+p*a*n*s,t,!0),o+=i*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),p=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,r=this.s.v[1]/2,n=bmMin(i,r,this.r.v),a=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-r+n,t+i,e-r+n,t+i,e-r+a,0,!0),this.v.setTripleAt(t+i,e+r-n,t+i,e+r-a,t+i,e+r-n,1,!0),0!==n?(this.v.setTripleAt(t+i-n,e+r,t+i-n,e+r,t+i-a,e+r,2,!0),this.v.setTripleAt(t-i+n,e+r,t-i+a,e+r,t-i+n,e+r,3,!0),this.v.setTripleAt(t-i,e+r-n,t-i,e+r-n,t-i,e+r-a,4,!0),this.v.setTripleAt(t-i,e-r+n,t-i,e-r+a,t-i,e-r+n,5,!0),this.v.setTripleAt(t-i+n,e-r,t-i+n,e-r,t-i+a,e-r,6,!0),this.v.setTripleAt(t+i-n,e-r,t+i-a,e-r,t+i-n,e-r,7,!0)):(this.v.setTripleAt(t-i,e+r,t-i+a,e+r,t-i,e+r,2),this.v.setTripleAt(t-i,e-r,t-i,e-r+a,t-i,e-r,3))):(this.v.setTripleAt(t+i,e-r+n,t+i,e-r+a,t+i,e-r+n,0,!0),0!==n?(this.v.setTripleAt(t+i-n,e-r,t+i-n,e-r,t+i-a,e-r,1,!0),this.v.setTripleAt(t-i+n,e-r,t-i+a,e-r,t-i+n,e-r,2,!0),this.v.setTripleAt(t-i,e-r+n,t-i,e-r+n,t-i,e-r+a,3,!0),this.v.setTripleAt(t-i,e+r-n,t-i,e+r-a,t-i,e+r-n,4,!0),this.v.setTripleAt(t-i+n,e+r,t-i+n,e+r,t-i+a,e+r,5,!0),this.v.setTripleAt(t+i-n,e+r,t+i-a,e+r,t+i-n,e+r,6,!0),this.v.setTripleAt(t+i,e+r-n,t+i,e+r-n,t+i,e+r-a,7,!0)):(this.v.setTripleAt(t-i,e-r,t-i+a,e-r,t-i,e-r,1,!0),this.v.setTripleAt(t-i,e+r,t-i,e+r-a,t-i,e+r,2,!0),this.v.setTripleAt(t+i,e+r,t+i-a,e+r,t+i,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],t),t}(),u={getShapeProp:function(t,e,i){var r;return 3===i||4===i?r=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new o(t,e,i):5===i?r=new p(t,e):6===i?r=new h(t,e):7===i&&(r=new c(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}};return u}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,r=Math.round;function n(){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 a(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function o(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(1,0,0,0,0,r,-n,0,0,n,r,0,0,0,0,1)}function s(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,0,n,0,0,1,0,0,-n,0,r,0,0,0,0,1)}function l(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function h(t,e){return this._t(1,e,t,1,0,0)}function c(t,e){return this.shear(i(t),i(e))}function p(r,n){var a=t(n),o=e(n);return this._t(a,o,0,0,-o,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(r),1,0,0,0,0,1,0,0,0,0,1)._t(a,-o,0,0,o,a,0,0,0,0,1,0,0,0,0,1)}function u(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,r,n,a,o,s,l,h,c,p,u,d,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=r,this.props[4]=n,this.props[5]=a,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=h,this.props[10]=c,this.props[11]=p,this.props[12]=u,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,r,n,a,o,s,l,h,c,p,u,d,f,m){var y=this.props;if(1===t&&0===e&&0===i&&0===r&&0===n&&1===a&&0===o&&0===s&&0===l&&0===h&&1===c&&0===p)return y[12]=y[12]*t+y[15]*u,y[13]=y[13]*a+y[15]*d,y[14]=y[14]*c+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],C=y[9],P=y[10],T=y[11],A=y[12],D=y[13],F=y[14],M=y[15];return y[0]=g*t+b*n+v*l+_*u,y[1]=g*e+b*a+v*h+_*d,y[2]=g*i+b*o+v*c+_*f,y[3]=g*r+b*s+v*p+_*m,y[4]=x*t+k*n+S*l+w*u,y[5]=x*e+k*a+S*h+w*d,y[6]=x*i+k*o+S*c+w*f,y[7]=x*r+k*s+S*p+w*m,y[8]=E*t+C*n+P*l+T*u,y[9]=E*e+C*a+P*h+T*d,y[10]=E*i+C*o+P*c+T*f,y[11]=E*r+C*s+P*p+T*m,y[12]=A*t+D*n+F*l+M*u,y[13]=A*e+D*a+F*h+M*d,y[14]=A*i+D*o+F*c+M*f,y[15]=A*r+D*s+F*p+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,r=-this.props[4]/t,n=this.props[0]/t,a=(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]=r,s.props[5]=n,s.props[12]=a,s.props[13]=o,s}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function P(t){var e,i=t.length,r=[];for(e=0;e<i;e+=1)r[e]=C(t[e]);return r}function T(t,e,i){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=t[0],r[1]=t[1],r[2]=e[0],r[3]=e[1],r[4]=i[0],r[5]=i[1];else{var n=this.props[0],a=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],h=this.props[13];r[0]=t[0]*n+t[1]*o+l,r[1]=t[0]*a+t[1]*s+h,r[2]=e[0]*n+e[1]*o+l,r[3]=e[0]*a+e[1]*s+h,r[4]=i[0]*n+i[1]*o+l,r[5]=i[0]*a+i[1]*s+h}return r}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 D(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 F(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=r(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?r(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=n,this.rotate=a,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=c,this.skewFromAxis=p,this.shear=h,this.scale=u,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=D,this.toCSS=F,this.to2dCSS=I,this.clone=v,this.cloneFromProps=_,this.equals=b,this.inversePoints=P,this.inversePoint=C,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 r=e[i].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[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,r){return new e[t](i,r)},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,r,n){var a=[];e<=1?a.push({s:t,e:e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var o,s,l=[],h=a.length;for(o=0;o<h;o+=1){var c,p;(s=a[o]).e*n<r||s.s*n>r+i||(c=s.s*n<=r?0:(s.s*n-r)/i,p=s.e*n>=r+i?1:(s.e*n-r)/i,l.push([c,p]))}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,r,n;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),(e=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(i=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){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,c,p,u=this.shapes.length,d=0;if(i===e)for(n=0;n<u;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(n=0;n<u;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var f,m,y=[];for(n=0;n<u;n+=1)if((f=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(l=(r=f.shape.paths)._length,p=0,!f.shape._mdf&&f.pathsData.length)p=f.totalShapeLength;else{for(h=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)c=bez.getSegmentsLength(r.shapes[s]),h.push(c),p+=c.totalLength;f.totalShapeLength=p,f.pathsData=h}d+=p,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var g,b=e,v=i,_=0;for(n=u-1;n>=0;n-=1)if((f=this.shapes[n]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&u>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,r=t.length;for(i=0;i<r;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,r,n,a,o){n.setXYAt(e[0],e[1],"o",a),n.setXYAt(i[0],i[1],"i",a+1),o&&n.setXYAt(t[0],t[1],"v",a),n.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,r){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),r&&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 r,n,a,o,s,l,h,c,p=t.pathsData,u=t.shape.paths.shapes,d=t.shape.paths._length,f=0,m=[],y=!0;for(i?(s=i._length,c=i._length):(i=shapePool.newElement(),s=0,c=0),m.push(i),r=0;r<d;r+=1){for(l=p[r].lengths,i.c=u[r].c,a=u[r].c?l.length:l.length+1,n=1;n<a;n+=1)if(f+(o=l[n-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(u[r].v[n-1],u[r].o[n-1],u[r].i[n],u[r].v[n],i,s,y),y=!1):(h=bez.getNewSegment(u[r].v[n-1],u[r].v[n],u[r].o[n-1],u[r].i[n],(e.s-f)/o.addedLength,(e.e-f)/o.addedLength,l[n-1]),this.addSegmentFromArray(h,i,s,y),y=!1,i.c=!1),f+=o.addedLength,s+=1}if(u[r].c&&l.length){if(o=l[n-1],f<=e.e){var g=l[n-1].addedLength;e.s<=f&&e.e>=f+g?(this.addSegment(u[r].v[n-1],u[r].o[n-1],u[r].i[0],u[r].v[0],i,s,y),y=!1):(h=bez.getNewSegment(u[r].v[n-1],u[r].v[0],u[r].o[n-1],u[r].i[0],(e.s-f)/g,(e.e-f)/g,l[n-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[c][0],i.v[c][1],"i",c),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;r<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,r=[0,0],n=t._length,a=0;for(a=0;a<n;a+=1)r[0]+=t.v[a][0],r[1]+=t.v[a][1];r[0]/=n,r[1]/=n;var o,s,l,h,c,p,u=shapePool.newElement();for(u.c=t.c,a=0;a<n;a+=1)o=t.v[a][0]+(r[0]-t.v[a][0])*i,s=t.v[a][1]+(r[1]-t.v[a][1])*i,l=t.o[a][0]+(r[0]-t.o[a][0])*-i,h=t.o[a][1]+(r[1]-t.o[a][1])*-i,c=t.i[a][0]+(r[0]-t.i[a][0])*-i,p=t.i[a][1]+(r[1]-t.i[a][1])*-i,u.setTripleAt(o,s,l,h,c,p,a);return u},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,r,n,a,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)o.addShape(this.processPath(e[r],l));a.shape.paths=a.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 r,n=e.or.k.length;for(r=0;r<n;r+=1)e.or.k[r].to=null,e.or.k[r].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 r,n;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?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),n=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?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(r=this.p.pv,n=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){r=[],n=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),r[1]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),n[0]=a.getValueAtTime(a.keyframes[0].t/i,0),n[1]=o.getValueAtTime(o.keyframes[0].t/i,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),r[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),n[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0),n[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0)):(r=[a.pv,o.pv],n[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime),n[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime))}else r=n=t;this.v.rotate(-Math.atan2(r[1]-n[1],r[0]-n[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,r){return new e(t,i,r)}}}();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 r=e*e-4*t*i;if(r<0)return[];var n=-e/(2*t);if(0===r)return[n];var a=Math.sqrt(r)/(2*t);return[n-a,n+a]}function polynomialCoefficients(t,e,i,r){return[3*e-t-3*i+r,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,r,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,r,1/3)),n&&pointEqual(i,r)&&(i=lerpPoint(t,r,2/3));var a=polynomialCoefficients(t[0],e[0],i[0],r[0]),o=polynomialCoefficients(t[1],e[1],i[1],r[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[t,e,i,r]}function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var n=r;r=i,i=n}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var s=t.point(a[o])[e];s<i?i=s:s>r&&(r=s)}return{min:i,max:r}}function intersectData(t,e,i){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.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,r,n,a){if(boxIntersect(t,e))if(i>=a||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r)n.push([t.t,e.t]);else{var o=splitData(t),s=splitData(e);intersectsImpl(o[0],s[0],i+1,r,n,a),intersectsImpl(o[0],s[1],i+1,r,n,a),intersectsImpl(o[1],s[0],i+1,r,n,a),intersectsImpl(o[1],s[1],i+1,r,n,a)}}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,r){var n=[t[0],t[1],1],a=[e[0],e[1],1],o=[i[0],i[1],1],s=[r[0],r[1],1],l=crossProduct(crossProduct(n,a),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,r,n,a,o){var s=i-Math.PI/2,l=i+Math.PI/2,h=e[0]+Math.cos(i)*r*n,c=e[1]-Math.sin(i)*r*n;t.setTripleAt(h,c,h+Math.cos(s)*a,c-Math.sin(s)*a,h+Math.cos(l)*o,c-Math.sin(l)*o,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=.5*-Math.PI;return[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,r=(e+1)%t.length(),n=getPerpendicularVector(t.v[i],t.v[r]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,i,r,n,a,o){var s=getProjectingAngle(e,i),l=e.v[i%e._length],h=e.v[0===i?e._length-1:i-1],c=e.v[(i+1)%e._length],p=2===a?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,u=2===a?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[i%e._length],s,o,r,u/(2*(n+1)),p/(2*(n+1)))}function zigZagSegment(t,e,i,r,n,a){for(var o=0;o<r;o+=1){var s=(o+1)/(r+1),l=2===n?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,a,i,l/(2*(r+1)),l/(2*(r+1))),a=-a}return a}function linearOffset(t,e,i){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,r,i),polarOffset(e,r,i)]}function offsetSegment(t,e){var i,r,n,a,o,s,l;i=(l=linearOffset(t.points[0],t.points[1],e))[0],r=l[1],n=(l=linearOffset(t.points[1],t.points[2],e))[0],a=l[1],o=(l=linearOffset(t.points[2],t.points[3],e))[0],s=l[1];var h=lineIntersection(i,r,n,a);null===h&&(h=r);var c=lineIntersection(o,s,n,a);return null===c&&(c=o),new PolynomialBezier(i,h,c,s)}function joinLines(t,e,i,r,n){var a=e.points[3],o=i.points[0];if(3===r)return a;if(pointEqual(a,o))return a;if(2===r){var s=-e.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,h=lineIntersection(a,polarOffset(a,s+Math.PI/2,100),o,polarOffset(o,s+Math.PI/2,100)),c=h?pointDistance(h,a):pointDistance(a,o)/2,p=polarOffset(a,s,2*c*roundCorner);return t.setXYAt(p[0],p[1],"o",t.length()-1),p=polarOffset(o,l,2*c*roundCorner),t.setTripleAt(o[0],o[1],o[0],o[1],p[0],p[1],t.length()),o}var u=lineIntersection(pointEqual(a,e.points[2])?e.points[0]:e.points[2],a,o,pointEqual(o,i.points[1])?i.points[3]:i.points[1]);return u&&pointDistance(u,a)<n?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):a}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(),r=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(i[t.length-1]=t[t.length-1].split(n[0])[0],r[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=getIntersection(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[i,r]}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,r,n,a,o=t.inflectionPoints();if(0===o.length)return[offsetSegment(t,e)];if(1===o.length||floatEqual(o[1],1))return i=(n=t.split(o[0]))[0],r=n[1],[offsetSegment(i,e),offsetSegment(r,e)];i=(n=t.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return a=(n=n[1].split(s))[0],r=n[1],[offsetSegment(i,e),offsetSegment(a,e),offsetSegment(r,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",r="normal",n=e.length,a=0;a<n;a+=1)switch(e[a].toLowerCase()){case"italic":r="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:r,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,r,n,a){var o=a?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-n),l=r.s.v[1]+(1-r.s.v[1])*(1-n);t.translate(r.p.v[0]*o*n,r.p.v[1]*o*n,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*o*n),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),i.scale(a?1/s:s,a?1/l:l),i.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,r){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=r,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,r=t.length;for(i=0;i<r;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,r,n,a,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(a=0,r=0;r<=this._groups.length-1;r+=1){if(s=a<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var c=this.elemsData[r].it,p=c[c.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}a+=1}this._currentCopies=l;var u=this.o.v,d=u%1,f=u>0?Math.floor(u):Math.ceil(u),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(u>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(u<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(r=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,a=this._currentCopies;a;){if(v=(i=(e=this.elemsData[r].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)*(r/(this._currentCopies-1)),0!==_){for((0!==r&&1===n||r!==this._currentCopies-1&&-1===n)&&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,a-=1,r+=n}}else for(a=this._currentCopies,r=0,n=1;a;)i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,a-=1,r+=n;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,r=shapePool.newElement();r.c=t.c;var n,a,o,s,l,h,c,p,u,d,f,m,y=t._length,g=0;for(i=0;i<y;i+=1)n=t.v[i],o=t.o[i],a=t.i[i],n[0]===o[0]&&n[1]===o[1]&&n[0]===a[0]&&n[1]===a[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(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=f=n[0]+(s[0]-n[0])*h,p=m=n[1]-(n[1]-s[1])*h,u=c-(c-n[0])*roundCorner,d=p-(p-n[1])*roundCorner,r.setTripleAt(c,p,u,d,f,m,g),g+=1,s=i===y-1?t.v[0]:t.v[i+1],h=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=u=n[0]+(s[0]-n[0])*h,p=d=n[1]+(s[1]-n[1])*h,f=c-(c-n[0])*roundCorner,m=p-(p-n[1])*roundCorner,r.setTripleAt(c,p,u,d,f,m,g),g+=1):(r.setTripleAt(n[0],n[1],o[0],o[1],a[0],a[1],g),g+=1):(r.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 r},RoundCornersModifier.prototype.processShapes=function(t){var e,i,r,n,a,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)o.addShape(this.processPath(e[r],l));a.shape.paths=a.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 r=Math.sqrt(i);return floatZero(r)?r>0&&r<1?[e]:[]:[e-r,e+r].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),r=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,i,t),a=lerpPoint(i,r,t),o=lerpPoint(n,a,t);return[new PolynomialBezier(this.points[0],e,n,o,!0),new PolynomialBezier(o,a,r,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 r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},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,r){var n=t._length,a=shapePool.newElement();if(a.c=t.c,t.c||(n-=1),0===n)return a;var o=-1,s=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,i,r,o);for(var l=0;l<n;l+=1)o=zigZagSegment(a,s,e,i,r,-o),s=l!==n-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%n):null,zigZagCorner(a,t,l+1,e,i,r,o);return a},ZigZagModifier.prototype.processShapes=function(t){var e,i,r,n,a,o,s=this.shapes.length,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)o.addShape(this.processPath(e[r],l,h,c));a.shape.paths=a.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,r){var n=shapePool.newElement();n.c=t.c;var a,o,s,l=t.length();t.c||(l-=1);var h=[];for(a=0;a<l;a+=1)s=PolynomialBezier.shapeSegment(t,a),h.push(offsetSegmentSplit(s,e));if(!t.c)for(a=l-1;a>=0;a-=1)s=PolynomialBezier.shapeSegmentInverted(t,a),h.push(offsetSegmentSplit(s,e));h=pruneIntersections(h);var c=null,p=null;for(a=0;a<h.length;a+=1){var u=h[a];for(p&&(c=joinLines(n,p,u[0],i,r)),p=u[u.length-1],o=0;o<u.length;o+=1)s=u[o],c&&pointEqual(s.points[0],c)?n.setXYAt(s.points[1][0],s.points[1][1],"o",n.length()-1):n.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],n.length()),n.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],n.length()),c=s.points[3]}return h.length&&joinLines(n,p,h[0][0],i,r),n},OffsetPathModifier.prototype.processShapes=function(t){var e,i,r,n,a,o,s=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(i=0;i<s;i+=1){if(o=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)o.addShape(this.processPath(e[r],l,c,h));a.shape.paths=a.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,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(t,e){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var r=createTag("span");r.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(r),document.body.appendChild(i);var n=r.offsetWidth;return r.style.fontFamily=function(t){var e,i=t.split(","),r=i.length,n=[];for(e=0;e<r;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&n.push(i[e]);return n.join(",")}(t)+", "+e,{node:r,w:n,parent:i}}function a(t,e){var i,r=document.body&&e?"svg":"canvas",n=getFontProperties(t);if("svg"===r){var a=createNS("text");a.style.fontSize="100px",a.setAttribute("font-family",t.fFamily),a.setAttribute("font-style",n.style),a.setAttribute("font-weight",n.weight),a.textContent="1",t.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",t.fClass)):a.style.fontFamily=t.fFamily,e.appendChild(a),i=a}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=n.style+" "+n.weight+" 100px "+t.fFamily,i=o}return{measureText:function(t){return"svg"===r?(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 r=t.charCodeAt(1);r>=56320&&r<=57343&&(e=1024*(i-55296)+r-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!==r.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 r=o(t.substr(e,2));if(r!==i)return!1;var n=0;for(e+=2;n<5;){if((r=o(t.substr(e,2)))<917601||r>917626)return!1;n+=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,r,n=t.length,a=this.chars.length;for(e=0;e<n;e+=1){for(i=0,r=!1;i<a;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(r=!0),i+=1;r||(this.chars.push(t[e]),a+=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=a(t),t.cache={}}),void(this.fonts=t.list);var i,r=t.list,o=r.length,s=o;for(i=0;i<o;i+=1){var l,h,c=!0;if(r[i].loaded=!1,r[i].monoCase=n(r[i].fFamily,"monospace"),r[i].sansCase=n(r[i].fFamily,"sans-serif"),r[i].fPath){if("p"===r[i].fOrigin||3===r[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[i].fFamily+'"], style[f-origin="3"][f-family="'+r[i].fFamily+'"]')).length>0&&(c=!1),c){var p=createTag("style");p.setAttribute("f-forigin",r[i].fOrigin),p.setAttribute("f-origin",r[i].origin),p.setAttribute("f-family",r[i].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}",e.appendChild(p)}}else if("g"===r[i].fOrigin||1===r[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(r[i].fPath)&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",r[i].fOrigin),u.setAttribute("f-origin",r[i].origin),u.type="text/css",u.rel="stylesheet",u.href=r[i].fPath,document.body.appendChild(u)}}else if("t"===r[i].fOrigin||2===r[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)r[i].fPath===l[h].src&&(c=!1);if(c){var d=createTag("link");d.setAttribute("f-forigin",r[i].fOrigin),d.setAttribute("f-origin",r[i].origin),d.setAttribute("rel","stylesheet"),d.setAttribute("href",r[i].fPath),e.appendChild(d)}}}else r[i].loaded=!0,s-=1;r[i].helper=a(r[i],e),r[i].cache={},this.fonts.push(r[i])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,r){for(var n=0,a=this.chars.length;n<a;){if(this.chars[n].ch===e&&this.chars[n].style===i&&this.chars[n].fFamily===r)return this.chars[n];n+=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,r)),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 r=this.getFontByName(e),n=t;if(!r.cache[n]){var a=r.helper;if(" "===t){var o=a.measureText("|"+t+"|"),s=a.measureText("||");r.cache[n]=(o-s)/100}else r.cache[n]=a.measureText(t)/100}return r.cache[n]*i},checkLoadedFonts:function(){var t,e,i,r=this.fonts.length,n=r;for(t=0;t<r;t+=1)this.fonts[t].loaded?n-=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?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(n-=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!==n&&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,r=t.ef||[];this.effectElements=[];var n,a=r.length;for(i=0;i<a;i+=1)n=new GroupEffect(r[i],e),this.effectElements.push(n)}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 r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),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 r,n=this.data.ef.length,a=this.data.ef;for(i=0;i<n;i+=1){switch(r=null,a[i].ty){case 0:r=new SliderEffect(a[i],e,this);break;case 1:r=new AngleEffect(a[i],e,this);break;case 2:r=new ColorEffect(a[i],e,this);break;case 3:r=new PointEffect(a[i],e,this);break;case 4:case 7:r=new CheckboxEffect(a[i],e,this);break;case 10:r=new LayerIndexEffect(a[i],e,this);break;case 11:r=new MaskIndexEffect(a[i],e,this);break;case 5:r=new EffectsManager(a[i],e);break;default:r=new NoValueEffect(a[i])}r&&this.effectElements.push(r)}},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"),r=t("shape"),n=t("text"),a=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=a(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(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,r=this.dynamicProperties.length;for(i=0;i<r;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,r=this.layers.length;for(this.completeLayers=!0,e=r-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,r=t.length,n=this.layers.length;for(e=0;e<r;e+=1)for(i=0;i<n;){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 r=this.elements,n=this.layers,a=0,o=n.length;a<o;)n[a].ind==e&&(r[a]&&!0!==r[a]?(i.push(r[a]),r[a].setAsParent(),void 0!==n[a].parent?this.buildElementParenting(t,n[a].parent,i):t.setHierarchy(i)):(this.buildItem(a),this.addPendingElement(t))),a+=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 r=this.createComp(t[e]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},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 r,n=this.elements.length;for(r=0;r<n;r+=1)if(this.elements[r].data.nm===i){e=this.elements[r];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 r,n,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l,h,c,p,u,d=this.masksProperties,f=0,m=[],y=createElementID(),g="clipPath",b="clip-path";for(r=0;r<o;r+=1)if(("a"!==d[r].mode&&"n"!==d[r].mode||d[r].inv||100!==d[r].o.k||d[r].o.x)&&(g="mask",b="mask"),"s"!==d[r].mode&&"i"!==d[r].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)),n=createNS("path"),"n"===d[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,d[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[r],3),elem:n,lastPath:""},a.appendChild(n);else{var v;if(f+=1,n.setAttribute("fill","s"===d[r].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==d[r].x.k?(g="mask",b="mask",u=PropertyFactory.getProp(this.element,d[r].x,0,null,this.element),v=createElementID(),(c=createNS("filter")).setAttribute("id",v),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),c.appendChild(p),a.appendChild(c),n.setAttribute("stroke","s"===d[r].mode?"#000000":"#ffffff")):(p=null,u=null),this.storedData[r]={elem:n,x:u,expan:p,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===d[r].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(n),a.appendChild(x),_.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+f+")"),m.length=0,m.push(_)}else m.push(n);d[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,d[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[r],3),invRect:h},this.viewData[r].prop.k||this.drawPath(d[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(g),o=m.length,r=0;r<o;r+=1)this.maskElement.appendChild(m[r]);f>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+y+")"),a.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,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){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<r;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 r=this.localTransforms[t].matrix;i.multiply(r)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)n*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=n}}},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,r=!0,n=this.comp;r;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):r=!1;var a,o=e.length;for(i=0;i<o;i+=1)a=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[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,r=this.masksProperties.length;for(e=0;e<r;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 n=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+")")),n.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 r,n,a=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,r=1;r<n;r+=1)a+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[r][0]+","+e.i[r][1]+" "+e.v[r][0]+","+e.v[r][1];if(e.c&&n>1&&(a+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==a){var o="";i.elem&&(e.c&&(o=t.inv?this.solidPath+a:a),i.elem.setAttribute("d",o)),i.lastPath=a}},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,r="SourceGraphic",n=t.data.ef?t.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;for(this.filters=[],e=0;e<n;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,r),r=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()+"#"+a+")")),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,r=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},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"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(i.setAttribute("id",n),i.appendChild(r),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}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,r,n,a=this.layerId+"_"+t;if(1===t||3===t){var o=createNS("mask");o.setAttribute("id",a),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(r),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()),(n=createNS("g")).appendChild(r),o.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var s=createNS("mask");s.setAttribute("id",a),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 c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),h.appendChild(c),this.globalData.defs.appendChild(i);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(p),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(p),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(s)}this.matteMasks[t]=a}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,r=e.length;i<r;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,r=i.length;r;)if(i[r-=1].elem===t)return void(i[r].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 r=0,n=t.length;r<n;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=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,r){var n;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(r);var a,o=e.length||0;for(n=0;n<o;n+=1)a=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=a.k||this.k,this.dataProps[n]={n:e[n].n,p:a};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 r=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",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,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,r=this.o.length/2;i<r;){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,r,n=4*this.data.p;for(e=0;e<n;e+=1)i=e%4==0?100:255,r=Math.round(this.prop.v[e]*i),this.c[e]!==r&&(this.c[e]=r,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)i=e%2==0?100:1,r=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==r&&(this.o[e-4*this.data.p]=r,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(),r=createNS(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",i),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var n,a,o,s=[];for(o=4*e.g.p,a=0;a<o;a+=4)n=createNS("stop"),r.appendChild(n),s.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=r,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,r,n,a=createNS("mask"),o=createNS("path");a.appendChild(o);var s=createElementID(),l=createElementID();a.setAttribute("id",l);var h=createNS(1===t.t?"linearGradient":"radialGradient");h.setAttribute("id",s),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(r=4*t.g.p;r<n;r+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),c.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=a,this.ost=c,this.maskId=l,e.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,r){if(0===e)return"";var n,a=t.o,o=t.i,s=t.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(n=1;n<e;n+=1)l+=" C"+r.applyToPointStringified(a[n-1][0],a[n-1][1])+" "+r.applyToPointStringified(o[n][0],o[n][1])+" "+r.applyToPointStringified(s[n][0],s[n][1]);return i&&e&&(l+=" C"+r.applyToPointStringified(a[n-1][0],a[n-1][1])+" "+r.applyToPointStringified(o[0][0],o[0][1])+" "+r.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 a;case"tr":return r;case"no":return n;default:return null}}};function r(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 n(){}function a(i,r,n){var a,o,s,l,h,c,p,u,d,f,m=r.styles.length,y=r.lvl;for(c=0;c<m;c+=1){if(l=r.sh._mdf||n,r.styles[c].lvl<y){for(u=e.reset(),d=y-r.styles[c].lvl,f=r.transformers.length-1;!l&&d>0;)l=r.transformers[f].mProps._mdf||l,d-=1,f-=1;if(l)for(d=y-r.styles[c].lvl,f=r.transformers.length-1;d>0;)u.multiply(r.transformers[f].mProps.v),d-=1,f-=1}else u=t;if(o=(p=r.sh.paths)._length,l){for(s="",a=0;a<o;a+=1)(h=p.shapes[a])&&h._length&&(s+=buildShapeString(h,h._length,h.c,u));r.caches[c]=s}else s=r.caches[c];r.styles[c].d+=!0===i.hd?"":s,r.styles[c]._mdf=l||r.styles[c]._mdf}}function o(t,e,i){var r=e.style;(e.c._mdf||i)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.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 r,n,a,o,s,l=e.gf,h=e.g._hasOpacity,c=e.s.v,p=e.e.v;if(e.o._mdf||i){var u="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(u,e.o.v)}if(e.s._mdf||i){var d=1===t.t?"x1":"cx",f="x1"===d?"y1":"cy";l.setAttribute(d,c[0]),l.setAttribute(f,c[1]),h&&!e.g._collapsable&&(e.of.setAttribute(d,c[0]),e.of.setAttribute(f,c[1]))}if(e.g._cmdf||i){r=e.cst;var m=e.g.c;for(a=r.length,n=0;n<a;n+=1)(o=r[n]).setAttribute("offset",m[4*n]+"%"),o.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(h&&(e.g._omdf||i)){var y=e.g.o;for(a=(r=e.g._collapsable?e.cst:e.ost).length,n=0;n<a;n+=1)o=r[n],e.g._collapsable||o.setAttribute("offset",y[2*n]+"%"),o.setAttribute("stop-opacity",y[2*n+1])}if(1===t.t)(e.e._mdf||i)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1])));else if((e.s._mdf||e.e._mdf||i)&&(s=Math.sqrt(Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[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(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)));var g=Math.atan2(p[1]-c[1],p[0]-c[0]),b=e.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var v=s*b,_=Math.cos(g+e.a.v)*v+c[0],x=Math.sin(g+e.a.v)*v+c[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 r=e.style,n=e.d;n&&(n._mdf||i)&&n.dashStr&&(r.pElem.setAttribute("stroke-dasharray",n.dashStr),r.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.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,r,n,a){this.o=t,this.sw=e,this.sc=i,this.fc=r,this.m=n,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!r,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,r,n=this.shapes.length,a=this.stylesList.length,o=[],s=!1;for(i=0;i<a;i+=1){for(r=this.stylesList[i],s=!1,o.length=0,t=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(r)&&(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,r=new SVGStyleData(t,e),n=r.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,r):"fl"===t.ty?i=new SVGFillStyleData(this,t,r):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,r),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),n.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,r)),"st"!==t.ty&&"gs"!==t.ty||(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(r),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),r=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);var n=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,r=this.animatedContents.length;i<r;){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,r=this.stylesList.length;for(e=0;e<r;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,r,n,a,o){var s,l,h,c,p,u,d=[].concat(a),f=t.length-1,m=[],y=[];for(s=f;s>=0;s-=1){if((u=this.searchProcessedElement(t[s]))?e[s]=i[u-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)u?e[s].style.closed=t[s].hd:e[s]=this.createStyleElement(t[s],n),t[s]._render&&e[s].style.pElem.parentNode!==r&&r.appendChild(e[s].style.pElem),m.push(e[s].style);else if("gr"===t[s].ty){if(u)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,n+1,d,o),t[s]._render&&e[s].gr.parentNode!==r&&r.appendChild(e[s].gr)}else"tr"===t[s].ty?(u||(e[s]=this.createTransformElement(t[s],r)),c=e[s].transform,d.push(c)):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?(u||(e[s]=this.createShapeElement(t[s],d,n)),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?(u?(p=e[s]).closed=!1:((p=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=p,this.shapeModifiers.push(p)),y.push(p)):"rp"===t[s].ty&&(u?(p=e[s]).closed=!0:(p=ShapeModifiers.getModifier(t[s].ty),e[s]=p,p.init(this,t,s,e),this.shapeModifiers.push(p),o=!1),y.push(p));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,r,n,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var 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!==r&&(this.fc=r,this._mdf.fc=!0,o=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,o=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,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 r;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(r=0;r<n;r+=1)a=i!==this.keysIndex?this.effectsSequence[r](a,a.t):this.effectsSequence[r](this.currentData,a.t);e!==a&&this.setCurrentData(a),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,r=t.length;i<=r-1&&!(i===r-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,r=[],n=0,a=t.length,o=!1,s=!1,l="";n<a;)o=s,s=!1,e=t.charCodeAt(n),l=t.charAt(n),FontManager.isCombinedCharacter(e)?o=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,n)?l=t.substr(n,14):(i=t.charCodeAt(n+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(l=t.substr(n,2),o=!0):l=FontManager.isFlagEmoji(t.substr(n,4))?t.substr(n,4):t.substr(n,2)):e>56319?(i=t.charCodeAt(n+1),FontManager.isVariationSelector(e)&&(o=!0)):FontManager.isZeroWidthJoiner(e)&&(o=!0,s=!0),o?(r[r.length-1]+=l,o=!1):r.push(l),n+=l.length;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,n,a,o,s,l=this.elem.globalData.fontManager,h=this.data,c=[],p=0,u=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,C=!0,P=t.sz[0],T=t.sz[1];C;){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),r=!1," "===E[e]?A=e:13!==k&&3!==k||(g=0,r=!0,w+=t.finalLineHeight||1.2*t.finalSize),l.chars?(s=l.getCharData(E[e],v.fStyle,v.fFamily),_=r?0:s.w*t.finalSize/100):_=l.measureText(E[e],t.f,t.finalSize),g+_>P&&" "!==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,C=!1)}g=-S,_=0;var D,F=0;for(e=0;e<i;e+=1)if(r=!1,13===(k=(D=t.finalText[e]).charCodeAt(0))||3===k?(F=0,y.push(g),b=g>b?g:b,g=-2*S,n="",r=!0,m+=1):n=D,l.chars?(s=l.getCharData(D,v.fStyle,l.getFontByName(t.f).fFamily),_=r?0:s.w*t.finalSize/100):_=l.measureText(n,t.f,t.finalSize)," "===D?F+=_+S:(g+=_+S+F,F=0),c.push({l:_,an:_,add:d,n:r,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==u){if(d+=_,""===n||" "===n||e===i-1){for(""!==n&&" "!==n||(d-=_);f<=e;)c[f].an=d,c[f].ind=p,c[f].extra=_,f+=1;p+=1,d=0}}else if(3==u){if(d+=_,""===n||e===i-1){for(""===n&&(d-=_);f<=e;)c[f].an=d,c[f].ind=p,c[f].extra=_,f+=1;d=0,p+=1}}else c[p].ind=p,c[p].extra=0,p+=1;if(t.l=c,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,j,R,O=h.a;o=O.length;var B=[];for(a=0;a<o;a+=1){for((M=O[a]).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,j=M.s.b,e=0;e<i;e+=1)(I=c[e]).anIndexes[a]=R,(1==j&&""!==I.val||2==j&&""!==I.val&&" "!==I.val||3==j&&(I.n||" "==I.val||e==i-1)||4==j&&(I.n||e==i-1))&&(1===M.s.rn&&B.push(R),R+=1);h.a[a].s.totalChars=R;var L,N=-1;if(1===M.s.rn)for(e=0;e<i;e+=1)N!=(I=c[e]).anIndexes[a]&&(N=I.anIndexes[a],L=B.splice(Math.floor(Math.random()*B.length),1)[0]),I.anIndexes[a]=L}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 r(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 r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,a=0,o=1,s=1;this.ne.v>0?n=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(n,a,o,s).get,h=0,c=this.finalS,p=this.finalE,u=this.data.sh;if(2===u)h=l(h=p===c?r>=p?1:0:t(0,e(.5/(p-c)+(r-c)/(p-c),1)));else if(3===u)h=l(h=p===c?r>=p?0:1:1-t(0,e(.5/(p-c)+(r-c)/(p-c),1)));else if(4===u)p===c?h=0:(h=t(0,e(.5/(p-c)+(r-c)/(p-c),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===u){if(p===c)h=0;else{var d=p-c,f=-d/2+(r=e(t(0,r+.5-c),p-c)),m=d/2;h=Math.sqrt(1-f*f/(m*m))}h=l(h)}else 6===u?(p===c?h=0:(r=e(t(0,r+.5-c),p-c),h=(1+Math.cos(Math.PI+2*Math.PI*r/(p-c)))/2),h=l(h)):(r>=i(c)&&(h=t(0,e(r-c<0?e(p,1)-(c-r):p-r,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,r=this.s.v/e+i,n=this.e.v/e+i;if(r>n){var a=r;r=n,n=a}this.finalS=r,this.finalE=n}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,i){return new r(t,e)}}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},n=PropertyFactory.getProp,a=e.a;this.a={r:a.r?n(t,a.r,0,degToRads,i):r,rx:a.rx?n(t,a.rx,0,degToRads,i):r,ry:a.ry?n(t,a.ry,0,degToRads,i):r,sk:a.sk?n(t,a.sk,0,degToRads,i):r,sa:a.sa?n(t,a.sa,0,degToRads,i):r,s:a.s?n(t,a.s,1,.01,i):r,a:a.a?n(t,a.a,1,0,i):r,o:a.o?n(t,a.o,0,.01,i):r,p:a.p?n(t,a.p,1,0,i):r,sw:a.sw?n(t,a.sw,0,0,i):r,sc:a.sc?n(t,a.sc,1,0,i):r,fc:a.fc?n(t,a.fc,1,0,i):r,fh:a.fh?n(t,a.fh,0,0,i):r,fs:a.fs?n(t,a.fs,0,.01,i):r,fb:a.fb?n(t,a.fb,0,.01,i):r,t:a.t?n(t,a.t,0,0,i):r},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,r=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:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(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=r(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,r,n,a,o,s,l,h,c,p,u,d,f,m,y,g,b,v,_,x=this._moreOptions.alignment.v,k=this._animatorsData,S=this._textData,w=this.mHelper,E=this._renderType,C=this.renderedLetters.length,P=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:[]},a=A._length-1,g=0,n=0;n<a;n+=1)T=bez.buildBezierData(A.v[n],A.v[n+1],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[n+1][0]-A.v[n+1][0],A.i[n+1][1]-A.v[n+1][1]]),o.tLength+=T.segmentLength,o.segments.push(T),g+=T.segmentLength;n=a,_.v.c&&(T=bez.buildBezierData(A.v[n],A.v[0],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][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,u=0,p=1,h=0,c=!0,m=o.segments,s<0&&_.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),p=(f=m[u=m.length-1].points).length-1;s<0;)s+=f[p].partialLength,(p-=1)<0&&(p=(f=m[u-=1].points).length-1);d=(f=m[u].points)[p-1],y=(l=f[p]).partialLength}a=P.length,i=0,r=0;var D,F,M,I,j,R=1.2*t.finalSize*.714,O=!0;M=k.length;var B,L,N,V,z,G,H,W,q,$,K,X,J=-1,Y=s,U=u,Z=p,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,rt=0,nt=2===t.j?-.5:-1,at=0,ot=!0;for(n=0;n<a;n+=1)if(P[n].n){for(it&&(it+=rt);at<n;)P[at].animatorJustifyOffset=it,at+=1;it=0,ot=!0}else{for(F=0;F<M;F+=1)(D=k[F].a).t.propType&&(ot&&2===t.j&&(rt+=D.t.v*nt),(j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars)).length?it+=D.t.v*j[0]*nt:it+=D.t.v*j*nt);ot=!1}for(it&&(it+=rt);at<n;)P[at].animatorJustifyOffset=it,at+=1}for(n=0;n<a;n+=1){if(w.reset(),V=1,P[n].n)i=0,r+=t.yOffset,r+=O?1:0,s=Y,O=!1,this._hasMaskedPath&&(p=Z,d=(f=m[u=U].points)[p-1],y=(l=f[p]).partialLength,h=0),tt="",K="",q="",X="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==P[n].line){switch(t.j){case 1:s+=g-t.lineWidths[P[n].line];break;case 2:s+=(g-t.lineWidths[P[n].line])/2}Q=P[n].line}J!==P[n].ind&&(P[J]&&(s+=P[J].extra),s+=P[n].an/2,J=P[n].ind),s+=x[0]*P[n].an*.005;var st=0;for(F=0;F<M;F+=1)(D=k[F].a).p.propType&&((j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars)).length?st+=D.p.v[0]*j[0]:st+=D.p.v[0]*j),D.a.propType&&((j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars)).length?st+=D.a.v[0]*j[0]:st+=D.a.v[0]*j);for(c=!0,this._pathData.a.v&&(s=.5*P[0].an+(g-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*J/(a-1),s+=this._pathData.f.v);c;)h+y>=s+st||!f?(b=(s+st-h)/l.partialLength,L=d.point[0]+(l.point[0]-d.point[0])*b,N=d.point[1]+(l.point[1]-d.point[1])*b,w.translate(-x[0]*P[n].an*.005,-x[1]*R*.01),c=!1):f&&(h+=l.partialLength,(p+=1)>=f.length&&(p=0,m[u+=1]?f=m[u].points:_.v.c?(p=0,f=m[u=0].points):(h-=l.partialLength,f=null)),f&&(d=l,y=(l=f[p]).partialLength));B=P[n].an/2-P[n].add,w.translate(-B,0,0)}else B=P[n].an/2-P[n].add,w.translate(-B,0,0),w.translate(-x[0]*P[n].an*.005,-x[1]*R*.01,0);for(F=0;F<M;F+=1)(D=k[F].a).t.propType&&(j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?j.length?s+=D.t.v*j[0]:s+=D.t.v*j:j.length?i+=D.t.v*j[0]:i+=D.t.v*j));for(t.strokeWidthAnim&&(G=t.sw||0),t.strokeColorAnim&&(z=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]]),F=0;F<M;F+=1)(D=k[F].a).a.propType&&((j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars)).length?w.translate(-D.a.v[0]*j[0],-D.a.v[1]*j[1],D.a.v[2]*j[2]):w.translate(-D.a.v[0]*j,-D.a.v[1]*j,D.a.v[2]*j));for(F=0;F<M;F+=1)(D=k[F].a).s.propType&&((j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars)).length?w.scale(1+(D.s.v[0]-1)*j[0],1+(D.s.v[1]-1)*j[1],1):w.scale(1+(D.s.v[0]-1)*j,1+(D.s.v[1]-1)*j,1));for(F=0;F<M;F+=1){if(D=k[F].a,j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars),D.sk.propType&&(j.length?w.skewFromAxis(-D.sk.v*j[0],D.sa.v*j[1]):w.skewFromAxis(-D.sk.v*j,D.sa.v*j)),D.r.propType&&(j.length?w.rotateZ(-D.r.v*j[2]):w.rotateZ(-D.r.v*j)),D.ry.propType&&(j.length?w.rotateY(D.ry.v*j[1]):w.rotateY(D.ry.v*j)),D.rx.propType&&(j.length?w.rotateX(D.rx.v*j[0]):w.rotateX(D.rx.v*j)),D.o.propType&&(j.length?V+=(D.o.v*j[0]-V)*j[0]:V+=(D.o.v*j-V)*j),t.strokeWidthAnim&&D.sw.propType&&(j.length?G+=D.sw.v*j[0]:G+=D.sw.v*j),t.strokeColorAnim&&D.sc.propType)for(W=0;W<3;W+=1)j.length?z[W]+=(D.sc.v[W]-z[W])*j[0]:z[W]+=(D.sc.v[W]-z[W])*j;if(t.fillColorAnim&&t.fc){if(D.fc.propType)for(W=0;W<3;W+=1)j.length?H[W]+=(D.fc.v[W]-H[W])*j[0]:H[W]+=(D.fc.v[W]-H[W])*j;D.fh.propType&&(H=j.length?addHueToRGB(H,D.fh.v*j[0]):addHueToRGB(H,D.fh.v*j)),D.fs.propType&&(H=j.length?addSaturationToRGB(H,D.fs.v*j[0]):addSaturationToRGB(H,D.fs.v*j)),D.fb.propType&&(H=j.length?addBrightnessToRGB(H,D.fb.v*j[0]):addBrightnessToRGB(H,D.fb.v*j))}}for(F=0;F<M;F+=1)(D=k[F].a).p.propType&&(j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars),this._hasMaskedPath?j.length?w.translate(0,D.p.v[1]*j[0],-D.p.v[2]*j[1]):w.translate(0,D.p.v[1]*j,-D.p.v[2]*j):j.length?w.translate(D.p.v[0]*j[0],D.p.v[1]*j[1],-D.p.v[2]*j[2]):w.translate(D.p.v[0]*j,D.p.v[1]*j,-D.p.v[2]*j));if(t.strokeWidthAnim&&(q=G<0?0:G),t.strokeColorAnim&&($="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[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+r,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(L,N,0),s-=x[0]*P[n].an*.005,P[n+1]&&J!==P[n+1].ind&&(s+=P[n].an/2,s+=.001*t.tr*t.finalSize)}else{switch(w.translate(i,r,0),t.ps&&w.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:w.translate(P[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[n].line]),0,0);break;case 2:w.translate(P[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[n].line])/2,0,0)}w.translate(0,-t.ls),w.translate(B,0,0),w.translate(x[0]*P[n].an*.005,x[1]*R*.01,0),i+=P[n].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=V}C<=n?(I=new LetterProps(X,q,$,K,tt,et),this.renderedLetters.push(I),C+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[n],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,r,n=e.length,a="";for(i=0;i<n;i+=1)"sh"===e[i].ty&&(r=e[i].ks.k,a+=buildShapeString(r,r.i.length,!0,t));return a},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,r,n){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(r,n,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 r=createNS("title"),n=createElementID();r.setAttribute("id",n),r.textContent=e.title,this.svgElement.appendChild(r),i+=n}if(e&&e.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=e.description,this.svgElement.appendChild(a),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,r=[],n="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(n),n=""):n+=t[e],e+=1;return r.push(n),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var r=i.it[i.it.length-1];r.s&&(r.s.k[0]=e,r.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 r=this.globalData.fontManager.getFontByName(i.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var n=i.fWeight,a=i.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",i.t);var o,s=i.l||[],l=!!this.globalData.fontManager.chars;e=s.length;var h=this.mHelper,c=this.data.singleShape,p=0,u=0,d=!0,f=.001*i.tr*i.finalSize;if(!c||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||!c||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(),c&&(s[t].n&&(p=-f,u+=i.yOffset,u+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(i,h,s[t].line,p,u),p+=s[t].l||0,p+=f),l){var b;if(1===(m=this.globalData.fontManager.getCharData(i.finalText[t],r.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 c&&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")}c&&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,u=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",u),o.style.display="inherit",x.appendChild(o),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=o,u+=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,r,n,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(i=a[t],r=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),i._mdf.m&&r.setAttribute("transform",i.m),i._mdf.o&&r.setAttribute("opacity",i.o),i._mdf.sw&&r.setAttribute("stroke-width",i.sw),i._mdf.sc&&r.setAttribute("stroke",i.sc),i._mdf.fc&&r.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"),r=createNS("rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var n=createElementID();i.setAttribute("id",n),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),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 r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var n=e[r].getMatte(this.layers[t].tt);i.setMatte(n)}else this.buildItem(r),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 r="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[r].getMatte(this.layers[e].tt);t.setMatte(n);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 r,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(i,r):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,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=r-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,r="_";for(e=0;e<i;e+=1)r+=t[e].transform.key+"_";var n=this.sequences[r];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var i=0,r=t.transforms.length,n=e;i<r&&!e;){if(t.transforms[i].transform.mProps._mdf){n=!0;break}i+=1}if(n)for(t.finalTransform.reset(),i=r-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=n},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,r=null;function n(){var n,a,o;e||(n=createNS("svg"),a=createNS("filter"),o=createNS("feColorMatrix"),a.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"),a.appendChild(o),n.appendChild(a),n.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(n.style.display="none"),r=n,document.body.appendChild(r),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:n,get:function(r){return e||n(),e.width=r.width,e.height=r.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,r=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<r;e+=1){i=null;var n=t.data.ef[e].ty;registeredEffects[n]&&(i=new(0,registeredEffects[n].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 r=this.masksProperties.length,n=!1;for(i=0;i<r;i+=1)"n"!==this.masksProperties[i].mode&&(n=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=n,n&&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,r=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,r,n=this.element.finalTransform.mat,a=this.element.canvasContext,o=this.masksProperties.length;for(a.beginPath(),t=0;t<o;t+=1)if("n"!==this.masksProperties[t].mode){var s;this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),r=this.viewData[t].v,e=n.applyToPointArray(r.v[0][0],r.v[0][1],0),a.moveTo(e[0],e[1]);var l=r._length;for(s=1;s<l;s+=1)i=n.applyToTriplePoints(r.o[s-1],r.i[s],r.v[s]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=n.applyToTriplePoints(r.o[s-1],r.i[0],r.v[0]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),a.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,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t);var o,s=i.length;for(n=0;n<s;n+=1)i[n].closed||(o={transforms:r.addTransformSequence(i[n].transforms),trNodes:[]},this.styledShapes.push(o),i[n].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 r=PropertyFactory.getProp;if(this.pe=r(this,t.pe,0,0,this),t.ks.p.s?(this.px=r(this,t.ks.p.x,1,0,this),this.py=r(this,t.ks.p.y,1,0,this),this.pz=r(this,t.ks.p.z,1,0,this)):this.p=r(this,t.ks.p,1,0,this),t.ks.a&&(this.a=r(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,a=t.ks.or.k.length;for(n=0;n<a;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=r(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,t.ks.rx,0,degToRads,this),this.ry=r(this,t.ks.ry,0,degToRads,this),this.rz=r(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},r={};if("fl"===t.ty||"st"===t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.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),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(i.wi=r.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);r.d=n,r.d.k||(i.da=r.d.dashArray,i.do=r.d.dashoffset[0])}}else i.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(i),r.style=i,r},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,r,n){var a,o,s,l,h,c,p=t.length-1,u=[],d=[],f=[].concat(n);for(a=p;a>=0;a-=1){if((l=this.searchProcessedElement(t[a]))?e[a]=i[l-1]:t[a]._shouldRender=r,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty)l?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],f),u.push(e[a].style);else if("gr"===t[a].ty){if(l)for(s=e[a].it.length,o=0;o<s;o+=1)e[a].prevViewData[o]=e[a].it[o];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,r,f)}else"tr"===t[a].ty?(l||(c=this.createTransformElement(t[a]),e[a]=c),f.push(e[a]),this.addTransformToStyleList(e[a])):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?l||(e[a]=this.createShapeElement(t[a])):"tm"===t[a].ty||"rd"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(l?(h=e[a]).closed=!1:((h=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=h,this.shapeModifiers.push(h)),d.push(h)):"rp"===t[a].ty&&(l?(h=e[a]).closed=!0:(h=ShapeModifiers.getModifier(t[a].ty),e[a]=h,h.init(this,t,a,e),this.shapeModifiers.push(h),r=!1),d.push(h));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),p=d.length,a=0;a<p;a+=1)d[a].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,r,n,a,o,s,l,h=this.stylesList.length,c=this.globalData.renderer,p=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(c.save(),a=l.elements,"st"===s||"gs"===s?(c.ctxStrokeStyle("st"===s?l.co:l.grd),c.ctxLineWidth(l.wi),c.ctxLineCap(l.lc),c.ctxLineJoin(l.lj),c.ctxMiterLimit(l.ml||0)):c.ctxFillStyle("fl"===s?l.co:l.grd),c.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&p.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),i=a.length,e=0;e<i;e+=1){for("st"!==s&&"gs"!==s||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),n=(o=a[e].trNodes).length,r=0;r<n;r+=1)"m"===o[r].t?p.moveTo(o[r].p[0],o[r].p[1]):"c"===o[r].t?p.bezierCurveTo(o[r].pts[0],o[r].pts[1],o[r].pts[2],o[r].pts[3],o[r].pts[4],o[r].pts[5]):p.closePath();"st"!==s&&"gs"!==s||(c.ctxStroke(),l.da&&p.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,r){var n,a;for(a=t,n=e.length-1;n>=0;n-=1)"tr"===e[n].ty?(a=i[n].transform,this.renderShapeTransform(t,a)):"sh"===e[n].ty||"el"===e[n].ty||"rc"===e[n].ty||"sr"===e[n].ty?this.renderPath(e[n],i[n]):"fl"===e[n].ty?this.renderFill(e[n],i[n],a):"st"===e[n].ty?this.renderStroke(e[n],i[n],a):"gf"===e[n].ty||"gs"===e[n].ty?this.renderGradientFill(e[n],i[n],a):"gr"===e[n].ty?this.renderShape(a,e[n].it,i[n].it):e[n].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,r,n,a=t.trNodes,o=e.paths,s=o._length;a.length=0;var l=t.transforms.finalTransform;for(n=0;n<s;n+=1){var h=o.shapes[n];if(h&&h.v){for(r=h._length,i=1;i<r;i+=1)1===i&&a.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),a.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[i],h.v[i])});1===r&&a.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&r&&(a.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[0],h.v[0])}),a.push({t:"z"}))}}t.trNodes=a}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,r=e.styledShapes.length;for(i=0;i<r;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var r,n=e.style;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var a,o=this.globalData.canvasContext,s=e.s.v,l=e.e.v;if(1===t.t)r=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)),c=Math.atan2(l[1]-s[1],l[0]-s[0]),p=e.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var u=h*p,d=Math.cos(c+e.a.v)*u+s[0],f=Math.sin(c+e.a.v)*u+s[1];r=o.createRadialGradient(d,f,0,s[0],s[1],h)}var m=t.g.p,y=e.g.c,g=1;for(a=0;a<m;a+=1)e.g._hasOpacity&&e.g._collapsable&&(g=e.g.o[2*a+1]),r.addColorStop(y[4*a]/100,"rgba("+y[4*a+1]+","+y[4*a+2]+","+y[4*a+3]+","+g+")");n.grd=r}n.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var r=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(r.da=n.dashArray,r.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(r.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 r,n,a,o,s,l,h,c,p,u,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,n=t.finalText.length;var b=this.data.singleShape,v=.001*t.tr*t.finalSize,_=0,x=0,k=!0,S=0;for(r=0;r<n;r+=1){o=(a=this.globalData.fontManager.getCharData(t.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&a.data||{},g.reset(),b&&y[r].n&&(_=-v,x+=t.yOffset,x+=k?1:0,k=!1),p=(h=o.shapes?o.shapes[0].it:[]).length,g.scale(t.finalSize/100,t.finalSize/100),b&&this.applyTextPropertiesToMatrix(t,g,y[r].line,_,x),d=createSizedArray(p-1);var w=0;for(c=0;c<p;c+=1)if("sh"===h[c].ty){for(l=h[c].ks.k.i.length,u=h[c].ks.k,f=[],s=1;s<l;s+=1)1===s&&f.push(g.applyToX(u.v[0][0],u.v[0][1],0),g.applyToY(u.v[0][0],u.v[0][1],0)),f.push(g.applyToX(u.o[s-1][0],u.o[s-1][1],0),g.applyToY(u.o[s-1][0],u.o[s-1][1],0),g.applyToX(u.i[s][0],u.i[s][1],0),g.applyToY(u.i[s][0],u.i[s][1],0),g.applyToX(u.v[s][0],u.v[s][1],0),g.applyToY(u.v[s][0],u.v[s][1],0));f.push(g.applyToX(u.o[s-1][0],u.o[s-1][1],0),g.applyToY(u.o[s-1][0],u.o[s-1][1],0),g.applyToX(u.i[0][0],u.i[0][1],0),g.applyToY(u.i[0][0],u.i[0][1],0),g.applyToX(u.v[0][0],u.v[0][1],0),g.applyToY(u.v[0][0],u.v[0][1],0)),d[w]=f,w+=1}b&&(_+=y[r].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,r,n,a;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,c,p=null,u=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?p!==o.fc&&(f.ctxFillStyle(o.fc),p=o.fc):p!==this.values.fill&&(p=this.values.fill,f.ctxFillStyle(this.values.fill)),r=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(a=(c=h[i]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(c[n],c[n+1],c[n+2],c[n+3],c[n+4],c[n+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?u!==o.sc&&(u=o.sc,f.ctxStrokeStyle(o.sc)):u!==this.values.stroke&&(u=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),r=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(a=(c=h[i]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(c[n],c[n+1],c[n+2],c[n+3],c[n+4],c[n+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,r=t.getContext("2d"),n=this.img.width,a=this.img.height,o=n/a,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=a)*s:i=(e=n)/s,r.drawImage(this.img,(n-e)/2,(a-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,r){this.canvasContext.fillRect(t,e,i,r)},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,r,n,a;if(this.reset(),t?(i=t,r=e,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=r*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),c=l.substr(4);n=i/r,(a=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===s||a<n&&"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=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===h&&(a<n&&"meet"===s||a>n&&"slice"===s)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===h&&(a<n&&"meet"===s||a>n&&"slice"===s)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===c&&(a>n&&"meet"===s||a<n&&"slice"===s)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(a>n&&"meet"===s||a<n&&"slice"===s)?(r-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=r/(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 r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=r-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=r-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],r=i.transform,n=this.cTr.props;for(e=0;e<16;e+=1)n[e]=r[e];if(t){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[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,r=this.stack[this.cArrPos];for(i=0;i<16;i+=1)r.transform[i]=e[i];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=r.opacity,n.fillStyle=r.fillStyle,n.strokeStyle=r.strokeStyle,n.lineWidth=r.lineWidth,n.lineCap=r.lineCap,n.lineJoin=r.lineJoin,n.miterLimit=r.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,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,r)},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,r=t.length;for(i=0;i<r;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,r,n,a,o,s=t.sh.v,l=t.transformers,h=s._length;if(!(h<=1)){for(i=0;i<h-1;i+=1)r=this.getTransformedPoint(l,s.v[i]),n=this.getTransformedPoint(l,s.o[i]),a=this.getTransformedPoint(l,s.i[i+1]),o=this.getTransformedPoint(l,s.v[i+1]),this.checkBounds(r,n,a,o,e);s.c&&(r=this.getTransformedPoint(l,s.v[i]),n=this.getTransformedPoint(l,s.o[i]),a=this.getTransformedPoint(l,s.i[0]),o=this.getTransformedPoint(l,s.v[0]),this.checkBounds(r,n,a,o,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,r,n){this.getBoundsOfCurve(t,e,i,r);var a=this.shapeBoundingBox;n.x=bmMin(a.left,n.x),n.xMax=bmMax(a.right,n.xMax),n.y=bmMin(a.top,n.y),n.yMax=bmMax(a.bottom,n.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,r){for(var n,a,o,s,l,h,c,p=[[t[0],r[0]],[t[1],r[1]]],u=0;u<2;++u)a=6*t[u]-12*e[u]+6*i[u],n=-3*t[u]+9*e[u]-9*i[u]+3*r[u],o=3*e[u]-3*t[u],a|=0,o|=0,0==(n|=0)&&0===a||(0===n?(s=-o/a)>0&&s<1&&p[u].push(this.calculateF(s,t,e,i,r,u)):(l=a*a-4*o*n)>=0&&((h=(-a+bmSqrt(l))/(2*n))>0&&h<1&&p[u].push(this.calculateF(h,t,e,i,r,u)),(c=(-a-bmSqrt(l))/(2*n))>0&&c<1&&p[u].push(this.calculateF(c,t,e,i,r,u))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(t,e,i,r,n,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*i[a]+3*(1-t)*bmPow(t,2)*r[a]+bmPow(t,3)*n[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,r=t.length;for(i=0;i<r;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 r=0;r<t.keyframes.length;r+=1){var n=t.keyframes[r].s;n>i&&(i=n)}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 r=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=n,r.webkitTransform=n}}},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 r,n,a=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{e.fontFamily=a.fFamily;var o=t.fWeight,s=t.fStyle;e.fontStyle=s,e.fontWeight=o}var l,h,c,p=t.l;n=p.length;var u,d=this.mHelper,f="",m=0;for(r=0;r<n;r+=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]?c=(h=this.textSpans[m]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=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[r],a.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(y=g?g.data:null,d.reset(),y&&y.shapes&&y.shapes.length&&(u=y.shapes[0].it,d.scale(t.finalSize/100,t.finalSize/100),f=this.createPathShape(d,u),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),y&&y.shapes){document.body.appendChild(c);var b=c.getBBox();c.setAttribute("width",b.width+2),c.setAttribute("height",b.height+2),c.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var v=c.style,_="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";v.transform=_,v.webkitTransform=_,p[r].yOffset=b.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=p[r].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,r,n,a,o,s=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(r=h.length,i=0;i<r;i+=1)h[i].n?s+=1:(a=this.textSpans[i],o=this.textPaths[i],n=l[s],s+=1,n._mdf.m&&(this.isMasked?a.setAttribute("transform",n.m):(a.style.webkitTransform=n.m,a.style.transform=n.m)),a.style.opacity=n.o,n.sw&&n._mdf.sw&&o.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&o.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(o.setAttribute("fill",n.fc),o.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=p,t.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i,r,n=this.comp.threeDElements.length;for(t=0;t<n;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){i=e.perspectiveElem.style,r=e.container.style;var a=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=a,i.webkitPerspective=a,r.transformOrigin=o,r.mozTransformOrigin=o,r.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 r=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.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 n;n=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 a=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),o=[n[0]/a,n[1]/a,n[2]/a],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 c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var p,u,d;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(p=this.comp.threeDElements[t]).type){if(c){var f=this.mat.toCSS();(d=p.container.style).transform=f,d.webkitTransform=f}this.pe._mdf&&((u=p.perspectiveElem.style).perspective=this.pe.v+"px",u.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 r=this.layers[e];if(r.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var n,a,o=0;o<e;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(a=this.elements[o],n=(this.layers[o].ddd?this.getThreeDContainerByPos(o):a.getBaseElement())||n),o+=1;n?r.ddd&&this.supports3d||this.layerElement.insertBefore(i,n):r.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,r,n=createTag("div");styleDiv(n);var a=createTag("div");if(styleDiv(a),"3d"===e){(i=n.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)";(r=a.style).transform=s,r.webkitTransform=s}n.appendChild(a);var l={container:a,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e,i=this.layers.length,r="";for(t=0;t<i;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==r&&(r="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==r&&(r="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,r=this.threeDElements.length;i<r;){if(e<=this.threeDElements[i].endPos){for(var n,a=this.threeDElements[i].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(n=this.elements[a].getBaseElement()),a+=1;n?this.threeDElements[i].container.insertBefore(t,n):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,r=e.style;r.width=t.w+"px",r.height=t.h+"px",this.resizerElem=e,styleDiv(e),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),r.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var a=createNS("defs");n.appendChild(a),this.data=t,this.setupGlobalData(t,n),this.globalData.defs=a,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,r,n=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,o=n/a;this.globalData.compSize.w/this.globalData.compSize.h>o?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,i=0,r=(a-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,i=(n-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+r+",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,r=this.threeDElements.length;for(t=0;t<r;t+=1){var n=this.threeDElements[t].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,i=t.length,r=createTag("div");for(e=0;e<i;e+=1)if(t[e].xt){var n=this.createComp(t[e],r,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},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,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=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,r=t.layers.length;i<r;){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,r=256,n="random",a=e.pow(r,6),o=e.pow(2,52),s=2*o,l=255;function h(t){var e,i=t.length,n=this,a=0,o=n.i=n.j=0,s=n.S=[];for(i||(t=[i++]);a<r;)s[a]=a++;for(a=0;a<r;a++)s[a]=s[o=l&o+t[a%i]+(e=s[a])],s[o]=e;n.g=function(t){for(var e,i=0,a=n.i,o=n.j,s=n.S;t--;)e=s[a=l&a+1],i=i*r+s[l&(s[a]=s[o=l&o+e])+(s[o]=e)];return n.i=a,n.j=o,i}}function c(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function p(t,e){var i,r=[],n=_typeof$2(t);if(e&&"object"==n)for(i in t)try{r.push(p(t[i],e-1))}catch(t){}return r.length?r:"string"==n?t:t+"\0"}function u(t,e){for(var i,r=t+"",n=0;n<r.length;)e[l&n]=l&(i^=19*e[l&n])+r.charCodeAt(n++);return d(e)}function d(t){return String.fromCharCode.apply(0,t)}e["seed"+n]=function(l,f,m){var y=[],g=u(p((f=!0===f?{entropy:!0}:f||{}).entropy?[l,d(t)]:null===l?function(){try{var e=new Uint8Array(r);return(i.crypto||i.msCrypto).getRandomValues(e),d(e)}catch(e){var n=i.navigator,a=n&&n.plugins;return[+new Date,i,a,i.screen,d(t)]}}():l,3),y),b=new h(y),v=function(){for(var t=b.g(6),e=a,i=0;t<o;)t=(t+i)*r,e*=r,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,u(d(b.S),t),(f.pass||m||function(t,i,r,a){return a&&(a.S&&c(a,b),t.state=function(){return c(b,{})}),r?(e[n]=t,i):t})(v,g,"global"in f?f.global:this==e,f.state)},u(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,r=t.length,n=[];for(i=0;i<r;i+=1)n[i]=-t[i];return n}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),r=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(r,e)||"string"===i||"string"===r)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,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 n=0,a=t.length,o=e.length,s=[];n<a||n<o;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?s[n]=t[n]+e[n]:s[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return s}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),r=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(r,e))return"string"===i&&(t=parseInt(t,10)),"string"===r&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(r,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 n=0,a=t.length,o=e.length,s=[];n<a||n<o;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?s[n]=t[n]-e[n]:s[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return s}return 0}function mul(t,e){var i,r,n,a=_typeof$1(t),o=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(o,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t[r]*e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t*e[r];return i}return 0}function div(t,e){var i,r,n,a=_typeof$1(t),o=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(o,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t[r]/e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t/e[r];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 r=i;i=e,e=r}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 r=Math.min(t.length,e.length),n=0;for(i=0;i<r;i+=1)n+=Math.pow(e[i]-t[i],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,r=t[0],n=t[1],a=t[2],o=Math.max(r,n,a),s=Math.min(r,n,a),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 r:e=(n-a)/h+(n<a?6:0);break;case n:e=(a-r)/h+2;break;case a:e=(r-n)/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,r,n=t[0],a=t[1],o=t[2];if(0===a)e=o,r=o,i=o;else{var s=o<.5?o*(1+a):o+a-o*a,l=2*o-s;e=hue2rgb(l,s,n+1/3),i=hue2rgb(l,s,n),r=hue2rgb(l,s,n-1/3)}return[e,i,r,t[3]]}function linear(t,e,i,r,n){if(void 0!==r&&void 0!==n||(r=e,n=i,e=0,i=1),i<e){var a=i;i=e,e=a}if(t<=e)return r;if(t>=i)return n;var o,s=i===e?0:(t-e)/(i-e);if(!r.length)return r+(n-r)*s;var l=r.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=r[o]+(n[o]-r[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,r=e.length;t||(t=createTypedArray("float32",r));var n=createTypedArray("float32",r),a=BMMath.random();for(i=0;i<r;i+=1)n[i]=t[i]+a*(e[i]-t[i]);return n}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,r){var n,a=t.length,o=shapePool.newElement();o.setPathData(!!r,a);var s,l,h=[0,0];for(n=0;n<a;n+=1)s=e&&e[n]?e[n]:h,l=i&&i[n]?i[n]:h,o.setTripleAt(t[n][0],t[n][1],l[0]+t[n][0],l[1]+t[n][1],s[0]+t[n][0],s[1]+t[n][1],n,!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,r,n=this.pv.length?this.pv.length:1,a=createTypedArray("float32",n),o=Math.floor(5*time);for(i=0,r=0;i<o;){for(r=0;r<n;r+=1)a[r]+=-e+2*e*BMMath.random();i+=1}var s=5*time,l=s-Math.floor(s),h=createTypedArray("float32",n);if(n>1){for(r=0;r<n;r+=1)h[r]=this.pv[r]+a[r]+(-e+2*e*BMMath.random())*l;return h}return this.pv+a[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]],r=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,r,0]}function easeOut(t,e,i,r,n){return applyEase(easeOutBez,t,e,i,r,n)}function easeIn(t,e,i,r,n){return applyEase(easeInBez,t,e,i,r,n)}function ease(t,e,i,r,n){return applyEase(easeInOutBez,t,e,i,r,n)}function applyEase(t,e,i,r,n,a){void 0===n?(n=i,a=r):e=(e-i)/(r-i),e>1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(n)){var s,l=n.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=(a[s]-n[s])*o+n[s];return h}return(a-n)*o+n}function nearestKey(t){var e,i,r,n=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,r=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){i=e+1,r=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,r=data.k[e+1].t):(i=e+1,r=data.k[e].t);break}}-1===i&&(i=e+1,r=data.k[e].t)}else i=0,r=0;var a={};return a.index=i,a.time=r/elem.comp.globalData.frameRate,a}function key(t){var e,i,r;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 n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=n.length,i=0;i<r;i+=1)e[i]=n[i],e.value[i]=n[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,r=createSizedArray(e.viewData.length),n=e.viewData.length;for(i=0;i<n;i+=1)r[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<n;){if(e.masksProperties[i].nm===t)return r[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(r){if(!t.numKeys)return 0;var n="";n="s"in e.keyframes[r-1]?e.keyframes[r-1].s:"e"in e.keyframes[r-2]?e.keyframes[r-2].e:e.keyframes[r-2].s;var a="unidimensional"===i?new Number(n):Object.assign({},n);return a.time=e.keyframes[r-1].t/e.elem.comp.globalData.frameRate,a.value="unidimensional"===i?n[0]:n,a},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function r(){return t}return function(n){return n?"unidimensional"===n.propType?function(e){e&&"pv"in e||(e=t);var r=1/e.mult,n=e.pv*r,a=new Number(n);return a.value=n,i(a,e,"unidimensional"),function(){return e.k&&e.getValue(),n=e.v*r,a.value!==n&&((a=new Number(n)).value=n,a[0]=n,i(a,e,"unidimensional")),a}}(n):function(t){t&&"pv"in t||(t=e);var r=1/t.mult,n=t.data&&t.data.l||t.pv.length,a=createTypedArray("float32",n),o=createTypedArray("float32",n);return a.value=o,i(a,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<n;e+=1)o[e]=t.v[e]*r,a[e]=o[e];return a}}(n):r}}(),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,r,n,a;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?a=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?a():[i(),r(),n?n():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 r(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 n(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;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,r=this._elem.hierarchy.length;for(i=0;i<r;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,r=this._elem.hierarchy.length;for(i=0;i<r;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 c;function p(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=t,p.invertPoint=o,p.applyPoint=a,p.toWorld=i,p.toWorldVec=e,p.fromWorld=n,p.fromWorldVec=r,p.toComp=i,p.fromComp=s,p.sampleImage=l,p.sourceRectAtTime=h.sourceRectAtTime.bind(h),p._elem=h;var u=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),p.startTime=h.data.st,p.index=h.data.ind,p.source=h.data.refId,p.height=0===h.data.ty?h.data.h:100,p.width=0===h.data.ty?h.data.w:100,p.inPoint=h.data.ip/h.comp.globalData.frameRate,p.outPoint=h.data.op/h.comp.globalData.frameRate,p._name=h.data.nm,p.registerMaskInterface=function(t){p.mask=new MaskManagerInterface(t,h)},p.registerEffectsInterface=function(t){p.effect=t},p}}(),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 r,n=[],a=t.data.ef,o=t.effectsManager.effectElements.length;for(r=0;r<o;r+=1)n.push(e(a[r],t.effectsManager.effectElements[r],i,t));var s=t.data.ef||[],l=function(t){for(r=0,o=s.length;r<o;){if(t===s[r].nm||t===s[r].mn||t===s[r].ix)return n[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}};function e(t,r,n,a){function o(e){for(var i=t.ef,r=0,n=i.length;r<n;){if(e===i[r].nm||e===i[r].mn||e===i[r].ix)return 5===i[r].ty?h[r]:h[r]();r+=1}throw new Error}var s,l=propertyGroupFactory(o,n),h=[],c=t.ef.length;for(s=0;s<c;s+=1)5===t.ef[s].ty?h.push(e(t.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,a)):h.push(i(r.effectElements[s],t.ef[s].ty,a,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,r){var n=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?i.comp.compInterface(t.p.v):n()}}return t}(),ShapePathInterface=function(t,e,i){var r=e.sh;function n(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?n.path:null}var a=propertyGroupFactory(n,i);return r.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(n,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),n},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(a(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(c(t[f],s[f],d)):"rd"===t[f].ty?m.push(p(t[f],s[f],d)):"rp"===t[f].ty?m.push(u(t[f],s[f],d)):"gf"===t[f].ty?m.push(r(t[f],s[f],d)):m.push(n(t[f],s[f])));return m}function e(e,i,r){var n=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,r);var a=function(e,i,r){var n,a=function(t){for(var e=0,i=n.length;e<i;){if(n[e]._name===t||n[e].mn===t||n[e].propertyIndex===t||n[e].ix===t||n[e].ind===t)return n[e];e+=1}return"number"==typeof t?n[t-1]:null};a.propertyGroup=propertyGroupFactory(a,r),n=t(e.it,i.it,a.propertyGroup),a.numProperties=n.length;var o=s(e.it[e.it.length-1],i.it[i.it.length-1],a.propertyGroup);return a.transform=o,a.propertyIndex=e.cix,a._name=e.nm,a}(e,i,n.propertyGroup),o=s(e.it[e.it.length-1],i.it[i.it.length-1],n.propertyGroup);return n.content=a,n.transform=o,Object.defineProperty(n,"_name",{get:function(){return e.nm}}),n.numProperties=e.np,n.propertyIndex=e.ix,n.nm=e.nm,n.mn=e.mn,n}function i(t,e,i){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{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)),r}function r(t,e,i){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{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)),r}function n(){return function(){return null}}function a(t,e,i){var r,n=propertyGroupFactory(h,i),a=propertyGroupFactory(l,n);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(r=0;r<s;r+=1)o(r),e.d.dataProps[r].p.setGroupProperty(a);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",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),e.w.setGroupProperty(PropertyInterface("Stroke Width",n)),h}function o(t,e,i){function r(e){return e===t.e.ix||"End"===e||"end"===e?r.end:e===t.s.ix?r.start:e===t.o.ix?r.offset:null}var n=propertyGroupFactory(r,i);return r.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",n)),e.e.setGroupProperty(PropertyInterface("End",n)),e.o.setGroupProperty(PropertyInterface("Offset",n)),r.propertyIndex=t.ix,r.propertyGroup=i,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),r.mn=t.mn,r}function s(t,e,i){function r(e){return t.a.ix===e||"Anchor Point"===e?r.anchorPoint:t.o.ix===e||"Opacity"===e?r.opacity:t.p.ix===e||"Position"===e?r.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?r.rotation:t.s.ix===e||"Scale"===e?r.scale:t.sk&&t.sk.ix===e||"Skew"===e?r.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?r.skewAxis:null}var n=propertyGroupFactory(r,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(r,{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}}),r.ty="tr",r.mn=t.mn,r.propertyGroup=i,r}function l(t,e,i){function r(e){return t.p.ix===e?r.position:t.s.ix===e?r.size:null}var n=propertyGroupFactory(r,i);r.propertyIndex=t.ix;var a="tm"===e.sh.ty?e.sh.prop:e.sh;return a.s.setGroupProperty(PropertyInterface("Size",n)),a.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:t.nm}}),r.mn=t.mn,r}function h(t,e,i){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.rotation:t.pt.ix===e?r.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?r.outerRadius:t.os.ix===e?r.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?r.innerRoundness:null:r.innerRadius}var n=propertyGroupFactory(r,i),a="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",n)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),a.pt.setGroupProperty(PropertyInterface("Points",n)),a.p.setGroupProperty(PropertyInterface("Position",n)),a.r.setGroupProperty(PropertyInterface("Rotation",n)),t.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:t.nm}}),r.mn=t.mn,r}function c(t,e,i){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?r.size:null}var n=propertyGroupFactory(r,i),a="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,a.p.setGroupProperty(PropertyInterface("Position",n)),a.s.setGroupProperty(PropertyInterface("Size",n)),a.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:t.nm}}),r.mn=t.mn,r}function p(t,e,i){function r(e){return t.r.ix===e||"Round Corners 1"===e?r.radius:null}var n=propertyGroupFactory(r,i),a=e;return r.propertyIndex=t.ix,a.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:t.nm}}),r.mn=t.mn,r}function u(t,e,i){function r(e){return t.c.ix===e||"Copies"===e?r.copies:t.o.ix===e||"Offset"===e?r.offset:null}var n=propertyGroupFactory(r,i),a=e;return r.propertyIndex=t.ix,a.c.setGroupProperty(PropertyInterface("Copies",n)),a.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:t.nm}}),r.mn=t.mn,r}return function(e,i,r){var n;function a(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:n[t-1];for(var e=0,i=n.length;e<i;){if(n[e]._name===t)return n[e];e+=1}return null}return a.propertyGroup=propertyGroupFactory(a,function(){return r}),n=t(e,i,a.propertyGroup),a.numProperties=n.length,a._name="Contents",a}}(),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 r(t){if(i[t])return e=t,"object"===_typeof(i=i[t])?r:i;var n=t.indexOf(e);if(-1!==n){var a=parseInt(t.substr(n+e.length),10);return"object"===_typeof(i=i[a])?r:i}return""}return function(){return e="",i=t.getFootageData(),r}}(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),r=0;if(e.length){var n;for(n=0;n<e.length;n+=1)r+=Math.pow(i[n]-e[n],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,r=-.001,n=this.getValueAtTime(t),a=this.getValueAtTime(t+r);if(n.length)for(e=createTypedArray("float32",n.length),i=0;i<n.length;i+=1)e[i]=(a[i]-n[i])/r;else e=(a-n)/r;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 r,n,a,o,s,l=this.comp.renderedFrame,h=this.keyframes,c=h[h.length-1].t;if(l<=c)return this.pv;if(i?n=c-(r=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>h.length-1)&&(e=h.length-1),r=c-(n=h[h.length-1-e].t)),"pingpong"===t){if(Math.floor((l-n)/r)%2!=0)return this.getValueAtTime((r-(l-n)%r+n)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var p=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0),f=Math.floor((l-n)/r);if(this.pv.length){for(o=(s=new Array(p.length)).length,a=0;a<o;a+=1)s[a]=(u[a]-p[a])*f+d[a];return s}return(u-p)*f+d}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),y=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-y[a])*((l-c)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-c)/.001*(m-y)}}return this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,n,a,o,s,l=this.comp.renderedFrame,h=this.keyframes,c=h[0].t;if(l>=c)return this.pv;if(i?n=c+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>h.length-1)&&(e=h.length-1),r=(n=h[e].t)-c),"pingpong"===t){if(Math.floor((c-l)/r)%2==0)return this.getValueAtTime(((c-l)%r+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var p=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(n/this.comp.globalData.frameRate,0),d=this.getValueAtTime((r-(c-l)%r+c)/this.comp.globalData.frameRate,0),f=Math.floor((c-l)/r)+1;if(this.pv.length){for(o=(s=new Array(p.length)).length,a=0;a<o;a+=1)s[a]=d[a]-(u[a]-p[a])*f;return s}return d-(u-p)*f}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),y=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-y[a])*(c-l)/.001;return s}return m+(m-y)*(c-l)/.001}}return this.getValueAtTime((r-((c-l)%r+c))/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,r,n=this.comp.renderedFrame/this.comp.globalData.frameRate,a=n-t,o=e>1?(n+t-a)/(e-1):1,s=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;s<e;){if(r=this.getValueAtTime(a+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=r[l];else i+=r;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=e;else i/=e;return i}function r(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 r=this.s.getValueAtTime(t);e.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(t),a=this.sa.getValueAtTime(t);e.skewFromAxis(-n*this.sk.mult,a*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),c=this.or.getValueAtTime(t);e.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(t),u=this.py.getValueAtTime(t);if(this.data.p.z){var d=this.pz.getValueAtTime(t);e.translate(p*this.px.mult,u*this.py.mult,-d*this.pz.mult)}else e.translate(p*this.px.mult,u*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 n(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var o=a(t,e,i);return o.dynamicProperties.length?o.getValueAtTime=r.bind(o):o.getValueAtTime=n.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(r,n,a,s,l){var h=o(r,n,a,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===n.a?n.k.length:0,h.propertyIndex=n.ix;var c=0;return 0!==a&&(c=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(r,n,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,r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0));var n=r._length,a=r[t],o=r.v,s=createSizedArray(n);for(i=0;i<n;i+=1)s[i]="i"===t||"o"===t?[a[i][0]-o[i][0],a[i][1]-o[i][1]]:[a[i][0],a[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 r,n=this._segmentsLength,a=n.lengths,o=n.totalLength*t,s=0,l=a.length,h=0;s<l;){if(h+a[s].addedLength>o){var c=s,p=i.c&&s===l-1?0:s+1,u=(o-h)/a[s].addedLength;r=bez.getPointInSegment(i.v[c],i.v[p],i.o[c],i.i[p],u,a[s]);break}h+=a[s].addedLength,s+=1}return r||(r=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),r},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),n=this.pointOnPath(t+.001,e),a=n[0]-r[0],o=n[1]-r[1],s=Math.sqrt(Math.pow(a,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===i?[a/s,o/s]:[-o/s,a/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 c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,r,n){var a=c(t,e,i,r,n);return a.propertyIndex=e.ix,a.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,a):4===i&&expressionHelpers.searchExpressions(t,e.ks,a),a.k&&t.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var r={};return this.copyData(r,t),r.t=i.toString(),r.__complete=!1,r}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,r,n=createNS("feMerge");for(n.setAttribute("result",t),r=0;r<e.length;r+=1)(i=createNS("feMergeNode")).setAttribute("in",e[r]),n.appendChild(i),n.appendChild(i);return n}};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,r,n){this.filterManager=e;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",r+"_tint_1"),t.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",r+"_tint_2"),t.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(r,[n,r+"_tint_1",r+"_tint_2"]);t.appendChild(o)}function SVGFillFilter(t,e,i,r){this.filterManager=e;var n=createNS("feColorMatrix");n.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",r),t.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,r){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(n);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var s=createNS("feFuncG");s.setAttribute("type","table"),a.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),a.appendChild(l),this.feFuncB=l,t.appendChild(a)}function SVGProLevelsFilter(t,e,i,r){this.filterManager=e;var n=this.filterManager.effectElements,a=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a)),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),t.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(t,e,i,r,n){var a=e.container.globalData.renderConfig.filterSize,o=e.data.fs||a;t.setAttribute("x",o.x||a.x),t.setAttribute("y",o.y||a.y),t.setAttribute("width",o.width||a.width),t.setAttribute("height",o.height||a.height),this.filterManager=e;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",r+"_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",r+"_drop_shadow_1"),l.setAttribute("result",r+"_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",r+"_drop_shadow_3"),this.feFlood=h,t.appendChild(h);var c=createNS("feComposite");c.setAttribute("in",r+"_drop_shadow_3"),c.setAttribute("in2",r+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(c);var p=this.createMergeNode(r,[r+"_drop_shadow_4",n]);t.appendChild(p)}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,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 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,r,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,i=0):r=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<r;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");n[0];)s.appendChild(n[0]);this.elem.layerElement.appendChild(s),this.masker=a,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(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[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,r,n=this.paths.length;for(e=0;e<n;e+=1)if(-1!==this.paths[e].m&&(i=this.elem.maskManager.viewData[this.paths[e].m],r=this.paths[e].p,(t||this.filterManager._mdf||i.prop._mdf)&&r.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 a;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=r.getTotalLength();a="0 0 0 "+l*o+" ";var h,c=l*(s-o),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(c/p);for(h=0;h<u;h+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*l+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",a)}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,r=this.filterManager.effectElements[2].p.v,n=r[0]+" "+i[0]+" "+e[0],a=r[1]+" "+i[1]+" "+e[1],o=r[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",a),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,r,n){for(var a,o,s=0,l=Math.min(t,e),h=Math.max(t,e),c=Array.call(null,{length:256}),p=0,u=n-r,d=e-t;s<=256;)o=(a=s/256)<=l?d<0?n:r:a>=h?d<0?r:n:r+u*Math.pow((a-t)/d,1/i),c[p]=o,p+=1,s+=256/255;return c.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,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=i*Math.cos(r),a=i*Math.sin(r);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",a)}}};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,r){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("result",r),t.appendChild(n),this.feGaussianBlur=n}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 r,n=i.children,a=0,o=n.length;a<o&&n[a]!==t.layerElement;)a+=1;a<=o-2&&(r=n[a+1]);var s=createNS("use");s.setAttribute("href","#"+e),r?i.insertBefore(s,r):i.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),r=createNS("mask");r.setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(r);var a=createNS("symbol");a.setAttribute("id",i),this.replaceInParent(e,i),a.appendChild(e.layerElement),n.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+i),r.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,r=e.length;i<r;)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,r=3==i?0:e,n=2==i?0:e;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+n);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},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,r=e[1].p.v,n=1===e[2].p.v,a=e[3].p.v,o=n?a: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*a,1),this.matrix.rotate(-h*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[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,r=Array(e);i<e;i++)r[i]=t[i];return r}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 r,n,a,o,s=[],l=!0,h=!1;try{if(a=(i=i.call(t)).next,0===e);else for(;!(l=(r=a.call(i)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){h=!0,n=t}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(h)throw n}}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 r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,r)}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,r,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)i=a[r],e.includes(i)||{}.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var i={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;i[r]=t[r]}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 r=i.call(t,e);if("object"!=typeof r)return r;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,r=t.loop,n=t.autoplay,a=t.initialSegment,o=t.onComplete,s=t.onLoopComplete,l=t.onEnterFrame,h=t.onSegmentStart,c=t.onConfigReady,p=t.onDataReady,u=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 r=_objectSpread2(_objectSpread2(_objectSpread2({},t),i),{},{container:x.current});return _.current=lottie.loadAnimation(r),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,r]),useEffect(function(){_.current&&(_.current.autoplay=!!n)},[n]),useEffect(function(){_.current&&(a?Array.isArray(a)&&a.length&&((_.current.currentRawFrame<a[0]||_.current.currentRawFrame>a[1])&&(_.current.currentRawFrame=a[0]),_.current.setSegment(a[0],a[1])):_.current.resetSegments(!0))},[a]),useEffect(function(){var t=[{name:"complete",handler:o},{name:"loopComplete",handler:s},{name:"enterFrame",handler:l},{name:"segmentStart",handler:h},{name:"config_ready",handler:c},{name:"data_ready",handler:p},{name:"data_failed",handler:u},{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,c,p,u,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,r=e.height;return(window.innerHeight-i)/(window.innerHeight+r)}function getContainerCursorPosition(t,e,i){var r=t.getBoundingClientRect(),n=r.top;return{x:(e-r.left)/r.width,y:(i-n)/r.height}}var useInitInteractivity=function(t){var e=t.wrapperRef,i=t.animationItem,r=t.mode,n=t.actions;useEffect(function(){var t=e.current;if(t&&i&&n.length){i.stop();var a,o,s,l,h;switch(r){case"scroll":return l=null,h=function(){var e=getContainerVisibility(t),r=n.find(function(t){var i=t.visibility;return i&&e>=i[0]&&e<=i[1]});if(r){if("seek"===r.type&&r.visibility&&2===r.frames.length){var a=r.frames[0]+Math.ceil((e-r.visibility[0])/(r.visibility[1]-r.visibility[0])*r.frames[1]);
|
|
29
|
+
//! goToAndStop must be relative to the start of the current segment
|
|
30
|
+
i.goToAndStop(a-i.firstFrame-1,!0)}"loop"===r.type&&(null===l||l!==r.frames||i.isPaused)&&(i.playSegments(r.frames,!0),l=r.frames),"play"===r.type&&i.isPaused&&(i.resetSegments(!0),i.play()),"stop"===r.type&&i.goToAndStop(r.frames[0]-i.firstFrame-1,!0)}},document.addEventListener("scroll",h),function(){document.removeEventListener("scroll",h)};case"cursor":return a=function(e,r){var a=e,o=r;if(-1!==a&&-1!==o){var s=getContainerCursorPosition(t,a,o);a=s.x,o=s.y}var l=n.find(function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?a>=e.x[0]&&a<=e.x[1]&&o>=e.y[0]&&o<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&a===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=(a-l.position.x[0])/(l.position.x[1]-l.position.x[0]),c=(o-l.position.y[0])/(l.position.y[1]-l.position.y[0]);i.playSegments(l.frames,!0),i.goToAndStop(Math.ceil((h+c)/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){a(t.clientX,t.clientY)},s=function(){a(-1,-1)},t.addEventListener("mousemove",o),t.addEventListener("mouseout",s),function(){t.removeEventListener("mousemove",o),t.removeEventListener("mouseout",s)}}}},[r,i])},useLottieInteractivity=function(t){var e=t.actions,i=t.mode,r=t.lottieObj,n=r.animationItem,a=r.View,o=r.animationContainerRef;return useInitInteractivity({actions:e,animationItem:n,mode:i,wrapperRef:o}),a},_excluded=["style","interactivity"],Lottie=function(t){var e,i,r,n=t.style,a=t.interactivity,o=_objectWithoutProperties(t,_excluded),s=useLottie(o,n),l=s.View,h=s.play,c=s.stop,p=s.pause,u=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:c,pause:p,setSpeed:u,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:c,pause:p,setSpeed:u,goToAndStop:d,goToAndPlay:f,setDirection:m,playSegments:y,setSubframe:g,getDuration:b,destroy:v,animationContainerRef:_,animationLoaded:x,animationItem:k},actions:null!==(i=null==a?void 0:a.actions)&&void 0!==i?i:[],mode:null!==(r=null==a?void 0:a.mode)&&void 0!==r?r:"scroll"})};function OnboardImage({node:t}){useLogRender("OnboardImage"),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}){useLogRender("OnboardItem"),t=useNode(t);const e=t.attributes?.flexDirection,i=t.attributes?.display,r=parseSize(t.attributes?.paddingHorizontal);return jsx("div",{className:"embla__slide",style:{gap:parseSize(t.attributes?.gap),flexDirection:e,display:i,paddingRight:r,paddingLeft:r},children:t.children&&jsx(RenderNode$1,{node:t.children})})}var OnboardItem$1=React.memo(OnboardItem);function Text({node:t}){useLogRender("Text"),t=useNode(t);const{appConfig:e}=useRenderStore(t=>({appConfig:t.appConfig})),{defaultLanguage:i,localication:r}=e,n=t.children,a=extractTextStyle(t);return jsx("p",{style:a,children:r?.[i??"en"]?.[n]??n})}var Text$1=React.memo(Text);function OnboardSubtitle({node:t}){return useLogRender("OnboardSubtitle"),t=useNode(t),jsx(Text$1,{node:t})}var OnboardSubtitle$1=React.memo(OnboardSubtitle);function OnboardTitle({node:t}){return useLogRender("OnboardTitle"),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 useLogRender("View"),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"}}}],allcomponentNames=["button","carousel","carouselButtons","carouselDots","carouselItem","carouselProvider","image","Onboard","OnboardButton","OnboardButtons","OnboardDot","OnboardFooter","OnboardImage","OnboardItem","OnboardProvider","OnboardSubtitle","OnboardTitle","text","view"],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),r=i?.types;return r?.[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:r,componentType:n}){if(Array.isArray(e))return jsxs("select",{value:i??"",onChange:t=>r(t.target.value),className:"input",children:[jsx("option",{value:"",children:"(none)"}),e.map(t=>jsx("option",{value:t,children:t},t))]});const a="string"==typeof e?getArrayItemType(e):null;if(a){const t=Array.isArray(i)?i:[];if(isPrimitiveType(a))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"===a?{type:"number",value:e??"",onChange:e=>{const n=[...t];n[i]=""===e.target.value?void 0:Number(e.target.value),r(n)},className:"input",style:{flex:1}}:"boolean"===a?{type:"checkbox",checked:Boolean(e),onChange:e=>{const n=[...t];n[i]=e.target.checked,r(n)}}:{type:"text",value:e??"",onChange:e=>{const n=[...t];n[i]=""===e.target.value?void 0:e.target.value,r(n)},className:"input",style:{flex:1}}),jsx("button",{type:"button",onClick:()=>{const e=t.filter((t,e)=>e!==i);r(e.length?e:void 0)},children:"remove"})]},i)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,"boolean"!==a&&("number"===a?0:"")];r(e)},children:"add"})})]});const e=getTypeSchema(n,a)??{};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((i,a)=>{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 n=[...t],s={...o??{},[e]:i};n[a]=s,r(n)},componentType:n})]},e))}),jsx("div",{style:{marginTop:8},children:jsx("button",{type:"button",onClick:()=>{const e=t.filter((t,e)=>e!==a);r(e.length?e:void 0)},children:"remove"})})]},a)}),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,{}];r(e)},children:"add"})})]})}if("string"==typeof e&&!isPrimitiveType(e)){const t=getTypeSchema(n,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 n={...e??{},[t]:i};r(n)},componentType:n})]},t))})}}if("number"===e)return jsx("input",{type:"number",value:i??"",onChange:t=>r(""===t.target.value?void 0:Number(t.target.value)),className:"input"});if("boolean"===e)return jsx("input",{type:"checkbox",checked:Boolean(i),onChange:t=>r(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 n=[...t];n[i]=e.target.value,r(n)},className:"input",style:{flex:1}}),jsx("button",{type:"button",onClick:()=>{const e=t.filter((t,e)=>e!==i);r(e.length?e:void 0)},children:"remove"})]},i)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,""];r(e)},children:"add"})})]})}return jsx("input",{type:"text",value:i??"",onChange:t=>r(""===t.target.value?void 0:t.target.value),className:"input"})}function AttributesEditor({node:t,onChange:e}){if(useLogRender("AttributesEditor"),!t||isNodeString(t))return null;const i=t,r=getAttributeSchema(i?.type)??{},n=i?.attributes??{},a=Object.entries(r);return 0===a.length?jsx("div",{style:{padding:8,opacity:.7},children:"No editable attributes"}):jsx("div",{style:{},children:a.map(([t,r])=>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:r,value:n?.[t],onChange:r=>{const a={...i,attributes:{...n??{},[t]:r}};e(a)},componentType:i?.type})})]},t))})}var AttributesEditor$1=React.memo(AttributesEditor),name$8="hello-world",version$8="1.0.0",appConfig$8={theme:"light",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,appConfig:appConfig$8,data:data$8},name$7="hello-world-2-advanced",version$7="1.0.0",appConfig$7={theme:"light",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,appConfig:appConfig$7,data:data$7},name$6="carousel-sample",version$6="1.0.0",appConfig$6={theme:"light"},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,appConfig:appConfig$6,data:data$6},name$5="vpn-onboard-1 (legacy)",version$5="0.0.0",appConfig$5={theme:"dark",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,appConfig:appConfig$5,data:data$5},name$4="vpn-onboard-2 (legacy)",version$4="0.0.0",appConfig$4={theme:"light",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,appConfig:appConfig$4,data:data$4},name$3="vpn-onboard-3 (legacy)",version$3="0.0.0",appConfig$3={theme:"light",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,appConfig:appConfig$3,data:data$3},name$2="vpn-onboard-4 (legacy)",version$2="0.0.0",type$2="nova",appConfig$2={theme:"dark",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,appConfig:appConfig$2,data:data$2},name$1="vpn-onboard-5 (legacy)",version$1="0.0.0",type$1="nova",appConfig$1={theme:"light",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,appConfig:appConfig$1,data:data$1},name="vpn-onboard-6 (legacy)",version="0.0.0",type="nova",appConfig={theme:"dark",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,appConfig:appConfig,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||[],r=e?.data||[],n=mapDotsFromGeneralComponents(i),a=mapFooterFromGeneralComponents(i),{carouselNode:o,providerLevelButtons:s}=buildCarouselFromPages(r);return{type:"OnboardProvider",isMain:!0,key:t?.data?.data?.key,children:[o,...n?[n]:[],...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}}}function buildCarouselFromPages(t){const e=t.filter(t=>"simple-onboard-layout"===t?.layout),i=new Map;e.forEach((t,e)=>{const r=t?.attributes?.key;"string"==typeof r&&i.set(r,e)});const r=[];return{carouselNode:{type:"Onboard",children:e.map(t=>buildCarouselItem(t,i,r))},providerLevelButtons:r}}function buildCarouselItem(t,e,i){const r=t?.attributes?.components||[],n=[],a=t?.attributes?.key,o="string"==typeof a&&e.has(a)?e.get(a):void 0;for(const t of r)if("title-layout"===t?.layout){const e=t?.attributes?.title_localization_key||"",i=t?.attributes?.title_color||void 0,{fontSize:r,textAlign:a,marginTop:o,fontWeight:s}=extractTextStyleAttributesFromComponent(t);n.push({type:"OnboardTitle",attributes:i||r||a||o||s?{...i?{color:i}:{},..."number"==typeof r?{fontSize:r}:{},...a?{textAlign:a}:{},..."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:r,textAlign:a,marginTop:o,fontWeight:s}=extractTextStyleAttributesFromComponent(t);n.push({type:"OnboardSubtitle",attributes:i||r||a||o||s?{...i?{color:i}:{},..."number"==typeof r?{fontSize:r}:{},...a?{textAlign:a}:{},..."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,r="string"==typeof i?Number.parseInt(i,10):"number"==typeof i?i:void 0,a=Boolean(t?.attributes?.is_bg_image),o=extractViewStyleAttributesFromComponent(t),s=t?.attributes?.lottie,l=t?.attributes?.video_url;e&&n.push({type:"OnboardImage",attributes:{src:e,...r?{height:r}:{},resizeMode:a?"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 r=t?.attributes?.buttons_direction,n=t?.attributes?.buttons||[],a=[];for(const t of n){const i=t?.attributes||{},r=i?.button_text_localization_key||"",n=i?.button_text_color,o=i?.button_background_color,s=i?.animation,l=i?.animation_color,h=i?.flex?Number(i.flex):void 0,c=i?.actions||[],p=[];for(const t of c){const i=t?.attributes?.events||[];for(const t of i)if("Permission"===t?.layout){const e=t?.attributes?.permission;p.push({type:"Permission",permission:e})}else if("Navigate"===t?.layout){const i=t?.attributes?.next_page_key,r="string"==typeof i&&e.has(i),n=r?null:"string"==typeof i?i:null;p.push({type:"Navigate",navigate_to:n,...r?{targetIndex:e.get(i)}:{}}),r&&e.get(i)}}a.push({type:"OnboardButton",attributes:{labelKey:r,..."string"==typeof n?{button_text_color:n}:{},..."string"==typeof s?{animation:s}:{},..."string"==typeof l?{animation_color:l}:{},..."string"==typeof o?{button_background_color:o}:{},..."number"==typeof h?{flex:h}:{},...p.length?{events:p}:{}},children:void 0})}a.length>0&&i.push({type:"OnboardButtons",attributes:{...r?{buttons_direction:r}:{},..."number"==typeof o?{condition:"carousel-index",conditionVariable:o}:{}},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:n}}function extractTextStyleAttributesFromComponent(t){const e={},i=t?.attributes?.styles||[];if(!Array.isArray(i)||0===i.length)return e;const r=new Set(["left","center","right","justify"]),n=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 a=t?.attributes?.style||{},o=a?.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=a?.textAlign;"string"==typeof s&&r.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 h=a?.fontWeight;let c;"number"==typeof h&&Number.isFinite(h)?c=String(h):"string"==typeof h&&(c=h),c&&n.has(c)&&(e.fontWeight=c)}}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||{},r=i?.borderRadius;if("number"==typeof r&&Number.isFinite(r))e.borderRadius=r;else if("string"==typeof r){const t=Number.parseInt(r,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||[],r=i?.[0],n=r?.layout,a=r?.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(a?.inactive_dot_opacity),l=o(a?.expanding_dot_width),h="string"==typeof a?.dot_style?a.dot_style:void 0,c="string"==typeof a?.container_style?a.container_style:void 0,p="string"==typeof a?.active_dot_color?a.active_dot_color:void 0,u={};return n&&(u.dotType=n),void 0!==s&&(u.inactive_dot_opacity=s),void 0!==l&&(u.expanding_dot_width=l),h&&(u.dot_style=h),c&&(u.container_style=c),p&&(u.active_dot_color=p),{type:"OnboardDot",attributes:Object.keys(u).length?u: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||[],r=[];let n,a;for(const t of i)if("Text"===t?.layout){const e=t?.attributes?.text_localization_key||"",i=t?.attributes?.text_color||void 0;n||(n=e),a||"string"!=typeof i||(a=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,n=t?.attributes?.page;r.push({text_key:e,color:i,page:n})}}const o={gap:8};n&&(o.textLocalizationKey=n),a&&(o.textColor=a);const s=r[0],l=r[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,appConfig:{...defaultAppConfig,...vpnOnboard1.appConfig}},{...vpnOnboard2,appConfig:{...defaultAppConfig,...vpnOnboard2.appConfig}},{...vpnOnboard3,appConfig:{...defaultAppConfig,...vpnOnboard3.appConfig}},{...vpnOnboard4,appConfig:{...defaultAppConfig,...vpnOnboard4.appConfig}},{...vpnOnboard5,appConfig:{...defaultAppConfig,...vpnOnboard5.appConfig}},{...vpnOnboard6,appConfig:{...defaultAppConfig,...vpnOnboard6.appConfig}}];return t.forEach(t=>{t.data=novaToJson(t)}),[simple1,simple2,carouselSample,...t]}function getBasicSamples(){return[simple1,simple2,carouselSample]}function getOnboardSamples(){const t=[{...vpnOnboard1,appConfig:{...defaultAppConfig,...vpnOnboard1.appConfig}},{...vpnOnboard2,appConfig:{...defaultAppConfig,...vpnOnboard2.appConfig}},{...vpnOnboard3,appConfig:{...defaultAppConfig,...vpnOnboard3.appConfig}},{...vpnOnboard4,appConfig:{...defaultAppConfig,...vpnOnboard4.appConfig}},{...vpnOnboard5,appConfig:{...defaultAppConfig,...vpnOnboard5.appConfig}},{...vpnOnboard6,appConfig:{...defaultAppConfig,...vpnOnboard6.appConfig}}];return t.forEach(t=>{t.data=novaToJson(t)}),t}function DeviceMockFrame({children:t}){useLogRender("DeviceMockFrame");const{appConfig:e,device:i}=useRenderStore(t=>({appConfig:t.appConfig,device:t.device})),r="dark"===e.theme,[n,a,o,s]=i.insets??[0,0,0,0],l=n||("ios"===i.platform?20:24),h=(()=>{switch(i.navigationBarType){case"none":return 0;case"homeIndicator":return o||6;case"gesture":return o||24;case"threeButtons":return o||48;case"tabBar":return o||49;default:return o||0}})(),c=r?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.06)",p=r?"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:i.width,height:i.height,minWidth:i.width,maxWidth:i.width,minHeight:i.height,maxHeight:i.height,overflow:"hidden",position:"relative",padding:4,direction:e.isRtl?"rtl":"ltr",backgroundColor:"dark"===e.theme?e.screenStyle.dark.backgroundColor:e.screenStyle.light.backgroundColor,color:"dark"===e.theme?e.screenStyle.dark.color:e.screenStyle.light.color,display:"flex",flexDirection:"column",borderRadius:i.radius??0},children:[jsx("div",{className:"device-status-bar",style:{position:"absolute",top:0,left:0,right:0,height:l,backgroundColor:c,flex:"0 0 auto"}}),jsx("div",{className:"device-content",style:{flex:1,overflow:"hidden",position:"relative",paddingLeft:s,paddingRight:a},children:t}),jsx("div",{className:"device-navigation-bar",style:{height:h,backgroundColor:p,flex:"0 0 auto"}})]})})}function RenderPage({data:t}){useLogRender("RenderPage");const{device:e}=useRenderStore(t=>({device:t.device}));return e.width,e.height,jsx(DeviceMockFrame,{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("#"),r=i?e.slice(1):void 0,n=[],a=t=>{if(null!=t)if(Array.isArray(t))for(const e of t)a(e);else"string"!=typeof t&&isNodeData(t)&&((t=>i?t.key===r:t.type===e)(t)&&n.push(t),a(t.children))};return a(t),n}const devices=getDevices();function DeviceButton({device:t,selectedDevice:e,setSelectedDevice:i}){return jsxs("button",{className:"editor-device-button "+(e===t?"editor-device-button--selected":""),onClick:()=>i(t),children:[t.name," ",jsx("br",{}),t.width,"x",t.height]})}function EditorHeader({onSaveProject:t,current:e,editorData:i,setEditorData:r}){useLogRender("EditorHeader");const[n,a]=useState(!1),o=useRenderStore(t=>t.copiedNode),{device:s,setDevice:l}=useRenderStore(t=>({device:t.device,setDevice:t.setDevice}));function h(t,e,i){if(t===e)return i;if(null==t)return t;if("string"==typeof t)return t;if(Array.isArray(t)){let r=!1;const n=t.map(t=>{const n=h(t,e,i);return n!==t&&(r=!0),n});return r?n:t}const r=t;if("children"in r){const t=r.children,n=Array.isArray(t)?t.map(t=>h(t,e,i)):h(t,e,i);if(n!==t)return r.children=n,{...r,children:n}}return t}return jsxs("div",{className:"editor-header",role:"region","aria-label":"Editor utility header",children:[jsxs("div",{className:"editor-header__devices",children:[devices.slice(0,5).map(t=>jsx(DeviceButton,{selectedDevice:t,setSelectedDevice:l,device:t},t.name)),jsx("button",{className:"editor-device-button","aria-label":"More devices",onClick:()=>a(!0),children:"More devices"})]}),jsxs("div",{className:"editor-header__actions",children:[jsx("button",{className:"editor-button editor-save-button","aria-label":"Save project data",onClick:()=>t&&t(),children:"Save"}),jsx("button",{className:"editor-button editor-save-previewconfig-button","aria-label":"Save previewConfig",onClick:()=>useRenderStore.getState().forceRender(),children:"Force Render"}),jsx("button",{className:"editor-button","aria-label":"Copy node",onClick:()=>{e&©Node(e)},children:"Copy"}),o&&jsx("button",{className:"editor-button","aria-label":"Paste node",onClick:()=>{if(!e||!i||!r)return;if(!o)return;const t=JSON.parse(JSON.stringify(o)),n=h(i,e,t);useRenderStore.setState({copiedNode:null}),useRenderStore.getState().forceRender(),r(n)},children:"Paste"})]}),n&&jsxs("div",{className:"editor-modal",role:"dialog","aria-modal":"true","aria-labelledby":"device-selector-title",children:[jsx("div",{className:"editor-modal__overlay",onClick:()=>a(!1)}),jsxs("div",{className:"editor-modal__content",children:[jsxs("div",{className:"editor-modal__header",children:[jsx("h3",{id:"device-selector-title",children:"Select a device"}),jsx("button",{className:"editor-button","aria-label":"Close device selector",onClick:()=>a(!1),children:"Close"})]}),jsx("div",{className:"editor-device-grid",role:"list",children:devices.map(t=>jsx(DeviceButton,{selectedDevice:t,setSelectedDevice:t=>{l(t),a(!1)},device:t},t.name))})]})]})]})}function AttributesEditorPanel({current:t,attributes:e,onChange:i,setCurrent:r}){if(useLogRender("AttributesEditorPanel"),!t)return null;function n(t,e,i){if(t===e)return i;if(null==t)return t;if("string"==typeof t)return t;if(Array.isArray(t)){let r=!1;const a=t.map(t=>{const a=n(t,e,i);return a!==t&&(r=!0),a});return r?a:t}const r=t;if("children"in r){const t=r.children,a=Array.isArray(t)?t.map(t=>n(t,e,i)):n(t,e,i);if(a!==t)return r.children=a,{...r,children:a}}return t}const[a,o]=useState(t),[s,l]=useState(!1),h=useMemo(()=>{try{return JSON.stringify(t)===JSON.stringify(a)}catch{return t===a}},[t,a]);return useEffect(()=>{o(t),l(!1)},[t,e]),useEffect(()=>{l(!h)},[h]),jsxs("div",{style:{padding:12},children:[jsx("h2",{children:t.type??t?.toString()??"?"})," ",jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"16px 0"},children:[jsx("h3",{style:{marginTop:0,marginBottom:0,flex:"1 1 auto"},children:"Attributes"}),jsx("button",{disabled:!s,onClick:()=>{o(t),l(!1)},children:"Revert"}),jsx("button",{disabled:!s,onClick:()=>{const o=n(e,t,a);i(o),l(!1),r(a)},children:"Accept"})]}),jsx(AttributesEditor$1,{node:a,onChange:t=>{o(t),l(!0)}})]})}function Breadcrumb({items:t,separator:e="/",ariaLabel:i="Breadcrumb"}){return useLogRender("Breadcrumb"),jsx("nav",{className:"breadcrumb","aria-label":i,children:jsx("ol",{className:"breadcrumb__list",children:t.map((i,r)=>{const n=r===t.length-1;return jsxs("li",{className:"breadcrumb__item",children:[r>0&&jsx("span",{className:"breadcrumb__separator","aria-hidden":!0,children:e}),n||!i.to?jsx("span",{className:"breadcrumb__current","aria-current":"page",children:i.label}):jsx("p",{onClick:i.onClick,className:"breadcrumb__link",children:i.label})]},`${i.label}-${r}`)})})})}function BuilderButton({node:t,onClick:e}){if(isNodeNullOrUndefined(t))return jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(t))return jsx("div",{className:"builder__text",children:t});const i=t;let r="";return i.attributes?.condition&&(r=` (${i.attributes.condition} ${i.attributes.conditionVariable})`),jsxs("a",{onClick:e,className:"builder__button",children:[i.type," ",r]})}function BuilderComponent({node:t,onClick:e}){if(isNodeNullOrUndefined(t))return jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(t))return jsxs("div",{className:"builder__text",children:[t," (Please define a node)"]});if(isNodeArray(t))return jsx("div",{className:"builder__list",children:t.map((t,i)=>jsx(BuilderButton,{onClick:()=>{e(t)},node:t},i))});const i=t,r=i.children?isNodeArray(i.children)?i.children:[i.children]:null;return jsxs("div",{className:"builder__node",children:[jsx("p",{className:"builder__node-type",children:i.type}),jsx("div",{className:"builder__children",children:r&&r.map((t,i)=>jsx(BuilderButton,{onClick:()=>{e(t)},node:t},i))})]})}function Builder({data:t,setData:e,current:i,setCurrent:r}){useLogRender("Builder");const[n,a]=useState(["root"]),o=useMemo(()=>n.map((t,e)=>({label:t})),[n]);function s(t,e,i){if(t===e)return i;if(null==t)return t;if("string"==typeof t)return t;if(Array.isArray(t)){let r=!1;const n=t.map(t=>{const n=s(t,e,i);return n!==t&&(r=!0),n});return r?n:t}const r=t;if("children"in r){const t=r.children,n=Array.isArray(t)?t.map(t=>s(t,e,i)):s(t,e,i);if(n!==t)return r.children=n,{...r,children:n}}return t}return jsxs("div",{className:"builder",children:[jsx(Breadcrumb,{items:o}),jsx("div",{className:"builder__current",children:n[n.length-1]+" ( "+n.length+". level )"}),jsx(BuilderComponent,{onClick:t=>{r(t),a(e=>[...e,"string"==typeof t?t:t.type])},node:i}),!isNodeNullOrUndefined(i)&&!isNodeString(i)&&!isNodeArray(i)&&(()=>{const n=function(t){if(isNodeNullOrUndefined(t)||isNodeString(t)||isNodeArray(t))return[];const e=t.type;if("OnboardButtons"===e)return["OnboardButton"];const i=getPatternByType(e)?.pattern?.children;return i?"never"===i||"string"===i?[]:"node"===i||Array.isArray(i)&&i.includes("node")?[...allcomponentNames]:"string"==typeof i?[i]:[]:[]}(i);return 0===n.length?null:jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8,paddingTop:12},children:n.map(n=>jsxs("button",{className:"editor-button",onClick:()=>{const a=i,o=function(t){const e=getPatternByType(t)?.pattern,i=getDefaultsForType(t)??{};let r="";const n=e?.children;return r="never"===n||"string"===n?"":"node"===n||Array.isArray(n)&&n.includes("node")||"string"==typeof n?[]:"",{type:t,children:r,attributes:{...i}}}(n);let l;l=Array.isArray(a.children)?[...a.children,o]:null===a.children||void 0===a.children||"string"==typeof a.children?[o]:[a.children,o];const h={...a,children:l},c=s(t,i,h);e(c),r(h)},children:["Add ",n]},n))})})()]})}function BuilderTab({data:t,setData:e,current:i,setCurrent:r}){return useLogRender("BuilderTab"),jsx("div",{role:"tabpanel",className:"editor-panel-builder editor-panel editor-panel--active","aria-hidden":!1,children:jsx(Builder,{data:t,setData:e,current:i,setCurrent:r})})}const r$1=(t,e,i,r,n)=>{if(!r)throw new Error(null!=n?n:`Invalid property path: ${e}\nCouldn't access "${i}" in ${JSON.stringify(t)}`)},e$1=t=>"object"==typeof t&&null!==t&&!Array.isArray(t),t$1=t=>Array.isArray(t),n=(t,e)=>t.filter((t,i)=>i!==e),o=(t,e,r,a={})=>{const{remove:o=!1,createNew:s=!0,noError:l=!1}=a,h=t,c="string"==typeof(p=e)?p:"number"==typeof p?String(p):p.reduce((t,e)=>"number"==typeof e?`${t}[${e}]`:""===t?e:`${t}.${e}`,"");var p;const u=Object.assign(Object.assign({},a),{remove:o,createNew:s,noError:l,fullData:h,fullPath:c}),d=Array.isArray(e)?e:(t=>Array.isArray(t)?t:t.split(/(\.|\[\d+\])/).filter(t=>"."!==t&&""!==t).map(t=>{const e=/\[(\d+)\]/.exec(t);return e?Number(e[1]):t}).flat())(e).filter(t=>""!==t);return t$1(t)&&o&&1===d.length?n(t,d[0]):i(t,d,r,u)},i=(t,e,r,o)=>{const l=e$1(t)?Object.assign({},t):null,h=t$1(t)?[...t]:null;if(0===e.length)return t;if(!l&&!h)throw new Error("Can't assign property -- invalid input object");const{createNew:c,remove:p,noError:u,fullData:d,fullPath:f}=o,m=e[0];if(h&&"string"==typeof m)return h.map(t=>i(t,e,r,o));if(1===e.length){if(l&&"string"==typeof m){const t=a(l,m,r,o);return null!=t?t:l}return h&&"number"==typeof m?(s(h,m,r,o),h):(r$1(d,f,m,u),t)}const y=l||h||[];if(p&&2===e.length&&"number"==typeof e[1]){const t=y[m],i=e[1];return t$1(t)?y[m]=n(t,i):r$1(d,f,m,u,"Trying to remove an indexed item from an object that is not an array"),y}const g=e.slice(1);if(m in t){if(b=y[m],!t$1(b)&&!e$1(b)){if(!c)return r$1(d,f,m,u),y;y[m]={}}return y[m]=i(y[m],g,r,o),y}var b;if(c){const t="number"==typeof g[0]?[]:{};if(l)return y[m]=t,y[m]=i(y[m],g,r,o),y;if(h&&Array.isArray(y)){y.push(t);const e=y.length-1;return y[e]=i(y[e],g,r,o),y}}return r$1(d,f,m,u),y},a=(t,e,i,r)=>{const{remove:n,createNew:a,noError:o,insertAfter:s,insertBefore:l,fullData:h,fullPath:c}=r;if(void 0!==l||void 0!==s){const r=Object.entries(t);let n=1/0;return n="number"==typeof l?l:"number"==typeof s?s:r.findIndex(([t,e])=>t===(null!=l?l:s)),s&&n++,r.splice(n,0,[e,i]),Object.fromEntries(r)}const p=e in t;n?p?delete t[e]:r$1(h,c,e,o):a||p?t[e]=i:r$1(h,c,e,o)},s=(t,e,i,r)=>{const{noError:n,fullData:a,fullPath:o,createNew:s,insert:l}=r;l&&t.splice(e,0,i),e in t?t[e]=i:s?t.push(i):r$1(a,o,e,n)},r=(i,n,a)=>{const o=Array.isArray(n)?n:t(n);if(0===o.length)return i;const s=o[0];if(Array.isArray(i)&&"number"!=typeof s)return i.map(t=>r(t,o));if("object"!=typeof i||null===i||!(s in i))return e(i,s);const l=i[s];return 1===o.length?l:r(l,o.slice(1))},t=t=>t.split(/(\.|\[\d+\])/).filter(t=>"."!==t&&""!==t).map(t=>{const e=/\[(\d+)\]/.exec(t);return e?Number(e[1]):t}).flat(),e=(t,e,i)=>{throw new Error(`Unable to extract object property\nLooking for property: ${e}\nIn object: ${JSON.stringify(t)}`)};function p(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(i[r[n]]=t[r[n]])}return i}function g(t,e,i,r){return new(i||(i=Promise))(function(e,n){function a(t){try{s(r.next(t))}catch(t){n(t)}}function o(t){try{s(r.throw(t))}catch(t){n(t)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i(function(t){t(r)})).then(a,o)}s((r=r.apply(t,[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const m=({className:t,name:e,value:i,setValue:r,handleKeyPress:n,styles:a,textAreaRef:o})=>{if("string"!=typeof i)return null;const s="\n"===i.slice(-1)?i+".":i;return jsxs("div",{style:{display:"grid"},children:[jsx("textarea",{id:`${e}_textarea`,ref:o,style:Object.assign({height:"auto",gridArea:"1 / 1 / 2 / 2",overflowY:"auto",whiteSpace:"pre-wrap"},a),rows:1,className:t,name:`${e}_textarea`,value:i,onChange:t=>r(t.target.value),autoFocus:!0,onFocus:t=>{i.length<40&&t.target.select()},onKeyDown:n}),jsx("span",{className:t,style:Object.assign({visibility:"hidden",height:"auto",gridArea:"1 / 1 / 2 / 2",color:"red",opacity:.9,whiteSpace:"pre-wrap",overflowY:"auto",border:"1px solid transparent"},a),children:s})]})},h=t=>null!==t&&"object"==typeof t,y=(t,e,i,r="")=>{if(!i&&!r)return!0;switch(t){case"collection":if(i){if(i(e,r))return!0;if(!f(r,e,i))return!1}if(!i&&r&&!f(r,e))return!1;break;case"value":if(i&&!i(e,r))return!1;if(!i&&r&&!b(e,r))return!1}return!0},f=(t="",e,i=b)=>{const r=e.value;return Object.entries(r).some(([n,a])=>{const o=[...e.path,n],s=Object.assign(Object.assign({},e),{key:n,path:o,level:e.level+1,value:a,size:o.length,parentData:r});return h(a)?f(t,s,i):i(s,t)})},b=(t,e="")=>{const{value:i}=t;if(null===i&&"null".includes(e.toLowerCase()))return!0;switch(typeof i){case"string":return i.toLowerCase().includes(e.toLowerCase());case"number":return!!String(i).includes(e);case"boolean":return i?"true".includes(e.toLowerCase())||"1"===e:"false".includes(e.toLowerCase())||"0"===e;default:return!1}},v=({key:t,path:e},i="")=>!!b({value:t},i)||!!e.some(t=>b({value:t},i)),j=(t,e)=>(null!=e?e:"")+t.map(t=>""===t?String.fromCharCode(0):t).join("."),E=t=>t.shiftKey?"Shift":t.metaKey?"Meta":t.ctrlKey?"Control":t.altKey?"Alt":void 0,w=(t,e,i)=>{const r=t.key,n=E(t);if(Array.isArray(e))return!!n&&e.includes(n);const{key:a,modifier:o}=e;return("stringLineBreak"!==i||"Enter"!==r||"Shift"!==n||"Enter"!==a||!(null==o?void 0:o.includes("Shift")))&&r===a&&(o===n||Array.isArray(o)&&o.includes(n))},D={key:"Enter"},C={confirm:D,cancel:{key:"Escape"},objectConfirm:Object.assign(Object.assign({},D),{modifier:["Meta","Shift","Control"]}),objectLineBreak:D,stringConfirm:D,stringLineBreak:Object.assign(Object.assign({},D),{modifier:["Shift"]}),numberConfirm:D,numberUp:{key:"ArrowUp"},numberDown:{key:"ArrowDown"},tabForward:{key:"Tab"},tabBack:{key:"Tab",modifier:"Shift"},booleanConfirm:D,booleanToggle:{key:" "},clipboardModifier:["Meta","Control"],collapseModifier:["Alt"]},O=(t,e,i="next",n)=>{const a=e.slice(0,e.length-1),o=e.slice(-1)[0];if(void 0===o)return null;const s=r(t,a),l=S(s);Array.isArray(s)||n(l,({key:t,value:e})=>[t,e]);const c=l.findIndex(t=>t.key===o),p=l[c+("next"===i?1:-1)];return p?h(p.value)?0===Object.keys(p.value).length?O(t,[...a,p.key],i,n):k(t,[...a,p.key],i,n):[...a,p.key]:0===a.length?null:O(t,a,i,n)},k=(t,e,i="next",n)=>{const a=r(t,e);if(!h(a))return e;const o=Array.isArray(a)?a.map((t,e)=>e):Object.keys(a);n(o,t=>[t,a]);const s="next"===i?o[0]:o[o.length-1];return k(t,[...e,s],i,n)},S=t=>Array.isArray(t)?t.map((t,e)=>({index:e,value:t,key:e})):Object.entries(t).map(([t,e],i)=>({key:t,value:e,index:i})),N=(t,e)=>{var i,r,n,a;const o=t.current,s=null!==(i=null==o?void 0:o.selectionStart)&&void 0!==i?i:1/0,l=null!==(r=null==o?void 0:o.selectionEnd)&&void 0!==r?r:1/0,h=(null===(n=null==o?void 0:o.textContent)||void 0===n?void 0:n.slice(0,s))+e+(null===(a=null==o?void 0:o.textContent)||void 0===a?void 0:a.slice(l));return o.value=h,null==o||o.setSelectionRange(s+1,s+1),h},T=t=>{if(t!==x){if(Array.isArray(t))return t.map(t=>T(t));if(t&&"object"==typeof t)for(const e in t)t[e]=T(t[e]);return t}},x="__undefined__",A={displayName:"Default",fragments:{edit:"rgb(42, 161, 152)"},styles:{container:{backgroundColor:"#f6f6f6",fontFamily:"monospace"},collection:{},collectionInner:{},collectionElement:{},dropZone:{},property:"#292929",bracket:{color:"rgb(0, 43, 54)",fontWeight:"bold"},itemCount:{color:"rgba(0, 0, 0, 0.3)",fontStyle:"italic"},string:"rgb(203, 75, 22)",number:"rgb(38, 139, 210)",boolean:"green",null:{color:"rgb(220, 50, 47)",fontVariant:"small-caps",fontWeight:"bold"},input:["#292929"],inputHighlight:"#b3d8ff",error:{fontSize:"0.8em",color:"red",fontWeight:"bold"},iconCollection:"rgb(0, 43, 54)",iconEdit:"edit",iconDelete:"rgb(203, 75, 22)",iconAdd:"edit",iconCopy:"rgb(38, 139, 210)",iconOk:"green",iconCancel:"rgb(203, 75, 22)"}},P=createContext({getStyles:()=>({}),icons:{}}),R=({theme:t=A,icons:e={},docRoot:i,children:r})=>{const n=I(t,i);return jsx(P.Provider,{value:{getStyles:(t,e)=>"function"==typeof n[t]?n[t](e):n[t],icons:e},children:r})},K=()=>useContext(P),I=(t,e)=>{var i,r,n,a;const o={},s=(Array.isArray(t)?t:[t]).map(t=>_(t)?V({fragments:{},styles:t},o):V(t,o)),l=V(A,{});Object.keys(l).forEach(t=>{const e=t;s.forEach(t=>{t[e]&&(l[e]=Object.assign(Object.assign({},l[e]),t[e]))})});const h=Object.assign({},l);return Object.entries(o).forEach(([t,e])=>{const i=t;h[i]=t=>{const r=e(t)||{};return Object.assign(Object.assign({},l[i]),r)}}),"function"!=typeof(null==h?void 0:h.inputHighlight)&&(null===(i=null==h?void 0:h.inputHighlight)||void 0===i?void 0:i.backgroundColor)&&e.style.setProperty("--jer-highlight-color",null===(r=null==h?void 0:h.inputHighlight)||void 0===r?void 0:r.backgroundColor),"function"!=typeof(null==h?void 0:h.iconCopy)&&(null===(n=null==h?void 0:h.iconCopy)||void 0===n?void 0:n.color)&&e.style.setProperty("--jer-icon-copy-color",null===(a=null==h?void 0:h.iconCopy)||void 0===a?void 0:a.color),h},V=(t,e)=>{const{fragments:i,styles:r}=t,n={};return Object.entries(r).forEach(([t,r])=>{const a=(Array.isArray(r)?r:[r]).reduce((r,n)=>{var a,o;if("function"==typeof n)return e[t]=n,Object.assign({},r);if("string"==typeof n){const e=null!==(a=null==i?void 0:i[n])&&void 0!==a?a:n;return"string"==typeof e?Object.assign(Object.assign({},r),{[null!==(o=F[t])&&void 0!==o?o:"color"]:e}):Object.assign(Object.assign({},r),e)}return Object.assign(Object.assign({},r),n)},{});n[t]=a}),n},_=t=>!("styles"in t),F={container:"backgroundColor",collection:"backgroundColor",collectionInner:"backgroundColor",collectionElement:"backgroundColor",dropZone:"borderColor",inputHighlight:"backgroundColor"},L=createContext(null),z=({children:t,onEditEvent:e,onCollapse:i})=>{const[r,n]=useState(null),[a,o]=useState(null),[s,l]=useState(null),[h,c]=useState({path:null,pathString:null}),p=useRef(null),u=useRef("next"),d=useRef(null);return jsx(L.Provider,{value:{collapseState:r,setCollapseState:t=>{n(t),i&&null!==t&&(Array.isArray(t)?t.forEach(t=>i(t)):i(t)),null!==t&&setTimeout(()=>n(null),2e3)},getMatchingCollapseState:t=>{if(Array.isArray(r)){for(const e of r)if(B(t,e))return e;return null}return B(t,r)?r:null},currentlyEditingElement:a,setCurrentlyEditingElement:(t,i)=>{const r="string"==typeof t||null===t?t:j(t,"key"===i?"key_":void 0);null!==a&&null!==r&&null!==p.current&&p.current(),o(r),e&&(Array.isArray(t)||null===t)&&e(t,"key"===i),p.current="function"==typeof i?i:null},areChildrenBeingEdited:t=>null!==a&&a.includes(t),previouslyEditedElement:d.current,setPreviouslyEditedElement:t=>{d.current=t},tabDirection:u.current,setTabDirection:t=>{u.current=t},previousValue:s,setPreviousValue:l,dragSource:h,setDragSource:c},children:t})},M=()=>{const t=useContext(L);if(!t)throw new Error("Missing Context Provider");return t},B=(t,e)=>{if(null===e)return!1;if(!e.includeChildren)return e.path.every((e,i)=>t[i]===e)&&e.path.length===t.length;for(const[i,r]of e.path.entries())if(r!==t[i])return!1;return!0},W="**INVALID_FUNCTION**",G=({nodeData:t,showStringQuotes:e=!0,stringTruncate:i=200,pathString:r,canEdit:n,setIsEditing:a,styles:o,translate:s,value:l,TextWrapper:h=({children:t})=>t})=>{const c=null!=l?l:t.value,[p,u]=useState(!1),d=e?'"':"",f=c.length>i,m=()=>{n?a(!0):u(!p)};return jsxs("div",{id:`${r}_display`,onDoubleClick:m,onClick:t=>{(t.getModifierState("Control")||t.getModifierState("Meta"))&&m()},className:"jer-value-string",style:o,children:[d,f?jsxs(Fragment,p?{children:[jsx(h,{children:jsxs("span",{children:[c,d]})}),jsxs("span",{className:"jer-string-expansion jer-show-less",onClick:()=>u(!1),children:[" ",s("SHOW_LESS",t)]})]}:{children:[jsxs(h,{children:[jsx("span",{children:c.slice(0,i-2).trimEnd()})," "]}),jsx("span",{className:"jer-string-expansion jer-ellipsis",onClick:()=>u(!0),children:"..."}),d]}):jsx(h,{children:`${c}${d}`})]})},Y=({styles:t,pathString:e,value:i,setValue:r,handleEdit:n,handleKeyboard:a,keyboardCommon:o})=>{const s=useRef(null);return jsx(m,{className:"jer-input-text",textAreaRef:s,name:e,value:i,setValue:r,handleKeyPress:t=>{a(t,Object.assign({stringConfirm:n,stringLineBreak:()=>{const t=N(s,"\n");r(t)}},o))},styles:t})},H=t=>{var{isEditing:e,path:i,enumType:r}=t,n=p(t,["isEditing","path","enumType"]);const{getStyles:a}=K(),o=j(i),{value:s,setValue:l,nodeData:h,handleEdit:c,handleKeyboard:u,keyboardCommon:d}=n;return e&&r?jsxs("div",{className:"jer-select jer-select-enums",children:[jsx("select",{name:`${o}-value-select`,className:"jer-select-inner",onChange:t=>l(t.target.value),value:s,autoFocus:!0,onKeyDown:t=>{u(t,Object.assign({stringConfirm:c},d))},children:r.values.map(t=>jsx("option",{value:t,children:t},t))}),jsx("span",{className:"focus"})]}):e?jsx(Y,Object.assign({styles:a("input",h),pathString:o},n,{setValue:n.setValue})):jsx(G,Object.assign({pathString:o,styles:a("string",h)},n))},U=({value:t,setValue:e,isEditing:i,path:r,setIsEditing:n,handleEdit:a,nodeData:o,handleKeyboard:s,keyboardCommon:l})=>{const{getStyles:h}=K();return i?jsx("input",{className:"jer-input-number",type:"text",name:j(r),value:t,onChange:t=>e(t.target.value.replace(/[^0-9.-]/g,"")),autoFocus:!0,onFocus:t=>setTimeout(()=>t.target.select(),10),onKeyDown:i=>s(i,Object.assign({numberConfirm:a,numberUp:()=>e(Number(t)+1),numberDown:()=>e(Number(t)-1)},l)),style:Object.assign({width:String(t).length/1.5+2+"em"},h("input",o))}):jsx("span",{onDoubleClick:()=>n(!0),className:"jer-value-number",style:h("number",o),children:t})},$=({value:t,setValue:e,isEditing:i,path:r,setIsEditing:n,handleEdit:a,nodeData:o,handleKeyboard:s,keyboardCommon:l})=>{const{getStyles:h}=K();return"boolean"!=typeof t?null:i?jsx("input",{className:"jer-input-boolean",type:"checkbox",name:j(r),checked:t,onChange:()=>e(!t),onKeyDown:i=>{" "===i.key&&i.preventDefault(),s(i,Object.assign({booleanConfirm:a,booleanToggle:()=>e(!t)},l))},autoFocus:!0}):jsx("span",{onDoubleClick:()=>n(!0),className:"jer-value-boolean",style:h("boolean",o),children:String(t)})},Z=(t,e)=>{const i=useRef(void 0),r=useRef(e);useEffect(()=>{r.current=e},[e]);const n=t=>{r.current(t)};useEffect(()=>{if(window.clearTimeout(i.current),t)return i.current=window.setTimeout(()=>{window.addEventListener("keydown",n)},100),()=>{window.clearTimeout(i.current),window.removeEventListener("keydown",n)}},[t])},X=({value:t,isEditing:e,setIsEditing:i,handleEdit:r,nodeData:n,handleKeyboard:a,keyboardCommon:o})=>{const{getStyles:s}=K();return Z(e,t=>a(t,Object.assign({confirm:r},o))),jsx("div",{onDoubleClick:()=>i(!0),className:"jer-value-null",style:s("null",n),children:String(t)})},J=({value:t})=>{let e="Error!";switch(typeof t){case"string":t===W&&(e="Function");break;case"undefined":e="Undefined";break;case"symbol":e="Symbol"}return jsx("span",{className:"jer-value-invalid",children:e})},Q=({size:t,style:e,className:i})=>jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:i,style:e,children:[jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4z"}),jsx("path",{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"})]}),q=({size:t,style:e,className:i})=>jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:i,style:e,transform:"translate(0, 0.5)",children:[jsx("path",{d:"M7 17.013l4.413-.015 9.632-9.54c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.756-.756-2.075-.752-2.825-.003L7 12.583v4.43zM18.045 4.458l1.589 1.583-1.597 1.582-1.586-1.585 1.594-1.58zM9 13.417l6.03-5.973 1.586 1.586-6.029 5.971L9 15.006v-1.589z"}),jsx("path",{d:"M5 21h14c1.103 0 2-.897 2-2v-8.668l-2 2V19H8.158c-.026 0-.053.01-.079.01-.033 0-.066-.009-.1-.01H5V5h6.847l2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2z"})]}),ee=({size:t,style:e,className:i})=>jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:i,style:e,children:jsx("path",{d:"M6 19a2 2 0 002 2h8a2 2 0 002-2V7H6v12m2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12M15.5 4l-1-1h-5l-1 1H5v2h14V4h-3.5z"})}),te=({size:t,style:e,className:i})=>jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:t,height:t,className:i,style:e,children:[jsx("path",{d:"M9 2 H15 A1 1 0 0 1 16 3 V5 A1 1 0 0 1 15 6 H9 A1 1 0 0 1 8 5 V3 A1 1 0 0 1 9 2 z"}),jsx("path",{d:"M8 4H6a2 2 0 00-2 2v14a2 2 0 002 2h12a2 2 0 002-2v-2M16 4h2a2 2 0 012 2v4M21 14H11"}),jsx("path",{d:"M15 10l-4 4 4 4"})]}),ne=({size:t,style:e,className:i})=>jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:t,height:t,className:i,style:e,children:[jsx("path",{d:"M22 11.08V12a10 10 0 11-5.93-9.14"}),jsx("path",{d:"M22 4L12 14.01l-3-3"})]}),re=({size:t,style:e,className:i})=>jsx("svg",{baseProfile:"tiny",viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:i,style:e,children:jsx("path",{d:"M12 4c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8zm-5 8c0-.832.224-1.604.584-2.295l6.711 6.711A4.943 4.943 0 0112 17c-2.757 0-5-2.243-5-5zm9.416 2.295L9.705 7.584A4.943 4.943 0 0112 7c2.757 0 5 2.243 5 5 0 .832-.224 1.604-.584 2.295z"})}),oe=({size:t,style:e,className:i})=>jsx("svg",{viewBox:"0 0 512 512",fill:"currentColor",width:t,height:t,className:i,style:e,children:jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),ie=({name:t,nodeData:e})=>{var i,r,n,a,o,s,l;const{getStyles:h,icons:c}=K(),p={size:"1.4em",className:"jer-icon"};switch(t){case"add":return null!==(i=null==c?void 0:c.add)&&void 0!==i?i:jsx(Q,Object.assign({},p,{style:h("iconAdd",e)}));case"edit":return null!==(r=null==c?void 0:c.edit)&&void 0!==r?r:jsx(q,Object.assign({},p,{style:h("iconEdit",e)}));case"delete":return null!==(n=null==c?void 0:c.delete)&&void 0!==n?n:jsx(ee,Object.assign({},p,{style:h("iconDelete",e),size:"1.45em"}));case"copy":return null!==(a=null==c?void 0:c.copy)&&void 0!==a?a:jsx(te,Object.assign({},p,{style:h("iconCopy",e),size:"1.2em"}));case"ok":return null!==(o=null==c?void 0:c.ok)&&void 0!==o?o:jsx(ne,Object.assign({},p,{style:Object.assign({fontSize:"90%"},h("iconOk",e))}));case"cancel":return null!==(s=null==c?void 0:c.cancel)&&void 0!==s?s:jsx(re,Object.assign({},p,{style:Object.assign({fontSize:"130%"},h("iconCancel",e))}));case"chevron":return null!==(l=null==c?void 0:c.chevron)&&void 0!==l?l:jsx(oe,{size:"1em",style:h("iconCollection",e)});default:return jsx(Fragment,{})}},ae=({startEdit:t,handleDelete:e,handleAdd:i,enableClipboard:n,type:a,customButtons:o,nodeData:s,translate:l,keyboardControls:h,handleKeyboard:c,editConfirmRef:p,getNewKeyOptions:u,jsonStringify:d,onEditEvent:f,showIconTooltips:m})=>{const{getStyles:y}=K(),g=l("KEY_NEW",s),[b,v]=useState(g),[_,x]=useState(!1),{key:k,path:S,value:w}=s,C=Array.isArray(_),P=t=>{var e;if(f&&f(t?[...S,null]:null,t),!t)return void x(!1);const i=Object.keys(r(s.fullData,S)),n=u?null===(e=u(s))||void 0===e?void 0:e.filter(t=>!i.includes(t)):null;n&&v(""),x(null==n||n)};return jsxs("div",{className:"jer-edit-buttons",style:{opacity:_?1:void 0},onClick:t=>t.stopPropagation(),children:[n&&jsx("div",{onClick:t=>{var e;t.stopPropagation();let i,r,a="value",o="",s=null;if(n){const l=E(t);if(l&&h.clipboardModifier.includes(l)?(i=se(S),o=i,a="path"):(i=w,o="object"==typeof i?d(w):String(i)),!navigator.clipboard)return void("function"==typeof n&&n({success:!1,value:i,stringValue:o,path:S,key:k,type:a,errorMessage:"Can't access clipboard API"}));null===(e=navigator.clipboard)||void 0===e||e.writeText(o).then(()=>r=!0).catch(t=>{r=!1,s=t.message}).finally(()=>{"function"==typeof n&&n({success:r,errorMessage:s,value:i,stringValue:o,path:S,key:k,type:a})})}},className:"jer-copy-pulse",title:m?l("TOOLTIP_COPY",s):"",children:jsx(ie,{name:"copy",nodeData:s})}),t&&jsx("div",{onClick:t,title:m?l("TOOLTIP_EDIT",s):"",children:jsx(ie,{name:"edit",nodeData:s})}),e&&jsx("div",{onClick:e,title:m?l("TOOLTIP_DELETE",s):"",children:jsx(ie,{name:"delete",nodeData:s})}),i&&jsx("div",{onClick:()=>{"object"===a?P(!0):i("")},title:m?l("TOOLTIP_ADD",s):"",children:jsx(ie,{name:"add",nodeData:s})}),null==o?void 0:o.map(({Element:t,onClick:e},i)=>jsx("div",{onClick:t=>e&&e(s,t),children:jsx(t,{nodeData:s})},i)),_&&i&&"object"===a&&jsxs(Fragment,{children:[C?jsxs("div",{className:"jer-select jer-select-keys",children:[jsxs("select",{name:"new-key-select",className:"jer-select-inner",onChange:t=>{i(t.target.value),P(!1)},defaultValue:"",autoFocus:!0,onKeyDown:t=>{c(t,{cancel:()=>P(!1)})},children:[jsx("option",{value:"",disabled:!0,children:_.length>0?l("KEY_SELECT",s):l("NO_KEY_OPTIONS",s)}),_.map(t=>jsx("option",{value:t,children:t},t))]}),jsx("span",{className:"focus"})]}):jsx("input",{className:"jer-input-new-key",type:"text",name:"new-object-key",value:b,onChange:t=>v(t.target.value),autoFocus:!0,onFocus:t=>t.target.select(),onKeyDown:t=>{c(t,{stringConfirm:()=>{i&&(P(!1),i(b),v(g))},cancel:()=>{P(!1),v(g)}})},style:y("input",s)}),jsx(le,{onOk:()=>{C&&!b||(P(!1),i(b))},onCancel:()=>{P(!1)},nodeData:s,editConfirmRef:p,hideOk:C})]})]})},le=({onOk:t,onCancel:e,nodeData:i,editConfirmRef:r,hideOk:n=!1})=>jsxs("div",{className:"jer-confirm-buttons",children:[!n&&jsx("div",{onClick:t,ref:r,children:jsx(ie,{name:"ok",nodeData:i})}),jsx("div",{onClick:e,children:jsx(ie,{name:"cancel",nodeData:i})})]}),se=t=>t.reduce((t,e)=>"number"==typeof e?`${t}[${e}]`:""===t?e:`${t}.${e}`,""),ce=["string","number","boolean","null","object","array"],de=({props:t,collapsed:e})=>{const{data:i,nodeData:r,parentData:n,onEdit:a,onError:o,showErrorMessages:s,restrictEditFilter:l,restrictDeleteFilter:h,restrictAddFilter:c,restrictDragFilter:p,translate:u,errorMessageTimeout:d}=t,{currentlyEditingElement:f,setCurrentlyEditingElement:m}=M(),[y,g]=useState(null),b=Object.assign(Object.assign({},r),{collapsed:e}),{path:v,key:_,size:x}=b,k=j(v),S=!l(b),w=!h(b),E=!c(b),C=!p(b)&&w&&null===f,P=t=>{s&&(g(t),setTimeout(()=>g(null),d)),console.warn("Error",t)},T=useCallback((t,e)=>{P(t.message),o&&o({currentData:b.fullData,errorValue:e,currentValue:i,name:_,path:v,error:t})},[o,s]),A=f===k,D=f===`key_${k}`,F="number"==typeof v.slice(-1)[0],I={isEditing:A,isEditingKey:D,isArray:F,canEditKey:null!==n&&S&&E&&w&&!F},R=""===_&&v.length>0?u("EMPTY_STRING",b):null;return{pathString:k,nodeData:b,path:v,name:_,size:x,canEdit:S,canDelete:w,canAdd:E,canDrag:C,error:y,showError:P,onError:T,setError:g,handleEditKey:t=>{if(m(null),_===t)return;if(!n)return;const e=v.slice(0,-1);if(Object.keys(n).includes(t))return void T({code:"KEY_EXISTS",message:u("ERROR_KEY_EXISTS",b)},t);const i=Object.fromEntries(Object.entries(n).map(([e,i])=>e===_?[t,i]:[e,i]));a(i,e).then(e=>{e&&T({code:"UPDATE_ERROR",message:e},t)})},derivedValues:I,emptyStringKey:R}},ue=({canDrag:t,canDragOnto:e,path:i,nodeData:r,onMove:n,onError:a,translate:o})=>{const{getStyles:s}=K(),{dragSource:l,setDragSource:h}=M(),[c,p]=useState(!1),u=j(i),d=useMemo(()=>t?{onDragStart:t=>{t.stopPropagation(),h({path:i,pathString:u})},onDragEnd:t=>{t.stopPropagation(),h({path:null,pathString:null})}}:{},[t,u]),f=useMemo(()=>t=>e?{onDragOver:t=>{t.stopPropagation(),t.preventDefault()},onDrop:e=>{e.stopPropagation(),y(t),h({path:null,pathString:null}),p(!1)},onDragEnter:e=>{var i;e.stopPropagation(),u.startsWith(null!==(i=l.pathString)&&void 0!==i?i:"")||p(t)},onDragExit:t=>{t.stopPropagation(),p(!1)}}:{},[l,e,u]),m=useMemo(()=>e&&null!==l.pathString?jsx("div",Object.assign({className:"jer-drop-target-bottom",style:{height:"50%",position:"absolute",width:"100%",top:"50%",zIndex:i.length}},f("below"))):null,[l,e,i.length]),y=t=>{var e,s;const h=null===(e=l.path)||void 0===e?void 0:e.slice(-1)[0],c=null===(s=l.path)||void 0===s?void 0:s.slice(0,-1).join("."),p=i.slice(0,-1).join(""),{parentData:u}=r;"string"==typeof h&&u&&!Array.isArray(u)&&Object.keys(u).includes(h)&&h in u&&c!==p?a({code:"KEY_EXISTS",message:o("ERROR_KEY_EXISTS",r)},h):n(l.path,i,t).then(t=>{t&&a({code:"UPDATE_ERROR",message:t},r.value)})};return{dragSourceProps:d,getDropTargetProps:f,BottomDropTarget:m,DropTargetPadding:({position:t,nodeData:e})=>c===t?jsx("div",{className:"jer-drag-n-drop-padding",style:s("dropZone",e)}):null,handleDrop:y}},pe=(t,e,i,r)=>{var n,a,o;if(!e.current)return 0;const s=parseInt(null!==(n=getComputedStyle(i.current).getPropertyValue("line-height"))&&void 0!==n?n:"16px"),l=(null!==(o=null===(a=e.current)||void 0===a?void 0:a.offsetWidth)&&void 0!==o?o:0)/(.5*s),h=r(t).replace(/\\n/g,"\n").split("\n").map(t=>Math.ceil(t.length/l)).reduce((t,e)=>t+e,0)*s;return Math.min(h+30,window.innerHeight-50)},ge=({isEditingKey:t,canEditKey:e,pathString:i,path:r,name:n,arrayIndexFromOne:a,handleKeyboard:o,handleEditKey:s,handleCancel:l,handleClick:h,keyValueArray:c,styles:p,getNextOrPrevious:u,emptyStringKey:d})=>{const{setCurrentlyEditingElement:f}=M(),m="number"==typeof n?String(n+(a?1:0)):n;return t?jsx("input",{className:"jer-input-text jer-key-edit",type:"text",name:i,defaultValue:m,autoFocus:!0,onFocus:t=>t.target.select(),onKeyDown:t=>o(t,{stringConfirm:()=>s(t.target.value),cancel:l,tabForward:()=>{if(s(t.target.value),c){const t=null==c?void 0:c[0][0];f(t?[...r,t]:u("next"))}else f(r)},tabBack:()=>{s(t.target.value),f(u("prev"))}}),style:{width:m.length/1.5+.5+"em"}}):jsxs("span",{className:"jer-key-text",style:Object.assign(Object.assign({},p),{minWidth:`${Math.min(m.length+1,5)}ch`,flexShrink:m.length>10?1:0}),onDoubleClick:()=>e&&f(r,"key"),onClick:h,children:[d?jsx("span",{className:"jer-empty-string",children:d}):m,""!==m||d?jsx("span",{className:"jer-key-colon",children:":"}):null]})},me=t=>{const{data:e,parentData:i,onEdit:r,onDelete:n,onChange:a,onMove:o,enableClipboard:s,canDragOnto:l,restrictTypeSelection:h,searchFilter:c,searchText:p,showLabel:u,stringTruncate:d,showStringQuotes:f,arrayIndexFromOne:m,indent:g,translate:b,customNodeDefinitions:v,customNodeData:_,handleKeyboard:x,keyboardControls:k,sort:S,editConfirmRef:w,jsonStringify:E,showIconTooltips:C}=t,{getStyles:P}=K(),{setCurrentlyEditingElement:T,setCollapseState:A,previouslyEditedElement:D,setPreviouslyEditedElement:F,tabDirection:I,setTabDirection:j,previousValue:R,setPreviousValue:B}=M(),[L,N]=useState("function"==typeof e?W:e),{pathString:V,nodeData:z,path:G,name:H,canEdit:q,canDelete:$,canDrag:X,error:J,onError:Y,handleEditKey:U,emptyStringKey:Z,derivedValues:Q}=de({props:t}),{dragSourceProps:tt,getDropTargetProps:et,BottomDropTarget:it,DropTargetPadding:rt}=ue({canDrag:X,canDragOnto:l,path:G,nodeData:z,onMove:o,onError:Y,translate:b}),[nt,at]=useState(he(e,_)),ot=useCallback(t=>{if(!a)return void N(t);const e=a({currentData:z.fullData,newValue:t,currentValue:L,name:H,path:G});N(e)},[a]);useEffect(()=>{N("function"==typeof e?W:e),at(he(e,_))},[e,J]);const{CustomNode:st,customNodeProps:lt,hideKey:ht,showEditTools:ct=!0,showOnEdit:pt,showOnView:ut,passOriginalNode:dt}=_,ft=[...ce,...v.filter(({showInTypesSelector:t=!1,name:e})=>t&&!!e).map(({name:t})=>t)],mt=useMemo(()=>{if("boolean"==typeof h)return h?[]:ft;if(Array.isArray(h))return h;const t=h(z);return"boolean"==typeof t?t?[]:ft:t},[z,h]),[yt,gt]=useState(((t,e)=>{var i;if("string"!=typeof t)return null;const r=e.filter(e=>e instanceof Object&&e.enum&&e.values.includes(t)&&e.matchPriority);return r.sort((t,e)=>{var i,r;return(null!==(i=e.matchPriority)&&void 0!==i?i:0)-(null!==(r=t.matchPriority)&&void 0!==r?r:0)}),null!==(i=r[0])&&void 0!==i?i:null})(L,mt)),{isEditing:bt}=Q,vt=y("value",z,c,p);if(bt&&(!vt||!q)){const t=O(z.fullData,G,I,S);T(t||D)}if(!vt)return null;const _t=t=>{let e;if(T(null),B(null),void 0===t||(t=>t&&"object"==typeof t&&"type"in t&&"target"in t&&"preventDefault"in t&&"function"==typeof t.preventDefault)(t))switch(nt){case"object":e={[b("DEFAULT_NEW_KEY",z)]:L};break;case"array":e=null!=L?L:[];break;case"number":{const t=Number(L);e=isNaN(t)?0:t;break}default:e=L}else e=t;r(e,G).then(t=>{t&&Y({code:"UPDATE_ERROR",message:t},e)})},xt=()=>{T(null),null===R?(N(e),B(null)):r(R,G)},{isEditingKey:kt,canEditKey:St}=Q,wt=!bt&&J,Et=bt&&mt.length>1,Ct=("invalid"!==nt||st)&&!J&&ct,Pt=u&&!ht,Tt=st&&(bt&&pt||!bt&&ut),At={value:L,parentData:i,setValue:ot,isEditing:bt,canEdit:q,setIsEditing:q?()=>T(G):()=>{},handleEdit:_t,handleCancel:xt,path:G,stringTruncate:d,showStringQuotes:f,nodeData:z,enumType:yt,translate:b,handleKeyboard:x,keyboardCommon:{cancel:xt,tabForward:()=>{j("next"),F(V);const t=O(z.fullData,G,"next",S);t&&(_t(),T(t))},tabBack:()=>{j("prev"),F(V);const t=O(z.fullData,G,"prev",S);t&&(_t(),T(t))}}},Dt={canEditKey:St,isEditingKey:kt,pathString:V,path:G,name:H,arrayIndexFromOne:m,handleKeyboard:x,handleEditKey:U,handleCancel:xt,styles:P("property",z),getNextOrPrevious:t=>O(z.fullData,G,t,S),emptyStringKey:Z},Ft=Tt?jsx(st,Object.assign({},t,{value:L,customNodeProps:lt,setValue:ot,handleEdit:_t,handleCancel:xt,handleKeyPress:t=>x(t,{stringConfirm:_t,cancel:xt}),isEditing:bt,setIsEditing:()=>T(G),getStyles:P,originalNode:dt?ye(e,At):void 0,originalNodeKey:dt?jsx(ge,Object.assign({},Dt)):void 0,canEdit:q,keyboardCommon:At.keyboardCommon,onError:Y})):ye(e,At);return jsxs("div",Object.assign({className:"jer-component jer-value-component",style:{marginLeft:null!==i?g/2+"em":0,position:"relative"},draggable:X},tt,et("above"),{children:[it,jsx(rt,{position:"above",nodeData:z}),jsxs("div",{className:"jer-value-main-row",style:{flexWrap:H.length>10?"wrap":"nowrap"},children:[Pt&&jsx(ge,Object.assign({},Dt)),jsxs("div",{className:"jer-value-and-buttons",children:[jsx("div",{className:"jer-input-component",children:Ft}),bt?jsx(le,{onOk:_t,onCancel:xt,nodeData:z,editConfirmRef:w}):Ct&&jsx(ae,{startEdit:q?()=>{B(R),T(G,xt)}:void 0,handleDelete:$?()=>{n(L,G).then(t=>{t&&Y({code:"DELETE_ERROR",message:t},L)})}:void 0,enableClipboard:s,translate:b,customButtons:t.customButtons,nodeData:z,handleKeyboard:x,keyboardControls:k,editConfirmRef:w,jsonStringify:E,showIconTooltips:C}),Et&&jsxs("div",{className:"jer-select jer-select-types",children:[jsx("select",{name:`${H}-type-select`,className:"jer-select-inner",onChange:t=>(t=>{const e=v.find(e=>e.name===t);if(e)return r(e.defaultValue,G),at(t),gt(null),T(null),void A({path:G,collapsed:!1,includeChildren:!1});const i=mt.find(e=>e instanceof Object&&e.enum===t);if(i)return"string"==typeof L&&i.values.includes(L)||r(i.values[0],G).then(t=>{t&&(Y({code:"UPDATE_ERROR",message:t},n),T(null))}),void gt(i);const n=fe(L,t,b("DEFAULT_NEW_KEY",z),(null==_?void 0:_.CustomNode)?b("DEFAULT_STRING",z):void 0);["string","number","boolean"].includes(t)||T(null),r(n,G).then(t=>{t?(Y({code:"UPDATE_ERROR",message:t},n),T(null)):gt(null)})})(t.target.value),value:yt?yt.enum:nt,children:mt.map(t=>t instanceof Object&&"enum"in t?jsx("option",{value:t.enum,children:t.enum},t.enum):jsx("option",{value:t,children:t},t))}),jsx("span",{className:"focus"})]}),wt&&jsx("span",{className:"jer-error-slug",style:P("error",z),children:J})]})]}),jsx(rt,{position:"below",nodeData:z})]}))},he=(t,e)=>(null==e?void 0:e.CustomNode)&&(null==e?void 0:e.name)&&e.showInTypesSelector?e.name:"string"==typeof t?"string":"number"==typeof t?"number":"boolean"==typeof t?"boolean":null===t?"null":"invalid",ye=(t,e)=>{const i=he(t),{value:r}=e;switch(i){case"string":return jsx(H,Object.assign({},e,{value:r}));case"number":return jsx(U,Object.assign({},e,{value:r}));case"boolean":return jsx($,Object.assign({},e,{value:r}));case"null":return jsx(X,Object.assign({},e));default:return jsx(J,Object.assign({},e))}},fe=(t,e,i,r)=>{switch(e){case"string":return null!=r?r:String(t);case"number":{const e=Number(t);return isNaN(e)?0:e}case"boolean":return!!t;case"null":return null;case"object":return{[i]:t};case"array":return[t];default:return String(t)}},be=(t=[],e)=>{const i=t.filter(({condition:t})=>t(e));if(0===i.length)return{};const r=i[0],{element:n,wrapperElement:a,customNodeProps:o,wrapperProps:s,hideKey:l=!1,showEditTools:h=!0,showOnEdit:c=!1,showOnView:u=!0,showCollectionWrapper:d=!0}=r,f=p(r,["element","wrapperElement","customNodeProps","wrapperProps","hideKey","showEditTools","showOnEdit","showOnView","showCollectionWrapper"]);return Object.assign({CustomNode:n,CustomWrapper:a,customNodeProps:o,wrapperProps:s,hideKey:l,showEditTools:h,showOnEdit:c,showOnView:u,showCollectionWrapper:d},f)},ve=t=>{const{getStyles:e}=K(),{collapseState:i,setCollapseState:r,getMatchingCollapseState:n,currentlyEditingElement:a,setCurrentlyEditingElement:o,areChildrenBeingEdited:s,previousValue:l,setPreviousValue:c}=M(),{mainContainerRef:p,data:u,nodeData:d,parentData:f,showCollectionCount:b,onEdit:v,onAdd:_,onDelete:x,canDragOnto:k,collapseFilter:S,collapseAnimationTime:w,onMove:C,enableClipboard:P,onEditEvent:T,showIconTooltips:A,searchFilter:D,searchText:F,indent:I,sort:j,showArrayIndices:R,arrayIndexFromOne:B,defaultValue:L,newKeyOptions:V,translate:z,customNodeDefinitions:G,customNodeData:H,jsonParse:W,jsonStringify:q,TextEditor:$,keyboardControls:X,handleKeyboard:J,insertAtTop:Y,onCollapse:U,editConfirmRef:Z,collapseClickZones:Q}=t,[tt,et]=useState(q(u)),it=S(d),{contentRef:rt,isAnimating:nt,maxHeight:at,collapsed:ot,animateCollapse:st,cssTransitionValue:lt}=((t,e,i,r,n)=>{const[a,o]=useState(i?0:void 0),[s,l]=useState(i),h=useRef(!1),c=useRef(null),p=useRef(0),u=useRef(0),d=e/1e3+"s",f=useCallback(i=>{var a,d;if(s!==i){switch(window.clearTimeout(u.current),h.current=!0,i){case!0:{const t=null!==(d=null===(a=c.current)||void 0===a?void 0:a.offsetHeight)&&void 0!==d?d:0;p.current=t,o(t),setTimeout(()=>{o(0)},5);break}case!1:o(p.current||pe(t,c,r,n))}l(!s),u.current=window.setTimeout(()=>{h.current=!1,i||o(void 0)},e)}},[e,s,t,r,n]);return{contentRef:c,isAnimating:h.current,animateCollapse:f,maxHeight:a,collapsed:s,cssTransitionValue:d}})(u,w,it,p,q),{pathString:ht,nodeData:ct,path:pt,name:ut,size:dt,canEdit:ft,canDelete:mt,canAdd:yt,canDrag:gt,error:bt,setError:vt,onError:_t,handleEditKey:xt,emptyStringKey:kt,derivedValues:St}=de({props:t,collapsed:ot}),{dragSourceProps:wt,getDropTargetProps:Et,BottomDropTarget:Ct,DropTargetPadding:Pt}=ue({canDrag:gt,canDragOnto:k,path:pt,nodeData:ct,onMove:C,onError:_t,translate:z}),Tt=useRef(!it),{isEditing:At,isEditingKey:Dt,isArray:Ft,canEditKey:Mt}=St;useEffect(()=>{et(q(u))},[u,q]),useEffect(()=>{const t=S(ct)&&!At;Tt.current=!t,st(t)},[S]),useEffect(()=>{if(null!==i){const t=n(pt);t&&(Tt.current=!0,st(t.collapsed))}},[i]);const It=useRef(null),jt=useCallback((t,e)=>{if("function"!=typeof L)return L;const i=L(t,e);return void 0!==i?i:null},[L]),Rt=useCallback(t=>V?"function"!=typeof V?V:V(t):null,[V]),{CustomNode:Ot,customNodeProps:Bt,CustomWrapper:Lt,wrapperProps:Nt={},hideKey:Vt,showEditTools:zt=!0,showOnEdit:Gt,showOnView:Ht,showCollectionWrapper:Wt=!0}=H,qt=s(ht);if(qt&&ot&&st(!1),!y("collection",ct,D,F)&&0!==ct.level&&!qt)return null;const $t=Array.isArray(u)?"array":"object",Kt="array"===$t?{open:"[",close:"]"}:{open:"{",close:"}"},Xt=t=>{if("Tab"!==t.key||t.getModifierState("Shift"))J(t,{objectConfirm:Yt,cancel:Zt});else{t.preventDefault();const e=N(It,"\t");et(e)}},Jt=t=>{t.stopPropagation();const e=E(t);if(e&&X.collapseModifier.includes(e))return Tt.current=!0,void r({collapsed:!ot,path:pt,includeChildren:!0});a&&a.includes(ht)||(Tt.current=!0,r(null),U&&U({path:pt,collapsed:!ot,includeChildren:!1}),st(!ot))},Yt=()=>{try{const t=W(tt);if(o(null),c(null),vt(null),q(t)===q(u))return;v(t,pt).then(e=>{e&&_t({code:"UPDATE_ERROR",message:e},t)})}catch(t){_t({code:"INVALID_JSON",message:z("ERROR_INVALID_JSON",ct)},tt)}},Ut=pt.length>0?()=>{x(u,pt).then(t=>{t&&_t({code:"DELETE_ERROR",message:t},u)})}:void 0,Zt=()=>{o(null),null===l?(vt(null),et(q(u)),c(null)):v(l,pt)},Qt="when-closed"===b?ot:b,te=!At&&zt,ee=(R||!Ft)&&!Vt&&void 0!==ut,re=Ot&&(At&&Gt||!At&&Ht),ne=Object.entries(u).map(([t,e])=>["array"===$t?Number(t):t,e]);"object"===$t&&j(ne,t=>t);const oe=Tt.current?At?jsxs("div",{className:"jer-collection-text-edit",children:[$?jsx($,{value:tt,onChange:et,onKeyDown:t=>J(t,{objectConfirm:Yt,cancel:Zt})}):jsx(m,{textAreaRef:It,className:"jer-collection-text-area",name:ht,value:tt,setValue:et,handleKeyPress:Xt,styles:e("input",ct)}),jsx("div",{className:"jer-collection-input-button-row",children:jsx(le,{onOk:Yt,onCancel:Zt,nodeData:ct,editConfirmRef:Z})})]}):ne.map(([i,r],n)=>{const a={key:i,value:r,path:[...pt,i],level:pt.length+1,index:n,size:h(r)?Object.keys(r).length:null,parentData:u,fullData:ct.fullData},o=be(G,a);return jsx("div",{className:"jer-collection-element",style:e("collectionElement",a),children:h(r)&&!(null==o?void 0:o.renderCollectionAsValue)?jsx(ve,Object.assign({},t,{data:r,parentData:u,nodeData:a,showCollectionCount:b,canDragOnto:ft,customNodeData:o}),i):jsx(me,Object.assign({},t,{data:r,parentData:u,nodeData:a,canDragOnto:ft,showLabel:"object"===$t||R,customNodeData:o}),i)},i)}):null,se=!!Wt&&ot&&!qt;se||(Tt.current=!0);const he=Object.assign(Object.assign({},t),{data:u,value:u,parentData:f,nodeData:ct,setValue:t=>g(void 0,void 0,void 0,function*(){return yield v(t,pt)}),handleEdit:Yt,handleCancel:Zt,handleKeyPress:Xt,isEditing:At,setIsEditing:()=>o(pt),getStyles:e,canDragOnto:ft,canEdit:ft,keyboardCommon:{},onError:_t}),ce=re?jsx(Ot,Object.assign({customNodeProps:Bt},he,{children:oe})):oe,fe=te&&jsx(ae,{startEdit:ft?()=>{Tt.current=!0,c(null),o(pt)}:void 0,handleAdd:yt?t=>{st(!1);const e=jt(ct,t);if("array"===$t){const t=Y.array?0:u.length,i=Y.array?{insert:!0}:{};_(e,[...pt,t],i).then(t=>{t&&_t({code:"ADD_ERROR",message:t},e)})}else if(t in u)_t({code:"KEY_EXISTS",message:z("ERROR_KEY_EXISTS",ct)},t);else{const i=Y.object?{insertBefore:0}:{};_(e,[...pt,t],i).then(t=>{t&&_t({code:"ADD_ERROR",message:t},e)})}}:void 0,handleDelete:mt?Ut:void 0,enableClipboard:P,type:$t,nodeData:ct,translate:z,customButtons:t.customButtons,keyboardControls:X,handleKeyboard:J,getNewKeyOptions:Rt,editConfirmRef:Z,jsonStringify:q,onEditEvent:T,showIconTooltips:A}),ye={canEditKey:Mt,isEditingKey:Dt,pathString:ht,path:pt,name:ut,arrayIndexFromOne:B,handleKeyboard:J,handleEditKey:xt,handleCancel:Zt,keyValueArray:ne,styles:e("property",ct),getNextOrPrevious:t=>O(ct.fullData,pt,t,j),handleClick:Q.includes("property")?Jt:t=>t.stopPropagation(),emptyStringKey:kt},_e=jsxs("div",Object.assign({className:"jer-component jer-collection-component",style:Object.assign(Object.assign({marginLeft:(0===pt.length?0:I/2)+"em"},e("collection",ct)),{position:"relative"}),draggable:gt},wt,Et("above"),{children:[jsx("div",{className:"jer-clickzone",style:{width:I/2+1+"em",zIndex:10+2*ct.level},onClick:Q.includes("left")?Jt:void 0}),!At&&Ct,jsx(Pt,{position:"above",nodeData:ct}),Wt?jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},onClick:Q.includes("header")?Jt:void 0,children:[jsxs("div",{className:"jer-collection-name",children:[jsx("div",{className:"jer-collapse-icon jer-accordion-icon"+(ot?" jer-rotate-90":""),style:{zIndex:11+2*ct.level,transition:lt},onClick:Jt,children:jsx(ie,{name:"chevron",rotate:ot,nodeData:ct})}),ee&&jsx(ge,Object.assign({},ye)),!At&&jsx("span",{className:"jer-brackets jer-bracket-open",style:e("bracket",ct),children:Kt.open})]}),!At&&Qt&&jsx("div",{className:"jer-collection-item-count"+(Qt?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},e("itemCount",ct)),{transition:lt}),children:1===dt?z("ITEM_SINGLE",Object.assign(Object.assign({},ct),{size:1}),1):z("ITEMS_MULTIPLE",ct,dt)}),jsx("div",{className:"jer-brackets"+(se?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},e("bracket",ct)),{transition:lt}),children:Kt.close}),fe]}):Vt?jsx(Fragment,{}):jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},children:[jsx(ge,Object.assign({},ye)),fe]}),jsxs("div",{className:"jer-collection-inner",style:Object.assign(Object.assign({overflowY:se||nt?"clip":"visible",maxHeight:qt?void 0:at},e("collectionInner",ct)),{transition:lt}),ref:rt,children:[ce,jsx("div",{className:At?"jer-collection-error-row":"jer-collection-error-row-edit",children:bt&&jsx("span",{className:"jer-error-slug",style:e("error",ct),children:bt})}),!At&&Wt&&jsx("div",{className:"jer-brackets jer-bracket-outside",style:Object.assign(Object.assign({},e("bracket",ct)),{marginLeft:(I<3?-1:I<6?-.5:0)+"em"}),children:Kt.close})]}),jsx(Pt,{position:"below",nodeData:ct})]}));return Lt?jsx(Lt,Object.assign({customNodeProps:Nt},he,{children:_e})):_e},je={ITEM_SINGLE:"{{count}} item",ITEMS_MULTIPLE:"{{count}} items",KEY_NEW:"Enter new key",KEY_SELECT:"Select key",NO_KEY_OPTIONS:"No key options",ERROR_KEY_EXISTS:"Key already exists",ERROR_INVALID_JSON:"Invalid JSON",ERROR_UPDATE:"Update unsuccessful",ERROR_DELETE:"Delete unsuccessful",ERROR_ADD:"Adding node unsuccessful",DEFAULT_STRING:"New data!",DEFAULT_NEW_KEY:"key",SHOW_LESS:"(Show less)",EMPTY_STRING:"<empty string>",TOOLTIP_COPY:"Copy to clipboard",TOOLTIP_EDIT:"Edit",TOOLTIP_DELETE:"Delete",TOOLTIP_ADD:"Add"},Ee=(t,e)=>(i,r,n)=>((t,e,i,r,n)=>{if(e[r]){const t=e[r](i);if(null!==t)return t}const a=r in t?t[r]:je[r];return void 0===n?a:null==a?void 0:a.replace("{{count}}",String(n))})(t,e,r,i,n);var we=[],De=[];!function(t,e){if(t&&"undefined"!=typeof document){var i,r=!0===e.prepend?"prepend":"append",n=!0===e.singleTag,a="string"==typeof e.container?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(n){var o=we.indexOf(a);-1===o&&(o=we.push(a)-1,De[o]={}),i=De[o]&&De[o][r]?De[o][r]:De[o][r]=s()}else i=s();65279===t.charCodeAt(0)&&(t=t.substring(1)),i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(document.createTextNode(t))}function s(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),e.attributes)for(var i=Object.keys(e.attributes),n=0;n<i.length;n++)t.setAttribute(i[n],e.attributes[i[n]]);var o="prepend"===r?"afterbegin":"beforeend";return a.insertAdjacentElement(o,t),t}}(':root{--jer-select-border:#b6b6b6;--jer-select-focus:#777;--jer-select-arrow:#777;--jer-form-border:1px solid #ededf0;--jer-form-border-focus:1px solid #e2e2e2;--jer-highlight-color:#b3d8ff}.jer-visible{opacity:1}.jer-hidden{opacity:0}.jer-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#000;cursor:inherit;font-family:inherit;font-size:.8em;line-height:inherit;margin:0;outline:none;padding:0 1em 0 0;z-index:1}select::-ms-expand{display:none}.jer-select{align-items:center;background-color:#fff;background-image:linear-gradient(0deg,#f9f9f9,#fff 33%);border:1px solid var(--jer-select-border);border-radius:.25em;cursor:pointer;display:grid;grid-template-areas:"select";line-height:1.1;max-width:15ch;min-width:12ch;padding:.25em .5em;position:relative}.jer-select select,.jer-select:after{grid-area:select}.jer-select:not(.jer-select--multiple):after{background-color:var(--jer-select-arrow);clip-path:polygon(100% 0,0 0,50% 100%);content:"";height:.5em;justify-self:end;width:.8em}select:focus+.focus{border:1px solid var(--jer-select-focus);border-radius:inherit;bottom:-1px;left:-1px;position:absolute;right:-1px;top:-1px}.jer-select-inner{text-overflow:ellipsis;width:100%}.jer-editor-container{border-radius:.5em;font-size:16px;line-height:1;padding:1em 1em 1em 2em;position:relative;text-align:left}.jer-editor-container textarea{border:var(--jer-form-border);border-radius:.3em;color:var(--jer-input-color);outline:none}.jer-editor-container textarea:focus{border:var(--jer-form-border-focus)}.jer-editor-container input{border:var(--jer-form-border);border-radius:.3em;font-family:inherit;outline:none}.jer-editor-container input:focus{border:var(--jer-form-border-focus)}.jer-editor-container ::selection{background-color:var(--jer-highlight-color)}.jer-collection-header-row,.jer-value-main-row{align-items:center;display:flex;gap:.3em;min-height:1.7em}.jer-collection-header-row{display:flex;flex-wrap:wrap}.jer-collapse-icon{left:-1.2em;position:absolute;top:.35em}.jer-collection-inner{position:relative}.jer-collection-text-edit{align-items:flex-start;display:flex;flex-direction:column;gap:.3em;line-height:1.1em}.jer-collection-text-area{font-family:inherit;font-size:.85em;max-height:40em;overflow:hidden;padding:.2em .5em 0;resize:both}.jer-collection-input-button-row{display:flex;font-size:150%;justify-content:flex-end;margin-top:.4em;width:100%}.jer-collection-error-row{bottom:.5em;position:absolute}.jer-error-slug{margin-left:1em}.jer-value-component{position:relative}.jer-value-main-row{display:flex;gap:0}.jer-value-and-buttons{align-items:center;display:flex;justify-content:flex-start;padding-left:.5em}.jer-value-error-row{position:absolute}.jer-value-string{line-height:1.3em;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.jer-string-expansion{cursor:pointer;filter:saturate(50%);opacity:.6}.jer-show-less{font-size:80%}.jer-hyperlink{text-decoration:underline}.jer-input-text{font-family:inherit;font-size:.9em;height:1.4em;line-height:1.2em;margin:0;min-width:6em;overflow:hidden;padding:.25em .5em .2em;resize:none}.jer-input-boolean{margin-left:.3em;margin-right:.3em;transform:scale(1.5)}.jer-key-text{line-height:1.1em;white-space:pre-wrap;word-break:break-word}.jer-key-edit{font-size:inherit;font-size:.9em;padding:0 .3em}.jer-value-invalid{font-style:italic;opacity:.5}.jer-input-number{font-size:90%;min-width:3em}.jer-confirm-buttons,.jer-edit-buttons{align-items:center;cursor:pointer;display:flex;height:1em}.jer-input-buttons{gap:.4em}.jer-edit-buttons{gap:.4em;margin-left:.5em;opacity:0}.jer-confirm-buttons{gap:.2em;margin-left:.4em}.jer-edit-buttons:hover{opacity:1;position:relative}.jer-collection-header-row:hover>.jer-edit-buttons,.jer-value-and-buttons:hover>.jer-edit-buttons,.jer-value-main-row:hover>.jer-edit-buttons{opacity:1}.jer-copy-pulse{position:relative;transition:.3s}.jer-copy-pulse:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-copy-pulse:after{border-radius:50%;box-shadow:0 0 15px 5px var(--jer-icon-copy-color);content:"";display:block;height:100%;left:0;opacity:0;position:absolute;top:0;transition:all .5s;width:100%}.jer-copy-pulse:active:after{border-radius:4em;box-shadow:0 0 0 0 var(--jer-icon-copy-color);left:0;opacity:1;position:absolute;top:0;transition:0s}.jer-copy-pulse:active{top:.07em}.jer-rotate-90{transform:rotate(-90deg)}.jer-icon:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-empty-string{font-size:90%;font-style:italic}.jer-drag-n-drop-padding{border:1px dashed #e0e0e0;border-radius:.3em;height:.5em}.jer-clickzone{height:calc(100% - .8em);left:-1em;position:absolute;top:1.2em}',{});const Ce=({data:t,setData:e,rootName:i="root",onUpdate:r=()=>{},onEdit:n=r,onDelete:a=r,onAdd:o=r,onChange:s,onError:l,onEditEvent:c,showErrorMessages:p=!0,enableClipboard:u=!0,indent:d=2,collapse:f=!1,collapseAnimationTime:m=300,showCollectionCount:y=!0,restrictEdit:b=!1,restrictDelete:v=!1,restrictAdd:_=!1,restrictTypeSelection:x=!1,restrictDrag:k=!0,viewOnly:S,searchFilter:E,searchText:P,searchDebounceTime:A=350,keySort:D=!1,showArrayIndices:F=!0,arrayIndexFromOne:I=!1,showStringQuotes:R=!0,showIconTooltips:O=!1,defaultValue:B=null,newKeyOptions:L,minWidth:N=250,maxWidth:V="min(600px, 90vw)",rootFontSize:z,stringTruncate:G=250,translations:H={},className:W,id:q,customText:$={},customNodeDefinitions:X=[],customButtons:J=[],jsonParse:Y=JSON.parse,jsonStringify:U=(t,e)=>JSON.stringify(t,e,2),TextEditor:Z,errorMessageTimeout:Q=2500,keyboardControls:tt={},externalTriggers:et,insertAtTop:it=!1,onCollapse:rt,collapseClickZones:nt=["header","left"]})=>{const{getStyles:at}=K(),{setCurrentlyEditingElement:ot}=M(),st=useMemo(()=>Se(f),[f]),lt=useMemo(()=>Ee(H,$),[H,$]),[ht,ct]=useState(P),[pt,ut]=(({setData:t,data:e})=>{const[i,r]=useState(t?void 0:e),n=useCallback(e=>{t?t(e):r(e)},[t]);return useEffect(()=>{t||r(e)},[e]),[t?e:i,n]})({setData:e,data:t}),dt=useRef(null);useEffect(()=>{ot(null);const t=setTimeout(()=>ct(P),A);return()=>clearTimeout(t)},[P,A]);const ft={key:i,path:[],level:0,index:0,value:pt,size:"object"==typeof pt&&null!==pt?Object.keys(pt).length:1,parentData:null,fullData:pt},mt=(t,e)=>g(void 0,void 0,void 0,function*(){const i=yield t(e);if(!0===i||void 0===i)return void ut(e.newData);const r=Te(i)?i:["error",i],[n,a]=r;if("error"===n)return ut(e.currentData),!1===a?lt("ERROR_UPDATE",ft):String(a);ut(a)}),yt=useMemo(()=>Se(b,S),[b,S]),gt=useMemo(()=>Se(v,S),[v,S]),bt=useMemo(()=>Se(_,S),[_,S]),vt=useMemo(()=>Se(k,S),[k,S]),_t=useMemo(()=>Ne(E),[E]),xt=useMemo(()=>(t=>{const e=Object.assign({},C);for(const i of Object.keys(C)){const r=i;if(t[r]){const n=t[r],a=["clipboardModifier","collapseModifier"].includes(i)?Array.isArray(n)?n:[n]:"string"==typeof n?{key:n}:n;e[r]=a,["stringConfirm","numberConfirm","booleanConfirm"].forEach(i=>{!t[i]&&t.confirm&&(e[i]=e.confirm)})}}return e})(tt),[tt]),kt=useCallback((t,e)=>((t,e,i)=>{const r=Object.entries(e);for(const[e,n]of r)if(w(i,t[e],e)){i.preventDefault(),n();break}})(xt,e,t),[xt]),St=useMemo(()=>{const t=xe(X,"stringifyReplacer");return e=>U(e,t)},[X,U]),wt=useMemo(()=>{const t=xe(X,"parseReviver");return e=>{const i=Y(e,t);return T(i)}},[X,Y]),Et=useRef(null);((t,e)=>{const{setCurrentlyEditingElement:i,currentlyEditingElement:r,setCollapseState:n}=M();useEffect(()=>{if(!t)return;const{collapse:a,edit:o}=t;a&&n(a);const s=!(null==o?void 0:o.path)||j(o.path)===r;switch(null==o?void 0:o.action){case"accept":s&&(e.current&&e.current.click(),i(null));break;case"cancel":s&&i(null);break;default:(null==o?void 0:o.path)&&i(o.path)}},[t])})(et,Et);const Ct=useCallback((t,e)=>{!1!==D&&("function"!=typeof D?t.sort((t,i)=>{const r=e(t)[0],n=e(i)[0];return r<n?-1:r>n?1:0}):t.sort((t,i)=>D(e(t),e(i))))},[D]),Pt=be(X,ft),Tt={mainContainerRef:dt,name:i,nodeData:ft,onEdit:(t,e)=>g(void 0,void 0,void 0,function*(){const{currentData:i,newData:r,currentValue:a,newValue:o}=ke(pt,e,t,"update");if(a!==o)return yield mt(n,{currentData:i,newData:r,currentValue:a,newValue:o,name:e.slice(-1)[0],path:e})}),onDelete:(t,e)=>g(void 0,void 0,void 0,function*(){const{currentData:i,newData:r,currentValue:n,newValue:o}=ke(pt,e,t,"delete");return yield mt(a,{currentData:i,newData:r,currentValue:n,newValue:o,name:e.slice(-1)[0],path:e})}),onAdd:(t,e,i)=>g(void 0,void 0,void 0,function*(){const{currentData:r,newData:n,currentValue:a,newValue:s}=ke(pt,e,t,"add",i);return yield mt(o,{currentData:r,newData:n,currentValue:a,newValue:s,name:e.slice(-1)[0],path:e})}),onChange:s,onError:l,onEditEvent:c,showErrorMessages:p,onMove:(t,e,i)=>g(void 0,void 0,void 0,function*(){if(null===t)return;const{currentData:r,newData:a,currentValue:o}=ke(pt,t,"","delete"),s=t.slice(-1)[0],l=e.slice(0,-1),h=e.slice(-1)[0];let c="number"==typeof h?"above"===i?h:h+1:"number"==typeof s?`arr_${s}`:s;t.slice(0,-1).join(".")===e.slice(0,-1).join(".")&&"number"==typeof s&&"number"==typeof c&&s<c&&(c-=1);const p="number"==typeof c?{insert:!0}:"above"===i?{insertBefore:h}:{insertAfter:h},{newData:u,newValue:d}=ke(a,[...l,c],o,"add",p);return yield mt(n,{currentData:r,newData:u,currentValue:o,newValue:d,name:e.slice(-1)[0],path:e})}),showCollectionCount:y,collapseFilter:st,collapseAnimationTime:m,restrictEditFilter:yt,restrictDeleteFilter:gt,restrictAddFilter:bt,restrictTypeSelection:x,restrictDragFilter:vt,canDragOnto:!1,searchFilter:_t,searchText:ht,enableClipboard:u,keySort:D,sort:Ct,showArrayIndices:F,arrayIndexFromOne:I,showStringQuotes:R,showIconTooltips:O,indent:d,defaultValue:B,newKeyOptions:L,stringTruncate:G,translate:lt,customNodeDefinitions:X,customNodeData:Pt,customButtons:J,parentData:null,jsonParse:wt,jsonStringify:St,TextEditor:Z,errorMessageTimeout:Q,handleKeyboard:kt,keyboardControls:xt,insertAtTop:{object:!0===it||"object"===it,array:!0===it||"array"===it},onCollapse:rt,editConfirmRef:Et,collapseClickZones:nt},At=Object.assign(Object.assign({},at("container",ft)),{minWidth:N,maxWidth:V});return At.fontSize=null!=z?z:At.fontSize,jsx("div",{id:q,ref:dt,className:`jer-editor-container ${null!=W?W:""}`,style:At,children:h(pt)&&!Pt.renderCollectionAsValue?jsx(ve,Object.assign({data:pt},Tt)):jsx(me,Object.assign({data:pt,showLabel:!0},Tt))})},Oe=t=>{var e;const[i,r]=useState();return useEffect(()=>{const t=document.documentElement;r(t)},[]),i?jsx(R,{theme:null!==(e=t.theme)&&void 0!==e?e:A,icons:t.icons,docRoot:i,children:jsx(z,{onEditEvent:t.onEditEvent,onCollapse:t.onCollapse,children:jsx(Ce,Object.assign({},t))})}):null},ke=(t,e,i,n,a={})=>{if(0===e.length)return{currentData:t,newData:i,currentValue:t,newValue:i};const s=Object.assign({remove:"delete"===n},a),l="add"!==n?r(t,e):void 0;return{currentData:t,newData:o(t,e,i,s),currentValue:l,newValue:"delete"!==n?i:void 0}},Se=(t,e)=>e?()=>!0:"boolean"==typeof t?()=>t:"number"==typeof t?({level:e})=>e>=t:t,Ne=t=>{if(void 0!==t)return"value"===t?b:"key"===t?v:"all"===t?(t,e)=>b(t,e)||v(t,e):t},Te=t=>Array.isArray(t)&&2===t.length&&["error","value"].includes(t[0]),xe=(t,e)=>{const i="stringifyReplacer"===e?[t=>void 0===t?x:t]:[];if(i.push(...t.map(t=>t[e]).filter(t=>!!t)),0!==i.length)return(t,e)=>{let r=e;for(const t of i)r=t(r);return r}};function PreviewTab({}){useLogRender("PreviewTab");const{appConfig:t,setAppConfig:e}=useRenderStore(t=>({appConfig:t.appConfig,setAppConfig:t.setAppConfig}));return jsx("div",{role:"tabpanel",className:"editor-panel editor-panel--active","aria-hidden":!1,children:jsxs("div",{style:{padding:12},children:[jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:[jsx("div",{children:"Default Language"}),jsx("select",{value:t.defaultLanguage??"en",onChange:i=>{e({...t,defaultLanguage:i.target.value})},children:Object.keys(t.localication??{}).map(t=>jsx("option",{value:t,children:t},t))})]}),jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:12,marginTop:8},children:[jsx("div",{children:"Light Background Color"}),jsx("input",{type:"color",value:t.screenStyle?.light.backgroundColor??"#FDFDFD",onChange:i=>{const r={...t.screenStyle,light:{...t.screenStyle?.light??{color:"#161827"},backgroundColor:i.target.value}};e({...t,screenStyle:r})},className:"input input--color"}),jsx("div",{children:"Light Color"}),jsx("input",{type:"color",value:t.screenStyle?.light.color??"#161827",onChange:i=>{const r={...t.screenStyle,light:{...t.screenStyle?.light??{backgroundColor:"#FDFDFD"},color:i.target.value}};e({...t,screenStyle:r})},className:"input input--color"}),jsx("div",{children:"Dark Background Color"}),jsx("input",{type:"color",value:t.screenStyle?.dark.backgroundColor??"#12131A",onChange:i=>{const r={...t.screenStyle,dark:{...t.screenStyle?.dark??{color:"#E9EBF9"},backgroundColor:i.target.value}};e({...t,screenStyle:r})},className:"input input--color"}),jsx("div",{children:"Dark Color"}),jsx("input",{type:"color",value:t.screenStyle?.dark.color??"#E9EBF9",onChange:i=>{const r={...t.screenStyle,dark:{...t.screenStyle?.dark??{backgroundColor:"#12131A"},color:i.target.value}};e({...t,screenStyle:r})},className:"input input--color"})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:8},children:[jsx("div",{children:"Dark Mode"}),jsx("input",{type:"checkbox",checked:"dark"===t.theme,onChange:i=>{const r=i.target.checked?"dark":"light";e({...t,theme:r})}})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:8},children:[jsx("div",{children:"Is RTL"}),jsx("input",{type:"checkbox",checked:t.isRtl??!1,onChange:i=>{e({...t,isRtl:i.target.checked})}})]}),jsx("div",{style:{marginTop:8},children:jsx(Oe,{rootName:"localication",data:t.localication??{},setData:i=>{e({...t,localication:i})}})})]})})}function DebugTab({data:t,setData:e}){return useLogRender("DebugTab"),jsx("div",{role:"tabpanel",className:"editor-panel editor-panel--active editor-panels-debug","aria-hidden":!1,children:jsx("div",{style:{flex:"1 1 auto",minHeight:0,overflow:"auto"},children:jsx(Oe,{data:t,setData:e})})})}function ProjectPage({project:t,appConfig:e=defaultAppConfig,onSaveProject:i,logLevel:r}){useLogRender("ProjectPage");const[n,a]=useState(t.data),[o,s]=useState(t.data),[l,h]=useState("builder");return useEffect(()=>(logger.info("ProjectPage","mount",{projectName:t.name}),useRenderStore.getState().setAppConfig(e),logger.verbose("ProjectPage","appConfig applied",e),()=>{logger.info("ProjectPage","unmount")}),[e,t.name]),useEffect(()=>{r&&logger.setLevel(r)},[r]),jsxs("div",{className:"container-full",children:[jsx(EditorHeader,{onSaveProject:()=>{logger.info("ProjectPage","save project",{name:t.name}),i({...t,data:o})},current:n,editorData:o,setEditorData:s}),jsxs("div",{className:"editor-container",children:[jsx("div",{className:"split-left",children:jsxs("div",{children:[jsxs("div",{className:"editor-tabs",role:"tablist","aria-label":"Editor tabs",children:[jsx("button",{className:"editor-tab "+("builder"===l?"editor-tab--active":""),role:"tab","aria-selected":"builder"===l,onClick:()=>{h("builder"),logger.info("ProjectPage","tab change",{to:"builder"})},children:"Builder"}),jsx("button",{className:"editor-tab "+("preview"===l?"editor-tab--active":""),role:"tab","aria-selected":"preview"===l,onClick:()=>{h("preview"),logger.info("ProjectPage","tab change",{to:"preview"})},children:"Preview Config"}),jsx("button",{className:"editor-tab "+("debug"===l?"editor-tab--active":""),role:"tab","aria-selected":"debug"===l,onClick:()=>{h("debug"),logger.info("ProjectPage","tab change",{to:"debug"})},children:"Debug"})]}),"builder"===l&&jsx(BuilderTab,{data:o,setData:s,current:n,setCurrent:a}),"preview"===l&&jsx(PreviewTab,{}),"debug"===l&&jsx(DebugTab,{data:o,setData:s})]})}),jsxs("div",{className:"split-right",children:[jsx("div",{className:"split-right-background"}),jsx(RenderPage,{data:o})]}),jsx("div",{className:"split-third",children:jsx(AttributesEditorPanel,{current:n,attributes:o,onChange:t=>{let e;s(t),t&&"object"==typeof t&&!Array.isArray(t)&&"key"in t&&(e=t.key),logger.verbose("ProjectPage","attributes change",e?{nodeKey:e}:void 0)},setCurrent:a})})]})]})}function copyNode(t){const{setCopiedNode:e}=useRenderStore.getState();e(t)}export{AttributesEditor$1 as AttributesEditor,DeviceMockFrame,ProjectPage,RenderNode$1 as RenderNode,RenderPage,allcomponentNames,analyseNode,copyNode,extractImageStyle,extractTextStyle,extractViewStyle,getBasicSamples,getDefaultDevice,getDevices,getOnboardSamples,getSamples,isEmptyObject,isNodeArray,isNodeNullOrUndefined,isNodeString,logger,novaToJson,patterns$1 as patterns,querySelector,useNode};
|
|
31
|
+
//# sourceMappingURL=index.esm.js.map
|