@developer_tribe/react-builder 1.2.45 → 1.2.46

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.
@@ -29,5 +29,5 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import React,{useState,useRef,u
29
29
  //! moment.js
30
30
  i.version="2.30.1",n(Yr),i.fn=lo,i.min=Jr,i.max=Qr,i.now=ei,i.utc=h,i.unix=co,i.months=yo,i.isDate=p,i.locale=hr,i.invalid=b,i.duration=Oi,i.isMoment=w,i.weekdays=Co,i.parseZone=po,i.localeData=yr,i.isDuration=ai,i.monthsShort=bo,i.weekdaysMin=vo,i.defineLocale=mr,i.updateLocale=fr,i.locales=br,i.weekdaysShort=xo,i.normalizeUnits=re,i.relativeTimeRounding=na,i.relativeTimeThreshold=oa,i.calendarFormat=Fi,i.prototype=lo,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()),moment$2.exports;var e}var momentExports=requireMoment(),moment=getDefaultExportFromCjs(momentExports);function formatCountdownTime(e,t,r=Date.now()){const i=Math.max(0,e-r);return moment(i).format(t)}const PaywallContext=createContext(void 0);function usePaywallContext(){return useContext(PaywallContext)??{products:[],setSelectedProductId:()=>{},onCounterDown:()=>{},isBackAllowed:!0}}const DEFAULT_FORMAT="m : s";function CountDown({node:e}){useLogRender("CountDown"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"CountDown",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),{onCounterDown:a}=usePaywallContext(),s=useRef(a),l=useMergedStyle(useExtractTextStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),c=e.attributes?.count,d="number"==typeof c&&Number.isFinite(c)?Math.max(0,c):0,[p,g]=useState("");useEffect(()=>{s.current=a},[a]),useEffect(()=>{const e=Date.now()+d;if(g(formatCountdownTime(e,DEFAULT_FORMAT)),d<=0)return;const t=setInterval(()=>{const r=Date.now(),i=e-r;g(formatCountdownTime(e,DEFAULT_FORMAT,r)),i<=0&&(clearInterval(t),s.current?.())},950);return()=>{clearInterval(t)}},[d]);const u=5*("number"==typeof l?.fontSize?l.fontSize:"string"==typeof l?.fontSize?parseFloat(l.fontSize):16)*.6+4*("number"==typeof l?.letterSpacing?l.letterSpacing:"string"==typeof l?.letterSpacing?parseFloat(l.letterSpacing):0);return jsx("p",{"attribute-name":r,"attribute-key":i,style:{...l,width:u,textAlign:"left",alignItems:"left",alignSelf:"center"},children:p})}var isCheckBoxInput=e=>"checkbox"===e.type,isDateObject=e=>e instanceof Date,isNullOrUndefined=e=>null==e;const isObjectType=e=>"object"==typeof e;var isObject$1=e=>!isNullOrUndefined(e)&&!Array.isArray(e)&&isObjectType(e)&&!isDateObject(e),getEventValue=e=>isObject$1(e)&&e.target?isCheckBoxInput(e.target)?e.target.checked:e.target.value:e,getNodeParentName=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,isNameInFieldArray=(e,t)=>e.has(getNodeParentName(t)),isPlainObject$3=e=>{const t=e.constructor&&e.constructor.prototype;return isObject$1(t)&&t.hasOwnProperty("isPrototypeOf")},isWeb="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function cloneObject(e){if(e instanceof Date)return new Date(e);const t="undefined"!=typeof FileList&&e instanceof FileList;if(isWeb&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!(r||isObject$1(e)&&isPlainObject$3(e)))return e;const i=r?[]:Object.create(Object.getPrototypeOf(e));for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=cloneObject(e[t]));return i}var isKey=e=>/^\w*$/.test(e),isUndefined=e=>void 0===e,compact=e=>Array.isArray(e)?e.filter(Boolean):[],stringToPath=e=>compact(e.replace(/["|']|\]/g,"").split(/\.|\[/)),get=(e,t,r)=>{if(!t||!isObject$1(e))return r;const i=(isKey(t)?[t]:stringToPath(t)).reduce((e,t)=>isNullOrUndefined(e)?e:e[t],e);return isUndefined(i)||i===e?isUndefined(e[t])?r:e[t]:i},isBoolean=e=>"boolean"==typeof e,isFunction=e=>"function"==typeof e,set=(e,t,r)=>{let i=-1;const n=isKey(t)?[t]:stringToPath(t),o=n.length,a=o-1;for(;++i<o;){const t=n[i];let o=r;if(i!==a){const r=e[t];o=isObject$1(r)||Array.isArray(r)?r:isNaN(+n[i+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormControlContext=React.createContext(null);HookFormControlContext.displayName="HookFormControlContext";const useFormControlContext=()=>React.useContext(HookFormControlContext);var getProxyFormState=(e,t,r,i=!0)=>{const n={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(n,o,{get:()=>{const n=o;return t._proxyFormState[n]!==VALIDATION_MODE.all&&(t._proxyFormState[n]=!i||VALIDATION_MODE.all),r&&(r[n]=!0),e[n]}});return n};const useIsomorphicLayoutEffect="undefined"!=typeof window?React.useLayoutEffect:React.useEffect;function useFormState(e){const t=useFormControlContext(),{control:r=t,disabled:i,name:n,exact:o}=e||{},[a,s]=React.useState(r._formState),l=React.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return useIsomorphicLayoutEffect(()=>r._subscribe({name:n,formState:l.current,exact:o,callback:e=>{!i&&s({...r._formState,...e})}}),[n,i,o]),React.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),React.useMemo(()=>getProxyFormState(a,r,l.current,!1),[a,r])}var isString=e=>"string"==typeof e,generateWatchOutput=(e,t,r,i,n)=>isString(e)?(i&&t.watch.add(e),get(r,e,n)):Array.isArray(e)?e.map(e=>(i&&t.watch.add(e),get(r,e))):(i&&(t.watchAll=!0),r),isPrimitive=e=>isNullOrUndefined(e)||!isObjectType(e);function deepEqual(e,t,r=new WeakSet){if(isPrimitive(e)||isPrimitive(t))return Object.is(e,t);if(isDateObject(e)&&isDateObject(t))return Object.is(e.getTime(),t.getTime());const i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const o of i){const i=e[o];if(!n.includes(o))return!1;if("ref"!==o){const e=t[o];if(isDateObject(i)&&isDateObject(e)||isObject$1(i)&&isObject$1(e)||Array.isArray(i)&&Array.isArray(e)?!deepEqual(i,e,r):!Object.is(i,e))return!1}}return!0}function useWatch(e){const t=useFormControlContext(),{control:r=t,name:i,defaultValue:n,disabled:o,exact:a,compute:s}=e||{},l=React.useRef(n),c=React.useRef(s),d=React.useRef(void 0),p=React.useRef(r),g=React.useRef(i);c.current=s;const[u,h]=React.useState(()=>{const e=r._getWatch(i,l.current);return c.current?c.current(e):e}),m=React.useCallback(e=>{const t=generateWatchOutput(i,r._names,e||r._formValues,!1,l.current);return c.current?c.current(t):t},[r._formValues,r._names,i]),f=React.useCallback(e=>{if(!o){const t=generateWatchOutput(i,r._names,e||r._formValues,!1,l.current);if(c.current){const e=c.current(t);deepEqual(e,d.current)||(h(e),d.current=e)}else h(t)}},[r._formValues,r._names,o,i]);useIsomorphicLayoutEffect(()=>(p.current===r&&deepEqual(g.current,i)||(p.current=r,g.current=i,f()),r._subscribe({name:i,formState:{values:!0},exact:a,callback:e=>{f(e.values)}})),[r,a,i,f]),React.useEffect(()=>r._removeUnmounted());const y=p.current!==r,b=g.current,C=React.useMemo(()=>{if(o)return null;const e=!y&&!deepEqual(b,i);return y||e?m():null},[o,y,i,b,m]);return null!==C?C:u}function useController(e){const t=useFormControlContext(),{name:r,disabled:i,control:n=t,shouldUnregister:o,defaultValue:a,exact:s=!0}=e,l=isNameInFieldArray(n._names.array,r),c=React.useMemo(()=>get(n._formValues,r,get(n._defaultValues,r,a)),[n,r,a]),d=useWatch({control:n,name:r,defaultValue:c,exact:s}),p=useFormState({control:n,name:r,exact:s}),g=React.useRef(e),u=React.useRef(void 0),h=React.useRef(n.register(r,{...e.rules,value:d,...isBoolean(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const m=React.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(p.errors,r)},isDirty:{enumerable:!0,get:()=>!!get(p.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!get(p.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!get(p.validatingFields,r)},error:{enumerable:!0,get:()=>get(p.errors,r)}}),[p,r]),f=React.useCallback(e=>h.current.onChange({target:{value:getEventValue(e),name:r},type:EVENTS.CHANGE}),[r]),y=React.useCallback(()=>h.current.onBlur({target:{value:get(n._formValues,r),name:r},type:EVENTS.BLUR}),[r,n._formValues]),b=React.useCallback(e=>{const t=get(n._fields,r);t&&t._f&&e&&(t._f.ref={focus:()=>isFunction(e.focus)&&e.focus(),select:()=>isFunction(e.select)&&e.select(),setCustomValidity:t=>isFunction(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>isFunction(e.reportValidity)&&e.reportValidity()})},[n._fields,r]),C=React.useMemo(()=>({name:r,value:d,...isBoolean(i)||p.disabled?{disabled:p.disabled||i}:{},onChange:f,onBlur:y,ref:b}),[r,i,p.disabled,f,y,b,d]);return React.useEffect(()=>{const e=n._options.shouldUnregister||o,t=u.current;t&&t!==r&&!l&&n.unregister(t),n.register(r,{...g.current.rules,...isBoolean(g.current.disabled)?{disabled:g.current.disabled}:{}});const i=(e,t)=>{const r=get(n._fields,e);r&&r._f&&(r._f.mount=t)};if(i(r,!0),e){const e=cloneObject(get(n._options.defaultValues,r,g.current.defaultValue));set(n._defaultValues,r,e),isUndefined(get(n._formValues,r))&&set(n._formValues,r,e)}return!l&&n.register(r),u.current=r,()=>{(l?e&&!n._state.action:e)?n.unregister(r):i(r,!1)}},[r,n,l,o]),React.useEffect(()=>{n._setDisabledField({disabled:i,name:r})},[i,r,n]),React.useMemo(()=>({field:C,formState:p,fieldState:m}),[C,p,m])}const Controller=e=>e.render(useController(e)),HookFormContext=React.createContext(null);HookFormContext.displayName="HookFormContext";const FormProvider$1=e=>{const{children:t,watch:r,getValues:i,getFieldState:n,setError:o,clearErrors:a,setValue:s,trigger:l,formState:c,resetField:d,reset:p,handleSubmit:g,unregister:u,control:h,register:m,setFocus:f,subscribe:y}=e;return React.createElement(HookFormContext.Provider,{value:React.useMemo(()=>({watch:r,getValues:i,getFieldState:n,setError:o,clearErrors:a,setValue:s,trigger:l,formState:c,resetField:d,reset:p,handleSubmit:g,unregister:u,control:h,register:m,setFocus:f,subscribe:y}),[a,h,c,n,i,g,m,p,d,o,f,s,y,l,u,r])},React.createElement(HookFormControlContext.Provider,{value:h},t))};var appendErrors=(e,t,r,i,n)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[i]:n||!0}}:{},convertToArrayPayload=e=>Array.isArray(e)?e:[e],createSubject=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function extractFormValues(e,t){const r={};for(const i in e)if(e.hasOwnProperty(i)){const n=e[i],o=t[i];if(n&&isObject$1(n)&&o){const e=extractFormValues(n,o);isObject$1(e)&&(r[i]=e)}else e[i]&&(r[i]=o)}return r}var isEmptyObject=e=>isObject$1(e)&&!Object.keys(e).length,isFileInput=e=>"file"===e.type,isHTMLElement=e=>{if(!isWeb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},isMultipleSelect=e=>"select-multiple"===e.type,isRadioInput=e=>"radio"===e.type,isRadioOrCheckbox=e=>isRadioInput(e)||isCheckBoxInput(e),live=e=>isHTMLElement(e)&&e.isConnected;function baseGet(e,t){const r=t.slice(0,-1).length;let i=0;for(;i<r;)e=isUndefined(e)?i++:e[t[i++]];return e}function isEmptyArray(e){for(const t in e)if(e.hasOwnProperty(t)&&!isUndefined(e[t]))return!1;return!0}function unset(e,t){const r=Array.isArray(t)?t:isKey(t)?[t]:stringToPath(t),i=1===r.length?e:baseGet(e,r),n=r.length-1,o=r[n];return i&&delete i[o],0!==n&&(isObject$1(i)&&isEmptyObject(i)||Array.isArray(i)&&isEmptyArray(i))&&unset(e,r.slice(0,-1)),e}var objectHasFunction=e=>{for(const t in e)if(isFunction(e[t]))return!0;return!1};function isTraversable(e){return Array.isArray(e)||isObject$1(e)&&!objectHasFunction(e)}function markFieldsDirty(e,t={}){for(const r in e){const i=e[r];isTraversable(i)?(t[r]=Array.isArray(i)?[]:{},markFieldsDirty(i,t[r])):isUndefined(i)||(t[r]=!0)}return t}function getDirtyFields(e,t,r){r||(r=markFieldsDirty(t));for(const i in e){const n=e[i];if(isTraversable(n))isUndefined(t)||isPrimitive(r[i])?r[i]=markFieldsDirty(n,Array.isArray(n)?[]:{}):getDirtyFields(n,isNullOrUndefined(t)?{}:t[i],r[i]);else{const e=t[i];r[i]=!deepEqual(n,e)}}return r}const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!isUndefined(e[0].attributes.value)?isUndefined(e[0].value)||""===e[0].value?validResult:{value:e[0].value,isValid:!0}:validResult:defaultResult}return defaultResult},getFieldValueAs=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:i})=>isUndefined(e)?e:t?""===e?NaN:e?+e:e:r&&isString(e)?new Date(e):i?i(e):e;const defaultReturn={isValid:!1,value:null};var getRadioValue=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,defaultReturn):defaultReturn;function getFieldValue(e){const t=e.ref;return isFileInput(t)?t.files:isRadioInput(t)?getRadioValue(e.refs).value:isMultipleSelect(t)?[...t.selectedOptions].map(({value:e})=>e):isCheckBoxInput(t)?getCheckboxValue(e.refs).value:getFieldValueAs(isUndefined(t.value)?e.ref.value:t.value,e)}var getResolverOptions=(e,t,r,i)=>{const n={};for(const r of e){const e=get(t,r);e&&set(n,r,e._f)}return{criteriaMode:r,names:[...e],fields:n,shouldUseNativeValidation:i}},isRegex=e=>e instanceof RegExp,getRuleValue=e=>isUndefined(e)?e:isRegex(e)?e.source:isObject$1(e)?isRegex(e.value)?e.value.source:e.value:e,getValidationModes=e=>({isOnSubmit:!e||e===VALIDATION_MODE.onSubmit,isOnBlur:e===VALIDATION_MODE.onBlur,isOnChange:e===VALIDATION_MODE.onChange,isOnAll:e===VALIDATION_MODE.all,isOnTouch:e===VALIDATION_MODE.onTouched});const ASYNC_FUNCTION="AsyncFunction";var hasPromiseValidation=e=>!!e&&!!e.validate&&!!(isFunction(e.validate)&&e.validate.constructor.name===ASYNC_FUNCTION||isObject$1(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===ASYNC_FUNCTION)),hasValidation=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),isWatched=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const iterateFieldsByAction=(e,t,r,i)=>{for(const n of r||Object.keys(e)){const r=get(e,n);if(r){const{_f:e,...o}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],n)&&!i)return!0;if(e.ref&&t(e.ref,e.name)&&!i)return!0;if(iterateFieldsByAction(o,t))break}else if(isObject$1(o)&&iterateFieldsByAction(o,t))break}}};function schemaErrorLookup(e,t,r){const i=get(e,r);if(i||isKey(r))return{error:i,name:r};const n=r.split(".");for(;n.length;){const i=n.join("."),o=get(t,i),a=get(e,i);if(o&&!Array.isArray(o)&&r!==i)return{name:r};if(a&&a.type)return{name:i,error:a};if(a&&a.root&&a.root.type)return{name:`${i}.root`,error:a.root};n.pop()}return{name:r}}var shouldRenderFormState=(e,t,r,i)=>{r(e);const{name:n,...o}=e;return isEmptyObject(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!i||VALIDATION_MODE.all))},shouldSubscribeByName=(e,t,r)=>!e||!t||e===t||convertToArrayPayload(e).some(e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e))),skipValidation=(e,t,r,i,n)=>!n.isOnAll&&(!r&&n.isOnTouch?!(t||e):(r?i.isOnBlur:n.isOnBlur)?!e:!(r?i.isOnChange:n.isOnChange)||e),unsetEmptyArray=(e,t)=>!compact(get(e,t)).length&&unset(e,t),updateFieldArrayRootError=(e,t,r)=>{const i=convertToArrayPayload(get(e,r));return set(i,"root",t[r]),set(e,r,i),e};function getValidateError(e,t,r="validate"){if(isString(e)||Array.isArray(e)&&e.every(isString)||isBoolean(e)&&!e)return{type:r,message:isString(e)?e:"",ref:t}}var getValueAndMessage=e=>isObject$1(e)&&!isRegex(e)?e:{value:e,message:""},validateField=async(e,t,r,i,n,o)=>{const{ref:a,refs:s,required:l,maxLength:c,minLength:d,min:p,max:g,pattern:u,validate:h,name:m,valueAsNumber:f,mount:y}=e._f,b=get(r,m);if(!y||t.has(m))return{};const C=s?s[0]:a,x=e=>{n&&C.reportValidity&&(C.setCustomValidity(isBoolean(e)?"":e||""),C.reportValidity())},v={},S=isRadioInput(a),w=isCheckBoxInput(a),k=S||w,T=(f||isFileInput(a))&&isUndefined(a.value)&&isUndefined(b)||isHTMLElement(a)&&""===a.value||""===b||Array.isArray(b)&&!b.length,_=appendErrors.bind(null,m,i,v),O=(e,t,r,i=INPUT_VALIDATION_RULES.maxLength,n=INPUT_VALIDATION_RULES.minLength)=>{const o=e?t:r;v[m]={type:e?i:n,message:o,ref:a,..._(e?i:n,o)}};if(o?!Array.isArray(b)||!b.length:l&&(!k&&(T||isNullOrUndefined(b))||isBoolean(b)&&!b||w&&!getCheckboxValue(s).isValid||S&&!getRadioValue(s).isValid)){const{value:e,message:t}=isString(l)?{value:!!l,message:l}:getValueAndMessage(l);if(e&&(v[m]={type:INPUT_VALIDATION_RULES.required,message:t,ref:C,..._(INPUT_VALIDATION_RULES.required,t)},!i))return x(t),v}if(!(T||isNullOrUndefined(p)&&isNullOrUndefined(g))){let e,t;const r=getValueAndMessage(g),n=getValueAndMessage(p);if(isNullOrUndefined(b)||isNaN(b)){const i=a.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;isString(r.value)&&b&&(e=s?o(b)>o(r.value):l?b>r.value:i>new Date(r.value)),isString(n.value)&&b&&(t=s?o(b)<o(n.value):l?b<n.value:i<new Date(n.value))}else{const i=a.valueAsNumber||(b?+b:b);isNullOrUndefined(r.value)||(e=i>r.value),isNullOrUndefined(n.value)||(t=i<n.value)}if((e||t)&&(O(!!e,r.message,n.message,INPUT_VALIDATION_RULES.max,INPUT_VALIDATION_RULES.min),!i))return x(v[m].message),v}if((c||d)&&!T&&(isString(b)||o&&Array.isArray(b))){const e=getValueAndMessage(c),t=getValueAndMessage(d),r=!isNullOrUndefined(e.value)&&b.length>+e.value,n=!isNullOrUndefined(t.value)&&b.length<+t.value;if((r||n)&&(O(r,e.message,t.message),!i))return x(v[m].message),v}if(u&&!T&&isString(b)){const{value:e,message:t}=getValueAndMessage(u);if(isRegex(e)&&!b.match(e)&&(v[m]={type:INPUT_VALIDATION_RULES.pattern,message:t,ref:a,..._(INPUT_VALIDATION_RULES.pattern,t)},!i))return x(t),v}if(h)if(isFunction(h)){const e=getValidateError(await h(b,r),C);if(e&&(v[m]={...e,..._(INPUT_VALIDATION_RULES.validate,e.message)},!i))return x(e.message),v}else if(isObject$1(h)){let e={};for(const t in h){if(!isEmptyObject(e)&&!i)break;const n=getValidateError(await h[t](b,r),C,t);n&&(e={...n,..._(t,n.message)},x(n.message),i&&(v[m]=e))}if(!isEmptyObject(e)&&(v[m]={ref:C,...e},!i))return v}return x(!0),v};const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(e={}){let t,r={...defaultOptions,...e},i={submitCount:0,isDirty:!1,isReady:!1,isLoading:isFunction(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},n={},o=(isObject$1(r.defaultValues)||isObject$1(r.values))&&cloneObject(r.defaultValues||r.values)||{},a=r.shouldUnregister?{}:cloneObject(o),s={action:!1,mount:!1,watch:!1,keepIsValid:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={...d};let g={...p};const u={array:createSubject(),state:createSubject()},h=r.criteriaMode===VALIDATION_MODE.all,m=async e=>{if(!s.keepIsValid&&!r.disabled&&(p.isValid||g.isValid||e)){let e;r.resolver?(e=isEmptyObject((await x()).errors),f()):e=await v(n,!0),e!==i.isValid&&u.state.next({isValid:e})}},f=(e,t)=>{!r.disabled&&(p.isValidating||p.validatingFields||g.isValidating||g.validatingFields)&&((e||Array.from(l.mount)).forEach(e=>{e&&(t?set(i.validatingFields,e,t):unset(i.validatingFields,e))}),u.state.next({validatingFields:i.validatingFields,isValidating:!isEmptyObject(i.validatingFields)}))},y=(e,t,r,i)=>{const l=get(n,e);if(l){const n=get(a,e,isUndefined(r)?get(o,e):r);isUndefined(n)||i&&i.defaultChecked||t?set(a,e,t?n:getFieldValue(l._f)):k(e,n),s.mount&&!s.action&&m()}},b=(e,t,n,a,s)=>{let l=!1,c=!1;const d={name:e};if(!r.disabled){if(!n||a){(p.isDirty||g.isDirty)&&(c=i.isDirty,i.isDirty=d.isDirty=S(),l=c!==d.isDirty);const r=deepEqual(get(o,e),t);c=!!get(i.dirtyFields,e),r?unset(i.dirtyFields,e):set(i.dirtyFields,e,!0),d.dirtyFields=i.dirtyFields,l=l||(p.dirtyFields||g.dirtyFields)&&c!==!r}if(n){const t=get(i.touchedFields,e);t||(set(i.touchedFields,e,n),d.touchedFields=i.touchedFields,l=l||(p.touchedFields||g.touchedFields)&&t!==n)}l&&s&&u.state.next(d)}return l?d:{}},C=(e,n,o,a)=>{const s=get(i.errors,e),l=(p.isValid||g.isValid)&&isBoolean(n)&&i.isValid!==n;var d;if(r.delayError&&o?(d=()=>((e,t)=>{set(i.errors,e,t),u.state.next({errors:i.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(d,e)},t(r.delayError)):(clearTimeout(c),t=null,o?set(i.errors,e,o):unset(i.errors,e)),(o?!deepEqual(s,o):s)||!isEmptyObject(a)||l){const t={...a,...l&&isBoolean(n)?{isValid:n}:{},errors:i.errors,name:e};i={...i,...t},u.state.next(t)}},x=async e=>{f(e,!0);return await r.resolver(a,r.context,getResolverOptions(e||l.mount,n,r.criteriaMode,r.shouldUseNativeValidation))},v=async(t,n,o={valid:!0})=>{for(const s in t){const c=t[s];if(c){const{_f:t,...s}=c;if(t){const s=l.array.has(t.name),d=c._f&&hasPromiseValidation(c._f);d&&p.validatingFields&&f([t.name],!0);const g=await validateField(c,l.disabled,a,h,r.shouldUseNativeValidation&&!n,s);if(d&&p.validatingFields&&f([t.name]),g[t.name]&&(o.valid=!1,n||e.shouldUseNativeValidation))break;!n&&(get(g,t.name)?s?updateFieldArrayRootError(i.errors,g,t.name):set(i.errors,t.name,g[t.name]):unset(i.errors,t.name))}!isEmptyObject(s)&&await v(s,n,o)}}return o.valid},S=(e,t)=>!r.disabled&&(e&&t&&set(a,e,t),!deepEqual(P(),o)),w=(e,t,r)=>generateWatchOutput(e,l,{...s.mount?a:isUndefined(t)?o:isString(e)?{[e]:t}:t},r,t),k=(e,t,r={})=>{const i=get(n,e);let o=t;if(i){const r=i._f;r&&(!r.disabled&&set(a,e,getFieldValueAs(t,r)),o=isHTMLElement(r.ref)&&isNullOrUndefined(t)?"":t,isMultipleSelect(r.ref)?[...r.ref.options].forEach(e=>e.selected=o.includes(e.value)):r.refs?isCheckBoxInput(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):r.refs.forEach(e=>e.checked=e.value===o):isFileInput(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||u.state.next({name:e,values:cloneObject(a)})))}(r.shouldDirty||r.shouldTouch)&&b(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&M(e)},T=(e,t,r)=>{for(const i in t){if(!t.hasOwnProperty(i))return;const o=t[i],a=e+"."+i,s=get(n,a);(l.array.has(e)||isObject$1(o)||s&&!s._f)&&!isDateObject(o)?T(a,o,r):k(a,o,r)}},_=(e,t,r={})=>{const c=get(n,e),d=l.array.has(e),h=cloneObject(t);set(a,e,h),d?(u.array.next({name:e,values:cloneObject(a)}),(p.isDirty||p.dirtyFields||g.isDirty||g.dirtyFields)&&r.shouldDirty&&u.state.next({name:e,dirtyFields:getDirtyFields(o,a),isDirty:S(e,h)})):!c||c._f||isNullOrUndefined(h)?k(e,h,r):T(e,h,r),isWatched(e,l)?u.state.next({...i,name:e,values:cloneObject(a)}):u.state.next({name:s.mount?e:void 0,values:cloneObject(a)})},O=async e=>{s.mount=!0;const o=e.target;let c=o.name,d=!0;const y=get(n,c),S=e=>{d=Number.isNaN(e)||isDateObject(e)&&isNaN(e.getTime())||deepEqual(e,get(a,c,e))},w=getValidationModes(r.mode),k=getValidationModes(r.reValidateMode);if(y){let s,T;const _=o.type?getFieldValue(y._f):getEventValue(e),O=e.type===EVENTS.BLUR||e.type===EVENTS.FOCUS_OUT,I=!hasValidation(y._f)&&!r.resolver&&!get(i.errors,c)&&!y._f.deps||skipValidation(O,get(i.touchedFields,c),i.isSubmitted,k,w),P=isWatched(c,l,O);set(a,c,_),O?o&&o.readOnly||(y._f.onBlur&&y._f.onBlur(e),t&&t(0)):y._f.onChange&&y._f.onChange(e);const E=b(c,_,O),L=!isEmptyObject(E)||P;if(!O&&u.state.next({name:c,type:e.type,values:cloneObject(a)}),I)return(p.isValid||g.isValid)&&("onBlur"===r.mode?O&&m():O||m()),L&&u.state.next({name:c,...P?{}:E});if(!O&&P&&u.state.next({...i}),r.resolver){const{errors:e}=await x([c]);if(f([c]),S(_),d){const t=schemaErrorLookup(i.errors,n,c),r=schemaErrorLookup(e,n,t.name||c);s=r.error,c=r.name,T=isEmptyObject(e)}}else f([c],!0),s=(await validateField(y,l.disabled,a,h,r.shouldUseNativeValidation))[c],f([c]),S(_),d&&(s?T=!1:(p.isValid||g.isValid)&&(T=await v(n,!0)));d&&(y._f.deps&&(!Array.isArray(y._f.deps)||y._f.deps.length>0)&&M(y._f.deps),C(c,T,s,E))}},I=(e,t)=>{if(get(i.errors,t)&&e.focus)return e.focus(),1},M=async(e,t={})=>{let o,a;const s=convertToArrayPayload(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await x(e);if(f(e),e)for(const r of e){const e=get(t,r);e?set(i.errors,r,e):unset(i.errors,r)}else i.errors=t;return t})(isUndefined(e)?e:s);o=isEmptyObject(t),a=e?!s.some(e=>get(t,e)):o}else e?(a=(await Promise.all(s.map(async e=>{const t=get(n,e);return await v(t&&t._f?{[e]:t}:t)}))).every(Boolean),(a||i.isValid)&&m()):a=o=await v(n);return u.state.next({...!isString(e)||(p.isValid||g.isValid)&&o!==i.isValid?{}:{name:e},...r.resolver||!e?{isValid:o}:{},errors:i.errors}),t.shouldFocus&&!a&&iterateFieldsByAction(n,I,e?s:l.mount),a},P=(e,t)=>{let r={...s.mount?a:o};return t&&(r=extractFormValues(t.dirtyFields?i.dirtyFields:i.touchedFields,r)),isUndefined(e)?r:isString(e)?get(r,e):e.map(e=>get(r,e))},E=(e,t)=>({invalid:!!get((t||i).errors,e),isDirty:!!get((t||i).dirtyFields,e),error:get((t||i).errors,e),isValidating:!!get(i.validatingFields,e),isTouched:!!get((t||i).touchedFields,e)}),L=(e,t,r)=>{const o=(get(n,e,{_f:{}})._f||{}).ref,a=get(i.errors,e)||{},{ref:s,message:l,type:c,...d}=a;set(i.errors,e,{...d,...t,ref:o}),u.state.next({name:e,errors:i.errors,isValid:!1}),r&&r.shouldFocus&&o&&o.focus&&o.focus()},z=e=>u.state.subscribe({next:t=>{shouldSubscribeByName(e.name,t.name,e.exact)&&shouldRenderFormState(t,e.formState||p,j,e.reRenderRoot)&&e.callback({values:{...a},...i,...t,defaultValues:o})}}).unsubscribe,D=(e,t={})=>{for(const s of e?convertToArrayPayload(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(unset(n,s),unset(a,s)),!t.keepError&&unset(i.errors,s),!t.keepDirty&&unset(i.dirtyFields,s),!t.keepTouched&&unset(i.touchedFields,s),!t.keepIsValidating&&unset(i.validatingFields,s),!r.shouldUnregister&&!t.keepDefaultValue&&unset(o,s);u.state.next({values:cloneObject(a)}),u.state.next({...i,...t.keepDirty?{isDirty:S()}:{}}),!t.keepIsValid&&m()},B=({disabled:e,name:t})=>{if(isBoolean(e)&&s.mount||e||l.disabled.has(t)){const r=l.disabled.has(t)!==!!e;e?l.disabled.add(t):l.disabled.delete(t),r&&s.mount&&!s.action&&m()}},A=(e,t={})=>{let i=get(n,e);const a=isBoolean(t.disabled)||isBoolean(r.disabled);return set(n,e,{...i||{},_f:{...i&&i._f?i._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),i?B({disabled:isBoolean(t.disabled)?t.disabled:r.disabled,name:e}):y(e,!0,t.value),{...a?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:getRuleValue(t.min),max:getRuleValue(t.max),minLength:getRuleValue(t.minLength),maxLength:getRuleValue(t.maxLength),pattern:getRuleValue(t.pattern)}:{},name:e,onChange:O,onBlur:O,ref:a=>{if(a){A(e,t),i=get(n,e);const r=isUndefined(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,s=isRadioOrCheckbox(r),l=i._f.refs||[];if(s?l.find(e=>e===r):r===i._f.ref)return;set(n,e,{_f:{...i._f,...s?{refs:[...l.filter(live),r,...Array.isArray(get(o,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),y(e,!1,void 0,r)}else i=get(n,e,{}),i._f&&(i._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!isNameInFieldArray(l.array,e)||!s.action)&&l.unMount.add(e)}}},R=()=>r.shouldFocusError&&iterateFieldsByAction(n,I,l.mount),V=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=cloneObject(a);if(u.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await x();f(),i.errors=e,c=cloneObject(t)}else await v(n);if(l.disabled.size)for(const e of l.disabled)unset(c,e);if(unset(i.errors,"root"),isEmptyObject(i.errors)){u.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else t&&await t({...i.errors},o),R(),setTimeout(R);if(u.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(i.errors)&&!s,submitCount:i.submitCount+1,errors:i.errors}),s)throw s},N=(e,t={})=>{const c=e?cloneObject(e):o,d=cloneObject(c),g=isEmptyObject(e),h=g?o:d;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(getDirtyFields(o,a))]);for(const t of Array.from(e)){const e=get(i.dirtyFields,t),r=get(a,t),n=get(h,t);e&&!isUndefined(r)?set(h,t,r):e||isUndefined(n)||_(t,n)}}else{if(isWeb&&isUndefined(e))for(const e of l.mount){const t=get(n,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(isHTMLElement(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of l.mount)_(e,get(h,e));else n={}}a=r.shouldUnregister?t.keepDefaultValues?cloneObject(o):{}:cloneObject(h),u.array.next({values:{...h}}),u.state.next({values:{...h}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!p.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!r.shouldUnregister&&!isEmptyObject(h),s.watch=!!r.shouldUnregister,s.keepIsValid=!!t.keepIsValid,s.action=!1,t.keepErrors||(i.errors={}),u.state.next({submitCount:t.keepSubmitCount?i.submitCount:0,isDirty:!g&&(t.keepDirty?i.isDirty:!(!t.keepDefaultValues||deepEqual(e,o))),isSubmitted:!!t.keepIsSubmitted&&i.isSubmitted,dirtyFields:g?{}:t.keepDirtyValues?t.keepDefaultValues&&a?getDirtyFields(o,a):i.dirtyFields:t.keepDefaultValues&&e?getDirtyFields(o,e):t.keepDirty?i.dirtyFields:{},touchedFields:t.keepTouched?i.touchedFields:{},errors:t.keepErrors?i.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&i.isSubmitSuccessful,isSubmitting:!1,defaultValues:o})},F=(e,t)=>N(isFunction(e)?e(a):e,{...r.resetOptions,...t}),j=e=>{i={...i,...e}},H={control:{register:A,unregister:D,getFieldState:E,handleSubmit:V,setError:L,_subscribe:z,_runSchema:x,_updateIsValidating:f,_focusError:R,_getWatch:w,_getDirty:S,_setValid:m,_setFieldArray:(e,t=[],l,c,d=!0,h=!0)=>{if(c&&l&&!r.disabled){if(s.action=!0,h&&Array.isArray(get(n,e))){const t=l(get(n,e),c.argA,c.argB);d&&set(n,e,t)}if(h&&Array.isArray(get(i.errors,e))){const t=l(get(i.errors,e),c.argA,c.argB);d&&set(i.errors,e,t),unsetEmptyArray(i.errors,e)}if((p.touchedFields||g.touchedFields)&&h&&Array.isArray(get(i.touchedFields,e))){const t=l(get(i.touchedFields,e),c.argA,c.argB);d&&set(i.touchedFields,e,t)}(p.dirtyFields||g.dirtyFields)&&(i.dirtyFields=getDirtyFields(o,a)),u.state.next({name:e,isDirty:S(e,t),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else set(a,e,t)},_setDisabledField:B,_setErrors:e=>{i.errors=e,u.state.next({errors:i.errors,isValid:!1})},_getFieldArray:e=>compact(get(s.mount?a:o,e,r.shouldUnregister?get(o,e,[]):[])),_reset:N,_resetDefaultValues:()=>isFunction(r.defaultValues)&&r.defaultValues().then(e=>{F(e,r.resetOptions),u.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const e of l.unMount){const t=get(n,e);t&&(t._f.refs?t._f.refs.every(e=>!live(e)):!live(t._f.ref))&&D(e)}l.unMount=new Set},_disableForm:e=>{isBoolean(e)&&(u.state.next({disabled:e}),iterateFieldsByAction(n,(t,r)=>{const i=get(n,r);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},_subjects:u,_proxyFormState:p,get _fields(){return n},get _formValues(){return a},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return i},get _options(){return r},set _options(e){r={...r,...e}}},subscribe:e=>(s.mount=!0,g={...g,...e.formState},z({...e,formState:{...d,...e.formState}})),trigger:M,register:A,handleSubmit:V,watch:(e,t)=>isFunction(e)?u.state.subscribe({next:r=>"values"in r&&e(w(void 0,t),r)}):w(e,t,!0),setValue:_,getValues:P,reset:F,resetField:(e,t={})=>{get(n,e)&&(isUndefined(t.defaultValue)?_(e,cloneObject(get(o,e))):(_(e,t.defaultValue),set(o,e,cloneObject(t.defaultValue))),t.keepTouched||unset(i.touchedFields,e),t.keepDirty||(unset(i.dirtyFields,e),i.isDirty=t.defaultValue?S(e,cloneObject(get(o,e))):S()),t.keepError||(unset(i.errors,e),p.isValid&&m()),u.state.next({...i}))},clearErrors:e=>{const t=e?convertToArrayPayload(e):void 0;null==t||t.forEach(e=>unset(i.errors,e)),t?t.forEach(e=>{u.state.next({name:e,errors:i.errors})}):u.state.next({errors:{}})},unregister:D,setError:L,setFocus:(e,t={})=>{const r=get(n,e),i=r&&r._f;if(i){const e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&isFunction(e.select)&&e.select()})}},getFieldState:E};return{...H,formControl:H}}function useForm(e={}){const t=React.useRef(void 0),r=React.useRef(void 0),[i,n]=React.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:isFunction(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!isFunction(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...n}=createFormControl(e);t.current={...n,formState:i}}const o=t.current.control;return o._options=e,useIsomorphicLayoutEffect(()=>{const e=o._subscribe({formState:o._proxyFormState,callback:()=>n({...o._formState}),reRenderRoot:!0});return n(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),React.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),React.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),React.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),React.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),React.useEffect(()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==i.isDirty&&o._subjects.state.next({isDirty:e})}},[o,i.isDirty]),React.useEffect(()=>{var t;e.values&&!deepEqual(e.values,r.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),(null===(t=o._options.resetOptions)||void 0===t?void 0:t.keepIsValid)||o._setValid(),r.current=e.values,n(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),React.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=React.useMemo(()=>getProxyFormState(i,o),[o,i]),t.current}const formContext=createContext(null);function parseDefaultValues(e){if(null==e||"string"!=typeof e||""===e.trim())return{};try{const t=JSON.parse(e);return"object"!=typeof t||null===t||Array.isArray(t)?{}:t}catch(t){return console.warn("[FormProvider] parseDefaultValues: invalid defaultValues JSON",e,t),{}}}function FormProviderInner({node:e}){useLogRender("FormProvider");const t=(e=useNode(e)).attributes,r=useForm({defaultValues:useMemo(()=>parseDefaultValues(t?.defaultValues),[t?.defaultValues]),mode:"onChange"}),[i,n]=useState(null),o=t?.validationErrorMessageKey??"form.error.validation_required",a=useCallback(e=>r.handleSubmit(t=>{n(null);try{const r=e(t),i=null!=r&&"function"==typeof r.then?r:null;i&&i.catch(e=>{throw n(e instanceof Error?e.message:String(e)),e})}catch(e){throw n(e instanceof Error?e.message:String(e)),e}},()=>{n(o)}),[r,o]),s=useMemo(()=>({handleSubmit:a,isValid:r.formState.isValid,globalError:i,control:r.control}),[a,r.formState.isValid,r.control,i]),l=useExtractViewStyle$1(e);return jsx(formContext.Provider,{value:s,children:jsx(FormProvider$1,{...r,children:jsx("form",{onSubmit:e=>{e.preventDefault()},style:l,"attribute-name":e.sourceType??e.type??"FormProvider","attribute-key":e.key,children:e.children?jsx(RenderNode$1,{node:e.children}):null})})})}function FormProvider(e){return jsx(FormProviderInner,{node:e.node})}function validationArrayToRules(e){const t={};if(!Array.isArray(e))return t;e.includes("required")&&(t.required=!0);const r=e.indexOf("min");if(r>=0)if(null!=e[r+1]){const i=Number(e[r+1]);Number.isFinite(i)?t.min=i:console.warn('[FormCheckbox] validation "min" rule skipped: value must be a number.',"Received:",e[r+1],'— Expected e.g. ["min", 2].')}else console.warn('[FormCheckbox] validation "min" rule skipped: no value after "min".','Expected e.g. ["min", 2], got:',e);const i=e.indexOf("max");if(i>=0)if(null!=e[i+1]){const r=Number(e[i+1]);Number.isFinite(r)?t.max=r:console.warn('[FormCheckbox] validation "max" rule skipped: value must be a number.',"Received:",e[i+1],'— Expected e.g. ["max", 5].')}else console.warn('[FormCheckbox] validation "max" rule skipped: no value after "max".','Expected e.g. ["max", 5], got:',e);return t}function FormCheckbox({node:e}){useLogRender("FormCheckbox"),e=useNode(e);const t=useContext(formContext),r=e.attributes,i=r?.name,n=r?.validation;if(!t||!i)return jsx(Checkbox$1,{node:e});const o=t.control,a=validationArrayToRules(n);return jsx(Controller,{name:i,control:o,rules:a,render:({field:t})=>jsx(Checkbox$1,{node:e,checked:Boolean(t.value),onCheckedChange:e=>t.onChange(e)})})}function Text({node:e}){useLogRender("Text");const t=(e=useNode(e)).sourceType??e.type??"text",r=e.key,i=useRef(null),[n,o]=useState(null),{previewMode:a,selectedKey:s}=useBuilderParams(),l=e.children,c=useExtractTextStyle$1(e),d=isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e}),p=useLocalize(),g=e.attributes?.translateCounter,u=useMemo(()=>{let e=p(l);const t=g??1;for(let r=1;r<t;r++)e=p(e);return e},[p,l,g]),h=e.attributes?.styles,m=h?.adjustsFontSizeToFit??!1,f=e.attributes?.numberOfLines;useLayoutEffect(()=>{if(1!==f||!m)return void o(null);const e=i.current;if(!e)return;const t=()=>{const t=e.clientWidth,r=e.clientHeight,i=u?.length??0;if(!t||!r||!i)return void o(null);const n=Math.sqrt(t*r/i),a=Number.parseFloat(window.getComputedStyle(e).fontSize),s=Number.isFinite(a)?a:void 0,l=Math.max(8,s?Math.min(n,s):n);o(Number.isFinite(l)?l:null)};t();let r=null;return"undefined"!=typeof ResizeObserver?(r=new ResizeObserver(()=>t()),r.observe(e)):window.addEventListener("resize",t),()=>{r?.disconnect(),window.removeEventListener("resize",t)}},[m,u,f]);const y=useMergedStyle(useMergedStyle(c,useMemo(()=>{let e;return 1==f&&m&&(e={...e??{},overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),null!==n&&(e={...e??{},fontSize:`${n}px`}),e},[n,f,m])),d?SELECTED_OUTLINE_STYLE:void 0);return jsx("p",{ref:i,"attribute-name":t,"attribute-key":r,style:y,children:u})}var Text$1=React.memo(Text);function FormErrorText({node:e}){useLogRender("FormErrorText"),e=useNode(e);const t=useContext(formContext),r=useLocalize(),i=useMemo(()=>t?.globalError?r(t.globalError):"",[t?.globalError,r]);if(!t?.globalError||!i)return null;const n={...e,type:"Text",children:i};return jsx("div",{role:"alert","aria-live":"polite",children:jsx(Text,{node:n})})}function usePlacementButtonEvents(e,t){const{context:r,requestPermission:i,onNavigateWithoutPlacement:n}=t,o=useRef([]);return useCallback(async()=>{const t=e??[];for(const e of t)if(!o.current.includes(e))if("Permission"===e.type){const t=e.permission??"camera";await i(t),o.current.push(e)}else if("Placement"===e.type&&e.placementKey)"onboard"===e.placementKey?r?.navigation("onboard"):"paywall"===e.placementKey?r?.navigation("subscription"):"terms"===e.placementKey&&r?.navigation("terms"),o.current.push(e);else if("Navigate"===e.type)if(e.placementKey)"onboard"===e.placementKey?r?.navigation("onboard"):"paywall"===e.placementKey?r?.navigation("subscription"):"terms"===e.placementKey&&r?.navigation("terms"),o.current.push(e);else{null!=n&&await Promise.resolve(n(e))?o.current.push(e):e.navigate_to&&"string"==typeof e.navigate_to&&(r?.navigation(e.navigate_to),o.current.push(e))}},[e,r,i,n])}function SystemButton({node:e,onClick:t,disabled:r=!1}){useLogRender("SystemButton");const i=(e=useNode(e)).sourceType??e.type??"SystemButton",n=useMockOSContext(),o=useMockPermission(n),a=useId(),s=e.key??a,l=e.attributes,c=l?.labelKey??"",d=useLocalize()(c),p=useExtractViewStyle$1(e),g=useExtractTextStyle$1(e),u=usePlacementButtonEvents(l?.events,{context:n,requestPermission:e=>o.requestPermission(e)}),h=t??u,m=useMergedStyle(p,g,{border:"none",display:"flex",justifyContent:"center",alignItems:"center",cursor:r?"not-allowed":"pointer",opacity:r?.6:1});return jsx("button",{...l?.testID?{"data-testid":l.testID}:{},"attribute-name":i,"attribute-key":s,onClick:h,disabled:r,type:"button",style:m,children:d||"Button"})}function FormSubmitButton({node:e}){useLogRender("FormSubmitButton"),e=useNode(e);const t=useContext(formContext),r=useMockOSContext(),i=useMockPermission(r),n=e.attributes,o=usePlacementButtonEvents(n?.events,{context:r,requestPermission:e=>i.requestPermission(e)}),a=!0===n?.validationRequired&&!0===n?.disableIfUnvalidated&&null!==t&&!t.isValid,s=null!==t?t.handleSubmit(()=>{o()}):o;return jsx(SystemButton,{node:e,onClick:null!==t?s:void 0,disabled:null!==t&&a})}function extractImageStyle(e,t={}){const r=e.attributes,i={};if(!r)return i;const n=getStyleBag(r),o=n?.resizeMode??r.resizeMode;return"cover"===o?i.objectFit="cover":"contain"===o?i.objectFit="contain":"stretch"===o?i.objectFit="fill":"center"===o&&(i.objectFit="none"),{...extractViewStyle(e,t),...i}}function extractImageStyleNative(e,t={}){const r=e.attributes;if(!r)return{};const i=getStyleBag(r),n=i?.resizeMode??r.resizeMode,o={};return n&&(o.resizeMode=n),{...extractViewStyleNative(e,t),...o}}function useExtractImageStyle$1(e){const{selectedTheme:t,projectColors:r,baseSize:i,device:n}=useBuilderParams();return useMemo(()=>extractImageStyle(e,{theme:t,projectColors:r,baseSize:i,device:n}),[e,t,r,i,n])}function Image$1({node:e}){useLogRender("Image"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"image",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useExtractImageStyle$1(e),s=e.attributes?.src,l=useMergedStyle(a,isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsx("img",{"attribute-name":r,"attribute-key":i,src:resolveImageSrc(s),style:{...l,width:"auto",maxWidth:"100%"},alt:""},e.key+(s??"-"))}var Image$2=React.memo(Image$1);function addInset(e,t){return t?void 0===e?t:"number"==typeof e?e+t:"string"==typeof e&&e.trim()?`calc(${e.trim()} + ${t}px)`:t:e}function subtractInset(e,t){return t?void 0===e?`calc(100% - ${t}px)`:"number"==typeof e?Math.max(0,e-t):"string"==typeof e&&e.trim()?`calc(${e.trim()} - ${t}px)`:`calc(100% - ${t}px)`:e}function useSafeAreaViewStyle(e,t,r){const i=useRenderStore(e=>e.statusBarOverrideTranslucent);return useMemo(()=>{if(!t)return e;const[n,o,,a]=r?.insets??[0,0,0,0],s=i?0:n||("ios"===r?.platform?20:r?.platform?24:0),l=o??0,c=a??0,d=c+l,p=s+0;return{...e,marginTop:addInset(e.marginTop,s),marginRight:addInset(e.marginRight,l),marginBottom:addInset(e.marginBottom,0),marginLeft:addInset(e.marginLeft,c),width:subtractInset(e.width??"100%",d),height:subtractInset(e.height??"100%",p)}},[t,e,r,i])}function Main({node:e}){useLogRender("Main"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"Main",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useRenderStore(e=>e.device),s=useMergedStyle(useSafeAreaViewStyle(useExtractViewStyle$1(e),e.attributes?.useSafeAreaView??!0,a),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0,{boxSizing:"content-box"});return jsx("div",{"attribute-name":r,"attribute-key":i,style:s,children:jsx(RenderNode$1,{node:e.children})})}var Main$1=React.memo(Main);function NavigationBarColor({node:e}){useLogRender("NavigationBarColor"),e=useNode(e);const{selectedTheme:t,projectColors:r}=useBuilderParams(),i=useRenderStore(e=>e.setNavBarOverrideColor),n=useRenderStore(e=>e.setNavBarOverrideTranslucent),o=getStyleBag(e.attributes)?.backgroundColor,a=parseColor(o,{projectColors:r,theme:t}),s=e.attributes?.translucent;return useEffect(()=>(a&&i(a),void 0!==s&&n(s),()=>{i(null),n(null)}),[a,i,s,n]),null}var NavigationBarColor$1=React.memo(NavigationBarColor);function Onboard({node:e}){useLogRender("Onboard");const t=(e=useNode(e)).type??"Onboard";return jsx(Carousel$1,{node:{...e,type:"carousel",sourceType:t}})}var Onboard$1=React.memo(Onboard);function OnboardButton({node:e}){useLogRender("OnboardButton");const t=(e=useNode(e)).sourceType??e.type??"OnboardButton",{emblaApi:r,selectedIndex:i}=useContext(onboardContext)??{},{selectedTheme:n,projectColors:o}=useBuilderParams(),a=useMockOSContext(),s=useMockPermission(a),l=useId(),c=e.key??l,d=e.attributes,p=d?.labelKey??"",g=useLocalize()(p),u=d?.styles?.color,h=parseColor(u,{projectColors:o,theme:n}),m=useExtractViewStyle$1(e),f=useCallback(e=>{const t=e.targetIndex;return"number"==typeof t?(r?.scrollTo(t),!0):!(!e.navigate_to||"string"!=typeof e.navigate_to)&&(a?a.navigation(e.navigate_to):console.warn("Mock OS context not available for navigation."),!0)},[r,a]),y=usePlacementButtonEvents(d?.events,{context:a,requestPermission:e=>s.requestPermission(e),onNavigateWithoutPlacement:f});return jsx("button",{...d?.testID?{"data-testid":`${d.testID}-${i??0}`}:{},"attribute-name":t,"attribute-key":c,onClick:y,style:{...m,color:h??void 0,border:"none",display:"flex",justifyContent:"center",cursor:"pointer"},children:g})}function OnboardButtons({node:e}){useLogRender("OnboardButtons");const t=(e=useNode(e)).sourceType??e.type??"OnboardButtons",{previewMode:r,selectedKey:i}=useBuilderParams(),n=useContext(onboardContext)??{},[o,a]=useState(n.selectedIndex??0);useEffect(()=>{"number"==typeof n.selectedIndex&&a(n.selectedIndex)},[n.selectedIndex]);const s=toAttributeRecord(e.attributes),l=getStyleBag(e.attributes),c=useMemo(()=>{const t=e.children;return Array.isArray(t)?t:[t]},[e.children]),d=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!r,current:i?{key:i}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),p=useId(),g=s.condition??l?.condition,u=s.conditionVariable??l?.conditionVariable;return"carousel-index"===g&&"number"==typeof u&&u!==o?null:jsx("div",{"attribute-name":t,"attribute-key":e.key??p,style:{...d,boxSizing:"border-box"},children:c.map((e,t)=>jsx(RenderNode$1,{node:e},e?.key??t))})}var OnboardButtons$1=React.memo(OnboardButtons);function OnboardDot({node:e}){useLogRender("OnboardDot"),e=useNode(e);const t=useId(),r=e.type??"OnboardDot",i=e.key??t,n=e.attributes,o=toAttributeRecord(n),a=getStyleBag(n),s=o.dotType??a?.dotType??"normal_dot",{previewMode:l,selectedKey:c,selectedTheme:d,projectColors:p,baseSize:g,device:u}=useBuilderParams(),h=o.inactive_dot_opacity??a?.inactive_dot_opacity??.3,m=o.inactive_dot_color??a?.inactive_dot_color,f=o.active_dot_color??a?.active_dot_color,y=useMemo(()=>parseColor(f,{theme:d,projectColors:p}),[f,d,p]),b=useMemo(()=>parseColor(m,{theme:d,projectColors:p}),[m,d,p]),C=useExtractViewStyle$1(e),x=useMergedStyle(useMemo(()=>{const{flexDirection:e,...t}=C;return t},[C]),isNodeSelected({previewMode:!!l,current:c?{key:c}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),v=o.dot_thickness??a?.dot_thickness,S=useMemo(()=>{const e=parseSize(v,g,u);return void 0===e?"10px":"number"==typeof e?`${e}px`:"string"==typeof e&&e.trim()?e:"10px"},[v,g,u]),w=useMemo(()=>{const e="string"==typeof S&&S.trim().endsWith("px")?Number.parseFloat(S):Number.NaN,t=Number.isFinite(e)?e:10;return`${Math.max(0,t/3)}px`},[S]),k=useMergedStyle(x,{display:"flex",flexWrap:"wrap",gap:x.gap??w,alignItems:"center"}),T=useContext(onboardContext),_=T?.emblaApi,[O,I]=useState(0),[M,P]=useState([]);return useEffect(()=>{if(!_)return;const e=_.scrollSnapList(),t=_.selectedScrollSnap();P(e),I(t);const r=()=>{const e=_.selectedScrollSnap();I(e)};return _.on("select",r),()=>{_&&_.off&&_.off("select",r)}},[_]),jsx("div",{"attribute-name":r,"attribute-key":i,className:`embla__dots embla__dots--${s}`,style:k,children:M.map((e,t)=>{const r=O===t;return jsx("button",{className:"embla__dot",style:{width:S,height:S,backgroundColor:(r?y:b)??void 0,opacity:r?1:h,borderRadius:"9999px",border:0,padding:0,margin:0,display:"inline-block",cursor:"pointer",boxSizing:"border-box"},"aria-label":`Go to slide ${t+1}`,"aria-current":r?"true":void 0},t)})})}function escapeRegExp$1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function buildSegments$1(e,t){const r=[];for(const i of t){if(!i.value)continue;const t=new RegExp(escapeRegExp$1(i.value),"gi");for(const n of e.matchAll(t)){if(null==n.index)continue;const e=n[0];e&&r.push({start:n.index,end:n.index+e.length,value:e,color:i.color,page:i.page})}}if(0===r.length)return{segments:[{type:"text",value:e}],matchCount:0};r.sort((e,t)=>{if(e.start!==t.start)return e.start-t.start;const r=e.end-e.start;return t.end-t.start-r});const i=[];let n=-1;for(const e of r)e.start>=n&&(i.push(e),n=e.end);const o=[];let a=0;for(const{start:t,end:r,value:n,color:s,page:l}of i)t>a&&o.push({type:"text",value:e.slice(a,t)}),o.push({type:"match",value:n,color:s,page:l}),a=r;return a<e.length&&o.push({type:"text",value:e.slice(a)}),{segments:o,matchCount:i.length}}function OnboardFooter({node:e}){useLogRender("OnboardFooter");const t=(e=useNode(e)).sourceType??e.type??"OnboardFooter",{selectedTheme:r,previewMode:i,selectedKey:n,projectColors:o}=useBuilderParams(),a=o,s=useLocalize(),l=e=>e?s(e):"",c=e?.attributes,d=toAttributeRecord(c),p=l(c?.textLocalizationKey),g=useExtractTextStyle$1(e,!0),u=useExtractViewStyle$1(e),h=d.linkedWordSecondColor,m=d.linkedWordFirstColor,f=useMemo(()=>parseColor(h,{projectColors:a,theme:r}),[h,a,r]),y=useMemo(()=>parseColor(m,{projectColors:a,theme:r}),[m,a,r]),b=useMergedStyle(g,{cursor:"pointer"}),C=useMergedStyle(u,isNodeSelected({previewMode:!!i,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),x=useId(),v=e.key??x;return jsx("div",{"attribute-name":t,"attribute-key":v,style:C,children:!!p&&(()=>{const e=l(c?.linkedWordFirstLocalizationKey),t=l(c?.linkedWordSecondLocalizationKey),{segments:r,matchCount:i}=buildSegments$1(p,[{value:e,color:f??void 0,page:c?.linkedWordFirstPage},{value:t,color:y??void 0,page:c?.linkedWordSecondPage}]);return jsxs("span",{style:{...b,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},children:[r.map((e,t)=>"text"===e.type?jsx(React.Fragment,{children:e.value},t):jsx("span",{style:{...e.color?{color:e.color}:{},cursor:"pointer"},onClick:()=>{e.page},children:e.value},t)),0===i&&jsxs(Fragment,{children:[" ",c?.linkedWordFirstLocalizationKey&&jsx("span",{style:{...f?{color:f}:{},cursor:"pointer"},onClick:()=>{},children:e})," ",c?.linkedWordSecondLocalizationKey&&jsx("span",{style:{...y?{color:y}:{},cursor:"pointer"},onClick:()=>{},children:t})]})]})})()})}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(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,i,n=e.length;for(r=0;r<n;r+=1)for(var o in i=e[r].prototype)Object.prototype.hasOwnProperty.call(i,o)&&(t.prototype[o]=i[o])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,i=0,n=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(i=0;i<t;i+=1)n.push(r);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,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 e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),i=e.length;for(t=0;t<i;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,i){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,i){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var i,n,o,a,s,l,c,d;switch(l=r*(1-t),c=r*(1-(s=6*e-(a=Math.floor(6*e)))*t),d=r*(1-(1-s)*t),a%6){case 0:i=r,n=d,o=l;break;case 1:i=c,n=r,o=l;break;case 2:i=l,n=r,o=d;break;case 3:i=l,n=c,o=r;break;case 4:i=d,n=l,o=r;break;case 5:i=r,n=l,o=c}return[i,n,o]}function RGBtoHSV(e,t,r){var i,n=Math.max(e,t,r),o=Math.min(e,t,r),a=n-o,s=0===n?0:a/n,l=n/255;switch(n){case o:i=0;break;case e:i=t-r+a*(t<r?6:0),i/=6*a;break;case t:i=r-e+2*a,i/=6*a;break;case r:i=e-t+4*a,i/=6*a}return[i,s,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,i){return e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),"#"+r[e]+r[t]+r[i]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,r=1,i=[],n={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){n.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),i=URL.createObjectURL(r);return new Worker(i)}return e=t,n}(function(e){if(o.dataManager||(o.dataManager=function(){function e(n,o){var a,s,l,c,d,g,u=n.length;for(s=0;s<u;s+=1)if("ks"in(a=n[s])&&!a.completed){if(a.completed=!0,a.hasMask){var h=a.masksProperties;for(c=h.length,l=0;l<c;l+=1)if(h[l].pt.k.i)i(h[l].pt.k);else for(g=h[l].pt.k.length,d=0;d<g;d+=1)h[l].pt.k[d].s&&i(h[l].pt.k[d].s[0]),h[l].pt.k[d].e&&i(h[l].pt.k[d].e[0])}0===a.ty?(a.layers=t(a.refId,o),e(a.layers,o)):4===a.ty?r(a.shapes):5===a.ty&&p(a)}}function t(e,t){var r=function(e,t){for(var r=0,i=t.length;r<i;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,n,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)i(e[t].ks.k);else for(o=e[t].ks.k.length,n=0;n<o;n+=1)e[t].ks.k[n].s&&i(e[t].ks.k[n].s[0]),e[t].ks.k[n].e&&i(e[t].ks.k[n].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function i(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function n(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var o,a=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function r(e){var r,i=e.length;for(r=0;r<i;r+=1)5===e[r].ty&&t(e[r])}return function(t){if(n(e,t.v)&&(r(t.layers),t.assets)){var i,o=t.assets.length;for(i=0;i<o;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}(),s=(o=[4,7,99],function(e){if(e.chars&&!n(o,e.v)){var t,i=e.chars.length;for(t=0;t<i;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function r(e){var r,i=e.length;for(r=0;r<i;r+=1)5===e[r].ty&&t(e[r])}return function(t){if(n(e,t.v)&&(r(t.layers),t.assets)){var i,o=t.assets.length;for(i=0;i<o;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var r,i,n,o=e.length;for(r=0;r<o;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(n=e[r].c.k.length,i=0;i<n;i+=1)e[r].c.k[i].s&&(e[r].c.k[i].s[0]/=255,e[r].c.k[i].s[1]/=255,e[r].c.k[i].s[2]/=255,e[r].c.k[i].s[3]/=255),e[r].c.k[i].e&&(e[r].c.k[i].e[0]/=255,e[r].c.k[i].e[1]/=255,e[r].c.k[i].e[2]/=255,e[r].c.k[i].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,i=e.length;for(r=0;r<i;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(n(e,t.v)&&(r(t.layers),t.assets)){var i,o=t.assets.length;for(i=0;i<o;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}(),d=function(){var e=[4,4,18];function t(e){var r,i,n;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(n=e[r].ks.k.length,i=0;i<n;i+=1)e[r].ks.k[i].s&&(e[r].ks.k[i].s[0].c=e[r].closed),e[r].ks.k[i].e&&(e[r].ks.k[i].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,i,n,o,a,s,l=e.length;for(i=0;i<l;i+=1){if((r=e[i]).hasMask){var c=r.masksProperties;for(o=c.length,n=0;n<o;n+=1)if(c[n].pt.k.i)c[n].pt.k.c=c[n].cl;else for(s=c[n].pt.k.length,a=0;a<s;a+=1)c[n].pt.k[a].s&&(c[n].pt.k[a].s[0].c=c[n].cl),c[n].pt.k[a].e&&(c[n].pt.k[a].e[0].c=c[n].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(n(e,t.v)&&(r(t.layers),t.assets)){var i,o=t.assets.length;for(i=0;i<o;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}();function p(e){0===e.t.a.length&&e.t.p}var g={completeData:function(r){r.__complete||(c(r),a(r),s(r),l(r),d(r),e(r.layers,r.assets),function(r,i){if(r){var n=0,o=r.length;for(n=0;n<o;n+=1)1===r[n].t&&(r[n].data.layers=t(r[n].data.refId,i),e(r[n].data.layers,i))}}(r.chars,r.assets),r.__complete=!0)}};return g.checkColors=c,g.checkChars=s,g.checkPathProperties=l,g.checkShapes=d,g.completeLayers=e,g}()),o.assetLoader||(o.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,i,n){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=e(a),i(o);else try{o=e(a),i(o)}catch(e){n&&n(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),r+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var t=e.data.animation;o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})})}),t.onmessage=function(e){var t=e.data,r=t.id,n=i[r];i[r]=null,"success"===t.status?n.onComplete(t.payload):n.onError&&n.onError()})}function s(e,t){var n="processId_"+(r+=1);return i[n]={onComplete:e,onError:t},n}return{loadAnimation:function(e,r,i){a();var n=s(r,i);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(e,r,i){a();var n=s(r,i);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(e,r,i){a();var n=s(r,i);t.postMessage({type:"complete",animation:e,id:n})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(e,t,r){var i="";if(e.e)i=e.p;else if(t){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),i=t+n}else i=r,i+=e.u?e.u:"",i+=e.p;return i}function n(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function o(e){var t={assetData:e},r=i(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var i=e.length;for(r=0;r<i;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=i(t,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),n.src=r;var o={img:n,assetData:t};return o},createImageData:function(t){var r=i(t,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var o={img:n,assetData:t};return o},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],i=0;i<r.length;i+=1)r[i](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,i=this._cbs[e].length;r<i;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,i-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),i={},n=0,o=0;o<r.length;o+=1)2===(t=r[o].split(":")).length&&(i[t[0]]=t[1].trim(),n+=1);if(0===n)throw new Error;return i}return function(t){for(var r=[],i=0;i<t.length;i+=1){var n=t[i],o={time:n.tm,duration:n.dr};try{o.payload=JSON.parse(t[i].cm)}catch(r){try{o.payload=e(t[i].cm)}catch(e){o.payload={name:t[i].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},i=e.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";"false"===n?r.loop=!1:"true"===n?r.loop=!0:""!==n&&(r.loop=parseInt(n,10));var o=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;r.autoplay="false"!==o,r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,i=this.animationData.layers,n=i.length,o=e.layers,a=o.length;for(r=0;r<a;r+=1)for(t=0;t<n;){if(i[t].id===o[r].id){i[t]=o[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(n=e.assets.length,t=0;t<n;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,i="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var i=Number(e);if(isNaN(i)){var n=this.getMarkerData(e);n&&this.goToAndStop(n.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var i=Number(e);if(isNaN(i)){var n=this.getMarkerData(e);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(i,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,i=e.length;for(r=0;r<i;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,i=0,n=0,o=!0,a=!1;function s(e){for(var r=0,n=e.target;r<i;)t[r].animation===n&&(t.splice(r,1),r-=1,i-=1,n.isPaused||d()),r+=1}function l(e,r){if(!e)return null;for(var n=0;n<i;){if(t[n].elem===e&&null!==t[n].elem)return t[n].animation;n+=1}var o=new AnimationItem;return p(o,e),o.setData(e,r),o}function c(){n+=1,h()}function d(){n-=1}function p(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",d),t.push({elem:r,animation:e}),i+=1}function g(e){var s,l=e-r;for(s=0;s<i;s+=1)t[s].animation.advanceTime(l);r=e,n&&!a?window.requestAnimationFrame(g):o=!0}function u(e){r=e,window.requestAnimationFrame(g)}function h(){!a&&n&&o&&(window.requestAnimationFrame(u),o=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return p(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var n;for(n=0;n<i;n+=1)t[n].animation.setSpeed(e,r)},e.setDirection=function(e,r){var n;for(n=0;n<i;n+=1)t[n].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var i,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=n.length;for(i=0;i<o;i+=1)r&&n[i].setAttribute("data-bm-type",r),l(n[i],e);if(t&&0===o){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<i;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,n){var o;for(o=0;o<i;o+=1)t[o].animation.goToAndStop(e,r,n)},e.destroy=function(e){var r;for(r=i-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,h()},e.setVolume=function(e,r){var n;for(n=0;n<i;n+=1)t[n].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,i=[];for(e=0;e<r;e+=1)i.push(t[e].animation);return i},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,i,n,o){var a=o||("bez_"+e+"_"+r+"_"+i+"_"+n).replace(/\./g,"p");if(t[a])return t[a];var s=new d([e,r,i,n]);return t[a]=s,s}},t={},r=11,i=1/(r-1),n="function"==typeof Float32Array;function o(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((o(t,r)*e+a(t,r))*e+s(t))*e}function c(e,t,r){return 3*o(t,r)*e*e+2*a(t,r)*e+s(t)}function d(e){this._p=e,this._mSampleValues=n?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return d.prototype={get:function(e){var t=this._p[0],r=this._p[1],i=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),t===r&&i===n?e:0===e?0:1===e?1:l(this._getTForX(e),r,n)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=!0,e===t&&r===i||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<r;++n)this._mSampleValues[n]=l(n*i,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],o=this._mSampleValues,a=0,s=1,d=r-1;s!==d&&o[s]<=e;++s)a+=i;var p=a+(e-o[--s])/(o[s+1]-o[s])*i,g=c(p,t,n);return g>=.001?function(e,t,r,i){for(var n=0;n<4;++n){var o=c(t,r,i);if(0===o)return t;t-=(l(t,r,i)-e)/o}return t}(e,p,t,n):0===g?p:function(e,t,r,i,n){var o,a,s=0;do{(o=l(a=t+(r-t)/2,i,n)-e)>0?r=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,a,a+i,t,n)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var i=0,n=e,o=createSizedArray(n);return{newElement:function(){return i?o[i-=1]:t()},release:function(e){i===n&&(o=pooling.double(o),n*=2),r&&r(e),o[i]=e,i+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0});function bezFunction(){var e=Math;function t(e,t,r,i,n,o){var a=e*i+t*n+r*o-n*i-o*e-r*t;return a>-.001&&a<.001}var r=function(e,t,r,i){var n,o,a,s,l,c,d=getDefaultCurveSegments(),p=0,g=[],u=[],h=bezierLengthPool.newElement();for(a=r.length,n=0;n<d;n+=1){for(l=n/(d-1),c=0,o=0;o<a;o+=1)s=bmPow(1-l,3)*e[o]+3*bmPow(1-l,2)*l*r[o]+3*(1-l)*bmPow(l,2)*i[o]+bmPow(l,3)*t[o],g[o]=s,null!==u[o]&&(c+=bmPow(g[o]-u[o],2)),u[o]=g[o];c&&(p+=c=bmSqrt(c)),h.percents[n]=l,h.lengths[n]=p}return h.addedLength=p,h};function i(e){this.segmentLength=0,this.points=new Array(e)}function n(e,t){this.partialLength=e,this.point=t}var o,a=(o={},function(e,r,a,s){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!o[l]){var c,d,p,g,u,h,m,f=getDefaultCurveSegments(),y=0,b=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(f=2);var C=new i(f);for(p=a.length,c=0;c<f;c+=1){for(m=createSizedArray(p),u=c/(f-1),h=0,d=0;d<p;d+=1)g=bmPow(1-u,3)*e[d]+3*bmPow(1-u,2)*u*(e[d]+a[d])+3*(1-u)*bmPow(u,2)*(r[d]+s[d])+bmPow(u,3)*r[d],m[d]=g,null!==b&&(h+=bmPow(m[d]-b[d],2));y+=h=bmSqrt(h),C.points[c]=new n(h,m),b=m}C.segmentLength=y,o[l]=C}return o[l]});function s(e,t){var r=t.percents,i=t.lengths,n=r.length,o=bmFloor((n-1)*e),a=e*t.addedLength,s=0;if(o===n-1||0===o||a===i[o])return r[o];for(var l=i[o]>a?-1:1,c=!0;c;)if(i[o]<=a&&i[o+1]>a?(s=(a-i[o])/(i[o+1]-i[o]),c=!1):o+=l,o<0||o>=n-1){if(o===n-1)return r[o];c=!1}return r[o]+(r[o+1]-r[o])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,i=segmentsLengthPool.newElement(),n=e.c,o=e.v,a=e.o,s=e.i,l=e._length,c=i.lengths,d=0;for(t=0;t<l-1;t+=1)c[t]=r(o[t],o[t+1],a[t],s[t+1]),d+=c[t].addedLength;return n&&l&&(c[t]=r(o[t],o[0],a[t],s[0]),d+=c[t].addedLength),i.totalLength=d,i},getNewSegment:function(t,r,i,n,o,a,c){o<0?o=0:o>1&&(o=1);var d,p=s(o,c),g=s(a=a>1?1:a,c),u=t.length,h=1-p,m=1-g,f=h*h*h,y=p*h*h*3,b=p*p*h*3,C=p*p*p,x=h*h*m,v=p*h*m+h*p*m+h*h*g,S=p*p*m+h*p*g+p*h*g,w=p*p*g,k=h*m*m,T=p*m*m+h*g*m+h*m*g,_=p*g*m+h*g*g+p*m*g,O=p*g*g,I=m*m*m,M=g*m*m+m*g*m+m*m*g,P=g*g*m+m*g*g+g*m*g,E=g*g*g;for(d=0;d<u;d+=1)l[4*d]=e.round(1e3*(f*t[d]+y*i[d]+b*n[d]+C*r[d]))/1e3,l[4*d+1]=e.round(1e3*(x*t[d]+v*i[d]+S*n[d]+w*r[d]))/1e3,l[4*d+2]=e.round(1e3*(k*t[d]+T*i[d]+_*n[d]+O*r[d]))/1e3,l[4*d+3]=e.round(1e3*(I*t[d]+M*i[d]+P*n[d]+E*r[d]))/1e3;return l},getPointInSegment:function(t,r,i,n,o,a){var l=s(o,a),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*i[0]+(l*l*c+c*l*l+l*c*l)*n[0]+l*l*l*r[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*i[1]+(l*l*c+c*l*l+l*c*l)*n[1]+l*l*l*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(r,i,n,o,a,s,l,c,d){if(0===n&&0===s&&0===d)return t(r,i,o,a,l,c);var p,g=e.sqrt(e.pow(o-r,2)+e.pow(a-i,2)+e.pow(s-n,2)),u=e.sqrt(e.pow(l-r,2)+e.pow(c-i,2)+e.pow(d-n,2)),h=e.sqrt(e.pow(l-o,2)+e.pow(c-a,2)+e.pow(d-s,2));return(p=g>u?g>h?g-u-h:h-u-g:h>u?h-u-g:u-g-h)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var n,o,a,s,l,c,d,p,g,u=t.lastIndex,h=u,m=this.keyframes.length-1,f=!0;f;){if(n=this.keyframes[h],o=this.keyframes[h+1],h===m-1&&e>=o.t-i){n.h&&(n=o),u=0;break}if(o.t-i>e){u=h;break}h<m-1?h+=1:(u=0,f=!1)}a=this.keyframesMetadata[h]||{};var y,b=o.t-i,C=n.t-i;if(n.to){a.bezierData||(a.bezierData=bez.buildBezierData(n.s,o.s||n.e,n.to,n.ti));var x=a.bezierData;if(e>=b||e<C){var v=e>=b?x.points.length-1:0;for(l=x.points[v].point.length,s=0;s<l;s+=1)r[s]=x.points[v].point[s]}else{a.__fnct?g=a.__fnct:(g=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,a.__fnct=g),c=g((e-C)/(b-C));var S,w=x.segmentLength*c,k=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastPoint:0,f=!0,d=x.points.length;f;){if(k+=x.points[p].partialLength,0===w||0===c||p===x.points.length-1){for(l=x.points[p].point.length,s=0;s<l;s+=1)r[s]=x.points[p].point[s];break}if(w>=k&&w<k+x.points[p+1].partialLength){for(S=(w-k)/x.points[p+1].partialLength,l=x.points[p].point.length,s=0;s<l;s+=1)r[s]=x.points[p].point[s]+(x.points[p+1].point[s]-x.points[p].point[s])*S;break}p<d-1?p+=1:f=!1}t._lastPoint=p,t._lastAddedLength=k-x.points[p].partialLength,t._lastKeyframeIndex=h}}else{var T,_,O,I,M;if(m=n.s.length,y=o.s||n.e,this.sh&&1!==n.h)e>=b?(r[0]=y[0],r[1]=y[1],r[2]=y[2]):e<=C?(r[0]=n.s[0],r[1]=n.s[1],r[2]=n.s[2]):quaternionToEuler(r,slerp(createQuaternion(n.s),createQuaternion(y),(e-C)/(b-C)));else for(h=0;h<m;h+=1)1!==n.h&&(e>=b?c=1:e<C?c=0:(n.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[h]?g=a.__fnct[h]:(T=void 0===n.o.x[h]?n.o.x[0]:n.o.x[h],_=void 0===n.o.y[h]?n.o.y[0]:n.o.y[h],O=void 0===n.i.x[h]?n.i.x[0]:n.i.x[h],I=void 0===n.i.y[h]?n.i.y[0]:n.i.y[h],g=BezierFactory.getBezierEasing(T,_,O,I).get,a.__fnct[h]=g)):a.__fnct?g=a.__fnct:(T=n.o.x,_=n.o.y,O=n.i.x,I=n.i.y,g=BezierFactory.getBezierEasing(T,_,O,I).get,n.keyframeMetadata=g),c=g((e-C)/(b-C)))),y=o.s||n.e,M=1===n.h?n.s[h]:n.s[h]+(y[h]-n.s[h])*c,"multidimensional"===this.propType?r[h]=M:r=M}return t.lastIndex=u,r}function slerp(e,t,r){var i,n,o,a,s,l=[],c=e[0],d=e[1],p=e[2],g=e[3],u=t[0],h=t[1],m=t[2],f=t[3];return(n=c*u+d*h+p*m+g*f)<0&&(n=-n,u=-u,h=-h,m=-m,f=-f),1-n>1e-6?(i=Math.acos(n),o=Math.sin(i),a=Math.sin((1-r)*i)/o,s=Math.sin(r*i)/o):(a=1-r,s=r),l[0]=a*c+s*u,l[1]=a*d+s*h,l[2]=a*p+s*m,l[3]=a*g+s*f,l}function quaternionToEuler(e,t){var r=t[0],i=t[1],n=t[2],o=t[3],a=Math.atan2(2*i*o-2*r*n,1-2*i*i-2*n*n),s=Math.asin(2*r*i+2*n*o),l=Math.atan2(2*r*o-2*i*n,1-2*r*r-2*n*n);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,n=Math.cos(t/2),o=Math.cos(r/2),a=Math.cos(i/2),s=Math.sin(t/2),l=Math.sin(r/2),c=Math.sin(i/2);return[s*l*a+n*o*c,s*o*a+n*l*c,n*l*a-s*o*c,n*o*a-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,i){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.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(e,t,r,i){var n;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),n=0;n<o;n+=1)this.v[n]=t.k[n]*this.mult,this.pv[n]=t.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.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(e,t,r,i){var n;this.propType="multidimensional";var o,a,s,l,c=t.k.length;for(n=0;n<c-1;n+=1)t.k[n].to&&t.k[n].s&&t.k[n+1]&&t.k[n+1].s&&(o=t.k[n].s,a=t.k[n+1].s,s=t.k[n].to,l=t.k[n].ti,(2===o.length&&(o[0]!==a[0]||o[1]!==a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+s[0],o[1]+s[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===o.length&&(o[0]!==a[0]||o[1]!==a[1]||o[2]!==a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+s[0],o[1]+s[1],o[2]+s[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[n].to=null,t.k[n].ti=null),o[0]===a[0]&&o[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===o.length||o[2]===a[2]&&0===s[2]&&0===l[2])&&(t.k[n].to=null,t.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var d=t.k[0].s.length;for(this.v=createTypedArray("float32",d),this.pv=createTypedArray("float32",d),n=0;n<d;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",d)},this.addEffect=addEffect}var PropertyFactory=(ob={getProp:function(e,t,r,i,n){var o;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])o=new MultiDimensionalProperty(e,t,i,n);else switch(r){case 0:o=new KeyframedValueProperty(e,t,i,n);break;case 1:o=new KeyframedMultidimensionalProperty(e,t,i,n)}else o=new ValueProperty(e,t,i,n);return o.effectsSequence.length&&n.addDynamicProperty(o),o}},ob),ob;function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,i,n){var o;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[i]||o[i]&&!n)&&(o[i]=pointPool.newElement()),o[i][0]=e,o[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,i,n,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(r,i,"o",a,s),this.setXYAt(n,o,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,i=this.i,n=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var o,a=this._length-1,s=this._length;for(o=n;o<s;o+=1)e.setTripleAt(t[a][0],t[a][1],i[a][0],i[a][1],r[a][0],r[a][1],o,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}),factory.clone=function(e){var t,r=factory.newElement(),i=void 0===e._length?e.v.length:e._length;for(r.setLength(i),r.c=e.c,t=0;t<i;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:function(){return t?i[t-=1]:new ShapeCollection},release:function(e){var n,o=e._length;for(n=0;n<o;n+=1)shapePool.release(e.shapes[n]);e._length=0,t===r&&(i=pooling.double(i),r*=2),i[t]=e,t+=1}},t=0,r=4,i=createSizedArray(r);return e}(),ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var i,n,o,a,s,l,c,d,p,g=r.lastIndex,u=this.keyframes;if(e<u[0].t-this.offsetTime)i=u[0].s[0],o=!0,g=0;else if(e>=u[u.length-1].t-this.offsetTime)i=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],o=!0;else{for(var h,m,f,y=g,b=u.length-1,C=!0;C&&(h=u[y],!((m=u[y+1]).t-this.offsetTime>e));)y<b-1?y+=1:C=!1;if(f=this.keyframesMetadata[y]||{},g=y,!(o=1===h.h)){if(e>=m.t-this.offsetTime)d=1;else if(e<h.t-this.offsetTime)d=0;else{var x;f.__fnct?x=f.__fnct:(x=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,f.__fnct=x),d=x((e-(h.t-this.offsetTime))/(m.t-this.offsetTime-(h.t-this.offsetTime)))}n=m.s?m.s[0]:h.e[0]}i=h.s[0]}for(l=t._length,c=i.i[0].length,r.lastIndex=g,a=0;a<l;a+=1)for(s=0;s<c;s+=1)p=o?i.i[a][s]:i.i[a][s]+(n.i[a][s]-i.i[a][s])*d,t.i[a][s]=p,p=o?i.o[a][s]:i.o[a][s]+(n.o[a][s]-i.o[a][s])*d,t.o[a][s]=p,p=o?i.v[a][s]:i.v[a][s]+(n.v[a][s]-i.v[a][s])*d,t.v[a][s]=p}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==e&&(n<r&&t<r||n>i&&t>i)||(this._caching.lastIndex=n<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function i(){this.paths=this.localShapeCollection}function n(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,i=e._length;for(r=0;r<i;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===r?t.pt.k:t.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=i,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,n,o){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===o?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=o,a.prototype.setVValue=n,a.prototype.addEffect=s,l.prototype.getValue=o,l.prototype.interpolateShape=t,l.prototype.setVValue=n,l.prototype.addEffect=s;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=r-n,a.v[1][0]=o?t+i:t-i,a.v[1][1]=r,a.v[2][0]=t,a.v[2][1]=r+n,a.v[3][0]=o?t-i:t+i,a.v[3][1]=r,a.i[0][0]=o?t-i*e:t+i*e,a.i[0][1]=r-n,a.i[1][0]=o?t+i:t-i,a.i[1][1]=r-n*e,a.i[2][0]=o?t+i*e:t-i*e,a.i[2][1]=r+n,a.i[3][0]=o?t-i:t+i,a.i[3][1]=r+n*e,a.o[0][0]=o?t+i*e:t-i*e,a.o[0][1]=r-n,a.o[1][0]=o?t+i:t-i,a.o[1][1]=r+n*e,a.o[2][0]=o?t-i*e:t+i*e,a.o[2][1]=r+n,a.o[3][0]=o?t-i:t+i,a.o[3][1]=r-n*e}},extendPrototype([DynamicPropertyContainer],t),t}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,i,n=2*Math.floor(this.pt.v),o=2*Math.PI/n,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,d=this.is.v,p=2*Math.PI*s/(2*n),g=2*Math.PI*l/(2*n),u=-Math.PI/2;u+=this.r.v;var h=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<n;e+=1){r=a?c:d,i=a?p:g;var m=(t=a?s:l)*Math.cos(u),f=t*Math.sin(u),y=0===m&&0===f?0:f/Math.sqrt(m*m+f*f),b=0===m&&0===f?0:-m/Math.sqrt(m*m+f*f);m+=+this.p.v[0],f+=+this.p.v[1],this.v.setTripleAt(m,f,m-y*i*r*h,f-b*i*r*h,m+y*i*r*h,f+b*i*r*h,e,!0),a=!a,u+=o*h}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,i=this.or.v,n=this.os.v,o=2*Math.PI*i/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=i*Math.cos(a),c=i*Math.sin(a),d=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),p=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-d*o*n*s,c-p*o*n*s,l+d*o*n*s,c+p*o*n*s,e,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,n=bmMin(r,i,this.r.v),o=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-i+n,e+r,t-i+n,e+r,t-i+o,0,!0),this.v.setTripleAt(e+r,t+i-n,e+r,t+i-o,e+r,t+i-n,1,!0),0!==n?(this.v.setTripleAt(e+r-n,t+i,e+r-n,t+i,e+r-o,t+i,2,!0),this.v.setTripleAt(e-r+n,t+i,e-r+o,t+i,e-r+n,t+i,3,!0),this.v.setTripleAt(e-r,t+i-n,e-r,t+i-n,e-r,t+i-o,4,!0),this.v.setTripleAt(e-r,t-i+n,e-r,t-i+o,e-r,t-i+n,5,!0),this.v.setTripleAt(e-r+n,t-i,e-r+n,t-i,e-r+o,t-i,6,!0),this.v.setTripleAt(e+r-n,t-i,e+r-o,t-i,e+r-n,t-i,7,!0)):(this.v.setTripleAt(e-r,t+i,e-r+o,t+i,e-r,t+i,2),this.v.setTripleAt(e-r,t-i,e-r,t-i+o,e-r,t-i,3))):(this.v.setTripleAt(e+r,t-i+n,e+r,t-i+o,e+r,t-i+n,0,!0),0!==n?(this.v.setTripleAt(e+r-n,t-i,e+r-n,t-i,e+r-o,t-i,1,!0),this.v.setTripleAt(e-r+n,t-i,e-r+o,t-i,e-r+n,t-i,2,!0),this.v.setTripleAt(e-r,t-i+n,e-r,t-i+n,e-r,t-i+o,3,!0),this.v.setTripleAt(e-r,t+i-n,e-r,t+i-o,e-r,t+i-n,4,!0),this.v.setTripleAt(e-r+n,t+i,e-r+n,t+i,e-r+o,t+i,5,!0),this.v.setTripleAt(e+r-n,t+i,e+r-o,t+i,e+r-n,t+i,6,!0),this.v.setTripleAt(e+r,t+i-n,e+r,t+i-n,e+r,t+i-o,7,!0)):(this.v.setTripleAt(e-r,t-i,e-r+o,t-i,e-r,t-i,1,!0),this.v.setTripleAt(e-r,t+i,e-r,t+i-o,e-r,t+i,2,!0),this.v.setTripleAt(e+r,t+i,e+r-o,t+i,e+r,t+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],e),e}(),g={getShapeProp:function(e,t,r){var i;return 3===r||4===r?i=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new a(e,t,r):5===r?i=new p(e,t):6===r?i=new c(e,t):7===r&&(i=new d(e,t)),i.k&&e.addDynamicProperty(i),i},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return g}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,i=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 o(r){if(0===r)return this;var i=e(r),n=t(r);return this._t(i,-n,0,0,n,i,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var i=e(r),n=t(r);return this._t(1,0,0,0,0,i,-n,0,0,n,i,0,0,0,0,1)}function s(r){if(0===r)return this;var i=e(r),n=t(r);return this._t(i,0,n,0,0,1,0,0,-n,0,i,0,0,0,0,1)}function l(r){if(0===r)return this;var i=e(r),n=t(r);return this._t(i,-n,0,0,n,i,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function d(e,t){return this.shear(r(e),r(t))}function p(i,n){var o=e(n),a=t(n);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(i),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function g(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function u(e,t,r,i,n,o,a,s,l,c,d,p,g,u,h,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=i,this.props[4]=n,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=d,this.props[11]=p,this.props[12]=g,this.props[13]=u,this.props[14]=h,this.props[15]=m,this}function h(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function m(e,t,r,i,n,o,a,s,l,c,d,p,g,u,h,m){var f=this.props;if(1===e&&0===t&&0===r&&0===i&&0===n&&1===o&&0===a&&0===s&&0===l&&0===c&&1===d&&0===p)return f[12]=f[12]*e+f[15]*g,f[13]=f[13]*o+f[15]*u,f[14]=f[14]*d+f[15]*h,f[15]*=m,this._identityCalculated=!1,this;var y=f[0],b=f[1],C=f[2],x=f[3],v=f[4],S=f[5],w=f[6],k=f[7],T=f[8],_=f[9],O=f[10],I=f[11],M=f[12],P=f[13],E=f[14],L=f[15];return f[0]=y*e+b*n+C*l+x*g,f[1]=y*t+b*o+C*c+x*u,f[2]=y*r+b*a+C*d+x*h,f[3]=y*i+b*s+C*p+x*m,f[4]=v*e+S*n+w*l+k*g,f[5]=v*t+S*o+w*c+k*u,f[6]=v*r+S*a+w*d+k*h,f[7]=v*i+S*s+w*p+k*m,f[8]=T*e+_*n+O*l+I*g,f[9]=T*t+_*o+O*c+I*u,f[10]=T*r+_*a+O*d+I*h,f[11]=T*i+_*s+O*p+I*m,f[12]=M*e+P*n+E*l+L*g,f[13]=M*t+P*o+E*c+L*u,f[14]=M*r+P*a+E*d+L*h,f[15]=M*i+P*s+E*p+L*m,this._identityCalculated=!1,this}function f(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){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(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function C(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function x(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function v(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function S(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function w(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function k(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function T(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,i=-this.props[4]/e,n=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=i,s.props[5]=n,s.props[12]=o,s.props[13]=a,s}function _(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function O(e){var t,r=e.length,i=[];for(t=0;t<r;t+=1)i[t]=_(e[t]);return i}function I(e,t,r){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=e[0],i[1]=e[1],i[2]=t[0],i[3]=t[1],i[4]=r[0],i[5]=r[1];else{var n=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];i[0]=e[0]*n+e[1]*a+l,i[1]=e[0]*o+e[1]*s+c,i[2]=t[0]*n+t[1]*a+l,i[3]=t[0]*o+t[1]*s+c,i[4]=r[0]*n+r[1]*a+l,i[5]=r[0]*o+r[1]*s+c}return i}function M(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function P(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function E(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=i(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function L(e){return e<1e-6&&e>0||e>-1e-6&&e<0?i(1e4*e)/1e4:e}function z(){var e=this.props;return"matrix("+L(e[0])+","+L(e[1])+","+L(e[4])+","+L(e[5])+","+L(e[12])+","+L(e[13])+")"}return function(){this.reset=n,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=d,this.skewFromAxis=p,this.shear=c,this.scale=g,this.setTransform=u,this.translate=h,this.transform=m,this.multiply=f,this.applyToPoint=v,this.applyToX=S,this.applyToY=w,this.applyToZ=k,this.applyToPointArray=M,this.applyToTriplePoints=I,this.applyToPointStringified=P,this.toCSS=E,this.to2dCSS=z,this.clone=C,this.cloneFromProps=x,this.equals=b,this.inversePoints=O,this.inversePoint=_,this.getInverseMatrix=T,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var i=t[r].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[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(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,i){return new t[e](r,i)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,i,n){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var a,s,l=[],c=o.length;for(a=0;a<c;a+=1){var d,p;(s=o[a]).e*n<i||s.s*n>i+r||(d=s.s*n<=i?0:(s.s*n-i)/r,p=s.e*n>=i+r?1:(s.e*n-i)/r,l.push([d,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,i,n;if(this._mdf||e){var o=this.o.v%360/360;if(o<0&&(o+=1),(t=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(r=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=t;t=r,r=a}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,l,c,d,p,g=this.shapes.length,u=0;if(r===t)for(n=0;n<g;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===r&&0===t||0===r&&1===t){if(this._mdf)for(n=0;n<g;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var h,m,f=[];for(n=0;n<g;n+=1)if((h=this.shapes[n]).shape._mdf||this._mdf||e||2===this.m){if(l=(i=h.shape.paths)._length,p=0,!h.shape._mdf&&h.pathsData.length)p=h.totalShapeLength;else{for(c=this.releasePathsData(h.pathsData),s=0;s<l;s+=1)d=bez.getSegmentsLength(i.shapes[s]),c.push(d),p+=d.totalLength;h.totalShapeLength=p,h.pathsData=c}u+=p,h.shape._mdf=!0}else h.shape.paths=h.localShapeCollection;var y,b=t,C=r,x=0;for(n=g-1;n>=0;n-=1)if((h=this.shapes[n]).shape._mdf){for((m=h.localShapeCollection).releaseShapes(),2===this.m&&g>1?(y=this.calculateShapeEdges(t,r,h.totalShapeLength,x,u),x+=h.totalShapeLength):y=[[b,C]],l=y.length,s=0;s<l;s+=1){b=y[s][0],C=y[s][1],f.length=0,C<=1?f.push({s:h.totalShapeLength*b,e:h.totalShapeLength*C}):b>=1?f.push({s:h.totalShapeLength*(b-1),e:h.totalShapeLength*(C-1)}):(f.push({s:h.totalShapeLength*b,e:h.totalShapeLength}),f.push({s:0,e:h.totalShapeLength*(C-1)}));var v=this.addShapes(h,f[0]);if(f[0].s!==f[0].e){if(f.length>1)if(h.shape.paths.shapes[h.shape.paths._length-1].c){var S=v.pop();this.addPaths(v,m),v=this.addShapes(h,f[1],S)}else this.addPaths(v,m),v=this.addShapes(h,f[1]);this.addPaths(v,m)}}h.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,i,n,o,a){n.setXYAt(t[0],t[1],"o",o),n.setXYAt(r[0],r[1],"i",o+1),a&&n.setXYAt(e[0],e[1],"v",o),n.setXYAt(i[0],i[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,i){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),i&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var i,n,o,a,s,l,c,d,p=e.pathsData,g=e.shape.paths.shapes,u=e.shape.paths._length,h=0,m=[],f=!0;for(r?(s=r._length,d=r._length):(r=shapePool.newElement(),s=0,d=0),m.push(r),i=0;i<u;i+=1){for(l=p[i].lengths,r.c=g[i].c,o=g[i].c?l.length:l.length+1,n=1;n<o;n+=1)if(h+(a=l[n-1]).addedLength<t.s)h+=a.addedLength,r.c=!1;else{if(h>t.e){r.c=!1;break}t.s<=h&&t.e>=h+a.addedLength?(this.addSegment(g[i].v[n-1],g[i].o[n-1],g[i].i[n],g[i].v[n],r,s,f),f=!1):(c=bez.getNewSegment(g[i].v[n-1],g[i].v[n],g[i].o[n-1],g[i].i[n],(t.s-h)/a.addedLength,(t.e-h)/a.addedLength,l[n-1]),this.addSegmentFromArray(c,r,s,f),f=!1,r.c=!1),h+=a.addedLength,s+=1}if(g[i].c&&l.length){if(a=l[n-1],h<=t.e){var y=l[n-1].addedLength;t.s<=h&&t.e>=h+y?(this.addSegment(g[i].v[n-1],g[i].o[n-1],g[i].i[0],g[i].v[0],r,s,f),f=!1):(c=bez.getNewSegment(g[i].v[n-1],g[i].v[0],g[i].o[n-1],g[i].i[0],(t.s-h)/y,(t.e-h)/y,l[n-1]),this.addSegmentFromArray(c,r,s,f),f=!1,r.c=!1)}else r.c=!1;h+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[d][0],r.v[d][1],"i",d),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),h>t.e)break;i<u-1&&(r=shapePool.newElement(),f=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,i=[0,0],n=e._length,o=0;for(o=0;o<n;o+=1)i[0]+=e.v[o][0],i[1]+=e.v[o][1];i[0]/=n,i[1]/=n;var a,s,l,c,d,p,g=shapePool.newElement();for(g.c=e.c,o=0;o<n;o+=1)a=e.v[o][0]+(i[0]-e.v[o][0])*r,s=e.v[o][1]+(i[1]-e.v[o][1])*r,l=e.o[o][0]+(i[0]-e.o[o][0])*-r,c=e.o[o][1]+(i[1]-e.o[o][1])*-r,d=e.i[o][0]+(i[0]-e.i[o][0])*-r,p=e.i[o][1]+(i[1]-e.i[o][1])*-r,g.setTripleAt(a,s,l,c,d,p,o);return g},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,i,n,o,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,n=o.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(t[i],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var i,n=t.or.k.length;for(i=0;i<n;i+=1)t.or.k[i].to=null,t.or.k[i].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,n;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],n=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(i[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),n[0]=o.getValueAtTime(o.keyframes[0].t/r,0),n[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(i[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),n[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[o.pv,a.pv],n[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=n=e;this.v.rotate(-Math.atan2(i[1]-n[1],i[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],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,i){return new t(e,r,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var i=t*t-4*e*r;if(i<0)return[];var n=-t/(2*e);if(0===i)return[n];var o=Math.sqrt(i)/(2*e);return[n-o,n+o]}function polynomialCoefficients(e,t,r,i){return[3*t-e-3*r+i,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,i,n){n&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),n&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var o=polynomialCoefficients(e[0],t[0],r[0],i[0]),a=polynomialCoefficients(e[1],t[1],r[1],i[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[e,t,r,i]}function extrema(e,t){var r=e.points[0][t],i=e.points[e.points.length-1][t];if(r>i){var n=i;i=r,r=n}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=e.point(o[a])[t];s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function intersectData(e,t,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,i,n,o){if(boxIntersect(e,t))if(r>=o||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i)n.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],r+1,i,n,o),intersectsImpl(a[0],s[1],r+1,i,n,o),intersectsImpl(a[1],s[0],r+1,i,n,o),intersectsImpl(a[1],s[1],r+1,i,n,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,i){var n=[e[0],e[1],1],o=[t[0],t[1],1],a=[r[0],r[1],1],s=[i[0],i[1],1],l=crossProduct(crossProduct(n,o),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,i,n,o,a){var s=r-Math.PI/2,l=r+Math.PI/2,c=t[0]+Math.cos(r)*i*n,d=t[1]-Math.sin(r)*i*n;e.setTripleAt(c,d,c+Math.cos(s)*o,d-Math.sin(s)*o,c+Math.cos(l)*a,d-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],i=.5*-Math.PI;return[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,i=(t+1)%e.length(),n=getPerpendicularVector(e.v[r],e.v[i]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(e,t,r,i,n,o,a){var s=getProjectingAngle(t,r),l=t.v[r%t._length],c=t.v[0===r?t._length-1:r-1],d=t.v[(r+1)%t._length],p=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,g=2===o?Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)):0;setPoint(e,t.v[r%t._length],s,a,i,g/(2*(n+1)),p/(2*(n+1)))}function zigZagSegment(e,t,r,i,n,o){for(var a=0;a<i;a+=1){var s=(a+1)/(i+1),l=2===n?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);setPoint(e,t.point(s),c,o,r,l/(2*(i+1)),l/(2*(i+1))),o=-o}return o}function linearOffset(e,t,r){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,r),polarOffset(t,i,r)]}function offsetSegment(e,t){var r,i,n,o,a,s,l;r=(l=linearOffset(e.points[0],e.points[1],t))[0],i=l[1],n=(l=linearOffset(e.points[1],e.points[2],t))[0],o=l[1],a=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(r,i,n,o);null===c&&(c=i);var d=lineIntersection(a,s,n,o);return null===d&&(d=a),new PolynomialBezier(r,c,d,s)}function joinLines(e,t,r,i,n){var o=t.points[3],a=r.points[0];if(3===i)return o;if(pointEqual(o,a))return o;if(2===i){var s=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),d=c?pointDistance(c,o):pointDistance(o,a)/2,p=polarOffset(o,s,2*d*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(a,l,2*d*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],p[0],p[1],e.length()),a}var g=lineIntersection(pointEqual(o,t.points[2])?t.points[0]:t.points[2],o,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return g&&pointDistance(g,o)<n?(e.setTripleAt(g[0],g[1],g[0],g[1],g[0],g[1],e.length()),g):o}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),i=t.slice(),n=getIntersection(e[e.length-1],t[0]);return n&&(r[e.length-1]=e[e.length-1].split(n[0])[0],i[0]=t[0].split(n[1])[1]),e.length>1&&t.length>1&&(n=getIntersection(e[0],t[t.length-1]))?[[e[0].split(n[0])[0]],[t[t.length-1].split(n[1])[1]]]:[r,i]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,i,n,o,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return r=(n=e.split(a[0]))[0],i=n[1],[offsetSegment(r,t),offsetSegment(i,t)];r=(n=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(n=n[1].split(s))[0],i=n[1],[offsetSegment(r,t),offsetSegment(o,t),offsetSegment(i,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",n=t.length,o=0;o<n;o+=1)switch(t[o].toLowerCase()){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:i,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,i,n,o){var a=o?-1:1,s=i.s.v[0]+(1-i.s.v[0])*(1-n),l=i.s.v[1]+(1-i.s.v[1])*(1-n);e.translate(i.p.v[0]*a*n,i.p.v[1]*a*n,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*a*n),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(o?1/s:s,o?1/l:l),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,i){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,i,n,o,a=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.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,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,i=0;i<=this._groups.length-1;i+=1){if(s=o<l,this._groups[i]._render=s,this.changeGroupRender(this._groups[i].it,s),!s){var d=this.elemsData[i].it,p=d[d.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}o+=1}this._currentCopies=l;var g=this.o.v,u=g%1,h=g>0?Math.floor(g):Math.ceil(g),m=this.pMatrix.props,f=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b,C,x=0;if(g>0){for(;x<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),x+=u)}else if(g<0){for(;x>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),x-=u)}for(i=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,o=this._currentCopies;o;){if(C=(r=(t=this.elemsData[i].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==x){for((0!==i&&1===n||i!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),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(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<C;b+=1)r[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<C;b+=1)r[b]=this.matrix.props[b];x+=1,o-=1,i+=n}}else for(o=this._currentCopies,i=0,n=1;o;)r=(t=this.elemsData[i].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,i+=n;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,i=shapePool.newElement();i.c=e.c;var n,o,a,s,l,c,d,p,g,u,h,m,f=e._length,y=0;for(r=0;r<f;r+=1)n=e.v[r],a=e.o[r],o=e.i[r],n[0]===a[0]&&n[1]===a[1]&&n[0]===o[0]&&n[1]===o[1]?0!==r&&r!==f-1||e.c?(s=0===r?e.v[f-1]:e.v[r-1],c=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=h=n[0]+(s[0]-n[0])*c,p=m=n[1]-(n[1]-s[1])*c,g=d-(d-n[0])*roundCorner,u=p-(p-n[1])*roundCorner,i.setTripleAt(d,p,g,u,h,m,y),y+=1,s=r===f-1?e.v[0]:e.v[r+1],c=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=g=n[0]+(s[0]-n[0])*c,p=u=n[1]+(s[1]-n[1])*c,h=d-(d-n[0])*roundCorner,m=p-(p-n[1])*roundCorner,i.setTripleAt(d,p,g,u,h,m,y),y+=1):(i.setTripleAt(n[0],n[1],a[0],a[1],o[0],o[1],y),y+=1):(i.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],y),y+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var t,r,i,n,o,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,n=o.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(t[i],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),n=lerpPoint(t,r,e),o=lerpPoint(r,i,e),a=lerpPoint(n,o,e);return[new PolynomialBezier(this.points[0],t,n,a,!0),new PolynomialBezier(a,o,i,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,r),i},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.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(e,t,r,i){var n=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(n-=1),0===n)return o;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,r,i,a);for(var l=0;l<n;l+=1)a=zigZagSegment(o,s,t,r,i,-a),s=l!==n-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%n):null,zigZagCorner(o,e,l+1,t,r,i,a);return o},ZigZagModifier.prototype.processShapes=function(e){var t,r,i,n,o,a,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),d=this.pointsType.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,n=o.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(t[i],l,c,d));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,i){var n=shapePool.newElement();n.c=e.c;var o,a,s,l=e.length();e.c||(l-=1);var c=[];for(o=0;o<l;o+=1)s=PolynomialBezier.shapeSegment(e,o),c.push(offsetSegmentSplit(s,t));if(!e.c)for(o=l-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(e,o),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var d=null,p=null;for(o=0;o<c.length;o+=1){var g=c[o];for(p&&(d=joinLines(n,p,g[0],r,i)),p=g[g.length-1],a=0;a<g.length;a+=1)s=g[a],d&&pointEqual(s.points[0],d)?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()),d=s.points[3]}return c.length&&joinLines(n,p,c[0][0],r,i),n},OffsetPathModifier.prototype.processShapes=function(e){var t,r,i,n,o,a,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,d=this.lineJoin;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,n=o.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(t[i],l,d,c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var i=createTag("span");i.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(i),document.body.appendChild(r);var n=i.offsetWidth;return i.style.fontFamily=function(e){var t,r=e.split(","),i=r.length,n=[];for(t=0;t<i;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&n.push(r[t]);return n.join(",")}(e)+", "+t,{node:i,w:n,parent:r}}function o(e,t){var r,i=document.body&&t?"svg":"canvas",n=getFontProperties(e);if("svg"===i){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",e.fFamily),o.setAttribute("font-style",n.style),o.setAttribute("font-weight",n.weight),o.textContent="1",e.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",e.fClass)):o.style.fontFamily=e.fFamily,t.appendChild(o),r=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=n.style+" "+n.weight+" 100px "+e.fFamily,r=a}return{measureText:function(e){return"svg"===i?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function a(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var i=e.charCodeAt(1);i>=56320&&i<=57343&&(t=1024*(r-55296)+i-56320+65536)}return t}function s(e){var t=a(e);return t>=127462&&t<=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(e,t){var r=e.toString(16)+t.toString(16);return-1!==i.indexOf(r)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var i=a(e.substr(t,2));if(i!==r)return!1;var n=0;for(t+=2;n<5;){if((i=a(e.substr(t,2)))<917601||i>917626)return!1;n+=1,t+=2}return 917631===a(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=r;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,i,n=e.length,o=this.chars.length;for(t=0;t<n;t+=1){for(r=0,i=!1;r<o;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(i=!0),r+=1;i||(this.chars.push(e[t]),o+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach(function(e){e.helper=o(e),e.cache={}}),void(this.fonts=e.list);var r,i=e.list,a=i.length,s=a;for(r=0;r<a;r+=1){var l,c,d=!0;if(i[r].loaded=!1,i[r].monoCase=n(i[r].fFamily,"monospace"),i[r].sansCase=n(i[r].fFamily,"sans-serif"),i[r].fPath){if("p"===i[r].fOrigin||3===i[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[r].fFamily+'"], style[f-origin="3"][f-family="'+i[r].fFamily+'"]')).length>0&&(d=!1),d){var p=createTag("style");p.setAttribute("f-forigin",i[r].fOrigin),p.setAttribute("f-origin",i[r].origin),p.setAttribute("f-family",i[r].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+i[r].fFamily+"; font-style: normal; src: url('"+i[r].fPath+"');}",t.appendChild(p)}}else if("g"===i[r].fOrigin||1===i[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(i[r].fPath)&&(d=!1);if(d){var g=createTag("link");g.setAttribute("f-forigin",i[r].fOrigin),g.setAttribute("f-origin",i[r].origin),g.type="text/css",g.rel="stylesheet",g.href=i[r].fPath,document.body.appendChild(g)}}else if("t"===i[r].fOrigin||2===i[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)i[r].fPath===l[c].src&&(d=!1);if(d){var u=createTag("link");u.setAttribute("f-forigin",i[r].fOrigin),u.setAttribute("f-origin",i[r].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",i[r].fPath),t.appendChild(u)}}}else i[r].loaded=!0,s-=1;i[r].helper=o(i[r],t),i[r].cache={},this.fonts.push(i[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,i){for(var n=0,o=this.chars.length;n<o;){if(this.chars[n].ch===t&&this.chars[n].style===r&&this.chars[n].fFamily===i)return this.chars[n];n+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,i)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var i=this.getFontByName(t),n=e;if(!i.cache[n]){var o=i.helper;if(" "===e){var a=o.measureText("|"+e+"|"),s=o.measureText("||");i.cache[n]=(a-s)/100}else i.cache[n]=o.measureText(e)/100}return i.cache[n]*r},checkLoadedFonts:function(){var e,t,r,i=this.fonts.length,n=i;for(e=0;e<i;e+=1)this.fonts[e].loaded?n-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(n-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(n-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=c,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,i=e.ef||[];this.effectElements=[];var n,o=i.length;for(r=0;r<o;r+=1)n=new GroupEffect(i[r],t),this.effectElements.push(n)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var i,n=this.data.ef.length,o=this.data.ef;for(r=0;r<n;r+=1){switch(i=null,o[r].ty){case 0:i=new SliderEffect(o[r],t,this);break;case 1:i=new AngleEffect(o[r],t,this);break;case 2:i=new ColorEffect(o[r],t,this);break;case 3:i=new PointEffect(o[r],t,this);break;case 4:case 7:i=new CheckboxEffect(o[r],t,this);break;case 10:i=new LayerIndexEffect(o[r],t,this);break;case 11:i=new MaskIndexEffect(o[r],t,this);break;case 5:i=new EffectsManager(o[r],t);break;default:i=new NoValueEffect(o[r])}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),i=e("shape"),n=e("text"),o=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=i(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 e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},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 e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,i=this.layers.length;for(this.completeLayers=!0,t=i-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,i=e.length,n=this.layers.length;for(t=0;t<i;t+=1)for(r=0;r<n;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var i=this.elements,n=this.layers,o=0,a=n.length;o<a;)n[o].ind==t&&(i[o]&&!0!==i[o]?(r.push(i[o]),i[o].setAsParent(),void 0!==n[o].parent?this.buildElementParenting(e,n[o].parent,r):e.setHierarchy(r)):(this.buildItem(o),this.addPendingElement(e))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.nm===r){t=this.elements[i];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,n,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,l,c,d,p,g,u=this.masksProperties,h=0,m=[],f=createElementID(),y="clipPath",b="clip-path";for(i=0;i<a;i+=1)if(("a"!==u[i].mode&&"n"!==u[i].mode||u[i].inv||100!==u[i].o.k||u[i].o.x)&&(y="mask",b="mask"),"s"!==u[i].mode&&"i"!==u[i].mode||0!==h?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),n=createNS("path"),"n"===u[i].mode)this.viewData[i]={op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),elem:n,lastPath:""},o.appendChild(n);else{var C;if(h+=1,n.setAttribute("fill","s"===u[i].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==u[i].x.k?(y="mask",b="mask",g=PropertyFactory.getProp(this.element,u[i].x,0,null,this.element),C=createElementID(),(d=createNS("filter")).setAttribute("id",C),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),d.appendChild(p),o.appendChild(d),n.setAttribute("stroke","s"===u[i].mode?"#000000":"#ffffff")):(p=null,g=null),this.storedData[i]={elem:n,x:g,expan:p,lastPath:"",lastOperator:"",filterId:C,lastRadius:0},"i"===u[i].mode){l=m.length;var x=createNS("g");for(s=0;s<l;s+=1)x.appendChild(m[s]);var v=createNS("mask");v.setAttribute("mask-type","alpha"),v.setAttribute("id",f+"_"+h),v.appendChild(n),o.appendChild(v),x.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+h+")"),m.length=0,m.push(x)}else m.push(n);u[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),invRect:c},this.viewData[i].prop.k||this.drawPath(u[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(y),a=m.length,i=0;i<a;i+=1)this.maskElement.appendChild(m[i]);h>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+f+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,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 e,t=this.finalTransform.mat,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<i;r+=1)t.multiply(this.hierarchy[r].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 e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var i=this.localTransforms[e].matrix;r.multiply(i)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)n*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&t.splice(0,0,n.finalTransform),n=n.comp):i=!1;var o,a=t.length;for(r=0;r<a;r+=1)o=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-o[0],e[1]-o[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(t=0;t<i;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var n=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),n.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var i,n,o=" M"+t.v[0][0]+","+t.v[0][1];for(n=t._length,i=1;i<n;i+=1)o+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[i][0]+","+t.i[i][1]+" "+t.v[i][0]+","+t.v[i][1];if(t.c&&n>1&&(o+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==o){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),r.elem.setAttribute("d",a)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,i="SourceGraphic",n=e.data.ef?e.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],t=0;t<n;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(r=new(0,registeredEffects$1[l].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,i),i=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=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 r=createNS("clipPath"),i=createNS("path");i.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(r.setAttribute("id",n),r.appendChild(i),this.globalData.defs.appendChild(r),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),o.appendChild(this.layerElement),this.transformedElement=o,e?e.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(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,i,n,o=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(i),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(i),a.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),r=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),r.appendChild(c);var d=createNS("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),c.appendChild(d),this.globalData.defs.appendChild(r);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()+"#"+t+")"),l.appendChild(p),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(i),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(p),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=o}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,i=t.length;r<i;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===e)return void(r[i].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var i=0,n=e.length;i<n;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,i){var n;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var o,a=t.length||0;for(n=0;n<a;n+=1)o=PropertyFactory.getProp(e,t[n].v,0,0,this),this.k=o.k||this.k,this.dataProps[n]={n:t[n].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var i=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,i=this.o.length/2;r<i;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,i,n=4*this.data.p;for(t=0;t<n;t+=1)r=t%4==0?100:255,i=Math.round(this.prop.v[t]*r),this.c[t]!==i&&(this.c[t]=i,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,t=4*this.data.p;t<n;t+=1)r=t%2==0?100:1,i=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==i&&(this.o[t-4*this.data.p]=i,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),i=createNS(1===t.t?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n,o,a,s=[];for(a=4*t.g.p,o=0;o<a;o+=4)n=createNS("stop"),i.appendChild(n),s.push(n);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,n,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),l=createElementID();o.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),n=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(i=4*e.g.p;i<n;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),d.push(r);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=o,this.ost=d,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,i){if(0===t)return"";var n,o=e.o,a=e.i,s=e.v,l=" M"+i.applyToPointStringified(s[0][0],s[0][1]);for(n=1;n<t;n+=1)l+=" C"+i.applyToPointStringified(o[n-1][0],o[n-1][1])+" "+i.applyToPointStringified(a[n][0],a[n][1])+" "+i.applyToPointStringified(s[n][0],s[n][1]);return r&&t&&(l+=" C"+i.applyToPointStringified(o[n-1][0],o[n-1][1])+" "+i.applyToPointStringified(a[0][0],a[0][1])+" "+i.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return l;case"gs":return s;case"st":return c;case"sh":case"el":case"rc":case"sr":return o;case"tr":return i;case"no":return n;default:return null}}};function i(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function n(){}function o(r,i,n){var o,a,s,l,c,d,p,g,u,h,m=i.styles.length,f=i.lvl;for(d=0;d<m;d+=1){if(l=i.sh._mdf||n,i.styles[d].lvl<f){for(g=t.reset(),u=f-i.styles[d].lvl,h=i.transformers.length-1;!l&&u>0;)l=i.transformers[h].mProps._mdf||l,u-=1,h-=1;if(l)for(u=f-i.styles[d].lvl,h=i.transformers.length-1;u>0;)g.multiply(i.transformers[h].mProps.v),u-=1,h-=1}else g=e;if(a=(p=i.sh.paths)._length,l){for(s="",o=0;o<a;o+=1)(c=p.shapes[o])&&c._length&&(s+=buildShapeString(c,c._length,c.c,g));i.caches[d]=s}else s=i.caches[d];i.styles[d].d+=!0===r.hd?"":s,i.styles[d]._mdf=l||i.styles[d]._mdf}}function a(e,t,r){var i=t.style;(t.c._mdf||r)&&i.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&i.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,r){l(e,t,r),c(0,t,r)}function l(e,t,r){var i,n,o,a,s,l=t.gf,c=t.g._hasOpacity,d=t.s.v,p=t.e.v;if(t.o._mdf||r){var g="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(g,t.o.v)}if(t.s._mdf||r){var u=1===e.t?"x1":"cx",h="x1"===u?"y1":"cy";l.setAttribute(u,d[0]),l.setAttribute(h,d[1]),c&&!t.g._collapsable&&(t.of.setAttribute(u,d[0]),t.of.setAttribute(h,d[1]))}if(t.g._cmdf||r){i=t.cst;var m=t.g.c;for(o=i.length,n=0;n<o;n+=1)(a=i[n]).setAttribute("offset",m[4*n]+"%"),a.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(c&&(t.g._omdf||r)){var f=t.g.o;for(o=(i=t.g._collapsable?t.cst:t.ost).length,n=0;n<o;n+=1)a=i[n],t.g._collapsable||a.setAttribute("offset",f[2*n]+"%"),a.setAttribute("stop-opacity",f[2*n+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)));var y=Math.atan2(p[1]-d[1],p[0]-d[0]),b=t.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var C=s*b,x=Math.cos(y+t.a.v)*C+d[0],v=Math.sin(y+t.a.v)*C+d[1];l.setAttribute("fx",x),l.setAttribute("fy",v),c&&!t.g._collapsable&&(t.of.setAttribute("fx",x),t.of.setAttribute("fy",v))}}function c(e,t,r){var i=t.style,n=t.d;n&&(n._mdf||r)&&n.dashStr&&(i.pElem.setAttribute("stroke-dasharray",n.dashStr),i.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),t.c&&(t.c._mdf||r)&&i.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&i.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(i.pElem.setAttribute("stroke-width",t.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",t.w.v))}return r}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,i,n,o){this.o=e,this.sw=t,this.sc=r,this.fc=i,this.m=n,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,i,n=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(r=0;r<o;r+=1){for(i=this.stylesList[r],s=!1,a.length=0,e=0;e<n;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(i)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,i=new SVGStyleData(e,t),n=i.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,i):"fl"===e.ty?r=new SVGFillStyleData(this,e,i):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,i)),"st"!==e.ty&&"gs"!==e.ty||(n.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),n.setAttribute("fill-opacity","0"),1===e.lj&&n.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&n.setAttribute("fill-rule","evenodd"),e.ln&&n.setAttribute("id",e.ln),e.cl&&n.setAttribute("class",e.cl),e.bm&&(n.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var i=4;"rc"===e.ty?i=5:"el"===e.ty?i=6:"sr"===e.ty&&(i=7);var n=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,i,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,i=this.stylesList.length;for(t=0;t<i;t+=1)-1!==r.indexOf(this.stylesList[t])||this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,i,n,o,a){var s,l,c,d,p,g,u=[].concat(o),h=e.length-1,m=[],f=[];for(s=h;s>=0;s-=1){if((g=this.searchProcessedElement(e[s]))?t[s]=r[g-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)g?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],n),e[s]._render&&t[s].style.pElem.parentNode!==i&&i.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(g)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,n+1,u,a),e[s]._render&&t[s].gr.parentNode!==i&&i.appendChild(t[s].gr)}else"tr"===e[s].ty?(g||(t[s]=this.createTransformElement(e[s],i)),d=t[s].transform,u.push(d)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(g||(t[s]=this.createShapeElement(e[s],u,n)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(g?(p=t[s]).closed=!1:((p=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=p,this.shapeModifiers.push(p)),f.push(p)):"rp"===e[s].ty&&(g?(p=t[s]).closed=!0:(p=ShapeModifiers.getModifier(e[s].ty),t[s]=p,p.init(this,e,s,t),this.shapeModifiers.push(p),a=!1),f.push(p));this.addProcessedElement(e[s],s+1)}for(h=m.length,s=0;s<h;s+=1)m[s].closed=!0;for(h=f.length,s=0;s<h;s+=1)f[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,i,n,o){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 a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,a=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)o=r!==this.keysIndex?this.effectsSequence[i](o,o.t):this.effectsSequence[i](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,i=[],n=0,o=e.length,a=!1,s=!1,l="";n<o;)a=s,s=!1,t=e.charCodeAt(n),l=e.charAt(n),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,n)?l=e.substr(n,14):(r=e.charCodeAt(n+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(l=e.substr(n,2),a=!0):l=FontManager.isFlagEmoji(e.substr(n,4))?e.substr(n,4):e.substr(n,2)):t>56319?(r=e.charCodeAt(n+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(i[i.length-1]+=l,a=!1):i.push(l),n+=l.length;return i},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,i,n,o,a,s,l=this.elem.globalData.fontManager,c=this.data,d=[],p=0,g=c.m.g,u=0,h=0,m=0,f=[],y=0,b=0,C=l.getFontByName(e.f),x=0,v=getFontProperties(C);e.fWeight=v.weight,e.fStyle=v.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var S,w=e.tr/1e3*e.finalSize;if(e.sz)for(var k,T,_=!0,O=e.sz[0],I=e.sz[1];_;){k=0,y=0,r=(T=this.buildFinalText(e.t)).length,w=e.tr/1e3*e.finalSize;var M=-1;for(t=0;t<r;t+=1)S=T[t].charCodeAt(0),i=!1," "===T[t]?M=t:13!==S&&3!==S||(y=0,i=!0,k+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(T[t],C.fStyle,C.fFamily),x=i?0:s.w*e.finalSize/100):x=l.measureText(T[t],e.f,e.finalSize),y+x>O&&" "!==T[t]?(-1===M?r+=1:t=M,k+=e.finalLineHeight||1.2*e.finalSize,T.splice(t,M===t?1:0,"\r"),M=-1,y=0):(y+=x,y+=w);k+=C.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&I<k?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=T,r=e.finalText.length,_=!1)}y=-w,x=0;var P,E=0;for(t=0;t<r;t+=1)if(i=!1,13===(S=(P=e.finalText[t]).charCodeAt(0))||3===S?(E=0,f.push(y),b=y>b?y:b,y=-2*w,n="",i=!0,m+=1):n=P,l.chars?(s=l.getCharData(P,C.fStyle,l.getFontByName(e.f).fFamily),x=i?0:s.w*e.finalSize/100):x=l.measureText(n,e.f,e.finalSize)," "===P?E+=x+w:(y+=x+w+E,E=0),d.push({l:x,an:x,add:u,n:i,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==g){if(u+=x,""===n||" "===n||t===r-1){for(""!==n&&" "!==n||(u-=x);h<=t;)d[h].an=u,d[h].ind=p,d[h].extra=x,h+=1;p+=1,u=0}}else if(3==g){if(u+=x,""===n||t===r-1){for(""===n&&(u-=x);h<=t;)d[h].an=u,d[h].ind=p,d[h].extra=x,h+=1;u=0,p+=1}}else d[p].ind=p,d[p].extra=0,p+=1;if(e.l=d,b=y>b?y:b,f.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=b,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=f;var L,z,D,B,A=c.a;a=A.length;var R=[];for(o=0;o<a;o+=1){for((L=A[o]).a.sc&&(e.strokeColorAnim=!0),L.a.sw&&(e.strokeWidthAnim=!0),(L.a.fc||L.a.fh||L.a.fs||L.a.fb)&&(e.fillColorAnim=!0),B=0,D=L.s.b,t=0;t<r;t+=1)(z=d[t]).anIndexes[o]=B,(1==D&&""!==z.val||2==D&&""!==z.val&&" "!==z.val||3==D&&(z.n||" "==z.val||t==r-1)||4==D&&(z.n||t==r-1))&&(1===L.s.rn&&R.push(B),B+=1);c.a[o].s.totalChars=B;var V,N=-1;if(1===L.s.rn)for(t=0;t<r;t+=1)N!=(z=d[t]).anIndexes[o]&&(N=z.anIndexes[o],V=R.splice(Math.floor(Math.random()*R.length),1)[0]),z.anIndexes[o]=V}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=C.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function i(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,o=0,a=1,s=1;this.ne.v>0?n=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(n,o,a,s).get,c=0,d=this.finalS,p=this.finalE,g=this.data.sh;if(2===g)c=l(c=p===d?i>=p?1:0:e(0,t(.5/(p-d)+(i-d)/(p-d),1)));else if(3===g)c=l(c=p===d?i>=p?0:1:1-e(0,t(.5/(p-d)+(i-d)/(p-d),1)));else if(4===g)p===d?c=0:(c=e(0,t(.5/(p-d)+(i-d)/(p-d),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===g){if(p===d)c=0;else{var u=p-d,h=-u/2+(i=t(e(0,i+.5-d),p-d)),m=u/2;c=Math.sqrt(1-h*h/(m*m))}c=l(c)}else 6===g?(p===d?c=0:(i=t(e(0,i+.5-d),p-d),c=(1+Math.cos(Math.PI+2*Math.PI*i/(p-d)))/2),c=l(c)):(i>=r(d)&&(c=e(0,t(i-d<0?t(p,1)-(d-i):p-i,1))),c=l(c));if(100!==this.sm.v){var f=.01*this.sm.v;0===f&&(f=1e-8);var y=.5-.5*f;c<y?c=0:(c=(c-y)/f)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,i=this.s.v/t+r,n=this.e.v/t+r;if(i>n){var o=i;i=n,n=o}this.finalS=i,this.finalE=n}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(e,t,r){return new i(e,t)}}}();function TextAnimatorDataProperty(e,t,r){var i={propType:!1},n=PropertyFactory.getProp,o=t.a;this.a={r:o.r?n(e,o.r,0,degToRads,r):i,rx:o.rx?n(e,o.rx,0,degToRads,r):i,ry:o.ry?n(e,o.ry,0,degToRads,r):i,sk:o.sk?n(e,o.sk,0,degToRads,r):i,sa:o.sa?n(e,o.sa,0,degToRads,r):i,s:o.s?n(e,o.s,1,.01,r):i,a:o.a?n(e,o.a,1,0,r):i,o:o.o?n(e,o.o,0,.01,r):i,p:o.p?n(e,o.p,1,0,r):i,sw:o.sw?n(e,o.sw,0,0,r):i,sc:o.sc?n(e,o.sc,1,0,r):i,fc:o.fc?n(e,o.fc,1,0,r):i,fh:o.fh?n(e,o.fh,0,0,r):i,fs:o.fs?n(e,o.fs,0,.01,r):i,fb:o.fb?n(e,o.fb,0,.01,r):i,t:o.t?n(e,o.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,i=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,n,o,a,s,l,c,d,p,g,u,h,m,f,y,b,C,x,v=this._moreOptions.alignment.v,S=this._animatorsData,w=this._textData,k=this.mHelper,T=this._renderType,_=this.renderedLetters.length,O=e.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var I,M=x.v;for(this._pathData.r.v&&(M=M.reverse()),a={tLength:0,segments:[]},o=M._length-1,y=0,n=0;n<o;n+=1)I=bez.buildBezierData(M.v[n],M.v[n+1],[M.o[n][0]-M.v[n][0],M.o[n][1]-M.v[n][1]],[M.i[n+1][0]-M.v[n+1][0],M.i[n+1][1]-M.v[n+1][1]]),a.tLength+=I.segmentLength,a.segments.push(I),y+=I.segmentLength;n=o,x.v.c&&(I=bez.buildBezierData(M.v[n],M.v[0],[M.o[n][0]-M.v[n][0],M.o[n][1]-M.v[n][1]],[M.i[0][0]-M.v[0][0],M.i[0][1]-M.v[0][1]]),a.tLength+=I.segmentLength,a.segments.push(I),y+=I.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,g=0,p=1,c=0,d=!0,m=a.segments,s<0&&x.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),p=(h=m[g=m.length-1].points).length-1;s<0;)s+=h[p].partialLength,(p-=1)<0&&(p=(h=m[g-=1].points).length-1);u=(h=m[g].points)[p-1],f=(l=h[p]).partialLength}o=O.length,r=0,i=0;var P,E,L,z,D,B=1.2*e.finalSize*.714,A=!0;L=S.length;var R,V,N,F,j,H,W,$,U,G,K,Y,Z=-1,q=s,X=g,J=p,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ie=0,ne=2===e.j?-.5:-1,oe=0,ae=!0;for(n=0;n<o;n+=1)if(O[n].n){for(re&&(re+=ie);oe<n;)O[oe].animatorJustifyOffset=re,oe+=1;re=0,ae=!0}else{for(E=0;E<L;E+=1)(P=S[E].a).t.propType&&(ae&&2===e.j&&(ie+=P.t.v*ne),(D=S[E].s.getMult(O[n].anIndexes[E],w.a[E].s.totalChars)).length?re+=P.t.v*D[0]*ne:re+=P.t.v*D*ne);ae=!1}for(re&&(re+=ie);oe<n;)O[oe].animatorJustifyOffset=re,oe+=1}for(n=0;n<o;n+=1){if(k.reset(),F=1,O[n].n)r=0,i+=e.yOffset,i+=A?1:0,s=q,A=!1,this._hasMaskedPath&&(p=J,u=(h=m[g=X].points)[p-1],f=(l=h[p]).partialLength,c=0),ee="",K="",U="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==O[n].line){switch(e.j){case 1:s+=y-e.lineWidths[O[n].line];break;case 2:s+=(y-e.lineWidths[O[n].line])/2}Q=O[n].line}Z!==O[n].ind&&(O[Z]&&(s+=O[Z].extra),s+=O[n].an/2,Z=O[n].ind),s+=v[0]*O[n].an*.005;var se=0;for(E=0;E<L;E+=1)(P=S[E].a).p.propType&&((D=S[E].s.getMult(O[n].anIndexes[E],w.a[E].s.totalChars)).length?se+=P.p.v[0]*D[0]:se+=P.p.v[0]*D),P.a.propType&&((D=S[E].s.getMult(O[n].anIndexes[E],w.a[E].s.totalChars)).length?se+=P.a.v[0]*D[0]:se+=P.a.v[0]*D);for(d=!0,this._pathData.a.v&&(s=.5*O[0].an+(y-this._pathData.f.v-.5*O[0].an-.5*O[O.length-1].an)*Z/(o-1),s+=this._pathData.f.v);d;)c+f>=s+se||!h?(b=(s+se-c)/l.partialLength,V=u.point[0]+(l.point[0]-u.point[0])*b,N=u.point[1]+(l.point[1]-u.point[1])*b,k.translate(-v[0]*O[n].an*.005,-v[1]*B*.01),d=!1):h&&(c+=l.partialLength,(p+=1)>=h.length&&(p=0,m[g+=1]?h=m[g].points:x.v.c?(p=0,h=m[g=0].points):(c-=l.partialLength,h=null)),h&&(u=l,f=(l=h[p]).partialLength));R=O[n].an/2-O[n].add,k.translate(-R,0,0)}else R=O[n].an/2-O[n].add,k.translate(-R,0,0),k.translate(-v[0]*O[n].an*.005,-v[1]*B*.01,0);for(E=0;E<L;E+=1)(P=S[E].a).t.propType&&(D=S[E].s.getMult(O[n].anIndexes[E],w.a[E].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?D.length?s+=P.t.v*D[0]:s+=P.t.v*D:D.length?r+=P.t.v*D[0]:r+=P.t.v*D));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(j=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(W=[e.fc[0],e.fc[1],e.fc[2]]),E=0;E<L;E+=1)(P=S[E].a).a.propType&&((D=S[E].s.getMult(O[n].anIndexes[E],w.a[E].s.totalChars)).length?k.translate(-P.a.v[0]*D[0],-P.a.v[1]*D[1],P.a.v[2]*D[2]):k.translate(-P.a.v[0]*D,-P.a.v[1]*D,P.a.v[2]*D));for(E=0;E<L;E+=1)(P=S[E].a).s.propType&&((D=S[E].s.getMult(O[n].anIndexes[E],w.a[E].s.totalChars)).length?k.scale(1+(P.s.v[0]-1)*D[0],1+(P.s.v[1]-1)*D[1],1):k.scale(1+(P.s.v[0]-1)*D,1+(P.s.v[1]-1)*D,1));for(E=0;E<L;E+=1){if(P=S[E].a,D=S[E].s.getMult(O[n].anIndexes[E],w.a[E].s.totalChars),P.sk.propType&&(D.length?k.skewFromAxis(-P.sk.v*D[0],P.sa.v*D[1]):k.skewFromAxis(-P.sk.v*D,P.sa.v*D)),P.r.propType&&(D.length?k.rotateZ(-P.r.v*D[2]):k.rotateZ(-P.r.v*D)),P.ry.propType&&(D.length?k.rotateY(P.ry.v*D[1]):k.rotateY(P.ry.v*D)),P.rx.propType&&(D.length?k.rotateX(P.rx.v*D[0]):k.rotateX(P.rx.v*D)),P.o.propType&&(D.length?F+=(P.o.v*D[0]-F)*D[0]:F+=(P.o.v*D-F)*D),e.strokeWidthAnim&&P.sw.propType&&(D.length?H+=P.sw.v*D[0]:H+=P.sw.v*D),e.strokeColorAnim&&P.sc.propType)for($=0;$<3;$+=1)D.length?j[$]+=(P.sc.v[$]-j[$])*D[0]:j[$]+=(P.sc.v[$]-j[$])*D;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for($=0;$<3;$+=1)D.length?W[$]+=(P.fc.v[$]-W[$])*D[0]:W[$]+=(P.fc.v[$]-W[$])*D;P.fh.propType&&(W=D.length?addHueToRGB(W,P.fh.v*D[0]):addHueToRGB(W,P.fh.v*D)),P.fs.propType&&(W=D.length?addSaturationToRGB(W,P.fs.v*D[0]):addSaturationToRGB(W,P.fs.v*D)),P.fb.propType&&(W=D.length?addBrightnessToRGB(W,P.fb.v*D[0]):addBrightnessToRGB(W,P.fb.v*D))}}for(E=0;E<L;E+=1)(P=S[E].a).p.propType&&(D=S[E].s.getMult(O[n].anIndexes[E],w.a[E].s.totalChars),this._hasMaskedPath?D.length?k.translate(0,P.p.v[1]*D[0],-P.p.v[2]*D[1]):k.translate(0,P.p.v[1]*D,-P.p.v[2]*D):D.length?k.translate(P.p.v[0]*D[0],P.p.v[1]*D[1],-P.p.v[2]*D[2]):k.translate(P.p.v[0]*D,P.p.v[1]*D,-P.p.v[2]*D));if(e.strokeWidthAnim&&(U=H<0?0:H),e.strokeColorAnim&&(G="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),e.fillColorAnim&&e.fc&&(K="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),this._hasMaskedPath){if(k.translate(0,-e.ls),k.translate(0,v[1]*B*.01+i,0),this._pathData.p.v){C=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var le=180*Math.atan(C)/Math.PI;l.point[0]<u.point[0]&&(le+=180),k.rotate(-le*Math.PI/180)}k.translate(V,N,0),s-=v[0]*O[n].an*.005,O[n+1]&&Z!==O[n+1].ind&&(s+=O[n].an/2,s+=.001*e.tr*e.finalSize)}else{switch(k.translate(r,i,0),e.ps&&k.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:k.translate(O[n].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[O[n].line]),0,0);break;case 2:k.translate(O[n].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[O[n].line])/2,0,0)}k.translate(0,-e.ls),k.translate(R,0,0),k.translate(v[0]*O[n].an*.005,v[1]*B*.01,0),r+=O[n].l+.001*e.tr*e.finalSize}"html"===T?ee=k.toCSS():"svg"===T?ee=k.to2dCSS():te=[k.props[0],k.props[1],k.props[2],k.props[3],k.props[4],k.props[5],k.props[6],k.props[7],k.props[8],k.props[9],k.props[10],k.props[11],k.props[12],k.props[13],k.props[14],k.props[15]],Y=F}_<=n?(z=new LetterProps(Y,U,G,K,ee,te),this.renderedLetters.push(z),_+=1,this.lettersChangedFlag=!0):(z=this.renderedLetters[n],this.lettersChangedFlag=z.update(Y,U,G,K,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,i,n=t.length,o="";for(r=0;r<n;r+=1)"sh"===t[r].ty&&(i=t[r].ks.k,o+=buildShapeString(i,i.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,i,n){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(i,n,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},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(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var i=createNS("title"),n=createElementID();i.setAttribute("id",n),i.textContent=t.title,this.svgElement.appendChild(i),r+=n}if(t&&t.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=t.description,this.svgElement.appendChild(o),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.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(e){for(var t=0,r=e.length,i=[],n="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(i.push(n),n=""):n+=e[t],t+=1;return i.push(n),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var n=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,d=this.data.singleShape,p=0,g=0,u=!0,h=.001*r.tr*r.finalSize;if(!d||l||r.sz){var m,f=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!d||0===e){if(a=f>e?this.textSpans[e].span:createNS(l?"g":"text"),f<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),d&&(s[e].n&&(p=-h,g+=r.yOffset,g+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,c,s[e].line,p,g),p+=s[e].l||0,p+=h),l){var b;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)b=new SVGCompElement(m.data,this.globalData,this);else{var C=emptyShapeData;m.data&&m.data.shapes&&(C=this.buildShapeData(m.data,r.finalSize)),b=new SVGShapeElement(C,this.globalData,this)}if(this.textSpans[e].glyph){var x=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(x.layerElement),x.destroy()}this.textSpans[e].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[e].childSpan.appendChild(b.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else d&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&a&&a.setAttribute("d","")}else{var v=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}v.setAttribute("text-anchor",S),v.setAttribute("letter-spacing",h);var w=this.buildTextContents(r.finalText);for(t=w.length,g=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=w[e],a.setAttribute("x",0),a.setAttribute("y",g),a.style.display="inherit",v.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,g+=r.finalLineHeight;this.layerElement.appendChild(v)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,i,n,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(r=o[e],i=this.textSpans[e].span,(n=this.textSpans[e].glyph)&&n.renderFrame(),r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.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 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===i)return;if(this.elements[i]&&!0!==this.elements[i]){var n=t[i].getMatte(this.layers[e].tt);r.setMatte(n)}else this.buildItem(i),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,n=this.elements[i].getMatte(this.layers[t].tt);e.setMatte(n);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var i,n=0;n<t;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,i="_";for(t=0;t<r;t+=1)i+=e[t].transform.key+"_";var n=this.sequences[i];return n||(n={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=n,this.sequenceList.push(n)),n},processSequence:function(e,t){for(var r=0,i=e.transforms.length,n=t;r<i&&!t;){if(e.transforms[r].transform.mProps._mdf){n=!0;break}r+=1}if(n)for(e.finalTransform.reset(),r=i-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=n},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,i=null;function n(){var n,o,a;t||(n=createNS("svg"),o=createNS("filter"),a=createNS("feColorMatrix"),o.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.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"),o.appendChild(a),n.appendChild(o),n.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(n.style.display="none"),i=n,document.body.appendChild(i),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:n,get:function(i){return t||n(),t.width=i.width,t.height=i.height,r.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(e){var t,r,i=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<i;t+=1){r=null;var n=e.data.ef[t].ty;registeredEffects[n]&&(r=new(0,registeredEffects[n].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,n=!1;for(r=0;r<i;r+=1)"n"!==this.masksProperties[r].mode&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,i,n=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),i=this.viewData[e].v,t=n.applyToPointArray(i.v[0][0],i.v[0][1],0),o.moveTo(t[0],t[1]);var l=i._length;for(s=1;s<l;s+=1)r=n.applyToTriplePoints(i.o[s-1],i.i[s],i.v[s]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=n.applyToTriplePoints(i.o[s-1],i.i[0],i.v[0]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),o.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(e,t,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,o=4;"rc"===t.ty?o=5:"el"===t.ty?o=6:"sr"===t.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,o,e);var a,s=r.length;for(n=0;n<s;n+=1)r[n].closed||(a={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(a),r[n].elements.push(a))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}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 e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}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(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",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(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var n,o=e.ks.or.k.length;for(n=0;n<o;n+=1)e.ks.or.k[n].to=null,e.ks.or.k[n].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.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 e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),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 e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),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(e){e.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 e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.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 e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.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 r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,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(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),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(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},i={};if("fl"===e.ty||"st"===e.ty?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(r.wi=i.w.v),e.d){var n=new DashProperty(this,e.d,"canvas",this);i.d=n,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,i,n){var o,a,s,l,c,d,p=e.length-1,g=[],u=[],h=[].concat(n);for(o=p;o>=0;o-=1){if((l=this.searchProcessedElement(e[o]))?t[o]=r[l-1]:e[o]._shouldRender=i,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)l?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],h),g.push(t[o].style);else if("gr"===e[o].ty){if(l)for(s=t[o].it.length,a=0;a<s;a+=1)t[o].prevViewData[a]=t[o].it[a];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,i,h)}else"tr"===e[o].ty?(l||(d=this.createTransformElement(e[o]),t[o]=d),h.push(t[o]),this.addTransformToStyleList(t[o])):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?l||(t[o]=this.createShapeElement(e[o])):"tm"===e[o].ty||"rd"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(l?(c=t[o]).closed=!1:((c=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=c,this.shapeModifiers.push(c)),u.push(c)):"rp"===e[o].ty&&(l?(c=t[o]).closed=!0:(c=ShapeModifiers.getModifier(e[o].ty),t[o]=c,c.init(this,e,o,t),this.shapeModifiers.push(c),i=!1),u.push(c));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(g),p=u.length,o=0;o<p;o+=1)u[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,i,n,o,a,s,l,c=this.stylesList.length,d=this.globalData.renderer,p=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(d.save(),o=l.elements,"st"===s||"gs"===s?(d.ctxStrokeStyle("st"===s?l.co:l.grd),d.ctxLineWidth(l.wi),d.ctxLineCap(l.lc),d.ctxLineJoin(l.lj),d.ctxMiterLimit(l.ml||0)):d.ctxFillStyle("fl"===s?l.co:l.grd),d.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&p.beginPath(),d.ctxTransform(l.preTransforms.finalTransform.props),r=o.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),n=(a=o[t].trNodes).length,i=0;i<n;i+=1)"m"===a[i].t?p.moveTo(a[i].p[0],a[i].p[1]):"c"===a[i].t?p.bezierCurveTo(a[i].pts[0],a[i].pts[1],a[i].pts[2],a[i].pts[3],a[i].pts[4],a[i].pts[5]):p.closePath();"st"!==s&&"gs"!==s||(d.ctxStroke(),l.da&&p.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),d.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,i){var n,o;for(o=e,n=t.length-1;n>=0;n-=1)"tr"===t[n].ty?(o=r[n].transform,this.renderShapeTransform(e,o)):"sh"===t[n].ty||"el"===t[n].ty||"rc"===t[n].ty||"sr"===t[n].ty?this.renderPath(t[n],r[n]):"fl"===t[n].ty?this.renderFill(t[n],r[n],o):"st"===t[n].ty?this.renderStroke(t[n],r[n],o):"gf"===t[n].ty||"gs"===t[n].ty?this.renderGradientFill(t[n],r[n],o):"gr"===t[n].ty?this.renderShape(o,t[n].it,r[n].it):t[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,i,n,o=e.trNodes,a=t.paths,s=a._length;o.length=0;var l=e.transforms.finalTransform;for(n=0;n<s;n+=1){var c=a.shapes[n];if(c&&c.v){for(i=c._length,r=1;r<i;r+=1)1===r&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),o.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[r],c.v[r])});1===i&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&i&&(o.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[0],c.v[0])}),o.push({t:"z"}))}}e.trNodes=o}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,i=t.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var i,n=t.style;if(!n.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var o,a=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)i=a.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),d=Math.atan2(l[1]-s[1],l[0]-s[0]),p=t.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var g=c*p,u=Math.cos(d+t.a.v)*g+s[0],h=Math.sin(d+t.a.v)*g+s[1];i=a.createRadialGradient(u,h,0,s[0],s[1],c)}var m=e.g.p,f=t.g.c,y=1;for(o=0;o<m;o+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*o+1]),i.addColorStop(f[4*o]/100,"rgba("+f[4*o+1]+","+f[4*o+2]+","+f[4*o+3]+","+y+")");n.grd=i}n.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var i=t.style,n=t.d;n&&(n._mdf||this._isFirstFrame)&&(i.da=n.dashArray,i.do=n.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i,n,o,a,s,l,c,d,p,g,u,h,m=this.globalData.fontManager.getFontByName(e.f),f=e.l,y=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,n=e.finalText.length;var b=this.data.singleShape,C=.001*e.tr*e.finalSize,x=0,v=0,S=!0,w=0;for(i=0;i<n;i+=1){a=(o=this.globalData.fontManager.getCharData(e.finalText[i],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&o.data||{},y.reset(),b&&f[i].n&&(x=-C,v+=e.yOffset,v+=S?1:0,S=!1),p=(c=a.shapes?a.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),b&&this.applyTextPropertiesToMatrix(e,y,f[i].line,x,v),u=createSizedArray(p-1);var k=0;for(d=0;d<p;d+=1)if("sh"===c[d].ty){for(l=c[d].ks.k.i.length,g=c[d].ks.k,h=[],s=1;s<l;s+=1)1===s&&h.push(y.applyToX(g.v[0][0],g.v[0][1],0),y.applyToY(g.v[0][0],g.v[0][1],0)),h.push(y.applyToX(g.o[s-1][0],g.o[s-1][1],0),y.applyToY(g.o[s-1][0],g.o[s-1][1],0),y.applyToX(g.i[s][0],g.i[s][1],0),y.applyToY(g.i[s][0],g.i[s][1],0),y.applyToX(g.v[s][0],g.v[s][1],0),y.applyToY(g.v[s][0],g.v[s][1],0));h.push(y.applyToX(g.o[s-1][0],g.o[s-1][1],0),y.applyToY(g.o[s-1][0],g.o[s-1][1],0),y.applyToX(g.i[0][0],g.i[0][1],0),y.applyToY(g.i[0][0],g.i[0][1],0),y.applyToX(g.v[0][0],g.v[0][1],0),y.applyToY(g.v[0][0],g.v[0][1],0)),u[k]=h,k+=1}b&&(x+=f[i].l,x+=C),this.textSpans[w]?this.textSpans[w].elem=u:this.textSpans[w]={elem:u},w+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,i,n,o;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 a,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,d,p=null,g=null,u=null,h=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((a=s[e])&&(h.save(),h.ctxTransform(a.p),h.ctxOpacity(a.o)),this.fill){for(a&&a.fc?p!==a.fc&&(h.ctxFillStyle(a.fc),p=a.fc):p!==this.values.fill&&(p=this.values.fill,h.ctxFillStyle(this.values.fill)),i=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(o=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),n=2;n<o;n+=6)this.globalData.canvasContext.bezierCurveTo(d[n],d[n+1],d[n+2],d[n+3],d[n+4],d[n+5]);this.globalData.canvasContext.closePath(),h.ctxFill()}if(this.stroke){for(a&&a.sw?u!==a.sw&&(u=a.sw,h.ctxLineWidth(a.sw)):u!==this.values.sWidth&&(u=this.values.sWidth,h.ctxLineWidth(this.values.sWidth)),a&&a.sc?g!==a.sc&&(g=a.sc,h.ctxStrokeStyle(a.sc)):g!==this.values.stroke&&(g=this.values.stroke,h.ctxStrokeStyle(this.values.stroke)),i=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(o=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),n=2;n<o;n+=6)this.globalData.canvasContext.bezierCurveTo(d[n],d[n+1],d[n+2],d[n+3],d[n+4],d[n+5]);this.globalData.canvasContext.closePath(),h.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,i=e.getContext("2d"),n=this.img.width,o=this.img.height,a=n/o,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?t=(r=o)*s:r=(t=n)/s,i.drawImage(this.img,(n-t)/2,(o-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){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(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,i){this.canvasContext.fillRect(e,t,r,i)},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(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,i,n,o;if(this.reset(),e?(r=e,i=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",l=a[0]||"xMidYMid",c=l.substr(0,4),d=l.substr(4);n=r/i,(o=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===s||o<n&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(o<n&&"meet"===s||o>n&&"slice"===s)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(o<n&&"meet"===s||o>n&&"slice"===s)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===d&&(o>n&&"meet"===s||o<n&&"slice"===s)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===d&&(o>n&&"meet"===s||o<n&&"slice"===s)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],i=r.transform,n=this.cTr.props;for(t=0;t<16;t+=1)n[t]=i[t];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,i=this.stack[this.cArrPos];for(r=0;r<16;r+=1)i.transform[r]=t[r];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=i.opacity,n.fillStyle=i.fillStyle,n.strokeStyle=i.strokeStyle,n.lineWidth=i.lineWidth,n.lineCap=i.lineCap,n.lineJoin=i.lineJoin,n.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,i)},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 e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,i,n,o,a,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(r=0;r<c-1;r+=1)i=this.getTransformedPoint(l,s.v[r]),n=this.getTransformedPoint(l,s.o[r]),o=this.getTransformedPoint(l,s.i[r+1]),a=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(i,n,o,a,t);s.c&&(i=this.getTransformedPoint(l,s.v[r]),n=this.getTransformedPoint(l,s.o[r]),o=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(i,n,o,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,i,n){this.getBoundsOfCurve(e,t,r,i);var o=this.shapeBoundingBox;n.x=bmMin(o.left,n.x),n.xMax=bmMax(o.right,n.xMax),n.y=bmMin(o.top,n.y),n.yMax=bmMax(o.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(e,t,r,i){for(var n,o,a,s,l,c,d,p=[[e[0],i[0]],[e[1],i[1]]],g=0;g<2;++g)o=6*e[g]-12*t[g]+6*r[g],n=-3*e[g]+9*t[g]-9*r[g]+3*i[g],a=3*t[g]-3*e[g],o|=0,a|=0,0==(n|=0)&&0===o||(0===n?(s=-a/o)>0&&s<1&&p[g].push(this.calculateF(s,e,t,r,i,g)):(l=o*o-4*a*n)>=0&&((c=(-o+bmSqrt(l))/(2*n))>0&&c<1&&p[g].push(this.calculateF(c,e,t,r,i,g)),(d=(-o-bmSqrt(l))/(2*n))>0&&d<1&&p[g].push(this.calculateF(d,e,t,r,i,g))));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(e,t,r,i,n,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*i[o]+bmPow(e,3)*n[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var n=e.keyframes[i].s;n>r&&(r=n)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=n,i.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 e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i,n,o=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{t.fontFamily=o.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var l,c,d,p=e.l;n=p.length;var g,u=this.mHelper,h="",m=0;for(i=0;i<n;i+=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]?d=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(d=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var f,y=this.globalData.fontManager.getCharData(e.finalText[i],o.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(f=y?y.data:null,u.reset(),f&&f.shapes&&f.shapes.length&&(g=f.shapes[0].it,u.scale(e.finalSize/100,e.finalSize/100),h=this.createPathShape(u,g),l.setAttribute("d",h)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),f&&f.shapes){document.body.appendChild(d);var b=d.getBBox();d.setAttribute("width",b.width+2),d.setAttribute("height",b.height+2),d.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var C=d.style,x="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";C.transform=x,C.webkitTransform=x,p[i].yOffset=b.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);c.appendChild(d)}}else if(l.textContent=p[i].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var v=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";v.transform=S,v.webkitTransform=S}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,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 e;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),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,i,n,o,a,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(i=c.length,r=0;r<i;r+=1)c[r].n?s+=1:(o=this.textSpans[r],a=this.textPaths[r],n=l[s],s+=1,n._mdf.m&&(this.isMasked?o.setAttribute("transform",n.m):(o.style.webkitTransform=n.m,o.style.transform=n.m)),o.style.opacity=n.o,n.sw&&n._mdf.sw&&a.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&a.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(a.setAttribute("fill",n.fc),a.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var d=this.innerElem.getBBox();if(this.currentBBox.w!==d.width&&(this.currentBBox.w=d.width,this.svgElement.setAttribute("width",d.width)),this.currentBBox.h!==d.height&&(this.currentBBox.h=d.height,this.svgElement.setAttribute("height",d.height)),this.currentBBox.w!==d.width+2||this.currentBBox.h!==d.height+2||this.currentBBox.x!==d.x-1||this.currentBBox.y!==d.y-1){this.currentBBox.w=d.width+2,this.currentBBox.h=d.height+2,this.currentBBox.x=d.x-1,this.currentBBox.y=d.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,i,n=this.comp.threeDElements.length;for(e=0;e<n;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,i=t.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,i.transformOrigin=a,i.mozTransformOrigin=a,i.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var i=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.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 o=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),a=[n[0]/o,n[1]/o,n[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var d=!this._prevMat.equals(this.mat);if((d||this.pe._mdf)&&this.comp.threeDElements){var p,g,u;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(p=this.comp.threeDElements[e]).type){if(d){var h=this.mat.toCSS();(u=p.container.style).transform=h,u.webkitTransform=h}this.pe._mdf&&((g=p.perspectiveElem.style).perspective=this.pe.v+"px",g.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var i=this.layers[t];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var n,o,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],n=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||n),a+=1;n?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,n):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,i,n=createTag("div");styleDiv(n);var o=createTag("div");if(styleDiv(o),"3d"===t){(r=n.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=o.style).transform=s,i.webkitTransform=s}n.appendChild(o);var l={container:o,perspectiveElem:n,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,i="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==i&&(i="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==i&&(i="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,i=this.threeDElements.length;r<i;){if(t<=this.threeDElements[r].endPos){for(var n,o=this.threeDElements[r].startPos;o<t;)this.elements[o]&&this.elements[o].getBaseElement&&(n=this.elements[o].getBaseElement()),o+=1;n?this.threeDElements[r].container.insertBefore(e,n):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),i.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var o=createNS("defs");n.appendChild(o),this.data=e,this.setupGlobalData(e,n),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,i,n=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=n/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=n/this.globalData.compSize.w,t=n/this.globalData.compSize.w,r=0,i=(o-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,i=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+i+",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 e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(e=0;e<i;e+=1){var n=this.threeDElements[e].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,i=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t],i,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(e,t){for(var r,i=0;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,i=e.layers.length;r<i;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}function seedRandom(e,t){var r=this,i=256,n="random",o=t.pow(i,6),a=t.pow(2,52),s=2*a,l=255;function c(e){var t,r=e.length,n=this,o=0,a=n.i=n.j=0,s=n.S=[];for(r||(e=[r++]);o<i;)s[o]=o++;for(o=0;o<i;o++)s[o]=s[a=l&a+e[o%r]+(t=s[o])],s[a]=t;n.g=function(e){for(var t,r=0,o=n.i,a=n.j,s=n.S;e--;)t=s[o=l&o+1],r=r*i+s[l&(s[o]=s[a=l&a+t])+(s[a]=t)];return n.i=o,n.j=a,r}}function d(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){var r,i=[],n=_typeof$2(e);if(t&&"object"==n)for(r in e)try{i.push(p(e[r],t-1))}catch(e){}return i.length?i:"string"==n?e:e+"\0"}function g(e,t){for(var r,i=e+"",n=0;n<i.length;)t[l&n]=l&(r^=19*t[l&n])+i.charCodeAt(n++);return u(t)}function u(e){return String.fromCharCode.apply(0,e)}t["seed"+n]=function(l,h,m){var f=[],y=g(p((h=!0===h?{entropy:!0}:h||{}).entropy?[l,u(e)]:null===l?function(){try{var t=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(t),u(t)}catch(t){var n=r.navigator,o=n&&n.plugins;return[+new Date,r,o,r.screen,u(e)]}}():l,3),f),b=new c(f),C=function(){for(var e=b.g(6),t=o,r=0;e<a;)e=(e+r)*i,t*=i,r=b.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return C.int32=function(){return 0|b.g(4)},C.quick=function(){return b.g(4)/4294967296},C.double=C,g(u(b.S),e),(h.pass||m||function(e,r,i,o){return o&&(o.S&&d(o,b),e.state=function(){return d(b,{})}),i?(t[n]=e,r):e})(C,y,"global"in h?h.global:this==t,h.state)},g(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,i=e.length,n=[];for(r=0;r<i;r+=1)n[r]=-e[r];return n}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t)||"string"===r||"string"===i)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,o=e.length,a=t.length,s=[];n<o||n<a;)("number"==typeof e[n]||e[n]instanceof Number)&&("number"==typeof t[n]||t[n]instanceof Number)?s[n]=e[n]+t[n]:s[n]=void 0===t[n]?e[n]:e[n]||t[n],n+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t))return"string"===r&&(e=parseInt(e,10)),"string"===i&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,o=e.length,a=t.length,s=[];n<o||n<a;)("number"==typeof e[n]||e[n]instanceof Number)&&("number"==typeof t[n]||t[n]instanceof Number)?s[n]=e[n]-t[n]:s[n]=void 0===t[n]?e[n]:e[n]||t[n],n+=1;return s}return 0}function mul(e,t){var r,i,n,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=e[i]*t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=e*t[i];return r}return 0}function div(e,t){var r,i,n,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=e[i]/t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=e/t[i];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var i=r;r=t,t=i}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var i=Math.min(e.length,t.length),n=0;for(r=0;r<i;r+=1)n+=Math.pow(t[r]-e[r],2);return Math.sqrt(n)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=(a+s)/2;if(a===s)t=0,r=0;else{var c=a-s;switch(r=l>.5?c/(2-a-s):c/(a+s),a){case i:t=(n-o)/c+(n<o?6:0);break;case n:t=(o-i)/c+2;break;case o:t=(i-n)/c+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,i,n=e[0],o=e[1],a=e[2];if(0===o)t=a,i=a,r=a;else{var s=a<.5?a*(1+o):a+o-a*o,l=2*a-s;t=hue2rgb(l,s,n+1/3),r=hue2rgb(l,s,n),i=hue2rgb(l,s,n-1/3)}return[t,r,i,e[3]]}function linear(e,t,r,i,n){if(void 0!==i&&void 0!==n||(i=t,n=r,t=0,r=1),r<t){var o=r;r=t,t=o}if(e<=t)return i;if(e>=r)return n;var a,s=r===t?0:(e-t)/(r-t);if(!i.length)return i+(n-i)*s;var l=i.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=i[a]+(n[a]-i[a])*s;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,i=t.length;e||(e=createTypedArray("float32",i));var n=createTypedArray("float32",i),o=BMMath.random();for(r=0;r<i;r+=1)n[r]=e[r]+o*(t[r]-e[r]);return n}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,i){var n,o=e.length,a=shapePool.newElement();a.setPathData(!!i,o);var s,l,c=[0,0];for(n=0;n<o;n+=1)s=t&&t[n]?t[n]:c,l=r&&r[n]?r[n]:c,a.setTripleAt(e[n][0],e[n][1],l[0]+e[n][0],l[1]+e[n][1],s[0]+e[n][0],s[1]+e[n][1],n,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}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(e,t){var r,i,n=this.pv.length?this.pv.length:1,o=createTypedArray("float32",n),a=Math.floor(5*time);for(r=0,i=0;r<a;){for(i=0;i<n;i+=1)o[i]+=-t+2*t*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",n);if(n>1){for(i=0;i<n;i+=1)c[i]=this.pv[i]+o[i]+(-t+2*t*BMMath.random())*l;return c}return this.pv+o[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(e,t,r,i,n){return applyEase(easeOutBez,e,t,r,i,n)}function easeIn(e,t,r,i,n){return applyEase(easeInBez,e,t,r,i,n)}function ease(e,t,r,i,n){return applyEase(easeInOutBez,e,t,r,i,n)}function applyEase(e,t,r,i,n,o){void 0===n?(n=r,o=i):t=(t-r)/(i-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(n)){var s,l=n.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(o[s]-n[s])*a+n[s];return c}return(o-n)*a+n}function nearestKey(e){var t,r,i,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(t=0;t<n-1;t+=1){if(e===data.k[t].t){r=t+1,i=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,i=data.k[t+1].t):(r=t+1,i=data.k[t].t);break}}-1===r&&(r=t+1,i=data.k[t].t)}else r=0,i=0;var o={};return o.index=r,o.time=i/elem.comp.globalData.frameRate,o}function key(e){var t,r,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=n.length,r=0;r<i;r+=1)t[r]=n[r],t.value[r]=n[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,i=createSizedArray(t.viewData.length),n=t.viewData.length;for(r=0;r<n;r+=1)i[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<n;){if(t.masksProperties[r].nm===e)return i[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(i){if(!e.numKeys)return 0;var n="";n="s"in t.keyframes[i-1]?t.keyframes[i-1].s:"e"in t.keyframes[i-2]?t.keyframes[i-2].e:t.keyframes[i-2].s;var o="unidimensional"===r?new Number(n):Object.assign({},n);return o.time=t.keyframes[i-1].t/t.elem.comp.globalData.frameRate,o.value="unidimensional"===r?n[0]:n,o},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function i(){return e}return function(n){return n?"unidimensional"===n.propType?function(t){t&&"pv"in t||(t=e);var i=1/t.mult,n=t.pv*i,o=new Number(n);return o.value=n,r(o,t,"unidimensional"),function(){return t.k&&t.getValue(),n=t.v*i,o.value!==n&&((o=new Number(n)).value=n,o[0]=n,r(o,t,"unidimensional")),o}}(n):function(e){e&&"pv"in e||(e=t);var i=1/e.mult,n=e.data&&e.data.l||e.pv.length,o=createTypedArray("float32",n),a=createTypedArray("float32",n);return o.value=a,r(o,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<n;t+=1)a[t]=e.v[t]*i,o[t]=a[t];return o}}(n):i}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,i,n,o;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?o=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(n=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[r(),i(),n?n():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function n(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var d;function p(e){switch(e){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 d;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=e,p.invertPoint=a,p.applyPoint=o,p.toWorld=r,p.toWorldVec=t,p.fromWorld=n,p.fromWorldVec=i,p.toComp=r,p.fromComp=s,p.sampleImage=l,p.sourceRectAtTime=c.sourceRectAtTime.bind(c),p._elem=c;var g=getDescriptor(d=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(d,"rotation"),scale:getDescriptor(d,"scale"),position:getDescriptor(d,"position"),opacity:getDescriptor(d,"opacity"),anchorPoint:g,anchor_point:g,transform:{get:function(){return d}},active:{get:function(){return c.isInRange}}}),p.startTime=c.data.st,p.index=c.data.ind,p.source=c.data.refId,p.height=0===c.data.ty?c.data.h:100,p.width=0===c.data.ty?c.data.w:100,p.inPoint=c.data.ip/c.comp.globalData.frameRate,p.outPoint=c.data.op/c.comp.globalData.frameRate,p._name=c.data.nm,p.registerMaskInterface=function(e){p.mask=new MaskManagerInterface(e,c)},p.registerEffectsInterface=function(e){p.effect=e},p}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){var e={createEffectsInterface:function(e,r){if(e.effectsManager){var i,n=[],o=e.data.ef,a=e.effectsManager.effectElements.length;for(i=0;i<a;i+=1)n.push(t(o[i],e.effectsManager.effectElements[i],r,e));var s=e.data.ef||[],l=function(e){for(i=0,a=s.length;i<a;){if(e===s[i].nm||e===s[i].mn||e===s[i].ix)return n[i];i+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}};function t(e,i,n,o){function a(t){for(var r=e.ef,i=0,n=r.length;i<n;){if(t===r[i].nm||t===r[i].mn||t===r[i].ix)return 5===r[i].ty?c[i]:c[i]();i+=1}throw new Error}var s,l=propertyGroupFactory(a,n),c=[],d=e.ef.length;for(s=0;s<d;s+=1)5===e.ef[s].ty?c.push(t(e.ef[s],i.effectElements[s],i.effectElements[s].propertyGroup,o)):c.push(r(i.effectElements[s],e.ef[s].ty,o,l));return"ADBE Color Control"===e.mn&&Object.defineProperty(a,"color",{get:function(){return c[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:l}}),a.enabled=0!==e.en,a.active=a.enabled,a}function r(e,t,r,i){var n=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",i)),function(){return 10===t?r.comp.compInterface(e.p.v):n()}}return e}(),ShapePathInterface=function(e,t,r){var i=t.sh;function n(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?n.path:null}var o=propertyGroupFactory(n,r);return i.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(n,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),n},ShapeExpressionInterface=function(){function e(e,s,u){var h,m=[],f=e?e.length:0;for(h=0;h<f;h+=1)"gr"===e[h].ty?m.push(t(e[h],s[h],u)):"fl"===e[h].ty?m.push(r(e[h],s[h],u)):"st"===e[h].ty?m.push(o(e[h],s[h],u)):"tm"===e[h].ty?m.push(a(e[h],s[h],u)):"tr"===e[h].ty||("el"===e[h].ty?m.push(l(e[h],s[h],u)):"sr"===e[h].ty?m.push(c(e[h],s[h],u)):"sh"===e[h].ty?m.push(ShapePathInterface(e[h],s[h],u)):"rc"===e[h].ty?m.push(d(e[h],s[h],u)):"rd"===e[h].ty?m.push(p(e[h],s[h],u)):"rp"===e[h].ty?m.push(g(e[h],s[h],u)):"gf"===e[h].ty?m.push(i(e[h],s[h],u)):m.push(n(e[h],s[h])));return m}function t(t,r,i){var n=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,i);var o=function(t,r,i){var n,o=function(e){for(var t=0,r=n.length;t<r;){if(n[t]._name===e||n[t].mn===e||n[t].propertyIndex===e||n[t].ix===e||n[t].ind===e)return n[t];t+=1}return"number"==typeof e?n[e-1]:null};o.propertyGroup=propertyGroupFactory(o,i),n=e(t.it,r.it,o.propertyGroup),o.numProperties=n.length;var a=s(t.it[t.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=a,o.propertyIndex=t.cix,o._name=t.nm,o}(t,r,n.propertyGroup),a=s(t.it[t.it.length-1],r.it[r.it.length-1],n.propertyGroup);return n.content=o,n.transform=a,Object.defineProperty(n,"_name",{get:function(){return t.nm}}),n.numProperties=t.np,n.propertyIndex=t.ix,n.nm=t.nm,n.mn=t.mn,n}function r(e,t,r){function i(e){return"Color"===e||"color"===e?i.color:"Opacity"===e||"opacity"===e?i.opacity:null}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function i(e,t,r){function i(e){return"Start Point"===e||"start point"===e?i.startPoint:"End Point"===e||"end point"===e?i.endPoint:"Opacity"===e||"opacity"===e?i.opacity:null}return Object.defineProperties(i,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function n(){return function(){return null}}function o(e,t,r){var i,n=propertyGroupFactory(c,r),o=propertyGroupFactory(l,n);function a(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,l={};for(i=0;i<s;i+=1)a(i),t.d.dataProps[i].p.setGroupProperty(o);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),t.w.setGroupProperty(PropertyInterface("Stroke Width",n)),c}function a(e,t,r){function i(t){return t===e.e.ix||"End"===t||"end"===t?i.end:t===e.s.ix?i.start:t===e.o.ix?i.offset:null}var n=propertyGroupFactory(i,r);return i.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",n)),t.e.setGroupProperty(PropertyInterface("End",n)),t.o.setGroupProperty(PropertyInterface("Offset",n)),i.propertyIndex=e.ix,i.propertyGroup=r,Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),i.mn=e.mn,i}function s(e,t,r){function i(t){return e.a.ix===t||"Anchor Point"===t?i.anchorPoint:e.o.ix===t||"Opacity"===t?i.opacity:e.p.ix===t||"Position"===t?i.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?i.rotation:e.s.ix===t||"Scale"===t?i.scale:e.sk&&e.sk.ix===t||"Skew"===t?i.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?i.skewAxis:null}var n=propertyGroupFactory(i,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(i,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),i.ty="tr",i.mn=e.mn,i.propertyGroup=r,i}function l(e,t,r){function i(t){return e.p.ix===t?i.position:e.s.ix===t?i.size:null}var n=propertyGroupFactory(i,r);i.propertyIndex=e.ix;var o="tm"===t.sh.ty?t.sh.prop:t.sh;return o.s.setGroupProperty(PropertyInterface("Size",n)),o.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(i,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:e.nm}}),i.mn=e.mn,i}function c(e,t,r){function i(t){return e.p.ix===t?i.position:e.r.ix===t?i.rotation:e.pt.ix===t?i.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?i.outerRadius:e.os.ix===t?i.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?i.innerRoundness:null:i.innerRadius}var n=propertyGroupFactory(i,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return i.propertyIndex=e.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",n)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),o.pt.setGroupProperty(PropertyInterface("Points",n)),o.p.setGroupProperty(PropertyInterface("Position",n)),o.r.setGroupProperty(PropertyInterface("Rotation",n)),e.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:e.nm}}),i.mn=e.mn,i}function d(e,t,r){function i(t){return e.p.ix===t?i.position:e.r.ix===t?i.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?i.size:null}var n=propertyGroupFactory(i,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return i.propertyIndex=e.ix,o.p.setGroupProperty(PropertyInterface("Position",n)),o.s.setGroupProperty(PropertyInterface("Size",n)),o.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:e.nm}}),i.mn=e.mn,i}function p(e,t,r){function i(t){return e.r.ix===t||"Round Corners 1"===t?i.radius:null}var n=propertyGroupFactory(i,r),o=t;return i.propertyIndex=e.ix,o.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:e.nm}}),i.mn=e.mn,i}function g(e,t,r){function i(t){return e.c.ix===t||"Copies"===t?i.copies:e.o.ix===t||"Offset"===t?i.offset:null}var n=propertyGroupFactory(i,r),o=t;return i.propertyIndex=e.ix,o.c.setGroupProperty(PropertyInterface("Copies",n)),o.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(i,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:e.nm}}),i.mn=e.mn,i}return function(t,r,i){var n;function o(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?i:n[e-1];for(var t=0,r=n.length;t<r;){if(n[t]._name===e)return n[t];t+=1}return null}return o.propertyGroup=propertyGroupFactory(o,function(){return i}),n=e(t,r,o.propertyGroup),o.numProperties=n.length,o._name="Contents",o}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function i(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?i:r;var n=e.indexOf(t);if(-1!==n){var o=parseInt(e.substr(n+t.length),10);return"object"===_typeof(r=r[o])?i:r}return""}return function(){return t="",r=e.getFootageData(),i}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),i=0;if(t.length){var n;for(n=0;n<t.length;n+=1)i+=Math.pow(r[n]-t[n],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,i=-.001,n=this.getValueAtTime(e),o=this.getValueAtTime(e+i);if(n.length)for(t=createTypedArray("float32",n.length),r=0;r<n.length;r+=1)t[r]=(o[r]-n[r])/i;else t=(o-n)/i;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var i,n,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,d=c[c.length-1].t;if(l<=d)return this.pv;if(r?n=d-(i=t?Math.abs(d-this.elem.comp.globalData.frameRate*t):Math.max(0,d-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),i=d-(n=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-n)/i)%2!=0)return this.getValueAtTime((i-(l-n)%i+n)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(n/this.comp.globalData.frameRate,0),g=this.getValueAtTime(d/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((l-n)%i+n)/this.comp.globalData.frameRate,0),h=Math.floor((l-n)/i);if(this.pv.length){for(a=(s=new Array(p.length)).length,o=0;o<a;o+=1)s[o]=(g[o]-p[o])*h+u[o];return s}return(g-p)*h+u}if("continue"===e){var m=this.getValueAtTime(d/this.comp.globalData.frameRate,0),f=this.getValueAtTime((d-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-f[o])*((l-d)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-d)/.001*(m-f)}}return this.getValueAtTime(((l-n)%i+n)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var i,n,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,d=c[0].t;if(l>=d)return this.pv;if(r?n=d+(i=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-d)):((!t||t>c.length-1)&&(t=c.length-1),i=(n=c[t].t)-d),"pingpong"===e){if(Math.floor((d-l)/i)%2==0)return this.getValueAtTime(((d-l)%i+d)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(d/this.comp.globalData.frameRate,0),g=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime((i-(d-l)%i+d)/this.comp.globalData.frameRate,0),h=Math.floor((d-l)/i)+1;if(this.pv.length){for(a=(s=new Array(p.length)).length,o=0;o<a;o+=1)s[o]=u[o]-(g[o]-p[o])*h;return s}return u-(g-p)*h}if("continue"===e){var m=this.getValueAtTime(d/this.comp.globalData.frameRate,0),f=this.getValueAtTime((d+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-f[o])*(d-l)/.001;return s}return m+(m-f)*(d-l)/.001}}return this.getValueAtTime((i-((d-l)%i+d))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,i,n=this.comp.renderedFrame/this.comp.globalData.frameRate,o=n-e,a=t>1?(n+e-o)/(t-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(i=this.getValueAtTime(o+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=i[l];else r+=i;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function i(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var i=this.s.getValueAtTime(e);t.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(e),o=this.sa.getValueAtTime(e);t.skewFromAxis(-n*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),d=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-d[2]*this.or.mult).rotateY(d[1]*this.or.mult).rotateX(d[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(e),g=this.py.getValueAtTime(e);if(this.data.p.z){var u=this.pz.getValueAtTime(e);t.translate(p*this.px.mult,g*this.py.mult,-u*this.pz.mult)}else t.translate(p*this.px.mult,g*this.py.mult,0)}else{var h=this.p.getValueAtTime(e);t.translate(h[0]*this.p.mult,h[1]*this.p.mult,-h[2]*this.p.mult)}return t}function n(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var a=o(e,t,r);return a.dynamicProperties.length?a.getValueAtTime=i.bind(a):a.getValueAtTime=n.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(i,n,o,s,l){var c=a(i,n,o,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=r,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===n.a?n.k.length:0,c.propertyIndex=n.ix;var d=0;return 0!==o&&(d=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(i,n,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var r,i=this.v;void 0!==t&&(i=this.getValueAtTime(t,0));var n=i._length,o=i[e],a=i.v,s=createSizedArray(n);for(r=0;r<n;r+=1)s[r]="i"===e||"o"===e?[o[r][0]-a[r][0],o[r][1]-a[r][1]]:[o[r][0],o[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var i,n=this._segmentsLength,o=n.lengths,a=n.totalLength*e,s=0,l=o.length,c=0;s<l;){if(c+o[s].addedLength>a){var d=s,p=r.c&&s===l-1?0:s+1,g=(a-c)/o[s].addedLength;i=bez.getPointInSegment(r.v[d],r.v[p],r.o[d],r.i[p],g,o[s]);break}c+=o[s].addedLength,s+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var i=this.pointOnPath(e,t),n=this.pointOnPath(e+.001,t),o=n[0]-i[0],a=n[1]-i[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,i,n){var o=d(e,t,r,i,n);return o.propertyIndex=t.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,o):4===r&&expressionHelpers.searchExpressions(e,t.ks,o),o.k&&e.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var i={};return this.copyData(i,e),i.t=r.toString(),i.__complete=!1,i}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,i,n=createNS("feMerge");for(n.setAttribute("result",e),i=0;i<t.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",t[i]),n.appendChild(r),n.appendChild(r);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(e,t,r,i,n){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",i+"_tint_1"),e.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",i+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(i,[n,i+"_tint_1",i+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,r,i){this.filterManager=t;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",i),e.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,i){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(n);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),o.appendChild(l),this.feFuncB=l,e.appendChild(o)}function SVGProLevelsFilter(e,t,r,i){this.filterManager=t;var n=this.filterManager.effectElements,o=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",o)),(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",o)),(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",o)),(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",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(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)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(e,t,r,i,n){var o=t.container.globalData.renderConfig.filterSize,a=t.data.fs||o;e.setAttribute("x",a.x||o.x),e.setAttribute("y",a.y||o.y),e.setAttribute("width",a.width||o.width),e.setAttribute("height",a.height||o.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",i+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",i+"_drop_shadow_1"),l.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var d=createNS("feComposite");d.setAttribute("in",i+"_drop_shadow_3"),d.setAttribute("in2",i+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(d);var p=this.createMergeNode(i,[i+"_drop_shadow_4",n]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,i,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,r=0):i=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<i;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(t),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");n[0];)s.appendChild(n[0]);this.elem.layerElement.appendChild(s),this.masker=o,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,i,n=this.paths.length;for(t=0;t<n;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],i=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.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=i.getTotalLength();o="0 0 0 "+l*a+" ";var c,d=l*(s-a),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,g=Math.floor(d/p);for(c=0;c<g;c+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*l+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,n=i[0]+" "+r[0]+" "+t[0],o=i[1]+" "+r[1]+" "+t[1],a=i[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,i,n){for(var o,a,s=0,l=Math.min(e,t),c=Math.max(e,t),d=Array.call(null,{length:256}),p=0,g=n-i,u=t-e;s<=256;)a=(o=s/256)<=l?u<0?n:i:o>=c?u<0?i:n:i+g*Math.pow((o-e)/u,1/r),d[p]=a,p+=1,s+=256/255;return d.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(i),o=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var n=createNS("feGaussianBlur");n.setAttribute("result",i),e.appendChild(n),this.feGaussianBlur=n}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var i,n=r.children,o=0,a=n.length;o<a&&n[o]!==e.layerElement;)o+=1;o<=a-2&&(i=n[o+1]);var s=createNS("use");s.setAttribute("href","#"+t),i?r.insertBefore(s,i):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var n=e.globalData.defs;n.appendChild(i);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(t,r),o.appendChild(t.layerElement),n.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+r),i.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,i=t.length;r<i;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=3==r?0:t,n=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+n);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,i=t[1].p.v,n=1===t[2].p.v,o=t[3].p.v,a=n?o:t[4].p.v,s=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*a,.01*o,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[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(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t);else for(;!(l=(i=o.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)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(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,i,n=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;r[i]=e[i]}return r}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function(e,t){var r=e.animationData,i=e.loop,n=e.autoplay,o=e.initialSegment,a=e.onComplete,s=e.onLoopComplete,l=e.onEnterFrame,c=e.onSegmentStart,d=e.onConfigReady,p=e.onDataReady,g=e.onDataFailed,u=e.onLoadedImages,h=e.onDOMLoaded,m=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var f=_objectWithoutProperties(e,_excluded$1),y=_slicedToArray(useState(!1),2),b=y[0],C=y[1],x=useRef(),v=useRef(null);return useEffect(function(){var t=function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v.current){null===(t=x.current)||void 0===t||t.destroy();var i=_objectSpread2(_objectSpread2(_objectSpread2({},e),r),{},{container:v.current});return x.current=lottie.loadAnimation(i),C(!!x.current),function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0}}}();return function(){return null==t?void 0:t()}},[r,i]),useEffect(function(){x.current&&(x.current.autoplay=!!n)},[n]),useEffect(function(){x.current&&(o?Array.isArray(o)&&o.length&&((x.current.currentRawFrame<o[0]||x.current.currentRawFrame>o[1])&&(x.current.currentRawFrame=o[0]),x.current.setSegment(o[0],o[1])):x.current.resetSegments(!0))},[o]),useEffect(function(){var e=[{name:"complete",handler:a},{name:"loopComplete",handler:s},{name:"enterFrame",handler:l},{name:"segmentStart",handler:c},{name:"config_ready",handler:d},{name:"data_ready",handler:p},{name:"data_failed",handler:g},{name:"loaded_images",handler:u},{name:"DOMLoaded",handler:h},{name:"destroy",handler:m}].filter(function(e){return null!=e.handler});if(e.length){var t=e.map(function(e){var t;return null===(t=x.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=x.current)||void 0===t||t.removeEventListener(e.name,e.handler)}});return function(){t.forEach(function(e){return e()})}}},[a,s,l,c,d,p,g,u,h,m]),{View:React.createElement("div",_objectSpread2({style:t,ref:v},f)),play:function(){var e;null===(e=x.current)||void 0===e||e.play()},stop:function(){var e;null===(e=x.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=x.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=x.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var r;null===(r=x.current)||void 0===r||r.goToAndStop(e,t)},goToAndPlay:function(e,t){var r;null===(r=x.current)||void 0===r||r.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=x.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var r;null===(r=x.current)||void 0===r||r.playSegments(e,t)},setSubframe:function(e){var t;null===(t=x.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=x.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0},animationContainerRef:v,animationLoaded:b,animationItem:x.current}};function getContainerVisibility(e){var t=e.getBoundingClientRect(),r=t.top,i=t.height;return(window.innerHeight-r)/(window.innerHeight+i)}function getContainerCursorPosition(e,t,r){var i=e.getBoundingClientRect(),n=i.top;return{x:(t-i.left)/i.width,y:(r-n)/i.height}}var useInitInteractivity=function(e){var t=e.wrapperRef,r=e.animationItem,i=e.mode,n=e.actions;useEffect(function(){var e=t.current;if(e&&r&&n.length){r.stop();var o,a,s,l,c;switch(i){case"scroll":return l=null,c=function(){var t=getContainerVisibility(e),i=n.find(function(e){var r=e.visibility;return r&&t>=r[0]&&t<=r[1]});if(i){if("seek"===i.type&&i.visibility&&2===i.frames.length){var o=i.frames[0]+Math.ceil((t-i.visibility[0])/(i.visibility[1]-i.visibility[0])*i.frames[1]);
31
31
  //! goToAndStop must be relative to the start of the current segment
32
- r.goToAndStop(o-r.firstFrame-1,!0)}"loop"===i.type&&(null===l||l!==i.frames||r.isPaused)&&(r.playSegments(i.frames,!0),l=i.frames),"play"===i.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===i.type&&r.goToAndStop(i.frames[0]-r.firstFrame-1,!0)}},document.addEventListener("scroll",c),function(){document.removeEventListener("scroll",c)};case"cursor":return o=function(t,i){var o=t,a=i;if(-1!==o&&-1!==a){var s=getContainerCursorPosition(e,o,a);o=s.x,a=s.y}var l=n.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?o>=t.x[0]&&o<=t.x[1]&&a>=t.y[0]&&a<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&o===t.x&&a===t.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var c=(o-l.position.x[0])/(l.position.x[1]-l.position.x[0]),d=(a-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((c+d)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},a=function(e){o(e.clientX,e.clientY)},s=function(){o(-1,-1)},e.addEventListener("mousemove",a),e.addEventListener("mouseout",s),function(){e.removeEventListener("mousemove",a),e.removeEventListener("mouseout",s)}}}},[i,r])},useLottieInteractivity=function(e){var t=e.actions,r=e.mode,i=e.lottieObj,n=i.animationItem,o=i.View,a=i.animationContainerRef;return useInitInteractivity({actions:t,animationItem:n,mode:r,wrapperRef:a}),o},_excluded=["style","interactivity"],Lottie=function(e){var t,r,i,n=e.style,o=e.interactivity,a=_objectWithoutProperties(e,_excluded),s=useLottie(a,n),l=s.View,c=s.play,d=s.stop,p=s.pause,g=s.setSpeed,u=s.goToAndStop,h=s.goToAndPlay,m=s.setDirection,f=s.playSegments,y=s.setSubframe,b=s.getDuration,C=s.destroy,x=s.animationContainerRef,v=s.animationLoaded,S=s.animationItem;return useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:c,stop:d,pause:p,setSpeed:g,goToAndPlay:h,goToAndStop:u,setDirection:m,playSegments:f,setSubframe:y,getDuration:b,destroy:C,animationContainerRef:x,animationLoaded:v,animationItem:S})},[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),useLottieInteractivity({lottieObj:{View:l,play:c,stop:d,pause:p,setSpeed:g,goToAndStop:u,goToAndPlay:h,setDirection:m,playSegments:f,setSubframe:y,getDuration:b,destroy:C,animationContainerRef:x,animationLoaded:v,animationItem:S},actions:null!==(r=null==o?void 0:o.actions)&&void 0!==r?r:[],mode:null!==(i=null==o?void 0:o.mode)&&void 0!==i?i:"scroll"})};function OnboardImage({node:e}){useLogRender("OnboardImage"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"OnboardImage",i=e.key??t,[n,o]=useState(null),a=useExtractViewStyle$1(e),s=e.attributes;return useEffect(()=>{s?.lottie&&fetch(s?.lottie).then(e=>e.json()).then(e=>o(e))},[s?.lottie]),s?.video_url?jsx("video",{"attribute-name":r,"attribute-key":i,autoPlay:!0,muted:!0,loop:!0,src:s?.video_url,style:a}):s?.lottie?jsx("div",n?{"attribute-name":r,"attribute-key":i,style:a,children:jsx(Lottie,{animationData:n})}:{"attribute-name":r,"attribute-key":i,style:a,children:"Loading..."}):jsx(Image$2,{node:{...e,type:"image",sourceType:r}})}var OnboardImage$1=React.memo(OnboardImage);function OnboardItem({node:e}){useLogRender("OnboardItem"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"OnboardItem",i=e.key??t,n=useExtractViewStyle$1(e);return jsx("div",{"attribute-name":r,"attribute-key":i,className:"embla__slide",style:n,children:e.children&&jsx(RenderNode$1,{node:e.children})})}var OnboardItem$1=React.memo(OnboardItem);function OnboardSubtitle({node:e}){return useLogRender("OnboardSubtitle"),e=useNode(e),jsx(Text$1,{node:e})}var OnboardSubtitle$1=React.memo(OnboardSubtitle);function OnboardTitle({node:e}){return useLogRender("OnboardTitle"),e=useNode(e),jsx(Text$1,{node:e})}var OnboardTitle$1=React.memo(OnboardTitle);function PaywallBackground({node:e}){return useLogRender("PaywallBackground"),jsx(BackgroundImage$1,{node:e})}var PaywallBackground$1=React.memo(PaywallBackground);function PaywallCloseButton({node:e}){useLogRender("PaywallCloseButton"),e=useNode(e);const{onClose:t,isBackAllowed:r}=usePaywallContext(),i=useId(),n=e.sourceType??e.type??"PaywallCloseButton",o=e.key??i,{previewMode:a,selectedKey:s}=useBuilderParams(),l=useExtractViewStyle$1(e),c=useExtractTextStyle$1(e),d=useMergedStyle(l,isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);if(!r)return null;const p=e.attributes,g=p?.styles,u=p?.iconType??"close",h=p?.size??c.fontSize??24,m=c.color??g?.color;return jsx("a",{"attribute-name":n,"attribute-key":o,href:"#",onClick:e=>{e.preventDefault(),t?.()},"aria-label":"Close",style:{...d,cursor:"pointer",textDecoration:"none"},children:jsx(Icon,{iconType:u,size:h,color:m,alt:""})})}function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function buildSegments(e,t){const r=[];for(const i of t){if(!i.value)continue;const t=new RegExp(escapeRegExp(i.value),"gi");for(const n of e.matchAll(t)){if(null==n.index)continue;const e=n[0];e&&r.push({start:n.index,end:n.index+e.length,value:e,color:i.color,page:i.page})}}if(0===r.length)return{segments:[{type:"text",value:e}],matchCount:0};r.sort((e,t)=>{if(e.start!==t.start)return e.start-t.start;const r=e.end-e.start;return t.end-t.start-r});const i=[];let n=-1;for(const e of r)e.start>=n&&(i.push(e),n=e.end);const o=[];let a=0;for(const{start:t,end:r,value:n,color:s,page:l}of i)t>a&&o.push({type:"text",value:e.slice(a,t)}),o.push({type:"match",value:n,color:s,page:l}),a=r;return a<e.length&&o.push({type:"text",value:e.slice(a)}),{segments:o,matchCount:i.length}}function PaywallFooter({node:e}){useLogRender("PaywallFooter");const t=(e=useNode(e)).sourceType??e.type??"PaywallFooter",{selectedTheme:r,previewMode:i,selectedKey:n,projectColors:o}=useBuilderParams(),a=o,s=useLocalize(),l=e=>e?s(e):"",c=e?.attributes,d=toAttributeRecord(c),p=l(c?.textLocalizationKey),g=useExtractTextStyle$1(e,!0),u=useExtractViewStyle$1(e),h=d.linkedWordSecondColor,m=d.linkedWordFirstColor,f=useMemo(()=>parseColor(h,{projectColors:a,theme:r}),[h,a,r]),y=useMemo(()=>parseColor(m,{projectColors:a,theme:r}),[m,a,r]),b=useMergedStyle(g,{cursor:"pointer"}),C=useMergedStyle(u,isNodeSelected({previewMode:!!i,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),x=useId(),v=e.key??x;return jsx("div",{"attribute-name":t,"attribute-key":v,style:C,children:!!p&&(()=>{const e=l(c?.linkedWordFirstLocalizationKey),t=l(c?.linkedWordSecondLocalizationKey),{segments:r,matchCount:i}=buildSegments(p,[{value:e,color:f??void 0,page:c?.linkedWordFirstPage},{value:t,color:y??void 0,page:c?.linkedWordSecondPage}]);return jsxs("span",{style:{...b,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},children:[r.map((e,t)=>"text"===e.type?jsx(React.Fragment,{children:e.value},t):jsx("span",{style:{...e.color?{color:e.color}:{},cursor:"pointer"},onClick:()=>{e.page},children:e.value},t)),0===i&&jsxs(Fragment,{children:[" ",c?.linkedWordFirstLocalizationKey&&jsx("span",{style:{...f?{color:f}:{},cursor:"pointer"},onClick:()=>{},children:e})," ",c?.linkedWordSecondLocalizationKey&&jsx("span",{style:{...y?{color:y}:{},cursor:"pointer"},onClick:()=>{},children:t})]})]})})()})}var PaywallFooter$1=React.memo(PaywallFooter);function PaywallOptionButton({product:e,onPress:t,node:r}){const i=useId(),n=(e.productId??"").trim(),{previewMode:o,selectedKey:a}=useBuilderParams(),s=useMergedStyle(useExtractViewStyle$1(r),isNodeSelected({previewMode:!!o,current:a?{key:a}:void 0,node:r})?SELECTED_OUTLINE_STYLE:void 0),l=r.sourceType??r.type??"text",c=r.key??i;return jsx("div",{"attribute-name":l,"attribute-key":n?`${c}:${n}`:c,role:"button",tabIndex:0,onClick:()=>t(n),style:{...s,cursor:"pointer"},children:jsx(RenderNode$1,{node:r.children})})}function extractPrice(e){return e?e.replace(/[^0-9.]/g,""):""}function calculateDiscount(e,t){if(!t||!e)return"";const r=parseFloat(e),i=parseFloat(t);if(isNaN(r)||isNaN(i)||r<=0)return"";const n=Math.round((r-i)/r*100);return String(Math.max(0,n))}function calculatePricePerMonth(e,t){return isNaN(e)?"":"month"===t?e.toFixed(2):"year"===t?(e/12).toFixed(2):"week"===t?(52*e/12).toFixed(2):"day"===t?(365*e/12).toFixed(2):e.toFixed(2)}function calculatePricePerYear(e,t){return isNaN(e)?"":"year"===t?e.toFixed(2):"month"===t?(12*e).toFixed(2):"week"===t?(52*e).toFixed(2):"day"===t?(365*e).toFixed(2):e.toFixed(2)}const PERIOD_LOCALIZATION_KEYS={monthly:"base.builder.paywall.period.monthly",annual:"base.builder.paywall.period.annual",weekly:"base.builder.paywall.period.weekly",daily:"base.builder.paywall.period.daily",monthlyPromo:"base.builder.paywall.period.monthlyPromo",annualPromo:"base.builder.paywall.period.annualPromo"},PAYWALL_TEXT_KEYS={pricingDefault:"base.builder.paywall.pricing.default.text",pricingFreeTrial:"base.builder.paywall.pricing.freeTrial.text",pricingRegular:"base.builder.paywall.pricing.regular.text",promoDefault:"base.builder.paywall.promo.default.text",promoFreeTrial:"base.builder.paywall.promo.freeTrial.text",promoRegular:"base.builder.paywall.promo.regular.text"};function getPeriodLocalizationKey(e,t){switch(e){case"month":return t?PERIOD_LOCALIZATION_KEYS.monthlyPromo:PERIOD_LOCALIZATION_KEYS.monthly;case"year":return t?PERIOD_LOCALIZATION_KEYS.annualPromo:PERIOD_LOCALIZATION_KEYS.annual;case"week":return PERIOD_LOCALIZATION_KEYS.weekly;case"day":return PERIOD_LOCALIZATION_KEYS.daily;default:return PERIOD_LOCALIZATION_KEYS.monthly}}function parseBillingPeriod(e){const t=e.match(/P(\d+)([DWMY])/);if(!t||!t[1]||!t[2])return{value:1,unit:"month"};const r=parseInt(t[1],10),i={D:"day",W:"week",M:"month",Y:"year"}[t[2]];return i?{value:r,unit:i}:{value:1,unit:"month"}}function convertIOSPeriodUnit(e){if(!e)return"month";return{DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"}[e.toUpperCase()]||"month"}function normalizeIOSPeriod(e,t){const r=convertIOSPeriodUnit(e),i=t||1;if("day"===r){if(i%365==0)return{unit:"year",value:i/365};if(366===i)return{unit:"year",value:1};if(i%30==0)return{unit:"month",value:i/30};if(31===i)return{unit:"month",value:1};if(i%7==0)return{unit:"week",value:i/7}}return"month"===r&&i%12==0?{unit:"year",value:i/12}:{unit:r,value:i}}function noop(){}const iapLogger={error(e,t,r){console.error(`[iap] ${t}`,r)},warn(e,t,r){console.warn(`[iap] ${t}`,r)},info(e,t,r){console.info(`[iap] ${t}`,r)},debug:noop};function findOffer(e,t){return e.find(e=>e.id===t||e.basePlanIdAndroid===t)}function extractAndroidParams(e,t){try{const r=e.subscriptionOffers??[];let i=r[0];if(t&&r.length>0){const n=findOffer(r,t);n?i=n:iapLogger.error(["extractAndroidParams"],"Requested offer not found, using default",{productId:e.id||e.productId,requestedOfferId:t,availableOffers:r.map(e=>e.id)})}if(!i)return iapLogger.warn(["extractAndroidParams"],"No offers found in product",{productId:e.id||e.productId}),getFallbackParams(e);const n=i.pricingPhasesAndroid?.pricingPhaseList??[];if(0===n.length)return iapLogger.warn(["extractAndroidParams"],"No pricing phases found",{productId:e.id||e.productId,offerId:i.id}),getFallbackParams(e);const o=n.find(e=>"0"===e.priceAmountMicros),a=n.find(e=>2===e.recurrenceMode&&"0"!==e.priceAmountMicros),s=n.find(e=>1===e.recurrenceMode)??n[n.length-1];if(!s)return iapLogger.error(["extractAndroidParams"],"No regular phase found",{productId:e.id||e.productId,pricingPhasesCount:n.length}),getFallbackParams(e);const l=parseBillingPeriod(s.billingPeriod),c=`${l.value} ${l.unit}${l.value>1?"s":""}`,d=extractPrice(s.formattedPrice),p=s.priceCurrencyCode||"",g=s.formattedPrice||"";let u="",h="",m="",f="";if(a){u=extractPrice(a.formattedPrice);const e=a.billingCycleCount||0,t=parseBillingPeriod(a.billingPeriod),r=e*t.value;h=`${r} ${t.unit}${r>1?"s":""}`,m=String(e),f=t.unit}let y="false",b="",C="";if(o){y="true";const e=parseBillingPeriod(o.billingPeriod);b=String(e.value),C=e.unit}const x=calculateDiscount(d,u),v="string"==typeof e.price&&""!==e.price?e.price:d,S="string"==typeof e.currency&&""!==e.currency?e.currency:p,w="string"==typeof e.localizedPrice&&""!==e.localizedPrice?e.localizedPrice:g,k=parseFloat(v),T=calculatePricePerMonth(k,l.unit),_=calculatePricePerYear(k,l.unit);return{price:v,promoPrice:u,currency:S,localizedPrice:w,period:l.unit,periodValue:String(l.value),periodType:c,promoPeriod:h,promoCycles:m,promoPeriodUnit:f,hasTrial:y,trialPeriod:b,trialPeriodUnit:C,discountPercentage:x,pricePerMonth:T,pricePerYear:_}}catch(t){return iapLogger.error(["extractAndroidParams"],"Failed to extract Android params",{productId:e?.id||e?.productId,error:t instanceof Error?t.message:String(t)}),getFallbackParams(e)}}function getFallbackParams(e){const t=String(e.price||e.localizedPrice||"").replace(/[^0-9.]/g,"");return{...getEmptyParams$1(),price:t,currency:e.currency||e.currencyCode||"",localizedPrice:e.localizedPrice||""}}function getEmptyParams$1(){return{price:"",promoPrice:"",currency:"",localizedPrice:"",period:"month",periodValue:"1",periodType:"1 month",promoPeriod:"",promoCycles:"",promoPeriodUnit:"",hasTrial:"false",trialPeriod:"",trialPeriodUnit:"",discountPercentage:"",pricePerMonth:"",pricePerYear:""}}function isFreeTrialIntro(e){return"free_trial"===e.type||0===parseFloat(e.price||e.priceIOS||"0")}function extractPromoCyclesAndPeriod(e,t){return{promoPeriod:`${e} ${t}${e>1?"s":""}`,promoCycles:String(e),promoPeriodUnit:t}}function extractIOSParams(e,t){try{const r=String(e.price||e.localizedPrice||"").replace(/[^0-9.]/g,""),i=e.currency||e.currencyCode||"",n=e.localizedPrice||"",o=normalizeIOSPeriod(e.subscriptionPeriodUnitIOS,e.subscriptionPeriodNumberIOS),a=o.unit,s=String(o.value),l=`${s} ${a}${parseInt(s,10)>1?"s":""}`,c=e.introductoryPrice||e.introductoryPriceIOS,d=!!c,p=d&&isFreeTrialIntro(c);let g="false",u="",h="",m="",f="",y="",b="";if(p)g="true",u=String(c.subscriptionPeriodNumberIOS||c.numberOfPeriods||7),h=convertIOSPeriodUnit(c.subscriptionPeriodUnitIOS||c.subscriptionPeriod||"DAY");else if(d){m=String(c.price||c.priceIOS||"").replace(/[^0-9.]/g,"");const e=c.numberOfPeriods||1,t=extractPromoCyclesAndPeriod(e,convertIOSPeriodUnit(c.subscriptionPeriodUnitIOS||c.subscriptionPeriod||"MONTH"));f=t.promoPeriod,y=t.promoCycles,b=t.promoPeriodUnit}if(t&&e.discounts){const r=e.discounts.find(e=>e.identifier===t);if(r){m=String(r.price||"").replace(/[^0-9.]/g,"");const e=r.numberOfPeriods||1,t=extractPromoCyclesAndPeriod(e,convertIOSPeriodUnit(r.subscriptionPeriod||"MONTH"));f=t.promoPeriod,y=t.promoCycles,b=t.promoPeriodUnit}else iapLogger.error(["extractIOSParams"],"Requested offer not found in discounts",{productId:e.id||e.productId,requestedOfferId:t,availableDiscounts:e.discounts.map(e=>e.identifier)})}const C=calculateDiscount(r,m),x=parseFloat(r),v=calculatePricePerMonth(x,a);return{price:r,promoPrice:m,currency:i,localizedPrice:n,period:a,periodValue:s,periodType:l,promoPeriod:f,promoCycles:y,promoPeriodUnit:b,hasTrial:g,trialPeriod:u,trialPeriodUnit:h,discountPercentage:C,pricePerMonth:v,pricePerYear:calculatePricePerYear(x,a)}}catch(t){return iapLogger.error(["extractIOSParams"],"Failed to extract iOS params",{productId:e?.id||e?.productId,error:t instanceof Error?t.message:String(t)}),getEmptyParams()}}function getEmptyParams(){return{price:"",promoPrice:"",currency:"",localizedPrice:"",period:"month",periodValue:"1",periodType:"1 month",promoPeriod:"",promoCycles:"",promoPeriodUnit:"",hasTrial:"false",trialPeriod:"",trialPeriodUnit:"",discountPercentage:"",pricePerMonth:"",pricePerYear:""}}function buildPaywallLocalizationParams(e,t,r,i){const n=i??(e=>e),o="android"===t?extractAndroidParams(e,r):extractIOSParams(e,r),a=o.period||"month",s=!!o.promoPrice,l="true"===o.hasTrial,c=getPeriodLocalizationKey(a,!1),d=s?getPeriodLocalizationKey(a,!0):"";let p="";if(s)try{p=new Intl.NumberFormat(void 0,{style:"currency",currency:o.currency}).format(Number(o.promoPrice))}catch{p=`${o.promoPrice} ${o.currency}`.trim()}const g=n(c),u=s?n(d):"",h=p||o.localizedPrice,m=u||g;let f,y;return s?(f=PAYWALL_TEXT_KEYS.pricingDefault,y=PAYWALL_TEXT_KEYS.promoDefault):l?(f=PAYWALL_TEXT_KEYS.pricingFreeTrial,y=PAYWALL_TEXT_KEYS.promoFreeTrial):(f=PAYWALL_TEXT_KEYS.pricingRegular,y=PAYWALL_TEXT_KEYS.promoRegular),{price:o.price,promoPrice:o.promoPrice,currency:o.currency,localizedPrice:o.localizedPrice,period:o.period,promoPeriod:o.promoPeriod,promoPeriodUnit:o.promoPeriodUnit,hasTrial:o.hasTrial,trialPeriod:o.trialPeriod,trialPeriodUnit:o.trialPeriodUnit,discountPercentage:o.discountPercentage,localizedPeriod:g,localizedPromoPeriod:u,localizedPromoPrice:p,localizedCalculatedPrice:h,localizedCalculatedPeriod:m,baseLocalizedPricingText:n(f),baseLocalizedPromoText:n(y),productTitle:String(e.title??""),productDescription:String(e.description??""),productCurreny:o.currency,productId:String(e.productId??""),productSelected:"true",subscribe:n(l?"base.builder.paywall.button.subscribe-free":"base.builder.paywall.button.subscribe")}}function usePaywallLocalizationParams(e,t,r){return useMemo(()=>{if(!e||!r?.platform)return{};try{const i=r.builderProducts?.find(e=>e.store_package_id===t),n=i?.offer_id;return buildPaywallLocalizationParams(e,r.platform,n,r.localize)}catch(e){return console.error("[usePaywallLocalizationParams] Error:",e),{}}},[e,t,r])}var presetsJson$1={"preset-1":[{productId:"com.app.monthly",id:"com.app.monthly",title:"Monthly",description:"Unlock all features for a month.",type:"subs",displayName:"Monthly Subscription",displayPrice:"$4.99",localizedPrice:"$4.99",currency:"USD",price:"4.99",platform:"android",subscriptionOffers:[{id:"monthly-trial-offer",displayPrice:"Free → $4.99",price:0,type:"promotional",currency:"USD",basePlanIdAndroid:"monthly-base",offerTokenAndroid:"mock_token_monthly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P3D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"$4.99",priceAmountMicros:"4990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:3,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:3},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.yearly",id:"com.app.yearly",title:"Yearly (Save 33%)",description:"Best value: full access for a year.",type:"subs",displayName:"Yearly Subscription",displayPrice:"$29.99",localizedPrice:"$29.99",currency:"USD",price:"29.99",platform:"android",subscriptionOffers:[{id:"yearly-promo-offer",displayPrice:"$19.99",price:19.99,type:"promotional",currency:"USD",basePlanIdAndroid:"yearly-base",offerTokenAndroid:"mock_token_yearly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P1Y",formattedPrice:"$19.99",priceAmountMicros:"19990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"$29.99",priceAmountMicros:"29990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"19.99",priceIOS:"19.99",type:"pay_as_you_go",numberOfPeriods:1,subscriptionPeriod:"YEAR",subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},discounts:[{identifier:"yearly-promo-offer",price:"19.99",numberOfPeriods:1,subscriptionPeriod:"YEAR"}],subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},{productId:"com.app.weekly",id:"com.app.weekly",title:"Weekly",description:"Try with a flexible weekly plan.",type:"subs",displayName:"Weekly Subscription",displayPrice:"$1.99",localizedPrice:"$1.99",currency:"USD",price:"1.99",platform:"android",subscriptionOffers:[{id:"weekly-base",displayPrice:"$0.99",price:.99,type:"promotional",currency:"USD",basePlanIdAndroid:"weekly-base",offerTokenAndroid:"mock_token_weekly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:4,billingPeriod:"P1W",formattedPrice:"$0.99",priceAmountMicros:"990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1W",formattedPrice:"$1.99",priceAmountMicros:"1990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.99",priceIOS:"0.99",type:"pay_as_you_go",numberOfPeriods:4,subscriptionPeriod:"WEEK",subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1},subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1}],"preset-2":[{productId:"com.app.premium.monthly",id:"com.app.premium.monthly",title:"Premium Monthly",description:"Premium tier with all features.",type:"subs",displayName:"Premium Monthly",displayPrice:"$9.99",localizedPrice:"$9.99",currency:"USD",price:"9.99",platform:"android",subscriptionOffers:[{id:"premium-monthly-trial-offer",displayPrice:"Free → $9.99",price:0,type:"promotional",currency:"USD",basePlanIdAndroid:"premium-monthly-base",offerTokenAndroid:"mock_token_premium_monthly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P7D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"$9.99",priceAmountMicros:"9990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:7,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:7},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.premium.yearly",id:"com.app.premium.yearly",title:"Premium Yearly (Save 50%)",description:"7-day free trial, then $29.99 first year, $59.99/yr after.",type:"subs",displayName:"Premium Yearly",displayPrice:"$59.99",localizedPrice:"$59.99",currency:"USD",price:"59.99",platform:"android",subscriptionOffers:[{id:"premium-yearly-full-offer",displayPrice:"$29.99",price:29.99,type:"promotional",currency:"USD",basePlanIdAndroid:"premium-yearly-base",offerTokenAndroid:"mock_token_premium_yearly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P7D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:1,billingPeriod:"P1Y",formattedPrice:"$29.99",priceAmountMicros:"29990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"$59.99",priceAmountMicros:"59990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:7,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:7},discounts:[{identifier:"premium-yearly-full-offer",price:"29.99",numberOfPeriods:1,subscriptionPeriod:"YEAR"}],subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},{productId:"com.app.lifetime",id:"com.app.lifetime",title:"Lifetime",description:"One-time purchase for lifetime access.",type:"in-app",displayName:"Lifetime Access",displayPrice:"$99.99",localizedPrice:"$99.99",currency:"USD",price:"99.99",platform:"android",subscriptionOffers:[]}],"preset-3":[{productId:"com.app.budget.weekly",id:"com.app.budget.weekly",title:"Budget Weekly",description:"Affordable weekly plan.",type:"subs",displayName:"Budget Weekly",displayPrice:"€2.99",localizedPrice:"€2.99",currency:"EUR",price:"2.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"budget-weekly-trial-offer",displayPrice:"Free → €2.99",price:0,type:"promotional",currency:"EUR",basePlanIdAndroid:"budget-weekly-base",offerTokenAndroid:"mock_token_budget_weekly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P3D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"EUR",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1W",formattedPrice:"€2.99",priceAmountMicros:"2990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:3,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:3},subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1},{productId:"com.app.monthly.promo",id:"com.app.monthly.promo",title:"Monthly (70% off first 3 months)",description:"€2.99/mo for 3 months, then €9.99/mo.",type:"subs",displayName:"Monthly with Promo",displayPrice:"€9.99",localizedPrice:"€9.99",currency:"EUR",price:"9.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"monthly-promo-offer",displayPrice:"€2.99",price:2.99,type:"promotional",currency:"EUR",basePlanIdAndroid:"monthly-promo",offerTokenAndroid:"mock_token_monthly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:3,billingPeriod:"P1M",formattedPrice:"€2.99",priceAmountMicros:"2990000",priceCurrencyCode:"EUR",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"€9.99",priceAmountMicros:"9990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"2.99",priceIOS:"2.99",type:"pay_as_you_go",numberOfPeriods:3,subscriptionPeriod:"MONTH",subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.yearly.trial",id:"com.app.yearly.trial",title:"Yearly (14-day free trial)",description:"Try free for 14 days, then €29.99/yr.",type:"subs",displayName:"Yearly with Trial",displayPrice:"€29.99",localizedPrice:"€29.99",currency:"EUR",price:"29.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"yearly-trial-offer",displayPrice:"Free → €29.99",price:0,type:"promotional",currency:"EUR",basePlanIdAndroid:"yearly-trial",offerTokenAndroid:"mock_token_yearly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P14D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"EUR",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"€29.99",priceAmountMicros:"29990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:14,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:14},subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1}]};function getMockProducts(){return JSON.parse(JSON.stringify(presetsJson$1))}function getMockProductsByPreset(e){return getMockProducts()[e]??[]}function usePaywallOptionParamsFactory(){const{localizationParams:e,otherParams:t}=useParams(),r=useRenderStore(e=>e.device),i=useLocalize(),n="ios"===r.platform?"ios":"android";return useCallback((r,{isSelected:o})=>{const a=buildPaywallLocalizationParams(r,n,void 0,i);return{localizationParams:{...e,...a,productSelected:o?"true":"false"},otherParams:{...t,singleProductIsSelected:o}}},[e,t,n,i])}function parseNumberLike$1(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function compareProducts(e,t,r,i){const n=parseNumberLike$1(e.price),o=parseNumberLike$1(t.price);if(void 0!==n&&void 0!==o&&n!==o)return n-o;const a=(e.title??"").trim(),s=(t.title??"").trim();if(a&&s&&a!==s)return a.localeCompare(s);if(a&&!s)return-1;if(!a&&s)return 1;const l=(e.productId??"").trim(),c=(t.productId??"").trim();return l!==c?l.localeCompare(c):r-i}function PaywallOptions({node:e}){useLogRender("PaywallOptions"),e=useNode(e);const{mockProducts:t}=useBuilderParams(),{selectedProduct:r,setSelectedProductId:i}=usePaywallContext(),n=usePaywallOptionParamsFactory(),o=useMemo(()=>(Array.isArray(t)?t:[]).map((e,t)=>({p:e,idx:t})).sort((e,t)=>compareProducts(e.p,t.p,e.idx,t.idx)).map(({p:e})=>e),[t]);return jsx(Fragment,{children:o.map((t,o)=>{const a=t.productId||`${o}`,s=r?.productId===a,{localizationParams:l,otherParams:c}=n(t,{isSelected:s});return jsx(ParamsProvider,{localizationParams:l,otherParams:c,children:jsx(PaywallOptionButton,{node:e,product:t,selected:s,onPress:i})},a)})})}var PaywallOptions$1=React.memo(PaywallOptions);function LocalizationParamsProvider({params:e,children:t}){return jsx(ParamsProvider,{localizationParams:e,nestedLocalizationParams:{},children:t})}function useChangeDelayByPaywall(e,t){const r=useMemo(()=>e?.attributes?.delay?parseInt(String(e?.attributes?.delay),10):1e3,[e?.attributes?.delay]);useEffect(()=>{if(!r||r<=0)return void t(!0);const e=setTimeout(()=>{t(!0)},r);return()=>clearTimeout(e)},[r,t])}function useMockOSBackHandler(e){useEffect(()=>registerMockOSBackHandler(()=>e),[e])}function PaywallProvider({node:e}){useLogRender("PaywallProvider"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"PaywallProvider",i=e.key??t,{mockBenefits:n,mockProducts:o,onPaywallSubscribe:a,previewMode:s,selectedKey:l}=useBuilderParams(),c=useMockOSContext(),d=useMemo(()=>{const e=n&&"object"==typeof n&&!Array.isArray(n)?n:{},t=Object.entries(e).filter(([e])=>e.trim().length>0),r=Object.fromEntries(t.map(([e,t])=>[e.trim(),String(t)]));for(let e=0;e<t.length;e+=1){const[,i]=t[e],n=String(i);r[`benefit${e+1}`]=n}return r},[n]),p=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!s,current:l?{key:l}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),[g,u]=useState(""),[h,m]=useState(!1);useChangeDelayByPaywall(e,m),useMockOSBackHandler(h),useEffect(()=>{const e=Array.isArray(o)?o:[];if(0===e.length)return void(g&&u(""));const t=e.some(e=>e?.productId===g);g&&t||u(e[0]?.productId??"")},[o,g]);const f=useMemo(()=>{const e=Array.isArray(o)?o:[];return e.find(e=>e?.productId===g)??(e.length>0?e[0]:void 0)},[o,g]),y=useRenderStore(e=>e.device),b=useLocalize(),C="ios"===y.platform?"ios":"android",x=usePaywallLocalizationParams(f,g,{platform:C,localize:b}),v=useCallback(()=>{if(h&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[c,h]),S=useCallback(async e=>{if(a){const t=a(e),r=t instanceof Promise?await t:!0===t;return r&&c?.isEnabled&&c.goBack?.(),r}const t=e?.productId;if(c?.isEnabled&&t&&c.requestSubscriptionPurchase){const e=await c.requestSubscriptionPurchase(t);return e&&c.goBack?.(),e}return!1},[c,a]),w=useCallback(()=>{if(h&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[h,c]),k=useMemo(()=>({products:Array.isArray(o)?o:[],setSelectedProductId:u,selectedProduct:f,onClose:v,onSubscribe:S,onCounterDown:w,isBackAllowed:h}),[o,f,v,S,w,h]);return jsx("div",{"attribute-name":r,"attribute-key":i,style:p,children:jsx(PaywallContext.Provider,{value:k,children:jsx(LocalizationParamsProvider,{params:{...d,...x,platform:C},children:jsx(RenderNode$1,{node:e.children})})})})}var PaywallProvider$1=React.memo(PaywallProvider);function PaywallSubscribeButton({node:e}){useLogRender("PaywallSubscribeButton"),e=useNode(e);const{onSubscribe:t,selectedProduct:r}=usePaywallContext(),i=useId(),n=e.sourceType??e.type??"PaywallSubscribeButton",o=e.key??i,{previewMode:a,selectedKey:s}=useBuilderParams(),l=useMergedStyle(useExtractTextStyle$1(e),isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),c=useLocalize(),d="string"==typeof e.children&&e.children.trim().length>0?e.children:"Subscribe";return jsx("a",{type:"button","attribute-name":n,"attribute-key":o,href:"#",onClick:e=>{e.preventDefault(),t?.(r)},style:{...l,cursor:"pointer"},children:c(d)})}var PaywallSubscribeButton$1=React.memo(PaywallSubscribeButton);function PriceTag({node:e}){useLogRender("PriceTag"),e=useNode(e);const t=useLocalizationParams(),r=!!t?.promoPrice;return(e.attributes?.hideIfItsNotDiscount??!1)&&!r?null:jsx(Text$1,{node:e})}var PriceTag$1=React.memo(PriceTag);function Pricing({node:e}){return useLogRender("Pricing"),e=useNode(e),jsx(Text$1,{node:e})}var Pricing$1=React.memo(Pricing);function Promo({node:e}){return useLogRender("Promo"),e=useNode(e),jsx(Text$1,{node:e})}var Promo$1=React.memo(Promo);function parseNumberLike(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function RadioButtonBase({selected:e,color:t,size:r=24}){const i=Math.round(.1*r),n=Math.round(.5*r),{projectColors:o}=useBuilderParams(),a=t??o?.STATIC_COLORS?.RADIO_BUTTON_COLOR??"#A6A6A6",s=useContext(ParamsContext),{singleProductIsSelected:l}=s?.otherParams??{};return jsx("div",{style:{marginLeft:8,marginRight:16},children:jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",borderWidth:i,borderStyle:"solid",borderColor:a,width:r,height:r,borderRadius:n,boxSizing:"border-box",flex:"0 0 auto"},children:jsx("div",l??e?{style:{width:n,height:n,borderRadius:2*n,backgroundColor:a}}:{style:{width:r,height:r,borderRadius:n}})})})}function RadioButton({node:e}){useLogRender("RadioButton"),e=useNode(e);const t=useId(),r=e.type??"RadioButton",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),s=e.attributes,l=Boolean(s?.selected),c=s?.color,d=parseNumberLike(s?.size);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:jsx(RadioButtonBase,{selected:l,color:c,size:d})})}var RadioButton$1=React.memo(RadioButton);function Separator({node:e}){useLogRender("Separator"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"Separator",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a})}var Separator$1=React.memo(Separator);function StatusBarColor({node:e}){useLogRender("StatusBarColor"),e=useNode(e);const{selectedTheme:t,projectColors:r}=useBuilderParams(),i=useRenderStore(e=>e.setStatusBarOverrideColor),n=useRenderStore(e=>e.setStatusBarOverrideTranslucent),o=getStyleBag(e.attributes)?.backgroundColor,a=parseColor(o,{projectColors:r,theme:t}),s=e.attributes?.translucent;return useEffect(()=>(a&&i(a),void 0!==s&&n(s),()=>{i(null),n(null)}),[a,i,s,n]),null}var StatusBarColor$1=React.memo(StatusBarColor);function View({node:e}){useLogRender("View"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"View",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:e.children&&jsx(RenderNode$1,{node:e.children})})}var View$1=React.memo(View);function WebView({node:e}){useLogRender("WebView");const t=(e=useNode(e)).attributes,r=useExtractViewStyle$1(e),{selectedTheme:i,projectColors:n,device:o}=useBuilderParams(),a=useRef(null),[s,l]=useState(!0),c="ios"===(o?.platform||"ios")?t?.iosUrl:t?.androidUrl,d=i??"dark",p={projectColors:n,theme:i},g=parseColor("THEME_COLORS.BACKGROUND",p)??parseColor("STATIC_COLORS.WHITE",p)??void 0,u=parseColor("THEME_COLORS.TEXT",p)??parseColor("STATIC_COLORS.BLACK",p)??void 0,h=parseColor(t?.styles?.loaderColor,p)??u,m=t?.styles?.loaderSize??30,f=t?.styles?.loaderBorderWidth??3,y=t?.styles?.loaderAnimationDuration??1,b=useMergedStyle(null!=g?{backgroundColor:g}:void 0,null!=u?{color:u}:void 0),C=useMergedStyle(r,b,{"--rb-webview-loader-size":`${m}px`,"--rb-webview-loader-border-width":`${f}px`,"--rb-webview-loader-duration":`${y}s`}),x=useMergedStyle(b),v=useMergedStyle(b,{flex:1,minHeight:0}),S=useCallback(()=>{if(null==g||null==u)return;const e=a.current?.contentDocument;if(!e?.head)return void(c&&console.debug("[WebView] Theme styles not injected: contentDocument not accessible (cross-origin).","URL:",c,"— Use same-origin URL or rely on the wrapper filter for dark mode."));const t=e.querySelector("style[data-rb-webview-theme]"),r=[`body{background-color:${g};color:${u}}`,`*{color:${u}}`,`span{background-color:${g}}`].join(" ");if(t)t.textContent=r;else{const t=e.createElement("style");t.setAttribute("data-rb-webview-theme",""),t.textContent=r,e.head.appendChild(t)}},[g,u,c]),w=useCallback(()=>{l(!1),S()},[S]);useEffect(()=>{s||S()},[i,g,u,s,S]);const k="dark"===d;return jsxs("div",{className:"rb-webview",style:C,"data-testid":t?.testID,children:[s&&jsx("div",{className:"rb-webview__overlay",style:x,children:jsx("div",{className:"rb-webview__loader",style:{borderColor:null!=h?`${h}40`:void 0,borderTopColor:h??void 0}})}),jsx("div",{className:"rb-webview__frame-wrapper",style:v,children:jsx("div",{className:"rb-webview__frame-inner",style:k?{width:"100%",height:"100%",filter:"invert(1) hue-rotate(180deg)"}:{width:"100%",height:"100%"},children:jsx("iframe",{ref:a,src:c,className:"rb-webview__frame",style:{opacity:s?0:1,backgroundColor:"transparent"},onLoad:w,title:"WebView Content"})})})]})}function RenderNode({node:e}){if(isNodeNullOrUndefined(e))return null;if(isNodeString(e))return jsx(Text,{node:{children:e,type:"Text"}});if(isNodeArray(e))return jsx(Fragment,{children:e.map((e,t)=>jsx(RenderNode,{node:e},t))});const t="string"==typeof e?.type?e.type:"unknown",r=normalizeComponentType(t)??t,i={...e,type:r};switch(i.type){case"BIcon":return jsx(BIcon,{node:i});case"BackgroundImage":return jsx(BackgroundImage,{node:i});case"Button":return jsx(Button,{node:i});case"Carousel":return jsx(Carousel$1,{node:i});case"CarouselButtons":return jsx(CarouselButtons$1,{node:i});case"CarouselDots":return jsx(CarouselDots$1,{node:i});case"CarouselItem":return jsx(CarouselItem,{node:i});case"CarouselProvider":return jsx(CarouselProvider$1,{node:i});case"Checkbox":return jsx(Checkbox$1,{node:i});case"CountDown":return jsx(CountDown,{node:i});case"FormCheckbox":return jsx(FormCheckbox,{node:i});case"FormErrorText":return jsx(FormErrorText,{node:i});case"FormProvider":return jsx(FormProvider,{node:i});case"FormSubmitButton":return jsx(FormSubmitButton,{node:i});case"Image":return jsx(Image$2,{node:i});case"Main":return jsx(Main$1,{node:i});case"NavigationBarColor":return jsx(NavigationBarColor$1,{node:i});case"Onboard":return jsx(Onboard$1,{node:i});case"OnboardButton":return jsx(OnboardButton,{node:i});case"OnboardButtons":return jsx(OnboardButtons$1,{node:i});case"OnboardDot":return jsx(OnboardDot,{node:i});case"OnboardFooter":return jsx(OnboardFooter$1,{node:i});case"OnboardImage":return jsx(OnboardImage$1,{node:i});case"OnboardItem":return jsx(OnboardItem$1,{node:i});case"OnboardProvider":return jsx(OnboardProvider$1,{node:i});case"OnboardSubtitle":return jsx(OnboardSubtitle$1,{node:i});case"OnboardTitle":return jsx(OnboardTitle$1,{node:i});case"PaywallBackground":return jsx(PaywallBackground$1,{node:i});case"PaywallCloseButton":return jsx(PaywallCloseButton,{node:i});case"PaywallFooter":return jsx(PaywallFooter$1,{node:i});case"PaywallOptions":return jsx(PaywallOptions$1,{node:i});case"PaywallProvider":return jsx(PaywallProvider$1,{node:i});case"PaywallSubscribeButton":return jsx(PaywallSubscribeButton$1,{node:i});case"PriceTag":return jsx(PriceTag$1,{node:i});case"Pricing":return jsx(Pricing$1,{node:i});case"Promo":return jsx(Promo$1,{node:i});case"RadioButton":return jsx(RadioButton$1,{node:i});case"Separator":return jsx(Separator$1,{node:i});case"StatusBarColor":return jsx(StatusBarColor$1,{node:i});case"SystemButton":return jsx(SystemButton,{node:i});case"Text":return jsx(Text,{node:i});case"View":return jsx(View$1,{node:i});case"WebView":return jsx(WebView,{node:i});default:return other(t,e)}}var RenderNode$1=React.memo(RenderNode);const allcomponentNames=["BIcon","BackgroundImage","Button","Carousel","CarouselButtons","CarouselDots","CarouselItem","CarouselProvider","Checkbox","CountDown","FormCheckbox","FormErrorText","FormProvider","FormSubmitButton","Image","Main","NavigationBarColor","Onboard","OnboardButton","OnboardButtons","OnboardDot","OnboardFooter","OnboardImage","OnboardItem","OnboardProvider","OnboardSubtitle","OnboardTitle","PaywallBackground","PaywallCloseButton","PaywallFooter","PaywallOptions","PaywallProvider","PaywallSubscribeButton","PriceTag","Pricing","Promo","RadioButton","Separator","StatusBarColor","SystemButton","Text","View","WebView"];class RenderErrorBoundary extends React.Component{constructor(){super(...arguments),this.state={error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null},this.copyDetails=async()=>{const e=this.buildDetails();try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),this.setState({copied:!0,copyError:null}),void window.setTimeout(()=>this.setState({copied:!1}),900)}catch{}try{if("undefined"==typeof document)return void this.setState({copied:!1,copyError:"Copy failed"});const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");if(document.body.removeChild(t),!r)return void this.setState({copied:!1,copyError:"Copy failed"});this.setState({copied:!0,copyError:null}),window.setTimeout(()=>this.setState({copied:!1}),900)}catch(e){this.setState({copied:!1,copyError:e instanceof Error?e.message:"Copy failed"})}},this.reset=()=>{this.setState({error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null})}}static getDerivedStateFromError(e){return{error:e,errorStack:e?.stack,copied:!1,copyError:null}}componentDidCatch(e,t){const r=t.componentStack??void 0;this.setState({error:e,errorStack:e?.stack,componentStack:r}),this.props.onError?.(e,r)}buildDetails(){const{error:e,errorStack:t,componentStack:r}=this.state;return[`Error: ${e?.message??""}`,"",t?`Stack:\n${t}`:"Stack: (missing)","",r?`React component stack:\n${r}`:"React component stack: (missing)"].join("\n")}render(){const{error:e,copied:t,copyError:r}=this.state;if(!e)return this.props.children;const i=this.buildDetails();return jsxs("div",{role:"alert",style:{padding:16,borderRadius:12,background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",color:"hsl(var(--card-foreground, var(--rb-card-foreground, 220.9 39.3% 11%)))",border:"1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)) / 0.9)"},children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("div",{style:{fontWeight:700},children:"Preview crashed"}),this.props.subtitle&&jsxs("div",{style:{opacity:.8,fontSize:12},children:["(",this.props.subtitle,")"]}),jsxs("div",{style:{marginLeft:"auto",display:"flex",gap:8},children:[jsx("button",{type:"button",className:"editor-button",onClick:this.copyDetails,children:t?"Copied":"Copy details"}),jsx("button",{type:"button",className:"editor-button",onClick:this.reset,children:"Try again"})]})]}),r&&jsx("div",{style:{marginTop:8,color:"hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)))",fontSize:12},children:r}),jsx("pre",{style:{marginTop:12,whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.4,background:"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))",padding:12,borderRadius:10,overflow:"auto",maxHeight:360},children:i})]})}}function findNodeByKeyNested(e,t){if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKeyNested(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKeyNested(r.children,t):null}function usePreviewSelection({previewMode:e,data:t,rootRef:r,onSelectNode:i,setCurrent:n,forceRender:o}){useEffect(()=>{if(!e)return;const o=r.current;if(!o)return;const a=e=>{const r=e.target;if(!r)return;if(r.closest(".embla__dot"))return;let o=r.closest("[attribute-key]");for(;o;){const e=o.getAttribute("attribute-key");if(e){const r=findNodeByKeyNested(t,e);if(r)return n(r),void i?.(r)}o=o.parentElement?.closest("[attribute-key]")??null}};return o.addEventListener("click",a),()=>{o.removeEventListener("click",a)}},[e,t,i,n,o,r])}function isNullish(e){return null==e}function RenderPage({data:e,name:t,onSelectNode:r,params:i}){useLogRender("RenderPage");const{products:n,benefits:o,selectedTheme:a,selectedLanguage:s,overrideLocalization:l,overrideBaseSize:c,overrideProjectColors:d,overrideFonts:p,appFont:g,previewMode:u,current:h,forceRender:m,device:f,setCurrent:y}=useRenderStore(e=>({products:e.products,benefits:e.benefits,selectedTheme:e.theme,selectedLanguage:e.defaultLanguage,overrideLocalization:e.localization,overrideBaseSize:e.baseSize,device:e.device,overrideProjectColors:e.projectColors,overrideFonts:e.fonts,appFont:e.appFont,previewMode:e.previewMode,current:e.current,forceRender:e.forceRender,setCurrent:e.setCurrent})),b=useRef(null),C=useRef(!1),x=isNullish(e);return usePreviewSelection({previewMode:!!u,data:e,rootRef:b,onSelectNode:r,setCurrent:y,forceRender:m}),useEffect(()=>{if(C.current)return;const e=l?Object.keys(l):[],t=!l||0===e.length||JSON.stringify(l)===JSON.stringify(defaultLocalization),r=!d||JSON.stringify(d)===JSON.stringify(defaultProjectColors);if(t||r){const e=[];t&&e.push("localization"),r&&e.push("projectColors"),C.current=!0,console.warn(`[RenderPage] ⚠️ Using default ${e.join(" & ")}. Provide overrides via the store or params to avoid fallback values.`)}},[l,d]),jsx(RenderErrorBoundary,{subtitle:"caught by RenderPage",children:jsx(BuilderProvider,{params:{selectedTheme:a,selectedLanguage:s,localization:l,baseSize:c,mockProducts:n,mockBenefits:o,projectColors:d??void 0,fonts:p,previewMode:u,selectedKey:h&&"object"==typeof h&&"key"in h?h.key:void 0,device:f,...i},children:jsx(DeviceMockFrame,{appName:t,children:jsxs("div",{className:"screen-preview",ref:b,style:{fontFamily:g?`"${g}"`:void 0},children:[isNullish(e)?null:jsx(RenderNode$1,{node:e}),x&&jsx("div",{className:"rb-empty-preview","aria-hidden":"true",children:jsxs("div",{className:"rb-empty-preview__card",children:[jsx("div",{className:"rb-empty-preview__title",children:"Empty screen"}),jsx("div",{className:"rb-empty-preview__hint",children:"Add a component to start"})]})})]})})})})}function copyNode(e){const{setCopiedNode:t}=useRenderStore.getState();t(e)}function isNodeDataLike(e){if("object"!=typeof e||null===e||Array.isArray(e))return!1;return"type"in e&&"children"in e}function normalizeKey(e){if("string"!=typeof e)return;const t=e.trim();return t.length>0?t:void 0}function collectNodeKeysInto(e,t){if(null==e)return;if("string"==typeof e)return;if(Array.isArray(e))return void e.forEach(e=>collectNodeKeysInto(e,t));if(!isNodeDataLike(e))return;const r=normalizeKey(e.key);r&&t.add(r),collectNodeKeysInto(e.children,t)}function collectNodeKeys(e){const t=new Set;return collectNodeKeysInto(e,t),t}function generateUniqueKey(e,t){let r="";do{r=generateRandomKeyForNode(e||"Node")}while(t.has(r));return r}function repairNodeKeys(e,t=new Set){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=e.map(e=>{const i=repairNodeKeys(e,t);return i!==e&&(r=!0),i});return r?i:e}if(!isNodeDataLike(e))return e;const r=e,i=normalizeKey(r.key),n=!i||t.has(i)?generateUniqueKey(r.type,t):i;t.add(n);const o=r.children,a=repairNodeKeys(o,t);return n!==i||a!==o?{...r,key:n,children:a}:e}const platformIcons={android:getImage(TribeAssetName.Android),ios:getImage(TribeAssetName.Apple)};function DeviceButton({device:e,selectedDevice:t,onSelect:r,isFavorite:i,onToggleFavorite:n,onEdit:o}){const a=platformIcons[e.platform],s=e.aspect??(()=>{const t=e.height/e.width;return t>=2.05?"tall":t<=1.75?"wide":"regular"})();return jsxs("button",{type:"button",className:"editor-device-button"+(t===e?" editor-device-button--selected":""),onClick:()=>r(e),children:[n&&jsx("span",{className:"editor-device-button__favorite",onClick:t=>{t.stopPropagation(),n(e,t)},title:i?"Remove from favorites":"Add to favorites",style:{position:"absolute",top:4,right:4,cursor:"pointer",opacity:i?1:.3,color:i?"#ecc538":"currentColor"},children:jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:i?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})}),e.name," ",jsx("br",{}),e.width,"×",e.height," (",s,")",a&&jsx("span",{className:"editor-device-button__platform",children:jsx("img",{src:a,alt:"","aria-hidden":"true"})}),o&&jsx("span",{className:"editor-device-button__edit",onClick:t=>{t.stopPropagation(),o(e,t)},title:"Edit device",style:{position:"absolute",bottom:4,left:4,cursor:"pointer",opacity:.5},children:jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})})]})}function Modal({onClose:e,ariaLabelledBy:t,children:r,className:i,contentClassName:n,closeOnOverlayClick:o=!0,closeOnEsc:a=!0}){useEffect(()=>{if(!a)return;if("undefined"==typeof window)return;const t=t=>{"Escape"===t.key&&e()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,e]);const s=jsxs("div",{className:"modal"+(i?` ${i}`:""),role:"dialog","aria-modal":"true","aria-labelledby":t,children:[jsx("div",{className:"modal__overlay",onClick:o?t=>{t.target===t.currentTarget&&e()}:void 0}),jsx("div",{className:"modal__content"+(n?` ${n}`:""),role:"document",children:r})]});return"undefined"==typeof document?s:createPortal(s,document.body)}const identity=e=>e;function useStore(e,t=identity){const r=React.useSyncExternalStore(e.subscribe,React.useCallback(()=>t(e.getState()),[e,t]),React.useCallback(()=>t(e.getInitialState()),[e,t]));return React.useDebugValue(r),r}const createImpl=e=>{const t=createStore(e),r=e=>useStore(t,e);return Object.assign(r,t),r},create=e=>createImpl,useCustomDeviceStore=create()(persist(e=>({customDevices:[],addCustomDevice:t=>e(e=>({customDevices:[t,...e.customDevices.filter(e=>e.name!==t.name)]})),removeCustomDevice:t=>e(e=>({customDevices:e.customDevices.filter(e=>e.name!==t)})),updateCustomDevice:(t,r)=>e(e=>({customDevices:e.customDevices.map(e=>e.name===t?r:e)}))}),{name:"custom-devices-storage"}));function CreateDeviceModal({onClose:e,onSuccess:t,deviceToEdit:r}){const{addCustomDevice:i,updateCustomDevice:n}=useCustomDeviceStore(),{register:o,handleSubmit:a,watch:s,formState:{errors:l}}=useForm({defaultValues:r?{name:r.name,platform:r.platform,type:r.type,width:r.width,height:r.height,insetTop:r.insets?.[0]??0,insetRight:r.insets?.[1]??0,insetBottom:r.insets?.[2]??0,insetLeft:r.insets?.[3]??0,navigationBarType:r.navigationBarType,radius:r.radius,importance:r.importance,multiplier:r.multiplier}:{platform:"ios",type:"phone",navigationBarType:"homeIndicator",width:375,height:812,insetTop:44,insetBottom:34,insetLeft:0,insetRight:0,radius:40,importance:10,multiplier:1}}),c=s("platform");return jsxs(Modal,{onClose:e,ariaLabelledBy:"create-device-title",contentClassName:"create-device-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"create-device-title",className:"modal__title",children:r?"Edit Custom Device":"Create Custom Device"}),jsx("button",{type:"button",className:"editor-button",onClick:e,children:"Cancel"})]}),jsxs("form",{onSubmit:a(o=>{const a={name:o.name,platform:o.platform,width:Number(o.width),height:Number(o.height),type:o.type,radius:Number(o.radius),insets:[Number(o.insetTop),Number(o.insetRight),Number(o.insetBottom),Number(o.insetLeft)],navigationBarType:o.navigationBarType,aspect:(()=>{const e=Number(o.height)/Number(o.width);return e>=2.05?"tall":e<=1.75?"wide":"regular"})(),importance:Number(o.importance),multiplier:Number(o.multiplier)};r?n(r.name,a):i(a),t(a),e()}),className:"modal__body create-device-form",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Device Name"}),jsx("input",{...o("name",{required:"Name is required"}),className:"editor-input",placeholder:"e.g. My Custom iPhone"}),l.name&&jsx("span",{className:"create-device-form__error",children:l.name.message})]}),jsxs("div",{className:"create-device-form__row",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Platform"}),jsxs("select",{...o("platform"),className:"editor-input",children:[jsx("option",{value:"ios",children:"iOS"}),jsx("option",{value:"android",children:"Android"})]})]}),jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Type"}),jsxs("select",{...o("type"),className:"editor-input",children:[jsx("option",{value:"phone",children:"Phone"}),jsx("option",{value:"tablet",children:"Tablet"})]})]})]}),jsxs("div",{className:"create-device-form__row",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Width (px)"}),jsx("input",{type:"number",...o("width",{required:!0,min:1}),className:"editor-input"})]}),jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Height (px)"}),jsx("input",{type:"number",...o("height",{required:!0,min:1}),className:"editor-input"})]})]}),jsxs("div",{className:"create-device-form__row",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Safe Area Top"}),jsx("input",{type:"number",...o("insetTop",{min:0}),className:"editor-input"})]}),jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Safe Area Bottom"}),jsx("input",{type:"number",...o("insetBottom",{min:0}),className:"editor-input"})]})]}),jsxs("div",{className:"create-device-form__row",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Navigation Bar"}),jsxs("select",{...o("navigationBarType"),className:"editor-input",children:[jsx("option",{value:"none",children:"None"}),jsxs(Fragment,"ios"===c?{children:[jsx("option",{value:"homeIndicator",children:"Home Indicator"}),jsx("option",{value:"tabBar",children:"Tab Bar"})]}:{children:[jsx("option",{value:"threeButtons",children:"Three Buttons"}),jsx("option",{value:"gesture",children:"Gesture"})]})]})]}),jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Corner Radius"}),jsx("input",{type:"number",...o("radius",{min:0}),className:"editor-input"})]})]}),jsxs("div",{className:"create-device-form__row",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Scale Multiplier"}),jsx("input",{type:"number",step:"0.01",...o("multiplier",{min:.1,max:2}),className:"editor-input"})]}),jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Importance (1-100)"}),jsx("input",{type:"number",...o("importance",{min:1,max:100}),className:"editor-input"})]})]}),jsx("div",{className:"create-device-modal__footer",children:jsx("button",{type:"submit",className:"editor-button editor-button--primary",style:{width:"100%"},children:r?"Update Device":"Save Device"})})]})]})}function DeviceSelectorModal({devices:e,selectedDevice:t,onSelect:r,onClose:i}){const[n,o]=useState(""),[a,s]=useState(!1),[l,c]=useState(null),{favoriteDevices:d,toggleFavoriteDevice:p}=useRenderStore(e=>({favoriteDevices:e.favoriteDevices||[],toggleFavoriteDevice:e.toggleFavoriteDevice})),{customDevices:g,removeCustomDevice:u}=useCustomDeviceStore(),h=useMemo(()=>[...g,...e],[g,e]),m=e=>{r(e),i()},f=useMemo(()=>h.filter(e=>e.name.toLowerCase().includes(n.toLowerCase())),[h,n]),{favorites:y,others:b}=useMemo(()=>{const e=[],t=[];return f.forEach(r=>{d.includes(r.name)?e.push(r):t.push(r)}),{favorites:e,others:t}},[f,d]);return jsxs(Modal,{onClose:i,ariaLabelledBy:"device-selector-title",contentClassName:"device-selector-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"device-selector-title",className:"modal__title",children:"Select a device"}),jsx("button",{type:"button",className:"editor-button","aria-label":"Close device selector",onClick:i,children:"Close"})]}),jsxs("div",{className:"device-selector-modal__search-container",children:[jsx("input",{type:"text",placeholder:"Search devices...",value:n,onChange:e=>o(e.target.value),className:"editor-input"}),jsx("button",{type:"button",className:"editor-button editor-button--primary",onClick:()=>s(!0),children:"Add New"})]}),jsxs("div",{className:"device-selector-modal__body",style:{display:"flex",flexDirection:"column",gap:"16px"},children:[y.length>0&&jsxs("section",{children:[jsx("h4",{style:{margin:"0 16px 8px",fontSize:"14px",fontWeight:"bold"},children:"Favorites"}),jsx("div",{className:"device-selector-modal__grid",role:"list",children:y.map(e=>jsx(DeviceButton,{device:e,selectedDevice:t,onSelect:m,isFavorite:!0,onToggleFavorite:e=>p(e.name),onEdit:e=>c(e)},`fav-${e.name}`))})]}),jsxs("section",{children:[y.length>0&&jsx("h4",{style:{margin:"0 16px 8px",fontSize:"14px",fontWeight:"bold"},children:"All Devices"}),jsx("div",{className:"device-selector-modal__grid",role:"list",children:b.map(e=>jsx(DeviceButton,{device:e,selectedDevice:t,onSelect:m,isFavorite:!1,onToggleFavorite:e=>p(e.name),onEdit:g.some(t=>t.name===e.name)?e=>c(e):void 0},`other-${e.name}`))})]})]}),a&&jsx(CreateDeviceModal,{onClose:()=>s(!1),onSuccess:e=>{r(e),i()}}),l&&jsx(CreateDeviceModal,{deviceToEdit:l,onClose:()=>c(null),onSuccess:e=>{r(e),i()}})]})}var name$m="hello-world",version$m="1.1.2",type$m="other",data$m={type:"View",attributes:{scrollable:!0,description:"View element 1 in sample.",title:"View 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:16,backgroundColor:"#F5F7FA"},testID:"View-test-id-1"},children:[{type:"Text",children:"hello-world",attributes:{description:"Text element 1 in sample.",title:"Text 1",styles:{color:"#111827",fontSize:24,fontWeight:"600"},testID:"Text-test-id-1"}},{type:"Text",children:"Welcome to react-native-builder",attributes:{description:"Text element 2 in sample.",title:"Text 2",styles:{color:"#6B7280",fontSize:14,fontWeight:"400"},testID:"Text-test-id-2"}}]},attributes$k={testID:"other-test-id-1"},simple1={name:name$m,version:version$m,type:type$m,data:data$m,attributes:attributes$k},name$l="hello-world-2-advanced",version$l="1.1.2",type$l="other",data$l={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",gap:16,padding:16,backgroundColor:"#F3F4F6"},testID:"view-test-id-1"},children:[{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#111827",borderRadius:12},testID:"view-test-id-2"},children:[{type:"text",children:"Dashboard",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{color:"#FFFFFF",fontSize:20,fontWeight:"600"},testID:"text-test-id-1"}},{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{flexDirection:"row",gap:8},testID:"view-test-id-3"},children:[{type:"text",children:"Help",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{color:"#D1D5DB",fontSize:14},testID:"text-test-id-2"}},{type:"text",children:"Profile",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{color:"#D1D5DB",fontSize:14},testID:"text-test-id-3"}}]}]},{type:"image",attributes:{src:"https://picsum.photos/720/320",description:"image element 1 in sample.",title:"image 1",styles:{width:358,height:160,borderRadius:12},testID:"image-test-id-1"},children:null},{type:"view",attributes:{description:"view element 4 in sample.",title:"view 4",styles:{flexDirection:"column",gap:8,padding:12,backgroundColor:"#FFFFFF",borderRadius:12},testID:"view-test-id-4"},children:[{type:"text",children:"Welcome back!",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{color:"#111827",fontSize:18,fontWeight:"600"},testID:"text-test-id-4"}},{type:"text",children:"Here's what's new today.",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{color:"#6B7280",fontSize:14},testID:"text-test-id-5"}}]},{type:"view",attributes:{description:"view element 5 in sample.",title:"view 5",styles:{flexDirection:"column",gap:12},testID:"view-test-id-5"},children:[{type:"view",attributes:{description:"view element 6 in sample.",title:"view 6",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},testID:"view-test-id-6"},children:[{type:"text",children:"Task 1",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{color:"#111827",fontSize:16,fontWeight:"500"},testID:"text-test-id-6"}},{type:"text",children:"Due today",attributes:{description:"text element 7 in sample.",title:"text 7",styles:{color:"#059669",fontSize:12,fontWeight:"600"},testID:"text-test-id-7"}}]},{type:"view",attributes:{description:"view element 7 in sample.",title:"view 7",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},testID:"view-test-id-7"},children:[{type:"text",children:"Task 2",attributes:{description:"text element 8 in sample.",title:"text 8",styles:{color:"#111827",fontSize:16,fontWeight:"500"},testID:"text-test-id-8"}},{type:"text",children:"2 days left",attributes:{description:"text element 9 in sample.",title:"text 9",styles:{color:"#D97706",fontSize:12,fontWeight:"600"},testID:"text-test-id-9"}}]},{type:"view",attributes:{description:"view element 8 in sample.",title:"view 8",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},testID:"view-test-id-8"},children:[{type:"text",children:"Task 3",attributes:{description:"text element 10 in sample.",title:"text 10",styles:{color:"#111827",fontSize:16,fontWeight:"500"},testID:"text-test-id-10"}},{type:"text",children:"Completed",attributes:{description:"text element 11 in sample.",title:"text 11",styles:{color:"#6B7280",fontSize:12,fontWeight:"600"},testID:"text-test-id-11"}}]}]},{type:"view",attributes:{description:"view element 9 in sample.",title:"view 9",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",padding:12,backgroundColor:"#111827",borderRadius:12},testID:"view-test-id-9"},children:[{type:"text",children:"Home",attributes:{description:"text element 12 in sample.",title:"text 12",styles:{color:"#FFFFFF",fontSize:14},testID:"text-test-id-12"}},{type:"text",children:"Search",attributes:{description:"text element 13 in sample.",title:"text 13",styles:{color:"#9CA3AF",fontSize:14},testID:"text-test-id-13"}},{type:"text",children:"Settings",attributes:{description:"text element 14 in sample.",title:"text 14",styles:{color:"#9CA3AF",fontSize:14},testID:"text-test-id-14"}}]}]},attributes$j={testID:"other-test-id-1"},simple2={name:name$l,version:version$l,type:type$l,data:data$l,attributes:attributes$j},name$k="carousel-sample",version$k="1.1.2",type$k="other",data$k={type:"Main",isMain:!0,attributes:{styles:{backgroundColor:"#f8fafc",minHeight:"100vh",padding:"24px"},testID:"Main-test-id-1"},children:{type:"carouselProvider",children:[{type:"carousel",attributes:{loop:!0,align:"center",dragFree:!0,description:"carousel element 1 in sample.",title:"carousel 1",testID:"carousel-test-id-1"},children:[{type:"carouselItem",attributes:{description:"carouselItem element 1 in sample.",title:"carouselItem 1",styles:{minWidth:0},testID:"carouselItem-test-id-1"},children:{type:"view",attributes:{description:"view element 1 in sample.",title:"view 1",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #eef2ff 0%, #ffffff 55%, #ecfeff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"},testID:"view-test-id-1"},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14},testID:"image-test-id-1"},key:"image-49ojfyhl4d7"},{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"},testID:"text-test-id-1"},children:"Welcome aboard",key:"text-3ougfj4mxnh"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8},testID:"text-test-id-2"},children:"Swipe through a beautiful, validated carousel sample with images.",key:"text-2dol8grshke"}],key:"view-a8hfkdvfy7"},key:"carouselItem-5bw9x33s7ie"},{type:"carouselItem",attributes:{description:"carouselItem element 2 in sample.",title:"carouselItem 2",styles:{minWidth:0},testID:"carouselItem-test-id-2"},children:{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%, #eff6ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"},testID:"view-test-id-2"},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14},testID:"image-test-id-2"},key:"image-riwntk91k9"},{type:"text",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"},testID:"text-test-id-3"},children:"Discover features",key:"text-hmuk6f7ml4v"},{type:"text",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8},testID:"text-test-id-4"},children:"Dots + buttons are included, and slide sizing comes from the carousel CSS.",key:"text-dnhhoqiiri"}],key:"view-9hyw3wys30w"},key:"carouselItem-lyq2hr0qh8h"},{type:"carouselItem",attributes:{description:"carouselItem element 3 in sample.",title:"carouselItem 3",styles:{minWidth:0},testID:"carouselItem-test-id-3"},children:{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f5f3ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"},testID:"view-test-id-3"},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14},testID:"image-test-id-3"},key:"image-j9ru3r8g7km"},{type:"text",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"},testID:"text-test-id-5"},children:"Get started",key:"text-01u3fwwtkd8p"},{type:"text",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8},testID:"text-test-id-6"},children:"This sample stays within validation rules (no string flex shorthand).",key:"text-w8rwg9y1hj"}],key:"view-tsjfbzn8kdj"},key:"carouselItem-6r53yswjyee"}],key:"carousel-2qa4gn0ms32"},{type:"view",attributes:{title:"Carousel Controls",description:"carousel controls view element in sample.",styles:{flex:1,gap:24,alignItems:"center",paddingTop:32},testID:"view-test-id-4"},children:[{type:"carouselDots",attributes:{dotType:"expanding_dot",testID:"carouselDots-test-id-1"},key:"carouselDots-r5ji67uoxxg"},{type:"view",attributes:{title:"Nav Buttons",description:"navigation buttons wrapper",styles:{flexDirection:"row",gap:12,alignItems:"center",justifyContent:"center"},testID:"view-test-id-5"},children:[{type:"carouselButtons",attributes:{buttonType:["previous_button"],styles:{backgroundColor:"#6366f1",borderRadius:12,padding:"12px 24px",minWidth:100},testID:"carouselButtons-test-id-1"},key:"carouselButtons-prev"},{type:"carouselButtons",attributes:{buttonType:["next_button"],styles:{backgroundColor:"#8b5cf6",borderRadius:12,padding:"12px 24px",minWidth:100},testID:"carouselButtons-test-id-2"},key:"carouselButtons-next"}],key:"view-nav-buttons"}],key:"view-controls-wrapper"}],attributes:{description:"carouselProvider element 1 in sample.",title:"carouselProvider 1",styles:{backgroundColor:"#ffffff",borderRadius:24,padding:"32px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.08)",maxWidth:"600px",margin:"0 auto"},testID:"carouselProvider-test-id-1"},key:"carouselProvider-152n4dkqvam"},key:"Main-u1cavjag9sr"},attributes$i={testID:"other-test-id-1"},carouselSample={name:name$k,version:version$k,type:type$k,data:data$k,attributes:attributes$i},name$j="unvalidated-builder1",version$j="1.1.2",type$j="other",data$j={type:"view",attributes:{foo:1,scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"},testID:"view-test-id-1"},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"},testID:"text-test-id-1"},children:"Intentionally unvalidated sample"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8},testID:"text-test-id-2"},children:"This project should fail validation (unknown attribute: foo). In the UI, choose “Continue without validation” to load it anyway."}]},attributes$h={testID:"other-test-id-1"},unvalidatedBuilder1={name:name$j,version:version$j,type:type$j,data:data$j,attributes:attributes$h},name$i="unvalidated-crash1",version$i="1.1.2",type$i="other",data$i={type:"OnboardFooter",attributes:{textLocalizationKey:123,description:"OnboardFooter element 1 in sample.",title:"OnboardFooter 1",styles:{paddingHorizontal:24,paddingVertical:16},testID:"OnboardFooter-test-id-1"},children:null},attributes$g={testID:"other-test-id-1"},unvalidatedCrash1={name:name$i,version:version$i,type:type$i,data:data$i,attributes:attributes$g},name$h="unvalidated-crashcomponent1",version$h="1.1.2",type$h="other",data$h={type:"CrashComponent",attributes:{reason:"Intentional crash for GUI testing",note:"This component is not in the Add Component modal; it only exists via JSON.",description:"CrashComponent element 1 in sample.",title:"CrashComponent 1",testID:"CrashComponent-test-id-1"},children:null},attributes$f={testID:"other-test-id-1"},unvalidatedCrashComponent1={name:name$h,version:version$h,type:type$h,data:data$h,attributes:attributes$f},name$g="unmigrated-builder1",version$g="1.0.0",type$g="other",data$g={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA",description:"view element 1 in sample.",title:"view 1",testID:"view-test-id-1"},children:[{type:"text",attributes:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center",description:"text element 1 in sample.",title:"text 1",testID:"text-test-id-1"},children:"Intentionally unmigrated sample"},{type:"text",attributes:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8,description:"text element 2 in sample.",title:"text 2",testID:"text-test-id-2"},children:"This project has version 1.0.0 so the Migration page should appear. Click “Migrate now” to normalize legacy flat style keys into attributes.style and move misplaced props out of style (combined 1.1.2)."}]},attributes$e={testID:"other-test-id-1"},unmigratedBuilder1={name:name$g,version:version$g,type:type$g,data:data$g,attributes:attributes$e},name$f="unmigrated-builder-1.1.1",version$f="1.1.1",type$f="other",data$f={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"},testID:"view-test-id-1"},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"},testID:"text-test-id-1"},children:"Intentionally unmigrated sample (for combined 1.1.2)"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8},testID:"text-test-id-2"},children:"This project has version 1.1.1 so the Migration page should appear. Click “Migrate now” to move component props and non-style flags out of attributes.style (combined 1.1.2)."},{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,marginTop:16},testID:"view-test-id-2"},children:[{type:"BIcon",attributes:{description:"BIcon element 1 in sample.",title:"BIcon 1",styles:{iconType:"check",strokeWidth:3,color:"#22c55e",fontSize:"18"},testID:"BIcon-test-id-1"},children:null},{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",width:48,height:48,description:"image element 1 in sample.",title:"image 1",styles:{resizeMode:"contain",borderRadius:12},testID:"image-test-id-1"},children:null}]}]},attributes$d={testID:"other-test-id-1"},unmigratedBuilder1_1_1={name:name$f,version:version$f,type:type$f,data:data$f,attributes:attributes$d},name$e="Simple Paywall",version$e="1.1.2",type$e="paywall",data$e={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall ana sağlayıcısı. (#1)",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",title:"Paywall Background",attributes:{src:"https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall arka planı. (#1)",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",title:"Paywall Inner",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:12,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#2)",title:"Benefits",styles:{flexDirection:"column",gap:0,marginTop:"4%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#3)",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#1)",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#1)",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-1"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#4)",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#2)",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#2)",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-2"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#5)",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#3)",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#3)",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-3"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Abonelik seçenekleri alanı. (#1)",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Seçim satırı öğesi. (#1)",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#4)",title:"Product Desc(s)",styles:{flex:6},testID:"Text-test-id-4"},children:"@productDescription"},{type:"View",attributes:{title:"Price Column",styles:{flexDirection:"column",flex:2,alignItems:"flex-end"},testID:"View-test-id-6"},children:[{type:"PriceTag",attributes:{title:"Promo Price",styles:{textAlign:"right",fontWeight:"700"},testID:"PriceTag-test-id-1"},children:"@localizedCalculatedPrice"},{type:"PriceTag",attributes:{title:"Original Price",hideIfItsNotDiscount:!0,styles:{textAlign:"right",textDecorationLine:"line-through",fontSize:"12@fs",fontWeight:"400",color:"#999999"},testID:"PriceTag-test-id-2"},children:"@localizedPrice"}]},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"İkon öğesi. (#4)",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"View",attributes:{description:"Subscription butonu kapsayıcısı. (#1)",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",gap:8,paddingBottom:"50px"},testID:"View-test-id-7"},children:[{type:"Pricing",attributes:{description:"Pricing breakdown for promo/trial.",title:"Pricing Detail",testID:"Pricing-test-id-1"},children:"@baseLocalizedPricingText"},{type:"Text",attributes:{description:"Trial detayı.",title:"Trial Full",styles:{textAlign:"center",fontSize:12,color:"rgba(255,255,255,0.6)"},testID:"Text-test-id-5"},children:"@trialPeriod days free, then @price/@period"},{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}},{type:"Promo",attributes:{description:"Discount badge / promo text.",title:"Promo Badge",testID:"Promo-test-id-1"},children:"@baseLocalizedPromoText"},{type:"PaywallFooter",attributes:{textLocalizationKey:"base.builder.paywall.footer.description",linkedWordFirstLocalizationKey:"base.builder.paywall.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.builder.paywall.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"PaywallFooter-test-id-1"}}]}]}]}]},attributes$c={testID:"paywall-test-id-1"},paywall1={name:name$e,version:version$e,type:type$e,data:data$e,attributes:attributes$c},name$d="Paywall With Counter",version$d="1.1.2",type$d="paywall",data$d={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Paywall 2.",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1482192596544-9eb780fc7f66?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall background.",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-1"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-2"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-3"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"Text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4},testID:"Text-test-id-4"},children:"@productDescription — Unlock all premium features for a month."},{type:"Text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"},testID:"Text-test-id-5"},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"},testID:"CountDown-test-id-1"},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"},testID:"View-test-id-6"},children:[{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}}]}]}]}]},attributes$b={testID:"paywall-test-id-1"},paywall2={name:name$d,version:version$d,type:type$d,data:data$d,attributes:attributes$b},name$c="Paywall Back Offer",version$c="1.1.2",type$c="paywall",data$c={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Back Offer.",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1470770903676-69b98201ea1c?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"},testID:"text-test-id-1"},children:"Back Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-2"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-3"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-4"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4},testID:"text-test-id-5"},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"},testID:"text-test-id-6"},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"},testID:"CountDown-test-id-1"},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"},testID:"View-test-id-6"},children:[{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Subscription confirm button.",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}}]}]}]}]},attributes$a={testID:"paywall-test-id-1"},paywallBackOffer={name:name$c,version:version$c,type:type$c,data:data$c,attributes:attributes$a},name$b="Paywall Notification Offer",version$b="1.1.2",type$b="paywall",data$b={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Notification Offer.",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"},testID:"text-test-id-1"},children:"Notification Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-2"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-3"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-4"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4},testID:"text-test-id-5"},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"},testID:"text-test-id-6"},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"},testID:"CountDown-test-id-1"},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"},testID:"View-test-id-6"},children:[{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Subscription confirm button.",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}}]}]}]}]},attributes$9={testID:"paywall-test-id-1"},paywallNotificationOffer={name:name$b,version:version$b,type:type$b,data:data$b,attributes:attributes$9},name$a="Paywall App Open Offer",version$a="1.1.2",type$a="paywall",data$a={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Open Offer.",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"},testID:"text-test-id-1"},children:"App Open Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-2"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-3"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-4"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4},testID:"text-test-id-5"},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"},testID:"text-test-id-6"},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"},testID:"CountDown-test-id-1"},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"},testID:"View-test-id-6"},children:[{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}}]}]}]}]},attributes$8={testID:"paywall-test-id-1"},paywallAppOpenOffer={name:name$a,version:version$a,type:type$a,data:data$a,attributes:attributes$8},name$9="Paywall App Delete Offer",version$9="1.1.2",type$9="paywall",data$9={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Delete Offer.",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1496307042754-b4aa456c4a2d?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"},testID:"text-test-id-1"},children:"App Delete Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-2"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-3"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-4"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4},testID:"text-test-id-5"},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"},testID:"text-test-id-6"},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"},testID:"CountDown-test-id-1"},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"},testID:"View-test-id-6"},children:[{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}}]}]}]}]},attributes$7={testID:"paywall-test-id-1"},paywallAppDeleteOffer={name:name$9,version:version$9,type:type$9,data:data$9,attributes:attributes$7},name$8="vpn-onboard-1",version$8="1.1.2",type$8="onboard",data$8={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-2",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-3",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-4",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$6={testID:"onboard-test-id-1"},vpnOnboard1={name:name$8,version:version$8,type:type$8,data:data$8,attributes:attributes$6},name$7="vpn-onboard-2",version$7="1.1.2",type$7="onboard",data$7={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/0c65cbe8e0c2e1242146e15dfd50a486.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/e8bbdde825cd23bdc44a9b2b32af22dc.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-2",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/3f312b38faf844746250cd54f27f91da.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-3",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/f4db2a32a43239c3bbbe742cb0f18b61.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-4",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",animation:"line-animation",animation_color:"STATIC_COLORS.WHITE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",animation:"simple-animation",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$5={testID:"onboard-test-id-1"},vpnOnboard2={name:name$7,version:version$7,type:type$7,data:data$7,attributes:attributes$5},name$6="vpn-onboard-3",version$6="1.1.2",type$6="onboard",data$6={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/c68cca84580d6920c883c220e57346c0.jpg",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$4={testID:"onboard-test-id-1"},vpnOnboard3={name:name$6,version:version$6,type:type$6,data:data$6,attributes:attributes$4},name$5="vpn-onboard-4",version$5="1.1.2",type$5="onboard",data$5={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/aadf6191a8f1091831647b3a01e1a1aa.jpg",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page2"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$3={testID:"onboard-test-id-1"},vpnOnboard4={name:name$5,version:version$5,type:type$5,data:data$5,attributes:attributes$3},name$4="vpn-onboard-5",version$4="1.1.2",type$4="onboard",data$4={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/d237d6cde8bc9126cee7b47e30cd19f0.png",resizeMode:"contain",lottie:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/lottie/0be045f9fe44c790a4525a1a6bc4b837.json",styles:{height:400},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/820dc32b8252555058e7014a7fd1652f.png",resizeMode:"contain",video_url:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/video/440346112d02e65be3767c39b96cd7c0.mp4",styles:{height:400},testID:"OnboardImage-test-id-2",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/fbb8677cd23cba79eef0ebef181e3b57.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-3",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/18cdd5cc478389df8ff362f95b7173ea.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-4",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.five-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.five-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}},{type:"OnboardItem",key:"app_onboard-page6",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/3c1225f83f5a5c934926fab3cb0e65d5.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-5",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#5)",title:"OnboardTitle 5",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-5"},children:"base.onboard.title.six-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#5)",title:"OnboardSubtitle 5",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-5"},children:"base.onboard.subtitle.six-page"}],attributes:{description:"Onboarding sayfası. (#5)",title:"OnboardItem 5",testID:"OnboardItem-test-id-5"}},{type:"OnboardItem",key:"app_onboard-page5",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ff07e162b2a63d38f07909e87848d46f.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-6",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#6)",title:"OnboardTitle 6",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-6"},children:"base.onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#6)",title:"OnboardSubtitle 6",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-6"},children:"base.onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#6)",title:"OnboardItem 6",testID:"OnboardItem-test-id-6"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.LINE"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.LINE"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.LINE"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.five-page",events:[{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.LINE"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.five-page",events:[{type:"Permission",permission:"GDPR"},{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1,color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_TEXT",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:4,description:"Sayfa buton grubu. (#5)",title:"OnboardButtons 5",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-5"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.five-page",events:[{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.LINE"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.five-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:5,description:"Sayfa buton grubu. (#6)",title:"OnboardButtons 6",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-6"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"all",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$2={testID:"onboard-test-id-1"},vpnOnboard5={name:name$4,version:version$4,type:type$4,data:data$4,attributes:attributes$2},name$3="vpn-onboard-6",version$3="1.1.2",type$3="onboard",data$3={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/9cb1d668b3724655f93a91e5eee771c5.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/f8d0c64bf89cc5f2f14126d0544ba174.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-2",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ad823809885c1a2a8e4632039f35a94e.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-3",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ede1705c51f3434ae9053ed5f29bf5dd.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-4",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.TEXT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.TEXT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.TEXT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$1={testID:"onboard-test-id-1"},vpnOnboard6={name:name$3,version:version$3,type:type$3,data:data$3,attributes:attributes$1},name$2="vpn-onboard-7",version$2="1.1.2",type$2="onboard",data$2={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null,key:"StatusBarColor-sxj19suwkrn"},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null,key:"NavigationBarColor-rhzn570dc5o"},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page",key:"OnboardTitle-5t0p86nj13m"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page",key:"OnboardSubtitle-0max8wno7l5b"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page",key:"OnboardTitle-ne9iihu925k"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-2",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page",key:"OnboardSubtitle-jq9469r7c2"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page",key:"OnboardTitle-hczvlbg7gqj"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-3",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page",key:"OnboardSubtitle-rufjwid9yug"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page",key:"OnboardTitle-f2ekfc0wcbl"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-4",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page",key:"OnboardSubtitle-qkw2jn84xem"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"},key:"Onboard-dg1zmwdawmg"},{type:"OnboardDot",attributes:{dotType:"expanding_dot",inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12,dot_thickness:"10@s"},testID:"OnboardDot-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}],key:"OnboardButtons-92fw2wn62h"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}],key:"OnboardButtons-mu7r8a5qx4"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}],key:"OnboardButtons-rulfu6b5w5"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}],key:"OnboardButtons-yru5emc0zcs"},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT",fontSize:"12@fs"},testID:"OnboardFooter-test-id-1"}}],key:"View-c5vb7865vto"}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"},key:"OnboardProvider-pvc5b6o5gu"}]},attributes={testID:"onboard-test-id-1"},vpnOnboard7={name:name$2,version:version$2,type:type$2,data:data$2,attributes:attributes},name$1="Terms and Privacy",version$1="1.1.2",type$1="terms",data$1={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Terms and Privacy screen container",title:"Terms & Privacy",styles:{backgroundColor:"THEME_COLORS.BACKGROUND",flex:1},testID:"TermsPrivacy-Main"},children:[{type:"View",attributes:{description:"Header section",styles:{padding:16,alignItems:"center",borderBottomWidth:1,borderBottomColor:"THEME_COLORS.LINE",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"Text",children:"view.terms.header.title",attributes:{styles:{fontSize:20,fontWeight:"700",color:"THEME_COLORS.TEXT"}}}]},{type:"WebView",attributes:{iosUrl:"https://stage.vpn111.net/page/ios/privacy",androidUrl:"https://stage.vpn111.net/page/android/privacy",styles:{flex:1,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"TermsPrivacy-WebView"}},{type:"View",attributes:{description:"Footer section",styles:{padding:20,backgroundColor:"THEME_COLORS.BACKGROUND",borderTopWidth:1,borderTopColor:"THEME_COLORS.LINE",gap:16}},children:[{type:"FormProvider",attributes:{defaultValues:'{"termsAccepted": false}',validationErrorMessageKey:"view.terms.error.must_accept"},children:[{type:"FormCheckbox",attributes:{name:"termsAccepted",validation:["required"],checked:!1,label:"view.terms.checkbox.label",checkedColor:"THEME_COLORS.CHECKBOX_ACTIVE_COLOR",styles:{marginBottom:8},testID:"TermsPrivacy-Checkbox"}},{type:"FormErrorText",attributes:{styles:{marginBottom:8},testID:"TermsPrivacy-FormErrorText"}},{type:"FormSubmitButton",attributes:{labelKey:"view.terms.accept.button",validationRequired:!0,disableIfUnvalidated:!0,events:[{type:"Navigate",placementKey:"onboard"}],styles:{backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",color:"#FFFFFF",height:48,borderRadius:8,alignItems:"center",justifyContent:"center",fontWeight:"600"},testID:"TermsPrivacy-AcceptButton"}}]}]}]},termsAndPrivacy={name:name$1,version:version$1,type:type$1,data:data$1},name="Terms and Privacy (no form)",version="1.1.2",type="terms",data={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Terms and Privacy screen without FormProvider; plain Checkbox and SystemButton.",title:"Terms & Privacy",styles:{backgroundColor:"THEME_COLORS.BACKGROUND",flex:1},testID:"TermsPrivacyNoForm-Main"},children:[{type:"View",attributes:{description:"Header section",styles:{padding:16,alignItems:"center",borderBottomWidth:1,borderBottomColor:"THEME_COLORS.LINE",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"Text",children:"view.terms.header.title",attributes:{styles:{fontSize:20,fontWeight:"700",color:"THEME_COLORS.TEXT"}}}]},{type:"WebView",attributes:{iosUrl:"https://stage.vpn111.net/page/ios/privacy",androidUrl:"https://stage.vpn111.net/page/android/privacy",styles:{flex:1,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"TermsPrivacyNoForm-WebView"}},{type:"View",attributes:{description:"Footer section",styles:{padding:20,backgroundColor:"THEME_COLORS.BACKGROUND",borderTopWidth:1,borderTopColor:"THEME_COLORS.LINE",gap:16}},children:[{type:"Checkbox",attributes:{checked:!1,label:"view.terms.checkbox.label",checkedColor:"THEME_COLORS.CHECKBOX_ACTIVE_COLOR",styles:{marginBottom:8},testID:"TermsPrivacyNoForm-Checkbox"}},{type:"SystemButton",attributes:{labelKey:"view.terms.accept.button",events:[{type:"Navigate",placementKey:"onboard"}],styles:{backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",color:"#FFFFFF",height:48,borderRadius:8,alignItems:"center",justifyContent:"center",fontWeight:"600"},testID:"TermsPrivacyNoForm-AcceptButton"}}]}]},termsAndPrivacyNoForm={name:name,version:version,type:type,data:data};function normalizeSample(e){const t=e.appConfig||{},r={...e,baseSize:t.baseSize||e.baseSize||defaultBaseSize,localization:t.localization||e.localization||defaultLocalization};return delete r.appConfig,r}function getSamples(){return[simple1,simple2,carouselSample,unvalidatedBuilder1,unvalidatedCrash1,unvalidatedCrashComponent1,unmigratedBuilder1,unmigratedBuilder1_1_1,paywall1,paywall2,paywallBackOffer,paywallNotificationOffer,paywallAppOpenOffer,paywallAppDeleteOffer,vpnOnboard1,vpnOnboard2,vpnOnboard3,vpnOnboard4,vpnOnboard5,vpnOnboard6,vpnOnboard7,termsAndPrivacy,termsAndPrivacyNoForm].map(normalizeSample)}const devices=getDevices();function EditorHeader({onSaveProject:e,onRestoreProject:t,current:r,editorData:i,setEditorData:n}){useLogRender("EditorHeader");const[o,a]=useState(!1),[s,l]=useState(!1),c=useRef(null),d=useRenderStore(e=>e.copiedNode),{device:p,setDevice:g,setCurrent:u,setLocalization:h,setBaseSize:m,setProjectColors:f,favoriteDevices:b,toggleFavoriteDevice:C}=useRenderStore(e=>({device:e.device,setDevice:e.setDevice,setCurrent:e.setCurrent,setLocalization:e.setLocalization,setBaseSize:e.setBaseSize,setProjectColors:e.setProjectColors,favoriteDevices:e.favoriteDevices||[],toggleFavoriteDevice:e.toggleFavoriteDevice})),{customDevices:x}=useCustomDeviceStore(),v=useMemo(()=>{const e=[...x,...devices],t=b.map(t=>e.find(e=>e.name===t)).filter(e=>void 0!==e),r=[...t,...e.filter(e=>!b.includes(e.name))].slice(0,5);return p&&!r.some(e=>e.name===p.name)?[...r,p]:r},[b,x,p]),S=useMemo(()=>{const e=e=>"paywall"===e?0:"onboard"===e?1:2;return getSamples().slice().sort((t,r)=>{const i=e(t.type)-e(r.type);return 0!==i?i:t.name.localeCompare(r.name)})},[]),w=useMemo(()=>`editor-actions-menu-${Math.random().toString(36).slice(2,9)}`,[]);function k(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=k(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>k(e,t,r)):k(e,t,r);if(n!==e)return{...i,children:n}}return e}useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]);const T=e=>JSON.parse(JSON.stringify(e)),_=e=>{if(!r||!i||!n)return;const t=T(e.data),o=collectNodeKeys(i),a=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"type"in e&&"children"in e;if(!a(r))return void y.error("Select a component node to paste into");const s=r.children,l=(e=>{if(a(e)){if("main"===e.type||!0===e.isMain){const t=e.children;return t?Array.isArray(t)?t:[t]:[]}}return[e]})(t);if(0===l.length)return void y.error("Sample has no children to paste");const c=l.map(e=>repairNodeKeys(e,o));let d;d=s?Array.isArray(s)?[...s,...c]:[s,...c]:1===c.length?c[0]:c;const p={...r,children:d},g=k(i,r,p);n(g),u(p),y.success(`Pasted from "${e.name}"`)},O=()=>l(!1),I=!!r,M=!!(r&&i&&n&&d);return jsxs("div",{className:"editor-header",role:"region","aria-label":"Editor utility header",children:[jsxs("div",{className:"editor-header__devices",children:[v.map(e=>jsx(DeviceButton,{selectedDevice:p,onSelect:g,device:e,isFavorite:b.includes(e.name),onToggleFavorite:e=>C(e.name)},e.name)),jsx("button",{className:"editor-device-button","aria-label":"More devices",onClick:()=>a(!0),children:"More devices"})]}),jsx("div",{className:"editor-header__actions",children:jsxs("div",{className:"editor-actions-dropdown",ref:c,children:[jsxs("button",{className:"editor-button editor-actions-dropdown__trigger","aria-label":"Open actions menu","aria-haspopup":"menu","aria-expanded":s,"aria-controls":w,onClick:()=>l(e=>!e),children:["Actions",jsx("span",{className:"editor-actions-dropdown__caret","aria-hidden":"true",children:"▾"})]}),s&&jsxs("ul",{id:w,className:"editor-actions-dropdown__menu",role:"menu","aria-label":"Editor actions",children:[jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Replace from samples",onClick:e=>e.preventDefault(),children:["Replace from samples",jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Replace from sample",children:S.map(e=>jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{(e=>{if(!n)return;const t=repairNodeKeys(T(e.data));n(t),u(t),e.localization&&h(e.localization),e.baseSize&&m(e.baseSize),f(e.projectColors),y.success(`Replaced with "${e.name}"`)})(e),O()},children:e.name})},`replace-${e.name}`))})]}),jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Paste from samples",onClick:e=>e.preventDefault(),disabled:!r,title:r?void 0:"Select a node first",children:["Paste from samples",jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Paste from sample",children:S.map(e=>jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{_(e),O()},disabled:!r,children:e.name})},`paste-${e.name}`))})]}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-save-button",role:"menuitem",onClick:()=>{e?.(),O()},disabled:!e,children:"Save"})}),t&&jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-save-previewconfig-button",role:"menuitem",onClick:()=>{try{t?.(),y.info("Restored")}catch{y.error("Restore failed")}finally{O()}},children:"Restore"})}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{I&&(r&&copyNode(r),y.info("Copied"),O())},disabled:!I,children:"Copy"})}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{M&&((()=>{if(!r||!i||!n)return;if(!d)return;const e=repairNodeKeys(JSON.parse(JSON.stringify(d)),collectNodeKeys(i)),t=k(i,r,e);useRenderStore.setState({copiedNode:null}),n(t),u(e)})(),y.success("Pasted"),O())},disabled:!M,children:"Paste"})})]})]})}),o&&jsx(DeviceSelectorModal,{devices:devices,selectedDevice:p,onSelect:g,onClose:()=>a(!1)})]})}const SAVED_COLORS_KEY="attributes-editor-saved-colors",formatTokenLabel$1=e=>e.split(/[_-]/g).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "),mapTokensToOptions=(e,t)=>{if(!e)return[];const r=t?.groupKey??"group";return Object.entries(e).filter(([,e])=>"string"==typeof e&&e.trim().length>0).map(([e,i])=>{const n=i.trim(),o=t?.tokenLabelPrefix?`${t.tokenLabelPrefix}.${e}`:void 0;return{id:`${r}-${e}`,label:formatTokenLabel$1(e),value:n,tokenLabel:o}})},readSavedColors=()=>{if("undefined"==typeof window)return[];try{const e=window.localStorage.getItem(SAVED_COLORS_KEY);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>"string"==typeof e).map(e=>e.trim().toLowerCase()).filter(Boolean):[]}catch{return[]}},persistSavedColors=e=>{if("undefined"!=typeof window)try{window.localStorage.setItem(SAVED_COLORS_KEY,JSON.stringify(e))}catch{}},STATIC_PREFIX="STATIC_COLORS.",THEME_PREFIX="THEME_COLORS.",resolveProjectColorValue=(e,t)=>{if(!e||"string"!=typeof e||!t)return;const r=e.trim();if(r){if(r.startsWith(STATIC_PREFIX)){const e=r.slice(STATIC_PREFIX.length),i=t.STATIC_COLORS?.[e];return"string"==typeof i&&i.trim()?i.trim():void 0}if(r.startsWith(THEME_PREFIX)){const e=r.slice(THEME_PREFIX.length);if(!e)return;const i=e.split(".");if(1===i.length){const e=i[0],r=t.THEME_COLORS;if(!r)return;for(const t of Object.values(r)){const r=t?.[e];if("string"==typeof r&&r.trim())return r.trim()}return}const[n,...o]=i,a=o.join(".");if(!n||!a)return;const s=t.THEME_COLORS?.[n],l=s?.[a];return"string"==typeof l&&l.trim()?l.trim():void 0}}};function ColorModal({value:e,projectColors:t,onSelect:r,onClose:i,onClear:n}){const[o,a]=useState(()=>readSavedColors()),[s,l]=useState(!0),c=useRef(null),d=useId(),p=useId(),g=useMemo(()=>resolveProjectColorValue(e,t)??e,[e,t]),u=useMemo(()=>{if(!t)return[];const e=[],r=mapTokensToOptions(t.STATIC_COLORS,{groupKey:"static",tokenLabelPrefix:"STATIC_COLORS"});r.length&&e.push({title:"Static colors",options:r,emptyMessage:"No static colors defined."});const i=t.THEME_COLORS??{};return Object.entries(i).forEach(([t,r])=>{const i=mapTokensToOptions(r,{groupKey:`theme-${t||"default"}`,tokenLabelPrefix:"THEME_COLORS"});if(!i.length)return;const n=t?.trim()?formatTokenLabel$1(t):"Theme";e.push({title:`Theme: ${n}`,options:i,emptyMessage:`No colors defined for ${n}.`})}),e},[t]),h=useMemo(()=>o.map((e,t)=>({id:`saved-${t}-${e}`,label:e,value:e})),[o]),m=e=>{const t=e?.trim().toLowerCase();t&&(a(e=>{if(e.includes(t))return e;const r=[...e,t];return persistSavedColors(r),r}),r(t),i())},f=()=>{const e=c.current,t=e?e.showPicker:void 0;if(e&&"function"==typeof t){try{e.focus({preventScroll:!0})}catch{}t.call(e)}else(()=>{if("undefined"==typeof document)return;const e=document.createElement("input");e.type="color",e.value=g?.toString()||"#000000",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.style.width="40px",e.style.height="40px",e.style.opacity="0";const t=()=>{e.removeEventListener("change",r),e.removeEventListener("input",r),e.removeEventListener("blur",t),e.remove()},r=()=>{m(e.value),t()};e.addEventListener("change",r),e.addEventListener("input",r),e.addEventListener("blur",t),document.body.appendChild(e);try{e.focus({preventScroll:!0})}catch{}requestAnimationFrame(()=>e.click())})()},y=e=>{m(e.target.value),e.target.value="#000000"},b=e=>{const t=s&&e.tokenLabel?e.tokenLabel:e.value;r(t),i()};return jsxs(Modal,{onClose:i,ariaLabelledBy:"color-picker-title",contentClassName:"color-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"color-picker-title",className:"modal__title",children:"Pick a color"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"color-modal__selected",children:[jsxs("div",{className:"color-modal__selected-info",children:[jsx("label",{htmlFor:p,role:"button","aria-label":"Open color picker",tabIndex:0,title:"Pick a color",className:"color-modal__selected-preview",style:{background:g??"transparent"},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}}),jsxs("div",{children:[jsx("p",{className:"color-modal__selected-label",children:"Selected color"}),jsx("p",{className:"color-modal__selected-value",children:e??"None"})]})]}),e?jsx("button",{type:"button",className:"color-modal__link-button",onClick:n,children:"Clear"}):null]}),jsxs("div",{className:"color-modal__toggle",children:[jsxs("label",{htmlFor:d,className:"color-modal__toggle-label",children:[jsx("input",{id:d,type:"checkbox",className:"color-modal__toggle-input",checked:s,onChange:e=>l(e.target.checked)}),"Use color names"]}),jsx("p",{className:"color-modal__toggle-description",children:"Output tokens like STATIC_COLORS.PRIMARY instead of raw values."})]}),u.length?u.map(t=>jsx(ColorSection,{title:t.title,options:t.options,emptyMessage:t.emptyMessage,activeValue:e,onSelect:b},t.title)):jsx(ColorSection,{title:"Project colors",options:[],emptyMessage:"No project colors detected yet.",activeValue:e,onSelect:b}),jsx(ColorSection,{title:"Saved colors",options:h,emptyMessage:"Add colors you use often for quick access.",action:jsxs("span",{className:"color-modal__link-button color-modal__add-color",children:["Add color",jsx("input",{type:"color",className:"color-modal__add-color-input",onChange:y,defaultValue:"#000000","aria-label":"Add color"})]}),activeValue:e,onSelect:b}),jsx("input",{ref:c,id:p,type:"color",className:"color-modal__input",onChange:y,defaultValue:"#000000",tabIndex:-1})]})}function ColorSection({title:e,options:t,emptyMessage:r,action:i,activeValue:n,onSelect:o}){return jsxs("section",{className:"color-section",children:[jsxs("div",{className:"color-section__header",children:[jsx("p",{className:"color-section__title",children:e}),i]}),t.length?jsx("div",{className:"color-section__swatches",children:t.map(e=>jsx(ColorSwatch,{option:e,isActive:e.tokenLabel&&e.tokenLabel===n||e.value===n,onSelect:()=>o(e)},e.id))}):jsx("p",{className:"color-section__empty",children:r??"No colors available."})]})}function ColorSwatch({option:e,isActive:t,onSelect:r}){const i="#ffffff"===e.value?.trim().toLowerCase()||"#fff"===e.value?.trim().toLowerCase();return jsxs("button",{type:"button",onClick:r,className:"color-modal__swatch"+(t?" color-modal__swatch--active":""),children:[jsx("span",{"aria-hidden":!0,className:"color-modal__swatch-preview"+(i?" color-modal__swatch-preview--light":""),style:{background:e.value??"transparent"}}),jsx("span",{className:"color-modal__swatch-label",children:e.label??e.value}),jsx("span",{className:"color-modal__swatch-value",children:e.tokenLabel?`${e.tokenLabel} - ${e.value}`:e.value})]})}const Checkbox=React.forwardRef(({label:e,helperText:t,className:r,inputClassName:i,onChange:n,id:o,disabled:a,...s},l)=>{const c=useId(),d=o??c,p=t?`${d}-helper`:void 0,g=["builder-checkbox",a?"builder-checkbox--disabled":void 0,r].filter(Boolean).join(" "),u=["builder-checkbox__native",i].filter(Boolean).join(" ");return jsxs("div",{className:g,children:[jsxs("label",{htmlFor:d,className:"builder-checkbox__label",children:[jsx("input",{...s,ref:l,id:d,type:"checkbox",className:u,onChange:e=>{n?.(e.target.checked,e)},disabled:a,"aria-describedby":p}),jsx("span",{className:"builder-checkbox__control","aria-hidden":"true"}),e?jsx("span",{className:"builder-checkbox__text",children:e}):null]}),t?jsx("span",{id:p,className:"builder-checkbox__helper",children:t}):null]})});function LayoutPreviewPicker({mode:e,options:t,value:r,onChange:i,layoutContext:n,viewAttributes:o}){if(!t.length)return null;const a="string"==typeof r?r:n?.[e];return jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,paddingBottom:2},children:t.map(t=>{const r=a===t;return jsxs("button",{type:"button",onClick:()=>i(t),style:{borderRadius:8,padding:5,width:110,flex:"0 0 auto",border:r?"2px solid #222":"1px solid #d5d5d5",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",textAlign:"left",display:"flex",flexDirection:"column",gap:3,cursor:"pointer",boxShadow:r?"0 2px 4px rgba(0,0,0,0.08)":"none"},children:[jsx(LayoutPreview,{mode:e,option:t,isActive:r,layoutContext:n,viewAttributes:o}),jsx("span",{style:{fontWeight:600,fontSize:11},children:formatLayoutLabel(t)})]},t)})})}function LayoutPreview({mode:e,option:t,isActive:r,layoutContext:i,viewAttributes:n}){const o=resolvePreviewContext(e,t,i),a=o.flexDirection?.startsWith("column"),s=n?.style?.backgroundColor??(r?"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)) / 0.55)":"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))"),l=parseNumeric(n?.style?.gap)??3,c=parseNumeric(n?.style?.borderRadius)??4,d="stretch"===o.alignItems?a?{width:"100%"}:{height:"100%"}:void 0;return jsx("div",{style:{borderRadius:c,border:"1px dashed rgba(0,0,0,0.2)",padding:5,background:s},children:jsx("div",{style:{display:"flex",flexDirection:o.flexDirection??"row",justifyContent:o.justifyContent??"flex-start",alignItems:o.alignItems??"stretch",gap:l,width:"100%",minHeight:a?52:40,transition:"all 0.2s ease"},children:Array.from({length:3}).map((t,r)=>jsx("span",{style:{width:a?22:10,height:10,borderRadius:2.5,background:"#f7a500",border:"1px solid rgba(0,0,0,0.1)",flex:"justifyContent"===e?"0 0 auto":void 0,...d??{}}},r))})})}function resolvePreviewContext(e,t,r){const i={flexDirection:r?.flexDirection??"row",alignItems:r?.alignItems??"center",justifyContent:r?.justifyContent??"flex-start"};switch(e){case"flexDirection":return{flexDirection:t,alignItems:i.alignItems,justifyContent:i.justifyContent};case"alignItems":return{flexDirection:i.flexDirection,alignItems:t,justifyContent:i.justifyContent};case"justifyContent":return{flexDirection:i.flexDirection,alignItems:i.alignItems,justifyContent:t};default:return i}}function parseNumeric(e){if(null==e)return;if("number"==typeof e)return e;const t=Number.parseFloat(e);return Number.isNaN(t)?void 0:t}function formatLayoutLabel(e){return e.replace(/[-_]/g," ").replace(/\s+/g," ").replace(/^\w|\s\w/g,e=>e.toUpperCase())}function toPreferredScale(e){if("vs"===e||"s"===e||"f"===e||"%"===e)return e;if("string"!=typeof e)return;const t=e.trim().toLowerCase();return"vs"===t||"s"===t||"f"===t||"%"===t?t:void 0}function parseSizeValue(e){const t={amount:"",unit:""};if("number"==typeof e&&Number.isFinite(e))return{amount:String(e),unit:""};if("string"!=typeof e)return t;const r=e.trim();if(!r)return t;if(r.endsWith("%"))return{amount:r.slice(0,-1),unit:"%"};const i=r.toLowerCase();return i.endsWith("@vs")?{amount:r.slice(0,-3),unit:"vs"}:i.endsWith("vs")?{amount:r.slice(0,-2),unit:"vs"}:i.endsWith("@fs")?{amount:r.slice(0,-3),unit:"f"}:i.endsWith("@f")||i.endsWith("fs")?{amount:r.slice(0,-2),unit:"f"}:i.endsWith("f")?{amount:r.slice(0,-1),unit:"f"}:i.endsWith("@s")?{amount:r.slice(0,-2),unit:"s"}:i.endsWith("s")?{amount:r.slice(0,-1),unit:"s"}:i.endsWith("px")?{amount:r.slice(0,-2),unit:""}:{amount:r,unit:""}}function composeSizeValue(e,t){const r=e.trim();if("%"===t)return`${r}%`;if(""===t){const e=Number(r);return Number.isFinite(e)?e:r}return"f"===t?`${r}@fs`:`${r}@${t}`}function normalizePreferredScale(e,t){const r=t.trim().toLowerCase(),i=r.includes("height")||r.includes("top")||r.includes("vertical")?"vs":"s";return e??i}function SizeField({value:e,onChange:t,preferredScale:r,fieldName:i}){const n=useMemo(()=>parseSizeValue(e),[e]),o=useMemo(()=>normalizePreferredScale(r,i),[r,i]),[a,s]=useState(n.amount),[l,c]=useState(()=>n.unit&&n.unit!==o?n.unit:"auto");useEffect(()=>{s(n.amount);const e=n.unit&&n.unit!==o?n.unit:"auto";c(e)},[n.amount,n.unit,o]);const d=useCallback(e=>"auto"===e?o:e,[o]),p=useCallback((e,r)=>{const i=e.trim();t(i?composeSizeValue(i,d(r)):void 0)},[t,d]),g=[{value:"auto",label:"auto"},...[o,...["vs","s","f","%"].filter(e=>e!==o)].map(e=>({value:e,label:e===o?`${e} (preferred)`:e}))];return jsxs("div",{className:"attributes-editor__size-field",children:[jsx("input",{type:"number",className:"input attributes-editor__size-field-input",value:a,onChange:e=>{const r=e.target.value;s(r),r.trim()?p(r,l):t(void 0)}}),jsx("select",{className:"input attributes-editor__size-field-select",value:l,onChange:e=>{const t=e.target.value;c(t),a.trim()&&p(a,t)},children:g.map(e=>jsx("option",{value:e.value,children:e.label},e.value))})]})}Checkbox.displayName="Checkbox";const BOOLEAN_ALIASES=new Set(["bool","boolean"]);function isBooleanFieldType(e){if(Array.isArray(e))return!1;if("string"!=typeof e)return!1;const t=e.trim().toLowerCase();return BOOLEAN_ALIASES.has(t)}const layoutFieldNames=["flexDirection","alignItems","justifyContent"];function isLayoutField(e){return layoutFieldNames.includes(e)}function Field({name:e,type:t,value:r,onChange:i,componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:l,preferredScale:c}){if(Array.isArray(t)){if(isLayoutField(e)){const n=t.filter(e=>"string"==typeof e&&e.length>0);return jsx(LayoutPreviewPicker,{mode:e,options:n,value:"string"==typeof r?r:void 0,onChange:i,layoutContext:a,viewAttributes:s})}return jsxs("select",{value:r??"",onChange:e=>i(e.target.value),className:"input",children:[jsx("option",{value:"",children:"(none)"}),t.map(e=>jsx("option",{value:e,children:e},e))]})}const d="string"==typeof t?getArrayItemType(t):null;if(d){const t=Array.isArray(r)?r:[];if(isPrimitiveType(d)){const r=(r,n)=>{switch(d){case"number":return jsx("input",{type:"number",value:r??"",onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:Number(e.target.value),i(r)},className:"input",style:{flex:1}});case"boolean":case"bool":return jsx(Checkbox,{checked:Boolean(r),onChange:e=>{const r=[...t];r[n]=e,i(r)},name:`${e}-${n}`});case"string":case"description":return jsx("input",{type:"text",value:r??"",onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"title":return jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"color":return jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>{const r=[...t];r[n]=e,i(r)},projectColors:o});default:return jsx("p",{children:"---not-implemented----"})}};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,n)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[r(e,n),jsx("button",{type:"button",onClick:()=>{const e=t.filter((e,t)=>t!==n);i(e.length?e:void 0)},children:"remove"})]},n)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,"boolean"!==d&&("number"===d?0:"")];i(e)},children:"add"})})]})}const l=getTypeSchema(n,d)??{};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,r)=>{const c=e??{};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(l).map(([e,l])=>isBooleanFieldType(l)?jsx("div",{style:{gridColumn:"1 / -1"},children:jsx(Field,{name:e,type:l,value:c?.[e],onChange:n=>{const o=[...t],a={...c??{},[e]:n};o[r]=a,i(o)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:e})},e):jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:l,value:c?.[e],onChange:n=>{const o=[...t],a={...c??{},[e]:n};o[r]=a,i(o)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s})]},e))}),jsxs("div",{style:{marginTop:8,display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[jsxs("div",{style:{display:"flex",gap:4},children:[jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r<=0)return;const n=[...t],o=n[r-1];n[r-1]=n[r],n[r]=o,i(n)},disabled:r<=0,"aria-label":"Move up",children:"↑"}),jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r>=t.length-1)return;const n=[...t],o=n[r+1];n[r+1]=n[r],n[r]=o,i(n)},disabled:r>=t.length-1,"aria-label":"Move down",children:"↓"})]}),jsx("button",{type:"button",onClick:e=>{e.stopPropagation();const n=t.filter((e,t)=>t!==r);i(n.length?n:void 0)},children:"remove"})]})]},r)}),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,{}];i(e)},children:"add"})})]})}if("string"==typeof t&&!isPrimitiveType(t)){const e=getTypeSchema(n,t);if(e){const t=r??{};return jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(e).map(([e,r])=>isBooleanFieldType(r)?jsx("div",{style:{gridColumn:"1 / -1"},children:jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const n={...t??{},[e]:r};i(n)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:e})},e):jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const n={...t??{},[e]:r};i(n)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s})]},e))})}}if("string[]"===t){const e=Array.isArray(r)?r:[];return jsxs("div",{style:{display:"grid",gap:8},children:[e.map((t,r)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("input",{type:"text",value:t??"",onChange:t=>{const n=[...e];n[r]=t.target.value,i(n)},className:"input",style:{flex:1}}),jsx("button",{type:"button",onClick:()=>{const t=e.filter((e,t)=>t!==r);i(t.length?t:void 0)},children:"remove"})]},r)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const t=[...e,""];i(t)},children:"add"})})]})}if("string"!=typeof t)return jsx("p",{children:"---not-implemented----"});switch(t){case"size":return jsx(SizeField,{value:r,onChange:i,preferredScale:c,fieldName:e});case"fontWeight":{const e=normalizeFontWeight(r);return jsxs("select",{value:e??"",onChange:e=>i(e.target.value||void 0),className:"input",children:[jsx("option",{value:"",children:"(none)"}),FONT_WEIGHT_OPTIONS.map(e=>jsx("option",{value:e,children:e},e))]})}case"number":return jsx("input",{type:"number",value:r??"",onChange:e=>i(""===e.target.value?void 0:Number(e.target.value)),className:"input"});case"boolean":case"bool":return jsx(Checkbox,{label:l??e,checked:Boolean(r),onChange:e=>i(e),name:e});case"string":case"description":return jsx("input",{type:"text",value:r??"",onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"title":return jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"color":return jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>i(e),projectColors:o});default:return jsx("p",{children:"---not-implemented----"})}}function ColorPickerButton({value:e,onChange:t,projectColors:r}){const[i,n]=useState(!1),o="string"==typeof e?e:void 0,a=useMemo(()=>resolveProjectColorValue(o,r)??o,[o,r]);return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>n(!0),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,borderRadius:6,border:"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},children:[jsx("span",{"aria-hidden":!0,style:{width:32,height:32,borderRadius:6,border:"1px solid rgba(0,0,0,0.1)",background:a??"transparent"}}),jsx("span",{style:{flex:1,textAlign:"left",fontWeight:500},children:o??"Select color"}),jsx("span",{style:{fontSize:12,color:"#666"},children:"Open"})]}),i?jsx(ColorModal,{value:o,projectColors:r,onSelect:e=>{t(e),n(!1)},onClose:()=>n(!1),onClear:()=>{t(void 0),n(!1)}}):null]})}function FieldInfoTooltip({description:e,children:t}){const[r,i]=useState(!1);if(!e||!e.trim())return jsx(Fragment,{children:t});const n=["field-info-tooltip__bubble",r?"field-info-tooltip__bubble--visible":""].filter(Boolean).join(" "),o=()=>i(!0),a=()=>i(!1);return jsxs("div",{className:"field-info-tooltip",children:[t,jsxs("button",{className:"field-info-tooltip__trigger",onMouseEnter:o,onMouseLeave:a,onFocus:o,onBlur:a,type:"button",children:["Show info",jsx("span",{className:n,role:"tooltip","aria-hidden":!r,children:e})]})]})}const FIELD_SLOT_MATCHERS={top:/(^|[-_])(top)$/i,bottom:/(^|[-_])(bottom)$/i,left:/(^|[-_])(left)$/i,right:/(^|[-_])(right)$/i};function SpecialCategorySection({category:e,entries:t,attributeMeta:r,getAttributeValue:i,onAttributeChange:n,componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,meta:c}){const[d,p]=useState(!1),g=c?.label&&c.label.trim().length>0?c.label:e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1):"Special",u=c?.description,h="padding"===e||"margin"===e||"offset"===e,m=h,f=e=>{if(!m)return;const t=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase();return Object.keys(FIELD_SLOT_MATCHERS).find(e=>FIELD_SLOT_MATCHERS[e].test(t))},y=t.filter(e=>!f(e.name)),b=h&&y.length>0;return jsxs("section",{className:"special-category-section",children:[jsxs("div",{className:"special-category-section__header",children:[jsx("p",{className:"special-category-section__title",children:g}),b?jsx("button",{type:"button",onClick:()=>p(e=>!e),className:"special-category-section__toggle","data-active":d,children:d?"Show less":"Show more"}):null]}),u?jsx("p",{className:"special-category-section__description",children:u}):null,(()=>{if(!t.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});if(!h)return(()=>{if(!t.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const e=["special-category-section__fields",m?"special-category-section__fields--box":""].filter(Boolean).join(" ");return jsx("div",{className:e,children:t.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),g=i(e),u=isBooleanFieldType(t),h=f(e),m=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:m,"data-field-slot":h,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:g,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})})})();const e=t.filter(e=>f(e.name)).sort((e,t)=>{const r=["top","left","right","bottom"],i=f(e.name),n=f(t.name);return(i?r.indexOf(i):999)-(n?r.indexOf(n):999)}),c=t.filter(e=>!f(e.name));if(0===e.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const p=jsx("div",{className:"special-category-section__fields special-category-section__fields--box",children:e.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),g=i(e),u=isBooleanFieldType(t),h=f(e),m=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:m,"data-field-slot":h,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:g,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})}),g=d&&c.length>0?jsx("div",{className:"special-category-section__fields",children:c.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),g=i(e),u=isBooleanFieldType(t),h=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:h,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:g,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})}):null;return jsxs(Fragment,{children:[p,g]})})()]})}const FALLBACK_PARENT="all",EXCLUDE_PREFIX="!=";function normalizeDesiredParents(e){return Array.isArray(e)&&0!==e.length?e:[FALLBACK_PARENT]}function matchesDesiredChildToken(e,t){return e.startsWith("=")||e.startsWith(">")?e.slice(1)===t:e===t}function filterOptionsByDesiredChildren(e,t){if(!Array.isArray(t)||0===t.length)return e;const r=t.map(e=>e.trim()).filter(e=>e.length>0);return 0===r.length?e:e.filter(({type:e})=>{let t=!1,i=!1;for(const n of r)if(n.startsWith(EXCLUDE_PREFIX)){if(e===n.slice(EXCLUDE_PREFIX.length))return!1}else n!==FALLBACK_PARENT&&(t=!0,matchesDesiredChildToken(n,e)&&(i=!0));return!t||i})}function formatTokenLabel(e){return"all"===e?"Anywhere":"root"===e?"Root only":e.startsWith("!=")?`Not under ${e.slice(2)}`:e.startsWith("=")?`Direct child of ${e.slice(1)}`:e.startsWith(">")?`Inside ${e.slice(1)}`:e}function tokenMatchesParent(e,t){return"all"===e||(t&&0!==t.length?!e.startsWith("!=")&&(e.startsWith("=")||e.startsWith(">")?e.slice(1)===t:e===t):"root"===e)}function buildGroups(e,t){const r=new Map;return e.forEach(e=>{e.desiredParents.forEach(i=>{if(t&&!t(i,e))return;const n=r.get(i);n?n.some(t=>t.type===e.type)||n.push(e):r.set(i,[e])})}),Array.from(r.entries()).map(([e,t])=>({token:e,displayLabel:formatTokenLabel(e),options:t.sort((e,t)=>e.label.localeCompare(t.label))})).sort((e,t)=>e.displayLabel.localeCompare(t.displayLabel))}function AddComponentModal({allowedChildTypes:e,parentType:t,onSelect:r,onClose:i}){const[n,o]=useState(!1),a=useMemo(()=>Array.from(new Set(e)).map(e=>{const t=getPatternByType(e);return{type:e,label:t?.meta?.label?.trim()||e,desiredParents:normalizeDesiredParents(t?.meta?.desiredParent)}}).sort((e,t)=>e.label.localeCompare(t.label)),[e]),s=useMemo(()=>{if(!t)return;const e=getPatternByType(t)?.meta?.desiredChildren;return Array.isArray(e)&&0!==e.length?e.map(e=>e.trim()).filter(e=>e.length>0):void 0},[t]),l=useMemo(()=>filterOptionsByDesiredChildren(a,s),[a,s]),c=!s?.length;useEffect(()=>{c||o(!1)},[c]);const d=useMemo(()=>buildGroups(l,e=>tokenMatchesParent(e,t)),[l,t]),p=useMemo(()=>buildGroups(l),[l]),g=e=>jsxs("button",{type:"button",className:"add-component-modal__card",onClick:()=>(e=>{r(e)})(e.type),role:"listitem",children:[jsx("div",{className:"add-component-modal__thumbnail","aria-hidden":"true",children:jsx("span",{children:"Preview"})}),jsx("span",{className:"add-component-modal__title",children:e.label})]},e.type),u=e=>e.map(e=>jsxs("div",{className:"add-component-modal__group",children:[jsx("h5",{className:"add-component-modal__group-title",children:e.displayLabel}),jsx("div",{className:"add-component-modal__grid",role:"list",children:e.options.map(g)})]},e.token)),h=d.length>0,m=l.length>0;return jsxs(Modal,{onClose:i,ariaLabelledBy:"add-component-title",contentClassName:"add-component-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"add-component-title",className:"modal__title",children:"Add component"}),jsx("button",{type:"button",className:"editor-button","aria-label":"Close add component modal",onClick:i,children:"Close"})]}),jsxs("div",{className:"add-component-modal__body",children:[jsxs("section",{className:"add-component-modal__section",children:[jsx("h4",{className:"add-component-modal__section-title",children:"Recommended Components"}),h?u(d):jsx("p",{className:"add-component-modal__empty",children:m?"No direct recommendations for this parent.":"No components available for this node."})]}),c&&jsxs("label",{className:"add-component-modal__toggle",children:[jsx("input",{type:"checkbox",checked:n,onChange:e=>o(e.target.checked)}),jsx("span",{children:"Show rest (All Components)"})]}),c&&n&&jsxs("section",{className:"add-component-modal__section","aria-live":"polite",id:"add-component-modal-all",children:[jsx("h4",{className:"add-component-modal__section-title",children:"All Components"}),p.length?u(p):jsx("p",{className:"add-component-modal__empty",children:"No components available."})]}),!n&&!h&&jsx("p",{className:"add-component-modal__empty",children:c?"Nothing to suggest yet—toggle “Show rest” to browse all components.":"Nothing to suggest yet for this parent."})]})]})}const Icons=["activity","activity-heart","alert-circle","alert-triangle","anchor","archive","arrow-down","arrow-left","arrow-narrow-down-left","arrow-narrow-up-right","arrow-right","arrow-right-smooth","asterisk-01","asterisk-02","at-sign","award","battery-charging","bell-01","bell-02","bell-ringing-02","bookmark","bookmark-add","bookmark-check","bookmark-minus","bookmark-x","bubble","building-01","building-02","building-03","building-04","building-05","building-06","building-07","building-08","building-09","camera","camera-01","camera-steel","check","check-circle","check-circle-bold","check-circle-broken","check-done-01","check-done-02","check-heart","check-square","check-square-broken","check-verified-01","check-verified-02","check-verified-03","checkbox","checkv","chevron-down","chevron-down2","chevron-left","chevron-left-2","chevron-right","chevron-right-empty","chevron-right-smooth","chevron-up","circle","clock","clock-fast-forward","close","close-circle","cloud-01","cloud-blank-01","cloud-blank-02","coin","coins-02","colors","copy-01","copy-02","copy-03","copy-04","copy-05","copy-06","copy-07","corner-down-right","crypto-bold","delete-icon","diamond","dice-3","divide-01","divide-02","divide-03","document-check-bold","dots-circle","dots-grid","dots-horizontal","dots-vertical","download-01","download-02","download-03","edit-03","edit-04","edit-05","element-3","ellipse-127","exclaimation-circle","eye-off-line","face-smile","file-04","file-05","file-check-02","file-plus-01","file-shield-02","filter-funnel-01","flag-03","flash","folder","folder-plus","gallery","globe-01","globe-04","globe-bold","guard","headphones-01","headphones-02","headset-bold","heart","heart-bold","help-circle","home-2","home-line","hourglass-02","image","image-01","image-03","inbox-01","inbox-arrow-down","info-circle","keyboard-line","lamp-charge","layer","light","like-dislike","lock-03","logout","magicpen","mail","mail-01","marker","medal-star","menu","menu-04","message-circle-01","message-plus-circle","message-question-circle","message-text-circle-01","message-text-square-02","message-x-square","microphone-02","microphone-slash","mirror","moon-01","moon-bold","mouse-circle","move","notification","notification-fill","notification-text","pdf-01","pencil-01","phone","phone-01","phone-arrow-down-left","phone-arrow-up-right","phone-hang-up","phone-hangup2","phone-incoming-01","phone-outgoing-01","phone-plus","phone-x","plus","plus-circle","printer","question-mark-circle","refresh-ccw-01","refresh-cw-01","refresh-cw-04","refresh-right-square-bold","remove-circle","repeat-04","repeat-bold","ruler-pen","search","search-lg","search-md","search-refraction","send-01","send-02","send-diagonal","setting-2","settings","settings-02","settings-04","settings-2","settings-cog","share-01","share-03","share-04","share-05","share-06","share-bold","shield-01","shield-bold","solar-check","speaker","speaker-wave","speedometer-03","star","star-rounded","sun","target-03","text-input","translate","trash","trash-02","trash-03","trash-04","trush-square-bold","unlimited","user-circle","user-jogging","user-plus-01","user-square","user-x-01","user-x-02","user2","users-02","users-speaker","verify","voice-cricle","x-circle","x-close","x-sm","zap"];function IconPickerModal({value:e,onSelect:t,onClose:r,onClear:i}){const[n,o]=useState(""),a=useMemo(()=>{const e=n.trim().toLowerCase();return e?Icons.filter(t=>t.toLowerCase().includes(e)):Icons},[n]);return jsx(Modal,{onClose:r,ariaLabelledBy:"icon-picker-title",children:jsxs("div",{style:{display:"grid",gap:12},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[jsx("p",{id:"icon-picker-title",style:{margin:0,fontWeight:700},children:"Select Icon"}),jsx("div",{style:{flex:1}}),i?jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Clear"}):null,jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsx("input",{type:"text",className:"input",placeholder:"Search icons...",value:n,onChange:e=>o(e.target.value),autoFocus:!0}),jsxs("div",{style:{fontSize:12,color:"#666"},children:[a.length," / ",Icons.length,e?` • Selected: ${e}`:""]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",gap:8,maxHeight:"60vh",overflow:"auto",paddingRight:4},children:a.map(r=>{const i=e===r;return jsxs("button",{type:"button",onClick:()=>t(r),style:{display:"flex",alignItems:"center",gap:8,borderRadius:8,border:i?"2px solid #222":"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},"aria-label":`Select icon ${r}`,children:[jsx(Icon,{iconType:r,size:18}),jsx("span",{style:{fontSize:12,fontWeight:i?700:500,textAlign:"left",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:r,children:r})]},r)})})]})})}function isRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function isNodeData$1(e){return isRecord(e)&&"string"==typeof e.type&&"children"in e}function isMainLike(e){const t=e.type;return"Main"===t||"main"===t}function stripNestedIsMain(e,t){if(null==e||"string"==typeof e)return e;if(Array.isArray(e)){let t=!1;const r=e.map(e=>{const r=stripNestedIsMain(e,!1);return r!==e&&(t=!0),r});return t?r:e}if(!isNodeData$1(e))return e;const r=e.children,i=stripNestedIsMain(r,!1),n=!0===e.isMain&&!t;return n||i!==r?{...e,...n?{isMain:!1}:null,children:i}:e}function wrapNodeInMain(e){if(isNodeData$1(e)&&isMainLike(e)){const t=stripNestedIsMain(e,!0);return!0!==t.isMain?{...t,isMain:!0}:t}const t=stripNestedIsMain(e,!1);return{type:"Main",isMain:!0,attributes:{},children:null==e?[]:t}}function safeStringify$1(e){try{return JSON.stringify(e,null,2)??""}catch{return String(e??"")}}function JsonTextEditor({value:e,onChange:t,rootName:r,readOnly:i=!1,className:n}){const o=useMemo(()=>safeStringify$1(e),[e]),[a,s]=useState(o),[l,c]=useState(null),[d,p]=useState(null),[g,u]=useState(e);useEffect(()=>{s(o),c(null),p(null),u(e)},[o,e]);return jsxs("div",{className:n,style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",gap:10},children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,flexWrap:"wrap"},children:[jsx("div",{style:{fontSize:12,opacity:.75},children:r?`${r}.json`:"data.json"}),jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:async()=>{try{await navigator.clipboard.writeText(a)}catch{}},children:"Copy"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a);s(JSON.stringify(e,null,2)),c(null),p(null),u(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},children:"Format"}),!i&&jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=t(e)&&"data"in e?{...e,data:wrapNodeInMain(e.data)}:wrapNodeInMain(e);s(JSON.stringify(r,null,2)),c(null),p(null),u(r)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Wrap root in Main and apply":"Read only",children:"Wrap in Main"}),!i&&jsx("button",{type:"button",className:"editor-button",onClick:()=>{if(t)try{const e=JSON.parse(a);c(null),p(null),u(e);try{t(e)}catch(e){p(e instanceof Error?e.message:"Failed to apply JSON")}}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Apply JSON changes":"Read only",children:"Apply"})]})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr)",gap:10,flex:1,minHeight:0},children:jsx("textarea",{value:a,onChange:e=>{const t=e.target.value;if(s(t),p(null),!i)try{const e=JSON.parse(t);c(null),u(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},readOnly:i,spellCheck:!1,style:{width:"100%",height:"100%",minHeight:320,resize:"none",border:"1px solid rgba(0,0,0,0.12)",borderRadius:10,padding:12,fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontSize:12,lineHeight:1.5,background:"transparent",outline:"none"}})}),jsxs("div",l?{style:{fontSize:12,color:"#d12f2f"},children:["Invalid JSON: ",l]}:d?{style:{fontSize:12,color:"#d12f2f"},children:["Could not apply: ",d]}:{style:{fontSize:12,opacity:.7},children:["Valid JSON (",safeStringify$1(g).length.toLocaleString()," ","chars)"]})]})}function LocalicationModal({data:e,onChange:t,onClose:r}){const i=e??{};return jsxs(Modal,{onClose:r,ariaLabelledBy:"localication-modal-title",className:"modal--large modal--scrollable localication-modal",contentClassName:"localication-modal__content",children:[jsxs("div",{className:"modal__header localication-modal__header",children:[jsxs("div",{className:"localication-modal__header-main",children:[jsx("h3",{id:"localication-modal-title",className:"modal__title",children:"Localization data"}),jsx("p",{className:"localication-modal__description",children:"Manage your translations directly from the JSON structure."})]}),jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsx("div",{className:"localication-modal__body",children:jsx("div",{className:"localication-modal__editor",children:jsx(JsonTextEditor,{rootName:"localication",value:i,onChange:e=>t(e),className:"localication-modal__json-editor"})})})]})}function randomInt(e,t){return Math.floor(Math.random()*(t-e+1))+e}function randomChoice(e){return e[randomInt(0,e.length-1)]}function randomSku(){return`com.app.${randomChoice(["premium","pro","plus","gold","starter"])}.${randomChoice(["weekly","monthly","yearly","lifetime"])}`}function randomPrice(){const e=randomChoice(["USD","EUR","GBP","TRY"]),t=`${randomChoice([1,2,3,4,5,7,9,12,19,29,49,99])}.${randomChoice([0,49,99]).toString().padStart(2,"0")}`;return{price:t,localizedPrice:`${"USD"===e?"$":"EUR"===e?"€":"GBP"===e?"£":"₺"}${t}`,currency:e}}function ProductEditModal({product:e,index:t,onSave:r,onClose:i}){const n=useMemo(()=>({productId:e?.productId??"",title:e?.title??"",description:e?.description??"",localizedPrice:e?.localizedPrice??"",price:e?.price??"",currency:e?.currency??""}),[e]),[o,a]=useState(n),s=o.productId.trim().length>0;return jsxs(Modal,{onClose:i,ariaLabelledBy:"product-edit-modal-title",contentClassName:"product-edit-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"product-edit-modal-title",className:"modal__title",children:["Edit product #",t+1]}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"product-edit-modal__body",children:[jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"productId",children:"productId"}),jsx("input",{id:"productId",className:"input",value:o.productId,onChange:e=>a(t=>({...t,productId:e.target.value})),placeholder:"com.app.subscription.monthly"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"title",children:"title"}),jsx("input",{id:"title",className:"input",value:o.title,onChange:e=>a(t=>({...t,title:e.target.value})),placeholder:"Monthly Premium"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"description",children:"description"}),jsx("textarea",{id:"description",className:"input product-edit-modal__textarea",value:o.description,onChange:e=>a(t=>({...t,description:e.target.value})),placeholder:"Full access to all features..."})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"localizedPrice",children:"localizedPrice"}),jsx("input",{id:"localizedPrice",className:"input",value:o.localizedPrice,onChange:e=>a(t=>({...t,localizedPrice:e.target.value})),placeholder:"$4.99"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"price",children:"price"}),jsx("input",{id:"price",className:"input",value:o.price,onChange:e=>a(t=>({...t,price:e.target.value})),placeholder:"4.99"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"currency",children:"currency"}),jsx("input",{id:"currency",className:"input",value:o.currency,onChange:e=>a(t=>({...t,currency:e.target.value})),placeholder:"USD"})]}),jsxs("div",{className:"form-actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e=randomPrice(),t=randomChoice(["Premium","Pro","Plus","Gold","Starter","Unlimited"]),r=randomChoice(["Weekly","Monthly","Yearly","Lifetime"]);a({productId:randomSku(),title:`${t} ${r}`,description:randomChoice(["Unlock all features.","Full access to premium content.","Remove ads and get more features.","Best value for power users."]),localizedPrice:e.localizedPrice,price:e.price,currency:e.currency})},title:"Fill with random values",children:"Random"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>r(o),disabled:!s,title:s?"Save":"productId is required",children:"Save"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Cancel"})]})]})]})}const DEFAULT_PRESET_KEY$1="preset-1";function ensureProductId(e){return{...e,productId:e?.productId??""}}function getPresetMap$1(){const e=getMockProducts(),t={};return Object.entries(e??{}).forEach(([e,r])=>{e&&"string"==typeof e&&Array.isArray(r)&&(t[e]=r.filter(Boolean).map(e=>ensureProductId(e)).filter(e=>"string"==typeof e.productId&&e.productId.length>0))}),t}function ProductPresetsModal({current:e,onReplace:t,onAppend:r,onClose:i}){const n=useMemo(()=>getPresetMap$1(),[]),o=useMemo(()=>Object.entries(n).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY$1&&i!==DEFAULT_PRESET_KEY$1?-1:i===DEFAULT_PRESET_KEY$1&&r!==DEFAULT_PRESET_KEY$1?1:r.localeCompare(i)}),[n]);return jsxs(Modal,{onClose:i,ariaLabelledBy:"product-presets-modal-title",contentClassName:"product-presets-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"product-presets-modal-title",className:"modal__title",children:"Product presets"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"product-presets-modal__body",children:[jsxs("section",{className:"product-presets-modal__section",children:[jsxs("p",{className:"product-presets-modal__section-title",children:["Current (",Array.isArray(e)?e.length:0,")"]}),jsx("p",{className:"product-presets-modal__muted",children:"Pick a preset below to replace or append to the current list."})]}),jsxs("section",{className:"product-presets-modal__section",children:[jsx("p",{className:"product-presets-modal__section-title",children:"Presets"}),o.length?jsx("div",{className:"product-presets-modal__grid",children:o.map(([e,n])=>jsxs("div",{className:"product-presets-modal__card",children:[jsxs("div",{className:"product-presets-modal__card-header",children:[jsx("p",{className:"product-presets-modal__card-title",children:e}),jsxs("p",{className:"product-presets-modal__card-count",children:[n.length," products"]})]}),jsxs("ul",{className:"product-presets-modal__card-list",children:[n.slice(0,3).map(e=>jsx("li",{className:"product-presets-modal__card-item",children:e.productId},e.productId)),n.length>3?jsxs("li",{className:"product-presets-modal__card-item product-presets-modal__muted",children:["+",n.length-3," more…"]}):null]}),jsxs("div",{className:"product-presets-modal__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(n),i()},children:"Replace"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(n),i()},children:"Append"})]})]},e))}):jsx("p",{className:"product-presets-modal__muted",children:"No presets found."})]})]})]})}function detectKind(e){return"number"==typeof e?"number":"boolean"==typeof e?"boolean":"string"}function parseValue(e,t,r){if("boolean"===e)return"true"===t;if("number"===e){const e=t.trim();if(!e)return r;const i=e.replace(",","."),n=Number.parseFloat(i);return Number.isFinite(n)?n:r}return t}function BenefitEditModal({benefitKey:e,benefitValue:t,index:r,onSave:i,onClose:n}){const o=useMemo(()=>{const r=(e??"").toString(),i=detectKind(t);return{key:r,kind:i,raw:"boolean"===i?t?"true":"false":"number"===i?`${t??""}`:(t??"").toString()}},[e,t]),[a,s]=useState(o),l=a.key.trim().length>0;return jsxs(Modal,{onClose:n,ariaLabelledBy:"benefit-edit-modal-title",contentClassName:"benefit-edit-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"benefit-edit-modal-title",className:"modal__title",children:["Edit benefit #",r+1]}),jsx("button",{type:"button",className:"editor-button",onClick:n,children:"Close"})]}),jsxs("div",{className:"benefit-edit-modal__body",children:[jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitKey",children:"key"}),jsx("input",{id:"benefitKey",className:"input",value:a.key,onChange:e=>s(t=>({...t,key:e.target.value})),placeholder:"unlimited_access"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitType",children:"type"}),jsxs("select",{id:"benefitType",className:"input",value:a.kind,onChange:e=>s(t=>({...t,kind:e.target.value})),children:[jsx("option",{value:"string",children:"string"}),jsx("option",{value:"number",children:"number"}),jsx("option",{value:"boolean",children:"boolean"})]})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitValue",children:"value"}),"boolean"===a.kind?jsxs("select",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),children:[jsx("option",{value:"true",children:"true"}),jsx("option",{value:"false",children:"false"})]}):jsx("input",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),placeholder:"number"===a.kind?"7":"Unlock everything"})]}),jsxs("div",{className:"form-actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>i({key:a.key,value:parseValue(a.kind,a.raw,t)}),disabled:!l,title:l?"Save":"key is required",children:"Save"}),jsx("button",{type:"button",className:"editor-button",onClick:n,children:"Cancel"})]})]})]})}var basic={unlimited_access:!0,trial_days:7,headline:"Unlock everything"},vpn={secure_connection:!0,no_logs:!0,locations:120,headline:"Private & fast VPN"},pro={remove_ads:!0,priority_support:!0,devices:5,headline:"Go Pro"},presetsJson={"Embeded Paywall":{unlimited_access:!0,trial_days:7,headline:"Unlock everything"},basic:basic,vpn:vpn,pro:pro};const DEFAULT_PRESET_KEY="Embeded Paywall";function normalizeBenefits(e){if(!e||"object"!=typeof e||Array.isArray(e))return{};const t={};return Object.entries(e).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&("string"!=typeof r&&"number"!=typeof r&&"boolean"!=typeof r||(t[i]=r))}),t}function getPresetMap(){const e=presetsJson,t={};return Object.entries(e??{}).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&(t[i]=normalizeBenefits(r))}),t}function countBenefits(e){return e&&"object"==typeof e?Object.keys(e).length:0}function BenefitPresetsModal({current:e,onReplace:t,onMerge:r,onClose:i}){const n=useMemo(()=>getPresetMap(),[]),o=useMemo(()=>Object.entries(n).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY&&i!==DEFAULT_PRESET_KEY?-1:i===DEFAULT_PRESET_KEY&&r!==DEFAULT_PRESET_KEY?1:r.localeCompare(i)}),[n]);return jsxs(Modal,{onClose:i,ariaLabelledBy:"benefit-presets-modal-title",contentClassName:"benefit-presets-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"benefit-presets-modal-title",className:"modal__title",children:"Benefit presets"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"benefit-presets-modal__body",children:[jsxs("section",{className:"benefit-presets-modal__section",children:[jsxs("p",{className:"benefit-presets-modal__section-title",children:["Current (",countBenefits(e),")"]}),jsx("p",{className:"benefit-presets-modal__muted",children:"Pick a preset below to replace or merge into the current map."})]}),jsxs("section",{className:"benefit-presets-modal__section",children:[jsx("p",{className:"benefit-presets-modal__section-title",children:"Presets"}),o.length?jsx("div",{className:"benefit-presets-modal__grid",children:o.map(([e,n])=>{const o=Object.entries(n);return jsxs("div",{className:"benefit-presets-modal__card",children:[jsxs("div",{className:"benefit-presets-modal__card-header",children:[jsx("p",{className:"benefit-presets-modal__card-title",children:e}),jsxs("p",{className:"benefit-presets-modal__card-count",children:[o.length," benefits"]})]}),jsxs("ul",{className:"benefit-presets-modal__card-list",children:[o.slice(0,3).map(([e,t])=>jsxs("li",{className:"benefit-presets-modal__card-item",children:[e,": ",String(t)]},e)),o.length>3?jsxs("li",{className:"benefit-presets-modal__card-item benefit-presets-modal__muted",children:["+",o.length-3," more…"]}):null]}),jsxs("div",{className:"benefit-presets-modal__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(n),i()},children:"Replace"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(n),i()},title:"Merges preset into current (preset values overwrite existing keys)",children:"Merge"})]})]},e)})}):jsx("p",{className:"benefit-presets-modal__muted",children:"No presets found."})]})]})]})}function MockableFeatureModal({featureKey:e,onClose:t}){const{products:r,addProduct:i,removeProduct:n,updateProduct:o,setProducts:a,clearProducts:s,benefits:l,setBenefits:c,clearBenefits:d,upsertBenefit:p,removeBenefit:g,renameBenefit:u,setLocalization:h,localization:m,setProjectColors:f,projectColors:y}=useRenderStore(e=>({products:e.products,addProduct:e.addProduct,removeProduct:e.removeProduct,updateProduct:e.updateProduct,setProducts:e.setProducts,clearProducts:e.clearProducts,benefits:e.benefits,setBenefits:e.setBenefits,clearBenefits:e.clearBenefits,upsertBenefit:e.upsertBenefit,removeBenefit:e.removeBenefit,renameBenefit:e.renameBenefit,setLocalization:e.setLocalization,localization:e.localization,setProjectColors:e.setProjectColors,projectColors:e.projectColors})),[b,C]=useState(null),[x,v]=useState(!1),[S,w]=useState(null),[k,T]=useState(!1),_=useRef(null),O=useRef(null),I=useRef(null),M=Object.entries(l&&"object"==typeof l&&!Array.isArray(l)?l:{});return jsxs(Fragment,{children:[jsxs(Modal,{onClose:t,ariaLabelledBy:"mockable-feature-modal-title",contentClassName:"mockable-feature-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"mockable-feature-modal-title",className:"modal__title",children:["Mockable: ",e]}),jsx("button",{type:"button",className:"editor-button",onClick:t,children:"Close"})]}),jsx("div",{className:"mockable-feature-modal__body",children:"localization"===e?jsx(LocalizationPanel,{localization:m,defaultLoc:defaultLocalization,csvInputRef:_,onImportClick:()=>_.current?.click(),onChange:e=>{const t=e.target.files?.[0];if(!t)return;const r=new FileReader;r.onload=t=>{try{const e=t.target?.result,r=e.split(/\r?\n/).filter(Boolean);if(r.length<2)return void alert("CSV must have a header row and at least one data row.");const i=r[0].split(",").map(e=>e.trim().toLowerCase()),n=i.indexOf("key"),o=i.indexOf("en"),a=i.indexOf("tr");if(-1===n||-1===o&&-1===a)return void alert('CSV must have a "key" column and at least one of "en" or "tr" columns.');const s={};for(let e=1;e<r.length;e++){const t=r[e].split(",").map(e=>e.trim()),i=t[n]?.trim();if(!i)continue;const l={};-1!==o&&void 0!==t[o]&&(l.en=t[o]),-1!==a&&void 0!==t[a]&&(l.tr=t[a]),s[i]=l}h(s)}catch(e){alert("Failed to parse CSV: "+String(e))}finally{e.target.value=""}},r.readAsText(t)}}):"colors"===e?jsx(ColorsPanel,{projectColors:y,defaultColors:defaultProjectColors,colorsInputRef:O,onImportClick:()=>O.current?.click(),onChange:e=>{const t=e.target.files?.[0];if(!t)return;const r=new FileReader;r.onload=t=>{try{const e=JSON.parse(t.target?.result);f(e)}catch(e){alert("Failed to parse JSON: "+String(e))}finally{e.target.value=""}},r.readAsText(t)}}):jsxs(Fragment,"products"===e?{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Add product"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>v(!0),children:"Presets"}),jsx("button",{type:"button",className:"editor-button",onClick:s,disabled:0===r.length,children:"Clear"})]}),jsx("div",{style:{marginTop:12},children:r.length?jsx("ul",{style:{margin:0,paddingLeft:18},children:r.map((e,t)=>jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsx("span",{style:{flex:1},children:e?.productId?.trim()?e.productId:"(empty productId)"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>C(t),children:"Edit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>n(t),children:"Remove"})]},`${t}-${e?.productId??""}`))}):jsx("p",{style:{margin:0,opacity:.7},children:"No products yet."})})]}:"benefits"===e?{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e="benefit",t=new Set(M.map(([e])=>e));let r=`${e}_1`,i=1;for(;t.has(r);)i+=1,r=`${e}_${i}`;p(r,!0),w(r)},children:"Add benefit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>T(!0),children:"Presets"}),jsx("button",{type:"button",className:"editor-button",onClick:d,disabled:0===M.length,children:"Clear"})]}),jsx("div",{style:{marginTop:12},children:M.length?jsx("ul",{style:{margin:0,paddingLeft:18},children:M.map(([e,t],r)=>jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsxs("span",{style:{flex:1,wordBreak:"break-word"},children:[e,": ",String(t)]}),jsx("button",{type:"button",className:"editor-button",onClick:()=>w(e),children:"Edit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>g(e),children:"Remove"})]},`${r}-${e}`))}):jsx("p",{style:{margin:0,opacity:.7},children:"No benefits yet."})})]}:{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>I.current?.click(),children:"Import JSON"}),jsx("input",{ref:I,type:"file",accept:".json,application/json",style:{display:"none"},onChange:t=>{const r=t.target.files?.[0];if(!r)return;const i=new FileReader;i.onload=r=>{try{const t=JSON.parse(r.target?.result);"products"===e&&Array.isArray(t)?a(t):"benefits"!==e||"object"!=typeof t||Array.isArray(t)?alert("Imported JSON does not match the expected format."):c(t)}catch(e){alert("Failed to parse JSON: "+String(e))}finally{t.target.value=""}},i.readAsText(r)}})]}),jsxs("p",{style:{margin:"8px 0 0",opacity:.7,fontSize:12},children:["No mock UI yet for ",'"',e,'"'," — import via JSON."]})]})})]}),"products"===e&&null!==b?jsx(ProductEditModal,{index:b,product:r[b],onClose:()=>C(null),onSave:e=>{o(b,e),C(null)}}):null,"products"===e&&x?jsx(ProductPresetsModal,{current:r,onClose:()=>v(!1),onReplace:e=>a(e),onAppend:e=>a([...r??[],...e??[]])}):null,"benefits"===e&&null!==S?jsx(BenefitEditModal,{index:Math.max(0,M.findIndex(([e])=>e===S)),benefitKey:S,benefitValue:l?.[S]??"",onClose:()=>w(null),onSave:({key:e,value:t})=>{const r=e.trim();S!==r&&u(S,r),p(r,t),w(null)}}):null,"benefits"===e&&k?jsx(BenefitPresetsModal,{current:l,onClose:()=>T(!1),onReplace:e=>c(e),onMerge:e=>c({...l??{},...e??{}})}):null]})}const SOURCE_STYLE={default:{fontSize:10,padding:"1px 5px",borderRadius:3,background:"#3a3d4a",color:"#9ca3af",fontWeight:500,whiteSpace:"nowrap"},custom:{fontSize:10,padding:"1px 5px",borderRadius:3,background:"#14532d",color:"#86efac",fontWeight:500,whiteSpace:"nowrap"},merged:{fontSize:10,padding:"1px 5px",borderRadius:3,background:"#1e3a5f",color:"#93c5fd",fontWeight:500,whiteSpace:"nowrap"}};function SourceBadge({source:e}){return jsx("span",{style:SOURCE_STYLE[e],children:e})}function LocalizationPanel({localization:e,defaultLoc:t,csvInputRef:r,onImportClick:i,onChange:n}){const o=mergeLocalization(t,e),a=Array.from(new Set([...Object.keys(t),...Object.keys(e)])).sort(),s=Array.from(new Set(a.flatMap(r=>[...Object.keys(t[r]??{}),...Object.keys(e[r]??{})]))).sort(),l=e&&Object.keys(e).some(t=>Object.keys(e[t]??{}).length>0);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Import CSV"}),jsx("input",{ref:r,type:"file",accept:".csv,text/csv",style:{display:"none"},onChange:n}),jsx("span",{style:{fontSize:11,opacity:.6},children:"key, en, tr columns"}),jsx("span",{style:{marginLeft:"auto",fontSize:11,opacity:.5},children:l?"custom overrides active":"using defaults"})]}),jsxs("div",{style:{display:"flex",gap:8,margin:"8px 0 4px",fontSize:11},children:[jsx(SourceBadge,{source:"default"})," default only",jsx(SourceBadge,{source:"custom"})," custom override",jsx(SourceBadge,{source:"merged"})," both (custom wins)"]}),jsx("div",{style:{overflowX:"auto",marginTop:4},children:jsxs("table",{style:{borderCollapse:"collapse",fontSize:11,width:"100%",tableLayout:"fixed"},children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{style:{textAlign:"left",padding:"4px 6px",borderBottom:"1px solid #333",width:200,fontWeight:600},children:"key"}),a.map(e=>jsx("th",{style:{textAlign:"left",padding:"4px 6px",borderBottom:"1px solid #333",fontWeight:600},children:e},e))]})}),jsx("tbody",{children:s.map(r=>jsxs("tr",{style:{borderBottom:"1px solid #222"},children:[jsx("td",{style:{padding:"3px 6px",fontFamily:"monospace",wordBreak:"break-all",opacity:.8},children:r}),a.map(i=>{const n=void 0!==(t[i]??{})[r],a=void 0!==(e[i]??{})[r],s=(o[i]??{})[r]??"";let l="default";return n&&a?l="merged":a&&(l="custom"),jsx("td",{style:{padding:"3px 6px",verticalAlign:"top"},children:jsxs("div",{style:{display:"flex",gap:4,alignItems:"flex-start"},children:[jsx(SourceBadge,{source:l}),jsx("span",{style:{wordBreak:"break-word",opacity:.85},children:s})]})},i)})]},r))})]})})]})}function ColorsPanel({projectColors:e,defaultColors:t,colorsInputRef:r,onImportClick:i,onChange:n}){const o=e?mergeProjectColors(t,e):t,a=!!e;function s(e={},t={},r={}){return Array.from(new Set([...Object.keys(e),...Object.keys(t)])).sort().map(i=>{const n=i in(t??{});let o="default";return i in e&&n?o="merged":n&&(o="custom"),{key:i,value:r[i]??"",src:o}})}const l=s(t.STATIC_COLORS??{},e?.STATIC_COLORS??{},o.STATIC_COLORS??{}),c=Array.from(new Set([...Object.keys(t.THEME_COLORS??{}),...Object.keys(e?.THEME_COLORS??{})])).sort();function d({k:e,value:t,src:r}){return jsxs("tr",{style:{borderBottom:"1px solid #222"},children:[jsx("td",{style:{padding:"3px 8px",fontFamily:"monospace",fontSize:11,opacity:.8},children:e}),jsx("td",{style:{padding:"3px 8px"},children:jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[jsx("span",{style:{display:"inline-block",width:14,height:14,borderRadius:3,background:t,border:"1px solid #555",flexShrink:0}}),jsx("span",{style:{fontFamily:"monospace",fontSize:11},children:t})]})}),jsx("td",{style:{padding:"3px 8px"},children:jsx(SourceBadge,{source:r})})]})}function p({rows:e}){return jsxs("table",{style:{borderCollapse:"collapse",width:"100%",fontSize:11},children:[jsx("thead",{children:jsx("tr",{children:["token","value","source"].map(e=>jsx("th",{style:{textAlign:"left",padding:"3px 8px",borderBottom:"1px solid #333",fontWeight:600},children:e},e))})}),jsx("tbody",{children:e.map(e=>jsx(d,{k:e.key,value:e.value,src:e.src},e.key))})]})}return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Import JSON"}),jsx("input",{ref:r,type:"file",accept:".json,application/json",style:{display:"none"},onChange:n}),jsx("span",{style:{marginLeft:"auto",fontSize:11,opacity:.5},children:a?"custom overrides active":"using defaults"})]}),jsxs("div",{style:{display:"flex",gap:8,margin:"8px 0 4px",fontSize:11},children:[jsx(SourceBadge,{source:"default"})," default only",jsx(SourceBadge,{source:"custom"})," custom override",jsx(SourceBadge,{source:"merged"})," both (custom wins)"]}),jsx("div",{style:{fontWeight:600,fontSize:12,margin:"10px 0 4px"},children:"STATIC_COLORS"}),jsx(p,{rows:l}),c.map(r=>{const i=s(t.THEME_COLORS?.[r]??{},e?.THEME_COLORS?.[r]??{},o.THEME_COLORS?.[r]??{});return jsxs("div",{children:[jsxs("div",{style:{fontWeight:600,fontSize:12,margin:"10px 0 4px"},children:["THEME_COLORS / ",r]}),jsx(p,{rows:i})]},r)})]})}function InspectModal({onClose:e}){const[t,r]=useState("localizations"),{localization:i,projectColors:n,theme:o,defaultLanguage:a}=useRenderStore(e=>({localization:e.localization,projectColors:e.projectColors,theme:e.theme,defaultLanguage:e.defaultLanguage})),s=useMemo(()=>getLastParamsSnapshot(),[]);return jsxs(Modal,{onClose:e,ariaLabelledBy:"inspect-modal-title",className:"modal--large modal--scrollable",contentClassName:"inspect-modal__content",children:[jsxs("div",{className:"modal__header inspect-modal__header",children:[jsx("h3",{id:"inspect-modal-title",className:"modal__title",children:"Inspect"}),jsx("button",{type:"button",className:"editor-button",onClick:e,children:"Close"})]}),jsxs("div",{className:"inspect-modal__tabs",children:[jsx("button",{type:"button",className:"inspect-modal__tab"+("localizations"===t?" is-active":""),onClick:()=>r("localizations"),children:"Localizations"}),jsx("button",{type:"button",className:"inspect-modal__tab"+("params"===t?" is-active":""),onClick:()=>r("params"),children:"Params"}),jsx("button",{type:"button",className:"inspect-modal__tab"+("colors"===t?" is-active":""),onClick:()=>r("colors"),children:"Colors"})]}),jsxs("div",{className:"inspect-modal__body",children:["localizations"===t&&jsx(LocalizationsTab,{localication:i??{},language:a}),"params"===t&&jsx(ParamsTab,{localizationParams:s.localizationParams,nestedLocalizationParams:s.nestedLocalizationParams}),"colors"===t&&jsx(ColorsTab,{projectColors:n,theme:o})]})]})}function LocalizationsTab({localication:e,language:t}){const r=e[t]??{},i=defaultLocalization[t]??defaultLocalization.en??{},n=Array.from(new Set([...Object.keys(i),...Object.keys(r)])).sort();if(0===n.length)return jsxs("p",{className:"inspect-modal__empty",children:['No localization keys found for "',t,'".']});return jsxs("div",{className:"inspect-modal__table-wrap",children:[jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"8px"},children:jsx("button",{type:"button",className:"editor-button",onClick:()=>{let e="Key,Value,Source\n";n.forEach(t=>{const n=t in r,o=r[t],a=i[t],s=n&&o!==a&&void 0!==o,l=s?o:a??"",c=e=>`"${String(e).replace(/"/g,'""')}"`;e+=`${c(t)},${c(String(l))},${s?"custom":"fallback"}\n`}),downloadCSV(`localizations-${t}.csv`,e)},children:"Download CSV"})}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Key"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:n.map(e=>{const t=e in r,n=r[e],o=i[e],a=t&&n!==o&&void 0!==n,s=a?n:o??"";return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsx("td",{className:"inspect-modal__cell-value",children:s}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(a?" inspect-modal__badge--custom":" inspect-modal__badge--default"),children:a?"custom":jsxs(Fragment,{children:[jsx("span",{style:{color:"red"},children:"!"})," fallback"]})})})]},e)})})]})]})}function ParamsTab({localizationParams:e,nestedLocalizationParams:t}){const r=Object.entries(e),i=Object.entries(t);if(!(r.length>0||i.length>0))return jsx("p",{className:"inspect-modal__empty",children:"No params available. Params are populated inside a PaywallProvider."});return jsxs("div",{className:"inspect-modal__table-wrap",children:[jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"8px"},children:jsx("button",{type:"button",className:"editor-button",onClick:()=>{let e="Param,Value,Type\n";const t=e=>`"${String(e).replace(/"/g,'""')}"`;r.forEach(([r,i])=>{e+=`${t(r)},${t(formatValue(i))},Flat\n`}),i.forEach(([r,i])=>{e+=`${t(r)},${t(formatValue(i))},Nested\n`}),downloadCSV("params.csv",e)},children:"Download CSV"})}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Param"}),jsx("th",{children:"Value"})]})}),jsxs("tbody",{children:[r.map(([e,t])=>jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsx("td",{className:"inspect-modal__cell-value",children:formatValue(t)})]},e)),i.length>0&&jsxs(Fragment,{children:[jsx("tr",{className:"inspect-modal__separator-row",children:jsx("td",{colSpan:2,children:"Nested (per-product)"})}),i.map(([e,t])=>jsxs("tr",{children:[jsxs("td",{className:"inspect-modal__cell-key inspect-modal__cell-key--nested",children:["- ",e]}),jsx("td",{className:"inspect-modal__cell-value",children:formatValue(t)})]},`nested-${e}`))]})]})]})]})}function ColorsTab({projectColors:e,theme:t}){const r=e?.STATIC_COLORS??{},i=e?.THEME_COLORS?.[t]??{},n=defaultProjectColors.STATIC_COLORS??{},o=defaultProjectColors.THEME_COLORS?.[t]??{},a=Object.entries(r),s=Object.entries(i);if(0===a.length&&0===s.length)return jsx("p",{className:"inspect-modal__empty",children:"No project colors defined."});return jsxs("div",{className:"inspect-modal__table-wrap",children:[jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"8px"},children:jsx("button",{type:"button",className:"editor-button",onClick:()=>{let e="Type,Token,Value,Source\n";const r=e=>`"${String(e).replace(/"/g,'""')}"`;a.forEach(([t,i])=>{const o=n[t]===i;e+=`Static,${r(t)},${r(String(i))},${o?"fallback":"custom"}\n`}),s.forEach(([i,n])=>{const a=o[i]===n;e+=`Theme (${t}),${r(i)},${r(String(n))},${a?"fallback":"custom"}\n`}),downloadCSV("colors.csv",e)},children:"Download CSV"})}),a.length>0&&jsxs(Fragment,{children:[jsx("h4",{className:"inspect-modal__section-title",children:"Static Colors"}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Token"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:a.map(([e,t])=>{const r=n[e]===t;return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsxs("td",{className:"inspect-modal__cell-value",children:[jsx("span",{className:"inspect-modal__color-swatch",style:{backgroundColor:t}}),t]}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(r?" inspect-modal__badge--default":" inspect-modal__badge--custom"),children:r?jsxs(Fragment,{children:[jsx("span",{style:{color:"red"},children:"!"})," fallback"]}):"custom"})})]},e)})})]})]}),s.length>0&&jsxs(Fragment,{children:[jsxs("h4",{className:"inspect-modal__section-title",children:["Theme Colors (",t,")"]}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Token"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:s.map(([e,t])=>{const r=o[e]===t;return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsxs("td",{className:"inspect-modal__cell-value",children:[jsx("span",{className:"inspect-modal__color-swatch",style:{backgroundColor:t}}),t]}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(r?" inspect-modal__badge--default":" inspect-modal__badge--custom"),children:r?jsxs(Fragment,{children:[jsx("span",{style:{color:"red"},children:"!"})," fallback"]}):"custom"})})]},e)})})]})]})]})}function formatValue(e){return void 0===e?"—":null===e?"null":"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)}function downloadCSV(e,t){const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),n=document.createElement("a");n.setAttribute("href",i),n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function escapeXmlAttr(e,t){let r=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return r='"'===t?r.replace(/"/g,"&quot;"):r.replace(/'/g,"&apos;"),r}function attrValueToString(e){return null==e?"":"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)}function nodeToXmlInner(e,t){const r=" ".repeat(t);if(null==e)return"";if("string"==typeof e)return`${r}${escapeXmlAttr(e,'"').replace(/"/g,'"')}`;if(Array.isArray(e))return e.map(e=>nodeToXmlInner(e,t)).join("\n");if("object"!=typeof e)return"";const i=e,n=i.type;if(!n)return"";const o=[],a=(e,t)=>{const r=attrValueToString(t),i=r.includes('"')&&!r.includes("'")?"'":'"',n=escapeXmlAttr(r,i);o.push(`${e}=${i}${n}${i}`)};if(i.key&&a("key",i.key),i.sourceType&&a("sourceType",i.sourceType),i.isMain&&a("isMain","true"),i.attributes&&"object"==typeof i.attributes)for(const[e,t]of Object.entries(i.attributes))a(e,t);const s=o.length>0?" "+o.join(" "):"",l=i.children;if(null==l||Array.isArray(l)&&0===l.length)return`${r}<${n}${s} />`;return`${r}<${n}${s}>\n${nodeToXmlInner(l,t+1)}\n${r}</${n}>`}function nodeToXml(e){return null==e?"":nodeToXmlInner(e,0)}function unescapeXml(e){return e.replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")}function parseAttrValue(e){const t=unescapeXml(e);if("true"===t)return!0;if("false"===t)return!1;if(""!==t&&!Number.isNaN(Number(t)))return Number(t);if(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]"))try{return JSON.parse(t)}catch{}return t}function domElementToNode(e){const t={type:e.tagName,children:null},r=new Set(["key","sourceType","isMain"]),i={};for(const n of Array.from(e.attributes))r.has(n.name)?"key"===n.name?t.key=n.value:"sourceType"===n.name?t.sourceType=n.value:"isMain"===n.name&&(t.isMain="true"===n.value):i[n.name]=parseAttrValue(n.value);Object.keys(i).length>0&&(t.attributes=i);const n=[];for(const t of Array.from(e.childNodes))if(1===t.nodeType)n.push(domElementToNode(t));else if(3===t.nodeType){const e=(t.textContent??"").trim();e&&n.push(e)}return 0===n.length?t.children=null:1===n.length?t.children=n[0]:t.children=n,t}function xmlToNode(e){if(!e.trim())return null;const t=(new DOMParser).parseFromString(e,"text/xml"),r=t.querySelector("parsererror");if(r)throw new Error(r.textContent??"XML parse error");return domElementToNode(t.documentElement)}const onboardPromptScheme='You are a React Native UI builder assistant. Your goal is to generate a valid **onboard** screen node tree in XML format.\n\n## Available Components & Their Props\n\nEach component is listed as `ComponentName: {attr: TypeScriptType, styles: {prop: TypeScriptType}}`. Use ONLY these component names and attribute names. Do NOT invent new components or attributes.\n\nUnion enum values must match exactly (e.g. `"expanding_dot"` not `expandingDot`). Color values: prefer `THEME_COLORS.KEY` or `STATIC_COLORS.KEY` for theme-aware colors. Literal values like `"red"` or `"#000fff"` are also valid when a specific color is intended. Localization string values should use a localization key from the **Available Localization Keys** section. Do NOT invent new keys.\n\n```\nBIcon:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,iconType:string,size:number,strokeWidth:number,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nBackgroundImage:{scrollable:boolean,testID:string,src:string,resizeMode:"cover"|"contain"|"stretch"|"center",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nButton:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,color:string,fontSize:string,fontWeight:"normal"|"bold"|"100"|"200"|"300"|"400"|"500"|"600"|"700"|"800"|"900"}}\nCarousel:{scrollable:boolean,testID:string,loop:boolean,dragFree:boolean,align:"start"|"center"|"end",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselButtons:{scrollable:boolean,testID:string,buttonType:"previous_button"|"next_button"|"skip_button",skipNumber:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselDots:{scrollable:boolean,testID:string,dotType:"expanding_dot"|"normal_dot"|"scaling_dot"|"sliding_border"|"sliding_dot"|"liquid_like",dot_thickness:string,inactive_dot_opacity:number,inactive_dot_color:string,active_dot_color:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselItem:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselProvider:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCheckbox:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,checked:boolean,label:string,checkedColor:string,syncTermsAccepted:boolean,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:number,width:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,checkIconSize:number,checkIconStrokeWidth:number}}\nCountDown:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,count:number,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:obj,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:obj,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormCheckbox:{checked:boolean,label:string,checkedColor:string,syncTermsAccepted:boolean,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,name:string,validation:[string],styles:{borderRadius:string,checkIconSize:number,checkIconStrokeWidth:number,color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormErrorText:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormProvider:{scrollable:boolean,testID:string,defaultValues:string,validationErrorMessageKey:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormSubmitButton:{labelKey:string,events:[obj],testID:string,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,disableIfUnvalidated:boolean,validationRequired:boolean,styles:{color:string,backgroundColor:string,height:string,borderRadius:string,fontSize:string,fontWeight:string,fontFamily:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nImage:{scrollable:boolean,testID:string,src:string,fetchStrategy:"highIfItsAppLaunch"|"normal"|"lazy"|"none",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,resizeMode:"cover"|"contain"|"stretch"|"center"}}\nMain:{scrollable:boolean,testID:string,useSafeAreaView:boolean,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nNavigationBarColor:{translucent:boolean,styles:{backgroundColor:string}}\nOnboard:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardButton:{labelKey:string,events:[obj],testID:"onboardSkip"|"onboardNext",adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,animation:"simple-animation"|"line-animation"|"blur"|"blur-animation"|"blur-line-animation",animation_color:string,styles:{color:string,backgroundColor:string,height:string,borderRadius:string,fontSize:string,fontWeight:string,fontFamily:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardButtons:{scrollable:boolean,testID:string,buttonType:"previous_button"|"next_button"|"skip_button",skipNumber:number,buttons_direction:"row"|"column",forIndex:number,seperatorColor:string,condition:"carousel-index",conditionVariable:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardDot:{scrollable:boolean,testID:string,dotType:"expanding_dot"|"normal_dot"|"scaling_dot"|"sliding_border"|"sliding_dot"|"liquid_like",dot_thickness:string,inactive_dot_opacity:number,inactive_dot_color:string,active_dot_color:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardFooter:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,textLocalizationKey:string,linkedWordFirstLocalizationKey:string,linkedWordFirstColor:string,linkedWordFirstPage:string,linkedWordSecondLocalizationKey:string,linkedWordSecondColor:string,linkedWordSecondPage:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardImage:{src:string,fetchStrategy:"highIfItsAppLaunch"|"normal"|"lazy"|"none",scrollable:boolean,testID:string,video_url:string,lottie:string,styles:{resizeMode:"cover"|"contain"|"stretch"|"center",flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardItem:{scrollable:boolean,testID:string,display:"flex"|"block",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardProvider:{scrollable:boolean,testID:string,theme:"light"|"dark"|"all",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardSubtitle:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardTitle:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallBackground:{src:string,resizeMode:"cover"|"contain"|"stretch"|"center",scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallCloseButton:{iconType:string,size:number,strokeWidth:number,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallFooter:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,textLocalizationKey:string,linkedWordFirstLocalizationKey:string,linkedWordFirstColor:string,linkedWordFirstPage:string,linkedWordSecondLocalizationKey:string,linkedWordSecondColor:string,linkedWordSecondPage:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallOptions:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallProvider:{scrollable:boolean,testID:string,delay:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallSubscribeButton:{scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontWeight:"normal"|"bold"|"100"|"200"|"300"|"400"|"500"|"600"|"700"|"800"|"900",flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPriceTag:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,showOriginalPricePossible:boolean,hideIfItsNotDiscount:boolean,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,textDecorationLine:"none"|"underline"|"line-through"}}\nPricing:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPromo:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nRadioButton:{scrollable:boolean,testID:string,selected:boolean,color:string,size:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nSeparator:{testID:string,styles:{backgroundColor:string,width:string,height:string,marginHorizontal:string,marginVertical:string,marginTop:string,marginBottom:string}}\nStatusBarColor:{translucent:boolean,styles:{backgroundColor:string}}\nSystemButton:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,labelKey:string,events:[obj],styles:{color:string,fontSize:number,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:number,width:string,minWidth:string,maxWidth:string,height:number,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nText:{scrollable:boolean,testID:string,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string}}\nView:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nWebView:{scrollable:boolean,testID:string,iosUrl:string,androidUrl:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,loaderColor:string,loaderSize:number,loaderBorderWidth:number,loaderAnimationDuration:number}}\n```\n\n## Available Icons\n\nUse one of these values for `iconType` attributes:\n\n```\n\n```\n\n## XML Rules\n\n- Root element must always be `<Main isMain="true">`.\n- Text content (children) goes as element body text, not as an attribute.\n- `styles` value must be a JSON object string (escape inner quotes): `styles="{&quot;flex&quot;:1,&quot;color&quot;:&quot;THEME_COLORS.TEXT&quot;}"`.\n- `events` value must be a JSON array string.\n- Omit any attribute that has no value — no nulls, no empty strings.\n- Use a short unique slug for `key` when the component needs one.\n- Only use components appropriate for a onboard screen.\n\n## Component & Layout Constraints\n\n- **Mobile Limits**: When applying absolute sizes (width, height, testing dimensions), do NOT exceed typical mobile screen dimensions (e.g., max width ~360-400, max height ~800).\n- **testID**: Every component MUST have a unique `testID` attribute, **EXCEPT** `OnboardButton` (do not provide `testID` for `OnboardButton` as it handles it internally).\n- **PaywallOptions**: When using `PaywallOptions`, generate ONLY ONE layout template inside it. The app repeats this template for each product dynamically.\n- **PriceTag Placement**: If `PriceTag` is placed **inside** `PaywallOptions`, it displays the price of that specific option in the loop. If placed **outside** of `PaywallOptions`, it displays the price of the user\'s currently *selected* option.\n\n## Embla Carousel Constraints\n\n> **IMPORTANT – Web uses Embla carousel under the hood.** For `OnboardProvider` and `OnboardItem`, do **NOT** set any of the following outer layout styles via `styles`, because Embla manages them internally through its own CSS classes (`embla`, `embla__viewport`, `embla__slide`):\n>\n> `flex`, `flexGrow`, `flexShrink`, `margin`, `marginTop`, `marginBottom`, `marginLeft`, `marginRight`, `marginHorizontal`, `marginVertical`, `height`, `minHeight`, `maxHeight`, `width`, `minWidth`, `maxWidth`, `position`, `top`, `bottom`, `left`, `right`, `zIndex`, `display`\n>\n> Only **visual** styles are safe to set on `OnboardProvider` and `OnboardItem`: `padding`, `paddingTop`, `paddingBottom`, `paddingLeft`, `paddingRight`, `paddingHorizontal`, `paddingVertical`, `backgroundColor`, `borderRadius`, `gap`, `alignItems`, `justifyContent`, `flexDirection`, `flexWrap`\n\n## Available Localization Keys\n\nUse ONLY the keys listed below for localization attributes (`labelKey`, `textLocalizationKey`, etc.). Do NOT invent new keys or use keys not in this list.\n\n```\nbase.builder.paywall.period.monthly\nbase.builder.paywall.period.annual\nbase.builder.paywall.period.weekly\nbase.builder.paywall.period.daily\nbase.builder.paywall.period.monthlyPromo\nbase.builder.paywall.period.annualPromo\nbase.builder.paywall.pricing.default.text\nbase.builder.paywall.pricing.freeTrial.text\nbase.builder.paywall.pricing.regular.text\nbase.builder.paywall.promo.default.text\nbase.builder.paywall.promo.freeTrial.text\nbase.builder.paywall.promo.regular.text\nbase.builder.paywall.button.subscribe\nbase.builder.paywall.button.subscribe-free\nbase.onboard.title.one-page\nbase.onboard.title.two-page\nbase.onboard.title.three-page\nbase.onboard.title.four-page\nbase.onboard.title.five-page\nbase.onboard.title.six-page\nbase.onboard.title.one-page2\nbase.onboard.title.two-page2\nbase.onboard.title.three-page2\nbase.onboard.title.four-page2\nbase.onboard.subtitle.one-page\nbase.onboard.subtitle.two-page\nbase.onboard.subtitle.three-page\nbase.onboard.subtitle.four-page\nbase.onboard.subtitle.five-page\nbase.onboard.subtitle.six-page\nbase.onboard.subtitle.one-page2\nbase.onboard.subtitle.two-page2\nbase.onboard.subtitle.three-page2\nbase.onboard.subtitle.four-page2\nbase.onboard.next.one-page\nbase.onboard.next.two-page\nbase.onboard.next.three-page\nbase.onboard.next.five-page\nbase.onboard.skip.one-page\nbase.onboard.skip.two-page\nbase.onboard.skip.three-page\nbase.onboard.skip.five-page\nbase.onboard.allow.four-page\nbase.onboard.footer.description\nbase.onboard.btnPrivacy\nbase.onboard.btnTerms\nbase.builder.paywall.footer.description\nbase.builder.paywall.btnPrivacy\nbase.builder.paywall.btnTerms\nview.terms.header.title\nview.terms.accept.button\nview.terms.checkbox.label\nview.terms.error.must_accept\nform.error.validation_required\n```\n\n## Default Colors\n\nReference color tokens already defined in the project. Prefer these over hard-coded hex values.\n\n```\n STATIC_COLORS.BLACK: "#000"\n STATIC_COLORS.WHITE: "#FFFFFF"\n STATIC_COLORS.TRANSPARENT: "#ffffff00"\n STATIC_COLORS.ONBOARD_DOT_INACTIVE: "#E4E5E7"\n STATIC_COLORS.ONBOARD_DOT_ACTIVE: "#007AFF"\n STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND: "#0066FF"\n STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_TEXT: "#FFFFFF"\n STATIC_COLORS.ONBOARD_LINK_COLOR: "#1778F2"\n STATIC_COLORS.ONBOARD_SEPARATOR_COLOR: "#44454D"\n STATIC_COLORS.RADIO_BUTTON_COLOR: "#A6A6A6"\n THEME_COLORS.TEXT (light): "#161827"\n THEME_COLORS.BACKGROUND (light): "#F4F5FF"\n THEME_COLORS.ICON (light): "#0450E2"\n THEME_COLORS.LINE (light): "#E9EBF9"\n THEME_COLORS.ONBOARD_TITLE (light): "#161827"\n THEME_COLORS.ONBOARD_SUBTITLE (light): "#44454D"\n THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT (light): "#81838F"\n THEME_COLORS.ONBOARD_FOOTER_TEXT (light): "#81838F"\n THEME_COLORS.CHECKBOX_ACTIVE_COLOR (light): "#0066FF"\n THEME_COLORS.FORM_ERROR_TEXT_COLOR (light): "#B91C1C"\n THEME_COLORS.TEXT (dark): "#E9EBF9"\n THEME_COLORS.BACKGROUND (dark): "#080A17"\n THEME_COLORS.ICON (dark): "#0450E2"\n THEME_COLORS.LINE (dark): "#161827"\n THEME_COLORS.ONBOARD_TITLE (dark): "#FDFDFD"\n THEME_COLORS.ONBOARD_SUBTITLE (dark): "#C7C7C7"\n THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT (dark): "#A9AAAC"\n THEME_COLORS.ONBOARD_FOOTER_TEXT (dark): "#A2A4B1"\n THEME_COLORS.CHECKBOX_ACTIVE_COLOR (dark): "#0066FF"\n THEME_COLORS.FORM_ERROR_TEXT_COLOR (dark): "#B91C1C"\n```\n\n## Default Localization (en)\n\n```\n{\n "base.builder.paywall.period.monthly": "per month",\n "base.builder.paywall.period.annual": "per year",\n "base.builder.paywall.period.weekly": "per week",\n "base.builder.paywall.period.daily": "per day",\n "base.builder.paywall.period.monthlyPromo": "per month",\n "base.builder.paywall.period.annualPromo": "per year",\n "base.builder.paywall.pricing.default.text": "@promoPrice for the first @promoPeriod, then @localizedPrice @localizedPeriod",\n "base.builder.paywall.pricing.freeTrial.text": "@trialPeriod-@trialPeriodUnit free trial, then @localizedPrice @localizedPeriod",\n "base.builder.paywall.pricing.regular.text": "@localizedPrice @localizedPeriod",\n "base.builder.paywall.promo.default.text": "Save @discountPercentage%!",\n "base.builder.paywall.promo.freeTrial.text": "@trialPeriod-@trialPeriodUnit free trial",\n "base.builder.paywall.promo.regular.text": "@localizedPrice @localizedPeriod",\n "base.builder.paywall.button.subscribe": "Subscribe",\n "base.builder.paywall.button.subscribe-free": "Subscribe with Free Trial",\n "base.onboard.title.one-page": "Secure your connection",\n "base.onboard.title.two-page": "Access content worldwide",\n "base.onboard.title.three-page": "Fast and reliable",\n "base.onboard.title.four-page": "Stay notified and safe",\n "base.onboard.title.five-page": "Enhance your experience",\n "base.onboard.title.six-page": "You are all set!",\n "base.onboard.title.one-page2": "Secure your connection",\n "base.onboard.title.two-page2": "Access content worldwide",\n "base.onboard.title.three-page2": "Fast and reliable",\n "base.onboard.title.four-page2": "Stay notified and safe",\n "base.onboard.subtitle.one-page": "Encrypt your traffic and protect your privacy on public Wi\\u2011Fi.",\n "base.onboard.subtitle.two-page": "Connect to high\\u2011speed servers in many countries with one tap.",\n "base.onboard.subtitle.three-page": "Auto\\u2011connect to the best server for speed and stability.",\n "base.onboard.subtitle.four-page": "Enable notifications for connection status and security tips.",\n "base.onboard.subtitle.five-page": "Get the most out of our app with premium features.",\n "base.onboard.subtitle.six-page": "Enjoy secure and fast browsing.",\n "base.onboard.subtitle.one-page2": "Encrypt your traffic and protect your privacy on public Wi\\u2011Fi.",\n "base.onboard.subtitle.two-page2": "Connect to high\\u2011speed servers in many countries with one tap.",\n "base.onboard.subtitle.three-page2": "Auto\\u2011connect to the best server for speed and stability.",\n "base.onboard.subtitle.four-page2": "Enable notifications for connection status and security tips.",\n "base.onboard.next.one-page": "Next",\n "base.onboard.next.two-page": "Next",\n "base.onboard.next.three-page": "Next",\n "base.onboard.next.five-page": "Next",\n "base.onboard.skip.one-page": "Skip",\n "base.onboard.skip.two-page": "Skip",\n "base.onboard.skip.three-page": "Skip",\n "base.onboard.skip.five-page": "Skip",\n "base.onboard.allow.four-page": "Allow",\n "base.onboard.footer.description": "By clicking continue, you will be accepting the Terms of service and privacy policy",\n "base.onboard.btnPrivacy": "Privacy Policy",\n "base.onboard.btnTerms": "Terms of Service",\n "base.builder.paywall.footer.description": "By clicking continue, you will be accepting the Terms of service and privacy policy",\n "base.builder.paywall.btnPrivacy": "Privacy Policy",\n "base.builder.paywall.btnTerms": "Terms of Service",\n "view.terms.header.title": "Terms & Privacy",\n "view.terms.accept.button": "Accept",\n "view.terms.checkbox.label": "I accept the terms and privacy policy",\n "view.terms.error.must_accept": "You must accept to continue",\n "form.error.validation_required": "Please complete the required fields."\n}\n```\n\n## Reference Example\n\nA complete, valid onboard XML:\n\n```xml\n<Main key="c92tR8J5wbTb3fav" isMain="true" useSafeAreaView="true" description="Ekranın ana kapsayıcısı. (#1)" title="Main 1" styles=\'{"paddingBottom":16}\' testID="Main-test-id-1">\n <StatusBarColor title="Status Bar Color" description="Status bar background color." styles=\'{"backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="StatusBarColor-test-id-1" />\n <NavigationBarColor title="Navigation Bar Color" description="Navigation bar background color." styles=\'{"backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="NavigationBarColor-test-id-1" />\n <OnboardProvider theme="dark" description="Onboarding sağlayıcısı. (#1)" title="OnboardProvider 1" testID="OnboardProvider-test-id-1">\n <Onboard description="Onboarding ana yapısı. (#1)" title="Onboard 1" styles=\'{"flex":1}\' testID="Onboard-test-id-1">\n <OnboardItem key="app_onboard-page1" description="Onboarding sayfası. (#1)" title="OnboardItem 1" testID="OnboardItem-test-id-1">\n <OnboardTitle description="Sayfa başlığı. (#1)" title="OnboardTitle 1" styles=\'{"color":"THEME_COLORS.ONBOARD_TITLE","textAlign":"center","marginTop":40}\' testID="OnboardTitle-test-id-1">\n base.onboard.title.one-page\n </OnboardTitle>\n <OnboardImage src="https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png" resizeMode="contain" styles=\'{"height":350}\' testID="OnboardImage-test-id-1" fetchStrategy="highIfItsAppLaunch" />\n <OnboardSubtitle description="Sayfa alt başlığı. (#1)" title="OnboardSubtitle 1" styles=\'{"color":"THEME_COLORS.ONBOARD_SUBTITLE","fontSize":16,"textAlign":"center"}\' testID="OnboardSubtitle-test-id-1">\n base.onboard.subtitle.one-page\n </OnboardSubtitle>\n </OnboardItem>\n <OnboardItem key="app_onboard-page2" description="Onboarding sayfası. (#2)" title="OnboardItem 2" testID="OnboardItem-test-id-2">\n <OnboardTitle description="Sayfa başlığı. (#2)" title="OnboardTitle 2" styles=\'{"color":"THEME_COLORS.ONBOARD_TITLE","textAlign":"center","marginTop":40}\' testID="OnboardTitle-test-id-2">\n base.onboard.title.two-page\n </OnboardTitle>\n <OnboardImage src="https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png" resizeMode="contain" styles=\'{"height":350}\' testID="OnboardImage-test-id-2" fetchStrategy="normal" />\n <OnboardSubtitle description="Sayfa alt başlığı. (#2)" title="OnboardSubtitle 2" styles=\'{"color":"THEME_COLORS.ONBOARD_SUBTITLE","fontSize":16,"textAlign":"center"}\' testID="OnboardSubtitle-test-id-2">\n base.onboard.subtitle.two-page\n </OnboardSubtitle>\n </OnboardItem>\n <OnboardItem key="app_onboard-page3" description="Onboarding sayfası. (#3)" title="OnboardItem 3" testID="OnboardItem-test-id-3">\n <OnboardTitle description="Sayfa başlığı. (#3)" title="OnboardTitle 3" styles=\'{"color":"THEME_COLORS.ONBOARD_TITLE","textAlign":"center","marginTop":40}\' testID="OnboardTitle-test-id-3">\n base.onboard.title.three-page\n </OnboardTitle>\n <OnboardImage src="https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png" resizeMode="contain" styles=\'{"height":350}\' testID="OnboardImage-test-id-3" fetchStrategy="normal" />\n <OnboardSubtitle description="Sayfa alt başlığı. (#3)" title="OnboardSubtitle 3" styles=\'{"color":"THEME_COLORS.ONBOARD_SUBTITLE","fontSize":16,"textAlign":"center"}\' testID="OnboardSubtitle-test-id-3">\n base.onboard.subtitle.three-page\n </OnboardSubtitle>\n </OnboardItem>\n <OnboardItem key="app_onboard-page4" description="Onboarding sayfası. (#4)" title="OnboardItem 4" testID="OnboardItem-test-id-4">\n <OnboardTitle description="Sayfa başlığı. (#4)" title="OnboardTitle 4" styles=\'{"color":"THEME_COLORS.ONBOARD_TITLE","textAlign":"center","marginTop":40}\' testID="OnboardTitle-test-id-4">\n base.onboard.title.four-page\n </OnboardTitle>\n <OnboardImage src="https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png" resizeMode="contain" styles=\'{"height":350}\' testID="OnboardImage-test-id-4" fetchStrategy="normal" />\n <OnboardSubtitle description="Sayfa alt başlığı. (#4)" title="OnboardSubtitle 4" styles=\'{"color":"THEME_COLORS.ONBOARD_SUBTITLE","fontSize":16,"textAlign":"center"}\' testID="OnboardSubtitle-test-id-4">\n base.onboard.subtitle.four-page\n </OnboardSubtitle>\n </OnboardItem>\n </Onboard>\n <OnboardDot dotType="expanding_dot" dot_thickness="20" inactive_dot_opacity="0.3" inactive_dot_color="STATIC_COLORS.ONBOARD_DOT_INACTIVE" active_dot_color="STATIC_COLORS.ONBOARD_DOT_ACTIVE" styles=\'{"paddingVertical":12}\' testID="OnboardDot-test-id-1" />\n <Separator title="Separator" description="Horizontal separator line" styles=\'{"width":"100%","height":2,"backgroundColor":"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}\' testID="Separator-test-id-1" />\n <OnboardButtons buttons_direction="row" condition="carousel-index" conditionVariable="0" description="Sayfa buton grubu. (#1)" title="OnboardButtons 1" styles=\'{"height":40,"marginVertical":12,"flexShrink":0}\' testID="OnboardButtons-test-id-1">\n <OnboardButton labelKey="base.onboard.skip.one-page" events=\'[{"type":"Navigate","navigate_to":null,"targetIndex":3}]\' styles=\'{"flex":1,"color":"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT","backgroundColor":"STATIC_COLORS.TRANSPARENT"}\' testID="onboardNext" />\n <OnboardButton labelKey="base.onboard.next.one-page" events=\'[{"type":"Navigate","navigate_to":null,"targetIndex":1}]\' styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","backgroundColor":"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"}\' testID="onboardNext" />\n </OnboardButtons>\n <OnboardButtons buttons_direction="row" condition="carousel-index" conditionVariable="1" description="Sayfa buton grubu. (#2)" title="OnboardButtons 2" styles=\'{"height":40,"marginVertical":12,"flexShrink":0}\' testID="OnboardButtons-test-id-2">\n <OnboardButton labelKey="base.onboard.skip.two-page" events=\'[{"type":"Permission","permission":"att"},{"type":"Navigate","navigate_to":null,"targetIndex":3}]\' styles=\'{"flex":1,"color":"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT","backgroundColor":"STATIC_COLORS.TRANSPARENT"}\' testID="onboardNext" />\n <OnboardButton labelKey="base.onboard.next.two-page" events=\'[{"type":"Permission","permission":"att"},{"type":"Navigate","navigate_to":null,"targetIndex":2}]\' styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","backgroundColor":"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"}\' testID="onboardNext" />\n </OnboardButtons>\n <OnboardButtons buttons_direction="row" condition="carousel-index" conditionVariable="2" description="Sayfa buton grubu. (#3)" title="OnboardButtons 3" styles=\'{"height":40,"marginVertical":12,"flexShrink":0}\' testID="OnboardButtons-test-id-3">\n <OnboardButton labelKey="base.onboard.skip.three-page" events=\'[{"type":"Navigate","navigate_to":null,"targetIndex":3}]\' styles=\'{"flex":1,"color":"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT","backgroundColor":"STATIC_COLORS.TRANSPARENT"}\' testID="onboardNext" />\n <OnboardButton labelKey="base.onboard.next.three-page" events=\'[{"type":"Permission","permission":"rating"},{"type":"Navigate","navigate_to":null,"targetIndex":3}]\' styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","backgroundColor":"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"}\' testID="onboardNext" />\n </OnboardButtons>\n <OnboardButtons buttons_direction="row" condition="carousel-index" conditionVariable="3" description="Sayfa buton grubu. (#4)" title="OnboardButtons 4" styles=\'{"height":40,"marginVertical":12,"flexShrink":0}\' testID="OnboardButtons-test-id-4">\n <OnboardButton labelKey="base.onboard.allow.four-page" events=\'[{"type":"Permission","permission":"notification"},{"type":"Navigate","navigate_to":"home"}]\' styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","backgroundColor":"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"}\' testID="onboardNext" />\n </OnboardButtons>\n <View title="Onboard Footer Wrap" description="Wrapper for OnboardFooter component" styles=\'{"marginHorizontal":25,"flexShrink":0}\' testID="View-test-id-1">\n <OnboardFooter textLocalizationKey="base.onboard.footer.description" linkedWordFirstLocalizationKey="base.onboard.btnPrivacy" linkedWordFirstColor="STATIC_COLORS.ONBOARD_LINK_COLOR" linkedWordFirstPage="privacy" linkedWordSecondLocalizationKey="base.onboard.btnTerms" linkedWordSecondColor="STATIC_COLORS.ONBOARD_LINK_COLOR" linkedWordSecondPage="terms" styles=\'{"gap":8,"color":"THEME_COLORS.ONBOARD_FOOTER_TEXT"}\' testID="OnboardFooter-test-id-1" />\n </View>\n </OnboardProvider>\n</Main>\n```\n\n## Task\n\nGenerate a node tree XML for the user\'s request below. Output ONLY raw XML — no markdown fences, no explanation.\n',paywallPromptScheme='You are a React Native UI builder assistant. Your goal is to generate a valid **paywall** screen node tree in XML format.\n\n## Available Components & Their Props\n\nEach component is listed as `ComponentName: {attr: TypeScriptType, styles: {prop: TypeScriptType}}`. Use ONLY these component names and attribute names. Do NOT invent new components or attributes.\n\nUnion enum values must match exactly (e.g. `"expanding_dot"` not `expandingDot`). Color values: prefer `THEME_COLORS.KEY` or `STATIC_COLORS.KEY` for theme-aware colors. Literal values like `"red"` or `"#000fff"` are also valid when a specific color is intended. Localization string values should use a localization key from the **Available Localization Keys** section. Do NOT invent new keys.\n\n```\nBIcon:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,iconType:string,size:number,strokeWidth:number,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nBackgroundImage:{scrollable:boolean,testID:string,src:string,resizeMode:"cover"|"contain"|"stretch"|"center",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nButton:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,color:string,fontSize:string,fontWeight:"normal"|"bold"|"100"|"200"|"300"|"400"|"500"|"600"|"700"|"800"|"900"}}\nCarousel:{scrollable:boolean,testID:string,loop:boolean,dragFree:boolean,align:"start"|"center"|"end",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselButtons:{scrollable:boolean,testID:string,buttonType:"previous_button"|"next_button"|"skip_button",skipNumber:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselDots:{scrollable:boolean,testID:string,dotType:"expanding_dot"|"normal_dot"|"scaling_dot"|"sliding_border"|"sliding_dot"|"liquid_like",dot_thickness:string,inactive_dot_opacity:number,inactive_dot_color:string,active_dot_color:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselItem:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselProvider:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCheckbox:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,checked:boolean,label:string,checkedColor:string,syncTermsAccepted:boolean,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:number,width:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,checkIconSize:number,checkIconStrokeWidth:number}}\nCountDown:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,count:number,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:obj,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:obj,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormCheckbox:{checked:boolean,label:string,checkedColor:string,syncTermsAccepted:boolean,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,name:string,validation:[string],styles:{borderRadius:string,checkIconSize:number,checkIconStrokeWidth:number,color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormErrorText:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormProvider:{scrollable:boolean,testID:string,defaultValues:string,validationErrorMessageKey:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormSubmitButton:{labelKey:string,events:[obj],testID:string,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,disableIfUnvalidated:boolean,validationRequired:boolean,styles:{color:string,backgroundColor:string,height:string,borderRadius:string,fontSize:string,fontWeight:string,fontFamily:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nImage:{scrollable:boolean,testID:string,src:string,fetchStrategy:"highIfItsAppLaunch"|"normal"|"lazy"|"none",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,resizeMode:"cover"|"contain"|"stretch"|"center"}}\nMain:{scrollable:boolean,testID:string,useSafeAreaView:boolean,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nNavigationBarColor:{translucent:boolean,styles:{backgroundColor:string}}\nOnboard:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardButton:{labelKey:string,events:[obj],testID:"onboardSkip"|"onboardNext",adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,animation:"simple-animation"|"line-animation"|"blur"|"blur-animation"|"blur-line-animation",animation_color:string,styles:{color:string,backgroundColor:string,height:string,borderRadius:string,fontSize:string,fontWeight:string,fontFamily:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardButtons:{scrollable:boolean,testID:string,buttonType:"previous_button"|"next_button"|"skip_button",skipNumber:number,buttons_direction:"row"|"column",forIndex:number,seperatorColor:string,condition:"carousel-index",conditionVariable:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardDot:{scrollable:boolean,testID:string,dotType:"expanding_dot"|"normal_dot"|"scaling_dot"|"sliding_border"|"sliding_dot"|"liquid_like",dot_thickness:string,inactive_dot_opacity:number,inactive_dot_color:string,active_dot_color:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardFooter:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,textLocalizationKey:string,linkedWordFirstLocalizationKey:string,linkedWordFirstColor:string,linkedWordFirstPage:string,linkedWordSecondLocalizationKey:string,linkedWordSecondColor:string,linkedWordSecondPage:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardImage:{src:string,fetchStrategy:"highIfItsAppLaunch"|"normal"|"lazy"|"none",scrollable:boolean,testID:string,video_url:string,lottie:string,styles:{resizeMode:"cover"|"contain"|"stretch"|"center",flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardItem:{scrollable:boolean,testID:string,display:"flex"|"block",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardProvider:{scrollable:boolean,testID:string,theme:"light"|"dark"|"all",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardSubtitle:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardTitle:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallBackground:{src:string,resizeMode:"cover"|"contain"|"stretch"|"center",scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallCloseButton:{iconType:string,size:number,strokeWidth:number,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallFooter:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,textLocalizationKey:string,linkedWordFirstLocalizationKey:string,linkedWordFirstColor:string,linkedWordFirstPage:string,linkedWordSecondLocalizationKey:string,linkedWordSecondColor:string,linkedWordSecondPage:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallOptions:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallProvider:{scrollable:boolean,testID:string,delay:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallSubscribeButton:{scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontWeight:"normal"|"bold"|"100"|"200"|"300"|"400"|"500"|"600"|"700"|"800"|"900",flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPriceTag:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,showOriginalPricePossible:boolean,hideIfItsNotDiscount:boolean,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,textDecorationLine:"none"|"underline"|"line-through"}}\nPricing:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPromo:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nRadioButton:{scrollable:boolean,testID:string,selected:boolean,color:string,size:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nSeparator:{testID:string,styles:{backgroundColor:string,width:string,height:string,marginHorizontal:string,marginVertical:string,marginTop:string,marginBottom:string}}\nStatusBarColor:{translucent:boolean,styles:{backgroundColor:string}}\nSystemButton:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,labelKey:string,events:[obj],styles:{color:string,fontSize:number,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:number,width:string,minWidth:string,maxWidth:string,height:number,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nText:{scrollable:boolean,testID:string,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string}}\nView:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nWebView:{scrollable:boolean,testID:string,iosUrl:string,androidUrl:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,loaderColor:string,loaderSize:number,loaderBorderWidth:number,loaderAnimationDuration:number}}\n```\n\n## Available Icons\n\nUse one of these values for `iconType` attributes:\n\n```\n\n```\n\n## XML Rules\n\n- Root element must always be `<Main isMain="true">`.\n- Text content (children) goes as element body text, not as an attribute.\n- `styles` value must be a JSON object string (escape inner quotes): `styles="{&quot;flex&quot;:1,&quot;color&quot;:&quot;THEME_COLORS.TEXT&quot;}"`.\n- `events` value must be a JSON array string.\n- Omit any attribute that has no value — no nulls, no empty strings.\n- Use a short unique slug for `key` when the component needs one.\n- Only use components appropriate for a paywall screen.\n\n## Component & Layout Constraints\n\n- **Mobile Limits**: When applying absolute sizes (width, height, testing dimensions), do NOT exceed typical mobile screen dimensions (e.g., max width ~360-400, max height ~800).\n- **testID**: Every component MUST have a unique `testID` attribute, **EXCEPT** `OnboardButton` (do not provide `testID` for `OnboardButton` as it handles it internally).\n- **PaywallOptions**: When using `PaywallOptions`, generate ONLY ONE layout template inside it. The app repeats this template for each product dynamically.\n- **PriceTag Placement**: If `PriceTag` is placed **inside** `PaywallOptions`, it displays the price of that specific option in the loop. If placed **outside** of `PaywallOptions`, it displays the price of the user\'s currently *selected* option.\n\n## Embla Carousel Constraints\n\n> **IMPORTANT – Web uses Embla carousel under the hood.** For `OnboardProvider` and `OnboardItem`, do **NOT** set any of the following outer layout styles via `styles`, because Embla manages them internally through its own CSS classes (`embla`, `embla__viewport`, `embla__slide`):\n>\n> `flex`, `flexGrow`, `flexShrink`, `margin`, `marginTop`, `marginBottom`, `marginLeft`, `marginRight`, `marginHorizontal`, `marginVertical`, `height`, `minHeight`, `maxHeight`, `width`, `minWidth`, `maxWidth`, `position`, `top`, `bottom`, `left`, `right`, `zIndex`, `display`\n>\n> Only **visual** styles are safe to set on `OnboardProvider` and `OnboardItem`: `padding`, `paddingTop`, `paddingBottom`, `paddingLeft`, `paddingRight`, `paddingHorizontal`, `paddingVertical`, `backgroundColor`, `borderRadius`, `gap`, `alignItems`, `justifyContent`, `flexDirection`, `flexWrap`\n\n## Available Localization Keys\n\nUse ONLY the keys listed below for localization attributes (`labelKey`, `textLocalizationKey`, etc.). Do NOT invent new keys or use keys not in this list.\n\n```\nbase.builder.paywall.period.monthly\nbase.builder.paywall.period.annual\nbase.builder.paywall.period.weekly\nbase.builder.paywall.period.daily\nbase.builder.paywall.period.monthlyPromo\nbase.builder.paywall.period.annualPromo\nbase.builder.paywall.pricing.default.text\nbase.builder.paywall.pricing.freeTrial.text\nbase.builder.paywall.pricing.regular.text\nbase.builder.paywall.promo.default.text\nbase.builder.paywall.promo.freeTrial.text\nbase.builder.paywall.promo.regular.text\nbase.builder.paywall.button.subscribe\nbase.builder.paywall.button.subscribe-free\nbase.onboard.title.one-page\nbase.onboard.title.two-page\nbase.onboard.title.three-page\nbase.onboard.title.four-page\nbase.onboard.title.five-page\nbase.onboard.title.six-page\nbase.onboard.title.one-page2\nbase.onboard.title.two-page2\nbase.onboard.title.three-page2\nbase.onboard.title.four-page2\nbase.onboard.subtitle.one-page\nbase.onboard.subtitle.two-page\nbase.onboard.subtitle.three-page\nbase.onboard.subtitle.four-page\nbase.onboard.subtitle.five-page\nbase.onboard.subtitle.six-page\nbase.onboard.subtitle.one-page2\nbase.onboard.subtitle.two-page2\nbase.onboard.subtitle.three-page2\nbase.onboard.subtitle.four-page2\nbase.onboard.next.one-page\nbase.onboard.next.two-page\nbase.onboard.next.three-page\nbase.onboard.next.five-page\nbase.onboard.skip.one-page\nbase.onboard.skip.two-page\nbase.onboard.skip.three-page\nbase.onboard.skip.five-page\nbase.onboard.allow.four-page\nbase.onboard.footer.description\nbase.onboard.btnPrivacy\nbase.onboard.btnTerms\nbase.builder.paywall.footer.description\nbase.builder.paywall.btnPrivacy\nbase.builder.paywall.btnTerms\nview.terms.header.title\nview.terms.accept.button\nview.terms.checkbox.label\nview.terms.error.must_accept\nform.error.validation_required\n```\n\n## Default Colors\n\nReference color tokens already defined in the project. Prefer these over hard-coded hex values.\n\n```\n STATIC_COLORS.BLACK: "#000"\n STATIC_COLORS.WHITE: "#FFFFFF"\n STATIC_COLORS.TRANSPARENT: "#ffffff00"\n STATIC_COLORS.ONBOARD_DOT_INACTIVE: "#E4E5E7"\n STATIC_COLORS.ONBOARD_DOT_ACTIVE: "#007AFF"\n STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND: "#0066FF"\n STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_TEXT: "#FFFFFF"\n STATIC_COLORS.ONBOARD_LINK_COLOR: "#1778F2"\n STATIC_COLORS.ONBOARD_SEPARATOR_COLOR: "#44454D"\n STATIC_COLORS.RADIO_BUTTON_COLOR: "#A6A6A6"\n THEME_COLORS.TEXT (light): "#161827"\n THEME_COLORS.BACKGROUND (light): "#F4F5FF"\n THEME_COLORS.ICON (light): "#0450E2"\n THEME_COLORS.LINE (light): "#E9EBF9"\n THEME_COLORS.ONBOARD_TITLE (light): "#161827"\n THEME_COLORS.ONBOARD_SUBTITLE (light): "#44454D"\n THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT (light): "#81838F"\n THEME_COLORS.ONBOARD_FOOTER_TEXT (light): "#81838F"\n THEME_COLORS.CHECKBOX_ACTIVE_COLOR (light): "#0066FF"\n THEME_COLORS.FORM_ERROR_TEXT_COLOR (light): "#B91C1C"\n THEME_COLORS.TEXT (dark): "#E9EBF9"\n THEME_COLORS.BACKGROUND (dark): "#080A17"\n THEME_COLORS.ICON (dark): "#0450E2"\n THEME_COLORS.LINE (dark): "#161827"\n THEME_COLORS.ONBOARD_TITLE (dark): "#FDFDFD"\n THEME_COLORS.ONBOARD_SUBTITLE (dark): "#C7C7C7"\n THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT (dark): "#A9AAAC"\n THEME_COLORS.ONBOARD_FOOTER_TEXT (dark): "#A2A4B1"\n THEME_COLORS.CHECKBOX_ACTIVE_COLOR (dark): "#0066FF"\n THEME_COLORS.FORM_ERROR_TEXT_COLOR (dark): "#B91C1C"\n```\n\n## Default Localization (en)\n\n```\n{\n "base.builder.paywall.period.monthly": "per month",\n "base.builder.paywall.period.annual": "per year",\n "base.builder.paywall.period.weekly": "per week",\n "base.builder.paywall.period.daily": "per day",\n "base.builder.paywall.period.monthlyPromo": "per month",\n "base.builder.paywall.period.annualPromo": "per year",\n "base.builder.paywall.pricing.default.text": "@promoPrice for the first @promoPeriod, then @localizedPrice @localizedPeriod",\n "base.builder.paywall.pricing.freeTrial.text": "@trialPeriod-@trialPeriodUnit free trial, then @localizedPrice @localizedPeriod",\n "base.builder.paywall.pricing.regular.text": "@localizedPrice @localizedPeriod",\n "base.builder.paywall.promo.default.text": "Save @discountPercentage%!",\n "base.builder.paywall.promo.freeTrial.text": "@trialPeriod-@trialPeriodUnit free trial",\n "base.builder.paywall.promo.regular.text": "@localizedPrice @localizedPeriod",\n "base.builder.paywall.button.subscribe": "Subscribe",\n "base.builder.paywall.button.subscribe-free": "Subscribe with Free Trial",\n "base.onboard.title.one-page": "Secure your connection",\n "base.onboard.title.two-page": "Access content worldwide",\n "base.onboard.title.three-page": "Fast and reliable",\n "base.onboard.title.four-page": "Stay notified and safe",\n "base.onboard.title.five-page": "Enhance your experience",\n "base.onboard.title.six-page": "You are all set!",\n "base.onboard.title.one-page2": "Secure your connection",\n "base.onboard.title.two-page2": "Access content worldwide",\n "base.onboard.title.three-page2": "Fast and reliable",\n "base.onboard.title.four-page2": "Stay notified and safe",\n "base.onboard.subtitle.one-page": "Encrypt your traffic and protect your privacy on public Wi\\u2011Fi.",\n "base.onboard.subtitle.two-page": "Connect to high\\u2011speed servers in many countries with one tap.",\n "base.onboard.subtitle.three-page": "Auto\\u2011connect to the best server for speed and stability.",\n "base.onboard.subtitle.four-page": "Enable notifications for connection status and security tips.",\n "base.onboard.subtitle.five-page": "Get the most out of our app with premium features.",\n "base.onboard.subtitle.six-page": "Enjoy secure and fast browsing.",\n "base.onboard.subtitle.one-page2": "Encrypt your traffic and protect your privacy on public Wi\\u2011Fi.",\n "base.onboard.subtitle.two-page2": "Connect to high\\u2011speed servers in many countries with one tap.",\n "base.onboard.subtitle.three-page2": "Auto\\u2011connect to the best server for speed and stability.",\n "base.onboard.subtitle.four-page2": "Enable notifications for connection status and security tips.",\n "base.onboard.next.one-page": "Next",\n "base.onboard.next.two-page": "Next",\n "base.onboard.next.three-page": "Next",\n "base.onboard.next.five-page": "Next",\n "base.onboard.skip.one-page": "Skip",\n "base.onboard.skip.two-page": "Skip",\n "base.onboard.skip.three-page": "Skip",\n "base.onboard.skip.five-page": "Skip",\n "base.onboard.allow.four-page": "Allow",\n "base.onboard.footer.description": "By clicking continue, you will be accepting the Terms of service and privacy policy",\n "base.onboard.btnPrivacy": "Privacy Policy",\n "base.onboard.btnTerms": "Terms of Service",\n "base.builder.paywall.footer.description": "By clicking continue, you will be accepting the Terms of service and privacy policy",\n "base.builder.paywall.btnPrivacy": "Privacy Policy",\n "base.builder.paywall.btnTerms": "Terms of Service",\n "view.terms.header.title": "Terms & Privacy",\n "view.terms.accept.button": "Accept",\n "view.terms.checkbox.label": "I accept the terms and privacy policy",\n "view.terms.error.must_accept": "You must accept to continue",\n "form.error.validation_required": "Please complete the required fields."\n}\n```\n\n## Reference Example\n\nA complete, valid paywall XML:\n\n```xml\n<Main isMain="true" useSafeAreaView="true" description="Ekranın ana kapsayıcısı. (#1)" title="Main" testID="Main-test-id-1">\n <StatusBarColor title="Status Bar Color" description="Status bar background color." styles=\'{"backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="StatusBarColor-test-id-1" />\n <NavigationBarColor title="Navigation Bar Color" description="Navigation bar background color." styles=\'{"backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="NavigationBarColor-test-id-1" />\n <PaywallProvider scrollable="true" description="Paywall ana sağlayıcısı. (#1)" title="Main Paywall" styles=\'{"flexDirection":"column","alignItems":"stretch","justifyContent":"flex-start","position":"relative","backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="PaywallProvider-test-id-1">\n <PaywallBackground src="https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&amp;fit=crop&amp;w=1200&amp;q=80" resizeMode="cover" description="Paywall arka planı. (#1)" title="Paywall Background" testID="PaywallBackground-test-id-1" />\n <View styles=\'{"paddingTop":56,"paddingHorizontal":16,"paddingBottom":16,"gap":12,"flex":1}\' testID="View-test-id-1">\n <PaywallCloseButton styles=\'{"width":32,"height":32,"borderRadius":16,"backgroundColor":"STATIC_COLORS.WHITE","color":"STATIC_COLORS.BLACK","zIndex":10,"alignItems":"center","justifyContent":"center"}\' testID="PaywallCloseButton-test-id-1" />\n <View description="Düzen ve yerleşim konteyneri. (#2)" title="Benefits" styles=\'{"flexDirection":"column","gap":0,"marginTop":"4%"}\' testID="View-test-id-2">\n <View description="Düzen ve yerleşim konteyneri. (#3)" title="Benefit #1" styles=\'{"flexDirection":"row","alignItems":"center","gap":8,"paddingVertical":8,"paddingHorizontal":12}\' testID="View-test-id-3">\n <BIcon iconType="check" strokeWidth="3" description="İkon öğesi. (#1)" title="BIcon 1" styles=\'{"color":"THEME_COLORS.ICON","fontSize":"16","flex":0}\' testID="BIcon-test-id-1" />\n <Text description="Metin öğesi. (#1)" title="text 1" styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","fontWeight":"700"}\' testID="Text-test-id-1">\n @benefit1 — Unlimited access\n </Text>\n </View>\n <View description="Düzen ve yerleşim konteyneri. (#4)" title="Benefit #2" styles=\'{"flexDirection":"row","alignItems":"center","gap":8,"paddingVertical":8,"paddingHorizontal":12}\' testID="View-test-id-4">\n <BIcon iconType="check" strokeWidth="3" description="İkon öğesi. (#2)" title="BIcon 2" styles=\'{"color":"THEME_COLORS.ICON","fontSize":"16","flex":0}\' testID="BIcon-test-id-2" />\n <Text description="Metin öğesi. (#2)" title="text 2" styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","fontWeight":"700"}\' testID="Text-test-id-2">\n @benefit2 — 7-day free trial\n </Text>\n </View>\n <View description="Düzen ve yerleşim konteyneri. (#5)" title="Benefit #3" styles=\'{"flexDirection":"row","alignItems":"center","gap":8,"paddingVertical":8,"paddingHorizontal":12}\' testID="View-test-id-5">\n <BIcon iconType="check" strokeWidth="3" description="İkon öğesi. (#3)" title="BIcon 3" styles=\'{"color":"THEME_COLORS.ICON","fontSize":"16","flex":0}\' testID="BIcon-test-id-3" />\n <Text description="Metin öğesi. (#3)" title="text 3" styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","fontWeight":"700"}\' testID="Text-test-id-3">\n @benefit3 — Cancel anytime\n </Text>\n </View>\n </View>\n <PaywallOptions description="Abonelik seçenekleri alanı. (#1)" title="Option(s)" styles=\'{"borderRadius":12,"backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="PaywallOptions-test-id-1">\n <RadioButton description="Seçim satırı öğesi. (#1)" title="Product Radio(s)" styles=\'{"flex":1}\' testID="RadioButton-test-id-1" />\n <Text description="Metin öğesi. (#4)" title="Product Desc(s)" styles=\'{"flex":6}\' testID="Text-test-id-4">\n @productDescription\n </Text>\n <View title="Price Column" styles=\'{"flexDirection":"column","flex":2,"alignItems":"flex-end"}\' testID="View-test-id-6">\n <PriceTag title="Promo Price" styles=\'{"textAlign":"right","fontWeight":"700"}\' testID="PriceTag-test-id-1">\n @localizedCalculatedPrice\n </PriceTag>\n <PriceTag title="Original Price" hideIfItsNotDiscount="true" styles=\'{"textAlign":"right","textDecorationLine":"line-through","fontSize":"12@fs","fontWeight":"400","color":"#999999"}\' testID="PriceTag-test-id-2">\n @localizedPrice\n </PriceTag>\n </View>\n <BIcon iconType="chevron-right" size="16" description="İkon öğesi. (#4)" title="Product BIcon(s)" styles=\'{"marginRight":4,"flex":0,"width":32,"color":"STATIC_COLORS.BLACK"}\' testID="BIcon-test-id-4" />\n </PaywallOptions>\n <View description="Subscription butonu kapsayıcısı. (#1)" title="Subs Container" styles=\'{"flex":1,"flexDirection":"column","justifyContent":"flex-end","alignItems":"stretch","gap":8,"paddingBottom":"50px"}\' testID="View-test-id-7">\n <Pricing description="Pricing breakdown for promo/trial." title="Pricing Detail" testID="Pricing-test-id-1">\n @baseLocalizedPricingText\n </Pricing>\n <Text description="Trial detayı." title="Trial Full" styles=\'{"textAlign":"center","fontSize":12,"color":"rgba(255,255,255,0.6)"}\' testID="Text-test-id-5">\n @trialPeriod days free, then @price/@period\n </Text>\n <PaywallSubscribeButton description="Abonelik onay butonu. (#1)" title="Subscribe" testID="PaywallSubscribeButton-test-id-1">\n @subscribe\n </PaywallSubscribeButton>\n <Promo description="Discount badge / promo text." title="Promo Badge" testID="Promo-test-id-1">\n @baseLocalizedPromoText\n </Promo>\n <PaywallFooter textLocalizationKey="base.builder.paywall.footer.description" linkedWordFirstLocalizationKey="base.builder.paywall.btnPrivacy" linkedWordFirstColor="STATIC_COLORS.ONBOARD_LINK_COLOR" linkedWordFirstPage="privacy" linkedWordSecondLocalizationKey="base.builder.paywall.btnTerms" linkedWordSecondColor="STATIC_COLORS.ONBOARD_LINK_COLOR" linkedWordSecondPage="terms" styles=\'{"gap":8,"color":"THEME_COLORS.ONBOARD_FOOTER_TEXT"}\' testID="PaywallFooter-test-id-1" />\n </View>\n </View>\n </PaywallProvider>\n</Main>\n```\n\n## Task\n\nGenerate a node tree XML for the user\'s request below. Output ONLY raw XML — no markdown fences, no explanation.\n';function PromptManagerModal({data:e,setData:t,onClose:r}){const[i,n]=useState("xml-editor");return jsxs(Modal,{onClose:r,ariaLabelledBy:"prompt-manager-modal-title",className:"modal--large modal--scrollable",contentClassName:"prompt-manager-modal__content",children:[jsxs("div",{className:"modal__header prompt-manager-modal__header",children:[jsx("h3",{id:"prompt-manager-modal-title",className:"modal__title",children:"Prompt Manager"}),jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsxs("div",{className:"prompt-manager-modal__tabs",children:[jsx("button",{type:"button",className:"prompt-manager-modal__tab"+("xml-editor"===i?" is-active":""),onClick:()=>n("xml-editor"),children:"XML Editor"}),jsx("button",{type:"button",className:"prompt-manager-modal__tab"+("prompt-schema"===i?" is-active":""),onClick:()=>n("prompt-schema"),children:"Prompt Şeması"})]}),jsxs("div",{className:"prompt-manager-modal__body",children:["xml-editor"===i&&jsx(XmlEditorTab,{data:e,setData:t}),"prompt-schema"===i&&jsx(PromptSchemaTab,{})]})]})}function XmlEditorTab({data:e,setData:t}){const r=useRenderStore(e=>e.setCurrent),i=useMemo(()=>{try{return nodeToXml(e)}catch{return""}},[e]),[n,o]=useState(i),[a,s]=useState(null),[l,c]=useState(null),[d,p]=useState(!1);useEffect(()=>{o(i),s(null),c(null),p(!1)},[i]);return jsxs("div",{className:"prompt-manager-modal__editor-wrap",children:[jsxs("div",{className:"prompt-manager-modal__toolbar",children:[jsx("div",{style:{fontSize:12,opacity:.75},children:"node.xml"}),jsxs("div",{style:{display:"flex",gap:8},children:[jsx("button",{type:"button",className:"editor-button",onClick:async()=>{try{await navigator.clipboard.writeText(n)}catch{}},children:"Copy"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=xmlToNode(n);s(null),c(null),p(!1);try{const i=analyseAndProccess(e);t(i),r(i),p(!0)}catch(e){c(e instanceof Error?e.message:"Failed to apply XML")}}catch(e){s(e instanceof Error?e.message:"Invalid XML")}},children:"Apply"})]})]}),jsx("textarea",{className:"prompt-manager-modal__editor",value:n,onChange:e=>{o(e.target.value),c(null),p(!1)},spellCheck:!1}),a?jsxs("div",{style:{fontSize:12,color:"#d12f2f"},children:["Invalid XML: ",a]}):l?jsxs("div",{style:{fontSize:12,color:"#d12f2f"},children:["Could not apply: ",l]}):jsx("div",d?{style:{fontSize:12,color:"#2e7d32"},children:"✓ Applied successfully"}:{style:{fontSize:12,opacity:.7},children:"Edit XML and press Apply to update the node tree."})]})}function PromptSchemaTab(){const[e,t]=useState("onboard"),[r,i]=useState(!1),n="onboard"===e?onboardPromptScheme:paywallPromptScheme;return jsxs("div",{className:"prompt-manager-modal__editor-wrap",children:[jsxs("div",{className:"prompt-manager-modal__toolbar",children:[jsxs("div",{style:{display:"flex",gap:4},children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{t("onboard"),i(!1)},style:"onboard"===e?{background:"#1565c0",color:"#fff",borderColor:"#1565c0"}:void 0,children:"Onboard"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{t("paywall"),i(!1)},style:"paywall"===e?{background:"#6a1b9a",color:"#fff",borderColor:"#6a1b9a"}:void 0,children:"Paywall"})]}),jsx("button",{type:"button",className:"editor-button",onClick:async()=>{try{await navigator.clipboard.writeText(n),i(!0),setTimeout(()=>i(!1),1500)}catch{}},children:r?"✓ Copied":"Copy"})]}),jsx("textarea",{className:"prompt-manager-modal__editor",value:n,readOnly:!0,spellCheck:!1}),jsxs("div",{style:{fontSize:12,opacity:.7},children:[n.length.toLocaleString()," chars · read-only (auto-generated)"]})]})}function IconTypePickerField({value:e,onChange:t}){const[r,i]=useState(!1),n="string"==typeof e?e:void 0;return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>i(!0),className:"attributes-editor__picker-button",children:[jsxs("span",{className:"attributes-editor__picker-button-left",children:[n?jsx(Icon,{iconType:n,size:18}):null,jsx("span",{className:"attributes-editor__picker-button-label",children:n??"Select icon"})]}),jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),r?jsx(IconPickerModal,{value:n,onSelect:e=>{t(e),i(!1)},onClose:()=>i(!1),onClear:()=>{t(void 0),i(!1)}}):null]})}function FontFamilyPickerField({name:e,value:t,onChange:r,fonts:i,loadedFonts:n,markFontLoaded:o,addError:a}){const[s,l]=useState(!1),[c,d]=useState(!1),[p,g]=useState(null),u="string"==typeof t&&t.trim().length>0?t.trim():void 0,h=Array.isArray(i)?i:[],m=Array.isArray(n)?n:[],f=useMemo(()=>`${h.length} fonts`,[h.length]);return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>{g(null),l(!0)},className:"attributes-editor__picker-button",children:[jsx("span",{className:"attributes-editor__picker-button-label attributes-editor__picker-button-label--fill",children:u??"Select font"}),jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),s?jsx(Modal,{ariaLabelledBy:"font-family-picker-title",onClose:()=>{c||l(!1)},closeOnOverlayClick:!c,closeOnEsc:!c,children:jsxs("div",{className:"attributes-editor__font-modal",children:[jsxs("div",{className:"attributes-editor__font-modal-header",children:[jsx("p",{id:"font-family-picker-title",className:"attributes-editor__font-modal-title",children:"Select Font"}),jsx("div",{className:"attributes-editor__font-modal-spacer"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(void 0),g(null),l(!1)},disabled:c,children:"Clear"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>l(!1),disabled:c,children:"Close"})]}),c?jsx("div",{className:"attributes-editor__font-modal-note",children:"Loading font…"}):null,p?jsx("div",{className:"attributes-editor__font-modal-error",children:p}):null,jsx("div",{className:"attributes-editor__font-modal-note",children:f}),jsx("div",{className:"attributes-editor__font-grid",children:h.map(e=>{const t=e?.name;if("string"!=typeof t||!t.trim())return null;const i=t.trim(),n=u===i,s=m.includes(i),l=["attributes-editor__font-option",n?"attributes-editor__font-option--active":""].filter(Boolean).join(" ");return jsxs("button",{type:"button",disabled:c,onClick:async()=>{if(g(null),r(i),!s){d(!0);try{fontsDebug.info("AttributesEditor: loadFontFamily start",{familyName:i}),await loadFontFamily(h,i,{forceFetch:!0}),o(i),fontsDebug.info("AttributesEditor: loadFontFamily success",{familyName:i})}catch(e){const t=e instanceof Error?e.message:String(e);g(`Failed to load "${i}": ${t}`),a(`Failed to load font "${i}": ${t}`)}finally{d(!1)}}},className:l,"aria-label":`Select font ${i}`,children:[jsx("span",{className:"attributes-editor__font-option-name",title:i,children:i}),jsx("span",{className:"attributes-editor__font-option-status",children:s?"Loaded":"Not loaded"})]},i)})})]})}):null]})}const cache={},rk=(e,t,r)=>`${e}|${t??""}|${r}`,lk=(e,t)=>`lang|${e}|${t??""}`;function FallbackLocalizationField({value:e,onChange:t}){const r=useRenderStore(e=>e.localizationApiConfig),i=useRenderStore(e=>e.languageColumns),[n,o]=useState(!1),[a,s]=useState(""),[l,c]=useState("ios"),[d,p]=useState([]),[g,u]=useState(!1),[h,m]=useState([]),[f,y]=useState(!1),b=useRef(0),[C,x]=useState(!1),[v,w]=useState(""),[k,T]=useState(""),[_,O]=useState(""),[I,M]=useState(!1),[P,E]=useState(null),L=!!r?.forgeUrl&&!!r?.forgeToken,z=h.length>0?h:i??[],D=useCallback(()=>r?{"Content-Type":"application/json",Accept:"application/json","X-Authorization":r.forgeToken}:{},[r]),B=useCallback(async(e=!1)=>{if(!r||!L)return;const t=rk(r.forgeUrl,r.forgeAppId,l);if(!e&&cache[t]?.records?.length)return p(cache[t].records),void y(!0);const i=++b.current;u(!0);try{const e=[];let n=1,o=!0;for(;o;){const t=`${r.forgeUrl.replace(/\/$/,"")}/api/manage/localization/${l}`,a=new URLSearchParams({per_page:"1000",page:String(n)});r.forgeAppId&&a.append("app_id",String(r.forgeAppId));const s=await fetch(`${t}?${a}`,{headers:D()});if(!s.ok||i!==b.current)break;const c=await s.json();e.push(...c.data??[]);const d=c.pagination;o=d&&d.current_page<d.last_page,n++}i===b.current&&(p(e),y(!0),cache[t]={...cache[t],records:e})}catch{}finally{i===b.current&&u(!1)}},[r,L,l,D]),A=useCallback(async()=>{if(!r||!L)return;const e=lk(r.forgeUrl,r.forgeAppId);if(cache[e]?.languages?.length)m(cache[e].languages);else try{const t=`${r.forgeUrl.replace(/\/$/,"")}/api/manage/localization-languages`,i=new URLSearchParams;r.forgeAppId&&i.append("app_id",String(r.forgeAppId));const n=await fetch(`${t}?${i}`,{headers:D()});if(!n.ok)return;const o=await n.json(),a=Array.isArray(o)?o:[];m(a),cache[e]={...cache[e],languages:a,records:cache[e]?.records??[]}}catch{}},[r,L,D]);useEffect(()=>{L&&(A(),B())},[L,B,A]);const R=useMemo(()=>{if(!f)return[];const e=a.trim().toLowerCase();return e?d.filter(t=>!!t.key.toLowerCase().includes(e)||Object.values(t.translations).some(t=>t?.value&&t.value.toLowerCase().includes(e))):d},[a,d,f]),V=useMemo(()=>e?d.find(t=>t.key===e)??null:null,[e,d]),N=(e,t)=>e&&e.translations[t.toUpperCase()]?.value?.trim()||"",F=z[0]??{code:"EN",title:"English"},j=z[1]??{code:"TR",title:"Türkçe"},H=N(V,F.code),W=N(V,j.code),$=e=>{t(e.key),o(!1)},U=()=>{r&&(delete cache[rk(r.forgeUrl,r.forgeAppId,l)],delete cache[lk(r.forgeUrl,r.forgeAppId)]),y(!1),p([]),m([]),A(),B(!0)};return jsxs(Fragment,{children:[jsxs("div",e?{role:"button",tabIndex:0,onClick:()=>L&&o(!0),onKeyDown:e=>"Enter"===e.key&&L&&o(!0),style:S.compactCard,children:[jsxs("div",{style:S.compactHeader,children:[jsx("span",{style:S.compactLabel,children:"Text"}),jsx("span",{style:S.badgeSmall,children:l.toUpperCase()}),jsx("span",{role:"button",tabIndex:0,onClick:e=>{e.stopPropagation(),t("")},onKeyDown:e=>{"Enter"===e.key&&(e.stopPropagation(),t(""))},title:"Temizle",style:S.clearBtn,children:"✕"})]}),jsxs("div",{style:S.keyRow,children:[jsx("span",{style:S.keyText,children:e}),jsx("span",{style:{fontSize:12,color:"#555"},children:"🔍"})]}),jsxs("div",{style:S.transRow,children:[jsx("span",{style:S.langBadge,children:F.title||F.code}),jsx("span",{style:H?S.transVal:S.transMissing,children:H||"Eksik"})]}),jsxs("div",{style:S.transRow,children:[jsx("span",{style:S.langBadge,children:j.title||j.code}),jsx("span",{style:W?S.transVal:S.transMissing,children:W||"Eksik"})]})]}:{style:S.emptyWrap,children:[jsx("span",{style:S.compactLabel,children:"Text"}),jsxs("div",{role:"button",tabIndex:0,onClick:()=>L&&o(!0),onKeyDown:e=>"Enter"===e.key&&L&&o(!0),style:S.emptyBtn,children:[jsx("span",{style:{opacity:.5},children:"Localization anahtarı seçilmedi"}),L&&jsx("span",{children:"🔍"})]}),!L&&jsx("div",{style:S.configWarn,children:"Localization API yapılandırılmadı"})]}),n&&jsx("div",{onClick:()=>o(!1),style:S.overlay,children:jsxs("div",{onClick:e=>e.stopPropagation(),style:S.modal,children:[jsxs("div",{style:S.modalHeader,children:[jsxs("div",{children:[jsx("div",{style:{fontWeight:600,fontSize:15},children:"Localization Anahtarı Seç"}),jsx("div",{style:{fontSize:12,color:"#888",marginTop:2},children:"Arama, seçim veya yeni anahtar oluşturma."})]}),jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexShrink:0},children:[jsx("span",{role:"button",tabIndex:0,onClick:U,title:"Yenile",style:S.refreshBtn,children:"↻"}),jsx("span",{role:"button",tabIndex:0,onClick:()=>o(!1),style:S.closeBtn,children:"✕"})]})]}),jsx("div",{style:S.platformBar,children:["ios","android"].map(e=>jsx("div",{role:"button",tabIndex:0,onClick:()=>(e=>{e!==l&&(c(e),y(!1),p([]))})(e),style:{...S.pBtn,...l===e?S.pBtnActive:{}},children:"ios"===e?"iOS":"Android"},e))}),jsxs("div",{style:{padding:"10px 16px 8px",display:"flex",gap:8},children:[jsx("input",{autoFocus:!0,type:"text",value:a,onChange:e=>s(e.target.value),placeholder:"Anahtar veya çeviri ara…",style:{...S.searchInput,flex:1}}),jsx("div",{role:"button",tabIndex:0,onClick:()=>x(!C),style:S.createToggle,children:C?"← Ara":"+ Yeni"})]}),C?jsxs("div",{style:S.createForm,children:[jsxs("div",{style:S.createField,children:[jsx("label",{style:S.createLabel,children:"Anahtar"}),jsx("input",{type:"text",value:v,onChange:e=>w(e.target.value),placeholder:"örn: faq.category.general",style:S.searchInput})]}),jsxs("div",{style:S.createField,children:[jsx("label",{style:S.createLabel,children:"English"}),jsx("input",{type:"text",value:k,onChange:e=>T(e.target.value),placeholder:"English translation",style:S.searchInput})]}),jsxs("div",{style:S.createField,children:[jsx("label",{style:S.createLabel,children:"Türkçe"}),jsx("input",{type:"text",value:_,onChange:e=>O(e.target.value),placeholder:"Türkçe çeviri",style:S.searchInput})]}),P&&jsx("div",{style:S.errorMsg,children:P}),jsx("div",{role:"button",tabIndex:0,onClick:async()=>{if(r&&L&&v.trim()){M(!0),E(null);try{const e={};k.trim()&&(e.EN={value:k.trim()}),_.trim()&&(e.TR={value:_.trim()});const i={key:v.trim(),translations:e},n=`${r.forgeUrl.replace(/\/$/,"")}/api/manage/localization/${l}`,a=new URLSearchParams;r.forgeAppId&&a.append("app_id",String(r.forgeAppId));const s=await fetch(`${n}?${a}`,{method:"POST",headers:D(),body:JSON.stringify(i)});if(!s.ok){const e=await s.json().catch(()=>({}));throw new Error(e.message||`HTTP ${s.status}`)}t(v.trim()),x(!1),w(""),T(""),O(""),U(),o(!1)}catch(e){E(e instanceof Error?e.message:"Oluşturulamadı")}finally{M(!1)}}},style:{...S.saveBtn,opacity:I||!v.trim()?.5:1,pointerEvents:I||!v.trim()?"none":"auto"},children:I?"Kaydediliyor…":"Oluştur ve Seç"})]}):jsxs(Fragment,{children:[f&&jsxs("div",{style:S.infoBar,children:[R.length," / ",d.length," anahtar"]}),jsxs("div",{style:S.resultsList,children:[g&&jsx("div",{style:S.emptyMsg,children:"Yükleniyor…"}),!g&&f&&0===R.length&&jsx("div",{style:S.emptyMsg,children:"Kayıt bulunamadı."}),R.map(t=>{const r=t.key===e,i=(n=t,z.filter(e=>{const t=n.translations[e.code];return!t?.value||!t.value.trim()}).length);var n;const o=N(t,F.code);return jsxs("div",{role:"button",tabIndex:0,onClick:()=>$(t),onKeyDown:e=>"Enter"===e.key&&$(t),style:{...S.resultCard,...r?S.resultCardActive:{}},onMouseEnter:e=>{r||(e.currentTarget.style.background="#272730")},onMouseLeave:e=>{r||(e.currentTarget.style.background=r?"rgba(99,102,241,0.12)":"transparent")},children:[jsxs("div",{style:S.resultKeyRow,children:[jsx("span",{style:S.resultKey,children:t.key}),jsxs("div",{style:{display:"flex",gap:5,flexShrink:0,alignItems:"center"},children:[jsx("span",{style:S.badgeSmall,children:l.toUpperCase()}),i>0&&jsxs("span",{style:S.missingBadge,children:["Eksik ",i]}),r&&jsx("span",{style:S.selectedBadge,children:"✔"})]})]}),jsxs("div",{style:S.transRow,children:[jsx("span",{style:S.langBadge,children:F.title||F.code}),jsx("span",{style:o?S.transVal:S.transMissing,children:o?o.length>100?o.slice(0,100)+"…":o:"Eksik"})]})]},t.key)})]})]})]})})]})}const S={compactCard:{display:"block",width:"100%",textAlign:"left",background:"transparent",border:"1px solid hsl(0 0% 30%)",borderRadius:8,padding:"8px 10px",cursor:"pointer"},compactHeader:{display:"flex",alignItems:"center",gap:6,marginBottom:4},compactLabel:{fontSize:10,fontWeight:600,textTransform:"uppercase",color:"#888",letterSpacing:"0.05em"},clearBtn:{cursor:"pointer",fontSize:12,color:"#666",padding:"0 2px",marginLeft:"auto",userSelect:"none"},keyRow:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,marginBottom:4},keyText:{fontSize:12,color:"#ccc",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},transRow:{display:"flex",alignItems:"center",gap:6,marginTop:3},transVal:{fontSize:11,color:"#bbb",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1},transMissing:{fontSize:11,color:"#ef4444",flex:1},emptyWrap:{display:"flex",flexDirection:"column",gap:4},emptyBtn:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"7px 10px",border:"1px solid hsl(0 0% 30%)",borderRadius:6,background:"transparent",color:"#ccc",fontSize:12,cursor:"pointer",textAlign:"left"},configWarn:{fontSize:10,color:"#ef4444",marginTop:2},overlay:{position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},modal:{background:"#1a1a22",borderRadius:12,width:560,maxHeight:"80vh",display:"flex",flexDirection:"column",boxShadow:"0 16px 48px rgba(0,0,0,0.6)",color:"#e0e0e0",border:"1px solid #2a2a35",overflow:"hidden"},modalHeader:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",padding:"16px 18px",borderBottom:"1px solid #2a2a35",gap:12},closeBtn:{cursor:"pointer",fontSize:18,color:"#999",padding:4,userSelect:"none"},refreshBtn:{cursor:"pointer",fontSize:18,color:"#6366f1",padding:4,userSelect:"none"},platformBar:{display:"flex",gap:8,padding:"10px 16px 8px",borderBottom:"1px solid #2a2a35"},pBtn:{padding:"5px 14px",borderRadius:6,border:"1px solid #3a3a45",background:"transparent",color:"#999",fontSize:12,fontWeight:600,cursor:"pointer",userSelect:"none"},pBtnActive:{background:"#6366f1",borderColor:"#6366f1",color:"#fff"},searchInput:{width:"100%",padding:"8px 12px",border:"1px solid #3a3a45",borderRadius:6,background:"#22222a",color:"#e0e0e0",fontSize:13,outline:"none",boxSizing:"border-box"},createToggle:{padding:"6px 14px",borderRadius:6,border:"1px solid #6366f1",background:"transparent",color:"#6366f1",fontSize:12,fontWeight:600,cursor:"pointer",whiteSpace:"nowrap",userSelect:"none"},infoBar:{padding:"2px 18px 6px",fontSize:11,color:"#555",textAlign:"right"},resultsList:{overflowY:"auto",flex:1,padding:"4px 10px 10px"},emptyMsg:{padding:28,textAlign:"center",color:"#666",fontSize:13},resultCard:{display:"block",width:"100%",textAlign:"left",borderRadius:8,padding:"10px 12px",cursor:"pointer",marginBottom:4,border:"1px solid #2a2a35",background:"transparent"},resultCardActive:{background:"rgba(99,102,241,0.12)",borderColor:"#6366f1"},resultKeyRow:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},resultKey:{fontWeight:600,fontSize:13,color:"#e0e0e0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},langBadge:{display:"inline-block",background:"#2a2a35",border:"1px solid #3a3a45",borderRadius:4,padding:"1px 6px",fontSize:10,fontWeight:600,color:"#aaa",flexShrink:0},badgeSmall:{display:"inline-block",background:"#2a2a35",border:"1px solid #3a3a45",borderRadius:4,padding:"1px 5px",fontSize:9,fontWeight:600,color:"#888",textTransform:"uppercase"},missingBadge:{display:"inline-block",background:"rgba(239,68,68,0.15)",border:"1px solid rgba(239,68,68,0.3)",borderRadius:4,padding:"1px 6px",fontSize:10,fontWeight:600,color:"#ef4444"},selectedBadge:{fontSize:10,color:"#6366f1",fontWeight:600},createForm:{padding:"12px 16px",display:"flex",flexDirection:"column",gap:10},createField:{display:"flex",flexDirection:"column",gap:4},createLabel:{fontSize:11,fontWeight:600,color:"#888",textTransform:"uppercase"},errorMsg:{fontSize:12,color:"#ef4444",padding:"4px 0"},saveBtn:{padding:"8px 16px",borderRadius:6,background:"#6366f1",color:"#fff",fontSize:13,fontWeight:600,cursor:"pointer",textAlign:"center",userSelect:"none",border:"none",marginTop:4}};function getPreferredOrderedSizeEntries(e){const t=["width","height","minWidth","minHeight","maxWidth","maxHeight"];return[...e].sort((e,r)=>{const i=t.indexOf(e.name),n=t.indexOf(r.name),o=-1===i?Number.MAX_SAFE_INTEGER:i,a=-1===n?Number.MAX_SAFE_INTEGER:n;return o!==a?o-a:e.name.localeCompare(r.name)})}function getSpecialSectionTitle(e){const t=e.key,r=e.meta;return{title:r?.label&&r.label.trim().length>0?r.label:t.charAt(0).toUpperCase()+t.slice(1),description:r?.description}}function AttributesEditorView(e){const{isInvalidNode:t,componentTitle:r,componentDescription:i,mockableFeatureKeys:n,activeMockableFeature:o,setActiveMockableFeature:a,tabs:s,tabContentInfo:l,activeTab:c,setActiveTab:d,firstAvailableTab:p,activeEntries:g,activeSpecialSections:u,hasTitleField:h,hasDescriptionField:m,hasStringChildren:f,childrenValue:y,handleChildrenChange:b,attributeMeta:C,data:x,getAttributeValue:v,handleAttributeChange:S,projectColorsForPicker:w,layoutContext:k,viewAttributes:T,attributes:_,projectFonts:O,loadedFonts:I,markFontLoaded:M,addError:P}=e,E=jsxs("div",{className:"attributes-editor__component-meta",children:[jsx("p",{className:"attributes-editor__component-title",children:r}),i?jsx("p",{className:"attributes-editor__component-description",children:i}):null]}),L=v("title"),z=v("description"),D=!t&&(h||m)?jsxs("section",{className:"attributes-editor__top-fields",children:[h?jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsx("label",{className:"attributes-editor__field-label",htmlFor:"title",children:"Title (max 20 characters for display purposes)"}),jsx("input",{id:"title",className:"input",type:"text",maxLength:20,value:"string"==typeof L?L:"",onChange:e=>S("title",e.target.value)})]}):null,m?jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsx("label",{className:"attributes-editor__field-label",htmlFor:"description",children:"Description (for display purposes)"}),jsx("input",{id:"description",className:"input",type:"text",value:"string"==typeof z?z:"",onChange:e=>S("description",e.target.value)})]}):null]}):null,B=n.length>0?jsxs("section",{className:"attributes-editor__mockable",children:[jsx("p",{className:"attributes-editor__mockable-title",children:"Mockable"}),jsx("table",{className:"attributes-editor__mockable-table",children:jsx("tbody",{children:n.map(e=>jsxs("tr",{className:"attributes-editor__mockable-row",children:[jsx("td",{className:"attributes-editor__mockable-name",children:e}),jsx("td",{className:"attributes-editor__mockable-action",children:jsx("button",{type:"button",className:"editor-button",onClick:()=>a(e),children:e})})]},e))})})]}):null,A=jsx("div",{className:"attributes-editor__tabs",children:s.map(e=>{const t=e.id===c,r=l[e.id],i=r.baseCount+r.specialCount,n=0===i,o=["attributes-editor__tab-button",t?"attributes-editor__tab-button--active":""].filter(Boolean).join(" ");return jsxs("button",{type:"button",onClick:()=>!n&&d(e.id),disabled:n,className:o,children:[e.label,i>0?` (${i})`:""]},e.id)})}),R=useRenderStore(e=>e.renderStringChildrenField),V=f?jsxs("div",{className:"attributes-editor__field-wrapper attributes-editor__field-wrapper--children",children:[jsx("p",{className:"attributes-editor__field-label",children:"Text"}),jsx(R||FallbackLocalizationField,{value:y,onChange:b})]}):null,N=useMemo(()=>{const e=l[p];return(e?.baseCount??0)+(e?.specialCount??0)>0||f&&void 0!==y},[y,p,f,l]);return t?null:jsxs("div",{className:"attributes-editor",children:[E,D,B,A,V,u.map(function(e){if("size"===e.key){const{title:t,description:r}=getSpecialSectionTitle(e),i=getPreferredOrderedSizeEntries(e.entries);return jsxs("section",{className:"special-category-section",children:[jsx("div",{className:"special-category-section__header",children:jsx("p",{className:"special-category-section__title",children:t})}),r?jsx("p",{className:"special-category-section__description",children:r}):null,jsx("div",{className:"attributes-editor__size-grid",children:i.map(e=>{const t=C?.[e.name]?.label??e.name,r=C?.[e.name]?.description,i=toPreferredScale(C?.[e.name]?.preferedScale),n=v(e.name),o=isBooleanFieldType(e.type),a=["attributes-editor__field-wrapper",o?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:r,children:jsxs("div",{className:`${a} attributes-editor__size-grid-item`,children:[o?null:jsx("p",{className:"attributes-editor__field-label",children:t}),"iconType"===e.type?jsx(IconTypePickerField,{name:e.name,value:n,onChange:t=>S(e.name,t)}):"fontFamily"===e.type?jsx(FontFamilyPickerField,{name:e.name,value:n,onChange:t=>S(e.name,t),fonts:O,loadedFonts:I,markFontLoaded:M,addError:P}):jsx(Field,{name:e.name,type:e.type,value:n,onChange:t=>S(e.name,t),componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:T,label:o?t:void 0,preferredScale:i})]})},e.name)})})]},e.key)}return jsx(SpecialCategorySection,{category:e.key,entries:e.entries,attributeMeta:C,attributes:_,getAttributeValue:v,onAttributeChange:S,componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:T,meta:e.meta},e.key)}),g.map(function(e){const t=e.name,r=e.type,i=C?.[t]?.label??t,n=C?.[t]?.description,o=toPreferredScale(C?.[t]?.preferredScale??C?.[t]?.preferedScale),a=isBooleanFieldType(r),s=["attributes-editor__field-wrapper",a?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" "),l=v(t);return jsx(FieldInfoTooltip,{description:n,children:jsxs("div",{className:s,children:[a?null:jsx("p",{className:"attributes-editor__field-label",children:i}),"iconType"===r?jsx(IconTypePickerField,{name:t,value:l,onChange:e=>S(t,e)}):"fontFamily"===r?jsx(FontFamilyPickerField,{name:t,value:l,onChange:e=>S(t,e),fonts:O,loadedFonts:I,markFontLoaded:M,addError:P}):jsx(Field,{name:t,type:r,value:l,onChange:e=>S(t,e),componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:T,label:a?i:void 0,preferredScale:o})]})},t)}),N?null:jsx("div",{className:"attributes-editor__empty-state",children:"No editable attributes"}),o?jsx(MockableFeatureModal,{featureKey:o,onClose:()=>a(null)}):null]})}function isPlainObject$2(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function getStyleBagSourceAndValue(e){const t=e??{},r=t.styles;if(isPlainObject$2(r))return{source:"styles",styleBag:r};const i=t.style;return isPlainObject$2(i)?{source:"style",styleBag:i}:{source:"none",styleBag:void 0}}function isAttributeTypeSpec(e){return"string"==typeof e||Array.isArray(e)}function getNestedStyleSchema(e){const t=e.styles??e.style;if(!isPlainObject$2(t))return;const r={};for(const[e,i]of Object.entries(t))isAttributeTypeSpec(i)&&(r[e]=i);return Object.keys(r).length?r:void 0}function buildAttributesEditorEntries(e,t){const r=getNestedStyleSchema(e),i=Object.keys(t??{}),n=Object.keys(e).filter(e=>"style"!==e&&"styles"!==e),o=Object.keys(r??{}),a=new Set([...i,...n,...o]),s=Array.from(a).filter(e=>"style"!==e&&"styles"!==e),l=[];return s.forEach(t=>{const i=e[t],n=r?.[t],o=isAttributeTypeSpec(i)?i:n;o&&l.push({name:t,type:o})}),l}function isValidStyleBagValue(e){const t=e,r=t?.styles,i=t?.style;return!(null!=r&&!isPlainObject$2(r)||null!=i&&!isPlainObject$2(i))}function findLegacyFlatStyleKeys(e,t){return isPlainObject$2(e)?Object.keys(e).filter(e=>"style"!==e&&"styles"!==e&&t(e)):[]}function isPlainObject$1(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function useAttributesEditorModel({node:e,onChange:t,projectColors:r}){const i=!e||isNodeString(e),n=useMemo(()=>i?{type:"View",children:null,attributes:{}}:e,[i,e]),o=useNode(n),{fonts:a,loadedFonts:s,markFontLoaded:l,addError:c}=useRenderStore(e=>({fonts:e.fonts,loadedFonts:e.loadedFonts,markFontLoaded:e.markFontLoaded,addError:e.addError})),d=useMemo(()=>getAttributeSchema(o?.type)??{},[o?.type]),p=getAttributeMeta(o?.type),g=useMemo(()=>o?.attributes??{},[o?.attributes]),u=useMemo(()=>getStyleAttributeKeySet(),[]),h=useMemo(()=>getStyleBagSourceAndValue(g),[g]),m=h.styleBag,f=useCallback(e=>{const t=d.styles;return!(!isPlainObject$1(t)||!(e in t))||u.has(e)},[d,u]),y=useMemo(()=>findLegacyFlatStyleKeys(g,f),[g,f]),b=useMemo(()=>!isValidStyleBagValue(g),[g]);useEffect(()=>{const e="style"===h.source;(0!==y.length||b||e)&&logger.warn("AttributesEditor","Legacy/unmigrated attributes detected. This editor expects schemaVersion=2 (style nested under attributes.styles). Please run migrations.",{componentType:o?.type,nodeKey:n.key,legacyFlatStyleKeys:y,hasInvalidStyleBag:b,styleBagSource:h.source})},[n,o?.type,b,y,h.source]);const C=useCallback(e=>f(e)?m?.[e]:g?.[e],[g,f,m]),x=useMemo(()=>r,[r]),v=useMemo(()=>"View"===o?.type?g:void 0,[g,o?.type]),S=useMemo(()=>({flexDirection:m?.flexDirection,alignItems:m?.alignItems,justifyContent:m?.justifyContent}),[m?.flexDirection,m?.alignItems,m?.justifyContent]),w=useMemo(()=>o?.type?getPatternByType(o.type):void 0,[o?.type]),k=w?.meta,T=k?.label??o?.type??"Component",_=k?.description,O="title"===w?.pattern?.title,I="description"===w?.pattern?.description,M=useMemo(()=>buildAttributesEditorEntries(d,p).filter(({type:e})=>"string"!=typeof e||"never"!==e),[p,d]),P=useMemo(()=>k?.hideAllAttributes?M.filter(({name:e})=>{const t=p?.[e];return!0===t?.forceVisible||!0===t?.override}):M,[p,k?.hideAllAttributes,M]),E=useMemo(()=>{const e=k?.mockableFeatures;return e&&"object"==typeof e?Object.entries(e).filter(([,e])=>!0===e).map(([e])=>e).filter(e=>"string"==typeof e&&e.trim().length>0).sort((e,t)=>e.localeCompare(t)):[]},[k?.mockableFeatures]),[L,z]=useState(null),D=useMemo(()=>{const e={style:[],container:[],other:[]},t={},r=e=>p?.[e]?.sort??Number.MAX_SAFE_INTEGER,i=(e,t)=>{const i=r(e.name)-r(t.name);return 0!==i?i:e.name.localeCompare(t.name)};return P.forEach(({name:r,type:i})=>{const n=p?.[r],o=n?.specialCategory;if("string"==typeof o){const e=o.trim();if(e)return t[e]||(t[e]=[]),void t[e].push({name:r,type:i})}const a=n?.category;e["style"===a?"style":"container"===a?"container":"other"].push({name:r,type:i})}),Object.values(e).forEach(e=>e.sort(i)),Object.values(t).forEach(e=>e.sort(i)),{grouped:e,specialGroups:t}},[p,P]),{grouped:B,specialGroups:A}=D,R=useMemo(()=>{const e={style:[],container:[],other:[]},t=(e,t)=>{const r=(e.meta?.sort??Number.MAX_SAFE_INTEGER)-(t.meta?.sort??Number.MAX_SAFE_INTEGER);return 0!==r?r:e.key.localeCompare(t.key)};return Object.entries(A).forEach(([t,r])=>{if(!r.length)return;const i=k?.specialCategories?.[t];e["style"===i?.category?"style":"container"===i?.category?"container":"other"].push({key:t,entries:r,meta:i})}),Object.keys(e).forEach(r=>{e[r].sort(t)}),e},[k?.specialCategories,A]),V=useMemo(()=>[{id:"container",label:"Container",entries:B.container},{id:"style",label:"Styles",entries:B.style},{id:"other",label:"Others",entries:B.other}],[B]),N=useMemo(()=>{const e={style:{baseCount:0,specialCount:0},container:{baseCount:0,specialCount:0},other:{baseCount:0,specialCount:0}};return V.forEach(t=>{e[t.id].baseCount=t.entries.length}),Object.keys(R).forEach(t=>{e[t].specialCount=R[t].reduce((e,t)=>e+t.entries.length,0)}),e},[R,V]),F=useMemo(()=>V.find(e=>{const t=N[e.id];return t.baseCount+t.specialCount>0})?.id??"other",[N,V]),[j,H]=useState(F);useEffect(()=>{H(e=>{const t=N[e];return t&&t.baseCount+t.specialCount>0?e:F})},[F,N]);const W=V.find(e=>e.id===j)?.entries??V.find(e=>e.id===F)?.entries??[],$=R[j]??[],U=useCallback((e,r)=>{const i={...n?.attributes??{}??{}};if(f(e)){const t={...isPlainObject$1(i.styles)?i.styles:isPlainObject$1(i.style)?i.style:{},[e]:r};i.styles=t,delete i.style,e in i&&delete i[e]}else if(i[e]=r,isPlainObject$1(i.styles)&&e in i.styles){const t={...i.styles};delete t[e],i.styles=Object.keys(t).length?t:void 0}const o={...n,attributes:i};t(o)},[n,f,t]),G=useCallback(e=>{const r={...n,children:e};t(r)},[n,t]),K=!!w?.pattern&&"string"===w.pattern.children,Y="string"==typeof n.children?n.children:"";return{isInvalidNode:i,baseData:n,data:o,projectFonts:a,loadedFonts:s,markFontLoaded:l,addError:c,schema:d,attributeMeta:p,componentTitle:T,componentDescription:_,patternForType:w,componentMeta:k,attributes:g,styleBag:m,projectColorsForPicker:x,viewAttributes:v,layoutContext:S,getAttributeValue:C,handleAttributeChange:U,handleChildrenChange:G,tabs:V,tabContentInfo:N,firstAvailableTab:F,activeTab:j,setActiveTab:H,activeEntries:W,specialSectionsByTab:R,activeSpecialSections:$,mockableFeatureKeys:E,activeMockableFeature:L,setActiveMockableFeature:z,hasTitleField:O,hasDescriptionField:I,hasStringChildren:K,childrenValue:Y}}function AttributesEditor(e){useLogRender("AttributesEditor");const t=useAttributesEditorModel(e),r=t.attributes?.title,i=t.hasTitleField,n=useRef(t.handleAttributeChange);return n.current=t.handleAttributeChange,useEffect(()=>{i&&"string"==typeof r&&r.length>20&&n.current("title",r.slice(0,20))},[i,r]),jsx(AttributesEditorView,{...t})}function deleteNodeFromTree(e,t){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=[];for(const n of e){if(n===t){r=!0;continue}const e=deleteNodeFromTree(n,t);e!==n&&(r=!0),i.push(e)}return r?i:e}const r=e;if("children"in r){const i=r.children;if(!i)return e;if(Array.isArray(i)){let n=!1;const o=[];for(const e of i){if(e===t){n=!0;continue}const r=deleteNodeFromTree(e,t);r!==e&&(n=!0),o.push(r)}return n?{...r,children:o}:e}if(i===t)return{...r,children:""};const n=deleteNodeFromTree(i,t);if(n!==i)return{...r,children:n}}return e}function isNodeRecord(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}function findNodeByKey(e,t){if(!t)return null;if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKey(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKey(r.children,t):null}function replaceNode(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=replaceNode(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>replaceNode(e,t,r)):replaceNode(e,t,r);if(n!==e)return{...i,children:n}}return e}function AttributesEditorPanel({attributes:e,onChange:t,projectColors:r}){useLogRender("AttributesEditorPanel");const{current:i,setCurrent:n}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent})),o=useRef(e);o.current=e;const a=useRef(i);a.current=i;const s=useRef(t);s.current=t;const l=useCallback(e=>{const t=o.current,r=a.current;if(!r)return;const i=replaceNode(t,r,e);s.current(i),n(e)},[n]);if(!i)return null;const c="object"==typeof i&&!Array.isArray(i)&&"key"in i?i.key:void 0,d=c&&e?findNodeByKey(e,c):null;return jsx("div",{className:"attributes-editor-panel",children:jsx(AttributesEditor,{node:d??i,onChange:l,projectColors:r},c??void 0)})}function Breadcrumb({items:e,separator:t="/",ariaLabel:r="Breadcrumb",onBack:i,backLabel:n="Back"}){return useLogRender("Breadcrumb"),jsxs("nav",{className:"breadcrumb","aria-label":r,children:[i&&jsxs("button",{type:"button",className:"breadcrumb__back",onClick:i,"aria-label":"Go back",children:[jsx("span",{className:"breadcrumb__back-icon","aria-hidden":!0,children:"←"}),jsx("span",{children:n})]}),jsx("ol",{className:"breadcrumb__list",children:e.map((r,i)=>{const n=i===e.length-1,o=!n&&(r.to||r.onClick);return jsxs("li",{className:"breadcrumb__item "+(o?"breadcrumb__item--clickable":""),onClick:o?r.onClick:void 0,role:o?"button":void 0,tabIndex:o?0:void 0,onKeyDown:o&&r.onClick?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r.onClick?.())}:void 0,children:[i>0&&jsx("span",{className:"breadcrumb__separator","aria-hidden":!0,children:t}),n||!r.to&&!r.onClick?jsx("span",{className:"breadcrumb__current","aria-current":"page",children:r.label}):jsx("span",{className:"breadcrumb__link",children:r.label})]},`${r.label}-${i}`)})})]})}function BuilderButton({node:e,onClick:t,onDelete:r,onMoveUp:i,onMoveDown:n,childrenCount:o,onMore:a}){const[s,l]=useState(!1),c=useRef(null),d=useMemo(()=>`builder-node-actions-${Math.random().toString(36).slice(2,9)}`,[]);if(useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]),isNodeNullOrUndefined(e))return jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(e))return jsx("div",{className:"builder__text",children:e});const p=e;let g="";p.attributes?.condition&&(g=`${p.attributes.condition} ${p.attributes.conditionVariable??""}`.trim());const u=getPatternByType(p.type)?.meta?.label?.trim(),h=u&&u.length>0?u:p.type,m=g.trim()?g:"",f="string"==typeof p.attributes?.title?p.attributes.title.trim():"",y=f.length>0,b=y?f:h,C=y||m.length>0||"number"==typeof o;return jsxs("div",{className:"builder__button",children:[(i||n)&&jsxs("div",{className:"builder__sort-controls",children:[jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),i?.()},disabled:!i,"aria-label":"Move up",children:"↑"}),jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),n?.()},disabled:!n,"aria-label":"Move down",children:"↓"})]}),jsx("button",{type:"button",className:"builder__button-link",onClick:t,children:b}),jsxs("div",{className:"builder__button-actions",ref:c,children:[jsx("button",{type:"button",className:"builder__button-actions-trigger","aria-label":"Open node actions","aria-haspopup":"menu","aria-expanded":s,"aria-controls":d,onClick:e=>{e.stopPropagation(),l(e=>!e)},children:jsx(Icon,{iconType:"chevron-right",size:16})}),s&&jsxs("ul",{id:d,className:"builder__button-actions-menu",role:"menu","aria-label":"Node actions",children:[a?jsx("li",{role:"none",children:jsx("button",{type:"button",className:"builder__button-actions-item",role:"menuitem",onClick:e=>{e.stopPropagation(),a(),l(!1)},children:"More"})}):null,jsx("li",{role:"none",children:jsx("button",{type:"button",className:"builder__button-actions-item builder__button-actions-item--danger",role:"menuitem",disabled:!r,onClick:t=>{if(t.stopPropagation(),!r)return;window.confirm("Do you want to delete?")&&(r&&(isNodeNullOrUndefined(e)||isNodeString(e)||r(e)),l(!1))},children:"Delete"})})]})]}),C&&jsxs("span",{className:"builder__button-condition",children:[y||m.length>0?jsx("span",{className:"builder__button-condition-text",children:y?jsxs(Fragment,{children:[jsx("small",{children:h}),m?` · ${m}`:""]}):m}):jsx("span",{className:"builder__button-condition-text"}),"number"==typeof o?jsxs("span",{className:"builder__button-children-count",children:[o," children"]}):null]})]})}function BuilderTreeNode({node:e,depthRemaining:t,onClick:r,onDelete:i,onMoveUp:n,onMoveDown:o}){const a=getNodeChildren(e),s=a.length>0,l=s&&t<=0?a.length:void 0,c=jsx(BuilderButton,{onClick:()=>{r(e)},node:e,onDelete:i,onMoveUp:n,onMoveDown:o,childrenCount:l,onMore:s&&t<=0?()=>r(e):void 0});return s?t<=0?jsx("div",{className:"builder__children",children:c}):jsxs("div",{className:"builder__children",children:[c,a.map((e,n)=>jsx(BuilderTreeNode,{node:e,depthRemaining:t-1,onClick:r,onDelete:i},n))]}):c}function BuilderComponent({node:e,onClick:t,onAdd:r,onDelete:i,onReorder:n,onMoveChildUp:o,onMoveChildDown:a,maxNestedDepth:s}){if(isNodeString(e))return jsxs("div",{className:"builder__text",children:[e," (Please define a node)"]});const l=r&&jsxs("button",{type:"button",className:"editor-button builder__add-button",onClick:r,children:[jsx("span",{className:"builder__add-button-icon","aria-hidden":"true",children:"+"}),jsx("span",{children:"Add component"})]});if(isNodeArray(e)){const r=e,o=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4),a=(e,t)=>{if(!n)return;const i=e+t;if(i<0||i>=r.length)return;const o=[...r],[a]=o.splice(e,1);o.splice(i,0,a),n(r,o)};return jsxs("div",{className:"builder__list",children:[r.map((e,s)=>jsx("div",{className:"builder__list-item",children:jsx(BuilderTreeNode,{node:e,depthRemaining:o,onClick:t,onDelete:i,onMoveUp:n&&s>0?()=>a(s,-1):void 0,onMoveDown:n&&s<r.length-1?()=>a(s,1):void 0})},s)),l]})}const c=e,d=c?.children,p=isNodeArray(d),g=d?p?d:[d]:null,u=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4);return jsxs("div",{className:"builder__node",children:[jsxs("div",{className:"builder__children",children:[jsx(BuilderButton,{onClick:()=>{t(e)},node:e,onDelete:i}),g&&g.map((r,n)=>jsx(BuilderTreeNode,{node:r,depthRemaining:u,onClick:t,onDelete:i,onMoveUp:o&&p&&n>0?()=>o(e,n):void 0,onMoveDown:a&&p&&n<g.length-1?()=>a(e,n):void 0},n))]}),l]})}function Builder({data:e,setData:t,current:r,setCurrent:i,onDeleteNode:n}){useLogRender("Builder");const[o,a]=useState(!1),s=useRenderStore(e=>e.listMaxNested),l=useMemo(()=>collectNodeKeys(e),[e]),c=Number.isFinite(s)&&s>0?Math.floor(s):5,d=useMemo(()=>{const t=findNodePath(e,r);return t.length?t:isNodeNullOrUndefined(r)?isNodeNullOrUndefined(e)?[]:[e]:[r]},[e,r]),p=useCallback(e=>{i(e)},[i]),g=useMemo(()=>d.map((e,t)=>({label:getNodeLabel(e),onClick:t===d.length-1?void 0:()=>p(e)})),[d,p]),u=useCallback(()=>{d.length<2||p(d[d.length-2])},[d,p]),h=useCallback(n=>{const o=T(n,new Set(l));if(isNodeNullOrUndefined(r)){if(isNodeNullOrUndefined(e)||isNodeString(e))return t(o),void i(o);if(Array.isArray(e)){const r=[...e,o];return t(r),void i(r)}const r=e,n={...r,children:appendChild(r.children,o)};return t(n),void i(n)}if(isNodeArray(r)){const n=[...r,o],a=k(e,r,n);return t(a),void i(n)}if(isNodeString(r))return void(r===e&&(t(o),i(o)));const a=r,s={...a,children:appendChild(a.children,o)},c=k(e,r,s);t(c),i(s)},[r,e,t,i,l]),m=useMemo(()=>function(t){if(isNodeNullOrUndefined(t))return[...allcomponentNames];if(isNodeArray(t)&&0===t.length)return[...allcomponentNames];if(isNodeString(t))return t===e?[...allcomponentNames]:[];const r=t.type;if("OnboardButtons"===r)return["OnboardButton"];const i=getPatternByType(r)?.pattern?.children;if(!i)return[];if("never"===i||"string"===i)return[];if("node"===i||Array.isArray(i)&&i.includes("node"))return[...allcomponentNames];if("string"==typeof i)return[i];return[]}(r),[r]),f=useMemo(()=>isNodeNullOrUndefined(r)||isNodeString(r)||isNodeArray(r)?null:r.type??null,[r]),y=m.length>0||null==e||Array.isArray(e)&&0===e.length,b=useCallback(()=>{y&&a(!0)},[y]),C=useCallback(()=>{a(!1)},[]),x=useCallback(e=>{h(e),a(!1)},[h]),v=useCallback((n,o)=>{const a=k(e,n,o);t(a),r===n&&i(o)},[r,e,i,t]),S=useCallback((n,o)=>{if(isNodeNullOrUndefined(n)||isNodeString(n)||isNodeArray(n))return;const a=n,s=a.children;if(!Array.isArray(s))return;if(o<=0||o>=s.length)return;const l=[...s],[c]=l.splice(o,1);l.splice(o-1,0,c);const d={...a,children:l},p=k(e,n,d);t(p),r===n&&i(d)},[r,e,i,t]),w=useCallback((n,o)=>{if(isNodeNullOrUndefined(n)||isNodeString(n)||isNodeArray(n))return;const a=n,s=a.children;if(!Array.isArray(s))return;if(o<0||o>=s.length-1)return;const l=[...s],[c]=l.splice(o,1);l.splice(o+1,0,c);const d={...a,children:l},p=k(e,n,d);t(p),r===n&&i(d)},[r,e,i,t]);function k(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=k(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>k(e,t,r)):k(e,t,r);if(n!==e)return{...i,children:n}}return e}function T(e,t){const r=getPatternByType(e)?.pattern,i=getDefaultsForType(e)??{},n=r?.children;let o="";do{o=generateRandomKeyForNode(e)}while(t.has(o));if(t.add(o),"CarouselProvider"===e)return{type:e,key:o,children:T("Carousel",t),attributes:{...i}};let a=null;return a="never"===n?null:"string"===n?"":"node"===n||Array.isArray(n)&&n.includes("node")?null:"string"==typeof n?[T(n,t)]:null,{type:e,key:o,children:a,attributes:{...i}}}return jsxs("div",{className:"builder",children:[jsx(Breadcrumb,{items:g,onBack:d.length>1?u:void 0}),jsx(BuilderComponent,{onClick:p,onAdd:y?b:void 0,onDelete:n,onReorder:v,onMoveChildUp:S,onMoveChildDown:w,maxNestedDepth:c,node:r}),o&&jsx(AddComponentModal,{allowedChildTypes:m,parentType:f,onSelect:x,onClose:C})]})}function appendChild(e,t){return Array.isArray(e)?[...e,t]:null==e||"string"==typeof e?[t]:[e,t]}function getNodeChildren(e){if(isNodeNullOrUndefined(e)||isNodeString(e)||isNodeArray(e))return[];const t=e.children;return t?Array.isArray(t)?t:[t]:[]}function getNodeLabel(e){if(isNodeNullOrUndefined(e))return"Empty";if(isNodeString(e))return e;if(isNodeArray(e))return"Collection";const t=e,r=t.attributes?.title;return"string"==typeof r&&r.trim().length>0?r:t.type??"Node"}function findNodePath(e,t){if(null==e)return[];if(e===t)return[e];if("string"==typeof e)return[];if(Array.isArray(e)){for(const r of e){const e=findNodePath(r,t);if(e.length)return e}return[]}const r=e.children;if(!r)return[];const i=Array.isArray(r)?r:[r];for(const r of i){const i=findNodePath(r,t);if(i.length)return[e,...i]}return[]}function BuilderPanel({data:e,setData:t,onDeleteNode:r}){useLogRender("BuilderPanel");const{current:i,setCurrent:n}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent}));return jsx("div",{role:"region",className:"editor-panel-builder editor-panel editor-panel--active","aria-hidden":!1,children:jsx(Builder,{data:e,setData:t,current:i,setCurrent:n,onDeleteNode:r})})}function isFn(e){return"function"==typeof e}function safeStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("function"==typeof r){const e=r.name;return`[Function${e?`: ${e}`:""}]`}if("bigint"==typeof r)return r.toString();if(r instanceof Error)return{name:r.name,message:r.message,stack:r.stack};if(r instanceof Map)return{__type:"Map",entries:Array.from(r.entries())};if(r instanceof Set)return{__type:"Set",values:Array.from(r.values())};if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}function safeParseJson(e){if("string"!=typeof e||!e.trim())return null;try{return JSON.parse(e)}catch{return null}}function safeGetPersistedRenderStore(){try{return"undefined"==typeof localStorage?null:localStorage.getItem("render-store")}catch(e){return{error:String(e)}}}function logRenderStore(e={}){const{label:t,includeLocalStorage:r=!0,extra:i}=e,n=useRenderStore.getState(),o=Object.keys(n).sort(),a={},s=[];for(const e of o){const t=n[e];isFn(t)?s.push(e):a[e]=t}const l="[RB Debug] Render store"+(t?` (${t})`:""),c=console.groupCollapsed,d=console.groupEnd;isFn(c)?c(l):console.info(l);const p=r?safeGetPersistedRenderStore():null,g=r?safeParseJson(p):null,u=safeStringify({snapshot:a,actions:s,extra:i??null,persisted:r?{raw:p,parsed:g}:null});console.info("json",u),console.info("state",a),console.info("actions",s),r&&console.info("localStorage.render-store (raw)",p),i&&console.info("extra",i),isFn(d)&&d()}function DebugJsonPage({data:e,setData:t,project:r,onClose:i,title:n="Debug JSON",description:o,previewMode:a,setPreviewMode:s,logLabel:l}){const c=useRenderStore(e=>e.setCurrent),d=useRenderStore(e=>e.listMaxNested),p=useRenderStore(e=>e.setListMaxNested),g=useRenderStore(e=>e.theme),u=useRenderStore(e=>e.setTheme),h=useRenderStore(e=>e.isRtl),m=useRenderStore(e=>e.setIsRtl),[f,y]=useState(String(d)),b="function"==typeof s,C=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"data"in e?e.data:e;function x(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function v(e){if(isNodeNullOrUndefined(e)||isNodeString(e))return e;if(isNodeArray(e)){return e.map(e=>v(e))}if(!x(e))return e;const t=e,r=v(t.children);if(!x(t.attributes))return{...t,children:r};const i={...t.attributes};return"style"in i&&x(i.style)&&(i.styles=i.style,delete i.style),{...t,children:r,attributes:i}}const S=useMemo(()=>function e(t){if(isNodeNullOrUndefined(t)||isNodeString(t))return!1;if(isNodeArray(t)){return t.some(e)}if(!x(t))return!1;const r=t;return!(!x(r.attributes)||!("style"in r.attributes))||e(r.children)}(e),[e]);useEffect(()=>{y(String(d))},[d]),useEffect(()=>{const e=window.setTimeout(()=>{const e=Number.parseInt(f,10);!Number.isFinite(e)||e<=0||p(e)},300);return()=>window.clearTimeout(e)},[f,p]);return jsxs(Fragment,{children:[jsxs("div",{className:"modal__header localication-modal__header",children:[jsxs("div",{className:"localication-modal__header-main",children:[jsx("h3",{id:"debug-json-editor-title",className:"modal__title",children:n}),o?jsx("p",{className:"localication-modal__description",children:o}):null]}),jsx("button",{type:"button",className:"editor-button",title:"Log render store to console",onClick:()=>logRenderStore({label:l,extra:{project:r??null,projectData:e??null}}),children:"Log store"}),S?jsx("button",{type:"button",className:"editor-button",title:"Migrate attributes.style to attributes.styles (schemaVersion=2)",onClick:()=>{if(!e)return;const r=v(e);t(r),c(r)},children:"Fix style → styles"}):null,i?jsx("button",{type:"button",className:"editor-button",onClick:()=>i(),children:"Close"}):null]}),jsxs("div",{className:"localication-modal__body",children:[jsxs("div",{className:"localication-modal__controls",children:[b?jsx(Checkbox,{label:"Preview mode",checked:Boolean(a),onChange:s}):null,jsx(Checkbox,{label:"Dark Mode",checked:"dark"===g,onChange:e=>u(e?"dark":"light")}),jsx(Checkbox,{label:"Is RTL",checked:h,onChange:m})]}),jsxs("div",{className:"localication-modal__controls",children:[jsx("label",{children:"List max nested depth"}),jsx("input",{type:"number",min:1,className:"input",value:f,onChange:e=>y(e.target.value)})]}),jsx("div",{className:"localication-modal__editor",children:jsx(JsonTextEditor,{rootName:"node",value:e??{},onChange:e=>{const r=analyseAndProccess(C(e));t(r),c(r)},className:"localication-modal__json-editor"})})]})]})}function BottomBar({className:e,data:t,setData:r,project:i}){const{localization:n,setLocalization:o,theme:a,setTheme:s,defaultLanguage:l,setDefaultLanguage:c,previewMode:d,setPreviewMode:p,setIsRtl:g,languageColumns:u}=useRenderStore(e=>({localization:e.localization,setLocalization:e.setLocalization,theme:e.theme,setTheme:e.setTheme,defaultLanguage:e.defaultLanguage,setDefaultLanguage:e.setDefaultLanguage,previewMode:e.previewMode,setPreviewMode:e.setPreviewMode,setIsRtl:e.setIsRtl,languageColumns:e.languageColumns})),[h,m]=useState(!1),[f,y]=useState(!1),[b,C]=useState(!1),[x,v]=useState(!1),[S,w]=useState(!1),k=useRef(),T=useMemo(()=>{if(u.length>0)return u;return Object.keys(n??{}).map(e=>({id:0,code:e.toUpperCase(),title:e,iso_code:e.toUpperCase(),is_right_alignment:!1}))},[u,n]),_=l,O=useCallback(e=>{const t=e.code.toLowerCase();c(t),g(e.is_right_alignment),w(!1)},[c,g]),I="dark"===a,M=d,P=I?"moon-bold":"sun";return jsxs(Fragment,{children:[jsxs("div",{className:["rb-bottom-bar",e].filter(Boolean).join(" "),children:[jsx("button",{type:"button",className:"rb-bottom-bar__button"+(I?" is-active":""),"aria-label":"Theme","aria-pressed":I,onClick:()=>s("dark"===a?"light":"dark"),children:jsx(Icon,{iconType:P,size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button rb-bottom-bar__button--preview"+(M?" is-active":""),"aria-label":"Magic cursor tool","aria-pressed":M,onClick:()=>p(!d),children:jsx(Icon,{iconType:"magicpen",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(h?" is-active":""),"aria-label":"Debug","aria-pressed":h,onClick:()=>m(!0),children:jsx(Icon,{iconType:"speedometer-03",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(f?" is-active":""),"aria-label":"Localization","aria-pressed":f,onClick:()=>y(!0),children:jsx(Icon,{iconType:"globe-01",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(b?" is-active":""),"aria-label":"Inspect","aria-pressed":b,onClick:()=>C(!0),children:jsx(Icon,{iconType:"info-circle",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(x?" is-active":""),"aria-label":"Prompt Manager","aria-pressed":x,onClick:()=>v(!0),children:jsx(Icon,{iconType:"star",size:20,color:"currentColor",alt:""})}),jsx("div",{className:"rb-bottom-bar__spacer"}),jsxs("div",{className:"rb-bottom-bar__lang-selector",onMouseEnter:()=>{k.current&&clearTimeout(k.current),w(!0)},onMouseLeave:()=>{k.current=setTimeout(()=>w(!1),200)},style:{position:"relative"},children:[jsxs("button",{type:"button",className:"rb-bottom-bar__lang is-active",style:{display:"flex",alignItems:"center",gap:4},children:[_.toUpperCase(),jsx("span",{style:{fontSize:8,opacity:.6},children:"▲"})]}),S&&T.length>0&&jsx("div",{className:"rb-bottom-bar__lang-dropdown",style:{position:"absolute",bottom:"100%",right:0,marginBottom:4,background:"var(--rb-bg-secondary, #2a2a2a)",border:"1px solid var(--rb-border, #444)",borderRadius:6,padding:"4px 0",minWidth:150,maxHeight:260,overflowY:"auto",boxShadow:"0 -4px 16px rgba(0,0,0,0.3)",zIndex:100},children:T.map(e=>{const t=e.code.toLowerCase()===_.toLowerCase();return jsxs("button",{type:"button",onClick:()=>O(e),style:{display:"flex",alignItems:"center",gap:6,width:"100%",padding:"5px 10px",border:"none",background:t?"var(--rb-accent, #6366f1)":"transparent",color:t?"#fff":"var(--rb-text-primary, #e0e0e0)",cursor:"pointer",fontSize:12,textAlign:"left"},onMouseEnter:e=>{t||(e.currentTarget.style.background="var(--rb-bg-hover, #333)")},onMouseLeave:e=>{t||(e.currentTarget.style.background="transparent")},children:[jsx("span",{style:{fontWeight:600,width:24,flexShrink:0},children:e.code}),jsx("span",{style:{opacity:.7,flex:1},children:e.title}),e.is_right_alignment&&jsx("span",{style:{fontSize:9,opacity:.5,flexShrink:0},children:"RTL"})]},e.code)})})]})]}),f&&jsx(LocalicationModal,{data:n??{},onChange:e=>{o(e)},onClose:()=>y(!1)}),h&&jsx(Modal,{onClose:()=>m(!1),ariaLabelledBy:"debug-json-editor-title",className:"modal--large modal--scrollable",contentClassName:"localication-modal__content",children:jsx(DebugJsonPage,{project:i,data:t,setData:r,onClose:()=>m(!1),description:"Inspect and edit raw node JSON.",previewMode:d,setPreviewMode:p,logLabel:"BottomBar Debug JSON"})}),b&&jsx(InspectModal,{onClose:()=>C(!1)}),x&&jsx(PromptManagerModal,{data:t,setData:r,onClose:()=>v(!1)})]})}var v="5.6.10",fr=30,ip=30,op=210,w=800,h=600,nm="合成 1",ddd=0,assets=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"形状图层 18",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0]},{t:30,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"形状图层 17",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:10,s:[0]},{t:40,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:10,bm:0},{ddd:0,ind:3,ty:4,nm:"形状图层 16",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:20,s:[0]},{t:50,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:20,bm:0},{ddd:0,ind:4,ty:4,nm:"形状图层 15",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:30,s:[0]},{t:60,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:30,bm:0},{ddd:0,ind:5,ty:4,nm:"形状图层 14",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[0]},{t:70,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:40,bm:0},{ddd:0,ind:6,ty:4,nm:"形状图层 13",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:50,s:[0]},{t:80,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:50,bm:0},{ddd:0,ind:7,ty:4,nm:"形状图层 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:220,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0]},{t:90,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:60,bm:0},{ddd:0,ind:8,ty:4,nm:"形状图层 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:200,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:70,s:[0]},{t:100,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:70,bm:0},{ddd:0,ind:9,ty:4,nm:"形状图层 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:180,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:80,s:[0]},{t:110,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:80,bm:0},{ddd:0,ind:10,ty:4,nm:"形状图层 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:160,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:90,s:[0]},{t:120,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:90,bm:0},{ddd:0,ind:11,ty:4,nm:"形状图层 8",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:140,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:100,s:[0]},{t:130,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:100,bm:0},{ddd:0,ind:12,ty:4,nm:"形状图层 7",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:120,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:110,s:[0]},{t:140,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:110,bm:0},{ddd:0,ind:13,ty:4,nm:"形状图层 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:100,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:120,s:[0]},{t:150,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:420,st:120,bm:0},{ddd:0,ind:14,ty:4,nm:"形状图层 5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:80,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:130,s:[0]},{t:160,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:430,st:130,bm:0},{ddd:0,ind:15,ty:4,nm:"形状图层 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:60,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:140,s:[0]},{t:170,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:440,st:140,bm:0},{ddd:0,ind:16,ty:4,nm:"形状图层 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:40,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:150,s:[0]},{t:180,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:450,st:150,bm:0},{ddd:0,ind:17,ty:4,nm:"形状图层 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:20,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:160,s:[0]},{t:190,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:460,st:160,bm:0},{ddd:0,ind:18,ty:4,nm:"形状图层 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:170,s:[0]},{t:200,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:470,st:170,bm:0},{ddd:0,ind:19,ty:4,nm:"形状图层 24",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:180,s:[0]},{t:210,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:180,bm:0},{ddd:0,ind:20,ty:4,nm:"形状图层 23",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:190,s:[0]},{t:220,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:190,bm:0},{ddd:0,ind:21,ty:4,nm:"形状图层 22",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:200,s:[0]},{t:230,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:200,bm:0},{ddd:0,ind:22,ty:4,nm:"形状图层 21",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:210,s:[0]},{t:240,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:210,bm:0},{ddd:0,ind:23,ty:4,nm:"形状图层 20",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:220,s:[0]},{t:250,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:220,bm:0},{ddd:0,ind:24,ty:4,nm:"形状图层 19",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:230,s:[0]},{t:260,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:230,bm:0}]}],layers=[{ddd:0,ind:1,ty:0,nm:"预合成 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"简单阻塞工具",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"视图",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"阻塞遮罩",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度渐变",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"渐变起点",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"起始颜色",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"渐变终点",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"结束颜色",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"渐变形状",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"渐变散射",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"与原始图像混合",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]}],w:800,h:600,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"预合成 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:56,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,320,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"简单阻塞工具",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"视图",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"阻塞遮罩",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度渐变",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"渐变起点",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"起始颜色",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"渐变终点",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"结束颜色",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"渐变形状",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"渐变散射",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"与原始图像混合",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]},{ty:29,nm:"高斯模糊",np:5,mn:"ADBE Gaussian Blur 2",ix:3,en:1,ef:[{ty:0,nm:"模糊度",mn:"ADBE Gaussian Blur 2-0001",ix:1,v:{a:0,k:41.3,ix:1}},{ty:7,nm:"模糊方向",mn:"ADBE Gaussian Blur 2-0002",ix:2,v:{a:0,k:1,ix:2}},{ty:7,nm:"重复边缘像素",mn:"ADBE Gaussian Blur 2-0003",ix:3,v:{a:0,k:0,ix:3}}]}],w:800,h:600,ip:0,op:300,st:0,bm:0}],markers=[],loadingAnimation={v:v,fr:fr,ip:ip,op:op,w:w,h:h,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers};function LoadingComponent(){return jsx("div",{className:"rb-loading",children:jsx(Lottie,{animationData:loadingAnimation,loop:!0,autoplay:!0})})}function useSyncHtmlThemeClass(){const e=useRenderStore(e=>e.theme);useEffect(()=>{if("undefined"==typeof document)return;const t=document.documentElement;t.classList.toggle("dark","dark"===e),t.classList.toggle("light","light"===e)},[e])}function safeJsonStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}async function copyTextToClipboard(e){try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{if("undefined"==typeof document)return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}function parseValidationPrefix(e){const t=e.indexOf(": ");if(t<=0)return{reason:e};const r=e.slice(0,t),i=e.slice(t+2);return r.startsWith("root")?{path:r,reason:i}:{reason:e}}function isObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function extractNodeFromRawData(e){if(isObject(e)){if("string"==typeof e.type&&e.type.trim())return e;const t=e.data;if(isObject(t)&&"string"==typeof t.type&&t.type.trim())return t}return e}function getNodeType(e){if(!isObject(e))return null;const t=e.type;return"string"==typeof t&&t?t:null}function getFirstComponentFromReactStack(e){if(!e)return null;const t=e.match(/\bat\s+([A-Za-z0-9_$]+)/);return t?.[1]??null}function resolveNodeTypeAtPath(e,t){if(!t||!t.startsWith("root"))return{};let r=e,i=getNodeType(r),n=i?"root":null;const o="root"===t?"":t.replace(/^root\.?/,""),a=/([A-Za-z0-9_$]+)|\[(\d+)\]/g;let s,l="root";for(;s=a.exec(o);){const e=s[1],t=s[2];e?(l=`${l}.${e}`,r=isObject(r)?r[e]:void 0):null!=t&&(l=`${l}[${t}]`,r=Array.isArray(r)?r[Number(t)]:void 0);const o=getNodeType(r);o&&(i=o,n=l)}return i?{nodeType:i,nodePath:n??void 0}:{}}function ProjectDebug({name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,belowName:s,jsonEditor:l}){useSyncHtmlThemeClass();const[c,d]=useState(null),[p,g]=useState("idle"),[u,h]=useState("idle"),m=useMemo(()=>safeJsonStringify(t),[t]),f=l?l.value:m,y=useMemo(()=>extractNodeFromRawData(t),[t]),b=y,C=useMemo(()=>getNodeType(y),[y]),x=useMemo(()=>parseValidationPrefix(r),[r]),v=useMemo(()=>resolveNodeTypeAtPath(y,x.path),[y,x.path]),S=useMemo(()=>{const e=[];return e.push(x.reason),C&&e.push(`Root component: ${C}`),x.path&&e.push(`Path: ${x.path}`),v.nodeType&&e.push(`Component at path: ${v.nodeType}${v.nodePath?` (${v.nodePath})`:""}`),e.join("\n")},[x.reason,x.path,C,v.nodeType,v.nodePath]),w=useMemo(()=>{if(!c)return null;const e=[];return e.push(c.message),C&&e.push(`Root component: ${C}`),c.componentStack&&e.push(`Component (from React stack): ${getFirstComponentFromReactStack(c.componentStack)??"unknown"}`),e.join("\n")},[c,C]),k=useMemo(()=>{const e=[];return e.push("=== Validation ==="),e.push(S),i&&(e.push(""),e.push(i)),c&&(e.push(""),e.push("=== Render ==="),w&&e.push(w),c.stack&&(e.push(""),e.push(c.stack)),c.componentStack&&(e.push(""),e.push(c.componentStack))),e.join("\n")},[c,w,i,S]);return jsxs("div",{className:"rb-project-debug",children:[jsxs("section",{className:"rb-project-debug__json","aria-label":"Debug JSON",children:[jsx("div",{className:"rb-project-debug__meta",children:jsxs("div",{children:[jsx("span",{className:"rb-project-debug__meta-label",children:"Name:"})," ",e]})}),jsxs("div",{className:"rb-project-debug__toolbar",children:[jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(f)&&(g("copied"),window.setTimeout(()=>g("idle"),900))},children:"copied"===p?"Copied JSON":"Copy JSON"}),l?.onSave&&jsx("button",{type:"button",className:"editor-button",disabled:l.saveDisabled,onClick:()=>l.onSave?.(),children:l.saveLabel??"Save"})]}),s&&jsx("div",{className:"rb-project-debug__below-name",children:s}),l?jsxs(Fragment,{children:[jsx("textarea",{className:"rb-project-debug__code-editor",value:l.value,onChange:e=>l.onChange(e.target.value),spellCheck:!1,"aria-label":"Edit JSON"}),l.error?jsx("div",{className:"rb-project-debug__json-error",role:"alert",children:l.error}):null]}):jsx("pre",{className:"rb-project-debug__code",tabIndex:0,children:m})]}),jsx("section",{className:"rb-project-debug__preview","aria-label":"Preview",style:{"--rb-canvas-bg":a??"none"},children:jsx(RenderErrorBoundary,{subtitle:"caught by ProjectDebug preview",onError:(e,t)=>d({message:e?.message??String(e),stack:e?.stack,componentStack:t}),children:jsx(RenderPage,{data:b,name:e,params:{mockProducts:n,mockBenefits:o}})})}),jsxs("section",{className:"rb-project-debug__error","aria-label":"Errors",children:[jsxs("div",{className:"rb-project-debug__error-head",children:[jsx("h2",{className:"rb-project-debug__title",children:"Errors"}),jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(k)&&(h("copied"),window.setTimeout(()=>h("idle"),900))},children:"copied"===u?"Copied":"Copy"})]}),jsxs("div",{className:"rb-project-debug__error-block",children:[jsx("div",{className:"rb-project-debug__error-label",children:"Validation"}),jsx("pre",{className:"rb-project-debug__error-pre",children:S}),i&&jsx("pre",{className:"rb-project-debug__error-pre",children:i})]}),c&&jsxs("div",{className:"rb-project-debug__error-block",children:[jsx("div",{className:"rb-project-debug__error-label",children:"Render"}),jsx("pre",{className:"rb-project-debug__error-pre",children:w}),c.stack&&jsx("pre",{className:"rb-project-debug__error-pre",children:c.stack}),c.componentStack&&jsx("pre",{className:"rb-project-debug__error-pre",children:c.componentStack})]})]})]})}function ProjectValidationPage({name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,belowName:s,onContinueWithoutValidation:l,onSaveEditedRawData:c}){const[d,p]=useState(()=>safeJsonStringify(t)),[g,u]=useState(null);return useEffect(()=>{p(safeJsonStringify(t)),u(null)},[t]),jsx(ProjectDebug,{name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,jsonEditor:{value:d,onChange:e=>{p(e),u(null)},error:g,onSave:()=>{try{const e=JSON.parse(d);u(null),c?.(e)}catch(e){u(e instanceof Error?e.message:String(e))}},saveDisabled:!c,saveLabel:"Save JSON"},belowName:jsxs(Fragment,{children:[jsxs("div",{className:"rb-project-validation__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>l?.(),children:"Continue without validation"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>(()=>{try{const e=JSON.parse(d),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=wrapNodeInMain(t(e)&&"data"in e?e.data:e),i=t(e)&&"data"in e?{...e,data:r}:r;p(JSON.stringify(i,null,2)),u(null)}catch(e){u(e instanceof Error?e.message:String(e))}})(),children:"Wrap in Main"})]}),s]})})}function ProjectMigrationPage({name:e,rawData:t,projectVersion:r,requiredVersion:i,showFixVersionMeta:n,pendingMigrations:o,products:a,benefits:s,canvasBg:l,belowName:c,migrating:d,onContinueWithoutValidation:p,onMigrateNow:g,onFixVersionMeta:u}){const h=`Migration required: project version ${r} is lower than ${i}.`,m=[`Required: ${i}`,`Current: ${r}`,"","Pending migrations:",...o.length?o.map(e=>`- ${e.id} (${e.fromVersion} -> ${e.toVersion}): ${e.title}`):["- (none)"]].join("\n");return jsx(ProjectDebug,{name:e,rawData:t,validationError:h,validationErrorStack:m,products:a,benefits:s,canvasBg:l,belowName:jsxs(Fragment,{children:[jsxs("div",{className:"rb-project-validation__actions",children:[jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>{g?.()},children:d?"Migrating…":"Migrate now"}),n&&jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>u?.(),children:"Fix version meta"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>p?.(),children:"Continue without migration"})]}),c]})})}var supportedProjectVersion="1.1.2",reactBuilderVersion="1.2.44",metaJson={supportedProjectVersion:supportedProjectVersion,reactBuilderVersion:reactBuilderVersion};function parseSemver(e){const t="string"==typeof e?e.trim():"",[r,i,n]=t.split(".").slice(0,3),o=e=>{const t=Number(String(e??"").replace(/[^\d].*$/,""));return Number.isFinite(t)?t:0};return{major:o(r),minor:o(i),patch:o(n)}}function compareSemver(e,t){const r=parseSemver(e),i=parseSemver(t);return r.major!==i.major?r.major<i.major?-1:1:r.minor!==i.minor?r.minor<i.minor?-1:1:r.patch!==i.patch?r.patch<i.patch?-1:1:0}function isSemverLess(e,t){return compareSemver(e,t)<0}function isPlainObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function buildStyleKeySet(){return getStyleAttributeKeySet()}function normalizeStyleAttributes(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject$1(e))return e;if(isNodeArray(e))return e.map(e=>normalizeStyleAttributes(e,t));const r=e,i=normalizeStyleAttributes(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const n={...r.attributes??{}},o={...isPlainObject(n.style)?n.style:{},...isPlainObject(n.styles)?n.styles:{}};for(const[e,r]of Object.entries(n))"style"!==e&&"styles"!==e&&t.has(e)&&(e in o||(o[e]=r),delete n[e]);return delete n.style,Object.keys(o).length>0&&(n.styles=o),{...r,children:i,attributes:n}}function getStyleSubSchemaKeys(e){if(!e)return new Set;const t=e.styles;return isPlainObject(t)?new Set(Object.keys(t)):new Set}function getTopLevelAttributeKeys(e){if(!e)return new Set;const t=Object.keys(e).filter(e=>"styles"!==e);return new Set(t)}function buildKeyInfo(e){const t=getTopLevelAttributeKeys(e);return{moveableKeys:new Set([...Array.from(t),...Array.from(NON_STYLE_ATTRIBUTE_KEYS)]),styleKeys:getStyleSubSchemaKeys(e)}}function extractAttributesFromStyle(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject$1(e))return e;if(isNodeArray(e))return e.map(e=>extractAttributesFromStyle(e,t));const r=e,i=extractAttributesFromStyle(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const n={...r.attributes??{}},o=n.style,a=n.styles,s=isPlainObject(a)?a:isPlainObject(o)?o:void 0;if(!s)return{...r,children:i,attributes:n};if(!isPlainObject(s))return{...r,children:i,attributes:n};const l="string"==typeof r.type?r.type:"",c=normalizeComponentType(l)??l;if(!c)return{...r,children:i,attributes:n};if(!t.has(c)){const e=getAttributeSchema(c);t.set(c,buildKeyInfo(e))}const d=t.get(c),p=d?.styleKeys??new Set,g=d?.moveableKeys??NON_STYLE_ATTRIBUTE_KEYS,u={...s};let h=!1;for(const e of g)e in u&&(p.has(e)||(e in n||(n[e]=u[e]),delete u[e],h=!0));return h?(0===Object.keys(u).length?(delete n.style,delete n.styles):(delete n.style,n.styles=u),{...r,children:i,attributes:n}):{...r,children:i,attributes:n}}const migration_1_1_2_extract_component_attributes_from_style={id:"1.1.2-extract-attrs-from-style",title:"Normalize style keys then extract non-style + component props out of attributes.style",fromVersion:"0.0.0",toVersion:"1.1.2",run:e=>{const t=buildStyleKeySet(),r=extractAttributesFromStyle(normalizeStyleAttributes(e.data,t),new Map);return{...e,version:"1.1.2",data:r}}},CURRENT_PROJECT_VERSION=metaJson.supportedProjectVersion,MIGRATIONS=[migration_1_1_2_extract_component_attributes_from_style];function getMigrationPipe(e){const t="string"==typeof e?.version&&e.version.trim()?e.version:"0.0.0",r=isSemverLess(t,CURRENT_PROJECT_VERSION),i=r?MIGRATIONS.filter(e=>isSemverLess(t,e.toVersion)):[];return{projectVersion:t,requiredVersion:CURRENT_PROJECT_VERSION,required:r,pending:i}}function runProjectMigrations(e){const t=getMigrationPipe(e);let r=e;const i=[];for(const e of t.pending)isSemverLess(r.version,e.toVersion)&&(r=e.run(r),i.push(e));return isSemverLess(r.version,CURRENT_PROJECT_VERSION)&&(r={...r,version:CURRENT_PROJECT_VERSION}),{project:r,applied:i}}function sleep(e){return new Promise(t=>setTimeout(t,e))}async function loadWithDeadline(e,t){return!Number.isFinite(t)||t<=0?await e:await Promise.race([e,sleep(t).then(()=>{throw new Error("timeout")})])}function useProjectFonts({fonts:e,appFont:t}){useEffect(()=>{fontsDebug.info("useProjectFonts: effect start",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"});const{setFonts:r,setAppFont:i,setErrors:n,addError:o,loadedFonts:a,markFontLoaded:s}=useRenderStore.getState();fontsDebug.info("useProjectFonts: storing fonts/appFont in store",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"}),r(e),i(t),n([]);let l=!1;return(async()=>{const r="string"==typeof t?t.trim():"";if(!r)return void n(["appFont is undefined"]);if(l)return;Array.isArray(e)&&e.some(e=>e?.name===r&&e?.family&&"object"==typeof e.family&&Object.keys(e.family).length>0)?Array.isArray(a)&&a.includes(r)||(await loadWithDeadline(loadFontFamily(e,r,{forceFetch:!0}),1e4),l||s(r)):n([`appFont "${r}" not found in fonts`])})().catch(e=>{l||o(`Failed to initialize fonts: ${e instanceof Error?e.message:String(e)}`)}),()=>{l=!0}},[e,t])}function getDefaultProject(e={}){const t=metaJson.supportedProjectVersion.trim()?metaJson.supportedProjectVersion.trim():"0.0.0",r="string"==typeof e.version&&e.version.trim()?e.version.trim():t;return{name:"string"==typeof e.name&&e.name.trim()?e.name.trim():"project",version:r,data:e.data??null,projectColors:e.projectColors,type:e.type}}function resolveProjectForSave(e){return getDefaultProject({...e.overrideProject??e.project,data:e.data})}function toProjectMeta(e){return{name:e.name,version:e.version,...e.type?{type:e.type}:{},data:e.data}}const MOBILE_BREAKPOINT=1e3;function ProjectPage({project:e,localization:t,onSaveProject:r,logLevel:i,projectColors:n,onSaveProjectColors:o,name:a,typography:s,appFont:l}){useLogRender("ProjectPage"),useSyncHtmlThemeClass();const c=l??s.fonts.find(e=>e?.isMain)?.name??s.fonts[0]?.name;useProjectFonts({fonts:s.fonts,appFont:c});const{current:d,setCurrent:p,setProjectColors:g,setProjectName:u,setLocalization:h,products:m,benefits:f}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent,setProjectColors:e.setProjectColors,setProjectName:e.setProjectName,setLocalization:e.setLocalization,products:e.products,benefits:e.benefits})),[b,C]=useState(null),x=b??e,v=a??x.name,S=n??x.projectColors,w=isNodeNullOrUndefined(x.data)||isEmptyObject$1(x.data),[k,T]=useState(()=>null),[_,O]=useState(null),[I,M]=useState(null),[P,E]=useState(!1),[L,z]=useState(null),[D,B]=useState(!1),[A,R]=useState(()=>w),[V,N]=useState(null),[F,j]=useState(()=>"undefined"!=typeof window&&window.innerWidth<=MOBILE_BREAKPOINT),H=useCallback(e=>{if(e===k){if(!window.confirm("You are about to delete the root component. This will clear the entire screen. Continue?"))return;return T(null),void p(null)}const t=deleteNodeFromTree(k,e);if(T(t),d!==e)if(isNodeRecord(d)&&d.key){const e=findNodeByKey(t,d.key);p(e??t)}else p(t);else p(t)},[k,d]);useEffect(()=>(logger.info("ProjectPage","mount",{projectName:e.name}),C(null),()=>{logger.info("ProjectPage","unmount")}),[e.name]),useEffect(()=>{t&&h(t)},[t,h]),useEffect(()=>{u(v)},[v,u]),useEffect(()=>(g(S),()=>g(void 0)),[S,g]),useEffect(()=>{i&&logger.setLevel(i)},[i]),useEffect(()=>{function e(){j(window.innerWidth<=MOBILE_BREAKPOINT)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),useEffect(()=>{N(null)},[F]);const W=e=>{N(t=>t===e?null:e)},$=()=>{N(null)},U=!F||"builder"===V,G=!F||"attributes"===V;useEffect(()=>{if(w)return void R(!0);R(!1);const e=setTimeout(()=>R(!0),1e3);return()=>clearTimeout(e)},[x.data]);const K=useRef(x);K.current=x;const Y=useRef(k);Y.current=k,useEffect(()=>{try{const e=K.current,t=e.data;if(null!=t&&t===Y.current)return;w||(T(null),p(null)),O(null),M(null);const r=getMigrationPipe(e);if(!P&&r.required)return z(r),T(null),void p(null);if(z(null),P)return T(e.data),void p(e.data);if(w)return T(null),void p(null);const i=analyseAndProccess(e.data);if(!i)return;T(i),p(i)}catch(e){logger.error("ProjectPage","Failed to process node",e),O(e instanceof Error?e.message:"Node is not valid"),M(e instanceof Error?e.stack??null:null),T(null),p(null)}},[x.data,w,P,p]);const Z=!(w||null!==k&&A);return jsxs("div",{className:"container-full",children:[jsx(Lt,{position:"bottom-right",autoClose:2500,hideProgressBar:!1,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"colored"}),jsx(EditorHeader,{onSaveProject:()=>{try{logger.info("ProjectPage","save project",{name:e.name}),o&&S&&o(S);const t=toProjectMeta(resolveProjectForSave({project:e,overrideProject:b,data:k}));logger.info("ProjectPage","saving project meta",t),r(t),y.success("Saved")}catch(e){logger.error("ProjectPage","save project failed",e),y.error("Save failed")}},onRestoreProject:()=>{logger.info("ProjectPage","restore project",{name:e.name}),C(null),O(null),M(null),E(!1),T(e.data),p(e.data)},current:d,editorData:k,setEditorData:T}),L?jsx(ProjectMigrationPage,{name:v,rawData:x,projectVersion:L.projectVersion,requiredVersion:L.requiredVersion,showFixVersionMeta:"0.0.0"===L.projectVersion,pendingMigrations:L.pending.map(e=>({id:e.id,title:e.title,fromVersion:e.fromVersion,toVersion:e.toVersion})),products:m,benefits:f,canvasBg:`url(${getImage(TribeAssetName.Background)})`,migrating:D,onContinueWithoutValidation:()=>{E(!0),z(null),T(x.data),p(x.data),R(!0)},onMigrateNow:()=>{try{B(!0);const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0,i=!t(x)||e(x)&&"string"==typeof x.version?x:getDefaultProject({name:`imported-${Math.random().toString(36).slice(2,8)}`,version:CURRENT_PROJECT_VERSION,data:x}),{project:n}=runProjectMigrations(i);r(toProjectMeta(n)),C(n),E(!0),z(null),T(n.data),p(n.data),R(!0)}finally{B(!1)}},onFixVersionMeta:()=>{const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=e(x)?x:null,i="string"==typeof t?.name&&String(t.name).trim()?String(t.name).trim():`imported-${Math.random().toString(36).slice(2,8)}`,n=t&&"data"in t?t.data:(t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0)(x)?x:null,o=getDefaultProject({name:i,version:CURRENT_PROJECT_VERSION,data:n,projectColors:{},type:(e=>"paywall"===e||"onboard"===e||"other"===e)(t?.type)?t.type:void 0});r(toProjectMeta(o)),C(o),E(!1),z(null),O(null),M(null),y.success("Fixed version meta")}}):_?jsx(ProjectValidationPage,{name:v,rawData:x,validationError:_,validationErrorStack:I??void 0,products:m,benefits:f,canvasBg:`url(${getImage(TribeAssetName.Background)})`,onContinueWithoutValidation:()=>{E(!0),O(null),M(null),T(x.data),p(x.data),R(!0)},onSaveEditedRawData:e=>{try{const t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),i=e;let n,o,a=i;if(t(i)&&"data"in i){a=i.data;const e=i.name,t=i.version;"string"==typeof e&&(n=e),"string"==typeof t&&(o=t)}const s=analyseAndProccess(a);if(!s)throw new Error("Node is not valid");const l={...x,...n?{name:n}:null,...o?{version:o}:null,data:a};r(toProjectMeta(l)),C(l),E(!1),O(null),M(null),T(s),p(s),R(!0),y.success("Saved")}catch(e){logger.error("ProjectPage","save JSON from validation failed",e),O(e instanceof Error?e.message:"Node is not valid"),M(e instanceof Error?e.stack??null:null),y.error("Save failed")}}}):jsxs(Fragment,{children:[F&&jsxs("div",{className:"mobile-panel-toggle",role:"group","aria-label":"Editor panels",children:[jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("builder"===V?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle builder panel","aria-expanded":"builder"===V,"aria-controls":"split-left-panel",onClick:()=>W("builder"),children:[jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsx("span",{className:"mobile-panel-toggle__label",children:"Builder"})]}),jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("attributes"===V?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle attributes panel","aria-expanded":"attributes"===V,"aria-controls":"split-attributes-panel",onClick:()=>W("attributes"),children:[jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsx("span",{className:"mobile-panel-toggle__label",children:"Attributes"})]})]}),jsxs("div",{className:"editor-container",children:[jsxs("div",{id:"split-left-panel",className:"split-left"+(U?" is-open":""),"aria-hidden":F&&!U,children:[F&&jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close builder panel",onClick:$,children:"Close"}),jsx("div",{children:jsx(BuilderPanel,{data:k,setData:T,onDeleteNode:H})})]}),jsxs("div",{style:{"--rb-canvas-bg":`url(${getImage(TribeAssetName.Background)})`},className:"split-right",children:[Z&&jsx("div",{className:"rb-loading-overlay","aria-busy":"true",children:jsx(LoadingComponent,{})}),!Z&&jsx(RenderPage,{data:k,name:v})]}),jsx(BottomBar,{project:e,data:k,setData:T}),jsxs("div",{id:"split-attributes-panel",className:"split-third"+(G?" is-open":""),"aria-hidden":F&&!G,children:[F&&jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close attributes panel",onClick:$,children:"Close"}),jsx(AttributesEditorPanel,{attributes:k,projectColors:S,onChange:e=>{let t;T(e),e&&"object"==typeof e&&!Array.isArray(e)&&"key"in e&&(t=e.key),logger.verbose("ProjectPage","attributes change",t?{nodeKey:t}:void 0)}})]}),F&&V&&jsx("button",{type:"button",className:"editor-container__overlay","aria-label":"Close active panel",onClick:$})]})]})]})}function useCalculateLocalizedPrice(e){return e?extractPrice(e):""}function useDiscountRate(e,t){if(!e||!t)return 0;const r=calculateDiscount(e,t);return r?parseInt(r,10):0}function useExtractTextStyle(e){const{selectedTheme:t,projectColors:r,fonts:i,baseSize:n}=useBuilderParams();return useMemo(()=>{const o=extractTextStyleNative(e,{theme:t,projectColors:r,fonts:i,baseSize:n}),a=e.attributes,s=stripStyleKeys(toAttributeRecord(a)),l=getStyleBag(a);return{style:o,other:{...s,adjustsFontSizeToFit:s.adjustsFontSizeToFit??l?.adjustsFontSizeToFit,showEllipsis:s.showEllipsis??l?.showEllipsis}}},[e,t,r,i,n])}function useExtractViewStyle(e){const{selectedTheme:t,projectColors:r,baseSize:i}=useBuilderParams();return useMemo(()=>{const n=extractViewStyleNative(e,{theme:t,projectColors:r,baseSize:i}),o=e.attributes,a=stripStyleKeys(toAttributeRecord(o)),s=getStyleBag(o);return{style:n,other:{...a,scrollable:a.scrollable??s?.scrollable}}},[e,t,r,i])}function useExtractImageStyle(e){const{selectedTheme:t,projectColors:r,baseSize:i}=useBuilderParams();return useMemo(()=>{const{resizeMode:n,...o}=extractImageStyleNative(e,{theme:t,projectColors:r,baseSize:i}),a=e.attributes,s=stripStyleKeys(toAttributeRecord(a)),l=getStyleBag(a);return{style:o,other:{...s,resizeMode:l?.resizeMode??n}}},[e,t,r,i])}const meta={supportedProjectVersion:metaJson.supportedProjectVersion,reactBuilderVersion:metaJson.reactBuilderVersion};function getMeta(){return{...meta}}function novaToJson(e){const t=e.data.data?.layout;return"onboard-layout"===t?onboardNovaToJson(e):null}function onboardNovaToJson(e){const t=e?.data?.data?.attributes||e?.data?.attributes||{},r=t?.general_components||[],i=t?.data||[],n=mapDotsFromGeneralComponents(r),o=mapFooterFromGeneralComponents(r),{carouselNode:a,providerLevelButtons:s}=buildCarouselFromPages(i),l={type:"OnboardProvider",key:e?.data?.data?.key,children:[a,...n?[n]:[],...s.length?s:[],...o?[o]:[]],attributes:{theme:e?.data?.theme}},c={type:"Main",isMain:!0,key:e?.data?.data?.key,children:[l],attributes:{useSafeAreaView:!0}};return delete l.key,c}function buildCarouselFromPages(e){const t=e.filter(e=>"simple-onboard-layout"===e?.layout),r=new Map;t.forEach((e,t)=>{const i=e?.attributes?.key;"string"==typeof i&&r.set(i,t)});const i=[];return{carouselNode:{type:"Onboard",children:t.map(e=>buildCarouselItem(e,r,i))},providerLevelButtons:i}}function buildCarouselItem(e,t,r){const i=e?.attributes?.components||[],n=[],o=e?.attributes?.key,a="string"==typeof o&&t.has(o)?t.get(o):void 0;for(const e of i)if("title-layout"===e?.layout){const t=e?.attributes?.title_localization_key||"",r=e?.attributes?.title_color||void 0,{fontSize:i,textAlign:o,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);n.push({type:"OnboardTitle",attributes:r||i||o||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...o?{textAlign:o}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("subtitle-layout"===e?.layout){const t=e?.attributes?.subtitle_localization_key||"",r=e?.attributes?.subtitle_color||void 0,{fontSize:i,textAlign:o,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);n.push({type:"OnboardSubtitle",attributes:r||i||o||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...o?{textAlign:o}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("image-layout"===e?.layout){const t=e?.attributes?.image||e?.attributes?.src||"",r=e?.attributes?.height??e?.attributes?.ios_height??e?.attributes?.android_height,i="string"==typeof r?Number.parseInt(r,10):"number"==typeof r?r:void 0,o=Boolean(e?.attributes?.is_bg_image),a=extractViewStyleAttributesFromComponent(e),s=e?.attributes?.lottie,l=e?.attributes?.video_url;t&&n.push({type:"OnboardImage",attributes:{src:t,...i?{height:i}:{},resizeMode:o?"cover":"contain",..."number"==typeof a.borderRadius?{borderRadius:a.borderRadius}:{},..."string"==typeof s?{lottie:s}:{},..."string"==typeof l?{video_url:l}:{}},children:void 0})}else if("Buttons"===e?.layout){const i=e?.attributes?.buttons_direction,n=e?.attributes?.buttons||[],o=[];for(const e of n){const r=e?.attributes||{},i=r?.button_text_localization_key||"",n=r?.button_text_color,a=r?.button_background_color,s=r?.animation,l=r?.animation_color,c=r?.flex?Number(r.flex):void 0,d=r?.actions||[],p=[];for(const e of d){const r=e?.attributes?.events||[];for(const e of r)if("Permission"===e?.layout){const t=e?.attributes?.permission;p.push({type:"Permission",permission:t})}else if("Navigate"===e?.layout){const r=e?.attributes?.next_page_key,i="string"==typeof r&&t.has(r),n=i?null:"string"==typeof r?r:null;p.push({type:"Navigate",navigate_to:n,...i?{targetIndex:t.get(r)}:{}})}}o.push({type:"OnboardButton",attributes:{labelKey:i,..."string"==typeof n?{button_text_color:n}:{},..."string"==typeof s?{animation:s}:{},..."string"==typeof l?{animation_color:l}:{},..."string"==typeof a?{button_background_color:a}:{},..."number"==typeof c?{flex:c}:{},...p.length?{events:p}:{}},children:void 0})}o.length>0&&r.push({type:"OnboardButtons",attributes:{...i?{buttons_direction:i}:{},..."number"==typeof a?{condition:"carousel-index",conditionVariable:a}:{}},children:o})}const s=e?.attributes?.key,l="string"==typeof s&&s||("string"==typeof e?.key?e.key:void 0);return{type:"OnboardItem",...l?{key:l}:{},children:n}}function extractTextStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;const i=new Set(["left","center","right","justify"]),n=new Set(["normal","bold","100","200","300","400","500","600","700","800","900"]);for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.type;if("textStyle"!==r)continue;const o=e?.attributes?.style||{},a=o?.fontSize;if("number"==typeof a&&Number.isFinite(a))t.fontSize=a;else if("string"==typeof a){const e=Number.parseInt(a,10);Number.isFinite(e)&&(t.fontSize=e)}const s=o?.textAlign;"string"==typeof s&&i.has(s)&&(t.textAlign=s);const l=o?.marginTop;if("number"==typeof l&&Number.isFinite(l))t.marginTop=l;else if("string"==typeof l){const e=Number.parseInt(l,10);Number.isFinite(e)&&(t.marginTop=e)}const c=o?.fontWeight;let d;"number"==typeof c&&Number.isFinite(c)?d=String(c):"string"==typeof c&&(d=c),d&&n.has(d)&&(t.fontWeight=d)}}return t}function extractViewStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.style||{},i=r?.borderRadius;if("number"==typeof i&&Number.isFinite(i))t.borderRadius=i;else if("string"==typeof i){const e=Number.parseInt(i,10);Number.isFinite(e)&&(t.borderRadius=e)}}}return t}function mapDotsFromGeneralComponents(e){const t=e.find(e=>"dots-layout"===e?.layout);if(!t)return null;const r=t?.attributes?.dot||[],i=r?.[0],n=i?.layout,o=i?.attributes||{},a=e=>{if("number"==typeof e)return e;if("string"==typeof e&&e.trim().length>0){const t=Number(e);return Number.isFinite(t)?t:void 0}},s=a(o?.inactive_dot_opacity),l=a(o?.dot_thickness),c="string"==typeof o?.dot_style?o.dot_style:void 0,d="string"==typeof o?.container_style?o.container_style:void 0,p="string"==typeof o?.active_dot_color?o.active_dot_color:void 0,g="string"==typeof o?.inactive_dot_color?o.inactive_dot_color:void 0,u={};return n&&(u.dotType=n),void 0!==s&&(u.inactive_dot_opacity=s),void 0!==l&&(u.dot_thickness=l),c&&(u.dot_style=c),d&&(u.container_style=d),p&&(u.active_dot_color=p),g&&(u.inactive_dot_color=g),{type:"OnboardDot",attributes:Object.keys(u).length?u:void 0,children:void 0}}function mapFooterFromGeneralComponents(e){const t=e.find(e=>"footer-layout"===e?.layout);if(!t)return null;const r=t?.attributes?.texts||[],i=[];let n,o;for(const e of r)if("Text"===e?.layout){const t=e?.attributes?.text_localization_key||"",r=e?.attributes?.text_color||void 0;n||(n=t),o||"string"!=typeof r||(o=r);const a=e?.attributes?.linkedwords||[];for(const e of a)if("LinkedWords"===e?.layout){const t=e?.attributes?.linked_word_localization_key,r=e?.attributes?.linked_word_color,n=e?.attributes?.page;i.push({text_key:t,color:r,page:n})}}const a={gap:8};n&&(a.textLocalizationKey=n),o&&(a.color=o);const s=i[0],l=i[1];return s&&(s.text_key&&(a.linkedWordFirstLocalizationKey=s.text_key),s.color&&(a.linkedWordFirstColor=s.color),s.page&&(a.linkedWordFirstPage=s.page)),l&&(l.text_key&&(a.linkedWordSecondLocalizationKey=l.text_key),l.color&&(a.linkedWordSecondColor=l.color),l.page&&(a.linkedWordSecondPage=l.page)),{type:"OnboardFooter",attributes:a,children:void 0}}function isNodeData(e){return null!=e&&(!Array.isArray(e)&&("string"!=typeof e&&("object"==typeof e&&("type"in e&&"children"in e))))}function querySelector(e,t){if(null==e)return[];if(!t)return[];const r=t.startsWith("#"),i=r?t.slice(1):void 0,n=[],o=e=>{var a;if(null!=e)if(Array.isArray(e))for(const t of e)o(t);else"string"!=typeof e&&isNodeData(e)&&(a=e,(r?a.key===i:a.type===t)&&n.push(e),o(e.children))};return o(e),n}function setBuilderStringChildrenField(e){useRenderStore.getState().setRenderStringChildrenField(e)}function setBuilderLocalizationConfig(e){useRenderStore.getState().setLocalizationApiConfig(e)}function setBuilderLanguageColumns(e){useRenderStore.getState().setLanguageColumns(e)}export{BuilderProvider,DebugJsonPage,LocalizationParamsProvider,PERIOD_LOCALIZATION_KEYS,ParamsProvider,ProjectPage,RenderNode$1 as RenderNode,TRIBE_ASSETS_BASE_URL,TribeAssetName,allcomponentNames,analyseAndProccess,analyseNode,buildPaywallLocalizationParams,calculateDiscount,calculatePricePerMonth,calculatePricePerYear,convertIOSPeriodUnit,defaultLocalization,defaultProjectColors,defaultTheme,extractAndroidParams,extractIOSParams,extractPrice,getArrayItemType,getAttributeMeta,getAttributeSchema,getDefaultDevice,getDefaultProject,getDefaultsForType,getDevices,getImage,getMeta,getMockProducts,getMockProductsByPreset,getPatternByType,getPeriodLocalizationKey,getSamples,getTypeSchema,isEmptyObject$1 as isEmptyObject,isNodeArray,isNodeNullOrUndefined,isNodeString,isPrimitiveType,mergeLocalization,mergeProjectColors,novaToJson,parseBillingPeriod,parseColor,parseTribeAssetName,patterns$1 as patterns,querySelector,resolveImageSrc,setBuilderLanguageColumns,setBuilderLocalizationConfig,setBuilderStringChildrenField,useBuilderParams,useCalculateLocalizedPrice,useChangeDelayByPaywall,useDiscountRate,useExtractImageStyle,useExtractTextStyle,useExtractViewStyle,useLocalizationParams,useLocalize,useNode,useParams,usePaywallLocalizationParams,useRenderStore};
32
+ r.goToAndStop(o-r.firstFrame-1,!0)}"loop"===i.type&&(null===l||l!==i.frames||r.isPaused)&&(r.playSegments(i.frames,!0),l=i.frames),"play"===i.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===i.type&&r.goToAndStop(i.frames[0]-r.firstFrame-1,!0)}},document.addEventListener("scroll",c),function(){document.removeEventListener("scroll",c)};case"cursor":return o=function(t,i){var o=t,a=i;if(-1!==o&&-1!==a){var s=getContainerCursorPosition(e,o,a);o=s.x,a=s.y}var l=n.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?o>=t.x[0]&&o<=t.x[1]&&a>=t.y[0]&&a<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&o===t.x&&a===t.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var c=(o-l.position.x[0])/(l.position.x[1]-l.position.x[0]),d=(a-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((c+d)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},a=function(e){o(e.clientX,e.clientY)},s=function(){o(-1,-1)},e.addEventListener("mousemove",a),e.addEventListener("mouseout",s),function(){e.removeEventListener("mousemove",a),e.removeEventListener("mouseout",s)}}}},[i,r])},useLottieInteractivity=function(e){var t=e.actions,r=e.mode,i=e.lottieObj,n=i.animationItem,o=i.View,a=i.animationContainerRef;return useInitInteractivity({actions:t,animationItem:n,mode:r,wrapperRef:a}),o},_excluded=["style","interactivity"],Lottie=function(e){var t,r,i,n=e.style,o=e.interactivity,a=_objectWithoutProperties(e,_excluded),s=useLottie(a,n),l=s.View,c=s.play,d=s.stop,p=s.pause,g=s.setSpeed,u=s.goToAndStop,h=s.goToAndPlay,m=s.setDirection,f=s.playSegments,y=s.setSubframe,b=s.getDuration,C=s.destroy,x=s.animationContainerRef,v=s.animationLoaded,S=s.animationItem;return useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:c,stop:d,pause:p,setSpeed:g,goToAndPlay:h,goToAndStop:u,setDirection:m,playSegments:f,setSubframe:y,getDuration:b,destroy:C,animationContainerRef:x,animationLoaded:v,animationItem:S})},[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),useLottieInteractivity({lottieObj:{View:l,play:c,stop:d,pause:p,setSpeed:g,goToAndStop:u,goToAndPlay:h,setDirection:m,playSegments:f,setSubframe:y,getDuration:b,destroy:C,animationContainerRef:x,animationLoaded:v,animationItem:S},actions:null!==(r=null==o?void 0:o.actions)&&void 0!==r?r:[],mode:null!==(i=null==o?void 0:o.mode)&&void 0!==i?i:"scroll"})};function OnboardImage({node:e}){useLogRender("OnboardImage"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"OnboardImage",i=e.key??t,[n,o]=useState(null),a=useExtractViewStyle$1(e),s=e.attributes;return useEffect(()=>{s?.lottie&&fetch(s?.lottie).then(e=>e.json()).then(e=>o(e))},[s?.lottie]),s?.video_url?jsx("video",{"attribute-name":r,"attribute-key":i,autoPlay:!0,muted:!0,loop:!0,src:s?.video_url,style:a}):s?.lottie?jsx("div",n?{"attribute-name":r,"attribute-key":i,style:a,children:jsx(Lottie,{animationData:n})}:{"attribute-name":r,"attribute-key":i,style:a,children:"Loading..."}):jsx(Image$2,{node:{...e,type:"image",sourceType:r}})}var OnboardImage$1=React.memo(OnboardImage);function OnboardItem({node:e}){useLogRender("OnboardItem"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"OnboardItem",i=e.key??t,n=useExtractViewStyle$1(e);return jsx("div",{"attribute-name":r,"attribute-key":i,className:"embla__slide",style:n,children:e.children&&jsx(RenderNode$1,{node:e.children})})}var OnboardItem$1=React.memo(OnboardItem);function OnboardSubtitle({node:e}){return useLogRender("OnboardSubtitle"),e=useNode(e),jsx(Text$1,{node:e})}var OnboardSubtitle$1=React.memo(OnboardSubtitle);function OnboardTitle({node:e}){return useLogRender("OnboardTitle"),e=useNode(e),jsx(Text$1,{node:e})}var OnboardTitle$1=React.memo(OnboardTitle);function PaywallBackground({node:e}){return useLogRender("PaywallBackground"),jsx(BackgroundImage$1,{node:e})}var PaywallBackground$1=React.memo(PaywallBackground);function PaywallCloseButton({node:e}){useLogRender("PaywallCloseButton"),e=useNode(e);const{onClose:t,isBackAllowed:r}=usePaywallContext(),i=useId(),n=e.sourceType??e.type??"PaywallCloseButton",o=e.key??i,{previewMode:a,selectedKey:s}=useBuilderParams(),l=useExtractViewStyle$1(e),c=useExtractTextStyle$1(e),d=useMergedStyle(l,isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);if(!r)return null;const p=e.attributes,g=p?.styles,u=p?.iconType??"close",h=p?.size??c.fontSize??24,m=c.color??g?.color;return jsx("a",{"attribute-name":n,"attribute-key":o,href:"#",onClick:e=>{e.preventDefault(),t?.()},"aria-label":"Close",style:{...d,cursor:"pointer",textDecoration:"none"},children:jsx(Icon,{iconType:u,size:h,color:m,alt:""})})}function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function buildSegments(e,t){const r=[];for(const i of t){if(!i.value)continue;const t=new RegExp(escapeRegExp(i.value),"gi");for(const n of e.matchAll(t)){if(null==n.index)continue;const e=n[0];e&&r.push({start:n.index,end:n.index+e.length,value:e,color:i.color,page:i.page})}}if(0===r.length)return{segments:[{type:"text",value:e}],matchCount:0};r.sort((e,t)=>{if(e.start!==t.start)return e.start-t.start;const r=e.end-e.start;return t.end-t.start-r});const i=[];let n=-1;for(const e of r)e.start>=n&&(i.push(e),n=e.end);const o=[];let a=0;for(const{start:t,end:r,value:n,color:s,page:l}of i)t>a&&o.push({type:"text",value:e.slice(a,t)}),o.push({type:"match",value:n,color:s,page:l}),a=r;return a<e.length&&o.push({type:"text",value:e.slice(a)}),{segments:o,matchCount:i.length}}function PaywallFooter({node:e}){useLogRender("PaywallFooter");const t=(e=useNode(e)).sourceType??e.type??"PaywallFooter",{selectedTheme:r,previewMode:i,selectedKey:n,projectColors:o}=useBuilderParams(),a=o,s=useLocalize(),l=e=>e?s(e):"",c=e?.attributes,d=toAttributeRecord(c),p=l(c?.textLocalizationKey),g=useExtractTextStyle$1(e,!0),u=useExtractViewStyle$1(e),h=d.linkedWordSecondColor,m=d.linkedWordFirstColor,f=useMemo(()=>parseColor(h,{projectColors:a,theme:r}),[h,a,r]),y=useMemo(()=>parseColor(m,{projectColors:a,theme:r}),[m,a,r]),b=useMergedStyle(g,{cursor:"pointer"}),C=useMergedStyle(u,isNodeSelected({previewMode:!!i,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),x=useId(),v=e.key??x;return jsx("div",{"attribute-name":t,"attribute-key":v,style:C,children:!!p&&(()=>{const e=l(c?.linkedWordFirstLocalizationKey),t=l(c?.linkedWordSecondLocalizationKey),{segments:r,matchCount:i}=buildSegments(p,[{value:e,color:f??void 0,page:c?.linkedWordFirstPage},{value:t,color:y??void 0,page:c?.linkedWordSecondPage}]);return jsxs("span",{style:{...b,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},children:[r.map((e,t)=>"text"===e.type?jsx(React.Fragment,{children:e.value},t):jsx("span",{style:{...e.color?{color:e.color}:{},cursor:"pointer"},onClick:()=>{e.page},children:e.value},t)),0===i&&jsxs(Fragment,{children:[" ",c?.linkedWordFirstLocalizationKey&&jsx("span",{style:{...f?{color:f}:{},cursor:"pointer"},onClick:()=>{},children:e})," ",c?.linkedWordSecondLocalizationKey&&jsx("span",{style:{...y?{color:y}:{},cursor:"pointer"},onClick:()=>{},children:t})]})]})})()})}var PaywallFooter$1=React.memo(PaywallFooter);function PaywallOptionButton({product:e,onPress:t,node:r}){const i=useId(),n=(e.productId??"").trim(),{previewMode:o,selectedKey:a}=useBuilderParams(),s=useMergedStyle(useExtractViewStyle$1(r),isNodeSelected({previewMode:!!o,current:a?{key:a}:void 0,node:r})?SELECTED_OUTLINE_STYLE:void 0),l=r.sourceType??r.type??"text",c=r.key??i;return jsx("div",{"attribute-name":l,"attribute-key":n?`${c}:${n}`:c,role:"button",tabIndex:0,onClick:()=>t(n),style:{...s,cursor:"pointer"},children:jsx(RenderNode$1,{node:r.children})})}function extractPrice(e){if(!e)return"";const t=e.replace(/[^0-9.,]/g,"");let r;if(t.includes(",")&&t.includes("."))r=t.replace(/\./g,"").replace(",",".");else if(t.includes(","))r=t.replace(",",".");else{r=(t.match(/\./g)||[]).length>1?t.replace(/\./g,""):t}const i=parseFloat(r);return isNaN(i)?"":String(Math.round(100*i)/100)}function calculateDiscount(e,t){if(!t||!e)return"";const r=parseFloat(e),i=parseFloat(t);if(isNaN(r)||isNaN(i)||r<=0)return"";const n=Math.round((r-i)/r*100);return String(Math.max(0,n))}function calculatePricePerMonth(e,t){return isNaN(e)?"":"month"===t?e.toFixed(2):"year"===t?(e/12).toFixed(2):"week"===t?(52*e/12).toFixed(2):"day"===t?(365*e/12).toFixed(2):e.toFixed(2)}function calculatePricePerYear(e,t){return isNaN(e)?"":"year"===t?e.toFixed(2):"month"===t?(12*e).toFixed(2):"week"===t?(52*e).toFixed(2):"day"===t?(365*e).toFixed(2):e.toFixed(2)}const PERIOD_LOCALIZATION_KEYS={monthly:"base.builder.paywall.period.monthly",annual:"base.builder.paywall.period.annual",weekly:"base.builder.paywall.period.weekly",daily:"base.builder.paywall.period.daily",monthlyPromo:"base.builder.paywall.period.monthlyPromo",annualPromo:"base.builder.paywall.period.annualPromo"},PAYWALL_TEXT_KEYS={pricingDefault:"base.builder.paywall.pricing.default.text",pricingFreeTrial:"base.builder.paywall.pricing.freeTrial.text",pricingRegular:"base.builder.paywall.pricing.regular.text",promoDefault:"base.builder.paywall.promo.default.text",promoFreeTrial:"base.builder.paywall.promo.freeTrial.text",promoRegular:"base.builder.paywall.promo.regular.text"};function getPeriodLocalizationKey(e,t){switch(e){case"month":return t?PERIOD_LOCALIZATION_KEYS.monthlyPromo:PERIOD_LOCALIZATION_KEYS.monthly;case"year":return t?PERIOD_LOCALIZATION_KEYS.annualPromo:PERIOD_LOCALIZATION_KEYS.annual;case"week":return PERIOD_LOCALIZATION_KEYS.weekly;case"day":return PERIOD_LOCALIZATION_KEYS.daily;default:return PERIOD_LOCALIZATION_KEYS.monthly}}function parseBillingPeriod(e){const t=e.match(/P(\d+)([DWMY])/);if(!t||!t[1]||!t[2])return{value:1,unit:"month"};const r=parseInt(t[1],10),i={D:"day",W:"week",M:"month",Y:"year"}[t[2]];return i?{value:r,unit:i}:{value:1,unit:"month"}}function convertIOSPeriodUnit(e){if(!e)return"month";return{DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"}[e.toUpperCase()]||"month"}function normalizeIOSPeriod(e,t){const r=convertIOSPeriodUnit(e),i=t||1;if("day"===r){if(i%365==0)return{unit:"year",value:i/365};if(366===i)return{unit:"year",value:1};if(i%30==0)return{unit:"month",value:i/30};if(31===i)return{unit:"month",value:1};if(i%7==0)return{unit:"week",value:i/7}}return"month"===r&&i%12==0?{unit:"year",value:i/12}:{unit:r,value:i}}function noop(){}const iapLogger={error(e,t,r){console.error(`[iap] ${t}`,r)},warn(e,t,r){console.warn(`[iap] ${t}`,r)},info(e,t,r){console.info(`[iap] ${t}`,r)},debug:noop};function findOffer(e,t){return e.find(e=>e.id===t||e.basePlanIdAndroid===t)}function extractAndroidParams(e,t){try{const r=e.subscriptionOffers??[];let i=r[0];if(t&&r.length>0){const n=findOffer(r,t);n?i=n:iapLogger.error(["extractAndroidParams"],"Requested offer not found, using default",{productId:e.id||e.productId,requestedOfferId:t,availableOffers:r.map(e=>e.id)})}if(!i)return iapLogger.warn(["extractAndroidParams"],"No offers found in product",{productId:e.id||e.productId}),getFallbackParams(e);const n=i.pricingPhasesAndroid?.pricingPhaseList??[];if(0===n.length)return iapLogger.warn(["extractAndroidParams"],"No pricing phases found",{productId:e.id||e.productId,offerId:i.id}),getFallbackParams(e);const o=n.find(e=>"0"===e.priceAmountMicros),a=n.find(e=>2===e.recurrenceMode&&"0"!==e.priceAmountMicros),s=n.find(e=>1===e.recurrenceMode)??n[n.length-1];if(!s)return iapLogger.error(["extractAndroidParams"],"No regular phase found",{productId:e.id||e.productId,pricingPhasesCount:n.length}),getFallbackParams(e);const l=parseBillingPeriod(s.billingPeriod),c=`${l.value} ${l.unit}${l.value>1?"s":""}`,d=extractPrice(s.formattedPrice),p=s.priceCurrencyCode||"",g=s.formattedPrice||"";let u="",h="",m="",f="";if(a){u=extractPrice(a.formattedPrice);const e=a.billingCycleCount||0,t=parseBillingPeriod(a.billingPeriod),r=e*t.value;h=`${r} ${t.unit}${r>1?"s":""}`,m=String(e),f=t.unit}let y="false",b="",C="";if(o){y="true";const e=parseBillingPeriod(o.billingPeriod);b=String(e.value),C=e.unit}const x=calculateDiscount(d,u),v="string"==typeof e.price&&""!==e.price?e.price:d,S="string"==typeof e.currency&&""!==e.currency?e.currency:p,w="string"==typeof e.localizedPrice&&""!==e.localizedPrice?e.localizedPrice:g,k=parseFloat(v),T=calculatePricePerMonth(k,l.unit),_=calculatePricePerYear(k,l.unit);return{price:v,promoPrice:u,currency:S,localizedPrice:w,period:l.unit,periodValue:String(l.value),periodType:c,promoPeriod:h,promoCycles:m,promoPeriodUnit:f,hasTrial:y,trialPeriod:b,trialPeriodUnit:C,discountPercentage:x,pricePerMonth:T,pricePerYear:_}}catch(t){return iapLogger.error(["extractAndroidParams"],"Failed to extract Android params",{productId:e?.id||e?.productId,error:t instanceof Error?t.message:String(t)}),getFallbackParams(e)}}function getFallbackParams(e){const t=extractPrice(String(e.price||e.localizedPrice||""));return{...getEmptyParams$1(),price:t,currency:e.currency||e.currencyCode||"",localizedPrice:e.localizedPrice||""}}function getEmptyParams$1(){return{price:"",promoPrice:"",currency:"",localizedPrice:"",period:"month",periodValue:"1",periodType:"1 month",promoPeriod:"",promoCycles:"",promoPeriodUnit:"",hasTrial:"false",trialPeriod:"",trialPeriodUnit:"",discountPercentage:"",pricePerMonth:"",pricePerYear:""}}function isFreeTrialIntro(e){return"free_trial"===e.type||0===parseFloat(e.price||e.priceIOS||"0")}function extractPromoCyclesAndPeriod(e,t){return{promoPeriod:`${e} ${t}${e>1?"s":""}`,promoCycles:String(e),promoPeriodUnit:t}}function extractIOSParams(e,t){try{const r=extractPrice(String(e.price||e.localizedPrice||"")),i=e.currency||e.currencyCode||"",n=e.localizedPrice||"",o=normalizeIOSPeriod(e.subscriptionPeriodUnitIOS,e.subscriptionPeriodNumberIOS),a=o.unit,s=String(o.value),l=`${s} ${a}${parseInt(s,10)>1?"s":""}`,c=e.introductoryPrice||e.introductoryPriceIOS,d=!!c,p=d&&isFreeTrialIntro(c);let g="false",u="",h="",m="",f="",y="",b="";if(p)g="true",u=String(c.subscriptionPeriodNumberIOS||c.numberOfPeriods||7),h=convertIOSPeriodUnit(c.subscriptionPeriodUnitIOS||c.subscriptionPeriod||"DAY");else if(d){m=String(c.price||c.priceIOS||"").replace(/[^0-9.]/g,"");const e=c.numberOfPeriods||1,t=extractPromoCyclesAndPeriod(e,convertIOSPeriodUnit(c.subscriptionPeriodUnitIOS||c.subscriptionPeriod||"MONTH"));f=t.promoPeriod,y=t.promoCycles,b=t.promoPeriodUnit}if(t&&e.discounts){const r=e.discounts.find(e=>e.identifier===t);if(r){m=extractPrice(String(r.price||""));const e=r.numberOfPeriods||1,t=extractPromoCyclesAndPeriod(e,convertIOSPeriodUnit(r.subscriptionPeriod||"MONTH"));f=t.promoPeriod,y=t.promoCycles,b=t.promoPeriodUnit}else iapLogger.error(["extractIOSParams"],"Requested offer not found in discounts",{productId:e.id||e.productId,requestedOfferId:t,availableDiscounts:e.discounts.map(e=>e.identifier)})}const C=calculateDiscount(r,m),x=parseFloat(r),v=calculatePricePerMonth(x,a);return{price:r,promoPrice:m,currency:i,localizedPrice:n,period:a,periodValue:s,periodType:l,promoPeriod:f,promoCycles:y,promoPeriodUnit:b,hasTrial:g,trialPeriod:u,trialPeriodUnit:h,discountPercentage:C,pricePerMonth:v,pricePerYear:calculatePricePerYear(x,a)}}catch(t){return iapLogger.error(["extractIOSParams"],"Failed to extract iOS params",{productId:e?.id||e?.productId,error:t instanceof Error?t.message:String(t)}),getEmptyParams()}}function getEmptyParams(){return{price:"",promoPrice:"",currency:"",localizedPrice:"",period:"month",periodValue:"1",periodType:"1 month",promoPeriod:"",promoCycles:"",promoPeriodUnit:"",hasTrial:"false",trialPeriod:"",trialPeriodUnit:"",discountPercentage:"",pricePerMonth:"",pricePerYear:""}}function buildPaywallLocalizationParams(e,t,r,i){const n=i??(e=>e),o="android"===t?extractAndroidParams(e,r):extractIOSParams(e,r),a=o.period||"month",s=!!o.promoPrice,l="true"===o.hasTrial,c=getPeriodLocalizationKey(a,!1),d=s?getPeriodLocalizationKey(a,!0):"";let p="";if(s)try{p=new Intl.NumberFormat(void 0,{style:"currency",currency:o.currency}).format(Number(o.promoPrice))}catch{p=`${o.promoPrice} ${o.currency}`.trim()}const g=n(c),u=s?n(d):"",h=p||o.localizedPrice,m=u||g;let f,y;return s?(f=PAYWALL_TEXT_KEYS.pricingDefault,y=PAYWALL_TEXT_KEYS.promoDefault):l?(f=PAYWALL_TEXT_KEYS.pricingFreeTrial,y=PAYWALL_TEXT_KEYS.promoFreeTrial):(f=PAYWALL_TEXT_KEYS.pricingRegular,y=PAYWALL_TEXT_KEYS.promoRegular),{price:o.price,promoPrice:o.promoPrice,currency:o.currency,localizedPrice:o.localizedPrice,period:o.period,promoPeriod:o.promoPeriod,promoPeriodUnit:o.promoPeriodUnit,hasTrial:o.hasTrial,trialPeriod:o.trialPeriod,trialPeriodUnit:o.trialPeriodUnit,discountPercentage:o.discountPercentage,localizedPeriod:g,localizedPromoPeriod:u,localizedPromoPrice:p,localizedCalculatedPrice:h,localizedCalculatedPeriod:m,baseLocalizedPricingText:n(f),baseLocalizedPromoText:n(y),productTitle:String(e.title??""),productDescription:String(e.description??""),productCurreny:o.currency,productId:String(e.productId??""),productSelected:"true",subscribe:n(l?"base.builder.paywall.button.subscribe-free":"base.builder.paywall.button.subscribe")}}function usePaywallLocalizationParams(e,t,r){return useMemo(()=>{if(!e||!r?.platform)return{};try{const i=r.builderProducts?.find(e=>e.store_package_id===t),n=i?.offer_id;return buildPaywallLocalizationParams(e,r.platform,n,r.localize)}catch(e){return console.error("[usePaywallLocalizationParams] Error:",e),{}}},[e,t,r])}var presetsJson$1={"preset-1":[{productId:"com.app.monthly",id:"com.app.monthly",title:"Monthly",description:"Unlock all features for a month.",type:"subs",displayName:"Monthly Subscription",displayPrice:"$4.99",localizedPrice:"$4.99",currency:"USD",price:"4.99",platform:"android",subscriptionOffers:[{id:"monthly-trial-offer",displayPrice:"Free → $4.99",price:0,type:"promotional",currency:"USD",basePlanIdAndroid:"monthly-base",offerTokenAndroid:"mock_token_monthly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P3D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"$4.99",priceAmountMicros:"4990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:3,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:3},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.yearly",id:"com.app.yearly",title:"Yearly (Save 33%)",description:"Best value: full access for a year.",type:"subs",displayName:"Yearly Subscription",displayPrice:"$29.99",localizedPrice:"$29.99",currency:"USD",price:"29.99",platform:"android",subscriptionOffers:[{id:"yearly-promo-offer",displayPrice:"$19.99",price:19.99,type:"promotional",currency:"USD",basePlanIdAndroid:"yearly-base",offerTokenAndroid:"mock_token_yearly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P1Y",formattedPrice:"$19.99",priceAmountMicros:"19990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"$29.99",priceAmountMicros:"29990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"19.99",priceIOS:"19.99",type:"pay_as_you_go",numberOfPeriods:1,subscriptionPeriod:"YEAR",subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},discounts:[{identifier:"yearly-promo-offer",price:"19.99",numberOfPeriods:1,subscriptionPeriod:"YEAR"}],subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},{productId:"com.app.weekly",id:"com.app.weekly",title:"Weekly",description:"Try with a flexible weekly plan.",type:"subs",displayName:"Weekly Subscription",displayPrice:"$1.99",localizedPrice:"$1.99",currency:"USD",price:"1.99",platform:"android",subscriptionOffers:[{id:"weekly-base",displayPrice:"$0.99",price:.99,type:"promotional",currency:"USD",basePlanIdAndroid:"weekly-base",offerTokenAndroid:"mock_token_weekly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:4,billingPeriod:"P1W",formattedPrice:"$0.99",priceAmountMicros:"990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1W",formattedPrice:"$1.99",priceAmountMicros:"1990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.99",priceIOS:"0.99",type:"pay_as_you_go",numberOfPeriods:4,subscriptionPeriod:"WEEK",subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1},subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1}],"preset-2":[{productId:"com.app.premium.monthly",id:"com.app.premium.monthly",title:"Premium Monthly",description:"Premium tier with all features.",type:"subs",displayName:"Premium Monthly",displayPrice:"$9.99",localizedPrice:"$9.99",currency:"USD",price:"9.99",platform:"android",subscriptionOffers:[{id:"premium-monthly-trial-offer",displayPrice:"Free → $9.99",price:0,type:"promotional",currency:"USD",basePlanIdAndroid:"premium-monthly-base",offerTokenAndroid:"mock_token_premium_monthly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P7D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"$9.99",priceAmountMicros:"9990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:7,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:7},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.premium.yearly",id:"com.app.premium.yearly",title:"Premium Yearly (Save 50%)",description:"7-day free trial, then $29.99 first year, $59.99/yr after.",type:"subs",displayName:"Premium Yearly",displayPrice:"$59.99",localizedPrice:"$59.99",currency:"USD",price:"59.99",platform:"android",subscriptionOffers:[{id:"premium-yearly-full-offer",displayPrice:"$29.99",price:29.99,type:"promotional",currency:"USD",basePlanIdAndroid:"premium-yearly-base",offerTokenAndroid:"mock_token_premium_yearly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P7D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:1,billingPeriod:"P1Y",formattedPrice:"$29.99",priceAmountMicros:"29990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"$59.99",priceAmountMicros:"59990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:7,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:7},discounts:[{identifier:"premium-yearly-full-offer",price:"29.99",numberOfPeriods:1,subscriptionPeriod:"YEAR"}],subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},{productId:"com.app.lifetime",id:"com.app.lifetime",title:"Lifetime",description:"One-time purchase for lifetime access.",type:"in-app",displayName:"Lifetime Access",displayPrice:"$99.99",localizedPrice:"$99.99",currency:"USD",price:"99.99",platform:"android",subscriptionOffers:[]}],"preset-3":[{productId:"com.app.budget.weekly",id:"com.app.budget.weekly",title:"Budget Weekly",description:"Affordable weekly plan.",type:"subs",displayName:"Budget Weekly",displayPrice:"€2.99",localizedPrice:"€2.99",currency:"EUR",price:"2.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"budget-weekly-trial-offer",displayPrice:"Free → €2.99",price:0,type:"promotional",currency:"EUR",basePlanIdAndroid:"budget-weekly-base",offerTokenAndroid:"mock_token_budget_weekly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P3D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"EUR",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1W",formattedPrice:"€2.99",priceAmountMicros:"2990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:3,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:3},subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1},{productId:"com.app.monthly.promo",id:"com.app.monthly.promo",title:"Monthly (70% off first 3 months)",description:"€2.99/mo for 3 months, then €9.99/mo.",type:"subs",displayName:"Monthly with Promo",displayPrice:"€9.99",localizedPrice:"€9.99",currency:"EUR",price:"9.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"monthly-promo-offer",displayPrice:"€2.99",price:2.99,type:"promotional",currency:"EUR",basePlanIdAndroid:"monthly-promo",offerTokenAndroid:"mock_token_monthly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:3,billingPeriod:"P1M",formattedPrice:"€2.99",priceAmountMicros:"2990000",priceCurrencyCode:"EUR",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"€9.99",priceAmountMicros:"9990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"2.99",priceIOS:"2.99",type:"pay_as_you_go",numberOfPeriods:3,subscriptionPeriod:"MONTH",subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.yearly.trial",id:"com.app.yearly.trial",title:"Yearly (14-day free trial)",description:"Try free for 14 days, then €29.99/yr.",type:"subs",displayName:"Yearly with Trial",displayPrice:"€29.99",localizedPrice:"€29.99",currency:"EUR",price:"29.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"yearly-trial-offer",displayPrice:"Free → €29.99",price:0,type:"promotional",currency:"EUR",basePlanIdAndroid:"yearly-trial",offerTokenAndroid:"mock_token_yearly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P14D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"EUR",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"€29.99",priceAmountMicros:"29990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:14,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:14},subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1}],"vpn-pro":[{productId:"com.vpn111.pro.weekly",title:"Pro Subscription (Weekly)",description:"Pro Subscription (Weekly)",localizedPrice:"₺179,99",price:"179.99",currency:"TRY",type:"subs",subscriptionOffers:[],discounts:[],subscriptionPeriodNumberIOS:7,subscriptionPeriodUnitIOS:"DAY",isConsumable:!1},{productId:"com.vpn111.pro.monthly",title:"Pro Subscription (Monthly)",description:"Pro Subscription (Monthly)",localizedPrice:"₺399,99",price:"399.99",currency:"TRY",type:"subs",subscriptionOffers:[],discounts:[],subscriptionPeriodNumberIOS:1,subscriptionPeriodUnitIOS:"MONTH",isConsumable:!1},{productId:"com.vpn111.pro.annual",title:"Pro Subscription (Annual)",description:"Pro Subscription (Annual)",localizedPrice:"₺1.999,99",price:"1999.99",currency:"TRY",type:"subs",subscriptionOffers:[{numberOfPeriodsIOS:1,paymentMode:"pay-up-front",type:"promotional",period:{value:1,unit:"year"},id:"one.year.discount.annual.offer",price:999.99,periodCount:1,displayPrice:"₺999,99",localizedPriceIOS:"₺999,99",offerId:"one.year.discount.annual.offer",localizedPrice:"₺999,99"},{numberOfPeriodsIOS:1,localizedPriceIOS:"₺149,99",displayPrice:"₺149,99",period:{value:1,unit:"month"},periodCount:1,id:"one.month.discount.annual.offer",type:"promotional",paymentMode:"pay-up-front",price:149.99,offerId:"one.month.discount.annual.offer",localizedPrice:"₺149,99"}],discounts:[{paymentMode:"pay-up-front",priceAmount:999.99,localizedPrice:"₺999,99",type:"promotional",subscriptionPeriod:"YEAR",numberOfPeriods:1,price:"999.99",identifier:"one.year.discount.annual.offer"},{numberOfPeriods:1,priceAmount:149.99,localizedPrice:"₺149,99",identifier:"one.month.discount.annual.offer",subscriptionPeriod:"MONTH",type:"promotional",paymentMode:"pay-up-front",price:"149.99"},{numberOfPeriods:1,type:"promotional",subscriptionPeriod:"YEAR",priceAmount:999.99,paymentMode:"pay-up-front",price:"999.99",localizedPrice:"₺999,99",identifier:"one.year.50discount.annual.offer"}],subscriptionPeriodNumberIOS:1,subscriptionPeriodUnitIOS:"YEAR",isConsumable:!1}]};function getMockProducts(){return JSON.parse(JSON.stringify(presetsJson$1))}function getMockProductsByPreset(e){return getMockProducts()[e]??[]}function usePaywallOptionParamsFactory(){const{localizationParams:e,otherParams:t}=useParams(),r=useRenderStore(e=>e.device),i=useLocalize(),n="ios"===r.platform?"ios":"android";return useCallback((r,{isSelected:o})=>{const a=buildPaywallLocalizationParams(r,n,void 0,i);return{localizationParams:{...e,...a,productSelected:o?"true":"false"},otherParams:{...t,singleProductIsSelected:o}}},[e,t,n,i])}function parseNumberLike$1(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function compareProducts(e,t,r,i){const n=parseNumberLike$1(e.price),o=parseNumberLike$1(t.price);if(void 0!==n&&void 0!==o&&n!==o)return n-o;const a=(e.title??"").trim(),s=(t.title??"").trim();if(a&&s&&a!==s)return a.localeCompare(s);if(a&&!s)return-1;if(!a&&s)return 1;const l=(e.productId??"").trim(),c=(t.productId??"").trim();return l!==c?l.localeCompare(c):r-i}function PaywallOptions({node:e}){useLogRender("PaywallOptions"),e=useNode(e);const{mockProducts:t}=useBuilderParams(),{selectedProduct:r,setSelectedProductId:i}=usePaywallContext(),n=usePaywallOptionParamsFactory(),o=useMemo(()=>(Array.isArray(t)?t:[]).map((e,t)=>({p:e,idx:t})).sort((e,t)=>compareProducts(e.p,t.p,e.idx,t.idx)).map(({p:e})=>e),[t]);return jsx(Fragment,{children:o.map((t,o)=>{const a=t.productId||`${o}`,s=r?.productId===a,{localizationParams:l,otherParams:c}=n(t,{isSelected:s});return jsx(ParamsProvider,{localizationParams:l,otherParams:c,children:jsx(PaywallOptionButton,{node:e,product:t,selected:s,onPress:i})},a)})})}var PaywallOptions$1=React.memo(PaywallOptions);function LocalizationParamsProvider({params:e,children:t}){return jsx(ParamsProvider,{localizationParams:e,nestedLocalizationParams:{},children:t})}function useChangeDelayByPaywall(e,t){const r=useMemo(()=>e?.attributes?.delay?parseInt(String(e?.attributes?.delay),10):1e3,[e?.attributes?.delay]);useEffect(()=>{if(!r||r<=0)return void t(!0);const e=setTimeout(()=>{t(!0)},r);return()=>clearTimeout(e)},[r,t])}function useMockOSBackHandler(e){useEffect(()=>registerMockOSBackHandler(()=>e),[e])}function PaywallProvider({node:e}){useLogRender("PaywallProvider"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"PaywallProvider",i=e.key??t,{mockBenefits:n,mockProducts:o,onPaywallSubscribe:a,previewMode:s,selectedKey:l}=useBuilderParams(),c=useMockOSContext(),d=useMemo(()=>{const e=n&&"object"==typeof n&&!Array.isArray(n)?n:{},t=Object.entries(e).filter(([e])=>e.trim().length>0),r=Object.fromEntries(t.map(([e,t])=>[e.trim(),String(t)]));for(let e=0;e<t.length;e+=1){const[,i]=t[e],n=String(i);r[`benefit${e+1}`]=n}return r},[n]),p=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!s,current:l?{key:l}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),[g,u]=useState(""),[h,m]=useState(!1);useChangeDelayByPaywall(e,m),useMockOSBackHandler(h),useEffect(()=>{const e=Array.isArray(o)?o:[];if(0===e.length)return void(g&&u(""));const t=e.some(e=>e?.productId===g);g&&t||u(e[0]?.productId??"")},[o,g]);const f=useMemo(()=>{const e=Array.isArray(o)?o:[];return e.find(e=>e?.productId===g)??(e.length>0?e[0]:void 0)},[o,g]),y=useRenderStore(e=>e.device),b=useLocalize(),C="ios"===y.platform?"ios":"android",x=usePaywallLocalizationParams(f,g,{platform:C,localize:b}),v=useCallback(()=>{if(h&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[c,h]),S=useCallback(async e=>{if(a){const t=a(e),r=t instanceof Promise?await t:!0===t;return r&&c?.isEnabled&&c.goBack?.(),r}const t=e?.productId;if(c?.isEnabled&&t&&c.requestSubscriptionPurchase){const e=await c.requestSubscriptionPurchase(t);return e&&c.goBack?.(),e}return!1},[c,a]),w=useCallback(()=>{if(h&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[h,c]),k=useMemo(()=>({products:Array.isArray(o)?o:[],setSelectedProductId:u,selectedProduct:f,onClose:v,onSubscribe:S,onCounterDown:w,isBackAllowed:h}),[o,f,v,S,w,h]);return jsx("div",{"attribute-name":r,"attribute-key":i,style:p,children:jsx(PaywallContext.Provider,{value:k,children:jsx(LocalizationParamsProvider,{params:{...d,...x,platform:C},children:jsx(RenderNode$1,{node:e.children})})})})}var PaywallProvider$1=React.memo(PaywallProvider);function PaywallSubscribeButton({node:e}){useLogRender("PaywallSubscribeButton"),e=useNode(e);const{onSubscribe:t,selectedProduct:r}=usePaywallContext(),i=useId(),n=e.sourceType??e.type??"PaywallSubscribeButton",o=e.key??i,{previewMode:a,selectedKey:s}=useBuilderParams(),l=useMergedStyle(useExtractTextStyle$1(e),isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),c=useLocalize(),d="string"==typeof e.children&&e.children.trim().length>0?e.children:"Subscribe";return jsx("a",{type:"button","attribute-name":n,"attribute-key":o,href:"#",onClick:e=>{e.preventDefault(),t?.(r)},style:{...l,cursor:"pointer"},children:c(d)})}var PaywallSubscribeButton$1=React.memo(PaywallSubscribeButton);function PriceTag({node:e}){useLogRender("PriceTag"),e=useNode(e);const t=useLocalizationParams(),r=!!t?.promoPrice;return(e.attributes?.hideIfItsNotDiscount??!1)&&!r?null:jsx(Text$1,{node:e})}var PriceTag$1=React.memo(PriceTag);function Pricing({node:e}){return useLogRender("Pricing"),e=useNode(e),jsx(Text$1,{node:e})}var Pricing$1=React.memo(Pricing);function Promo({node:e}){return useLogRender("Promo"),e=useNode(e),jsx(Text$1,{node:e})}var Promo$1=React.memo(Promo);function parseNumberLike(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function RadioButtonBase({selected:e,color:t,size:r=24}){const i=Math.round(.1*r),n=Math.round(.5*r),{projectColors:o}=useBuilderParams(),a=t??o?.STATIC_COLORS?.RADIO_BUTTON_COLOR??"#A6A6A6",s=useContext(ParamsContext),{singleProductIsSelected:l}=s?.otherParams??{};return jsx("div",{style:{marginLeft:8,marginRight:16},children:jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",borderWidth:i,borderStyle:"solid",borderColor:a,width:r,height:r,borderRadius:n,boxSizing:"border-box",flex:"0 0 auto"},children:jsx("div",l??e?{style:{width:n,height:n,borderRadius:2*n,backgroundColor:a}}:{style:{width:r,height:r,borderRadius:n}})})})}function RadioButton({node:e}){useLogRender("RadioButton"),e=useNode(e);const t=useId(),r=e.type??"RadioButton",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),s=e.attributes,l=Boolean(s?.selected),c=s?.color,d=parseNumberLike(s?.size);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:jsx(RadioButtonBase,{selected:l,color:c,size:d})})}var RadioButton$1=React.memo(RadioButton);function Separator({node:e}){useLogRender("Separator"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"Separator",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a})}var Separator$1=React.memo(Separator);function StatusBarColor({node:e}){useLogRender("StatusBarColor"),e=useNode(e);const{selectedTheme:t,projectColors:r}=useBuilderParams(),i=useRenderStore(e=>e.setStatusBarOverrideColor),n=useRenderStore(e=>e.setStatusBarOverrideTranslucent),o=getStyleBag(e.attributes)?.backgroundColor,a=parseColor(o,{projectColors:r,theme:t}),s=e.attributes?.translucent;return useEffect(()=>(a&&i(a),void 0!==s&&n(s),()=>{i(null),n(null)}),[a,i,s,n]),null}var StatusBarColor$1=React.memo(StatusBarColor);function View({node:e}){useLogRender("View"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"View",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:e.children&&jsx(RenderNode$1,{node:e.children})})}var View$1=React.memo(View);function WebView({node:e}){useLogRender("WebView");const t=(e=useNode(e)).attributes,r=useExtractViewStyle$1(e),{selectedTheme:i,projectColors:n,device:o}=useBuilderParams(),a=useRef(null),[s,l]=useState(!0),c="ios"===(o?.platform||"ios")?t?.iosUrl:t?.androidUrl,d=i??"dark",p={projectColors:n,theme:i},g=parseColor("THEME_COLORS.BACKGROUND",p)??parseColor("STATIC_COLORS.WHITE",p)??void 0,u=parseColor("THEME_COLORS.TEXT",p)??parseColor("STATIC_COLORS.BLACK",p)??void 0,h=parseColor(t?.styles?.loaderColor,p)??u,m=t?.styles?.loaderSize??30,f=t?.styles?.loaderBorderWidth??3,y=t?.styles?.loaderAnimationDuration??1,b=useMergedStyle(null!=g?{backgroundColor:g}:void 0,null!=u?{color:u}:void 0),C=useMergedStyle(r,b,{"--rb-webview-loader-size":`${m}px`,"--rb-webview-loader-border-width":`${f}px`,"--rb-webview-loader-duration":`${y}s`}),x=useMergedStyle(b),v=useMergedStyle(b,{flex:1,minHeight:0}),S=useCallback(()=>{if(null==g||null==u)return;const e=a.current?.contentDocument;if(!e?.head)return void(c&&console.debug("[WebView] Theme styles not injected: contentDocument not accessible (cross-origin).","URL:",c,"— Use same-origin URL or rely on the wrapper filter for dark mode."));const t=e.querySelector("style[data-rb-webview-theme]"),r=[`body{background-color:${g};color:${u}}`,`*{color:${u}}`,`span{background-color:${g}}`].join(" ");if(t)t.textContent=r;else{const t=e.createElement("style");t.setAttribute("data-rb-webview-theme",""),t.textContent=r,e.head.appendChild(t)}},[g,u,c]),w=useCallback(()=>{l(!1),S()},[S]);useEffect(()=>{s||S()},[i,g,u,s,S]);const k="dark"===d;return jsxs("div",{className:"rb-webview",style:C,"data-testid":t?.testID,children:[s&&jsx("div",{className:"rb-webview__overlay",style:x,children:jsx("div",{className:"rb-webview__loader",style:{borderColor:null!=h?`${h}40`:void 0,borderTopColor:h??void 0}})}),jsx("div",{className:"rb-webview__frame-wrapper",style:v,children:jsx("div",{className:"rb-webview__frame-inner",style:k?{width:"100%",height:"100%",filter:"invert(1) hue-rotate(180deg)"}:{width:"100%",height:"100%"},children:jsx("iframe",{ref:a,src:c,className:"rb-webview__frame",style:{opacity:s?0:1,backgroundColor:"transparent"},onLoad:w,title:"WebView Content"})})})]})}function RenderNode({node:e}){if(isNodeNullOrUndefined(e))return null;if(isNodeString(e))return jsx(Text,{node:{children:e,type:"Text"}});if(isNodeArray(e))return jsx(Fragment,{children:e.map((e,t)=>jsx(RenderNode,{node:e},t))});const t="string"==typeof e?.type?e.type:"unknown",r=normalizeComponentType(t)??t,i={...e,type:r};switch(i.type){case"BIcon":return jsx(BIcon,{node:i});case"BackgroundImage":return jsx(BackgroundImage,{node:i});case"Button":return jsx(Button,{node:i});case"Carousel":return jsx(Carousel$1,{node:i});case"CarouselButtons":return jsx(CarouselButtons$1,{node:i});case"CarouselDots":return jsx(CarouselDots$1,{node:i});case"CarouselItem":return jsx(CarouselItem,{node:i});case"CarouselProvider":return jsx(CarouselProvider$1,{node:i});case"Checkbox":return jsx(Checkbox$1,{node:i});case"CountDown":return jsx(CountDown,{node:i});case"FormCheckbox":return jsx(FormCheckbox,{node:i});case"FormErrorText":return jsx(FormErrorText,{node:i});case"FormProvider":return jsx(FormProvider,{node:i});case"FormSubmitButton":return jsx(FormSubmitButton,{node:i});case"Image":return jsx(Image$2,{node:i});case"Main":return jsx(Main$1,{node:i});case"NavigationBarColor":return jsx(NavigationBarColor$1,{node:i});case"Onboard":return jsx(Onboard$1,{node:i});case"OnboardButton":return jsx(OnboardButton,{node:i});case"OnboardButtons":return jsx(OnboardButtons$1,{node:i});case"OnboardDot":return jsx(OnboardDot,{node:i});case"OnboardFooter":return jsx(OnboardFooter$1,{node:i});case"OnboardImage":return jsx(OnboardImage$1,{node:i});case"OnboardItem":return jsx(OnboardItem$1,{node:i});case"OnboardProvider":return jsx(OnboardProvider$1,{node:i});case"OnboardSubtitle":return jsx(OnboardSubtitle$1,{node:i});case"OnboardTitle":return jsx(OnboardTitle$1,{node:i});case"PaywallBackground":return jsx(PaywallBackground$1,{node:i});case"PaywallCloseButton":return jsx(PaywallCloseButton,{node:i});case"PaywallFooter":return jsx(PaywallFooter$1,{node:i});case"PaywallOptions":return jsx(PaywallOptions$1,{node:i});case"PaywallProvider":return jsx(PaywallProvider$1,{node:i});case"PaywallSubscribeButton":return jsx(PaywallSubscribeButton$1,{node:i});case"PriceTag":return jsx(PriceTag$1,{node:i});case"Pricing":return jsx(Pricing$1,{node:i});case"Promo":return jsx(Promo$1,{node:i});case"RadioButton":return jsx(RadioButton$1,{node:i});case"Separator":return jsx(Separator$1,{node:i});case"StatusBarColor":return jsx(StatusBarColor$1,{node:i});case"SystemButton":return jsx(SystemButton,{node:i});case"Text":return jsx(Text,{node:i});case"View":return jsx(View$1,{node:i});case"WebView":return jsx(WebView,{node:i});default:return other(t,e)}}var RenderNode$1=React.memo(RenderNode);const allcomponentNames=["BIcon","BackgroundImage","Button","Carousel","CarouselButtons","CarouselDots","CarouselItem","CarouselProvider","Checkbox","CountDown","FormCheckbox","FormErrorText","FormProvider","FormSubmitButton","Image","Main","NavigationBarColor","Onboard","OnboardButton","OnboardButtons","OnboardDot","OnboardFooter","OnboardImage","OnboardItem","OnboardProvider","OnboardSubtitle","OnboardTitle","PaywallBackground","PaywallCloseButton","PaywallFooter","PaywallOptions","PaywallProvider","PaywallSubscribeButton","PriceTag","Pricing","Promo","RadioButton","Separator","StatusBarColor","SystemButton","Text","View","WebView"];class RenderErrorBoundary extends React.Component{constructor(){super(...arguments),this.state={error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null},this.copyDetails=async()=>{const e=this.buildDetails();try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),this.setState({copied:!0,copyError:null}),void window.setTimeout(()=>this.setState({copied:!1}),900)}catch{}try{if("undefined"==typeof document)return void this.setState({copied:!1,copyError:"Copy failed"});const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");if(document.body.removeChild(t),!r)return void this.setState({copied:!1,copyError:"Copy failed"});this.setState({copied:!0,copyError:null}),window.setTimeout(()=>this.setState({copied:!1}),900)}catch(e){this.setState({copied:!1,copyError:e instanceof Error?e.message:"Copy failed"})}},this.reset=()=>{this.setState({error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null})}}static getDerivedStateFromError(e){return{error:e,errorStack:e?.stack,copied:!1,copyError:null}}componentDidCatch(e,t){const r=t.componentStack??void 0;this.setState({error:e,errorStack:e?.stack,componentStack:r}),this.props.onError?.(e,r)}buildDetails(){const{error:e,errorStack:t,componentStack:r}=this.state;return[`Error: ${e?.message??""}`,"",t?`Stack:\n${t}`:"Stack: (missing)","",r?`React component stack:\n${r}`:"React component stack: (missing)"].join("\n")}render(){const{error:e,copied:t,copyError:r}=this.state;if(!e)return this.props.children;const i=this.buildDetails();return jsxs("div",{role:"alert",style:{padding:16,borderRadius:12,background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",color:"hsl(var(--card-foreground, var(--rb-card-foreground, 220.9 39.3% 11%)))",border:"1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)) / 0.9)"},children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("div",{style:{fontWeight:700},children:"Preview crashed"}),this.props.subtitle&&jsxs("div",{style:{opacity:.8,fontSize:12},children:["(",this.props.subtitle,")"]}),jsxs("div",{style:{marginLeft:"auto",display:"flex",gap:8},children:[jsx("button",{type:"button",className:"editor-button",onClick:this.copyDetails,children:t?"Copied":"Copy details"}),jsx("button",{type:"button",className:"editor-button",onClick:this.reset,children:"Try again"})]})]}),r&&jsx("div",{style:{marginTop:8,color:"hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)))",fontSize:12},children:r}),jsx("pre",{style:{marginTop:12,whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.4,background:"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))",padding:12,borderRadius:10,overflow:"auto",maxHeight:360},children:i})]})}}function findNodeByKeyNested(e,t){if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKeyNested(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKeyNested(r.children,t):null}function usePreviewSelection({previewMode:e,data:t,rootRef:r,onSelectNode:i,setCurrent:n,forceRender:o}){useEffect(()=>{if(!e)return;const o=r.current;if(!o)return;const a=e=>{const r=e.target;if(!r)return;if(r.closest(".embla__dot"))return;let o=r.closest("[attribute-key]");for(;o;){const e=o.getAttribute("attribute-key");if(e){const r=findNodeByKeyNested(t,e);if(r)return n(r),void i?.(r)}o=o.parentElement?.closest("[attribute-key]")??null}};return o.addEventListener("click",a),()=>{o.removeEventListener("click",a)}},[e,t,i,n,o,r])}function isNullish(e){return null==e}function RenderPage({data:e,name:t,onSelectNode:r,params:i}){useLogRender("RenderPage");const{products:n,benefits:o,selectedTheme:a,selectedLanguage:s,overrideLocalization:l,overrideBaseSize:c,overrideProjectColors:d,overrideFonts:p,appFont:g,previewMode:u,current:h,forceRender:m,device:f,setCurrent:y}=useRenderStore(e=>({products:e.products,benefits:e.benefits,selectedTheme:e.theme,selectedLanguage:e.defaultLanguage,overrideLocalization:e.localization,overrideBaseSize:e.baseSize,device:e.device,overrideProjectColors:e.projectColors,overrideFonts:e.fonts,appFont:e.appFont,previewMode:e.previewMode,current:e.current,forceRender:e.forceRender,setCurrent:e.setCurrent})),b=useRef(null),C=useRef(!1),x=isNullish(e);return usePreviewSelection({previewMode:!!u,data:e,rootRef:b,onSelectNode:r,setCurrent:y,forceRender:m}),useEffect(()=>{if(C.current)return;const e=l?Object.keys(l):[],t=!l||0===e.length||JSON.stringify(l)===JSON.stringify(defaultLocalization),r=!d||JSON.stringify(d)===JSON.stringify(defaultProjectColors);if(t||r){const e=[];t&&e.push("localization"),r&&e.push("projectColors"),C.current=!0,console.warn(`[RenderPage] ⚠️ Using default ${e.join(" & ")}. Provide overrides via the store or params to avoid fallback values.`)}},[l,d]),jsx(RenderErrorBoundary,{subtitle:"caught by RenderPage",children:jsx(BuilderProvider,{params:{selectedTheme:a,selectedLanguage:s,localization:l,baseSize:c,mockProducts:n,mockBenefits:o,projectColors:d??void 0,fonts:p,previewMode:u,selectedKey:h&&"object"==typeof h&&"key"in h?h.key:void 0,device:f,...i},children:jsx(DeviceMockFrame,{appName:t,children:jsxs("div",{className:"screen-preview",ref:b,style:{fontFamily:g?`"${g}"`:void 0},children:[isNullish(e)?null:jsx(RenderNode$1,{node:e}),x&&jsx("div",{className:"rb-empty-preview","aria-hidden":"true",children:jsxs("div",{className:"rb-empty-preview__card",children:[jsx("div",{className:"rb-empty-preview__title",children:"Empty screen"}),jsx("div",{className:"rb-empty-preview__hint",children:"Add a component to start"})]})})]})})})})}function copyNode(e){const{setCopiedNode:t}=useRenderStore.getState();t(e)}function isNodeDataLike(e){if("object"!=typeof e||null===e||Array.isArray(e))return!1;return"type"in e&&"children"in e}function normalizeKey(e){if("string"!=typeof e)return;const t=e.trim();return t.length>0?t:void 0}function collectNodeKeysInto(e,t){if(null==e)return;if("string"==typeof e)return;if(Array.isArray(e))return void e.forEach(e=>collectNodeKeysInto(e,t));if(!isNodeDataLike(e))return;const r=normalizeKey(e.key);r&&t.add(r),collectNodeKeysInto(e.children,t)}function collectNodeKeys(e){const t=new Set;return collectNodeKeysInto(e,t),t}function generateUniqueKey(e,t){let r="";do{r=generateRandomKeyForNode(e||"Node")}while(t.has(r));return r}function repairNodeKeys(e,t=new Set){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=e.map(e=>{const i=repairNodeKeys(e,t);return i!==e&&(r=!0),i});return r?i:e}if(!isNodeDataLike(e))return e;const r=e,i=normalizeKey(r.key),n=!i||t.has(i)?generateUniqueKey(r.type,t):i;t.add(n);const o=r.children,a=repairNodeKeys(o,t);return n!==i||a!==o?{...r,key:n,children:a}:e}const platformIcons={android:getImage(TribeAssetName.Android),ios:getImage(TribeAssetName.Apple)};function DeviceButton({device:e,selectedDevice:t,onSelect:r,isFavorite:i,onToggleFavorite:n,onEdit:o}){const a=platformIcons[e.platform],s=e.aspect??(()=>{const t=e.height/e.width;return t>=2.05?"tall":t<=1.75?"wide":"regular"})();return jsxs("button",{type:"button",className:"editor-device-button"+(t===e?" editor-device-button--selected":""),onClick:()=>r(e),children:[n&&jsx("span",{className:"editor-device-button__favorite",onClick:t=>{t.stopPropagation(),n(e,t)},title:i?"Remove from favorites":"Add to favorites",style:{position:"absolute",top:4,right:4,cursor:"pointer",opacity:i?1:.3,color:i?"#ecc538":"currentColor"},children:jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:i?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})}),e.name," ",jsx("br",{}),e.width,"×",e.height," (",s,")",a&&jsx("span",{className:"editor-device-button__platform",children:jsx("img",{src:a,alt:"","aria-hidden":"true"})}),o&&jsx("span",{className:"editor-device-button__edit",onClick:t=>{t.stopPropagation(),o(e,t)},title:"Edit device",style:{position:"absolute",bottom:4,left:4,cursor:"pointer",opacity:.5},children:jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})})]})}function Modal({onClose:e,ariaLabelledBy:t,children:r,className:i,contentClassName:n,closeOnOverlayClick:o=!0,closeOnEsc:a=!0}){useEffect(()=>{if(!a)return;if("undefined"==typeof window)return;const t=t=>{"Escape"===t.key&&e()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,e]);const s=jsxs("div",{className:"modal"+(i?` ${i}`:""),role:"dialog","aria-modal":"true","aria-labelledby":t,children:[jsx("div",{className:"modal__overlay",onClick:o?t=>{t.target===t.currentTarget&&e()}:void 0}),jsx("div",{className:"modal__content"+(n?` ${n}`:""),role:"document",children:r})]});return"undefined"==typeof document?s:createPortal(s,document.body)}const identity=e=>e;function useStore(e,t=identity){const r=React.useSyncExternalStore(e.subscribe,React.useCallback(()=>t(e.getState()),[e,t]),React.useCallback(()=>t(e.getInitialState()),[e,t]));return React.useDebugValue(r),r}const createImpl=e=>{const t=createStore(e),r=e=>useStore(t,e);return Object.assign(r,t),r},create=e=>createImpl,useCustomDeviceStore=create()(persist(e=>({customDevices:[],addCustomDevice:t=>e(e=>({customDevices:[t,...e.customDevices.filter(e=>e.name!==t.name)]})),removeCustomDevice:t=>e(e=>({customDevices:e.customDevices.filter(e=>e.name!==t)})),updateCustomDevice:(t,r)=>e(e=>({customDevices:e.customDevices.map(e=>e.name===t?r:e)}))}),{name:"custom-devices-storage"}));function CreateDeviceModal({onClose:e,onSuccess:t,deviceToEdit:r}){const{addCustomDevice:i,updateCustomDevice:n}=useCustomDeviceStore(),{register:o,handleSubmit:a,watch:s,formState:{errors:l}}=useForm({defaultValues:r?{name:r.name,platform:r.platform,type:r.type,width:r.width,height:r.height,insetTop:r.insets?.[0]??0,insetRight:r.insets?.[1]??0,insetBottom:r.insets?.[2]??0,insetLeft:r.insets?.[3]??0,navigationBarType:r.navigationBarType,radius:r.radius,importance:r.importance,multiplier:r.multiplier}:{platform:"ios",type:"phone",navigationBarType:"homeIndicator",width:375,height:812,insetTop:44,insetBottom:34,insetLeft:0,insetRight:0,radius:40,importance:10,multiplier:1}}),c=s("platform");return jsxs(Modal,{onClose:e,ariaLabelledBy:"create-device-title",contentClassName:"create-device-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"create-device-title",className:"modal__title",children:r?"Edit Custom Device":"Create Custom Device"}),jsx("button",{type:"button",className:"editor-button",onClick:e,children:"Cancel"})]}),jsxs("form",{onSubmit:a(o=>{const a={name:o.name,platform:o.platform,width:Number(o.width),height:Number(o.height),type:o.type,radius:Number(o.radius),insets:[Number(o.insetTop),Number(o.insetRight),Number(o.insetBottom),Number(o.insetLeft)],navigationBarType:o.navigationBarType,aspect:(()=>{const e=Number(o.height)/Number(o.width);return e>=2.05?"tall":e<=1.75?"wide":"regular"})(),importance:Number(o.importance),multiplier:Number(o.multiplier)};r?n(r.name,a):i(a),t(a),e()}),className:"modal__body create-device-form",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Device Name"}),jsx("input",{...o("name",{required:"Name is required"}),className:"editor-input",placeholder:"e.g. My Custom iPhone"}),l.name&&jsx("span",{className:"create-device-form__error",children:l.name.message})]}),jsxs("div",{className:"create-device-form__row",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Platform"}),jsxs("select",{...o("platform"),className:"editor-input",children:[jsx("option",{value:"ios",children:"iOS"}),jsx("option",{value:"android",children:"Android"})]})]}),jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Type"}),jsxs("select",{...o("type"),className:"editor-input",children:[jsx("option",{value:"phone",children:"Phone"}),jsx("option",{value:"tablet",children:"Tablet"})]})]})]}),jsxs("div",{className:"create-device-form__row",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Width (px)"}),jsx("input",{type:"number",...o("width",{required:!0,min:1}),className:"editor-input"})]}),jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Height (px)"}),jsx("input",{type:"number",...o("height",{required:!0,min:1}),className:"editor-input"})]})]}),jsxs("div",{className:"create-device-form__row",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Safe Area Top"}),jsx("input",{type:"number",...o("insetTop",{min:0}),className:"editor-input"})]}),jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Safe Area Bottom"}),jsx("input",{type:"number",...o("insetBottom",{min:0}),className:"editor-input"})]})]}),jsxs("div",{className:"create-device-form__row",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Navigation Bar"}),jsxs("select",{...o("navigationBarType"),className:"editor-input",children:[jsx("option",{value:"none",children:"None"}),jsxs(Fragment,"ios"===c?{children:[jsx("option",{value:"homeIndicator",children:"Home Indicator"}),jsx("option",{value:"tabBar",children:"Tab Bar"})]}:{children:[jsx("option",{value:"threeButtons",children:"Three Buttons"}),jsx("option",{value:"gesture",children:"Gesture"})]})]})]}),jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Corner Radius"}),jsx("input",{type:"number",...o("radius",{min:0}),className:"editor-input"})]})]}),jsxs("div",{className:"create-device-form__row",children:[jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Scale Multiplier"}),jsx("input",{type:"number",step:"0.01",...o("multiplier",{min:.1,max:2}),className:"editor-input"})]}),jsxs("div",{className:"create-device-form__group",children:[jsx("label",{className:"create-device-form__label",children:"Importance (1-100)"}),jsx("input",{type:"number",...o("importance",{min:1,max:100}),className:"editor-input"})]})]}),jsx("div",{className:"create-device-modal__footer",children:jsx("button",{type:"submit",className:"editor-button editor-button--primary",style:{width:"100%"},children:r?"Update Device":"Save Device"})})]})]})}function DeviceSelectorModal({devices:e,selectedDevice:t,onSelect:r,onClose:i}){const[n,o]=useState(""),[a,s]=useState(!1),[l,c]=useState(null),{favoriteDevices:d,toggleFavoriteDevice:p}=useRenderStore(e=>({favoriteDevices:e.favoriteDevices||[],toggleFavoriteDevice:e.toggleFavoriteDevice})),{customDevices:g,removeCustomDevice:u}=useCustomDeviceStore(),h=useMemo(()=>[...g,...e],[g,e]),m=e=>{r(e),i()},f=useMemo(()=>h.filter(e=>e.name.toLowerCase().includes(n.toLowerCase())),[h,n]),{favorites:y,others:b}=useMemo(()=>{const e=[],t=[];return f.forEach(r=>{d.includes(r.name)?e.push(r):t.push(r)}),{favorites:e,others:t}},[f,d]);return jsxs(Modal,{onClose:i,ariaLabelledBy:"device-selector-title",contentClassName:"device-selector-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"device-selector-title",className:"modal__title",children:"Select a device"}),jsx("button",{type:"button",className:"editor-button","aria-label":"Close device selector",onClick:i,children:"Close"})]}),jsxs("div",{className:"device-selector-modal__search-container",children:[jsx("input",{type:"text",placeholder:"Search devices...",value:n,onChange:e=>o(e.target.value),className:"editor-input"}),jsx("button",{type:"button",className:"editor-button editor-button--primary",onClick:()=>s(!0),children:"Add New"})]}),jsxs("div",{className:"device-selector-modal__body",style:{display:"flex",flexDirection:"column",gap:"16px"},children:[y.length>0&&jsxs("section",{children:[jsx("h4",{style:{margin:"0 16px 8px",fontSize:"14px",fontWeight:"bold"},children:"Favorites"}),jsx("div",{className:"device-selector-modal__grid",role:"list",children:y.map(e=>jsx(DeviceButton,{device:e,selectedDevice:t,onSelect:m,isFavorite:!0,onToggleFavorite:e=>p(e.name),onEdit:e=>c(e)},`fav-${e.name}`))})]}),jsxs("section",{children:[y.length>0&&jsx("h4",{style:{margin:"0 16px 8px",fontSize:"14px",fontWeight:"bold"},children:"All Devices"}),jsx("div",{className:"device-selector-modal__grid",role:"list",children:b.map(e=>jsx(DeviceButton,{device:e,selectedDevice:t,onSelect:m,isFavorite:!1,onToggleFavorite:e=>p(e.name),onEdit:g.some(t=>t.name===e.name)?e=>c(e):void 0},`other-${e.name}`))})]})]}),a&&jsx(CreateDeviceModal,{onClose:()=>s(!1),onSuccess:e=>{r(e),i()}}),l&&jsx(CreateDeviceModal,{deviceToEdit:l,onClose:()=>c(null),onSuccess:e=>{r(e),i()}})]})}var name$m="hello-world",version$m="1.1.2",type$m="other",data$m={type:"View",attributes:{scrollable:!0,description:"View element 1 in sample.",title:"View 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:16,backgroundColor:"#F5F7FA"},testID:"View-test-id-1"},children:[{type:"Text",children:"hello-world",attributes:{description:"Text element 1 in sample.",title:"Text 1",styles:{color:"#111827",fontSize:24,fontWeight:"600"},testID:"Text-test-id-1"}},{type:"Text",children:"Welcome to react-native-builder",attributes:{description:"Text element 2 in sample.",title:"Text 2",styles:{color:"#6B7280",fontSize:14,fontWeight:"400"},testID:"Text-test-id-2"}}]},attributes$k={testID:"other-test-id-1"},simple1={name:name$m,version:version$m,type:type$m,data:data$m,attributes:attributes$k},name$l="hello-world-2-advanced",version$l="1.1.2",type$l="other",data$l={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",gap:16,padding:16,backgroundColor:"#F3F4F6"},testID:"view-test-id-1"},children:[{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#111827",borderRadius:12},testID:"view-test-id-2"},children:[{type:"text",children:"Dashboard",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{color:"#FFFFFF",fontSize:20,fontWeight:"600"},testID:"text-test-id-1"}},{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{flexDirection:"row",gap:8},testID:"view-test-id-3"},children:[{type:"text",children:"Help",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{color:"#D1D5DB",fontSize:14},testID:"text-test-id-2"}},{type:"text",children:"Profile",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{color:"#D1D5DB",fontSize:14},testID:"text-test-id-3"}}]}]},{type:"image",attributes:{src:"https://picsum.photos/720/320",description:"image element 1 in sample.",title:"image 1",styles:{width:358,height:160,borderRadius:12},testID:"image-test-id-1"},children:null},{type:"view",attributes:{description:"view element 4 in sample.",title:"view 4",styles:{flexDirection:"column",gap:8,padding:12,backgroundColor:"#FFFFFF",borderRadius:12},testID:"view-test-id-4"},children:[{type:"text",children:"Welcome back!",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{color:"#111827",fontSize:18,fontWeight:"600"},testID:"text-test-id-4"}},{type:"text",children:"Here's what's new today.",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{color:"#6B7280",fontSize:14},testID:"text-test-id-5"}}]},{type:"view",attributes:{description:"view element 5 in sample.",title:"view 5",styles:{flexDirection:"column",gap:12},testID:"view-test-id-5"},children:[{type:"view",attributes:{description:"view element 6 in sample.",title:"view 6",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},testID:"view-test-id-6"},children:[{type:"text",children:"Task 1",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{color:"#111827",fontSize:16,fontWeight:"500"},testID:"text-test-id-6"}},{type:"text",children:"Due today",attributes:{description:"text element 7 in sample.",title:"text 7",styles:{color:"#059669",fontSize:12,fontWeight:"600"},testID:"text-test-id-7"}}]},{type:"view",attributes:{description:"view element 7 in sample.",title:"view 7",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},testID:"view-test-id-7"},children:[{type:"text",children:"Task 2",attributes:{description:"text element 8 in sample.",title:"text 8",styles:{color:"#111827",fontSize:16,fontWeight:"500"},testID:"text-test-id-8"}},{type:"text",children:"2 days left",attributes:{description:"text element 9 in sample.",title:"text 9",styles:{color:"#D97706",fontSize:12,fontWeight:"600"},testID:"text-test-id-9"}}]},{type:"view",attributes:{description:"view element 8 in sample.",title:"view 8",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},testID:"view-test-id-8"},children:[{type:"text",children:"Task 3",attributes:{description:"text element 10 in sample.",title:"text 10",styles:{color:"#111827",fontSize:16,fontWeight:"500"},testID:"text-test-id-10"}},{type:"text",children:"Completed",attributes:{description:"text element 11 in sample.",title:"text 11",styles:{color:"#6B7280",fontSize:12,fontWeight:"600"},testID:"text-test-id-11"}}]}]},{type:"view",attributes:{description:"view element 9 in sample.",title:"view 9",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",padding:12,backgroundColor:"#111827",borderRadius:12},testID:"view-test-id-9"},children:[{type:"text",children:"Home",attributes:{description:"text element 12 in sample.",title:"text 12",styles:{color:"#FFFFFF",fontSize:14},testID:"text-test-id-12"}},{type:"text",children:"Search",attributes:{description:"text element 13 in sample.",title:"text 13",styles:{color:"#9CA3AF",fontSize:14},testID:"text-test-id-13"}},{type:"text",children:"Settings",attributes:{description:"text element 14 in sample.",title:"text 14",styles:{color:"#9CA3AF",fontSize:14},testID:"text-test-id-14"}}]}]},attributes$j={testID:"other-test-id-1"},simple2={name:name$l,version:version$l,type:type$l,data:data$l,attributes:attributes$j},name$k="carousel-sample",version$k="1.1.2",type$k="other",data$k={type:"Main",isMain:!0,attributes:{styles:{backgroundColor:"#f8fafc",minHeight:"100vh",padding:"24px"},testID:"Main-test-id-1"},children:{type:"carouselProvider",children:[{type:"carousel",attributes:{loop:!0,align:"center",dragFree:!0,description:"carousel element 1 in sample.",title:"carousel 1",testID:"carousel-test-id-1"},children:[{type:"carouselItem",attributes:{description:"carouselItem element 1 in sample.",title:"carouselItem 1",styles:{minWidth:0},testID:"carouselItem-test-id-1"},children:{type:"view",attributes:{description:"view element 1 in sample.",title:"view 1",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #eef2ff 0%, #ffffff 55%, #ecfeff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"},testID:"view-test-id-1"},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14},testID:"image-test-id-1"},key:"image-49ojfyhl4d7"},{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"},testID:"text-test-id-1"},children:"Welcome aboard",key:"text-3ougfj4mxnh"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8},testID:"text-test-id-2"},children:"Swipe through a beautiful, validated carousel sample with images.",key:"text-2dol8grshke"}],key:"view-a8hfkdvfy7"},key:"carouselItem-5bw9x33s7ie"},{type:"carouselItem",attributes:{description:"carouselItem element 2 in sample.",title:"carouselItem 2",styles:{minWidth:0},testID:"carouselItem-test-id-2"},children:{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%, #eff6ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"},testID:"view-test-id-2"},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14},testID:"image-test-id-2"},key:"image-riwntk91k9"},{type:"text",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"},testID:"text-test-id-3"},children:"Discover features",key:"text-hmuk6f7ml4v"},{type:"text",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8},testID:"text-test-id-4"},children:"Dots + buttons are included, and slide sizing comes from the carousel CSS.",key:"text-dnhhoqiiri"}],key:"view-9hyw3wys30w"},key:"carouselItem-lyq2hr0qh8h"},{type:"carouselItem",attributes:{description:"carouselItem element 3 in sample.",title:"carouselItem 3",styles:{minWidth:0},testID:"carouselItem-test-id-3"},children:{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f5f3ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"},testID:"view-test-id-3"},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14},testID:"image-test-id-3"},key:"image-j9ru3r8g7km"},{type:"text",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"},testID:"text-test-id-5"},children:"Get started",key:"text-01u3fwwtkd8p"},{type:"text",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8},testID:"text-test-id-6"},children:"This sample stays within validation rules (no string flex shorthand).",key:"text-w8rwg9y1hj"}],key:"view-tsjfbzn8kdj"},key:"carouselItem-6r53yswjyee"}],key:"carousel-2qa4gn0ms32"},{type:"view",attributes:{title:"Carousel Controls",description:"carousel controls view element in sample.",styles:{flex:1,gap:24,alignItems:"center",paddingTop:32},testID:"view-test-id-4"},children:[{type:"carouselDots",attributes:{dotType:"expanding_dot",testID:"carouselDots-test-id-1"},key:"carouselDots-r5ji67uoxxg"},{type:"view",attributes:{title:"Nav Buttons",description:"navigation buttons wrapper",styles:{flexDirection:"row",gap:12,alignItems:"center",justifyContent:"center"},testID:"view-test-id-5"},children:[{type:"carouselButtons",attributes:{buttonType:["previous_button"],styles:{backgroundColor:"#6366f1",borderRadius:12,padding:"12px 24px",minWidth:100},testID:"carouselButtons-test-id-1"},key:"carouselButtons-prev"},{type:"carouselButtons",attributes:{buttonType:["next_button"],styles:{backgroundColor:"#8b5cf6",borderRadius:12,padding:"12px 24px",minWidth:100},testID:"carouselButtons-test-id-2"},key:"carouselButtons-next"}],key:"view-nav-buttons"}],key:"view-controls-wrapper"}],attributes:{description:"carouselProvider element 1 in sample.",title:"carouselProvider 1",styles:{backgroundColor:"#ffffff",borderRadius:24,padding:"32px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.08)",maxWidth:"600px",margin:"0 auto"},testID:"carouselProvider-test-id-1"},key:"carouselProvider-152n4dkqvam"},key:"Main-u1cavjag9sr"},attributes$i={testID:"other-test-id-1"},carouselSample={name:name$k,version:version$k,type:type$k,data:data$k,attributes:attributes$i},name$j="unvalidated-builder1",version$j="1.1.2",type$j="other",data$j={type:"view",attributes:{foo:1,scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"},testID:"view-test-id-1"},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"},testID:"text-test-id-1"},children:"Intentionally unvalidated sample"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8},testID:"text-test-id-2"},children:"This project should fail validation (unknown attribute: foo). In the UI, choose “Continue without validation” to load it anyway."}]},attributes$h={testID:"other-test-id-1"},unvalidatedBuilder1={name:name$j,version:version$j,type:type$j,data:data$j,attributes:attributes$h},name$i="unvalidated-crash1",version$i="1.1.2",type$i="other",data$i={type:"OnboardFooter",attributes:{textLocalizationKey:123,description:"OnboardFooter element 1 in sample.",title:"OnboardFooter 1",styles:{paddingHorizontal:24,paddingVertical:16},testID:"OnboardFooter-test-id-1"},children:null},attributes$g={testID:"other-test-id-1"},unvalidatedCrash1={name:name$i,version:version$i,type:type$i,data:data$i,attributes:attributes$g},name$h="unvalidated-crashcomponent1",version$h="1.1.2",type$h="other",data$h={type:"CrashComponent",attributes:{reason:"Intentional crash for GUI testing",note:"This component is not in the Add Component modal; it only exists via JSON.",description:"CrashComponent element 1 in sample.",title:"CrashComponent 1",testID:"CrashComponent-test-id-1"},children:null},attributes$f={testID:"other-test-id-1"},unvalidatedCrashComponent1={name:name$h,version:version$h,type:type$h,data:data$h,attributes:attributes$f},name$g="unmigrated-builder1",version$g="1.0.0",type$g="other",data$g={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA",description:"view element 1 in sample.",title:"view 1",testID:"view-test-id-1"},children:[{type:"text",attributes:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center",description:"text element 1 in sample.",title:"text 1",testID:"text-test-id-1"},children:"Intentionally unmigrated sample"},{type:"text",attributes:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8,description:"text element 2 in sample.",title:"text 2",testID:"text-test-id-2"},children:"This project has version 1.0.0 so the Migration page should appear. Click “Migrate now” to normalize legacy flat style keys into attributes.style and move misplaced props out of style (combined 1.1.2)."}]},attributes$e={testID:"other-test-id-1"},unmigratedBuilder1={name:name$g,version:version$g,type:type$g,data:data$g,attributes:attributes$e},name$f="unmigrated-builder-1.1.1",version$f="1.1.1",type$f="other",data$f={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"},testID:"view-test-id-1"},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"},testID:"text-test-id-1"},children:"Intentionally unmigrated sample (for combined 1.1.2)"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8},testID:"text-test-id-2"},children:"This project has version 1.1.1 so the Migration page should appear. Click “Migrate now” to move component props and non-style flags out of attributes.style (combined 1.1.2)."},{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,marginTop:16},testID:"view-test-id-2"},children:[{type:"BIcon",attributes:{description:"BIcon element 1 in sample.",title:"BIcon 1",styles:{iconType:"check",strokeWidth:3,color:"#22c55e",fontSize:"18"},testID:"BIcon-test-id-1"},children:null},{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",width:48,height:48,description:"image element 1 in sample.",title:"image 1",styles:{resizeMode:"contain",borderRadius:12},testID:"image-test-id-1"},children:null}]}]},attributes$d={testID:"other-test-id-1"},unmigratedBuilder1_1_1={name:name$f,version:version$f,type:type$f,data:data$f,attributes:attributes$d},name$e="Simple Paywall",version$e="1.1.2",type$e="paywall",data$e={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall ana sağlayıcısı. (#1)",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",title:"Paywall Background",attributes:{src:"https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall arka planı. (#1)",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",title:"Paywall Inner",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:12,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#2)",title:"Benefits",styles:{flexDirection:"column",gap:0,marginTop:"4%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#3)",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#1)",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#1)",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-1"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#4)",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#2)",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#2)",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-2"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#5)",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#3)",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#3)",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-3"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Abonelik seçenekleri alanı. (#1)",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Seçim satırı öğesi. (#1)",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#4)",title:"Product Desc(s)",styles:{flex:6},testID:"Text-test-id-4"},children:"@productDescription"},{type:"View",attributes:{title:"Price Column",styles:{flexDirection:"column",flex:2,alignItems:"flex-end"},testID:"View-test-id-6"},children:[{type:"PriceTag",attributes:{title:"Promo Price",styles:{textAlign:"right",fontWeight:"700"},testID:"PriceTag-test-id-1"},children:"@localizedCalculatedPrice"},{type:"PriceTag",attributes:{title:"Original Price",hideIfItsNotDiscount:!0,styles:{textAlign:"right",textDecorationLine:"line-through",fontSize:"12@fs",fontWeight:"400",color:"#999999"},testID:"PriceTag-test-id-2"},children:"@localizedPrice"}]},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"İkon öğesi. (#4)",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"View",attributes:{description:"Subscription butonu kapsayıcısı. (#1)",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",gap:8,paddingBottom:"50px"},testID:"View-test-id-7"},children:[{type:"Pricing",attributes:{description:"Pricing breakdown for promo/trial.",title:"Pricing Detail",testID:"Pricing-test-id-1"},children:"@baseLocalizedPricingText"},{type:"Text",attributes:{description:"Trial detayı.",title:"Trial Full",styles:{textAlign:"center",fontSize:12,color:"rgba(255,255,255,0.6)"},testID:"Text-test-id-5"},children:"@trialPeriod days free, then @price/@period"},{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}},{type:"Promo",attributes:{description:"Discount badge / promo text.",title:"Promo Badge",testID:"Promo-test-id-1"},children:"@baseLocalizedPromoText"},{type:"PaywallFooter",attributes:{textLocalizationKey:"base.builder.paywall.footer.description",linkedWordFirstLocalizationKey:"base.builder.paywall.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.builder.paywall.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"PaywallFooter-test-id-1"}}]}]}]}]},attributes$c={testID:"paywall-test-id-1"},paywall1={name:name$e,version:version$e,type:type$e,data:data$e,attributes:attributes$c},name$d="Paywall With Counter",version$d="1.1.2",type$d="paywall",data$d={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Paywall 2.",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1482192596544-9eb780fc7f66?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall background.",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-1"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-2"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"Text-test-id-3"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"Text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4},testID:"Text-test-id-4"},children:"@productDescription — Unlock all premium features for a month."},{type:"Text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"},testID:"Text-test-id-5"},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"},testID:"CountDown-test-id-1"},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"},testID:"View-test-id-6"},children:[{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}}]}]}]}]},attributes$b={testID:"paywall-test-id-1"},paywall2={name:name$d,version:version$d,type:type$d,data:data$d,attributes:attributes$b},name$c="Paywall Back Offer",version$c="1.1.2",type$c="paywall",data$c={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Back Offer.",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1470770903676-69b98201ea1c?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"},testID:"text-test-id-1"},children:"Back Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-2"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-3"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-4"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4},testID:"text-test-id-5"},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"},testID:"text-test-id-6"},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"},testID:"CountDown-test-id-1"},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"},testID:"View-test-id-6"},children:[{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Subscription confirm button.",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}}]}]}]}]},attributes$a={testID:"paywall-test-id-1"},paywallBackOffer={name:name$c,version:version$c,type:type$c,data:data$c,attributes:attributes$a},name$b="Paywall Notification Offer",version$b="1.1.2",type$b="paywall",data$b={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Notification Offer.",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"},testID:"text-test-id-1"},children:"Notification Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-2"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-3"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-4"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4},testID:"text-test-id-5"},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"},testID:"text-test-id-6"},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"},testID:"CountDown-test-id-1"},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"},testID:"View-test-id-6"},children:[{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Subscription confirm button.",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}}]}]}]}]},attributes$9={testID:"paywall-test-id-1"},paywallNotificationOffer={name:name$b,version:version$b,type:type$b,data:data$b,attributes:attributes$9},name$a="Paywall App Open Offer",version$a="1.1.2",type$a="paywall",data$a={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Open Offer.",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"},testID:"text-test-id-1"},children:"App Open Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-2"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-3"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-4"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4},testID:"text-test-id-5"},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"},testID:"text-test-id-6"},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"},testID:"CountDown-test-id-1"},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"},testID:"View-test-id-6"},children:[{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}}]}]}]}]},attributes$8={testID:"paywall-test-id-1"},paywallAppOpenOffer={name:name$a,version:version$a,type:type$a,data:data$a,attributes:attributes$8},name$9="Paywall App Delete Offer",version$9="1.1.2",type$9="paywall",data$9={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Delete Offer.",title:"Main",testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallProvider-test-id-1"},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1496307042754-b4aa456c4a2d?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background",testID:"PaywallBackground-test-id-1"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1},testID:"View-test-id-1"},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"},testID:"PaywallCloseButton-test-id-1"},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"},testID:"text-test-id-1"},children:"App Delete Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"},testID:"View-test-id-2"},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-3"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-1"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-2"},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-4"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-2"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-3"},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12},testID:"View-test-id-5"},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0},testID:"BIcon-test-id-3"},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"},testID:"text-test-id-4"},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"PaywallOptions-test-id-1"},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1},testID:"RadioButton-test-id-1"},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4},testID:"text-test-id-5"},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"},testID:"text-test-id-6"},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"},testID:"BIcon-test-id-4"},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"},testID:"CountDown-test-id-1"},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"},testID:"View-test-id-6"},children:[{type:"PaywallSubscribeButton",children:"@subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe",testID:"PaywallSubscribeButton-test-id-1"}}]}]}]}]},attributes$7={testID:"paywall-test-id-1"},paywallAppDeleteOffer={name:name$9,version:version$9,type:type$9,data:data$9,attributes:attributes$7},name$8="vpn-onboard-1",version$8="1.1.2",type$8="onboard",data$8={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-2",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-3",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-4",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$6={testID:"onboard-test-id-1"},vpnOnboard1={name:name$8,version:version$8,type:type$8,data:data$8,attributes:attributes$6},name$7="vpn-onboard-2",version$7="1.1.2",type$7="onboard",data$7={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/0c65cbe8e0c2e1242146e15dfd50a486.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/e8bbdde825cd23bdc44a9b2b32af22dc.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-2",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/3f312b38faf844746250cd54f27f91da.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-3",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/f4db2a32a43239c3bbbe742cb0f18b61.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-4",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",animation:"line-animation",animation_color:"STATIC_COLORS.WHITE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",animation:"simple-animation",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$5={testID:"onboard-test-id-1"},vpnOnboard2={name:name$7,version:version$7,type:type$7,data:data$7,attributes:attributes$5},name$6="vpn-onboard-3",version$6="1.1.2",type$6="onboard",data$6={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/c68cca84580d6920c883c220e57346c0.jpg",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$4={testID:"onboard-test-id-1"},vpnOnboard3={name:name$6,version:version$6,type:type$6,data:data$6,attributes:attributes$4},name$5="vpn-onboard-4",version$5="1.1.2",type$5="onboard",data$5={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/aadf6191a8f1091831647b3a01e1a1aa.jpg",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page2"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$3={testID:"onboard-test-id-1"},vpnOnboard4={name:name$5,version:version$5,type:type$5,data:data$5,attributes:attributes$3},name$4="vpn-onboard-5",version$4="1.1.2",type$4="onboard",data$4={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/d237d6cde8bc9126cee7b47e30cd19f0.png",resizeMode:"contain",lottie:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/lottie/0be045f9fe44c790a4525a1a6bc4b837.json",styles:{height:400},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/820dc32b8252555058e7014a7fd1652f.png",resizeMode:"contain",video_url:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/video/440346112d02e65be3767c39b96cd7c0.mp4",styles:{height:400},testID:"OnboardImage-test-id-2",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/fbb8677cd23cba79eef0ebef181e3b57.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-3",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/18cdd5cc478389df8ff362f95b7173ea.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-4",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.five-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.five-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}},{type:"OnboardItem",key:"app_onboard-page6",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/3c1225f83f5a5c934926fab3cb0e65d5.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-5",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#5)",title:"OnboardTitle 5",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-5"},children:"base.onboard.title.six-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#5)",title:"OnboardSubtitle 5",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-5"},children:"base.onboard.subtitle.six-page"}],attributes:{description:"Onboarding sayfası. (#5)",title:"OnboardItem 5",testID:"OnboardItem-test-id-5"}},{type:"OnboardItem",key:"app_onboard-page5",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ff07e162b2a63d38f07909e87848d46f.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-6",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#6)",title:"OnboardTitle 6",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-6"},children:"base.onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#6)",title:"OnboardSubtitle 6",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-6"},children:"base.onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#6)",title:"OnboardItem 6",testID:"OnboardItem-test-id-6"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.LINE"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.LINE"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.LINE"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.five-page",events:[{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.LINE"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.five-page",events:[{type:"Permission",permission:"GDPR"},{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1,color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_TEXT",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:4,description:"Sayfa buton grubu. (#5)",title:"OnboardButtons 5",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-5"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.five-page",events:[{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.LINE"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.five-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:5,description:"Sayfa buton grubu. (#6)",title:"OnboardButtons 6",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-6"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"all",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$2={testID:"onboard-test-id-1"},vpnOnboard5={name:name$4,version:version$4,type:type$4,data:data$4,attributes:attributes$2},name$3="vpn-onboard-6",version$3="1.1.2",type$3="onboard",data$3={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/9cb1d668b3724655f93a91e5eee771c5.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/f8d0c64bf89cc5f2f14126d0544ba174.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-2",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ad823809885c1a2a8e4632039f35a94e.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-3",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ede1705c51f3434ae9053ed5f29bf5dd.png",resizeMode:"contain",styles:{height:400},testID:"OnboardImage-test-id-4",fetchStrategy:"normal"}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12},testID:"OnboardDot-test-id-1"}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"},testID:"Separator-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.TEXT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.TEXT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"THEME_COLORS.TEXT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"},testID:"OnboardFooter-test-id-1"}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"}}]},attributes$1={testID:"onboard-test-id-1"},vpnOnboard6={name:name$3,version:version$3,type:type$3,data:data$3,attributes:attributes$1},name$2="vpn-onboard-7",version$2="1.1.2",type$2="onboard",data$2={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16},testID:"Main-test-id-1"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"StatusBarColor-test-id-1"},children:null,key:"StatusBarColor-sxj19suwkrn"},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"NavigationBarColor-test-id-1"},children:null,key:"NavigationBarColor-rhzn570dc5o"},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"},testID:"OnboardTitle-test-id-1"},children:"base.onboard.title.one-page",key:"OnboardTitle-5t0p86nj13m"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-1",fetchStrategy:"highIfItsAppLaunch"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"},testID:"OnboardSubtitle-test-id-1"},children:"base.onboard.subtitle.one-page",key:"OnboardSubtitle-0max8wno7l5b"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1",testID:"OnboardItem-test-id-1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"},testID:"OnboardTitle-test-id-2"},children:"base.onboard.title.two-page",key:"OnboardTitle-ne9iihu925k"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-2",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"},testID:"OnboardSubtitle-test-id-2"},children:"base.onboard.subtitle.two-page",key:"OnboardSubtitle-jq9469r7c2"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2",testID:"OnboardItem-test-id-2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"},testID:"OnboardTitle-test-id-3"},children:"base.onboard.title.three-page",key:"OnboardTitle-hczvlbg7gqj"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-3",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"},testID:"OnboardSubtitle-test-id-3"},children:"base.onboard.subtitle.three-page",key:"OnboardSubtitle-rufjwid9yug"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3",testID:"OnboardItem-test-id-3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"},testID:"OnboardTitle-test-id-4"},children:"base.onboard.title.four-page",key:"OnboardTitle-f2ekfc0wcbl"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png",resizeMode:"contain",styles:{height:350},testID:"OnboardImage-test-id-4",fetchStrategy:"normal"}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"},testID:"OnboardSubtitle-test-id-4"},children:"base.onboard.subtitle.four-page",key:"OnboardSubtitle-qkw2jn84xem"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4",testID:"OnboardItem-test-id-4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1},testID:"Onboard-test-id-1"},key:"Onboard-dg1zmwdawmg"},{type:"OnboardDot",attributes:{dotType:"expanding_dot",inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12,dot_thickness:"10@s"},testID:"OnboardDot-test-id-1"}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"},testID:"OnboardButtons-test-id-1"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.one-page",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}],key:"OnboardButtons-92fw2wn62h"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"},testID:"OnboardButtons-test-id-2"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.two-page",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}],key:"OnboardButtons-mu7r8a5qx4"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"},testID:"OnboardButtons-test-id-3"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.skip.three-page",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",backgroundColor:"STATIC_COLORS.TRANSPARENT"},testID:"onboardNext"}},{type:"OnboardButton",attributes:{labelKey:"base.onboard.next.three-page",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}],key:"OnboardButtons-rulfu6b5w5"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"},testID:"OnboardButtons-test-id-4"},children:[{type:"OnboardButton",attributes:{labelKey:"base.onboard.allow.four-page",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1,color:"STATIC_COLORS.WHITE",backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"},testID:"onboardNext"}}],key:"OnboardButtons-yru5emc0zcs"},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0},testID:"View-test-id-1"},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"base.onboard.footer.description",linkedWordFirstLocalizationKey:"base.onboard.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"base.onboard.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT",fontSize:"12@fs"},testID:"OnboardFooter-test-id-1"}}],key:"View-c5vb7865vto"}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1",testID:"OnboardProvider-test-id-1"},key:"OnboardProvider-pvc5b6o5gu"}]},attributes={testID:"onboard-test-id-1"},vpnOnboard7={name:name$2,version:version$2,type:type$2,data:data$2,attributes:attributes},name$1="Terms and Privacy",version$1="1.1.2",type$1="terms",data$1={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Terms and Privacy screen container",title:"Terms & Privacy",styles:{backgroundColor:"THEME_COLORS.BACKGROUND",flex:1},testID:"TermsPrivacy-Main"},children:[{type:"View",attributes:{description:"Header section",styles:{padding:16,alignItems:"center",borderBottomWidth:1,borderBottomColor:"THEME_COLORS.LINE",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"Text",children:"view.terms.header.title",attributes:{styles:{fontSize:20,fontWeight:"700",color:"THEME_COLORS.TEXT"}}}]},{type:"WebView",attributes:{iosUrl:"https://stage.vpn111.net/page/ios/privacy",androidUrl:"https://stage.vpn111.net/page/android/privacy",styles:{flex:1,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"TermsPrivacy-WebView"}},{type:"View",attributes:{description:"Footer section",styles:{padding:20,backgroundColor:"THEME_COLORS.BACKGROUND",borderTopWidth:1,borderTopColor:"THEME_COLORS.LINE",gap:16}},children:[{type:"FormProvider",attributes:{defaultValues:'{"termsAccepted": false}',validationErrorMessageKey:"view.terms.error.must_accept"},children:[{type:"FormCheckbox",attributes:{name:"termsAccepted",validation:["required"],checked:!1,label:"view.terms.checkbox.label",checkedColor:"THEME_COLORS.CHECKBOX_ACTIVE_COLOR",styles:{marginBottom:8},testID:"TermsPrivacy-Checkbox"}},{type:"FormErrorText",attributes:{styles:{marginBottom:8},testID:"TermsPrivacy-FormErrorText"}},{type:"FormSubmitButton",attributes:{labelKey:"view.terms.accept.button",validationRequired:!0,disableIfUnvalidated:!0,events:[{type:"Navigate",placementKey:"onboard"}],styles:{backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",color:"#FFFFFF",height:48,borderRadius:8,alignItems:"center",justifyContent:"center",fontWeight:"600"},testID:"TermsPrivacy-AcceptButton"}}]}]}]},termsAndPrivacy={name:name$1,version:version$1,type:type$1,data:data$1},name="Terms and Privacy (no form)",version="1.1.2",type="terms",data={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Terms and Privacy screen without FormProvider; plain Checkbox and SystemButton.",title:"Terms & Privacy",styles:{backgroundColor:"THEME_COLORS.BACKGROUND",flex:1},testID:"TermsPrivacyNoForm-Main"},children:[{type:"View",attributes:{description:"Header section",styles:{padding:16,alignItems:"center",borderBottomWidth:1,borderBottomColor:"THEME_COLORS.LINE",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"Text",children:"view.terms.header.title",attributes:{styles:{fontSize:20,fontWeight:"700",color:"THEME_COLORS.TEXT"}}}]},{type:"WebView",attributes:{iosUrl:"https://stage.vpn111.net/page/ios/privacy",androidUrl:"https://stage.vpn111.net/page/android/privacy",styles:{flex:1,backgroundColor:"THEME_COLORS.BACKGROUND"},testID:"TermsPrivacyNoForm-WebView"}},{type:"View",attributes:{description:"Footer section",styles:{padding:20,backgroundColor:"THEME_COLORS.BACKGROUND",borderTopWidth:1,borderTopColor:"THEME_COLORS.LINE",gap:16}},children:[{type:"Checkbox",attributes:{checked:!1,label:"view.terms.checkbox.label",checkedColor:"THEME_COLORS.CHECKBOX_ACTIVE_COLOR",styles:{marginBottom:8},testID:"TermsPrivacyNoForm-Checkbox"}},{type:"SystemButton",attributes:{labelKey:"view.terms.accept.button",events:[{type:"Navigate",placementKey:"onboard"}],styles:{backgroundColor:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",color:"#FFFFFF",height:48,borderRadius:8,alignItems:"center",justifyContent:"center",fontWeight:"600"},testID:"TermsPrivacyNoForm-AcceptButton"}}]}]},termsAndPrivacyNoForm={name:name,version:version,type:type,data:data};function normalizeSample(e){const t=e.appConfig||{},r={...e,baseSize:t.baseSize||e.baseSize||defaultBaseSize,localization:t.localization||e.localization||defaultLocalization};return delete r.appConfig,r}function getSamples(){return[simple1,simple2,carouselSample,unvalidatedBuilder1,unvalidatedCrash1,unvalidatedCrashComponent1,unmigratedBuilder1,unmigratedBuilder1_1_1,paywall1,paywall2,paywallBackOffer,paywallNotificationOffer,paywallAppOpenOffer,paywallAppDeleteOffer,vpnOnboard1,vpnOnboard2,vpnOnboard3,vpnOnboard4,vpnOnboard5,vpnOnboard6,vpnOnboard7,termsAndPrivacy,termsAndPrivacyNoForm].map(normalizeSample)}const devices=getDevices();function EditorHeader({onSaveProject:e,onRestoreProject:t,current:r,editorData:i,setEditorData:n}){useLogRender("EditorHeader");const[o,a]=useState(!1),[s,l]=useState(!1),c=useRef(null),d=useRenderStore(e=>e.copiedNode),{device:p,setDevice:g,setCurrent:u,setLocalization:h,setBaseSize:m,setProjectColors:f,favoriteDevices:b,toggleFavoriteDevice:C}=useRenderStore(e=>({device:e.device,setDevice:e.setDevice,setCurrent:e.setCurrent,setLocalization:e.setLocalization,setBaseSize:e.setBaseSize,setProjectColors:e.setProjectColors,favoriteDevices:e.favoriteDevices||[],toggleFavoriteDevice:e.toggleFavoriteDevice})),{customDevices:x}=useCustomDeviceStore(),v=useMemo(()=>{const e=[...x,...devices],t=b.map(t=>e.find(e=>e.name===t)).filter(e=>void 0!==e),r=[...t,...e.filter(e=>!b.includes(e.name))].slice(0,5);return p&&!r.some(e=>e.name===p.name)?[...r,p]:r},[b,x,p]),S=useMemo(()=>{const e=e=>"paywall"===e?0:"onboard"===e?1:2;return getSamples().slice().sort((t,r)=>{const i=e(t.type)-e(r.type);return 0!==i?i:t.name.localeCompare(r.name)})},[]),w=useMemo(()=>`editor-actions-menu-${Math.random().toString(36).slice(2,9)}`,[]);function k(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=k(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>k(e,t,r)):k(e,t,r);if(n!==e)return{...i,children:n}}return e}useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]);const T=e=>JSON.parse(JSON.stringify(e)),_=e=>{if(!r||!i||!n)return;const t=T(e.data),o=collectNodeKeys(i),a=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"type"in e&&"children"in e;if(!a(r))return void y.error("Select a component node to paste into");const s=r.children,l=(e=>{if(a(e)){if("main"===e.type||!0===e.isMain){const t=e.children;return t?Array.isArray(t)?t:[t]:[]}}return[e]})(t);if(0===l.length)return void y.error("Sample has no children to paste");const c=l.map(e=>repairNodeKeys(e,o));let d;d=s?Array.isArray(s)?[...s,...c]:[s,...c]:1===c.length?c[0]:c;const p={...r,children:d},g=k(i,r,p);n(g),u(p),y.success(`Pasted from "${e.name}"`)},O=()=>l(!1),I=!!r,M=!!(r&&i&&n&&d);return jsxs("div",{className:"editor-header",role:"region","aria-label":"Editor utility header",children:[jsxs("div",{className:"editor-header__devices",children:[v.map(e=>jsx(DeviceButton,{selectedDevice:p,onSelect:g,device:e,isFavorite:b.includes(e.name),onToggleFavorite:e=>C(e.name)},e.name)),jsx("button",{className:"editor-device-button","aria-label":"More devices",onClick:()=>a(!0),children:"More devices"})]}),jsx("div",{className:"editor-header__actions",children:jsxs("div",{className:"editor-actions-dropdown",ref:c,children:[jsxs("button",{className:"editor-button editor-actions-dropdown__trigger","aria-label":"Open actions menu","aria-haspopup":"menu","aria-expanded":s,"aria-controls":w,onClick:()=>l(e=>!e),children:["Actions",jsx("span",{className:"editor-actions-dropdown__caret","aria-hidden":"true",children:"▾"})]}),s&&jsxs("ul",{id:w,className:"editor-actions-dropdown__menu",role:"menu","aria-label":"Editor actions",children:[jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Replace from samples",onClick:e=>e.preventDefault(),children:["Replace from samples",jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Replace from sample",children:S.map(e=>jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{(e=>{if(!n)return;const t=repairNodeKeys(T(e.data));n(t),u(t),e.localization&&h(e.localization),e.baseSize&&m(e.baseSize),f(e.projectColors),y.success(`Replaced with "${e.name}"`)})(e),O()},children:e.name})},`replace-${e.name}`))})]}),jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Paste from samples",onClick:e=>e.preventDefault(),disabled:!r,title:r?void 0:"Select a node first",children:["Paste from samples",jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Paste from sample",children:S.map(e=>jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{_(e),O()},disabled:!r,children:e.name})},`paste-${e.name}`))})]}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-save-button",role:"menuitem",onClick:()=>{e?.(),O()},disabled:!e,children:"Save"})}),t&&jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-save-previewconfig-button",role:"menuitem",onClick:()=>{try{t?.(),y.info("Restored")}catch{y.error("Restore failed")}finally{O()}},children:"Restore"})}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{I&&(r&&copyNode(r),y.info("Copied"),O())},disabled:!I,children:"Copy"})}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{M&&((()=>{if(!r||!i||!n)return;if(!d)return;const e=repairNodeKeys(JSON.parse(JSON.stringify(d)),collectNodeKeys(i)),t=k(i,r,e);useRenderStore.setState({copiedNode:null}),n(t),u(e)})(),y.success("Pasted"),O())},disabled:!M,children:"Paste"})})]})]})}),o&&jsx(DeviceSelectorModal,{devices:devices,selectedDevice:p,onSelect:g,onClose:()=>a(!1)})]})}const SAVED_COLORS_KEY="attributes-editor-saved-colors",formatTokenLabel$1=e=>e.split(/[_-]/g).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "),mapTokensToOptions=(e,t)=>{if(!e)return[];const r=t?.groupKey??"group";return Object.entries(e).filter(([,e])=>"string"==typeof e&&e.trim().length>0).map(([e,i])=>{const n=i.trim(),o=t?.tokenLabelPrefix?`${t.tokenLabelPrefix}.${e}`:void 0;return{id:`${r}-${e}`,label:formatTokenLabel$1(e),value:n,tokenLabel:o}})},readSavedColors=()=>{if("undefined"==typeof window)return[];try{const e=window.localStorage.getItem(SAVED_COLORS_KEY);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>"string"==typeof e).map(e=>e.trim().toLowerCase()).filter(Boolean):[]}catch{return[]}},persistSavedColors=e=>{if("undefined"!=typeof window)try{window.localStorage.setItem(SAVED_COLORS_KEY,JSON.stringify(e))}catch{}},STATIC_PREFIX="STATIC_COLORS.",THEME_PREFIX="THEME_COLORS.",resolveProjectColorValue=(e,t)=>{if(!e||"string"!=typeof e||!t)return;const r=e.trim();if(r){if(r.startsWith(STATIC_PREFIX)){const e=r.slice(STATIC_PREFIX.length),i=t.STATIC_COLORS?.[e];return"string"==typeof i&&i.trim()?i.trim():void 0}if(r.startsWith(THEME_PREFIX)){const e=r.slice(THEME_PREFIX.length);if(!e)return;const i=e.split(".");if(1===i.length){const e=i[0],r=t.THEME_COLORS;if(!r)return;for(const t of Object.values(r)){const r=t?.[e];if("string"==typeof r&&r.trim())return r.trim()}return}const[n,...o]=i,a=o.join(".");if(!n||!a)return;const s=t.THEME_COLORS?.[n],l=s?.[a];return"string"==typeof l&&l.trim()?l.trim():void 0}}};function ColorModal({value:e,projectColors:t,onSelect:r,onClose:i,onClear:n}){const[o,a]=useState(()=>readSavedColors()),[s,l]=useState(!0),c=useRef(null),d=useId(),p=useId(),g=useMemo(()=>resolveProjectColorValue(e,t)??e,[e,t]),u=useMemo(()=>{if(!t)return[];const e=[],r=mapTokensToOptions(t.STATIC_COLORS,{groupKey:"static",tokenLabelPrefix:"STATIC_COLORS"});r.length&&e.push({title:"Static colors",options:r,emptyMessage:"No static colors defined."});const i=t.THEME_COLORS??{};return Object.entries(i).forEach(([t,r])=>{const i=mapTokensToOptions(r,{groupKey:`theme-${t||"default"}`,tokenLabelPrefix:"THEME_COLORS"});if(!i.length)return;const n=t?.trim()?formatTokenLabel$1(t):"Theme";e.push({title:`Theme: ${n}`,options:i,emptyMessage:`No colors defined for ${n}.`})}),e},[t]),h=useMemo(()=>o.map((e,t)=>({id:`saved-${t}-${e}`,label:e,value:e})),[o]),m=e=>{const t=e?.trim().toLowerCase();t&&(a(e=>{if(e.includes(t))return e;const r=[...e,t];return persistSavedColors(r),r}),r(t),i())},f=()=>{const e=c.current,t=e?e.showPicker:void 0;if(e&&"function"==typeof t){try{e.focus({preventScroll:!0})}catch{}t.call(e)}else(()=>{if("undefined"==typeof document)return;const e=document.createElement("input");e.type="color",e.value=g?.toString()||"#000000",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.style.width="40px",e.style.height="40px",e.style.opacity="0";const t=()=>{e.removeEventListener("change",r),e.removeEventListener("input",r),e.removeEventListener("blur",t),e.remove()},r=()=>{m(e.value),t()};e.addEventListener("change",r),e.addEventListener("input",r),e.addEventListener("blur",t),document.body.appendChild(e);try{e.focus({preventScroll:!0})}catch{}requestAnimationFrame(()=>e.click())})()},y=e=>{m(e.target.value),e.target.value="#000000"},b=e=>{const t=s&&e.tokenLabel?e.tokenLabel:e.value;r(t),i()};return jsxs(Modal,{onClose:i,ariaLabelledBy:"color-picker-title",contentClassName:"color-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"color-picker-title",className:"modal__title",children:"Pick a color"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"color-modal__selected",children:[jsxs("div",{className:"color-modal__selected-info",children:[jsx("label",{htmlFor:p,role:"button","aria-label":"Open color picker",tabIndex:0,title:"Pick a color",className:"color-modal__selected-preview",style:{background:g??"transparent"},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}}),jsxs("div",{children:[jsx("p",{className:"color-modal__selected-label",children:"Selected color"}),jsx("p",{className:"color-modal__selected-value",children:e??"None"})]})]}),e?jsx("button",{type:"button",className:"color-modal__link-button",onClick:n,children:"Clear"}):null]}),jsxs("div",{className:"color-modal__toggle",children:[jsxs("label",{htmlFor:d,className:"color-modal__toggle-label",children:[jsx("input",{id:d,type:"checkbox",className:"color-modal__toggle-input",checked:s,onChange:e=>l(e.target.checked)}),"Use color names"]}),jsx("p",{className:"color-modal__toggle-description",children:"Output tokens like STATIC_COLORS.PRIMARY instead of raw values."})]}),u.length?u.map(t=>jsx(ColorSection,{title:t.title,options:t.options,emptyMessage:t.emptyMessage,activeValue:e,onSelect:b},t.title)):jsx(ColorSection,{title:"Project colors",options:[],emptyMessage:"No project colors detected yet.",activeValue:e,onSelect:b}),jsx(ColorSection,{title:"Saved colors",options:h,emptyMessage:"Add colors you use often for quick access.",action:jsxs("span",{className:"color-modal__link-button color-modal__add-color",children:["Add color",jsx("input",{type:"color",className:"color-modal__add-color-input",onChange:y,defaultValue:"#000000","aria-label":"Add color"})]}),activeValue:e,onSelect:b}),jsx("input",{ref:c,id:p,type:"color",className:"color-modal__input",onChange:y,defaultValue:"#000000",tabIndex:-1})]})}function ColorSection({title:e,options:t,emptyMessage:r,action:i,activeValue:n,onSelect:o}){return jsxs("section",{className:"color-section",children:[jsxs("div",{className:"color-section__header",children:[jsx("p",{className:"color-section__title",children:e}),i]}),t.length?jsx("div",{className:"color-section__swatches",children:t.map(e=>jsx(ColorSwatch,{option:e,isActive:e.tokenLabel&&e.tokenLabel===n||e.value===n,onSelect:()=>o(e)},e.id))}):jsx("p",{className:"color-section__empty",children:r??"No colors available."})]})}function ColorSwatch({option:e,isActive:t,onSelect:r}){const i="#ffffff"===e.value?.trim().toLowerCase()||"#fff"===e.value?.trim().toLowerCase();return jsxs("button",{type:"button",onClick:r,className:"color-modal__swatch"+(t?" color-modal__swatch--active":""),children:[jsx("span",{"aria-hidden":!0,className:"color-modal__swatch-preview"+(i?" color-modal__swatch-preview--light":""),style:{background:e.value??"transparent"}}),jsx("span",{className:"color-modal__swatch-label",children:e.label??e.value}),jsx("span",{className:"color-modal__swatch-value",children:e.tokenLabel?`${e.tokenLabel} - ${e.value}`:e.value})]})}const Checkbox=React.forwardRef(({label:e,helperText:t,className:r,inputClassName:i,onChange:n,id:o,disabled:a,...s},l)=>{const c=useId(),d=o??c,p=t?`${d}-helper`:void 0,g=["builder-checkbox",a?"builder-checkbox--disabled":void 0,r].filter(Boolean).join(" "),u=["builder-checkbox__native",i].filter(Boolean).join(" ");return jsxs("div",{className:g,children:[jsxs("label",{htmlFor:d,className:"builder-checkbox__label",children:[jsx("input",{...s,ref:l,id:d,type:"checkbox",className:u,onChange:e=>{n?.(e.target.checked,e)},disabled:a,"aria-describedby":p}),jsx("span",{className:"builder-checkbox__control","aria-hidden":"true"}),e?jsx("span",{className:"builder-checkbox__text",children:e}):null]}),t?jsx("span",{id:p,className:"builder-checkbox__helper",children:t}):null]})});function LayoutPreviewPicker({mode:e,options:t,value:r,onChange:i,layoutContext:n,viewAttributes:o}){if(!t.length)return null;const a="string"==typeof r?r:n?.[e];return jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,paddingBottom:2},children:t.map(t=>{const r=a===t;return jsxs("button",{type:"button",onClick:()=>i(t),style:{borderRadius:8,padding:5,width:110,flex:"0 0 auto",border:r?"2px solid #222":"1px solid #d5d5d5",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",textAlign:"left",display:"flex",flexDirection:"column",gap:3,cursor:"pointer",boxShadow:r?"0 2px 4px rgba(0,0,0,0.08)":"none"},children:[jsx(LayoutPreview,{mode:e,option:t,isActive:r,layoutContext:n,viewAttributes:o}),jsx("span",{style:{fontWeight:600,fontSize:11},children:formatLayoutLabel(t)})]},t)})})}function LayoutPreview({mode:e,option:t,isActive:r,layoutContext:i,viewAttributes:n}){const o=resolvePreviewContext(e,t,i),a=o.flexDirection?.startsWith("column"),s=n?.style?.backgroundColor??(r?"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)) / 0.55)":"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))"),l=parseNumeric(n?.style?.gap)??3,c=parseNumeric(n?.style?.borderRadius)??4,d="stretch"===o.alignItems?a?{width:"100%"}:{height:"100%"}:void 0;return jsx("div",{style:{borderRadius:c,border:"1px dashed rgba(0,0,0,0.2)",padding:5,background:s},children:jsx("div",{style:{display:"flex",flexDirection:o.flexDirection??"row",justifyContent:o.justifyContent??"flex-start",alignItems:o.alignItems??"stretch",gap:l,width:"100%",minHeight:a?52:40,transition:"all 0.2s ease"},children:Array.from({length:3}).map((t,r)=>jsx("span",{style:{width:a?22:10,height:10,borderRadius:2.5,background:"#f7a500",border:"1px solid rgba(0,0,0,0.1)",flex:"justifyContent"===e?"0 0 auto":void 0,...d??{}}},r))})})}function resolvePreviewContext(e,t,r){const i={flexDirection:r?.flexDirection??"row",alignItems:r?.alignItems??"center",justifyContent:r?.justifyContent??"flex-start"};switch(e){case"flexDirection":return{flexDirection:t,alignItems:i.alignItems,justifyContent:i.justifyContent};case"alignItems":return{flexDirection:i.flexDirection,alignItems:t,justifyContent:i.justifyContent};case"justifyContent":return{flexDirection:i.flexDirection,alignItems:i.alignItems,justifyContent:t};default:return i}}function parseNumeric(e){if(null==e)return;if("number"==typeof e)return e;const t=Number.parseFloat(e);return Number.isNaN(t)?void 0:t}function formatLayoutLabel(e){return e.replace(/[-_]/g," ").replace(/\s+/g," ").replace(/^\w|\s\w/g,e=>e.toUpperCase())}function toPreferredScale(e){if("vs"===e||"s"===e||"f"===e||"%"===e)return e;if("string"!=typeof e)return;const t=e.trim().toLowerCase();return"vs"===t||"s"===t||"f"===t||"%"===t?t:void 0}function parseSizeValue(e){const t={amount:"",unit:""};if("number"==typeof e&&Number.isFinite(e))return{amount:String(e),unit:""};if("string"!=typeof e)return t;const r=e.trim();if(!r)return t;if(r.endsWith("%"))return{amount:r.slice(0,-1),unit:"%"};const i=r.toLowerCase();return i.endsWith("@vs")?{amount:r.slice(0,-3),unit:"vs"}:i.endsWith("vs")?{amount:r.slice(0,-2),unit:"vs"}:i.endsWith("@fs")?{amount:r.slice(0,-3),unit:"f"}:i.endsWith("@f")||i.endsWith("fs")?{amount:r.slice(0,-2),unit:"f"}:i.endsWith("f")?{amount:r.slice(0,-1),unit:"f"}:i.endsWith("@s")?{amount:r.slice(0,-2),unit:"s"}:i.endsWith("s")?{amount:r.slice(0,-1),unit:"s"}:i.endsWith("px")?{amount:r.slice(0,-2),unit:""}:{amount:r,unit:""}}function composeSizeValue(e,t){const r=e.trim();if("%"===t)return`${r}%`;if(""===t){const e=Number(r);return Number.isFinite(e)?e:r}return"f"===t?`${r}@fs`:`${r}@${t}`}function normalizePreferredScale(e,t){const r=t.trim().toLowerCase(),i=r.includes("height")||r.includes("top")||r.includes("vertical")?"vs":"s";return e??i}function SizeField({value:e,onChange:t,preferredScale:r,fieldName:i}){const n=useMemo(()=>parseSizeValue(e),[e]),o=useMemo(()=>normalizePreferredScale(r,i),[r,i]),[a,s]=useState(n.amount),[l,c]=useState(()=>n.unit&&n.unit!==o?n.unit:"auto");useEffect(()=>{s(n.amount);const e=n.unit&&n.unit!==o?n.unit:"auto";c(e)},[n.amount,n.unit,o]);const d=useCallback(e=>"auto"===e?o:e,[o]),p=useCallback((e,r)=>{const i=e.trim();t(i?composeSizeValue(i,d(r)):void 0)},[t,d]),g=[{value:"auto",label:"auto"},...[o,...["vs","s","f","%"].filter(e=>e!==o)].map(e=>({value:e,label:e===o?`${e} (preferred)`:e}))];return jsxs("div",{className:"attributes-editor__size-field",children:[jsx("input",{type:"number",className:"input attributes-editor__size-field-input",value:a,onChange:e=>{const r=e.target.value;s(r),r.trim()?p(r,l):t(void 0)}}),jsx("select",{className:"input attributes-editor__size-field-select",value:l,onChange:e=>{const t=e.target.value;c(t),a.trim()&&p(a,t)},children:g.map(e=>jsx("option",{value:e.value,children:e.label},e.value))})]})}Checkbox.displayName="Checkbox";const BOOLEAN_ALIASES=new Set(["bool","boolean"]);function isBooleanFieldType(e){if(Array.isArray(e))return!1;if("string"!=typeof e)return!1;const t=e.trim().toLowerCase();return BOOLEAN_ALIASES.has(t)}const layoutFieldNames=["flexDirection","alignItems","justifyContent"];function isLayoutField(e){return layoutFieldNames.includes(e)}function Field({name:e,type:t,value:r,onChange:i,componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:l,preferredScale:c}){if(Array.isArray(t)){if(isLayoutField(e)){const n=t.filter(e=>"string"==typeof e&&e.length>0);return jsx(LayoutPreviewPicker,{mode:e,options:n,value:"string"==typeof r?r:void 0,onChange:i,layoutContext:a,viewAttributes:s})}return jsxs("select",{value:r??"",onChange:e=>i(e.target.value),className:"input",children:[jsx("option",{value:"",children:"(none)"}),t.map(e=>jsx("option",{value:e,children:e},e))]})}const d="string"==typeof t?getArrayItemType(t):null;if(d){const t=Array.isArray(r)?r:[];if(isPrimitiveType(d)){const r=(r,n)=>{switch(d){case"number":return jsx("input",{type:"number",value:r??"",onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:Number(e.target.value),i(r)},className:"input",style:{flex:1}});case"boolean":case"bool":return jsx(Checkbox,{checked:Boolean(r),onChange:e=>{const r=[...t];r[n]=e,i(r)},name:`${e}-${n}`});case"string":case"description":return jsx("input",{type:"text",value:r??"",onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"title":return jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"color":return jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>{const r=[...t];r[n]=e,i(r)},projectColors:o});default:return jsx("p",{children:"---not-implemented----"})}};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,n)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[r(e,n),jsx("button",{type:"button",onClick:()=>{const e=t.filter((e,t)=>t!==n);i(e.length?e:void 0)},children:"remove"})]},n)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,"boolean"!==d&&("number"===d?0:"")];i(e)},children:"add"})})]})}const l=getTypeSchema(n,d)??{};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,r)=>{const c=e??{};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(l).map(([e,l])=>isBooleanFieldType(l)?jsx("div",{style:{gridColumn:"1 / -1"},children:jsx(Field,{name:e,type:l,value:c?.[e],onChange:n=>{const o=[...t],a={...c??{},[e]:n};o[r]=a,i(o)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:e})},e):jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:l,value:c?.[e],onChange:n=>{const o=[...t],a={...c??{},[e]:n};o[r]=a,i(o)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s})]},e))}),jsxs("div",{style:{marginTop:8,display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[jsxs("div",{style:{display:"flex",gap:4},children:[jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r<=0)return;const n=[...t],o=n[r-1];n[r-1]=n[r],n[r]=o,i(n)},disabled:r<=0,"aria-label":"Move up",children:"↑"}),jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r>=t.length-1)return;const n=[...t],o=n[r+1];n[r+1]=n[r],n[r]=o,i(n)},disabled:r>=t.length-1,"aria-label":"Move down",children:"↓"})]}),jsx("button",{type:"button",onClick:e=>{e.stopPropagation();const n=t.filter((e,t)=>t!==r);i(n.length?n:void 0)},children:"remove"})]})]},r)}),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,{}];i(e)},children:"add"})})]})}if("string"==typeof t&&!isPrimitiveType(t)){const e=getTypeSchema(n,t);if(e){const t=r??{};return jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(e).map(([e,r])=>isBooleanFieldType(r)?jsx("div",{style:{gridColumn:"1 / -1"},children:jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const n={...t??{},[e]:r};i(n)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:e})},e):jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const n={...t??{},[e]:r};i(n)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s})]},e))})}}if("string[]"===t){const e=Array.isArray(r)?r:[];return jsxs("div",{style:{display:"grid",gap:8},children:[e.map((t,r)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("input",{type:"text",value:t??"",onChange:t=>{const n=[...e];n[r]=t.target.value,i(n)},className:"input",style:{flex:1}}),jsx("button",{type:"button",onClick:()=>{const t=e.filter((e,t)=>t!==r);i(t.length?t:void 0)},children:"remove"})]},r)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const t=[...e,""];i(t)},children:"add"})})]})}if("string"!=typeof t)return jsx("p",{children:"---not-implemented----"});switch(t){case"size":return jsx(SizeField,{value:r,onChange:i,preferredScale:c,fieldName:e});case"fontWeight":{const e=normalizeFontWeight(r);return jsxs("select",{value:e??"",onChange:e=>i(e.target.value||void 0),className:"input",children:[jsx("option",{value:"",children:"(none)"}),FONT_WEIGHT_OPTIONS.map(e=>jsx("option",{value:e,children:e},e))]})}case"number":return jsx("input",{type:"number",value:r??"",onChange:e=>i(""===e.target.value?void 0:Number(e.target.value)),className:"input"});case"boolean":case"bool":return jsx(Checkbox,{label:l??e,checked:Boolean(r),onChange:e=>i(e),name:e});case"string":case"description":return jsx("input",{type:"text",value:r??"",onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"title":return jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"color":return jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>i(e),projectColors:o});default:return jsx("p",{children:"---not-implemented----"})}}function ColorPickerButton({value:e,onChange:t,projectColors:r}){const[i,n]=useState(!1),o="string"==typeof e?e:void 0,a=useMemo(()=>resolveProjectColorValue(o,r)??o,[o,r]);return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>n(!0),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,borderRadius:6,border:"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},children:[jsx("span",{"aria-hidden":!0,style:{width:32,height:32,borderRadius:6,border:"1px solid rgba(0,0,0,0.1)",background:a??"transparent"}}),jsx("span",{style:{flex:1,textAlign:"left",fontWeight:500},children:o??"Select color"}),jsx("span",{style:{fontSize:12,color:"#666"},children:"Open"})]}),i?jsx(ColorModal,{value:o,projectColors:r,onSelect:e=>{t(e),n(!1)},onClose:()=>n(!1),onClear:()=>{t(void 0),n(!1)}}):null]})}function FieldInfoTooltip({description:e,children:t}){const[r,i]=useState(!1);if(!e||!e.trim())return jsx(Fragment,{children:t});const n=["field-info-tooltip__bubble",r?"field-info-tooltip__bubble--visible":""].filter(Boolean).join(" "),o=()=>i(!0),a=()=>i(!1);return jsxs("div",{className:"field-info-tooltip",children:[t,jsxs("button",{className:"field-info-tooltip__trigger",onMouseEnter:o,onMouseLeave:a,onFocus:o,onBlur:a,type:"button",children:["Show info",jsx("span",{className:n,role:"tooltip","aria-hidden":!r,children:e})]})]})}const FIELD_SLOT_MATCHERS={top:/(^|[-_])(top)$/i,bottom:/(^|[-_])(bottom)$/i,left:/(^|[-_])(left)$/i,right:/(^|[-_])(right)$/i};function SpecialCategorySection({category:e,entries:t,attributeMeta:r,getAttributeValue:i,onAttributeChange:n,componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,meta:c}){const[d,p]=useState(!1),g=c?.label&&c.label.trim().length>0?c.label:e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1):"Special",u=c?.description,h="padding"===e||"margin"===e||"offset"===e,m=h,f=e=>{if(!m)return;const t=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase();return Object.keys(FIELD_SLOT_MATCHERS).find(e=>FIELD_SLOT_MATCHERS[e].test(t))},y=t.filter(e=>!f(e.name)),b=h&&y.length>0;return jsxs("section",{className:"special-category-section",children:[jsxs("div",{className:"special-category-section__header",children:[jsx("p",{className:"special-category-section__title",children:g}),b?jsx("button",{type:"button",onClick:()=>p(e=>!e),className:"special-category-section__toggle","data-active":d,children:d?"Show less":"Show more"}):null]}),u?jsx("p",{className:"special-category-section__description",children:u}):null,(()=>{if(!t.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});if(!h)return(()=>{if(!t.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const e=["special-category-section__fields",m?"special-category-section__fields--box":""].filter(Boolean).join(" ");return jsx("div",{className:e,children:t.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),g=i(e),u=isBooleanFieldType(t),h=f(e),m=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:m,"data-field-slot":h,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:g,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})})})();const e=t.filter(e=>f(e.name)).sort((e,t)=>{const r=["top","left","right","bottom"],i=f(e.name),n=f(t.name);return(i?r.indexOf(i):999)-(n?r.indexOf(n):999)}),c=t.filter(e=>!f(e.name));if(0===e.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const p=jsx("div",{className:"special-category-section__fields special-category-section__fields--box",children:e.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),g=i(e),u=isBooleanFieldType(t),h=f(e),m=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:m,"data-field-slot":h,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:g,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})}),g=d&&c.length>0?jsx("div",{className:"special-category-section__fields",children:c.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),g=i(e),u=isBooleanFieldType(t),h=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:h,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:g,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})}):null;return jsxs(Fragment,{children:[p,g]})})()]})}const FALLBACK_PARENT="all",EXCLUDE_PREFIX="!=";function normalizeDesiredParents(e){return Array.isArray(e)&&0!==e.length?e:[FALLBACK_PARENT]}function matchesDesiredChildToken(e,t){return e.startsWith("=")||e.startsWith(">")?e.slice(1)===t:e===t}function filterOptionsByDesiredChildren(e,t){if(!Array.isArray(t)||0===t.length)return e;const r=t.map(e=>e.trim()).filter(e=>e.length>0);return 0===r.length?e:e.filter(({type:e})=>{let t=!1,i=!1;for(const n of r)if(n.startsWith(EXCLUDE_PREFIX)){if(e===n.slice(EXCLUDE_PREFIX.length))return!1}else n!==FALLBACK_PARENT&&(t=!0,matchesDesiredChildToken(n,e)&&(i=!0));return!t||i})}function formatTokenLabel(e){return"all"===e?"Anywhere":"root"===e?"Root only":e.startsWith("!=")?`Not under ${e.slice(2)}`:e.startsWith("=")?`Direct child of ${e.slice(1)}`:e.startsWith(">")?`Inside ${e.slice(1)}`:e}function tokenMatchesParent(e,t){return"all"===e||(t&&0!==t.length?!e.startsWith("!=")&&(e.startsWith("=")||e.startsWith(">")?e.slice(1)===t:e===t):"root"===e)}function buildGroups(e,t){const r=new Map;return e.forEach(e=>{e.desiredParents.forEach(i=>{if(t&&!t(i,e))return;const n=r.get(i);n?n.some(t=>t.type===e.type)||n.push(e):r.set(i,[e])})}),Array.from(r.entries()).map(([e,t])=>({token:e,displayLabel:formatTokenLabel(e),options:t.sort((e,t)=>e.label.localeCompare(t.label))})).sort((e,t)=>e.displayLabel.localeCompare(t.displayLabel))}function AddComponentModal({allowedChildTypes:e,parentType:t,onSelect:r,onClose:i}){const[n,o]=useState(!1),a=useMemo(()=>Array.from(new Set(e)).map(e=>{const t=getPatternByType(e);return{type:e,label:t?.meta?.label?.trim()||e,desiredParents:normalizeDesiredParents(t?.meta?.desiredParent)}}).sort((e,t)=>e.label.localeCompare(t.label)),[e]),s=useMemo(()=>{if(!t)return;const e=getPatternByType(t)?.meta?.desiredChildren;return Array.isArray(e)&&0!==e.length?e.map(e=>e.trim()).filter(e=>e.length>0):void 0},[t]),l=useMemo(()=>filterOptionsByDesiredChildren(a,s),[a,s]),c=!s?.length;useEffect(()=>{c||o(!1)},[c]);const d=useMemo(()=>buildGroups(l,e=>tokenMatchesParent(e,t)),[l,t]),p=useMemo(()=>buildGroups(l),[l]),g=e=>jsxs("button",{type:"button",className:"add-component-modal__card",onClick:()=>(e=>{r(e)})(e.type),role:"listitem",children:[jsx("div",{className:"add-component-modal__thumbnail","aria-hidden":"true",children:jsx("span",{children:"Preview"})}),jsx("span",{className:"add-component-modal__title",children:e.label})]},e.type),u=e=>e.map(e=>jsxs("div",{className:"add-component-modal__group",children:[jsx("h5",{className:"add-component-modal__group-title",children:e.displayLabel}),jsx("div",{className:"add-component-modal__grid",role:"list",children:e.options.map(g)})]},e.token)),h=d.length>0,m=l.length>0;return jsxs(Modal,{onClose:i,ariaLabelledBy:"add-component-title",contentClassName:"add-component-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"add-component-title",className:"modal__title",children:"Add component"}),jsx("button",{type:"button",className:"editor-button","aria-label":"Close add component modal",onClick:i,children:"Close"})]}),jsxs("div",{className:"add-component-modal__body",children:[jsxs("section",{className:"add-component-modal__section",children:[jsx("h4",{className:"add-component-modal__section-title",children:"Recommended Components"}),h?u(d):jsx("p",{className:"add-component-modal__empty",children:m?"No direct recommendations for this parent.":"No components available for this node."})]}),c&&jsxs("label",{className:"add-component-modal__toggle",children:[jsx("input",{type:"checkbox",checked:n,onChange:e=>o(e.target.checked)}),jsx("span",{children:"Show rest (All Components)"})]}),c&&n&&jsxs("section",{className:"add-component-modal__section","aria-live":"polite",id:"add-component-modal-all",children:[jsx("h4",{className:"add-component-modal__section-title",children:"All Components"}),p.length?u(p):jsx("p",{className:"add-component-modal__empty",children:"No components available."})]}),!n&&!h&&jsx("p",{className:"add-component-modal__empty",children:c?"Nothing to suggest yet—toggle “Show rest” to browse all components.":"Nothing to suggest yet for this parent."})]})]})}const Icons=["activity","activity-heart","alert-circle","alert-triangle","anchor","archive","arrow-down","arrow-left","arrow-narrow-down-left","arrow-narrow-up-right","arrow-right","arrow-right-smooth","asterisk-01","asterisk-02","at-sign","award","battery-charging","bell-01","bell-02","bell-ringing-02","bookmark","bookmark-add","bookmark-check","bookmark-minus","bookmark-x","bubble","building-01","building-02","building-03","building-04","building-05","building-06","building-07","building-08","building-09","camera","camera-01","camera-steel","check","check-circle","check-circle-bold","check-circle-broken","check-done-01","check-done-02","check-heart","check-square","check-square-broken","check-verified-01","check-verified-02","check-verified-03","checkbox","checkv","chevron-down","chevron-down2","chevron-left","chevron-left-2","chevron-right","chevron-right-empty","chevron-right-smooth","chevron-up","circle","clock","clock-fast-forward","close","close-circle","cloud-01","cloud-blank-01","cloud-blank-02","coin","coins-02","colors","copy-01","copy-02","copy-03","copy-04","copy-05","copy-06","copy-07","corner-down-right","crypto-bold","delete-icon","diamond","dice-3","divide-01","divide-02","divide-03","document-check-bold","dots-circle","dots-grid","dots-horizontal","dots-vertical","download-01","download-02","download-03","edit-03","edit-04","edit-05","element-3","ellipse-127","exclaimation-circle","eye-off-line","face-smile","file-04","file-05","file-check-02","file-plus-01","file-shield-02","filter-funnel-01","flag-03","flash","folder","folder-plus","gallery","globe-01","globe-04","globe-bold","guard","headphones-01","headphones-02","headset-bold","heart","heart-bold","help-circle","home-2","home-line","hourglass-02","image","image-01","image-03","inbox-01","inbox-arrow-down","info-circle","keyboard-line","lamp-charge","layer","light","like-dislike","lock-03","logout","magicpen","mail","mail-01","marker","medal-star","menu","menu-04","message-circle-01","message-plus-circle","message-question-circle","message-text-circle-01","message-text-square-02","message-x-square","microphone-02","microphone-slash","mirror","moon-01","moon-bold","mouse-circle","move","notification","notification-fill","notification-text","pdf-01","pencil-01","phone","phone-01","phone-arrow-down-left","phone-arrow-up-right","phone-hang-up","phone-hangup2","phone-incoming-01","phone-outgoing-01","phone-plus","phone-x","plus","plus-circle","printer","question-mark-circle","refresh-ccw-01","refresh-cw-01","refresh-cw-04","refresh-right-square-bold","remove-circle","repeat-04","repeat-bold","ruler-pen","search","search-lg","search-md","search-refraction","send-01","send-02","send-diagonal","setting-2","settings","settings-02","settings-04","settings-2","settings-cog","share-01","share-03","share-04","share-05","share-06","share-bold","shield-01","shield-bold","solar-check","speaker","speaker-wave","speedometer-03","star","star-rounded","sun","target-03","text-input","translate","trash","trash-02","trash-03","trash-04","trush-square-bold","unlimited","user-circle","user-jogging","user-plus-01","user-square","user-x-01","user-x-02","user2","users-02","users-speaker","verify","voice-cricle","x-circle","x-close","x-sm","zap"];function IconPickerModal({value:e,onSelect:t,onClose:r,onClear:i}){const[n,o]=useState(""),a=useMemo(()=>{const e=n.trim().toLowerCase();return e?Icons.filter(t=>t.toLowerCase().includes(e)):Icons},[n]);return jsx(Modal,{onClose:r,ariaLabelledBy:"icon-picker-title",children:jsxs("div",{style:{display:"grid",gap:12},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[jsx("p",{id:"icon-picker-title",style:{margin:0,fontWeight:700},children:"Select Icon"}),jsx("div",{style:{flex:1}}),i?jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Clear"}):null,jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsx("input",{type:"text",className:"input",placeholder:"Search icons...",value:n,onChange:e=>o(e.target.value),autoFocus:!0}),jsxs("div",{style:{fontSize:12,color:"#666"},children:[a.length," / ",Icons.length,e?` • Selected: ${e}`:""]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",gap:8,maxHeight:"60vh",overflow:"auto",paddingRight:4},children:a.map(r=>{const i=e===r;return jsxs("button",{type:"button",onClick:()=>t(r),style:{display:"flex",alignItems:"center",gap:8,borderRadius:8,border:i?"2px solid #222":"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},"aria-label":`Select icon ${r}`,children:[jsx(Icon,{iconType:r,size:18}),jsx("span",{style:{fontSize:12,fontWeight:i?700:500,textAlign:"left",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:r,children:r})]},r)})})]})})}function isRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function isNodeData$1(e){return isRecord(e)&&"string"==typeof e.type&&"children"in e}function isMainLike(e){const t=e.type;return"Main"===t||"main"===t}function stripNestedIsMain(e,t){if(null==e||"string"==typeof e)return e;if(Array.isArray(e)){let t=!1;const r=e.map(e=>{const r=stripNestedIsMain(e,!1);return r!==e&&(t=!0),r});return t?r:e}if(!isNodeData$1(e))return e;const r=e.children,i=stripNestedIsMain(r,!1),n=!0===e.isMain&&!t;return n||i!==r?{...e,...n?{isMain:!1}:null,children:i}:e}function wrapNodeInMain(e){if(isNodeData$1(e)&&isMainLike(e)){const t=stripNestedIsMain(e,!0);return!0!==t.isMain?{...t,isMain:!0}:t}const t=stripNestedIsMain(e,!1);return{type:"Main",isMain:!0,attributes:{},children:null==e?[]:t}}function safeStringify$1(e){try{return JSON.stringify(e,null,2)??""}catch{return String(e??"")}}function JsonTextEditor({value:e,onChange:t,rootName:r,readOnly:i=!1,className:n}){const o=useMemo(()=>safeStringify$1(e),[e]),[a,s]=useState(o),[l,c]=useState(null),[d,p]=useState(null),[g,u]=useState(e);useEffect(()=>{s(o),c(null),p(null),u(e)},[o,e]);return jsxs("div",{className:n,style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",gap:10},children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,flexWrap:"wrap"},children:[jsx("div",{style:{fontSize:12,opacity:.75},children:r?`${r}.json`:"data.json"}),jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:async()=>{try{await navigator.clipboard.writeText(a)}catch{}},children:"Copy"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a);s(JSON.stringify(e,null,2)),c(null),p(null),u(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},children:"Format"}),!i&&jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=t(e)&&"data"in e?{...e,data:wrapNodeInMain(e.data)}:wrapNodeInMain(e);s(JSON.stringify(r,null,2)),c(null),p(null),u(r)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Wrap root in Main and apply":"Read only",children:"Wrap in Main"}),!i&&jsx("button",{type:"button",className:"editor-button",onClick:()=>{if(t)try{const e=JSON.parse(a);c(null),p(null),u(e);try{t(e)}catch(e){p(e instanceof Error?e.message:"Failed to apply JSON")}}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Apply JSON changes":"Read only",children:"Apply"})]})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr)",gap:10,flex:1,minHeight:0},children:jsx("textarea",{value:a,onChange:e=>{const t=e.target.value;if(s(t),p(null),!i)try{const e=JSON.parse(t);c(null),u(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},readOnly:i,spellCheck:!1,style:{width:"100%",height:"100%",minHeight:320,resize:"none",border:"1px solid rgba(0,0,0,0.12)",borderRadius:10,padding:12,fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontSize:12,lineHeight:1.5,background:"transparent",outline:"none"}})}),jsxs("div",l?{style:{fontSize:12,color:"#d12f2f"},children:["Invalid JSON: ",l]}:d?{style:{fontSize:12,color:"#d12f2f"},children:["Could not apply: ",d]}:{style:{fontSize:12,opacity:.7},children:["Valid JSON (",safeStringify$1(g).length.toLocaleString()," ","chars)"]})]})}function LocalicationModal({data:e,onChange:t,onClose:r}){const i=e??{};return jsxs(Modal,{onClose:r,ariaLabelledBy:"localication-modal-title",className:"modal--large modal--scrollable localication-modal",contentClassName:"localication-modal__content",children:[jsxs("div",{className:"modal__header localication-modal__header",children:[jsxs("div",{className:"localication-modal__header-main",children:[jsx("h3",{id:"localication-modal-title",className:"modal__title",children:"Localization data"}),jsx("p",{className:"localication-modal__description",children:"Manage your translations directly from the JSON structure."})]}),jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsx("div",{className:"localication-modal__body",children:jsx("div",{className:"localication-modal__editor",children:jsx(JsonTextEditor,{rootName:"localication",value:i,onChange:e=>t(e),className:"localication-modal__json-editor"})})})]})}function randomInt(e,t){return Math.floor(Math.random()*(t-e+1))+e}function randomChoice(e){return e[randomInt(0,e.length-1)]}function randomSku(){return`com.app.${randomChoice(["premium","pro","plus","gold","starter"])}.${randomChoice(["weekly","monthly","yearly","lifetime"])}`}function randomPrice(){const e=randomChoice(["USD","EUR","GBP","TRY"]),t=`${randomChoice([1,2,3,4,5,7,9,12,19,29,49,99])}.${randomChoice([0,49,99]).toString().padStart(2,"0")}`;return{price:t,localizedPrice:`${"USD"===e?"$":"EUR"===e?"€":"GBP"===e?"£":"₺"}${t}`,currency:e}}function ProductEditModal({product:e,index:t,onSave:r,onClose:i}){const n=useMemo(()=>({productId:e?.productId??"",title:e?.title??"",description:e?.description??"",localizedPrice:e?.localizedPrice??"",price:e?.price??"",currency:e?.currency??""}),[e]),[o,a]=useState(n),s=o.productId.trim().length>0;return jsxs(Modal,{onClose:i,ariaLabelledBy:"product-edit-modal-title",contentClassName:"product-edit-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"product-edit-modal-title",className:"modal__title",children:["Edit product #",t+1]}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"product-edit-modal__body",children:[jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"productId",children:"productId"}),jsx("input",{id:"productId",className:"input",value:o.productId,onChange:e=>a(t=>({...t,productId:e.target.value})),placeholder:"com.app.subscription.monthly"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"title",children:"title"}),jsx("input",{id:"title",className:"input",value:o.title,onChange:e=>a(t=>({...t,title:e.target.value})),placeholder:"Monthly Premium"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"description",children:"description"}),jsx("textarea",{id:"description",className:"input product-edit-modal__textarea",value:o.description,onChange:e=>a(t=>({...t,description:e.target.value})),placeholder:"Full access to all features..."})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"localizedPrice",children:"localizedPrice"}),jsx("input",{id:"localizedPrice",className:"input",value:o.localizedPrice,onChange:e=>a(t=>({...t,localizedPrice:e.target.value})),placeholder:"$4.99"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"price",children:"price"}),jsx("input",{id:"price",className:"input",value:o.price,onChange:e=>a(t=>({...t,price:e.target.value})),placeholder:"4.99"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"currency",children:"currency"}),jsx("input",{id:"currency",className:"input",value:o.currency,onChange:e=>a(t=>({...t,currency:e.target.value})),placeholder:"USD"})]}),jsxs("div",{className:"form-actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e=randomPrice(),t=randomChoice(["Premium","Pro","Plus","Gold","Starter","Unlimited"]),r=randomChoice(["Weekly","Monthly","Yearly","Lifetime"]);a({productId:randomSku(),title:`${t} ${r}`,description:randomChoice(["Unlock all features.","Full access to premium content.","Remove ads and get more features.","Best value for power users."]),localizedPrice:e.localizedPrice,price:e.price,currency:e.currency})},title:"Fill with random values",children:"Random"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>r(o),disabled:!s,title:s?"Save":"productId is required",children:"Save"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Cancel"})]})]})]})}const DEFAULT_PRESET_KEY$1="preset-1";function ensureProductId(e){return{...e,productId:e?.productId??""}}function getPresetMap$1(){const e=getMockProducts(),t={};return Object.entries(e??{}).forEach(([e,r])=>{e&&"string"==typeof e&&Array.isArray(r)&&(t[e]=r.filter(Boolean).map(e=>ensureProductId(e)).filter(e=>"string"==typeof e.productId&&e.productId.length>0))}),t}function ProductPresetsModal({current:e,onReplace:t,onAppend:r,onClose:i}){const n=useMemo(()=>getPresetMap$1(),[]),o=useMemo(()=>Object.entries(n).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY$1&&i!==DEFAULT_PRESET_KEY$1?-1:i===DEFAULT_PRESET_KEY$1&&r!==DEFAULT_PRESET_KEY$1?1:r.localeCompare(i)}),[n]);return jsxs(Modal,{onClose:i,ariaLabelledBy:"product-presets-modal-title",contentClassName:"product-presets-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"product-presets-modal-title",className:"modal__title",children:"Product presets"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"product-presets-modal__body",children:[jsxs("section",{className:"product-presets-modal__section",children:[jsxs("p",{className:"product-presets-modal__section-title",children:["Current (",Array.isArray(e)?e.length:0,")"]}),jsx("p",{className:"product-presets-modal__muted",children:"Pick a preset below to replace or append to the current list."})]}),jsxs("section",{className:"product-presets-modal__section",children:[jsx("p",{className:"product-presets-modal__section-title",children:"Presets"}),o.length?jsx("div",{className:"product-presets-modal__grid",children:o.map(([e,n])=>jsxs("div",{className:"product-presets-modal__card",children:[jsxs("div",{className:"product-presets-modal__card-header",children:[jsx("p",{className:"product-presets-modal__card-title",children:e}),jsxs("p",{className:"product-presets-modal__card-count",children:[n.length," products"]})]}),jsxs("ul",{className:"product-presets-modal__card-list",children:[n.slice(0,3).map(e=>jsx("li",{className:"product-presets-modal__card-item",children:e.productId},e.productId)),n.length>3?jsxs("li",{className:"product-presets-modal__card-item product-presets-modal__muted",children:["+",n.length-3," more…"]}):null]}),jsxs("div",{className:"product-presets-modal__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(n),i()},children:"Replace"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(n),i()},children:"Append"})]})]},e))}):jsx("p",{className:"product-presets-modal__muted",children:"No presets found."})]})]})]})}function detectKind(e){return"number"==typeof e?"number":"boolean"==typeof e?"boolean":"string"}function parseValue(e,t,r){if("boolean"===e)return"true"===t;if("number"===e){const e=t.trim();if(!e)return r;const i=e.replace(",","."),n=Number.parseFloat(i);return Number.isFinite(n)?n:r}return t}function BenefitEditModal({benefitKey:e,benefitValue:t,index:r,onSave:i,onClose:n}){const o=useMemo(()=>{const r=(e??"").toString(),i=detectKind(t);return{key:r,kind:i,raw:"boolean"===i?t?"true":"false":"number"===i?`${t??""}`:(t??"").toString()}},[e,t]),[a,s]=useState(o),l=a.key.trim().length>0;return jsxs(Modal,{onClose:n,ariaLabelledBy:"benefit-edit-modal-title",contentClassName:"benefit-edit-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"benefit-edit-modal-title",className:"modal__title",children:["Edit benefit #",r+1]}),jsx("button",{type:"button",className:"editor-button",onClick:n,children:"Close"})]}),jsxs("div",{className:"benefit-edit-modal__body",children:[jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitKey",children:"key"}),jsx("input",{id:"benefitKey",className:"input",value:a.key,onChange:e=>s(t=>({...t,key:e.target.value})),placeholder:"unlimited_access"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitType",children:"type"}),jsxs("select",{id:"benefitType",className:"input",value:a.kind,onChange:e=>s(t=>({...t,kind:e.target.value})),children:[jsx("option",{value:"string",children:"string"}),jsx("option",{value:"number",children:"number"}),jsx("option",{value:"boolean",children:"boolean"})]})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitValue",children:"value"}),"boolean"===a.kind?jsxs("select",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),children:[jsx("option",{value:"true",children:"true"}),jsx("option",{value:"false",children:"false"})]}):jsx("input",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),placeholder:"number"===a.kind?"7":"Unlock everything"})]}),jsxs("div",{className:"form-actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>i({key:a.key,value:parseValue(a.kind,a.raw,t)}),disabled:!l,title:l?"Save":"key is required",children:"Save"}),jsx("button",{type:"button",className:"editor-button",onClick:n,children:"Cancel"})]})]})]})}var basic={unlimited_access:!0,trial_days:7,headline:"Unlock everything"},vpn={secure_connection:!0,no_logs:!0,locations:120,headline:"Private & fast VPN"},pro={remove_ads:!0,priority_support:!0,devices:5,headline:"Go Pro"},presetsJson={"Embeded Paywall":{unlimited_access:!0,trial_days:7,headline:"Unlock everything"},basic:basic,vpn:vpn,pro:pro};const DEFAULT_PRESET_KEY="Embeded Paywall";function normalizeBenefits(e){if(!e||"object"!=typeof e||Array.isArray(e))return{};const t={};return Object.entries(e).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&("string"!=typeof r&&"number"!=typeof r&&"boolean"!=typeof r||(t[i]=r))}),t}function getPresetMap(){const e=presetsJson,t={};return Object.entries(e??{}).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&(t[i]=normalizeBenefits(r))}),t}function countBenefits(e){return e&&"object"==typeof e?Object.keys(e).length:0}function BenefitPresetsModal({current:e,onReplace:t,onMerge:r,onClose:i}){const n=useMemo(()=>getPresetMap(),[]),o=useMemo(()=>Object.entries(n).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY&&i!==DEFAULT_PRESET_KEY?-1:i===DEFAULT_PRESET_KEY&&r!==DEFAULT_PRESET_KEY?1:r.localeCompare(i)}),[n]);return jsxs(Modal,{onClose:i,ariaLabelledBy:"benefit-presets-modal-title",contentClassName:"benefit-presets-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"benefit-presets-modal-title",className:"modal__title",children:"Benefit presets"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"benefit-presets-modal__body",children:[jsxs("section",{className:"benefit-presets-modal__section",children:[jsxs("p",{className:"benefit-presets-modal__section-title",children:["Current (",countBenefits(e),")"]}),jsx("p",{className:"benefit-presets-modal__muted",children:"Pick a preset below to replace or merge into the current map."})]}),jsxs("section",{className:"benefit-presets-modal__section",children:[jsx("p",{className:"benefit-presets-modal__section-title",children:"Presets"}),o.length?jsx("div",{className:"benefit-presets-modal__grid",children:o.map(([e,n])=>{const o=Object.entries(n);return jsxs("div",{className:"benefit-presets-modal__card",children:[jsxs("div",{className:"benefit-presets-modal__card-header",children:[jsx("p",{className:"benefit-presets-modal__card-title",children:e}),jsxs("p",{className:"benefit-presets-modal__card-count",children:[o.length," benefits"]})]}),jsxs("ul",{className:"benefit-presets-modal__card-list",children:[o.slice(0,3).map(([e,t])=>jsxs("li",{className:"benefit-presets-modal__card-item",children:[e,": ",String(t)]},e)),o.length>3?jsxs("li",{className:"benefit-presets-modal__card-item benefit-presets-modal__muted",children:["+",o.length-3," more…"]}):null]}),jsxs("div",{className:"benefit-presets-modal__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(n),i()},children:"Replace"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(n),i()},title:"Merges preset into current (preset values overwrite existing keys)",children:"Merge"})]})]},e)})}):jsx("p",{className:"benefit-presets-modal__muted",children:"No presets found."})]})]})]})}function MockableFeatureModal({featureKey:e,onClose:t}){const{products:r,addProduct:i,removeProduct:n,updateProduct:o,setProducts:a,clearProducts:s,benefits:l,setBenefits:c,clearBenefits:d,upsertBenefit:p,removeBenefit:g,renameBenefit:u,setLocalization:h,localization:m,setProjectColors:f,projectColors:y}=useRenderStore(e=>({products:e.products,addProduct:e.addProduct,removeProduct:e.removeProduct,updateProduct:e.updateProduct,setProducts:e.setProducts,clearProducts:e.clearProducts,benefits:e.benefits,setBenefits:e.setBenefits,clearBenefits:e.clearBenefits,upsertBenefit:e.upsertBenefit,removeBenefit:e.removeBenefit,renameBenefit:e.renameBenefit,setLocalization:e.setLocalization,localization:e.localization,setProjectColors:e.setProjectColors,projectColors:e.projectColors})),[b,C]=useState(null),[x,v]=useState(!1),[S,w]=useState(null),[k,T]=useState(!1),_=useRef(null),O=useRef(null),I=useRef(null),M=Object.entries(l&&"object"==typeof l&&!Array.isArray(l)?l:{});return jsxs(Fragment,{children:[jsxs(Modal,{onClose:t,ariaLabelledBy:"mockable-feature-modal-title",contentClassName:"mockable-feature-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"mockable-feature-modal-title",className:"modal__title",children:["Mockable: ",e]}),jsx("button",{type:"button",className:"editor-button",onClick:t,children:"Close"})]}),jsx("div",{className:"mockable-feature-modal__body",children:"localization"===e?jsx(LocalizationPanel,{localization:m,defaultLoc:defaultLocalization,csvInputRef:_,onImportClick:()=>_.current?.click(),onChange:e=>{const t=e.target.files?.[0];if(!t)return;const r=new FileReader;r.onload=t=>{try{const e=t.target?.result,r=e.split(/\r?\n/).filter(Boolean);if(r.length<2)return void alert("CSV must have a header row and at least one data row.");const i=r[0].split(",").map(e=>e.trim().toLowerCase()),n=i.indexOf("key"),o=i.indexOf("en"),a=i.indexOf("tr");if(-1===n||-1===o&&-1===a)return void alert('CSV must have a "key" column and at least one of "en" or "tr" columns.');const s={};for(let e=1;e<r.length;e++){const t=r[e].split(",").map(e=>e.trim()),i=t[n]?.trim();if(!i)continue;const l={};-1!==o&&void 0!==t[o]&&(l.en=t[o]),-1!==a&&void 0!==t[a]&&(l.tr=t[a]),s[i]=l}h(s)}catch(e){alert("Failed to parse CSV: "+String(e))}finally{e.target.value=""}},r.readAsText(t)}}):"colors"===e?jsx(ColorsPanel,{projectColors:y,defaultColors:defaultProjectColors,colorsInputRef:O,onImportClick:()=>O.current?.click(),onChange:e=>{const t=e.target.files?.[0];if(!t)return;const r=new FileReader;r.onload=t=>{try{const e=JSON.parse(t.target?.result);f(e)}catch(e){alert("Failed to parse JSON: "+String(e))}finally{e.target.value=""}},r.readAsText(t)}}):jsxs(Fragment,"products"===e?{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Add product"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>v(!0),children:"Presets"}),jsx("button",{type:"button",className:"editor-button",onClick:s,disabled:0===r.length,children:"Clear"})]}),jsx("div",{style:{marginTop:12},children:r.length?jsx("ul",{style:{margin:0,paddingLeft:18},children:r.map((e,t)=>jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsx("span",{style:{flex:1},children:e?.productId?.trim()?e.productId:"(empty productId)"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>C(t),children:"Edit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>n(t),children:"Remove"})]},`${t}-${e?.productId??""}`))}):jsx("p",{style:{margin:0,opacity:.7},children:"No products yet."})})]}:"benefits"===e?{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e="benefit",t=new Set(M.map(([e])=>e));let r=`${e}_1`,i=1;for(;t.has(r);)i+=1,r=`${e}_${i}`;p(r,!0),w(r)},children:"Add benefit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>T(!0),children:"Presets"}),jsx("button",{type:"button",className:"editor-button",onClick:d,disabled:0===M.length,children:"Clear"})]}),jsx("div",{style:{marginTop:12},children:M.length?jsx("ul",{style:{margin:0,paddingLeft:18},children:M.map(([e,t],r)=>jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsxs("span",{style:{flex:1,wordBreak:"break-word"},children:[e,": ",String(t)]}),jsx("button",{type:"button",className:"editor-button",onClick:()=>w(e),children:"Edit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>g(e),children:"Remove"})]},`${r}-${e}`))}):jsx("p",{style:{margin:0,opacity:.7},children:"No benefits yet."})})]}:{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>I.current?.click(),children:"Import JSON"}),jsx("input",{ref:I,type:"file",accept:".json,application/json",style:{display:"none"},onChange:t=>{const r=t.target.files?.[0];if(!r)return;const i=new FileReader;i.onload=r=>{try{const t=JSON.parse(r.target?.result);"products"===e&&Array.isArray(t)?a(t):"benefits"!==e||"object"!=typeof t||Array.isArray(t)?alert("Imported JSON does not match the expected format."):c(t)}catch(e){alert("Failed to parse JSON: "+String(e))}finally{t.target.value=""}},i.readAsText(r)}})]}),jsxs("p",{style:{margin:"8px 0 0",opacity:.7,fontSize:12},children:["No mock UI yet for ",'"',e,'"'," — import via JSON."]})]})})]}),"products"===e&&null!==b?jsx(ProductEditModal,{index:b,product:r[b],onClose:()=>C(null),onSave:e=>{o(b,e),C(null)}}):null,"products"===e&&x?jsx(ProductPresetsModal,{current:r,onClose:()=>v(!1),onReplace:e=>a(e),onAppend:e=>a([...r??[],...e??[]])}):null,"benefits"===e&&null!==S?jsx(BenefitEditModal,{index:Math.max(0,M.findIndex(([e])=>e===S)),benefitKey:S,benefitValue:l?.[S]??"",onClose:()=>w(null),onSave:({key:e,value:t})=>{const r=e.trim();S!==r&&u(S,r),p(r,t),w(null)}}):null,"benefits"===e&&k?jsx(BenefitPresetsModal,{current:l,onClose:()=>T(!1),onReplace:e=>c(e),onMerge:e=>c({...l??{},...e??{}})}):null]})}const SOURCE_STYLE={default:{fontSize:10,padding:"1px 5px",borderRadius:3,background:"#3a3d4a",color:"#9ca3af",fontWeight:500,whiteSpace:"nowrap"},custom:{fontSize:10,padding:"1px 5px",borderRadius:3,background:"#14532d",color:"#86efac",fontWeight:500,whiteSpace:"nowrap"},merged:{fontSize:10,padding:"1px 5px",borderRadius:3,background:"#1e3a5f",color:"#93c5fd",fontWeight:500,whiteSpace:"nowrap"}};function SourceBadge({source:e}){return jsx("span",{style:SOURCE_STYLE[e],children:e})}function LocalizationPanel({localization:e,defaultLoc:t,csvInputRef:r,onImportClick:i,onChange:n}){const o=mergeLocalization(t,e),a=Array.from(new Set([...Object.keys(t),...Object.keys(e)])).sort(),s=Array.from(new Set(a.flatMap(r=>[...Object.keys(t[r]??{}),...Object.keys(e[r]??{})]))).sort(),l=e&&Object.keys(e).some(t=>Object.keys(e[t]??{}).length>0);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Import CSV"}),jsx("input",{ref:r,type:"file",accept:".csv,text/csv",style:{display:"none"},onChange:n}),jsx("span",{style:{fontSize:11,opacity:.6},children:"key, en, tr columns"}),jsx("span",{style:{marginLeft:"auto",fontSize:11,opacity:.5},children:l?"custom overrides active":"using defaults"})]}),jsxs("div",{style:{display:"flex",gap:8,margin:"8px 0 4px",fontSize:11},children:[jsx(SourceBadge,{source:"default"})," default only",jsx(SourceBadge,{source:"custom"})," custom override",jsx(SourceBadge,{source:"merged"})," both (custom wins)"]}),jsx("div",{style:{overflowX:"auto",marginTop:4},children:jsxs("table",{style:{borderCollapse:"collapse",fontSize:11,width:"100%",tableLayout:"fixed"},children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{style:{textAlign:"left",padding:"4px 6px",borderBottom:"1px solid #333",width:200,fontWeight:600},children:"key"}),a.map(e=>jsx("th",{style:{textAlign:"left",padding:"4px 6px",borderBottom:"1px solid #333",fontWeight:600},children:e},e))]})}),jsx("tbody",{children:s.map(r=>jsxs("tr",{style:{borderBottom:"1px solid #222"},children:[jsx("td",{style:{padding:"3px 6px",fontFamily:"monospace",wordBreak:"break-all",opacity:.8},children:r}),a.map(i=>{const n=void 0!==(t[i]??{})[r],a=void 0!==(e[i]??{})[r],s=(o[i]??{})[r]??"";let l="default";return n&&a?l="merged":a&&(l="custom"),jsx("td",{style:{padding:"3px 6px",verticalAlign:"top"},children:jsxs("div",{style:{display:"flex",gap:4,alignItems:"flex-start"},children:[jsx(SourceBadge,{source:l}),jsx("span",{style:{wordBreak:"break-word",opacity:.85},children:s})]})},i)})]},r))})]})})]})}function ColorsPanel({projectColors:e,defaultColors:t,colorsInputRef:r,onImportClick:i,onChange:n}){const o=e?mergeProjectColors(t,e):t,a=!!e;function s(e={},t={},r={}){return Array.from(new Set([...Object.keys(e),...Object.keys(t)])).sort().map(i=>{const n=i in(t??{});let o="default";return i in e&&n?o="merged":n&&(o="custom"),{key:i,value:r[i]??"",src:o}})}const l=s(t.STATIC_COLORS??{},e?.STATIC_COLORS??{},o.STATIC_COLORS??{}),c=Array.from(new Set([...Object.keys(t.THEME_COLORS??{}),...Object.keys(e?.THEME_COLORS??{})])).sort();function d({k:e,value:t,src:r}){return jsxs("tr",{style:{borderBottom:"1px solid #222"},children:[jsx("td",{style:{padding:"3px 8px",fontFamily:"monospace",fontSize:11,opacity:.8},children:e}),jsx("td",{style:{padding:"3px 8px"},children:jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[jsx("span",{style:{display:"inline-block",width:14,height:14,borderRadius:3,background:t,border:"1px solid #555",flexShrink:0}}),jsx("span",{style:{fontFamily:"monospace",fontSize:11},children:t})]})}),jsx("td",{style:{padding:"3px 8px"},children:jsx(SourceBadge,{source:r})})]})}function p({rows:e}){return jsxs("table",{style:{borderCollapse:"collapse",width:"100%",fontSize:11},children:[jsx("thead",{children:jsx("tr",{children:["token","value","source"].map(e=>jsx("th",{style:{textAlign:"left",padding:"3px 8px",borderBottom:"1px solid #333",fontWeight:600},children:e},e))})}),jsx("tbody",{children:e.map(e=>jsx(d,{k:e.key,value:e.value,src:e.src},e.key))})]})}return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Import JSON"}),jsx("input",{ref:r,type:"file",accept:".json,application/json",style:{display:"none"},onChange:n}),jsx("span",{style:{marginLeft:"auto",fontSize:11,opacity:.5},children:a?"custom overrides active":"using defaults"})]}),jsxs("div",{style:{display:"flex",gap:8,margin:"8px 0 4px",fontSize:11},children:[jsx(SourceBadge,{source:"default"})," default only",jsx(SourceBadge,{source:"custom"})," custom override",jsx(SourceBadge,{source:"merged"})," both (custom wins)"]}),jsx("div",{style:{fontWeight:600,fontSize:12,margin:"10px 0 4px"},children:"STATIC_COLORS"}),jsx(p,{rows:l}),c.map(r=>{const i=s(t.THEME_COLORS?.[r]??{},e?.THEME_COLORS?.[r]??{},o.THEME_COLORS?.[r]??{});return jsxs("div",{children:[jsxs("div",{style:{fontWeight:600,fontSize:12,margin:"10px 0 4px"},children:["THEME_COLORS / ",r]}),jsx(p,{rows:i})]},r)})]})}function InspectModal({onClose:e}){const[t,r]=useState("localizations"),{localization:i,projectColors:n,theme:o,defaultLanguage:a}=useRenderStore(e=>({localization:e.localization,projectColors:e.projectColors,theme:e.theme,defaultLanguage:e.defaultLanguage})),s=useMemo(()=>getLastParamsSnapshot(),[]);return jsxs(Modal,{onClose:e,ariaLabelledBy:"inspect-modal-title",className:"modal--large modal--scrollable",contentClassName:"inspect-modal__content",children:[jsxs("div",{className:"modal__header inspect-modal__header",children:[jsx("h3",{id:"inspect-modal-title",className:"modal__title",children:"Inspect"}),jsx("button",{type:"button",className:"editor-button",onClick:e,children:"Close"})]}),jsxs("div",{className:"inspect-modal__tabs",children:[jsx("button",{type:"button",className:"inspect-modal__tab"+("localizations"===t?" is-active":""),onClick:()=>r("localizations"),children:"Localizations"}),jsx("button",{type:"button",className:"inspect-modal__tab"+("params"===t?" is-active":""),onClick:()=>r("params"),children:"Params"}),jsx("button",{type:"button",className:"inspect-modal__tab"+("colors"===t?" is-active":""),onClick:()=>r("colors"),children:"Colors"})]}),jsxs("div",{className:"inspect-modal__body",children:["localizations"===t&&jsx(LocalizationsTab,{localication:i??{},language:a}),"params"===t&&jsx(ParamsTab,{localizationParams:s.localizationParams,nestedLocalizationParams:s.nestedLocalizationParams}),"colors"===t&&jsx(ColorsTab,{projectColors:n,theme:o})]})]})}function LocalizationsTab({localication:e,language:t}){const r=e[t]??{},i=defaultLocalization[t]??defaultLocalization.en??{},n=Array.from(new Set([...Object.keys(i),...Object.keys(r)])).sort();if(0===n.length)return jsxs("p",{className:"inspect-modal__empty",children:['No localization keys found for "',t,'".']});return jsxs("div",{className:"inspect-modal__table-wrap",children:[jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"8px"},children:jsx("button",{type:"button",className:"editor-button",onClick:()=>{let e="Key,Value,Source\n";n.forEach(t=>{const n=t in r,o=r[t],a=i[t],s=n&&o!==a&&void 0!==o,l=s?o:a??"",c=e=>`"${String(e).replace(/"/g,'""')}"`;e+=`${c(t)},${c(String(l))},${s?"custom":"fallback"}\n`}),downloadCSV(`localizations-${t}.csv`,e)},children:"Download CSV"})}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Key"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:n.map(e=>{const t=e in r,n=r[e],o=i[e],a=t&&n!==o&&void 0!==n,s=a?n:o??"";return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsx("td",{className:"inspect-modal__cell-value",children:s}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(a?" inspect-modal__badge--custom":" inspect-modal__badge--default"),children:a?"custom":jsxs(Fragment,{children:[jsx("span",{style:{color:"red"},children:"!"})," fallback"]})})})]},e)})})]})]})}function ParamsTab({localizationParams:e,nestedLocalizationParams:t}){const r=Object.entries(e),i=Object.entries(t);if(!(r.length>0||i.length>0))return jsx("p",{className:"inspect-modal__empty",children:"No params available. Params are populated inside a PaywallProvider."});return jsxs("div",{className:"inspect-modal__table-wrap",children:[jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"8px"},children:jsx("button",{type:"button",className:"editor-button",onClick:()=>{let e="Param,Value,Type\n";const t=e=>`"${String(e).replace(/"/g,'""')}"`;r.forEach(([r,i])=>{e+=`${t(r)},${t(formatValue(i))},Flat\n`}),i.forEach(([r,i])=>{e+=`${t(r)},${t(formatValue(i))},Nested\n`}),downloadCSV("params.csv",e)},children:"Download CSV"})}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Param"}),jsx("th",{children:"Value"})]})}),jsxs("tbody",{children:[r.map(([e,t])=>jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsx("td",{className:"inspect-modal__cell-value",children:formatValue(t)})]},e)),i.length>0&&jsxs(Fragment,{children:[jsx("tr",{className:"inspect-modal__separator-row",children:jsx("td",{colSpan:2,children:"Nested (per-product)"})}),i.map(([e,t])=>jsxs("tr",{children:[jsxs("td",{className:"inspect-modal__cell-key inspect-modal__cell-key--nested",children:["- ",e]}),jsx("td",{className:"inspect-modal__cell-value",children:formatValue(t)})]},`nested-${e}`))]})]})]})]})}function ColorsTab({projectColors:e,theme:t}){const r=e?.STATIC_COLORS??{},i=e?.THEME_COLORS?.[t]??{},n=defaultProjectColors.STATIC_COLORS??{},o=defaultProjectColors.THEME_COLORS?.[t]??{},a=Object.entries(r),s=Object.entries(i);if(0===a.length&&0===s.length)return jsx("p",{className:"inspect-modal__empty",children:"No project colors defined."});return jsxs("div",{className:"inspect-modal__table-wrap",children:[jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"8px"},children:jsx("button",{type:"button",className:"editor-button",onClick:()=>{let e="Type,Token,Value,Source\n";const r=e=>`"${String(e).replace(/"/g,'""')}"`;a.forEach(([t,i])=>{const o=n[t]===i;e+=`Static,${r(t)},${r(String(i))},${o?"fallback":"custom"}\n`}),s.forEach(([i,n])=>{const a=o[i]===n;e+=`Theme (${t}),${r(i)},${r(String(n))},${a?"fallback":"custom"}\n`}),downloadCSV("colors.csv",e)},children:"Download CSV"})}),a.length>0&&jsxs(Fragment,{children:[jsx("h4",{className:"inspect-modal__section-title",children:"Static Colors"}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Token"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:a.map(([e,t])=>{const r=n[e]===t;return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsxs("td",{className:"inspect-modal__cell-value",children:[jsx("span",{className:"inspect-modal__color-swatch",style:{backgroundColor:t}}),t]}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(r?" inspect-modal__badge--default":" inspect-modal__badge--custom"),children:r?jsxs(Fragment,{children:[jsx("span",{style:{color:"red"},children:"!"})," fallback"]}):"custom"})})]},e)})})]})]}),s.length>0&&jsxs(Fragment,{children:[jsxs("h4",{className:"inspect-modal__section-title",children:["Theme Colors (",t,")"]}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Token"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:s.map(([e,t])=>{const r=o[e]===t;return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsxs("td",{className:"inspect-modal__cell-value",children:[jsx("span",{className:"inspect-modal__color-swatch",style:{backgroundColor:t}}),t]}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(r?" inspect-modal__badge--default":" inspect-modal__badge--custom"),children:r?jsxs(Fragment,{children:[jsx("span",{style:{color:"red"},children:"!"})," fallback"]}):"custom"})})]},e)})})]})]})]})}function formatValue(e){return void 0===e?"—":null===e?"null":"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)}function downloadCSV(e,t){const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),n=document.createElement("a");n.setAttribute("href",i),n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function escapeXmlAttr(e,t){let r=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return r='"'===t?r.replace(/"/g,"&quot;"):r.replace(/'/g,"&apos;"),r}function attrValueToString(e){return null==e?"":"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)}function nodeToXmlInner(e,t){const r=" ".repeat(t);if(null==e)return"";if("string"==typeof e)return`${r}${escapeXmlAttr(e,'"').replace(/"/g,'"')}`;if(Array.isArray(e))return e.map(e=>nodeToXmlInner(e,t)).join("\n");if("object"!=typeof e)return"";const i=e,n=i.type;if(!n)return"";const o=[],a=(e,t)=>{const r=attrValueToString(t),i=r.includes('"')&&!r.includes("'")?"'":'"',n=escapeXmlAttr(r,i);o.push(`${e}=${i}${n}${i}`)};if(i.key&&a("key",i.key),i.sourceType&&a("sourceType",i.sourceType),i.isMain&&a("isMain","true"),i.attributes&&"object"==typeof i.attributes)for(const[e,t]of Object.entries(i.attributes))a(e,t);const s=o.length>0?" "+o.join(" "):"",l=i.children;if(null==l||Array.isArray(l)&&0===l.length)return`${r}<${n}${s} />`;return`${r}<${n}${s}>\n${nodeToXmlInner(l,t+1)}\n${r}</${n}>`}function nodeToXml(e){return null==e?"":nodeToXmlInner(e,0)}function unescapeXml(e){return e.replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")}function parseAttrValue(e){const t=unescapeXml(e);if("true"===t)return!0;if("false"===t)return!1;if(""!==t&&!Number.isNaN(Number(t)))return Number(t);if(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]"))try{return JSON.parse(t)}catch{}return t}function domElementToNode(e){const t={type:e.tagName,children:null},r=new Set(["key","sourceType","isMain"]),i={};for(const n of Array.from(e.attributes))r.has(n.name)?"key"===n.name?t.key=n.value:"sourceType"===n.name?t.sourceType=n.value:"isMain"===n.name&&(t.isMain="true"===n.value):i[n.name]=parseAttrValue(n.value);Object.keys(i).length>0&&(t.attributes=i);const n=[];for(const t of Array.from(e.childNodes))if(1===t.nodeType)n.push(domElementToNode(t));else if(3===t.nodeType){const e=(t.textContent??"").trim();e&&n.push(e)}return 0===n.length?t.children=null:1===n.length?t.children=n[0]:t.children=n,t}function xmlToNode(e){if(!e.trim())return null;const t=(new DOMParser).parseFromString(e,"text/xml"),r=t.querySelector("parsererror");if(r)throw new Error(r.textContent??"XML parse error");return domElementToNode(t.documentElement)}const onboardPromptScheme='You are a React Native UI builder assistant. Your goal is to generate a valid **onboard** screen node tree in XML format.\n\n## Available Components & Their Props\n\nEach component is listed as `ComponentName: {attr: TypeScriptType, styles: {prop: TypeScriptType}}`. Use ONLY these component names and attribute names. Do NOT invent new components or attributes.\n\nUnion enum values must match exactly (e.g. `"expanding_dot"` not `expandingDot`). Color values: prefer `THEME_COLORS.KEY` or `STATIC_COLORS.KEY` for theme-aware colors. Literal values like `"red"` or `"#000fff"` are also valid when a specific color is intended. Localization string values should use a localization key from the **Available Localization Keys** section. Do NOT invent new keys.\n\n```\nBIcon:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,iconType:string,size:number,strokeWidth:number,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nBackgroundImage:{scrollable:boolean,testID:string,src:string,resizeMode:"cover"|"contain"|"stretch"|"center",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nButton:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,color:string,fontSize:string,fontWeight:"normal"|"bold"|"100"|"200"|"300"|"400"|"500"|"600"|"700"|"800"|"900"}}\nCarousel:{scrollable:boolean,testID:string,loop:boolean,dragFree:boolean,align:"start"|"center"|"end",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselButtons:{scrollable:boolean,testID:string,buttonType:"previous_button"|"next_button"|"skip_button",skipNumber:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselDots:{scrollable:boolean,testID:string,dotType:"expanding_dot"|"normal_dot"|"scaling_dot"|"sliding_border"|"sliding_dot"|"liquid_like",dot_thickness:string,inactive_dot_opacity:number,inactive_dot_color:string,active_dot_color:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselItem:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselProvider:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCheckbox:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,checked:boolean,label:string,checkedColor:string,syncTermsAccepted:boolean,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:number,width:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,checkIconSize:number,checkIconStrokeWidth:number}}\nCountDown:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,count:number,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:obj,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:obj,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormCheckbox:{checked:boolean,label:string,checkedColor:string,syncTermsAccepted:boolean,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,name:string,validation:[string],styles:{borderRadius:string,checkIconSize:number,checkIconStrokeWidth:number,color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormErrorText:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormProvider:{scrollable:boolean,testID:string,defaultValues:string,validationErrorMessageKey:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormSubmitButton:{labelKey:string,events:[obj],testID:string,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,disableIfUnvalidated:boolean,validationRequired:boolean,styles:{color:string,backgroundColor:string,height:string,borderRadius:string,fontSize:string,fontWeight:string,fontFamily:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nImage:{scrollable:boolean,testID:string,src:string,fetchStrategy:"highIfItsAppLaunch"|"normal"|"lazy"|"none",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,resizeMode:"cover"|"contain"|"stretch"|"center"}}\nMain:{scrollable:boolean,testID:string,useSafeAreaView:boolean,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nNavigationBarColor:{translucent:boolean,styles:{backgroundColor:string}}\nOnboard:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardButton:{labelKey:string,events:[obj],testID:"onboardSkip"|"onboardNext",adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,animation:"simple-animation"|"line-animation"|"blur"|"blur-animation"|"blur-line-animation",animation_color:string,styles:{color:string,backgroundColor:string,height:string,borderRadius:string,fontSize:string,fontWeight:string,fontFamily:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardButtons:{scrollable:boolean,testID:string,buttonType:"previous_button"|"next_button"|"skip_button",skipNumber:number,buttons_direction:"row"|"column",forIndex:number,seperatorColor:string,condition:"carousel-index",conditionVariable:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardDot:{scrollable:boolean,testID:string,dotType:"expanding_dot"|"normal_dot"|"scaling_dot"|"sliding_border"|"sliding_dot"|"liquid_like",dot_thickness:string,inactive_dot_opacity:number,inactive_dot_color:string,active_dot_color:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardFooter:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,textLocalizationKey:string,linkedWordFirstLocalizationKey:string,linkedWordFirstColor:string,linkedWordFirstPage:string,linkedWordSecondLocalizationKey:string,linkedWordSecondColor:string,linkedWordSecondPage:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardImage:{src:string,fetchStrategy:"highIfItsAppLaunch"|"normal"|"lazy"|"none",scrollable:boolean,testID:string,video_url:string,lottie:string,styles:{resizeMode:"cover"|"contain"|"stretch"|"center",flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardItem:{scrollable:boolean,testID:string,display:"flex"|"block",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardProvider:{scrollable:boolean,testID:string,theme:"light"|"dark"|"all",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardSubtitle:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardTitle:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallBackground:{src:string,resizeMode:"cover"|"contain"|"stretch"|"center",scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallCloseButton:{iconType:string,size:number,strokeWidth:number,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallFooter:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,textLocalizationKey:string,linkedWordFirstLocalizationKey:string,linkedWordFirstColor:string,linkedWordFirstPage:string,linkedWordSecondLocalizationKey:string,linkedWordSecondColor:string,linkedWordSecondPage:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallOptions:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallProvider:{scrollable:boolean,testID:string,delay:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallSubscribeButton:{scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontWeight:"normal"|"bold"|"100"|"200"|"300"|"400"|"500"|"600"|"700"|"800"|"900",flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPriceTag:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,showOriginalPricePossible:boolean,hideIfItsNotDiscount:boolean,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,textDecorationLine:"none"|"underline"|"line-through"}}\nPricing:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPromo:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nRadioButton:{scrollable:boolean,testID:string,selected:boolean,color:string,size:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nSeparator:{testID:string,styles:{backgroundColor:string,width:string,height:string,marginHorizontal:string,marginVertical:string,marginTop:string,marginBottom:string}}\nStatusBarColor:{translucent:boolean,styles:{backgroundColor:string}}\nSystemButton:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,labelKey:string,events:[obj],styles:{color:string,fontSize:number,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:number,width:string,minWidth:string,maxWidth:string,height:number,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nText:{scrollable:boolean,testID:string,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string}}\nView:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nWebView:{scrollable:boolean,testID:string,iosUrl:string,androidUrl:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,loaderColor:string,loaderSize:number,loaderBorderWidth:number,loaderAnimationDuration:number}}\n```\n\n## Available Icons\n\nUse one of these values for `iconType` attributes:\n\n```\n\n```\n\n## XML Rules\n\n- Root element must always be `<Main isMain="true">`.\n- Text content (children) goes as element body text, not as an attribute.\n- `styles` value must be a JSON object string (escape inner quotes): `styles="{&quot;flex&quot;:1,&quot;color&quot;:&quot;THEME_COLORS.TEXT&quot;}"`.\n- `events` value must be a JSON array string.\n- Omit any attribute that has no value — no nulls, no empty strings.\n- Use a short unique slug for `key` when the component needs one.\n- Only use components appropriate for a onboard screen.\n\n## Component & Layout Constraints\n\n- **Mobile Limits**: When applying absolute sizes (width, height, testing dimensions), do NOT exceed typical mobile screen dimensions (e.g., max width ~360-400, max height ~800).\n- **testID**: Every component MUST have a unique `testID` attribute, **EXCEPT** `OnboardButton` (do not provide `testID` for `OnboardButton` as it handles it internally).\n- **PaywallOptions**: When using `PaywallOptions`, generate ONLY ONE layout template inside it. The app repeats this template for each product dynamically.\n- **PriceTag Placement**: If `PriceTag` is placed **inside** `PaywallOptions`, it displays the price of that specific option in the loop. If placed **outside** of `PaywallOptions`, it displays the price of the user\'s currently *selected* option.\n\n## Embla Carousel Constraints\n\n> **IMPORTANT – Web uses Embla carousel under the hood.** For `OnboardProvider` and `OnboardItem`, do **NOT** set any of the following outer layout styles via `styles`, because Embla manages them internally through its own CSS classes (`embla`, `embla__viewport`, `embla__slide`):\n>\n> `flex`, `flexGrow`, `flexShrink`, `margin`, `marginTop`, `marginBottom`, `marginLeft`, `marginRight`, `marginHorizontal`, `marginVertical`, `height`, `minHeight`, `maxHeight`, `width`, `minWidth`, `maxWidth`, `position`, `top`, `bottom`, `left`, `right`, `zIndex`, `display`\n>\n> Only **visual** styles are safe to set on `OnboardProvider` and `OnboardItem`: `padding`, `paddingTop`, `paddingBottom`, `paddingLeft`, `paddingRight`, `paddingHorizontal`, `paddingVertical`, `backgroundColor`, `borderRadius`, `gap`, `alignItems`, `justifyContent`, `flexDirection`, `flexWrap`\n\n## Available Localization Keys\n\nUse ONLY the keys listed below for localization attributes (`labelKey`, `textLocalizationKey`, etc.). Do NOT invent new keys or use keys not in this list.\n\n```\nbase.builder.paywall.period.monthly\nbase.builder.paywall.period.annual\nbase.builder.paywall.period.weekly\nbase.builder.paywall.period.daily\nbase.builder.paywall.period.monthlyPromo\nbase.builder.paywall.period.annualPromo\nbase.builder.paywall.pricing.default.text\nbase.builder.paywall.pricing.freeTrial.text\nbase.builder.paywall.pricing.regular.text\nbase.builder.paywall.promo.default.text\nbase.builder.paywall.promo.freeTrial.text\nbase.builder.paywall.promo.regular.text\nbase.builder.paywall.button.subscribe\nbase.builder.paywall.button.subscribe-free\nbase.onboard.title.one-page\nbase.onboard.title.two-page\nbase.onboard.title.three-page\nbase.onboard.title.four-page\nbase.onboard.title.five-page\nbase.onboard.title.six-page\nbase.onboard.title.one-page2\nbase.onboard.title.two-page2\nbase.onboard.title.three-page2\nbase.onboard.title.four-page2\nbase.onboard.subtitle.one-page\nbase.onboard.subtitle.two-page\nbase.onboard.subtitle.three-page\nbase.onboard.subtitle.four-page\nbase.onboard.subtitle.five-page\nbase.onboard.subtitle.six-page\nbase.onboard.subtitle.one-page2\nbase.onboard.subtitle.two-page2\nbase.onboard.subtitle.three-page2\nbase.onboard.subtitle.four-page2\nbase.onboard.next.one-page\nbase.onboard.next.two-page\nbase.onboard.next.three-page\nbase.onboard.next.five-page\nbase.onboard.skip.one-page\nbase.onboard.skip.two-page\nbase.onboard.skip.three-page\nbase.onboard.skip.five-page\nbase.onboard.allow.four-page\nbase.onboard.footer.description\nbase.onboard.btnPrivacy\nbase.onboard.btnTerms\nbase.builder.paywall.footer.description\nbase.builder.paywall.btnPrivacy\nbase.builder.paywall.btnTerms\nview.terms.header.title\nview.terms.accept.button\nview.terms.checkbox.label\nview.terms.error.must_accept\nform.error.validation_required\n```\n\n## Default Colors\n\nReference color tokens already defined in the project. Prefer these over hard-coded hex values.\n\n```\n STATIC_COLORS.BLACK: "#000"\n STATIC_COLORS.WHITE: "#FFFFFF"\n STATIC_COLORS.TRANSPARENT: "#ffffff00"\n STATIC_COLORS.ONBOARD_DOT_INACTIVE: "#E4E5E7"\n STATIC_COLORS.ONBOARD_DOT_ACTIVE: "#007AFF"\n STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND: "#0066FF"\n STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_TEXT: "#FFFFFF"\n STATIC_COLORS.ONBOARD_LINK_COLOR: "#1778F2"\n STATIC_COLORS.ONBOARD_SEPARATOR_COLOR: "#44454D"\n STATIC_COLORS.RADIO_BUTTON_COLOR: "#A6A6A6"\n THEME_COLORS.TEXT (light): "#161827"\n THEME_COLORS.BACKGROUND (light): "#F4F5FF"\n THEME_COLORS.ICON (light): "#0450E2"\n THEME_COLORS.LINE (light): "#E9EBF9"\n THEME_COLORS.ONBOARD_TITLE (light): "#161827"\n THEME_COLORS.ONBOARD_SUBTITLE (light): "#44454D"\n THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT (light): "#81838F"\n THEME_COLORS.ONBOARD_FOOTER_TEXT (light): "#81838F"\n THEME_COLORS.CHECKBOX_ACTIVE_COLOR (light): "#0066FF"\n THEME_COLORS.FORM_ERROR_TEXT_COLOR (light): "#B91C1C"\n THEME_COLORS.TEXT (dark): "#E9EBF9"\n THEME_COLORS.BACKGROUND (dark): "#080A17"\n THEME_COLORS.ICON (dark): "#0450E2"\n THEME_COLORS.LINE (dark): "#161827"\n THEME_COLORS.ONBOARD_TITLE (dark): "#FDFDFD"\n THEME_COLORS.ONBOARD_SUBTITLE (dark): "#C7C7C7"\n THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT (dark): "#A9AAAC"\n THEME_COLORS.ONBOARD_FOOTER_TEXT (dark): "#A2A4B1"\n THEME_COLORS.CHECKBOX_ACTIVE_COLOR (dark): "#0066FF"\n THEME_COLORS.FORM_ERROR_TEXT_COLOR (dark): "#B91C1C"\n```\n\n## Default Localization (en)\n\n```\n{\n "base.builder.paywall.period.monthly": "per month",\n "base.builder.paywall.period.annual": "per year",\n "base.builder.paywall.period.weekly": "per week",\n "base.builder.paywall.period.daily": "per day",\n "base.builder.paywall.period.monthlyPromo": "per month",\n "base.builder.paywall.period.annualPromo": "per year",\n "base.builder.paywall.pricing.default.text": "@promoPrice for the first @promoPeriod, then @localizedPrice @localizedPeriod",\n "base.builder.paywall.pricing.freeTrial.text": "@trialPeriod-@trialPeriodUnit free trial, then @localizedPrice @localizedPeriod",\n "base.builder.paywall.pricing.regular.text": "@localizedPrice @localizedPeriod",\n "base.builder.paywall.promo.default.text": "Save @discountPercentage%!",\n "base.builder.paywall.promo.freeTrial.text": "@trialPeriod-@trialPeriodUnit free trial",\n "base.builder.paywall.promo.regular.text": "@localizedPrice @localizedPeriod",\n "base.builder.paywall.button.subscribe": "Subscribe",\n "base.builder.paywall.button.subscribe-free": "Subscribe with Free Trial",\n "base.onboard.title.one-page": "Secure your connection",\n "base.onboard.title.two-page": "Access content worldwide",\n "base.onboard.title.three-page": "Fast and reliable",\n "base.onboard.title.four-page": "Stay notified and safe",\n "base.onboard.title.five-page": "Enhance your experience",\n "base.onboard.title.six-page": "You are all set!",\n "base.onboard.title.one-page2": "Secure your connection",\n "base.onboard.title.two-page2": "Access content worldwide",\n "base.onboard.title.three-page2": "Fast and reliable",\n "base.onboard.title.four-page2": "Stay notified and safe",\n "base.onboard.subtitle.one-page": "Encrypt your traffic and protect your privacy on public Wi\\u2011Fi.",\n "base.onboard.subtitle.two-page": "Connect to high\\u2011speed servers in many countries with one tap.",\n "base.onboard.subtitle.three-page": "Auto\\u2011connect to the best server for speed and stability.",\n "base.onboard.subtitle.four-page": "Enable notifications for connection status and security tips.",\n "base.onboard.subtitle.five-page": "Get the most out of our app with premium features.",\n "base.onboard.subtitle.six-page": "Enjoy secure and fast browsing.",\n "base.onboard.subtitle.one-page2": "Encrypt your traffic and protect your privacy on public Wi\\u2011Fi.",\n "base.onboard.subtitle.two-page2": "Connect to high\\u2011speed servers in many countries with one tap.",\n "base.onboard.subtitle.three-page2": "Auto\\u2011connect to the best server for speed and stability.",\n "base.onboard.subtitle.four-page2": "Enable notifications for connection status and security tips.",\n "base.onboard.next.one-page": "Next",\n "base.onboard.next.two-page": "Next",\n "base.onboard.next.three-page": "Next",\n "base.onboard.next.five-page": "Next",\n "base.onboard.skip.one-page": "Skip",\n "base.onboard.skip.two-page": "Skip",\n "base.onboard.skip.three-page": "Skip",\n "base.onboard.skip.five-page": "Skip",\n "base.onboard.allow.four-page": "Allow",\n "base.onboard.footer.description": "By clicking continue, you will be accepting the Terms of service and privacy policy",\n "base.onboard.btnPrivacy": "Privacy Policy",\n "base.onboard.btnTerms": "Terms of Service",\n "base.builder.paywall.footer.description": "By clicking continue, you will be accepting the Terms of service and privacy policy",\n "base.builder.paywall.btnPrivacy": "Privacy Policy",\n "base.builder.paywall.btnTerms": "Terms of Service",\n "view.terms.header.title": "Terms & Privacy",\n "view.terms.accept.button": "Accept",\n "view.terms.checkbox.label": "I accept the terms and privacy policy",\n "view.terms.error.must_accept": "You must accept to continue",\n "form.error.validation_required": "Please complete the required fields."\n}\n```\n\n## Reference Example\n\nA complete, valid onboard XML:\n\n```xml\n<Main key="c92tR8J5wbTb3fav" isMain="true" useSafeAreaView="true" description="Ekranın ana kapsayıcısı. (#1)" title="Main 1" styles=\'{"paddingBottom":16}\' testID="Main-test-id-1">\n <StatusBarColor title="Status Bar Color" description="Status bar background color." styles=\'{"backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="StatusBarColor-test-id-1" />\n <NavigationBarColor title="Navigation Bar Color" description="Navigation bar background color." styles=\'{"backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="NavigationBarColor-test-id-1" />\n <OnboardProvider theme="dark" description="Onboarding sağlayıcısı. (#1)" title="OnboardProvider 1" testID="OnboardProvider-test-id-1">\n <Onboard description="Onboarding ana yapısı. (#1)" title="Onboard 1" styles=\'{"flex":1}\' testID="Onboard-test-id-1">\n <OnboardItem key="app_onboard-page1" description="Onboarding sayfası. (#1)" title="OnboardItem 1" testID="OnboardItem-test-id-1">\n <OnboardTitle description="Sayfa başlığı. (#1)" title="OnboardTitle 1" styles=\'{"color":"THEME_COLORS.ONBOARD_TITLE","textAlign":"center","marginTop":40}\' testID="OnboardTitle-test-id-1">\n base.onboard.title.one-page\n </OnboardTitle>\n <OnboardImage src="https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png" resizeMode="contain" styles=\'{"height":350}\' testID="OnboardImage-test-id-1" fetchStrategy="highIfItsAppLaunch" />\n <OnboardSubtitle description="Sayfa alt başlığı. (#1)" title="OnboardSubtitle 1" styles=\'{"color":"THEME_COLORS.ONBOARD_SUBTITLE","fontSize":16,"textAlign":"center"}\' testID="OnboardSubtitle-test-id-1">\n base.onboard.subtitle.one-page\n </OnboardSubtitle>\n </OnboardItem>\n <OnboardItem key="app_onboard-page2" description="Onboarding sayfası. (#2)" title="OnboardItem 2" testID="OnboardItem-test-id-2">\n <OnboardTitle description="Sayfa başlığı. (#2)" title="OnboardTitle 2" styles=\'{"color":"THEME_COLORS.ONBOARD_TITLE","textAlign":"center","marginTop":40}\' testID="OnboardTitle-test-id-2">\n base.onboard.title.two-page\n </OnboardTitle>\n <OnboardImage src="https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png" resizeMode="contain" styles=\'{"height":350}\' testID="OnboardImage-test-id-2" fetchStrategy="normal" />\n <OnboardSubtitle description="Sayfa alt başlığı. (#2)" title="OnboardSubtitle 2" styles=\'{"color":"THEME_COLORS.ONBOARD_SUBTITLE","fontSize":16,"textAlign":"center"}\' testID="OnboardSubtitle-test-id-2">\n base.onboard.subtitle.two-page\n </OnboardSubtitle>\n </OnboardItem>\n <OnboardItem key="app_onboard-page3" description="Onboarding sayfası. (#3)" title="OnboardItem 3" testID="OnboardItem-test-id-3">\n <OnboardTitle description="Sayfa başlığı. (#3)" title="OnboardTitle 3" styles=\'{"color":"THEME_COLORS.ONBOARD_TITLE","textAlign":"center","marginTop":40}\' testID="OnboardTitle-test-id-3">\n base.onboard.title.three-page\n </OnboardTitle>\n <OnboardImage src="https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png" resizeMode="contain" styles=\'{"height":350}\' testID="OnboardImage-test-id-3" fetchStrategy="normal" />\n <OnboardSubtitle description="Sayfa alt başlığı. (#3)" title="OnboardSubtitle 3" styles=\'{"color":"THEME_COLORS.ONBOARD_SUBTITLE","fontSize":16,"textAlign":"center"}\' testID="OnboardSubtitle-test-id-3">\n base.onboard.subtitle.three-page\n </OnboardSubtitle>\n </OnboardItem>\n <OnboardItem key="app_onboard-page4" description="Onboarding sayfası. (#4)" title="OnboardItem 4" testID="OnboardItem-test-id-4">\n <OnboardTitle description="Sayfa başlığı. (#4)" title="OnboardTitle 4" styles=\'{"color":"THEME_COLORS.ONBOARD_TITLE","textAlign":"center","marginTop":40}\' testID="OnboardTitle-test-id-4">\n base.onboard.title.four-page\n </OnboardTitle>\n <OnboardImage src="https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png" resizeMode="contain" styles=\'{"height":350}\' testID="OnboardImage-test-id-4" fetchStrategy="normal" />\n <OnboardSubtitle description="Sayfa alt başlığı. (#4)" title="OnboardSubtitle 4" styles=\'{"color":"THEME_COLORS.ONBOARD_SUBTITLE","fontSize":16,"textAlign":"center"}\' testID="OnboardSubtitle-test-id-4">\n base.onboard.subtitle.four-page\n </OnboardSubtitle>\n </OnboardItem>\n </Onboard>\n <OnboardDot dotType="expanding_dot" dot_thickness="20" inactive_dot_opacity="0.3" inactive_dot_color="STATIC_COLORS.ONBOARD_DOT_INACTIVE" active_dot_color="STATIC_COLORS.ONBOARD_DOT_ACTIVE" styles=\'{"paddingVertical":12}\' testID="OnboardDot-test-id-1" />\n <Separator title="Separator" description="Horizontal separator line" styles=\'{"width":"100%","height":2,"backgroundColor":"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}\' testID="Separator-test-id-1" />\n <OnboardButtons buttons_direction="row" condition="carousel-index" conditionVariable="0" description="Sayfa buton grubu. (#1)" title="OnboardButtons 1" styles=\'{"height":40,"marginVertical":12,"flexShrink":0}\' testID="OnboardButtons-test-id-1">\n <OnboardButton labelKey="base.onboard.skip.one-page" events=\'[{"type":"Navigate","navigate_to":null,"targetIndex":3}]\' styles=\'{"flex":1,"color":"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT","backgroundColor":"STATIC_COLORS.TRANSPARENT"}\' testID="onboardNext" />\n <OnboardButton labelKey="base.onboard.next.one-page" events=\'[{"type":"Navigate","navigate_to":null,"targetIndex":1}]\' styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","backgroundColor":"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"}\' testID="onboardNext" />\n </OnboardButtons>\n <OnboardButtons buttons_direction="row" condition="carousel-index" conditionVariable="1" description="Sayfa buton grubu. (#2)" title="OnboardButtons 2" styles=\'{"height":40,"marginVertical":12,"flexShrink":0}\' testID="OnboardButtons-test-id-2">\n <OnboardButton labelKey="base.onboard.skip.two-page" events=\'[{"type":"Permission","permission":"att"},{"type":"Navigate","navigate_to":null,"targetIndex":3}]\' styles=\'{"flex":1,"color":"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT","backgroundColor":"STATIC_COLORS.TRANSPARENT"}\' testID="onboardNext" />\n <OnboardButton labelKey="base.onboard.next.two-page" events=\'[{"type":"Permission","permission":"att"},{"type":"Navigate","navigate_to":null,"targetIndex":2}]\' styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","backgroundColor":"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"}\' testID="onboardNext" />\n </OnboardButtons>\n <OnboardButtons buttons_direction="row" condition="carousel-index" conditionVariable="2" description="Sayfa buton grubu. (#3)" title="OnboardButtons 3" styles=\'{"height":40,"marginVertical":12,"flexShrink":0}\' testID="OnboardButtons-test-id-3">\n <OnboardButton labelKey="base.onboard.skip.three-page" events=\'[{"type":"Navigate","navigate_to":null,"targetIndex":3}]\' styles=\'{"flex":1,"color":"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT","backgroundColor":"STATIC_COLORS.TRANSPARENT"}\' testID="onboardNext" />\n <OnboardButton labelKey="base.onboard.next.three-page" events=\'[{"type":"Permission","permission":"rating"},{"type":"Navigate","navigate_to":null,"targetIndex":3}]\' styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","backgroundColor":"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"}\' testID="onboardNext" />\n </OnboardButtons>\n <OnboardButtons buttons_direction="row" condition="carousel-index" conditionVariable="3" description="Sayfa buton grubu. (#4)" title="OnboardButtons 4" styles=\'{"height":40,"marginVertical":12,"flexShrink":0}\' testID="OnboardButtons-test-id-4">\n <OnboardButton labelKey="base.onboard.allow.four-page" events=\'[{"type":"Permission","permission":"notification"},{"type":"Navigate","navigate_to":"home"}]\' styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","backgroundColor":"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND"}\' testID="onboardNext" />\n </OnboardButtons>\n <View title="Onboard Footer Wrap" description="Wrapper for OnboardFooter component" styles=\'{"marginHorizontal":25,"flexShrink":0}\' testID="View-test-id-1">\n <OnboardFooter textLocalizationKey="base.onboard.footer.description" linkedWordFirstLocalizationKey="base.onboard.btnPrivacy" linkedWordFirstColor="STATIC_COLORS.ONBOARD_LINK_COLOR" linkedWordFirstPage="privacy" linkedWordSecondLocalizationKey="base.onboard.btnTerms" linkedWordSecondColor="STATIC_COLORS.ONBOARD_LINK_COLOR" linkedWordSecondPage="terms" styles=\'{"gap":8,"color":"THEME_COLORS.ONBOARD_FOOTER_TEXT"}\' testID="OnboardFooter-test-id-1" />\n </View>\n </OnboardProvider>\n</Main>\n```\n\n## Task\n\nGenerate a node tree XML for the user\'s request below. Output ONLY raw XML — no markdown fences, no explanation.\n',paywallPromptScheme='You are a React Native UI builder assistant. Your goal is to generate a valid **paywall** screen node tree in XML format.\n\n## Available Components & Their Props\n\nEach component is listed as `ComponentName: {attr: TypeScriptType, styles: {prop: TypeScriptType}}`. Use ONLY these component names and attribute names. Do NOT invent new components or attributes.\n\nUnion enum values must match exactly (e.g. `"expanding_dot"` not `expandingDot`). Color values: prefer `THEME_COLORS.KEY` or `STATIC_COLORS.KEY` for theme-aware colors. Literal values like `"red"` or `"#000fff"` are also valid when a specific color is intended. Localization string values should use a localization key from the **Available Localization Keys** section. Do NOT invent new keys.\n\n```\nBIcon:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,iconType:string,size:number,strokeWidth:number,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nBackgroundImage:{scrollable:boolean,testID:string,src:string,resizeMode:"cover"|"contain"|"stretch"|"center",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nButton:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,color:string,fontSize:string,fontWeight:"normal"|"bold"|"100"|"200"|"300"|"400"|"500"|"600"|"700"|"800"|"900"}}\nCarousel:{scrollable:boolean,testID:string,loop:boolean,dragFree:boolean,align:"start"|"center"|"end",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselButtons:{scrollable:boolean,testID:string,buttonType:"previous_button"|"next_button"|"skip_button",skipNumber:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselDots:{scrollable:boolean,testID:string,dotType:"expanding_dot"|"normal_dot"|"scaling_dot"|"sliding_border"|"sliding_dot"|"liquid_like",dot_thickness:string,inactive_dot_opacity:number,inactive_dot_color:string,active_dot_color:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselItem:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCarouselProvider:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nCheckbox:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,checked:boolean,label:string,checkedColor:string,syncTermsAccepted:boolean,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:number,width:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,checkIconSize:number,checkIconStrokeWidth:number}}\nCountDown:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,count:number,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:obj,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:obj,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormCheckbox:{checked:boolean,label:string,checkedColor:string,syncTermsAccepted:boolean,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,name:string,validation:[string],styles:{borderRadius:string,checkIconSize:number,checkIconStrokeWidth:number,color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormErrorText:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormProvider:{scrollable:boolean,testID:string,defaultValues:string,validationErrorMessageKey:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nFormSubmitButton:{labelKey:string,events:[obj],testID:string,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,disableIfUnvalidated:boolean,validationRequired:boolean,styles:{color:string,backgroundColor:string,height:string,borderRadius:string,fontSize:string,fontWeight:string,fontFamily:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nImage:{scrollable:boolean,testID:string,src:string,fetchStrategy:"highIfItsAppLaunch"|"normal"|"lazy"|"none",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,resizeMode:"cover"|"contain"|"stretch"|"center"}}\nMain:{scrollable:boolean,testID:string,useSafeAreaView:boolean,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nNavigationBarColor:{translucent:boolean,styles:{backgroundColor:string}}\nOnboard:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardButton:{labelKey:string,events:[obj],testID:"onboardSkip"|"onboardNext",adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,animation:"simple-animation"|"line-animation"|"blur"|"blur-animation"|"blur-line-animation",animation_color:string,styles:{color:string,backgroundColor:string,height:string,borderRadius:string,fontSize:string,fontWeight:string,fontFamily:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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,width:string,minWidth:string,maxWidth:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardButtons:{scrollable:boolean,testID:string,buttonType:"previous_button"|"next_button"|"skip_button",skipNumber:number,buttons_direction:"row"|"column",forIndex:number,seperatorColor:string,condition:"carousel-index",conditionVariable:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardDot:{scrollable:boolean,testID:string,dotType:"expanding_dot"|"normal_dot"|"scaling_dot"|"sliding_border"|"sliding_dot"|"liquid_like",dot_thickness:string,inactive_dot_opacity:number,inactive_dot_color:string,active_dot_color:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardFooter:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,textLocalizationKey:string,linkedWordFirstLocalizationKey:string,linkedWordFirstColor:string,linkedWordFirstPage:string,linkedWordSecondLocalizationKey:string,linkedWordSecondColor:string,linkedWordSecondPage:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardImage:{src:string,fetchStrategy:"highIfItsAppLaunch"|"normal"|"lazy"|"none",scrollable:boolean,testID:string,video_url:string,lottie:string,styles:{resizeMode:"cover"|"contain"|"stretch"|"center",flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardItem:{scrollable:boolean,testID:string,display:"flex"|"block",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardProvider:{scrollable:boolean,testID:string,theme:"light"|"dark"|"all",styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardSubtitle:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nOnboardTitle:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallBackground:{src:string,resizeMode:"cover"|"contain"|"stretch"|"center",scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallCloseButton:{iconType:string,size:number,strokeWidth:number,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallFooter:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,textLocalizationKey:string,linkedWordFirstLocalizationKey:string,linkedWordFirstColor:string,linkedWordFirstPage:string,linkedWordSecondLocalizationKey:string,linkedWordSecondColor:string,linkedWordSecondPage:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallOptions:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallProvider:{scrollable:boolean,testID:string,delay:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPaywallSubscribeButton:{scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontWeight:"normal"|"bold"|"100"|"200"|"300"|"400"|"500"|"600"|"700"|"800"|"900",flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPriceTag:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,showOriginalPricePossible:boolean,hideIfItsNotDiscount:boolean,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,textDecorationLine:"none"|"underline"|"line-through"}}\nPricing:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nPromo:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,styles:{color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nRadioButton:{scrollable:boolean,testID:string,selected:boolean,color:string,size:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nSeparator:{testID:string,styles:{backgroundColor:string,width:string,height:string,marginHorizontal:string,marginVertical:string,marginTop:string,marginBottom:string}}\nStatusBarColor:{translucent:boolean,styles:{backgroundColor:string}}\nSystemButton:{adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,scrollable:boolean,testID:string,labelKey:string,events:[obj],styles:{color:string,fontSize:number,fontFamily:string,fontWeight:string,textAlign:string,flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:number,width:string,minWidth:string,maxWidth:string,height:number,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nText:{scrollable:boolean,testID:string,adjustsFontSizeToFit:boolean,numberOfLines:number,translateCounter:number,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,color:string,fontSize:string,fontFamily:string,fontWeight:string,textAlign:string}}\nView:{scrollable:boolean,testID:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number}}\nWebView:{scrollable:boolean,testID:string,iosUrl:string,androidUrl:string,styles:{flexDirection:"row"|"column",flexWrap:"nowrap"|"wrap"|"wrap-reverse",alignItems:"flex-start"|"center"|"flex-end"|"stretch"|"baseline",justifyContent:"flex-start"|"center"|"flex-end"|"space-between"|"space-around"|"space-evenly",gap:string,padding:string,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:string,minWidth:string,maxWidth:string,height:string,minHeight:string,maxHeight:string,flex:number,position:"relative"|"absolute",top:string,bottom:string,left:string,right:string,zIndex:number,loaderColor:string,loaderSize:number,loaderBorderWidth:number,loaderAnimationDuration:number}}\n```\n\n## Available Icons\n\nUse one of these values for `iconType` attributes:\n\n```\n\n```\n\n## XML Rules\n\n- Root element must always be `<Main isMain="true">`.\n- Text content (children) goes as element body text, not as an attribute.\n- `styles` value must be a JSON object string (escape inner quotes): `styles="{&quot;flex&quot;:1,&quot;color&quot;:&quot;THEME_COLORS.TEXT&quot;}"`.\n- `events` value must be a JSON array string.\n- Omit any attribute that has no value — no nulls, no empty strings.\n- Use a short unique slug for `key` when the component needs one.\n- Only use components appropriate for a paywall screen.\n\n## Component & Layout Constraints\n\n- **Mobile Limits**: When applying absolute sizes (width, height, testing dimensions), do NOT exceed typical mobile screen dimensions (e.g., max width ~360-400, max height ~800).\n- **testID**: Every component MUST have a unique `testID` attribute, **EXCEPT** `OnboardButton` (do not provide `testID` for `OnboardButton` as it handles it internally).\n- **PaywallOptions**: When using `PaywallOptions`, generate ONLY ONE layout template inside it. The app repeats this template for each product dynamically.\n- **PriceTag Placement**: If `PriceTag` is placed **inside** `PaywallOptions`, it displays the price of that specific option in the loop. If placed **outside** of `PaywallOptions`, it displays the price of the user\'s currently *selected* option.\n\n## Embla Carousel Constraints\n\n> **IMPORTANT – Web uses Embla carousel under the hood.** For `OnboardProvider` and `OnboardItem`, do **NOT** set any of the following outer layout styles via `styles`, because Embla manages them internally through its own CSS classes (`embla`, `embla__viewport`, `embla__slide`):\n>\n> `flex`, `flexGrow`, `flexShrink`, `margin`, `marginTop`, `marginBottom`, `marginLeft`, `marginRight`, `marginHorizontal`, `marginVertical`, `height`, `minHeight`, `maxHeight`, `width`, `minWidth`, `maxWidth`, `position`, `top`, `bottom`, `left`, `right`, `zIndex`, `display`\n>\n> Only **visual** styles are safe to set on `OnboardProvider` and `OnboardItem`: `padding`, `paddingTop`, `paddingBottom`, `paddingLeft`, `paddingRight`, `paddingHorizontal`, `paddingVertical`, `backgroundColor`, `borderRadius`, `gap`, `alignItems`, `justifyContent`, `flexDirection`, `flexWrap`\n\n## Available Localization Keys\n\nUse ONLY the keys listed below for localization attributes (`labelKey`, `textLocalizationKey`, etc.). Do NOT invent new keys or use keys not in this list.\n\n```\nbase.builder.paywall.period.monthly\nbase.builder.paywall.period.annual\nbase.builder.paywall.period.weekly\nbase.builder.paywall.period.daily\nbase.builder.paywall.period.monthlyPromo\nbase.builder.paywall.period.annualPromo\nbase.builder.paywall.pricing.default.text\nbase.builder.paywall.pricing.freeTrial.text\nbase.builder.paywall.pricing.regular.text\nbase.builder.paywall.promo.default.text\nbase.builder.paywall.promo.freeTrial.text\nbase.builder.paywall.promo.regular.text\nbase.builder.paywall.button.subscribe\nbase.builder.paywall.button.subscribe-free\nbase.onboard.title.one-page\nbase.onboard.title.two-page\nbase.onboard.title.three-page\nbase.onboard.title.four-page\nbase.onboard.title.five-page\nbase.onboard.title.six-page\nbase.onboard.title.one-page2\nbase.onboard.title.two-page2\nbase.onboard.title.three-page2\nbase.onboard.title.four-page2\nbase.onboard.subtitle.one-page\nbase.onboard.subtitle.two-page\nbase.onboard.subtitle.three-page\nbase.onboard.subtitle.four-page\nbase.onboard.subtitle.five-page\nbase.onboard.subtitle.six-page\nbase.onboard.subtitle.one-page2\nbase.onboard.subtitle.two-page2\nbase.onboard.subtitle.three-page2\nbase.onboard.subtitle.four-page2\nbase.onboard.next.one-page\nbase.onboard.next.two-page\nbase.onboard.next.three-page\nbase.onboard.next.five-page\nbase.onboard.skip.one-page\nbase.onboard.skip.two-page\nbase.onboard.skip.three-page\nbase.onboard.skip.five-page\nbase.onboard.allow.four-page\nbase.onboard.footer.description\nbase.onboard.btnPrivacy\nbase.onboard.btnTerms\nbase.builder.paywall.footer.description\nbase.builder.paywall.btnPrivacy\nbase.builder.paywall.btnTerms\nview.terms.header.title\nview.terms.accept.button\nview.terms.checkbox.label\nview.terms.error.must_accept\nform.error.validation_required\n```\n\n## Default Colors\n\nReference color tokens already defined in the project. Prefer these over hard-coded hex values.\n\n```\n STATIC_COLORS.BLACK: "#000"\n STATIC_COLORS.WHITE: "#FFFFFF"\n STATIC_COLORS.TRANSPARENT: "#ffffff00"\n STATIC_COLORS.ONBOARD_DOT_INACTIVE: "#E4E5E7"\n STATIC_COLORS.ONBOARD_DOT_ACTIVE: "#007AFF"\n STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND: "#0066FF"\n STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_TEXT: "#FFFFFF"\n STATIC_COLORS.ONBOARD_LINK_COLOR: "#1778F2"\n STATIC_COLORS.ONBOARD_SEPARATOR_COLOR: "#44454D"\n STATIC_COLORS.RADIO_BUTTON_COLOR: "#A6A6A6"\n THEME_COLORS.TEXT (light): "#161827"\n THEME_COLORS.BACKGROUND (light): "#F4F5FF"\n THEME_COLORS.ICON (light): "#0450E2"\n THEME_COLORS.LINE (light): "#E9EBF9"\n THEME_COLORS.ONBOARD_TITLE (light): "#161827"\n THEME_COLORS.ONBOARD_SUBTITLE (light): "#44454D"\n THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT (light): "#81838F"\n THEME_COLORS.ONBOARD_FOOTER_TEXT (light): "#81838F"\n THEME_COLORS.CHECKBOX_ACTIVE_COLOR (light): "#0066FF"\n THEME_COLORS.FORM_ERROR_TEXT_COLOR (light): "#B91C1C"\n THEME_COLORS.TEXT (dark): "#E9EBF9"\n THEME_COLORS.BACKGROUND (dark): "#080A17"\n THEME_COLORS.ICON (dark): "#0450E2"\n THEME_COLORS.LINE (dark): "#161827"\n THEME_COLORS.ONBOARD_TITLE (dark): "#FDFDFD"\n THEME_COLORS.ONBOARD_SUBTITLE (dark): "#C7C7C7"\n THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT (dark): "#A9AAAC"\n THEME_COLORS.ONBOARD_FOOTER_TEXT (dark): "#A2A4B1"\n THEME_COLORS.CHECKBOX_ACTIVE_COLOR (dark): "#0066FF"\n THEME_COLORS.FORM_ERROR_TEXT_COLOR (dark): "#B91C1C"\n```\n\n## Default Localization (en)\n\n```\n{\n "base.builder.paywall.period.monthly": "per month",\n "base.builder.paywall.period.annual": "per year",\n "base.builder.paywall.period.weekly": "per week",\n "base.builder.paywall.period.daily": "per day",\n "base.builder.paywall.period.monthlyPromo": "per month",\n "base.builder.paywall.period.annualPromo": "per year",\n "base.builder.paywall.pricing.default.text": "@promoPrice for the first @promoPeriod, then @localizedPrice @localizedPeriod",\n "base.builder.paywall.pricing.freeTrial.text": "@trialPeriod-@trialPeriodUnit free trial, then @localizedPrice @localizedPeriod",\n "base.builder.paywall.pricing.regular.text": "@localizedPrice @localizedPeriod",\n "base.builder.paywall.promo.default.text": "Save @discountPercentage%!",\n "base.builder.paywall.promo.freeTrial.text": "@trialPeriod-@trialPeriodUnit free trial",\n "base.builder.paywall.promo.regular.text": "@localizedPrice @localizedPeriod",\n "base.builder.paywall.button.subscribe": "Subscribe",\n "base.builder.paywall.button.subscribe-free": "Subscribe with Free Trial",\n "base.onboard.title.one-page": "Secure your connection",\n "base.onboard.title.two-page": "Access content worldwide",\n "base.onboard.title.three-page": "Fast and reliable",\n "base.onboard.title.four-page": "Stay notified and safe",\n "base.onboard.title.five-page": "Enhance your experience",\n "base.onboard.title.six-page": "You are all set!",\n "base.onboard.title.one-page2": "Secure your connection",\n "base.onboard.title.two-page2": "Access content worldwide",\n "base.onboard.title.three-page2": "Fast and reliable",\n "base.onboard.title.four-page2": "Stay notified and safe",\n "base.onboard.subtitle.one-page": "Encrypt your traffic and protect your privacy on public Wi\\u2011Fi.",\n "base.onboard.subtitle.two-page": "Connect to high\\u2011speed servers in many countries with one tap.",\n "base.onboard.subtitle.three-page": "Auto\\u2011connect to the best server for speed and stability.",\n "base.onboard.subtitle.four-page": "Enable notifications for connection status and security tips.",\n "base.onboard.subtitle.five-page": "Get the most out of our app with premium features.",\n "base.onboard.subtitle.six-page": "Enjoy secure and fast browsing.",\n "base.onboard.subtitle.one-page2": "Encrypt your traffic and protect your privacy on public Wi\\u2011Fi.",\n "base.onboard.subtitle.two-page2": "Connect to high\\u2011speed servers in many countries with one tap.",\n "base.onboard.subtitle.three-page2": "Auto\\u2011connect to the best server for speed and stability.",\n "base.onboard.subtitle.four-page2": "Enable notifications for connection status and security tips.",\n "base.onboard.next.one-page": "Next",\n "base.onboard.next.two-page": "Next",\n "base.onboard.next.three-page": "Next",\n "base.onboard.next.five-page": "Next",\n "base.onboard.skip.one-page": "Skip",\n "base.onboard.skip.two-page": "Skip",\n "base.onboard.skip.three-page": "Skip",\n "base.onboard.skip.five-page": "Skip",\n "base.onboard.allow.four-page": "Allow",\n "base.onboard.footer.description": "By clicking continue, you will be accepting the Terms of service and privacy policy",\n "base.onboard.btnPrivacy": "Privacy Policy",\n "base.onboard.btnTerms": "Terms of Service",\n "base.builder.paywall.footer.description": "By clicking continue, you will be accepting the Terms of service and privacy policy",\n "base.builder.paywall.btnPrivacy": "Privacy Policy",\n "base.builder.paywall.btnTerms": "Terms of Service",\n "view.terms.header.title": "Terms & Privacy",\n "view.terms.accept.button": "Accept",\n "view.terms.checkbox.label": "I accept the terms and privacy policy",\n "view.terms.error.must_accept": "You must accept to continue",\n "form.error.validation_required": "Please complete the required fields."\n}\n```\n\n## Reference Example\n\nA complete, valid paywall XML:\n\n```xml\n<Main isMain="true" useSafeAreaView="true" description="Ekranın ana kapsayıcısı. (#1)" title="Main" testID="Main-test-id-1">\n <StatusBarColor title="Status Bar Color" description="Status bar background color." styles=\'{"backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="StatusBarColor-test-id-1" />\n <NavigationBarColor title="Navigation Bar Color" description="Navigation bar background color." styles=\'{"backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="NavigationBarColor-test-id-1" />\n <PaywallProvider scrollable="true" description="Paywall ana sağlayıcısı. (#1)" title="Main Paywall" styles=\'{"flexDirection":"column","alignItems":"stretch","justifyContent":"flex-start","position":"relative","backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="PaywallProvider-test-id-1">\n <PaywallBackground src="https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&amp;fit=crop&amp;w=1200&amp;q=80" resizeMode="cover" description="Paywall arka planı. (#1)" title="Paywall Background" testID="PaywallBackground-test-id-1" />\n <View styles=\'{"paddingTop":56,"paddingHorizontal":16,"paddingBottom":16,"gap":12,"flex":1}\' testID="View-test-id-1">\n <PaywallCloseButton styles=\'{"width":32,"height":32,"borderRadius":16,"backgroundColor":"STATIC_COLORS.WHITE","color":"STATIC_COLORS.BLACK","zIndex":10,"alignItems":"center","justifyContent":"center"}\' testID="PaywallCloseButton-test-id-1" />\n <View description="Düzen ve yerleşim konteyneri. (#2)" title="Benefits" styles=\'{"flexDirection":"column","gap":0,"marginTop":"4%"}\' testID="View-test-id-2">\n <View description="Düzen ve yerleşim konteyneri. (#3)" title="Benefit #1" styles=\'{"flexDirection":"row","alignItems":"center","gap":8,"paddingVertical":8,"paddingHorizontal":12}\' testID="View-test-id-3">\n <BIcon iconType="check" strokeWidth="3" description="İkon öğesi. (#1)" title="BIcon 1" styles=\'{"color":"THEME_COLORS.ICON","fontSize":"16","flex":0}\' testID="BIcon-test-id-1" />\n <Text description="Metin öğesi. (#1)" title="text 1" styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","fontWeight":"700"}\' testID="Text-test-id-1">\n @benefit1 — Unlimited access\n </Text>\n </View>\n <View description="Düzen ve yerleşim konteyneri. (#4)" title="Benefit #2" styles=\'{"flexDirection":"row","alignItems":"center","gap":8,"paddingVertical":8,"paddingHorizontal":12}\' testID="View-test-id-4">\n <BIcon iconType="check" strokeWidth="3" description="İkon öğesi. (#2)" title="BIcon 2" styles=\'{"color":"THEME_COLORS.ICON","fontSize":"16","flex":0}\' testID="BIcon-test-id-2" />\n <Text description="Metin öğesi. (#2)" title="text 2" styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","fontWeight":"700"}\' testID="Text-test-id-2">\n @benefit2 — 7-day free trial\n </Text>\n </View>\n <View description="Düzen ve yerleşim konteyneri. (#5)" title="Benefit #3" styles=\'{"flexDirection":"row","alignItems":"center","gap":8,"paddingVertical":8,"paddingHorizontal":12}\' testID="View-test-id-5">\n <BIcon iconType="check" strokeWidth="3" description="İkon öğesi. (#3)" title="BIcon 3" styles=\'{"color":"THEME_COLORS.ICON","fontSize":"16","flex":0}\' testID="BIcon-test-id-3" />\n <Text description="Metin öğesi. (#3)" title="text 3" styles=\'{"flex":1,"color":"STATIC_COLORS.WHITE","fontWeight":"700"}\' testID="Text-test-id-3">\n @benefit3 — Cancel anytime\n </Text>\n </View>\n </View>\n <PaywallOptions description="Abonelik seçenekleri alanı. (#1)" title="Option(s)" styles=\'{"borderRadius":12,"backgroundColor":"THEME_COLORS.BACKGROUND"}\' testID="PaywallOptions-test-id-1">\n <RadioButton description="Seçim satırı öğesi. (#1)" title="Product Radio(s)" styles=\'{"flex":1}\' testID="RadioButton-test-id-1" />\n <Text description="Metin öğesi. (#4)" title="Product Desc(s)" styles=\'{"flex":6}\' testID="Text-test-id-4">\n @productDescription\n </Text>\n <View title="Price Column" styles=\'{"flexDirection":"column","flex":2,"alignItems":"flex-end"}\' testID="View-test-id-6">\n <PriceTag title="Promo Price" styles=\'{"textAlign":"right","fontWeight":"700"}\' testID="PriceTag-test-id-1">\n @localizedCalculatedPrice\n </PriceTag>\n <PriceTag title="Original Price" hideIfItsNotDiscount="true" styles=\'{"textAlign":"right","textDecorationLine":"line-through","fontSize":"12@fs","fontWeight":"400","color":"#999999"}\' testID="PriceTag-test-id-2">\n @localizedPrice\n </PriceTag>\n </View>\n <BIcon iconType="chevron-right" size="16" description="İkon öğesi. (#4)" title="Product BIcon(s)" styles=\'{"marginRight":4,"flex":0,"width":32,"color":"STATIC_COLORS.BLACK"}\' testID="BIcon-test-id-4" />\n </PaywallOptions>\n <View description="Subscription butonu kapsayıcısı. (#1)" title="Subs Container" styles=\'{"flex":1,"flexDirection":"column","justifyContent":"flex-end","alignItems":"stretch","gap":8,"paddingBottom":"50px"}\' testID="View-test-id-7">\n <Pricing description="Pricing breakdown for promo/trial." title="Pricing Detail" testID="Pricing-test-id-1">\n @baseLocalizedPricingText\n </Pricing>\n <Text description="Trial detayı." title="Trial Full" styles=\'{"textAlign":"center","fontSize":12,"color":"rgba(255,255,255,0.6)"}\' testID="Text-test-id-5">\n @trialPeriod days free, then @price/@period\n </Text>\n <PaywallSubscribeButton description="Abonelik onay butonu. (#1)" title="Subscribe" testID="PaywallSubscribeButton-test-id-1">\n @subscribe\n </PaywallSubscribeButton>\n <Promo description="Discount badge / promo text." title="Promo Badge" testID="Promo-test-id-1">\n @baseLocalizedPromoText\n </Promo>\n <PaywallFooter textLocalizationKey="base.builder.paywall.footer.description" linkedWordFirstLocalizationKey="base.builder.paywall.btnPrivacy" linkedWordFirstColor="STATIC_COLORS.ONBOARD_LINK_COLOR" linkedWordFirstPage="privacy" linkedWordSecondLocalizationKey="base.builder.paywall.btnTerms" linkedWordSecondColor="STATIC_COLORS.ONBOARD_LINK_COLOR" linkedWordSecondPage="terms" styles=\'{"gap":8,"color":"THEME_COLORS.ONBOARD_FOOTER_TEXT"}\' testID="PaywallFooter-test-id-1" />\n </View>\n </View>\n </PaywallProvider>\n</Main>\n```\n\n## Task\n\nGenerate a node tree XML for the user\'s request below. Output ONLY raw XML — no markdown fences, no explanation.\n';function PromptManagerModal({data:e,setData:t,onClose:r}){const[i,n]=useState("xml-editor");return jsxs(Modal,{onClose:r,ariaLabelledBy:"prompt-manager-modal-title",className:"modal--large modal--scrollable",contentClassName:"prompt-manager-modal__content",children:[jsxs("div",{className:"modal__header prompt-manager-modal__header",children:[jsx("h3",{id:"prompt-manager-modal-title",className:"modal__title",children:"Prompt Manager"}),jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsxs("div",{className:"prompt-manager-modal__tabs",children:[jsx("button",{type:"button",className:"prompt-manager-modal__tab"+("xml-editor"===i?" is-active":""),onClick:()=>n("xml-editor"),children:"XML Editor"}),jsx("button",{type:"button",className:"prompt-manager-modal__tab"+("prompt-schema"===i?" is-active":""),onClick:()=>n("prompt-schema"),children:"Prompt Şeması"})]}),jsxs("div",{className:"prompt-manager-modal__body",children:["xml-editor"===i&&jsx(XmlEditorTab,{data:e,setData:t}),"prompt-schema"===i&&jsx(PromptSchemaTab,{})]})]})}function XmlEditorTab({data:e,setData:t}){const r=useRenderStore(e=>e.setCurrent),i=useMemo(()=>{try{return nodeToXml(e)}catch{return""}},[e]),[n,o]=useState(i),[a,s]=useState(null),[l,c]=useState(null),[d,p]=useState(!1);useEffect(()=>{o(i),s(null),c(null),p(!1)},[i]);return jsxs("div",{className:"prompt-manager-modal__editor-wrap",children:[jsxs("div",{className:"prompt-manager-modal__toolbar",children:[jsx("div",{style:{fontSize:12,opacity:.75},children:"node.xml"}),jsxs("div",{style:{display:"flex",gap:8},children:[jsx("button",{type:"button",className:"editor-button",onClick:async()=>{try{await navigator.clipboard.writeText(n)}catch{}},children:"Copy"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=xmlToNode(n);s(null),c(null),p(!1);try{const i=analyseAndProccess(e);t(i),r(i),p(!0)}catch(e){c(e instanceof Error?e.message:"Failed to apply XML")}}catch(e){s(e instanceof Error?e.message:"Invalid XML")}},children:"Apply"})]})]}),jsx("textarea",{className:"prompt-manager-modal__editor",value:n,onChange:e=>{o(e.target.value),c(null),p(!1)},spellCheck:!1}),a?jsxs("div",{style:{fontSize:12,color:"#d12f2f"},children:["Invalid XML: ",a]}):l?jsxs("div",{style:{fontSize:12,color:"#d12f2f"},children:["Could not apply: ",l]}):jsx("div",d?{style:{fontSize:12,color:"#2e7d32"},children:"✓ Applied successfully"}:{style:{fontSize:12,opacity:.7},children:"Edit XML and press Apply to update the node tree."})]})}function PromptSchemaTab(){const[e,t]=useState("onboard"),[r,i]=useState(!1),n="onboard"===e?onboardPromptScheme:paywallPromptScheme;return jsxs("div",{className:"prompt-manager-modal__editor-wrap",children:[jsxs("div",{className:"prompt-manager-modal__toolbar",children:[jsxs("div",{style:{display:"flex",gap:4},children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{t("onboard"),i(!1)},style:"onboard"===e?{background:"#1565c0",color:"#fff",borderColor:"#1565c0"}:void 0,children:"Onboard"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{t("paywall"),i(!1)},style:"paywall"===e?{background:"#6a1b9a",color:"#fff",borderColor:"#6a1b9a"}:void 0,children:"Paywall"})]}),jsx("button",{type:"button",className:"editor-button",onClick:async()=>{try{await navigator.clipboard.writeText(n),i(!0),setTimeout(()=>i(!1),1500)}catch{}},children:r?"✓ Copied":"Copy"})]}),jsx("textarea",{className:"prompt-manager-modal__editor",value:n,readOnly:!0,spellCheck:!1}),jsxs("div",{style:{fontSize:12,opacity:.7},children:[n.length.toLocaleString()," chars · read-only (auto-generated)"]})]})}function IconTypePickerField({value:e,onChange:t}){const[r,i]=useState(!1),n="string"==typeof e?e:void 0;return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>i(!0),className:"attributes-editor__picker-button",children:[jsxs("span",{className:"attributes-editor__picker-button-left",children:[n?jsx(Icon,{iconType:n,size:18}):null,jsx("span",{className:"attributes-editor__picker-button-label",children:n??"Select icon"})]}),jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),r?jsx(IconPickerModal,{value:n,onSelect:e=>{t(e),i(!1)},onClose:()=>i(!1),onClear:()=>{t(void 0),i(!1)}}):null]})}function FontFamilyPickerField({name:e,value:t,onChange:r,fonts:i,loadedFonts:n,markFontLoaded:o,addError:a}){const[s,l]=useState(!1),[c,d]=useState(!1),[p,g]=useState(null),u="string"==typeof t&&t.trim().length>0?t.trim():void 0,h=Array.isArray(i)?i:[],m=Array.isArray(n)?n:[],f=useMemo(()=>`${h.length} fonts`,[h.length]);return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>{g(null),l(!0)},className:"attributes-editor__picker-button",children:[jsx("span",{className:"attributes-editor__picker-button-label attributes-editor__picker-button-label--fill",children:u??"Select font"}),jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),s?jsx(Modal,{ariaLabelledBy:"font-family-picker-title",onClose:()=>{c||l(!1)},closeOnOverlayClick:!c,closeOnEsc:!c,children:jsxs("div",{className:"attributes-editor__font-modal",children:[jsxs("div",{className:"attributes-editor__font-modal-header",children:[jsx("p",{id:"font-family-picker-title",className:"attributes-editor__font-modal-title",children:"Select Font"}),jsx("div",{className:"attributes-editor__font-modal-spacer"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(void 0),g(null),l(!1)},disabled:c,children:"Clear"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>l(!1),disabled:c,children:"Close"})]}),c?jsx("div",{className:"attributes-editor__font-modal-note",children:"Loading font…"}):null,p?jsx("div",{className:"attributes-editor__font-modal-error",children:p}):null,jsx("div",{className:"attributes-editor__font-modal-note",children:f}),jsx("div",{className:"attributes-editor__font-grid",children:h.map(e=>{const t=e?.name;if("string"!=typeof t||!t.trim())return null;const i=t.trim(),n=u===i,s=m.includes(i),l=["attributes-editor__font-option",n?"attributes-editor__font-option--active":""].filter(Boolean).join(" ");return jsxs("button",{type:"button",disabled:c,onClick:async()=>{if(g(null),r(i),!s){d(!0);try{fontsDebug.info("AttributesEditor: loadFontFamily start",{familyName:i}),await loadFontFamily(h,i,{forceFetch:!0}),o(i),fontsDebug.info("AttributesEditor: loadFontFamily success",{familyName:i})}catch(e){const t=e instanceof Error?e.message:String(e);g(`Failed to load "${i}": ${t}`),a(`Failed to load font "${i}": ${t}`)}finally{d(!1)}}},className:l,"aria-label":`Select font ${i}`,children:[jsx("span",{className:"attributes-editor__font-option-name",title:i,children:i}),jsx("span",{className:"attributes-editor__font-option-status",children:s?"Loaded":"Not loaded"})]},i)})})]})}):null]})}const cache={},rk=(e,t,r)=>`${e}|${t??""}|${r}`,lk=(e,t)=>`lang|${e}|${t??""}`;function FallbackLocalizationField({value:e,onChange:t}){const r=useRenderStore(e=>e.localizationApiConfig),i=useRenderStore(e=>e.languageColumns),[n,o]=useState(!1),[a,s]=useState(""),[l,c]=useState("ios"),[d,p]=useState([]),[g,u]=useState(!1),[h,m]=useState([]),[f,y]=useState(!1),b=useRef(0),[C,x]=useState(!1),[v,w]=useState(""),[k,T]=useState(""),[_,O]=useState(""),[I,M]=useState(!1),[P,E]=useState(null),L=!!r?.forgeUrl&&!!r?.forgeToken,z=h.length>0?h:i??[],D=useCallback(()=>r?{"Content-Type":"application/json",Accept:"application/json","X-Authorization":r.forgeToken}:{},[r]),B=useCallback(async(e=!1)=>{if(!r||!L)return;const t=rk(r.forgeUrl,r.forgeAppId,l);if(!e&&cache[t]?.records?.length)return p(cache[t].records),void y(!0);const i=++b.current;u(!0);try{const e=[];let n=1,o=!0;for(;o;){const t=`${r.forgeUrl.replace(/\/$/,"")}/api/manage/localization/${l}`,a=new URLSearchParams({per_page:"1000",page:String(n)});r.forgeAppId&&a.append("app_id",String(r.forgeAppId));const s=await fetch(`${t}?${a}`,{headers:D()});if(!s.ok||i!==b.current)break;const c=await s.json();e.push(...c.data??[]);const d=c.pagination;o=d&&d.current_page<d.last_page,n++}i===b.current&&(p(e),y(!0),cache[t]={...cache[t],records:e})}catch{}finally{i===b.current&&u(!1)}},[r,L,l,D]),A=useCallback(async()=>{if(!r||!L)return;const e=lk(r.forgeUrl,r.forgeAppId);if(cache[e]?.languages?.length)m(cache[e].languages);else try{const t=`${r.forgeUrl.replace(/\/$/,"")}/api/manage/localization-languages`,i=new URLSearchParams;r.forgeAppId&&i.append("app_id",String(r.forgeAppId));const n=await fetch(`${t}?${i}`,{headers:D()});if(!n.ok)return;const o=await n.json(),a=Array.isArray(o)?o:[];m(a),cache[e]={...cache[e],languages:a,records:cache[e]?.records??[]}}catch{}},[r,L,D]);useEffect(()=>{L&&(A(),B())},[L,B,A]);const R=useMemo(()=>{if(!f)return[];const e=a.trim().toLowerCase();return e?d.filter(t=>!!t.key.toLowerCase().includes(e)||Object.values(t.translations).some(t=>t?.value&&t.value.toLowerCase().includes(e))):d},[a,d,f]),V=useMemo(()=>e?d.find(t=>t.key===e)??null:null,[e,d]),N=(e,t)=>e&&e.translations[t.toUpperCase()]?.value?.trim()||"",F=z[0]??{code:"EN",title:"English"},j=z[1]??{code:"TR",title:"Türkçe"},H=N(V,F.code),W=N(V,j.code),$=e=>{t(e.key),o(!1)},U=()=>{r&&(delete cache[rk(r.forgeUrl,r.forgeAppId,l)],delete cache[lk(r.forgeUrl,r.forgeAppId)]),y(!1),p([]),m([]),A(),B(!0)};return jsxs(Fragment,{children:[jsxs("div",e?{role:"button",tabIndex:0,onClick:()=>L&&o(!0),onKeyDown:e=>"Enter"===e.key&&L&&o(!0),style:S.compactCard,children:[jsxs("div",{style:S.compactHeader,children:[jsx("span",{style:S.compactLabel,children:"Text"}),jsx("span",{style:S.badgeSmall,children:l.toUpperCase()}),jsx("span",{role:"button",tabIndex:0,onClick:e=>{e.stopPropagation(),t("")},onKeyDown:e=>{"Enter"===e.key&&(e.stopPropagation(),t(""))},title:"Temizle",style:S.clearBtn,children:"✕"})]}),jsxs("div",{style:S.keyRow,children:[jsx("span",{style:S.keyText,children:e}),jsx("span",{style:{fontSize:12,color:"#555"},children:"🔍"})]}),jsxs("div",{style:S.transRow,children:[jsx("span",{style:S.langBadge,children:F.title||F.code}),jsx("span",{style:H?S.transVal:S.transMissing,children:H||"Eksik"})]}),jsxs("div",{style:S.transRow,children:[jsx("span",{style:S.langBadge,children:j.title||j.code}),jsx("span",{style:W?S.transVal:S.transMissing,children:W||"Eksik"})]})]}:{style:S.emptyWrap,children:[jsx("span",{style:S.compactLabel,children:"Text"}),jsxs("div",{role:"button",tabIndex:0,onClick:()=>L&&o(!0),onKeyDown:e=>"Enter"===e.key&&L&&o(!0),style:S.emptyBtn,children:[jsx("span",{style:{opacity:.5},children:"Localization anahtarı seçilmedi"}),L&&jsx("span",{children:"🔍"})]}),!L&&jsx("div",{style:S.configWarn,children:"Localization API yapılandırılmadı"})]}),n&&jsx("div",{onClick:()=>o(!1),style:S.overlay,children:jsxs("div",{onClick:e=>e.stopPropagation(),style:S.modal,children:[jsxs("div",{style:S.modalHeader,children:[jsxs("div",{children:[jsx("div",{style:{fontWeight:600,fontSize:15},children:"Localization Anahtarı Seç"}),jsx("div",{style:{fontSize:12,color:"#888",marginTop:2},children:"Arama, seçim veya yeni anahtar oluşturma."})]}),jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexShrink:0},children:[jsx("span",{role:"button",tabIndex:0,onClick:U,title:"Yenile",style:S.refreshBtn,children:"↻"}),jsx("span",{role:"button",tabIndex:0,onClick:()=>o(!1),style:S.closeBtn,children:"✕"})]})]}),jsx("div",{style:S.platformBar,children:["ios","android"].map(e=>jsx("div",{role:"button",tabIndex:0,onClick:()=>(e=>{e!==l&&(c(e),y(!1),p([]))})(e),style:{...S.pBtn,...l===e?S.pBtnActive:{}},children:"ios"===e?"iOS":"Android"},e))}),jsxs("div",{style:{padding:"10px 16px 8px",display:"flex",gap:8},children:[jsx("input",{autoFocus:!0,type:"text",value:a,onChange:e=>s(e.target.value),placeholder:"Anahtar veya çeviri ara…",style:{...S.searchInput,flex:1}}),jsx("div",{role:"button",tabIndex:0,onClick:()=>x(!C),style:S.createToggle,children:C?"← Ara":"+ Yeni"})]}),C?jsxs("div",{style:S.createForm,children:[jsxs("div",{style:S.createField,children:[jsx("label",{style:S.createLabel,children:"Anahtar"}),jsx("input",{type:"text",value:v,onChange:e=>w(e.target.value),placeholder:"örn: faq.category.general",style:S.searchInput})]}),jsxs("div",{style:S.createField,children:[jsx("label",{style:S.createLabel,children:"English"}),jsx("input",{type:"text",value:k,onChange:e=>T(e.target.value),placeholder:"English translation",style:S.searchInput})]}),jsxs("div",{style:S.createField,children:[jsx("label",{style:S.createLabel,children:"Türkçe"}),jsx("input",{type:"text",value:_,onChange:e=>O(e.target.value),placeholder:"Türkçe çeviri",style:S.searchInput})]}),P&&jsx("div",{style:S.errorMsg,children:P}),jsx("div",{role:"button",tabIndex:0,onClick:async()=>{if(r&&L&&v.trim()){M(!0),E(null);try{const e={};k.trim()&&(e.EN={value:k.trim()}),_.trim()&&(e.TR={value:_.trim()});const i={key:v.trim(),translations:e},n=`${r.forgeUrl.replace(/\/$/,"")}/api/manage/localization/${l}`,a=new URLSearchParams;r.forgeAppId&&a.append("app_id",String(r.forgeAppId));const s=await fetch(`${n}?${a}`,{method:"POST",headers:D(),body:JSON.stringify(i)});if(!s.ok){const e=await s.json().catch(()=>({}));throw new Error(e.message||`HTTP ${s.status}`)}t(v.trim()),x(!1),w(""),T(""),O(""),U(),o(!1)}catch(e){E(e instanceof Error?e.message:"Oluşturulamadı")}finally{M(!1)}}},style:{...S.saveBtn,opacity:I||!v.trim()?.5:1,pointerEvents:I||!v.trim()?"none":"auto"},children:I?"Kaydediliyor…":"Oluştur ve Seç"})]}):jsxs(Fragment,{children:[f&&jsxs("div",{style:S.infoBar,children:[R.length," / ",d.length," anahtar"]}),jsxs("div",{style:S.resultsList,children:[g&&jsx("div",{style:S.emptyMsg,children:"Yükleniyor…"}),!g&&f&&0===R.length&&jsx("div",{style:S.emptyMsg,children:"Kayıt bulunamadı."}),R.map(t=>{const r=t.key===e,i=(n=t,z.filter(e=>{const t=n.translations[e.code];return!t?.value||!t.value.trim()}).length);var n;const o=N(t,F.code);return jsxs("div",{role:"button",tabIndex:0,onClick:()=>$(t),onKeyDown:e=>"Enter"===e.key&&$(t),style:{...S.resultCard,...r?S.resultCardActive:{}},onMouseEnter:e=>{r||(e.currentTarget.style.background="#272730")},onMouseLeave:e=>{r||(e.currentTarget.style.background=r?"rgba(99,102,241,0.12)":"transparent")},children:[jsxs("div",{style:S.resultKeyRow,children:[jsx("span",{style:S.resultKey,children:t.key}),jsxs("div",{style:{display:"flex",gap:5,flexShrink:0,alignItems:"center"},children:[jsx("span",{style:S.badgeSmall,children:l.toUpperCase()}),i>0&&jsxs("span",{style:S.missingBadge,children:["Eksik ",i]}),r&&jsx("span",{style:S.selectedBadge,children:"✔"})]})]}),jsxs("div",{style:S.transRow,children:[jsx("span",{style:S.langBadge,children:F.title||F.code}),jsx("span",{style:o?S.transVal:S.transMissing,children:o?o.length>100?o.slice(0,100)+"…":o:"Eksik"})]})]},t.key)})]})]})]})})]})}const S={compactCard:{display:"block",width:"100%",textAlign:"left",background:"transparent",border:"1px solid hsl(0 0% 30%)",borderRadius:8,padding:"8px 10px",cursor:"pointer"},compactHeader:{display:"flex",alignItems:"center",gap:6,marginBottom:4},compactLabel:{fontSize:10,fontWeight:600,textTransform:"uppercase",color:"#888",letterSpacing:"0.05em"},clearBtn:{cursor:"pointer",fontSize:12,color:"#666",padding:"0 2px",marginLeft:"auto",userSelect:"none"},keyRow:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,marginBottom:4},keyText:{fontSize:12,color:"#ccc",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},transRow:{display:"flex",alignItems:"center",gap:6,marginTop:3},transVal:{fontSize:11,color:"#bbb",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1},transMissing:{fontSize:11,color:"#ef4444",flex:1},emptyWrap:{display:"flex",flexDirection:"column",gap:4},emptyBtn:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"7px 10px",border:"1px solid hsl(0 0% 30%)",borderRadius:6,background:"transparent",color:"#ccc",fontSize:12,cursor:"pointer",textAlign:"left"},configWarn:{fontSize:10,color:"#ef4444",marginTop:2},overlay:{position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},modal:{background:"#1a1a22",borderRadius:12,width:560,maxHeight:"80vh",display:"flex",flexDirection:"column",boxShadow:"0 16px 48px rgba(0,0,0,0.6)",color:"#e0e0e0",border:"1px solid #2a2a35",overflow:"hidden"},modalHeader:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",padding:"16px 18px",borderBottom:"1px solid #2a2a35",gap:12},closeBtn:{cursor:"pointer",fontSize:18,color:"#999",padding:4,userSelect:"none"},refreshBtn:{cursor:"pointer",fontSize:18,color:"#6366f1",padding:4,userSelect:"none"},platformBar:{display:"flex",gap:8,padding:"10px 16px 8px",borderBottom:"1px solid #2a2a35"},pBtn:{padding:"5px 14px",borderRadius:6,border:"1px solid #3a3a45",background:"transparent",color:"#999",fontSize:12,fontWeight:600,cursor:"pointer",userSelect:"none"},pBtnActive:{background:"#6366f1",borderColor:"#6366f1",color:"#fff"},searchInput:{width:"100%",padding:"8px 12px",border:"1px solid #3a3a45",borderRadius:6,background:"#22222a",color:"#e0e0e0",fontSize:13,outline:"none",boxSizing:"border-box"},createToggle:{padding:"6px 14px",borderRadius:6,border:"1px solid #6366f1",background:"transparent",color:"#6366f1",fontSize:12,fontWeight:600,cursor:"pointer",whiteSpace:"nowrap",userSelect:"none"},infoBar:{padding:"2px 18px 6px",fontSize:11,color:"#555",textAlign:"right"},resultsList:{overflowY:"auto",flex:1,padding:"4px 10px 10px"},emptyMsg:{padding:28,textAlign:"center",color:"#666",fontSize:13},resultCard:{display:"block",width:"100%",textAlign:"left",borderRadius:8,padding:"10px 12px",cursor:"pointer",marginBottom:4,border:"1px solid #2a2a35",background:"transparent"},resultCardActive:{background:"rgba(99,102,241,0.12)",borderColor:"#6366f1"},resultKeyRow:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},resultKey:{fontWeight:600,fontSize:13,color:"#e0e0e0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},langBadge:{display:"inline-block",background:"#2a2a35",border:"1px solid #3a3a45",borderRadius:4,padding:"1px 6px",fontSize:10,fontWeight:600,color:"#aaa",flexShrink:0},badgeSmall:{display:"inline-block",background:"#2a2a35",border:"1px solid #3a3a45",borderRadius:4,padding:"1px 5px",fontSize:9,fontWeight:600,color:"#888",textTransform:"uppercase"},missingBadge:{display:"inline-block",background:"rgba(239,68,68,0.15)",border:"1px solid rgba(239,68,68,0.3)",borderRadius:4,padding:"1px 6px",fontSize:10,fontWeight:600,color:"#ef4444"},selectedBadge:{fontSize:10,color:"#6366f1",fontWeight:600},createForm:{padding:"12px 16px",display:"flex",flexDirection:"column",gap:10},createField:{display:"flex",flexDirection:"column",gap:4},createLabel:{fontSize:11,fontWeight:600,color:"#888",textTransform:"uppercase"},errorMsg:{fontSize:12,color:"#ef4444",padding:"4px 0"},saveBtn:{padding:"8px 16px",borderRadius:6,background:"#6366f1",color:"#fff",fontSize:13,fontWeight:600,cursor:"pointer",textAlign:"center",userSelect:"none",border:"none",marginTop:4}};function getPreferredOrderedSizeEntries(e){const t=["width","height","minWidth","minHeight","maxWidth","maxHeight"];return[...e].sort((e,r)=>{const i=t.indexOf(e.name),n=t.indexOf(r.name),o=-1===i?Number.MAX_SAFE_INTEGER:i,a=-1===n?Number.MAX_SAFE_INTEGER:n;return o!==a?o-a:e.name.localeCompare(r.name)})}function getSpecialSectionTitle(e){const t=e.key,r=e.meta;return{title:r?.label&&r.label.trim().length>0?r.label:t.charAt(0).toUpperCase()+t.slice(1),description:r?.description}}function AttributesEditorView(e){const{isInvalidNode:t,componentTitle:r,componentDescription:i,mockableFeatureKeys:n,activeMockableFeature:o,setActiveMockableFeature:a,tabs:s,tabContentInfo:l,activeTab:c,setActiveTab:d,firstAvailableTab:p,activeEntries:g,activeSpecialSections:u,hasTitleField:h,hasDescriptionField:m,hasStringChildren:f,childrenValue:y,handleChildrenChange:b,attributeMeta:C,data:x,getAttributeValue:v,handleAttributeChange:S,projectColorsForPicker:w,layoutContext:k,viewAttributes:T,attributes:_,projectFonts:O,loadedFonts:I,markFontLoaded:M,addError:P}=e,E=jsxs("div",{className:"attributes-editor__component-meta",children:[jsx("p",{className:"attributes-editor__component-title",children:r}),i?jsx("p",{className:"attributes-editor__component-description",children:i}):null]}),L=v("title"),z=v("description"),D=!t&&(h||m)?jsxs("section",{className:"attributes-editor__top-fields",children:[h?jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsx("label",{className:"attributes-editor__field-label",htmlFor:"title",children:"Title (max 20 characters for display purposes)"}),jsx("input",{id:"title",className:"input",type:"text",maxLength:20,value:"string"==typeof L?L:"",onChange:e=>S("title",e.target.value)})]}):null,m?jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsx("label",{className:"attributes-editor__field-label",htmlFor:"description",children:"Description (for display purposes)"}),jsx("input",{id:"description",className:"input",type:"text",value:"string"==typeof z?z:"",onChange:e=>S("description",e.target.value)})]}):null]}):null,B=n.length>0?jsxs("section",{className:"attributes-editor__mockable",children:[jsx("p",{className:"attributes-editor__mockable-title",children:"Mockable"}),jsx("table",{className:"attributes-editor__mockable-table",children:jsx("tbody",{children:n.map(e=>jsxs("tr",{className:"attributes-editor__mockable-row",children:[jsx("td",{className:"attributes-editor__mockable-name",children:e}),jsx("td",{className:"attributes-editor__mockable-action",children:jsx("button",{type:"button",className:"editor-button",onClick:()=>a(e),children:e})})]},e))})})]}):null,A=jsx("div",{className:"attributes-editor__tabs",children:s.map(e=>{const t=e.id===c,r=l[e.id],i=r.baseCount+r.specialCount,n=0===i,o=["attributes-editor__tab-button",t?"attributes-editor__tab-button--active":""].filter(Boolean).join(" ");return jsxs("button",{type:"button",onClick:()=>!n&&d(e.id),disabled:n,className:o,children:[e.label,i>0?` (${i})`:""]},e.id)})}),R=useRenderStore(e=>e.renderStringChildrenField),V=f?jsxs("div",{className:"attributes-editor__field-wrapper attributes-editor__field-wrapper--children",children:[jsx("p",{className:"attributes-editor__field-label",children:"Text"}),jsx(R||FallbackLocalizationField,{value:y,onChange:b})]}):null,N=useMemo(()=>{const e=l[p];return(e?.baseCount??0)+(e?.specialCount??0)>0||f&&void 0!==y},[y,p,f,l]);return t?null:jsxs("div",{className:"attributes-editor",children:[E,D,B,A,V,u.map(function(e){if("size"===e.key){const{title:t,description:r}=getSpecialSectionTitle(e),i=getPreferredOrderedSizeEntries(e.entries);return jsxs("section",{className:"special-category-section",children:[jsx("div",{className:"special-category-section__header",children:jsx("p",{className:"special-category-section__title",children:t})}),r?jsx("p",{className:"special-category-section__description",children:r}):null,jsx("div",{className:"attributes-editor__size-grid",children:i.map(e=>{const t=C?.[e.name]?.label??e.name,r=C?.[e.name]?.description,i=toPreferredScale(C?.[e.name]?.preferedScale),n=v(e.name),o=isBooleanFieldType(e.type),a=["attributes-editor__field-wrapper",o?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:r,children:jsxs("div",{className:`${a} attributes-editor__size-grid-item`,children:[o?null:jsx("p",{className:"attributes-editor__field-label",children:t}),"iconType"===e.type?jsx(IconTypePickerField,{name:e.name,value:n,onChange:t=>S(e.name,t)}):"fontFamily"===e.type?jsx(FontFamilyPickerField,{name:e.name,value:n,onChange:t=>S(e.name,t),fonts:O,loadedFonts:I,markFontLoaded:M,addError:P}):jsx(Field,{name:e.name,type:e.type,value:n,onChange:t=>S(e.name,t),componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:T,label:o?t:void 0,preferredScale:i})]})},e.name)})})]},e.key)}return jsx(SpecialCategorySection,{category:e.key,entries:e.entries,attributeMeta:C,attributes:_,getAttributeValue:v,onAttributeChange:S,componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:T,meta:e.meta},e.key)}),g.map(function(e){const t=e.name,r=e.type,i=C?.[t]?.label??t,n=C?.[t]?.description,o=toPreferredScale(C?.[t]?.preferredScale??C?.[t]?.preferedScale),a=isBooleanFieldType(r),s=["attributes-editor__field-wrapper",a?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" "),l=v(t);return jsx(FieldInfoTooltip,{description:n,children:jsxs("div",{className:s,children:[a?null:jsx("p",{className:"attributes-editor__field-label",children:i}),"iconType"===r?jsx(IconTypePickerField,{name:t,value:l,onChange:e=>S(t,e)}):"fontFamily"===r?jsx(FontFamilyPickerField,{name:t,value:l,onChange:e=>S(t,e),fonts:O,loadedFonts:I,markFontLoaded:M,addError:P}):jsx(Field,{name:t,type:r,value:l,onChange:e=>S(t,e),componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:T,label:a?i:void 0,preferredScale:o})]})},t)}),N?null:jsx("div",{className:"attributes-editor__empty-state",children:"No editable attributes"}),o?jsx(MockableFeatureModal,{featureKey:o,onClose:()=>a(null)}):null]})}function isPlainObject$2(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function getStyleBagSourceAndValue(e){const t=e??{},r=t.styles;if(isPlainObject$2(r))return{source:"styles",styleBag:r};const i=t.style;return isPlainObject$2(i)?{source:"style",styleBag:i}:{source:"none",styleBag:void 0}}function isAttributeTypeSpec(e){return"string"==typeof e||Array.isArray(e)}function getNestedStyleSchema(e){const t=e.styles??e.style;if(!isPlainObject$2(t))return;const r={};for(const[e,i]of Object.entries(t))isAttributeTypeSpec(i)&&(r[e]=i);return Object.keys(r).length?r:void 0}function buildAttributesEditorEntries(e,t){const r=getNestedStyleSchema(e),i=Object.keys(t??{}),n=Object.keys(e).filter(e=>"style"!==e&&"styles"!==e),o=Object.keys(r??{}),a=new Set([...i,...n,...o]),s=Array.from(a).filter(e=>"style"!==e&&"styles"!==e),l=[];return s.forEach(t=>{const i=e[t],n=r?.[t],o=isAttributeTypeSpec(i)?i:n;o&&l.push({name:t,type:o})}),l}function isValidStyleBagValue(e){const t=e,r=t?.styles,i=t?.style;return!(null!=r&&!isPlainObject$2(r)||null!=i&&!isPlainObject$2(i))}function findLegacyFlatStyleKeys(e,t){return isPlainObject$2(e)?Object.keys(e).filter(e=>"style"!==e&&"styles"!==e&&t(e)):[]}function isPlainObject$1(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function useAttributesEditorModel({node:e,onChange:t,projectColors:r}){const i=!e||isNodeString(e),n=useMemo(()=>i?{type:"View",children:null,attributes:{}}:e,[i,e]),o=useNode(n),{fonts:a,loadedFonts:s,markFontLoaded:l,addError:c}=useRenderStore(e=>({fonts:e.fonts,loadedFonts:e.loadedFonts,markFontLoaded:e.markFontLoaded,addError:e.addError})),d=useMemo(()=>getAttributeSchema(o?.type)??{},[o?.type]),p=getAttributeMeta(o?.type),g=useMemo(()=>o?.attributes??{},[o?.attributes]),u=useMemo(()=>getStyleAttributeKeySet(),[]),h=useMemo(()=>getStyleBagSourceAndValue(g),[g]),m=h.styleBag,f=useCallback(e=>{const t=d.styles;return!(!isPlainObject$1(t)||!(e in t))||u.has(e)},[d,u]),y=useMemo(()=>findLegacyFlatStyleKeys(g,f),[g,f]),b=useMemo(()=>!isValidStyleBagValue(g),[g]);useEffect(()=>{const e="style"===h.source;(0!==y.length||b||e)&&logger.warn("AttributesEditor","Legacy/unmigrated attributes detected. This editor expects schemaVersion=2 (style nested under attributes.styles). Please run migrations.",{componentType:o?.type,nodeKey:n.key,legacyFlatStyleKeys:y,hasInvalidStyleBag:b,styleBagSource:h.source})},[n,o?.type,b,y,h.source]);const C=useCallback(e=>f(e)?m?.[e]:g?.[e],[g,f,m]),x=useMemo(()=>r,[r]),v=useMemo(()=>"View"===o?.type?g:void 0,[g,o?.type]),S=useMemo(()=>({flexDirection:m?.flexDirection,alignItems:m?.alignItems,justifyContent:m?.justifyContent}),[m?.flexDirection,m?.alignItems,m?.justifyContent]),w=useMemo(()=>o?.type?getPatternByType(o.type):void 0,[o?.type]),k=w?.meta,T=k?.label??o?.type??"Component",_=k?.description,O="title"===w?.pattern?.title,I="description"===w?.pattern?.description,M=useMemo(()=>buildAttributesEditorEntries(d,p).filter(({type:e})=>"string"!=typeof e||"never"!==e),[p,d]),P=useMemo(()=>k?.hideAllAttributes?M.filter(({name:e})=>{const t=p?.[e];return!0===t?.forceVisible||!0===t?.override}):M,[p,k?.hideAllAttributes,M]),E=useMemo(()=>{const e=k?.mockableFeatures;return e&&"object"==typeof e?Object.entries(e).filter(([,e])=>!0===e).map(([e])=>e).filter(e=>"string"==typeof e&&e.trim().length>0).sort((e,t)=>e.localeCompare(t)):[]},[k?.mockableFeatures]),[L,z]=useState(null),D=useMemo(()=>{const e={style:[],container:[],other:[]},t={},r=e=>p?.[e]?.sort??Number.MAX_SAFE_INTEGER,i=(e,t)=>{const i=r(e.name)-r(t.name);return 0!==i?i:e.name.localeCompare(t.name)};return P.forEach(({name:r,type:i})=>{const n=p?.[r],o=n?.specialCategory;if("string"==typeof o){const e=o.trim();if(e)return t[e]||(t[e]=[]),void t[e].push({name:r,type:i})}const a=n?.category;e["style"===a?"style":"container"===a?"container":"other"].push({name:r,type:i})}),Object.values(e).forEach(e=>e.sort(i)),Object.values(t).forEach(e=>e.sort(i)),{grouped:e,specialGroups:t}},[p,P]),{grouped:B,specialGroups:A}=D,R=useMemo(()=>{const e={style:[],container:[],other:[]},t=(e,t)=>{const r=(e.meta?.sort??Number.MAX_SAFE_INTEGER)-(t.meta?.sort??Number.MAX_SAFE_INTEGER);return 0!==r?r:e.key.localeCompare(t.key)};return Object.entries(A).forEach(([t,r])=>{if(!r.length)return;const i=k?.specialCategories?.[t];e["style"===i?.category?"style":"container"===i?.category?"container":"other"].push({key:t,entries:r,meta:i})}),Object.keys(e).forEach(r=>{e[r].sort(t)}),e},[k?.specialCategories,A]),V=useMemo(()=>[{id:"container",label:"Container",entries:B.container},{id:"style",label:"Styles",entries:B.style},{id:"other",label:"Others",entries:B.other}],[B]),N=useMemo(()=>{const e={style:{baseCount:0,specialCount:0},container:{baseCount:0,specialCount:0},other:{baseCount:0,specialCount:0}};return V.forEach(t=>{e[t.id].baseCount=t.entries.length}),Object.keys(R).forEach(t=>{e[t].specialCount=R[t].reduce((e,t)=>e+t.entries.length,0)}),e},[R,V]),F=useMemo(()=>V.find(e=>{const t=N[e.id];return t.baseCount+t.specialCount>0})?.id??"other",[N,V]),[j,H]=useState(F);useEffect(()=>{H(e=>{const t=N[e];return t&&t.baseCount+t.specialCount>0?e:F})},[F,N]);const W=V.find(e=>e.id===j)?.entries??V.find(e=>e.id===F)?.entries??[],$=R[j]??[],U=useCallback((e,r)=>{const i={...n?.attributes??{}??{}};if(f(e)){const t={...isPlainObject$1(i.styles)?i.styles:isPlainObject$1(i.style)?i.style:{},[e]:r};i.styles=t,delete i.style,e in i&&delete i[e]}else if(i[e]=r,isPlainObject$1(i.styles)&&e in i.styles){const t={...i.styles};delete t[e],i.styles=Object.keys(t).length?t:void 0}const o={...n,attributes:i};t(o)},[n,f,t]),G=useCallback(e=>{const r={...n,children:e};t(r)},[n,t]),K=!!w?.pattern&&"string"===w.pattern.children,Y="string"==typeof n.children?n.children:"";return{isInvalidNode:i,baseData:n,data:o,projectFonts:a,loadedFonts:s,markFontLoaded:l,addError:c,schema:d,attributeMeta:p,componentTitle:T,componentDescription:_,patternForType:w,componentMeta:k,attributes:g,styleBag:m,projectColorsForPicker:x,viewAttributes:v,layoutContext:S,getAttributeValue:C,handleAttributeChange:U,handleChildrenChange:G,tabs:V,tabContentInfo:N,firstAvailableTab:F,activeTab:j,setActiveTab:H,activeEntries:W,specialSectionsByTab:R,activeSpecialSections:$,mockableFeatureKeys:E,activeMockableFeature:L,setActiveMockableFeature:z,hasTitleField:O,hasDescriptionField:I,hasStringChildren:K,childrenValue:Y}}function AttributesEditor(e){useLogRender("AttributesEditor");const t=useAttributesEditorModel(e),r=t.attributes?.title,i=t.hasTitleField,n=useRef(t.handleAttributeChange);return n.current=t.handleAttributeChange,useEffect(()=>{i&&"string"==typeof r&&r.length>20&&n.current("title",r.slice(0,20))},[i,r]),jsx(AttributesEditorView,{...t})}function deleteNodeFromTree(e,t){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=[];for(const n of e){if(n===t){r=!0;continue}const e=deleteNodeFromTree(n,t);e!==n&&(r=!0),i.push(e)}return r?i:e}const r=e;if("children"in r){const i=r.children;if(!i)return e;if(Array.isArray(i)){let n=!1;const o=[];for(const e of i){if(e===t){n=!0;continue}const r=deleteNodeFromTree(e,t);r!==e&&(n=!0),o.push(r)}return n?{...r,children:o}:e}if(i===t)return{...r,children:""};const n=deleteNodeFromTree(i,t);if(n!==i)return{...r,children:n}}return e}function isNodeRecord(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}function findNodeByKey(e,t){if(!t)return null;if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKey(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKey(r.children,t):null}function replaceNode(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=replaceNode(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>replaceNode(e,t,r)):replaceNode(e,t,r);if(n!==e)return{...i,children:n}}return e}function AttributesEditorPanel({attributes:e,onChange:t,projectColors:r}){useLogRender("AttributesEditorPanel");const{current:i,setCurrent:n}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent})),o=useRef(e);o.current=e;const a=useRef(i);a.current=i;const s=useRef(t);s.current=t;const l=useCallback(e=>{const t=o.current,r=a.current;if(!r)return;const i=replaceNode(t,r,e);s.current(i),n(e)},[n]);if(!i)return null;const c="object"==typeof i&&!Array.isArray(i)&&"key"in i?i.key:void 0,d=c&&e?findNodeByKey(e,c):null;return jsx("div",{className:"attributes-editor-panel",children:jsx(AttributesEditor,{node:d??i,onChange:l,projectColors:r},c??void 0)})}function Breadcrumb({items:e,separator:t="/",ariaLabel:r="Breadcrumb",onBack:i,backLabel:n="Back"}){return useLogRender("Breadcrumb"),jsxs("nav",{className:"breadcrumb","aria-label":r,children:[i&&jsxs("button",{type:"button",className:"breadcrumb__back",onClick:i,"aria-label":"Go back",children:[jsx("span",{className:"breadcrumb__back-icon","aria-hidden":!0,children:"←"}),jsx("span",{children:n})]}),jsx("ol",{className:"breadcrumb__list",children:e.map((r,i)=>{const n=i===e.length-1,o=!n&&(r.to||r.onClick);return jsxs("li",{className:"breadcrumb__item "+(o?"breadcrumb__item--clickable":""),onClick:o?r.onClick:void 0,role:o?"button":void 0,tabIndex:o?0:void 0,onKeyDown:o&&r.onClick?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r.onClick?.())}:void 0,children:[i>0&&jsx("span",{className:"breadcrumb__separator","aria-hidden":!0,children:t}),n||!r.to&&!r.onClick?jsx("span",{className:"breadcrumb__current","aria-current":"page",children:r.label}):jsx("span",{className:"breadcrumb__link",children:r.label})]},`${r.label}-${i}`)})})]})}function BuilderButton({node:e,onClick:t,onDelete:r,onMoveUp:i,onMoveDown:n,childrenCount:o,onMore:a}){const[s,l]=useState(!1),c=useRef(null),d=useMemo(()=>`builder-node-actions-${Math.random().toString(36).slice(2,9)}`,[]);if(useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]),isNodeNullOrUndefined(e))return jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(e))return jsx("div",{className:"builder__text",children:e});const p=e;let g="";p.attributes?.condition&&(g=`${p.attributes.condition} ${p.attributes.conditionVariable??""}`.trim());const u=getPatternByType(p.type)?.meta?.label?.trim(),h=u&&u.length>0?u:p.type,m=g.trim()?g:"",f="string"==typeof p.attributes?.title?p.attributes.title.trim():"",y=f.length>0,b=y?f:h,C=y||m.length>0||"number"==typeof o;return jsxs("div",{className:"builder__button",children:[(i||n)&&jsxs("div",{className:"builder__sort-controls",children:[jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),i?.()},disabled:!i,"aria-label":"Move up",children:"↑"}),jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),n?.()},disabled:!n,"aria-label":"Move down",children:"↓"})]}),jsx("button",{type:"button",className:"builder__button-link",onClick:t,children:b}),jsxs("div",{className:"builder__button-actions",ref:c,children:[jsx("button",{type:"button",className:"builder__button-actions-trigger","aria-label":"Open node actions","aria-haspopup":"menu","aria-expanded":s,"aria-controls":d,onClick:e=>{e.stopPropagation(),l(e=>!e)},children:jsx(Icon,{iconType:"chevron-right",size:16})}),s&&jsxs("ul",{id:d,className:"builder__button-actions-menu",role:"menu","aria-label":"Node actions",children:[a?jsx("li",{role:"none",children:jsx("button",{type:"button",className:"builder__button-actions-item",role:"menuitem",onClick:e=>{e.stopPropagation(),a(),l(!1)},children:"More"})}):null,jsx("li",{role:"none",children:jsx("button",{type:"button",className:"builder__button-actions-item builder__button-actions-item--danger",role:"menuitem",disabled:!r,onClick:t=>{if(t.stopPropagation(),!r)return;window.confirm("Do you want to delete?")&&(r&&(isNodeNullOrUndefined(e)||isNodeString(e)||r(e)),l(!1))},children:"Delete"})})]})]}),C&&jsxs("span",{className:"builder__button-condition",children:[y||m.length>0?jsx("span",{className:"builder__button-condition-text",children:y?jsxs(Fragment,{children:[jsx("small",{children:h}),m?` · ${m}`:""]}):m}):jsx("span",{className:"builder__button-condition-text"}),"number"==typeof o?jsxs("span",{className:"builder__button-children-count",children:[o," children"]}):null]})]})}function BuilderTreeNode({node:e,depthRemaining:t,onClick:r,onDelete:i,onMoveUp:n,onMoveDown:o}){const a=getNodeChildren(e),s=a.length>0,l=s&&t<=0?a.length:void 0,c=jsx(BuilderButton,{onClick:()=>{r(e)},node:e,onDelete:i,onMoveUp:n,onMoveDown:o,childrenCount:l,onMore:s&&t<=0?()=>r(e):void 0});return s?t<=0?jsx("div",{className:"builder__children",children:c}):jsxs("div",{className:"builder__children",children:[c,a.map((e,n)=>jsx(BuilderTreeNode,{node:e,depthRemaining:t-1,onClick:r,onDelete:i},n))]}):c}function BuilderComponent({node:e,onClick:t,onAdd:r,onDelete:i,onReorder:n,onMoveChildUp:o,onMoveChildDown:a,maxNestedDepth:s}){if(isNodeString(e))return jsxs("div",{className:"builder__text",children:[e," (Please define a node)"]});const l=r&&jsxs("button",{type:"button",className:"editor-button builder__add-button",onClick:r,children:[jsx("span",{className:"builder__add-button-icon","aria-hidden":"true",children:"+"}),jsx("span",{children:"Add component"})]});if(isNodeArray(e)){const r=e,o=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4),a=(e,t)=>{if(!n)return;const i=e+t;if(i<0||i>=r.length)return;const o=[...r],[a]=o.splice(e,1);o.splice(i,0,a),n(r,o)};return jsxs("div",{className:"builder__list",children:[r.map((e,s)=>jsx("div",{className:"builder__list-item",children:jsx(BuilderTreeNode,{node:e,depthRemaining:o,onClick:t,onDelete:i,onMoveUp:n&&s>0?()=>a(s,-1):void 0,onMoveDown:n&&s<r.length-1?()=>a(s,1):void 0})},s)),l]})}const c=e,d=c?.children,p=isNodeArray(d),g=d?p?d:[d]:null,u=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4);return jsxs("div",{className:"builder__node",children:[jsxs("div",{className:"builder__children",children:[jsx(BuilderButton,{onClick:()=>{t(e)},node:e,onDelete:i}),g&&g.map((r,n)=>jsx(BuilderTreeNode,{node:r,depthRemaining:u,onClick:t,onDelete:i,onMoveUp:o&&p&&n>0?()=>o(e,n):void 0,onMoveDown:a&&p&&n<g.length-1?()=>a(e,n):void 0},n))]}),l]})}function Builder({data:e,setData:t,current:r,setCurrent:i,onDeleteNode:n}){useLogRender("Builder");const[o,a]=useState(!1),s=useRenderStore(e=>e.listMaxNested),l=useMemo(()=>collectNodeKeys(e),[e]),c=Number.isFinite(s)&&s>0?Math.floor(s):5,d=useMemo(()=>{const t=findNodePath(e,r);return t.length?t:isNodeNullOrUndefined(r)?isNodeNullOrUndefined(e)?[]:[e]:[r]},[e,r]),p=useCallback(e=>{i(e)},[i]),g=useMemo(()=>d.map((e,t)=>({label:getNodeLabel(e),onClick:t===d.length-1?void 0:()=>p(e)})),[d,p]),u=useCallback(()=>{d.length<2||p(d[d.length-2])},[d,p]),h=useCallback(n=>{const o=T(n,new Set(l));if(isNodeNullOrUndefined(r)){if(isNodeNullOrUndefined(e)||isNodeString(e))return t(o),void i(o);if(Array.isArray(e)){const r=[...e,o];return t(r),void i(r)}const r=e,n={...r,children:appendChild(r.children,o)};return t(n),void i(n)}if(isNodeArray(r)){const n=[...r,o],a=k(e,r,n);return t(a),void i(n)}if(isNodeString(r))return void(r===e&&(t(o),i(o)));const a=r,s={...a,children:appendChild(a.children,o)},c=k(e,r,s);t(c),i(s)},[r,e,t,i,l]),m=useMemo(()=>function(t){if(isNodeNullOrUndefined(t))return[...allcomponentNames];if(isNodeArray(t)&&0===t.length)return[...allcomponentNames];if(isNodeString(t))return t===e?[...allcomponentNames]:[];const r=t.type;if("OnboardButtons"===r)return["OnboardButton"];const i=getPatternByType(r)?.pattern?.children;if(!i)return[];if("never"===i||"string"===i)return[];if("node"===i||Array.isArray(i)&&i.includes("node"))return[...allcomponentNames];if("string"==typeof i)return[i];return[]}(r),[r]),f=useMemo(()=>isNodeNullOrUndefined(r)||isNodeString(r)||isNodeArray(r)?null:r.type??null,[r]),y=m.length>0||null==e||Array.isArray(e)&&0===e.length,b=useCallback(()=>{y&&a(!0)},[y]),C=useCallback(()=>{a(!1)},[]),x=useCallback(e=>{h(e),a(!1)},[h]),v=useCallback((n,o)=>{const a=k(e,n,o);t(a),r===n&&i(o)},[r,e,i,t]),S=useCallback((n,o)=>{if(isNodeNullOrUndefined(n)||isNodeString(n)||isNodeArray(n))return;const a=n,s=a.children;if(!Array.isArray(s))return;if(o<=0||o>=s.length)return;const l=[...s],[c]=l.splice(o,1);l.splice(o-1,0,c);const d={...a,children:l},p=k(e,n,d);t(p),r===n&&i(d)},[r,e,i,t]),w=useCallback((n,o)=>{if(isNodeNullOrUndefined(n)||isNodeString(n)||isNodeArray(n))return;const a=n,s=a.children;if(!Array.isArray(s))return;if(o<0||o>=s.length-1)return;const l=[...s],[c]=l.splice(o,1);l.splice(o+1,0,c);const d={...a,children:l},p=k(e,n,d);t(p),r===n&&i(d)},[r,e,i,t]);function k(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=k(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>k(e,t,r)):k(e,t,r);if(n!==e)return{...i,children:n}}return e}function T(e,t){const r=getPatternByType(e)?.pattern,i=getDefaultsForType(e)??{},n=r?.children;let o="";do{o=generateRandomKeyForNode(e)}while(t.has(o));if(t.add(o),"CarouselProvider"===e)return{type:e,key:o,children:T("Carousel",t),attributes:{...i}};let a=null;return a="never"===n?null:"string"===n?"":"node"===n||Array.isArray(n)&&n.includes("node")?null:"string"==typeof n?[T(n,t)]:null,{type:e,key:o,children:a,attributes:{...i}}}return jsxs("div",{className:"builder",children:[jsx(Breadcrumb,{items:g,onBack:d.length>1?u:void 0}),jsx(BuilderComponent,{onClick:p,onAdd:y?b:void 0,onDelete:n,onReorder:v,onMoveChildUp:S,onMoveChildDown:w,maxNestedDepth:c,node:r}),o&&jsx(AddComponentModal,{allowedChildTypes:m,parentType:f,onSelect:x,onClose:C})]})}function appendChild(e,t){return Array.isArray(e)?[...e,t]:null==e||"string"==typeof e?[t]:[e,t]}function getNodeChildren(e){if(isNodeNullOrUndefined(e)||isNodeString(e)||isNodeArray(e))return[];const t=e.children;return t?Array.isArray(t)?t:[t]:[]}function getNodeLabel(e){if(isNodeNullOrUndefined(e))return"Empty";if(isNodeString(e))return e;if(isNodeArray(e))return"Collection";const t=e,r=t.attributes?.title;return"string"==typeof r&&r.trim().length>0?r:t.type??"Node"}function findNodePath(e,t){if(null==e)return[];if(e===t)return[e];if("string"==typeof e)return[];if(Array.isArray(e)){for(const r of e){const e=findNodePath(r,t);if(e.length)return e}return[]}const r=e.children;if(!r)return[];const i=Array.isArray(r)?r:[r];for(const r of i){const i=findNodePath(r,t);if(i.length)return[e,...i]}return[]}function BuilderPanel({data:e,setData:t,onDeleteNode:r}){useLogRender("BuilderPanel");const{current:i,setCurrent:n}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent}));return jsx("div",{role:"region",className:"editor-panel-builder editor-panel editor-panel--active","aria-hidden":!1,children:jsx(Builder,{data:e,setData:t,current:i,setCurrent:n,onDeleteNode:r})})}function isFn(e){return"function"==typeof e}function safeStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("function"==typeof r){const e=r.name;return`[Function${e?`: ${e}`:""}]`}if("bigint"==typeof r)return r.toString();if(r instanceof Error)return{name:r.name,message:r.message,stack:r.stack};if(r instanceof Map)return{__type:"Map",entries:Array.from(r.entries())};if(r instanceof Set)return{__type:"Set",values:Array.from(r.values())};if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}function safeParseJson(e){if("string"!=typeof e||!e.trim())return null;try{return JSON.parse(e)}catch{return null}}function safeGetPersistedRenderStore(){try{return"undefined"==typeof localStorage?null:localStorage.getItem("render-store")}catch(e){return{error:String(e)}}}function logRenderStore(e={}){const{label:t,includeLocalStorage:r=!0,extra:i}=e,n=useRenderStore.getState(),o=Object.keys(n).sort(),a={},s=[];for(const e of o){const t=n[e];isFn(t)?s.push(e):a[e]=t}const l="[RB Debug] Render store"+(t?` (${t})`:""),c=console.groupCollapsed,d=console.groupEnd;isFn(c)?c(l):console.info(l);const p=r?safeGetPersistedRenderStore():null,g=r?safeParseJson(p):null,u=safeStringify({snapshot:a,actions:s,extra:i??null,persisted:r?{raw:p,parsed:g}:null});console.info("json",u),console.info("state",a),console.info("actions",s),r&&console.info("localStorage.render-store (raw)",p),i&&console.info("extra",i),isFn(d)&&d()}function DebugJsonPage({data:e,setData:t,project:r,onClose:i,title:n="Debug JSON",description:o,previewMode:a,setPreviewMode:s,logLabel:l}){const c=useRenderStore(e=>e.setCurrent),d=useRenderStore(e=>e.listMaxNested),p=useRenderStore(e=>e.setListMaxNested),g=useRenderStore(e=>e.theme),u=useRenderStore(e=>e.setTheme),h=useRenderStore(e=>e.isRtl),m=useRenderStore(e=>e.setIsRtl),[f,y]=useState(String(d)),b="function"==typeof s,C=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"data"in e?e.data:e;function x(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function v(e){if(isNodeNullOrUndefined(e)||isNodeString(e))return e;if(isNodeArray(e)){return e.map(e=>v(e))}if(!x(e))return e;const t=e,r=v(t.children);if(!x(t.attributes))return{...t,children:r};const i={...t.attributes};return"style"in i&&x(i.style)&&(i.styles=i.style,delete i.style),{...t,children:r,attributes:i}}const S=useMemo(()=>function e(t){if(isNodeNullOrUndefined(t)||isNodeString(t))return!1;if(isNodeArray(t)){return t.some(e)}if(!x(t))return!1;const r=t;return!(!x(r.attributes)||!("style"in r.attributes))||e(r.children)}(e),[e]);useEffect(()=>{y(String(d))},[d]),useEffect(()=>{const e=window.setTimeout(()=>{const e=Number.parseInt(f,10);!Number.isFinite(e)||e<=0||p(e)},300);return()=>window.clearTimeout(e)},[f,p]);return jsxs(Fragment,{children:[jsxs("div",{className:"modal__header localication-modal__header",children:[jsxs("div",{className:"localication-modal__header-main",children:[jsx("h3",{id:"debug-json-editor-title",className:"modal__title",children:n}),o?jsx("p",{className:"localication-modal__description",children:o}):null]}),jsx("button",{type:"button",className:"editor-button",title:"Log render store to console",onClick:()=>logRenderStore({label:l,extra:{project:r??null,projectData:e??null}}),children:"Log store"}),S?jsx("button",{type:"button",className:"editor-button",title:"Migrate attributes.style to attributes.styles (schemaVersion=2)",onClick:()=>{if(!e)return;const r=v(e);t(r),c(r)},children:"Fix style → styles"}):null,i?jsx("button",{type:"button",className:"editor-button",onClick:()=>i(),children:"Close"}):null]}),jsxs("div",{className:"localication-modal__body",children:[jsxs("div",{className:"localication-modal__controls",children:[b?jsx(Checkbox,{label:"Preview mode",checked:Boolean(a),onChange:s}):null,jsx(Checkbox,{label:"Dark Mode",checked:"dark"===g,onChange:e=>u(e?"dark":"light")}),jsx(Checkbox,{label:"Is RTL",checked:h,onChange:m})]}),jsxs("div",{className:"localication-modal__controls",children:[jsx("label",{children:"List max nested depth"}),jsx("input",{type:"number",min:1,className:"input",value:f,onChange:e=>y(e.target.value)})]}),jsx("div",{className:"localication-modal__editor",children:jsx(JsonTextEditor,{rootName:"node",value:e??{},onChange:e=>{const r=analyseAndProccess(C(e));t(r),c(r)},className:"localication-modal__json-editor"})})]})]})}function BottomBar({className:e,data:t,setData:r,project:i}){const{localization:n,setLocalization:o,theme:a,setTheme:s,defaultLanguage:l,setDefaultLanguage:c,previewMode:d,setPreviewMode:p,setIsRtl:g,languageColumns:u}=useRenderStore(e=>({localization:e.localization,setLocalization:e.setLocalization,theme:e.theme,setTheme:e.setTheme,defaultLanguage:e.defaultLanguage,setDefaultLanguage:e.setDefaultLanguage,previewMode:e.previewMode,setPreviewMode:e.setPreviewMode,setIsRtl:e.setIsRtl,languageColumns:e.languageColumns})),[h,m]=useState(!1),[f,y]=useState(!1),[b,C]=useState(!1),[x,v]=useState(!1),[S,w]=useState(!1),k=useRef(),T=useMemo(()=>{if(u.length>0)return u;return Object.keys(n??{}).map(e=>({id:0,code:e.toUpperCase(),title:e,iso_code:e.toUpperCase(),is_right_alignment:!1}))},[u,n]),_=l,O=useCallback(e=>{const t=e.code.toLowerCase();c(t),g(e.is_right_alignment),w(!1)},[c,g]),I="dark"===a,M=d,P=I?"moon-bold":"sun";return jsxs(Fragment,{children:[jsxs("div",{className:["rb-bottom-bar",e].filter(Boolean).join(" "),children:[jsx("button",{type:"button",className:"rb-bottom-bar__button"+(I?" is-active":""),"aria-label":"Theme","aria-pressed":I,onClick:()=>s("dark"===a?"light":"dark"),children:jsx(Icon,{iconType:P,size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button rb-bottom-bar__button--preview"+(M?" is-active":""),"aria-label":"Magic cursor tool","aria-pressed":M,onClick:()=>p(!d),children:jsx(Icon,{iconType:"magicpen",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(h?" is-active":""),"aria-label":"Debug","aria-pressed":h,onClick:()=>m(!0),children:jsx(Icon,{iconType:"speedometer-03",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(f?" is-active":""),"aria-label":"Localization","aria-pressed":f,onClick:()=>y(!0),children:jsx(Icon,{iconType:"globe-01",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(b?" is-active":""),"aria-label":"Inspect","aria-pressed":b,onClick:()=>C(!0),children:jsx(Icon,{iconType:"info-circle",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(x?" is-active":""),"aria-label":"Prompt Manager","aria-pressed":x,onClick:()=>v(!0),children:jsx(Icon,{iconType:"star",size:20,color:"currentColor",alt:""})}),jsx("div",{className:"rb-bottom-bar__spacer"}),jsxs("div",{className:"rb-bottom-bar__lang-selector",onMouseEnter:()=>{k.current&&clearTimeout(k.current),w(!0)},onMouseLeave:()=>{k.current=setTimeout(()=>w(!1),200)},style:{position:"relative"},children:[jsxs("button",{type:"button",className:"rb-bottom-bar__lang is-active",style:{display:"flex",alignItems:"center",gap:4},children:[_.toUpperCase(),jsx("span",{style:{fontSize:8,opacity:.6},children:"▲"})]}),S&&T.length>0&&jsx("div",{className:"rb-bottom-bar__lang-dropdown",style:{position:"absolute",bottom:"100%",right:0,marginBottom:4,background:"var(--rb-bg-secondary, #2a2a2a)",border:"1px solid var(--rb-border, #444)",borderRadius:6,padding:"4px 0",minWidth:150,maxHeight:260,overflowY:"auto",boxShadow:"0 -4px 16px rgba(0,0,0,0.3)",zIndex:100},children:T.map(e=>{const t=e.code.toLowerCase()===_.toLowerCase();return jsxs("button",{type:"button",onClick:()=>O(e),style:{display:"flex",alignItems:"center",gap:6,width:"100%",padding:"5px 10px",border:"none",background:t?"var(--rb-accent, #6366f1)":"transparent",color:t?"#fff":"var(--rb-text-primary, #e0e0e0)",cursor:"pointer",fontSize:12,textAlign:"left"},onMouseEnter:e=>{t||(e.currentTarget.style.background="var(--rb-bg-hover, #333)")},onMouseLeave:e=>{t||(e.currentTarget.style.background="transparent")},children:[jsx("span",{style:{fontWeight:600,width:24,flexShrink:0},children:e.code}),jsx("span",{style:{opacity:.7,flex:1},children:e.title}),e.is_right_alignment&&jsx("span",{style:{fontSize:9,opacity:.5,flexShrink:0},children:"RTL"})]},e.code)})})]})]}),f&&jsx(LocalicationModal,{data:n??{},onChange:e=>{o(e)},onClose:()=>y(!1)}),h&&jsx(Modal,{onClose:()=>m(!1),ariaLabelledBy:"debug-json-editor-title",className:"modal--large modal--scrollable",contentClassName:"localication-modal__content",children:jsx(DebugJsonPage,{project:i,data:t,setData:r,onClose:()=>m(!1),description:"Inspect and edit raw node JSON.",previewMode:d,setPreviewMode:p,logLabel:"BottomBar Debug JSON"})}),b&&jsx(InspectModal,{onClose:()=>C(!1)}),x&&jsx(PromptManagerModal,{data:t,setData:r,onClose:()=>v(!1)})]})}var v="5.6.10",fr=30,ip=30,op=210,w=800,h=600,nm="合成 1",ddd=0,assets=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"形状图层 18",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0]},{t:30,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"形状图层 17",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:10,s:[0]},{t:40,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:10,bm:0},{ddd:0,ind:3,ty:4,nm:"形状图层 16",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:20,s:[0]},{t:50,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:20,bm:0},{ddd:0,ind:4,ty:4,nm:"形状图层 15",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:30,s:[0]},{t:60,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:30,bm:0},{ddd:0,ind:5,ty:4,nm:"形状图层 14",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[0]},{t:70,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:40,bm:0},{ddd:0,ind:6,ty:4,nm:"形状图层 13",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:50,s:[0]},{t:80,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:50,bm:0},{ddd:0,ind:7,ty:4,nm:"形状图层 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:220,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0]},{t:90,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:60,bm:0},{ddd:0,ind:8,ty:4,nm:"形状图层 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:200,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:70,s:[0]},{t:100,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:70,bm:0},{ddd:0,ind:9,ty:4,nm:"形状图层 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:180,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:80,s:[0]},{t:110,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:80,bm:0},{ddd:0,ind:10,ty:4,nm:"形状图层 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:160,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:90,s:[0]},{t:120,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:90,bm:0},{ddd:0,ind:11,ty:4,nm:"形状图层 8",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:140,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:100,s:[0]},{t:130,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:100,bm:0},{ddd:0,ind:12,ty:4,nm:"形状图层 7",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:120,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:110,s:[0]},{t:140,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:110,bm:0},{ddd:0,ind:13,ty:4,nm:"形状图层 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:100,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:120,s:[0]},{t:150,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:420,st:120,bm:0},{ddd:0,ind:14,ty:4,nm:"形状图层 5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:80,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:130,s:[0]},{t:160,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:430,st:130,bm:0},{ddd:0,ind:15,ty:4,nm:"形状图层 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:60,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:140,s:[0]},{t:170,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:440,st:140,bm:0},{ddd:0,ind:16,ty:4,nm:"形状图层 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:40,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:150,s:[0]},{t:180,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:450,st:150,bm:0},{ddd:0,ind:17,ty:4,nm:"形状图层 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:20,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:160,s:[0]},{t:190,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:460,st:160,bm:0},{ddd:0,ind:18,ty:4,nm:"形状图层 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:170,s:[0]},{t:200,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:470,st:170,bm:0},{ddd:0,ind:19,ty:4,nm:"形状图层 24",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:180,s:[0]},{t:210,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:180,bm:0},{ddd:0,ind:20,ty:4,nm:"形状图层 23",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:190,s:[0]},{t:220,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:190,bm:0},{ddd:0,ind:21,ty:4,nm:"形状图层 22",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:200,s:[0]},{t:230,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:200,bm:0},{ddd:0,ind:22,ty:4,nm:"形状图层 21",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:210,s:[0]},{t:240,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:210,bm:0},{ddd:0,ind:23,ty:4,nm:"形状图层 20",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:220,s:[0]},{t:250,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:220,bm:0},{ddd:0,ind:24,ty:4,nm:"形状图层 19",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:230,s:[0]},{t:260,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:230,bm:0}]}],layers=[{ddd:0,ind:1,ty:0,nm:"预合成 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"简单阻塞工具",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"视图",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"阻塞遮罩",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度渐变",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"渐变起点",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"起始颜色",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"渐变终点",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"结束颜色",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"渐变形状",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"渐变散射",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"与原始图像混合",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]}],w:800,h:600,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"预合成 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:56,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,320,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"简单阻塞工具",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"视图",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"阻塞遮罩",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度渐变",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"渐变起点",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"起始颜色",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"渐变终点",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"结束颜色",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"渐变形状",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"渐变散射",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"与原始图像混合",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]},{ty:29,nm:"高斯模糊",np:5,mn:"ADBE Gaussian Blur 2",ix:3,en:1,ef:[{ty:0,nm:"模糊度",mn:"ADBE Gaussian Blur 2-0001",ix:1,v:{a:0,k:41.3,ix:1}},{ty:7,nm:"模糊方向",mn:"ADBE Gaussian Blur 2-0002",ix:2,v:{a:0,k:1,ix:2}},{ty:7,nm:"重复边缘像素",mn:"ADBE Gaussian Blur 2-0003",ix:3,v:{a:0,k:0,ix:3}}]}],w:800,h:600,ip:0,op:300,st:0,bm:0}],markers=[],loadingAnimation={v:v,fr:fr,ip:ip,op:op,w:w,h:h,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers};function LoadingComponent(){return jsx("div",{className:"rb-loading",children:jsx(Lottie,{animationData:loadingAnimation,loop:!0,autoplay:!0})})}function useSyncHtmlThemeClass(){const e=useRenderStore(e=>e.theme);useEffect(()=>{if("undefined"==typeof document)return;const t=document.documentElement;t.classList.toggle("dark","dark"===e),t.classList.toggle("light","light"===e)},[e])}function safeJsonStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}async function copyTextToClipboard(e){try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{if("undefined"==typeof document)return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}function parseValidationPrefix(e){const t=e.indexOf(": ");if(t<=0)return{reason:e};const r=e.slice(0,t),i=e.slice(t+2);return r.startsWith("root")?{path:r,reason:i}:{reason:e}}function isObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function extractNodeFromRawData(e){if(isObject(e)){if("string"==typeof e.type&&e.type.trim())return e;const t=e.data;if(isObject(t)&&"string"==typeof t.type&&t.type.trim())return t}return e}function getNodeType(e){if(!isObject(e))return null;const t=e.type;return"string"==typeof t&&t?t:null}function getFirstComponentFromReactStack(e){if(!e)return null;const t=e.match(/\bat\s+([A-Za-z0-9_$]+)/);return t?.[1]??null}function resolveNodeTypeAtPath(e,t){if(!t||!t.startsWith("root"))return{};let r=e,i=getNodeType(r),n=i?"root":null;const o="root"===t?"":t.replace(/^root\.?/,""),a=/([A-Za-z0-9_$]+)|\[(\d+)\]/g;let s,l="root";for(;s=a.exec(o);){const e=s[1],t=s[2];e?(l=`${l}.${e}`,r=isObject(r)?r[e]:void 0):null!=t&&(l=`${l}[${t}]`,r=Array.isArray(r)?r[Number(t)]:void 0);const o=getNodeType(r);o&&(i=o,n=l)}return i?{nodeType:i,nodePath:n??void 0}:{}}function ProjectDebug({name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,belowName:s,jsonEditor:l}){useSyncHtmlThemeClass();const[c,d]=useState(null),[p,g]=useState("idle"),[u,h]=useState("idle"),m=useMemo(()=>safeJsonStringify(t),[t]),f=l?l.value:m,y=useMemo(()=>extractNodeFromRawData(t),[t]),b=y,C=useMemo(()=>getNodeType(y),[y]),x=useMemo(()=>parseValidationPrefix(r),[r]),v=useMemo(()=>resolveNodeTypeAtPath(y,x.path),[y,x.path]),S=useMemo(()=>{const e=[];return e.push(x.reason),C&&e.push(`Root component: ${C}`),x.path&&e.push(`Path: ${x.path}`),v.nodeType&&e.push(`Component at path: ${v.nodeType}${v.nodePath?` (${v.nodePath})`:""}`),e.join("\n")},[x.reason,x.path,C,v.nodeType,v.nodePath]),w=useMemo(()=>{if(!c)return null;const e=[];return e.push(c.message),C&&e.push(`Root component: ${C}`),c.componentStack&&e.push(`Component (from React stack): ${getFirstComponentFromReactStack(c.componentStack)??"unknown"}`),e.join("\n")},[c,C]),k=useMemo(()=>{const e=[];return e.push("=== Validation ==="),e.push(S),i&&(e.push(""),e.push(i)),c&&(e.push(""),e.push("=== Render ==="),w&&e.push(w),c.stack&&(e.push(""),e.push(c.stack)),c.componentStack&&(e.push(""),e.push(c.componentStack))),e.join("\n")},[c,w,i,S]);return jsxs("div",{className:"rb-project-debug",children:[jsxs("section",{className:"rb-project-debug__json","aria-label":"Debug JSON",children:[jsx("div",{className:"rb-project-debug__meta",children:jsxs("div",{children:[jsx("span",{className:"rb-project-debug__meta-label",children:"Name:"})," ",e]})}),jsxs("div",{className:"rb-project-debug__toolbar",children:[jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(f)&&(g("copied"),window.setTimeout(()=>g("idle"),900))},children:"copied"===p?"Copied JSON":"Copy JSON"}),l?.onSave&&jsx("button",{type:"button",className:"editor-button",disabled:l.saveDisabled,onClick:()=>l.onSave?.(),children:l.saveLabel??"Save"})]}),s&&jsx("div",{className:"rb-project-debug__below-name",children:s}),l?jsxs(Fragment,{children:[jsx("textarea",{className:"rb-project-debug__code-editor",value:l.value,onChange:e=>l.onChange(e.target.value),spellCheck:!1,"aria-label":"Edit JSON"}),l.error?jsx("div",{className:"rb-project-debug__json-error",role:"alert",children:l.error}):null]}):jsx("pre",{className:"rb-project-debug__code",tabIndex:0,children:m})]}),jsx("section",{className:"rb-project-debug__preview","aria-label":"Preview",style:{"--rb-canvas-bg":a??"none"},children:jsx(RenderErrorBoundary,{subtitle:"caught by ProjectDebug preview",onError:(e,t)=>d({message:e?.message??String(e),stack:e?.stack,componentStack:t}),children:jsx(RenderPage,{data:b,name:e,params:{mockProducts:n,mockBenefits:o}})})}),jsxs("section",{className:"rb-project-debug__error","aria-label":"Errors",children:[jsxs("div",{className:"rb-project-debug__error-head",children:[jsx("h2",{className:"rb-project-debug__title",children:"Errors"}),jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(k)&&(h("copied"),window.setTimeout(()=>h("idle"),900))},children:"copied"===u?"Copied":"Copy"})]}),jsxs("div",{className:"rb-project-debug__error-block",children:[jsx("div",{className:"rb-project-debug__error-label",children:"Validation"}),jsx("pre",{className:"rb-project-debug__error-pre",children:S}),i&&jsx("pre",{className:"rb-project-debug__error-pre",children:i})]}),c&&jsxs("div",{className:"rb-project-debug__error-block",children:[jsx("div",{className:"rb-project-debug__error-label",children:"Render"}),jsx("pre",{className:"rb-project-debug__error-pre",children:w}),c.stack&&jsx("pre",{className:"rb-project-debug__error-pre",children:c.stack}),c.componentStack&&jsx("pre",{className:"rb-project-debug__error-pre",children:c.componentStack})]})]})]})}function ProjectValidationPage({name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,belowName:s,onContinueWithoutValidation:l,onSaveEditedRawData:c}){const[d,p]=useState(()=>safeJsonStringify(t)),[g,u]=useState(null);return useEffect(()=>{p(safeJsonStringify(t)),u(null)},[t]),jsx(ProjectDebug,{name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,jsonEditor:{value:d,onChange:e=>{p(e),u(null)},error:g,onSave:()=>{try{const e=JSON.parse(d);u(null),c?.(e)}catch(e){u(e instanceof Error?e.message:String(e))}},saveDisabled:!c,saveLabel:"Save JSON"},belowName:jsxs(Fragment,{children:[jsxs("div",{className:"rb-project-validation__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>l?.(),children:"Continue without validation"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>(()=>{try{const e=JSON.parse(d),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=wrapNodeInMain(t(e)&&"data"in e?e.data:e),i=t(e)&&"data"in e?{...e,data:r}:r;p(JSON.stringify(i,null,2)),u(null)}catch(e){u(e instanceof Error?e.message:String(e))}})(),children:"Wrap in Main"})]}),s]})})}function ProjectMigrationPage({name:e,rawData:t,projectVersion:r,requiredVersion:i,showFixVersionMeta:n,pendingMigrations:o,products:a,benefits:s,canvasBg:l,belowName:c,migrating:d,onContinueWithoutValidation:p,onMigrateNow:g,onFixVersionMeta:u}){const h=`Migration required: project version ${r} is lower than ${i}.`,m=[`Required: ${i}`,`Current: ${r}`,"","Pending migrations:",...o.length?o.map(e=>`- ${e.id} (${e.fromVersion} -> ${e.toVersion}): ${e.title}`):["- (none)"]].join("\n");return jsx(ProjectDebug,{name:e,rawData:t,validationError:h,validationErrorStack:m,products:a,benefits:s,canvasBg:l,belowName:jsxs(Fragment,{children:[jsxs("div",{className:"rb-project-validation__actions",children:[jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>{g?.()},children:d?"Migrating…":"Migrate now"}),n&&jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>u?.(),children:"Fix version meta"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>p?.(),children:"Continue without migration"})]}),c]})})}var supportedProjectVersion="1.1.2",reactBuilderVersion="1.2.45",metaJson={supportedProjectVersion:supportedProjectVersion,reactBuilderVersion:reactBuilderVersion};function parseSemver(e){const t="string"==typeof e?e.trim():"",[r,i,n]=t.split(".").slice(0,3),o=e=>{const t=Number(String(e??"").replace(/[^\d].*$/,""));return Number.isFinite(t)?t:0};return{major:o(r),minor:o(i),patch:o(n)}}function compareSemver(e,t){const r=parseSemver(e),i=parseSemver(t);return r.major!==i.major?r.major<i.major?-1:1:r.minor!==i.minor?r.minor<i.minor?-1:1:r.patch!==i.patch?r.patch<i.patch?-1:1:0}function isSemverLess(e,t){return compareSemver(e,t)<0}function isPlainObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function buildStyleKeySet(){return getStyleAttributeKeySet()}function normalizeStyleAttributes(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject$1(e))return e;if(isNodeArray(e))return e.map(e=>normalizeStyleAttributes(e,t));const r=e,i=normalizeStyleAttributes(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const n={...r.attributes??{}},o={...isPlainObject(n.style)?n.style:{},...isPlainObject(n.styles)?n.styles:{}};for(const[e,r]of Object.entries(n))"style"!==e&&"styles"!==e&&t.has(e)&&(e in o||(o[e]=r),delete n[e]);return delete n.style,Object.keys(o).length>0&&(n.styles=o),{...r,children:i,attributes:n}}function getStyleSubSchemaKeys(e){if(!e)return new Set;const t=e.styles;return isPlainObject(t)?new Set(Object.keys(t)):new Set}function getTopLevelAttributeKeys(e){if(!e)return new Set;const t=Object.keys(e).filter(e=>"styles"!==e);return new Set(t)}function buildKeyInfo(e){const t=getTopLevelAttributeKeys(e);return{moveableKeys:new Set([...Array.from(t),...Array.from(NON_STYLE_ATTRIBUTE_KEYS)]),styleKeys:getStyleSubSchemaKeys(e)}}function extractAttributesFromStyle(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject$1(e))return e;if(isNodeArray(e))return e.map(e=>extractAttributesFromStyle(e,t));const r=e,i=extractAttributesFromStyle(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const n={...r.attributes??{}},o=n.style,a=n.styles,s=isPlainObject(a)?a:isPlainObject(o)?o:void 0;if(!s)return{...r,children:i,attributes:n};if(!isPlainObject(s))return{...r,children:i,attributes:n};const l="string"==typeof r.type?r.type:"",c=normalizeComponentType(l)??l;if(!c)return{...r,children:i,attributes:n};if(!t.has(c)){const e=getAttributeSchema(c);t.set(c,buildKeyInfo(e))}const d=t.get(c),p=d?.styleKeys??new Set,g=d?.moveableKeys??NON_STYLE_ATTRIBUTE_KEYS,u={...s};let h=!1;for(const e of g)e in u&&(p.has(e)||(e in n||(n[e]=u[e]),delete u[e],h=!0));return h?(0===Object.keys(u).length?(delete n.style,delete n.styles):(delete n.style,n.styles=u),{...r,children:i,attributes:n}):{...r,children:i,attributes:n}}const migration_1_1_2_extract_component_attributes_from_style={id:"1.1.2-extract-attrs-from-style",title:"Normalize style keys then extract non-style + component props out of attributes.style",fromVersion:"0.0.0",toVersion:"1.1.2",run:e=>{const t=buildStyleKeySet(),r=extractAttributesFromStyle(normalizeStyleAttributes(e.data,t),new Map);return{...e,version:"1.1.2",data:r}}},CURRENT_PROJECT_VERSION=metaJson.supportedProjectVersion,MIGRATIONS=[migration_1_1_2_extract_component_attributes_from_style];function getMigrationPipe(e){const t="string"==typeof e?.version&&e.version.trim()?e.version:"0.0.0",r=isSemverLess(t,CURRENT_PROJECT_VERSION),i=r?MIGRATIONS.filter(e=>isSemverLess(t,e.toVersion)):[];return{projectVersion:t,requiredVersion:CURRENT_PROJECT_VERSION,required:r,pending:i}}function runProjectMigrations(e){const t=getMigrationPipe(e);let r=e;const i=[];for(const e of t.pending)isSemverLess(r.version,e.toVersion)&&(r=e.run(r),i.push(e));return isSemverLess(r.version,CURRENT_PROJECT_VERSION)&&(r={...r,version:CURRENT_PROJECT_VERSION}),{project:r,applied:i}}function sleep(e){return new Promise(t=>setTimeout(t,e))}async function loadWithDeadline(e,t){return!Number.isFinite(t)||t<=0?await e:await Promise.race([e,sleep(t).then(()=>{throw new Error("timeout")})])}function useProjectFonts({fonts:e,appFont:t}){useEffect(()=>{fontsDebug.info("useProjectFonts: effect start",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"});const{setFonts:r,setAppFont:i,setErrors:n,addError:o,loadedFonts:a,markFontLoaded:s}=useRenderStore.getState();fontsDebug.info("useProjectFonts: storing fonts/appFont in store",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"}),r(e),i(t),n([]);let l=!1;return(async()=>{const r="string"==typeof t?t.trim():"";if(!r)return void n(["appFont is undefined"]);if(l)return;Array.isArray(e)&&e.some(e=>e?.name===r&&e?.family&&"object"==typeof e.family&&Object.keys(e.family).length>0)?Array.isArray(a)&&a.includes(r)||(await loadWithDeadline(loadFontFamily(e,r,{forceFetch:!0}),1e4),l||s(r)):n([`appFont "${r}" not found in fonts`])})().catch(e=>{l||o(`Failed to initialize fonts: ${e instanceof Error?e.message:String(e)}`)}),()=>{l=!0}},[e,t])}function getDefaultProject(e={}){const t=metaJson.supportedProjectVersion.trim()?metaJson.supportedProjectVersion.trim():"0.0.0",r="string"==typeof e.version&&e.version.trim()?e.version.trim():t;return{name:"string"==typeof e.name&&e.name.trim()?e.name.trim():"project",version:r,data:e.data??null,projectColors:e.projectColors,type:e.type}}function resolveProjectForSave(e){return getDefaultProject({...e.overrideProject??e.project,data:e.data})}function toProjectMeta(e){return{name:e.name,version:e.version,...e.type?{type:e.type}:{},data:e.data}}const MOBILE_BREAKPOINT=1e3;function ProjectPage({project:e,localization:t,onSaveProject:r,logLevel:i,projectColors:n,onSaveProjectColors:o,name:a,typography:s,appFont:l}){useLogRender("ProjectPage"),useSyncHtmlThemeClass();const c=l??s.fonts.find(e=>e?.isMain)?.name??s.fonts[0]?.name;useProjectFonts({fonts:s.fonts,appFont:c});const{current:d,setCurrent:p,setProjectColors:g,setProjectName:u,setLocalization:h,products:m,benefits:f}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent,setProjectColors:e.setProjectColors,setProjectName:e.setProjectName,setLocalization:e.setLocalization,products:e.products,benefits:e.benefits})),[b,C]=useState(null),x=b??e,v=a??x.name,S=n??x.projectColors,w=isNodeNullOrUndefined(x.data)||isEmptyObject$1(x.data),[k,T]=useState(()=>null),[_,O]=useState(null),[I,M]=useState(null),[P,E]=useState(!1),[L,z]=useState(null),[D,B]=useState(!1),[A,R]=useState(()=>w),[V,N]=useState(null),[F,j]=useState(()=>"undefined"!=typeof window&&window.innerWidth<=MOBILE_BREAKPOINT),H=useCallback(e=>{if(e===k){if(!window.confirm("You are about to delete the root component. This will clear the entire screen. Continue?"))return;return T(null),void p(null)}const t=deleteNodeFromTree(k,e);if(T(t),d!==e)if(isNodeRecord(d)&&d.key){const e=findNodeByKey(t,d.key);p(e??t)}else p(t);else p(t)},[k,d]);useEffect(()=>(logger.info("ProjectPage","mount",{projectName:e.name}),C(null),()=>{logger.info("ProjectPage","unmount")}),[e.name]),useEffect(()=>{t&&h(t)},[t,h]),useEffect(()=>{u(v)},[v,u]),useEffect(()=>(g(S),()=>g(void 0)),[S,g]),useEffect(()=>{i&&logger.setLevel(i)},[i]),useEffect(()=>{function e(){j(window.innerWidth<=MOBILE_BREAKPOINT)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),useEffect(()=>{N(null)},[F]);const W=e=>{N(t=>t===e?null:e)},$=()=>{N(null)},U=!F||"builder"===V,G=!F||"attributes"===V;useEffect(()=>{if(w)return void R(!0);R(!1);const e=setTimeout(()=>R(!0),1e3);return()=>clearTimeout(e)},[x.data]);const K=useRef(x);K.current=x;const Y=useRef(k);Y.current=k,useEffect(()=>{try{const e=K.current,t=e.data;if(null!=t&&t===Y.current)return;w||(T(null),p(null)),O(null),M(null);const r=getMigrationPipe(e);if(!P&&r.required)return z(r),T(null),void p(null);if(z(null),P)return T(e.data),void p(e.data);if(w)return T(null),void p(null);const i=analyseAndProccess(e.data);if(!i)return;T(i),p(i)}catch(e){logger.error("ProjectPage","Failed to process node",e),O(e instanceof Error?e.message:"Node is not valid"),M(e instanceof Error?e.stack??null:null),T(null),p(null)}},[x.data,w,P,p]);const Z=!(w||null!==k&&A);return jsxs("div",{className:"container-full",children:[jsx(Lt,{position:"bottom-right",autoClose:2500,hideProgressBar:!1,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"colored"}),jsx(EditorHeader,{onSaveProject:()=>{try{logger.info("ProjectPage","save project",{name:e.name}),o&&S&&o(S);const t=toProjectMeta(resolveProjectForSave({project:e,overrideProject:b,data:k}));logger.info("ProjectPage","saving project meta",t),r(t),y.success("Saved")}catch(e){logger.error("ProjectPage","save project failed",e),y.error("Save failed")}},onRestoreProject:()=>{logger.info("ProjectPage","restore project",{name:e.name}),C(null),O(null),M(null),E(!1),T(e.data),p(e.data)},current:d,editorData:k,setEditorData:T}),L?jsx(ProjectMigrationPage,{name:v,rawData:x,projectVersion:L.projectVersion,requiredVersion:L.requiredVersion,showFixVersionMeta:"0.0.0"===L.projectVersion,pendingMigrations:L.pending.map(e=>({id:e.id,title:e.title,fromVersion:e.fromVersion,toVersion:e.toVersion})),products:m,benefits:f,canvasBg:`url(${getImage(TribeAssetName.Background)})`,migrating:D,onContinueWithoutValidation:()=>{E(!0),z(null),T(x.data),p(x.data),R(!0)},onMigrateNow:()=>{try{B(!0);const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0,i=!t(x)||e(x)&&"string"==typeof x.version?x:getDefaultProject({name:`imported-${Math.random().toString(36).slice(2,8)}`,version:CURRENT_PROJECT_VERSION,data:x}),{project:n}=runProjectMigrations(i);r(toProjectMeta(n)),C(n),E(!0),z(null),T(n.data),p(n.data),R(!0)}finally{B(!1)}},onFixVersionMeta:()=>{const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=e(x)?x:null,i="string"==typeof t?.name&&String(t.name).trim()?String(t.name).trim():`imported-${Math.random().toString(36).slice(2,8)}`,n=t&&"data"in t?t.data:(t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0)(x)?x:null,o=getDefaultProject({name:i,version:CURRENT_PROJECT_VERSION,data:n,projectColors:{},type:(e=>"paywall"===e||"onboard"===e||"other"===e)(t?.type)?t.type:void 0});r(toProjectMeta(o)),C(o),E(!1),z(null),O(null),M(null),y.success("Fixed version meta")}}):_?jsx(ProjectValidationPage,{name:v,rawData:x,validationError:_,validationErrorStack:I??void 0,products:m,benefits:f,canvasBg:`url(${getImage(TribeAssetName.Background)})`,onContinueWithoutValidation:()=>{E(!0),O(null),M(null),T(x.data),p(x.data),R(!0)},onSaveEditedRawData:e=>{try{const t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),i=e;let n,o,a=i;if(t(i)&&"data"in i){a=i.data;const e=i.name,t=i.version;"string"==typeof e&&(n=e),"string"==typeof t&&(o=t)}const s=analyseAndProccess(a);if(!s)throw new Error("Node is not valid");const l={...x,...n?{name:n}:null,...o?{version:o}:null,data:a};r(toProjectMeta(l)),C(l),E(!1),O(null),M(null),T(s),p(s),R(!0),y.success("Saved")}catch(e){logger.error("ProjectPage","save JSON from validation failed",e),O(e instanceof Error?e.message:"Node is not valid"),M(e instanceof Error?e.stack??null:null),y.error("Save failed")}}}):jsxs(Fragment,{children:[F&&jsxs("div",{className:"mobile-panel-toggle",role:"group","aria-label":"Editor panels",children:[jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("builder"===V?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle builder panel","aria-expanded":"builder"===V,"aria-controls":"split-left-panel",onClick:()=>W("builder"),children:[jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsx("span",{className:"mobile-panel-toggle__label",children:"Builder"})]}),jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("attributes"===V?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle attributes panel","aria-expanded":"attributes"===V,"aria-controls":"split-attributes-panel",onClick:()=>W("attributes"),children:[jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsx("span",{className:"mobile-panel-toggle__label",children:"Attributes"})]})]}),jsxs("div",{className:"editor-container",children:[jsxs("div",{id:"split-left-panel",className:"split-left"+(U?" is-open":""),"aria-hidden":F&&!U,children:[F&&jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close builder panel",onClick:$,children:"Close"}),jsx("div",{children:jsx(BuilderPanel,{data:k,setData:T,onDeleteNode:H})})]}),jsxs("div",{style:{"--rb-canvas-bg":`url(${getImage(TribeAssetName.Background)})`},className:"split-right",children:[Z&&jsx("div",{className:"rb-loading-overlay","aria-busy":"true",children:jsx(LoadingComponent,{})}),!Z&&jsx(RenderPage,{data:k,name:v})]}),jsx(BottomBar,{project:e,data:k,setData:T}),jsxs("div",{id:"split-attributes-panel",className:"split-third"+(G?" is-open":""),"aria-hidden":F&&!G,children:[F&&jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close attributes panel",onClick:$,children:"Close"}),jsx(AttributesEditorPanel,{attributes:k,projectColors:S,onChange:e=>{let t;T(e),e&&"object"==typeof e&&!Array.isArray(e)&&"key"in e&&(t=e.key),logger.verbose("ProjectPage","attributes change",t?{nodeKey:t}:void 0)}})]}),F&&V&&jsx("button",{type:"button",className:"editor-container__overlay","aria-label":"Close active panel",onClick:$})]})]})]})}function useCalculateLocalizedPrice(e){return e?extractPrice(e):""}function useDiscountRate(e,t){if(!e||!t)return 0;const r=calculateDiscount(e,t);return r?parseInt(r,10):0}function useExtractTextStyle(e){const{selectedTheme:t,projectColors:r,fonts:i,baseSize:n}=useBuilderParams();return useMemo(()=>{const o=extractTextStyleNative(e,{theme:t,projectColors:r,fonts:i,baseSize:n}),a=e.attributes,s=stripStyleKeys(toAttributeRecord(a)),l=getStyleBag(a);return{style:o,other:{...s,adjustsFontSizeToFit:s.adjustsFontSizeToFit??l?.adjustsFontSizeToFit,showEllipsis:s.showEllipsis??l?.showEllipsis}}},[e,t,r,i,n])}function useExtractViewStyle(e){const{selectedTheme:t,projectColors:r,baseSize:i}=useBuilderParams();return useMemo(()=>{const n=extractViewStyleNative(e,{theme:t,projectColors:r,baseSize:i}),o=e.attributes,a=stripStyleKeys(toAttributeRecord(o)),s=getStyleBag(o);return{style:n,other:{...a,scrollable:a.scrollable??s?.scrollable}}},[e,t,r,i])}function useExtractImageStyle(e){const{selectedTheme:t,projectColors:r,baseSize:i}=useBuilderParams();return useMemo(()=>{const{resizeMode:n,...o}=extractImageStyleNative(e,{theme:t,projectColors:r,baseSize:i}),a=e.attributes,s=stripStyleKeys(toAttributeRecord(a)),l=getStyleBag(a);return{style:o,other:{...s,resizeMode:l?.resizeMode??n}}},[e,t,r,i])}const meta={supportedProjectVersion:metaJson.supportedProjectVersion,reactBuilderVersion:metaJson.reactBuilderVersion};function getMeta(){return{...meta}}function novaToJson(e){const t=e.data.data?.layout;return"onboard-layout"===t?onboardNovaToJson(e):null}function onboardNovaToJson(e){const t=e?.data?.data?.attributes||e?.data?.attributes||{},r=t?.general_components||[],i=t?.data||[],n=mapDotsFromGeneralComponents(r),o=mapFooterFromGeneralComponents(r),{carouselNode:a,providerLevelButtons:s}=buildCarouselFromPages(i),l={type:"OnboardProvider",key:e?.data?.data?.key,children:[a,...n?[n]:[],...s.length?s:[],...o?[o]:[]],attributes:{theme:e?.data?.theme}},c={type:"Main",isMain:!0,key:e?.data?.data?.key,children:[l],attributes:{useSafeAreaView:!0}};return delete l.key,c}function buildCarouselFromPages(e){const t=e.filter(e=>"simple-onboard-layout"===e?.layout),r=new Map;t.forEach((e,t)=>{const i=e?.attributes?.key;"string"==typeof i&&r.set(i,t)});const i=[];return{carouselNode:{type:"Onboard",children:t.map(e=>buildCarouselItem(e,r,i))},providerLevelButtons:i}}function buildCarouselItem(e,t,r){const i=e?.attributes?.components||[],n=[],o=e?.attributes?.key,a="string"==typeof o&&t.has(o)?t.get(o):void 0;for(const e of i)if("title-layout"===e?.layout){const t=e?.attributes?.title_localization_key||"",r=e?.attributes?.title_color||void 0,{fontSize:i,textAlign:o,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);n.push({type:"OnboardTitle",attributes:r||i||o||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...o?{textAlign:o}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("subtitle-layout"===e?.layout){const t=e?.attributes?.subtitle_localization_key||"",r=e?.attributes?.subtitle_color||void 0,{fontSize:i,textAlign:o,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);n.push({type:"OnboardSubtitle",attributes:r||i||o||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...o?{textAlign:o}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("image-layout"===e?.layout){const t=e?.attributes?.image||e?.attributes?.src||"",r=e?.attributes?.height??e?.attributes?.ios_height??e?.attributes?.android_height,i="string"==typeof r?Number.parseInt(r,10):"number"==typeof r?r:void 0,o=Boolean(e?.attributes?.is_bg_image),a=extractViewStyleAttributesFromComponent(e),s=e?.attributes?.lottie,l=e?.attributes?.video_url;t&&n.push({type:"OnboardImage",attributes:{src:t,...i?{height:i}:{},resizeMode:o?"cover":"contain",..."number"==typeof a.borderRadius?{borderRadius:a.borderRadius}:{},..."string"==typeof s?{lottie:s}:{},..."string"==typeof l?{video_url:l}:{}},children:void 0})}else if("Buttons"===e?.layout){const i=e?.attributes?.buttons_direction,n=e?.attributes?.buttons||[],o=[];for(const e of n){const r=e?.attributes||{},i=r?.button_text_localization_key||"",n=r?.button_text_color,a=r?.button_background_color,s=r?.animation,l=r?.animation_color,c=r?.flex?Number(r.flex):void 0,d=r?.actions||[],p=[];for(const e of d){const r=e?.attributes?.events||[];for(const e of r)if("Permission"===e?.layout){const t=e?.attributes?.permission;p.push({type:"Permission",permission:t})}else if("Navigate"===e?.layout){const r=e?.attributes?.next_page_key,i="string"==typeof r&&t.has(r),n=i?null:"string"==typeof r?r:null;p.push({type:"Navigate",navigate_to:n,...i?{targetIndex:t.get(r)}:{}})}}o.push({type:"OnboardButton",attributes:{labelKey:i,..."string"==typeof n?{button_text_color:n}:{},..."string"==typeof s?{animation:s}:{},..."string"==typeof l?{animation_color:l}:{},..."string"==typeof a?{button_background_color:a}:{},..."number"==typeof c?{flex:c}:{},...p.length?{events:p}:{}},children:void 0})}o.length>0&&r.push({type:"OnboardButtons",attributes:{...i?{buttons_direction:i}:{},..."number"==typeof a?{condition:"carousel-index",conditionVariable:a}:{}},children:o})}const s=e?.attributes?.key,l="string"==typeof s&&s||("string"==typeof e?.key?e.key:void 0);return{type:"OnboardItem",...l?{key:l}:{},children:n}}function extractTextStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;const i=new Set(["left","center","right","justify"]),n=new Set(["normal","bold","100","200","300","400","500","600","700","800","900"]);for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.type;if("textStyle"!==r)continue;const o=e?.attributes?.style||{},a=o?.fontSize;if("number"==typeof a&&Number.isFinite(a))t.fontSize=a;else if("string"==typeof a){const e=Number.parseInt(a,10);Number.isFinite(e)&&(t.fontSize=e)}const s=o?.textAlign;"string"==typeof s&&i.has(s)&&(t.textAlign=s);const l=o?.marginTop;if("number"==typeof l&&Number.isFinite(l))t.marginTop=l;else if("string"==typeof l){const e=Number.parseInt(l,10);Number.isFinite(e)&&(t.marginTop=e)}const c=o?.fontWeight;let d;"number"==typeof c&&Number.isFinite(c)?d=String(c):"string"==typeof c&&(d=c),d&&n.has(d)&&(t.fontWeight=d)}}return t}function extractViewStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.style||{},i=r?.borderRadius;if("number"==typeof i&&Number.isFinite(i))t.borderRadius=i;else if("string"==typeof i){const e=Number.parseInt(i,10);Number.isFinite(e)&&(t.borderRadius=e)}}}return t}function mapDotsFromGeneralComponents(e){const t=e.find(e=>"dots-layout"===e?.layout);if(!t)return null;const r=t?.attributes?.dot||[],i=r?.[0],n=i?.layout,o=i?.attributes||{},a=e=>{if("number"==typeof e)return e;if("string"==typeof e&&e.trim().length>0){const t=Number(e);return Number.isFinite(t)?t:void 0}},s=a(o?.inactive_dot_opacity),l=a(o?.dot_thickness),c="string"==typeof o?.dot_style?o.dot_style:void 0,d="string"==typeof o?.container_style?o.container_style:void 0,p="string"==typeof o?.active_dot_color?o.active_dot_color:void 0,g="string"==typeof o?.inactive_dot_color?o.inactive_dot_color:void 0,u={};return n&&(u.dotType=n),void 0!==s&&(u.inactive_dot_opacity=s),void 0!==l&&(u.dot_thickness=l),c&&(u.dot_style=c),d&&(u.container_style=d),p&&(u.active_dot_color=p),g&&(u.inactive_dot_color=g),{type:"OnboardDot",attributes:Object.keys(u).length?u:void 0,children:void 0}}function mapFooterFromGeneralComponents(e){const t=e.find(e=>"footer-layout"===e?.layout);if(!t)return null;const r=t?.attributes?.texts||[],i=[];let n,o;for(const e of r)if("Text"===e?.layout){const t=e?.attributes?.text_localization_key||"",r=e?.attributes?.text_color||void 0;n||(n=t),o||"string"!=typeof r||(o=r);const a=e?.attributes?.linkedwords||[];for(const e of a)if("LinkedWords"===e?.layout){const t=e?.attributes?.linked_word_localization_key,r=e?.attributes?.linked_word_color,n=e?.attributes?.page;i.push({text_key:t,color:r,page:n})}}const a={gap:8};n&&(a.textLocalizationKey=n),o&&(a.color=o);const s=i[0],l=i[1];return s&&(s.text_key&&(a.linkedWordFirstLocalizationKey=s.text_key),s.color&&(a.linkedWordFirstColor=s.color),s.page&&(a.linkedWordFirstPage=s.page)),l&&(l.text_key&&(a.linkedWordSecondLocalizationKey=l.text_key),l.color&&(a.linkedWordSecondColor=l.color),l.page&&(a.linkedWordSecondPage=l.page)),{type:"OnboardFooter",attributes:a,children:void 0}}function isNodeData(e){return null!=e&&(!Array.isArray(e)&&("string"!=typeof e&&("object"==typeof e&&("type"in e&&"children"in e))))}function querySelector(e,t){if(null==e)return[];if(!t)return[];const r=t.startsWith("#"),i=r?t.slice(1):void 0,n=[],o=e=>{var a;if(null!=e)if(Array.isArray(e))for(const t of e)o(t);else"string"!=typeof e&&isNodeData(e)&&(a=e,(r?a.key===i:a.type===t)&&n.push(e),o(e.children))};return o(e),n}function setBuilderStringChildrenField(e){useRenderStore.getState().setRenderStringChildrenField(e)}function setBuilderLocalizationConfig(e){useRenderStore.getState().setLocalizationApiConfig(e)}function setBuilderLanguageColumns(e){useRenderStore.getState().setLanguageColumns(e)}export{BuilderProvider,DebugJsonPage,LocalizationParamsProvider,PERIOD_LOCALIZATION_KEYS,ParamsProvider,ProjectPage,RenderNode$1 as RenderNode,TRIBE_ASSETS_BASE_URL,TribeAssetName,allcomponentNames,analyseAndProccess,analyseNode,buildPaywallLocalizationParams,calculateDiscount,calculatePricePerMonth,calculatePricePerYear,convertIOSPeriodUnit,defaultLocalization,defaultProjectColors,defaultTheme,extractAndroidParams,extractIOSParams,extractPrice,getArrayItemType,getAttributeMeta,getAttributeSchema,getDefaultDevice,getDefaultProject,getDefaultsForType,getDevices,getImage,getMeta,getMockProducts,getMockProductsByPreset,getPatternByType,getPeriodLocalizationKey,getSamples,getTypeSchema,isEmptyObject$1 as isEmptyObject,isNodeArray,isNodeNullOrUndefined,isNodeString,isPrimitiveType,mergeLocalization,mergeProjectColors,novaToJson,parseBillingPeriod,parseColor,parseTribeAssetName,patterns$1 as patterns,querySelector,resolveImageSrc,setBuilderLanguageColumns,setBuilderLocalizationConfig,setBuilderStringChildrenField,useBuilderParams,useCalculateLocalizedPrice,useChangeDelayByPaywall,useDiscountRate,useExtractImageStyle,useExtractTextStyle,useExtractViewStyle,useLocalizationParams,useLocalize,useNode,useParams,usePaywallLocalizationParams,useRenderStore};
33
33
  //# sourceMappingURL=index.web.esm.js.map