@eka-care/abha-stg 0.1.44 → 0.1.45

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.
@@ -1,4 +1,4 @@
1
- var Ps=e=>{throw TypeError(e)};var vs=(e,s,i)=>s.has(e)||Ps("Cannot "+i);var At=(e,s,i)=>(vs(e,s,"read from private field"),i?i.call(e):s.get(e)),Ut=(e,s,i)=>s.has(e)?Ps("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,i),Ht=(e,s,i,a)=>(vs(e,s,"write to private field"),a?a.call(e,i):s.set(e,i),i),Xt=(e,s,i)=>(vs(e,s,"access private method"),i);var ms=(e,s,i,a)=>({set _(o){Ht(e,s,o,i)},get _(){return At(e,s,a)}});(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const g of c.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&a(g)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jsxRuntime$1={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
1
+ var Ps=e=>{throw TypeError(e)};var vs=(e,s,i)=>s.has(e)||Ps("Cannot "+i);var At=(e,s,i)=>(vs(e,s,"read from private field"),i?i.call(e):s.get(e)),$t=(e,s,i)=>s.has(e)?Ps("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,i),Ht=(e,s,i,a)=>(vs(e,s,"write to private field"),a?a.call(e,i):s.set(e,i),i),Xt=(e,s,i)=>(vs(e,s,"access private method"),i);var ms=(e,s,i,a)=>({set _(o){Ht(e,s,o,i)},get _(){return At(e,s,a)}});(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const g of c.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&a(g)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jsxRuntime$1={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -22,7 +22,7 @@ var Ps=e=>{throw TypeError(e)};var vs=(e,s,i)=>s.has(e)||Ps("Cannot "+i);var At=
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */(function(e){function s(lt,ht){var yt=lt.length;lt.push(ht);e:for(;0<yt;){var ft=yt-1>>>1,Ct=lt[ft];if(0<o(Ct,ht))lt[ft]=ht,lt[yt]=Ct,yt=ft;else break e}}function i(lt){return lt.length===0?null:lt[0]}function a(lt){if(lt.length===0)return null;var ht=lt[0],yt=lt.pop();if(yt!==ht){lt[0]=yt;e:for(var ft=0,Ct=lt.length,Et=Ct>>>1;ft<Et;){var bt=2*(ft+1)-1,Ot=lt[bt],Lt=bt+1,Pt=lt[Lt];if(0>o(Ot,yt))Lt<Ct&&0>o(Pt,Ot)?(lt[ft]=Pt,lt[Lt]=yt,ft=Lt):(lt[ft]=Ot,lt[bt]=yt,ft=bt);else if(Lt<Ct&&0>o(Pt,yt))lt[ft]=Pt,lt[Lt]=yt,ft=Lt;else break e}}return ht}function o(lt,ht){var yt=lt.sortIndex-ht.sortIndex;return yt!==0?yt:lt.id-ht.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var g=Date,_=g.now();e.unstable_now=function(){return g.now()-_}}var b=[],$=[],et=1,ot=null,rt=3,at=!1,it=!1,nt=!1,dt=typeof setTimeout=="function"?setTimeout:null,_e=typeof clearTimeout=="function"?clearTimeout:null,tt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(lt){for(var ht=i($);ht!==null;){if(ht.callback===null)a($);else if(ht.startTime<=lt)a($),ht.sortIndex=ht.expirationTime,s(b,ht);else break;ht=i($)}}function st(lt){if(nt=!1,j(lt),!it)if(i(b)!==null)it=!0,pt(ut);else{var ht=i($);ht!==null&&vt(st,ht.startTime-lt)}}function ut(lt,ht){it=!1,nt&&(nt=!1,_e(mt),mt=-1),at=!0;var yt=rt;try{for(j(ht),ot=i(b);ot!==null&&(!(ot.expirationTime>ht)||lt&&!wt());){var ft=ot.callback;if(typeof ft=="function"){ot.callback=null,rt=ot.priorityLevel;var Ct=ft(ot.expirationTime<=ht);ht=e.unstable_now(),typeof Ct=="function"?ot.callback=Ct:ot===i(b)&&a(b),j(ht)}else a(b);ot=i(b)}if(ot!==null)var Et=!0;else{var bt=i($);bt!==null&&vt(st,bt.startTime-ht),Et=!1}return Et}finally{ot=null,rt=yt,at=!1}}var ct=!1,gt=null,mt=-1,_t=5,kt=-1;function wt(){return!(e.unstable_now()-kt<_t)}function St(){if(gt!==null){var lt=e.unstable_now();kt=lt;var ht=!0;try{ht=gt(!0,lt)}finally{ht?Tt():(ct=!1,gt=null)}}else ct=!1}var Tt;if(typeof tt=="function")Tt=function(){tt(St)};else if(typeof MessageChannel<"u"){var Mt=new MessageChannel,xt=Mt.port2;Mt.port1.onmessage=St,Tt=function(){xt.postMessage(null)}}else Tt=function(){dt(St,0)};function pt(lt){gt=lt,ct||(ct=!0,Tt())}function vt(lt,ht){mt=dt(function(){lt(e.unstable_now())},ht)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(lt){lt.callback=null},e.unstable_continueExecution=function(){it||at||(it=!0,pt(ut))},e.unstable_forceFrameRate=function(lt){0>lt||125<lt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_t=0<lt?Math.floor(1e3/lt):5},e.unstable_getCurrentPriorityLevel=function(){return rt},e.unstable_getFirstCallbackNode=function(){return i(b)},e.unstable_next=function(lt){switch(rt){case 1:case 2:case 3:var ht=3;break;default:ht=rt}var yt=rt;rt=ht;try{return lt()}finally{rt=yt}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(lt,ht){switch(lt){case 1:case 2:case 3:case 4:case 5:break;default:lt=3}var yt=rt;rt=lt;try{return ht()}finally{rt=yt}},e.unstable_scheduleCallback=function(lt,ht,yt){var ft=e.unstable_now();switch(typeof yt=="object"&&yt!==null?(yt=yt.delay,yt=typeof yt=="number"&&0<yt?ft+yt:ft):yt=ft,lt){case 1:var Ct=-1;break;case 2:Ct=250;break;case 5:Ct=1073741823;break;case 4:Ct=1e4;break;default:Ct=5e3}return Ct=yt+Ct,lt={id:et++,callback:ht,priorityLevel:lt,startTime:yt,expirationTime:Ct,sortIndex:-1},yt>ft?(lt.sortIndex=yt,s($,lt),i(b)===null&&lt===i($)&&(nt?(_e(mt),mt=-1):nt=!0,vt(st,yt-ft))):(lt.sortIndex=Ct,s(b,lt),it||at||(it=!0,pt(ut))),lt},e.unstable_shouldYield=wt,e.unstable_wrapCallback=function(lt){var ht=rt;return function(){var yt=rt;rt=ht;try{return lt.apply(this,arguments)}finally{rt=yt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/**
25
+ */(function(e){function s(lt,ht){var yt=lt.length;lt.push(ht);e:for(;0<yt;){var ft=yt-1>>>1,Ct=lt[ft];if(0<o(Ct,ht))lt[ft]=ht,lt[yt]=Ct,yt=ft;else break e}}function i(lt){return lt.length===0?null:lt[0]}function a(lt){if(lt.length===0)return null;var ht=lt[0],yt=lt.pop();if(yt!==ht){lt[0]=yt;e:for(var ft=0,Ct=lt.length,St=Ct>>>1;ft<St;){var bt=2*(ft+1)-1,Ot=lt[bt],Mt=bt+1,Rt=lt[Mt];if(0>o(Ot,yt))Mt<Ct&&0>o(Rt,Ot)?(lt[ft]=Rt,lt[Mt]=yt,ft=Mt):(lt[ft]=Ot,lt[bt]=yt,ft=bt);else if(Mt<Ct&&0>o(Rt,yt))lt[ft]=Rt,lt[Mt]=yt,ft=Mt;else break e}}return ht}function o(lt,ht){var yt=lt.sortIndex-ht.sortIndex;return yt!==0?yt:lt.id-ht.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var g=Date,_=g.now();e.unstable_now=function(){return g.now()-_}}var b=[],$=[],et=1,ot=null,rt=3,at=!1,it=!1,nt=!1,dt=typeof setTimeout=="function"?setTimeout:null,_e=typeof clearTimeout=="function"?clearTimeout:null,tt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(lt){for(var ht=i($);ht!==null;){if(ht.callback===null)a($);else if(ht.startTime<=lt)a($),ht.sortIndex=ht.expirationTime,s(b,ht);else break;ht=i($)}}function st(lt){if(nt=!1,j(lt),!it)if(i(b)!==null)it=!0,pt(ut);else{var ht=i($);ht!==null&&vt(st,ht.startTime-lt)}}function ut(lt,ht){it=!1,nt&&(nt=!1,_e(mt),mt=-1),at=!0;var yt=rt;try{for(j(ht),ot=i(b);ot!==null&&(!(ot.expirationTime>ht)||lt&&!wt());){var ft=ot.callback;if(typeof ft=="function"){ot.callback=null,rt=ot.priorityLevel;var Ct=ft(ot.expirationTime<=ht);ht=e.unstable_now(),typeof Ct=="function"?ot.callback=Ct:ot===i(b)&&a(b),j(ht)}else a(b);ot=i(b)}if(ot!==null)var St=!0;else{var bt=i($);bt!==null&&vt(st,bt.startTime-ht),St=!1}return St}finally{ot=null,rt=yt,at=!1}}var ct=!1,gt=null,mt=-1,_t=5,kt=-1;function wt(){return!(e.unstable_now()-kt<_t)}function Et(){if(gt!==null){var lt=e.unstable_now();kt=lt;var ht=!0;try{ht=gt(!0,lt)}finally{ht?Tt():(ct=!1,gt=null)}}else ct=!1}var Tt;if(typeof tt=="function")Tt=function(){tt(Et)};else if(typeof MessageChannel<"u"){var Lt=new MessageChannel,xt=Lt.port2;Lt.port1.onmessage=Et,Tt=function(){xt.postMessage(null)}}else Tt=function(){dt(Et,0)};function pt(lt){gt=lt,ct||(ct=!0,Tt())}function vt(lt,ht){mt=dt(function(){lt(e.unstable_now())},ht)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(lt){lt.callback=null},e.unstable_continueExecution=function(){it||at||(it=!0,pt(ut))},e.unstable_forceFrameRate=function(lt){0>lt||125<lt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_t=0<lt?Math.floor(1e3/lt):5},e.unstable_getCurrentPriorityLevel=function(){return rt},e.unstable_getFirstCallbackNode=function(){return i(b)},e.unstable_next=function(lt){switch(rt){case 1:case 2:case 3:var ht=3;break;default:ht=rt}var yt=rt;rt=ht;try{return lt()}finally{rt=yt}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(lt,ht){switch(lt){case 1:case 2:case 3:case 4:case 5:break;default:lt=3}var yt=rt;rt=lt;try{return ht()}finally{rt=yt}},e.unstable_scheduleCallback=function(lt,ht,yt){var ft=e.unstable_now();switch(typeof yt=="object"&&yt!==null?(yt=yt.delay,yt=typeof yt=="number"&&0<yt?ft+yt:ft):yt=ft,lt){case 1:var Ct=-1;break;case 2:Ct=250;break;case 5:Ct=1073741823;break;case 4:Ct=1e4;break;default:Ct=5e3}return Ct=yt+Ct,lt={id:et++,callback:ht,priorityLevel:lt,startTime:yt,expirationTime:Ct,sortIndex:-1},yt>ft?(lt.sortIndex=yt,s($,lt),i(b)===null&&lt===i($)&&(nt?(_e(mt),mt=-1):nt=!0,vt(st,yt-ft))):(lt.sortIndex=Ct,s(b,lt),it||at||(it=!0,pt(ut))),lt},e.unstable_shouldYield=wt,e.unstable_wrapCallback=function(lt){var ht=rt;return function(){var yt=rt;rt=ht;try{return lt.apply(this,arguments)}finally{rt=yt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -35,29 +35,29 @@ var Ps=e=>{throw TypeError(e)};var vs=(e,s,i)=>s.has(e)||Ps("Cannot "+i);var At=
35
35
  `),c=a.stack.split(`
36
36
  `),g=o.length-1,_=c.length-1;1<=g&&0<=_&&o[g]!==c[_];)_--;for(;1<=g&&0<=_;g--,_--)if(o[g]!==c[_]){if(g!==1||_!==1)do if(g--,_--,0>_||o[g]!==c[_]){var b=`
37
37
  `+o[g].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),b}while(1<=g&&0<=_);break}}}finally{Na=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?Ma(e):""}function Pa(e){switch(e.tag){case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return e=Oa(e.type,!1),e;case 11:return e=Oa(e.type.render,!1),e;case 1:return e=Oa(e.type,!0),e;default:return""}}function Qa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ca:return(e.displayName||"Context")+".Consumer";case Ba:return(e._context.displayName||"Context")+".Provider";case Da:var s=e.render;return e=e.displayName,e||(e=s.displayName||s.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ga:return s=e.displayName||null,s!==null?s:Qa(e.type)||"Memo";case Ha:s=e._payload,e=e._init;try{return Qa(e(s))}catch{}}return null}function Ra(e){var s=e.type;switch(e.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=s.render,e=e.displayName||e.name||"",s.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(s);case 8:return s===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ta(e){var s=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ua(e){var s=Ta(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,s),a=""+e[s];if(!e.hasOwnProperty(s)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,s,{configurable:!0,get:function(){return o.call(this)},set:function(g){a=""+g,c.call(this,g)}}),Object.defineProperty(e,s,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[s]}}}}function Va(e){e._valueTracker||(e._valueTracker=Ua(e))}function Wa(e){if(!e)return!1;var s=e._valueTracker;if(!s)return!0;var i=s.getValue(),a="";return e&&(a=Ta(e)?e.checked?"true":"false":e.value),e=a,e!==i?(s.setValue(e),!0):!1}function Xa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ya(e,s){var i=s.checked;return A({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function Za(e,s){var i=s.defaultValue==null?"":s.defaultValue,a=s.checked!=null?s.checked:s.defaultChecked;i=Sa(s.value!=null?s.value:i),e._wrapperState={initialChecked:a,initialValue:i,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function ab(e,s){s=s.checked,s!=null&&ta(e,"checked",s,!1)}function bb(e,s){ab(e,s);var i=Sa(s.value),a=s.type;if(i!=null)a==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}s.hasOwnProperty("value")?cb(e,s.type,i):s.hasOwnProperty("defaultValue")&&cb(e,s.type,Sa(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(e.defaultChecked=!!s.defaultChecked)}function db(e,s,i){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var a=s.type;if(!(a!=="submit"&&a!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+e._wrapperState.initialValue,i||s===e.value||(e.value=s),e.defaultValue=s}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function cb(e,s,i){(s!=="number"||Xa(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var eb=Array.isArray;function fb(e,s,i,a){if(e=e.options,s){s={};for(var o=0;o<i.length;o++)s["$"+i[o]]=!0;for(i=0;i<e.length;i++)o=s.hasOwnProperty("$"+e[i].value),e[i].selected!==o&&(e[i].selected=o),o&&a&&(e[i].defaultSelected=!0)}else{for(i=""+Sa(i),s=null,o=0;o<e.length;o++){if(e[o].value===i){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}s!==null||e[o].disabled||(s=e[o])}s!==null&&(s.selected=!0)}}function gb(e,s){if(s.dangerouslySetInnerHTML!=null)throw Error(p$1(91));return A({},s,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hb(e,s){var i=s.value;if(i==null){if(i=s.children,s=s.defaultValue,i!=null){if(s!=null)throw Error(p$1(92));if(eb(i)){if(1<i.length)throw Error(p$1(93));i=i[0]}s=i}s==null&&(s=""),i=s}e._wrapperState={initialValue:Sa(i)}}function ib(e,s){var i=Sa(s.value),a=Sa(s.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),s.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),a!=null&&(e.defaultValue=""+a)}function jb(e){var s=e.textContent;s===e._wrapperState.initialValue&&s!==""&&s!==null&&(e.value=s)}function kb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb(e,s){return e==null||e==="http://www.w3.org/1999/xhtml"?kb(s):e==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var mb,nb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,i,a,o){MSApp.execUnsafeLocalFunction(function(){return e(s,i,a,o)})}:e}(function(e,s){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=s;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=mb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;s.firstChild;)e.appendChild(s.firstChild)}});function ob(e,s){if(s){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=s;return}}e.textContent=s}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(e){qb.forEach(function(s){s=s+e.charAt(0).toUpperCase()+e.substring(1),pb[s]=pb[e]})});function rb(e,s,i){return s==null||typeof s=="boolean"||s===""?"":i||typeof s!="number"||s===0||pb.hasOwnProperty(e)&&pb[e]?(""+s).trim():s+"px"}function sb(e,s){e=e.style;for(var i in s)if(s.hasOwnProperty(i)){var a=i.indexOf("--")===0,o=rb(i,s[i],a);i==="float"&&(i="cssFloat"),a?e.setProperty(i,o):e[i]=o}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(e,s){if(s){if(tb[e]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(p$1(137,e));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(p$1(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(p$1(61))}if(s.style!=null&&typeof s.style!="object")throw Error(p$1(62))}}function vb(e,s){if(e.indexOf("-")===-1)return typeof s.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yb=null,zb=null,Ab=null;function Bb(e){if(e=Cb(e)){if(typeof yb!="function")throw Error(p$1(280));var s=e.stateNode;s&&(s=Db(s),yb(e.stateNode,e.type,s))}}function Eb(e){zb?Ab?Ab.push(e):Ab=[e]:zb=e}function Fb(){if(zb){var e=zb,s=Ab;if(Ab=zb=null,Bb(e),s)for(e=0;e<s.length;e++)Bb(s[e])}}function Gb(e,s){return e(s)}function Hb(){}var Ib=!1;function Jb(e,s,i){if(Ib)return e(s,i);Ib=!0;try{return Gb(e,s,i)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(e,s){var i=e.stateNode;if(i===null)return null;var a=Db(i);if(a===null)return null;i=a[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(p$1(231,s,typeof i));return i}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(e,s,i,a,o,c,g,_,b){var $=Array.prototype.slice.call(arguments,3);try{s.apply(i,$)}catch(et){this.onError(et)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(e){Ob=!0,Pb=e}};function Tb(e,s,i,a,o,c,g,_,b){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(e,s,i,a,o,c,g,_,b){if(Tb.apply(this,arguments),Ob){if(Ob){var $=Pb;Ob=!1,Pb=null}else throw Error(p$1(198));Qb||(Qb=!0,Rb=$)}}function Vb(e){var s=e,i=e;if(e.alternate)for(;s.return;)s=s.return;else{e=s;do s=e,s.flags&4098&&(i=s.return),e=s.return;while(e)}return s.tag===3?i:null}function Wb(e){if(e.tag===13){var s=e.memoizedState;if(s===null&&(e=e.alternate,e!==null&&(s=e.memoizedState)),s!==null)return s.dehydrated}return null}function Xb(e){if(Vb(e)!==e)throw Error(p$1(188))}function Yb(e){var s=e.alternate;if(!s){if(s=Vb(e),s===null)throw Error(p$1(188));return s!==e?null:e}for(var i=e,a=s;;){var o=i.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){i=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===i)return Xb(o),e;if(c===a)return Xb(o),s;c=c.sibling}throw Error(p$1(188))}if(i.return!==a.return)i=o,a=c;else{for(var g=!1,_=o.child;_;){if(_===i){g=!0,i=o,a=c;break}if(_===a){g=!0,a=o,i=c;break}_=_.sibling}if(!g){for(_=c.child;_;){if(_===i){g=!0,i=c,a=o;break}if(_===a){g=!0,a=c,i=o;break}_=_.sibling}if(!g)throw Error(p$1(189))}}if(i.alternate!==a)throw Error(p$1(190))}if(i.tag!==3)throw Error(p$1(188));return i.stateNode.current===i?e:s}function Zb(e){return e=Yb(e),e!==null?$b(e):null}function $b(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var s=$b(e);if(s!==null)return s;e=e.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(e){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,e,void 0,(e.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(e){return e>>>=0,e===0?32:31-(pc(e)/qc|0)|0}var rc=64,sc=4194304;function tc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uc(e,s){var i=e.pendingLanes;if(i===0)return 0;var a=0,o=e.suspendedLanes,c=e.pingedLanes,g=i&268435455;if(g!==0){var _=g&~o;_!==0?a=tc(_):(c&=g,c!==0&&(a=tc(c)))}else g=i&~o,g!==0?a=tc(g):c!==0&&(a=tc(c));if(a===0)return 0;if(s!==0&&s!==a&&!(s&o)&&(o=a&-a,c=s&-s,o>=c||o===16&&(c&4194240)!==0))return s;if(a&4&&(a|=i&16),s=e.entangledLanes,s!==0)for(e=e.entanglements,s&=a;0<s;)i=31-oc(s),o=1<<i,a|=e[i],s&=~o;return a}function vc(e,s){switch(e){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(e,s){for(var i=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes;0<c;){var g=31-oc(c),_=1<<g,b=o[g];b===-1?(!(_&i)||_&a)&&(o[g]=vc(_,s)):b<=s&&(e.expiredLanes|=_),c&=~_}}function xc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yc(){var e=rc;return rc<<=1,!(rc&4194240)&&(rc=64),e}function zc(e){for(var s=[],i=0;31>i;i++)s.push(e);return s}function Ac(e,s,i){e.pendingLanes|=s,s!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,s=31-oc(s),e[s]=i}function Bc(e,s){var i=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<i;){var o=31-oc(i),c=1<<o;s[o]=0,a[o]=-1,e[o]=-1,i&=~c}}function Cc(e,s){var i=e.entangledLanes|=s;for(e=e.entanglements;i;){var a=31-oc(i),o=1<<a;o&s|e[a]&s&&(e[a]|=s),i&=~o}}var C=0;function Dc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(e,s){switch(e){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(s.pointerId)}}function Tc(e,s,i,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:s,domEventName:i,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},s!==null&&(s=Cb(s),s!==null&&Fc(s)),e):(e.eventSystemFlags|=a,s=e.targetContainers,o!==null&&s.indexOf(o)===-1&&s.push(o),e)}function Uc(e,s,i,a,o){switch(s){case"focusin":return Lc=Tc(Lc,e,s,i,a,o),!0;case"dragenter":return Mc=Tc(Mc,e,s,i,a,o),!0;case"mouseover":return Nc=Tc(Nc,e,s,i,a,o),!0;case"pointerover":var c=o.pointerId;return Oc.set(c,Tc(Oc.get(c)||null,e,s,i,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Pc.set(c,Tc(Pc.get(c)||null,e,s,i,a,o)),!0}return!1}function Vc(e){var s=Wc(e.target);if(s!==null){var i=Vb(s);if(i!==null){if(s=i.tag,s===13){if(s=Wb(i),s!==null){e.blockedOn=s,Ic(e.priority,function(){Gc(i)});return}}else if(s===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xc(e){if(e.blockedOn!==null)return!1;for(var s=e.targetContainers;0<s.length;){var i=Yc(e.domEventName,e.eventSystemFlags,s[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var a=new i.constructor(i.type,i);wb=a,i.target.dispatchEvent(a),wb=null}else return s=Cb(i),s!==null&&Fc(s),e.blockedOn=i,!1;s.shift()}return!0}function Zc(e,s,i){Xc(e)&&i.delete(s)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(e,s){e.blockedOn===s&&(e.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(e){function s(o){return ad(o,e)}if(0<Kc.length){ad(Kc[0],e);for(var i=1;i<Kc.length;i++){var a=Kc[i];a.blockedOn===e&&(a.blockedOn=null)}}for(Lc!==null&&ad(Lc,e),Mc!==null&&ad(Mc,e),Nc!==null&&ad(Nc,e),Oc.forEach(s),Pc.forEach(s),i=0;i<Qc.length;i++)a=Qc[i],a.blockedOn===e&&(a.blockedOn=null);for(;0<Qc.length&&(i=Qc[0],i.blockedOn===null);)Vc(i),i.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(e,s,i,a){var o=C,c=cd.transition;cd.transition=null;try{C=1,fd(e,s,i,a)}finally{C=o,cd.transition=c}}function gd(e,s,i,a){var o=C,c=cd.transition;cd.transition=null;try{C=4,fd(e,s,i,a)}finally{C=o,cd.transition=c}}function fd(e,s,i,a){if(dd){var o=Yc(e,s,i,a);if(o===null)hd(e,s,a,id,i),Sc(e,a);else if(Uc(o,e,s,i,a))a.stopPropagation();else if(Sc(e,a),s&4&&-1<Rc.indexOf(e)){for(;o!==null;){var c=Cb(o);if(c!==null&&Ec(c),c=Yc(e,s,i,a),c===null&&hd(e,s,a,id,i),c===o)break;o=c}o!==null&&a.stopPropagation()}else hd(e,s,a,null,i)}}var id=null;function Yc(e,s,i,a){if(id=null,e=xb(a),e=Wc(e),e!==null)if(s=Vb(e),s===null)e=null;else if(i=s.tag,i===13){if(e=Wb(s),e!==null)return e;e=null}else if(i===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;e=null}else s!==e&&(e=null);return id=e,null}function jd(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var e,s=ld,i=s.length,a,o="value"in kd?kd.value:kd.textContent,c=o.length;for(e=0;e<i&&s[e]===o[e];e++);var g=i-e;for(a=1;a<=g&&s[i-a]===o[c-a];a++);return md=o.slice(e,1<a?1-a:void 0)}function od(e){var s=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&s===13&&(e=13)):e=s,e===10&&(e=13),32<=e||e===13?e:0}function pd(){return!0}function qd(){return!1}function rd(e){function s(i,a,o,c,g){this._reactName=i,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(i=e[_],this[_]=i?i(c):c[_]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),s}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yd&&(yd&&e.type==="mousemove"?(wd=e.screenX-yd.screenX,xd=e.screenY-yd.screenY):xd=wd=0,yd=e),wd)},movementY:function(e){return"movementY"in e?e.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(e){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(e):(e=Od[e])?!!s[e]:!1}function zd(){return Pd}var Qd=A({},ud,{key:function(e){if(e.key){var s=Md[e.key]||e.key;if(s!=="Unidentified")return s}return e.type==="keypress"?(e=od(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(e){return e.type==="keypress"?od(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?od(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be=null;ia&&"documentMode"in document&&(be=document.documentMode);var ce=ia&&"TextEvent"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=" ",fe=!1;function ge(e,s){switch(e){case"keyup":return $d.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ie=!1;function je(e,s){switch(e){case"compositionend":return he(s);case"keypress":return s.which!==32?null:(fe=!0,ee);case"textInput":return e=s.data,e===ee&&fe?null:e;default:return null}}function ke(e,s){if(ie)return e==="compositionend"||!ae&&ge(e,s)?(e=nd(),md=ld=kd=null,ie=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return de&&s.locale!=="ko"?null:s.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(e){var s=e&&e.nodeName&&e.nodeName.toLowerCase();return s==="input"?!!le[e.type]:s==="textarea"}function ne(e,s,i,a){Eb(a),s=oe(s,"onChange"),0<s.length&&(i=new td("onChange","change",null,i,a),e.push({event:i,listeners:s}))}var pe=null,qe=null;function re(e){se(e,0)}function te(e){var s=ue(e);if(Wa(s))return e}function ve(e,s){if(e==="change")return s}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(e){if(e.propertyName==="value"&&te(qe)){var s=[];ne(s,qe,e,xb(e)),Jb(re,s)}}function Ce(e,s,i){e==="focusin"?(Ae(),pe=s,qe=i,pe.attachEvent("onpropertychange",Be)):e==="focusout"&&Ae()}function De(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return te(qe)}function Ee(e,s){if(e==="click")return te(s)}function Fe(e,s){if(e==="input"||e==="change")return te(s)}function Ge(e,s){return e===s&&(e!==0||1/e===1/s)||e!==e&&s!==s}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(e,s){if(He(e,s))return!0;if(typeof e!="object"||e===null||typeof s!="object"||s===null)return!1;var i=Object.keys(e),a=Object.keys(s);if(i.length!==a.length)return!1;for(a=0;a<i.length;a++){var o=i[a];if(!ja.call(s,o)||!He(e[o],s[o]))return!1}return!0}function Je(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ke(e,s){var i=Je(e);e=0;for(var a;i;){if(i.nodeType===3){if(a=e+i.textContent.length,e<=s&&a>=s)return{node:i,offset:s-e};e=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Je(i)}}function Le(e,s){return e&&s?e===s?!0:e&&e.nodeType===3?!1:s&&s.nodeType===3?Le(e,s.parentNode):"contains"in e?e.contains(s):e.compareDocumentPosition?!!(e.compareDocumentPosition(s)&16):!1:!1}function Me(){for(var e=window,s=Xa();s instanceof e.HTMLIFrameElement;){try{var i=typeof s.contentWindow.location.href=="string"}catch{i=!1}if(i)e=s.contentWindow;else break;s=Xa(e.document)}return s}function Ne(e){var s=e&&e.nodeName&&e.nodeName.toLowerCase();return s&&(s==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||s==="textarea"||e.contentEditable==="true")}function Oe(e){var s=Me(),i=e.focusedElem,a=e.selectionRange;if(s!==i&&i&&i.ownerDocument&&Le(i.ownerDocument.documentElement,i)){if(a!==null&&Ne(i)){if(s=a.start,e=a.end,e===void 0&&(e=s),"selectionStart"in i)i.selectionStart=s,i.selectionEnd=Math.min(e,i.value.length);else if(e=(s=i.ownerDocument||document)&&s.defaultView||window,e.getSelection){e=e.getSelection();var o=i.textContent.length,c=Math.min(a.start,o);a=a.end===void 0?c:Math.min(a.end,o),!e.extend&&c>a&&(o=a,a=c,c=o),o=Ke(i,c);var g=Ke(i,a);o&&g&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(s=s.createRange(),s.setStart(o.node,o.offset),e.removeAllRanges(),c>a?(e.addRange(s),e.extend(g.node,g.offset)):(s.setEnd(g.node,g.offset),e.addRange(s)))}}for(s=[],e=i;e=e.parentNode;)e.nodeType===1&&s.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<s.length;i++)e=s[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(e,s,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Te||Qe==null||Qe!==Xa(a)||(a=Qe,"selectionStart"in a&&Ne(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Se&&Ie(Se,a)||(Se=a,a=oe(Re,"onSelect"),0<a.length&&(s=new td("onSelect","select",null,s,i),e.push({event:s,listeners:a}),s.target=Qe)))}function Ve(e,s){var i={};return i[e.toLowerCase()]=s.toLowerCase(),i["Webkit"+e]="webkit"+s,i["Moz"+e]="moz"+s,i}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(e){if(Xe[e])return Xe[e];if(!We[e])return e;var s=We[e],i;for(i in s)if(s.hasOwnProperty(i)&&i in Ye)return Xe[e]=s[i];return e}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(e,s){df.set(e,s),fa(s,[e])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(e,s,i){var a=e.type||"unknown-event";e.currentTarget=i,Ub(a,s,void 0,e),e.currentTarget=null}function se(e,s){s=(s&4)!==0;for(var i=0;i<e.length;i++){var a=e[i],o=a.event;a=a.listeners;e:{var c=void 0;if(s)for(var g=a.length-1;0<=g;g--){var _=a[g],b=_.instance,$=_.currentTarget;if(_=_.listener,b!==c&&o.isPropagationStopped())break e;nf(o,_,$),c=b}else for(g=0;g<a.length;g++){if(_=a[g],b=_.instance,$=_.currentTarget,_=_.listener,b!==c&&o.isPropagationStopped())break e;nf(o,_,$),c=b}}}if(Qb)throw e=Rb,Qb=!1,Rb=null,e}function D(e,s){var i=s[of];i===void 0&&(i=s[of]=new Set);var a=e+"__bubble";i.has(a)||(pf(s,e,2,!1),i.add(a))}function qf(e,s,i){var a=0;s&&(a|=4),pf(i,e,a,s)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(e){if(!e[rf]){e[rf]=!0,da.forEach(function(i){i!=="selectionchange"&&(mf.has(i)||qf(i,!1,e),qf(i,!0,e))});var s=e.nodeType===9?e:e.ownerDocument;s===null||s[rf]||(s[rf]=!0,qf("selectionchange",!1,s))}}function pf(e,s,i,a){switch(jd(s)){case 1:var o=ed;break;case 4:o=gd;break;default:o=fd}i=o.bind(null,s,i,e),o=void 0,!Lb||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(s,i,{capture:!0,passive:o}):e.addEventListener(s,i,!0):o!==void 0?e.addEventListener(s,i,{passive:o}):e.addEventListener(s,i,!1)}function hd(e,s,i,a,o){var c=a;if(!(s&1)&&!(s&2)&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var _=a.stateNode.containerInfo;if(_===o||_.nodeType===8&&_.parentNode===o)break;if(g===4)for(g=a.return;g!==null;){var b=g.tag;if((b===3||b===4)&&(b=g.stateNode.containerInfo,b===o||b.nodeType===8&&b.parentNode===o))return;g=g.return}for(;_!==null;){if(g=Wc(_),g===null)return;if(b=g.tag,b===5||b===6){a=c=g;continue e}_=_.parentNode}}a=a.return}Jb(function(){var $=c,et=xb(i),ot=[];e:{var rt=df.get(e);if(rt!==void 0){var at=td,it=e;switch(e){case"keypress":if(od(i)===0)break e;case"keydown":case"keyup":at=Rd;break;case"focusin":it="focus",at=Fd;break;case"focusout":it="blur",at=Fd;break;case"beforeblur":case"afterblur":at=Fd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":at=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":at=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":at=Vd;break;case $e:case af:case bf:at=Hd;break;case cf:at=Xd;break;case"scroll":at=vd;break;case"wheel":at=Zd;break;case"copy":case"cut":case"paste":at=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":at=Td}var nt=(s&4)!==0,dt=!nt&&e==="scroll",_e=nt?rt!==null?rt+"Capture":null:rt;nt=[];for(var tt=$,j;tt!==null;){j=tt;var st=j.stateNode;if(j.tag===5&&st!==null&&(j=st,_e!==null&&(st=Kb(tt,_e),st!=null&&nt.push(tf(tt,st,j)))),dt)break;tt=tt.return}0<nt.length&&(rt=new at(rt,it,null,i,et),ot.push({event:rt,listeners:nt}))}}if(!(s&7)){e:{if(rt=e==="mouseover"||e==="pointerover",at=e==="mouseout"||e==="pointerout",rt&&i!==wb&&(it=i.relatedTarget||i.fromElement)&&(Wc(it)||it[uf]))break e;if((at||rt)&&(rt=et.window===et?et:(rt=et.ownerDocument)?rt.defaultView||rt.parentWindow:window,at?(it=i.relatedTarget||i.toElement,at=$,it=it?Wc(it):null,it!==null&&(dt=Vb(it),it!==dt||it.tag!==5&&it.tag!==6)&&(it=null)):(at=null,it=$),at!==it)){if(nt=Bd,st="onMouseLeave",_e="onMouseEnter",tt="mouse",(e==="pointerout"||e==="pointerover")&&(nt=Td,st="onPointerLeave",_e="onPointerEnter",tt="pointer"),dt=at==null?rt:ue(at),j=it==null?rt:ue(it),rt=new nt(st,tt+"leave",at,i,et),rt.target=dt,rt.relatedTarget=j,st=null,Wc(et)===$&&(nt=new nt(_e,tt+"enter",it,i,et),nt.target=j,nt.relatedTarget=dt,st=nt),dt=st,at&&it)t:{for(nt=at,_e=it,tt=0,j=nt;j;j=vf(j))tt++;for(j=0,st=_e;st;st=vf(st))j++;for(;0<tt-j;)nt=vf(nt),tt--;for(;0<j-tt;)_e=vf(_e),j--;for(;tt--;){if(nt===_e||_e!==null&&nt===_e.alternate)break t;nt=vf(nt),_e=vf(_e)}nt=null}else nt=null;at!==null&&wf(ot,rt,at,nt,!1),it!==null&&dt!==null&&wf(ot,dt,it,nt,!0)}}e:{if(rt=$?ue($):window,at=rt.nodeName&&rt.nodeName.toLowerCase(),at==="select"||at==="input"&&rt.type==="file")var ut=ve;else if(me(rt))if(we)ut=Fe;else{ut=De;var ct=Ce}else(at=rt.nodeName)&&at.toLowerCase()==="input"&&(rt.type==="checkbox"||rt.type==="radio")&&(ut=Ee);if(ut&&(ut=ut(e,$))){ne(ot,ut,i,et);break e}ct&&ct(e,rt,$),e==="focusout"&&(ct=rt._wrapperState)&&ct.controlled&&rt.type==="number"&&cb(rt,"number",rt.value)}switch(ct=$?ue($):window,e){case"focusin":(me(ct)||ct.contentEditable==="true")&&(Qe=ct,Re=$,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(ot,i,et);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(ot,i,et)}var gt;if(ae)e:{switch(e){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else ie?ge(e,i)&&(mt="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(mt="onCompositionStart");mt&&(de&&i.locale!=="ko"&&(ie||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&ie&&(gt=nd()):(kd=et,ld="value"in kd?kd.value:kd.textContent,ie=!0)),ct=oe($,mt),0<ct.length&&(mt=new Ld(mt,e,null,i,et),ot.push({event:mt,listeners:ct}),gt?mt.data=gt:(gt=he(i),gt!==null&&(mt.data=gt)))),(gt=ce?je(e,i):ke(e,i))&&($=oe($,"onBeforeInput"),0<$.length&&(et=new Ld("onBeforeInput","beforeinput",null,i,et),ot.push({event:et,listeners:$}),et.data=gt))}se(ot,s)})}function tf(e,s,i){return{instance:e,listener:s,currentTarget:i}}function oe(e,s){for(var i=s+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;o.tag===5&&c!==null&&(o=c,c=Kb(e,i),c!=null&&a.unshift(tf(e,c,o)),c=Kb(e,s),c!=null&&a.push(tf(e,c,o))),e=e.return}return a}function vf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wf(e,s,i,a,o){for(var c=s._reactName,g=[];i!==null&&i!==a;){var _=i,b=_.alternate,$=_.stateNode;if(b!==null&&b===a)break;_.tag===5&&$!==null&&(_=$,o?(b=Kb(i,c),b!=null&&g.unshift(tf(i,b,_))):o||(b=Kb(i,c),b!=null&&g.push(tf(i,b,_)))),i=i.return}g.length!==0&&e.push({event:s,listeners:g})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(e){return(typeof e=="string"?e:""+e).replace(xf,`
38
- `).replace(yf,"")}function Af(e,s,i){if(s=zf(s),zf(e)!==s&&i)throw Error(p$1(425))}function Bf(){}var Cf=null,Df=null;function Ef(e,s){return e==="textarea"||e==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(e){return Hf.resolve(null).then(e).catch(If)}:Ff;function If(e){setTimeout(function(){throw e})}function Kf(e,s){var i=s,a=0;do{var o=i.nextSibling;if(e.removeChild(i),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(a===0){e.removeChild(o),bd(s);return}a--}else i!=="$"&&i!=="$?"&&i!=="$!"||a++;i=o}while(i);bd(s)}function Lf(e){for(;e!=null;e=e.nextSibling){var s=e.nodeType;if(s===1||s===3)break;if(s===8){if(s=e.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return e}function Mf(e){e=e.previousSibling;for(var s=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(s===0)return e;s--}else i==="/$"&&s++}e=e.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(e){var s=e[Of];if(s)return s;for(var i=e.parentNode;i;){if(s=i[uf]||i[Of]){if(i=s.alternate,s.child!==null||i!==null&&i.child!==null)for(e=Mf(e);e!==null;){if(i=e[Of])return i;e=Mf(e)}return s}e=i,i=e.parentNode}return null}function Cb(e){return e=e[Of]||e[uf],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ue(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(p$1(33))}function Db(e){return e[Pf]||null}var Sf=[],Tf=-1;function Uf(e){return{current:e}}function E(e){0>Tf||(e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(e,s){Tf++,Sf[Tf]=e.current,e.current=s}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(e,s){var i=e.type.contextTypes;if(!i)return Vf;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===s)return a.__reactInternalMemoizedMaskedChildContext;var o={},c;for(c in i)o[c]=s[c];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),o}function Zf(e){return e=e.childContextTypes,e!=null}function $f(){E(Wf),E(H)}function ag(e,s,i){if(H.current!==Vf)throw Error(p$1(168));G(H,s),G(Wf,i)}function bg(e,s,i){var a=e.stateNode;if(s=s.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var o in a)if(!(o in s))throw Error(p$1(108,Ra(e)||"Unknown",o));return A({},i,a)}function cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,e),G(Wf,Wf.current),!0}function dg(e,s,i){var a=e.stateNode;if(!a)throw Error(p$1(169));i?(e=bg(e,s,Xf),a.__reactInternalMemoizedMergedChildContext=e,E(Wf),E(H),G(H,e)):E(Wf),G(Wf,i)}var eg=null,fg=!1,gg=!1;function hg(e){eg===null?eg=[e]:eg.push(e)}function ig(e){fg=!0,hg(e)}function jg(){if(!gg&&eg!==null){gg=!0;var e=0,s=C;try{var i=eg;for(C=1;e<i.length;e++){var a=i[e];do a=a(!0);while(a!==null)}eg=null,fg=!1}catch(o){throw eg!==null&&(eg=eg.slice(e+1)),ac(fc,jg),o}finally{C=s,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(e,s){kg[lg++]=ng,kg[lg++]=mg,mg=e,ng=s}function ug(e,s,i){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=e;var a=rg;e=sg;var o=32-oc(a)-1;a&=~(1<<o),i+=1;var c=32-oc(s)+o;if(30<c){var g=o-o%5;c=(a&(1<<g)-1).toString(32),a>>=g,o-=g,rg=1<<32-oc(s)+o|i<<o|a,sg=c+e}else rg=1<<c|i<<o|a,sg=e}function vg(e){e.return!==null&&(tg(e,1),ug(e,1,0))}function wg(e){for(;e===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;e===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(e,s){var i=Bg(5,null,null,0);i.elementType="DELETED",i.stateNode=s,i.return=e,s=e.deletions,s===null?(e.deletions=[i],e.flags|=16):s.push(i)}function Cg(e,s){switch(e.tag){case 5:var i=e.type;return s=s.nodeType!==1||i.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(e.stateNode=s,xg=e,yg=Lf(s.firstChild),!0):!1;case 6:return s=e.pendingProps===""||s.nodeType!==3?null:s,s!==null?(e.stateNode=s,xg=e,yg=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(i=qg!==null?{id:rg,overflow:sg}:null,e.memoizedState={dehydrated:s,treeContext:i,retryLane:1073741824},i=Bg(18,null,null,0),i.stateNode=s,i.return=e,e.child=i,xg=e,yg=null,!0):!1;default:return!1}}function Dg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Eg(e){if(I){var s=yg;if(s){var i=s;if(!Cg(e,s)){if(Dg(e))throw Error(p$1(418));s=Lf(i.nextSibling);var a=xg;s&&Cg(e,s)?Ag(a,i):(e.flags=e.flags&-4097|2,I=!1,xg=e)}}else{if(Dg(e))throw Error(p$1(418));e.flags=e.flags&-4097|2,I=!1,xg=e}}}function Fg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xg=e}function Gg(e){if(e!==xg)return!1;if(!I)return Fg(e),I=!0,!1;var s;if((s=e.tag!==3)&&!(s=e.tag!==5)&&(s=e.type,s=s!=="head"&&s!=="body"&&!Ef(e.type,e.memoizedProps)),s&&(s=yg)){if(Dg(e))throw Hg(),Error(p$1(418));for(;s;)Ag(e,s),s=Lf(s.nextSibling)}if(Fg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(p$1(317));e:{for(e=e.nextSibling,s=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(s===0){yg=Lf(e.nextSibling);break e}s--}else i!=="$"&&i!=="$!"&&i!=="$?"||s++}e=e.nextSibling}yg=null}}else yg=xg?Lf(e.stateNode.nextSibling):null;return!0}function Hg(){for(var e=yg;e;)e=Lf(e.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(e){zg===null?zg=[e]:zg.push(e)}var Kg=ua.ReactCurrentBatchConfig;function Lg(e,s,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(p$1(309));var a=i.stateNode}if(!a)throw Error(p$1(147,e));var o=a,c=""+e;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===c?s.ref:(s=function(g){var _=o.refs;g===null?delete _[c]:_[c]=g},s._stringRef=c,s)}if(typeof e!="string")throw Error(p$1(284));if(!i._owner)throw Error(p$1(290,e))}return e}function Mg(e,s){throw e=Object.prototype.toString.call(s),Error(p$1(31,e==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":e))}function Ng(e){var s=e._init;return s(e._payload)}function Og(e){function s(_e,tt){if(e){var j=_e.deletions;j===null?(_e.deletions=[tt],_e.flags|=16):j.push(tt)}}function i(_e,tt){if(!e)return null;for(;tt!==null;)s(_e,tt),tt=tt.sibling;return null}function a(_e,tt){for(_e=new Map;tt!==null;)tt.key!==null?_e.set(tt.key,tt):_e.set(tt.index,tt),tt=tt.sibling;return _e}function o(_e,tt){return _e=Pg(_e,tt),_e.index=0,_e.sibling=null,_e}function c(_e,tt,j){return _e.index=j,e?(j=_e.alternate,j!==null?(j=j.index,j<tt?(_e.flags|=2,tt):j):(_e.flags|=2,tt)):(_e.flags|=1048576,tt)}function g(_e){return e&&_e.alternate===null&&(_e.flags|=2),_e}function _(_e,tt,j,st){return tt===null||tt.tag!==6?(tt=Qg(j,_e.mode,st),tt.return=_e,tt):(tt=o(tt,j),tt.return=_e,tt)}function b(_e,tt,j,st){var ut=j.type;return ut===ya?et(_e,tt,j.props.children,st,j.key):tt!==null&&(tt.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===Ha&&Ng(ut)===tt.type)?(st=o(tt,j.props),st.ref=Lg(_e,tt,j),st.return=_e,st):(st=Rg(j.type,j.key,j.props,null,_e.mode,st),st.ref=Lg(_e,tt,j),st.return=_e,st)}function $(_e,tt,j,st){return tt===null||tt.tag!==4||tt.stateNode.containerInfo!==j.containerInfo||tt.stateNode.implementation!==j.implementation?(tt=Sg(j,_e.mode,st),tt.return=_e,tt):(tt=o(tt,j.children||[]),tt.return=_e,tt)}function et(_e,tt,j,st,ut){return tt===null||tt.tag!==7?(tt=Tg(j,_e.mode,st,ut),tt.return=_e,tt):(tt=o(tt,j),tt.return=_e,tt)}function ot(_e,tt,j){if(typeof tt=="string"&&tt!==""||typeof tt=="number")return tt=Qg(""+tt,_e.mode,j),tt.return=_e,tt;if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case va:return j=Rg(tt.type,tt.key,tt.props,null,_e.mode,j),j.ref=Lg(_e,null,tt),j.return=_e,j;case wa:return tt=Sg(tt,_e.mode,j),tt.return=_e,tt;case Ha:var st=tt._init;return ot(_e,st(tt._payload),j)}if(eb(tt)||Ka(tt))return tt=Tg(tt,_e.mode,j,null),tt.return=_e,tt;Mg(_e,tt)}return null}function rt(_e,tt,j,st){var ut=tt!==null?tt.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return ut!==null?null:_(_e,tt,""+j,st);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case va:return j.key===ut?b(_e,tt,j,st):null;case wa:return j.key===ut?$(_e,tt,j,st):null;case Ha:return ut=j._init,rt(_e,tt,ut(j._payload),st)}if(eb(j)||Ka(j))return ut!==null?null:et(_e,tt,j,st,null);Mg(_e,j)}return null}function at(_e,tt,j,st,ut){if(typeof st=="string"&&st!==""||typeof st=="number")return _e=_e.get(j)||null,_(tt,_e,""+st,ut);if(typeof st=="object"&&st!==null){switch(st.$$typeof){case va:return _e=_e.get(st.key===null?j:st.key)||null,b(tt,_e,st,ut);case wa:return _e=_e.get(st.key===null?j:st.key)||null,$(tt,_e,st,ut);case Ha:var ct=st._init;return at(_e,tt,j,ct(st._payload),ut)}if(eb(st)||Ka(st))return _e=_e.get(j)||null,et(tt,_e,st,ut,null);Mg(tt,st)}return null}function it(_e,tt,j,st){for(var ut=null,ct=null,gt=tt,mt=tt=0,_t=null;gt!==null&&mt<j.length;mt++){gt.index>mt?(_t=gt,gt=null):_t=gt.sibling;var kt=rt(_e,gt,j[mt],st);if(kt===null){gt===null&&(gt=_t);break}e&&gt&&kt.alternate===null&&s(_e,gt),tt=c(kt,tt,mt),ct===null?ut=kt:ct.sibling=kt,ct=kt,gt=_t}if(mt===j.length)return i(_e,gt),I&&tg(_e,mt),ut;if(gt===null){for(;mt<j.length;mt++)gt=ot(_e,j[mt],st),gt!==null&&(tt=c(gt,tt,mt),ct===null?ut=gt:ct.sibling=gt,ct=gt);return I&&tg(_e,mt),ut}for(gt=a(_e,gt);mt<j.length;mt++)_t=at(gt,_e,mt,j[mt],st),_t!==null&&(e&&_t.alternate!==null&&gt.delete(_t.key===null?mt:_t.key),tt=c(_t,tt,mt),ct===null?ut=_t:ct.sibling=_t,ct=_t);return e&&gt.forEach(function(wt){return s(_e,wt)}),I&&tg(_e,mt),ut}function nt(_e,tt,j,st){var ut=Ka(j);if(typeof ut!="function")throw Error(p$1(150));if(j=ut.call(j),j==null)throw Error(p$1(151));for(var ct=ut=null,gt=tt,mt=tt=0,_t=null,kt=j.next();gt!==null&&!kt.done;mt++,kt=j.next()){gt.index>mt?(_t=gt,gt=null):_t=gt.sibling;var wt=rt(_e,gt,kt.value,st);if(wt===null){gt===null&&(gt=_t);break}e&&gt&&wt.alternate===null&&s(_e,gt),tt=c(wt,tt,mt),ct===null?ut=wt:ct.sibling=wt,ct=wt,gt=_t}if(kt.done)return i(_e,gt),I&&tg(_e,mt),ut;if(gt===null){for(;!kt.done;mt++,kt=j.next())kt=ot(_e,kt.value,st),kt!==null&&(tt=c(kt,tt,mt),ct===null?ut=kt:ct.sibling=kt,ct=kt);return I&&tg(_e,mt),ut}for(gt=a(_e,gt);!kt.done;mt++,kt=j.next())kt=at(gt,_e,mt,kt.value,st),kt!==null&&(e&&kt.alternate!==null&&gt.delete(kt.key===null?mt:kt.key),tt=c(kt,tt,mt),ct===null?ut=kt:ct.sibling=kt,ct=kt);return e&&gt.forEach(function(St){return s(_e,St)}),I&&tg(_e,mt),ut}function dt(_e,tt,j,st){if(typeof j=="object"&&j!==null&&j.type===ya&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case va:e:{for(var ut=j.key,ct=tt;ct!==null;){if(ct.key===ut){if(ut=j.type,ut===ya){if(ct.tag===7){i(_e,ct.sibling),tt=o(ct,j.props.children),tt.return=_e,_e=tt;break e}}else if(ct.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===Ha&&Ng(ut)===ct.type){i(_e,ct.sibling),tt=o(ct,j.props),tt.ref=Lg(_e,ct,j),tt.return=_e,_e=tt;break e}i(_e,ct);break}else s(_e,ct);ct=ct.sibling}j.type===ya?(tt=Tg(j.props.children,_e.mode,st,j.key),tt.return=_e,_e=tt):(st=Rg(j.type,j.key,j.props,null,_e.mode,st),st.ref=Lg(_e,tt,j),st.return=_e,_e=st)}return g(_e);case wa:e:{for(ct=j.key;tt!==null;){if(tt.key===ct)if(tt.tag===4&&tt.stateNode.containerInfo===j.containerInfo&&tt.stateNode.implementation===j.implementation){i(_e,tt.sibling),tt=o(tt,j.children||[]),tt.return=_e,_e=tt;break e}else{i(_e,tt);break}else s(_e,tt);tt=tt.sibling}tt=Sg(j,_e.mode,st),tt.return=_e,_e=tt}return g(_e);case Ha:return ct=j._init,dt(_e,tt,ct(j._payload),st)}if(eb(j))return it(_e,tt,j,st);if(Ka(j))return nt(_e,tt,j,st);Mg(_e,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,tt!==null&&tt.tag===6?(i(_e,tt.sibling),tt=o(tt,j),tt.return=_e,_e=tt):(i(_e,tt),tt=Qg(j,_e.mode,st),tt.return=_e,_e=tt),g(_e)):i(_e,tt)}return dt}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(e){var s=Wg.current;E(Wg),e._currentValue=s}function bh(e,s,i){for(;e!==null;){var a=e.alternate;if((e.childLanes&s)!==s?(e.childLanes|=s,a!==null&&(a.childLanes|=s)):a!==null&&(a.childLanes&s)!==s&&(a.childLanes|=s),e===i)break;e=e.return}}function ch(e,s){Xg=e,Zg=Yg=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&s&&(dh=!0),e.firstContext=null)}function eh(e){var s=e._currentValue;if(Zg!==e)if(e={context:e,memoizedValue:s,next:null},Yg===null){if(Xg===null)throw Error(p$1(308));Yg=e,Xg.dependencies={lanes:0,firstContext:e}}else Yg=Yg.next=e;return s}var fh=null;function gh(e){fh===null?fh=[e]:fh.push(e)}function hh(e,s,i,a){var o=s.interleaved;return o===null?(i.next=i,gh(s)):(i.next=o.next,o.next=i),s.interleaved=i,ih(e,a)}function ih(e,s){e.lanes|=s;var i=e.alternate;for(i!==null&&(i.lanes|=s),i=e,e=e.return;e!==null;)e.childLanes|=s,i=e.alternate,i!==null&&(i.childLanes|=s),i=e,e=e.return;return i.tag===3?i.stateNode:null}var jh=!1;function kh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(e,s){e=e.updateQueue,s.updateQueue===e&&(s.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mh(e,s){return{eventTime:e,lane:s,tag:0,payload:null,callback:null,next:null}}function nh(e,s,i){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,K&2){var o=a.pending;return o===null?s.next=s:(s.next=o.next,o.next=s),a.pending=s,ih(e,i)}return o=a.interleaved,o===null?(s.next=s,gh(a)):(s.next=o.next,o.next=s),a.interleaved=s,ih(e,i)}function oh(e,s,i){if(s=s.updateQueue,s!==null&&(s=s.shared,(i&4194240)!==0)){var a=s.lanes;a&=e.pendingLanes,i|=a,s.lanes=i,Cc(e,i)}}function ph(e,s){var i=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var o=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var g={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};c===null?o=c=g:c=c.next=g,i=i.next}while(i!==null);c===null?o=c=s:c=c.next=s}else o=c=s;i={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,effects:a.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=s:e.next=s,i.lastBaseUpdate=s}function qh(e,s,i,a){var o=e.updateQueue;jh=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var b=_,$=b.next;b.next=null,g===null?c=$:g.next=$,g=b;var et=e.alternate;et!==null&&(et=et.updateQueue,_=et.lastBaseUpdate,_!==g&&(_===null?et.firstBaseUpdate=$:_.next=$,et.lastBaseUpdate=b))}if(c!==null){var ot=o.baseState;g=0,et=$=b=null,_=c;do{var rt=_.lane,at=_.eventTime;if((a&rt)===rt){et!==null&&(et=et.next={eventTime:at,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var it=e,nt=_;switch(rt=s,at=i,nt.tag){case 1:if(it=nt.payload,typeof it=="function"){ot=it.call(at,ot,rt);break e}ot=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=nt.payload,rt=typeof it=="function"?it.call(at,ot,rt):it,rt==null)break e;ot=A({},ot,rt);break e;case 2:jh=!0}}_.callback!==null&&_.lane!==0&&(e.flags|=64,rt=o.effects,rt===null?o.effects=[_]:rt.push(_))}else at={eventTime:at,lane:rt,tag:_.tag,payload:_.payload,callback:_.callback,next:null},et===null?($=et=at,b=ot):et=et.next=at,g|=rt;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;rt=_,_=rt.next,rt.next=null,o.lastBaseUpdate=rt,o.shared.pending=null}}while(!0);if(et===null&&(b=ot),o.baseState=b,o.firstBaseUpdate=$,o.lastBaseUpdate=et,s=o.shared.interleaved,s!==null){o=s;do g|=o.lane,o=o.next;while(o!==s)}else c===null&&(o.shared.lanes=0);rh|=g,e.lanes=g,e.memoizedState=ot}}function sh(e,s,i){if(e=s.effects,s.effects=null,e!==null)for(s=0;s<e.length;s++){var a=e[s],o=a.callback;if(o!==null){if(a.callback=null,a=i,typeof o!="function")throw Error(p$1(191,o));o.call(a)}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh(e){if(e===th)throw Error(p$1(174));return e}function yh(e,s){switch(G(wh,s),G(vh,e),G(uh,th),e=s.nodeType,e){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:lb(null,"");break;default:e=e===8?s.parentNode:s,s=e.namespaceURI||null,e=e.tagName,s=lb(s,e)}E(uh),G(uh,s)}function zh(){E(uh),E(vh),E(wh)}function Ah(e){xh(wh.current);var s=xh(uh.current),i=lb(s,e.type);s!==i&&(G(vh,e),G(uh,i))}function Bh(e){vh.current===e&&(E(uh),E(vh))}var L=Uf(0);function Ch(e){for(var s=e;s!==null;){if(s.tag===13){var i=s.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break;for(;s.sibling===null;){if(s.return===null||s.return===e)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Dh=[];function Eh(){for(var e=0;e<Dh.length;e++)Dh[e]._workInProgressVersionPrimary=null;Dh.length=0}var Fh=ua.ReactCurrentDispatcher,Gh=ua.ReactCurrentBatchConfig,Hh=0,M=null,N=null,O=null,Ih=!1,Jh=!1,Kh=0,Lh=0;function P(){throw Error(p$1(321))}function Mh(e,s){if(s===null)return!1;for(var i=0;i<s.length&&i<e.length;i++)if(!He(e[i],s[i]))return!1;return!0}function Nh(e,s,i,a,o,c){if(Hh=c,M=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Fh.current=e===null||e.memoizedState===null?Oh:Ph,e=i(a,o),Jh){c=0;do{if(Jh=!1,Kh=0,25<=c)throw Error(p$1(301));c+=1,O=N=null,s.updateQueue=null,Fh.current=Qh,e=i(a,o)}while(Jh)}if(Fh.current=Rh,s=N!==null&&N.next!==null,Hh=0,O=N=M=null,Ih=!1,s)throw Error(p$1(300));return e}function Sh(){var e=Kh!==0;return Kh=0,e}function Th(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return O===null?M.memoizedState=O=e:O=O.next=e,O}function Uh(){if(N===null){var e=M.alternate;e=e!==null?e.memoizedState:null}else e=N.next;var s=O===null?M.memoizedState:O.next;if(s!==null)O=s,N=e;else{if(e===null)throw Error(p$1(310));N=e,e={memoizedState:N.memoizedState,baseState:N.baseState,baseQueue:N.baseQueue,queue:N.queue,next:null},O===null?M.memoizedState=O=e:O=O.next=e}return O}function Vh(e,s){return typeof s=="function"?s(e):s}function Wh(e){var s=Uh(),i=s.queue;if(i===null)throw Error(p$1(311));i.lastRenderedReducer=e;var a=N,o=a.baseQueue,c=i.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}a.baseQueue=o=c,i.pending=null}if(o!==null){c=o.next,a=a.baseState;var _=g=null,b=null,$=c;do{var et=$.lane;if((Hh&et)===et)b!==null&&(b=b.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),a=$.hasEagerState?$.eagerState:e(a,$.action);else{var ot={lane:et,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};b===null?(_=b=ot,g=a):b=b.next=ot,M.lanes|=et,rh|=et}$=$.next}while($!==null&&$!==c);b===null?g=a:b.next=_,He(a,s.memoizedState)||(dh=!0),s.memoizedState=a,s.baseState=g,s.baseQueue=b,i.lastRenderedState=a}if(e=i.interleaved,e!==null){o=e;do c=o.lane,M.lanes|=c,rh|=c,o=o.next;while(o!==e)}else o===null&&(i.lanes=0);return[s.memoizedState,i.dispatch]}function Xh(e){var s=Uh(),i=s.queue;if(i===null)throw Error(p$1(311));i.lastRenderedReducer=e;var a=i.dispatch,o=i.pending,c=s.memoizedState;if(o!==null){i.pending=null;var g=o=o.next;do c=e(c,g.action),g=g.next;while(g!==o);He(c,s.memoizedState)||(dh=!0),s.memoizedState=c,s.baseQueue===null&&(s.baseState=c),i.lastRenderedState=c}return[c,a]}function Yh(){}function Zh(e,s){var i=M,a=Uh(),o=s(),c=!He(a.memoizedState,o);if(c&&(a.memoizedState=o,dh=!0),a=a.queue,$h(ai.bind(null,i,a,e),[e]),a.getSnapshot!==s||c||O!==null&&O.memoizedState.tag&1){if(i.flags|=2048,bi(9,ci.bind(null,i,a,o,s),void 0,null),Q===null)throw Error(p$1(349));Hh&30||di(i,s,o)}return o}function di(e,s,i){e.flags|=16384,e={getSnapshot:s,value:i},s=M.updateQueue,s===null?(s={lastEffect:null,stores:null},M.updateQueue=s,s.stores=[e]):(i=s.stores,i===null?s.stores=[e]:i.push(e))}function ci(e,s,i,a){s.value=i,s.getSnapshot=a,ei(s)&&fi(e)}function ai(e,s,i){return i(function(){ei(s)&&fi(e)})}function ei(e){var s=e.getSnapshot;e=e.value;try{var i=s();return!He(e,i)}catch{return!0}}function fi(e){var s=ih(e,1);s!==null&&gi(s,e,1,-1)}function hi(e){var s=Th();return typeof e=="function"&&(e=e()),s.memoizedState=s.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:e},s.queue=e,e=e.dispatch=ii.bind(null,M,e),[s.memoizedState,e]}function bi(e,s,i,a){return e={tag:e,create:s,destroy:i,deps:a,next:null},s=M.updateQueue,s===null?(s={lastEffect:null,stores:null},M.updateQueue=s,s.lastEffect=e.next=e):(i=s.lastEffect,i===null?s.lastEffect=e.next=e:(a=i.next,i.next=e,e.next=a,s.lastEffect=e)),e}function ji(){return Uh().memoizedState}function ki(e,s,i,a){var o=Th();M.flags|=e,o.memoizedState=bi(1|s,i,void 0,a===void 0?null:a)}function li(e,s,i,a){var o=Uh();a=a===void 0?null:a;var c=void 0;if(N!==null){var g=N.memoizedState;if(c=g.destroy,a!==null&&Mh(a,g.deps)){o.memoizedState=bi(s,i,c,a);return}}M.flags|=e,o.memoizedState=bi(1|s,i,c,a)}function mi(e,s){return ki(8390656,8,e,s)}function $h(e,s){return li(2048,8,e,s)}function ni(e,s){return li(4,2,e,s)}function oi(e,s){return li(4,4,e,s)}function pi(e,s){if(typeof s=="function")return e=e(),s(e),function(){s(null)};if(s!=null)return e=e(),s.current=e,function(){s.current=null}}function qi(e,s,i){return i=i!=null?i.concat([e]):null,li(4,4,pi.bind(null,s,e),i)}function ri(){}function si(e,s){var i=Uh();s=s===void 0?null:s;var a=i.memoizedState;return a!==null&&s!==null&&Mh(s,a[1])?a[0]:(i.memoizedState=[e,s],e)}function ti(e,s){var i=Uh();s=s===void 0?null:s;var a=i.memoizedState;return a!==null&&s!==null&&Mh(s,a[1])?a[0]:(e=e(),i.memoizedState=[e,s],e)}function ui(e,s,i){return Hh&21?(He(i,s)||(i=yc(),M.lanes|=i,rh|=i,e.baseState=!0),s):(e.baseState&&(e.baseState=!1,dh=!0),e.memoizedState=i)}function vi(e,s){var i=C;C=i!==0&&4>i?i:4,e(!0);var a=Gh.transition;Gh.transition={};try{e(!1),s()}finally{C=i,Gh.transition=a}}function wi(){return Uh().memoizedState}function xi(e,s,i){var a=yi(e);if(i={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null},zi(e))Ai(s,i);else if(i=hh(e,s,i,a),i!==null){var o=R();gi(i,e,a,o),Bi(i,s,a)}}function ii(e,s,i){var a=yi(e),o={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null};if(zi(e))Ai(s,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=s.lastRenderedReducer,c!==null))try{var g=s.lastRenderedState,_=c(g,i);if(o.hasEagerState=!0,o.eagerState=_,He(_,g)){var b=s.interleaved;b===null?(o.next=o,gh(s)):(o.next=b.next,b.next=o),s.interleaved=o;return}}catch{}finally{}i=hh(e,s,o,a),i!==null&&(o=R(),gi(i,e,a,o),Bi(i,s,a))}}function zi(e){var s=e.alternate;return e===M||s!==null&&s===M}function Ai(e,s){Jh=Ih=!0;var i=e.pending;i===null?s.next=s:(s.next=i.next,i.next=s),e.pending=s}function Bi(e,s,i){if(i&4194240){var a=s.lanes;a&=e.pendingLanes,i|=a,s.lanes=i,Cc(e,i)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(e,s){return Th().memoizedState=[e,s===void 0?null:s],e},useContext:eh,useEffect:mi,useImperativeHandle:function(e,s,i){return i=i!=null?i.concat([e]):null,ki(4194308,4,pi.bind(null,s,e),i)},useLayoutEffect:function(e,s){return ki(4194308,4,e,s)},useInsertionEffect:function(e,s){return ki(4,2,e,s)},useMemo:function(e,s){var i=Th();return s=s===void 0?null:s,e=e(),i.memoizedState=[e,s],e},useReducer:function(e,s,i){var a=Th();return s=i!==void 0?i(s):s,a.memoizedState=a.baseState=s,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=xi.bind(null,M,e),[a.memoizedState,e]},useRef:function(e){var s=Th();return e={current:e},s.memoizedState=e},useState:hi,useDebugValue:ri,useDeferredValue:function(e){return Th().memoizedState=e},useTransition:function(){var e=hi(!1),s=e[0];return e=vi.bind(null,e[1]),Th().memoizedState=e,[s,e]},useMutableSource:function(){},useSyncExternalStore:function(e,s,i){var a=M,o=Th();if(I){if(i===void 0)throw Error(p$1(407));i=i()}else{if(i=s(),Q===null)throw Error(p$1(349));Hh&30||di(a,s,i)}o.memoizedState=i;var c={value:i,getSnapshot:s};return o.queue=c,mi(ai.bind(null,a,c,e),[e]),a.flags|=2048,bi(9,ci.bind(null,a,c,i,s),void 0,null),i},useId:function(){var e=Th(),s=Q.identifierPrefix;if(I){var i=sg,a=rg;i=(a&~(1<<32-oc(a)-1)).toString(32)+i,s=":"+s+"R"+i,i=Kh++,0<i&&(s+="H"+i.toString(32)),s+=":"}else i=Lh++,s=":"+s+"r"+i.toString(32)+":";return e.memoizedState=s},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},useDebugValue:ri,useDeferredValue:function(e){var s=Uh();return ui(s,N.memoizedState,e)},useTransition:function(){var e=Wh(Vh)[0],s=Uh().memoizedState;return[e,s]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(e){var s=Uh();return N===null?s.memoizedState=e:ui(s,N.memoizedState,e)},useTransition:function(){var e=Xh(Vh)[0],s=Uh().memoizedState;return[e,s]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(e,s){if(e&&e.defaultProps){s=A({},s),e=e.defaultProps;for(var i in e)s[i]===void 0&&(s[i]=e[i]);return s}return s}function Di(e,s,i,a){s=e.memoizedState,i=i(a,s),i=i==null?s:A({},s,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Ei={isMounted:function(e){return(e=e._reactInternals)?Vb(e)===e:!1},enqueueSetState:function(e,s,i){e=e._reactInternals;var a=R(),o=yi(e),c=mh(a,o);c.payload=s,i!=null&&(c.callback=i),s=nh(e,c,o),s!==null&&(gi(s,e,o,a),oh(s,e,o))},enqueueReplaceState:function(e,s,i){e=e._reactInternals;var a=R(),o=yi(e),c=mh(a,o);c.tag=1,c.payload=s,i!=null&&(c.callback=i),s=nh(e,c,o),s!==null&&(gi(s,e,o,a),oh(s,e,o))},enqueueForceUpdate:function(e,s){e=e._reactInternals;var i=R(),a=yi(e),o=mh(i,a);o.tag=2,s!=null&&(o.callback=s),s=nh(e,o,a),s!==null&&(gi(s,e,a,i),oh(s,e,a))}};function Fi(e,s,i,a,o,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,g):s.prototype&&s.prototype.isPureReactComponent?!Ie(i,a)||!Ie(o,c):!0}function Gi(e,s,i){var a=!1,o=Vf,c=s.contextType;return typeof c=="object"&&c!==null?c=eh(c):(o=Zf(s)?Xf:H.current,a=s.contextTypes,c=(a=a!=null)?Yf(e,o):Vf),s=new s(i,c),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ei,e.stateNode=s,s._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=c),s}function Hi(e,s,i,a){e=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(i,a),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(i,a),s.state!==e&&Ei.enqueueReplaceState(s,s.state,null)}function Ii(e,s,i,a){var o=e.stateNode;o.props=i,o.state=e.memoizedState,o.refs={},kh(e);var c=s.contextType;typeof c=="object"&&c!==null?o.context=eh(c):(c=Zf(s)?Xf:H.current,o.context=Yf(e,c)),o.state=e.memoizedState,c=s.getDerivedStateFromProps,typeof c=="function"&&(Di(e,s,c,i),o.state=e.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(s=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),s!==o.state&&Ei.enqueueReplaceState(o,o.state,null),qh(e,i,o,a),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ji(e,s){try{var i="",a=s;do i+=Pa(a),a=a.return;while(a);var o=i}catch(c){o=`
38
+ `).replace(yf,"")}function Af(e,s,i){if(s=zf(s),zf(e)!==s&&i)throw Error(p$1(425))}function Bf(){}var Cf=null,Df=null;function Ef(e,s){return e==="textarea"||e==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(e){return Hf.resolve(null).then(e).catch(If)}:Ff;function If(e){setTimeout(function(){throw e})}function Kf(e,s){var i=s,a=0;do{var o=i.nextSibling;if(e.removeChild(i),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(a===0){e.removeChild(o),bd(s);return}a--}else i!=="$"&&i!=="$?"&&i!=="$!"||a++;i=o}while(i);bd(s)}function Lf(e){for(;e!=null;e=e.nextSibling){var s=e.nodeType;if(s===1||s===3)break;if(s===8){if(s=e.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return e}function Mf(e){e=e.previousSibling;for(var s=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(s===0)return e;s--}else i==="/$"&&s++}e=e.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(e){var s=e[Of];if(s)return s;for(var i=e.parentNode;i;){if(s=i[uf]||i[Of]){if(i=s.alternate,s.child!==null||i!==null&&i.child!==null)for(e=Mf(e);e!==null;){if(i=e[Of])return i;e=Mf(e)}return s}e=i,i=e.parentNode}return null}function Cb(e){return e=e[Of]||e[uf],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ue(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(p$1(33))}function Db(e){return e[Pf]||null}var Sf=[],Tf=-1;function Uf(e){return{current:e}}function E(e){0>Tf||(e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(e,s){Tf++,Sf[Tf]=e.current,e.current=s}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(e,s){var i=e.type.contextTypes;if(!i)return Vf;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===s)return a.__reactInternalMemoizedMaskedChildContext;var o={},c;for(c in i)o[c]=s[c];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),o}function Zf(e){return e=e.childContextTypes,e!=null}function $f(){E(Wf),E(H)}function ag(e,s,i){if(H.current!==Vf)throw Error(p$1(168));G(H,s),G(Wf,i)}function bg(e,s,i){var a=e.stateNode;if(s=s.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var o in a)if(!(o in s))throw Error(p$1(108,Ra(e)||"Unknown",o));return A({},i,a)}function cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,e),G(Wf,Wf.current),!0}function dg(e,s,i){var a=e.stateNode;if(!a)throw Error(p$1(169));i?(e=bg(e,s,Xf),a.__reactInternalMemoizedMergedChildContext=e,E(Wf),E(H),G(H,e)):E(Wf),G(Wf,i)}var eg=null,fg=!1,gg=!1;function hg(e){eg===null?eg=[e]:eg.push(e)}function ig(e){fg=!0,hg(e)}function jg(){if(!gg&&eg!==null){gg=!0;var e=0,s=C;try{var i=eg;for(C=1;e<i.length;e++){var a=i[e];do a=a(!0);while(a!==null)}eg=null,fg=!1}catch(o){throw eg!==null&&(eg=eg.slice(e+1)),ac(fc,jg),o}finally{C=s,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(e,s){kg[lg++]=ng,kg[lg++]=mg,mg=e,ng=s}function ug(e,s,i){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=e;var a=rg;e=sg;var o=32-oc(a)-1;a&=~(1<<o),i+=1;var c=32-oc(s)+o;if(30<c){var g=o-o%5;c=(a&(1<<g)-1).toString(32),a>>=g,o-=g,rg=1<<32-oc(s)+o|i<<o|a,sg=c+e}else rg=1<<c|i<<o|a,sg=e}function vg(e){e.return!==null&&(tg(e,1),ug(e,1,0))}function wg(e){for(;e===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;e===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(e,s){var i=Bg(5,null,null,0);i.elementType="DELETED",i.stateNode=s,i.return=e,s=e.deletions,s===null?(e.deletions=[i],e.flags|=16):s.push(i)}function Cg(e,s){switch(e.tag){case 5:var i=e.type;return s=s.nodeType!==1||i.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(e.stateNode=s,xg=e,yg=Lf(s.firstChild),!0):!1;case 6:return s=e.pendingProps===""||s.nodeType!==3?null:s,s!==null?(e.stateNode=s,xg=e,yg=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(i=qg!==null?{id:rg,overflow:sg}:null,e.memoizedState={dehydrated:s,treeContext:i,retryLane:1073741824},i=Bg(18,null,null,0),i.stateNode=s,i.return=e,e.child=i,xg=e,yg=null,!0):!1;default:return!1}}function Dg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Eg(e){if(I){var s=yg;if(s){var i=s;if(!Cg(e,s)){if(Dg(e))throw Error(p$1(418));s=Lf(i.nextSibling);var a=xg;s&&Cg(e,s)?Ag(a,i):(e.flags=e.flags&-4097|2,I=!1,xg=e)}}else{if(Dg(e))throw Error(p$1(418));e.flags=e.flags&-4097|2,I=!1,xg=e}}}function Fg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xg=e}function Gg(e){if(e!==xg)return!1;if(!I)return Fg(e),I=!0,!1;var s;if((s=e.tag!==3)&&!(s=e.tag!==5)&&(s=e.type,s=s!=="head"&&s!=="body"&&!Ef(e.type,e.memoizedProps)),s&&(s=yg)){if(Dg(e))throw Hg(),Error(p$1(418));for(;s;)Ag(e,s),s=Lf(s.nextSibling)}if(Fg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(p$1(317));e:{for(e=e.nextSibling,s=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(s===0){yg=Lf(e.nextSibling);break e}s--}else i!=="$"&&i!=="$!"&&i!=="$?"||s++}e=e.nextSibling}yg=null}}else yg=xg?Lf(e.stateNode.nextSibling):null;return!0}function Hg(){for(var e=yg;e;)e=Lf(e.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(e){zg===null?zg=[e]:zg.push(e)}var Kg=ua.ReactCurrentBatchConfig;function Lg(e,s,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(p$1(309));var a=i.stateNode}if(!a)throw Error(p$1(147,e));var o=a,c=""+e;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===c?s.ref:(s=function(g){var _=o.refs;g===null?delete _[c]:_[c]=g},s._stringRef=c,s)}if(typeof e!="string")throw Error(p$1(284));if(!i._owner)throw Error(p$1(290,e))}return e}function Mg(e,s){throw e=Object.prototype.toString.call(s),Error(p$1(31,e==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":e))}function Ng(e){var s=e._init;return s(e._payload)}function Og(e){function s(_e,tt){if(e){var j=_e.deletions;j===null?(_e.deletions=[tt],_e.flags|=16):j.push(tt)}}function i(_e,tt){if(!e)return null;for(;tt!==null;)s(_e,tt),tt=tt.sibling;return null}function a(_e,tt){for(_e=new Map;tt!==null;)tt.key!==null?_e.set(tt.key,tt):_e.set(tt.index,tt),tt=tt.sibling;return _e}function o(_e,tt){return _e=Pg(_e,tt),_e.index=0,_e.sibling=null,_e}function c(_e,tt,j){return _e.index=j,e?(j=_e.alternate,j!==null?(j=j.index,j<tt?(_e.flags|=2,tt):j):(_e.flags|=2,tt)):(_e.flags|=1048576,tt)}function g(_e){return e&&_e.alternate===null&&(_e.flags|=2),_e}function _(_e,tt,j,st){return tt===null||tt.tag!==6?(tt=Qg(j,_e.mode,st),tt.return=_e,tt):(tt=o(tt,j),tt.return=_e,tt)}function b(_e,tt,j,st){var ut=j.type;return ut===ya?et(_e,tt,j.props.children,st,j.key):tt!==null&&(tt.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===Ha&&Ng(ut)===tt.type)?(st=o(tt,j.props),st.ref=Lg(_e,tt,j),st.return=_e,st):(st=Rg(j.type,j.key,j.props,null,_e.mode,st),st.ref=Lg(_e,tt,j),st.return=_e,st)}function $(_e,tt,j,st){return tt===null||tt.tag!==4||tt.stateNode.containerInfo!==j.containerInfo||tt.stateNode.implementation!==j.implementation?(tt=Sg(j,_e.mode,st),tt.return=_e,tt):(tt=o(tt,j.children||[]),tt.return=_e,tt)}function et(_e,tt,j,st,ut){return tt===null||tt.tag!==7?(tt=Tg(j,_e.mode,st,ut),tt.return=_e,tt):(tt=o(tt,j),tt.return=_e,tt)}function ot(_e,tt,j){if(typeof tt=="string"&&tt!==""||typeof tt=="number")return tt=Qg(""+tt,_e.mode,j),tt.return=_e,tt;if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case va:return j=Rg(tt.type,tt.key,tt.props,null,_e.mode,j),j.ref=Lg(_e,null,tt),j.return=_e,j;case wa:return tt=Sg(tt,_e.mode,j),tt.return=_e,tt;case Ha:var st=tt._init;return ot(_e,st(tt._payload),j)}if(eb(tt)||Ka(tt))return tt=Tg(tt,_e.mode,j,null),tt.return=_e,tt;Mg(_e,tt)}return null}function rt(_e,tt,j,st){var ut=tt!==null?tt.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return ut!==null?null:_(_e,tt,""+j,st);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case va:return j.key===ut?b(_e,tt,j,st):null;case wa:return j.key===ut?$(_e,tt,j,st):null;case Ha:return ut=j._init,rt(_e,tt,ut(j._payload),st)}if(eb(j)||Ka(j))return ut!==null?null:et(_e,tt,j,st,null);Mg(_e,j)}return null}function at(_e,tt,j,st,ut){if(typeof st=="string"&&st!==""||typeof st=="number")return _e=_e.get(j)||null,_(tt,_e,""+st,ut);if(typeof st=="object"&&st!==null){switch(st.$$typeof){case va:return _e=_e.get(st.key===null?j:st.key)||null,b(tt,_e,st,ut);case wa:return _e=_e.get(st.key===null?j:st.key)||null,$(tt,_e,st,ut);case Ha:var ct=st._init;return at(_e,tt,j,ct(st._payload),ut)}if(eb(st)||Ka(st))return _e=_e.get(j)||null,et(tt,_e,st,ut,null);Mg(tt,st)}return null}function it(_e,tt,j,st){for(var ut=null,ct=null,gt=tt,mt=tt=0,_t=null;gt!==null&&mt<j.length;mt++){gt.index>mt?(_t=gt,gt=null):_t=gt.sibling;var kt=rt(_e,gt,j[mt],st);if(kt===null){gt===null&&(gt=_t);break}e&&gt&&kt.alternate===null&&s(_e,gt),tt=c(kt,tt,mt),ct===null?ut=kt:ct.sibling=kt,ct=kt,gt=_t}if(mt===j.length)return i(_e,gt),I&&tg(_e,mt),ut;if(gt===null){for(;mt<j.length;mt++)gt=ot(_e,j[mt],st),gt!==null&&(tt=c(gt,tt,mt),ct===null?ut=gt:ct.sibling=gt,ct=gt);return I&&tg(_e,mt),ut}for(gt=a(_e,gt);mt<j.length;mt++)_t=at(gt,_e,mt,j[mt],st),_t!==null&&(e&&_t.alternate!==null&&gt.delete(_t.key===null?mt:_t.key),tt=c(_t,tt,mt),ct===null?ut=_t:ct.sibling=_t,ct=_t);return e&&gt.forEach(function(wt){return s(_e,wt)}),I&&tg(_e,mt),ut}function nt(_e,tt,j,st){var ut=Ka(j);if(typeof ut!="function")throw Error(p$1(150));if(j=ut.call(j),j==null)throw Error(p$1(151));for(var ct=ut=null,gt=tt,mt=tt=0,_t=null,kt=j.next();gt!==null&&!kt.done;mt++,kt=j.next()){gt.index>mt?(_t=gt,gt=null):_t=gt.sibling;var wt=rt(_e,gt,kt.value,st);if(wt===null){gt===null&&(gt=_t);break}e&&gt&&wt.alternate===null&&s(_e,gt),tt=c(wt,tt,mt),ct===null?ut=wt:ct.sibling=wt,ct=wt,gt=_t}if(kt.done)return i(_e,gt),I&&tg(_e,mt),ut;if(gt===null){for(;!kt.done;mt++,kt=j.next())kt=ot(_e,kt.value,st),kt!==null&&(tt=c(kt,tt,mt),ct===null?ut=kt:ct.sibling=kt,ct=kt);return I&&tg(_e,mt),ut}for(gt=a(_e,gt);!kt.done;mt++,kt=j.next())kt=at(gt,_e,mt,kt.value,st),kt!==null&&(e&&kt.alternate!==null&&gt.delete(kt.key===null?mt:kt.key),tt=c(kt,tt,mt),ct===null?ut=kt:ct.sibling=kt,ct=kt);return e&&gt.forEach(function(Et){return s(_e,Et)}),I&&tg(_e,mt),ut}function dt(_e,tt,j,st){if(typeof j=="object"&&j!==null&&j.type===ya&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case va:e:{for(var ut=j.key,ct=tt;ct!==null;){if(ct.key===ut){if(ut=j.type,ut===ya){if(ct.tag===7){i(_e,ct.sibling),tt=o(ct,j.props.children),tt.return=_e,_e=tt;break e}}else if(ct.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===Ha&&Ng(ut)===ct.type){i(_e,ct.sibling),tt=o(ct,j.props),tt.ref=Lg(_e,ct,j),tt.return=_e,_e=tt;break e}i(_e,ct);break}else s(_e,ct);ct=ct.sibling}j.type===ya?(tt=Tg(j.props.children,_e.mode,st,j.key),tt.return=_e,_e=tt):(st=Rg(j.type,j.key,j.props,null,_e.mode,st),st.ref=Lg(_e,tt,j),st.return=_e,_e=st)}return g(_e);case wa:e:{for(ct=j.key;tt!==null;){if(tt.key===ct)if(tt.tag===4&&tt.stateNode.containerInfo===j.containerInfo&&tt.stateNode.implementation===j.implementation){i(_e,tt.sibling),tt=o(tt,j.children||[]),tt.return=_e,_e=tt;break e}else{i(_e,tt);break}else s(_e,tt);tt=tt.sibling}tt=Sg(j,_e.mode,st),tt.return=_e,_e=tt}return g(_e);case Ha:return ct=j._init,dt(_e,tt,ct(j._payload),st)}if(eb(j))return it(_e,tt,j,st);if(Ka(j))return nt(_e,tt,j,st);Mg(_e,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,tt!==null&&tt.tag===6?(i(_e,tt.sibling),tt=o(tt,j),tt.return=_e,_e=tt):(i(_e,tt),tt=Qg(j,_e.mode,st),tt.return=_e,_e=tt),g(_e)):i(_e,tt)}return dt}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(e){var s=Wg.current;E(Wg),e._currentValue=s}function bh(e,s,i){for(;e!==null;){var a=e.alternate;if((e.childLanes&s)!==s?(e.childLanes|=s,a!==null&&(a.childLanes|=s)):a!==null&&(a.childLanes&s)!==s&&(a.childLanes|=s),e===i)break;e=e.return}}function ch(e,s){Xg=e,Zg=Yg=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&s&&(dh=!0),e.firstContext=null)}function eh(e){var s=e._currentValue;if(Zg!==e)if(e={context:e,memoizedValue:s,next:null},Yg===null){if(Xg===null)throw Error(p$1(308));Yg=e,Xg.dependencies={lanes:0,firstContext:e}}else Yg=Yg.next=e;return s}var fh=null;function gh(e){fh===null?fh=[e]:fh.push(e)}function hh(e,s,i,a){var o=s.interleaved;return o===null?(i.next=i,gh(s)):(i.next=o.next,o.next=i),s.interleaved=i,ih(e,a)}function ih(e,s){e.lanes|=s;var i=e.alternate;for(i!==null&&(i.lanes|=s),i=e,e=e.return;e!==null;)e.childLanes|=s,i=e.alternate,i!==null&&(i.childLanes|=s),i=e,e=e.return;return i.tag===3?i.stateNode:null}var jh=!1;function kh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(e,s){e=e.updateQueue,s.updateQueue===e&&(s.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mh(e,s){return{eventTime:e,lane:s,tag:0,payload:null,callback:null,next:null}}function nh(e,s,i){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,K&2){var o=a.pending;return o===null?s.next=s:(s.next=o.next,o.next=s),a.pending=s,ih(e,i)}return o=a.interleaved,o===null?(s.next=s,gh(a)):(s.next=o.next,o.next=s),a.interleaved=s,ih(e,i)}function oh(e,s,i){if(s=s.updateQueue,s!==null&&(s=s.shared,(i&4194240)!==0)){var a=s.lanes;a&=e.pendingLanes,i|=a,s.lanes=i,Cc(e,i)}}function ph(e,s){var i=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var o=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var g={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};c===null?o=c=g:c=c.next=g,i=i.next}while(i!==null);c===null?o=c=s:c=c.next=s}else o=c=s;i={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,effects:a.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=s:e.next=s,i.lastBaseUpdate=s}function qh(e,s,i,a){var o=e.updateQueue;jh=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var b=_,$=b.next;b.next=null,g===null?c=$:g.next=$,g=b;var et=e.alternate;et!==null&&(et=et.updateQueue,_=et.lastBaseUpdate,_!==g&&(_===null?et.firstBaseUpdate=$:_.next=$,et.lastBaseUpdate=b))}if(c!==null){var ot=o.baseState;g=0,et=$=b=null,_=c;do{var rt=_.lane,at=_.eventTime;if((a&rt)===rt){et!==null&&(et=et.next={eventTime:at,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var it=e,nt=_;switch(rt=s,at=i,nt.tag){case 1:if(it=nt.payload,typeof it=="function"){ot=it.call(at,ot,rt);break e}ot=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=nt.payload,rt=typeof it=="function"?it.call(at,ot,rt):it,rt==null)break e;ot=A({},ot,rt);break e;case 2:jh=!0}}_.callback!==null&&_.lane!==0&&(e.flags|=64,rt=o.effects,rt===null?o.effects=[_]:rt.push(_))}else at={eventTime:at,lane:rt,tag:_.tag,payload:_.payload,callback:_.callback,next:null},et===null?($=et=at,b=ot):et=et.next=at,g|=rt;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;rt=_,_=rt.next,rt.next=null,o.lastBaseUpdate=rt,o.shared.pending=null}}while(!0);if(et===null&&(b=ot),o.baseState=b,o.firstBaseUpdate=$,o.lastBaseUpdate=et,s=o.shared.interleaved,s!==null){o=s;do g|=o.lane,o=o.next;while(o!==s)}else c===null&&(o.shared.lanes=0);rh|=g,e.lanes=g,e.memoizedState=ot}}function sh(e,s,i){if(e=s.effects,s.effects=null,e!==null)for(s=0;s<e.length;s++){var a=e[s],o=a.callback;if(o!==null){if(a.callback=null,a=i,typeof o!="function")throw Error(p$1(191,o));o.call(a)}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh(e){if(e===th)throw Error(p$1(174));return e}function yh(e,s){switch(G(wh,s),G(vh,e),G(uh,th),e=s.nodeType,e){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:lb(null,"");break;default:e=e===8?s.parentNode:s,s=e.namespaceURI||null,e=e.tagName,s=lb(s,e)}E(uh),G(uh,s)}function zh(){E(uh),E(vh),E(wh)}function Ah(e){xh(wh.current);var s=xh(uh.current),i=lb(s,e.type);s!==i&&(G(vh,e),G(uh,i))}function Bh(e){vh.current===e&&(E(uh),E(vh))}var L=Uf(0);function Ch(e){for(var s=e;s!==null;){if(s.tag===13){var i=s.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break;for(;s.sibling===null;){if(s.return===null||s.return===e)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Dh=[];function Eh(){for(var e=0;e<Dh.length;e++)Dh[e]._workInProgressVersionPrimary=null;Dh.length=0}var Fh=ua.ReactCurrentDispatcher,Gh=ua.ReactCurrentBatchConfig,Hh=0,M=null,N=null,O=null,Ih=!1,Jh=!1,Kh=0,Lh=0;function P(){throw Error(p$1(321))}function Mh(e,s){if(s===null)return!1;for(var i=0;i<s.length&&i<e.length;i++)if(!He(e[i],s[i]))return!1;return!0}function Nh(e,s,i,a,o,c){if(Hh=c,M=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Fh.current=e===null||e.memoizedState===null?Oh:Ph,e=i(a,o),Jh){c=0;do{if(Jh=!1,Kh=0,25<=c)throw Error(p$1(301));c+=1,O=N=null,s.updateQueue=null,Fh.current=Qh,e=i(a,o)}while(Jh)}if(Fh.current=Rh,s=N!==null&&N.next!==null,Hh=0,O=N=M=null,Ih=!1,s)throw Error(p$1(300));return e}function Sh(){var e=Kh!==0;return Kh=0,e}function Th(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return O===null?M.memoizedState=O=e:O=O.next=e,O}function Uh(){if(N===null){var e=M.alternate;e=e!==null?e.memoizedState:null}else e=N.next;var s=O===null?M.memoizedState:O.next;if(s!==null)O=s,N=e;else{if(e===null)throw Error(p$1(310));N=e,e={memoizedState:N.memoizedState,baseState:N.baseState,baseQueue:N.baseQueue,queue:N.queue,next:null},O===null?M.memoizedState=O=e:O=O.next=e}return O}function Vh(e,s){return typeof s=="function"?s(e):s}function Wh(e){var s=Uh(),i=s.queue;if(i===null)throw Error(p$1(311));i.lastRenderedReducer=e;var a=N,o=a.baseQueue,c=i.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}a.baseQueue=o=c,i.pending=null}if(o!==null){c=o.next,a=a.baseState;var _=g=null,b=null,$=c;do{var et=$.lane;if((Hh&et)===et)b!==null&&(b=b.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),a=$.hasEagerState?$.eagerState:e(a,$.action);else{var ot={lane:et,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};b===null?(_=b=ot,g=a):b=b.next=ot,M.lanes|=et,rh|=et}$=$.next}while($!==null&&$!==c);b===null?g=a:b.next=_,He(a,s.memoizedState)||(dh=!0),s.memoizedState=a,s.baseState=g,s.baseQueue=b,i.lastRenderedState=a}if(e=i.interleaved,e!==null){o=e;do c=o.lane,M.lanes|=c,rh|=c,o=o.next;while(o!==e)}else o===null&&(i.lanes=0);return[s.memoizedState,i.dispatch]}function Xh(e){var s=Uh(),i=s.queue;if(i===null)throw Error(p$1(311));i.lastRenderedReducer=e;var a=i.dispatch,o=i.pending,c=s.memoizedState;if(o!==null){i.pending=null;var g=o=o.next;do c=e(c,g.action),g=g.next;while(g!==o);He(c,s.memoizedState)||(dh=!0),s.memoizedState=c,s.baseQueue===null&&(s.baseState=c),i.lastRenderedState=c}return[c,a]}function Yh(){}function Zh(e,s){var i=M,a=Uh(),o=s(),c=!He(a.memoizedState,o);if(c&&(a.memoizedState=o,dh=!0),a=a.queue,$h(ai.bind(null,i,a,e),[e]),a.getSnapshot!==s||c||O!==null&&O.memoizedState.tag&1){if(i.flags|=2048,bi(9,ci.bind(null,i,a,o,s),void 0,null),Q===null)throw Error(p$1(349));Hh&30||di(i,s,o)}return o}function di(e,s,i){e.flags|=16384,e={getSnapshot:s,value:i},s=M.updateQueue,s===null?(s={lastEffect:null,stores:null},M.updateQueue=s,s.stores=[e]):(i=s.stores,i===null?s.stores=[e]:i.push(e))}function ci(e,s,i,a){s.value=i,s.getSnapshot=a,ei(s)&&fi(e)}function ai(e,s,i){return i(function(){ei(s)&&fi(e)})}function ei(e){var s=e.getSnapshot;e=e.value;try{var i=s();return!He(e,i)}catch{return!0}}function fi(e){var s=ih(e,1);s!==null&&gi(s,e,1,-1)}function hi(e){var s=Th();return typeof e=="function"&&(e=e()),s.memoizedState=s.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:e},s.queue=e,e=e.dispatch=ii.bind(null,M,e),[s.memoizedState,e]}function bi(e,s,i,a){return e={tag:e,create:s,destroy:i,deps:a,next:null},s=M.updateQueue,s===null?(s={lastEffect:null,stores:null},M.updateQueue=s,s.lastEffect=e.next=e):(i=s.lastEffect,i===null?s.lastEffect=e.next=e:(a=i.next,i.next=e,e.next=a,s.lastEffect=e)),e}function ji(){return Uh().memoizedState}function ki(e,s,i,a){var o=Th();M.flags|=e,o.memoizedState=bi(1|s,i,void 0,a===void 0?null:a)}function li(e,s,i,a){var o=Uh();a=a===void 0?null:a;var c=void 0;if(N!==null){var g=N.memoizedState;if(c=g.destroy,a!==null&&Mh(a,g.deps)){o.memoizedState=bi(s,i,c,a);return}}M.flags|=e,o.memoizedState=bi(1|s,i,c,a)}function mi(e,s){return ki(8390656,8,e,s)}function $h(e,s){return li(2048,8,e,s)}function ni(e,s){return li(4,2,e,s)}function oi(e,s){return li(4,4,e,s)}function pi(e,s){if(typeof s=="function")return e=e(),s(e),function(){s(null)};if(s!=null)return e=e(),s.current=e,function(){s.current=null}}function qi(e,s,i){return i=i!=null?i.concat([e]):null,li(4,4,pi.bind(null,s,e),i)}function ri(){}function si(e,s){var i=Uh();s=s===void 0?null:s;var a=i.memoizedState;return a!==null&&s!==null&&Mh(s,a[1])?a[0]:(i.memoizedState=[e,s],e)}function ti(e,s){var i=Uh();s=s===void 0?null:s;var a=i.memoizedState;return a!==null&&s!==null&&Mh(s,a[1])?a[0]:(e=e(),i.memoizedState=[e,s],e)}function ui(e,s,i){return Hh&21?(He(i,s)||(i=yc(),M.lanes|=i,rh|=i,e.baseState=!0),s):(e.baseState&&(e.baseState=!1,dh=!0),e.memoizedState=i)}function vi(e,s){var i=C;C=i!==0&&4>i?i:4,e(!0);var a=Gh.transition;Gh.transition={};try{e(!1),s()}finally{C=i,Gh.transition=a}}function wi(){return Uh().memoizedState}function xi(e,s,i){var a=yi(e);if(i={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null},zi(e))Ai(s,i);else if(i=hh(e,s,i,a),i!==null){var o=R();gi(i,e,a,o),Bi(i,s,a)}}function ii(e,s,i){var a=yi(e),o={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null};if(zi(e))Ai(s,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=s.lastRenderedReducer,c!==null))try{var g=s.lastRenderedState,_=c(g,i);if(o.hasEagerState=!0,o.eagerState=_,He(_,g)){var b=s.interleaved;b===null?(o.next=o,gh(s)):(o.next=b.next,b.next=o),s.interleaved=o;return}}catch{}finally{}i=hh(e,s,o,a),i!==null&&(o=R(),gi(i,e,a,o),Bi(i,s,a))}}function zi(e){var s=e.alternate;return e===M||s!==null&&s===M}function Ai(e,s){Jh=Ih=!0;var i=e.pending;i===null?s.next=s:(s.next=i.next,i.next=s),e.pending=s}function Bi(e,s,i){if(i&4194240){var a=s.lanes;a&=e.pendingLanes,i|=a,s.lanes=i,Cc(e,i)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(e,s){return Th().memoizedState=[e,s===void 0?null:s],e},useContext:eh,useEffect:mi,useImperativeHandle:function(e,s,i){return i=i!=null?i.concat([e]):null,ki(4194308,4,pi.bind(null,s,e),i)},useLayoutEffect:function(e,s){return ki(4194308,4,e,s)},useInsertionEffect:function(e,s){return ki(4,2,e,s)},useMemo:function(e,s){var i=Th();return s=s===void 0?null:s,e=e(),i.memoizedState=[e,s],e},useReducer:function(e,s,i){var a=Th();return s=i!==void 0?i(s):s,a.memoizedState=a.baseState=s,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=xi.bind(null,M,e),[a.memoizedState,e]},useRef:function(e){var s=Th();return e={current:e},s.memoizedState=e},useState:hi,useDebugValue:ri,useDeferredValue:function(e){return Th().memoizedState=e},useTransition:function(){var e=hi(!1),s=e[0];return e=vi.bind(null,e[1]),Th().memoizedState=e,[s,e]},useMutableSource:function(){},useSyncExternalStore:function(e,s,i){var a=M,o=Th();if(I){if(i===void 0)throw Error(p$1(407));i=i()}else{if(i=s(),Q===null)throw Error(p$1(349));Hh&30||di(a,s,i)}o.memoizedState=i;var c={value:i,getSnapshot:s};return o.queue=c,mi(ai.bind(null,a,c,e),[e]),a.flags|=2048,bi(9,ci.bind(null,a,c,i,s),void 0,null),i},useId:function(){var e=Th(),s=Q.identifierPrefix;if(I){var i=sg,a=rg;i=(a&~(1<<32-oc(a)-1)).toString(32)+i,s=":"+s+"R"+i,i=Kh++,0<i&&(s+="H"+i.toString(32)),s+=":"}else i=Lh++,s=":"+s+"r"+i.toString(32)+":";return e.memoizedState=s},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},useDebugValue:ri,useDeferredValue:function(e){var s=Uh();return ui(s,N.memoizedState,e)},useTransition:function(){var e=Wh(Vh)[0],s=Uh().memoizedState;return[e,s]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(e){var s=Uh();return N===null?s.memoizedState=e:ui(s,N.memoizedState,e)},useTransition:function(){var e=Xh(Vh)[0],s=Uh().memoizedState;return[e,s]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(e,s){if(e&&e.defaultProps){s=A({},s),e=e.defaultProps;for(var i in e)s[i]===void 0&&(s[i]=e[i]);return s}return s}function Di(e,s,i,a){s=e.memoizedState,i=i(a,s),i=i==null?s:A({},s,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Ei={isMounted:function(e){return(e=e._reactInternals)?Vb(e)===e:!1},enqueueSetState:function(e,s,i){e=e._reactInternals;var a=R(),o=yi(e),c=mh(a,o);c.payload=s,i!=null&&(c.callback=i),s=nh(e,c,o),s!==null&&(gi(s,e,o,a),oh(s,e,o))},enqueueReplaceState:function(e,s,i){e=e._reactInternals;var a=R(),o=yi(e),c=mh(a,o);c.tag=1,c.payload=s,i!=null&&(c.callback=i),s=nh(e,c,o),s!==null&&(gi(s,e,o,a),oh(s,e,o))},enqueueForceUpdate:function(e,s){e=e._reactInternals;var i=R(),a=yi(e),o=mh(i,a);o.tag=2,s!=null&&(o.callback=s),s=nh(e,o,a),s!==null&&(gi(s,e,a,i),oh(s,e,a))}};function Fi(e,s,i,a,o,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,g):s.prototype&&s.prototype.isPureReactComponent?!Ie(i,a)||!Ie(o,c):!0}function Gi(e,s,i){var a=!1,o=Vf,c=s.contextType;return typeof c=="object"&&c!==null?c=eh(c):(o=Zf(s)?Xf:H.current,a=s.contextTypes,c=(a=a!=null)?Yf(e,o):Vf),s=new s(i,c),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ei,e.stateNode=s,s._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=c),s}function Hi(e,s,i,a){e=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(i,a),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(i,a),s.state!==e&&Ei.enqueueReplaceState(s,s.state,null)}function Ii(e,s,i,a){var o=e.stateNode;o.props=i,o.state=e.memoizedState,o.refs={},kh(e);var c=s.contextType;typeof c=="object"&&c!==null?o.context=eh(c):(c=Zf(s)?Xf:H.current,o.context=Yf(e,c)),o.state=e.memoizedState,c=s.getDerivedStateFromProps,typeof c=="function"&&(Di(e,s,c,i),o.state=e.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(s=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),s!==o.state&&Ei.enqueueReplaceState(o,o.state,null),qh(e,i,o,a),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ji(e,s){try{var i="",a=s;do i+=Pa(a),a=a.return;while(a);var o=i}catch(c){o=`
39
39
  Error generating stack: `+c.message+`
40
- `+c.stack}return{value:e,source:s,stack:o,digest:null}}function Ki(e,s,i){return{value:e,source:null,stack:i??null,digest:s??null}}function Li(e,s){try{console.error(s.value)}catch(i){setTimeout(function(){throw i})}}var Mi=typeof WeakMap=="function"?WeakMap:Map;function Ni(e,s,i){i=mh(-1,i),i.tag=3,i.payload={element:null};var a=s.value;return i.callback=function(){Oi||(Oi=!0,Pi=a),Li(e,s)},i}function Qi(e,s,i){i=mh(-1,i),i.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var o=s.value;i.payload=function(){return a(o)},i.callback=function(){Li(e,s)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(i.callback=function(){Li(e,s),typeof a!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var g=s.stack;this.componentDidCatch(s.value,{componentStack:g!==null?g:""})}),i}function Si(e,s,i){var a=e.pingCache;if(a===null){a=e.pingCache=new Mi;var o=new Set;a.set(s,o)}else o=a.get(s),o===void 0&&(o=new Set,a.set(s,o));o.has(i)||(o.add(i),e=Ti.bind(null,e,s,i),s.then(e,e))}function Ui(e){do{var s;if((s=e.tag===13)&&(s=e.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return e;e=e.return}while(e!==null);return null}function Vi(e,s,i,a,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===s?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(s=mh(-1,1),s.tag=2,nh(i,s,1))),i.lanes|=1),e)}var Wi=ua.ReactCurrentOwner,dh=!1;function Xi(e,s,i,a){s.child=e===null?Vg(s,null,i,a):Ug(s,e.child,i,a)}function Yi(e,s,i,a,o){i=i.render;var c=s.ref;return ch(s,o),a=Nh(e,s,i,a,c,o),i=Sh(),e!==null&&!dh?(s.updateQueue=e.updateQueue,s.flags&=-2053,e.lanes&=~o,Zi(e,s,o)):(I&&i&&vg(s),s.flags|=1,Xi(e,s,a,o),s.child)}function $i(e,s,i,a,o){if(e===null){var c=i.type;return typeof c=="function"&&!aj(c)&&c.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(s.tag=15,s.type=c,bj(e,s,c,a,o)):(e=Rg(i.type,null,a,s,s.mode,o),e.ref=s.ref,e.return=s,s.child=e)}if(c=e.child,!(e.lanes&o)){var g=c.memoizedProps;if(i=i.compare,i=i!==null?i:Ie,i(g,a)&&e.ref===s.ref)return Zi(e,s,o)}return s.flags|=1,e=Pg(c,a),e.ref=s.ref,e.return=s,s.child=e}function bj(e,s,i,a,o){if(e!==null){var c=e.memoizedProps;if(Ie(c,a)&&e.ref===s.ref)if(dh=!1,s.pendingProps=a=c,(e.lanes&o)!==0)e.flags&131072&&(dh=!0);else return s.lanes=e.lanes,Zi(e,s,o)}return cj(e,s,i,a,o)}function dj(e,s,i){var a=s.pendingProps,o=a.children,c=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(ej,fj),fj|=i;else{if(!(i&1073741824))return e=c!==null?c.baseLanes|i:i,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:e,cachePool:null,transitions:null},s.updateQueue=null,G(ej,fj),fj|=e,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=c!==null?c.baseLanes:i,G(ej,fj),fj|=a}else c!==null?(a=c.baseLanes|i,s.memoizedState=null):a=i,G(ej,fj),fj|=a;return Xi(e,s,o,i),s.child}function gj(e,s){var i=s.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(s.flags|=512,s.flags|=2097152)}function cj(e,s,i,a,o){var c=Zf(i)?Xf:H.current;return c=Yf(s,c),ch(s,o),i=Nh(e,s,i,a,c,o),a=Sh(),e!==null&&!dh?(s.updateQueue=e.updateQueue,s.flags&=-2053,e.lanes&=~o,Zi(e,s,o)):(I&&a&&vg(s),s.flags|=1,Xi(e,s,i,o),s.child)}function hj(e,s,i,a,o){if(Zf(i)){var c=!0;cg(s)}else c=!1;if(ch(s,o),s.stateNode===null)ij(e,s),Gi(s,i,a),Ii(s,i,a,o),a=!0;else if(e===null){var g=s.stateNode,_=s.memoizedProps;g.props=_;var b=g.context,$=i.contextType;typeof $=="object"&&$!==null?$=eh($):($=Zf(i)?Xf:H.current,$=Yf(s,$));var et=i.getDerivedStateFromProps,ot=typeof et=="function"||typeof g.getSnapshotBeforeUpdate=="function";ot||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_!==a||b!==$)&&Hi(s,g,a,$),jh=!1;var rt=s.memoizedState;g.state=rt,qh(s,a,g,o),b=s.memoizedState,_!==a||rt!==b||Wf.current||jh?(typeof et=="function"&&(Di(s,i,et,a),b=s.memoizedState),(_=jh||Fi(s,i,_,a,rt,b,$))?(ot||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(s.flags|=4194308)):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=a,s.memoizedState=b),g.props=a,g.state=b,g.context=$,a=_):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),a=!1)}else{g=s.stateNode,lh(e,s),_=s.memoizedProps,$=s.type===s.elementType?_:Ci(s.type,_),g.props=$,ot=s.pendingProps,rt=g.context,b=i.contextType,typeof b=="object"&&b!==null?b=eh(b):(b=Zf(i)?Xf:H.current,b=Yf(s,b));var at=i.getDerivedStateFromProps;(et=typeof at=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_!==ot||rt!==b)&&Hi(s,g,a,b),jh=!1,rt=s.memoizedState,g.state=rt,qh(s,a,g,o);var it=s.memoizedState;_!==ot||rt!==it||Wf.current||jh?(typeof at=="function"&&(Di(s,i,at,a),it=s.memoizedState),($=jh||Fi(s,i,$,a,rt,it,b)||!1)?(et||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,it,b),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,it,b)),typeof g.componentDidUpdate=="function"&&(s.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof g.componentDidUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=1024),s.memoizedProps=a,s.memoizedState=it),g.props=a,g.state=it,g.context=b,a=$):(typeof g.componentDidUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=1024),a=!1)}return jj(e,s,i,a,c,o)}function jj(e,s,i,a,o,c){gj(e,s);var g=(s.flags&128)!==0;if(!a&&!g)return o&&dg(s,i,!1),Zi(e,s,c);a=s.stateNode,Wi.current=s;var _=g&&typeof i.getDerivedStateFromError!="function"?null:a.render();return s.flags|=1,e!==null&&g?(s.child=Ug(s,e.child,null,c),s.child=Ug(s,null,_,c)):Xi(e,s,_,c),s.memoizedState=a.state,o&&dg(s,i,!0),s.child}function kj(e){var s=e.stateNode;s.pendingContext?ag(e,s.pendingContext,s.pendingContext!==s.context):s.context&&ag(e,s.context,!1),yh(e,s.containerInfo)}function lj(e,s,i,a,o){return Ig(),Jg(o),s.flags|=256,Xi(e,s,i,a),s.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(e){return{baseLanes:e,cachePool:null,transitions:null}}function oj(e,s,i){var a=s.pendingProps,o=L.current,c=!1,g=(s.flags&128)!==0,_;if((_=g)||(_=e!==null&&e.memoizedState===null?!1:(o&2)!==0),_?(c=!0,s.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),G(L,o&1),e===null)return Eg(s),e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(s.mode&1?e.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(g=a.children,e=a.fallback,c?(a=s.mode,c=s.child,g={mode:"hidden",children:g},!(a&1)&&c!==null?(c.childLanes=0,c.pendingProps=g):c=pj(g,a,0,null),e=Tg(e,a,i,null),c.return=s,e.return=s,c.sibling=e,s.child=c,s.child.memoizedState=nj(i),s.memoizedState=mj,e):qj(s,g));if(o=e.memoizedState,o!==null&&(_=o.dehydrated,_!==null))return rj(e,s,g,a,_,o,i);if(c){c=a.fallback,g=s.mode,o=e.child,_=o.sibling;var b={mode:"hidden",children:a.children};return!(g&1)&&s.child!==o?(a=s.child,a.childLanes=0,a.pendingProps=b,s.deletions=null):(a=Pg(o,b),a.subtreeFlags=o.subtreeFlags&14680064),_!==null?c=Pg(_,c):(c=Tg(c,g,i,null),c.flags|=2),c.return=s,a.return=s,a.sibling=c,s.child=a,a=c,c=s.child,g=e.child.memoizedState,g=g===null?nj(i):{baseLanes:g.baseLanes|i,cachePool:null,transitions:g.transitions},c.memoizedState=g,c.childLanes=e.childLanes&~i,s.memoizedState=mj,a}return c=e.child,e=c.sibling,a=Pg(c,{mode:"visible",children:a.children}),!(s.mode&1)&&(a.lanes=i),a.return=s,a.sibling=null,e!==null&&(i=s.deletions,i===null?(s.deletions=[e],s.flags|=16):i.push(e)),s.child=a,s.memoizedState=null,a}function qj(e,s){return s=pj({mode:"visible",children:s},e.mode,0,null),s.return=e,e.child=s}function sj(e,s,i,a){return a!==null&&Jg(a),Ug(s,e.child,null,i),e=qj(s,s.pendingProps.children),e.flags|=2,s.memoizedState=null,e}function rj(e,s,i,a,o,c,g){if(i)return s.flags&256?(s.flags&=-257,a=Ki(Error(p$1(422))),sj(e,s,g,a)):s.memoizedState!==null?(s.child=e.child,s.flags|=128,null):(c=a.fallback,o=s.mode,a=pj({mode:"visible",children:a.children},o,0,null),c=Tg(c,o,g,null),c.flags|=2,a.return=s,c.return=s,a.sibling=c,s.child=a,s.mode&1&&Ug(s,e.child,null,g),s.child.memoizedState=nj(g),s.memoizedState=mj,c);if(!(s.mode&1))return sj(e,s,g,null);if(o.data==="$!"){if(a=o.nextSibling&&o.nextSibling.dataset,a)var _=a.dgst;return a=_,c=Error(p$1(419)),a=Ki(c,a,void 0),sj(e,s,g,a)}if(_=(g&e.childLanes)!==0,dh||_){if(a=Q,a!==null){switch(g&-g){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(a.suspendedLanes|g)?0:o,o!==0&&o!==c.retryLane&&(c.retryLane=o,ih(e,o),gi(a,e,o,-1))}return tj(),a=Ki(Error(p$1(421))),sj(e,s,g,a)}return o.data==="$?"?(s.flags|=128,s.child=e.child,s=uj.bind(null,e),o._reactRetry=s,null):(e=c.treeContext,yg=Lf(o.nextSibling),xg=s,I=!0,zg=null,e!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=e.id,sg=e.overflow,qg=s),s=qj(s,a.children),s.flags|=4096,s)}function vj(e,s,i){e.lanes|=s;var a=e.alternate;a!==null&&(a.lanes|=s),bh(e.return,s,i)}function wj(e,s,i,a,o){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:a,tail:i,tailMode:o}:(c.isBackwards=s,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=i,c.tailMode=o)}function xj(e,s,i){var a=s.pendingProps,o=a.revealOrder,c=a.tail;if(Xi(e,s,a.children,i),a=L.current,a&2)a=a&1|2,s.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=s.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vj(e,i,s);else if(e.tag===19)vj(e,i,s);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===s)break e;for(;e.sibling===null;){if(e.return===null||e.return===s)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(G(L,a),!(s.mode&1))s.memoizedState=null;else switch(o){case"forwards":for(i=s.child,o=null;i!==null;)e=i.alternate,e!==null&&Ch(e)===null&&(o=i),i=i.sibling;i=o,i===null?(o=s.child,s.child=null):(o=i.sibling,i.sibling=null),wj(s,!1,o,i,c);break;case"backwards":for(i=null,o=s.child,s.child=null;o!==null;){if(e=o.alternate,e!==null&&Ch(e)===null){s.child=o;break}e=o.sibling,o.sibling=i,i=o,o=e}wj(s,!0,i,null,c);break;case"together":wj(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ij(e,s){!(s.mode&1)&&e!==null&&(e.alternate=null,s.alternate=null,s.flags|=2)}function Zi(e,s,i){if(e!==null&&(s.dependencies=e.dependencies),rh|=s.lanes,!(i&s.childLanes))return null;if(e!==null&&s.child!==e.child)throw Error(p$1(153));if(s.child!==null){for(e=s.child,i=Pg(e,e.pendingProps),s.child=i,i.return=s;e.sibling!==null;)e=e.sibling,i=i.sibling=Pg(e,e.pendingProps),i.return=s;i.sibling=null}return s.child}function yj(e,s,i){switch(s.tag){case 3:kj(s),Ig();break;case 5:Ah(s);break;case 1:Zf(s.type)&&cg(s);break;case 4:yh(s,s.stateNode.containerInfo);break;case 10:var a=s.type._context,o=s.memoizedProps.value;G(Wg,a._currentValue),a._currentValue=o;break;case 13:if(a=s.memoizedState,a!==null)return a.dehydrated!==null?(G(L,L.current&1),s.flags|=128,null):i&s.child.childLanes?oj(e,s,i):(G(L,L.current&1),e=Zi(e,s,i),e!==null?e.sibling:null);G(L,L.current&1);break;case 19:if(a=(i&s.childLanes)!==0,e.flags&128){if(a)return xj(e,s,i);s.flags|=128}if(o=s.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),G(L,L.current),a)break;return null;case 22:case 23:return s.lanes=0,dj(e,s,i)}return Zi(e,s,i)}var zj,Aj,Bj,Cj;zj=function(e,s){for(var i=s.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};Aj=function(){};Bj=function(e,s,i,a){var o=e.memoizedProps;if(o!==a){e=s.stateNode,xh(uh.current);var c=null;switch(i){case"input":o=Ya(e,o),a=Ya(e,a),c=[];break;case"select":o=A({},o,{value:void 0}),a=A({},a,{value:void 0}),c=[];break;case"textarea":o=gb(e,o),a=gb(e,a),c=[];break;default:typeof o.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Bf)}ub(i,a);var g;i=null;for($ in o)if(!a.hasOwnProperty($)&&o.hasOwnProperty($)&&o[$]!=null)if($==="style"){var _=o[$];for(g in _)_.hasOwnProperty(g)&&(i||(i={}),i[g]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(ea.hasOwnProperty($)?c||(c=[]):(c=c||[]).push($,null));for($ in a){var b=a[$];if(_=o!=null?o[$]:void 0,a.hasOwnProperty($)&&b!==_&&(b!=null||_!=null))if($==="style")if(_){for(g in _)!_.hasOwnProperty(g)||b&&b.hasOwnProperty(g)||(i||(i={}),i[g]="");for(g in b)b.hasOwnProperty(g)&&_[g]!==b[g]&&(i||(i={}),i[g]=b[g])}else i||(c||(c=[]),c.push($,i)),i=b;else $==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,_=_?_.__html:void 0,b!=null&&_!==b&&(c=c||[]).push($,b)):$==="children"?typeof b!="string"&&typeof b!="number"||(c=c||[]).push($,""+b):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(ea.hasOwnProperty($)?(b!=null&&$==="onScroll"&&D("scroll",e),c||_===b||(c=[])):(c=c||[]).push($,b))}i&&(c=c||[]).push("style",i);var $=c;(s.updateQueue=$)&&(s.flags|=4)}};Cj=function(e,s,i,a){i!==a&&(s.flags|=4)};function Dj(e,s){if(!I)switch(e.tailMode){case"hidden":s=e.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?s||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function S(e){var s=e.alternate!==null&&e.alternate.child===e.child,i=0,a=0;if(s)for(var o=e.child;o!==null;)i|=o.lanes|o.childLanes,a|=o.subtreeFlags&14680064,a|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)i|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=i,s}function Ej(e,s,i){var a=s.pendingProps;switch(wg(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(s),null;case 1:return Zf(s.type)&&$f(),S(s),null;case 3:return a=s.stateNode,zh(),E(Wf),E(H),Eh(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Gg(s)?s.flags|=4:e===null||e.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,zg!==null&&(Fj(zg),zg=null))),Aj(e,s),S(s),null;case 5:Bh(s);var o=xh(wh.current);if(i=s.type,e!==null&&s.stateNode!=null)Bj(e,s,i,a,o),e.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!a){if(s.stateNode===null)throw Error(p$1(166));return S(s),null}if(e=xh(uh.current),Gg(s)){a=s.stateNode,i=s.type;var c=s.memoizedProps;switch(a[Of]=s,a[Pf]=c,e=(s.mode&1)!==0,i){case"dialog":D("cancel",a),D("close",a);break;case"iframe":case"object":case"embed":D("load",a);break;case"video":case"audio":for(o=0;o<lf.length;o++)D(lf[o],a);break;case"source":D("error",a);break;case"img":case"image":case"link":D("error",a),D("load",a);break;case"details":D("toggle",a);break;case"input":Za(a,c),D("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!c.multiple},D("invalid",a);break;case"textarea":hb(a,c),D("invalid",a)}ub(i,c),o=null;for(var g in c)if(c.hasOwnProperty(g)){var _=c[g];g==="children"?typeof _=="string"?a.textContent!==_&&(c.suppressHydrationWarning!==!0&&Af(a.textContent,_,e),o=["children",_]):typeof _=="number"&&a.textContent!==""+_&&(c.suppressHydrationWarning!==!0&&Af(a.textContent,_,e),o=["children",""+_]):ea.hasOwnProperty(g)&&_!=null&&g==="onScroll"&&D("scroll",a)}switch(i){case"input":Va(a),db(a,c,!0);break;case"textarea":Va(a),jb(a);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(a.onclick=Bf)}a=o,s.updateQueue=a,a!==null&&(s.flags|=4)}else{g=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=kb(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=g.createElement(i,{is:a.is}):(e=g.createElement(i),i==="select"&&(g=e,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):e=g.createElementNS(e,i),e[Of]=s,e[Pf]=a,zj(e,s,!1,!1),s.stateNode=e;e:{switch(g=vb(i,a),i){case"dialog":D("cancel",e),D("close",e),o=a;break;case"iframe":case"object":case"embed":D("load",e),o=a;break;case"video":case"audio":for(o=0;o<lf.length;o++)D(lf[o],e);o=a;break;case"source":D("error",e),o=a;break;case"img":case"image":case"link":D("error",e),D("load",e),o=a;break;case"details":D("toggle",e),o=a;break;case"input":Za(e,a),o=Ya(e,a),D("invalid",e);break;case"option":o=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},o=A({},a,{value:void 0}),D("invalid",e);break;case"textarea":hb(e,a),o=gb(e,a),D("invalid",e);break;default:o=a}ub(i,o),_=o;for(c in _)if(_.hasOwnProperty(c)){var b=_[c];c==="style"?sb(e,b):c==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&nb(e,b)):c==="children"?typeof b=="string"?(i!=="textarea"||b!=="")&&ob(e,b):typeof b=="number"&&ob(e,""+b):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ea.hasOwnProperty(c)?b!=null&&c==="onScroll"&&D("scroll",e):b!=null&&ta(e,c,b,g))}switch(i){case"input":Va(e),db(e,a,!1);break;case"textarea":Va(e),jb(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Sa(a.value));break;case"select":e.multiple=!!a.multiple,c=a.value,c!=null?fb(e,!!a.multiple,c,!1):a.defaultValue!=null&&fb(e,!!a.multiple,a.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Bf)}switch(i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return S(s),null;case 6:if(e&&s.stateNode!=null)Cj(e,s,e.memoizedProps,a);else{if(typeof a!="string"&&s.stateNode===null)throw Error(p$1(166));if(i=xh(wh.current),xh(uh.current),Gg(s)){if(a=s.stateNode,i=s.memoizedProps,a[Of]=s,(c=a.nodeValue!==i)&&(e=xg,e!==null))switch(e.tag){case 3:Af(a.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Af(a.nodeValue,i,(e.mode&1)!==0)}c&&(s.flags|=4)}else a=(i.nodeType===9?i:i.ownerDocument).createTextNode(a),a[Of]=s,s.stateNode=a}return S(s),null;case 13:if(E(L),a=s.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(I&&yg!==null&&s.mode&1&&!(s.flags&128))Hg(),Ig(),s.flags|=98560,c=!1;else if(c=Gg(s),a!==null&&a.dehydrated!==null){if(e===null){if(!c)throw Error(p$1(318));if(c=s.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(p$1(317));c[Of]=s}else Ig(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;S(s),c=!1}else zg!==null&&(Fj(zg),zg=null),c=!0;if(!c)return s.flags&65536?s:null}return s.flags&128?(s.lanes=i,s):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(s.child.flags|=8192,s.mode&1&&(e===null||L.current&1?T===0&&(T=3):tj())),s.updateQueue!==null&&(s.flags|=4),S(s),null);case 4:return zh(),Aj(e,s),e===null&&sf(s.stateNode.containerInfo),S(s),null;case 10:return ah(s.type._context),S(s),null;case 17:return Zf(s.type)&&$f(),S(s),null;case 19:if(E(L),c=s.memoizedState,c===null)return S(s),null;if(a=(s.flags&128)!==0,g=c.rendering,g===null)if(a)Dj(c,!1);else{if(T!==0||e!==null&&e.flags&128)for(e=s.child;e!==null;){if(g=Ch(e),g!==null){for(s.flags|=128,Dj(c,!1),a=g.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),s.subtreeFlags=0,a=i,i=s.child;i!==null;)c=i,e=a,c.flags&=14680066,g=c.alternate,g===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=g.childLanes,c.lanes=g.lanes,c.child=g.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=g.memoizedProps,c.memoizedState=g.memoizedState,c.updateQueue=g.updateQueue,c.type=g.type,e=g.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return G(L,L.current&1|2),s.child}e=e.sibling}c.tail!==null&&B()>Gj&&(s.flags|=128,a=!0,Dj(c,!1),s.lanes=4194304)}else{if(!a)if(e=Ch(g),e!==null){if(s.flags|=128,a=!0,i=e.updateQueue,i!==null&&(s.updateQueue=i,s.flags|=4),Dj(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!I)return S(s),null}else 2*B()-c.renderingStartTime>Gj&&i!==1073741824&&(s.flags|=128,a=!0,Dj(c,!1),s.lanes=4194304);c.isBackwards?(g.sibling=s.child,s.child=g):(i=c.last,i!==null?i.sibling=g:s.child=g,c.last=g)}return c.tail!==null?(s=c.tail,c.rendering=s,c.tail=s.sibling,c.renderingStartTime=B(),s.sibling=null,i=L.current,G(L,a?i&1|2:i&1),s):(S(s),null);case 22:case 23:return Hj(),a=s.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(s.flags|=8192),a&&s.mode&1?fj&1073741824&&(S(s),s.subtreeFlags&6&&(s.flags|=8192)):S(s),null;case 24:return null;case 25:return null}throw Error(p$1(156,s.tag))}function Ij(e,s){switch(wg(s),s.tag){case 1:return Zf(s.type)&&$f(),e=s.flags,e&65536?(s.flags=e&-65537|128,s):null;case 3:return zh(),E(Wf),E(H),Eh(),e=s.flags,e&65536&&!(e&128)?(s.flags=e&-65537|128,s):null;case 5:return Bh(s),null;case 13:if(E(L),e=s.memoizedState,e!==null&&e.dehydrated!==null){if(s.alternate===null)throw Error(p$1(340));Ig()}return e=s.flags,e&65536?(s.flags=e&-65537|128,s):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(s.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(e,s){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(a){W(e,s,a)}else i.current=null}function Mj(e,s,i){try{i()}catch(a){W(e,s,a)}}var Nj=!1;function Oj(e,s){if(Cf=dd,e=Me(),Ne(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var g=0,_=-1,b=-1,$=0,et=0,ot=e,rt=null;t:for(;;){for(var at;ot!==i||o!==0&&ot.nodeType!==3||(_=g+o),ot!==c||a!==0&&ot.nodeType!==3||(b=g+a),ot.nodeType===3&&(g+=ot.nodeValue.length),(at=ot.firstChild)!==null;)rt=ot,ot=at;for(;;){if(ot===e)break t;if(rt===i&&++$===o&&(_=g),rt===c&&++et===a&&(b=g),(at=ot.nextSibling)!==null)break;ot=rt,rt=ot.parentNode}ot=at}i=_===-1||b===-1?null:{start:_,end:b}}else i=null}i=i||{start:0,end:0}}else i=null;for(Df={focusedElem:e,selectionRange:i},dd=!1,V=s;V!==null;)if(s=V,e=s.child,(s.subtreeFlags&1028)!==0&&e!==null)e.return=s,V=e;else for(;V!==null;){s=V;try{var it=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(it!==null){var nt=it.memoizedProps,dt=it.memoizedState,_e=s.stateNode,tt=_e.getSnapshotBeforeUpdate(s.elementType===s.type?nt:Ci(s.type,nt),dt);_e.__reactInternalSnapshotBeforeUpdate=tt}break;case 3:var j=s.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$1(163))}}catch(st){W(s,s.return,st)}if(e=s.sibling,e!==null){e.return=s.return,V=e;break}V=s.return}return it=Nj,Nj=!1,it}function Pj(e,s,i){var a=s.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var c=o.destroy;o.destroy=void 0,c!==void 0&&Mj(s,i,c)}o=o.next}while(o!==a)}}function Qj(e,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&e)===e){var a=i.create;i.destroy=a()}i=i.next}while(i!==s)}}function Rj(e){var s=e.ref;if(s!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof s=="function"?s(e):s.current=e}}function Sj(e){var s=e.alternate;s!==null&&(e.alternate=null,Sj(s)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(s=e.stateNode,s!==null&&(delete s[Of],delete s[Pf],delete s[of],delete s[Qf],delete s[Rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tj(e){return e.tag===5||e.tag===3||e.tag===4}function Uj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vj(e,s,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,s?i.nodeType===8?i.parentNode.insertBefore(e,s):i.insertBefore(e,s):(i.nodeType===8?(s=i.parentNode,s.insertBefore(e,i)):(s=i,s.appendChild(e)),i=i._reactRootContainer,i!=null||s.onclick!==null||(s.onclick=Bf));else if(a!==4&&(e=e.child,e!==null))for(Vj(e,s,i),e=e.sibling;e!==null;)Vj(e,s,i),e=e.sibling}function Wj(e,s,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,s?i.insertBefore(e,s):i.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Wj(e,s,i),e=e.sibling;e!==null;)Wj(e,s,i),e=e.sibling}var X=null,Xj=!1;function Yj(e,s,i){for(i=i.child;i!==null;)Zj(e,s,i),i=i.sibling}function Zj(e,s,i){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,i)}catch{}switch(i.tag){case 5:U||Lj(i,s);case 6:var a=X,o=Xj;X=null,Yj(e,s,i),X=a,Xj=o,X!==null&&(Xj?(e=X,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):X.removeChild(i.stateNode));break;case 18:X!==null&&(Xj?(e=X,i=i.stateNode,e.nodeType===8?Kf(e.parentNode,i):e.nodeType===1&&Kf(e,i),bd(e)):Kf(X,i.stateNode));break;case 4:a=X,o=Xj,X=i.stateNode.containerInfo,Xj=!0,Yj(e,s,i),X=a,Xj=o;break;case 0:case 11:case 14:case 15:if(!U&&(a=i.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){o=a=a.next;do{var c=o,g=c.destroy;c=c.tag,g!==void 0&&(c&2||c&4)&&Mj(i,s,g),o=o.next}while(o!==a)}Yj(e,s,i);break;case 1:if(!U&&(Lj(i,s),a=i.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(_){W(i,s,_)}Yj(e,s,i);break;case 21:Yj(e,s,i);break;case 22:i.mode&1?(U=(a=U)||i.memoizedState!==null,Yj(e,s,i),U=a):Yj(e,s,i);break;default:Yj(e,s,i)}}function ak(e){var s=e.updateQueue;if(s!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Kj),s.forEach(function(a){var o=bk.bind(null,e,a);i.has(a)||(i.add(a),a.then(o,o))})}}function ck(e,s){var i=s.deletions;if(i!==null)for(var a=0;a<i.length;a++){var o=i[a];try{var c=e,g=s,_=g;e:for(;_!==null;){switch(_.tag){case 5:X=_.stateNode,Xj=!1;break e;case 3:X=_.stateNode.containerInfo,Xj=!0;break e;case 4:X=_.stateNode.containerInfo,Xj=!0;break e}_=_.return}if(X===null)throw Error(p$1(160));Zj(c,g,o),X=null,Xj=!1;var b=o.alternate;b!==null&&(b.return=null),o.return=null}catch($){W(o,s,$)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)dk(s,e),s=s.sibling}function dk(e,s){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ck(s,e),ek(e),a&4){try{Pj(3,e,e.return),Qj(3,e)}catch(nt){W(e,e.return,nt)}try{Pj(5,e,e.return)}catch(nt){W(e,e.return,nt)}}break;case 1:ck(s,e),ek(e),a&512&&i!==null&&Lj(i,i.return);break;case 5:if(ck(s,e),ek(e),a&512&&i!==null&&Lj(i,i.return),e.flags&32){var o=e.stateNode;try{ob(o,"")}catch(nt){W(e,e.return,nt)}}if(a&4&&(o=e.stateNode,o!=null)){var c=e.memoizedProps,g=i!==null?i.memoizedProps:c,_=e.type,b=e.updateQueue;if(e.updateQueue=null,b!==null)try{_==="input"&&c.type==="radio"&&c.name!=null&&ab(o,c),vb(_,g);var $=vb(_,c);for(g=0;g<b.length;g+=2){var et=b[g],ot=b[g+1];et==="style"?sb(o,ot):et==="dangerouslySetInnerHTML"?nb(o,ot):et==="children"?ob(o,ot):ta(o,et,ot,$)}switch(_){case"input":bb(o,c);break;case"textarea":ib(o,c);break;case"select":var rt=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!c.multiple;var at=c.value;at!=null?fb(o,!!c.multiple,at,!1):rt!==!!c.multiple&&(c.defaultValue!=null?fb(o,!!c.multiple,c.defaultValue,!0):fb(o,!!c.multiple,c.multiple?[]:"",!1))}o[Pf]=c}catch(nt){W(e,e.return,nt)}}break;case 6:if(ck(s,e),ek(e),a&4){if(e.stateNode===null)throw Error(p$1(162));o=e.stateNode,c=e.memoizedProps;try{o.nodeValue=c}catch(nt){W(e,e.return,nt)}}break;case 3:if(ck(s,e),ek(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{bd(s.containerInfo)}catch(nt){W(e,e.return,nt)}break;case 4:ck(s,e),ek(e);break;case 13:ck(s,e),ek(e),o=e.child,o.flags&8192&&(c=o.memoizedState!==null,o.stateNode.isHidden=c,!c||o.alternate!==null&&o.alternate.memoizedState!==null||(fk=B())),a&4&&ak(e);break;case 22:if(et=i!==null&&i.memoizedState!==null,e.mode&1?(U=($=U)||et,ck(s,e),U=$):ck(s,e),ek(e),a&8192){if($=e.memoizedState!==null,(e.stateNode.isHidden=$)&&!et&&e.mode&1)for(V=e,et=e.child;et!==null;){for(ot=V=et;V!==null;){switch(rt=V,at=rt.child,rt.tag){case 0:case 11:case 14:case 15:Pj(4,rt,rt.return);break;case 1:Lj(rt,rt.return);var it=rt.stateNode;if(typeof it.componentWillUnmount=="function"){a=rt,i=rt.return;try{s=a,it.props=s.memoizedProps,it.state=s.memoizedState,it.componentWillUnmount()}catch(nt){W(a,i,nt)}}break;case 5:Lj(rt,rt.return);break;case 22:if(rt.memoizedState!==null){gk(ot);continue}}at!==null?(at.return=rt,V=at):gk(ot)}et=et.sibling}e:for(et=null,ot=e;;){if(ot.tag===5){if(et===null){et=ot;try{o=ot.stateNode,$?(c=o.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(_=ot.stateNode,b=ot.memoizedProps.style,g=b!=null&&b.hasOwnProperty("display")?b.display:null,_.style.display=rb("display",g))}catch(nt){W(e,e.return,nt)}}}else if(ot.tag===6){if(et===null)try{ot.stateNode.nodeValue=$?"":ot.memoizedProps}catch(nt){W(e,e.return,nt)}}else if((ot.tag!==22&&ot.tag!==23||ot.memoizedState===null||ot===e)&&ot.child!==null){ot.child.return=ot,ot=ot.child;continue}if(ot===e)break e;for(;ot.sibling===null;){if(ot.return===null||ot.return===e)break e;et===ot&&(et=null),ot=ot.return}et===ot&&(et=null),ot.sibling.return=ot.return,ot=ot.sibling}}break;case 19:ck(s,e),ek(e),a&4&&ak(e);break;case 21:break;default:ck(s,e),ek(e)}}function ek(e){var s=e.flags;if(s&2){try{e:{for(var i=e.return;i!==null;){if(Tj(i)){var a=i;break e}i=i.return}throw Error(p$1(160))}switch(a.tag){case 5:var o=a.stateNode;a.flags&32&&(ob(o,""),a.flags&=-33);var c=Uj(e);Wj(e,c,o);break;case 3:case 4:var g=a.stateNode.containerInfo,_=Uj(e);Vj(e,_,g);break;default:throw Error(p$1(161))}}catch(b){W(e,e.return,b)}e.flags&=-3}s&4096&&(e.flags&=-4097)}function hk(e,s,i){V=e,ik(e)}function ik(e,s,i){for(var a=(e.mode&1)!==0;V!==null;){var o=V,c=o.child;if(o.tag===22&&a){var g=o.memoizedState!==null||Jj;if(!g){var _=o.alternate,b=_!==null&&_.memoizedState!==null||U;_=Jj;var $=U;if(Jj=g,(U=b)&&!$)for(V=o;V!==null;)g=V,b=g.child,g.tag===22&&g.memoizedState!==null?jk(o):b!==null?(b.return=g,V=b):jk(o);for(;c!==null;)V=c,ik(c),c=c.sibling;V=o,Jj=_,U=$}kk(e)}else o.subtreeFlags&8772&&c!==null?(c.return=o,V=c):kk(e)}}function kk(e){for(;V!==null;){var s=V;if(s.flags&8772){var i=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:U||Qj(5,s);break;case 1:var a=s.stateNode;if(s.flags&4&&!U)if(i===null)a.componentDidMount();else{var o=s.elementType===s.type?i.memoizedProps:Ci(s.type,i.memoizedProps);a.componentDidUpdate(o,i.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var c=s.updateQueue;c!==null&&sh(s,c,a);break;case 3:var g=s.updateQueue;if(g!==null){if(i=null,s.child!==null)switch(s.child.tag){case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}sh(s,g,i)}break;case 5:var _=s.stateNode;if(i===null&&s.flags&4){i=_;var b=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":b.autoFocus&&i.focus();break;case"img":b.src&&(i.src=b.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var $=s.alternate;if($!==null){var et=$.memoizedState;if(et!==null){var ot=et.dehydrated;ot!==null&&bd(ot)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$1(163))}U||s.flags&512&&Rj(s)}catch(rt){W(s,s.return,rt)}}if(s===e){V=null;break}if(i=s.sibling,i!==null){i.return=s.return,V=i;break}V=s.return}}function gk(e){for(;V!==null;){var s=V;if(s===e){V=null;break}var i=s.sibling;if(i!==null){i.return=s.return,V=i;break}V=s.return}}function jk(e){for(;V!==null;){var s=V;try{switch(s.tag){case 0:case 11:case 15:var i=s.return;try{Qj(4,s)}catch(b){W(s,i,b)}break;case 1:var a=s.stateNode;if(typeof a.componentDidMount=="function"){var o=s.return;try{a.componentDidMount()}catch(b){W(s,o,b)}}var c=s.return;try{Rj(s)}catch(b){W(s,c,b)}break;case 5:var g=s.return;try{Rj(s)}catch(b){W(s,g,b)}}}catch(b){W(s,s.return,b)}if(s===e){V=null;break}var _=s.sibling;if(_!==null){_.return=s.return,V=_;break}V=s.return}}var lk=Math.ceil,mk=ua.ReactCurrentDispatcher,nk=ua.ReactCurrentOwner,ok=ua.ReactCurrentBatchConfig,K=0,Q=null,Y=null,Z=0,fj=0,ej=Uf(0),T=0,pk=null,rh=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=1/0,uk=null,Oi=!1,Pi=null,Ri=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R(){return K&6?B():Ak!==-1?Ak:Ak=B()}function yi(e){return e.mode&1?K&2&&Z!==0?Z&-Z:Kg.transition!==null?(Bk===0&&(Bk=yc()),Bk):(e=C,e!==0||(e=window.event,e=e===void 0?16:jd(e.type)),e):1}function gi(e,s,i,a){if(50<yk)throw yk=0,zk=null,Error(p$1(185));Ac(e,i,a),(!(K&2)||e!==Q)&&(e===Q&&(!(K&2)&&(qk|=i),T===4&&Ck(e,Z)),Dk(e,a),i===1&&K===0&&!(s.mode&1)&&(Gj=B()+500,fg&&jg()))}function Dk(e,s){var i=e.callbackNode;wc(e,s);var a=uc(e,e===Q?Z:0);if(a===0)i!==null&&bc(i),e.callbackNode=null,e.callbackPriority=0;else if(s=a&-a,e.callbackPriority!==s){if(i!=null&&bc(i),s===1)e.tag===0?ig(Ek.bind(null,e)):hg(Ek.bind(null,e)),Jf(function(){!(K&6)&&jg()}),i=null;else{switch(Dc(a)){case 1:i=fc;break;case 4:i=gc;break;case 16:i=hc;break;case 536870912:i=jc;break;default:i=hc}i=Fk(i,Gk.bind(null,e))}e.callbackPriority=s,e.callbackNode=i}}function Gk(e,s){if(Ak=-1,Bk=0,K&6)throw Error(p$1(327));var i=e.callbackNode;if(Hk()&&e.callbackNode!==i)return null;var a=uc(e,e===Q?Z:0);if(a===0)return null;if(a&30||a&e.expiredLanes||s)s=Ik(e,a);else{s=a;var o=K;K|=2;var c=Jk();(Q!==e||Z!==s)&&(uk=null,Gj=B()+500,Kk(e,s));do try{Lk();break}catch(_){Mk(e,_)}while(!0);$g(),mk.current=c,K=o,Y!==null?s=0:(Q=null,Z=0,s=T)}if(s!==0){if(s===2&&(o=xc(e),o!==0&&(a=o,s=Nk(e,o))),s===1)throw i=pk,Kk(e,0),Ck(e,a),Dk(e,B()),i;if(s===6)Ck(e,a);else{if(o=e.current.alternate,!(a&30)&&!Ok(o)&&(s=Ik(e,a),s===2&&(c=xc(e),c!==0&&(a=c,s=Nk(e,c))),s===1))throw i=pk,Kk(e,0),Ck(e,a),Dk(e,B()),i;switch(e.finishedWork=o,e.finishedLanes=a,s){case 0:case 1:throw Error(p$1(345));case 2:Pk(e,tk,uk);break;case 3:if(Ck(e,a),(a&130023424)===a&&(s=fk+500-B(),10<s)){if(uc(e,0)!==0)break;if(o=e.suspendedLanes,(o&a)!==a){R(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ff(Pk.bind(null,e,tk,uk),s);break}Pk(e,tk,uk);break;case 4:if(Ck(e,a),(a&4194240)===a)break;for(s=e.eventTimes,o=-1;0<a;){var g=31-oc(a);c=1<<g,g=s[g],g>o&&(o=g),a&=~c}if(a=o,a=B()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*lk(a/1960))-a,10<a){e.timeoutHandle=Ff(Pk.bind(null,e,tk,uk),a);break}Pk(e,tk,uk);break;case 5:Pk(e,tk,uk);break;default:throw Error(p$1(329))}}}return Dk(e,B()),e.callbackNode===i?Gk.bind(null,e):null}function Nk(e,s){var i=sk;return e.current.memoizedState.isDehydrated&&(Kk(e,s).flags|=256),e=Ik(e,s),e!==2&&(s=tk,tk=i,s!==null&&Fj(s)),e}function Fj(e){tk===null?tk=e:tk.push.apply(tk,e)}function Ok(e){for(var s=e;;){if(s.flags&16384){var i=s.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var a=0;a<i.length;a++){var o=i[a],c=o.getSnapshot;o=o.value;try{if(!He(c(),o))return!1}catch{return!1}}}if(i=s.child,s.subtreeFlags&16384&&i!==null)i.return=s,s=i;else{if(s===e)break;for(;s.sibling===null;){if(s.return===null||s.return===e)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ck(e,s){for(s&=~rk,s&=~qk,e.suspendedLanes|=s,e.pingedLanes&=~s,e=e.expirationTimes;0<s;){var i=31-oc(s),a=1<<i;e[i]=-1,s&=~a}}function Ek(e){if(K&6)throw Error(p$1(327));Hk();var s=uc(e,0);if(!(s&1))return Dk(e,B()),null;var i=Ik(e,s);if(e.tag!==0&&i===2){var a=xc(e);a!==0&&(s=a,i=Nk(e,a))}if(i===1)throw i=pk,Kk(e,0),Ck(e,s),Dk(e,B()),i;if(i===6)throw Error(p$1(345));return e.finishedWork=e.current.alternate,e.finishedLanes=s,Pk(e,tk,uk),Dk(e,B()),null}function Qk(e,s){var i=K;K|=1;try{return e(s)}finally{K=i,K===0&&(Gj=B()+500,fg&&jg())}}function Rk(e){wk!==null&&wk.tag===0&&!(K&6)&&Hk();var s=K;K|=1;var i=ok.transition,a=C;try{if(ok.transition=null,C=1,e)return e()}finally{C=a,ok.transition=i,K=s,!(K&6)&&jg()}}function Hj(){fj=ej.current,E(ej)}function Kk(e,s){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,Gf(i)),Y!==null)for(i=Y.return;i!==null;){var a=i;switch(wg(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&$f();break;case 3:zh(),E(Wf),E(H),Eh();break;case 5:Bh(a);break;case 4:zh();break;case 13:E(L);break;case 19:E(L);break;case 10:ah(a.type._context);break;case 22:case 23:Hj()}i=i.return}if(Q=e,Y=e=Pg(e.current,null),Z=fj=s,T=0,pk=null,rk=qk=rh=0,tk=sk=null,fh!==null){for(s=0;s<fh.length;s++)if(i=fh[s],a=i.interleaved,a!==null){i.interleaved=null;var o=a.next,c=i.pending;if(c!==null){var g=c.next;c.next=o,a.next=g}i.pending=a}fh=null}return e}function Mk(e,s){do{var i=Y;try{if($g(),Fh.current=Rh,Ih){for(var a=M.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Ih=!1}if(Hh=0,O=N=M=null,Jh=!1,Kh=0,nk.current=null,i===null||i.return===null){T=1,pk=s,Y=null;break}e:{var c=e,g=i.return,_=i,b=s;if(s=Z,_.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){var $=b,et=_,ot=et.tag;if(!(et.mode&1)&&(ot===0||ot===11||ot===15)){var rt=et.alternate;rt?(et.updateQueue=rt.updateQueue,et.memoizedState=rt.memoizedState,et.lanes=rt.lanes):(et.updateQueue=null,et.memoizedState=null)}var at=Ui(g);if(at!==null){at.flags&=-257,Vi(at,g,_,c,s),at.mode&1&&Si(c,$,s),s=at,b=$;var it=s.updateQueue;if(it===null){var nt=new Set;nt.add(b),s.updateQueue=nt}else it.add(b);break e}else{if(!(s&1)){Si(c,$,s),tj();break e}b=Error(p$1(426))}}else if(I&&_.mode&1){var dt=Ui(g);if(dt!==null){!(dt.flags&65536)&&(dt.flags|=256),Vi(dt,g,_,c,s),Jg(Ji(b,_));break e}}c=b=Ji(b,_),T!==4&&(T=2),sk===null?sk=[c]:sk.push(c),c=g;do{switch(c.tag){case 3:c.flags|=65536,s&=-s,c.lanes|=s;var _e=Ni(c,b,s);ph(c,_e);break e;case 1:_=b;var tt=c.type,j=c.stateNode;if(!(c.flags&128)&&(typeof tt.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(Ri===null||!Ri.has(j)))){c.flags|=65536,s&=-s,c.lanes|=s;var st=Qi(c,_,s);ph(c,st);break e}}c=c.return}while(c!==null)}Sk(i)}catch(ut){s=ut,Y===i&&i!==null&&(Y=i=i.return);continue}break}while(!0)}function Jk(){var e=mk.current;return mk.current=Rh,e===null?Rh:e}function tj(){(T===0||T===3||T===2)&&(T=4),Q===null||!(rh&268435455)&&!(qk&268435455)||Ck(Q,Z)}function Ik(e,s){var i=K;K|=2;var a=Jk();(Q!==e||Z!==s)&&(uk=null,Kk(e,s));do try{Tk();break}catch(o){Mk(e,o)}while(!0);if($g(),K=i,mk.current=a,Y!==null)throw Error(p$1(261));return Q=null,Z=0,T}function Tk(){for(;Y!==null;)Uk(Y)}function Lk(){for(;Y!==null&&!cc();)Uk(Y)}function Uk(e){var s=Vk(e.alternate,e,fj);e.memoizedProps=e.pendingProps,s===null?Sk(e):Y=s,nk.current=null}function Sk(e){var s=e;do{var i=s.alternate;if(e=s.return,s.flags&32768){if(i=Ij(i,s),i!==null){i.flags&=32767,Y=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{T=6,Y=null;return}}else if(i=Ej(i,s,fj),i!==null){Y=i;return}if(s=s.sibling,s!==null){Y=s;return}Y=s=e}while(s!==null);T===0&&(T=5)}function Pk(e,s,i){var a=C,o=ok.transition;try{ok.transition=null,C=1,Wk(e,s,i,a)}finally{ok.transition=o,C=a}return null}function Wk(e,s,i,a){do Hk();while(wk!==null);if(K&6)throw Error(p$1(327));i=e.finishedWork;var o=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(p$1(177));e.callbackNode=null,e.callbackPriority=0;var c=i.lanes|i.childLanes;if(Bc(e,c),e===Q&&(Y=Q=null,Z=0),!(i.subtreeFlags&2064)&&!(i.flags&2064)||vk||(vk=!0,Fk(hc,function(){return Hk(),null})),c=(i.flags&15990)!==0,i.subtreeFlags&15990||c){c=ok.transition,ok.transition=null;var g=C;C=1;var _=K;K|=4,nk.current=null,Oj(e,i),dk(i,e),Oe(Df),dd=!!Cf,Df=Cf=null,e.current=i,hk(i),dc(),K=_,C=g,ok.transition=c}else e.current=i;if(vk&&(vk=!1,wk=e,xk=o),c=e.pendingLanes,c===0&&(Ri=null),mc(i.stateNode),Dk(e,B()),s!==null)for(a=e.onRecoverableError,i=0;i<s.length;i++)o=s[i],a(o.value,{componentStack:o.stack,digest:o.digest});if(Oi)throw Oi=!1,e=Pi,Pi=null,e;return xk&1&&e.tag!==0&&Hk(),c=e.pendingLanes,c&1?e===zk?yk++:(yk=0,zk=e):yk=0,jg(),null}function Hk(){if(wk!==null){var e=Dc(xk),s=ok.transition,i=C;try{if(ok.transition=null,C=16>e?16:e,wk===null)var a=!1;else{if(e=wk,wk=null,xk=0,K&6)throw Error(p$1(331));var o=K;for(K|=4,V=e.current;V!==null;){var c=V,g=c.child;if(V.flags&16){var _=c.deletions;if(_!==null){for(var b=0;b<_.length;b++){var $=_[b];for(V=$;V!==null;){var et=V;switch(et.tag){case 0:case 11:case 15:Pj(8,et,c)}var ot=et.child;if(ot!==null)ot.return=et,V=ot;else for(;V!==null;){et=V;var rt=et.sibling,at=et.return;if(Sj(et),et===$){V=null;break}if(rt!==null){rt.return=at,V=rt;break}V=at}}}var it=c.alternate;if(it!==null){var nt=it.child;if(nt!==null){it.child=null;do{var dt=nt.sibling;nt.sibling=null,nt=dt}while(nt!==null)}}V=c}}if(c.subtreeFlags&2064&&g!==null)g.return=c,V=g;else e:for(;V!==null;){if(c=V,c.flags&2048)switch(c.tag){case 0:case 11:case 15:Pj(9,c,c.return)}var _e=c.sibling;if(_e!==null){_e.return=c.return,V=_e;break e}V=c.return}}var tt=e.current;for(V=tt;V!==null;){g=V;var j=g.child;if(g.subtreeFlags&2064&&j!==null)j.return=g,V=j;else e:for(g=tt;V!==null;){if(_=V,_.flags&2048)try{switch(_.tag){case 0:case 11:case 15:Qj(9,_)}}catch(ut){W(_,_.return,ut)}if(_===g){V=null;break e}var st=_.sibling;if(st!==null){st.return=_.return,V=st;break e}V=_.return}}if(K=o,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,e)}catch{}a=!0}return a}finally{C=i,ok.transition=s}}return!1}function Xk(e,s,i){s=Ji(i,s),s=Ni(e,s,1),e=nh(e,s,1),s=R(),e!==null&&(Ac(e,1,s),Dk(e,s))}function W(e,s,i){if(e.tag===3)Xk(e,e,i);else for(;s!==null;){if(s.tag===3){Xk(s,e,i);break}else if(s.tag===1){var a=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ri===null||!Ri.has(a))){e=Ji(i,e),e=Qi(s,e,1),s=nh(s,e,1),e=R(),s!==null&&(Ac(s,1,e),Dk(s,e));break}}s=s.return}}function Ti(e,s,i){var a=e.pingCache;a!==null&&a.delete(s),s=R(),e.pingedLanes|=e.suspendedLanes&i,Q===e&&(Z&i)===i&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-fk?Kk(e,0):rk|=i),Dk(e,s)}function Yk(e,s){s===0&&(e.mode&1?(s=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):s=1);var i=R();e=ih(e,s),e!==null&&(Ac(e,s,i),Dk(e,i))}function uj(e){var s=e.memoizedState,i=0;s!==null&&(i=s.retryLane),Yk(e,i)}function bk(e,s){var i=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(i=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(p$1(314))}a!==null&&a.delete(s),Yk(e,i)}var Vk;Vk=function(e,s,i){if(e!==null)if(e.memoizedProps!==s.pendingProps||Wf.current)dh=!0;else{if(!(e.lanes&i)&&!(s.flags&128))return dh=!1,yj(e,s,i);dh=!!(e.flags&131072)}else dh=!1,I&&s.flags&1048576&&ug(s,ng,s.index);switch(s.lanes=0,s.tag){case 2:var a=s.type;ij(e,s),e=s.pendingProps;var o=Yf(s,H.current);ch(s,i),o=Nh(null,s,a,e,o,i);var c=Sh();return s.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Zf(a)?(c=!0,cg(s)):c=!1,s.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,kh(s),o.updater=Ei,s.stateNode=o,o._reactInternals=s,Ii(s,a,e,i),s=jj(null,s,a,!0,c,i)):(s.tag=0,I&&c&&vg(s),Xi(null,s,o,i),s=s.child),s;case 16:a=s.elementType;e:{switch(ij(e,s),e=s.pendingProps,o=a._init,a=o(a._payload),s.type=a,o=s.tag=Zk(a),e=Ci(a,e),o){case 0:s=cj(null,s,a,e,i);break e;case 1:s=hj(null,s,a,e,i);break e;case 11:s=Yi(null,s,a,e,i);break e;case 14:s=$i(null,s,a,Ci(a.type,e),i);break e}throw Error(p$1(306,a,""))}return s;case 0:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),cj(e,s,a,o,i);case 1:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),hj(e,s,a,o,i);case 3:e:{if(kj(s),e===null)throw Error(p$1(387));a=s.pendingProps,c=s.memoizedState,o=c.element,lh(e,s),qh(s,a,null,i);var g=s.memoizedState;if(a=g.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},s.updateQueue.baseState=c,s.memoizedState=c,s.flags&256){o=Ji(Error(p$1(423)),s),s=lj(e,s,a,i,o);break e}else if(a!==o){o=Ji(Error(p$1(424)),s),s=lj(e,s,a,i,o);break e}else for(yg=Lf(s.stateNode.containerInfo.firstChild),xg=s,I=!0,zg=null,i=Vg(s,null,a,i),s.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ig(),a===o){s=Zi(e,s,i);break e}Xi(e,s,a,i)}s=s.child}return s;case 5:return Ah(s),e===null&&Eg(s),a=s.type,o=s.pendingProps,c=e!==null?e.memoizedProps:null,g=o.children,Ef(a,o)?g=null:c!==null&&Ef(a,c)&&(s.flags|=32),gj(e,s),Xi(e,s,g,i),s.child;case 6:return e===null&&Eg(s),null;case 13:return oj(e,s,i);case 4:return yh(s,s.stateNode.containerInfo),a=s.pendingProps,e===null?s.child=Ug(s,null,a,i):Xi(e,s,a,i),s.child;case 11:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),Yi(e,s,a,o,i);case 7:return Xi(e,s,s.pendingProps,i),s.child;case 8:return Xi(e,s,s.pendingProps.children,i),s.child;case 12:return Xi(e,s,s.pendingProps.children,i),s.child;case 10:e:{if(a=s.type._context,o=s.pendingProps,c=s.memoizedProps,g=o.value,G(Wg,a._currentValue),a._currentValue=g,c!==null)if(He(c.value,g)){if(c.children===o.children&&!Wf.current){s=Zi(e,s,i);break e}}else for(c=s.child,c!==null&&(c.return=s);c!==null;){var _=c.dependencies;if(_!==null){g=c.child;for(var b=_.firstContext;b!==null;){if(b.context===a){if(c.tag===1){b=mh(-1,i&-i),b.tag=2;var $=c.updateQueue;if($!==null){$=$.shared;var et=$.pending;et===null?b.next=b:(b.next=et.next,et.next=b),$.pending=b}}c.lanes|=i,b=c.alternate,b!==null&&(b.lanes|=i),bh(c.return,i,s),_.lanes|=i;break}b=b.next}}else if(c.tag===10)g=c.type===s.type?null:c.child;else if(c.tag===18){if(g=c.return,g===null)throw Error(p$1(341));g.lanes|=i,_=g.alternate,_!==null&&(_.lanes|=i),bh(g,i,s),g=c.sibling}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===s){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}Xi(e,s,o.children,i),s=s.child}return s;case 9:return o=s.type,a=s.pendingProps.children,ch(s,i),o=eh(o),a=a(o),s.flags|=1,Xi(e,s,a,i),s.child;case 14:return a=s.type,o=Ci(a,s.pendingProps),o=Ci(a.type,o),$i(e,s,a,o,i);case 15:return bj(e,s,s.type,s.pendingProps,i);case 17:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),ij(e,s),s.tag=1,Zf(a)?(e=!0,cg(s)):e=!1,ch(s,i),Gi(s,a,o),Ii(s,a,o,i),jj(null,s,a,!0,e,i);case 19:return xj(e,s,i);case 22:return dj(e,s,i)}throw Error(p$1(156,s.tag))};function Fk(e,s){return ac(e,s)}function $k(e,s,i,a){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(e,s,i,a){return new $k(e,s,i,a)}function aj(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zk(e){if(typeof e=="function")return aj(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Da)return 11;if(e===Ga)return 14}return 2}function Pg(e,s){var i=e.alternate;return i===null?(i=Bg(e.tag,s,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=s,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Rg(e,s,i,a,o,c){var g=2;if(a=e,typeof e=="function")aj(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case ya:return Tg(i.children,o,c,s);case za:g=8,o|=8;break;case Aa:return e=Bg(12,i,s,o|2),e.elementType=Aa,e.lanes=c,e;case Ea:return e=Bg(13,i,s,o),e.elementType=Ea,e.lanes=c,e;case Fa:return e=Bg(19,i,s,o),e.elementType=Fa,e.lanes=c,e;case Ia:return pj(i,o,c,s);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ba:g=10;break e;case Ca:g=9;break e;case Da:g=11;break e;case Ga:g=14;break e;case Ha:g=16,a=null;break e}throw Error(p$1(130,e==null?e:typeof e,""))}return s=Bg(g,i,s,o),s.elementType=e,s.type=a,s.lanes=c,s}function Tg(e,s,i,a){return e=Bg(7,e,a,s),e.lanes=i,e}function pj(e,s,i,a){return e=Bg(22,e,a,s),e.elementType=Ia,e.lanes=i,e.stateNode={isHidden:!1},e}function Qg(e,s,i){return e=Bg(6,e,null,s),e.lanes=i,e}function Sg(e,s,i){return s=Bg(4,e.children!==null?e.children:[],e.key,s),s.lanes=i,s.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},s}function al(e,s,i,a,o){this.tag=s,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=a,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function bl(e,s,i,a,o,c,g,_,b){return e=new al(e,s,i,_,b),s===1?(s=1,c===!0&&(s|=8)):s=0,c=Bg(3,null,null,s),e.current=c,c.stateNode=e,c.memoizedState={element:a,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(c),e}function cl(e,s,i){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:a==null?null:""+a,children:e,containerInfo:s,implementation:i}}function dl(e){if(!e)return Vf;e=e._reactInternals;e:{if(Vb(e)!==e||e.tag!==1)throw Error(p$1(170));var s=e;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Zf(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(p$1(171))}if(e.tag===1){var i=e.type;if(Zf(i))return bg(e,i,s)}return s}function el(e,s,i,a,o,c,g,_,b){return e=bl(i,a,!0,e,o,c,g,_,b),e.context=dl(null),i=e.current,a=R(),o=yi(i),c=mh(a,o),c.callback=s??null,nh(i,c,o),e.current.lanes=o,Ac(e,o,a),Dk(e,a),e}function fl(e,s,i,a){var o=s.current,c=R(),g=yi(o);return i=dl(i),s.context===null?s.context=i:s.pendingContext=i,s=mh(c,g),s.payload={element:e},a=a===void 0?null:a,a!==null&&(s.callback=a),e=nh(o,s,g),e!==null&&(gi(e,o,g,c),oh(e,o,g)),g}function gl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function hl(e,s){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<s?i:s}}function il(e,s){hl(e,s),(e=e.alternate)&&hl(e,s)}function jl(){return null}var kl=typeof reportError=="function"?reportError:function(e){console.error(e)};function ll(e){this._internalRoot=e}ml.prototype.render=ll.prototype.render=function(e){var s=this._internalRoot;if(s===null)throw Error(p$1(409));fl(e,s,null,null)};ml.prototype.unmount=ll.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var s=e.containerInfo;Rk(function(){fl(null,e,null,null)}),s[uf]=null}};function ml(e){this._internalRoot=e}ml.prototype.unstable_scheduleHydration=function(e){if(e){var s=Hc();e={blockedOn:null,target:e,priority:s};for(var i=0;i<Qc.length&&s!==0&&s<Qc[i].priority;i++);Qc.splice(i,0,e),i===0&&Vc(e)}};function nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ol(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pl(){}function ql(e,s,i,a,o){if(o){if(typeof a=="function"){var c=a;a=function(){var $=gl(g);c.call($)}}var g=el(s,a,e,0,null,!1,!1,"",pl);return e._reactRootContainer=g,e[uf]=g.current,sf(e.nodeType===8?e.parentNode:e),Rk(),g}for(;o=e.lastChild;)e.removeChild(o);if(typeof a=="function"){var _=a;a=function(){var $=gl(b);_.call($)}}var b=bl(e,0,!1,null,null,!1,!1,"",pl);return e._reactRootContainer=b,e[uf]=b.current,sf(e.nodeType===8?e.parentNode:e),Rk(function(){fl(s,b,i,a)}),b}function rl(e,s,i,a,o){var c=i._reactRootContainer;if(c){var g=c;if(typeof o=="function"){var _=o;o=function(){var b=gl(g);_.call(b)}}fl(s,g,e,o)}else g=ql(i,s,e,o,a);return gl(g)}Ec=function(e){switch(e.tag){case 3:var s=e.stateNode;if(s.current.memoizedState.isDehydrated){var i=tc(s.pendingLanes);i!==0&&(Cc(s,i|1),Dk(s,B()),!(K&6)&&(Gj=B()+500,jg()))}break;case 13:Rk(function(){var a=ih(e,1);if(a!==null){var o=R();gi(a,e,1,o)}}),il(e,1)}};Fc=function(e){if(e.tag===13){var s=ih(e,134217728);if(s!==null){var i=R();gi(s,e,134217728,i)}il(e,134217728)}};Gc=function(e){if(e.tag===13){var s=yi(e),i=ih(e,s);if(i!==null){var a=R();gi(i,e,s,a)}il(e,s)}};Hc=function(){return C};Ic=function(e,s){var i=C;try{return C=e,s()}finally{C=i}};yb=function(e,s,i){switch(s){case"input":if(bb(e,i),s=i.name,i.type==="radio"&&s!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<i.length;s++){var a=i[s];if(a!==e&&a.form===e.form){var o=Db(a);if(!o)throw Error(p$1(90));Wa(a),bb(a,o)}}}break;case"textarea":ib(e,i);break;case"select":s=i.value,s!=null&&fb(e,!!i.multiple,s,!1)}};Gb=Qk;Hb=Rk;var sl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zb(e),e===null?null:e.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||jl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl;reactDom_production_min.createPortal=function(e,s){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nl(s))throw Error(p$1(200));return cl(e,s,null,i)};reactDom_production_min.createRoot=function(e,s){if(!nl(e))throw Error(p$1(299));var i=!1,a="",o=kl;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(a=s.identifierPrefix),s.onRecoverableError!==void 0&&(o=s.onRecoverableError)),s=bl(e,1,!1,null,null,i,!1,a,o),e[uf]=s.current,sf(e.nodeType===8?e.parentNode:e),new ll(s)};reactDom_production_min.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var s=e._reactInternals;if(s===void 0)throw typeof e.render=="function"?Error(p$1(188)):(e=Object.keys(e).join(","),Error(p$1(268,e)));return e=Zb(s),e=e===null?null:e.stateNode,e};reactDom_production_min.flushSync=function(e){return Rk(e)};reactDom_production_min.hydrate=function(e,s,i){if(!ol(s))throw Error(p$1(200));return rl(null,e,s,!0,i)};reactDom_production_min.hydrateRoot=function(e,s,i){if(!nl(e))throw Error(p$1(405));var a=i!=null&&i.hydratedSources||null,o=!1,c="",g=kl;if(i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),s=el(s,null,e,1,i??null,o,!1,c,g),e[uf]=s.current,sf(e),a)for(e=0;e<a.length;e++)i=a[e],o=i._getVersion,o=o(i._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[i,o]:s.mutableSourceEagerHydrationData.push(i,o);return new ml(s)};reactDom_production_min.render=function(e,s,i){if(!ol(s))throw Error(p$1(200));return rl(null,e,s,!1,i)};reactDom_production_min.unmountComponentAtNode=function(e){if(!ol(e))throw Error(p$1(40));return e._reactRootContainer?(Rk(function(){rl(null,null,e,!1,function(){e._reactRootContainer=null,e[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Qk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(e,s,i,a){if(!ol(i))throw Error(p$1(200));if(e==null||e._reactInternals===void 0)throw Error(p$1(38));return rl(e,s,i,!1,a)};reactDom_production_min.version="18.3.1-next-f1338f8080-20240426";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(e){console.error(e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports,createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},defaultTimeoutProvider={setTimeout:(e,s)=>setTimeout(e,s),clearTimeout:e=>clearTimeout(e),setInterval:(e,s)=>setInterval(e,s),clearInterval:e=>clearInterval(e)},Ir,ws,Rs,TimeoutManager=(Rs=class{constructor(){Ut(this,Ir,defaultTimeoutProvider);Ut(this,ws,!1)}setTimeoutProvider(e){Ht(this,Ir,e)}setTimeout(e,s){return At(this,Ir).setTimeout(e,s)}clearTimeout(e){At(this,Ir).clearTimeout(e)}setInterval(e,s){return At(this,Ir).setInterval(e,s)}clearInterval(e){At(this,Ir).clearInterval(e)}},Ir=new WeakMap,ws=new WeakMap,Rs),timeoutManager=new TimeoutManager;function systemSetTimeoutZero(e){setTimeout(e,0)}var isServer=typeof window>"u"||"Deno"in globalThis;function noop(){}function functionalUpdate(e,s){return typeof e=="function"?e(s):e}function isValidTimeout(e){return typeof e=="number"&&e>=0&&e!==1/0}function timeUntilStale(e,s){return Math.max(e+(s||0)-Date.now(),0)}function resolveStaleTime(e,s){return typeof e=="function"?e(s):e}function resolveEnabled(e,s){return typeof e=="function"?e(s):e}function matchQuery(e,s){const{type:i="all",exact:a,fetchStatus:o,predicate:c,queryKey:g,stale:_}=e;if(g){if(a){if(s.queryHash!==hashQueryKeyByOptions(g,s.options))return!1}else if(!partialMatchKey(s.queryKey,g))return!1}if(i!=="all"){const b=s.isActive();if(i==="active"&&!b||i==="inactive"&&b)return!1}return!(typeof _=="boolean"&&s.isStale()!==_||o&&o!==s.state.fetchStatus||c&&!c(s))}function matchMutation(e,s){const{exact:i,status:a,predicate:o,mutationKey:c}=e;if(c){if(!s.options.mutationKey)return!1;if(i){if(hashKey(s.options.mutationKey)!==hashKey(c))return!1}else if(!partialMatchKey(s.options.mutationKey,c))return!1}return!(a&&s.state.status!==a||o&&!o(s))}function hashQueryKeyByOptions(e,s){return((s==null?void 0:s.queryKeyHashFn)||hashKey)(e)}function hashKey(e){return JSON.stringify(e,(s,i)=>isPlainObject(i)?Object.keys(i).sort().reduce((a,o)=>(a[o]=i[o],a),{}):i)}function partialMatchKey(e,s){return e===s?!0:typeof e!=typeof s?!1:e&&s&&typeof e=="object"&&typeof s=="object"?Object.keys(s).every(i=>partialMatchKey(e[i],s[i])):!1}var hasOwn=Object.prototype.hasOwnProperty;function replaceEqualDeep(e,s){if(e===s)return e;const i=isPlainArray(e)&&isPlainArray(s);if(!i&&!(isPlainObject(e)&&isPlainObject(s)))return s;const o=(i?e:Object.keys(e)).length,c=i?s:Object.keys(s),g=c.length,_=i?new Array(g):{};let b=0;for(let $=0;$<g;$++){const et=i?$:c[$],ot=e[et],rt=s[et];if(ot===rt){_[et]=ot,(i?$<o:hasOwn.call(e,et))&&b++;continue}if(ot===null||rt===null||typeof ot!="object"||typeof rt!="object"){_[et]=rt;continue}const at=replaceEqualDeep(ot,rt);_[et]=at,at===ot&&b++}return o===g&&b===o?e:_}function shallowEqualObjects(e,s){if(!s||Object.keys(e).length!==Object.keys(s).length)return!1;for(const i in e)if(e[i]!==s[i])return!1;return!0}function isPlainArray(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;const s=e.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!hasObjectPrototype(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function hasObjectPrototype(e){return Object.prototype.toString.call(e)==="[object Object]"}function sleep(e){return new Promise(s=>{timeoutManager.setTimeout(s,e)})}function replaceData(e,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,s):i.structuralSharing!==!1?replaceEqualDeep(e,s):s}function addToEnd(e,s,i=0){const a=[...e,s];return i&&a.length>i?a.slice(1):a}function addToStart(e,s,i=0){const a=[s,...e];return i&&a.length>i?a.slice(0,-1):a}var skipToken=Symbol();function ensureQueryFn(e,s){return!e.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!e.queryFn||e.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function shouldThrowError(e,s){return typeof e=="function"?e(...s):!!e}var Hr,Mr,qr,Is,FocusManager=(Is=class extends Subscribable{constructor(){super();Ut(this,Hr);Ut(this,Mr);Ut(this,qr);Ht(this,qr,s=>{if(!isServer&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){At(this,Mr)||this.setEventListener(At(this,qr))}onUnsubscribe(){var s;this.hasListeners()||((s=At(this,Mr))==null||s.call(this),Ht(this,Mr,void 0))}setEventListener(s){var i;Ht(this,qr,s),(i=At(this,Mr))==null||i.call(this),Ht(this,Mr,s(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(s){At(this,Hr)!==s&&(Ht(this,Hr,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof At(this,Hr)=="boolean"?At(this,Hr):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Hr=new WeakMap,Mr=new WeakMap,qr=new WeakMap,Is),focusManager=new FocusManager;function pendingThenable(){let e,s;const i=new Promise((o,c)=>{e=o,s=c});i.status="pending",i.catch(()=>{});function a(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{a({status:"fulfilled",value:o}),e(o)},i.reject=o=>{a({status:"rejected",reason:o}),s(o)},i}var defaultScheduler=systemSetTimeoutZero;function createNotifyManager(){let e=[],s=0,i=_=>{_()},a=_=>{_()},o=defaultScheduler;const c=_=>{s?e.push(_):o(()=>{i(_)})},g=()=>{const _=e;e=[],_.length&&o(()=>{a(()=>{_.forEach(b=>{i(b)})})})};return{batch:_=>{let b;s++;try{b=_()}finally{s--,s||g()}return b},batchCalls:_=>(...b)=>{c(()=>{_(...b)})},schedule:c,setNotifyFunction:_=>{i=_},setBatchNotifyFunction:_=>{a=_},setScheduler:_=>{o=_}}}var notifyManager=createNotifyManager(),Xr,Or,Yr,Ms,OnlineManager=(Ms=class extends Subscribable{constructor(){super();Ut(this,Xr,!0);Ut(this,Or);Ut(this,Yr);Ht(this,Yr,s=>{if(!isServer&&window.addEventListener){const i=()=>s(!0),a=()=>s(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}}})}onSubscribe(){At(this,Or)||this.setEventListener(At(this,Yr))}onUnsubscribe(){var s;this.hasListeners()||((s=At(this,Or))==null||s.call(this),Ht(this,Or,void 0))}setEventListener(s){var i;Ht(this,Yr,s),(i=At(this,Or))==null||i.call(this),Ht(this,Or,s(this.setOnline.bind(this)))}setOnline(s){At(this,Xr)!==s&&(Ht(this,Xr,s),this.listeners.forEach(a=>{a(s)}))}isOnline(){return At(this,Xr)}},Xr=new WeakMap,Or=new WeakMap,Yr=new WeakMap,Ms),onlineManager=new OnlineManager;function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return(e??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function createRetryer(e){let s=!1,i=0,a;const o=pendingThenable(),c=()=>o.status!=="pending",g=nt=>{var dt;if(!c()){const _e=new CancelledError(nt);rt(_e),(dt=e.onCancel)==null||dt.call(e,_e)}},_=()=>{s=!0},b=()=>{s=!1},$=()=>focusManager.isFocused()&&(e.networkMode==="always"||onlineManager.isOnline())&&e.canRun(),et=()=>canFetch(e.networkMode)&&e.canRun(),ot=nt=>{c()||(a==null||a(),o.resolve(nt))},rt=nt=>{c()||(a==null||a(),o.reject(nt))},at=()=>new Promise(nt=>{var dt;a=_e=>{(c()||$())&&nt(_e)},(dt=e.onPause)==null||dt.call(e)}).then(()=>{var nt;a=void 0,c()||(nt=e.onContinue)==null||nt.call(e)}),it=()=>{if(c())return;let nt;const dt=i===0?e.initialPromise:void 0;try{nt=dt??e.fn()}catch(_e){nt=Promise.reject(_e)}Promise.resolve(nt).then(ot).catch(_e=>{var ct;if(c())return;const tt=e.retry??(isServer?0:3),j=e.retryDelay??defaultRetryDelay,st=typeof j=="function"?j(i,_e):j,ut=tt===!0||typeof tt=="number"&&i<tt||typeof tt=="function"&&tt(i,_e);if(s||!ut){rt(_e);return}i++,(ct=e.onFail)==null||ct.call(e,i,_e),sleep(st).then(()=>$()?void 0:at()).then(()=>{s?rt(_e):it()})})};return{promise:o,status:()=>o.status,cancel:g,continue:()=>(a==null||a(),o),cancelRetry:_,continueRetry:b,canStart:et,start:()=>(et()?it():at().then(it),o)}}var Vr,Os,Removable=(Os=class{constructor(){Ut(this,Vr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Ht(this,Vr,timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(isServer?1/0:5*60*1e3))}clearGcTimeout(){At(this,Vr)&&(timeoutManager.clearTimeout(At(this,Vr)),Ht(this,Vr,void 0))}},Vr=new WeakMap,Os),Gr,Jr,pr,zr,ar,hs,$r,vr,br,Ls,Query=(Ls=class extends Removable{constructor(s){super();Ut(this,vr);Ut(this,Gr);Ut(this,Jr);Ut(this,pr);Ut(this,zr);Ut(this,ar);Ut(this,hs);Ut(this,$r);Ht(this,$r,!1),Ht(this,hs,s.defaultOptions),this.setOptions(s.options),this.observers=[],Ht(this,zr,s.client),Ht(this,pr,At(this,zr).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,Ht(this,Gr,getDefaultState$1(this.options)),this.state=s.state??At(this,Gr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=At(this,ar))==null?void 0:s.promise}setOptions(s){if(this.options={...At(this,hs),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=getDefaultState$1(this.options);i.data!==void 0&&(this.setData(i.data,{updatedAt:i.dataUpdatedAt,manual:!0}),Ht(this,Gr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&At(this,pr).remove(this)}setData(s,i){const a=replaceData(this.state.data,s,this.options);return Xt(this,vr,br).call(this,{data:a,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),a}setState(s,i){Xt(this,vr,br).call(this,{type:"setState",state:s,setStateOptions:i})}cancel(s){var a,o;const i=(a=At(this,ar))==null?void 0:a.promise;return(o=At(this,ar))==null||o.cancel(s),i?i.then(noop).catch(noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(At(this,Gr))}isActive(){return this.observers.some(s=>resolveEnabled(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>resolveStaleTime(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!timeUntilStale(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(a=>a.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=At(this,ar))==null||i.continue()}onOnline(){var i;const s=this.observers.find(a=>a.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=At(this,ar))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),At(this,pr).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(At(this,ar)&&(At(this,$r)?At(this,ar).cancel({revert:!0}):At(this,ar).cancelRetry()),this.scheduleGc()),At(this,pr).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Xt(this,vr,br).call(this,{type:"invalidate"})}async fetch(s,i){var b,$,et,ot,rt,at,it,nt,dt,_e,tt,j;if(this.state.fetchStatus!=="idle"&&((b=At(this,ar))==null?void 0:b.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(At(this,ar))return At(this,ar).continueRetry(),At(this,ar).promise}if(s&&this.setOptions(s),!this.options.queryFn){const st=this.observers.find(ut=>ut.options.queryFn);st&&this.setOptions(st.options)}const a=new AbortController,o=st=>{Object.defineProperty(st,"signal",{enumerable:!0,get:()=>(Ht(this,$r,!0),a.signal)})},c=()=>{const st=ensureQueryFn(this.options,i),ct=(()=>{const gt={client:At(this,zr),queryKey:this.queryKey,meta:this.meta};return o(gt),gt})();return Ht(this,$r,!1),this.options.persister?this.options.persister(st,ct,this):st(ct)},_=(()=>{const st={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:At(this,zr),state:this.state,fetchFn:c};return o(st),st})();($=this.options.behavior)==null||$.onFetch(_,this),Ht(this,Jr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((et=_.fetchOptions)==null?void 0:et.meta))&&Xt(this,vr,br).call(this,{type:"fetch",meta:(ot=_.fetchOptions)==null?void 0:ot.meta}),Ht(this,ar,createRetryer({initialPromise:i==null?void 0:i.initialPromise,fn:_.fetchFn,onCancel:st=>{st instanceof CancelledError&&st.revert&&this.setState({...At(this,Jr),fetchStatus:"idle"}),a.abort()},onFail:(st,ut)=>{Xt(this,vr,br).call(this,{type:"failed",failureCount:st,error:ut})},onPause:()=>{Xt(this,vr,br).call(this,{type:"pause"})},onContinue:()=>{Xt(this,vr,br).call(this,{type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode,canRun:()=>!0}));try{const st=await At(this,ar).start();if(st===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(st),(at=(rt=At(this,pr).config).onSuccess)==null||at.call(rt,st,this),(nt=(it=At(this,pr).config).onSettled)==null||nt.call(it,st,this.state.error,this),st}catch(st){if(st instanceof CancelledError){if(st.silent)return At(this,ar).promise;if(st.revert){if(this.state.data===void 0)throw st;return this.state.data}}throw Xt(this,vr,br).call(this,{type:"error",error:st}),(_e=(dt=At(this,pr).config).onError)==null||_e.call(dt,st,this),(j=(tt=At(this,pr).config).onSettled)==null||j.call(tt,this.state.data,st,this),st}finally{this.scheduleGc()}}},Gr=new WeakMap,Jr=new WeakMap,pr=new WeakMap,zr=new WeakMap,ar=new WeakMap,hs=new WeakMap,$r=new WeakMap,vr=new WeakSet,br=function(s){const i=a=>{switch(s.type){case"failed":return{...a,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...fetchState(a.data,this.options),fetchMeta:s.meta??null};case"success":const o={...a,data:s.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:s.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ht(this,Jr,s.manual?o:void 0),o;case"error":const c=s.error;return{...a,error:c,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...s.state}}};this.state=i(this.state),notifyManager.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),At(this,pr).notify({query:this,type:"updated",action:s})})},Ls);function fetchState(e,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(s.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function getDefaultState$1(e){const s=typeof e.initialData=="function"?e.initialData():e.initialData,i=s!==void 0,a=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:i?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var cr,Yt,cs,ur,Ur,Zr,kr,Lr,ds,es,ts,Wr,Kr,jr,rs,Jt,us,ys,xs,_s,As,Es,Ss,bs,Vs,js,QueryObserver=(js=class extends Subscribable{constructor(s,i){super();Ut(this,Jt);Ut(this,cr);Ut(this,Yt);Ut(this,cs);Ut(this,ur);Ut(this,Ur);Ut(this,Zr);Ut(this,kr);Ut(this,Lr);Ut(this,ds);Ut(this,es);Ut(this,ts);Ut(this,Wr);Ut(this,Kr);Ut(this,jr);Ut(this,rs,new Set);this.options=i,Ht(this,cr,s),Ht(this,Lr,null),Ht(this,kr,pendingThenable()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(At(this,Yt).addObserver(this),shouldFetchOnMount(At(this,Yt),this.options)?Xt(this,Jt,us).call(this):this.updateResult(),Xt(this,Jt,As).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(At(this,Yt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(At(this,Yt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Xt(this,Jt,Es).call(this),Xt(this,Jt,Ss).call(this),At(this,Yt).removeObserver(this)}setOptions(s){const i=this.options,a=At(this,Yt);if(this.options=At(this,cr).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,At(this,Yt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Xt(this,Jt,bs).call(this),At(this,Yt).setOptions(this.options),i._defaulted&&!shallowEqualObjects(this.options,i)&&At(this,cr).getQueryCache().notify({type:"observerOptionsUpdated",query:At(this,Yt),observer:this});const o=this.hasListeners();o&&shouldFetchOptionally(At(this,Yt),a,this.options,i)&&Xt(this,Jt,us).call(this),this.updateResult(),o&&(At(this,Yt)!==a||resolveEnabled(this.options.enabled,At(this,Yt))!==resolveEnabled(i.enabled,At(this,Yt))||resolveStaleTime(this.options.staleTime,At(this,Yt))!==resolveStaleTime(i.staleTime,At(this,Yt)))&&Xt(this,Jt,ys).call(this);const c=Xt(this,Jt,xs).call(this);o&&(At(this,Yt)!==a||resolveEnabled(this.options.enabled,At(this,Yt))!==resolveEnabled(i.enabled,At(this,Yt))||c!==At(this,jr))&&Xt(this,Jt,_s).call(this,c)}getOptimisticResult(s){const i=At(this,cr).getQueryCache().build(At(this,cr),s),a=this.createResult(i,s);return shouldAssignObserverCurrentProperties(this,a)&&(Ht(this,ur,a),Ht(this,Zr,this.options),Ht(this,Ur,At(this,Yt).state)),a}getCurrentResult(){return At(this,ur)}trackResult(s,i){return new Proxy(s,{get:(a,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&At(this,kr).status==="pending"&&At(this,kr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,o))})}trackProp(s){At(this,rs).add(s)}getCurrentQuery(){return At(this,Yt)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const i=At(this,cr).defaultQueryOptions(s),a=At(this,cr).getQueryCache().build(At(this,cr),i);return a.fetch().then(()=>this.createResult(a,i))}fetch(s){return Xt(this,Jt,us).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),At(this,ur)))}createResult(s,i){var _t;const a=At(this,Yt),o=this.options,c=At(this,ur),g=At(this,Ur),_=At(this,Zr),$=s!==a?s.state:At(this,cs),{state:et}=s;let ot={...et},rt=!1,at;if(i._optimisticResults){const kt=this.hasListeners(),wt=!kt&&shouldFetchOnMount(s,i),St=kt&&shouldFetchOptionally(s,a,i,o);(wt||St)&&(ot={...ot,...fetchState(et.data,s.options)}),i._optimisticResults==="isRestoring"&&(ot.fetchStatus="idle")}let{error:it,errorUpdatedAt:nt,status:dt}=ot;at=ot.data;let _e=!1;if(i.placeholderData!==void 0&&at===void 0&&dt==="pending"){let kt;c!=null&&c.isPlaceholderData&&i.placeholderData===(_==null?void 0:_.placeholderData)?(kt=c.data,_e=!0):kt=typeof i.placeholderData=="function"?i.placeholderData((_t=At(this,ts))==null?void 0:_t.state.data,At(this,ts)):i.placeholderData,kt!==void 0&&(dt="success",at=replaceData(c==null?void 0:c.data,kt,i),rt=!0)}if(i.select&&at!==void 0&&!_e)if(c&&at===(g==null?void 0:g.data)&&i.select===At(this,ds))at=At(this,es);else try{Ht(this,ds,i.select),at=i.select(at),at=replaceData(c==null?void 0:c.data,at,i),Ht(this,es,at),Ht(this,Lr,null)}catch(kt){Ht(this,Lr,kt)}At(this,Lr)&&(it=At(this,Lr),at=At(this,es),nt=Date.now(),dt="error");const tt=ot.fetchStatus==="fetching",j=dt==="pending",st=dt==="error",ut=j&&tt,ct=at!==void 0,mt={status:dt,fetchStatus:ot.fetchStatus,isPending:j,isSuccess:dt==="success",isError:st,isInitialLoading:ut,isLoading:ut,data:at,dataUpdatedAt:ot.dataUpdatedAt,error:it,errorUpdatedAt:nt,failureCount:ot.fetchFailureCount,failureReason:ot.fetchFailureReason,errorUpdateCount:ot.errorUpdateCount,isFetched:ot.dataUpdateCount>0||ot.errorUpdateCount>0,isFetchedAfterMount:ot.dataUpdateCount>$.dataUpdateCount||ot.errorUpdateCount>$.errorUpdateCount,isFetching:tt,isRefetching:tt&&!j,isLoadingError:st&&!ct,isPaused:ot.fetchStatus==="paused",isPlaceholderData:rt,isRefetchError:st&&ct,isStale:isStale(s,i),refetch:this.refetch,promise:At(this,kr),isEnabled:resolveEnabled(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const kt=Tt=>{mt.status==="error"?Tt.reject(mt.error):mt.data!==void 0&&Tt.resolve(mt.data)},wt=()=>{const Tt=Ht(this,kr,mt.promise=pendingThenable());kt(Tt)},St=At(this,kr);switch(St.status){case"pending":s.queryHash===a.queryHash&&kt(St);break;case"fulfilled":(mt.status==="error"||mt.data!==St.value)&&wt();break;case"rejected":(mt.status!=="error"||mt.error!==St.reason)&&wt();break}}return mt}updateResult(){const s=At(this,ur),i=this.createResult(At(this,Yt),this.options);if(Ht(this,Ur,At(this,Yt).state),Ht(this,Zr,this.options),At(this,Ur).data!==void 0&&Ht(this,ts,At(this,Yt)),shallowEqualObjects(i,s))return;Ht(this,ur,i);const a=()=>{if(!s)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!At(this,rs).size)return!0;const g=new Set(c??At(this,rs));return this.options.throwOnError&&g.add("error"),Object.keys(At(this,ur)).some(_=>{const b=_;return At(this,ur)[b]!==s[b]&&g.has(b)})};Xt(this,Jt,Vs).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Xt(this,Jt,As).call(this)}},cr=new WeakMap,Yt=new WeakMap,cs=new WeakMap,ur=new WeakMap,Ur=new WeakMap,Zr=new WeakMap,kr=new WeakMap,Lr=new WeakMap,ds=new WeakMap,es=new WeakMap,ts=new WeakMap,Wr=new WeakMap,Kr=new WeakMap,jr=new WeakMap,rs=new WeakMap,Jt=new WeakSet,us=function(s){Xt(this,Jt,bs).call(this);let i=At(this,Yt).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(noop)),i},ys=function(){Xt(this,Jt,Es).call(this);const s=resolveStaleTime(this.options.staleTime,At(this,Yt));if(isServer||At(this,ur).isStale||!isValidTimeout(s))return;const a=timeUntilStale(At(this,ur).dataUpdatedAt,s)+1;Ht(this,Wr,timeoutManager.setTimeout(()=>{At(this,ur).isStale||this.updateResult()},a))},xs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(At(this,Yt)):this.options.refetchInterval)??!1},_s=function(s){Xt(this,Jt,Ss).call(this),Ht(this,jr,s),!(isServer||resolveEnabled(this.options.enabled,At(this,Yt))===!1||!isValidTimeout(At(this,jr))||At(this,jr)===0)&&Ht(this,Kr,timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&Xt(this,Jt,us).call(this)},At(this,jr)))},As=function(){Xt(this,Jt,ys).call(this),Xt(this,Jt,_s).call(this,Xt(this,Jt,xs).call(this))},Es=function(){At(this,Wr)&&(timeoutManager.clearTimeout(At(this,Wr)),Ht(this,Wr,void 0))},Ss=function(){At(this,Kr)&&(timeoutManager.clearInterval(At(this,Kr)),Ht(this,Kr,void 0))},bs=function(){const s=At(this,cr).getQueryCache().build(At(this,cr),this.options);if(s===At(this,Yt))return;const i=At(this,Yt);Ht(this,Yt,s),Ht(this,cs,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},Vs=function(s){notifyManager.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(At(this,ur))}),At(this,cr).getQueryCache().notify({query:At(this,Yt),type:"observerResultsUpdated"})})},js);function shouldLoadOnMount(e,s){return resolveEnabled(s.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&s.retryOnMount===!1)}function shouldFetchOnMount(e,s){return shouldLoadOnMount(e,s)||e.state.data!==void 0&&shouldFetchOn(e,s,s.refetchOnMount)}function shouldFetchOn(e,s,i){if(resolveEnabled(s.enabled,e)!==!1&&resolveStaleTime(s.staleTime,e)!=="static"){const a=typeof i=="function"?i(e):i;return a==="always"||a!==!1&&isStale(e,s)}return!1}function shouldFetchOptionally(e,s,i,a){return(e!==s||resolveEnabled(a.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&isStale(e,i)}function isStale(e,s){return resolveEnabled(s.enabled,e)!==!1&&e.isStaleByTime(resolveStaleTime(s.staleTime,e))}function shouldAssignObserverCurrentProperties(e,s){return!shallowEqualObjects(e.getCurrentResult(),s)}function infiniteQueryBehavior(e){return{onFetch:(s,i)=>{var et,ot,rt,at,it;const a=s.options,o=(rt=(ot=(et=s.fetchOptions)==null?void 0:et.meta)==null?void 0:ot.fetchMore)==null?void 0:rt.direction,c=((at=s.state.data)==null?void 0:at.pages)||[],g=((it=s.state.data)==null?void 0:it.pageParams)||[];let _={pages:[],pageParams:[]},b=0;const $=async()=>{let nt=!1;const dt=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(s.signal.aborted?nt=!0:s.signal.addEventListener("abort",()=>{nt=!0}),s.signal)})},_e=ensureQueryFn(s.options,s.fetchOptions),tt=async(j,st,ut)=>{if(nt)return Promise.reject();if(st==null&&j.pages.length)return Promise.resolve(j);const gt=(()=>{const wt={client:s.client,queryKey:s.queryKey,pageParam:st,direction:ut?"backward":"forward",meta:s.options.meta};return dt(wt),wt})(),mt=await _e(gt),{maxPages:_t}=s.options,kt=ut?addToStart:addToEnd;return{pages:kt(j.pages,mt,_t),pageParams:kt(j.pageParams,st,_t)}};if(o&&c.length){const j=o==="backward",st=j?getPreviousPageParam:getNextPageParam,ut={pages:c,pageParams:g},ct=st(a,ut);_=await tt(ut,ct,j)}else{const j=e??c.length;do{const st=b===0?g[0]??a.initialPageParam:getNextPageParam(a,_);if(b>0&&st==null)break;_=await tt(_,st),b++}while(b<j)}return _};s.options.persister?s.fetchFn=()=>{var nt,dt;return(dt=(nt=s.options).persister)==null?void 0:dt.call(nt,$,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=$}}}function getNextPageParam(e,{pages:s,pageParams:i}){const a=s.length-1;return s.length>0?e.getNextPageParam(s[a],s,i[a],i):void 0}function getPreviousPageParam(e,{pages:s,pageParams:i}){var a;return s.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,s[0],s,i[0],i):void 0}var ps,_r,hr,Qr,Ar,Rr,Ns,Mutation=(Ns=class extends Removable{constructor(s){super();Ut(this,Ar);Ut(this,ps);Ut(this,_r);Ut(this,hr);Ut(this,Qr);Ht(this,ps,s.client),this.mutationId=s.mutationId,Ht(this,hr,s.mutationCache),Ht(this,_r,[]),this.state=s.state||getDefaultState(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){At(this,_r).includes(s)||(At(this,_r).push(s),this.clearGcTimeout(),At(this,hr).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){Ht(this,_r,At(this,_r).filter(i=>i!==s)),this.scheduleGc(),At(this,hr).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){At(this,_r).length||(this.state.status==="pending"?this.scheduleGc():At(this,hr).remove(this))}continue(){var s;return((s=At(this,Qr))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var g,_,b,$,et,ot,rt,at,it,nt,dt,_e,tt,j,st,ut,ct,gt,mt,_t;const i=()=>{Xt(this,Ar,Rr).call(this,{type:"continue"})},a={client:At(this,ps),meta:this.options.meta,mutationKey:this.options.mutationKey};Ht(this,Qr,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(s,a):Promise.reject(new Error("No mutationFn found")),onFail:(kt,wt)=>{Xt(this,Ar,Rr).call(this,{type:"failed",failureCount:kt,error:wt})},onPause:()=>{Xt(this,Ar,Rr).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>At(this,hr).canRun(this)}));const o=this.state.status==="pending",c=!At(this,Qr).canStart();try{if(o)i();else{Xt(this,Ar,Rr).call(this,{type:"pending",variables:s,isPaused:c}),await((_=(g=At(this,hr).config).onMutate)==null?void 0:_.call(g,s,this,a));const wt=await(($=(b=this.options).onMutate)==null?void 0:$.call(b,s,a));wt!==this.state.context&&Xt(this,Ar,Rr).call(this,{type:"pending",context:wt,variables:s,isPaused:c})}const kt=await At(this,Qr).start();return await((ot=(et=At(this,hr).config).onSuccess)==null?void 0:ot.call(et,kt,s,this.state.context,this,a)),await((at=(rt=this.options).onSuccess)==null?void 0:at.call(rt,kt,s,this.state.context,a)),await((nt=(it=At(this,hr).config).onSettled)==null?void 0:nt.call(it,kt,null,this.state.variables,this.state.context,this,a)),await((_e=(dt=this.options).onSettled)==null?void 0:_e.call(dt,kt,null,s,this.state.context,a)),Xt(this,Ar,Rr).call(this,{type:"success",data:kt}),kt}catch(kt){try{throw await((j=(tt=At(this,hr).config).onError)==null?void 0:j.call(tt,kt,s,this.state.context,this,a)),await((ut=(st=this.options).onError)==null?void 0:ut.call(st,kt,s,this.state.context,a)),await((gt=(ct=At(this,hr).config).onSettled)==null?void 0:gt.call(ct,void 0,kt,this.state.variables,this.state.context,this,a)),await((_t=(mt=this.options).onSettled)==null?void 0:_t.call(mt,void 0,kt,s,this.state.context,a)),kt}finally{Xt(this,Ar,Rr).call(this,{type:"error",error:kt})}}finally{At(this,hr).runNext(this)}}},ps=new WeakMap,_r=new WeakMap,hr=new WeakMap,Qr=new WeakMap,Ar=new WeakSet,Rr=function(s){const i=a=>{switch(s.type){case"failed":return{...a,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...a,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:s.error,failureCount:a.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=i(this.state),notifyManager.batch(()=>{At(this,_r).forEach(a=>{a.onMutationUpdate(s)}),At(this,hr).notify({mutation:this,type:"updated",action:s})})},Ns);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wr,yr,fs,Fs,MutationCache=(Fs=class extends Subscribable{constructor(s={}){super();Ut(this,wr);Ut(this,yr);Ut(this,fs);this.config=s,Ht(this,wr,new Set),Ht(this,yr,new Map),Ht(this,fs,0)}build(s,i,a){const o=new Mutation({client:s,mutationCache:this,mutationId:++ms(this,fs)._,options:s.defaultMutationOptions(i),state:a});return this.add(o),o}add(s){At(this,wr).add(s);const i=scopeFor(s);if(typeof i=="string"){const a=At(this,yr).get(i);a?a.push(s):At(this,yr).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(At(this,wr).delete(s)){const i=scopeFor(s);if(typeof i=="string"){const a=At(this,yr).get(i);if(a)if(a.length>1){const o=a.indexOf(s);o!==-1&&a.splice(o,1)}else a[0]===s&&At(this,yr).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=scopeFor(s);if(typeof i=="string"){const a=At(this,yr).get(i),o=a==null?void 0:a.find(c=>c.state.status==="pending");return!o||o===s}else return!0}runNext(s){var a;const i=scopeFor(s);if(typeof i=="string"){const o=(a=At(this,yr).get(i))==null?void 0:a.find(c=>c!==s&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){notifyManager.batch(()=>{At(this,wr).forEach(s=>{this.notify({type:"removed",mutation:s})}),At(this,wr).clear(),At(this,yr).clear()})}getAll(){return Array.from(At(this,wr))}find(s){const i={exact:!0,...s};return this.getAll().find(a=>matchMutation(i,a))}findAll(s={}){return this.getAll().filter(i=>matchMutation(s,i))}notify(s){notifyManager.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return notifyManager.batch(()=>Promise.all(s.map(i=>i.continue().catch(noop))))}},wr=new WeakMap,yr=new WeakMap,fs=new WeakMap,Fs);function scopeFor(e){var s;return(s=e.options.scope)==null?void 0:s.id}var Tr,Nr,dr,Cr,Pr,gs,ks,Ds,MutationObserver$1=(Ds=class extends Subscribable{constructor(i,a){super();Ut(this,Pr);Ut(this,Tr);Ut(this,Nr);Ut(this,dr);Ut(this,Cr);Ht(this,Tr,i),this.setOptions(a),this.bindMethods(),Xt(this,Pr,gs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var o;const a=this.options;this.options=At(this,Tr).defaultMutationOptions(i),shallowEqualObjects(this.options,a)||At(this,Tr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:At(this,dr),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&hashKey(a.mutationKey)!==hashKey(this.options.mutationKey)?this.reset():((o=At(this,dr))==null?void 0:o.state.status)==="pending"&&At(this,dr).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=At(this,dr))==null||i.removeObserver(this)}onMutationUpdate(i){Xt(this,Pr,gs).call(this),Xt(this,Pr,ks).call(this,i)}getCurrentResult(){return At(this,Nr)}reset(){var i;(i=At(this,dr))==null||i.removeObserver(this),Ht(this,dr,void 0),Xt(this,Pr,gs).call(this),Xt(this,Pr,ks).call(this)}mutate(i,a){var o;return Ht(this,Cr,a),(o=At(this,dr))==null||o.removeObserver(this),Ht(this,dr,At(this,Tr).getMutationCache().build(At(this,Tr),this.options)),At(this,dr).addObserver(this),At(this,dr).execute(i)}},Tr=new WeakMap,Nr=new WeakMap,dr=new WeakMap,Cr=new WeakMap,Pr=new WeakSet,gs=function(){var a;const i=((a=At(this,dr))==null?void 0:a.state)??getDefaultState();Ht(this,Nr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},ks=function(i){notifyManager.batch(()=>{var a,o,c,g,_,b,$,et;if(At(this,Cr)&&this.hasListeners()){const ot=At(this,Nr).variables,rt=At(this,Nr).context,at={client:At(this,Tr),meta:this.options.meta,mutationKey:this.options.mutationKey};(i==null?void 0:i.type)==="success"?((o=(a=At(this,Cr)).onSuccess)==null||o.call(a,i.data,ot,rt,at),(g=(c=At(this,Cr)).onSettled)==null||g.call(c,i.data,null,ot,rt,at)):(i==null?void 0:i.type)==="error"&&((b=(_=At(this,Cr)).onError)==null||b.call(_,i.error,ot,rt,at),(et=($=At(this,Cr)).onSettled)==null||et.call($,void 0,i.error,ot,rt,at))}this.listeners.forEach(ot=>{ot(At(this,Nr))})})},Ds),Er,Bs,QueryCache=(Bs=class extends Subscribable{constructor(s={}){super();Ut(this,Er);this.config=s,Ht(this,Er,new Map)}build(s,i,a){const o=i.queryKey,c=i.queryHash??hashQueryKeyByOptions(o,i);let g=this.get(c);return g||(g=new Query({client:s,queryKey:o,queryHash:c,options:s.defaultQueryOptions(i),state:a,defaultOptions:s.getQueryDefaults(o)}),this.add(g)),g}add(s){At(this,Er).has(s.queryHash)||(At(this,Er).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=At(this,Er).get(s.queryHash);i&&(s.destroy(),i===s&&At(this,Er).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return At(this,Er).get(s)}getAll(){return[...At(this,Er).values()]}find(s){const i={exact:!0,...s};return this.getAll().find(a=>matchQuery(i,a))}findAll(s={}){const i=this.getAll();return Object.keys(s).length>0?i.filter(a=>matchQuery(s,a)):i}notify(s){notifyManager.batch(()=>{this.listeners.forEach(i=>{i(s)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},Er=new WeakMap,Bs),ir,Fr,Dr,ss,ns,Br,is,as,Hs,QueryClient=(Hs=class{constructor(e={}){Ut(this,ir);Ut(this,Fr);Ut(this,Dr);Ut(this,ss);Ut(this,ns);Ut(this,Br);Ut(this,is);Ut(this,as);Ht(this,ir,e.queryCache||new QueryCache),Ht(this,Fr,e.mutationCache||new MutationCache),Ht(this,Dr,e.defaultOptions||{}),Ht(this,ss,new Map),Ht(this,ns,new Map),Ht(this,Br,0)}mount(){ms(this,Br)._++,At(this,Br)===1&&(Ht(this,is,focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),At(this,ir).onFocus())})),Ht(this,as,onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),At(this,ir).onOnline())})))}unmount(){var e,s;ms(this,Br)._--,At(this,Br)===0&&((e=At(this,is))==null||e.call(this),Ht(this,is,void 0),(s=At(this,as))==null||s.call(this),Ht(this,as,void 0))}isFetching(e){return At(this,ir).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return At(this,Fr).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const s=this.defaultQueryOptions({queryKey:e});return(i=At(this,ir).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const s=this.defaultQueryOptions(e),i=At(this,ir).build(this,s),a=i.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(resolveStaleTime(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(a))}getQueriesData(e){return At(this,ir).findAll(e).map(({queryKey:s,state:i})=>{const a=i.data;return[s,a]})}setQueryData(e,s,i){const a=this.defaultQueryOptions({queryKey:e}),o=At(this,ir).get(a.queryHash),c=o==null?void 0:o.state.data,g=functionalUpdate(s,c);if(g!==void 0)return At(this,ir).build(this,a).setData(g,{...i,manual:!0})}setQueriesData(e,s,i){return notifyManager.batch(()=>At(this,ir).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,s,i)]))}getQueryState(e){var i;const s=this.defaultQueryOptions({queryKey:e});return(i=At(this,ir).get(s.queryHash))==null?void 0:i.state}removeQueries(e){const s=At(this,ir);notifyManager.batch(()=>{s.findAll(e).forEach(i=>{s.remove(i)})})}resetQueries(e,s){const i=At(this,ir);return notifyManager.batch(()=>(i.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},s)))}cancelQueries(e,s={}){const i={revert:!0,...s},a=notifyManager.batch(()=>At(this,ir).findAll(e).map(o=>o.cancel(i)));return Promise.all(a).then(noop).catch(noop)}invalidateQueries(e,s={}){return notifyManager.batch(()=>(At(this,ir).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},s)))}refetchQueries(e,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},a=notifyManager.batch(()=>At(this,ir).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(noop)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(a).then(noop)}fetchQuery(e){const s=this.defaultQueryOptions(e);s.retry===void 0&&(s.retry=!1);const i=At(this,ir).build(this,s);return i.isStaleByTime(resolveStaleTime(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(noop).catch(noop)}fetchInfiniteQuery(e){return e.behavior=infiniteQueryBehavior(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(noop).catch(noop)}ensureInfiniteQueryData(e){return e.behavior=infiniteQueryBehavior(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return onlineManager.isOnline()?At(this,Fr).resumePausedMutations():Promise.resolve()}getQueryCache(){return At(this,ir)}getMutationCache(){return At(this,Fr)}getDefaultOptions(){return At(this,Dr)}setDefaultOptions(e){Ht(this,Dr,e)}setQueryDefaults(e,s){At(this,ss).set(hashKey(e),{queryKey:e,defaultOptions:s})}getQueryDefaults(e){const s=[...At(this,ss).values()],i={};return s.forEach(a=>{partialMatchKey(e,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(e,s){At(this,ns).set(hashKey(e),{mutationKey:e,defaultOptions:s})}getMutationDefaults(e){const s=[...At(this,ns).values()],i={};return s.forEach(a=>{partialMatchKey(e,a.mutationKey)&&Object.assign(i,a.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const s={...At(this,Dr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return s.queryHash||(s.queryHash=hashQueryKeyByOptions(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===skipToken&&(s.enabled=!1),s}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...At(this,Dr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){At(this,ir).clear(),At(this,Fr).clear()}},ir=new WeakMap,Fr=new WeakMap,Dr=new WeakMap,ss=new WeakMap,ns=new WeakMap,Br=new WeakMap,is=new WeakMap,as=new WeakMap,Hs),QueryClientContext=reactExports.createContext(void 0),useQueryClient=e=>{const s=reactExports.useContext(QueryClientContext);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},QueryClientProvider=({client:e,children:s})=>(reactExports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:e,children:s})),IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext),ensurePreventErrorBoundaryRetry=(e,s)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(s.isReset()||(e.retryOnMount=!1))},useClearResetErrorBoundary=e=>{reactExports.useEffect(()=>{e.clearReset()},[e])},getHasError=({result:e,errorResetBoundary:s,throwOnError:i,query:a,suspense:o})=>e.isError&&!s.isReset()&&!e.isFetching&&a&&(o&&e.data===void 0||shouldThrowError(i,[e.error,a])),ensureSuspenseTimers=e=>{if(e.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...o)=>i(a(...o)):i(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},willFetch=(e,s)=>e.isLoading&&e.isFetching&&!s,shouldSuspend=(e,s)=>(e==null?void 0:e.suspense)&&s.isPending,fetchOptimistic=(e,s,i)=>s.fetchOptimistic(e).catch(()=>{i.clearReset()});function useBaseQuery(e,s,i){var ot,rt,at,it,nt;const a=useIsRestoring(),o=useQueryErrorResetBoundary(),c=useQueryClient(),g=c.defaultQueryOptions(e);(rt=(ot=c.getDefaultOptions().queries)==null?void 0:ot._experimental_beforeQuery)==null||rt.call(ot,g),g._optimisticResults=a?"isRestoring":"optimistic",ensureSuspenseTimers(g),ensurePreventErrorBoundaryRetry(g,o),useClearResetErrorBoundary(o);const _=!c.getQueryCache().get(g.queryHash),[b]=reactExports.useState(()=>new s(c,g)),$=b.getOptimisticResult(g),et=!a&&e.subscribed!==!1;if(reactExports.useSyncExternalStore(reactExports.useCallback(dt=>{const _e=et?b.subscribe(notifyManager.batchCalls(dt)):noop;return b.updateResult(),_e},[b,et]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),reactExports.useEffect(()=>{b.setOptions(g)},[g,b]),shouldSuspend(g,$))throw fetchOptimistic(g,b,o);if(getHasError({result:$,errorResetBoundary:o,throwOnError:g.throwOnError,query:c.getQueryCache().get(g.queryHash),suspense:g.suspense}))throw $.error;if((it=(at=c.getDefaultOptions().queries)==null?void 0:at._experimental_afterQuery)==null||it.call(at,g,$),g.experimental_prefetchInRender&&!isServer&&willFetch($,a)){const dt=_?fetchOptimistic(g,b,o):(nt=c.getQueryCache().get(g.queryHash))==null?void 0:nt.promise;dt==null||dt.catch(noop).finally(()=>{b.updateResult()})}return g.notifyOnChangeProps?$:b.trackResult($)}function useQuery(e,s){return useBaseQuery(e,QueryObserver)}function useMutation(e,s){const i=useQueryClient(),[a]=reactExports.useState(()=>new MutationObserver$1(i,e));reactExports.useEffect(()=>{a.setOptions(e)},[a,e]);const o=reactExports.useSyncExternalStore(reactExports.useCallback(g=>a.subscribe(notifyManager.batchCalls(g)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=reactExports.useCallback((g,_)=>{a.mutate(g,_).catch(noop)},[a]);if(o.error&&shouldThrowError(a.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}var ABHA_V3_SKIP_STATES=(e=>(e.ABHA_END="abha_end",e.CONFIRM_MOBILE_OTP="confirm_mobile_otp",e.ABHA_CREATE="abha_create",e.ABHA_SELECT="abha_select",e))(ABHA_V3_SKIP_STATES||{}),ABHA_AUTH_FLOW_METHOD=(e=>(e.PHR_ADDRESS="phr_address",e.MOBILE="mobile",e.ABHA_NUMBER="abha_number",e.AADHAR_NUMBER="aadhaar_number",e.REGISTRATION_TYPE="registration_type",e))(ABHA_AUTH_FLOW_METHOD||{}),REGISTRATION_TYPE=(e=>(e.LOGIN="login",e.CREATE="create",e))(REGISTRATION_TYPE||{}),LOADING_STATE=(e=>(e.IDLE="IDLE",e.LOADING="LOADING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED",e))(LOADING_STATE||{}),AUTH_METHOD=(e=>(e[e.EMAIL=1]="EMAIL",e[e.MOBILE=2]="MOBILE",e[e.ABHA=7]="ABHA",e))(AUTH_METHOD||{});const PROD={AORTA_HOST:"https://auth.eka.care",AORTA_GO_HOST:"https://aortago.eka.care",TRYST_HOST:"https://tryst.eka.care",AXON_HOST:"https://axon.eka.care",PARCHI_HOST:"https://parchi.eka.care",CURIO_HOST:"https://eka.care",AVATAR_HOST:"https://a.eka.care",PTDIR_HOST:"https://ptdir.eka.care",TELE_HOST:"https://mweb.eka.care",METROLPOLIS_HOST:"https://consultation.metropolisindia.com",LUCID_WS_HOST:"https://lucid-ws.eka.care",LUCID_HOST:"https://lucid.eka.care",DEEPTHOUGHT_HOST:"https://deepthought.eka.care",NDHM_HOST:"https://api.eka.care",LOGIN_HOST:"https://login.eka.care",HUB:"https://hub.eka.care",RECEIPT_DOMAIN:"https://doc-receipts.eka.care"},DEV={AORTA_HOST:"https://aorta.dev.eka.care",AORTA_GO_HOST:"https://aortago.dev.eka.care",TRYST_HOST:"https://tryst.dev.eka.care",AXON_HOST:"https://axon.dev.eka.care",PARCHI_HOST:"https://parchi.dev.eka.care",CURIO_HOST:"https://curio.dev.eka.care",AVATAR_HOST:"https://eka-avatar.dev.eka.care",PTDIR_HOST:"https://ptdir.dev.eka.care",TELE_HOST:"https://mweb.dev.eka.care",METROLPOLIS_HOST:"https://consultation.metropolisindia.com",LUCID_WS_HOST:"https://lucid-ws.dev.eka.care",LUCID_HOST:"https://lucid.dev.eka.care",DEEPTHOUGHT_HOST:"https://deepthought.dev.eka.care",NDHM_HOST:"https://api.dev.eka.care",LOGIN_HOST:"https://login.dev.eka.care",HUB:"https://hub.dev.eka.care",RECEIPT_DOMAIN:"https://doc-receipt.s3.ap-south-1.amazonaws.com"};let envVar=DEV,client_id="",extraHeaders=null;const setEnv=({env:e,clientId:s,extraHeaders:i})=>{envVar=e==="PROD"?PROD:DEV,client_id=s,i&&(extraHeaders=i)},setIndividualEnv=({clientId:e,env:s,extraHeaders:i})=>{e&&(client_id=e),s&&(envVar=s==="PROD"?PROD:DEV),i&&(extraHeaders={...extraHeaders,...i})},GET_AORTA_GO_HOST=()=>envVar.AORTA_GO_HOST,GET_NDHM_HOST=()=>envVar.NDHM_HOST,GET_CLIENT_ID=()=>client_id,GET_EXTRA_HEADERS=()=>extraHeaders;var lottie$1={exports:{}};(function(module,exports){typeof document<"u"&&typeof navigator<"u"&&function(e,s){module.exports=s()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(s){_useWebWorker=!!s},getWebWorker=function(){return _useWebWorker},setLocationHref=function(s){locationHref=s},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,s){var i,a=e.length,o;for(i=0;i<a;i+=1){o=e[i].prototype;for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s.prototype[c]=o[c])}}function getDescriptor(e,s){return Object.getOwnPropertyDescriptor(e,s)}function createProxyFunction(e){function s(){}return s.prototype=e,s}var audioControllerFactory=function(){function e(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].pause()},resume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].resume()},setRate:function(i){var a,o=this.audios.length;for(a=0;a<o;a+=1)this.audios[a].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(i,a){var o=0,c=[],g;switch(i){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(o=0;o<a;o+=1)c.push(g);return c}function s(i,a){return i==="float32"?new Float32Array(a):i==="int16"?new Int16Array(a):i==="uint8c"?new Uint8ClampedArray(a):e(i,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_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=["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"],s,i=e.length;for(s=0;s<i;s+=1)BMMath[e[s]]=Math[e[s]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var s=_typeof$6(e);if(s==="object"&&e.length){var i=createSizedArray(e.length),a,o=e.length;for(a=0;a<o;a+=1)i[a]=Math.abs(e[a]);return i}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,s,i,a){this.type=e,this.currentTime=s,this.totalTime=i,this.direction=a<0?-1:1}function BMCompleteEvent(e,s){this.type=e,this.direction=s<0?-1:1}function BMCompleteLoopEvent(e,s,i,a){this.type=e,this.currentLoop=i,this.totalLoops=s,this.direction=a<0?-1:1}function BMSegmentStartEvent(e,s,i){this.type=e,this.firstFrame=s,this.totalFrames=i}function BMDestroyEvent(e,s){this.type=e,this.target=s}function BMRenderFrameErrorEvent(e,s){this.type="renderFrameError",this.nativeError=e,this.currentTime=s}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,s,i){var a,o,c,g,_,b,$,et;switch(g=Math.floor(e*6),_=e*6-g,b=i*(1-s),$=i*(1-_*s),et=i*(1-(1-_)*s),g%6){case 0:a=i,o=et,c=b;break;case 1:a=$,o=i,c=b;break;case 2:a=b,o=i,c=et;break;case 3:a=b,o=$,c=i;break;case 4:a=et,o=b,c=i;break;case 5:a=i,o=b,c=$;break}return[a,o,c]}function RGBtoHSV(e,s,i){var a=Math.max(e,s,i),o=Math.min(e,s,i),c=a-o,g,_=a===0?0:c/a,b=a/255;switch(a){case o:g=0;break;case e:g=s-i+c*(s<i?6:0),g/=6*c;break;case s:g=i-e+c*2,g/=6*c;break;case i:g=e-s+c*4,g/=6*c;break}return[g,_,b]}function addSaturationToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[1]+=s,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[2]+=s,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[0]+=s/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e=[],s,i;for(s=0;s<256;s+=1)i=s.toString(16),e[s]=i.length===1?"0"+i:i;return function(a,o,c){return a<0&&(a=0),o<0&&(o=0),c<0&&(c=0),"#"+e[a]+e[o]+e[c]}}(),setSubframeEnabled=function(s){subframeEnabled=!!s},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(s){expressionsPlugin=s},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(s){expressionsInterfaces=s},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(s){defaultCurveSegments=s},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(s){idPrefix$1=s};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$5(e)}var dataManager=function(){var e=1,s=[],i,a,o={onmessage:function(){},postMessage:function(at){i({data:at})}},c={postMessage:function(at){o.onmessage({data:at})}};function g(rt){if(window.Worker&&window.Blob&&getWebWorker()){var at=new Blob(["var _workerSelf = self; self.onmessage = ",rt.toString()],{type:"text/javascript"}),it=URL.createObjectURL(at);return new Worker(it)}return i=rt,o}function _(){a||(a=g(function(at){function it(){function dt(xt,pt){var vt,lt,ht=xt.length,yt,ft,Ct,Et;for(lt=0;lt<ht;lt+=1)if(vt=xt[lt],"ks"in vt&&!vt.completed){if(vt.completed=!0,vt.hasMask){var bt=vt.masksProperties;for(ft=bt.length,yt=0;yt<ft;yt+=1)if(bt[yt].pt.k.i)ut(bt[yt].pt.k);else for(Et=bt[yt].pt.k.length,Ct=0;Ct<Et;Ct+=1)bt[yt].pt.k[Ct].s&&ut(bt[yt].pt.k[Ct].s[0]),bt[yt].pt.k[Ct].e&&ut(bt[yt].pt.k[Ct].e[0])}vt.ty===0?(vt.layers=j(vt.refId,pt),dt(vt.layers,pt)):vt.ty===4?st(vt.shapes):vt.ty===5&&Tt(vt)}}function _e(xt,pt){if(xt){var vt=0,lt=xt.length;for(vt=0;vt<lt;vt+=1)xt[vt].t===1&&(xt[vt].data.layers=j(xt[vt].data.refId,pt),dt(xt[vt].data.layers,pt))}}function tt(xt,pt){for(var vt=0,lt=pt.length;vt<lt;){if(pt[vt].id===xt)return pt[vt];vt+=1}return null}function j(xt,pt){var vt=tt(xt,pt);return vt?vt.layers.__used?JSON.parse(JSON.stringify(vt.layers)):(vt.layers.__used=!0,vt.layers):null}function st(xt){var pt,vt=xt.length,lt,ht;for(pt=vt-1;pt>=0;pt-=1)if(xt[pt].ty==="sh")if(xt[pt].ks.k.i)ut(xt[pt].ks.k);else for(ht=xt[pt].ks.k.length,lt=0;lt<ht;lt+=1)xt[pt].ks.k[lt].s&&ut(xt[pt].ks.k[lt].s[0]),xt[pt].ks.k[lt].e&&ut(xt[pt].ks.k[lt].e[0]);else xt[pt].ty==="gr"&&st(xt[pt].it)}function ut(xt){var pt,vt=xt.i.length;for(pt=0;pt<vt;pt+=1)xt.i[pt][0]+=xt.v[pt][0],xt.i[pt][1]+=xt.v[pt][1],xt.o[pt][0]+=xt.v[pt][0],xt.o[pt][1]+=xt.v[pt][1]}function ct(xt,pt){var vt=pt?pt.split("."):[100,100,100];return xt[0]>vt[0]?!0:vt[0]>xt[0]?!1:xt[1]>vt[1]?!0:vt[1]>xt[1]?!1:xt[2]>vt[2]?!0:vt[2]>xt[2]?!1:null}var gt=function(){var xt=[4,4,14];function pt(lt){var ht=lt.t.d;lt.t.d={k:[{s:ht,t:0}]}}function vt(lt){var ht,yt=lt.length;for(ht=0;ht<yt;ht+=1)lt[ht].ty===5&&pt(lt[ht])}return function(lt){if(ct(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ht,yt=lt.assets.length;for(ht=0;ht<yt;ht+=1)lt.assets[ht].layers&&vt(lt.assets[ht].layers)}}}(),mt=function(){var xt=[4,7,99];return function(pt){if(pt.chars&&!ct(xt,pt.v)){var vt,lt=pt.chars.length;for(vt=0;vt<lt;vt+=1){var ht=pt.chars[vt];ht.data&&ht.data.shapes&&(st(ht.data.shapes),ht.data.ip=0,ht.data.op=99999,ht.data.st=0,ht.data.sr=1,ht.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}},pt.chars[vt].t||(ht.data.shapes.push({ty:"no"}),ht.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"})))}}}}(),_t=function(){var xt=[5,7,15];function pt(lt){var ht=lt.t.p;typeof ht.a=="number"&&(ht.a={a:0,k:ht.a}),typeof ht.p=="number"&&(ht.p={a:0,k:ht.p}),typeof ht.r=="number"&&(ht.r={a:0,k:ht.r})}function vt(lt){var ht,yt=lt.length;for(ht=0;ht<yt;ht+=1)lt[ht].ty===5&&pt(lt[ht])}return function(lt){if(ct(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ht,yt=lt.assets.length;for(ht=0;ht<yt;ht+=1)lt.assets[ht].layers&&vt(lt.assets[ht].layers)}}}(),kt=function(){var xt=[4,1,9];function pt(lt){var ht,yt=lt.length,ft,Ct;for(ht=0;ht<yt;ht+=1)if(lt[ht].ty==="gr")pt(lt[ht].it);else if(lt[ht].ty==="fl"||lt[ht].ty==="st")if(lt[ht].c.k&&lt[ht].c.k[0].i)for(Ct=lt[ht].c.k.length,ft=0;ft<Ct;ft+=1)lt[ht].c.k[ft].s&&(lt[ht].c.k[ft].s[0]/=255,lt[ht].c.k[ft].s[1]/=255,lt[ht].c.k[ft].s[2]/=255,lt[ht].c.k[ft].s[3]/=255),lt[ht].c.k[ft].e&&(lt[ht].c.k[ft].e[0]/=255,lt[ht].c.k[ft].e[1]/=255,lt[ht].c.k[ft].e[2]/=255,lt[ht].c.k[ft].e[3]/=255);else lt[ht].c.k[0]/=255,lt[ht].c.k[1]/=255,lt[ht].c.k[2]/=255,lt[ht].c.k[3]/=255}function vt(lt){var ht,yt=lt.length;for(ht=0;ht<yt;ht+=1)lt[ht].ty===4&&pt(lt[ht].shapes)}return function(lt){if(ct(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ht,yt=lt.assets.length;for(ht=0;ht<yt;ht+=1)lt.assets[ht].layers&&vt(lt.assets[ht].layers)}}}(),wt=function(){var xt=[4,4,18];function pt(lt){var ht,yt=lt.length,ft,Ct;for(ht=yt-1;ht>=0;ht-=1)if(lt[ht].ty==="sh")if(lt[ht].ks.k.i)lt[ht].ks.k.c=lt[ht].closed;else for(Ct=lt[ht].ks.k.length,ft=0;ft<Ct;ft+=1)lt[ht].ks.k[ft].s&&(lt[ht].ks.k[ft].s[0].c=lt[ht].closed),lt[ht].ks.k[ft].e&&(lt[ht].ks.k[ft].e[0].c=lt[ht].closed);else lt[ht].ty==="gr"&&pt(lt[ht].it)}function vt(lt){var ht,yt,ft=lt.length,Ct,Et,bt,Ot;for(yt=0;yt<ft;yt+=1){if(ht=lt[yt],ht.hasMask){var Lt=ht.masksProperties;for(Et=Lt.length,Ct=0;Ct<Et;Ct+=1)if(Lt[Ct].pt.k.i)Lt[Ct].pt.k.c=Lt[Ct].cl;else for(Ot=Lt[Ct].pt.k.length,bt=0;bt<Ot;bt+=1)Lt[Ct].pt.k[bt].s&&(Lt[Ct].pt.k[bt].s[0].c=Lt[Ct].cl),Lt[Ct].pt.k[bt].e&&(Lt[Ct].pt.k[bt].e[0].c=Lt[Ct].cl)}ht.ty===4&&pt(ht.shapes)}}return function(lt){if(ct(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ht,yt=lt.assets.length;for(ht=0;ht<yt;ht+=1)lt.assets[ht].layers&&vt(lt.assets[ht].layers)}}}();function St(xt){xt.__complete||(kt(xt),gt(xt),mt(xt),_t(xt),wt(xt),dt(xt.layers,xt.assets),_e(xt.chars,xt.assets),xt.__complete=!0)}function Tt(xt){xt.t.a.length===0&&"m"in xt.t.p}var Mt={};return Mt.completeData=St,Mt.checkColors=kt,Mt.checkChars=mt,Mt.checkPathProperties=_t,Mt.checkShapes=wt,Mt.completeLayers=dt,Mt}if(c.dataManager||(c.dataManager=it()),c.assetLoader||(c.assetLoader=function(){function dt(tt){var j=tt.getResponseHeader("content-type");return j&&tt.responseType==="json"&&j.indexOf("json")!==-1||tt.response&&_typeof$5(tt.response)==="object"?tt.response:tt.response&&typeof tt.response=="string"?JSON.parse(tt.response):tt.responseText?JSON.parse(tt.responseText):null}function _e(tt,j,st,ut){var ct,gt=new XMLHttpRequest;try{gt.responseType="json"}catch{}gt.onreadystatechange=function(){if(gt.readyState===4)if(gt.status===200)ct=dt(gt),st(ct);else try{ct=dt(gt),st(ct)}catch(mt){ut&&ut(mt)}};try{gt.open(["G","E","T"].join(""),tt,!0)}catch{gt.open(["G","E","T"].join(""),j+"/"+tt,!0)}gt.send()}return{load:_e}}()),at.data.type==="loadAnimation")c.assetLoader.load(at.data.path,at.data.fullPath,function(dt){c.dataManager.completeData(dt),c.postMessage({id:at.data.id,payload:dt,status:"success"})},function(){c.postMessage({id:at.data.id,status:"error"})});else if(at.data.type==="complete"){var nt=at.data.animation;c.dataManager.completeData(nt),c.postMessage({id:at.data.id,payload:nt,status:"success"})}else at.data.type==="loadData"&&c.assetLoader.load(at.data.path,at.data.fullPath,function(dt){c.postMessage({id:at.data.id,payload:dt,status:"success"})},function(){c.postMessage({id:at.data.id,status:"error"})})}),a.onmessage=function(rt){var at=rt.data,it=at.id,nt=s[it];s[it]=null,at.status==="success"?nt.onComplete(at.payload):nt.onError&&nt.onError()})}function b(rt,at){e+=1;var it="processId_"+e;return s[it]={onComplete:rt,onError:at},it}function $(rt,at,it){_();var nt=b(at,it);a.postMessage({type:"loadAnimation",path:rt,fullPath:window.location.origin+window.location.pathname,id:nt})}function et(rt,at,it){_();var nt=b(at,it);a.postMessage({type:"loadData",path:rt,fullPath:window.location.origin+window.location.pathname,id:nt})}function ot(rt,at,it){_();var nt=b(at,it);a.postMessage({type:"complete",animation:rt,id:nt})}return{loadAnimation:$,loadData:et,completeAnimation:ot}}(),ImagePreloader=function(){var e=function(){var _e=createTag("canvas");_e.width=1,_e.height=1;var tt=_e.getContext("2d");return tt.fillStyle="rgba(0,0,0,0)",tt.fillRect(0,0,1,1),_e}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(_e,tt,j){var st="";if(_e.e)st=_e.p;else if(tt){var ut=_e.p;ut.indexOf("images/")!==-1&&(ut=ut.split("/")[1]),st=tt+ut}else st=j,st+=_e.u?_e.u:"",st+=_e.p;return st}function o(_e){var tt=0,j=setInterval((function(){var st=_e.getBBox();(st.width||tt>500)&&(this._imageLoaded(),clearInterval(j)),tt+=1}).bind(this),50)}function c(_e){var tt=a(_e,this.assetsPath,this.path),j=createNS("image");isSafari?this.testImageLoaded(j):j.addEventListener("load",this._imageLoaded,!1),j.addEventListener("error",(function(){st.img=e,this._imageLoaded()}).bind(this),!1),j.setAttributeNS("http://www.w3.org/1999/xlink","href",tt),this._elementHelper.append?this._elementHelper.append(j):this._elementHelper.appendChild(j);var st={img:j,assetData:_e};return st}function g(_e){var tt=a(_e,this.assetsPath,this.path),j=createTag("img");j.crossOrigin="anonymous",j.addEventListener("load",this._imageLoaded,!1),j.addEventListener("error",(function(){st.img=e,this._imageLoaded()}).bind(this),!1),j.src=tt;var st={img:j,assetData:_e};return st}function _(_e){var tt={assetData:_e},j=a(_e,this.assetsPath,this.path);return dataManager.loadData(j,(function(st){tt.img=st,this._footageLoaded()}).bind(this),(function(){tt.img={},this._footageLoaded()}).bind(this)),tt}function b(_e,tt){this.imagesLoadedCb=tt;var j,st=_e.length;for(j=0;j<st;j+=1)_e[j].layers||(!_e[j].t||_e[j].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(_e[j]))):_e[j].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(_e[j]))))}function $(_e){this.path=_e||""}function et(_e){this.assetsPath=_e||""}function ot(_e){for(var tt=0,j=this.images.length;tt<j;){if(this.images[tt].assetData===_e)return this.images[tt].img;tt+=1}return null}function rt(){this.imagesLoadedCb=null,this.images.length=0}function at(){return this.totalImages===this.loadedAssets}function it(){return this.totalFootages===this.loadedFootagesCount}function nt(_e,tt){_e==="svg"?(this._elementHelper=tt,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function dt(){this._imageLoaded=s.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=_.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return dt.prototype={loadAssets:b,setAssetsPath:et,setPath:$,loadedImages:at,loadedFootages:it,destroy:rt,getAsset:ot,createImgData:g,createImageData:c,imageLoaded:s,footageLoaded:i,setCacheType:nt},dt}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(s,i){if(this._cbs[s])for(var a=this._cbs[s],o=0;o<a.length;o+=1)a[o](i)},addEventListener:function(s,i){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(i),(function(){this.removeEventListener(s,i)}).bind(this)},removeEventListener:function(s,i){if(!i)this._cbs[s]=null;else if(this._cbs[s]){for(var a=0,o=this._cbs[s].length;a<o;)this._cbs[s][a]===i&&(this._cbs[s].splice(a,1),a-=1,o-=1),a+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var markerParser=function(){function e(s){for(var i=s.split(`\r
41
- `),a={},o,c=0,g=0;g<i.length;g+=1)o=i[g].split(":"),o.length===2&&(a[o[0]]=o[1].trim(),c+=1);if(c===0)throw new Error;return a}return function(s){for(var i=[],a=0;a<s.length;a+=1){var o=s[a],c={time:o.tm,duration:o.dr};try{c.payload=JSON.parse(s[a].cm)}catch{try{c.payload=e(s[a].cm)}catch{c.payload={name:s[a].cm}}}i.push(c)}return i}}(),ProjectInterface=function(){function e(s){this.compositions.push(s)}return function(){function s(i){for(var a=0,o=this.compositions.length;a<o;){if(this.compositions[a].data&&this.compositions[a].data.nm===i)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=e,s}}(),renderers={},registerRenderer=function(s,i){renderers[s]=i};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){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_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 s="svg";e.animType?s=e.animType:e.renderer&&(s=e.renderer);var i=getRenderer(s);this.renderer=new i(this,e.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?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,s){s&&_typeof$4(s)!=="object"&&(s=JSON.parse(s));var i={wrapper:e,animationData:s},a=e.attributes;i.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",i.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var o=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";o==="false"?i.loop=!1:o==="true"?i.loop=!0:o!==""&&(i.loop=parseInt(o,10));var c=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:a.getNamedItem("bm-autoplay")?a.getNamedItem("bm-autoplay").value:!0;i.autoplay=c!=="false",i.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"";var g=a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"";g==="false"&&(i.prerender=!1),i.path?this.setParams(i):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 s=this.animationData.layers,i,a=s.length,o=e.layers,c,g=o.length;for(c=0;c<g;c+=1)for(i=0;i<a;){if(s[i].id===o[c].id){s[i]=o[c];break}i+=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(a=e.assets.length,i=0;i<a;i+=1)this.animationData.assets.push(e.assets[i]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var s=getExpressionsPlugin();s&&s.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=e.shift();this.timeCompleted=s.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(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(s){this.triggerConfigError(s)}},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()||this.renderer.rendererType!=="canvas")&&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,s){var i=typeof e=="number"?e:void 0,a=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(i,a)},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(!(this.isLoaded===!1||!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||this.isPaused===!0&&(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||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?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 s,i=0;i<this.markers.length;i+=1)if(s=this.markers[i],s.payload&&s.payload.name===e)return s;return null},AnimationItem.prototype.goToAndStop=function(e,s,i){if(!(i&&this.name!==i)){var a=Number(e);if(isNaN(a)){var o=this.getMarkerData(e);o&&this.goToAndStop(o.time,!0)}else s?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,s,i){if(!(i&&this.name!==i)){var a=Number(e);if(isNaN(a)){var o=this.getMarkerData(e);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(a,s,i);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+e*this.frameModifier,i=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(i=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,s=0)):this.setCurrentRawFrameValue(s),i&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,s){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-s)):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+s)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,s){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?i=e:this.currentRawFrame+this.firstFrame>s&&(i=s-e)),this.firstFrame=e,this.totalFrames=s-e,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(e,s){if(s&&(this.segments.length=0),_typeof$4(e[0])==="object"){var i,a=e.length;for(i=0;i<a;i+=1)this.segments.push(e[i])}else this.segments.push(e);this.segments.length&&s&&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):!1},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,s){s&&this.name!==s||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 s="";if(e.e)s=e.p;else if(this.assetsPath){var i=e.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),s=this.assetsPath+i}else s=this.path,s+=e.u?e.u:"",s+=e.p;return s},AnimationItem.prototype.getAssetData=function(e){for(var s=0,i=this.assets.length;s<i;){if(e===this.assets[s].id)return this.assets[s];s+=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,s,i){try{var a=this.renderer.getElementByPath(e);a.updateDocumentData(s,i)}catch{}},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)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var s=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},AnimationItem.prototype.triggerConfigError=function(e){var s=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var animationManager=function(){var e={},s=[],i=0,a=0,o=0,c=!0,g=!1;function _(pt){for(var vt=0,lt=pt.target;vt<a;)s[vt].animation===lt&&(s.splice(vt,1),vt-=1,a-=1,lt.isPaused||ot()),vt+=1}function b(pt,vt){if(!pt)return null;for(var lt=0;lt<a;){if(s[lt].elem===pt&&s[lt].elem!==null)return s[lt].animation;lt+=1}var ht=new AnimationItem;return rt(ht,pt),ht.setData(pt,vt),ht}function $(){var pt,vt=s.length,lt=[];for(pt=0;pt<vt;pt+=1)lt.push(s[pt].animation);return lt}function et(){o+=1,kt()}function ot(){o-=1}function rt(pt,vt){pt.addEventListener("destroy",_),pt.addEventListener("_active",et),pt.addEventListener("_idle",ot),s.push({elem:vt,animation:pt}),a+=1}function at(pt){var vt=new AnimationItem;return rt(vt,null),vt.setParams(pt),vt}function it(pt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setSpeed(pt,vt)}function nt(pt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setDirection(pt,vt)}function dt(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.play(pt)}function _e(pt){var vt=pt-i,lt;for(lt=0;lt<a;lt+=1)s[lt].animation.advanceTime(vt);i=pt,o&&!g?window.requestAnimationFrame(_e):c=!0}function tt(pt){i=pt,window.requestAnimationFrame(_e)}function j(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.pause(pt)}function st(pt,vt,lt){var ht;for(ht=0;ht<a;ht+=1)s[ht].animation.goToAndStop(pt,vt,lt)}function ut(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.stop(pt)}function ct(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.togglePause(pt)}function gt(pt){var vt;for(vt=a-1;vt>=0;vt-=1)s[vt].animation.destroy(pt)}function mt(pt,vt,lt){var ht=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),yt,ft=ht.length;for(yt=0;yt<ft;yt+=1)lt&&ht[yt].setAttribute("data-bm-type",lt),b(ht[yt],pt);if(vt&&ft===0){lt||(lt="svg");var Ct=document.getElementsByTagName("body")[0];Ct.innerText="";var Et=createTag("div");Et.style.width="100%",Et.style.height="100%",Et.setAttribute("data-bm-type",lt),Ct.appendChild(Et),b(Et,pt)}}function _t(){var pt;for(pt=0;pt<a;pt+=1)s[pt].animation.resize()}function kt(){!g&&o&&c&&(window.requestAnimationFrame(tt),c=!1)}function wt(){g=!0}function St(){g=!1,kt()}function Tt(pt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setVolume(pt,vt)}function Mt(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.mute(pt)}function xt(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.unmute(pt)}return e.registerAnimation=b,e.loadAnimation=at,e.setSpeed=it,e.setDirection=nt,e.play=dt,e.pause=j,e.stop=ut,e.togglePause=ct,e.searchAnimations=mt,e.resize=_t,e.goToAndStop=st,e.destroy=gt,e.freeze=wt,e.unfreeze=St,e.setVolume=Tt,e.mute=Mt,e.unmute=xt,e.getRegisteredAnimations=$,e}(),BezierFactory=function(){var e={};e.getBezierEasing=i;var s={};function i(tt,j,st,ut,ct){var gt=ct||("bez_"+tt+"_"+j+"_"+st+"_"+ut).replace(/\./g,"p");if(s[gt])return s[gt];var mt=new _e([tt,j,st,ut]);return s[gt]=mt,mt}var a=4,o=.001,c=1e-7,g=10,_=11,b=1/(_-1),$=typeof Float32Array=="function";function et(tt,j){return 1-3*j+3*tt}function ot(tt,j){return 3*j-6*tt}function rt(tt){return 3*tt}function at(tt,j,st){return((et(j,st)*tt+ot(j,st))*tt+rt(j))*tt}function it(tt,j,st){return 3*et(j,st)*tt*tt+2*ot(j,st)*tt+rt(j)}function nt(tt,j,st,ut,ct){var gt,mt,_t=0;do mt=j+(st-j)/2,gt=at(mt,ut,ct)-tt,gt>0?st=mt:j=mt;while(Math.abs(gt)>c&&++_t<g);return mt}function dt(tt,j,st,ut){for(var ct=0;ct<a;++ct){var gt=it(j,st,ut);if(gt===0)return j;var mt=at(j,st,ut)-tt;j-=mt/gt}return j}function _e(tt){this._p=tt,this._mSampleValues=$?new Float32Array(_):new Array(_),this._precomputed=!1,this.get=this.get.bind(this)}return _e.prototype={get:function(j){var st=this._p[0],ut=this._p[1],ct=this._p[2],gt=this._p[3];return this._precomputed||this._precompute(),st===ut&&ct===gt?j:j===0?0:j===1?1:at(this._getTForX(j),ut,gt)},_precompute:function(){var j=this._p[0],st=this._p[1],ut=this._p[2],ct=this._p[3];this._precomputed=!0,(j!==st||ut!==ct)&&this._calcSampleValues()},_calcSampleValues:function(){for(var j=this._p[0],st=this._p[2],ut=0;ut<_;++ut)this._mSampleValues[ut]=at(ut*b,j,st)},_getTForX:function(j){for(var st=this._p[0],ut=this._p[2],ct=this._mSampleValues,gt=0,mt=1,_t=_-1;mt!==_t&&ct[mt]<=j;++mt)gt+=b;--mt;var kt=(j-ct[mt])/(ct[mt+1]-ct[mt]),wt=gt+kt*b,St=it(wt,st,ut);return St>=o?dt(j,wt,st,ut):St===0?wt:nt(j,gt,gt+b,st,ut)}},e}(),pooling=function(){function e(s){return s.concat(createSizedArray(s.length))}return{double:e}}(),poolFactory=function(){return function(e,s,i){var a=0,o=e,c=createSizedArray(o),g={newElement:_,release:b};function _(){var $;return a?(a-=1,$=c[a]):$=s(),$}function b($){a===o&&(c=pooling.double(c),o*=2),i&&i($),c[a]=$,a+=1}return g}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function s(i){var a,o=i.lengths.length;for(a=0;a<o;a+=1)bezierLengthPool.release(i.lengths[a]);i.lengths.length=0}return poolFactory(8,e,s)}();function bezFunction(){var e=Math;function s(rt,at,it,nt,dt,_e){var tt=rt*nt+at*dt+it*_e-dt*nt-_e*rt-it*at;return tt>-.001&&tt<.001}function i(rt,at,it,nt,dt,_e,tt,j,st){if(it===0&&_e===0&&st===0)return s(rt,at,nt,dt,tt,j);var ut=e.sqrt(e.pow(nt-rt,2)+e.pow(dt-at,2)+e.pow(_e-it,2)),ct=e.sqrt(e.pow(tt-rt,2)+e.pow(j-at,2)+e.pow(st-it,2)),gt=e.sqrt(e.pow(tt-nt,2)+e.pow(j-dt,2)+e.pow(st-_e,2)),mt;return ut>ct?ut>gt?mt=ut-ct-gt:mt=gt-ct-ut:gt>ct?mt=gt-ct-ut:mt=ct-ut-gt,mt>-1e-4&&mt<1e-4}var a=function(){return function(rt,at,it,nt){var dt=getDefaultCurveSegments(),_e,tt,j,st,ut,ct=0,gt,mt=[],_t=[],kt=bezierLengthPool.newElement();for(j=it.length,_e=0;_e<dt;_e+=1){for(ut=_e/(dt-1),gt=0,tt=0;tt<j;tt+=1)st=bmPow(1-ut,3)*rt[tt]+3*bmPow(1-ut,2)*ut*it[tt]+3*(1-ut)*bmPow(ut,2)*nt[tt]+bmPow(ut,3)*at[tt],mt[tt]=st,_t[tt]!==null&&(gt+=bmPow(mt[tt]-_t[tt],2)),_t[tt]=mt[tt];gt&&(gt=bmSqrt(gt),ct+=gt),kt.percents[_e]=ut,kt.lengths[_e]=ct}return kt.addedLength=ct,kt}}();function o(rt){var at=segmentsLengthPool.newElement(),it=rt.c,nt=rt.v,dt=rt.o,_e=rt.i,tt,j=rt._length,st=at.lengths,ut=0;for(tt=0;tt<j-1;tt+=1)st[tt]=a(nt[tt],nt[tt+1],dt[tt],_e[tt+1]),ut+=st[tt].addedLength;return it&&j&&(st[tt]=a(nt[tt],nt[0],dt[tt],_e[0]),ut+=st[tt].addedLength),at.totalLength=ut,at}function c(rt){this.segmentLength=0,this.points=new Array(rt)}function g(rt,at){this.partialLength=rt,this.point=at}var _=function(){var rt={};return function(at,it,nt,dt){var _e=(at[0]+"_"+at[1]+"_"+it[0]+"_"+it[1]+"_"+nt[0]+"_"+nt[1]+"_"+dt[0]+"_"+dt[1]).replace(/\./g,"p");if(!rt[_e]){var tt=getDefaultCurveSegments(),j,st,ut,ct,gt,mt=0,_t,kt,wt=null;at.length===2&&(at[0]!==it[0]||at[1]!==it[1])&&s(at[0],at[1],it[0],it[1],at[0]+nt[0],at[1]+nt[1])&&s(at[0],at[1],it[0],it[1],it[0]+dt[0],it[1]+dt[1])&&(tt=2);var St=new c(tt);for(ut=nt.length,j=0;j<tt;j+=1){for(kt=createSizedArray(ut),gt=j/(tt-1),_t=0,st=0;st<ut;st+=1)ct=bmPow(1-gt,3)*at[st]+3*bmPow(1-gt,2)*gt*(at[st]+nt[st])+3*(1-gt)*bmPow(gt,2)*(it[st]+dt[st])+bmPow(gt,3)*it[st],kt[st]=ct,wt!==null&&(_t+=bmPow(kt[st]-wt[st],2));_t=bmSqrt(_t),mt+=_t,St.points[j]=new g(_t,kt),wt=kt}St.segmentLength=mt,rt[_e]=St}return rt[_e]}}();function b(rt,at){var it=at.percents,nt=at.lengths,dt=it.length,_e=bmFloor((dt-1)*rt),tt=rt*at.addedLength,j=0;if(_e===dt-1||_e===0||tt===nt[_e])return it[_e];for(var st=nt[_e]>tt?-1:1,ut=!0;ut;)if(nt[_e]<=tt&&nt[_e+1]>tt?(j=(tt-nt[_e])/(nt[_e+1]-nt[_e]),ut=!1):_e+=st,_e<0||_e>=dt-1){if(_e===dt-1)return it[_e];ut=!1}return it[_e]+(it[_e+1]-it[_e])*j}function $(rt,at,it,nt,dt,_e){var tt=b(dt,_e),j=1-tt,st=e.round((j*j*j*rt[0]+(tt*j*j+j*tt*j+j*j*tt)*it[0]+(tt*tt*j+j*tt*tt+tt*j*tt)*nt[0]+tt*tt*tt*at[0])*1e3)/1e3,ut=e.round((j*j*j*rt[1]+(tt*j*j+j*tt*j+j*j*tt)*it[1]+(tt*tt*j+j*tt*tt+tt*j*tt)*nt[1]+tt*tt*tt*at[1])*1e3)/1e3;return[st,ut]}var et=createTypedArray("float32",8);function ot(rt,at,it,nt,dt,_e,tt){dt<0?dt=0:dt>1&&(dt=1);var j=b(dt,tt);_e=_e>1?1:_e;var st=b(_e,tt),ut,ct=rt.length,gt=1-j,mt=1-st,_t=gt*gt*gt,kt=j*gt*gt*3,wt=j*j*gt*3,St=j*j*j,Tt=gt*gt*mt,Mt=j*gt*mt+gt*j*mt+gt*gt*st,xt=j*j*mt+gt*j*st+j*gt*st,pt=j*j*st,vt=gt*mt*mt,lt=j*mt*mt+gt*st*mt+gt*mt*st,ht=j*st*mt+gt*st*st+j*mt*st,yt=j*st*st,ft=mt*mt*mt,Ct=st*mt*mt+mt*st*mt+mt*mt*st,Et=st*st*mt+mt*st*st+st*mt*st,bt=st*st*st;for(ut=0;ut<ct;ut+=1)et[ut*4]=e.round((_t*rt[ut]+kt*it[ut]+wt*nt[ut]+St*at[ut])*1e3)/1e3,et[ut*4+1]=e.round((Tt*rt[ut]+Mt*it[ut]+xt*nt[ut]+pt*at[ut])*1e3)/1e3,et[ut*4+2]=e.round((vt*rt[ut]+lt*it[ut]+ht*nt[ut]+yt*at[ut])*1e3)/1e3,et[ut*4+3]=e.round((ft*rt[ut]+Ct*it[ut]+Et*nt[ut]+bt*at[ut])*1e3)/1e3;return et}return{getSegmentsLength:o,getNewSegment:ot,getPointInSegment:$,buildBezierData:_,pointOnLine2D:s,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,s){var i=this.offsetTime,a;this.propType==="multidimensional"&&(a=createTypedArray("float32",this.pv.length));for(var o=s.lastIndex,c=o,g=this.keyframes.length-1,_=!0,b,$,et;_;){if(b=this.keyframes[c],$=this.keyframes[c+1],c===g-1&&e>=$.t-i){b.h&&(b=$),o=0;break}if($.t-i>e){o=c;break}c<g-1?c+=1:(o=0,_=!1)}et=this.keyframesMetadata[c]||{};var ot,rt,at,it,nt,dt,_e=$.t-i,tt=b.t-i,j;if(b.to){et.bezierData||(et.bezierData=bez.buildBezierData(b.s,$.s||b.e,b.to,b.ti));var st=et.bezierData;if(e>=_e||e<tt){var ut=e>=_e?st.points.length-1:0;for(rt=st.points[ut].point.length,ot=0;ot<rt;ot+=1)a[ot]=st.points[ut].point[ot]}else{et.__fnct?dt=et.__fnct:(dt=BezierFactory.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,et.__fnct=dt),at=dt((e-tt)/(_e-tt));var ct=st.segmentLength*at,gt,mt=s.lastFrame<e&&s._lastKeyframeIndex===c?s._lastAddedLength:0;for(nt=s.lastFrame<e&&s._lastKeyframeIndex===c?s._lastPoint:0,_=!0,it=st.points.length;_;){if(mt+=st.points[nt].partialLength,ct===0||at===0||nt===st.points.length-1){for(rt=st.points[nt].point.length,ot=0;ot<rt;ot+=1)a[ot]=st.points[nt].point[ot];break}else if(ct>=mt&&ct<mt+st.points[nt+1].partialLength){for(gt=(ct-mt)/st.points[nt+1].partialLength,rt=st.points[nt].point.length,ot=0;ot<rt;ot+=1)a[ot]=st.points[nt].point[ot]+(st.points[nt+1].point[ot]-st.points[nt].point[ot])*gt;break}nt<it-1?nt+=1:_=!1}s._lastPoint=nt,s._lastAddedLength=mt-st.points[nt].partialLength,s._lastKeyframeIndex=c}}else{var _t,kt,wt,St,Tt;if(g=b.s.length,j=$.s||b.e,this.sh&&b.h!==1)if(e>=_e)a[0]=j[0],a[1]=j[1],a[2]=j[2];else if(e<=tt)a[0]=b.s[0],a[1]=b.s[1],a[2]=b.s[2];else{var Mt=createQuaternion(b.s),xt=createQuaternion(j),pt=(e-tt)/(_e-tt);quaternionToEuler(a,slerp(Mt,xt,pt))}else for(c=0;c<g;c+=1)b.h!==1&&(e>=_e?at=1:e<tt?at=0:(b.o.x.constructor===Array?(et.__fnct||(et.__fnct=[]),et.__fnct[c]?dt=et.__fnct[c]:(_t=b.o.x[c]===void 0?b.o.x[0]:b.o.x[c],kt=b.o.y[c]===void 0?b.o.y[0]:b.o.y[c],wt=b.i.x[c]===void 0?b.i.x[0]:b.i.x[c],St=b.i.y[c]===void 0?b.i.y[0]:b.i.y[c],dt=BezierFactory.getBezierEasing(_t,kt,wt,St).get,et.__fnct[c]=dt)):et.__fnct?dt=et.__fnct:(_t=b.o.x,kt=b.o.y,wt=b.i.x,St=b.i.y,dt=BezierFactory.getBezierEasing(_t,kt,wt,St).get,b.keyframeMetadata=dt),at=dt((e-tt)/(_e-tt)))),j=$.s||b.e,Tt=b.h===1?b.s[c]:b.s[c]+(j[c]-b.s[c])*at,this.propType==="multidimensional"?a[c]=Tt:a=Tt}return s.lastIndex=o,a}function slerp(e,s,i){var a=[],o=e[0],c=e[1],g=e[2],_=e[3],b=s[0],$=s[1],et=s[2],ot=s[3],rt,at,it,nt,dt;return at=o*b+c*$+g*et+_*ot,at<0&&(at=-at,b=-b,$=-$,et=-et,ot=-ot),1-at>1e-6?(rt=Math.acos(at),it=Math.sin(rt),nt=Math.sin((1-i)*rt)/it,dt=Math.sin(i*rt)/it):(nt=1-i,dt=i),a[0]=nt*o+dt*b,a[1]=nt*c+dt*$,a[2]=nt*g+dt*et,a[3]=nt*_+dt*ot,a}function quaternionToEuler(e,s){var i=s[0],a=s[1],o=s[2],c=s[3],g=Math.atan2(2*a*c-2*i*o,1-2*a*a-2*o*o),_=Math.asin(2*i*a+2*o*c),b=Math.atan2(2*i*c-2*a*o,1-2*i*i-2*o*o);e[0]=g/degToRads,e[1]=_/degToRads,e[2]=b/degToRads}function createQuaternion(e){var s=e[0]*degToRads,i=e[1]*degToRads,a=e[2]*degToRads,o=Math.cos(s/2),c=Math.cos(i/2),g=Math.cos(a/2),_=Math.sin(s/2),b=Math.sin(i/2),$=Math.sin(a/2),et=o*c*g-_*b*$,ot=_*b*g+o*c*$,rt=_*c*g+o*b*$,at=o*b*g-_*c*$;return[ot,rt,at,et]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<s&&e<s))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(e,this._caching);this.pv=a}return this._caching.lastFrame=e,this.pv}function setVValue(e){var s;if(this.propType==="unidimensional")s=e*this.mult,mathAbs(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var i=0,a=this.v.length;i<a;)s=e[i]*this.mult,mathAbs(this.v[i]-s)>1e-5&&(this.v[i]=s,this._mdf=!0),i+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,s=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<s;e+=1)i=this.effectsSequence[e](i);this.setVValue(i),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,s,i,a){this.propType="unidimensional",this.mult=i||1,this.data=s,this.v=i?s.k*i:s.k,this.pv=s.k,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,s,i,a){this.propType="multidimensional",this.mult=i||1,this.data=s,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o,c=s.k.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),this.vel=createTypedArray("float32",c),o=0;o<c;o+=1)this.v[o]=s.k[o]*this.mult,this.pv[o]=s.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,s,i,a){this.propType="unidimensional",this.keyframes=s.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=s,this.mult=i||1,this.elem=e,this.container=a,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,s,i,a){this.propType="multidimensional";var o,c=s.k.length,g,_,b,$;for(o=0;o<c-1;o+=1)s.k[o].to&&s.k[o].s&&s.k[o+1]&&s.k[o+1].s&&(g=s.k[o].s,_=s.k[o+1].s,b=s.k[o].to,$=s.k[o].ti,(g.length===2&&!(g[0]===_[0]&&g[1]===_[1])&&bez.pointOnLine2D(g[0],g[1],_[0],_[1],g[0]+b[0],g[1]+b[1])&&bez.pointOnLine2D(g[0],g[1],_[0],_[1],_[0]+$[0],_[1]+$[1])||g.length===3&&!(g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2])&&bez.pointOnLine3D(g[0],g[1],g[2],_[0],_[1],_[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&bez.pointOnLine3D(g[0],g[1],g[2],_[0],_[1],_[2],_[0]+$[0],_[1]+$[1],_[2]+$[2]))&&(s.k[o].to=null,s.k[o].ti=null),g[0]===_[0]&&g[1]===_[1]&&b[0]===0&&b[1]===0&&$[0]===0&&$[1]===0&&(g.length===2||g[2]===_[2]&&b[2]===0&&$[2]===0)&&(s.k[o].to=null,s.k[o].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=a,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var et=s.k[0].s.length;for(this.v=createTypedArray("float32",et),this.pv=createTypedArray("float32",et),o=0;o<et;o+=1)this.v[o]=initFrame,this.pv[o]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",et)},this.addEffect=addEffect}var PropertyFactory=function(){function e(i,a,o,c,g){a.sid&&(a=i.globalData.slotManager.getProp(a));var _;if(!a.k.length)_=new ValueProperty(i,a,c,g);else if(typeof a.k[0]=="number")_=new MultiDimensionalProperty(i,a,c,g);else switch(o){case 0:_=new KeyframedValueProperty(i,a,c,g);break;case 1:_=new KeyframedMultidimensionalProperty(i,a,c,g);break}return _.effectsSequence.length&&g.addDynamicProperty(_),_}var s={getProp:e};return s}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,i=this.dynamicProperties.length;for(s=0;s<i;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();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,s){this.c=e,this.setLength(s);for(var i=0;i<s;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=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,s,i,a,o){var c;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[a]||c[a]&&!o)&&(c[a]=pointPool.newElement()),c[a][0]=e,c[a][1]=s},ShapePath.prototype.setTripleAt=function(e,s,i,a,o,c,g,_){this.setXYAt(e,s,"v",g,_),this.setXYAt(i,a,"o",g,_),this.setXYAt(o,c,"i",g,_)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var s=this.v,i=this.o,a=this.i,o=0;this.c&&(e.setTripleAt(s[0][0],s[0][1],a[0][0],a[0][1],i[0][0],i[0][1],0,!1),o=1);var c=this._length-1,g=this._length,_;for(_=o;_<g;_+=1)e.setTripleAt(s[c][0],s[c][1],a[c][0],a[c][1],i[c][0],i[c][1],_,!1),c-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function s(o){var c=o._length,g;for(g=0;g<c;g+=1)pointPool.release(o.v[g]),pointPool.release(o.i[g]),pointPool.release(o.o[g]),o.v[g]=null,o.i[g]=null,o.o[g]=null;o._length=0,o.c=!1}function i(o){var c=a.newElement(),g,_=o._length===void 0?o.v.length:o._length;for(c.setLength(_),c.c=o.c,g=0;g<_;g+=1)c.setTripleAt(o.v[g][0],o.v[g][1],o.o[g][0],o.o[g][1],o.i[g][0],o.i[g][1],g);return c}var a=poolFactory(4,e,s);return a.clone=i,a}();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:o,release:c},s=0,i=4,a=createSizedArray(i);function o(){var g;return s?(s-=1,g=a[s]):g=new ShapeCollection,g}function c(g){var _,b=g._length;for(_=0;_<b;_+=1)shapePool.release(g.shapes[_]);g._length=0,s===i&&(a=pooling.double(a),i*=2),a[s]=g,s+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function s(_e,tt,j){var st=j.lastIndex,ut,ct,gt,mt,_t,kt,wt,St,Tt,Mt=this.keyframes;if(_e<Mt[0].t-this.offsetTime)ut=Mt[0].s[0],gt=!0,st=0;else if(_e>=Mt[Mt.length-1].t-this.offsetTime)ut=Mt[Mt.length-1].s?Mt[Mt.length-1].s[0]:Mt[Mt.length-2].e[0],gt=!0;else{for(var xt=st,pt=Mt.length-1,vt=!0,lt,ht,yt;vt&&(lt=Mt[xt],ht=Mt[xt+1],!(ht.t-this.offsetTime>_e));)xt<pt-1?xt+=1:vt=!1;if(yt=this.keyframesMetadata[xt]||{},gt=lt.h===1,st=xt,!gt){if(_e>=ht.t-this.offsetTime)St=1;else if(_e<lt.t-this.offsetTime)St=0;else{var ft;yt.__fnct?ft=yt.__fnct:(ft=BezierFactory.getBezierEasing(lt.o.x,lt.o.y,lt.i.x,lt.i.y).get,yt.__fnct=ft),St=ft((_e-(lt.t-this.offsetTime))/(ht.t-this.offsetTime-(lt.t-this.offsetTime)))}ct=ht.s?ht.s[0]:lt.e[0]}ut=lt.s[0]}for(kt=tt._length,wt=ut.i[0].length,j.lastIndex=st,mt=0;mt<kt;mt+=1)for(_t=0;_t<wt;_t+=1)Tt=gt?ut.i[mt][_t]:ut.i[mt][_t]+(ct.i[mt][_t]-ut.i[mt][_t])*St,tt.i[mt][_t]=Tt,Tt=gt?ut.o[mt][_t]:ut.o[mt][_t]+(ct.o[mt][_t]-ut.o[mt][_t])*St,tt.o[mt][_t]=Tt,Tt=gt?ut.v[mt][_t]:ut.v[mt][_t]+(ct.v[mt][_t]-ut.v[mt][_t])*St,tt.v[mt][_t]=Tt}function i(){var _e=this.comp.renderedFrame-this.offsetTime,tt=this.keyframes[0].t-this.offsetTime,j=this.keyframes[this.keyframes.length-1].t-this.offsetTime,st=this._caching.lastFrame;return st!==e&&(st<tt&&_e<tt||st>j&&_e>j)||(this._caching.lastIndex=st<_e?this._caching.lastIndex:0,this.interpolateShape(_e,this.pv,this._caching)),this._caching.lastFrame=_e,this.pv}function a(){this.paths=this.localShapeCollection}function o(_e,tt){if(_e._length!==tt._length||_e.c!==tt.c)return!1;var j,st=_e._length;for(j=0;j<st;j+=1)if(_e.v[j][0]!==tt.v[j][0]||_e.v[j][1]!==tt.v[j][1]||_e.o[j][0]!==tt.o[j][0]||_e.o[j][1]!==tt.o[j][1]||_e.i[j][0]!==tt.i[j][0]||_e.i[j][1]!==tt.i[j][1])return!1;return!0}function c(_e){o(this.v,_e)||(this.v=shapePool.clone(_e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var _e;this.kf?_e=this.pv:this.data.ks?_e=this.data.ks.k:_e=this.data.pt.k;var tt,j=this.effectsSequence.length;for(tt=0;tt<j;tt+=1)_e=this.effectsSequence[tt](_e);this.setVValue(_e),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function _(_e,tt,j){this.propType="shape",this.comp=_e.comp,this.container=_e,this.elem=_e,this.data=tt,this.k=!1,this.kf=!1,this._mdf=!1;var st=j===3?tt.pt.k:tt.ks.k;this.v=shapePool.clone(st),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function b(_e){this.effectsSequence.push(_e),this.container.addDynamicProperty(this)}_.prototype.interpolateShape=s,_.prototype.getValue=g,_.prototype.setVValue=c,_.prototype.addEffect=b;function $(_e,tt,j){this.propType="shape",this.comp=_e.comp,this.elem=_e,this.container=_e,this.offsetTime=_e.data.st,this.keyframes=j===3?tt.pt.k:tt.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var st=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,st),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[i.bind(this)]}$.prototype.getValue=g,$.prototype.interpolateShape=s,$.prototype.setVValue=c,$.prototype.addEffect=b;var et=function(){var _e=roundCorner;function tt(j,st){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=st.d,this.elem=j,this.comp=j.comp,this.frameId=-1,this.initDynamicPropertyContainer(j),this.p=PropertyFactory.getProp(j,st.p,1,0,this),this.s=PropertyFactory.getProp(j,st.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return tt.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var st=this.p.v[0],ut=this.p.v[1],ct=this.s.v[0]/2,gt=this.s.v[1]/2,mt=this.d!==3,_t=this.v;_t.v[0][0]=st,_t.v[0][1]=ut-gt,_t.v[1][0]=mt?st+ct:st-ct,_t.v[1][1]=ut,_t.v[2][0]=st,_t.v[2][1]=ut+gt,_t.v[3][0]=mt?st-ct:st+ct,_t.v[3][1]=ut,_t.i[0][0]=mt?st-ct*_e:st+ct*_e,_t.i[0][1]=ut-gt,_t.i[1][0]=mt?st+ct:st-ct,_t.i[1][1]=ut-gt*_e,_t.i[2][0]=mt?st+ct*_e:st-ct*_e,_t.i[2][1]=ut+gt,_t.i[3][0]=mt?st-ct:st+ct,_t.i[3][1]=ut+gt*_e,_t.o[0][0]=mt?st+ct*_e:st-ct*_e,_t.o[0][1]=ut-gt,_t.o[1][0]=mt?st+ct:st-ct,_t.o[1][1]=ut+gt*_e,_t.o[2][0]=mt?st-ct*_e:st+ct*_e,_t.o[2][1]=ut+gt,_t.o[3][0]=mt?st-ct:st+ct,_t.o[3][1]=ut-gt*_e}},extendPrototype([DynamicPropertyContainer],tt),tt}(),ot=function(){function _e(tt,j){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=tt,this.comp=tt.comp,this.data=j,this.frameId=-1,this.d=j.d,this.initDynamicPropertyContainer(tt),j.sy===1?(this.ir=PropertyFactory.getProp(tt,j.ir,0,0,this),this.is=PropertyFactory.getProp(tt,j.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(tt,j.pt,0,0,this),this.p=PropertyFactory.getProp(tt,j.p,1,0,this),this.r=PropertyFactory.getProp(tt,j.r,0,degToRads,this),this.or=PropertyFactory.getProp(tt,j.or,0,0,this),this.os=PropertyFactory.getProp(tt,j.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return _e.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var j=Math.floor(this.pt.v)*2,st=Math.PI*2/j,ut=!0,ct=this.or.v,gt=this.ir.v,mt=this.os.v,_t=this.is.v,kt=2*Math.PI*ct/(j*2),wt=2*Math.PI*gt/(j*2),St,Tt,Mt,xt,pt=-Math.PI/2;pt+=this.r.v;var vt=this.data.d===3?-1:1;for(this.v._length=0,St=0;St<j;St+=1){Tt=ut?ct:gt,Mt=ut?mt:_t,xt=ut?kt:wt;var lt=Tt*Math.cos(pt),ht=Tt*Math.sin(pt),yt=lt===0&&ht===0?0:ht/Math.sqrt(lt*lt+ht*ht),ft=lt===0&&ht===0?0:-lt/Math.sqrt(lt*lt+ht*ht);lt+=+this.p.v[0],ht+=+this.p.v[1],this.v.setTripleAt(lt,ht,lt-yt*xt*Mt*vt,ht-ft*xt*Mt*vt,lt+yt*xt*Mt*vt,ht+ft*xt*Mt*vt,St,!0),ut=!ut,pt+=st*vt}},convertPolygonToPath:function(){var j=Math.floor(this.pt.v),st=Math.PI*2/j,ut=this.or.v,ct=this.os.v,gt=2*Math.PI*ut/(j*4),mt,_t=-Math.PI*.5,kt=this.data.d===3?-1:1;for(_t+=this.r.v,this.v._length=0,mt=0;mt<j;mt+=1){var wt=ut*Math.cos(_t),St=ut*Math.sin(_t),Tt=wt===0&&St===0?0:St/Math.sqrt(wt*wt+St*St),Mt=wt===0&&St===0?0:-wt/Math.sqrt(wt*wt+St*St);wt+=+this.p.v[0],St+=+this.p.v[1],this.v.setTripleAt(wt,St,wt-Tt*gt*ct*kt,St-Mt*gt*ct*kt,wt+Tt*gt*ct*kt,St+Mt*gt*ct*kt,mt,!0),_t+=st*kt}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],_e),_e}(),rt=function(){function _e(tt,j){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=tt,this.comp=tt.comp,this.frameId=-1,this.d=j.d,this.initDynamicPropertyContainer(tt),this.p=PropertyFactory.getProp(tt,j.p,1,0,this),this.s=PropertyFactory.getProp(tt,j.s,1,0,this),this.r=PropertyFactory.getProp(tt,j.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return _e.prototype={convertRectToPath:function(){var j=this.p.v[0],st=this.p.v[1],ut=this.s.v[0]/2,ct=this.s.v[1]/2,gt=bmMin(ut,ct,this.r.v),mt=gt*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(j+ut,st-ct+gt,j+ut,st-ct+gt,j+ut,st-ct+mt,0,!0),this.v.setTripleAt(j+ut,st+ct-gt,j+ut,st+ct-mt,j+ut,st+ct-gt,1,!0),gt!==0?(this.v.setTripleAt(j+ut-gt,st+ct,j+ut-gt,st+ct,j+ut-mt,st+ct,2,!0),this.v.setTripleAt(j-ut+gt,st+ct,j-ut+mt,st+ct,j-ut+gt,st+ct,3,!0),this.v.setTripleAt(j-ut,st+ct-gt,j-ut,st+ct-gt,j-ut,st+ct-mt,4,!0),this.v.setTripleAt(j-ut,st-ct+gt,j-ut,st-ct+mt,j-ut,st-ct+gt,5,!0),this.v.setTripleAt(j-ut+gt,st-ct,j-ut+gt,st-ct,j-ut+mt,st-ct,6,!0),this.v.setTripleAt(j+ut-gt,st-ct,j+ut-mt,st-ct,j+ut-gt,st-ct,7,!0)):(this.v.setTripleAt(j-ut,st+ct,j-ut+mt,st+ct,j-ut,st+ct,2),this.v.setTripleAt(j-ut,st-ct,j-ut,st-ct+mt,j-ut,st-ct,3))):(this.v.setTripleAt(j+ut,st-ct+gt,j+ut,st-ct+mt,j+ut,st-ct+gt,0,!0),gt!==0?(this.v.setTripleAt(j+ut-gt,st-ct,j+ut-gt,st-ct,j+ut-mt,st-ct,1,!0),this.v.setTripleAt(j-ut+gt,st-ct,j-ut+mt,st-ct,j-ut+gt,st-ct,2,!0),this.v.setTripleAt(j-ut,st-ct+gt,j-ut,st-ct+gt,j-ut,st-ct+mt,3,!0),this.v.setTripleAt(j-ut,st+ct-gt,j-ut,st+ct-mt,j-ut,st+ct-gt,4,!0),this.v.setTripleAt(j-ut+gt,st+ct,j-ut+gt,st+ct,j-ut+mt,st+ct,5,!0),this.v.setTripleAt(j+ut-gt,st+ct,j+ut-mt,st+ct,j+ut-gt,st+ct,6,!0),this.v.setTripleAt(j+ut,st+ct-gt,j+ut,st+ct-gt,j+ut,st+ct-mt,7,!0)):(this.v.setTripleAt(j-ut,st-ct,j-ut+mt,st-ct,j-ut,st-ct,1,!0),this.v.setTripleAt(j-ut,st+ct,j-ut,st+ct-mt,j-ut,st+ct,2,!0),this.v.setTripleAt(j+ut,st+ct,j+ut-mt,st+ct,j+ut,st+ct,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],_e),_e}();function at(_e,tt,j){var st;if(j===3||j===4){var ut=j===3?tt.pt:tt.ks,ct=ut.k;ct.length?st=new $(_e,tt,j):st=new _(_e,tt,j)}else j===5?st=new rt(_e,tt):j===6?st=new et(_e,tt):j===7&&(st=new ot(_e,tt));return st.k&&_e.addDynamicProperty(st),st}function it(){return _}function nt(){return $}var dt={};return dt.getShapeProp=at,dt.getConstructorFunction=it,dt.getKeyframedConstructorFunction=nt,dt}();/*!
40
+ `+c.stack}return{value:e,source:s,stack:o,digest:null}}function Ki(e,s,i){return{value:e,source:null,stack:i??null,digest:s??null}}function Li(e,s){try{console.error(s.value)}catch(i){setTimeout(function(){throw i})}}var Mi=typeof WeakMap=="function"?WeakMap:Map;function Ni(e,s,i){i=mh(-1,i),i.tag=3,i.payload={element:null};var a=s.value;return i.callback=function(){Oi||(Oi=!0,Pi=a),Li(e,s)},i}function Qi(e,s,i){i=mh(-1,i),i.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var o=s.value;i.payload=function(){return a(o)},i.callback=function(){Li(e,s)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(i.callback=function(){Li(e,s),typeof a!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var g=s.stack;this.componentDidCatch(s.value,{componentStack:g!==null?g:""})}),i}function Si(e,s,i){var a=e.pingCache;if(a===null){a=e.pingCache=new Mi;var o=new Set;a.set(s,o)}else o=a.get(s),o===void 0&&(o=new Set,a.set(s,o));o.has(i)||(o.add(i),e=Ti.bind(null,e,s,i),s.then(e,e))}function Ui(e){do{var s;if((s=e.tag===13)&&(s=e.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return e;e=e.return}while(e!==null);return null}function Vi(e,s,i,a,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===s?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(s=mh(-1,1),s.tag=2,nh(i,s,1))),i.lanes|=1),e)}var Wi=ua.ReactCurrentOwner,dh=!1;function Xi(e,s,i,a){s.child=e===null?Vg(s,null,i,a):Ug(s,e.child,i,a)}function Yi(e,s,i,a,o){i=i.render;var c=s.ref;return ch(s,o),a=Nh(e,s,i,a,c,o),i=Sh(),e!==null&&!dh?(s.updateQueue=e.updateQueue,s.flags&=-2053,e.lanes&=~o,Zi(e,s,o)):(I&&i&&vg(s),s.flags|=1,Xi(e,s,a,o),s.child)}function $i(e,s,i,a,o){if(e===null){var c=i.type;return typeof c=="function"&&!aj(c)&&c.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(s.tag=15,s.type=c,bj(e,s,c,a,o)):(e=Rg(i.type,null,a,s,s.mode,o),e.ref=s.ref,e.return=s,s.child=e)}if(c=e.child,!(e.lanes&o)){var g=c.memoizedProps;if(i=i.compare,i=i!==null?i:Ie,i(g,a)&&e.ref===s.ref)return Zi(e,s,o)}return s.flags|=1,e=Pg(c,a),e.ref=s.ref,e.return=s,s.child=e}function bj(e,s,i,a,o){if(e!==null){var c=e.memoizedProps;if(Ie(c,a)&&e.ref===s.ref)if(dh=!1,s.pendingProps=a=c,(e.lanes&o)!==0)e.flags&131072&&(dh=!0);else return s.lanes=e.lanes,Zi(e,s,o)}return cj(e,s,i,a,o)}function dj(e,s,i){var a=s.pendingProps,o=a.children,c=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(ej,fj),fj|=i;else{if(!(i&1073741824))return e=c!==null?c.baseLanes|i:i,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:e,cachePool:null,transitions:null},s.updateQueue=null,G(ej,fj),fj|=e,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=c!==null?c.baseLanes:i,G(ej,fj),fj|=a}else c!==null?(a=c.baseLanes|i,s.memoizedState=null):a=i,G(ej,fj),fj|=a;return Xi(e,s,o,i),s.child}function gj(e,s){var i=s.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(s.flags|=512,s.flags|=2097152)}function cj(e,s,i,a,o){var c=Zf(i)?Xf:H.current;return c=Yf(s,c),ch(s,o),i=Nh(e,s,i,a,c,o),a=Sh(),e!==null&&!dh?(s.updateQueue=e.updateQueue,s.flags&=-2053,e.lanes&=~o,Zi(e,s,o)):(I&&a&&vg(s),s.flags|=1,Xi(e,s,i,o),s.child)}function hj(e,s,i,a,o){if(Zf(i)){var c=!0;cg(s)}else c=!1;if(ch(s,o),s.stateNode===null)ij(e,s),Gi(s,i,a),Ii(s,i,a,o),a=!0;else if(e===null){var g=s.stateNode,_=s.memoizedProps;g.props=_;var b=g.context,$=i.contextType;typeof $=="object"&&$!==null?$=eh($):($=Zf(i)?Xf:H.current,$=Yf(s,$));var et=i.getDerivedStateFromProps,ot=typeof et=="function"||typeof g.getSnapshotBeforeUpdate=="function";ot||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_!==a||b!==$)&&Hi(s,g,a,$),jh=!1;var rt=s.memoizedState;g.state=rt,qh(s,a,g,o),b=s.memoizedState,_!==a||rt!==b||Wf.current||jh?(typeof et=="function"&&(Di(s,i,et,a),b=s.memoizedState),(_=jh||Fi(s,i,_,a,rt,b,$))?(ot||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(s.flags|=4194308)):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=a,s.memoizedState=b),g.props=a,g.state=b,g.context=$,a=_):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),a=!1)}else{g=s.stateNode,lh(e,s),_=s.memoizedProps,$=s.type===s.elementType?_:Ci(s.type,_),g.props=$,ot=s.pendingProps,rt=g.context,b=i.contextType,typeof b=="object"&&b!==null?b=eh(b):(b=Zf(i)?Xf:H.current,b=Yf(s,b));var at=i.getDerivedStateFromProps;(et=typeof at=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_!==ot||rt!==b)&&Hi(s,g,a,b),jh=!1,rt=s.memoizedState,g.state=rt,qh(s,a,g,o);var it=s.memoizedState;_!==ot||rt!==it||Wf.current||jh?(typeof at=="function"&&(Di(s,i,at,a),it=s.memoizedState),($=jh||Fi(s,i,$,a,rt,it,b)||!1)?(et||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,it,b),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,it,b)),typeof g.componentDidUpdate=="function"&&(s.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof g.componentDidUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=1024),s.memoizedProps=a,s.memoizedState=it),g.props=a,g.state=it,g.context=b,a=$):(typeof g.componentDidUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=1024),a=!1)}return jj(e,s,i,a,c,o)}function jj(e,s,i,a,o,c){gj(e,s);var g=(s.flags&128)!==0;if(!a&&!g)return o&&dg(s,i,!1),Zi(e,s,c);a=s.stateNode,Wi.current=s;var _=g&&typeof i.getDerivedStateFromError!="function"?null:a.render();return s.flags|=1,e!==null&&g?(s.child=Ug(s,e.child,null,c),s.child=Ug(s,null,_,c)):Xi(e,s,_,c),s.memoizedState=a.state,o&&dg(s,i,!0),s.child}function kj(e){var s=e.stateNode;s.pendingContext?ag(e,s.pendingContext,s.pendingContext!==s.context):s.context&&ag(e,s.context,!1),yh(e,s.containerInfo)}function lj(e,s,i,a,o){return Ig(),Jg(o),s.flags|=256,Xi(e,s,i,a),s.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(e){return{baseLanes:e,cachePool:null,transitions:null}}function oj(e,s,i){var a=s.pendingProps,o=L.current,c=!1,g=(s.flags&128)!==0,_;if((_=g)||(_=e!==null&&e.memoizedState===null?!1:(o&2)!==0),_?(c=!0,s.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),G(L,o&1),e===null)return Eg(s),e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(s.mode&1?e.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(g=a.children,e=a.fallback,c?(a=s.mode,c=s.child,g={mode:"hidden",children:g},!(a&1)&&c!==null?(c.childLanes=0,c.pendingProps=g):c=pj(g,a,0,null),e=Tg(e,a,i,null),c.return=s,e.return=s,c.sibling=e,s.child=c,s.child.memoizedState=nj(i),s.memoizedState=mj,e):qj(s,g));if(o=e.memoizedState,o!==null&&(_=o.dehydrated,_!==null))return rj(e,s,g,a,_,o,i);if(c){c=a.fallback,g=s.mode,o=e.child,_=o.sibling;var b={mode:"hidden",children:a.children};return!(g&1)&&s.child!==o?(a=s.child,a.childLanes=0,a.pendingProps=b,s.deletions=null):(a=Pg(o,b),a.subtreeFlags=o.subtreeFlags&14680064),_!==null?c=Pg(_,c):(c=Tg(c,g,i,null),c.flags|=2),c.return=s,a.return=s,a.sibling=c,s.child=a,a=c,c=s.child,g=e.child.memoizedState,g=g===null?nj(i):{baseLanes:g.baseLanes|i,cachePool:null,transitions:g.transitions},c.memoizedState=g,c.childLanes=e.childLanes&~i,s.memoizedState=mj,a}return c=e.child,e=c.sibling,a=Pg(c,{mode:"visible",children:a.children}),!(s.mode&1)&&(a.lanes=i),a.return=s,a.sibling=null,e!==null&&(i=s.deletions,i===null?(s.deletions=[e],s.flags|=16):i.push(e)),s.child=a,s.memoizedState=null,a}function qj(e,s){return s=pj({mode:"visible",children:s},e.mode,0,null),s.return=e,e.child=s}function sj(e,s,i,a){return a!==null&&Jg(a),Ug(s,e.child,null,i),e=qj(s,s.pendingProps.children),e.flags|=2,s.memoizedState=null,e}function rj(e,s,i,a,o,c,g){if(i)return s.flags&256?(s.flags&=-257,a=Ki(Error(p$1(422))),sj(e,s,g,a)):s.memoizedState!==null?(s.child=e.child,s.flags|=128,null):(c=a.fallback,o=s.mode,a=pj({mode:"visible",children:a.children},o,0,null),c=Tg(c,o,g,null),c.flags|=2,a.return=s,c.return=s,a.sibling=c,s.child=a,s.mode&1&&Ug(s,e.child,null,g),s.child.memoizedState=nj(g),s.memoizedState=mj,c);if(!(s.mode&1))return sj(e,s,g,null);if(o.data==="$!"){if(a=o.nextSibling&&o.nextSibling.dataset,a)var _=a.dgst;return a=_,c=Error(p$1(419)),a=Ki(c,a,void 0),sj(e,s,g,a)}if(_=(g&e.childLanes)!==0,dh||_){if(a=Q,a!==null){switch(g&-g){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(a.suspendedLanes|g)?0:o,o!==0&&o!==c.retryLane&&(c.retryLane=o,ih(e,o),gi(a,e,o,-1))}return tj(),a=Ki(Error(p$1(421))),sj(e,s,g,a)}return o.data==="$?"?(s.flags|=128,s.child=e.child,s=uj.bind(null,e),o._reactRetry=s,null):(e=c.treeContext,yg=Lf(o.nextSibling),xg=s,I=!0,zg=null,e!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=e.id,sg=e.overflow,qg=s),s=qj(s,a.children),s.flags|=4096,s)}function vj(e,s,i){e.lanes|=s;var a=e.alternate;a!==null&&(a.lanes|=s),bh(e.return,s,i)}function wj(e,s,i,a,o){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:a,tail:i,tailMode:o}:(c.isBackwards=s,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=i,c.tailMode=o)}function xj(e,s,i){var a=s.pendingProps,o=a.revealOrder,c=a.tail;if(Xi(e,s,a.children,i),a=L.current,a&2)a=a&1|2,s.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=s.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vj(e,i,s);else if(e.tag===19)vj(e,i,s);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===s)break e;for(;e.sibling===null;){if(e.return===null||e.return===s)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(G(L,a),!(s.mode&1))s.memoizedState=null;else switch(o){case"forwards":for(i=s.child,o=null;i!==null;)e=i.alternate,e!==null&&Ch(e)===null&&(o=i),i=i.sibling;i=o,i===null?(o=s.child,s.child=null):(o=i.sibling,i.sibling=null),wj(s,!1,o,i,c);break;case"backwards":for(i=null,o=s.child,s.child=null;o!==null;){if(e=o.alternate,e!==null&&Ch(e)===null){s.child=o;break}e=o.sibling,o.sibling=i,i=o,o=e}wj(s,!0,i,null,c);break;case"together":wj(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ij(e,s){!(s.mode&1)&&e!==null&&(e.alternate=null,s.alternate=null,s.flags|=2)}function Zi(e,s,i){if(e!==null&&(s.dependencies=e.dependencies),rh|=s.lanes,!(i&s.childLanes))return null;if(e!==null&&s.child!==e.child)throw Error(p$1(153));if(s.child!==null){for(e=s.child,i=Pg(e,e.pendingProps),s.child=i,i.return=s;e.sibling!==null;)e=e.sibling,i=i.sibling=Pg(e,e.pendingProps),i.return=s;i.sibling=null}return s.child}function yj(e,s,i){switch(s.tag){case 3:kj(s),Ig();break;case 5:Ah(s);break;case 1:Zf(s.type)&&cg(s);break;case 4:yh(s,s.stateNode.containerInfo);break;case 10:var a=s.type._context,o=s.memoizedProps.value;G(Wg,a._currentValue),a._currentValue=o;break;case 13:if(a=s.memoizedState,a!==null)return a.dehydrated!==null?(G(L,L.current&1),s.flags|=128,null):i&s.child.childLanes?oj(e,s,i):(G(L,L.current&1),e=Zi(e,s,i),e!==null?e.sibling:null);G(L,L.current&1);break;case 19:if(a=(i&s.childLanes)!==0,e.flags&128){if(a)return xj(e,s,i);s.flags|=128}if(o=s.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),G(L,L.current),a)break;return null;case 22:case 23:return s.lanes=0,dj(e,s,i)}return Zi(e,s,i)}var zj,Aj,Bj,Cj;zj=function(e,s){for(var i=s.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};Aj=function(){};Bj=function(e,s,i,a){var o=e.memoizedProps;if(o!==a){e=s.stateNode,xh(uh.current);var c=null;switch(i){case"input":o=Ya(e,o),a=Ya(e,a),c=[];break;case"select":o=A({},o,{value:void 0}),a=A({},a,{value:void 0}),c=[];break;case"textarea":o=gb(e,o),a=gb(e,a),c=[];break;default:typeof o.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Bf)}ub(i,a);var g;i=null;for($ in o)if(!a.hasOwnProperty($)&&o.hasOwnProperty($)&&o[$]!=null)if($==="style"){var _=o[$];for(g in _)_.hasOwnProperty(g)&&(i||(i={}),i[g]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(ea.hasOwnProperty($)?c||(c=[]):(c=c||[]).push($,null));for($ in a){var b=a[$];if(_=o!=null?o[$]:void 0,a.hasOwnProperty($)&&b!==_&&(b!=null||_!=null))if($==="style")if(_){for(g in _)!_.hasOwnProperty(g)||b&&b.hasOwnProperty(g)||(i||(i={}),i[g]="");for(g in b)b.hasOwnProperty(g)&&_[g]!==b[g]&&(i||(i={}),i[g]=b[g])}else i||(c||(c=[]),c.push($,i)),i=b;else $==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,_=_?_.__html:void 0,b!=null&&_!==b&&(c=c||[]).push($,b)):$==="children"?typeof b!="string"&&typeof b!="number"||(c=c||[]).push($,""+b):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(ea.hasOwnProperty($)?(b!=null&&$==="onScroll"&&D("scroll",e),c||_===b||(c=[])):(c=c||[]).push($,b))}i&&(c=c||[]).push("style",i);var $=c;(s.updateQueue=$)&&(s.flags|=4)}};Cj=function(e,s,i,a){i!==a&&(s.flags|=4)};function Dj(e,s){if(!I)switch(e.tailMode){case"hidden":s=e.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?s||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function S(e){var s=e.alternate!==null&&e.alternate.child===e.child,i=0,a=0;if(s)for(var o=e.child;o!==null;)i|=o.lanes|o.childLanes,a|=o.subtreeFlags&14680064,a|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)i|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=i,s}function Ej(e,s,i){var a=s.pendingProps;switch(wg(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(s),null;case 1:return Zf(s.type)&&$f(),S(s),null;case 3:return a=s.stateNode,zh(),E(Wf),E(H),Eh(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Gg(s)?s.flags|=4:e===null||e.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,zg!==null&&(Fj(zg),zg=null))),Aj(e,s),S(s),null;case 5:Bh(s);var o=xh(wh.current);if(i=s.type,e!==null&&s.stateNode!=null)Bj(e,s,i,a,o),e.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!a){if(s.stateNode===null)throw Error(p$1(166));return S(s),null}if(e=xh(uh.current),Gg(s)){a=s.stateNode,i=s.type;var c=s.memoizedProps;switch(a[Of]=s,a[Pf]=c,e=(s.mode&1)!==0,i){case"dialog":D("cancel",a),D("close",a);break;case"iframe":case"object":case"embed":D("load",a);break;case"video":case"audio":for(o=0;o<lf.length;o++)D(lf[o],a);break;case"source":D("error",a);break;case"img":case"image":case"link":D("error",a),D("load",a);break;case"details":D("toggle",a);break;case"input":Za(a,c),D("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!c.multiple},D("invalid",a);break;case"textarea":hb(a,c),D("invalid",a)}ub(i,c),o=null;for(var g in c)if(c.hasOwnProperty(g)){var _=c[g];g==="children"?typeof _=="string"?a.textContent!==_&&(c.suppressHydrationWarning!==!0&&Af(a.textContent,_,e),o=["children",_]):typeof _=="number"&&a.textContent!==""+_&&(c.suppressHydrationWarning!==!0&&Af(a.textContent,_,e),o=["children",""+_]):ea.hasOwnProperty(g)&&_!=null&&g==="onScroll"&&D("scroll",a)}switch(i){case"input":Va(a),db(a,c,!0);break;case"textarea":Va(a),jb(a);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(a.onclick=Bf)}a=o,s.updateQueue=a,a!==null&&(s.flags|=4)}else{g=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=kb(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=g.createElement(i,{is:a.is}):(e=g.createElement(i),i==="select"&&(g=e,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):e=g.createElementNS(e,i),e[Of]=s,e[Pf]=a,zj(e,s,!1,!1),s.stateNode=e;e:{switch(g=vb(i,a),i){case"dialog":D("cancel",e),D("close",e),o=a;break;case"iframe":case"object":case"embed":D("load",e),o=a;break;case"video":case"audio":for(o=0;o<lf.length;o++)D(lf[o],e);o=a;break;case"source":D("error",e),o=a;break;case"img":case"image":case"link":D("error",e),D("load",e),o=a;break;case"details":D("toggle",e),o=a;break;case"input":Za(e,a),o=Ya(e,a),D("invalid",e);break;case"option":o=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},o=A({},a,{value:void 0}),D("invalid",e);break;case"textarea":hb(e,a),o=gb(e,a),D("invalid",e);break;default:o=a}ub(i,o),_=o;for(c in _)if(_.hasOwnProperty(c)){var b=_[c];c==="style"?sb(e,b):c==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&nb(e,b)):c==="children"?typeof b=="string"?(i!=="textarea"||b!=="")&&ob(e,b):typeof b=="number"&&ob(e,""+b):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ea.hasOwnProperty(c)?b!=null&&c==="onScroll"&&D("scroll",e):b!=null&&ta(e,c,b,g))}switch(i){case"input":Va(e),db(e,a,!1);break;case"textarea":Va(e),jb(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Sa(a.value));break;case"select":e.multiple=!!a.multiple,c=a.value,c!=null?fb(e,!!a.multiple,c,!1):a.defaultValue!=null&&fb(e,!!a.multiple,a.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Bf)}switch(i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return S(s),null;case 6:if(e&&s.stateNode!=null)Cj(e,s,e.memoizedProps,a);else{if(typeof a!="string"&&s.stateNode===null)throw Error(p$1(166));if(i=xh(wh.current),xh(uh.current),Gg(s)){if(a=s.stateNode,i=s.memoizedProps,a[Of]=s,(c=a.nodeValue!==i)&&(e=xg,e!==null))switch(e.tag){case 3:Af(a.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Af(a.nodeValue,i,(e.mode&1)!==0)}c&&(s.flags|=4)}else a=(i.nodeType===9?i:i.ownerDocument).createTextNode(a),a[Of]=s,s.stateNode=a}return S(s),null;case 13:if(E(L),a=s.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(I&&yg!==null&&s.mode&1&&!(s.flags&128))Hg(),Ig(),s.flags|=98560,c=!1;else if(c=Gg(s),a!==null&&a.dehydrated!==null){if(e===null){if(!c)throw Error(p$1(318));if(c=s.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(p$1(317));c[Of]=s}else Ig(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;S(s),c=!1}else zg!==null&&(Fj(zg),zg=null),c=!0;if(!c)return s.flags&65536?s:null}return s.flags&128?(s.lanes=i,s):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(s.child.flags|=8192,s.mode&1&&(e===null||L.current&1?T===0&&(T=3):tj())),s.updateQueue!==null&&(s.flags|=4),S(s),null);case 4:return zh(),Aj(e,s),e===null&&sf(s.stateNode.containerInfo),S(s),null;case 10:return ah(s.type._context),S(s),null;case 17:return Zf(s.type)&&$f(),S(s),null;case 19:if(E(L),c=s.memoizedState,c===null)return S(s),null;if(a=(s.flags&128)!==0,g=c.rendering,g===null)if(a)Dj(c,!1);else{if(T!==0||e!==null&&e.flags&128)for(e=s.child;e!==null;){if(g=Ch(e),g!==null){for(s.flags|=128,Dj(c,!1),a=g.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),s.subtreeFlags=0,a=i,i=s.child;i!==null;)c=i,e=a,c.flags&=14680066,g=c.alternate,g===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=g.childLanes,c.lanes=g.lanes,c.child=g.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=g.memoizedProps,c.memoizedState=g.memoizedState,c.updateQueue=g.updateQueue,c.type=g.type,e=g.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return G(L,L.current&1|2),s.child}e=e.sibling}c.tail!==null&&B()>Gj&&(s.flags|=128,a=!0,Dj(c,!1),s.lanes=4194304)}else{if(!a)if(e=Ch(g),e!==null){if(s.flags|=128,a=!0,i=e.updateQueue,i!==null&&(s.updateQueue=i,s.flags|=4),Dj(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!I)return S(s),null}else 2*B()-c.renderingStartTime>Gj&&i!==1073741824&&(s.flags|=128,a=!0,Dj(c,!1),s.lanes=4194304);c.isBackwards?(g.sibling=s.child,s.child=g):(i=c.last,i!==null?i.sibling=g:s.child=g,c.last=g)}return c.tail!==null?(s=c.tail,c.rendering=s,c.tail=s.sibling,c.renderingStartTime=B(),s.sibling=null,i=L.current,G(L,a?i&1|2:i&1),s):(S(s),null);case 22:case 23:return Hj(),a=s.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(s.flags|=8192),a&&s.mode&1?fj&1073741824&&(S(s),s.subtreeFlags&6&&(s.flags|=8192)):S(s),null;case 24:return null;case 25:return null}throw Error(p$1(156,s.tag))}function Ij(e,s){switch(wg(s),s.tag){case 1:return Zf(s.type)&&$f(),e=s.flags,e&65536?(s.flags=e&-65537|128,s):null;case 3:return zh(),E(Wf),E(H),Eh(),e=s.flags,e&65536&&!(e&128)?(s.flags=e&-65537|128,s):null;case 5:return Bh(s),null;case 13:if(E(L),e=s.memoizedState,e!==null&&e.dehydrated!==null){if(s.alternate===null)throw Error(p$1(340));Ig()}return e=s.flags,e&65536?(s.flags=e&-65537|128,s):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(s.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(e,s){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(a){W(e,s,a)}else i.current=null}function Mj(e,s,i){try{i()}catch(a){W(e,s,a)}}var Nj=!1;function Oj(e,s){if(Cf=dd,e=Me(),Ne(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var g=0,_=-1,b=-1,$=0,et=0,ot=e,rt=null;t:for(;;){for(var at;ot!==i||o!==0&&ot.nodeType!==3||(_=g+o),ot!==c||a!==0&&ot.nodeType!==3||(b=g+a),ot.nodeType===3&&(g+=ot.nodeValue.length),(at=ot.firstChild)!==null;)rt=ot,ot=at;for(;;){if(ot===e)break t;if(rt===i&&++$===o&&(_=g),rt===c&&++et===a&&(b=g),(at=ot.nextSibling)!==null)break;ot=rt,rt=ot.parentNode}ot=at}i=_===-1||b===-1?null:{start:_,end:b}}else i=null}i=i||{start:0,end:0}}else i=null;for(Df={focusedElem:e,selectionRange:i},dd=!1,V=s;V!==null;)if(s=V,e=s.child,(s.subtreeFlags&1028)!==0&&e!==null)e.return=s,V=e;else for(;V!==null;){s=V;try{var it=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(it!==null){var nt=it.memoizedProps,dt=it.memoizedState,_e=s.stateNode,tt=_e.getSnapshotBeforeUpdate(s.elementType===s.type?nt:Ci(s.type,nt),dt);_e.__reactInternalSnapshotBeforeUpdate=tt}break;case 3:var j=s.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$1(163))}}catch(st){W(s,s.return,st)}if(e=s.sibling,e!==null){e.return=s.return,V=e;break}V=s.return}return it=Nj,Nj=!1,it}function Pj(e,s,i){var a=s.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var c=o.destroy;o.destroy=void 0,c!==void 0&&Mj(s,i,c)}o=o.next}while(o!==a)}}function Qj(e,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&e)===e){var a=i.create;i.destroy=a()}i=i.next}while(i!==s)}}function Rj(e){var s=e.ref;if(s!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof s=="function"?s(e):s.current=e}}function Sj(e){var s=e.alternate;s!==null&&(e.alternate=null,Sj(s)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(s=e.stateNode,s!==null&&(delete s[Of],delete s[Pf],delete s[of],delete s[Qf],delete s[Rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tj(e){return e.tag===5||e.tag===3||e.tag===4}function Uj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vj(e,s,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,s?i.nodeType===8?i.parentNode.insertBefore(e,s):i.insertBefore(e,s):(i.nodeType===8?(s=i.parentNode,s.insertBefore(e,i)):(s=i,s.appendChild(e)),i=i._reactRootContainer,i!=null||s.onclick!==null||(s.onclick=Bf));else if(a!==4&&(e=e.child,e!==null))for(Vj(e,s,i),e=e.sibling;e!==null;)Vj(e,s,i),e=e.sibling}function Wj(e,s,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,s?i.insertBefore(e,s):i.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Wj(e,s,i),e=e.sibling;e!==null;)Wj(e,s,i),e=e.sibling}var X=null,Xj=!1;function Yj(e,s,i){for(i=i.child;i!==null;)Zj(e,s,i),i=i.sibling}function Zj(e,s,i){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,i)}catch{}switch(i.tag){case 5:U||Lj(i,s);case 6:var a=X,o=Xj;X=null,Yj(e,s,i),X=a,Xj=o,X!==null&&(Xj?(e=X,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):X.removeChild(i.stateNode));break;case 18:X!==null&&(Xj?(e=X,i=i.stateNode,e.nodeType===8?Kf(e.parentNode,i):e.nodeType===1&&Kf(e,i),bd(e)):Kf(X,i.stateNode));break;case 4:a=X,o=Xj,X=i.stateNode.containerInfo,Xj=!0,Yj(e,s,i),X=a,Xj=o;break;case 0:case 11:case 14:case 15:if(!U&&(a=i.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){o=a=a.next;do{var c=o,g=c.destroy;c=c.tag,g!==void 0&&(c&2||c&4)&&Mj(i,s,g),o=o.next}while(o!==a)}Yj(e,s,i);break;case 1:if(!U&&(Lj(i,s),a=i.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(_){W(i,s,_)}Yj(e,s,i);break;case 21:Yj(e,s,i);break;case 22:i.mode&1?(U=(a=U)||i.memoizedState!==null,Yj(e,s,i),U=a):Yj(e,s,i);break;default:Yj(e,s,i)}}function ak(e){var s=e.updateQueue;if(s!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Kj),s.forEach(function(a){var o=bk.bind(null,e,a);i.has(a)||(i.add(a),a.then(o,o))})}}function ck(e,s){var i=s.deletions;if(i!==null)for(var a=0;a<i.length;a++){var o=i[a];try{var c=e,g=s,_=g;e:for(;_!==null;){switch(_.tag){case 5:X=_.stateNode,Xj=!1;break e;case 3:X=_.stateNode.containerInfo,Xj=!0;break e;case 4:X=_.stateNode.containerInfo,Xj=!0;break e}_=_.return}if(X===null)throw Error(p$1(160));Zj(c,g,o),X=null,Xj=!1;var b=o.alternate;b!==null&&(b.return=null),o.return=null}catch($){W(o,s,$)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)dk(s,e),s=s.sibling}function dk(e,s){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ck(s,e),ek(e),a&4){try{Pj(3,e,e.return),Qj(3,e)}catch(nt){W(e,e.return,nt)}try{Pj(5,e,e.return)}catch(nt){W(e,e.return,nt)}}break;case 1:ck(s,e),ek(e),a&512&&i!==null&&Lj(i,i.return);break;case 5:if(ck(s,e),ek(e),a&512&&i!==null&&Lj(i,i.return),e.flags&32){var o=e.stateNode;try{ob(o,"")}catch(nt){W(e,e.return,nt)}}if(a&4&&(o=e.stateNode,o!=null)){var c=e.memoizedProps,g=i!==null?i.memoizedProps:c,_=e.type,b=e.updateQueue;if(e.updateQueue=null,b!==null)try{_==="input"&&c.type==="radio"&&c.name!=null&&ab(o,c),vb(_,g);var $=vb(_,c);for(g=0;g<b.length;g+=2){var et=b[g],ot=b[g+1];et==="style"?sb(o,ot):et==="dangerouslySetInnerHTML"?nb(o,ot):et==="children"?ob(o,ot):ta(o,et,ot,$)}switch(_){case"input":bb(o,c);break;case"textarea":ib(o,c);break;case"select":var rt=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!c.multiple;var at=c.value;at!=null?fb(o,!!c.multiple,at,!1):rt!==!!c.multiple&&(c.defaultValue!=null?fb(o,!!c.multiple,c.defaultValue,!0):fb(o,!!c.multiple,c.multiple?[]:"",!1))}o[Pf]=c}catch(nt){W(e,e.return,nt)}}break;case 6:if(ck(s,e),ek(e),a&4){if(e.stateNode===null)throw Error(p$1(162));o=e.stateNode,c=e.memoizedProps;try{o.nodeValue=c}catch(nt){W(e,e.return,nt)}}break;case 3:if(ck(s,e),ek(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{bd(s.containerInfo)}catch(nt){W(e,e.return,nt)}break;case 4:ck(s,e),ek(e);break;case 13:ck(s,e),ek(e),o=e.child,o.flags&8192&&(c=o.memoizedState!==null,o.stateNode.isHidden=c,!c||o.alternate!==null&&o.alternate.memoizedState!==null||(fk=B())),a&4&&ak(e);break;case 22:if(et=i!==null&&i.memoizedState!==null,e.mode&1?(U=($=U)||et,ck(s,e),U=$):ck(s,e),ek(e),a&8192){if($=e.memoizedState!==null,(e.stateNode.isHidden=$)&&!et&&e.mode&1)for(V=e,et=e.child;et!==null;){for(ot=V=et;V!==null;){switch(rt=V,at=rt.child,rt.tag){case 0:case 11:case 14:case 15:Pj(4,rt,rt.return);break;case 1:Lj(rt,rt.return);var it=rt.stateNode;if(typeof it.componentWillUnmount=="function"){a=rt,i=rt.return;try{s=a,it.props=s.memoizedProps,it.state=s.memoizedState,it.componentWillUnmount()}catch(nt){W(a,i,nt)}}break;case 5:Lj(rt,rt.return);break;case 22:if(rt.memoizedState!==null){gk(ot);continue}}at!==null?(at.return=rt,V=at):gk(ot)}et=et.sibling}e:for(et=null,ot=e;;){if(ot.tag===5){if(et===null){et=ot;try{o=ot.stateNode,$?(c=o.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(_=ot.stateNode,b=ot.memoizedProps.style,g=b!=null&&b.hasOwnProperty("display")?b.display:null,_.style.display=rb("display",g))}catch(nt){W(e,e.return,nt)}}}else if(ot.tag===6){if(et===null)try{ot.stateNode.nodeValue=$?"":ot.memoizedProps}catch(nt){W(e,e.return,nt)}}else if((ot.tag!==22&&ot.tag!==23||ot.memoizedState===null||ot===e)&&ot.child!==null){ot.child.return=ot,ot=ot.child;continue}if(ot===e)break e;for(;ot.sibling===null;){if(ot.return===null||ot.return===e)break e;et===ot&&(et=null),ot=ot.return}et===ot&&(et=null),ot.sibling.return=ot.return,ot=ot.sibling}}break;case 19:ck(s,e),ek(e),a&4&&ak(e);break;case 21:break;default:ck(s,e),ek(e)}}function ek(e){var s=e.flags;if(s&2){try{e:{for(var i=e.return;i!==null;){if(Tj(i)){var a=i;break e}i=i.return}throw Error(p$1(160))}switch(a.tag){case 5:var o=a.stateNode;a.flags&32&&(ob(o,""),a.flags&=-33);var c=Uj(e);Wj(e,c,o);break;case 3:case 4:var g=a.stateNode.containerInfo,_=Uj(e);Vj(e,_,g);break;default:throw Error(p$1(161))}}catch(b){W(e,e.return,b)}e.flags&=-3}s&4096&&(e.flags&=-4097)}function hk(e,s,i){V=e,ik(e)}function ik(e,s,i){for(var a=(e.mode&1)!==0;V!==null;){var o=V,c=o.child;if(o.tag===22&&a){var g=o.memoizedState!==null||Jj;if(!g){var _=o.alternate,b=_!==null&&_.memoizedState!==null||U;_=Jj;var $=U;if(Jj=g,(U=b)&&!$)for(V=o;V!==null;)g=V,b=g.child,g.tag===22&&g.memoizedState!==null?jk(o):b!==null?(b.return=g,V=b):jk(o);for(;c!==null;)V=c,ik(c),c=c.sibling;V=o,Jj=_,U=$}kk(e)}else o.subtreeFlags&8772&&c!==null?(c.return=o,V=c):kk(e)}}function kk(e){for(;V!==null;){var s=V;if(s.flags&8772){var i=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:U||Qj(5,s);break;case 1:var a=s.stateNode;if(s.flags&4&&!U)if(i===null)a.componentDidMount();else{var o=s.elementType===s.type?i.memoizedProps:Ci(s.type,i.memoizedProps);a.componentDidUpdate(o,i.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var c=s.updateQueue;c!==null&&sh(s,c,a);break;case 3:var g=s.updateQueue;if(g!==null){if(i=null,s.child!==null)switch(s.child.tag){case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}sh(s,g,i)}break;case 5:var _=s.stateNode;if(i===null&&s.flags&4){i=_;var b=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":b.autoFocus&&i.focus();break;case"img":b.src&&(i.src=b.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var $=s.alternate;if($!==null){var et=$.memoizedState;if(et!==null){var ot=et.dehydrated;ot!==null&&bd(ot)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$1(163))}U||s.flags&512&&Rj(s)}catch(rt){W(s,s.return,rt)}}if(s===e){V=null;break}if(i=s.sibling,i!==null){i.return=s.return,V=i;break}V=s.return}}function gk(e){for(;V!==null;){var s=V;if(s===e){V=null;break}var i=s.sibling;if(i!==null){i.return=s.return,V=i;break}V=s.return}}function jk(e){for(;V!==null;){var s=V;try{switch(s.tag){case 0:case 11:case 15:var i=s.return;try{Qj(4,s)}catch(b){W(s,i,b)}break;case 1:var a=s.stateNode;if(typeof a.componentDidMount=="function"){var o=s.return;try{a.componentDidMount()}catch(b){W(s,o,b)}}var c=s.return;try{Rj(s)}catch(b){W(s,c,b)}break;case 5:var g=s.return;try{Rj(s)}catch(b){W(s,g,b)}}}catch(b){W(s,s.return,b)}if(s===e){V=null;break}var _=s.sibling;if(_!==null){_.return=s.return,V=_;break}V=s.return}}var lk=Math.ceil,mk=ua.ReactCurrentDispatcher,nk=ua.ReactCurrentOwner,ok=ua.ReactCurrentBatchConfig,K=0,Q=null,Y=null,Z=0,fj=0,ej=Uf(0),T=0,pk=null,rh=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=1/0,uk=null,Oi=!1,Pi=null,Ri=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R(){return K&6?B():Ak!==-1?Ak:Ak=B()}function yi(e){return e.mode&1?K&2&&Z!==0?Z&-Z:Kg.transition!==null?(Bk===0&&(Bk=yc()),Bk):(e=C,e!==0||(e=window.event,e=e===void 0?16:jd(e.type)),e):1}function gi(e,s,i,a){if(50<yk)throw yk=0,zk=null,Error(p$1(185));Ac(e,i,a),(!(K&2)||e!==Q)&&(e===Q&&(!(K&2)&&(qk|=i),T===4&&Ck(e,Z)),Dk(e,a),i===1&&K===0&&!(s.mode&1)&&(Gj=B()+500,fg&&jg()))}function Dk(e,s){var i=e.callbackNode;wc(e,s);var a=uc(e,e===Q?Z:0);if(a===0)i!==null&&bc(i),e.callbackNode=null,e.callbackPriority=0;else if(s=a&-a,e.callbackPriority!==s){if(i!=null&&bc(i),s===1)e.tag===0?ig(Ek.bind(null,e)):hg(Ek.bind(null,e)),Jf(function(){!(K&6)&&jg()}),i=null;else{switch(Dc(a)){case 1:i=fc;break;case 4:i=gc;break;case 16:i=hc;break;case 536870912:i=jc;break;default:i=hc}i=Fk(i,Gk.bind(null,e))}e.callbackPriority=s,e.callbackNode=i}}function Gk(e,s){if(Ak=-1,Bk=0,K&6)throw Error(p$1(327));var i=e.callbackNode;if(Hk()&&e.callbackNode!==i)return null;var a=uc(e,e===Q?Z:0);if(a===0)return null;if(a&30||a&e.expiredLanes||s)s=Ik(e,a);else{s=a;var o=K;K|=2;var c=Jk();(Q!==e||Z!==s)&&(uk=null,Gj=B()+500,Kk(e,s));do try{Lk();break}catch(_){Mk(e,_)}while(!0);$g(),mk.current=c,K=o,Y!==null?s=0:(Q=null,Z=0,s=T)}if(s!==0){if(s===2&&(o=xc(e),o!==0&&(a=o,s=Nk(e,o))),s===1)throw i=pk,Kk(e,0),Ck(e,a),Dk(e,B()),i;if(s===6)Ck(e,a);else{if(o=e.current.alternate,!(a&30)&&!Ok(o)&&(s=Ik(e,a),s===2&&(c=xc(e),c!==0&&(a=c,s=Nk(e,c))),s===1))throw i=pk,Kk(e,0),Ck(e,a),Dk(e,B()),i;switch(e.finishedWork=o,e.finishedLanes=a,s){case 0:case 1:throw Error(p$1(345));case 2:Pk(e,tk,uk);break;case 3:if(Ck(e,a),(a&130023424)===a&&(s=fk+500-B(),10<s)){if(uc(e,0)!==0)break;if(o=e.suspendedLanes,(o&a)!==a){R(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ff(Pk.bind(null,e,tk,uk),s);break}Pk(e,tk,uk);break;case 4:if(Ck(e,a),(a&4194240)===a)break;for(s=e.eventTimes,o=-1;0<a;){var g=31-oc(a);c=1<<g,g=s[g],g>o&&(o=g),a&=~c}if(a=o,a=B()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*lk(a/1960))-a,10<a){e.timeoutHandle=Ff(Pk.bind(null,e,tk,uk),a);break}Pk(e,tk,uk);break;case 5:Pk(e,tk,uk);break;default:throw Error(p$1(329))}}}return Dk(e,B()),e.callbackNode===i?Gk.bind(null,e):null}function Nk(e,s){var i=sk;return e.current.memoizedState.isDehydrated&&(Kk(e,s).flags|=256),e=Ik(e,s),e!==2&&(s=tk,tk=i,s!==null&&Fj(s)),e}function Fj(e){tk===null?tk=e:tk.push.apply(tk,e)}function Ok(e){for(var s=e;;){if(s.flags&16384){var i=s.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var a=0;a<i.length;a++){var o=i[a],c=o.getSnapshot;o=o.value;try{if(!He(c(),o))return!1}catch{return!1}}}if(i=s.child,s.subtreeFlags&16384&&i!==null)i.return=s,s=i;else{if(s===e)break;for(;s.sibling===null;){if(s.return===null||s.return===e)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ck(e,s){for(s&=~rk,s&=~qk,e.suspendedLanes|=s,e.pingedLanes&=~s,e=e.expirationTimes;0<s;){var i=31-oc(s),a=1<<i;e[i]=-1,s&=~a}}function Ek(e){if(K&6)throw Error(p$1(327));Hk();var s=uc(e,0);if(!(s&1))return Dk(e,B()),null;var i=Ik(e,s);if(e.tag!==0&&i===2){var a=xc(e);a!==0&&(s=a,i=Nk(e,a))}if(i===1)throw i=pk,Kk(e,0),Ck(e,s),Dk(e,B()),i;if(i===6)throw Error(p$1(345));return e.finishedWork=e.current.alternate,e.finishedLanes=s,Pk(e,tk,uk),Dk(e,B()),null}function Qk(e,s){var i=K;K|=1;try{return e(s)}finally{K=i,K===0&&(Gj=B()+500,fg&&jg())}}function Rk(e){wk!==null&&wk.tag===0&&!(K&6)&&Hk();var s=K;K|=1;var i=ok.transition,a=C;try{if(ok.transition=null,C=1,e)return e()}finally{C=a,ok.transition=i,K=s,!(K&6)&&jg()}}function Hj(){fj=ej.current,E(ej)}function Kk(e,s){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,Gf(i)),Y!==null)for(i=Y.return;i!==null;){var a=i;switch(wg(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&$f();break;case 3:zh(),E(Wf),E(H),Eh();break;case 5:Bh(a);break;case 4:zh();break;case 13:E(L);break;case 19:E(L);break;case 10:ah(a.type._context);break;case 22:case 23:Hj()}i=i.return}if(Q=e,Y=e=Pg(e.current,null),Z=fj=s,T=0,pk=null,rk=qk=rh=0,tk=sk=null,fh!==null){for(s=0;s<fh.length;s++)if(i=fh[s],a=i.interleaved,a!==null){i.interleaved=null;var o=a.next,c=i.pending;if(c!==null){var g=c.next;c.next=o,a.next=g}i.pending=a}fh=null}return e}function Mk(e,s){do{var i=Y;try{if($g(),Fh.current=Rh,Ih){for(var a=M.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Ih=!1}if(Hh=0,O=N=M=null,Jh=!1,Kh=0,nk.current=null,i===null||i.return===null){T=1,pk=s,Y=null;break}e:{var c=e,g=i.return,_=i,b=s;if(s=Z,_.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){var $=b,et=_,ot=et.tag;if(!(et.mode&1)&&(ot===0||ot===11||ot===15)){var rt=et.alternate;rt?(et.updateQueue=rt.updateQueue,et.memoizedState=rt.memoizedState,et.lanes=rt.lanes):(et.updateQueue=null,et.memoizedState=null)}var at=Ui(g);if(at!==null){at.flags&=-257,Vi(at,g,_,c,s),at.mode&1&&Si(c,$,s),s=at,b=$;var it=s.updateQueue;if(it===null){var nt=new Set;nt.add(b),s.updateQueue=nt}else it.add(b);break e}else{if(!(s&1)){Si(c,$,s),tj();break e}b=Error(p$1(426))}}else if(I&&_.mode&1){var dt=Ui(g);if(dt!==null){!(dt.flags&65536)&&(dt.flags|=256),Vi(dt,g,_,c,s),Jg(Ji(b,_));break e}}c=b=Ji(b,_),T!==4&&(T=2),sk===null?sk=[c]:sk.push(c),c=g;do{switch(c.tag){case 3:c.flags|=65536,s&=-s,c.lanes|=s;var _e=Ni(c,b,s);ph(c,_e);break e;case 1:_=b;var tt=c.type,j=c.stateNode;if(!(c.flags&128)&&(typeof tt.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(Ri===null||!Ri.has(j)))){c.flags|=65536,s&=-s,c.lanes|=s;var st=Qi(c,_,s);ph(c,st);break e}}c=c.return}while(c!==null)}Sk(i)}catch(ut){s=ut,Y===i&&i!==null&&(Y=i=i.return);continue}break}while(!0)}function Jk(){var e=mk.current;return mk.current=Rh,e===null?Rh:e}function tj(){(T===0||T===3||T===2)&&(T=4),Q===null||!(rh&268435455)&&!(qk&268435455)||Ck(Q,Z)}function Ik(e,s){var i=K;K|=2;var a=Jk();(Q!==e||Z!==s)&&(uk=null,Kk(e,s));do try{Tk();break}catch(o){Mk(e,o)}while(!0);if($g(),K=i,mk.current=a,Y!==null)throw Error(p$1(261));return Q=null,Z=0,T}function Tk(){for(;Y!==null;)Uk(Y)}function Lk(){for(;Y!==null&&!cc();)Uk(Y)}function Uk(e){var s=Vk(e.alternate,e,fj);e.memoizedProps=e.pendingProps,s===null?Sk(e):Y=s,nk.current=null}function Sk(e){var s=e;do{var i=s.alternate;if(e=s.return,s.flags&32768){if(i=Ij(i,s),i!==null){i.flags&=32767,Y=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{T=6,Y=null;return}}else if(i=Ej(i,s,fj),i!==null){Y=i;return}if(s=s.sibling,s!==null){Y=s;return}Y=s=e}while(s!==null);T===0&&(T=5)}function Pk(e,s,i){var a=C,o=ok.transition;try{ok.transition=null,C=1,Wk(e,s,i,a)}finally{ok.transition=o,C=a}return null}function Wk(e,s,i,a){do Hk();while(wk!==null);if(K&6)throw Error(p$1(327));i=e.finishedWork;var o=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(p$1(177));e.callbackNode=null,e.callbackPriority=0;var c=i.lanes|i.childLanes;if(Bc(e,c),e===Q&&(Y=Q=null,Z=0),!(i.subtreeFlags&2064)&&!(i.flags&2064)||vk||(vk=!0,Fk(hc,function(){return Hk(),null})),c=(i.flags&15990)!==0,i.subtreeFlags&15990||c){c=ok.transition,ok.transition=null;var g=C;C=1;var _=K;K|=4,nk.current=null,Oj(e,i),dk(i,e),Oe(Df),dd=!!Cf,Df=Cf=null,e.current=i,hk(i),dc(),K=_,C=g,ok.transition=c}else e.current=i;if(vk&&(vk=!1,wk=e,xk=o),c=e.pendingLanes,c===0&&(Ri=null),mc(i.stateNode),Dk(e,B()),s!==null)for(a=e.onRecoverableError,i=0;i<s.length;i++)o=s[i],a(o.value,{componentStack:o.stack,digest:o.digest});if(Oi)throw Oi=!1,e=Pi,Pi=null,e;return xk&1&&e.tag!==0&&Hk(),c=e.pendingLanes,c&1?e===zk?yk++:(yk=0,zk=e):yk=0,jg(),null}function Hk(){if(wk!==null){var e=Dc(xk),s=ok.transition,i=C;try{if(ok.transition=null,C=16>e?16:e,wk===null)var a=!1;else{if(e=wk,wk=null,xk=0,K&6)throw Error(p$1(331));var o=K;for(K|=4,V=e.current;V!==null;){var c=V,g=c.child;if(V.flags&16){var _=c.deletions;if(_!==null){for(var b=0;b<_.length;b++){var $=_[b];for(V=$;V!==null;){var et=V;switch(et.tag){case 0:case 11:case 15:Pj(8,et,c)}var ot=et.child;if(ot!==null)ot.return=et,V=ot;else for(;V!==null;){et=V;var rt=et.sibling,at=et.return;if(Sj(et),et===$){V=null;break}if(rt!==null){rt.return=at,V=rt;break}V=at}}}var it=c.alternate;if(it!==null){var nt=it.child;if(nt!==null){it.child=null;do{var dt=nt.sibling;nt.sibling=null,nt=dt}while(nt!==null)}}V=c}}if(c.subtreeFlags&2064&&g!==null)g.return=c,V=g;else e:for(;V!==null;){if(c=V,c.flags&2048)switch(c.tag){case 0:case 11:case 15:Pj(9,c,c.return)}var _e=c.sibling;if(_e!==null){_e.return=c.return,V=_e;break e}V=c.return}}var tt=e.current;for(V=tt;V!==null;){g=V;var j=g.child;if(g.subtreeFlags&2064&&j!==null)j.return=g,V=j;else e:for(g=tt;V!==null;){if(_=V,_.flags&2048)try{switch(_.tag){case 0:case 11:case 15:Qj(9,_)}}catch(ut){W(_,_.return,ut)}if(_===g){V=null;break e}var st=_.sibling;if(st!==null){st.return=_.return,V=st;break e}V=_.return}}if(K=o,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,e)}catch{}a=!0}return a}finally{C=i,ok.transition=s}}return!1}function Xk(e,s,i){s=Ji(i,s),s=Ni(e,s,1),e=nh(e,s,1),s=R(),e!==null&&(Ac(e,1,s),Dk(e,s))}function W(e,s,i){if(e.tag===3)Xk(e,e,i);else for(;s!==null;){if(s.tag===3){Xk(s,e,i);break}else if(s.tag===1){var a=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ri===null||!Ri.has(a))){e=Ji(i,e),e=Qi(s,e,1),s=nh(s,e,1),e=R(),s!==null&&(Ac(s,1,e),Dk(s,e));break}}s=s.return}}function Ti(e,s,i){var a=e.pingCache;a!==null&&a.delete(s),s=R(),e.pingedLanes|=e.suspendedLanes&i,Q===e&&(Z&i)===i&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-fk?Kk(e,0):rk|=i),Dk(e,s)}function Yk(e,s){s===0&&(e.mode&1?(s=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):s=1);var i=R();e=ih(e,s),e!==null&&(Ac(e,s,i),Dk(e,i))}function uj(e){var s=e.memoizedState,i=0;s!==null&&(i=s.retryLane),Yk(e,i)}function bk(e,s){var i=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(i=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(p$1(314))}a!==null&&a.delete(s),Yk(e,i)}var Vk;Vk=function(e,s,i){if(e!==null)if(e.memoizedProps!==s.pendingProps||Wf.current)dh=!0;else{if(!(e.lanes&i)&&!(s.flags&128))return dh=!1,yj(e,s,i);dh=!!(e.flags&131072)}else dh=!1,I&&s.flags&1048576&&ug(s,ng,s.index);switch(s.lanes=0,s.tag){case 2:var a=s.type;ij(e,s),e=s.pendingProps;var o=Yf(s,H.current);ch(s,i),o=Nh(null,s,a,e,o,i);var c=Sh();return s.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Zf(a)?(c=!0,cg(s)):c=!1,s.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,kh(s),o.updater=Ei,s.stateNode=o,o._reactInternals=s,Ii(s,a,e,i),s=jj(null,s,a,!0,c,i)):(s.tag=0,I&&c&&vg(s),Xi(null,s,o,i),s=s.child),s;case 16:a=s.elementType;e:{switch(ij(e,s),e=s.pendingProps,o=a._init,a=o(a._payload),s.type=a,o=s.tag=Zk(a),e=Ci(a,e),o){case 0:s=cj(null,s,a,e,i);break e;case 1:s=hj(null,s,a,e,i);break e;case 11:s=Yi(null,s,a,e,i);break e;case 14:s=$i(null,s,a,Ci(a.type,e),i);break e}throw Error(p$1(306,a,""))}return s;case 0:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),cj(e,s,a,o,i);case 1:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),hj(e,s,a,o,i);case 3:e:{if(kj(s),e===null)throw Error(p$1(387));a=s.pendingProps,c=s.memoizedState,o=c.element,lh(e,s),qh(s,a,null,i);var g=s.memoizedState;if(a=g.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},s.updateQueue.baseState=c,s.memoizedState=c,s.flags&256){o=Ji(Error(p$1(423)),s),s=lj(e,s,a,i,o);break e}else if(a!==o){o=Ji(Error(p$1(424)),s),s=lj(e,s,a,i,o);break e}else for(yg=Lf(s.stateNode.containerInfo.firstChild),xg=s,I=!0,zg=null,i=Vg(s,null,a,i),s.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ig(),a===o){s=Zi(e,s,i);break e}Xi(e,s,a,i)}s=s.child}return s;case 5:return Ah(s),e===null&&Eg(s),a=s.type,o=s.pendingProps,c=e!==null?e.memoizedProps:null,g=o.children,Ef(a,o)?g=null:c!==null&&Ef(a,c)&&(s.flags|=32),gj(e,s),Xi(e,s,g,i),s.child;case 6:return e===null&&Eg(s),null;case 13:return oj(e,s,i);case 4:return yh(s,s.stateNode.containerInfo),a=s.pendingProps,e===null?s.child=Ug(s,null,a,i):Xi(e,s,a,i),s.child;case 11:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),Yi(e,s,a,o,i);case 7:return Xi(e,s,s.pendingProps,i),s.child;case 8:return Xi(e,s,s.pendingProps.children,i),s.child;case 12:return Xi(e,s,s.pendingProps.children,i),s.child;case 10:e:{if(a=s.type._context,o=s.pendingProps,c=s.memoizedProps,g=o.value,G(Wg,a._currentValue),a._currentValue=g,c!==null)if(He(c.value,g)){if(c.children===o.children&&!Wf.current){s=Zi(e,s,i);break e}}else for(c=s.child,c!==null&&(c.return=s);c!==null;){var _=c.dependencies;if(_!==null){g=c.child;for(var b=_.firstContext;b!==null;){if(b.context===a){if(c.tag===1){b=mh(-1,i&-i),b.tag=2;var $=c.updateQueue;if($!==null){$=$.shared;var et=$.pending;et===null?b.next=b:(b.next=et.next,et.next=b),$.pending=b}}c.lanes|=i,b=c.alternate,b!==null&&(b.lanes|=i),bh(c.return,i,s),_.lanes|=i;break}b=b.next}}else if(c.tag===10)g=c.type===s.type?null:c.child;else if(c.tag===18){if(g=c.return,g===null)throw Error(p$1(341));g.lanes|=i,_=g.alternate,_!==null&&(_.lanes|=i),bh(g,i,s),g=c.sibling}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===s){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}Xi(e,s,o.children,i),s=s.child}return s;case 9:return o=s.type,a=s.pendingProps.children,ch(s,i),o=eh(o),a=a(o),s.flags|=1,Xi(e,s,a,i),s.child;case 14:return a=s.type,o=Ci(a,s.pendingProps),o=Ci(a.type,o),$i(e,s,a,o,i);case 15:return bj(e,s,s.type,s.pendingProps,i);case 17:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),ij(e,s),s.tag=1,Zf(a)?(e=!0,cg(s)):e=!1,ch(s,i),Gi(s,a,o),Ii(s,a,o,i),jj(null,s,a,!0,e,i);case 19:return xj(e,s,i);case 22:return dj(e,s,i)}throw Error(p$1(156,s.tag))};function Fk(e,s){return ac(e,s)}function $k(e,s,i,a){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(e,s,i,a){return new $k(e,s,i,a)}function aj(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zk(e){if(typeof e=="function")return aj(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Da)return 11;if(e===Ga)return 14}return 2}function Pg(e,s){var i=e.alternate;return i===null?(i=Bg(e.tag,s,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=s,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Rg(e,s,i,a,o,c){var g=2;if(a=e,typeof e=="function")aj(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case ya:return Tg(i.children,o,c,s);case za:g=8,o|=8;break;case Aa:return e=Bg(12,i,s,o|2),e.elementType=Aa,e.lanes=c,e;case Ea:return e=Bg(13,i,s,o),e.elementType=Ea,e.lanes=c,e;case Fa:return e=Bg(19,i,s,o),e.elementType=Fa,e.lanes=c,e;case Ia:return pj(i,o,c,s);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ba:g=10;break e;case Ca:g=9;break e;case Da:g=11;break e;case Ga:g=14;break e;case Ha:g=16,a=null;break e}throw Error(p$1(130,e==null?e:typeof e,""))}return s=Bg(g,i,s,o),s.elementType=e,s.type=a,s.lanes=c,s}function Tg(e,s,i,a){return e=Bg(7,e,a,s),e.lanes=i,e}function pj(e,s,i,a){return e=Bg(22,e,a,s),e.elementType=Ia,e.lanes=i,e.stateNode={isHidden:!1},e}function Qg(e,s,i){return e=Bg(6,e,null,s),e.lanes=i,e}function Sg(e,s,i){return s=Bg(4,e.children!==null?e.children:[],e.key,s),s.lanes=i,s.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},s}function al(e,s,i,a,o){this.tag=s,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=a,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function bl(e,s,i,a,o,c,g,_,b){return e=new al(e,s,i,_,b),s===1?(s=1,c===!0&&(s|=8)):s=0,c=Bg(3,null,null,s),e.current=c,c.stateNode=e,c.memoizedState={element:a,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(c),e}function cl(e,s,i){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:a==null?null:""+a,children:e,containerInfo:s,implementation:i}}function dl(e){if(!e)return Vf;e=e._reactInternals;e:{if(Vb(e)!==e||e.tag!==1)throw Error(p$1(170));var s=e;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Zf(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(p$1(171))}if(e.tag===1){var i=e.type;if(Zf(i))return bg(e,i,s)}return s}function el(e,s,i,a,o,c,g,_,b){return e=bl(i,a,!0,e,o,c,g,_,b),e.context=dl(null),i=e.current,a=R(),o=yi(i),c=mh(a,o),c.callback=s??null,nh(i,c,o),e.current.lanes=o,Ac(e,o,a),Dk(e,a),e}function fl(e,s,i,a){var o=s.current,c=R(),g=yi(o);return i=dl(i),s.context===null?s.context=i:s.pendingContext=i,s=mh(c,g),s.payload={element:e},a=a===void 0?null:a,a!==null&&(s.callback=a),e=nh(o,s,g),e!==null&&(gi(e,o,g,c),oh(e,o,g)),g}function gl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function hl(e,s){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<s?i:s}}function il(e,s){hl(e,s),(e=e.alternate)&&hl(e,s)}function jl(){return null}var kl=typeof reportError=="function"?reportError:function(e){console.error(e)};function ll(e){this._internalRoot=e}ml.prototype.render=ll.prototype.render=function(e){var s=this._internalRoot;if(s===null)throw Error(p$1(409));fl(e,s,null,null)};ml.prototype.unmount=ll.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var s=e.containerInfo;Rk(function(){fl(null,e,null,null)}),s[uf]=null}};function ml(e){this._internalRoot=e}ml.prototype.unstable_scheduleHydration=function(e){if(e){var s=Hc();e={blockedOn:null,target:e,priority:s};for(var i=0;i<Qc.length&&s!==0&&s<Qc[i].priority;i++);Qc.splice(i,0,e),i===0&&Vc(e)}};function nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ol(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pl(){}function ql(e,s,i,a,o){if(o){if(typeof a=="function"){var c=a;a=function(){var $=gl(g);c.call($)}}var g=el(s,a,e,0,null,!1,!1,"",pl);return e._reactRootContainer=g,e[uf]=g.current,sf(e.nodeType===8?e.parentNode:e),Rk(),g}for(;o=e.lastChild;)e.removeChild(o);if(typeof a=="function"){var _=a;a=function(){var $=gl(b);_.call($)}}var b=bl(e,0,!1,null,null,!1,!1,"",pl);return e._reactRootContainer=b,e[uf]=b.current,sf(e.nodeType===8?e.parentNode:e),Rk(function(){fl(s,b,i,a)}),b}function rl(e,s,i,a,o){var c=i._reactRootContainer;if(c){var g=c;if(typeof o=="function"){var _=o;o=function(){var b=gl(g);_.call(b)}}fl(s,g,e,o)}else g=ql(i,s,e,o,a);return gl(g)}Ec=function(e){switch(e.tag){case 3:var s=e.stateNode;if(s.current.memoizedState.isDehydrated){var i=tc(s.pendingLanes);i!==0&&(Cc(s,i|1),Dk(s,B()),!(K&6)&&(Gj=B()+500,jg()))}break;case 13:Rk(function(){var a=ih(e,1);if(a!==null){var o=R();gi(a,e,1,o)}}),il(e,1)}};Fc=function(e){if(e.tag===13){var s=ih(e,134217728);if(s!==null){var i=R();gi(s,e,134217728,i)}il(e,134217728)}};Gc=function(e){if(e.tag===13){var s=yi(e),i=ih(e,s);if(i!==null){var a=R();gi(i,e,s,a)}il(e,s)}};Hc=function(){return C};Ic=function(e,s){var i=C;try{return C=e,s()}finally{C=i}};yb=function(e,s,i){switch(s){case"input":if(bb(e,i),s=i.name,i.type==="radio"&&s!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<i.length;s++){var a=i[s];if(a!==e&&a.form===e.form){var o=Db(a);if(!o)throw Error(p$1(90));Wa(a),bb(a,o)}}}break;case"textarea":ib(e,i);break;case"select":s=i.value,s!=null&&fb(e,!!i.multiple,s,!1)}};Gb=Qk;Hb=Rk;var sl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zb(e),e===null?null:e.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||jl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl;reactDom_production_min.createPortal=function(e,s){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nl(s))throw Error(p$1(200));return cl(e,s,null,i)};reactDom_production_min.createRoot=function(e,s){if(!nl(e))throw Error(p$1(299));var i=!1,a="",o=kl;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(a=s.identifierPrefix),s.onRecoverableError!==void 0&&(o=s.onRecoverableError)),s=bl(e,1,!1,null,null,i,!1,a,o),e[uf]=s.current,sf(e.nodeType===8?e.parentNode:e),new ll(s)};reactDom_production_min.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var s=e._reactInternals;if(s===void 0)throw typeof e.render=="function"?Error(p$1(188)):(e=Object.keys(e).join(","),Error(p$1(268,e)));return e=Zb(s),e=e===null?null:e.stateNode,e};reactDom_production_min.flushSync=function(e){return Rk(e)};reactDom_production_min.hydrate=function(e,s,i){if(!ol(s))throw Error(p$1(200));return rl(null,e,s,!0,i)};reactDom_production_min.hydrateRoot=function(e,s,i){if(!nl(e))throw Error(p$1(405));var a=i!=null&&i.hydratedSources||null,o=!1,c="",g=kl;if(i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),s=el(s,null,e,1,i??null,o,!1,c,g),e[uf]=s.current,sf(e),a)for(e=0;e<a.length;e++)i=a[e],o=i._getVersion,o=o(i._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[i,o]:s.mutableSourceEagerHydrationData.push(i,o);return new ml(s)};reactDom_production_min.render=function(e,s,i){if(!ol(s))throw Error(p$1(200));return rl(null,e,s,!1,i)};reactDom_production_min.unmountComponentAtNode=function(e){if(!ol(e))throw Error(p$1(40));return e._reactRootContainer?(Rk(function(){rl(null,null,e,!1,function(){e._reactRootContainer=null,e[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Qk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(e,s,i,a){if(!ol(i))throw Error(p$1(200));if(e==null||e._reactInternals===void 0)throw Error(p$1(38));return rl(e,s,i,!1,a)};reactDom_production_min.version="18.3.1-next-f1338f8080-20240426";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(e){console.error(e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports,createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},defaultTimeoutProvider={setTimeout:(e,s)=>setTimeout(e,s),clearTimeout:e=>clearTimeout(e),setInterval:(e,s)=>setInterval(e,s),clearInterval:e=>clearInterval(e)},Ir,ws,Rs,TimeoutManager=(Rs=class{constructor(){$t(this,Ir,defaultTimeoutProvider);$t(this,ws,!1)}setTimeoutProvider(e){Ht(this,Ir,e)}setTimeout(e,s){return At(this,Ir).setTimeout(e,s)}clearTimeout(e){At(this,Ir).clearTimeout(e)}setInterval(e,s){return At(this,Ir).setInterval(e,s)}clearInterval(e){At(this,Ir).clearInterval(e)}},Ir=new WeakMap,ws=new WeakMap,Rs),timeoutManager=new TimeoutManager;function systemSetTimeoutZero(e){setTimeout(e,0)}var isServer=typeof window>"u"||"Deno"in globalThis;function noop(){}function functionalUpdate(e,s){return typeof e=="function"?e(s):e}function isValidTimeout(e){return typeof e=="number"&&e>=0&&e!==1/0}function timeUntilStale(e,s){return Math.max(e+(s||0)-Date.now(),0)}function resolveStaleTime(e,s){return typeof e=="function"?e(s):e}function resolveEnabled(e,s){return typeof e=="function"?e(s):e}function matchQuery(e,s){const{type:i="all",exact:a,fetchStatus:o,predicate:c,queryKey:g,stale:_}=e;if(g){if(a){if(s.queryHash!==hashQueryKeyByOptions(g,s.options))return!1}else if(!partialMatchKey(s.queryKey,g))return!1}if(i!=="all"){const b=s.isActive();if(i==="active"&&!b||i==="inactive"&&b)return!1}return!(typeof _=="boolean"&&s.isStale()!==_||o&&o!==s.state.fetchStatus||c&&!c(s))}function matchMutation(e,s){const{exact:i,status:a,predicate:o,mutationKey:c}=e;if(c){if(!s.options.mutationKey)return!1;if(i){if(hashKey(s.options.mutationKey)!==hashKey(c))return!1}else if(!partialMatchKey(s.options.mutationKey,c))return!1}return!(a&&s.state.status!==a||o&&!o(s))}function hashQueryKeyByOptions(e,s){return((s==null?void 0:s.queryKeyHashFn)||hashKey)(e)}function hashKey(e){return JSON.stringify(e,(s,i)=>isPlainObject(i)?Object.keys(i).sort().reduce((a,o)=>(a[o]=i[o],a),{}):i)}function partialMatchKey(e,s){return e===s?!0:typeof e!=typeof s?!1:e&&s&&typeof e=="object"&&typeof s=="object"?Object.keys(s).every(i=>partialMatchKey(e[i],s[i])):!1}var hasOwn=Object.prototype.hasOwnProperty;function replaceEqualDeep(e,s){if(e===s)return e;const i=isPlainArray(e)&&isPlainArray(s);if(!i&&!(isPlainObject(e)&&isPlainObject(s)))return s;const o=(i?e:Object.keys(e)).length,c=i?s:Object.keys(s),g=c.length,_=i?new Array(g):{};let b=0;for(let $=0;$<g;$++){const et=i?$:c[$],ot=e[et],rt=s[et];if(ot===rt){_[et]=ot,(i?$<o:hasOwn.call(e,et))&&b++;continue}if(ot===null||rt===null||typeof ot!="object"||typeof rt!="object"){_[et]=rt;continue}const at=replaceEqualDeep(ot,rt);_[et]=at,at===ot&&b++}return o===g&&b===o?e:_}function shallowEqualObjects(e,s){if(!s||Object.keys(e).length!==Object.keys(s).length)return!1;for(const i in e)if(e[i]!==s[i])return!1;return!0}function isPlainArray(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;const s=e.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!hasObjectPrototype(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function hasObjectPrototype(e){return Object.prototype.toString.call(e)==="[object Object]"}function sleep(e){return new Promise(s=>{timeoutManager.setTimeout(s,e)})}function replaceData(e,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,s):i.structuralSharing!==!1?replaceEqualDeep(e,s):s}function addToEnd(e,s,i=0){const a=[...e,s];return i&&a.length>i?a.slice(1):a}function addToStart(e,s,i=0){const a=[s,...e];return i&&a.length>i?a.slice(0,-1):a}var skipToken=Symbol();function ensureQueryFn(e,s){return!e.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!e.queryFn||e.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function shouldThrowError(e,s){return typeof e=="function"?e(...s):!!e}var Hr,Mr,qr,Is,FocusManager=(Is=class extends Subscribable{constructor(){super();$t(this,Hr);$t(this,Mr);$t(this,qr);Ht(this,qr,s=>{if(!isServer&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){At(this,Mr)||this.setEventListener(At(this,qr))}onUnsubscribe(){var s;this.hasListeners()||((s=At(this,Mr))==null||s.call(this),Ht(this,Mr,void 0))}setEventListener(s){var i;Ht(this,qr,s),(i=At(this,Mr))==null||i.call(this),Ht(this,Mr,s(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(s){At(this,Hr)!==s&&(Ht(this,Hr,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof At(this,Hr)=="boolean"?At(this,Hr):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Hr=new WeakMap,Mr=new WeakMap,qr=new WeakMap,Is),focusManager=new FocusManager;function pendingThenable(){let e,s;const i=new Promise((o,c)=>{e=o,s=c});i.status="pending",i.catch(()=>{});function a(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{a({status:"fulfilled",value:o}),e(o)},i.reject=o=>{a({status:"rejected",reason:o}),s(o)},i}var defaultScheduler=systemSetTimeoutZero;function createNotifyManager(){let e=[],s=0,i=_=>{_()},a=_=>{_()},o=defaultScheduler;const c=_=>{s?e.push(_):o(()=>{i(_)})},g=()=>{const _=e;e=[],_.length&&o(()=>{a(()=>{_.forEach(b=>{i(b)})})})};return{batch:_=>{let b;s++;try{b=_()}finally{s--,s||g()}return b},batchCalls:_=>(...b)=>{c(()=>{_(...b)})},schedule:c,setNotifyFunction:_=>{i=_},setBatchNotifyFunction:_=>{a=_},setScheduler:_=>{o=_}}}var notifyManager=createNotifyManager(),Xr,Or,Yr,Ms,OnlineManager=(Ms=class extends Subscribable{constructor(){super();$t(this,Xr,!0);$t(this,Or);$t(this,Yr);Ht(this,Yr,s=>{if(!isServer&&window.addEventListener){const i=()=>s(!0),a=()=>s(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}}})}onSubscribe(){At(this,Or)||this.setEventListener(At(this,Yr))}onUnsubscribe(){var s;this.hasListeners()||((s=At(this,Or))==null||s.call(this),Ht(this,Or,void 0))}setEventListener(s){var i;Ht(this,Yr,s),(i=At(this,Or))==null||i.call(this),Ht(this,Or,s(this.setOnline.bind(this)))}setOnline(s){At(this,Xr)!==s&&(Ht(this,Xr,s),this.listeners.forEach(a=>{a(s)}))}isOnline(){return At(this,Xr)}},Xr=new WeakMap,Or=new WeakMap,Yr=new WeakMap,Ms),onlineManager=new OnlineManager;function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return(e??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function createRetryer(e){let s=!1,i=0,a;const o=pendingThenable(),c=()=>o.status!=="pending",g=nt=>{var dt;if(!c()){const _e=new CancelledError(nt);rt(_e),(dt=e.onCancel)==null||dt.call(e,_e)}},_=()=>{s=!0},b=()=>{s=!1},$=()=>focusManager.isFocused()&&(e.networkMode==="always"||onlineManager.isOnline())&&e.canRun(),et=()=>canFetch(e.networkMode)&&e.canRun(),ot=nt=>{c()||(a==null||a(),o.resolve(nt))},rt=nt=>{c()||(a==null||a(),o.reject(nt))},at=()=>new Promise(nt=>{var dt;a=_e=>{(c()||$())&&nt(_e)},(dt=e.onPause)==null||dt.call(e)}).then(()=>{var nt;a=void 0,c()||(nt=e.onContinue)==null||nt.call(e)}),it=()=>{if(c())return;let nt;const dt=i===0?e.initialPromise:void 0;try{nt=dt??e.fn()}catch(_e){nt=Promise.reject(_e)}Promise.resolve(nt).then(ot).catch(_e=>{var ct;if(c())return;const tt=e.retry??(isServer?0:3),j=e.retryDelay??defaultRetryDelay,st=typeof j=="function"?j(i,_e):j,ut=tt===!0||typeof tt=="number"&&i<tt||typeof tt=="function"&&tt(i,_e);if(s||!ut){rt(_e);return}i++,(ct=e.onFail)==null||ct.call(e,i,_e),sleep(st).then(()=>$()?void 0:at()).then(()=>{s?rt(_e):it()})})};return{promise:o,status:()=>o.status,cancel:g,continue:()=>(a==null||a(),o),cancelRetry:_,continueRetry:b,canStart:et,start:()=>(et()?it():at().then(it),o)}}var Vr,Os,Removable=(Os=class{constructor(){$t(this,Vr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Ht(this,Vr,timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(isServer?1/0:5*60*1e3))}clearGcTimeout(){At(this,Vr)&&(timeoutManager.clearTimeout(At(this,Vr)),Ht(this,Vr,void 0))}},Vr=new WeakMap,Os),Gr,Jr,pr,zr,ar,hs,$r,vr,br,Ls,Query=(Ls=class extends Removable{constructor(s){super();$t(this,vr);$t(this,Gr);$t(this,Jr);$t(this,pr);$t(this,zr);$t(this,ar);$t(this,hs);$t(this,$r);Ht(this,$r,!1),Ht(this,hs,s.defaultOptions),this.setOptions(s.options),this.observers=[],Ht(this,zr,s.client),Ht(this,pr,At(this,zr).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,Ht(this,Gr,getDefaultState$1(this.options)),this.state=s.state??At(this,Gr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=At(this,ar))==null?void 0:s.promise}setOptions(s){if(this.options={...At(this,hs),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=getDefaultState$1(this.options);i.data!==void 0&&(this.setData(i.data,{updatedAt:i.dataUpdatedAt,manual:!0}),Ht(this,Gr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&At(this,pr).remove(this)}setData(s,i){const a=replaceData(this.state.data,s,this.options);return Xt(this,vr,br).call(this,{data:a,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),a}setState(s,i){Xt(this,vr,br).call(this,{type:"setState",state:s,setStateOptions:i})}cancel(s){var a,o;const i=(a=At(this,ar))==null?void 0:a.promise;return(o=At(this,ar))==null||o.cancel(s),i?i.then(noop).catch(noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(At(this,Gr))}isActive(){return this.observers.some(s=>resolveEnabled(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>resolveStaleTime(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!timeUntilStale(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(a=>a.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=At(this,ar))==null||i.continue()}onOnline(){var i;const s=this.observers.find(a=>a.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=At(this,ar))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),At(this,pr).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(At(this,ar)&&(At(this,$r)?At(this,ar).cancel({revert:!0}):At(this,ar).cancelRetry()),this.scheduleGc()),At(this,pr).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Xt(this,vr,br).call(this,{type:"invalidate"})}async fetch(s,i){var b,$,et,ot,rt,at,it,nt,dt,_e,tt,j;if(this.state.fetchStatus!=="idle"&&((b=At(this,ar))==null?void 0:b.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(At(this,ar))return At(this,ar).continueRetry(),At(this,ar).promise}if(s&&this.setOptions(s),!this.options.queryFn){const st=this.observers.find(ut=>ut.options.queryFn);st&&this.setOptions(st.options)}const a=new AbortController,o=st=>{Object.defineProperty(st,"signal",{enumerable:!0,get:()=>(Ht(this,$r,!0),a.signal)})},c=()=>{const st=ensureQueryFn(this.options,i),ct=(()=>{const gt={client:At(this,zr),queryKey:this.queryKey,meta:this.meta};return o(gt),gt})();return Ht(this,$r,!1),this.options.persister?this.options.persister(st,ct,this):st(ct)},_=(()=>{const st={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:At(this,zr),state:this.state,fetchFn:c};return o(st),st})();($=this.options.behavior)==null||$.onFetch(_,this),Ht(this,Jr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((et=_.fetchOptions)==null?void 0:et.meta))&&Xt(this,vr,br).call(this,{type:"fetch",meta:(ot=_.fetchOptions)==null?void 0:ot.meta}),Ht(this,ar,createRetryer({initialPromise:i==null?void 0:i.initialPromise,fn:_.fetchFn,onCancel:st=>{st instanceof CancelledError&&st.revert&&this.setState({...At(this,Jr),fetchStatus:"idle"}),a.abort()},onFail:(st,ut)=>{Xt(this,vr,br).call(this,{type:"failed",failureCount:st,error:ut})},onPause:()=>{Xt(this,vr,br).call(this,{type:"pause"})},onContinue:()=>{Xt(this,vr,br).call(this,{type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode,canRun:()=>!0}));try{const st=await At(this,ar).start();if(st===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(st),(at=(rt=At(this,pr).config).onSuccess)==null||at.call(rt,st,this),(nt=(it=At(this,pr).config).onSettled)==null||nt.call(it,st,this.state.error,this),st}catch(st){if(st instanceof CancelledError){if(st.silent)return At(this,ar).promise;if(st.revert){if(this.state.data===void 0)throw st;return this.state.data}}throw Xt(this,vr,br).call(this,{type:"error",error:st}),(_e=(dt=At(this,pr).config).onError)==null||_e.call(dt,st,this),(j=(tt=At(this,pr).config).onSettled)==null||j.call(tt,this.state.data,st,this),st}finally{this.scheduleGc()}}},Gr=new WeakMap,Jr=new WeakMap,pr=new WeakMap,zr=new WeakMap,ar=new WeakMap,hs=new WeakMap,$r=new WeakMap,vr=new WeakSet,br=function(s){const i=a=>{switch(s.type){case"failed":return{...a,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...fetchState(a.data,this.options),fetchMeta:s.meta??null};case"success":const o={...a,data:s.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:s.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ht(this,Jr,s.manual?o:void 0),o;case"error":const c=s.error;return{...a,error:c,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...s.state}}};this.state=i(this.state),notifyManager.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),At(this,pr).notify({query:this,type:"updated",action:s})})},Ls);function fetchState(e,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(s.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function getDefaultState$1(e){const s=typeof e.initialData=="function"?e.initialData():e.initialData,i=s!==void 0,a=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:i?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var cr,Yt,cs,ur,Ur,Zr,kr,Lr,ds,es,ts,Wr,Kr,jr,rs,rr,us,ys,xs,_s,As,Es,Ss,bs,Vs,js,QueryObserver=(js=class extends Subscribable{constructor(s,i){super();$t(this,rr);$t(this,cr);$t(this,Yt);$t(this,cs);$t(this,ur);$t(this,Ur);$t(this,Zr);$t(this,kr);$t(this,Lr);$t(this,ds);$t(this,es);$t(this,ts);$t(this,Wr);$t(this,Kr);$t(this,jr);$t(this,rs,new Set);this.options=i,Ht(this,cr,s),Ht(this,Lr,null),Ht(this,kr,pendingThenable()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(At(this,Yt).addObserver(this),shouldFetchOnMount(At(this,Yt),this.options)?Xt(this,rr,us).call(this):this.updateResult(),Xt(this,rr,As).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(At(this,Yt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(At(this,Yt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Xt(this,rr,Es).call(this),Xt(this,rr,Ss).call(this),At(this,Yt).removeObserver(this)}setOptions(s){const i=this.options,a=At(this,Yt);if(this.options=At(this,cr).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,At(this,Yt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Xt(this,rr,bs).call(this),At(this,Yt).setOptions(this.options),i._defaulted&&!shallowEqualObjects(this.options,i)&&At(this,cr).getQueryCache().notify({type:"observerOptionsUpdated",query:At(this,Yt),observer:this});const o=this.hasListeners();o&&shouldFetchOptionally(At(this,Yt),a,this.options,i)&&Xt(this,rr,us).call(this),this.updateResult(),o&&(At(this,Yt)!==a||resolveEnabled(this.options.enabled,At(this,Yt))!==resolveEnabled(i.enabled,At(this,Yt))||resolveStaleTime(this.options.staleTime,At(this,Yt))!==resolveStaleTime(i.staleTime,At(this,Yt)))&&Xt(this,rr,ys).call(this);const c=Xt(this,rr,xs).call(this);o&&(At(this,Yt)!==a||resolveEnabled(this.options.enabled,At(this,Yt))!==resolveEnabled(i.enabled,At(this,Yt))||c!==At(this,jr))&&Xt(this,rr,_s).call(this,c)}getOptimisticResult(s){const i=At(this,cr).getQueryCache().build(At(this,cr),s),a=this.createResult(i,s);return shouldAssignObserverCurrentProperties(this,a)&&(Ht(this,ur,a),Ht(this,Zr,this.options),Ht(this,Ur,At(this,Yt).state)),a}getCurrentResult(){return At(this,ur)}trackResult(s,i){return new Proxy(s,{get:(a,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&At(this,kr).status==="pending"&&At(this,kr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,o))})}trackProp(s){At(this,rs).add(s)}getCurrentQuery(){return At(this,Yt)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const i=At(this,cr).defaultQueryOptions(s),a=At(this,cr).getQueryCache().build(At(this,cr),i);return a.fetch().then(()=>this.createResult(a,i))}fetch(s){return Xt(this,rr,us).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),At(this,ur)))}createResult(s,i){var _t;const a=At(this,Yt),o=this.options,c=At(this,ur),g=At(this,Ur),_=At(this,Zr),$=s!==a?s.state:At(this,cs),{state:et}=s;let ot={...et},rt=!1,at;if(i._optimisticResults){const kt=this.hasListeners(),wt=!kt&&shouldFetchOnMount(s,i),Et=kt&&shouldFetchOptionally(s,a,i,o);(wt||Et)&&(ot={...ot,...fetchState(et.data,s.options)}),i._optimisticResults==="isRestoring"&&(ot.fetchStatus="idle")}let{error:it,errorUpdatedAt:nt,status:dt}=ot;at=ot.data;let _e=!1;if(i.placeholderData!==void 0&&at===void 0&&dt==="pending"){let kt;c!=null&&c.isPlaceholderData&&i.placeholderData===(_==null?void 0:_.placeholderData)?(kt=c.data,_e=!0):kt=typeof i.placeholderData=="function"?i.placeholderData((_t=At(this,ts))==null?void 0:_t.state.data,At(this,ts)):i.placeholderData,kt!==void 0&&(dt="success",at=replaceData(c==null?void 0:c.data,kt,i),rt=!0)}if(i.select&&at!==void 0&&!_e)if(c&&at===(g==null?void 0:g.data)&&i.select===At(this,ds))at=At(this,es);else try{Ht(this,ds,i.select),at=i.select(at),at=replaceData(c==null?void 0:c.data,at,i),Ht(this,es,at),Ht(this,Lr,null)}catch(kt){Ht(this,Lr,kt)}At(this,Lr)&&(it=At(this,Lr),at=At(this,es),nt=Date.now(),dt="error");const tt=ot.fetchStatus==="fetching",j=dt==="pending",st=dt==="error",ut=j&&tt,ct=at!==void 0,mt={status:dt,fetchStatus:ot.fetchStatus,isPending:j,isSuccess:dt==="success",isError:st,isInitialLoading:ut,isLoading:ut,data:at,dataUpdatedAt:ot.dataUpdatedAt,error:it,errorUpdatedAt:nt,failureCount:ot.fetchFailureCount,failureReason:ot.fetchFailureReason,errorUpdateCount:ot.errorUpdateCount,isFetched:ot.dataUpdateCount>0||ot.errorUpdateCount>0,isFetchedAfterMount:ot.dataUpdateCount>$.dataUpdateCount||ot.errorUpdateCount>$.errorUpdateCount,isFetching:tt,isRefetching:tt&&!j,isLoadingError:st&&!ct,isPaused:ot.fetchStatus==="paused",isPlaceholderData:rt,isRefetchError:st&&ct,isStale:isStale(s,i),refetch:this.refetch,promise:At(this,kr),isEnabled:resolveEnabled(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const kt=Tt=>{mt.status==="error"?Tt.reject(mt.error):mt.data!==void 0&&Tt.resolve(mt.data)},wt=()=>{const Tt=Ht(this,kr,mt.promise=pendingThenable());kt(Tt)},Et=At(this,kr);switch(Et.status){case"pending":s.queryHash===a.queryHash&&kt(Et);break;case"fulfilled":(mt.status==="error"||mt.data!==Et.value)&&wt();break;case"rejected":(mt.status!=="error"||mt.error!==Et.reason)&&wt();break}}return mt}updateResult(){const s=At(this,ur),i=this.createResult(At(this,Yt),this.options);if(Ht(this,Ur,At(this,Yt).state),Ht(this,Zr,this.options),At(this,Ur).data!==void 0&&Ht(this,ts,At(this,Yt)),shallowEqualObjects(i,s))return;Ht(this,ur,i);const a=()=>{if(!s)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!At(this,rs).size)return!0;const g=new Set(c??At(this,rs));return this.options.throwOnError&&g.add("error"),Object.keys(At(this,ur)).some(_=>{const b=_;return At(this,ur)[b]!==s[b]&&g.has(b)})};Xt(this,rr,Vs).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Xt(this,rr,As).call(this)}},cr=new WeakMap,Yt=new WeakMap,cs=new WeakMap,ur=new WeakMap,Ur=new WeakMap,Zr=new WeakMap,kr=new WeakMap,Lr=new WeakMap,ds=new WeakMap,es=new WeakMap,ts=new WeakMap,Wr=new WeakMap,Kr=new WeakMap,jr=new WeakMap,rs=new WeakMap,rr=new WeakSet,us=function(s){Xt(this,rr,bs).call(this);let i=At(this,Yt).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(noop)),i},ys=function(){Xt(this,rr,Es).call(this);const s=resolveStaleTime(this.options.staleTime,At(this,Yt));if(isServer||At(this,ur).isStale||!isValidTimeout(s))return;const a=timeUntilStale(At(this,ur).dataUpdatedAt,s)+1;Ht(this,Wr,timeoutManager.setTimeout(()=>{At(this,ur).isStale||this.updateResult()},a))},xs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(At(this,Yt)):this.options.refetchInterval)??!1},_s=function(s){Xt(this,rr,Ss).call(this),Ht(this,jr,s),!(isServer||resolveEnabled(this.options.enabled,At(this,Yt))===!1||!isValidTimeout(At(this,jr))||At(this,jr)===0)&&Ht(this,Kr,timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&Xt(this,rr,us).call(this)},At(this,jr)))},As=function(){Xt(this,rr,ys).call(this),Xt(this,rr,_s).call(this,Xt(this,rr,xs).call(this))},Es=function(){At(this,Wr)&&(timeoutManager.clearTimeout(At(this,Wr)),Ht(this,Wr,void 0))},Ss=function(){At(this,Kr)&&(timeoutManager.clearInterval(At(this,Kr)),Ht(this,Kr,void 0))},bs=function(){const s=At(this,cr).getQueryCache().build(At(this,cr),this.options);if(s===At(this,Yt))return;const i=At(this,Yt);Ht(this,Yt,s),Ht(this,cs,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},Vs=function(s){notifyManager.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(At(this,ur))}),At(this,cr).getQueryCache().notify({query:At(this,Yt),type:"observerResultsUpdated"})})},js);function shouldLoadOnMount(e,s){return resolveEnabled(s.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&s.retryOnMount===!1)}function shouldFetchOnMount(e,s){return shouldLoadOnMount(e,s)||e.state.data!==void 0&&shouldFetchOn(e,s,s.refetchOnMount)}function shouldFetchOn(e,s,i){if(resolveEnabled(s.enabled,e)!==!1&&resolveStaleTime(s.staleTime,e)!=="static"){const a=typeof i=="function"?i(e):i;return a==="always"||a!==!1&&isStale(e,s)}return!1}function shouldFetchOptionally(e,s,i,a){return(e!==s||resolveEnabled(a.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&isStale(e,i)}function isStale(e,s){return resolveEnabled(s.enabled,e)!==!1&&e.isStaleByTime(resolveStaleTime(s.staleTime,e))}function shouldAssignObserverCurrentProperties(e,s){return!shallowEqualObjects(e.getCurrentResult(),s)}function infiniteQueryBehavior(e){return{onFetch:(s,i)=>{var et,ot,rt,at,it;const a=s.options,o=(rt=(ot=(et=s.fetchOptions)==null?void 0:et.meta)==null?void 0:ot.fetchMore)==null?void 0:rt.direction,c=((at=s.state.data)==null?void 0:at.pages)||[],g=((it=s.state.data)==null?void 0:it.pageParams)||[];let _={pages:[],pageParams:[]},b=0;const $=async()=>{let nt=!1;const dt=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(s.signal.aborted?nt=!0:s.signal.addEventListener("abort",()=>{nt=!0}),s.signal)})},_e=ensureQueryFn(s.options,s.fetchOptions),tt=async(j,st,ut)=>{if(nt)return Promise.reject();if(st==null&&j.pages.length)return Promise.resolve(j);const gt=(()=>{const wt={client:s.client,queryKey:s.queryKey,pageParam:st,direction:ut?"backward":"forward",meta:s.options.meta};return dt(wt),wt})(),mt=await _e(gt),{maxPages:_t}=s.options,kt=ut?addToStart:addToEnd;return{pages:kt(j.pages,mt,_t),pageParams:kt(j.pageParams,st,_t)}};if(o&&c.length){const j=o==="backward",st=j?getPreviousPageParam:getNextPageParam,ut={pages:c,pageParams:g},ct=st(a,ut);_=await tt(ut,ct,j)}else{const j=e??c.length;do{const st=b===0?g[0]??a.initialPageParam:getNextPageParam(a,_);if(b>0&&st==null)break;_=await tt(_,st),b++}while(b<j)}return _};s.options.persister?s.fetchFn=()=>{var nt,dt;return(dt=(nt=s.options).persister)==null?void 0:dt.call(nt,$,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=$}}}function getNextPageParam(e,{pages:s,pageParams:i}){const a=s.length-1;return s.length>0?e.getNextPageParam(s[a],s,i[a],i):void 0}function getPreviousPageParam(e,{pages:s,pageParams:i}){var a;return s.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,s[0],s,i[0],i):void 0}var ps,_r,hr,Qr,Ar,Rr,Ns,Mutation=(Ns=class extends Removable{constructor(s){super();$t(this,Ar);$t(this,ps);$t(this,_r);$t(this,hr);$t(this,Qr);Ht(this,ps,s.client),this.mutationId=s.mutationId,Ht(this,hr,s.mutationCache),Ht(this,_r,[]),this.state=s.state||getDefaultState(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){At(this,_r).includes(s)||(At(this,_r).push(s),this.clearGcTimeout(),At(this,hr).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){Ht(this,_r,At(this,_r).filter(i=>i!==s)),this.scheduleGc(),At(this,hr).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){At(this,_r).length||(this.state.status==="pending"?this.scheduleGc():At(this,hr).remove(this))}continue(){var s;return((s=At(this,Qr))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var g,_,b,$,et,ot,rt,at,it,nt,dt,_e,tt,j,st,ut,ct,gt,mt,_t;const i=()=>{Xt(this,Ar,Rr).call(this,{type:"continue"})},a={client:At(this,ps),meta:this.options.meta,mutationKey:this.options.mutationKey};Ht(this,Qr,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(s,a):Promise.reject(new Error("No mutationFn found")),onFail:(kt,wt)=>{Xt(this,Ar,Rr).call(this,{type:"failed",failureCount:kt,error:wt})},onPause:()=>{Xt(this,Ar,Rr).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>At(this,hr).canRun(this)}));const o=this.state.status==="pending",c=!At(this,Qr).canStart();try{if(o)i();else{Xt(this,Ar,Rr).call(this,{type:"pending",variables:s,isPaused:c}),await((_=(g=At(this,hr).config).onMutate)==null?void 0:_.call(g,s,this,a));const wt=await(($=(b=this.options).onMutate)==null?void 0:$.call(b,s,a));wt!==this.state.context&&Xt(this,Ar,Rr).call(this,{type:"pending",context:wt,variables:s,isPaused:c})}const kt=await At(this,Qr).start();return await((ot=(et=At(this,hr).config).onSuccess)==null?void 0:ot.call(et,kt,s,this.state.context,this,a)),await((at=(rt=this.options).onSuccess)==null?void 0:at.call(rt,kt,s,this.state.context,a)),await((nt=(it=At(this,hr).config).onSettled)==null?void 0:nt.call(it,kt,null,this.state.variables,this.state.context,this,a)),await((_e=(dt=this.options).onSettled)==null?void 0:_e.call(dt,kt,null,s,this.state.context,a)),Xt(this,Ar,Rr).call(this,{type:"success",data:kt}),kt}catch(kt){try{throw await((j=(tt=At(this,hr).config).onError)==null?void 0:j.call(tt,kt,s,this.state.context,this,a)),await((ut=(st=this.options).onError)==null?void 0:ut.call(st,kt,s,this.state.context,a)),await((gt=(ct=At(this,hr).config).onSettled)==null?void 0:gt.call(ct,void 0,kt,this.state.variables,this.state.context,this,a)),await((_t=(mt=this.options).onSettled)==null?void 0:_t.call(mt,void 0,kt,s,this.state.context,a)),kt}finally{Xt(this,Ar,Rr).call(this,{type:"error",error:kt})}}finally{At(this,hr).runNext(this)}}},ps=new WeakMap,_r=new WeakMap,hr=new WeakMap,Qr=new WeakMap,Ar=new WeakSet,Rr=function(s){const i=a=>{switch(s.type){case"failed":return{...a,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...a,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:s.error,failureCount:a.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=i(this.state),notifyManager.batch(()=>{At(this,_r).forEach(a=>{a.onMutationUpdate(s)}),At(this,hr).notify({mutation:this,type:"updated",action:s})})},Ns);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wr,yr,fs,Fs,MutationCache=(Fs=class extends Subscribable{constructor(s={}){super();$t(this,wr);$t(this,yr);$t(this,fs);this.config=s,Ht(this,wr,new Set),Ht(this,yr,new Map),Ht(this,fs,0)}build(s,i,a){const o=new Mutation({client:s,mutationCache:this,mutationId:++ms(this,fs)._,options:s.defaultMutationOptions(i),state:a});return this.add(o),o}add(s){At(this,wr).add(s);const i=scopeFor(s);if(typeof i=="string"){const a=At(this,yr).get(i);a?a.push(s):At(this,yr).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(At(this,wr).delete(s)){const i=scopeFor(s);if(typeof i=="string"){const a=At(this,yr).get(i);if(a)if(a.length>1){const o=a.indexOf(s);o!==-1&&a.splice(o,1)}else a[0]===s&&At(this,yr).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=scopeFor(s);if(typeof i=="string"){const a=At(this,yr).get(i),o=a==null?void 0:a.find(c=>c.state.status==="pending");return!o||o===s}else return!0}runNext(s){var a;const i=scopeFor(s);if(typeof i=="string"){const o=(a=At(this,yr).get(i))==null?void 0:a.find(c=>c!==s&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){notifyManager.batch(()=>{At(this,wr).forEach(s=>{this.notify({type:"removed",mutation:s})}),At(this,wr).clear(),At(this,yr).clear()})}getAll(){return Array.from(At(this,wr))}find(s){const i={exact:!0,...s};return this.getAll().find(a=>matchMutation(i,a))}findAll(s={}){return this.getAll().filter(i=>matchMutation(s,i))}notify(s){notifyManager.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return notifyManager.batch(()=>Promise.all(s.map(i=>i.continue().catch(noop))))}},wr=new WeakMap,yr=new WeakMap,fs=new WeakMap,Fs);function scopeFor(e){var s;return(s=e.options.scope)==null?void 0:s.id}var Tr,Nr,dr,Cr,Pr,gs,ks,Ds,MutationObserver$1=(Ds=class extends Subscribable{constructor(i,a){super();$t(this,Pr);$t(this,Tr);$t(this,Nr);$t(this,dr);$t(this,Cr);Ht(this,Tr,i),this.setOptions(a),this.bindMethods(),Xt(this,Pr,gs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var o;const a=this.options;this.options=At(this,Tr).defaultMutationOptions(i),shallowEqualObjects(this.options,a)||At(this,Tr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:At(this,dr),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&hashKey(a.mutationKey)!==hashKey(this.options.mutationKey)?this.reset():((o=At(this,dr))==null?void 0:o.state.status)==="pending"&&At(this,dr).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=At(this,dr))==null||i.removeObserver(this)}onMutationUpdate(i){Xt(this,Pr,gs).call(this),Xt(this,Pr,ks).call(this,i)}getCurrentResult(){return At(this,Nr)}reset(){var i;(i=At(this,dr))==null||i.removeObserver(this),Ht(this,dr,void 0),Xt(this,Pr,gs).call(this),Xt(this,Pr,ks).call(this)}mutate(i,a){var o;return Ht(this,Cr,a),(o=At(this,dr))==null||o.removeObserver(this),Ht(this,dr,At(this,Tr).getMutationCache().build(At(this,Tr),this.options)),At(this,dr).addObserver(this),At(this,dr).execute(i)}},Tr=new WeakMap,Nr=new WeakMap,dr=new WeakMap,Cr=new WeakMap,Pr=new WeakSet,gs=function(){var a;const i=((a=At(this,dr))==null?void 0:a.state)??getDefaultState();Ht(this,Nr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},ks=function(i){notifyManager.batch(()=>{var a,o,c,g,_,b,$,et;if(At(this,Cr)&&this.hasListeners()){const ot=At(this,Nr).variables,rt=At(this,Nr).context,at={client:At(this,Tr),meta:this.options.meta,mutationKey:this.options.mutationKey};(i==null?void 0:i.type)==="success"?((o=(a=At(this,Cr)).onSuccess)==null||o.call(a,i.data,ot,rt,at),(g=(c=At(this,Cr)).onSettled)==null||g.call(c,i.data,null,ot,rt,at)):(i==null?void 0:i.type)==="error"&&((b=(_=At(this,Cr)).onError)==null||b.call(_,i.error,ot,rt,at),(et=($=At(this,Cr)).onSettled)==null||et.call($,void 0,i.error,ot,rt,at))}this.listeners.forEach(ot=>{ot(At(this,Nr))})})},Ds),Er,Bs,QueryCache=(Bs=class extends Subscribable{constructor(s={}){super();$t(this,Er);this.config=s,Ht(this,Er,new Map)}build(s,i,a){const o=i.queryKey,c=i.queryHash??hashQueryKeyByOptions(o,i);let g=this.get(c);return g||(g=new Query({client:s,queryKey:o,queryHash:c,options:s.defaultQueryOptions(i),state:a,defaultOptions:s.getQueryDefaults(o)}),this.add(g)),g}add(s){At(this,Er).has(s.queryHash)||(At(this,Er).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=At(this,Er).get(s.queryHash);i&&(s.destroy(),i===s&&At(this,Er).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return At(this,Er).get(s)}getAll(){return[...At(this,Er).values()]}find(s){const i={exact:!0,...s};return this.getAll().find(a=>matchQuery(i,a))}findAll(s={}){const i=this.getAll();return Object.keys(s).length>0?i.filter(a=>matchQuery(s,a)):i}notify(s){notifyManager.batch(()=>{this.listeners.forEach(i=>{i(s)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},Er=new WeakMap,Bs),ir,Fr,Dr,ss,ns,Br,is,as,Hs,QueryClient=(Hs=class{constructor(e={}){$t(this,ir);$t(this,Fr);$t(this,Dr);$t(this,ss);$t(this,ns);$t(this,Br);$t(this,is);$t(this,as);Ht(this,ir,e.queryCache||new QueryCache),Ht(this,Fr,e.mutationCache||new MutationCache),Ht(this,Dr,e.defaultOptions||{}),Ht(this,ss,new Map),Ht(this,ns,new Map),Ht(this,Br,0)}mount(){ms(this,Br)._++,At(this,Br)===1&&(Ht(this,is,focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),At(this,ir).onFocus())})),Ht(this,as,onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),At(this,ir).onOnline())})))}unmount(){var e,s;ms(this,Br)._--,At(this,Br)===0&&((e=At(this,is))==null||e.call(this),Ht(this,is,void 0),(s=At(this,as))==null||s.call(this),Ht(this,as,void 0))}isFetching(e){return At(this,ir).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return At(this,Fr).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const s=this.defaultQueryOptions({queryKey:e});return(i=At(this,ir).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const s=this.defaultQueryOptions(e),i=At(this,ir).build(this,s),a=i.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(resolveStaleTime(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(a))}getQueriesData(e){return At(this,ir).findAll(e).map(({queryKey:s,state:i})=>{const a=i.data;return[s,a]})}setQueryData(e,s,i){const a=this.defaultQueryOptions({queryKey:e}),o=At(this,ir).get(a.queryHash),c=o==null?void 0:o.state.data,g=functionalUpdate(s,c);if(g!==void 0)return At(this,ir).build(this,a).setData(g,{...i,manual:!0})}setQueriesData(e,s,i){return notifyManager.batch(()=>At(this,ir).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,s,i)]))}getQueryState(e){var i;const s=this.defaultQueryOptions({queryKey:e});return(i=At(this,ir).get(s.queryHash))==null?void 0:i.state}removeQueries(e){const s=At(this,ir);notifyManager.batch(()=>{s.findAll(e).forEach(i=>{s.remove(i)})})}resetQueries(e,s){const i=At(this,ir);return notifyManager.batch(()=>(i.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},s)))}cancelQueries(e,s={}){const i={revert:!0,...s},a=notifyManager.batch(()=>At(this,ir).findAll(e).map(o=>o.cancel(i)));return Promise.all(a).then(noop).catch(noop)}invalidateQueries(e,s={}){return notifyManager.batch(()=>(At(this,ir).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},s)))}refetchQueries(e,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},a=notifyManager.batch(()=>At(this,ir).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(noop)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(a).then(noop)}fetchQuery(e){const s=this.defaultQueryOptions(e);s.retry===void 0&&(s.retry=!1);const i=At(this,ir).build(this,s);return i.isStaleByTime(resolveStaleTime(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(noop).catch(noop)}fetchInfiniteQuery(e){return e.behavior=infiniteQueryBehavior(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(noop).catch(noop)}ensureInfiniteQueryData(e){return e.behavior=infiniteQueryBehavior(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return onlineManager.isOnline()?At(this,Fr).resumePausedMutations():Promise.resolve()}getQueryCache(){return At(this,ir)}getMutationCache(){return At(this,Fr)}getDefaultOptions(){return At(this,Dr)}setDefaultOptions(e){Ht(this,Dr,e)}setQueryDefaults(e,s){At(this,ss).set(hashKey(e),{queryKey:e,defaultOptions:s})}getQueryDefaults(e){const s=[...At(this,ss).values()],i={};return s.forEach(a=>{partialMatchKey(e,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(e,s){At(this,ns).set(hashKey(e),{mutationKey:e,defaultOptions:s})}getMutationDefaults(e){const s=[...At(this,ns).values()],i={};return s.forEach(a=>{partialMatchKey(e,a.mutationKey)&&Object.assign(i,a.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const s={...At(this,Dr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return s.queryHash||(s.queryHash=hashQueryKeyByOptions(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===skipToken&&(s.enabled=!1),s}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...At(this,Dr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){At(this,ir).clear(),At(this,Fr).clear()}},ir=new WeakMap,Fr=new WeakMap,Dr=new WeakMap,ss=new WeakMap,ns=new WeakMap,Br=new WeakMap,is=new WeakMap,as=new WeakMap,Hs),QueryClientContext=reactExports.createContext(void 0),useQueryClient=e=>{const s=reactExports.useContext(QueryClientContext);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},QueryClientProvider=({client:e,children:s})=>(reactExports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:e,children:s})),IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext),ensurePreventErrorBoundaryRetry=(e,s)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(s.isReset()||(e.retryOnMount=!1))},useClearResetErrorBoundary=e=>{reactExports.useEffect(()=>{e.clearReset()},[e])},getHasError=({result:e,errorResetBoundary:s,throwOnError:i,query:a,suspense:o})=>e.isError&&!s.isReset()&&!e.isFetching&&a&&(o&&e.data===void 0||shouldThrowError(i,[e.error,a])),ensureSuspenseTimers=e=>{if(e.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...o)=>i(a(...o)):i(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},willFetch=(e,s)=>e.isLoading&&e.isFetching&&!s,shouldSuspend=(e,s)=>(e==null?void 0:e.suspense)&&s.isPending,fetchOptimistic=(e,s,i)=>s.fetchOptimistic(e).catch(()=>{i.clearReset()});function useBaseQuery(e,s,i){var ot,rt,at,it,nt;const a=useIsRestoring(),o=useQueryErrorResetBoundary(),c=useQueryClient(),g=c.defaultQueryOptions(e);(rt=(ot=c.getDefaultOptions().queries)==null?void 0:ot._experimental_beforeQuery)==null||rt.call(ot,g),g._optimisticResults=a?"isRestoring":"optimistic",ensureSuspenseTimers(g),ensurePreventErrorBoundaryRetry(g,o),useClearResetErrorBoundary(o);const _=!c.getQueryCache().get(g.queryHash),[b]=reactExports.useState(()=>new s(c,g)),$=b.getOptimisticResult(g),et=!a&&e.subscribed!==!1;if(reactExports.useSyncExternalStore(reactExports.useCallback(dt=>{const _e=et?b.subscribe(notifyManager.batchCalls(dt)):noop;return b.updateResult(),_e},[b,et]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),reactExports.useEffect(()=>{b.setOptions(g)},[g,b]),shouldSuspend(g,$))throw fetchOptimistic(g,b,o);if(getHasError({result:$,errorResetBoundary:o,throwOnError:g.throwOnError,query:c.getQueryCache().get(g.queryHash),suspense:g.suspense}))throw $.error;if((it=(at=c.getDefaultOptions().queries)==null?void 0:at._experimental_afterQuery)==null||it.call(at,g,$),g.experimental_prefetchInRender&&!isServer&&willFetch($,a)){const dt=_?fetchOptimistic(g,b,o):(nt=c.getQueryCache().get(g.queryHash))==null?void 0:nt.promise;dt==null||dt.catch(noop).finally(()=>{b.updateResult()})}return g.notifyOnChangeProps?$:b.trackResult($)}function useQuery(e,s){return useBaseQuery(e,QueryObserver)}function useMutation(e,s){const i=useQueryClient(),[a]=reactExports.useState(()=>new MutationObserver$1(i,e));reactExports.useEffect(()=>{a.setOptions(e)},[a,e]);const o=reactExports.useSyncExternalStore(reactExports.useCallback(g=>a.subscribe(notifyManager.batchCalls(g)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=reactExports.useCallback((g,_)=>{a.mutate(g,_).catch(noop)},[a]);if(o.error&&shouldThrowError(a.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}var ABHA_V3_SKIP_STATES=(e=>(e.ABHA_END="abha_end",e.CONFIRM_MOBILE_OTP="confirm_mobile_otp",e.ABHA_CREATE="abha_create",e.ABHA_SELECT="abha_select",e))(ABHA_V3_SKIP_STATES||{}),ABHA_AUTH_FLOW_METHOD=(e=>(e.PHR_ADDRESS="phr_address",e.MOBILE="mobile",e.ABHA_NUMBER="abha_number",e.AADHAR_NUMBER="aadhaar_number",e.REGISTRATION_TYPE="registration_type",e))(ABHA_AUTH_FLOW_METHOD||{}),REGISTRATION_TYPE=(e=>(e.LOGIN="login",e.CREATE="create",e))(REGISTRATION_TYPE||{}),LOADING_STATE=(e=>(e.IDLE="IDLE",e.LOADING="LOADING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED",e))(LOADING_STATE||{}),AUTH_METHOD=(e=>(e[e.EMAIL=1]="EMAIL",e[e.MOBILE=2]="MOBILE",e[e.ABHA=7]="ABHA",e))(AUTH_METHOD||{});const PROD={AORTA_HOST:"https://auth.eka.care",AORTA_GO_HOST:"https://aortago.eka.care",TRYST_HOST:"https://tryst.eka.care",AXON_HOST:"https://axon.eka.care",PARCHI_HOST:"https://parchi.eka.care",CURIO_HOST:"https://eka.care",AVATAR_HOST:"https://a.eka.care",PTDIR_HOST:"https://ptdir.eka.care",TELE_HOST:"https://mweb.eka.care",METROLPOLIS_HOST:"https://consultation.metropolisindia.com",LUCID_WS_HOST:"https://lucid-ws.eka.care",LUCID_HOST:"https://lucid.eka.care",DEEPTHOUGHT_HOST:"https://deepthought.eka.care",NDHM_HOST:"https://api.eka.care",LOGIN_HOST:"https://login.eka.care",HUB:"https://hub.eka.care",RECEIPT_DOMAIN:"https://doc-receipts.eka.care"},DEV={AORTA_HOST:"https://aorta.dev.eka.care",AORTA_GO_HOST:"https://aortago.dev.eka.care",TRYST_HOST:"https://tryst.dev.eka.care",AXON_HOST:"https://axon.dev.eka.care",PARCHI_HOST:"https://parchi.dev.eka.care",CURIO_HOST:"https://curio.dev.eka.care",AVATAR_HOST:"https://eka-avatar.dev.eka.care",PTDIR_HOST:"https://ptdir.dev.eka.care",TELE_HOST:"https://mweb.dev.eka.care",METROLPOLIS_HOST:"https://consultation.metropolisindia.com",LUCID_WS_HOST:"https://lucid-ws.dev.eka.care",LUCID_HOST:"https://lucid.dev.eka.care",DEEPTHOUGHT_HOST:"https://deepthought.dev.eka.care",NDHM_HOST:"https://api.dev.eka.care",LOGIN_HOST:"https://login.dev.eka.care",HUB:"https://hub.dev.eka.care",RECEIPT_DOMAIN:"https://doc-receipt.s3.ap-south-1.amazonaws.com"};let envVar=DEV,client_id="",extraHeaders=null;const setEnv=({env:e,clientId:s,extraHeaders:i})=>{envVar=e==="PROD"?PROD:DEV,client_id=s,i&&(extraHeaders=i)},setIndividualEnv=({clientId:e,env:s,extraHeaders:i})=>{e&&(client_id=e),s&&(envVar=s==="PROD"?PROD:DEV),i&&(extraHeaders={...extraHeaders,...i})},GET_AORTA_GO_HOST=()=>envVar.AORTA_GO_HOST,GET_NDHM_HOST=()=>envVar.NDHM_HOST,GET_CLIENT_ID=()=>client_id,GET_EXTRA_HEADERS=()=>extraHeaders;var lottie$1={exports:{}};(function(module,exports){typeof document<"u"&&typeof navigator<"u"&&function(e,s){module.exports=s()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(s){_useWebWorker=!!s},getWebWorker=function(){return _useWebWorker},setLocationHref=function(s){locationHref=s},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,s){var i,a=e.length,o;for(i=0;i<a;i+=1){o=e[i].prototype;for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s.prototype[c]=o[c])}}function getDescriptor(e,s){return Object.getOwnPropertyDescriptor(e,s)}function createProxyFunction(e){function s(){}return s.prototype=e,s}var audioControllerFactory=function(){function e(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].pause()},resume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].resume()},setRate:function(i){var a,o=this.audios.length;for(a=0;a<o;a+=1)this.audios[a].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(i,a){var o=0,c=[],g;switch(i){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(o=0;o<a;o+=1)c.push(g);return c}function s(i,a){return i==="float32"?new Float32Array(a):i==="int16"?new Int16Array(a):i==="uint8c"?new Uint8ClampedArray(a):e(i,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_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=["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"],s,i=e.length;for(s=0;s<i;s+=1)BMMath[e[s]]=Math[e[s]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var s=_typeof$6(e);if(s==="object"&&e.length){var i=createSizedArray(e.length),a,o=e.length;for(a=0;a<o;a+=1)i[a]=Math.abs(e[a]);return i}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,s,i,a){this.type=e,this.currentTime=s,this.totalTime=i,this.direction=a<0?-1:1}function BMCompleteEvent(e,s){this.type=e,this.direction=s<0?-1:1}function BMCompleteLoopEvent(e,s,i,a){this.type=e,this.currentLoop=i,this.totalLoops=s,this.direction=a<0?-1:1}function BMSegmentStartEvent(e,s,i){this.type=e,this.firstFrame=s,this.totalFrames=i}function BMDestroyEvent(e,s){this.type=e,this.target=s}function BMRenderFrameErrorEvent(e,s){this.type="renderFrameError",this.nativeError=e,this.currentTime=s}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,s,i){var a,o,c,g,_,b,$,et;switch(g=Math.floor(e*6),_=e*6-g,b=i*(1-s),$=i*(1-_*s),et=i*(1-(1-_)*s),g%6){case 0:a=i,o=et,c=b;break;case 1:a=$,o=i,c=b;break;case 2:a=b,o=i,c=et;break;case 3:a=b,o=$,c=i;break;case 4:a=et,o=b,c=i;break;case 5:a=i,o=b,c=$;break}return[a,o,c]}function RGBtoHSV(e,s,i){var a=Math.max(e,s,i),o=Math.min(e,s,i),c=a-o,g,_=a===0?0:c/a,b=a/255;switch(a){case o:g=0;break;case e:g=s-i+c*(s<i?6:0),g/=6*c;break;case s:g=i-e+c*2,g/=6*c;break;case i:g=e-s+c*4,g/=6*c;break}return[g,_,b]}function addSaturationToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[1]+=s,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[2]+=s,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[0]+=s/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e=[],s,i;for(s=0;s<256;s+=1)i=s.toString(16),e[s]=i.length===1?"0"+i:i;return function(a,o,c){return a<0&&(a=0),o<0&&(o=0),c<0&&(c=0),"#"+e[a]+e[o]+e[c]}}(),setSubframeEnabled=function(s){subframeEnabled=!!s},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(s){expressionsPlugin=s},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(s){expressionsInterfaces=s},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(s){defaultCurveSegments=s},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(s){idPrefix$1=s};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$5(e)}var dataManager=function(){var e=1,s=[],i,a,o={onmessage:function(){},postMessage:function(at){i({data:at})}},c={postMessage:function(at){o.onmessage({data:at})}};function g(rt){if(window.Worker&&window.Blob&&getWebWorker()){var at=new Blob(["var _workerSelf = self; self.onmessage = ",rt.toString()],{type:"text/javascript"}),it=URL.createObjectURL(at);return new Worker(it)}return i=rt,o}function _(){a||(a=g(function(at){function it(){function dt(xt,pt){var vt,lt,ht=xt.length,yt,ft,Ct,St;for(lt=0;lt<ht;lt+=1)if(vt=xt[lt],"ks"in vt&&!vt.completed){if(vt.completed=!0,vt.hasMask){var bt=vt.masksProperties;for(ft=bt.length,yt=0;yt<ft;yt+=1)if(bt[yt].pt.k.i)ut(bt[yt].pt.k);else for(St=bt[yt].pt.k.length,Ct=0;Ct<St;Ct+=1)bt[yt].pt.k[Ct].s&&ut(bt[yt].pt.k[Ct].s[0]),bt[yt].pt.k[Ct].e&&ut(bt[yt].pt.k[Ct].e[0])}vt.ty===0?(vt.layers=j(vt.refId,pt),dt(vt.layers,pt)):vt.ty===4?st(vt.shapes):vt.ty===5&&Tt(vt)}}function _e(xt,pt){if(xt){var vt=0,lt=xt.length;for(vt=0;vt<lt;vt+=1)xt[vt].t===1&&(xt[vt].data.layers=j(xt[vt].data.refId,pt),dt(xt[vt].data.layers,pt))}}function tt(xt,pt){for(var vt=0,lt=pt.length;vt<lt;){if(pt[vt].id===xt)return pt[vt];vt+=1}return null}function j(xt,pt){var vt=tt(xt,pt);return vt?vt.layers.__used?JSON.parse(JSON.stringify(vt.layers)):(vt.layers.__used=!0,vt.layers):null}function st(xt){var pt,vt=xt.length,lt,ht;for(pt=vt-1;pt>=0;pt-=1)if(xt[pt].ty==="sh")if(xt[pt].ks.k.i)ut(xt[pt].ks.k);else for(ht=xt[pt].ks.k.length,lt=0;lt<ht;lt+=1)xt[pt].ks.k[lt].s&&ut(xt[pt].ks.k[lt].s[0]),xt[pt].ks.k[lt].e&&ut(xt[pt].ks.k[lt].e[0]);else xt[pt].ty==="gr"&&st(xt[pt].it)}function ut(xt){var pt,vt=xt.i.length;for(pt=0;pt<vt;pt+=1)xt.i[pt][0]+=xt.v[pt][0],xt.i[pt][1]+=xt.v[pt][1],xt.o[pt][0]+=xt.v[pt][0],xt.o[pt][1]+=xt.v[pt][1]}function ct(xt,pt){var vt=pt?pt.split("."):[100,100,100];return xt[0]>vt[0]?!0:vt[0]>xt[0]?!1:xt[1]>vt[1]?!0:vt[1]>xt[1]?!1:xt[2]>vt[2]?!0:vt[2]>xt[2]?!1:null}var gt=function(){var xt=[4,4,14];function pt(lt){var ht=lt.t.d;lt.t.d={k:[{s:ht,t:0}]}}function vt(lt){var ht,yt=lt.length;for(ht=0;ht<yt;ht+=1)lt[ht].ty===5&&pt(lt[ht])}return function(lt){if(ct(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ht,yt=lt.assets.length;for(ht=0;ht<yt;ht+=1)lt.assets[ht].layers&&vt(lt.assets[ht].layers)}}}(),mt=function(){var xt=[4,7,99];return function(pt){if(pt.chars&&!ct(xt,pt.v)){var vt,lt=pt.chars.length;for(vt=0;vt<lt;vt+=1){var ht=pt.chars[vt];ht.data&&ht.data.shapes&&(st(ht.data.shapes),ht.data.ip=0,ht.data.op=99999,ht.data.st=0,ht.data.sr=1,ht.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}},pt.chars[vt].t||(ht.data.shapes.push({ty:"no"}),ht.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"})))}}}}(),_t=function(){var xt=[5,7,15];function pt(lt){var ht=lt.t.p;typeof ht.a=="number"&&(ht.a={a:0,k:ht.a}),typeof ht.p=="number"&&(ht.p={a:0,k:ht.p}),typeof ht.r=="number"&&(ht.r={a:0,k:ht.r})}function vt(lt){var ht,yt=lt.length;for(ht=0;ht<yt;ht+=1)lt[ht].ty===5&&pt(lt[ht])}return function(lt){if(ct(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ht,yt=lt.assets.length;for(ht=0;ht<yt;ht+=1)lt.assets[ht].layers&&vt(lt.assets[ht].layers)}}}(),kt=function(){var xt=[4,1,9];function pt(lt){var ht,yt=lt.length,ft,Ct;for(ht=0;ht<yt;ht+=1)if(lt[ht].ty==="gr")pt(lt[ht].it);else if(lt[ht].ty==="fl"||lt[ht].ty==="st")if(lt[ht].c.k&&lt[ht].c.k[0].i)for(Ct=lt[ht].c.k.length,ft=0;ft<Ct;ft+=1)lt[ht].c.k[ft].s&&(lt[ht].c.k[ft].s[0]/=255,lt[ht].c.k[ft].s[1]/=255,lt[ht].c.k[ft].s[2]/=255,lt[ht].c.k[ft].s[3]/=255),lt[ht].c.k[ft].e&&(lt[ht].c.k[ft].e[0]/=255,lt[ht].c.k[ft].e[1]/=255,lt[ht].c.k[ft].e[2]/=255,lt[ht].c.k[ft].e[3]/=255);else lt[ht].c.k[0]/=255,lt[ht].c.k[1]/=255,lt[ht].c.k[2]/=255,lt[ht].c.k[3]/=255}function vt(lt){var ht,yt=lt.length;for(ht=0;ht<yt;ht+=1)lt[ht].ty===4&&pt(lt[ht].shapes)}return function(lt){if(ct(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ht,yt=lt.assets.length;for(ht=0;ht<yt;ht+=1)lt.assets[ht].layers&&vt(lt.assets[ht].layers)}}}(),wt=function(){var xt=[4,4,18];function pt(lt){var ht,yt=lt.length,ft,Ct;for(ht=yt-1;ht>=0;ht-=1)if(lt[ht].ty==="sh")if(lt[ht].ks.k.i)lt[ht].ks.k.c=lt[ht].closed;else for(Ct=lt[ht].ks.k.length,ft=0;ft<Ct;ft+=1)lt[ht].ks.k[ft].s&&(lt[ht].ks.k[ft].s[0].c=lt[ht].closed),lt[ht].ks.k[ft].e&&(lt[ht].ks.k[ft].e[0].c=lt[ht].closed);else lt[ht].ty==="gr"&&pt(lt[ht].it)}function vt(lt){var ht,yt,ft=lt.length,Ct,St,bt,Ot;for(yt=0;yt<ft;yt+=1){if(ht=lt[yt],ht.hasMask){var Mt=ht.masksProperties;for(St=Mt.length,Ct=0;Ct<St;Ct+=1)if(Mt[Ct].pt.k.i)Mt[Ct].pt.k.c=Mt[Ct].cl;else for(Ot=Mt[Ct].pt.k.length,bt=0;bt<Ot;bt+=1)Mt[Ct].pt.k[bt].s&&(Mt[Ct].pt.k[bt].s[0].c=Mt[Ct].cl),Mt[Ct].pt.k[bt].e&&(Mt[Ct].pt.k[bt].e[0].c=Mt[Ct].cl)}ht.ty===4&&pt(ht.shapes)}}return function(lt){if(ct(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ht,yt=lt.assets.length;for(ht=0;ht<yt;ht+=1)lt.assets[ht].layers&&vt(lt.assets[ht].layers)}}}();function Et(xt){xt.__complete||(kt(xt),gt(xt),mt(xt),_t(xt),wt(xt),dt(xt.layers,xt.assets),_e(xt.chars,xt.assets),xt.__complete=!0)}function Tt(xt){xt.t.a.length===0&&"m"in xt.t.p}var Lt={};return Lt.completeData=Et,Lt.checkColors=kt,Lt.checkChars=mt,Lt.checkPathProperties=_t,Lt.checkShapes=wt,Lt.completeLayers=dt,Lt}if(c.dataManager||(c.dataManager=it()),c.assetLoader||(c.assetLoader=function(){function dt(tt){var j=tt.getResponseHeader("content-type");return j&&tt.responseType==="json"&&j.indexOf("json")!==-1||tt.response&&_typeof$5(tt.response)==="object"?tt.response:tt.response&&typeof tt.response=="string"?JSON.parse(tt.response):tt.responseText?JSON.parse(tt.responseText):null}function _e(tt,j,st,ut){var ct,gt=new XMLHttpRequest;try{gt.responseType="json"}catch{}gt.onreadystatechange=function(){if(gt.readyState===4)if(gt.status===200)ct=dt(gt),st(ct);else try{ct=dt(gt),st(ct)}catch(mt){ut&&ut(mt)}};try{gt.open(["G","E","T"].join(""),tt,!0)}catch{gt.open(["G","E","T"].join(""),j+"/"+tt,!0)}gt.send()}return{load:_e}}()),at.data.type==="loadAnimation")c.assetLoader.load(at.data.path,at.data.fullPath,function(dt){c.dataManager.completeData(dt),c.postMessage({id:at.data.id,payload:dt,status:"success"})},function(){c.postMessage({id:at.data.id,status:"error"})});else if(at.data.type==="complete"){var nt=at.data.animation;c.dataManager.completeData(nt),c.postMessage({id:at.data.id,payload:nt,status:"success"})}else at.data.type==="loadData"&&c.assetLoader.load(at.data.path,at.data.fullPath,function(dt){c.postMessage({id:at.data.id,payload:dt,status:"success"})},function(){c.postMessage({id:at.data.id,status:"error"})})}),a.onmessage=function(rt){var at=rt.data,it=at.id,nt=s[it];s[it]=null,at.status==="success"?nt.onComplete(at.payload):nt.onError&&nt.onError()})}function b(rt,at){e+=1;var it="processId_"+e;return s[it]={onComplete:rt,onError:at},it}function $(rt,at,it){_();var nt=b(at,it);a.postMessage({type:"loadAnimation",path:rt,fullPath:window.location.origin+window.location.pathname,id:nt})}function et(rt,at,it){_();var nt=b(at,it);a.postMessage({type:"loadData",path:rt,fullPath:window.location.origin+window.location.pathname,id:nt})}function ot(rt,at,it){_();var nt=b(at,it);a.postMessage({type:"complete",animation:rt,id:nt})}return{loadAnimation:$,loadData:et,completeAnimation:ot}}(),ImagePreloader=function(){var e=function(){var _e=createTag("canvas");_e.width=1,_e.height=1;var tt=_e.getContext("2d");return tt.fillStyle="rgba(0,0,0,0)",tt.fillRect(0,0,1,1),_e}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(_e,tt,j){var st="";if(_e.e)st=_e.p;else if(tt){var ut=_e.p;ut.indexOf("images/")!==-1&&(ut=ut.split("/")[1]),st=tt+ut}else st=j,st+=_e.u?_e.u:"",st+=_e.p;return st}function o(_e){var tt=0,j=setInterval((function(){var st=_e.getBBox();(st.width||tt>500)&&(this._imageLoaded(),clearInterval(j)),tt+=1}).bind(this),50)}function c(_e){var tt=a(_e,this.assetsPath,this.path),j=createNS("image");isSafari?this.testImageLoaded(j):j.addEventListener("load",this._imageLoaded,!1),j.addEventListener("error",(function(){st.img=e,this._imageLoaded()}).bind(this),!1),j.setAttributeNS("http://www.w3.org/1999/xlink","href",tt),this._elementHelper.append?this._elementHelper.append(j):this._elementHelper.appendChild(j);var st={img:j,assetData:_e};return st}function g(_e){var tt=a(_e,this.assetsPath,this.path),j=createTag("img");j.crossOrigin="anonymous",j.addEventListener("load",this._imageLoaded,!1),j.addEventListener("error",(function(){st.img=e,this._imageLoaded()}).bind(this),!1),j.src=tt;var st={img:j,assetData:_e};return st}function _(_e){var tt={assetData:_e},j=a(_e,this.assetsPath,this.path);return dataManager.loadData(j,(function(st){tt.img=st,this._footageLoaded()}).bind(this),(function(){tt.img={},this._footageLoaded()}).bind(this)),tt}function b(_e,tt){this.imagesLoadedCb=tt;var j,st=_e.length;for(j=0;j<st;j+=1)_e[j].layers||(!_e[j].t||_e[j].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(_e[j]))):_e[j].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(_e[j]))))}function $(_e){this.path=_e||""}function et(_e){this.assetsPath=_e||""}function ot(_e){for(var tt=0,j=this.images.length;tt<j;){if(this.images[tt].assetData===_e)return this.images[tt].img;tt+=1}return null}function rt(){this.imagesLoadedCb=null,this.images.length=0}function at(){return this.totalImages===this.loadedAssets}function it(){return this.totalFootages===this.loadedFootagesCount}function nt(_e,tt){_e==="svg"?(this._elementHelper=tt,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function dt(){this._imageLoaded=s.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=_.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return dt.prototype={loadAssets:b,setAssetsPath:et,setPath:$,loadedImages:at,loadedFootages:it,destroy:rt,getAsset:ot,createImgData:g,createImageData:c,imageLoaded:s,footageLoaded:i,setCacheType:nt},dt}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(s,i){if(this._cbs[s])for(var a=this._cbs[s],o=0;o<a.length;o+=1)a[o](i)},addEventListener:function(s,i){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(i),(function(){this.removeEventListener(s,i)}).bind(this)},removeEventListener:function(s,i){if(!i)this._cbs[s]=null;else if(this._cbs[s]){for(var a=0,o=this._cbs[s].length;a<o;)this._cbs[s][a]===i&&(this._cbs[s].splice(a,1),a-=1,o-=1),a+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var markerParser=function(){function e(s){for(var i=s.split(`\r
41
+ `),a={},o,c=0,g=0;g<i.length;g+=1)o=i[g].split(":"),o.length===2&&(a[o[0]]=o[1].trim(),c+=1);if(c===0)throw new Error;return a}return function(s){for(var i=[],a=0;a<s.length;a+=1){var o=s[a],c={time:o.tm,duration:o.dr};try{c.payload=JSON.parse(s[a].cm)}catch{try{c.payload=e(s[a].cm)}catch{c.payload={name:s[a].cm}}}i.push(c)}return i}}(),ProjectInterface=function(){function e(s){this.compositions.push(s)}return function(){function s(i){for(var a=0,o=this.compositions.length;a<o;){if(this.compositions[a].data&&this.compositions[a].data.nm===i)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=e,s}}(),renderers={},registerRenderer=function(s,i){renderers[s]=i};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){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_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 s="svg";e.animType?s=e.animType:e.renderer&&(s=e.renderer);var i=getRenderer(s);this.renderer=new i(this,e.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?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,s){s&&_typeof$4(s)!=="object"&&(s=JSON.parse(s));var i={wrapper:e,animationData:s},a=e.attributes;i.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",i.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var o=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";o==="false"?i.loop=!1:o==="true"?i.loop=!0:o!==""&&(i.loop=parseInt(o,10));var c=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:a.getNamedItem("bm-autoplay")?a.getNamedItem("bm-autoplay").value:!0;i.autoplay=c!=="false",i.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"";var g=a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"";g==="false"&&(i.prerender=!1),i.path?this.setParams(i):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 s=this.animationData.layers,i,a=s.length,o=e.layers,c,g=o.length;for(c=0;c<g;c+=1)for(i=0;i<a;){if(s[i].id===o[c].id){s[i]=o[c];break}i+=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(a=e.assets.length,i=0;i<a;i+=1)this.animationData.assets.push(e.assets[i]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var s=getExpressionsPlugin();s&&s.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=e.shift();this.timeCompleted=s.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(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(s){this.triggerConfigError(s)}},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()||this.renderer.rendererType!=="canvas")&&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,s){var i=typeof e=="number"?e:void 0,a=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(i,a)},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(!(this.isLoaded===!1||!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||this.isPaused===!0&&(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||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?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 s,i=0;i<this.markers.length;i+=1)if(s=this.markers[i],s.payload&&s.payload.name===e)return s;return null},AnimationItem.prototype.goToAndStop=function(e,s,i){if(!(i&&this.name!==i)){var a=Number(e);if(isNaN(a)){var o=this.getMarkerData(e);o&&this.goToAndStop(o.time,!0)}else s?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,s,i){if(!(i&&this.name!==i)){var a=Number(e);if(isNaN(a)){var o=this.getMarkerData(e);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(a,s,i);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+e*this.frameModifier,i=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(i=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,s=0)):this.setCurrentRawFrameValue(s),i&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,s){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-s)):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+s)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,s){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?i=e:this.currentRawFrame+this.firstFrame>s&&(i=s-e)),this.firstFrame=e,this.totalFrames=s-e,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(e,s){if(s&&(this.segments.length=0),_typeof$4(e[0])==="object"){var i,a=e.length;for(i=0;i<a;i+=1)this.segments.push(e[i])}else this.segments.push(e);this.segments.length&&s&&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):!1},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,s){s&&this.name!==s||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 s="";if(e.e)s=e.p;else if(this.assetsPath){var i=e.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),s=this.assetsPath+i}else s=this.path,s+=e.u?e.u:"",s+=e.p;return s},AnimationItem.prototype.getAssetData=function(e){for(var s=0,i=this.assets.length;s<i;){if(e===this.assets[s].id)return this.assets[s];s+=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,s,i){try{var a=this.renderer.getElementByPath(e);a.updateDocumentData(s,i)}catch{}},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)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var s=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},AnimationItem.prototype.triggerConfigError=function(e){var s=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var animationManager=function(){var e={},s=[],i=0,a=0,o=0,c=!0,g=!1;function _(pt){for(var vt=0,lt=pt.target;vt<a;)s[vt].animation===lt&&(s.splice(vt,1),vt-=1,a-=1,lt.isPaused||ot()),vt+=1}function b(pt,vt){if(!pt)return null;for(var lt=0;lt<a;){if(s[lt].elem===pt&&s[lt].elem!==null)return s[lt].animation;lt+=1}var ht=new AnimationItem;return rt(ht,pt),ht.setData(pt,vt),ht}function $(){var pt,vt=s.length,lt=[];for(pt=0;pt<vt;pt+=1)lt.push(s[pt].animation);return lt}function et(){o+=1,kt()}function ot(){o-=1}function rt(pt,vt){pt.addEventListener("destroy",_),pt.addEventListener("_active",et),pt.addEventListener("_idle",ot),s.push({elem:vt,animation:pt}),a+=1}function at(pt){var vt=new AnimationItem;return rt(vt,null),vt.setParams(pt),vt}function it(pt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setSpeed(pt,vt)}function nt(pt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setDirection(pt,vt)}function dt(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.play(pt)}function _e(pt){var vt=pt-i,lt;for(lt=0;lt<a;lt+=1)s[lt].animation.advanceTime(vt);i=pt,o&&!g?window.requestAnimationFrame(_e):c=!0}function tt(pt){i=pt,window.requestAnimationFrame(_e)}function j(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.pause(pt)}function st(pt,vt,lt){var ht;for(ht=0;ht<a;ht+=1)s[ht].animation.goToAndStop(pt,vt,lt)}function ut(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.stop(pt)}function ct(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.togglePause(pt)}function gt(pt){var vt;for(vt=a-1;vt>=0;vt-=1)s[vt].animation.destroy(pt)}function mt(pt,vt,lt){var ht=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),yt,ft=ht.length;for(yt=0;yt<ft;yt+=1)lt&&ht[yt].setAttribute("data-bm-type",lt),b(ht[yt],pt);if(vt&&ft===0){lt||(lt="svg");var Ct=document.getElementsByTagName("body")[0];Ct.innerText="";var St=createTag("div");St.style.width="100%",St.style.height="100%",St.setAttribute("data-bm-type",lt),Ct.appendChild(St),b(St,pt)}}function _t(){var pt;for(pt=0;pt<a;pt+=1)s[pt].animation.resize()}function kt(){!g&&o&&c&&(window.requestAnimationFrame(tt),c=!1)}function wt(){g=!0}function Et(){g=!1,kt()}function Tt(pt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setVolume(pt,vt)}function Lt(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.mute(pt)}function xt(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.unmute(pt)}return e.registerAnimation=b,e.loadAnimation=at,e.setSpeed=it,e.setDirection=nt,e.play=dt,e.pause=j,e.stop=ut,e.togglePause=ct,e.searchAnimations=mt,e.resize=_t,e.goToAndStop=st,e.destroy=gt,e.freeze=wt,e.unfreeze=Et,e.setVolume=Tt,e.mute=Lt,e.unmute=xt,e.getRegisteredAnimations=$,e}(),BezierFactory=function(){var e={};e.getBezierEasing=i;var s={};function i(tt,j,st,ut,ct){var gt=ct||("bez_"+tt+"_"+j+"_"+st+"_"+ut).replace(/\./g,"p");if(s[gt])return s[gt];var mt=new _e([tt,j,st,ut]);return s[gt]=mt,mt}var a=4,o=.001,c=1e-7,g=10,_=11,b=1/(_-1),$=typeof Float32Array=="function";function et(tt,j){return 1-3*j+3*tt}function ot(tt,j){return 3*j-6*tt}function rt(tt){return 3*tt}function at(tt,j,st){return((et(j,st)*tt+ot(j,st))*tt+rt(j))*tt}function it(tt,j,st){return 3*et(j,st)*tt*tt+2*ot(j,st)*tt+rt(j)}function nt(tt,j,st,ut,ct){var gt,mt,_t=0;do mt=j+(st-j)/2,gt=at(mt,ut,ct)-tt,gt>0?st=mt:j=mt;while(Math.abs(gt)>c&&++_t<g);return mt}function dt(tt,j,st,ut){for(var ct=0;ct<a;++ct){var gt=it(j,st,ut);if(gt===0)return j;var mt=at(j,st,ut)-tt;j-=mt/gt}return j}function _e(tt){this._p=tt,this._mSampleValues=$?new Float32Array(_):new Array(_),this._precomputed=!1,this.get=this.get.bind(this)}return _e.prototype={get:function(j){var st=this._p[0],ut=this._p[1],ct=this._p[2],gt=this._p[3];return this._precomputed||this._precompute(),st===ut&&ct===gt?j:j===0?0:j===1?1:at(this._getTForX(j),ut,gt)},_precompute:function(){var j=this._p[0],st=this._p[1],ut=this._p[2],ct=this._p[3];this._precomputed=!0,(j!==st||ut!==ct)&&this._calcSampleValues()},_calcSampleValues:function(){for(var j=this._p[0],st=this._p[2],ut=0;ut<_;++ut)this._mSampleValues[ut]=at(ut*b,j,st)},_getTForX:function(j){for(var st=this._p[0],ut=this._p[2],ct=this._mSampleValues,gt=0,mt=1,_t=_-1;mt!==_t&&ct[mt]<=j;++mt)gt+=b;--mt;var kt=(j-ct[mt])/(ct[mt+1]-ct[mt]),wt=gt+kt*b,Et=it(wt,st,ut);return Et>=o?dt(j,wt,st,ut):Et===0?wt:nt(j,gt,gt+b,st,ut)}},e}(),pooling=function(){function e(s){return s.concat(createSizedArray(s.length))}return{double:e}}(),poolFactory=function(){return function(e,s,i){var a=0,o=e,c=createSizedArray(o),g={newElement:_,release:b};function _(){var $;return a?(a-=1,$=c[a]):$=s(),$}function b($){a===o&&(c=pooling.double(c),o*=2),i&&i($),c[a]=$,a+=1}return g}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function s(i){var a,o=i.lengths.length;for(a=0;a<o;a+=1)bezierLengthPool.release(i.lengths[a]);i.lengths.length=0}return poolFactory(8,e,s)}();function bezFunction(){var e=Math;function s(rt,at,it,nt,dt,_e){var tt=rt*nt+at*dt+it*_e-dt*nt-_e*rt-it*at;return tt>-.001&&tt<.001}function i(rt,at,it,nt,dt,_e,tt,j,st){if(it===0&&_e===0&&st===0)return s(rt,at,nt,dt,tt,j);var ut=e.sqrt(e.pow(nt-rt,2)+e.pow(dt-at,2)+e.pow(_e-it,2)),ct=e.sqrt(e.pow(tt-rt,2)+e.pow(j-at,2)+e.pow(st-it,2)),gt=e.sqrt(e.pow(tt-nt,2)+e.pow(j-dt,2)+e.pow(st-_e,2)),mt;return ut>ct?ut>gt?mt=ut-ct-gt:mt=gt-ct-ut:gt>ct?mt=gt-ct-ut:mt=ct-ut-gt,mt>-1e-4&&mt<1e-4}var a=function(){return function(rt,at,it,nt){var dt=getDefaultCurveSegments(),_e,tt,j,st,ut,ct=0,gt,mt=[],_t=[],kt=bezierLengthPool.newElement();for(j=it.length,_e=0;_e<dt;_e+=1){for(ut=_e/(dt-1),gt=0,tt=0;tt<j;tt+=1)st=bmPow(1-ut,3)*rt[tt]+3*bmPow(1-ut,2)*ut*it[tt]+3*(1-ut)*bmPow(ut,2)*nt[tt]+bmPow(ut,3)*at[tt],mt[tt]=st,_t[tt]!==null&&(gt+=bmPow(mt[tt]-_t[tt],2)),_t[tt]=mt[tt];gt&&(gt=bmSqrt(gt),ct+=gt),kt.percents[_e]=ut,kt.lengths[_e]=ct}return kt.addedLength=ct,kt}}();function o(rt){var at=segmentsLengthPool.newElement(),it=rt.c,nt=rt.v,dt=rt.o,_e=rt.i,tt,j=rt._length,st=at.lengths,ut=0;for(tt=0;tt<j-1;tt+=1)st[tt]=a(nt[tt],nt[tt+1],dt[tt],_e[tt+1]),ut+=st[tt].addedLength;return it&&j&&(st[tt]=a(nt[tt],nt[0],dt[tt],_e[0]),ut+=st[tt].addedLength),at.totalLength=ut,at}function c(rt){this.segmentLength=0,this.points=new Array(rt)}function g(rt,at){this.partialLength=rt,this.point=at}var _=function(){var rt={};return function(at,it,nt,dt){var _e=(at[0]+"_"+at[1]+"_"+it[0]+"_"+it[1]+"_"+nt[0]+"_"+nt[1]+"_"+dt[0]+"_"+dt[1]).replace(/\./g,"p");if(!rt[_e]){var tt=getDefaultCurveSegments(),j,st,ut,ct,gt,mt=0,_t,kt,wt=null;at.length===2&&(at[0]!==it[0]||at[1]!==it[1])&&s(at[0],at[1],it[0],it[1],at[0]+nt[0],at[1]+nt[1])&&s(at[0],at[1],it[0],it[1],it[0]+dt[0],it[1]+dt[1])&&(tt=2);var Et=new c(tt);for(ut=nt.length,j=0;j<tt;j+=1){for(kt=createSizedArray(ut),gt=j/(tt-1),_t=0,st=0;st<ut;st+=1)ct=bmPow(1-gt,3)*at[st]+3*bmPow(1-gt,2)*gt*(at[st]+nt[st])+3*(1-gt)*bmPow(gt,2)*(it[st]+dt[st])+bmPow(gt,3)*it[st],kt[st]=ct,wt!==null&&(_t+=bmPow(kt[st]-wt[st],2));_t=bmSqrt(_t),mt+=_t,Et.points[j]=new g(_t,kt),wt=kt}Et.segmentLength=mt,rt[_e]=Et}return rt[_e]}}();function b(rt,at){var it=at.percents,nt=at.lengths,dt=it.length,_e=bmFloor((dt-1)*rt),tt=rt*at.addedLength,j=0;if(_e===dt-1||_e===0||tt===nt[_e])return it[_e];for(var st=nt[_e]>tt?-1:1,ut=!0;ut;)if(nt[_e]<=tt&&nt[_e+1]>tt?(j=(tt-nt[_e])/(nt[_e+1]-nt[_e]),ut=!1):_e+=st,_e<0||_e>=dt-1){if(_e===dt-1)return it[_e];ut=!1}return it[_e]+(it[_e+1]-it[_e])*j}function $(rt,at,it,nt,dt,_e){var tt=b(dt,_e),j=1-tt,st=e.round((j*j*j*rt[0]+(tt*j*j+j*tt*j+j*j*tt)*it[0]+(tt*tt*j+j*tt*tt+tt*j*tt)*nt[0]+tt*tt*tt*at[0])*1e3)/1e3,ut=e.round((j*j*j*rt[1]+(tt*j*j+j*tt*j+j*j*tt)*it[1]+(tt*tt*j+j*tt*tt+tt*j*tt)*nt[1]+tt*tt*tt*at[1])*1e3)/1e3;return[st,ut]}var et=createTypedArray("float32",8);function ot(rt,at,it,nt,dt,_e,tt){dt<0?dt=0:dt>1&&(dt=1);var j=b(dt,tt);_e=_e>1?1:_e;var st=b(_e,tt),ut,ct=rt.length,gt=1-j,mt=1-st,_t=gt*gt*gt,kt=j*gt*gt*3,wt=j*j*gt*3,Et=j*j*j,Tt=gt*gt*mt,Lt=j*gt*mt+gt*j*mt+gt*gt*st,xt=j*j*mt+gt*j*st+j*gt*st,pt=j*j*st,vt=gt*mt*mt,lt=j*mt*mt+gt*st*mt+gt*mt*st,ht=j*st*mt+gt*st*st+j*mt*st,yt=j*st*st,ft=mt*mt*mt,Ct=st*mt*mt+mt*st*mt+mt*mt*st,St=st*st*mt+mt*st*st+st*mt*st,bt=st*st*st;for(ut=0;ut<ct;ut+=1)et[ut*4]=e.round((_t*rt[ut]+kt*it[ut]+wt*nt[ut]+Et*at[ut])*1e3)/1e3,et[ut*4+1]=e.round((Tt*rt[ut]+Lt*it[ut]+xt*nt[ut]+pt*at[ut])*1e3)/1e3,et[ut*4+2]=e.round((vt*rt[ut]+lt*it[ut]+ht*nt[ut]+yt*at[ut])*1e3)/1e3,et[ut*4+3]=e.round((ft*rt[ut]+Ct*it[ut]+St*nt[ut]+bt*at[ut])*1e3)/1e3;return et}return{getSegmentsLength:o,getNewSegment:ot,getPointInSegment:$,buildBezierData:_,pointOnLine2D:s,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,s){var i=this.offsetTime,a;this.propType==="multidimensional"&&(a=createTypedArray("float32",this.pv.length));for(var o=s.lastIndex,c=o,g=this.keyframes.length-1,_=!0,b,$,et;_;){if(b=this.keyframes[c],$=this.keyframes[c+1],c===g-1&&e>=$.t-i){b.h&&(b=$),o=0;break}if($.t-i>e){o=c;break}c<g-1?c+=1:(o=0,_=!1)}et=this.keyframesMetadata[c]||{};var ot,rt,at,it,nt,dt,_e=$.t-i,tt=b.t-i,j;if(b.to){et.bezierData||(et.bezierData=bez.buildBezierData(b.s,$.s||b.e,b.to,b.ti));var st=et.bezierData;if(e>=_e||e<tt){var ut=e>=_e?st.points.length-1:0;for(rt=st.points[ut].point.length,ot=0;ot<rt;ot+=1)a[ot]=st.points[ut].point[ot]}else{et.__fnct?dt=et.__fnct:(dt=BezierFactory.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,et.__fnct=dt),at=dt((e-tt)/(_e-tt));var ct=st.segmentLength*at,gt,mt=s.lastFrame<e&&s._lastKeyframeIndex===c?s._lastAddedLength:0;for(nt=s.lastFrame<e&&s._lastKeyframeIndex===c?s._lastPoint:0,_=!0,it=st.points.length;_;){if(mt+=st.points[nt].partialLength,ct===0||at===0||nt===st.points.length-1){for(rt=st.points[nt].point.length,ot=0;ot<rt;ot+=1)a[ot]=st.points[nt].point[ot];break}else if(ct>=mt&&ct<mt+st.points[nt+1].partialLength){for(gt=(ct-mt)/st.points[nt+1].partialLength,rt=st.points[nt].point.length,ot=0;ot<rt;ot+=1)a[ot]=st.points[nt].point[ot]+(st.points[nt+1].point[ot]-st.points[nt].point[ot])*gt;break}nt<it-1?nt+=1:_=!1}s._lastPoint=nt,s._lastAddedLength=mt-st.points[nt].partialLength,s._lastKeyframeIndex=c}}else{var _t,kt,wt,Et,Tt;if(g=b.s.length,j=$.s||b.e,this.sh&&b.h!==1)if(e>=_e)a[0]=j[0],a[1]=j[1],a[2]=j[2];else if(e<=tt)a[0]=b.s[0],a[1]=b.s[1],a[2]=b.s[2];else{var Lt=createQuaternion(b.s),xt=createQuaternion(j),pt=(e-tt)/(_e-tt);quaternionToEuler(a,slerp(Lt,xt,pt))}else for(c=0;c<g;c+=1)b.h!==1&&(e>=_e?at=1:e<tt?at=0:(b.o.x.constructor===Array?(et.__fnct||(et.__fnct=[]),et.__fnct[c]?dt=et.__fnct[c]:(_t=b.o.x[c]===void 0?b.o.x[0]:b.o.x[c],kt=b.o.y[c]===void 0?b.o.y[0]:b.o.y[c],wt=b.i.x[c]===void 0?b.i.x[0]:b.i.x[c],Et=b.i.y[c]===void 0?b.i.y[0]:b.i.y[c],dt=BezierFactory.getBezierEasing(_t,kt,wt,Et).get,et.__fnct[c]=dt)):et.__fnct?dt=et.__fnct:(_t=b.o.x,kt=b.o.y,wt=b.i.x,Et=b.i.y,dt=BezierFactory.getBezierEasing(_t,kt,wt,Et).get,b.keyframeMetadata=dt),at=dt((e-tt)/(_e-tt)))),j=$.s||b.e,Tt=b.h===1?b.s[c]:b.s[c]+(j[c]-b.s[c])*at,this.propType==="multidimensional"?a[c]=Tt:a=Tt}return s.lastIndex=o,a}function slerp(e,s,i){var a=[],o=e[0],c=e[1],g=e[2],_=e[3],b=s[0],$=s[1],et=s[2],ot=s[3],rt,at,it,nt,dt;return at=o*b+c*$+g*et+_*ot,at<0&&(at=-at,b=-b,$=-$,et=-et,ot=-ot),1-at>1e-6?(rt=Math.acos(at),it=Math.sin(rt),nt=Math.sin((1-i)*rt)/it,dt=Math.sin(i*rt)/it):(nt=1-i,dt=i),a[0]=nt*o+dt*b,a[1]=nt*c+dt*$,a[2]=nt*g+dt*et,a[3]=nt*_+dt*ot,a}function quaternionToEuler(e,s){var i=s[0],a=s[1],o=s[2],c=s[3],g=Math.atan2(2*a*c-2*i*o,1-2*a*a-2*o*o),_=Math.asin(2*i*a+2*o*c),b=Math.atan2(2*i*c-2*a*o,1-2*i*i-2*o*o);e[0]=g/degToRads,e[1]=_/degToRads,e[2]=b/degToRads}function createQuaternion(e){var s=e[0]*degToRads,i=e[1]*degToRads,a=e[2]*degToRads,o=Math.cos(s/2),c=Math.cos(i/2),g=Math.cos(a/2),_=Math.sin(s/2),b=Math.sin(i/2),$=Math.sin(a/2),et=o*c*g-_*b*$,ot=_*b*g+o*c*$,rt=_*c*g+o*b*$,at=o*b*g-_*c*$;return[ot,rt,at,et]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<s&&e<s))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(e,this._caching);this.pv=a}return this._caching.lastFrame=e,this.pv}function setVValue(e){var s;if(this.propType==="unidimensional")s=e*this.mult,mathAbs(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var i=0,a=this.v.length;i<a;)s=e[i]*this.mult,mathAbs(this.v[i]-s)>1e-5&&(this.v[i]=s,this._mdf=!0),i+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,s=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<s;e+=1)i=this.effectsSequence[e](i);this.setVValue(i),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,s,i,a){this.propType="unidimensional",this.mult=i||1,this.data=s,this.v=i?s.k*i:s.k,this.pv=s.k,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,s,i,a){this.propType="multidimensional",this.mult=i||1,this.data=s,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o,c=s.k.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),this.vel=createTypedArray("float32",c),o=0;o<c;o+=1)this.v[o]=s.k[o]*this.mult,this.pv[o]=s.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,s,i,a){this.propType="unidimensional",this.keyframes=s.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=s,this.mult=i||1,this.elem=e,this.container=a,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,s,i,a){this.propType="multidimensional";var o,c=s.k.length,g,_,b,$;for(o=0;o<c-1;o+=1)s.k[o].to&&s.k[o].s&&s.k[o+1]&&s.k[o+1].s&&(g=s.k[o].s,_=s.k[o+1].s,b=s.k[o].to,$=s.k[o].ti,(g.length===2&&!(g[0]===_[0]&&g[1]===_[1])&&bez.pointOnLine2D(g[0],g[1],_[0],_[1],g[0]+b[0],g[1]+b[1])&&bez.pointOnLine2D(g[0],g[1],_[0],_[1],_[0]+$[0],_[1]+$[1])||g.length===3&&!(g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2])&&bez.pointOnLine3D(g[0],g[1],g[2],_[0],_[1],_[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&bez.pointOnLine3D(g[0],g[1],g[2],_[0],_[1],_[2],_[0]+$[0],_[1]+$[1],_[2]+$[2]))&&(s.k[o].to=null,s.k[o].ti=null),g[0]===_[0]&&g[1]===_[1]&&b[0]===0&&b[1]===0&&$[0]===0&&$[1]===0&&(g.length===2||g[2]===_[2]&&b[2]===0&&$[2]===0)&&(s.k[o].to=null,s.k[o].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=a,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var et=s.k[0].s.length;for(this.v=createTypedArray("float32",et),this.pv=createTypedArray("float32",et),o=0;o<et;o+=1)this.v[o]=initFrame,this.pv[o]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",et)},this.addEffect=addEffect}var PropertyFactory=function(){function e(i,a,o,c,g){a.sid&&(a=i.globalData.slotManager.getProp(a));var _;if(!a.k.length)_=new ValueProperty(i,a,c,g);else if(typeof a.k[0]=="number")_=new MultiDimensionalProperty(i,a,c,g);else switch(o){case 0:_=new KeyframedValueProperty(i,a,c,g);break;case 1:_=new KeyframedMultidimensionalProperty(i,a,c,g);break}return _.effectsSequence.length&&g.addDynamicProperty(_),_}var s={getProp:e};return s}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,i=this.dynamicProperties.length;for(s=0;s<i;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();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,s){this.c=e,this.setLength(s);for(var i=0;i<s;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=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,s,i,a,o){var c;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[a]||c[a]&&!o)&&(c[a]=pointPool.newElement()),c[a][0]=e,c[a][1]=s},ShapePath.prototype.setTripleAt=function(e,s,i,a,o,c,g,_){this.setXYAt(e,s,"v",g,_),this.setXYAt(i,a,"o",g,_),this.setXYAt(o,c,"i",g,_)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var s=this.v,i=this.o,a=this.i,o=0;this.c&&(e.setTripleAt(s[0][0],s[0][1],a[0][0],a[0][1],i[0][0],i[0][1],0,!1),o=1);var c=this._length-1,g=this._length,_;for(_=o;_<g;_+=1)e.setTripleAt(s[c][0],s[c][1],a[c][0],a[c][1],i[c][0],i[c][1],_,!1),c-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function s(o){var c=o._length,g;for(g=0;g<c;g+=1)pointPool.release(o.v[g]),pointPool.release(o.i[g]),pointPool.release(o.o[g]),o.v[g]=null,o.i[g]=null,o.o[g]=null;o._length=0,o.c=!1}function i(o){var c=a.newElement(),g,_=o._length===void 0?o.v.length:o._length;for(c.setLength(_),c.c=o.c,g=0;g<_;g+=1)c.setTripleAt(o.v[g][0],o.v[g][1],o.o[g][0],o.o[g][1],o.i[g][0],o.i[g][1],g);return c}var a=poolFactory(4,e,s);return a.clone=i,a}();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:o,release:c},s=0,i=4,a=createSizedArray(i);function o(){var g;return s?(s-=1,g=a[s]):g=new ShapeCollection,g}function c(g){var _,b=g._length;for(_=0;_<b;_+=1)shapePool.release(g.shapes[_]);g._length=0,s===i&&(a=pooling.double(a),i*=2),a[s]=g,s+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function s(_e,tt,j){var st=j.lastIndex,ut,ct,gt,mt,_t,kt,wt,Et,Tt,Lt=this.keyframes;if(_e<Lt[0].t-this.offsetTime)ut=Lt[0].s[0],gt=!0,st=0;else if(_e>=Lt[Lt.length-1].t-this.offsetTime)ut=Lt[Lt.length-1].s?Lt[Lt.length-1].s[0]:Lt[Lt.length-2].e[0],gt=!0;else{for(var xt=st,pt=Lt.length-1,vt=!0,lt,ht,yt;vt&&(lt=Lt[xt],ht=Lt[xt+1],!(ht.t-this.offsetTime>_e));)xt<pt-1?xt+=1:vt=!1;if(yt=this.keyframesMetadata[xt]||{},gt=lt.h===1,st=xt,!gt){if(_e>=ht.t-this.offsetTime)Et=1;else if(_e<lt.t-this.offsetTime)Et=0;else{var ft;yt.__fnct?ft=yt.__fnct:(ft=BezierFactory.getBezierEasing(lt.o.x,lt.o.y,lt.i.x,lt.i.y).get,yt.__fnct=ft),Et=ft((_e-(lt.t-this.offsetTime))/(ht.t-this.offsetTime-(lt.t-this.offsetTime)))}ct=ht.s?ht.s[0]:lt.e[0]}ut=lt.s[0]}for(kt=tt._length,wt=ut.i[0].length,j.lastIndex=st,mt=0;mt<kt;mt+=1)for(_t=0;_t<wt;_t+=1)Tt=gt?ut.i[mt][_t]:ut.i[mt][_t]+(ct.i[mt][_t]-ut.i[mt][_t])*Et,tt.i[mt][_t]=Tt,Tt=gt?ut.o[mt][_t]:ut.o[mt][_t]+(ct.o[mt][_t]-ut.o[mt][_t])*Et,tt.o[mt][_t]=Tt,Tt=gt?ut.v[mt][_t]:ut.v[mt][_t]+(ct.v[mt][_t]-ut.v[mt][_t])*Et,tt.v[mt][_t]=Tt}function i(){var _e=this.comp.renderedFrame-this.offsetTime,tt=this.keyframes[0].t-this.offsetTime,j=this.keyframes[this.keyframes.length-1].t-this.offsetTime,st=this._caching.lastFrame;return st!==e&&(st<tt&&_e<tt||st>j&&_e>j)||(this._caching.lastIndex=st<_e?this._caching.lastIndex:0,this.interpolateShape(_e,this.pv,this._caching)),this._caching.lastFrame=_e,this.pv}function a(){this.paths=this.localShapeCollection}function o(_e,tt){if(_e._length!==tt._length||_e.c!==tt.c)return!1;var j,st=_e._length;for(j=0;j<st;j+=1)if(_e.v[j][0]!==tt.v[j][0]||_e.v[j][1]!==tt.v[j][1]||_e.o[j][0]!==tt.o[j][0]||_e.o[j][1]!==tt.o[j][1]||_e.i[j][0]!==tt.i[j][0]||_e.i[j][1]!==tt.i[j][1])return!1;return!0}function c(_e){o(this.v,_e)||(this.v=shapePool.clone(_e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var _e;this.kf?_e=this.pv:this.data.ks?_e=this.data.ks.k:_e=this.data.pt.k;var tt,j=this.effectsSequence.length;for(tt=0;tt<j;tt+=1)_e=this.effectsSequence[tt](_e);this.setVValue(_e),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function _(_e,tt,j){this.propType="shape",this.comp=_e.comp,this.container=_e,this.elem=_e,this.data=tt,this.k=!1,this.kf=!1,this._mdf=!1;var st=j===3?tt.pt.k:tt.ks.k;this.v=shapePool.clone(st),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function b(_e){this.effectsSequence.push(_e),this.container.addDynamicProperty(this)}_.prototype.interpolateShape=s,_.prototype.getValue=g,_.prototype.setVValue=c,_.prototype.addEffect=b;function $(_e,tt,j){this.propType="shape",this.comp=_e.comp,this.elem=_e,this.container=_e,this.offsetTime=_e.data.st,this.keyframes=j===3?tt.pt.k:tt.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var st=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,st),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[i.bind(this)]}$.prototype.getValue=g,$.prototype.interpolateShape=s,$.prototype.setVValue=c,$.prototype.addEffect=b;var et=function(){var _e=roundCorner;function tt(j,st){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=st.d,this.elem=j,this.comp=j.comp,this.frameId=-1,this.initDynamicPropertyContainer(j),this.p=PropertyFactory.getProp(j,st.p,1,0,this),this.s=PropertyFactory.getProp(j,st.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return tt.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var st=this.p.v[0],ut=this.p.v[1],ct=this.s.v[0]/2,gt=this.s.v[1]/2,mt=this.d!==3,_t=this.v;_t.v[0][0]=st,_t.v[0][1]=ut-gt,_t.v[1][0]=mt?st+ct:st-ct,_t.v[1][1]=ut,_t.v[2][0]=st,_t.v[2][1]=ut+gt,_t.v[3][0]=mt?st-ct:st+ct,_t.v[3][1]=ut,_t.i[0][0]=mt?st-ct*_e:st+ct*_e,_t.i[0][1]=ut-gt,_t.i[1][0]=mt?st+ct:st-ct,_t.i[1][1]=ut-gt*_e,_t.i[2][0]=mt?st+ct*_e:st-ct*_e,_t.i[2][1]=ut+gt,_t.i[3][0]=mt?st-ct:st+ct,_t.i[3][1]=ut+gt*_e,_t.o[0][0]=mt?st+ct*_e:st-ct*_e,_t.o[0][1]=ut-gt,_t.o[1][0]=mt?st+ct:st-ct,_t.o[1][1]=ut+gt*_e,_t.o[2][0]=mt?st-ct*_e:st+ct*_e,_t.o[2][1]=ut+gt,_t.o[3][0]=mt?st-ct:st+ct,_t.o[3][1]=ut-gt*_e}},extendPrototype([DynamicPropertyContainer],tt),tt}(),ot=function(){function _e(tt,j){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=tt,this.comp=tt.comp,this.data=j,this.frameId=-1,this.d=j.d,this.initDynamicPropertyContainer(tt),j.sy===1?(this.ir=PropertyFactory.getProp(tt,j.ir,0,0,this),this.is=PropertyFactory.getProp(tt,j.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(tt,j.pt,0,0,this),this.p=PropertyFactory.getProp(tt,j.p,1,0,this),this.r=PropertyFactory.getProp(tt,j.r,0,degToRads,this),this.or=PropertyFactory.getProp(tt,j.or,0,0,this),this.os=PropertyFactory.getProp(tt,j.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return _e.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var j=Math.floor(this.pt.v)*2,st=Math.PI*2/j,ut=!0,ct=this.or.v,gt=this.ir.v,mt=this.os.v,_t=this.is.v,kt=2*Math.PI*ct/(j*2),wt=2*Math.PI*gt/(j*2),Et,Tt,Lt,xt,pt=-Math.PI/2;pt+=this.r.v;var vt=this.data.d===3?-1:1;for(this.v._length=0,Et=0;Et<j;Et+=1){Tt=ut?ct:gt,Lt=ut?mt:_t,xt=ut?kt:wt;var lt=Tt*Math.cos(pt),ht=Tt*Math.sin(pt),yt=lt===0&&ht===0?0:ht/Math.sqrt(lt*lt+ht*ht),ft=lt===0&&ht===0?0:-lt/Math.sqrt(lt*lt+ht*ht);lt+=+this.p.v[0],ht+=+this.p.v[1],this.v.setTripleAt(lt,ht,lt-yt*xt*Lt*vt,ht-ft*xt*Lt*vt,lt+yt*xt*Lt*vt,ht+ft*xt*Lt*vt,Et,!0),ut=!ut,pt+=st*vt}},convertPolygonToPath:function(){var j=Math.floor(this.pt.v),st=Math.PI*2/j,ut=this.or.v,ct=this.os.v,gt=2*Math.PI*ut/(j*4),mt,_t=-Math.PI*.5,kt=this.data.d===3?-1:1;for(_t+=this.r.v,this.v._length=0,mt=0;mt<j;mt+=1){var wt=ut*Math.cos(_t),Et=ut*Math.sin(_t),Tt=wt===0&&Et===0?0:Et/Math.sqrt(wt*wt+Et*Et),Lt=wt===0&&Et===0?0:-wt/Math.sqrt(wt*wt+Et*Et);wt+=+this.p.v[0],Et+=+this.p.v[1],this.v.setTripleAt(wt,Et,wt-Tt*gt*ct*kt,Et-Lt*gt*ct*kt,wt+Tt*gt*ct*kt,Et+Lt*gt*ct*kt,mt,!0),_t+=st*kt}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],_e),_e}(),rt=function(){function _e(tt,j){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=tt,this.comp=tt.comp,this.frameId=-1,this.d=j.d,this.initDynamicPropertyContainer(tt),this.p=PropertyFactory.getProp(tt,j.p,1,0,this),this.s=PropertyFactory.getProp(tt,j.s,1,0,this),this.r=PropertyFactory.getProp(tt,j.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return _e.prototype={convertRectToPath:function(){var j=this.p.v[0],st=this.p.v[1],ut=this.s.v[0]/2,ct=this.s.v[1]/2,gt=bmMin(ut,ct,this.r.v),mt=gt*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(j+ut,st-ct+gt,j+ut,st-ct+gt,j+ut,st-ct+mt,0,!0),this.v.setTripleAt(j+ut,st+ct-gt,j+ut,st+ct-mt,j+ut,st+ct-gt,1,!0),gt!==0?(this.v.setTripleAt(j+ut-gt,st+ct,j+ut-gt,st+ct,j+ut-mt,st+ct,2,!0),this.v.setTripleAt(j-ut+gt,st+ct,j-ut+mt,st+ct,j-ut+gt,st+ct,3,!0),this.v.setTripleAt(j-ut,st+ct-gt,j-ut,st+ct-gt,j-ut,st+ct-mt,4,!0),this.v.setTripleAt(j-ut,st-ct+gt,j-ut,st-ct+mt,j-ut,st-ct+gt,5,!0),this.v.setTripleAt(j-ut+gt,st-ct,j-ut+gt,st-ct,j-ut+mt,st-ct,6,!0),this.v.setTripleAt(j+ut-gt,st-ct,j+ut-mt,st-ct,j+ut-gt,st-ct,7,!0)):(this.v.setTripleAt(j-ut,st+ct,j-ut+mt,st+ct,j-ut,st+ct,2),this.v.setTripleAt(j-ut,st-ct,j-ut,st-ct+mt,j-ut,st-ct,3))):(this.v.setTripleAt(j+ut,st-ct+gt,j+ut,st-ct+mt,j+ut,st-ct+gt,0,!0),gt!==0?(this.v.setTripleAt(j+ut-gt,st-ct,j+ut-gt,st-ct,j+ut-mt,st-ct,1,!0),this.v.setTripleAt(j-ut+gt,st-ct,j-ut+mt,st-ct,j-ut+gt,st-ct,2,!0),this.v.setTripleAt(j-ut,st-ct+gt,j-ut,st-ct+gt,j-ut,st-ct+mt,3,!0),this.v.setTripleAt(j-ut,st+ct-gt,j-ut,st+ct-mt,j-ut,st+ct-gt,4,!0),this.v.setTripleAt(j-ut+gt,st+ct,j-ut+gt,st+ct,j-ut+mt,st+ct,5,!0),this.v.setTripleAt(j+ut-gt,st+ct,j+ut-mt,st+ct,j+ut-gt,st+ct,6,!0),this.v.setTripleAt(j+ut,st+ct-gt,j+ut,st+ct-gt,j+ut,st+ct-mt,7,!0)):(this.v.setTripleAt(j-ut,st-ct,j-ut+mt,st-ct,j-ut,st-ct,1,!0),this.v.setTripleAt(j-ut,st+ct,j-ut,st+ct-mt,j-ut,st+ct,2,!0),this.v.setTripleAt(j+ut,st+ct,j+ut-mt,st+ct,j+ut,st+ct,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],_e),_e}();function at(_e,tt,j){var st;if(j===3||j===4){var ut=j===3?tt.pt:tt.ks,ct=ut.k;ct.length?st=new $(_e,tt,j):st=new _(_e,tt,j)}else j===5?st=new rt(_e,tt):j===6?st=new et(_e,tt):j===7&&(st=new ot(_e,tt));return st.k&&_e.addDynamicProperty(st),st}function it(){return _}function nt(){return $}var dt={};return dt.getShapeProp=at,dt.getConstructorFunction=it,dt.getKeyframedConstructorFunction=nt,dt}();/*!
42
42
  Transformation Matrix v2.0
43
43
  (c) Epistemex 2014-2015
44
44
  www.epistemex.com
45
45
  By Ken Fyrstenberg
46
46
  Contributions by leeoniya.
47
47
  License: MIT, header required.
48
- */var Matrix=function(){var e=Math.cos,s=Math.sin,i=Math.tan,a=Math.round;function o(){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 c(lt){if(lt===0)return this;var ht=e(lt),yt=s(lt);return this._t(ht,-yt,0,0,yt,ht,0,0,0,0,1,0,0,0,0,1)}function g(lt){if(lt===0)return this;var ht=e(lt),yt=s(lt);return this._t(1,0,0,0,0,ht,-yt,0,0,yt,ht,0,0,0,0,1)}function _(lt){if(lt===0)return this;var ht=e(lt),yt=s(lt);return this._t(ht,0,yt,0,0,1,0,0,-yt,0,ht,0,0,0,0,1)}function b(lt){if(lt===0)return this;var ht=e(lt),yt=s(lt);return this._t(ht,-yt,0,0,yt,ht,0,0,0,0,1,0,0,0,0,1)}function $(lt,ht){return this._t(1,ht,lt,1,0,0)}function et(lt,ht){return this.shear(i(lt),i(ht))}function ot(lt,ht){var yt=e(ht),ft=s(ht);return this._t(yt,ft,0,0,-ft,yt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(lt),1,0,0,0,0,1,0,0,0,0,1)._t(yt,-ft,0,0,ft,yt,0,0,0,0,1,0,0,0,0,1)}function rt(lt,ht,yt){return!yt&&yt!==0&&(yt=1),lt===1&&ht===1&&yt===1?this:this._t(lt,0,0,0,0,ht,0,0,0,0,yt,0,0,0,0,1)}function at(lt,ht,yt,ft,Ct,Et,bt,Ot,Lt,Pt,It,Dt,Rt,Vt,Gt,$t){return this.props[0]=lt,this.props[1]=ht,this.props[2]=yt,this.props[3]=ft,this.props[4]=Ct,this.props[5]=Et,this.props[6]=bt,this.props[7]=Ot,this.props[8]=Lt,this.props[9]=Pt,this.props[10]=It,this.props[11]=Dt,this.props[12]=Rt,this.props[13]=Vt,this.props[14]=Gt,this.props[15]=$t,this}function it(lt,ht,yt){return yt=yt||0,lt!==0||ht!==0||yt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,lt,ht,yt,1):this}function nt(lt,ht,yt,ft,Ct,Et,bt,Ot,Lt,Pt,It,Dt,Rt,Vt,Gt,$t){var Bt=this.props;if(lt===1&&ht===0&&yt===0&&ft===0&&Ct===0&&Et===1&&bt===0&&Ot===0&&Lt===0&&Pt===0&&It===1&&Dt===0)return Bt[12]=Bt[12]*lt+Bt[15]*Rt,Bt[13]=Bt[13]*Et+Bt[15]*Vt,Bt[14]=Bt[14]*It+Bt[15]*Gt,Bt[15]*=$t,this._identityCalculated=!1,this;var er=Bt[0],Kt=Bt[1],tr=Bt[2],Wt=Bt[3],Qt=Bt[4],Nt=Bt[5],Ft=Bt[6],qt=Bt[7],sr=Bt[8],rr=Bt[9],jt=Bt[10],zt=Bt[11],Zt=Bt[12],nr=Bt[13],lr=Bt[14],xr=Bt[15];return Bt[0]=er*lt+Kt*Ct+tr*Lt+Wt*Rt,Bt[1]=er*ht+Kt*Et+tr*Pt+Wt*Vt,Bt[2]=er*yt+Kt*bt+tr*It+Wt*Gt,Bt[3]=er*ft+Kt*Ot+tr*Dt+Wt*$t,Bt[4]=Qt*lt+Nt*Ct+Ft*Lt+qt*Rt,Bt[5]=Qt*ht+Nt*Et+Ft*Pt+qt*Vt,Bt[6]=Qt*yt+Nt*bt+Ft*It+qt*Gt,Bt[7]=Qt*ft+Nt*Ot+Ft*Dt+qt*$t,Bt[8]=sr*lt+rr*Ct+jt*Lt+zt*Rt,Bt[9]=sr*ht+rr*Et+jt*Pt+zt*Vt,Bt[10]=sr*yt+rr*bt+jt*It+zt*Gt,Bt[11]=sr*ft+rr*Ot+jt*Dt+zt*$t,Bt[12]=Zt*lt+nr*Ct+lr*Lt+xr*Rt,Bt[13]=Zt*ht+nr*Et+lr*Pt+xr*Vt,Bt[14]=Zt*yt+nr*bt+lr*It+xr*Gt,Bt[15]=Zt*ft+nr*Ot+lr*Dt+xr*$t,this._identityCalculated=!1,this}function dt(lt){var ht=lt.props;return this.transform(ht[0],ht[1],ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],ht[8],ht[9],ht[10],ht[11],ht[12],ht[13],ht[14],ht[15])}function _e(){return this._identityCalculated||(this._identity=!(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._identityCalculated=!0),this._identity}function tt(lt){for(var ht=0;ht<16;){if(lt.props[ht]!==this.props[ht])return!1;ht+=1}return!0}function j(lt){var ht;for(ht=0;ht<16;ht+=1)lt.props[ht]=this.props[ht];return lt}function st(lt){var ht;for(ht=0;ht<16;ht+=1)this.props[ht]=lt[ht]}function ut(lt,ht,yt){return{x:lt*this.props[0]+ht*this.props[4]+yt*this.props[8]+this.props[12],y:lt*this.props[1]+ht*this.props[5]+yt*this.props[9]+this.props[13],z:lt*this.props[2]+ht*this.props[6]+yt*this.props[10]+this.props[14]}}function ct(lt,ht,yt){return lt*this.props[0]+ht*this.props[4]+yt*this.props[8]+this.props[12]}function gt(lt,ht,yt){return lt*this.props[1]+ht*this.props[5]+yt*this.props[9]+this.props[13]}function mt(lt,ht,yt){return lt*this.props[2]+ht*this.props[6]+yt*this.props[10]+this.props[14]}function _t(){var lt=this.props[0]*this.props[5]-this.props[1]*this.props[4],ht=this.props[5]/lt,yt=-this.props[1]/lt,ft=-this.props[4]/lt,Ct=this.props[0]/lt,Et=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/lt,bt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/lt,Ot=new Matrix;return Ot.props[0]=ht,Ot.props[1]=yt,Ot.props[4]=ft,Ot.props[5]=Ct,Ot.props[12]=Et,Ot.props[13]=bt,Ot}function kt(lt){var ht=this.getInverseMatrix();return ht.applyToPointArray(lt[0],lt[1],lt[2]||0)}function wt(lt){var ht,yt=lt.length,ft=[];for(ht=0;ht<yt;ht+=1)ft[ht]=kt(lt[ht]);return ft}function St(lt,ht,yt){var ft=createTypedArray("float32",6);if(this.isIdentity())ft[0]=lt[0],ft[1]=lt[1],ft[2]=ht[0],ft[3]=ht[1],ft[4]=yt[0],ft[5]=yt[1];else{var Ct=this.props[0],Et=this.props[1],bt=this.props[4],Ot=this.props[5],Lt=this.props[12],Pt=this.props[13];ft[0]=lt[0]*Ct+lt[1]*bt+Lt,ft[1]=lt[0]*Et+lt[1]*Ot+Pt,ft[2]=ht[0]*Ct+ht[1]*bt+Lt,ft[3]=ht[0]*Et+ht[1]*Ot+Pt,ft[4]=yt[0]*Ct+yt[1]*bt+Lt,ft[5]=yt[0]*Et+yt[1]*Ot+Pt}return ft}function Tt(lt,ht,yt){var ft;return this.isIdentity()?ft=[lt,ht,yt]:ft=[lt*this.props[0]+ht*this.props[4]+yt*this.props[8]+this.props[12],lt*this.props[1]+ht*this.props[5]+yt*this.props[9]+this.props[13],lt*this.props[2]+ht*this.props[6]+yt*this.props[10]+this.props[14]],ft}function Mt(lt,ht){if(this.isIdentity())return lt+","+ht;var yt=this.props;return Math.round((lt*yt[0]+ht*yt[4]+yt[12])*100)/100+","+Math.round((lt*yt[1]+ht*yt[5]+yt[13])*100)/100}function xt(){for(var lt=0,ht=this.props,yt="matrix3d(",ft=1e4;lt<16;)yt+=a(ht[lt]*ft)/ft,yt+=lt===15?")":",",lt+=1;return yt}function pt(lt){var ht=1e4;return lt<1e-6&&lt>0||lt>-1e-6&&lt<0?a(lt*ht)/ht:lt}function vt(){var lt=this.props,ht=pt(lt[0]),yt=pt(lt[1]),ft=pt(lt[4]),Ct=pt(lt[5]),Et=pt(lt[12]),bt=pt(lt[13]);return"matrix("+ht+","+yt+","+ft+","+Ct+","+Et+","+bt+")"}return function(){this.reset=o,this.rotate=c,this.rotateX=g,this.rotateY=_,this.rotateZ=b,this.skew=et,this.skewFromAxis=ot,this.shear=$,this.scale=rt,this.setTransform=at,this.translate=it,this.transform=nt,this.multiply=dt,this.applyToPoint=ut,this.applyToX=ct,this.applyToY=gt,this.applyToZ=mt,this.applyToPointArray=Tt,this.applyToTriplePoints=St,this.applyToPointStringified=Mt,this.toCSS=xt,this.to2dCSS=vt,this.clone=j,this.cloneFromProps=st,this.equals=tt,this.inversePoints=wt,this.inversePoint=kt,this.getInverseMatrix=_t,this._t=this.transform,this.isIdentity=_e,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_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(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,s){e==="expressions"&&setExpressionsPlugin(s)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default: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";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var s=queryString.split("&"),i=0;i<s.length;i+=1){var a=s[i].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}var queryString="";{var 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{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},s={};e.registerModifier=i,e.getModifier=a;function i(o,c){s[o]||(s[o]=c)}function a(o,c,g){return new s[o](c,g)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var s={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,s){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,s),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);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,s){this.s=PropertyFactory.getProp(e,s.s,0,.01,this),this.e=PropertyFactory.getProp(e,s.e,0,.01,this),this.o=PropertyFactory.getProp(e,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.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,s,i,a,o){var c=[];s<=1?c.push({s:e,e:s}):e>=1?c.push({s:e-1,e:s-1}):(c.push({s:e,e:1}),c.push({s:0,e:s-1}));var g=[],_,b=c.length,$;for(_=0;_<b;_+=1)if($=c[_],!($.e*o<a||$.s*o>a+i)){var et,ot;$.s*o<=a?et=0:et=($.s*o-a)/i,$.e*o>=a+i?ot=1:ot=($.e*o-a)/i,g.push([et,ot])}return g.length||g.push([0,0]),g},TrimModifier.prototype.releasePathsData=function(e){var s,i=e.length;for(s=0;s<i;s+=1)segmentsLengthPool.release(e[s]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var s,i;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),this.s.v>1?s=1+a:this.s.v<0?s=0+a:s=this.s.v+a,this.e.v>1?i=1+a:this.e.v<0?i=0+a:i=this.e.v+a,s>i){var o=s;s=i,i=o}s=Math.round(s*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=s,this.eValue=i}else s=this.sValue,i=this.eValue;var c,g,_=this.shapes.length,b,$,et,ot,rt,at=0;if(i===s)for(g=0;g<_;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(i===1&&s===0||i===0&&s===1){if(this._mdf)for(g=0;g<_;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var it=[],nt,dt;for(g=0;g<_;g+=1)if(nt=this.shapes[g],!nt.shape._mdf&&!this._mdf&&!e&&this.m!==2)nt.shape.paths=nt.localShapeCollection;else{if(c=nt.shape.paths,$=c._length,rt=0,!nt.shape._mdf&&nt.pathsData.length)rt=nt.totalShapeLength;else{for(et=this.releasePathsData(nt.pathsData),b=0;b<$;b+=1)ot=bez.getSegmentsLength(c.shapes[b]),et.push(ot),rt+=ot.totalLength;nt.totalShapeLength=rt,nt.pathsData=et}at+=rt,nt.shape._mdf=!0}var _e=s,tt=i,j=0,st;for(g=_-1;g>=0;g-=1)if(nt=this.shapes[g],nt.shape._mdf){for(dt=nt.localShapeCollection,dt.releaseShapes(),this.m===2&&_>1?(st=this.calculateShapeEdges(s,i,nt.totalShapeLength,j,at),j+=nt.totalShapeLength):st=[[_e,tt]],$=st.length,b=0;b<$;b+=1){_e=st[b][0],tt=st[b][1],it.length=0,tt<=1?it.push({s:nt.totalShapeLength*_e,e:nt.totalShapeLength*tt}):_e>=1?it.push({s:nt.totalShapeLength*(_e-1),e:nt.totalShapeLength*(tt-1)}):(it.push({s:nt.totalShapeLength*_e,e:nt.totalShapeLength}),it.push({s:0,e:nt.totalShapeLength*(tt-1)}));var ut=this.addShapes(nt,it[0]);if(it[0].s!==it[0].e){if(it.length>1){var ct=nt.shape.paths.shapes[nt.shape.paths._length-1];if(ct.c){var gt=ut.pop();this.addPaths(ut,dt),ut=this.addShapes(nt,it[1],gt)}else this.addPaths(ut,dt),ut=this.addShapes(nt,it[1])}this.addPaths(ut,dt)}}nt.shape.paths=dt}}},TrimModifier.prototype.addPaths=function(e,s){var i,a=e.length;for(i=0;i<a;i+=1)s.addShape(e[i])},TrimModifier.prototype.addSegment=function(e,s,i,a,o,c,g){o.setXYAt(s[0],s[1],"o",c),o.setXYAt(i[0],i[1],"i",c+1),g&&o.setXYAt(e[0],e[1],"v",c),o.setXYAt(a[0],a[1],"v",c+1)},TrimModifier.prototype.addSegmentFromArray=function(e,s,i,a){s.setXYAt(e[1],e[5],"o",i),s.setXYAt(e[2],e[6],"i",i+1),a&&s.setXYAt(e[0],e[4],"v",i),s.setXYAt(e[3],e[7],"v",i+1)},TrimModifier.prototype.addShapes=function(e,s,i){var a=e.pathsData,o=e.shape.paths.shapes,c,g=e.shape.paths._length,_,b,$=0,et,ot,rt,at,it=[],nt,dt=!0;for(i?(ot=i._length,nt=i._length):(i=shapePool.newElement(),ot=0,nt=0),it.push(i),c=0;c<g;c+=1){for(rt=a[c].lengths,i.c=o[c].c,b=o[c].c?rt.length:rt.length+1,_=1;_<b;_+=1)if(et=rt[_-1],$+et.addedLength<s.s)$+=et.addedLength,i.c=!1;else if($>s.e){i.c=!1;break}else s.s<=$&&s.e>=$+et.addedLength?(this.addSegment(o[c].v[_-1],o[c].o[_-1],o[c].i[_],o[c].v[_],i,ot,dt),dt=!1):(at=bez.getNewSegment(o[c].v[_-1],o[c].v[_],o[c].o[_-1],o[c].i[_],(s.s-$)/et.addedLength,(s.e-$)/et.addedLength,rt[_-1]),this.addSegmentFromArray(at,i,ot,dt),dt=!1,i.c=!1),$+=et.addedLength,ot+=1;if(o[c].c&&rt.length){if(et=rt[_-1],$<=s.e){var _e=rt[_-1].addedLength;s.s<=$&&s.e>=$+_e?(this.addSegment(o[c].v[_-1],o[c].o[_-1],o[c].i[0],o[c].v[0],i,ot,dt),dt=!1):(at=bez.getNewSegment(o[c].v[_-1],o[c].v[0],o[c].o[_-1],o[c].i[0],(s.s-$)/_e,(s.e-$)/_e,rt[_-1]),this.addSegmentFromArray(at,i,ot,dt),dt=!1,i.c=!1)}else i.c=!1;$+=et.addedLength,ot+=1}if(i._length&&(i.setXYAt(i.v[nt][0],i.v[nt][1],"i",nt),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),$>s.e)break;c<g-1&&(i=shapePool.newElement(),dt=!0,it.push(i),ot=0)}return it};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,s){var i=s/100,a=[0,0],o=e._length,c=0;for(c=0;c<o;c+=1)a[0]+=e.v[c][0],a[1]+=e.v[c][1];a[0]/=o,a[1]/=o;var g=shapePool.newElement();g.c=e.c;var _,b,$,et,ot,rt;for(c=0;c<o;c+=1)_=e.v[c][0]+(a[0]-e.v[c][0])*i,b=e.v[c][1]+(a[1]-e.v[c][1])*i,$=e.o[c][0]+(a[0]-e.o[c][0])*-i,et=e.o[c][1]+(a[1]-e.o[c][1])*-i,ot=e.i[c][0]+(a[0]-e.i[c][0])*-i,rt=e.i[c][1]+(a[1]-e.i[c][1])*-i,g.setTripleAt(_,b,$,et,ot,rt,c);return g},PuckerAndBloatModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.amount.v;if(g!==0){var _,b;for(i=0;i<a;i+=1){if(_=this.shapes[i],b=_.localShapeCollection,!(!_.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),_.shape._mdf=!0,s=_.shape.paths.shapes,c=_.shape.paths._length,o=0;o<c;o+=1)b.addShape(this.processPath(s[o],g));_.shape.paths=_.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function s(b){var $=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||$,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.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?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var $;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 et,ot;if($=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(et=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/$,0),ot=this.p.getValueAtTime(this.p.keyframes[0].t/$,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(et=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/$,0),ot=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/$,0)):(et=this.p.pv,ot=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/$,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){et=[],ot=[];var rt=this.px,at=this.py;rt._caching.lastFrame+rt.offsetTime<=rt.keyframes[0].t?(et[0]=rt.getValueAtTime((rt.keyframes[0].t+.01)/$,0),et[1]=at.getValueAtTime((at.keyframes[0].t+.01)/$,0),ot[0]=rt.getValueAtTime(rt.keyframes[0].t/$,0),ot[1]=at.getValueAtTime(at.keyframes[0].t/$,0)):rt._caching.lastFrame+rt.offsetTime>=rt.keyframes[rt.keyframes.length-1].t?(et[0]=rt.getValueAtTime(rt.keyframes[rt.keyframes.length-1].t/$,0),et[1]=at.getValueAtTime(at.keyframes[at.keyframes.length-1].t/$,0),ot[0]=rt.getValueAtTime((rt.keyframes[rt.keyframes.length-1].t-.01)/$,0),ot[1]=at.getValueAtTime((at.keyframes[at.keyframes.length-1].t-.01)/$,0)):(et=[rt.pv,at.pv],ot[0]=rt.getValueAtTime((rt._caching.lastFrame+rt.offsetTime-.01)/$,rt.offsetTime),ot[1]=at.getValueAtTime((at._caching.lastFrame+at.offsetTime-.01)/$,at.offsetTime))}else ot=e,et=ot;this.v.rotate(-Math.atan2(et[1]-ot[1],et[0]-ot[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}}function a(){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;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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)}function o(){}function c(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,$,et){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=$,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(et||b),$.p&&$.p.s?(this.px=PropertyFactory.getProp(b,$.p.x,0,0,this),this.py=PropertyFactory.getProp(b,$.p.y,0,0,this),$.p.z&&(this.pz=PropertyFactory.getProp(b,$.p.z,0,0,this))):this.p=PropertyFactory.getProp(b,$.p||{k:[0,0,0]},1,0,this),$.rx){if(this.rx=PropertyFactory.getProp(b,$.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(b,$.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(b,$.rz,0,degToRads,this),$.or.k[0].ti){var ot,rt=$.or.k.length;for(ot=0;ot<rt;ot+=1)$.or.k[ot].to=null,$.or.k[ot].ti=null}this.or=PropertyFactory.getProp(b,$.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(b,$.r||{k:0},0,degToRads,this);$.sk&&(this.sk=PropertyFactory.getProp(b,$.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(b,$.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(b,$.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(b,$.s||{k:[100,100,100]},1,.01,this),$.o?this.o=PropertyFactory.getProp(b,$.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:s,getValue:i,precalculateMatrix:a,autoOrient:o},extendPrototype([DynamicPropertyContainer],g),g.prototype.addDynamicProperty=c,g.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function _(b,$,et){return new g(b,$,et)}return{getTransformProperty:_}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,s.c,0,null,this),this.o=PropertyFactory.getProp(e,s.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,s.tr,this),this.so=PropertyFactory.getProp(e,s.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,s.tr.eo,0,.01,this),this.data=s,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,s,i,a,o,c){var g=c?-1:1,_=a.s.v[0]+(1-a.s.v[0])*(1-o),b=a.s.v[1]+(1-a.s.v[1])*(1-o);e.translate(a.p.v[0]*g*o,a.p.v[1]*g*o,a.p.v[2]),s.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),s.rotate(-a.r.v*g*o),s.translate(a.a.v[0],a.a.v[1],a.a.v[2]),i.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),i.scale(c?1/_:_,c?1/b:b),i.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,s,i,a){for(this.elem=e,this.arr=s,this.pos=i,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,s[i]);i>0;)i-=1,this._elements.unshift(s[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s]._processed=!1,e[s].ty==="gr"&&this.resetElements(e[s].it)},RepeaterModifier.prototype.cloneElements=function(e){var s=JSON.parse(JSON.stringify(e));return this.resetElements(s),s},RepeaterModifier.prototype.changeGroupRender=function(e,s){var i,a=e.length;for(i=0;i<a;i+=1)e[i]._render=s,e[i].ty==="gr"&&this.changeGroupRender(e[i].it,s)},RepeaterModifier.prototype.processShapes=function(e){var s,i,a,o,c,g=!1;if(this._mdf||e){var _=Math.ceil(this.c.v);if(this._groups.length<_){for(;this._groups.length<_;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.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,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}c=0;var $;for(a=0;a<=this._groups.length-1;a+=1){if($=c<_,this._groups[a]._render=$,this.changeGroupRender(this._groups[a].it,$),!$){var et=this.elemsData[a].it,ot=et[et.length-1];ot.transform.op.v!==0?(ot.transform.op._mdf=!0,ot.transform.op.v=0):ot.transform.op._mdf=!1}c+=1}this._currentCopies=_;var rt=this.o.v,at=rt%1,it=rt>0?Math.floor(rt):Math.ceil(rt),nt=this.pMatrix.props,dt=this.rMatrix.props,_e=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var tt=0;if(rt>0){for(;tt<it;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),tt+=1;at&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,at,!1),tt+=at)}else if(rt<0){for(;tt>it;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),tt-=1;at&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-at,!0),tt-=at)}a=this.data.m===1?0:this._currentCopies-1,o=this.data.m===1?1:-1,c=this._currentCopies;for(var j,st;c;){if(s=this.elemsData[a].it,i=s[s.length-1].transform.mProps.v.props,st=i.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),tt!==0){for((a!==0&&o===1||a!==this._currentCopies-1&&o===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],dt[8],dt[9],dt[10],dt[11],dt[12],dt[13],dt[14],dt[15]),this.matrix.transform(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5],_e[6],_e[7],_e[8],_e[9],_e[10],_e[11],_e[12],_e[13],_e[14],_e[15]),this.matrix.transform(nt[0],nt[1],nt[2],nt[3],nt[4],nt[5],nt[6],nt[7],nt[8],nt[9],nt[10],nt[11],nt[12],nt[13],nt[14],nt[15]),j=0;j<st;j+=1)i[j]=this.matrix.props[j];this.matrix.reset()}else for(this.matrix.reset(),j=0;j<st;j+=1)i[j]=this.matrix.props[j];tt+=1,c-=1,a+=o}}else for(c=this._currentCopies,a=0,o=1;c;)s=this.elemsData[a].it,i=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,c-=1,a+=o;return g},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,s){var i=shapePool.newElement();i.c=e.c;var a,o=e._length,c,g,_,b,$,et,ot=0,rt,at,it,nt,dt,_e;for(a=0;a<o;a+=1)c=e.v[a],_=e.o[a],g=e.i[a],c[0]===_[0]&&c[1]===_[1]&&c[0]===g[0]&&c[1]===g[1]?(a===0||a===o-1)&&!e.c?(i.setTripleAt(c[0],c[1],_[0],_[1],g[0],g[1],ot),ot+=1):(a===0?b=e.v[o-1]:b=e.v[a-1],$=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),et=$?Math.min($/2,s)/$:0,dt=c[0]+(b[0]-c[0])*et,rt=dt,_e=c[1]-(c[1]-b[1])*et,at=_e,it=rt-(rt-c[0])*roundCorner,nt=at-(at-c[1])*roundCorner,i.setTripleAt(rt,at,it,nt,dt,_e,ot),ot+=1,a===o-1?b=e.v[0]:b=e.v[a+1],$=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),et=$?Math.min($/2,s)/$:0,it=c[0]+(b[0]-c[0])*et,rt=it,nt=c[1]+(b[1]-c[1])*et,at=nt,dt=rt-(rt-c[0])*roundCorner,_e=at-(at-c[1])*roundCorner,i.setTripleAt(rt,at,it,nt,dt,_e,ot),ot+=1):(i.setTripleAt(e.v[a][0],e.v[a][1],e.o[a][0],e.o[a][1],e.i[a][0],e.i[a][1],ot),ot+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.rd.v;if(g!==0){var _,b;for(i=0;i<a;i+=1){if(_=this.shapes[i],b=_.localShapeCollection,!(!_.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),_.shape._mdf=!0,s=_.shape.paths.shapes,c=_.shape.paths._length,o=0;o<c;o+=1)b.addShape(this.processPath(s[o],g));_.shape.paths=_.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,s){return Math.abs(e-s)*1e5<=Math.min(Math.abs(e),Math.abs(s))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,s,i){return e*(1-i)+s*i}function lerpPoint(e,s,i){return[lerp(e[0],s[0],i),lerp(e[1],s[1],i)]}function quadRoots(e,s,i){if(e===0)return[];var a=s*s-4*e*i;if(a<0)return[];var o=-s/(2*e);if(a===0)return[o];var c=Math.sqrt(a)/(2*e);return[o-c,o+c]}function polynomialCoefficients(e,s,i,a){return[-e+3*s-3*i+a,3*e-6*s+3*i,-3*e+3*s,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,s,i,a,o){o&&pointEqual(e,s)&&(s=lerpPoint(e,a,1/3)),o&&pointEqual(i,a)&&(i=lerpPoint(e,a,2/3));var c=polynomialCoefficients(e[0],s[0],i[0],a[0]),g=polynomialCoefficients(e[1],s[1],i[1],a[1]);this.a=[c[0],g[0]],this.b=[c[1],g[1]],this.c=[c[2],g[2]],this.d=[c[3],g[3]],this.points=[e,s,i,a]}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 s=this.derivative(e);return Math.atan2(s[1],s[0])},PolynomialBezier.prototype.normalAngle=function(e){var s=this.derivative(e);return Math.atan2(s[0],s[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,i=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(i<0)return[];var a=Math.sqrt(i);return floatZero(a)?a>0&&a<1?[s]:[]:[s-a,s+a].filter(function(o){return o>0&&o<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 s=lerpPoint(this.points[0],this.points[1],e),i=lerpPoint(this.points[1],this.points[2],e),a=lerpPoint(this.points[2],this.points[3],e),o=lerpPoint(s,i,e),c=lerpPoint(i,a,e),g=lerpPoint(o,c,e);return[new PolynomialBezier(this.points[0],s,o,g,!0),new PolynomialBezier(g,c,a,this.points[3],!0)]};function extrema(e,s){var i=e.points[0][s],a=e.points[e.points.length-1][s];if(i>a){var o=a;a=i,i=o}for(var c=quadRoots(3*e.a[s],2*e.b[s],e.c[s]),g=0;g<c.length;g+=1)if(c[g]>0&&c[g]<1){var _=e.point(c[g])[s];_<i?i=_:_>a&&(a=_)}return{min:i,max:a}}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}};function intersectData(e,s,i){var a=e.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:e,t:(s+i)/2,t1:s,t2:i}}function splitData(e){var s=e.bez.split(.5);return[intersectData(s[0],e.t1,e.t),intersectData(s[1],e.t,e.t2)]}function boxIntersect(e,s){return Math.abs(e.cx-s.cx)*2<e.width+s.width&&Math.abs(e.cy-s.cy)*2<e.height+s.height}function intersectsImpl(e,s,i,a,o,c){if(boxIntersect(e,s)){if(i>=c||e.width<=a&&e.height<=a&&s.width<=a&&s.height<=a){o.push([e.t,s.t]);return}var g=splitData(e),_=splitData(s);intersectsImpl(g[0],_[0],i+1,a,o,c),intersectsImpl(g[0],_[1],i+1,a,o,c),intersectsImpl(g[1],_[0],i+1,a,o,c),intersectsImpl(g[1],_[1],i+1,a,o,c)}}PolynomialBezier.prototype.intersections=function(e,s,i){s===void 0&&(s=2),i===void 0&&(i=7);var a=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,s,a,i),a},PolynomialBezier.shapeSegment=function(e,s){var i=(s+1)%e.length();return new PolynomialBezier(e.v[s],e.o[s],e.i[i],e.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(e,s){var i=(s+1)%e.length();return new PolynomialBezier(e.v[i],e.i[i],e.o[s],e.v[s],!0)};function crossProduct(e,s){return[e[1]*s[2]-e[2]*s[1],e[2]*s[0]-e[0]*s[2],e[0]*s[1]-e[1]*s[0]]}function lineIntersection(e,s,i,a){var o=[e[0],e[1],1],c=[s[0],s[1],1],g=[i[0],i[1],1],_=[a[0],a[1],1],b=crossProduct(crossProduct(o,c),crossProduct(g,_));return floatZero(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function polarOffset(e,s,i){return[e[0]+Math.cos(s)*i,e[1]-Math.sin(s)*i]}function pointDistance(e,s){return Math.hypot(e[0]-s[0],e[1]-s[1])}function pointEqual(e,s){return floatEqual(e[0],s[0])&&floatEqual(e[1],s[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,s.s,0,null,this),this.frequency=PropertyFactory.getProp(e,s.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,s,i,a,o,c,g){var _=i-Math.PI/2,b=i+Math.PI/2,$=s[0]+Math.cos(i)*a*o,et=s[1]-Math.sin(i)*a*o;e.setTripleAt($,et,$+Math.cos(_)*c,et-Math.sin(_)*c,$+Math.cos(b)*g,et-Math.sin(b)*g,e.length())}function getPerpendicularVector(e,s){var i=[s[0]-e[0],s[1]-e[1]],a=-Math.PI*.5,o=[Math.cos(a)*i[0]-Math.sin(a)*i[1],Math.sin(a)*i[0]+Math.cos(a)*i[1]];return o}function getProjectingAngle(e,s){var i=s===0?e.length()-1:s-1,a=(s+1)%e.length(),o=e.v[i],c=e.v[a],g=getPerpendicularVector(o,c);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function zigZagCorner(e,s,i,a,o,c,g){var _=getProjectingAngle(s,i),b=s.v[i%s._length],$=s.v[i===0?s._length-1:i-1],et=s.v[(i+1)%s._length],ot=c===2?Math.sqrt(Math.pow(b[0]-$[0],2)+Math.pow(b[1]-$[1],2)):0,rt=c===2?Math.sqrt(Math.pow(b[0]-et[0],2)+Math.pow(b[1]-et[1],2)):0;setPoint(e,s.v[i%s._length],_,g,a,rt/((o+1)*2),ot/((o+1)*2))}function zigZagSegment(e,s,i,a,o,c){for(var g=0;g<a;g+=1){var _=(g+1)/(a+1),b=o===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,$=s.normalAngle(_),et=s.point(_);setPoint(e,et,$,c,i,b/((a+1)*2),b/((a+1)*2)),c=-c}return c}ZigZagModifier.prototype.processPath=function(e,s,i,a){var o=e._length,c=shapePool.newElement();if(c.c=e.c,e.c||(o-=1),o===0)return c;var g=-1,_=PolynomialBezier.shapeSegment(e,0);zigZagCorner(c,e,0,s,i,a,g);for(var b=0;b<o;b+=1)g=zigZagSegment(c,_,s,i,a,-g),b===o-1&&!e.c?_=null:_=PolynomialBezier.shapeSegment(e,(b+1)%o),zigZagCorner(c,e,b+1,s,i,a,g);return c},ZigZagModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.amplitude.v,_=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var $,et;for(i=0;i<a;i+=1){if($=this.shapes[i],et=$.localShapeCollection,!(!$.shape._mdf&&!this._mdf&&!e))for(et.releaseShapes(),$.shape._mdf=!0,s=$.shape.paths.shapes,c=$.shape.paths._length,o=0;o<c;o+=1)et.addShape(this.processPath(s[o],g,_,b));$.shape.paths=$.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,s,i){var a=Math.atan2(s[0]-e[0],s[1]-e[1]);return[polarOffset(e,a,i),polarOffset(s,a,i)]}function offsetSegment(e,s){var i,a,o,c,g,_,b;b=linearOffset(e.points[0],e.points[1],s),i=b[0],a=b[1],b=linearOffset(e.points[1],e.points[2],s),o=b[0],c=b[1],b=linearOffset(e.points[2],e.points[3],s),g=b[0],_=b[1];var $=lineIntersection(i,a,o,c);$===null&&($=a);var et=lineIntersection(g,_,o,c);return et===null&&(et=g),new PolynomialBezier(i,$,et,_)}function joinLines(e,s,i,a,o){var c=s.points[3],g=i.points[0];if(a===3||pointEqual(c,g))return c;if(a===2){var _=-s.tangentAngle(1),b=-i.tangentAngle(0)+Math.PI,$=lineIntersection(c,polarOffset(c,_+Math.PI/2,100),g,polarOffset(g,_+Math.PI/2,100)),et=$?pointDistance($,c):pointDistance(c,g)/2,ot=polarOffset(c,_,2*et*roundCorner);return e.setXYAt(ot[0],ot[1],"o",e.length()-1),ot=polarOffset(g,b,2*et*roundCorner),e.setTripleAt(g[0],g[1],g[0],g[1],ot[0],ot[1],e.length()),g}var rt=pointEqual(c,s.points[2])?s.points[0]:s.points[2],at=pointEqual(g,i.points[1])?i.points[3]:i.points[1],it=lineIntersection(rt,c,g,at);return it&&pointDistance(it,c)<o?(e.setTripleAt(it[0],it[1],it[0],it[1],it[0],it[1],e.length()),it):c}function getIntersection(e,s){var i=e.intersections(s);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(e,s){var i=e.slice(),a=s.slice(),o=getIntersection(e[e.length-1],s[0]);return o&&(i[e.length-1]=e[e.length-1].split(o[0])[0],a[0]=s[0].split(o[1])[1]),e.length>1&&s.length>1&&(o=getIntersection(e[0],s[s.length-1]),o)?[[e[0].split(o[0])[0]],[s[s.length-1].split(o[1])[1]]]:[i,a]}function pruneIntersections(e){for(var s,i=1;i<e.length;i+=1)s=pruneSegmentIntersection(e[i-1],e[i]),e[i-1]=s[0],e[i]=s[1];return e.length>1&&(s=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=s[0],e[0]=s[1]),e}function offsetSegmentSplit(e,s){var i=e.inflectionPoints(),a,o,c,g;if(i.length===0)return[offsetSegment(e,s)];if(i.length===1||floatEqual(i[1],1))return c=e.split(i[0]),a=c[0],o=c[1],[offsetSegment(a,s),offsetSegment(o,s)];c=e.split(i[0]),a=c[0];var _=(i[1]-i[0])/(1-i[0]);return c=c[1].split(_),g=c[0],o=c[1],[offsetSegment(a,s),offsetSegment(g,s),offsetSegment(o,s)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,s.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,s,i,a){var o=shapePool.newElement();o.c=e.c;var c=e.length();e.c||(c-=1);var g,_,b,$=[];for(g=0;g<c;g+=1)b=PolynomialBezier.shapeSegment(e,g),$.push(offsetSegmentSplit(b,s));if(!e.c)for(g=c-1;g>=0;g-=1)b=PolynomialBezier.shapeSegmentInverted(e,g),$.push(offsetSegmentSplit(b,s));$=pruneIntersections($);var et=null,ot=null;for(g=0;g<$.length;g+=1){var rt=$[g];for(ot&&(et=joinLines(o,ot,rt[0],i,a)),ot=rt[rt.length-1],_=0;_<rt.length;_+=1)b=rt[_],et&&pointEqual(b.points[0],et)?o.setXYAt(b.points[1][0],b.points[1][1],"o",o.length()-1):o.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],o.length()),o.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],o.length()),et=b.points[3]}return $.length&&joinLines(o,ot,$[0][0],i,a),o},OffsetPathModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.amount.v,_=this.miterLimit.v,b=this.lineJoin;if(g!==0){var $,et;for(i=0;i<a;i+=1){if($=this.shapes[i],et=$.localShapeCollection,!(!$.shape._mdf&&!this._mdf&&!e))for(et.releaseShapes(),$.shape._mdf=!0,s=$.shape.paths.shapes,c=$.shape.paths._length,o=0;o<c;o+=1)et.addShape(this.processPath(s[o],g,b,_));$.shape.paths=$.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var s=e.fStyle?e.fStyle.split(" "):[],i="normal",a="normal",o=s.length,c,g=0;g<o;g+=1)switch(c=s[g].toLowerCase(),c){case"italic":a="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break}return{style:a,weight:e.fWeight||i}}var FontManager=function(){var e=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.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 a=127988,o=917631,c=917601,g=917626,_=65039,b=8205,$=127462,et=127487,ot=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function rt(pt){var vt=pt.split(","),lt,ht=vt.length,yt=[];for(lt=0;lt<ht;lt+=1)vt[lt]!=="sans-serif"&&vt[lt]!=="monospace"&&yt.push(vt[lt]);return yt.join(",")}function at(pt,vt){var lt=createTag("span");lt.setAttribute("aria-hidden",!0),lt.style.fontFamily=vt;var ht=createTag("span");ht.innerText="giItT1WQy@!-/#",lt.style.position="absolute",lt.style.left="-10000px",lt.style.top="-10000px",lt.style.fontSize="300px",lt.style.fontVariant="normal",lt.style.fontStyle="normal",lt.style.fontWeight="normal",lt.style.letterSpacing="0",lt.appendChild(ht),document.body.appendChild(lt);var yt=ht.offsetWidth;return ht.style.fontFamily=rt(pt)+", "+vt,{node:ht,w:yt,parent:lt}}function it(){var pt,vt=this.fonts.length,lt,ht,yt=vt;for(pt=0;pt<vt;pt+=1)this.fonts[pt].loaded?yt-=1:this.fonts[pt].fOrigin==="n"||this.fonts[pt].origin===0?this.fonts[pt].loaded=!0:(lt=this.fonts[pt].monoCase.node,ht=this.fonts[pt].monoCase.w,lt.offsetWidth!==ht?(yt-=1,this.fonts[pt].loaded=!0):(lt=this.fonts[pt].sansCase.node,ht=this.fonts[pt].sansCase.w,lt.offsetWidth!==ht&&(yt-=1,this.fonts[pt].loaded=!0)),this.fonts[pt].loaded&&(this.fonts[pt].sansCase.parent.parentNode.removeChild(this.fonts[pt].sansCase.parent),this.fonts[pt].monoCase.parent.parentNode.removeChild(this.fonts[pt].monoCase.parent)));yt!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function nt(pt,vt){var lt=document.body&&vt?"svg":"canvas",ht,yt=getFontProperties(pt);if(lt==="svg"){var ft=createNS("text");ft.style.fontSize="100px",ft.setAttribute("font-family",pt.fFamily),ft.setAttribute("font-style",yt.style),ft.setAttribute("font-weight",yt.weight),ft.textContent="1",pt.fClass?(ft.style.fontFamily="inherit",ft.setAttribute("class",pt.fClass)):ft.style.fontFamily=pt.fFamily,vt.appendChild(ft),ht=ft}else{var Ct=new OffscreenCanvas(500,500).getContext("2d");Ct.font=yt.style+" "+yt.weight+" 100px "+pt.fFamily,ht=Ct}function Et(bt){return lt==="svg"?(ht.textContent=bt,ht.getComputedTextLength()):ht.measureText(bt).width}return{measureText:Et}}function dt(pt,vt){if(!pt){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=pt.list;return}if(!document.body){this.isLoaded=!0,pt.list.forEach(function(It){It.helper=nt(It),It.cache={}}),this.fonts=pt.list;return}var lt=pt.list,ht,yt=lt.length,ft=yt;for(ht=0;ht<yt;ht+=1){var Ct=!0,Et,bt;if(lt[ht].loaded=!1,lt[ht].monoCase=at(lt[ht].fFamily,"monospace"),lt[ht].sansCase=at(lt[ht].fFamily,"sans-serif"),!lt[ht].fPath)lt[ht].loaded=!0,ft-=1;else if(lt[ht].fOrigin==="p"||lt[ht].origin===3){if(Et=document.querySelectorAll('style[f-forigin="p"][f-family="'+lt[ht].fFamily+'"], style[f-origin="3"][f-family="'+lt[ht].fFamily+'"]'),Et.length>0&&(Ct=!1),Ct){var Ot=createTag("style");Ot.setAttribute("f-forigin",lt[ht].fOrigin),Ot.setAttribute("f-origin",lt[ht].origin),Ot.setAttribute("f-family",lt[ht].fFamily),Ot.type="text/css",Ot.innerText="@font-face {font-family: "+lt[ht].fFamily+"; font-style: normal; src: url('"+lt[ht].fPath+"');}",vt.appendChild(Ot)}}else if(lt[ht].fOrigin==="g"||lt[ht].origin===1){for(Et=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),bt=0;bt<Et.length;bt+=1)Et[bt].href.indexOf(lt[ht].fPath)!==-1&&(Ct=!1);if(Ct){var Lt=createTag("link");Lt.setAttribute("f-forigin",lt[ht].fOrigin),Lt.setAttribute("f-origin",lt[ht].origin),Lt.type="text/css",Lt.rel="stylesheet",Lt.href=lt[ht].fPath,document.body.appendChild(Lt)}}else if(lt[ht].fOrigin==="t"||lt[ht].origin===2){for(Et=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),bt=0;bt<Et.length;bt+=1)lt[ht].fPath===Et[bt].src&&(Ct=!1);if(Ct){var Pt=createTag("link");Pt.setAttribute("f-forigin",lt[ht].fOrigin),Pt.setAttribute("f-origin",lt[ht].origin),Pt.setAttribute("rel","stylesheet"),Pt.setAttribute("href",lt[ht].fPath),vt.appendChild(Pt)}}lt[ht].helper=nt(lt[ht],vt),lt[ht].cache={},this.fonts.push(lt[ht])}ft===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function _e(pt){if(pt){this.chars||(this.chars=[]);var vt,lt=pt.length,ht,yt=this.chars.length,ft;for(vt=0;vt<lt;vt+=1){for(ht=0,ft=!1;ht<yt;)this.chars[ht].style===pt[vt].style&&this.chars[ht].fFamily===pt[vt].fFamily&&this.chars[ht].ch===pt[vt].ch&&(ft=!0),ht+=1;ft||(this.chars.push(pt[vt]),yt+=1)}}}function tt(pt,vt,lt){for(var ht=0,yt=this.chars.length;ht<yt;){if(this.chars[ht].ch===pt&&this.chars[ht].style===vt&&this.chars[ht].fFamily===lt)return this.chars[ht];ht+=1}return(typeof pt=="string"&&pt.charCodeAt(0)!==13||!pt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",pt,vt,lt)),s}function j(pt,vt,lt){var ht=this.getFontByName(vt),yt=pt;if(!ht.cache[yt]){var ft=ht.helper;if(pt===" "){var Ct=ft.measureText("|"+pt+"|"),Et=ft.measureText("||");ht.cache[yt]=(Ct-Et)/100}else ht.cache[yt]=ft.measureText(pt)/100}return ht.cache[yt]*lt}function st(pt){for(var vt=0,lt=this.fonts.length;vt<lt;){if(this.fonts[vt].fName===pt)return this.fonts[vt];vt+=1}return this.fonts[0]}function ut(pt){var vt=0,lt=pt.charCodeAt(0);if(lt>=55296&&lt<=56319){var ht=pt.charCodeAt(1);ht>=56320&&ht<=57343&&(vt=(lt-55296)*1024+ht-56320+65536)}return vt}function ct(pt,vt){var lt=pt.toString(16)+vt.toString(16);return ot.indexOf(lt)!==-1}function gt(pt){return pt===b}function mt(pt){return pt===_}function _t(pt){var vt=ut(pt);return vt>=$&&vt<=et}function kt(pt){return _t(pt.substr(0,2))&&_t(pt.substr(2,2))}function wt(pt){return i.indexOf(pt)!==-1}function St(pt,vt){var lt=ut(pt.substr(vt,2));if(lt!==a)return!1;var ht=0;for(vt+=2;ht<5;){if(lt=ut(pt.substr(vt,2)),lt<c||lt>g)return!1;ht+=1,vt+=2}return ut(pt.substr(vt,2))===o}function Tt(){this.isLoaded=!0}var Mt=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)};Mt.isModifier=ct,Mt.isZeroWidthJoiner=gt,Mt.isFlagEmoji=kt,Mt.isRegionalCode=_t,Mt.isCombinedCharacter=wt,Mt.isRegionalFlag=St,Mt.isVariationSelector=mt,Mt.BLACK_FLAG_CODE_POINT=a;var xt={addChars:_e,addFonts:dt,getCharData:tt,getFontByName:st,measureText:j,checkLoadedFonts:it,setIsLoaded:Tt};return Mt.prototype=xt,Mt}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},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(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,i=this.renderableComponents.length;for(s=0;s<i;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={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"};return function(s){return e[s]||""}}();function SliderEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function AngleEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function ColorEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,1,0,i)}function PointEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,1,0,i)}function LayerIndexEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function MaskIndexEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function CheckboxEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(e,s){var i=e.ef||[];this.effectElements=[];var a,o=i.length,c;for(a=0;a<o;a+=1)c=new GroupEffect(i[a],s),this.effectElements.push(c)}function GroupEffect(e,s){this.init(e,s)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,s){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(s);var i,a=this.data.ef.length,o,c=this.data.ef;for(i=0;i<a;i+=1){switch(o=null,c[i].ty){case 0:o=new SliderEffect(c[i],s,this);break;case 1:o=new AngleEffect(c[i],s,this);break;case 2:o=new ColorEffect(c[i],s,this);break;case 3:o=new PointEffect(c[i],s,this);break;case 4:case 7:o=new CheckboxEffect(c[i],s,this);break;case 10:o=new LayerIndexEffect(c[i],s,this);break;case 11:o=new MaskIndexEffect(c[i],s,this);break;case 5:o=new EffectsManager(c[i],s);break;default:o=new NoValueEffect(c[i]);break}o&&this.effectElements.push(o)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,i=this.data.masksProperties.length;s<i;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=getExpressionInterfaces();if(s){var i=s("layer"),a=s("effects"),o=s("shape"),c=s("text"),g=s("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var _=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(_),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=o(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=getBlendMode(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=s},initBaseData:function(s,i,a){this.globalData=i,this.comp=a,this.data=s,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(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,i){var a,o=this.dynamicProperties.length;for(a=0;a<o;a+=1)(i||this._isParent&&this.dynamicProperties[a].propType==="transform")&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function FootageElement(e,s,i){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(e.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(e,s,i)}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 s=e("footage");this.layerInterface=s(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,s,i){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(e.refId),this.initBaseData(e,s,i),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}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 s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(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(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var s,i=this.layers.length,a;for(this.completeLayers=!0,s=i-1;s>=0;s-=1)this.elements[s]||(a=this.layers[s],a.ip-a.st<=e-this.layers[s].st&&a.op-a.st>e-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;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: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);default:return this.createNull(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,s=this.layers.length;for(e=0;e<s;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var s,i=e.length,a,o=this.layers.length;for(s=0;s<i;s+=1)for(a=0;a<o;){if(this.layers[a].id===e[s].id){this.layers[a]=e[s];break}a+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,s,i){for(var a=this.elements,o=this.layers,c=0,g=o.length;c<g;)o[c].ind==s&&(!a[c]||a[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(i.push(a[c]),a[c].setAsParent(),o[c].parent!==void 0?this.buildElementParenting(e,o[c].parent,i):e.setHierarchy(i))),c+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var s,i=e.length;for(s=0;s<i;s+=1)if(e[s].xt){var a=this.createComp(e[s]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementById=function(e){var s,i=this.elements.length;for(s=0;s<i;s+=1)if(this.elements[s].data.ind===e)return this.elements[s];return null},BaseRenderer.prototype.getElementByPath=function(e){var s=e.shift(),i;if(typeof s=="number")i=this.elements[s];else{var a,o=this.elements.length;for(a=0;a<o;a+=1)if(this.elements[a].data.nm===s){i=this.elements[a];break}}return e.length===0?i:i.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,s){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,s),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(){}TransformElement.prototype={initTransform:function(){var s=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,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 s,i=this.finalTransform.mat,a=0,o=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<o;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,i.cloneFromProps(s),a=0;a<o;a+=1)i.multiply(this.hierarchy[a].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 s=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<i;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),s=1;s<i;s+=1){var o=this.localTransforms[s].matrix;a.multiply(o)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(s=0;s<i;s+=1)c*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var i=0,a=s.length;for(i=0;i<a;i+=1)this.localTransforms.push(s[i])}}},globalToLocal:function(s){var i=[];i.push(this.finalTransform);for(var a=!0,o=this.comp;a;)o.finalTransform?(o.data.hasMask&&i.splice(0,0,o.finalTransform),o=o.comp):a=!1;var c,g=i.length,_;for(c=0;c<g;c+=1)_=i[c].mat.applyToPointArray(0,0,0),s=[s[0]-_[0],s[1]-_[1],0];return s},mHelper:new Matrix};function MaskElement(e,s,i){this.data=e,this.element=s,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a=this.globalData.defs,o,c=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(c),this.solidPath="";var g,_=this.masksProperties,b=0,$=[],et,ot,rt=createElementID(),at,it,nt,dt,_e="clipPath",tt="clip-path";for(o=0;o<c;o+=1)if((_[o].mode!=="a"&&_[o].mode!=="n"||_[o].inv||_[o].o.k!==100||_[o].o.x)&&(_e="mask",tt="mask"),(_[o].mode==="s"||_[o].mode==="i")&&b===0?(at=createNS("rect"),at.setAttribute("fill","#ffffff"),at.setAttribute("width",this.element.comp.data.w||0),at.setAttribute("height",this.element.comp.data.h||0),$.push(at)):at=null,g=createNS("path"),_[o].mode==="n")this.viewData[o]={op:PropertyFactory.getProp(this.element,_[o].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,_[o],3),elem:g,lastPath:""},a.appendChild(g);else{b+=1,g.setAttribute("fill",_[o].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var j;if(_[o].x.k!==0?(_e="mask",tt="mask",dt=PropertyFactory.getProp(this.element,_[o].x,0,null,this.element),j=createElementID(),it=createNS("filter"),it.setAttribute("id",j),nt=createNS("feMorphology"),nt.setAttribute("operator","erode"),nt.setAttribute("in","SourceGraphic"),nt.setAttribute("radius","0"),it.appendChild(nt),a.appendChild(it),g.setAttribute("stroke",_[o].mode==="s"?"#000000":"#ffffff")):(nt=null,dt=null),this.storedData[o]={elem:g,x:dt,expan:nt,lastPath:"",lastOperator:"",filterId:j,lastRadius:0},_[o].mode==="i"){ot=$.length;var st=createNS("g");for(et=0;et<ot;et+=1)st.appendChild($[et]);var ut=createNS("mask");ut.setAttribute("mask-type","alpha"),ut.setAttribute("id",rt+"_"+b),ut.appendChild(g),a.appendChild(ut),st.setAttribute("mask","url("+getLocationHref()+"#"+rt+"_"+b+")"),$.length=0,$.push(st)}else $.push(g);_[o].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[o]={elem:g,lastPath:"",op:PropertyFactory.getProp(this.element,_[o].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,_[o],3),invRect:at},this.viewData[o].prop.k||this.drawPath(_[o],this.viewData[o].prop.v,this.viewData[o])}for(this.maskElement=createNS(_e),c=$.length,o=0;o<c;o+=1)this.maskElement.appendChild($[o]);b>0&&(this.maskElement.setAttribute("id",rt),this.element.maskedElement.setAttribute(tt,"url("+getLocationHref()+"#"+rt+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var s=this.element.finalTransform.mat,i,a=this.masksProperties.length;for(i=0;i<a;i+=1)if((this.viewData[i].prop._mdf||e)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||e)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[i].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||e))){var o=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[i].filterId+")")),o.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},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+" ",e},MaskElement.prototype.drawPath=function(e,s,i){var a=" M"+s.v[0][0]+","+s.v[0][1],o,c;for(c=s._length,o=1;o<c;o+=1)a+=" C"+s.o[o-1][0]+","+s.o[o-1][1]+" "+s.i[o][0]+","+s.i[o][1]+" "+s.v[o][0]+","+s.v[o][1];if(s.c&&c>1&&(a+=" C"+s.o[o-1][0]+","+s.o[o-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),i.lastPath!==a){var g="";i.elem&&(s.c&&(g=e.inv?this.solidPath+a:a),i.elem.setAttribute("d",g)),i.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=s,e.createAlphaToLuminanceFilter=i;function s(a,o){var c=createNS("filter");return c.setAttribute("id",a),o!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function i(){var a=createNS("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a}return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};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 s,i="SourceGraphic",a=e.data.ef?e.data.ef.length:0,o=createElementID(),c=filtersFactory.createFilter(o,!0),g=0;this.filters=[];var _;for(s=0;s<a;s+=1){_=null;var b=e.data.ef[s].ty;if(registeredEffects$1[b]){var $=registeredEffects$1[b].effect;_=new $(c,e.effectsManager.effectElements[s],e,idPrefix+g,i),i=idPrefix+g,registeredEffects$1[b].countsAsEffect&&(g+=1)}_&&this.filters.push(_)}g&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var s,i=this.filters.length;for(s=0;s<i;s+=1)this.filters[s].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var s,i=this.filters.length,a=[];for(s=0;s<i;s+=1)this.filters[s].type===e&&a.push(this.filters[s]);return a};function registerEffect$1(e,s,i){registeredEffects$1[e]={effect:s,countsAsEffect:i}}function SVGBaseElement(){}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 s=null;if(this.data.td){this.matteMasks={};var i=createNS("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),s=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=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),this.data.ty===0&&!this.data.hd){var a=createNS("clipPath"),o=createNS("path");o.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=createElementID();if(a.setAttribute("id",c),a.appendChild(o),this.globalData.defs.appendChild(a),this.checkMasks()){var g=createNS("g");g.setAttribute("clip-path","url("+getLocationHref()+"#"+c+")"),g.appendChild(this.layerElement),this.transformedElement=g,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+c+")")}this.data.bm!==0&&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(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var i=this.layerId+"_"+s,a,o,c,g;if(s===1||s===3){var _=createNS("mask");_.setAttribute("id",i),_.setAttribute("mask-type",s===3?"luminance":"alpha"),c=createNS("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),_.appendChild(c),this.globalData.defs.appendChild(_),!featureSupport.maskType&&s===1&&(_.setAttribute("mask-type","luminance"),a=createElementID(),o=filtersFactory.createFilter(a),this.globalData.defs.appendChild(o),o.appendChild(filtersFactory.createAlphaToLuminanceFilter()),g=createNS("g"),g.appendChild(c),_.appendChild(g),g.setAttribute("filter","url("+getLocationHref()+"#"+a+")"))}else if(s===2){var b=createNS("mask");b.setAttribute("id",i),b.setAttribute("mask-type","alpha");var $=createNS("g");b.appendChild($),a=createElementID(),o=filtersFactory.createFilter(a);var et=createNS("feComponentTransfer");et.setAttribute("in","SourceGraphic"),o.appendChild(et);var ot=createNS("feFuncA");ot.setAttribute("type","table"),ot.setAttribute("tableValues","1.0 0.0"),et.appendChild(ot),this.globalData.defs.appendChild(o);var rt=createNS("rect");rt.setAttribute("width",this.comp.data.w),rt.setAttribute("height",this.comp.data.h),rt.setAttribute("x","0"),rt.setAttribute("y","0"),rt.setAttribute("fill","#ffffff"),rt.setAttribute("opacity","0"),$.setAttribute("filter","url("+getLocationHref()+"#"+a+")"),$.appendChild(rt),c=createNS("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),$.appendChild(c),featureSupport.maskType||(b.setAttribute("mask-type","luminance"),o.appendChild(filtersFactory.createAlphaToLuminanceFilter()),g=createNS("g"),$.appendChild(rt),g.appendChild(this.layerElement),$.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[s]=i}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+s+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(i,a,o){this.initFrame(),this.initBaseData(i,a,o),this.initTransform(i,a,o),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.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(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,s,i){this.assetData=s.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(e,s,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}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};function ProcessedElement(e,s){this.elem=e,this.pos=s}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(s){var i,a=this.shapeModifiers.length;for(i=0;i<a;i+=1)this.shapeModifiers[i].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var i=0,a=this.shapeModifiers.length;i<a;)if(this.shapeModifiers[i].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,i=this.shapes.length;for(s=0;s<i;s+=1)this.shapes[s].sh.reset();i=this.shapeModifiers.length;var a;for(s=i-1;s>=0&&(a=this.shapeModifiers[s].processShapes(this._isFirstFrame),!a);s-=1);}},searchProcessedElement:function(s){for(var i=this.processedElements,a=0,o=i.length;a<o;){if(i[a].elem===s)return i[a].pos;a+=1}return 0},addProcessedElement:function(s,i){for(var a=this.processedElements,o=a.length;o;)if(o-=1,a[o].elem===s){a[o].pos=i;return}a.push(new ProcessedElement(s,i))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,s,i){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=i,this.lvl=s,this._isAnimated=!!i.k;for(var a=0,o=e.length;a<o;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,s){this.data=e,this.type=e.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,s,i,a){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(s.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",s.length?s.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(a);var o,c=s.length||0,g;for(o=0;o<c;o+=1)g=PropertyFactory.getProp(e,s[o].v,0,0,this),this.k=g.k||this.k,this.dataProps[o]={n:s[o].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}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 s=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<i;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.w=PropertyFactory.getProp(e,s.w,0,null,this),this.d=new DashProperty(e,s.d||{},"svg",this),this.c=PropertyFactory.getProp(e,s.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.c=PropertyFactory.getProp(e,s.c,1,255,this),this.style=i}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=i}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,s,i){this.data=s,this.c=createTypedArray("uint8c",s.p*4);var a=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(e,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,s){for(var i=0,a=this.o.length/2,o;i<a;){if(o=Math.abs(e[i*4]-e[s*4+i*2]),o>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,s=this.data.k.k.length;e<s;){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 s,i=this.data.p*4,a,o;for(s=0;s<i;s+=1)a=s%4===0?100:255,o=Math.round(this.prop.v[s]*a),this.c[s]!==o&&(this.c[s]=o,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,s=this.data.p*4;s<i;s+=1)a=s%2===0?100:1,o=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==o&&(this.o[s-this.data.p*4]=o,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,s,i)}SVGGradientFillStyleData.prototype.initGradientData=function(e,s,i){this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.s=PropertyFactory.getProp(e,s.s,1,null,this),this.e=PropertyFactory.getProp(e,s.e,1,null,this),this.h=PropertyFactory.getProp(e,s.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,s.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,s.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,s),this.setGradientOpacity(s,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,s){var i=createElementID(),a=createNS(s.t===1?"linearGradient":"radialGradient");a.setAttribute("id",i),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var o=[],c,g,_;for(_=s.g.p*4,g=0;g<_;g+=4)c=createNS("stop"),a.appendChild(c),o.push(c);e.setAttribute(s.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=a,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,s){if(this.g._hasOpacity&&!this.g._collapsable){var i,a,o,c=createNS("mask"),g=createNS("path");c.appendChild(g);var _=createElementID(),b=createElementID();c.setAttribute("id",b);var $=createNS(e.t===1?"linearGradient":"radialGradient");$.setAttribute("id",_),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse"),o=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var et=this.stops;for(a=e.g.p*4;a<o;a+=2)i=createNS("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),$.appendChild(i),et.push(i);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+_+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),g.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=$,this.ms=c,this.ost=et,this.maskId=b,s.msElem=g}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,s.w,0,null,this),this.d=new DashProperty(e,s.d||{},"svg",this),this.initGradientData(e,s,i),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,s,i){this.transform={mProps:e,op:s,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(s,i,a,o){if(i===0)return"";var c=s.o,g=s.i,_=s.v,b,$=" M"+o.applyToPointStringified(_[0][0],_[0][1]);for(b=1;b<i;b+=1)$+=" C"+o.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+o.applyToPointStringified(g[b][0],g[b][1])+" "+o.applyToPointStringified(_[b][0],_[b][1]);return a&&i&&($+=" C"+o.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+o.applyToPointStringified(g[0][0],g[0][1])+" "+o.applyToPointStringified(_[0][0],_[0][1]),$+="z"),$},SVGElementsRenderer=function(){var e=new Matrix,s=new Matrix,i={createRenderFunction:a};function a(ot){switch(ot.ty){case"fl":return _;case"gf":return $;case"gs":return b;case"st":return et;case"sh":case"el":case"rc":case"sr":return g;case"tr":return o;case"no":return c;default:return null}}function o(ot,rt,at){(at||rt.transform.op._mdf)&&rt.transform.container.setAttribute("opacity",rt.transform.op.v),(at||rt.transform.mProps._mdf)&&rt.transform.container.setAttribute("transform",rt.transform.mProps.v.to2dCSS())}function c(){}function g(ot,rt,at){var it,nt,dt,_e,tt,j,st=rt.styles.length,ut=rt.lvl,ct,gt,mt,_t;for(j=0;j<st;j+=1){if(_e=rt.sh._mdf||at,rt.styles[j].lvl<ut){for(gt=s.reset(),mt=ut-rt.styles[j].lvl,_t=rt.transformers.length-1;!_e&&mt>0;)_e=rt.transformers[_t].mProps._mdf||_e,mt-=1,_t-=1;if(_e)for(mt=ut-rt.styles[j].lvl,_t=rt.transformers.length-1;mt>0;)gt.multiply(rt.transformers[_t].mProps.v),mt-=1,_t-=1}else gt=e;if(ct=rt.sh.paths,nt=ct._length,_e){for(dt="",it=0;it<nt;it+=1)tt=ct.shapes[it],tt&&tt._length&&(dt+=buildShapeString(tt,tt._length,tt.c,gt));rt.caches[j]=dt}else dt=rt.caches[j];rt.styles[j].d+=ot.hd===!0?"":dt,rt.styles[j]._mdf=_e||rt.styles[j]._mdf}}function _(ot,rt,at){var it=rt.style;(rt.c._mdf||at)&&it.pElem.setAttribute("fill","rgb("+bmFloor(rt.c.v[0])+","+bmFloor(rt.c.v[1])+","+bmFloor(rt.c.v[2])+")"),(rt.o._mdf||at)&&it.pElem.setAttribute("fill-opacity",rt.o.v)}function b(ot,rt,at){$(ot,rt,at),et(ot,rt,at)}function $(ot,rt,at){var it=rt.gf,nt=rt.g._hasOpacity,dt=rt.s.v,_e=rt.e.v;if(rt.o._mdf||at){var tt=ot.ty==="gf"?"fill-opacity":"stroke-opacity";rt.style.pElem.setAttribute(tt,rt.o.v)}if(rt.s._mdf||at){var j=ot.t===1?"x1":"cx",st=j==="x1"?"y1":"cy";it.setAttribute(j,dt[0]),it.setAttribute(st,dt[1]),nt&&!rt.g._collapsable&&(rt.of.setAttribute(j,dt[0]),rt.of.setAttribute(st,dt[1]))}var ut,ct,gt,mt;if(rt.g._cmdf||at){ut=rt.cst;var _t=rt.g.c;for(gt=ut.length,ct=0;ct<gt;ct+=1)mt=ut[ct],mt.setAttribute("offset",_t[ct*4]+"%"),mt.setAttribute("stop-color","rgb("+_t[ct*4+1]+","+_t[ct*4+2]+","+_t[ct*4+3]+")")}if(nt&&(rt.g._omdf||at)){var kt=rt.g.o;for(rt.g._collapsable?ut=rt.cst:ut=rt.ost,gt=ut.length,ct=0;ct<gt;ct+=1)mt=ut[ct],rt.g._collapsable||mt.setAttribute("offset",kt[ct*2]+"%"),mt.setAttribute("stop-opacity",kt[ct*2+1])}if(ot.t===1)(rt.e._mdf||at)&&(it.setAttribute("x2",_e[0]),it.setAttribute("y2",_e[1]),nt&&!rt.g._collapsable&&(rt.of.setAttribute("x2",_e[0]),rt.of.setAttribute("y2",_e[1])));else{var wt;if((rt.s._mdf||rt.e._mdf||at)&&(wt=Math.sqrt(Math.pow(dt[0]-_e[0],2)+Math.pow(dt[1]-_e[1],2)),it.setAttribute("r",wt),nt&&!rt.g._collapsable&&rt.of.setAttribute("r",wt)),rt.s._mdf||rt.e._mdf||rt.h._mdf||rt.a._mdf||at){wt||(wt=Math.sqrt(Math.pow(dt[0]-_e[0],2)+Math.pow(dt[1]-_e[1],2)));var St=Math.atan2(_e[1]-dt[1],_e[0]-dt[0]),Tt=rt.h.v;Tt>=1?Tt=.99:Tt<=-1&&(Tt=-.99);var Mt=wt*Tt,xt=Math.cos(St+rt.a.v)*Mt+dt[0],pt=Math.sin(St+rt.a.v)*Mt+dt[1];it.setAttribute("fx",xt),it.setAttribute("fy",pt),nt&&!rt.g._collapsable&&(rt.of.setAttribute("fx",xt),rt.of.setAttribute("fy",pt))}}}function et(ot,rt,at){var it=rt.style,nt=rt.d;nt&&(nt._mdf||at)&&nt.dashStr&&(it.pElem.setAttribute("stroke-dasharray",nt.dashStr),it.pElem.setAttribute("stroke-dashoffset",nt.dashoffset[0])),rt.c&&(rt.c._mdf||at)&&it.pElem.setAttribute("stroke","rgb("+bmFloor(rt.c.v[0])+","+bmFloor(rt.c.v[1])+","+bmFloor(rt.c.v[2])+")"),(rt.o._mdf||at)&&it.pElem.setAttribute("stroke-opacity",rt.o.v),(rt.w._mdf||at)&&(it.pElem.setAttribute("stroke-width",rt.w.v),it.msElem&&it.msElem.setAttribute("stroke-width",rt.w.v))}return i}();function SVGShapeElement(e,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,s,i),this.prevViewData=[]}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,s=this.shapes.length,i,a,o=this.stylesList.length,c,g=[],_=!1;for(a=0;a<o;a+=1){for(c=this.stylesList[a],_=!1,g.length=0,e=0;e<s;e+=1)i=this.shapes[e],i.styles.indexOf(c)!==-1&&(g.push(i),_=i._isAnimated||_);g.length>1&&_&&this.setShapesAsAnimated(g)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,s){var i,a=new SVGStyleData(e,s),o=a.pElem;if(e.ty==="st")i=new SVGStrokeStyleData(this,e,a);else if(e.ty==="fl")i=new SVGFillStyleData(this,e,a);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;i=new c(this,e,a),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),o.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))}else e.ty==="no"&&(i=new SVGNoStyleData(this,e,a));return(e.ty==="st"||e.ty==="gs")&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),o.setAttribute("fill-opacity","0"),e.lj===1&&o.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&o.setAttribute("fill-rule","evenodd"),e.ln&&o.setAttribute("id",e.ln),e.cl&&o.setAttribute("class",e.cl),e.bm&&(o.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createGroupElement=function(e){var s=new ShapeGroupData;return e.ln&&s.gr.setAttribute("id",e.ln),e.cl&&s.gr.setAttribute("class",e.cl),e.bm&&(s.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),s},SVGShapeElement.prototype.createTransformElement=function(e,s){var i=TransformPropertyFactory.getTransformProperty(this,e,this),a=new SVGTransformData(i,i.o,s);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,s,i){var a=4;e.ty==="rc"?a=5:e.ty==="el"?a=6:e.ty==="sr"&&(a=7);var o=ShapePropertyFactory.getShapeProp(this,e,a,this),c=new SVGShapeData(s,i,o);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},SVGShapeElement.prototype.addToAnimatedContents=function(e,s){for(var i=0,a=this.animatedContents.length;i<a;){if(this.animatedContents[i].element===s)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:s,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var s=e.styles,i,a=this.stylesList.length;for(i=0;i<a;i+=1)s.indexOf(this.stylesList[i])===-1&&!this.stylesList[i].closed&&s.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,s=this.itemsData.length;for(e=0;e<s;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,e=0;e<s;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,s,i,a,o,c,g){var _=[].concat(c),b,$=e.length-1,et,ot,rt=[],at=[],it,nt,dt;for(b=$;b>=0;b-=1){if(dt=this.searchProcessedElement(e[b]),dt?s[b]=i[dt-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")dt?s[b].style.closed=e[b].hd:s[b]=this.createStyleElement(e[b],o),e[b]._render&&s[b].style.pElem.parentNode!==a&&a.appendChild(s[b].style.pElem),rt.push(s[b].style);else if(e[b].ty==="gr"){if(!dt)s[b]=this.createGroupElement(e[b]);else for(ot=s[b].it.length,et=0;et<ot;et+=1)s[b].prevViewData[et]=s[b].it[et];this.searchShapes(e[b].it,s[b].it,s[b].prevViewData,s[b].gr,o+1,_,g),e[b]._render&&s[b].gr.parentNode!==a&&a.appendChild(s[b].gr)}else e[b].ty==="tr"?(dt||(s[b]=this.createTransformElement(e[b],a)),it=s[b].transform,_.push(it)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(dt||(s[b]=this.createShapeElement(e[b],_,o)),this.setElementStyles(s[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(dt?(nt=s[b],nt.closed=!1):(nt=ShapeModifiers.getModifier(e[b].ty),nt.init(this,e[b]),s[b]=nt,this.shapeModifiers.push(nt)),at.push(nt)):e[b].ty==="rp"&&(dt?(nt=s[b],nt.closed=!0):(nt=ShapeModifiers.getModifier(e[b].ty),s[b]=nt,nt.init(this,e,b,s),this.shapeModifiers.push(nt),g=!1),at.push(nt));this.addProcessedElement(e[b],b+1)}for($=rt.length,b=0;b<$;b+=1)rt[b].closed=!0;for($=at.length,b=0;b<$;b+=1)at[b].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<s;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,s=this.animatedContents.length,i;for(e=0;e<s;e+=1)i=this.animatedContents[e],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,s,i,a,o,c){this.o=e,this.sw=s,this.sc=i,this.fc=a,this.m=o,this.p=c,this._mdf={o:!0,sw:!!s,sc:!!i,fc:!!a,m:!0,p:!0}}LetterProps.prototype.update=function(e,s,i,a,o,c){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 g=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,g=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,g=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,g=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,g=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,g=!0),g};function TextProperty(e,s){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=e.globalData.slotManager.getProp(s.d)),this.data=s,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)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i]);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 s=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,o=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(a=0;a<o;a+=1)i!==this.keysIndex?c=this.effectsSequence[a](c,c.t):c=this.effectsSequence[a](this.currentData,c.t);s!==c&&this.setCurrentData(c),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,s=this.elem.comp.renderedFrame,i=0,a=e.length;i<=a-1&&!(i===a-1||e[i+1].t>s);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var s=[],i=0,a=e.length,o,c,g=!1,_=!1,b="";i<a;)g=_,_=!1,o=e.charCodeAt(i),b=e.charAt(i),FontManager.isCombinedCharacter(o)?g=!0:o>=55296&&o<=56319?FontManager.isRegionalFlag(e,i)?b=e.substr(i,14):(c=e.charCodeAt(i+1),c>=56320&&c<=57343&&(FontManager.isModifier(o,c)?(b=e.substr(i,2),g=!0):FontManager.isFlagEmoji(e.substr(i,4))?b=e.substr(i,4):b=e.substr(i,2))):o>56319?(c=e.charCodeAt(i+1),FontManager.isVariationSelector(o)&&(g=!0)):FontManager.isZeroWidthJoiner(o)&&(g=!0,_=!0),g?(s[s.length-1]+=b,g=!1):s.push(b),i+=b.length;return s},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var s=this.elem.globalData.fontManager,i=this.data,a=[],o,c,g,_=0,b,$=i.m.g,et=0,ot=0,rt=0,at=[],it=0,nt=0,dt,_e,tt=s.getFontByName(e.f),j,st=0,ut=getFontProperties(tt);e.fWeight=ut.weight,e.fStyle=ut.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var ct=e.tr/1e3*e.finalSize,gt;if(e.sz)for(var mt=!0,_t=e.sz[0],kt=e.sz[1],wt,St;mt;){St=this.buildFinalText(e.t),wt=0,it=0,c=St.length,ct=e.tr/1e3*e.finalSize;var Tt=-1;for(o=0;o<c;o+=1)gt=St[o].charCodeAt(0),g=!1,St[o]===" "?Tt=o:(gt===13||gt===3)&&(it=0,g=!0,wt+=e.finalLineHeight||e.finalSize*1.2),s.chars?(j=s.getCharData(St[o],tt.fStyle,tt.fFamily),st=g?0:j.w*e.finalSize/100):st=s.measureText(St[o],e.f,e.finalSize),it+st>_t&&St[o]!==" "?(Tt===-1?c+=1:o=Tt,wt+=e.finalLineHeight||e.finalSize*1.2,St.splice(o,Tt===o?1:0,"\r"),Tt=-1,it=0):(it+=st,it+=ct);wt+=tt.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&kt<wt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=St,c=e.finalText.length,mt=!1)}it=-ct,st=0;var Mt=0,xt;for(o=0;o<c;o+=1)if(g=!1,xt=e.finalText[o],gt=xt.charCodeAt(0),gt===13||gt===3?(Mt=0,at.push(it),nt=it>nt?it:nt,it=-2*ct,b="",g=!0,rt+=1):b=xt,s.chars?(j=s.getCharData(xt,tt.fStyle,s.getFontByName(e.f).fFamily),st=g?0:j.w*e.finalSize/100):st=s.measureText(b,e.f,e.finalSize),xt===" "?Mt+=st+ct:(it+=st+ct+Mt,Mt=0),a.push({l:st,an:st,add:et,n:g,anIndexes:[],val:b,line:rt,animatorJustifyOffset:0}),$==2){if(et+=st,b===""||b===" "||o===c-1){for((b===""||b===" ")&&(et-=st);ot<=o;)a[ot].an=et,a[ot].ind=_,a[ot].extra=st,ot+=1;_+=1,et=0}}else if($==3){if(et+=st,b===""||o===c-1){for(b===""&&(et-=st);ot<=o;)a[ot].an=et,a[ot].ind=_,a[ot].extra=st,ot+=1;et=0,_+=1}}else a[_].ind=_,a[_].extra=0,_+=1;if(e.l=a,nt=it>nt?it:nt,at.push(it),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=nt,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=at;var pt=i.a,vt,lt;_e=pt.length;var ht,yt,ft=[];for(dt=0;dt<_e;dt+=1){for(vt=pt[dt],vt.a.sc&&(e.strokeColorAnim=!0),vt.a.sw&&(e.strokeWidthAnim=!0),(vt.a.fc||vt.a.fh||vt.a.fs||vt.a.fb)&&(e.fillColorAnim=!0),yt=0,ht=vt.s.b,o=0;o<c;o+=1)lt=a[o],lt.anIndexes[dt]=yt,(ht==1&&lt.val!==""||ht==2&&lt.val!==""&&lt.val!==" "||ht==3&&(lt.n||lt.val==" "||o==c-1)||ht==4&&(lt.n||o==c-1))&&(vt.s.rn===1&&ft.push(yt),yt+=1);i.a[dt].s.totalChars=yt;var Ct=-1,Et;if(vt.s.rn===1)for(o=0;o<c;o+=1)lt=a[o],Ct!=lt.anIndexes[dt]&&(Ct=lt.anIndexes[dt],Et=ft.splice(Math.floor(Math.random()*ft.length),1)[0]),lt.anIndexes[dt]=Et}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=tt.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,s){s=s===void 0?this.keysIndex:s;var i=this.copyData({},this.data.d.k[s].s);i=this.copyData(i,e),this.data.d.k[s].s=i,this.recalculate(s),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var s=this.data.d.k[e].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},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,s=Math.min,i=Math.floor;function a(c,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=PropertyFactory.getProp(c,g.s||{k:0},0,0,this),"e"in g?this.e=PropertyFactory.getProp(c,g.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(c,g.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(c,g.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(c,g.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(c,g.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(c,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var _=0,b=0,$=1,et=1;this.ne.v>0?_=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?$=1-this.xe.v/100:et=1+this.xe.v/100;var ot=BezierFactory.getBezierEasing(_,b,$,et).get,rt=0,at=this.finalS,it=this.finalE,nt=this.data.sh;if(nt===2)it===at?rt=g>=it?1:0:rt=e(0,s(.5/(it-at)+(g-at)/(it-at),1)),rt=ot(rt);else if(nt===3)it===at?rt=g>=it?0:1:rt=1-e(0,s(.5/(it-at)+(g-at)/(it-at),1)),rt=ot(rt);else if(nt===4)it===at?rt=0:(rt=e(0,s(.5/(it-at)+(g-at)/(it-at),1)),rt<.5?rt*=2:rt=1-2*(rt-.5)),rt=ot(rt);else if(nt===5){if(it===at)rt=0;else{var dt=it-at;g=s(e(0,g+.5-at),it-at);var _e=-dt/2+g,tt=dt/2;rt=Math.sqrt(1-_e*_e/(tt*tt))}rt=ot(rt)}else nt===6?(it===at?rt=0:(g=s(e(0,g+.5-at),it-at),rt=(1+Math.cos(Math.PI+Math.PI*2*g/(it-at)))/2),rt=ot(rt)):(g>=i(at)&&(g-at<0?rt=e(0,s(s(it,1)-(at-g),1)):rt=e(0,s(it-g,1))),rt=ot(rt));if(this.sm.v!==100){var j=this.sm.v*.01;j===0&&(j=1e-8);var st=.5-j*.5;rt<st?rt=0:(rt=(rt-st)/j,rt>1&&(rt=1))}return rt*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var _=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/_,$=this.s.v/_+b,et=this.e.v/_+b;if($>et){var ot=$;$=et,et=ot}this.finalS=$,this.finalE=et}},extendPrototype([DynamicPropertyContainer],a);function o(c,g,_){return new a(c,g)}return{getTextSelectorProp:o}}();function TextAnimatorDataProperty(e,s,i){var a={propType:!1},o=PropertyFactory.getProp,c=s.a;this.a={r:c.r?o(e,c.r,0,degToRads,i):a,rx:c.rx?o(e,c.rx,0,degToRads,i):a,ry:c.ry?o(e,c.ry,0,degToRads,i):a,sk:c.sk?o(e,c.sk,0,degToRads,i):a,sa:c.sa?o(e,c.sa,0,degToRads,i):a,s:c.s?o(e,c.s,1,.01,i):a,a:c.a?o(e,c.a,1,0,i):a,o:c.o?o(e,c.o,0,.01,i):a,p:c.p?o(e,c.p,1,0,i):a,sw:c.sw?o(e,c.sw,0,0,i):a,sc:c.sc?o(e,c.sc,1,0,i):a,fc:c.fc?o(e,c.fc,1,0,i):a,fh:c.fh?o(e,c.fh,0,0,i):a,fs:c.fs?o(e,c.fs,0,.01,i):a,fb:c.fb?o(e,c.fb,0,.01,i):a,t:c.t?o(e,c.t,0,0,i):a},this.s=TextSelectorProp.getTextSelectorProp(e,s.s,i),this.s.t=s.s.t}function TextAnimatorProperty(e,s,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=s,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}TextAnimatorProperty.prototype.searchProperties=function(){var e,s=this._textData.a.length,i,a=PropertyFactory.getProp;for(e=0;e<s;e+=1)i=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=a(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,a=this._animatorsData,o=this._textData,c=this.mHelper,g=this._renderType,_=this.renderedLetters.length,b,$,et,ot,rt=e.l,at,it,nt,dt,_e,tt,j,st,ut,ct,gt,mt,_t,kt,wt;if(this._hasMaskedPath){if(wt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var St=wt.v;this._pathData.r.v&&(St=St.reverse()),at={tLength:0,segments:[]},ot=St._length-1;var Tt;for(mt=0,et=0;et<ot;et+=1)Tt=bez.buildBezierData(St.v[et],St.v[et+1],[St.o[et][0]-St.v[et][0],St.o[et][1]-St.v[et][1]],[St.i[et+1][0]-St.v[et+1][0],St.i[et+1][1]-St.v[et+1][1]]),at.tLength+=Tt.segmentLength,at.segments.push(Tt),mt+=Tt.segmentLength;et=ot,wt.v.c&&(Tt=bez.buildBezierData(St.v[et],St.v[0],[St.o[et][0]-St.v[et][0],St.o[et][1]-St.v[et][1]],[St.i[0][0]-St.v[0][0],St.i[0][1]-St.v[0][1]]),at.tLength+=Tt.segmentLength,at.segments.push(Tt),mt+=Tt.segmentLength),this._pathData.pi=at}if(at=this._pathData.pi,it=this._pathData.f.v,j=0,tt=1,dt=0,_e=!0,ct=at.segments,it<0&&wt.v.c)for(at.tLength<Math.abs(it)&&(it=-Math.abs(it)%at.tLength),j=ct.length-1,ut=ct[j].points,tt=ut.length-1;it<0;)it+=ut[tt].partialLength,tt-=1,tt<0&&(j-=1,ut=ct[j].points,tt=ut.length-1);ut=ct[j].points,st=ut[tt-1],nt=ut[tt],gt=nt.partialLength}ot=rt.length,b=0,$=0;var Mt=e.finalSize*1.2*.714,xt=!0,pt,vt,lt,ht,yt;ht=a.length;var ft,Ct=-1,Et,bt,Ot,Lt=it,Pt=j,It=tt,Dt=-1,Rt,Vt,Gt,$t,Bt,er,Kt,tr,Wt="",Qt=this.defaultPropsArray,Nt;if(e.j===2||e.j===1){var Ft=0,qt=0,sr=e.j===2?-.5:-1,rr=0,jt=!0;for(et=0;et<ot;et+=1)if(rt[et].n){for(Ft&&(Ft+=qt);rr<et;)rt[rr].animatorJustifyOffset=Ft,rr+=1;Ft=0,jt=!0}else{for(lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.t.propType&&(jt&&e.j===2&&(qt+=pt.t.v*sr),vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),ft.length?Ft+=pt.t.v*ft[0]*sr:Ft+=pt.t.v*ft*sr);jt=!1}for(Ft&&(Ft+=qt);rr<et;)rt[rr].animatorJustifyOffset=Ft,rr+=1}for(et=0;et<ot;et+=1){if(c.reset(),Rt=1,rt[et].n)b=0,$+=e.yOffset,$+=xt?1:0,it=Lt,xt=!1,this._hasMaskedPath&&(j=Pt,tt=It,ut=ct[j].points,st=ut[tt-1],nt=ut[tt],gt=nt.partialLength,dt=0),Wt="",tr="",er="",Nt="",Qt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Dt!==rt[et].line){switch(e.j){case 1:it+=mt-e.lineWidths[rt[et].line];break;case 2:it+=(mt-e.lineWidths[rt[et].line])/2;break}Dt=rt[et].line}Ct!==rt[et].ind&&(rt[Ct]&&(it+=rt[Ct].extra),it+=rt[et].an/2,Ct=rt[et].ind),it+=i[0]*rt[et].an*.005;var zt=0;for(lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.p.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),ft.length?zt+=pt.p.v[0]*ft[0]:zt+=pt.p.v[0]*ft),pt.a.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),ft.length?zt+=pt.a.v[0]*ft[0]:zt+=pt.a.v[0]*ft);for(_e=!0,this._pathData.a.v&&(it=rt[0].an*.5+(mt-this._pathData.f.v-rt[0].an*.5-rt[rt.length-1].an*.5)*Ct/(ot-1),it+=this._pathData.f.v);_e;)dt+gt>=it+zt||!ut?(_t=(it+zt-dt)/nt.partialLength,bt=st.point[0]+(nt.point[0]-st.point[0])*_t,Ot=st.point[1]+(nt.point[1]-st.point[1])*_t,c.translate(-i[0]*rt[et].an*.005,-(i[1]*Mt)*.01),_e=!1):ut&&(dt+=nt.partialLength,tt+=1,tt>=ut.length&&(tt=0,j+=1,ct[j]?ut=ct[j].points:wt.v.c?(tt=0,j=0,ut=ct[j].points):(dt-=nt.partialLength,ut=null)),ut&&(st=nt,nt=ut[tt],gt=nt.partialLength));Et=rt[et].an/2-rt[et].add,c.translate(-Et,0,0)}else Et=rt[et].an/2-rt[et].add,c.translate(-Et,0,0),c.translate(-i[0]*rt[et].an*.005,-i[1]*Mt*.01,0);for(lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.t.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?ft.length?it+=pt.t.v*ft[0]:it+=pt.t.v*ft:ft.length?b+=pt.t.v*ft[0]:b+=pt.t.v*ft));for(e.strokeWidthAnim&&(Gt=e.sw||0),e.strokeColorAnim&&(e.sc?Vt=[e.sc[0],e.sc[1],e.sc[2]]:Vt=[0,0,0]),e.fillColorAnim&&e.fc&&($t=[e.fc[0],e.fc[1],e.fc[2]]),lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.a.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),ft.length?c.translate(-pt.a.v[0]*ft[0],-pt.a.v[1]*ft[1],pt.a.v[2]*ft[2]):c.translate(-pt.a.v[0]*ft,-pt.a.v[1]*ft,pt.a.v[2]*ft));for(lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.s.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),ft.length?c.scale(1+(pt.s.v[0]-1)*ft[0],1+(pt.s.v[1]-1)*ft[1],1):c.scale(1+(pt.s.v[0]-1)*ft,1+(pt.s.v[1]-1)*ft,1));for(lt=0;lt<ht;lt+=1){if(pt=a[lt].a,vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),pt.sk.propType&&(ft.length?c.skewFromAxis(-pt.sk.v*ft[0],pt.sa.v*ft[1]):c.skewFromAxis(-pt.sk.v*ft,pt.sa.v*ft)),pt.r.propType&&(ft.length?c.rotateZ(-pt.r.v*ft[2]):c.rotateZ(-pt.r.v*ft)),pt.ry.propType&&(ft.length?c.rotateY(pt.ry.v*ft[1]):c.rotateY(pt.ry.v*ft)),pt.rx.propType&&(ft.length?c.rotateX(pt.rx.v*ft[0]):c.rotateX(pt.rx.v*ft)),pt.o.propType&&(ft.length?Rt+=(pt.o.v*ft[0]-Rt)*ft[0]:Rt+=(pt.o.v*ft-Rt)*ft),e.strokeWidthAnim&&pt.sw.propType&&(ft.length?Gt+=pt.sw.v*ft[0]:Gt+=pt.sw.v*ft),e.strokeColorAnim&&pt.sc.propType)for(Bt=0;Bt<3;Bt+=1)ft.length?Vt[Bt]+=(pt.sc.v[Bt]-Vt[Bt])*ft[0]:Vt[Bt]+=(pt.sc.v[Bt]-Vt[Bt])*ft;if(e.fillColorAnim&&e.fc){if(pt.fc.propType)for(Bt=0;Bt<3;Bt+=1)ft.length?$t[Bt]+=(pt.fc.v[Bt]-$t[Bt])*ft[0]:$t[Bt]+=(pt.fc.v[Bt]-$t[Bt])*ft;pt.fh.propType&&(ft.length?$t=addHueToRGB($t,pt.fh.v*ft[0]):$t=addHueToRGB($t,pt.fh.v*ft)),pt.fs.propType&&(ft.length?$t=addSaturationToRGB($t,pt.fs.v*ft[0]):$t=addSaturationToRGB($t,pt.fs.v*ft)),pt.fb.propType&&(ft.length?$t=addBrightnessToRGB($t,pt.fb.v*ft[0]):$t=addBrightnessToRGB($t,pt.fb.v*ft))}}for(lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.p.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),this._hasMaskedPath?ft.length?c.translate(0,pt.p.v[1]*ft[0],-pt.p.v[2]*ft[1]):c.translate(0,pt.p.v[1]*ft,-pt.p.v[2]*ft):ft.length?c.translate(pt.p.v[0]*ft[0],pt.p.v[1]*ft[1],-pt.p.v[2]*ft[2]):c.translate(pt.p.v[0]*ft,pt.p.v[1]*ft,-pt.p.v[2]*ft));if(e.strokeWidthAnim&&(er=Gt<0?0:Gt),e.strokeColorAnim&&(Kt="rgb("+Math.round(Vt[0]*255)+","+Math.round(Vt[1]*255)+","+Math.round(Vt[2]*255)+")"),e.fillColorAnim&&e.fc&&(tr="rgb("+Math.round($t[0]*255)+","+Math.round($t[1]*255)+","+Math.round($t[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,i[1]*Mt*.01+$,0),this._pathData.p.v){kt=(nt.point[1]-st.point[1])/(nt.point[0]-st.point[0]);var Zt=Math.atan(kt)*180/Math.PI;nt.point[0]<st.point[0]&&(Zt+=180),c.rotate(-Zt*Math.PI/180)}c.translate(bt,Ot,0),it-=i[0]*rt[et].an*.005,rt[et+1]&&Ct!==rt[et+1].ind&&(it+=rt[et].an/2,it+=e.tr*.001*e.finalSize)}else{switch(c.translate(b,$,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(rt[et].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[rt[et].line]),0,0);break;case 2:c.translate(rt[et].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[rt[et].line])/2,0,0);break}c.translate(0,-e.ls),c.translate(Et,0,0),c.translate(i[0]*rt[et].an*.005,i[1]*Mt*.01,0),b+=rt[et].l+e.tr*.001*e.finalSize}g==="html"?Wt=c.toCSS():g==="svg"?Wt=c.to2dCSS():Qt=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],Nt=Rt}_<=et?(yt=new LetterProps(Nt,er,Kt,tr,Wt,Qt),this.renderedLetters.push(yt),_+=1,this.lettersChangedFlag=!0):(yt=this.renderedLetters[et],this.lettersChangedFlag=yt.update(Nt,er,Kt,tr,Wt,Qt)||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);function ITextElement(){}ITextElement.prototype.initElement=function(e,s,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,s,i),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,s,i),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,s){var i,a=s.length,o,c="";for(i=0;i<a;i+=1)s[i].ty==="sh"&&(o=s[i].ks.k,c+=buildShapeString(o,o.i.length,!0,e));return c},ITextElement.prototype.updateDocumentData=function(e,s){this.textProperty.updateDocumentData(e,s)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,s,i,a,o){switch(e.ps&&s.translate(e.ps[0],e.ps[1]+e.ascent,0),s.translate(0,-e.ls,0),e.j){case 1:s.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i]),0,0);break;case 2:s.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i])/2,0,0);break}s.translate(a,o,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},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,s,i){this.textSpans=[],this.renderType="svg",this.initElement(e,s,i)}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 s=0,i=e.length,a=[],o="";s<i;)e[s]==="\r"||e[s]===""?(a.push(o),o=""):o+=e[s],s+=1;return a.push(o),a},SVGTextLottieElement.prototype.buildShapeData=function(e,s){if(e.shapes&&e.shapes.length){var i=e.shapes[0];if(i.it){var a=i.it[i.it.length-1];a.s&&(a.s.k[0]=s,a.s.k[1]=s)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,s,i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var a=this.globalData.fontManager.getFontByName(i.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var o=i.fWeight,c=i.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",o)}this.layerElement.setAttribute("aria-label",i.t);var g=i.l||[],_=!!this.globalData.fontManager.chars;s=g.length;var b,$=this.mHelper,et="",ot=this.data.singleShape,rt=0,at=0,it=!0,nt=i.tr*.001*i.finalSize;if(ot&&!_&&!i.sz){var dt=this.textContainer,_e="start";switch(i.j){case 1:_e="end";break;case 2:_e="middle";break;default:_e="start";break}dt.setAttribute("text-anchor",_e),dt.setAttribute("letter-spacing",nt);var tt=this.buildTextContents(i.finalText);for(s=tt.length,at=i.ps?i.ps[1]+i.ascent:0,e=0;e<s;e+=1)b=this.textSpans[e].span||createNS("tspan"),b.textContent=tt[e],b.setAttribute("x",0),b.setAttribute("y",at),b.style.display="inherit",dt.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,at+=i.finalLineHeight;this.layerElement.appendChild(dt)}else{var j=this.textSpans.length,st;for(e=0;e<s;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!_||!ot||e===0){if(b=j>e?this.textSpans[e].span:createNS(_?"g":"text"),j<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,_){var ut=createNS("g");b.appendChild(ut),this.textSpans[e].childSpan=ut}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if($.reset(),ot&&(g[e].n&&(rt=-nt,at+=i.yOffset,at+=it?1:0,it=!1),this.applyTextPropertiesToMatrix(i,$,g[e].line,rt,at),rt+=g[e].l||0,rt+=nt),_){st=this.globalData.fontManager.getCharData(i.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var ct;if(st.t===1)ct=new SVGCompElement(st.data,this.globalData,this);else{var gt=emptyShapeData;st.data&&st.data.shapes&&(gt=this.buildShapeData(st.data,i.finalSize)),ct=new SVGShapeElement(gt,this.globalData,this)}if(this.textSpans[e].glyph){var mt=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(mt.layerElement),mt.destroy()}this.textSpans[e].glyph=ct,ct._debug=!0,ct.prepareFrame(0),ct.renderFrame(),this.textSpans[e].childSpan.appendChild(ct.layerElement),st.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else ot&&b.setAttribute("transform","translate("+$.props[12]+","+$.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}ot&&b&&b.setAttribute("d",et)}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,s=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<s;e+=1)i=this.textSpans[e].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._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)){this._sizeChanged=!0;var e,s,i=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;s=a.length;var o,c,g;for(e=0;e<s;e+=1)a[e].n||(o=i[e],c=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),o._mdf.m&&c.setAttribute("transform",o.m),o._mdf.o&&c.setAttribute("opacity",o.o),o._mdf.sw&&c.setAttribute("stroke-width",o.sw),o._mdf.sc&&c.setAttribute("stroke",o.sc),o._mdf.fc&&c.setAttribute("fill",o.fc))}};function ISolidElement(e,s,i){this.initElement(e,s,i)}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)};function NullElement(e,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initFrame(),this.initTransform(e,s,i),this.initHierarchy()}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);function SVGRendererBase(){}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),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(e,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var i=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var o=createElementID();i.setAttribute("id",o),i.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),s.appendChild(i),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,s=this.layers?this.layers.length:0;for(e=0;e<s;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 s=0,i=this.layers.length;for(s=0;s<i;s+=1)if(this.layers[s].ind===e)return s;return-1},SVGRendererBase.prototype.buildItem=function(e){var s=this.elements;if(!(s[e]||this.layers[e].ty===99)){s[e]=!0;var i=this.createItem(this.layers[e]);if(s[e]=i,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,e),this.layers[e].tt){var a="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(i);else{var o=s[a],c=o.getMatte(this.layers[e].tt);i.setMatte(c)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var s=0,i=this.elements.length;s<i;){if(this.elements[s]===e){var a="tp"in e.data?this.findIndexByInd(e.data.tp):s-1,o=this.elements[a],c=o.getMatte(this.layers[s].tt);e.setMatte(c);break}s+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var s,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),s=i-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(e-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<i;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,s){var i=e.getBaseElement();if(i){for(var a=0,o;a<s;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(o=this.elements[a].getBaseElement()),a+=1;o?this.layerElement.insertBefore(i,o):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initTransform(e,s,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.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 s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var i,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,s=this.layers.length;for(e=0;e<s;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,s=this.layers.length;for(e=0;e<s;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,s,i){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(s&&s.title){var a=createNS("title"),o=createElementID();a.setAttribute("id",o),a.textContent=s.title,this.svgElement.appendChild(a),i+=o}if(s&&s.description){var c=createNS("desc"),g=createElementID();c.setAttribute("id",g),c.textContent=s.description,this.svgElement.appendChild(c),i+=" "+g}i&&this.svgElement.setAttribute("aria-labelledby",i);var _=createNS("defs");this.svgElement.appendChild(_);var b=createNS("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:_,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(s){var i,a=s.length,o="_";for(i=0;i<a;i+=1)o+=s[i].transform.key+"_";var c=this.sequences[o];return c||(c={transforms:[].concat(s),finalTransform:new Matrix,_mdf:!1},this.sequences[o]=c,this.sequenceList.push(c)),c},processSequence:function(s,i){for(var a=0,o=s.transforms.length,c=i;a<o&&!i;){if(s.transforms[a].transform.mProps._mdf){c=!0;break}a+=1}if(c)for(s.finalTransform.reset(),a=o-1;a>=0;a-=1)s.finalTransform.multiply(s.transforms[a].transform.mProps.v);s._mdf=c},processSequences:function(s){var i,a=this.sequenceList.length;for(i=0;i<a;i+=1)this.processSequence(this.sequenceList[i],s)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var s="__lottie_element_luma_buffer",i=null,a=null,o=null;function c(){var b=createNS("svg"),$=createNS("filter"),et=createNS("feColorMatrix");return $.setAttribute("id",s),et.setAttribute("type","matrix"),et.setAttribute("color-interpolation-filters","sRGB"),et.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"),$.appendChild(et),b.appendChild($),b.setAttribute("id",s+"_svg"),featureSupport.svgLumaHidden&&(b.style.display="none"),b}function g(){i||(o=c(),document.body.appendChild(o),i=createTag("canvas"),a=i.getContext("2d"),a.filter="url(#"+s+")",a.fillStyle="rgba(0,0,0,0)",a.fillRect(0,0,1,1))}function _(b){return i||g(),i.width=b.width,i.height=b.height,a.filter="url(#"+s+")",i}return{load:g,get:_}};function createCanvas(e,s){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,s);var i=createTag("canvas");return i.width=e,i.height=s,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var s,i=e.data.ef?e.data.ef.length:0;this.filters=[];var a;for(s=0;s<i;s+=1){a=null;var o=e.data.ef[s].ty;if(registeredEffects[o]){var c=registeredEffects[o].effect;a=new c(e.effectsManager.effectElements[s],e)}a&&this.filters.push(a)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var s,i=this.filters.length;for(s=0;s<i;s+=1)this.filters[s].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var s,i=this.filters.length,a=[];for(s=0;s<i;s+=1)this.filters[s].type===e&&a.push(this.filters[s]);return a};function registerEffect(e,s){registeredEffects[e]={effect:s}}function CVMaskElement(e,s){this.data=e,this.element=s,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,a=this.masksProperties.length,o=!1;for(i=0;i<a;i+=1)this.masksProperties[i].mode!=="n"&&(o=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,s=this.element.canvasContext,i,a=this.masksProperties.length,o,c,g;for(s.beginPath(),i=0;i<a;i+=1)if(this.masksProperties[i].mode!=="n"){this.masksProperties[i].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),g=this.viewData[i].v,o=e.applyToPointArray(g.v[0][0],g.v[0][1],0),s.moveTo(o[0],o[1]);var _,b=g._length;for(_=1;_<b;_+=1)c=e.applyToTriplePoints(g.o[_-1],g.i[_],g.v[_]),s.bezierCurveTo(c[0],c[1],c[2],c[3],c[4],c[5]);c=e.applyToTriplePoints(g.o[_-1],g.i[0],g.v[0]),s.bezierCurveTo(c[0],c[1],c[2],c[3],c[4],c[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var s=this.globalData.canvasContext,i=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push(i);var a=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push(a),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 s=this.globalData;if(s.blendMode!==this.data.bm){s.blendMode=this.data.bm;var i=getBlendMode(this.data.bm);s.canvasContext.globalCompositeOperation=i}},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(s){s.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 s=this.buffers[0],i=s.getContext("2d");this.clearCanvas(i),i.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 s=this.buffers[1],i=s.getContext("2d");this.clearCanvas(i),i.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var a=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(a.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var o=assetLoader.getLumaCanvas(this.canvasContext.canvas),c=o.getContext("2d");c.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(o,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(s,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(s){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!s)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var i=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(i),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(i),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;function CVShapeData(e,s,i,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o=4;s.ty==="rc"?o=5:s.ty==="el"?o=6:s.ty==="sr"&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,s,o,e);var c,g=i.length,_;for(c=0;c<g;c+=1)i[c].closed||(_={transforms:a.addTransformSequence(i[c].transforms),trNodes:[]},this.styledShapes.push(_),i[c].elements.push(_))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,s,i)}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,s){var i={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(s),transforms:[],elements:[],closed:e.hd===!0},a={};if(e.ty==="fl"||e.ty==="st"?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(i.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(i.lc=lineCapEnum[e.lc||2],i.lj=lineJoinEnum[e.lj||2],e.lj==1&&(i.ml=e.ml),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(i.wi=a.w.v),e.d){var o=new DashProperty(this,e.d,"canvas",this);a.d=o,a.d.k||(i.da=a.d.dashArray,i.do=a.d.dashoffset[0])}}else i.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(i),a.style=i,a},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var s={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return s},CVShapeElement.prototype.createShapeElement=function(e){var s=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(s),this.addShapeToModifiers(s),s},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,s=this.itemsData.length;for(e=0;e<s;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),s=this.dynamicProperties.length,e=0;e<s;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var s,i=this.stylesList.length;for(s=0;s<i;s+=1)this.stylesList[s].closed||this.stylesList[s].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s].closed=!0},CVShapeElement.prototype.searchShapes=function(e,s,i,a,o){var c,g=e.length-1,_,b,$=[],et=[],ot,rt,at,it=[].concat(o);for(c=g;c>=0;c-=1){if(ot=this.searchProcessedElement(e[c]),ot?s[c]=i[ot-1]:e[c]._shouldRender=a,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs")ot?s[c].style.closed=!1:s[c]=this.createStyleElement(e[c],it),$.push(s[c].style);else if(e[c].ty==="gr"){if(!ot)s[c]=this.createGroupElement(e[c]);else for(b=s[c].it.length,_=0;_<b;_+=1)s[c].prevViewData[_]=s[c].it[_];this.searchShapes(e[c].it,s[c].it,s[c].prevViewData,a,it)}else e[c].ty==="tr"?(ot||(at=this.createTransformElement(e[c]),s[c]=at),it.push(s[c]),this.addTransformToStyleList(s[c])):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?ot||(s[c]=this.createShapeElement(e[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(ot?(rt=s[c],rt.closed=!1):(rt=ShapeModifiers.getModifier(e[c].ty),rt.init(this,e[c]),s[c]=rt,this.shapeModifiers.push(rt)),et.push(rt)):e[c].ty==="rp"&&(ot?(rt=s[c],rt.closed=!0):(rt=ShapeModifiers.getModifier(e[c].ty),s[c]=rt,rt.init(this,e,c,s),this.shapeModifiers.push(rt),a=!1),et.push(rt));this.addProcessedElement(e[c],c+1)}for(this.removeTransformFromStyleList(),this.closeStyles($),g=et.length,c=0;c<g;c+=1)et[c].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,s){(e._opMdf||s.op._mdf||this._isFirstFrame)&&(s.opacity=e.opacity,s.opacity*=s.op.v,s._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,s=this.stylesList.length,i,a,o,c,g,_,b=this.globalData.renderer,$=this.globalData.canvasContext,et,ot;for(e=0;e<s;e+=1)if(ot=this.stylesList[e],et=ot.type,!((et==="st"||et==="gs")&&ot.wi===0||!ot.data._shouldRender||ot.coOp===0||this.globalData.currentGlobalAlpha===0)){for(b.save(),g=ot.elements,et==="st"||et==="gs"?(b.ctxStrokeStyle(et==="st"?ot.co:ot.grd),b.ctxLineWidth(ot.wi),b.ctxLineCap(ot.lc),b.ctxLineJoin(ot.lj),b.ctxMiterLimit(ot.ml||0)):b.ctxFillStyle(et==="fl"?ot.co:ot.grd),b.ctxOpacity(ot.coOp),et!=="st"&&et!=="gs"&&$.beginPath(),b.ctxTransform(ot.preTransforms.finalTransform.props),a=g.length,i=0;i<a;i+=1){for((et==="st"||et==="gs")&&($.beginPath(),ot.da&&($.setLineDash(ot.da),$.lineDashOffset=ot.do)),_=g[i].trNodes,c=_.length,o=0;o<c;o+=1)_[o].t==="m"?$.moveTo(_[o].p[0],_[o].p[1]):_[o].t==="c"?$.bezierCurveTo(_[o].pts[0],_[o].pts[1],_[o].pts[2],_[o].pts[3],_[o].pts[4],_[o].pts[5]):$.closePath();(et==="st"||et==="gs")&&(b.ctxStroke(),ot.da&&$.setLineDash(this.dashResetter))}et!=="st"&&et!=="gs"&&this.globalData.renderer.ctxFill(ot.r),b.restore()}},CVShapeElement.prototype.renderShape=function(e,s,i,a){var o,c=s.length-1,g;for(g=e,o=c;o>=0;o-=1)s[o].ty==="tr"?(g=i[o].transform,this.renderShapeTransform(e,g)):s[o].ty==="sh"||s[o].ty==="el"||s[o].ty==="rc"||s[o].ty==="sr"?this.renderPath(s[o],i[o]):s[o].ty==="fl"?this.renderFill(s[o],i[o],g):s[o].ty==="st"?this.renderStroke(s[o],i[o],g):s[o].ty==="gf"||s[o].ty==="gs"?this.renderGradientFill(s[o],i[o],g):s[o].ty==="gr"?this.renderShape(g,s[o].it,i[o].it):s[o].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,s){if(this._isFirstFrame||s._mdf||e.transforms._mdf){var i=e.trNodes,a=s.paths,o,c,g,_=a._length;i.length=0;var b=e.transforms.finalTransform;for(g=0;g<_;g+=1){var $=a.shapes[g];if($&&$.v){for(c=$._length,o=1;o<c;o+=1)o===1&&i.push({t:"m",p:b.applyToPointArray($.v[0][0],$.v[0][1],0)}),i.push({t:"c",pts:b.applyToTriplePoints($.o[o-1],$.i[o],$.v[o])});c===1&&i.push({t:"m",p:b.applyToPointArray($.v[0][0],$.v[0][1],0)}),$.c&&c&&(i.push({t:"c",pts:b.applyToTriplePoints($.o[o-1],$.i[0],$.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,s){if(e.hd!==!0&&e._shouldRender){var i,a=s.styledShapes.length;for(i=0;i<a;i+=1)this.renderStyledShape(s.styledShapes[i],s.sh)}},CVShapeElement.prototype.renderFill=function(e,s,i){var a=s.style;(s.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||i._opMdf||this._isFirstFrame)&&(a.coOp=s.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,s,i){var a=s.style,o;if(!a.grd||s.g._mdf||s.s._mdf||s.e._mdf||e.t!==1&&(s.h._mdf||s.a._mdf)){var c=this.globalData.canvasContext,g=s.s.v,_=s.e.v;if(e.t===1)o=c.createLinearGradient(g[0],g[1],_[0],_[1]);else{var b=Math.sqrt(Math.pow(g[0]-_[0],2)+Math.pow(g[1]-_[1],2)),$=Math.atan2(_[1]-g[1],_[0]-g[0]),et=s.h.v;et>=1?et=.99:et<=-1&&(et=-.99);var ot=b*et,rt=Math.cos($+s.a.v)*ot+g[0],at=Math.sin($+s.a.v)*ot+g[1];o=c.createRadialGradient(rt,at,0,g[0],g[1],b)}var it,nt=e.g.p,dt=s.g.c,_e=1;for(it=0;it<nt;it+=1)s.g._hasOpacity&&s.g._collapsable&&(_e=s.g.o[it*2+1]),o.addColorStop(dt[it*4]/100,"rgba("+dt[it*4+1]+","+dt[it*4+2]+","+dt[it*4+3]+","+_e+")");a.grd=o}a.coOp=s.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(e,s,i){var a=s.style,o=s.d;o&&(o._mdf||this._isFirstFrame)&&(a.da=o.dashArray,a.do=o.dashoffset[0]),(s.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||i._opMdf||this._isFirstFrame)&&(a.coOp=s.o.v*i.opacity),(s.w._mdf||this._isFirstFrame)&&(a.wi=s.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,s,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,s,i)}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 s=!1;e.fc?(s=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=s;var i=!1;e.sc&&(i=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var a=this.globalData.fontManager.getFontByName(e.f),o,c,g=e.l,_=this.mHelper;this.stroke=i,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,c=e.finalText.length;var b,$,et,ot,rt,at,it,nt,dt,_e,tt=this.data.singleShape,j=e.tr*.001*e.finalSize,st=0,ut=0,ct=!0,gt=0;for(o=0;o<c;o+=1){b=this.globalData.fontManager.getCharData(e.finalText[o],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),$=b&&b.data||{},_.reset(),tt&&g[o].n&&(st=-j,ut+=e.yOffset,ut+=ct?1:0,ct=!1),rt=$.shapes?$.shapes[0].it:[],it=rt.length,_.scale(e.finalSize/100,e.finalSize/100),tt&&this.applyTextPropertiesToMatrix(e,_,g[o].line,st,ut),dt=createSizedArray(it-1);var mt=0;for(at=0;at<it;at+=1)if(rt[at].ty==="sh"){for(ot=rt[at].ks.k.i.length,nt=rt[at].ks.k,_e=[],et=1;et<ot;et+=1)et===1&&_e.push(_.applyToX(nt.v[0][0],nt.v[0][1],0),_.applyToY(nt.v[0][0],nt.v[0][1],0)),_e.push(_.applyToX(nt.o[et-1][0],nt.o[et-1][1],0),_.applyToY(nt.o[et-1][0],nt.o[et-1][1],0),_.applyToX(nt.i[et][0],nt.i[et][1],0),_.applyToY(nt.i[et][0],nt.i[et][1],0),_.applyToX(nt.v[et][0],nt.v[et][1],0),_.applyToY(nt.v[et][0],nt.v[et][1],0));_e.push(_.applyToX(nt.o[et-1][0],nt.o[et-1][1],0),_.applyToY(nt.o[et-1][0],nt.o[et-1][1],0),_.applyToX(nt.i[0][0],nt.i[0][1],0),_.applyToY(nt.i[0][0],nt.i[0][1],0),_.applyToX(nt.v[0][0],nt.v[0][1],0),_.applyToY(nt.v[0][0],nt.v[0][1],0)),dt[mt]=_e,mt+=1}tt&&(st+=g[o].l,st+=j),this.textSpans[gt]?this.textSpans[gt].elem=dt:this.textSpans[gt]={elem:dt},gt+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.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 s,i,a,o,c,g,_=this.textAnimator.renderedLetters,b=this.textProperty.currentData.l;i=b.length;var $,et=null,ot=null,rt=null,at,it,nt=this.globalData.renderer;for(s=0;s<i;s+=1)if(!b[s].n){if($=_[s],$&&(nt.save(),nt.ctxTransform($.p),nt.ctxOpacity($.o)),this.fill){for($&&$.fc?et!==$.fc&&(nt.ctxFillStyle($.fc),et=$.fc):et!==this.values.fill&&(et=this.values.fill,nt.ctxFillStyle(this.values.fill)),at=this.textSpans[s].elem,o=at.length,this.globalData.canvasContext.beginPath(),a=0;a<o;a+=1)for(it=at[a],g=it.length,this.globalData.canvasContext.moveTo(it[0],it[1]),c=2;c<g;c+=6)this.globalData.canvasContext.bezierCurveTo(it[c],it[c+1],it[c+2],it[c+3],it[c+4],it[c+5]);this.globalData.canvasContext.closePath(),nt.ctxFill()}if(this.stroke){for($&&$.sw?rt!==$.sw&&(rt=$.sw,nt.ctxLineWidth($.sw)):rt!==this.values.sWidth&&(rt=this.values.sWidth,nt.ctxLineWidth(this.values.sWidth)),$&&$.sc?ot!==$.sc&&(ot=$.sc,nt.ctxStrokeStyle($.sc)):ot!==this.values.stroke&&(ot=this.values.stroke,nt.ctxStrokeStyle(this.values.stroke)),at=this.textSpans[s].elem,o=at.length,this.globalData.canvasContext.beginPath(),a=0;a<o;a+=1)for(it=at[a],g=it.length,this.globalData.canvasContext.moveTo(it[0],it[1]),c=2;c<g;c+=6)this.globalData.canvasContext.bezierCurveTo(it[c],it[c+1],it[c+2],it[c+3],it[c+4],it[c+5]);this.globalData.canvasContext.closePath(),nt.ctxStroke()}$&&this.globalData.renderer.restore()}};function CVImageElement(e,s,i){this.assetData=s.getAssetData(e.refId),this.img=s.imageLoader.getAsset(this.assetData),this.initElement(e,s,i)}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 s=e.getContext("2d"),i=this.img.width,a=this.img.height,o=i/a,c=this.assetData.w/this.assetData.h,g,_,b=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>c&&b==="xMidYMid slice"||o<c&&b!=="xMidYMid slice"?(_=a,g=_*c):(g=i,_=g/c),s.drawImage(this.img,(i-g)/2,(a-_)/2,g,_,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};function CVSolidElement(e,s,i){this.initElement(e,s,i)}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)};function CanvasRendererBase(){}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){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||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,s,i,a){this.canvasContext.fillRect(e,s,i,a)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var s=this.animationItem.container.style;s.width="100%",s.height="100%";var i="0px 0px 0px";s.transformOrigin=i,s.mozTransformOrigin=i,s.webkitTransformOrigin=i,s["-webkit-transform"]=i,s.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,s){this.reset();var i,a;e?(i=e,a=s,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=a):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,a=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=a*this.renderConfig.dpr);var o,c;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var g=this.renderConfig.preserveAspectRatio.split(" "),_=g[1]||"meet",b=g[0]||"xMidYMid",$=b.substr(0,4),et=b.substr(4);o=i/a,c=this.transformCanvas.w/this.transformCanvas.h,c>o&&_==="meet"||c<o&&_==="slice"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr)),$==="xMid"&&(c<o&&_==="meet"||c>o&&_==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:$==="xMax"&&(c<o&&_==="meet"||c>o&&_==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(a/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,et==="YMid"&&(c>o&&_==="meet"||c<o&&_==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:et==="YMax"&&(c>o&&_==="meet"||c<o&&_==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,s=this.layers?this.layers.length:0;for(e=s-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,s){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!s||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||s,this.globalData.projectInterface.currentFrame=e;var i,a=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var s=this.elements;if(!(s[e]||this.layers[e].ty===99)){var i=this.createItem(this.layers[e],this,this.globalData);s[e]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};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(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,s=15;for(e=0;e<s;e+=1){var i=new CanvasContext;this.stack[e]=i}this._length=s,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=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,s=0;for(s=this._length;s<e;s+=1)this.stack[s]=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 s=this.stack[this.cArrPos],i=s.transform,a,o=this.cTr.props;for(a=0;a<16;a+=1)o[a]=i[a];if(e){this.nativeContext.restore();var c=this.stack[this.cArrPos+1];this.appliedFillStyle=c.fillStyle,this.appliedStrokeStyle=c.strokeStyle,this.appliedLineWidth=c.lineWidth,this.appliedLineCap=c.lineCap,this.appliedLineJoin=c.lineJoin,this.appliedMiterLimit=c.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||s.opacity!==-1&&this.currentOpacity!==s.opacity)&&(this.nativeContext.globalAlpha=s.opacity,this.currentOpacity=s.opacity),this.currentFillStyle=s.fillStyle,this.currentStrokeStyle=s.strokeStyle,this.currentLineWidth=s.lineWidth,this.currentLineCap=s.lineCap,this.currentLineJoin=s.lineJoin,this.currentMiterLimit=s.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var s=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i=this.stack[this.cArrPos],a;for(a=0;a<16;a+=1)i.transform[a]=s[a];this.cArrPos+=1;var o=this.stack[this.cArrPos];o.opacity=i.opacity,o.fillStyle=i.fillStyle,o.strokeStyle=i.strokeStyle,o.lineWidth=i.lineWidth,o.lineCap=i.lineCap,o.lineJoin=i.lineJoin,o.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 s=this.cTr;this.transformMat.multiply(s),s.cloneFromProps(this.transformMat.props);var i=s.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(e){var s=this.stack[this.cArrPos].opacity;s*=e<0?0:e,this.stack[this.cArrPos].opacity!==s&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=s)},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,s,i,a){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,s,i,a)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,s,i){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var s,i=this.layers.length;for(s=i-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()},CVCompElement.prototype.destroy=function(){var e,s=this.layers.length;for(e=s-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)};function CanvasRenderer(e,s){this.animationItem=e,this.renderConfig={clearCanvas:s&&s.clearCanvas!==void 0?s.clearCanvas:!0,context:s&&s.context||null,progressiveLoad:s&&s.progressiveLoad||!1,preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",className:s&&s.className||"",id:s&&s.id||"",runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.renderConfig.dpr=s&&s.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=s&&s.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))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}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),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var s=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var i=this.finalTransform.mat.toCSS();s.transform=i,s.webkitTransform=i}this.finalTransform._opMdf&&(s.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;function HSolidElement(e,s,i){this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.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"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,s,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}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 s=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",s.w),e.setAttribute("height",s.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,s){var i,a=e.length;for(i=0;i<a;i+=1)s=e[i].mProps.v.applyToPointArray(s[0],s[1],0);return s},HShapeElement.prototype.calculateShapeBoundingBox=function(e,s){var i=e.sh.v,a=e.transformers,o,c=i._length,g,_,b,$;if(!(c<=1)){for(o=0;o<c-1;o+=1)g=this.getTransformedPoint(a,i.v[o]),_=this.getTransformedPoint(a,i.o[o]),b=this.getTransformedPoint(a,i.i[o+1]),$=this.getTransformedPoint(a,i.v[o+1]),this.checkBounds(g,_,b,$,s);i.c&&(g=this.getTransformedPoint(a,i.v[o]),_=this.getTransformedPoint(a,i.o[o]),b=this.getTransformedPoint(a,i.i[0]),$=this.getTransformedPoint(a,i.v[0]),this.checkBounds(g,_,b,$,s))}},HShapeElement.prototype.checkBounds=function(e,s,i,a,o){this.getBoundsOfCurve(e,s,i,a);var c=this.shapeBoundingBox;o.x=bmMin(c.left,o.x),o.xMax=bmMax(c.right,o.xMax),o.y=bmMin(c.top,o.y),o.yMax=bmMax(c.bottom,o.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,s,i,a){for(var o=[[e[0],a[0]],[e[1],a[1]]],c,g,_,b,$,et,ot,rt=0;rt<2;++rt)g=6*e[rt]-12*s[rt]+6*i[rt],c=-3*e[rt]+9*s[rt]-9*i[rt]+3*a[rt],_=3*s[rt]-3*e[rt],g|=0,c|=0,_|=0,c===0&&g===0||(c===0?(b=-_/g,b>0&&b<1&&o[rt].push(this.calculateF(b,e,s,i,a,rt))):($=g*g-4*_*c,$>=0&&(et=(-g+bmSqrt($))/(2*c),et>0&&et<1&&o[rt].push(this.calculateF(et,e,s,i,a,rt)),ot=(-g-bmSqrt($))/(2*c),ot>0&&ot<1&&o[rt].push(this.calculateF(ot,e,s,i,a,rt)))));this.shapeBoundingBox.left=bmMin.apply(null,o[0]),this.shapeBoundingBox.top=bmMin.apply(null,o[1]),this.shapeBoundingBox.right=bmMax.apply(null,o[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,o[1])},HShapeElement.prototype.calculateF=function(e,s,i,a,o,c){return bmPow(1-e,3)*s[c]+3*bmPow(1-e,2)*e*i[c]+3*(1-e)*bmPow(e,2)*a[c]+bmPow(e,3)*o[c]},HShapeElement.prototype.calculateBoundingBox=function(e,s){var i,a=e.length;for(i=0;i<a;i+=1)e[i]&&e[i].sh?this.calculateShapeBoundingBox(e[i],s):e[i]&&e[i].it?this.calculateBoundingBox(e[i].it,s):e[i]&&e[i].style&&e[i].w&&this.expandStrokeBoundingBox(e[i].w,s)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,s){var i=0;if(e.keyframes){for(var a=0;a<e.keyframes.length;a+=1){var o=e.keyframes[a].s;o>i&&(i=o)}i*=e.mult}else i=e.v*e.mult;s.x-=i,s.xMax+=i,s.y-=i,s.yMax+=i},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,s=999999;if(e.x=s,e.xMax=-s,e.y=s,e.yMax=-s,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 i=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),i=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),i=!0),i||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var a=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=o,a.webkitTransform=o}}};function HTextElement(e,s,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var s=this.innerElem.style,i=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";s.fill=i,s.color=i,e.sc&&(s.stroke=this.buildColor(e.sc),s.strokeWidth=e.sw+"px");var a=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(s.fontSize=e.finalSize+"px",s.lineHeight=e.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{s.fontFamily=a.fFamily;var o=e.fWeight,c=e.fStyle;s.fontStyle=c,s.fontWeight=o}var g,_,b=e.l;_=b.length;var $,et,ot,rt=this.mHelper,at,it="",nt=0;for(g=0;g<_;g+=1){if(this.globalData.fontManager.chars?(this.textPaths[nt]?$=this.textPaths[nt]:($=createNS("path"),$.setAttribute("stroke-linecap",lineCapEnum[1]),$.setAttribute("stroke-linejoin",lineJoinEnum[2]),$.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[nt]?(et=this.textSpans[nt],ot=et.children[0]):(et=createTag("div"),et.style.lineHeight=0,ot=createNS("svg"),ot.appendChild($),styleDiv(et)))):this.isMasked?$=this.textPaths[nt]?this.textPaths[nt]:createNS("text"):this.textSpans[nt]?(et=this.textSpans[nt],$=this.textPaths[nt]):(et=createTag("span"),styleDiv(et),$=createTag("span"),styleDiv($),et.appendChild($)),this.globalData.fontManager.chars){var dt=this.globalData.fontManager.getCharData(e.finalText[g],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),_e;if(dt?_e=dt.data:_e=null,rt.reset(),_e&&_e.shapes&&_e.shapes.length&&(at=_e.shapes[0].it,rt.scale(e.finalSize/100,e.finalSize/100),it=this.createPathShape(rt,at),$.setAttribute("d",it)),this.isMasked)this.innerElem.appendChild($);else{if(this.innerElem.appendChild(et),_e&&_e.shapes){document.body.appendChild(ot);var tt=ot.getBBox();ot.setAttribute("width",tt.width+2),ot.setAttribute("height",tt.height+2),ot.setAttribute("viewBox",tt.x-1+" "+(tt.y-1)+" "+(tt.width+2)+" "+(tt.height+2));var j=ot.style,st="translate("+(tt.x-1)+"px,"+(tt.y-1)+"px)";j.transform=st,j.webkitTransform=st,b[g].yOffset=tt.y-1}else ot.setAttribute("width",1),ot.setAttribute("height",1);et.appendChild(ot)}}else if($.textContent=b[g].val,$.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild($);else{this.innerElem.appendChild(et);var ut=$.style,ct="translate3d(0,"+-e.finalSize/1.2+"px,0)";ut.transform=ct,ut.webkitTransform=ct}this.isMasked?this.textSpans[nt]=$:this.textSpans[nt]=et,this.textSpans[nt].style.display="block",this.textPaths[nt]=$,nt+=1}for(;nt<this.textSpans.length;)this.textSpans[nt].style.display="none",nt+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var s="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=s,e.webkitTransform=s}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var i,a,o=0,c=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;a=g.length;var _,b,$;for(i=0;i<a;i+=1)g[i].n?o+=1:(b=this.textSpans[i],$=this.textPaths[i],_=c[o],o+=1,_._mdf.m&&(this.isMasked?b.setAttribute("transform",_.m):(b.style.webkitTransform=_.m,b.style.transform=_.m)),b.style.opacity=_.o,_.sw&&_._mdf.sw&&$.setAttribute("stroke-width",_.sw),_.sc&&_._mdf.sc&&$.setAttribute("stroke",_.sc),_.fc&&_._mdf.fc&&($.setAttribute("fill",_.fc),$.style.color=_.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var et=this.innerElem.getBBox();this.currentBBox.w!==et.width&&(this.currentBBox.w=et.width,this.svgElement.setAttribute("width",et.width)),this.currentBBox.h!==et.height&&(this.currentBBox.h=et.height,this.svgElement.setAttribute("height",et.height));var ot=1;if(this.currentBBox.w!==et.width+ot*2||this.currentBBox.h!==et.height+ot*2||this.currentBBox.x!==et.x-ot||this.currentBBox.y!==et.y-ot){this.currentBBox.w=et.width+ot*2,this.currentBBox.h=et.height+ot*2,this.currentBBox.x=et.x-ot,this.currentBBox.y=et.y-ot,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var rt="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=rt,e.webkitTransform=rt}}}};function HCameraElement(e,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var o,c=e.ks.or.k.length;for(o=0;o<c;o+=1)e.ks.or.k[o].to=null,e.ks.or.k[o].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,s=this.comp.threeDElements.length,i,a,o;for(e=0;e<s;e+=1)if(i=this.comp.threeDElements[e],i.type==="3d"){a=i.perspectiveElem.style,o=i.container.style;var c=this.pe.v+"px",g="0px 0px 0px",_="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.perspective=c,a.webkitPerspective=c,o.transformOrigin=g,o.mozTransformOrigin=g,o.webkitTransformOrigin=g,a.transform=_,a.webkitTransform=_}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,s,i;if(this.hierarchy)for(i=this.hierarchy.length,s=0;s<i;s+=1)e=this.hierarchy[s].finalTransform.mProp._mdf||e;if(e||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(i=this.hierarchy.length-1,s=i;s>=0;s-=1){var a=this.hierarchy[s].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var o;this.p?o=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:o=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var c=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),g=[o[0]/c,o[1]/c,o[2]/c],_=Math.sqrt(g[2]*g[2]+g[0]*g[0]),b=Math.atan2(g[1],_),$=Math.atan2(g[0],-g[2]);this.mat.rotateY($).rotateX(-b)}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 et=!this._prevMat.equals(this.mat);if((et||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var ot,rt,at;for(s=0;s<i;s+=1)if(ot=this.comp.threeDElements[s],ot.type==="3d"){if(et){var it=this.mat.toCSS();at=ot.container.style,at.transform=it,at.webkitTransform=it}this.pe._mdf&&(rt=ot.perspectiveElem.style,rt.perspective=this.pe.v+"px",rt.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};function HImageElement(e,s,i){this.assetData=s.getAssetData(e.refId),this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),s=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(s),s.crossOrigin="anonymous",s.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,s){var i=e.getBaseElement();if(i){var a=this.layers[s];if(!a.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(i,s);else{for(var o=0,c,g,_;o<s;)this.elements[o]&&this.elements[o]!==!0&&this.elements[o].getBaseElement&&(g=this.elements[o],_=this.layers[o].ddd?this.getThreeDContainerByPos(o):g.getBaseElement(),c=_||c),o+=1;c?(!a.ddd||!this.supports3d)&&this.layerElement.insertBefore(i,c):(!a.ddd||!this.supports3d)&&this.layerElement.appendChild(i)}else this.addTo3dContainer(i,s)}},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 s=0,i=this.threeDElements.length;s<i;){if(this.threeDElements[s].startPos<=e&&this.threeDElements[s].endPos>=e)return this.threeDElements[s].perspectiveElem;s+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,s){var i=createTag("div"),a,o;styleDiv(i);var c=createTag("div");if(styleDiv(c),s==="3d"){a=i.style,a.width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px";var g="50% 50%";a.webkitTransformOrigin=g,a.mozTransformOrigin=g,a.transformOrigin=g,o=c.style;var _="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";o.transform=_,o.webkitTransform=_}i.appendChild(c);var b={container:c,perspectiveElem:i,startPos:e,endPos:e,type:s};return this.threeDElements.push(b),b},HybridRendererBase.prototype.build3dContainers=function(){var e,s=this.layers.length,i,a="";for(e=0;e<s;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(a!=="3d"&&(a="3d",i=this.createThreeDContainer(e,"3d")),i.endPos=Math.max(i.endPos,e)):(a!=="2d"&&(a="2d",i=this.createThreeDContainer(e,"2d")),i.endPos=Math.max(i.endPos,e));for(s=this.threeDElements.length,e=s-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,s){for(var i=0,a=this.threeDElements.length;i<a;){if(s<=this.threeDElements[i].endPos){for(var o=this.threeDElements[i].startPos,c;o<s;)this.elements[o]&&this.elements[o].getBaseElement&&(c=this.elements[o].getBaseElement()),o+=1;c?this.threeDElements[i].container.insertBefore(e,c):this.threeDElements[i].container.appendChild(e);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(e){var s=createTag("div"),i=this.animationItem.wrapper,a=s.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=s,styleDiv(s),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&s.setAttribute("class",this.renderConfig.className),i.appendChild(s),a.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var c=createNS("defs");o.appendChild(c),this.data=e,this.setupGlobalData(e,o),this.globalData.defs=c,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,s=this.layers?this.layers.length:0;for(e=0;e<s;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=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,i=e/s,a=this.globalData.compSize.w/this.globalData.compSize.h,o,c,g,_;a>i?(o=e/this.globalData.compSize.w,c=e/this.globalData.compSize.w,g=0,_=(s-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(o=s/this.globalData.compSize.h,c=s/this.globalData.compSize.h,g=(e-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,_=0);var b=this.resizerElem.style;b.webkitTransform="matrix3d("+o+",0,0,0,0,"+c+",0,0,0,0,1,0,"+g+","+_+",0,1)",b.transform=b.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=this.globalData.compSize.w,s=this.globalData.compSize.h,i,a=this.threeDElements.length;for(i=0;i<a;i+=1){var o=this.threeDElements[i].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(s,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var s,i=e.length,a=createTag("div");for(s=0;s<i;s+=1)if(e[s].xt){var o=this.createComp(e[s],a,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}};function HCompElement(e,s,i){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0}}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,s){for(var i=0,a;i<s;)this.elements[i]&&this.elements[i].getBaseElement&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(e,a):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.filterSize.y||"-100%"},runExpressions:!s||s.runExpressions===void 0||s.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"}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(){return function(e){function s(i){for(var a=0,o=e.layers.length;a<o;){if(e.layers[a].nm===i||e.layers[a].ind===i)return e.elements[a].layerInterface;a+=1}return null}return Object.defineProperty(s,"_name",{value:e.data.nm}),s.layer=s,s.pixelAspect=1,s.height=e.data.h||e.globalData.compSize.h,s.width=e.data.w||e.globalData.compSize.w,s.pixelAspect=1,s.frameDuration=1/e.globalData.frameRate,s.displayStartTime=0,s.numLayers=e.layers.length,s}}();function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$2(e)}function seedRandom(e,s){var i=this,a=256,o=6,c=52,g="random",_=s.pow(a,o),b=s.pow(2,c),$=b*2,et=a-1,ot;function rt(j,st,ut){var ct=[];st=st===!0?{entropy:!0}:st||{};var gt=dt(nt(st.entropy?[j,tt(e)]:j===null?_e():j,3),ct),mt=new at(ct),_t=function(){for(var wt=mt.g(o),St=_,Tt=0;wt<b;)wt=(wt+Tt)*a,St*=a,Tt=mt.g(1);for(;wt>=$;)wt/=2,St/=2,Tt>>>=1;return(wt+Tt)/St};return _t.int32=function(){return mt.g(4)|0},_t.quick=function(){return mt.g(4)/4294967296},_t.double=_t,dt(tt(mt.S),e),(st.pass||ut||function(kt,wt,St,Tt){return Tt&&(Tt.S&&it(Tt,mt),kt.state=function(){return it(mt,{})}),St?(s[g]=kt,wt):kt})(_t,gt,"global"in st?st.global:this==s,st.state)}s["seed"+g]=rt;function at(j){var st,ut=j.length,ct=this,gt=0,mt=ct.i=ct.j=0,_t=ct.S=[];for(ut||(j=[ut++]);gt<a;)_t[gt]=gt++;for(gt=0;gt<a;gt++)_t[gt]=_t[mt=et&mt+j[gt%ut]+(st=_t[gt])],_t[mt]=st;ct.g=function(kt){for(var wt,St=0,Tt=ct.i,Mt=ct.j,xt=ct.S;kt--;)wt=xt[Tt=et&Tt+1],St=St*a+xt[et&(xt[Tt]=xt[Mt=et&Mt+wt])+(xt[Mt]=wt)];return ct.i=Tt,ct.j=Mt,St}}function it(j,st){return st.i=j.i,st.j=j.j,st.S=j.S.slice(),st}function nt(j,st){var ut=[],ct=_typeof$2(j),gt;if(st&&ct=="object")for(gt in j)try{ut.push(nt(j[gt],st-1))}catch{}return ut.length?ut:ct=="string"?j:j+"\0"}function dt(j,st){for(var ut=j+"",ct,gt=0;gt<ut.length;)st[et&gt]=et&(ct^=st[et&gt]*19)+ut.charCodeAt(gt++);return tt(st)}function _e(){try{var j=new Uint8Array(a);return(i.crypto||i.msCrypto).getRandomValues(j),tt(j)}catch{var st=i.navigator,ut=st&&st.plugins;return[+new Date,i,ut,i.screen,tt(e)]}}function tt(j){return String.fromCharCode.apply(0,j)}dt(s.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,s){return e==="number"||s instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var s=_typeof$1(e);if(s==="number"||e instanceof Number||s==="boolean")return-e;if($bm_isInstanceOfArray(e)){var i,a=e.length,o=[];for(i=0;i<a;i+=1)o[i]=-e[i];return o}return e.propType?e.v:-e}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,s){var i=_typeof$1(e),a=_typeof$1(s);if(isNumerable(i,e)&&isNumerable(a,s)||i==="string"||a==="string")return e+s;if($bm_isInstanceOfArray(e)&&isNumerable(a,s))return e=e.slice(0),e[0]+=s,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=e+s[0],s;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(s)){for(var o=0,c=e.length,g=s.length,_=[];o<c||o<g;)(typeof e[o]=="number"||e[o]instanceof Number)&&(typeof s[o]=="number"||s[o]instanceof Number)?_[o]=e[o]+s[o]:_[o]=s[o]===void 0?e[o]:e[o]||s[o],o+=1;return _}return 0}var add=sum;function sub(e,s){var i=_typeof$1(e),a=_typeof$1(s);if(isNumerable(i,e)&&isNumerable(a,s))return i==="string"&&(e=parseInt(e,10)),a==="string"&&(s=parseInt(s,10)),e-s;if($bm_isInstanceOfArray(e)&&isNumerable(a,s))return e=e.slice(0),e[0]-=s,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=e-s[0],s;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(s)){for(var o=0,c=e.length,g=s.length,_=[];o<c||o<g;)(typeof e[o]=="number"||e[o]instanceof Number)&&(typeof s[o]=="number"||s[o]instanceof Number)?_[o]=e[o]-s[o]:_[o]=s[o]===void 0?e[o]:e[o]||s[o],o+=1;return _}return 0}function mul(e,s){var i=_typeof$1(e),a=_typeof$1(s),o;if(isNumerable(i,e)&&isNumerable(a,s))return e*s;var c,g;if($bm_isInstanceOfArray(e)&&isNumerable(a,s)){for(g=e.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e[c]*s;return o}if(isNumerable(i,e)&&$bm_isInstanceOfArray(s)){for(g=s.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e*s[c];return o}return 0}function div(e,s){var i=_typeof$1(e),a=_typeof$1(s),o;if(isNumerable(i,e)&&isNumerable(a,s))return e/s;var c,g;if($bm_isInstanceOfArray(e)&&isNumerable(a,s)){for(g=e.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e[c]/s;return o}if(isNumerable(i,e)&&$bm_isInstanceOfArray(s)){for(g=s.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e/s[c];return o}return 0}function mod(e,s){return typeof e=="string"&&(e=parseInt(e,10)),typeof s=="string"&&(s=parseInt(s,10)),e%s}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,s,i){if(s>i){var a=i;i=s,s=a}return Math.min(Math.max(e,s),i)}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,s){if(typeof e=="number"||e instanceof Number)return s=s||0,Math.abs(e-s);s||(s=helperLengthArray);var i,a=Math.min(e.length,s.length),o=0;for(i=0;i<a;i+=1)o+=Math.pow(s[i]-e[i],2);return Math.sqrt(o)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var s=e[0],i=e[1],a=e[2],o=Math.max(s,i,a),c=Math.min(s,i,a),g,_,b=(o+c)/2;if(o===c)g=0,_=0;else{var $=o-c;switch(_=b>.5?$/(2-o-c):$/(o+c),o){case s:g=(i-a)/$+(i<a?6:0);break;case i:g=(a-s)/$+2;break;case a:g=(s-i)/$+4;break}g/=6}return[g,_,b,e[3]]}function hue2rgb(e,s,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(s-e)*6*i:i<1/2?s:i<2/3?e+(s-e)*(2/3-i)*6:e}function hslToRgb(e){var s=e[0],i=e[1],a=e[2],o,c,g;if(i===0)o=a,g=a,c=a;else{var _=a<.5?a*(1+i):a+i-a*i,b=2*a-_;o=hue2rgb(b,_,s+1/3),c=hue2rgb(b,_,s),g=hue2rgb(b,_,s-1/3)}return[o,c,g,e[3]]}function linear(e,s,i,a,o){if((a===void 0||o===void 0)&&(a=s,o=i,s=0,i=1),i<s){var c=i;i=s,s=c}if(e<=s)return a;if(e>=i)return o;var g=i===s?0:(e-s)/(i-s);if(!a.length)return a+(o-a)*g;var _,b=a.length,$=createTypedArray("float32",b);for(_=0;_<b;_+=1)$[_]=a[_]+(o[_]-a[_])*g;return $}function random(e,s){if(s===void 0&&(e===void 0?(e=0,s=1):(s=e,e=void 0)),s.length){var i,a=s.length;e||(e=createTypedArray("float32",a));var o=createTypedArray("float32",a),c=BMMath.random();for(i=0;i<a;i+=1)o[i]=e[i]+c*(s[i]-e[i]);return o}e===void 0&&(e=0);var g=BMMath.random();return e+g*(s-e)}function createPath(e,s,i,a){var o,c=e.length,g=shapePool.newElement();g.setPathData(!!a,c);var _=[0,0],b,$;for(o=0;o<c;o+=1)b=s&&s[o]?s[o]:_,$=i&&i[o]?i[o]:_,g.setTripleAt(e[o][0],e[o][1],$[0]+e[o][0],$[1]+e[o][1],b[0]+e[o][0],b[1]+e[o][1],o,!0);return g}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=val.indexOf("random")!==-1,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||this.data.hd!==!0,wiggle=(function e(s,i){var a,o,c=this.pv.length?this.pv.length:1,g=createTypedArray("float32",c);s=5;var _=Math.floor(time*s);for(a=0,o=0;a<_;){for(o=0;o<c;o+=1)g[o]+=-i+i*2*BMMath.random();a+=1}var b=time*s,$=b-Math.floor(b),et=createTypedArray("float32",c);if(c>1){for(o=0;o<c;o+=1)et[o]=this.pv[o]+g[o]+(-i+i*2*BMMath.random())*$;return et}return this.pv+g[0]+(-i+i*2*BMMath.random())*$}).bind(this);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));function loopInDuration(e,s){return loopIn(e,s,!0)}function loopOutDuration(e,s){return loopOut(e,s,!0)}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);function lookAt(e,s){var i=[s[0]-e[0],s[1]-e[1],s[2]-e[2]],a=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads,o=-Math.atan2(i[1],i[2])/degToRads;return[o,a,0]}function easeOut(e,s,i,a,o){return applyEase(easeOutBez,e,s,i,a,o)}function easeIn(e,s,i,a,o){return applyEase(easeInBez,e,s,i,a,o)}function ease(e,s,i,a,o){return applyEase(easeInOutBez,e,s,i,a,o)}function applyEase(e,s,i,a,o,c){o===void 0?(o=i,c=a):s=(s-i)/(a-i),s>1?s=1:s<0&&(s=0);var g=e(s);if($bm_isInstanceOfArray(o)){var _,b=o.length,$=createTypedArray("float32",b);for(_=0;_<b;_+=1)$[_]=(c[_]-o[_])*g+o[_];return $}return(c-o)*g+o}function nearestKey(e){var s,i=data.k.length,a,o;if(!data.k.length||typeof data.k[0]=="number")a=0,o=0;else if(a=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)a=1,o=data.k[0].t;else{for(s=0;s<i-1;s+=1)if(e===data.k[s].t){a=s+1,o=data.k[s].t;break}else if(e>data.k[s].t&&e<data.k[s+1].t){e-data.k[s].t>data.k[s+1].t-e?(a=s+2,o=data.k[s+1].t):(a=s+1,o=data.k[s].t);break}a===-1&&(a=s+1,o=data.k[s].t)}var c={};return c.index=a,c.time=o/elem.comp.globalData.frameRate,c}function key(e){var s,i,a;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,s={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=o.length,i=0;i<a;i+=1)s[i]=o[i],s.value[i]=o[i];return s}function framesToTime(e,s){return s||(s=elem.comp.globalData.frameRate),e/s}function timeToFrames(e,s){return!e&&e!==0&&(e=time),s||(s=elem.comp.globalData.frameRate),e*s}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,s){return typeof value=="string"?s===void 0?value.substring(e):value.substring(e,s):""}function substr(e,s){return typeof value=="string"?s===void 0?value.substr(e):value.substr(e,s):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(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)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!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,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={};e.initExpressions=s,e.resetFrame=ExpressionManager.resetFrame;function s(i){var a=0,o=[];function c(){a+=1}function g(){a-=1,a===0&&b()}function _($){o.indexOf($)===-1&&o.push($)}function b(){var $,et=o.length;for($=0;$<et;$+=1)o[$].release();o.length=0}i.renderer.compInterface=CompExpressionInterface(i.renderer),i.renderer.globalData.projectInterface.registerComposition(i.renderer),i.renderer.globalData.pushExpression=c,i.renderer.globalData.popExpression=g,i.renderer.globalData.registerExpressionProperty=_}return e}(),MaskManagerInterface=function(){function e(i,a){this._mask=i,this._data=a}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(),this._mask.op.v*100}});var s=function(a){var o=createSizedArray(a.viewData.length),c,g=a.viewData.length;for(c=0;c<g;c+=1)o[c]=new e(a.viewData[c],a.masksProperties[c]);var _=function($){for(c=0;c<g;){if(a.masksProperties[c].nm===$)return o[c];c+=1}return null};return _};return s}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},s={pv:[0,0,0],v:[0,0,0],mult:1};function i(g,_,b){Object.defineProperty(g,"velocity",{get:function(){return _.getVelocityAtTime(_.comp.currentFrame)}}),g.numKeys=_.keyframes?_.keyframes.length:0,g.key=function($){if(!g.numKeys)return 0;var et="";"s"in _.keyframes[$-1]?et=_.keyframes[$-1].s:"e"in _.keyframes[$-2]?et=_.keyframes[$-2].e:et=_.keyframes[$-2].s;var ot=b==="unidimensional"?new Number(et):Object.assign({},et);return ot.time=_.keyframes[$-1].t/_.elem.comp.globalData.frameRate,ot.value=b==="unidimensional"?et[0]:et,ot},g.valueAtTime=_.getValueAtTime,g.speedAtTime=_.getSpeedAtTime,g.velocityAtTime=_.getVelocityAtTime,g.propertyGroup=_.propertyGroup}function a(g){(!g||!("pv"in g))&&(g=e);var _=1/g.mult,b=g.pv*_,$=new Number(b);return $.value=b,i($,g,"unidimensional"),function(){return g.k&&g.getValue(),b=g.v*_,$.value!==b&&($=new Number(b),$.value=b,$[0]=b,i($,g,"unidimensional")),$}}function o(g){(!g||!("pv"in g))&&(g=s);var _=1/g.mult,b=g.data&&g.data.l||g.pv.length,$=createTypedArray("float32",b),et=createTypedArray("float32",b);return $.value=et,i($,g,"multidimensional"),function(){g.k&&g.getValue();for(var ot=0;ot<b;ot+=1)et[ot]=g.v[ot]*_,$[ot]=et[ot];return $}}function c(){return e}return function(g){return g?g.propType==="unidimensional"?a(g):o(g):c}}(),TransformExpressionInterface=function(){return function(e){function s(g){switch(g){case"scale":case"Scale":case"ADBE Scale":case 6:return s.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return s.rotation;case"ADBE Rotate X":return s.xRotation;case"ADBE Rotate Y":return s.yRotation;case"position":case"Position":case"ADBE Position":case 2:return s.position;case"ADBE Position_0":return s.xPosition;case"ADBE Position_1":return s.yPosition;case"ADBE Position_2":return s.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return s.anchorPoint;case"opacity":case"Opacity":case 11:return s.opacity;default:return null}}Object.defineProperty(s,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(s,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(s,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(s,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(s,"scale",{get:ExpressionPropertyInterface(e.s)});var i,a,o,c;return e.p?c=ExpressionPropertyInterface(e.p):(i=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(o=ExpressionPropertyInterface(e.pz))),Object.defineProperty(s,"position",{get:function(){return e.p?c():[i(),a(),o?o():0]}}),Object.defineProperty(s,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(s,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(s,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(s,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(s,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(s,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(s,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(s,"orientation",{get:ExpressionPropertyInterface(e.or)}),s}}(),LayerExpressionInterface=function(){function e($){var et=new Matrix;if($!==void 0){var ot=this._elem.finalTransform.mProp.getValueAtTime($);ot.clone(et)}else{var rt=this._elem.finalTransform.mProp;rt.applyToMatrix(et)}return et}function s($,et){var ot=this.getMatrix(et);return ot.props[12]=0,ot.props[13]=0,ot.props[14]=0,this.applyPoint(ot,$)}function i($,et){var ot=this.getMatrix(et);return this.applyPoint(ot,$)}function a($,et){var ot=this.getMatrix(et);return ot.props[12]=0,ot.props[13]=0,ot.props[14]=0,this.invertPoint(ot,$)}function o($,et){var ot=this.getMatrix(et);return this.invertPoint(ot,$)}function c($,et){if(this._elem.hierarchy&&this._elem.hierarchy.length){var ot,rt=this._elem.hierarchy.length;for(ot=0;ot<rt;ot+=1)this._elem.hierarchy[ot].finalTransform.mProp.applyToMatrix($)}return $.applyToPointArray(et[0],et[1],et[2]||0)}function g($,et){if(this._elem.hierarchy&&this._elem.hierarchy.length){var ot,rt=this._elem.hierarchy.length;for(ot=0;ot<rt;ot+=1)this._elem.hierarchy[ot].finalTransform.mProp.applyToMatrix($)}return $.inversePoint(et)}function _($){var et=new Matrix;if(et.reset(),this._elem.finalTransform.mProp.applyToMatrix(et),this._elem.hierarchy&&this._elem.hierarchy.length){var ot,rt=this._elem.hierarchy.length;for(ot=0;ot<rt;ot+=1)this._elem.hierarchy[ot].finalTransform.mProp.applyToMatrix(et);return et.inversePoint($)}return et.inversePoint($)}function b(){return[1,1,1,1]}return function($){var et;function ot(nt){at.mask=new MaskManagerInterface(nt,$)}function rt(nt){at.effect=nt}function at(nt){switch(nt){case"ADBE Root Vectors Group":case"Contents":case 2:return at.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return et;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return at.effect;case"ADBE Text Properties":return at.textInterface;default:return null}}at.getMatrix=e,at.invertPoint=g,at.applyPoint=c,at.toWorld=i,at.toWorldVec=s,at.fromWorld=o,at.fromWorldVec=a,at.toComp=i,at.fromComp=_,at.sampleImage=b,at.sourceRectAtTime=$.sourceRectAtTime.bind($),at._elem=$,et=TransformExpressionInterface($.finalTransform.mProp);var it=getDescriptor(et,"anchorPoint");return Object.defineProperties(at,{hasParent:{get:function(){return $.hierarchy.length}},parent:{get:function(){return $.hierarchy[0].layerInterface}},rotation:getDescriptor(et,"rotation"),scale:getDescriptor(et,"scale"),position:getDescriptor(et,"position"),opacity:getDescriptor(et,"opacity"),anchorPoint:it,anchor_point:it,transform:{get:function(){return et}},active:{get:function(){return $.isInRange}}}),at.startTime=$.data.st,at.index=$.data.ind,at.source=$.data.refId,at.height=$.data.ty===0?$.data.h:100,at.width=$.data.ty===0?$.data.w:100,at.inPoint=$.data.ip/$.comp.globalData.frameRate,at.outPoint=$.data.op/$.comp.globalData.frameRate,at._name=$.data.nm,at.registerMaskInterface=ot,at.registerEffectsInterface=rt,at}}(),propertyGroupFactory=function(){return function(e,s){return function(i){return i=i===void 0?1:i,i<=0?e:s(i-1)}}}(),PropertyInterface=function(){return function(e,s){var i={_name:e};function a(o){return o=o===void 0?1:o,o<=0?i:s(o-1)}return a}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:s};function s(o,c){if(o.effectsManager){var g=[],_=o.data.ef,b,$=o.effectsManager.effectElements.length;for(b=0;b<$;b+=1)g.push(i(_[b],o.effectsManager.effectElements[b],c,o));var et=o.data.ef||[],ot=function(at){for(b=0,$=et.length;b<$;){if(at===et[b].nm||at===et[b].mn||at===et[b].ix)return g[b];b+=1}return null};return Object.defineProperty(ot,"numProperties",{get:function(){return et.length}}),ot}return null}function i(o,c,g,_){function b(at){for(var it=o.ef,nt=0,dt=it.length;nt<dt;){if(at===it[nt].nm||at===it[nt].mn||at===it[nt].ix)return it[nt].ty===5?et[nt]:et[nt]();nt+=1}throw new Error}var $=propertyGroupFactory(b,g),et=[],ot,rt=o.ef.length;for(ot=0;ot<rt;ot+=1)o.ef[ot].ty===5?et.push(i(o.ef[ot],c.effectElements[ot],c.effectElements[ot].propertyGroup,_)):et.push(a(c.effectElements[ot],o.ef[ot].ty,_,$));return o.mn==="ADBE Color Control"&&Object.defineProperty(b,"color",{get:function(){return et[0]()}}),Object.defineProperties(b,{numProperties:{get:function(){return o.np}},_name:{value:o.nm},propertyGroup:{value:$}}),b.enabled=o.en!==0,b.active=b.enabled,b}function a(o,c,g,_){var b=ExpressionPropertyInterface(o.p);function $(){return c===10?g.comp.compInterface(o.p.v):b()}return o.p.setGroupProperty&&o.p.setGroupProperty(PropertyInterface("",_)),$}return e}(),ShapePathInterface=function(){return function(s,i,a){var o=i.sh;function c(_){return _==="Shape"||_==="shape"||_==="Path"||_==="path"||_==="ADBE Vector Shape"||_===2?c.path:null}var g=propertyGroupFactory(c,a);return o.setGroupProperty(PropertyInterface("Path",g)),Object.defineProperties(c,{path:{get:function(){return o.k&&o.getValue(),o}},shape:{get:function(){return o.k&&o.getValue(),o}},_name:{value:s.nm},ix:{value:s.ix},propertyIndex:{value:s.ix},mn:{value:s.mn},propertyGroup:{value:a}}),c}}(),ShapeExpressionInterface=function(){function e(it,nt,dt){var _e=[],tt,j=it?it.length:0;for(tt=0;tt<j;tt+=1)it[tt].ty==="gr"?_e.push(i(it[tt],nt[tt],dt)):it[tt].ty==="fl"?_e.push(a(it[tt],nt[tt],dt)):it[tt].ty==="st"?_e.push(g(it[tt],nt[tt],dt)):it[tt].ty==="tm"?_e.push(_(it[tt],nt[tt],dt)):it[tt].ty==="tr"||(it[tt].ty==="el"?_e.push($(it[tt],nt[tt],dt)):it[tt].ty==="sr"?_e.push(et(it[tt],nt[tt],dt)):it[tt].ty==="sh"?_e.push(ShapePathInterface(it[tt],nt[tt],dt)):it[tt].ty==="rc"?_e.push(ot(it[tt],nt[tt],dt)):it[tt].ty==="rd"?_e.push(rt(it[tt],nt[tt],dt)):it[tt].ty==="rp"?_e.push(at(it[tt],nt[tt],dt)):it[tt].ty==="gf"?_e.push(o(it[tt],nt[tt],dt)):_e.push(c(it[tt],nt[tt])));return _e}function s(it,nt,dt){var _e,tt=function(ut){for(var ct=0,gt=_e.length;ct<gt;){if(_e[ct]._name===ut||_e[ct].mn===ut||_e[ct].propertyIndex===ut||_e[ct].ix===ut||_e[ct].ind===ut)return _e[ct];ct+=1}return typeof ut=="number"?_e[ut-1]:null};tt.propertyGroup=propertyGroupFactory(tt,dt),_e=e(it.it,nt.it,tt.propertyGroup),tt.numProperties=_e.length;var j=b(it.it[it.it.length-1],nt.it[nt.it.length-1],tt.propertyGroup);return tt.transform=j,tt.propertyIndex=it.cix,tt._name=it.nm,tt}function i(it,nt,dt){var _e=function(ut){switch(ut){case"ADBE Vectors Group":case"Contents":case 2:return _e.content;default:return _e.transform}};_e.propertyGroup=propertyGroupFactory(_e,dt);var tt=s(it,nt,_e.propertyGroup),j=b(it.it[it.it.length-1],nt.it[nt.it.length-1],_e.propertyGroup);return _e.content=tt,_e.transform=j,Object.defineProperty(_e,"_name",{get:function(){return it.nm}}),_e.numProperties=it.np,_e.propertyIndex=it.ix,_e.nm=it.nm,_e.mn=it.mn,_e}function a(it,nt,dt){function _e(tt){return tt==="Color"||tt==="color"?_e.color:tt==="Opacity"||tt==="opacity"?_e.opacity:null}return Object.defineProperties(_e,{color:{get:ExpressionPropertyInterface(nt.c)},opacity:{get:ExpressionPropertyInterface(nt.o)},_name:{value:it.nm},mn:{value:it.mn}}),nt.c.setGroupProperty(PropertyInterface("Color",dt)),nt.o.setGroupProperty(PropertyInterface("Opacity",dt)),_e}function o(it,nt,dt){function _e(tt){return tt==="Start Point"||tt==="start point"?_e.startPoint:tt==="End Point"||tt==="end point"?_e.endPoint:tt==="Opacity"||tt==="opacity"?_e.opacity:null}return Object.defineProperties(_e,{startPoint:{get:ExpressionPropertyInterface(nt.s)},endPoint:{get:ExpressionPropertyInterface(nt.e)},opacity:{get:ExpressionPropertyInterface(nt.o)},type:{get:function(){return"a"}},_name:{value:it.nm},mn:{value:it.mn}}),nt.s.setGroupProperty(PropertyInterface("Start Point",dt)),nt.e.setGroupProperty(PropertyInterface("End Point",dt)),nt.o.setGroupProperty(PropertyInterface("Opacity",dt)),_e}function c(){function it(){return null}return it}function g(it,nt,dt){var _e=propertyGroupFactory(gt,dt),tt=propertyGroupFactory(ct,_e);function j(mt){Object.defineProperty(ct,it.d[mt].nm,{get:ExpressionPropertyInterface(nt.d.dataProps[mt].p)})}var st,ut=it.d?it.d.length:0,ct={};for(st=0;st<ut;st+=1)j(st),nt.d.dataProps[st].p.setGroupProperty(tt);function gt(mt){return mt==="Color"||mt==="color"?gt.color:mt==="Opacity"||mt==="opacity"?gt.opacity:mt==="Stroke Width"||mt==="stroke width"?gt.strokeWidth:null}return Object.defineProperties(gt,{color:{get:ExpressionPropertyInterface(nt.c)},opacity:{get:ExpressionPropertyInterface(nt.o)},strokeWidth:{get:ExpressionPropertyInterface(nt.w)},dash:{get:function(){return ct}},_name:{value:it.nm},mn:{value:it.mn}}),nt.c.setGroupProperty(PropertyInterface("Color",_e)),nt.o.setGroupProperty(PropertyInterface("Opacity",_e)),nt.w.setGroupProperty(PropertyInterface("Stroke Width",_e)),gt}function _(it,nt,dt){function _e(j){return j===it.e.ix||j==="End"||j==="end"?_e.end:j===it.s.ix?_e.start:j===it.o.ix?_e.offset:null}var tt=propertyGroupFactory(_e,dt);return _e.propertyIndex=it.ix,nt.s.setGroupProperty(PropertyInterface("Start",tt)),nt.e.setGroupProperty(PropertyInterface("End",tt)),nt.o.setGroupProperty(PropertyInterface("Offset",tt)),_e.propertyIndex=it.ix,_e.propertyGroup=dt,Object.defineProperties(_e,{start:{get:ExpressionPropertyInterface(nt.s)},end:{get:ExpressionPropertyInterface(nt.e)},offset:{get:ExpressionPropertyInterface(nt.o)},_name:{value:it.nm}}),_e.mn=it.mn,_e}function b(it,nt,dt){function _e(j){return it.a.ix===j||j==="Anchor Point"?_e.anchorPoint:it.o.ix===j||j==="Opacity"?_e.opacity:it.p.ix===j||j==="Position"?_e.position:it.r.ix===j||j==="Rotation"||j==="ADBE Vector Rotation"?_e.rotation:it.s.ix===j||j==="Scale"?_e.scale:it.sk&&it.sk.ix===j||j==="Skew"?_e.skew:it.sa&&it.sa.ix===j||j==="Skew Axis"?_e.skewAxis:null}var tt=propertyGroupFactory(_e,dt);return nt.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",tt)),nt.transform.mProps.p.setGroupProperty(PropertyInterface("Position",tt)),nt.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",tt)),nt.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",tt)),nt.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",tt)),nt.transform.mProps.sk&&(nt.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",tt)),nt.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",tt))),nt.transform.op.setGroupProperty(PropertyInterface("Opacity",tt)),Object.defineProperties(_e,{opacity:{get:ExpressionPropertyInterface(nt.transform.mProps.o)},position:{get:ExpressionPropertyInterface(nt.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(nt.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(nt.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(nt.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(nt.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(nt.transform.mProps.sa)},_name:{value:it.nm}}),_e.ty="tr",_e.mn=it.mn,_e.propertyGroup=dt,_e}function $(it,nt,dt){function _e(st){return it.p.ix===st?_e.position:it.s.ix===st?_e.size:null}var tt=propertyGroupFactory(_e,dt);_e.propertyIndex=it.ix;var j=nt.sh.ty==="tm"?nt.sh.prop:nt.sh;return j.s.setGroupProperty(PropertyInterface("Size",tt)),j.p.setGroupProperty(PropertyInterface("Position",tt)),Object.defineProperties(_e,{size:{get:ExpressionPropertyInterface(j.s)},position:{get:ExpressionPropertyInterface(j.p)},_name:{value:it.nm}}),_e.mn=it.mn,_e}function et(it,nt,dt){function _e(st){return it.p.ix===st?_e.position:it.r.ix===st?_e.rotation:it.pt.ix===st?_e.points:it.or.ix===st||st==="ADBE Vector Star Outer Radius"?_e.outerRadius:it.os.ix===st?_e.outerRoundness:it.ir&&(it.ir.ix===st||st==="ADBE Vector Star Inner Radius")?_e.innerRadius:it.is&&it.is.ix===st?_e.innerRoundness:null}var tt=propertyGroupFactory(_e,dt),j=nt.sh.ty==="tm"?nt.sh.prop:nt.sh;return _e.propertyIndex=it.ix,j.or.setGroupProperty(PropertyInterface("Outer Radius",tt)),j.os.setGroupProperty(PropertyInterface("Outer Roundness",tt)),j.pt.setGroupProperty(PropertyInterface("Points",tt)),j.p.setGroupProperty(PropertyInterface("Position",tt)),j.r.setGroupProperty(PropertyInterface("Rotation",tt)),it.ir&&(j.ir.setGroupProperty(PropertyInterface("Inner Radius",tt)),j.is.setGroupProperty(PropertyInterface("Inner Roundness",tt))),Object.defineProperties(_e,{position:{get:ExpressionPropertyInterface(j.p)},rotation:{get:ExpressionPropertyInterface(j.r)},points:{get:ExpressionPropertyInterface(j.pt)},outerRadius:{get:ExpressionPropertyInterface(j.or)},outerRoundness:{get:ExpressionPropertyInterface(j.os)},innerRadius:{get:ExpressionPropertyInterface(j.ir)},innerRoundness:{get:ExpressionPropertyInterface(j.is)},_name:{value:it.nm}}),_e.mn=it.mn,_e}function ot(it,nt,dt){function _e(st){return it.p.ix===st?_e.position:it.r.ix===st?_e.roundness:it.s.ix===st||st==="Size"||st==="ADBE Vector Rect Size"?_e.size:null}var tt=propertyGroupFactory(_e,dt),j=nt.sh.ty==="tm"?nt.sh.prop:nt.sh;return _e.propertyIndex=it.ix,j.p.setGroupProperty(PropertyInterface("Position",tt)),j.s.setGroupProperty(PropertyInterface("Size",tt)),j.r.setGroupProperty(PropertyInterface("Rotation",tt)),Object.defineProperties(_e,{position:{get:ExpressionPropertyInterface(j.p)},roundness:{get:ExpressionPropertyInterface(j.r)},size:{get:ExpressionPropertyInterface(j.s)},_name:{value:it.nm}}),_e.mn=it.mn,_e}function rt(it,nt,dt){function _e(st){return it.r.ix===st||st==="Round Corners 1"?_e.radius:null}var tt=propertyGroupFactory(_e,dt),j=nt;return _e.propertyIndex=it.ix,j.rd.setGroupProperty(PropertyInterface("Radius",tt)),Object.defineProperties(_e,{radius:{get:ExpressionPropertyInterface(j.rd)},_name:{value:it.nm}}),_e.mn=it.mn,_e}function at(it,nt,dt){function _e(st){return it.c.ix===st||st==="Copies"?_e.copies:it.o.ix===st||st==="Offset"?_e.offset:null}var tt=propertyGroupFactory(_e,dt),j=nt;return _e.propertyIndex=it.ix,j.c.setGroupProperty(PropertyInterface("Copies",tt)),j.o.setGroupProperty(PropertyInterface("Offset",tt)),Object.defineProperties(_e,{copies:{get:ExpressionPropertyInterface(j.c)},offset:{get:ExpressionPropertyInterface(j.o)},_name:{value:it.nm}}),_e.mn=it.mn,_e}return function(it,nt,dt){var _e;function tt(st){if(typeof st=="number")return st=st===void 0?1:st,st===0?dt:_e[st-1];for(var ut=0,ct=_e.length;ut<ct;){if(_e[ut]._name===st)return _e[ut];ut+=1}return null}function j(){return dt}return tt.propertyGroup=propertyGroupFactory(tt,j),_e=e(it,nt,tt.propertyGroup),tt.numProperties=_e.length,tt._name="Contents",tt}}(),TextExpressionInterface=function(){return function(e){var s;function i(a){switch(a){case"ADBE Text Document":return i.sourceText;default:return null}}return Object.defineProperty(i,"sourceText",{get:function(){e.textProperty.getValue();var o=e.textProperty.currentData.t;return(!s||o!==s.value)&&(s=new String(o),s.value=o||new String(o),Object.defineProperty(s,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),s}}),i}}();function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(e)}var FootageInterface=function(){var e=function(a){var o="",c=a.getFootageData();function g(){return o="",c=a.getFootageData(),_}function _(b){if(c[b])return o=b,c=c[b],_typeof(c)==="object"?_:c;var $=b.indexOf(o);if($!==-1){var et=parseInt(b.substr($+o.length),10);return c=c[et],_typeof(c)==="object"?_:c}return""}return g},s=function(a){function o(c){return c==="Outline"?o.outlineInterface():null}return o._name="Outline",o.outlineInterface=e(a),o};return function(i){function a(o){return o==="Data"?a.dataInterface:null}return a._name="Data",a.dataInterface=s(i),a}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(g,_,b){_.x&&(b.k=!0,b.x=!0,b.initiateExpression=ExpressionManager.initiateExpression,b.effectsSequence.push(b.initiateExpression(g,_,b).bind(b)))}function s(g){return g*=this.elem.globalData.frameRate,g-=this.offsetTime,g!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<g?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(g,this._cachingAtTime),this._cachingAtTime.lastFrame=g),this._cachingAtTime.value}function i(g){var _=-.01,b=this.getValueAtTime(g),$=this.getValueAtTime(g+_),et=0;if(b.length){var ot;for(ot=0;ot<b.length;ot+=1)et+=Math.pow($[ot]-b[ot],2);et=Math.sqrt(et)*100}else et=0;return et}function a(g){if(this.vel!==void 0)return this.vel;var _=-.001,b=this.getValueAtTime(g),$=this.getValueAtTime(g+_),et;if(b.length){et=createTypedArray("float32",b.length);var ot;for(ot=0;ot<b.length;ot+=1)et[ot]=($[ot]-b[ot])/_}else et=($-b)/_;return et}function o(){return this.pv}function c(g){this.propertyGroup=g}return{searchExpressions:e,getSpeedAtTime:i,getVelocityAtTime:a,getValueAtTime:s,getStaticValueAtTime:o,setGroupProperty:c}}();function addPropertyDecorator(){function e(rt,at,it){if(!this.k||!this.keyframes)return this.pv;rt=rt?rt.toLowerCase():"";var nt=this.comp.renderedFrame,dt=this.keyframes,_e=dt[dt.length-1].t;if(nt<=_e)return this.pv;var tt,j;it?(at?tt=Math.abs(_e-this.elem.comp.globalData.frameRate*at):tt=Math.max(0,_e-this.elem.data.ip),j=_e-tt):((!at||at>dt.length-1)&&(at=dt.length-1),j=dt[dt.length-1-at].t,tt=_e-j);var st,ut,ct;if(rt==="pingpong"){var gt=Math.floor((nt-j)/tt);if(gt%2!==0)return this.getValueAtTime((tt-(nt-j)%tt+j)/this.comp.globalData.frameRate,0)}else if(rt==="offset"){var mt=this.getValueAtTime(j/this.comp.globalData.frameRate,0),_t=this.getValueAtTime(_e/this.comp.globalData.frameRate,0),kt=this.getValueAtTime(((nt-j)%tt+j)/this.comp.globalData.frameRate,0),wt=Math.floor((nt-j)/tt);if(this.pv.length){for(ct=new Array(mt.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=(_t[st]-mt[st])*wt+kt[st];return ct}return(_t-mt)*wt+kt}else if(rt==="continue"){var St=this.getValueAtTime(_e/this.comp.globalData.frameRate,0),Tt=this.getValueAtTime((_e-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ct=new Array(St.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=St[st]+(St[st]-Tt[st])*((nt-_e)/this.comp.globalData.frameRate)/5e-4;return ct}return St+(St-Tt)*((nt-_e)/.001)}return this.getValueAtTime(((nt-j)%tt+j)/this.comp.globalData.frameRate,0)}function s(rt,at,it){if(!this.k)return this.pv;rt=rt?rt.toLowerCase():"";var nt=this.comp.renderedFrame,dt=this.keyframes,_e=dt[0].t;if(nt>=_e)return this.pv;var tt,j;it?(at?tt=Math.abs(this.elem.comp.globalData.frameRate*at):tt=Math.max(0,this.elem.data.op-_e),j=_e+tt):((!at||at>dt.length-1)&&(at=dt.length-1),j=dt[at].t,tt=j-_e);var st,ut,ct;if(rt==="pingpong"){var gt=Math.floor((_e-nt)/tt);if(gt%2===0)return this.getValueAtTime(((_e-nt)%tt+_e)/this.comp.globalData.frameRate,0)}else if(rt==="offset"){var mt=this.getValueAtTime(_e/this.comp.globalData.frameRate,0),_t=this.getValueAtTime(j/this.comp.globalData.frameRate,0),kt=this.getValueAtTime((tt-(_e-nt)%tt+_e)/this.comp.globalData.frameRate,0),wt=Math.floor((_e-nt)/tt)+1;if(this.pv.length){for(ct=new Array(mt.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=kt[st]-(_t[st]-mt[st])*wt;return ct}return kt-(_t-mt)*wt}else if(rt==="continue"){var St=this.getValueAtTime(_e/this.comp.globalData.frameRate,0),Tt=this.getValueAtTime((_e+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ct=new Array(St.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=St[st]+(St[st]-Tt[st])*(_e-nt)/.001;return ct}return St+(St-Tt)*(_e-nt)/.001}return this.getValueAtTime((tt-((_e-nt)%tt+_e))/this.comp.globalData.frameRate,0)}function i(rt,at){if(!this.k)return this.pv;if(rt=(rt||.4)*.5,at=Math.floor(at||5),at<=1)return this.pv;var it=this.comp.renderedFrame/this.comp.globalData.frameRate,nt=it-rt,dt=it+rt,_e=at>1?(dt-nt)/(at-1):1,tt=0,j=0,st;this.pv.length?st=createTypedArray("float32",this.pv.length):st=0;for(var ut;tt<at;){if(ut=this.getValueAtTime(nt+tt*_e),this.pv.length)for(j=0;j<this.pv.length;j+=1)st[j]+=ut[j];else st+=ut;tt+=1}if(this.pv.length)for(j=0;j<this.pv.length;j+=1)st[j]/=at;else st/=at;return st}function a(rt){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var at=this._transformCachingAtTime.v;if(at.cloneFromProps(this.pre.props),this.appliedTransformations<1){var it=this.a.getValueAtTime(rt);at.translate(-it[0]*this.a.mult,-it[1]*this.a.mult,it[2]*this.a.mult)}if(this.appliedTransformations<2){var nt=this.s.getValueAtTime(rt);at.scale(nt[0]*this.s.mult,nt[1]*this.s.mult,nt[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var dt=this.sk.getValueAtTime(rt),_e=this.sa.getValueAtTime(rt);at.skewFromAxis(-dt*this.sk.mult,_e*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var tt=this.r.getValueAtTime(rt);at.rotate(-tt*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var j=this.rz.getValueAtTime(rt),st=this.ry.getValueAtTime(rt),ut=this.rx.getValueAtTime(rt),ct=this.or.getValueAtTime(rt);at.rotateZ(-j*this.rz.mult).rotateY(st*this.ry.mult).rotateX(ut*this.rx.mult).rotateZ(-ct[2]*this.or.mult).rotateY(ct[1]*this.or.mult).rotateX(ct[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var gt=this.px.getValueAtTime(rt),mt=this.py.getValueAtTime(rt);if(this.data.p.z){var _t=this.pz.getValueAtTime(rt);at.translate(gt*this.px.mult,mt*this.py.mult,-_t*this.pz.mult)}else at.translate(gt*this.px.mult,mt*this.py.mult,0)}else{var kt=this.p.getValueAtTime(rt);at.translate(kt[0]*this.p.mult,kt[1]*this.p.mult,-kt[2]*this.p.mult)}return at}function o(){return this.v.clone(new Matrix)}var c=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(rt,at,it){var nt=c(rt,at,it);return nt.dynamicProperties.length?nt.getValueAtTime=a.bind(nt):nt.getValueAtTime=o.bind(nt),nt.setGroupProperty=expressionHelpers.setGroupProperty,nt};var g=PropertyFactory.getProp;PropertyFactory.getProp=function(rt,at,it,nt,dt){var _e=g(rt,at,it,nt,dt);_e.kf?_e.getValueAtTime=expressionHelpers.getValueAtTime.bind(_e):_e.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(_e),_e.setGroupProperty=expressionHelpers.setGroupProperty,_e.loopOut=e,_e.loopIn=s,_e.smooth=i,_e.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(_e),_e.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(_e),_e.numKeys=at.a===1?at.k.length:0,_e.propertyIndex=at.ix;var tt=0;return it!==0&&(tt=createTypedArray("float32",at.a===1?at.k[0].s.length:at.k.length)),_e._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:tt},expressionHelpers.searchExpressions(rt,at,_e),_e.k&&dt.addDynamicProperty(_e),_e};function _(rt){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),rt*=this.elem.globalData.frameRate,rt-=this.offsetTime,rt!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<rt?this._caching.lastIndex:0,this._cachingAtTime.lastTime=rt,this.interpolateShape(rt,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var b=ShapePropertyFactory.getConstructorFunction(),$=ShapePropertyFactory.getKeyframedConstructorFunction();function et(){}et.prototype={vertices:function(at,it){this.k&&this.getValue();var nt=this.v;it!==void 0&&(nt=this.getValueAtTime(it,0));var dt,_e=nt._length,tt=nt[at],j=nt.v,st=createSizedArray(_e);for(dt=0;dt<_e;dt+=1)at==="i"||at==="o"?st[dt]=[tt[dt][0]-j[dt][0],tt[dt][1]-j[dt][1]]:st[dt]=[tt[dt][0],tt[dt][1]];return st},points:function(at){return this.vertices("v",at)},inTangents:function(at){return this.vertices("i",at)},outTangents:function(at){return this.vertices("o",at)},isClosed:function(){return this.v.c},pointOnPath:function(at,it){var nt=this.v;it!==void 0&&(nt=this.getValueAtTime(it,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(nt));for(var dt=this._segmentsLength,_e=dt.lengths,tt=dt.totalLength*at,j=0,st=_e.length,ut=0,ct;j<st;){if(ut+_e[j].addedLength>tt){var gt=j,mt=nt.c&&j===st-1?0:j+1,_t=(tt-ut)/_e[j].addedLength;ct=bez.getPointInSegment(nt.v[gt],nt.v[mt],nt.o[gt],nt.i[mt],_t,_e[j]);break}else ut+=_e[j].addedLength;j+=1}return ct||(ct=nt.c?[nt.v[0][0],nt.v[0][1]]:[nt.v[nt._length-1][0],nt.v[nt._length-1][1]]),ct},vectorOnPath:function(at,it,nt){at==1?at=this.v.c:at==0&&(at=.999);var dt=this.pointOnPath(at,it),_e=this.pointOnPath(at+.001,it),tt=_e[0]-dt[0],j=_e[1]-dt[1],st=Math.sqrt(Math.pow(tt,2)+Math.pow(j,2));if(st===0)return[0,0];var ut=nt==="tangent"?[tt/st,j/st]:[-j/st,tt/st];return ut},tangentOnPath:function(at,it){return this.vectorOnPath(at,it,"tangent")},normalOnPath:function(at,it){return this.vectorOnPath(at,it,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([et],b),extendPrototype([et],$),$.prototype.getValueAtTime=_,$.prototype.initiateExpression=ExpressionManager.initiateExpression;var ot=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(rt,at,it,nt,dt){var _e=ot(rt,at,it,nt,dt);return _e.propertyIndex=at.ix,_e.lock=!1,it===3?expressionHelpers.searchExpressions(rt,at.pt,_e):it===4&&expressionHelpers.searchExpressions(rt,at.ks,_e),_e.k&&rt.addDynamicProperty(_e),_e}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){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}TextProperty.prototype.getExpressionValue=function(s,i){var a=this.calculateExpression(i);if(s.t!==a){var o={};return this.copyData(o,s),o.t=a.toString(),o.__complete=!1,o}return s},TextProperty.prototype.searchProperty=function(){var s=this.searchKeyframes(),i=this.searchExpressions();return this.kf=s||i,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(s,i){var a=createNS("feMerge");a.setAttribute("result",s);var o,c;for(c=0;c<i.length;c+=1)o=createNS("feMergeNode"),o.setAttribute("in",i[c]),a.appendChild(o),a.appendChild(o);return a}};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,s,i,a,o){this.filterManager=s;var c=createNS("feColorMatrix");c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","linearRGB"),c.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=c,c.setAttribute("result",a+"_tint_1"),e.appendChild(c),c=createNS("feColorMatrix"),c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),c.setAttribute("result",a+"_tint_2"),e.appendChild(c),this.matrixFilter=c;var g=this.createMergeNode(a,[o,a+"_tint_1",a+"_tint_2"]);e.appendChild(g)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+a+" 0"),this.matrixFilter.setAttribute("values",i[0]-s[0]+" 0 0 0 "+s[0]+" "+(i[1]-s[1])+" 0 0 0 "+s[1]+" "+(i[2]-s[2])+" 0 0 0 "+s[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,s,i,a){this.filterManager=s;var o=createNS("feColorMatrix");o.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",a),e.appendChild(o),this.matrixFilter=o}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+s[0]+" 0 0 0 0 "+s[1]+" 0 0 0 0 "+s[2]+" 0 0 0 "+i+" 0")}};function SVGStrokeEffect(e,s,i){this.initialized=!1,this.filterManager=s,this.elem=i,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,s,i,a,o;for(this.filterManager.effectElements[1].p.v===1?(o=this.elem.maskManager.masksProperties.length,a=0):(a=this.filterManager.effectElements[0].p.v-1,o=a+1),i=createNS("g"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1),a;a<o;a+=1)s=createNS("path"),i.appendChild(s),this.paths.push({p:s,m:a});if(this.filterManager.effectElements[10].p.v===3){var c=createNS("mask"),g=createElementID();c.setAttribute("id",g),c.setAttribute("mask-type","alpha"),c.appendChild(i),this.elem.globalData.defs.appendChild(c);var _=createNS("g");for(_.setAttribute("mask","url("+getLocationHref()+"#"+g+")");e[0];)_.appendChild(e[0]);this.elem.layerElement.appendChild(_),this.masker=c,i.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var s,i=this.paths.length,a,o;for(s=0;s<i;s+=1)if(this.paths[s].m!==-1&&(a=this.elem.maskManager.viewData[this.paths[s].m],o=this.paths[s].p,(e||this.filterManager._mdf||a.prop._mdf)&&o.setAttribute("d",a.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||a.prop._mdf)){var c;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var g=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,_=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,b=o.getTotalLength();c="0 0 0 "+b*g+" ";var $=b*(_-g),et=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,ot=Math.floor($/et),rt;for(rt=0;rt<ot;rt+=1)c+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";c+="0 "+b*10+" 0 0"}else c="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;o.setAttribute("stroke-dasharray",c)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var at=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(at[0]*255)+","+bmFloor(at[1]*255)+","+bmFloor(at[2]*255)+")")}};function SVGTritoneFilter(e,s,i,a){this.filterManager=s;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.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(o);var c=createNS("feComponentTransfer");c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("result",a),this.matrixFilter=c;var g=createNS("feFuncR");g.setAttribute("type","table"),c.appendChild(g),this.feFuncR=g;var _=createNS("feFuncG");_.setAttribute("type","table"),c.appendChild(_),this.feFuncG=_;var b=createNS("feFuncB");b.setAttribute("type","table"),c.appendChild(b),this.feFuncB=b,e.appendChild(c)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,o=a[0]+" "+i[0]+" "+s[0],c=a[1]+" "+i[1]+" "+s[1],g=a[2]+" "+i[2]+" "+s[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",c),this.feFuncB.setAttribute("tableValues",g)}};function SVGProLevelsFilter(e,s,i,a){this.filterManager=s;var o=this.filterManager.effectElements,c=createNS("feComponentTransfer");(o[10].p.k||o[10].p.v!==0||o[11].p.k||o[11].p.v!==1||o[12].p.k||o[12].p.v!==1||o[13].p.k||o[13].p.v!==0||o[14].p.k||o[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",c)),(o[17].p.k||o[17].p.v!==0||o[18].p.k||o[18].p.v!==1||o[19].p.k||o[19].p.v!==1||o[20].p.k||o[20].p.v!==0||o[21].p.k||o[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",c)),(o[24].p.k||o[24].p.v!==0||o[25].p.k||o[25].p.v!==1||o[26].p.k||o[26].p.v!==1||o[27].p.k||o[27].p.v!==0||o[28].p.k||o[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",c)),(o[31].p.k||o[31].p.v!==0||o[32].p.k||o[32].p.v!==1||o[33].p.k||o[33].p.v!==1||o[34].p.k||o[34].p.v!==0||o[35].p.k||o[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",c)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(c.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(c)),(o[3].p.k||o[3].p.v!==0||o[4].p.k||o[4].p.v!==1||o[5].p.k||o[5].p.v!==1||o[6].p.k||o[6].p.v!==0||o[7].p.k||o[7].p.v!==1)&&(c=createNS("feComponentTransfer"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("result",a),e.appendChild(c),this.feFuncRComposed=this.createFeFunc("feFuncR",c),this.feFuncGComposed=this.createFeFunc("feFuncG",c),this.feFuncBComposed=this.createFeFunc("feFuncB",c))}SVGProLevelsFilter.prototype.createFeFunc=function(e,s){var i=createNS(e);return i.setAttribute("type","table"),s.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(e,s,i,a,o){for(var c=0,g=256,_,b=Math.min(e,s),$=Math.max(e,s),et=Array.call(null,{length:g}),ot,rt=0,at=o-a,it=s-e;c<=256;)_=c/256,_<=b?ot=it<0?o:a:_>=$?ot=it<0?a:o:ot=a+at*Math.pow((_-e)/it,1/i),et[rt]=ot,rt+=1,c+=256/(g-1);return et.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s,i=this.filterManager.effectElements;this.feFuncRComposed&&(e||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(s=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",s),this.feFuncGComposed.setAttribute("tableValues",s),this.feFuncBComposed.setAttribute("tableValues",s)),this.feFuncR&&(e||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(s=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",s)),this.feFuncG&&(e||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(s=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",s)),this.feFuncB&&(e||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(s=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",s)),this.feFuncA&&(e||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(s=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",s))}};function SVGDropShadowEffect(e,s,i,a,o){var c=s.container.globalData.renderConfig.filterSize,g=s.data.fs||c;e.setAttribute("x",g.x||c.x),e.setAttribute("y",g.y||c.y),e.setAttribute("width",g.width||c.width),e.setAttribute("height",g.height||c.height),this.filterManager=s;var _=createNS("feGaussianBlur");_.setAttribute("in","SourceAlpha"),_.setAttribute("result",a+"_drop_shadow_1"),_.setAttribute("stdDeviation","0"),this.feGaussianBlur=_,e.appendChild(_);var b=createNS("feOffset");b.setAttribute("dx","25"),b.setAttribute("dy","0"),b.setAttribute("in",a+"_drop_shadow_1"),b.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=b,e.appendChild(b);var $=createNS("feFlood");$.setAttribute("flood-color","#00ff00"),$.setAttribute("flood-opacity","1"),$.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=$,e.appendChild($);var et=createNS("feComposite");et.setAttribute("in",a+"_drop_shadow_3"),et.setAttribute("in2",a+"_drop_shadow_2"),et.setAttribute("operator","in"),et.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(et);var ot=this.createMergeNode(a,[a+"_drop_shadow_4",o]);e.appendChild(ot)}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 s=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(s[0]*255),Math.round(s[1]*255),Math.round(s[2]*255)))}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 i=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=i*Math.cos(a),c=i*Math.sin(a);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",c)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,s,i){this.initialized=!1,this.filterManager=s,this.filterElem=e,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var s=0,i=_svgMatteSymbols.length;s<i;){if(_svgMatteSymbols[s]===e)return _svgMatteSymbols[s];s+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,s){var i=e.layerElement.parentNode;if(i){for(var a=i.children,o=0,c=a.length;o<c&&a[o]!==e.layerElement;)o+=1;var g;o<=c-2&&(g=a[o+1]);var _=createNS("use");_.setAttribute("href","#"+s),g?i.insertBefore(_,g):i.appendChild(_)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,s){if(!this.findSymbol(s)){var i=createElementID(),a=createNS("mask");a.setAttribute("id",s.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(s);var o=e.globalData.defs;o.appendChild(a);var c=createNS("symbol");c.setAttribute("id",i),this.replaceInParent(s,i),c.appendChild(s.layerElement),o.appendChild(c);var g=createNS("use");g.setAttribute("href","#"+i),a.appendChild(g),s.data.hd=!1,s.show()}e.setMatte(s.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,s=this.elem.comp.elements,i=0,a=s.length;i<a;)s[i]&&s[i].data.ind===e&&this.setElementAsMask(this.elem,s[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,s,i,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=s;var o=createNS("feGaussianBlur");o.setAttribute("result",a),e.appendChild(o),this.feGaussianBlur=o}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=.3,i=this.filterManager.effectElements[0].p.v*s,a=this.filterManager.effectElements[1].p.v,o=a==3?0:i,c=a==2?0:i;this.feGaussianBlur.setAttribute("stdDeviation",o+" "+c);var g=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",g)}};function TransformEffect(){}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 s=this.effectsManager.effectElements,i=s[0].p.v,a=s[1].p.v,o=s[2].p.v===1,c=s[3].p.v,g=o?c:s[4].p.v,_=s[5].p.v,b=s[6].p.v,$=s[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(g*.01,c*.01,1),this.matrix.rotate(-$*degToRads),this.matrix.skewFromAxis(-_*degToRads,(b+90)*degToRads),this.matrix.translate(a[0],a[1],0),this._mdf=!0,this.opacity!==s[8].p.v&&(this.opacity=s[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,s){this.init(s)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return 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})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(e,s){(s==null||s>e.length)&&(s=e.length);for(var i=0,a=Array(s);i<s;i++)a[i]=e[i];return a}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,s,i){return(s=_toPropertyKey(s))in e?Object.defineProperty(e,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[s]=i,e}function _iterableToArrayLimit(e,s){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var a,o,c,g,_=[],b=!0,$=!1;try{if(c=(i=i.call(e)).next,s!==0)for(;!(b=(a=c.call(i)).done)&&(_.push(a.value),_.length!==s);b=!0);}catch(et){$=!0,o=et}finally{try{if(!b&&i.return!=null&&(g=i.return(),Object(g)!==g))return}finally{if($)throw o}}return _}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
49
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys(e,s){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);s&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,a)}return i}function _objectSpread2(e){for(var s=1;s<arguments.length;s++){var i=arguments[s]!=null?arguments[s]:{};s%2?ownKeys(Object(i),!0).forEach(function(a){_defineProperty(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function _objectWithoutProperties(e,s){if(e==null)return{};var i,a,o=_objectWithoutPropertiesLoose(e,s);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(a=0;a<c.length;a++)i=c[a],s.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}function _objectWithoutPropertiesLoose(e,s){if(e==null)return{};var i={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(s.includes(a))continue;i[a]=e[a]}return i}function _slicedToArray(e,s){return _arrayWithHoles(e)||_iterableToArrayLimit(e,s)||_unsupportedIterableToArray(e,s)||_nonIterableRest()}function _toPrimitive(e,s){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,s);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(e)}function _toPropertyKey(e){var s=_toPrimitive(e,"string");return typeof s=="symbol"?s:s+""}function _unsupportedIterableToArray(e,s){if(e){if(typeof e=="string")return _arrayLikeToArray(e,s);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,s):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(s,i){var a=s.animationData,o=s.loop,c=s.autoplay,g=s.initialSegment,_=s.onComplete,b=s.onLoopComplete,$=s.onEnterFrame,et=s.onSegmentStart,ot=s.onConfigReady,rt=s.onDataReady,at=s.onDataFailed,it=s.onLoadedImages,nt=s.onDOMLoaded,dt=s.onDestroy;s.lottieRef,s.renderer,s.name,s.assetsPath,s.rendererSettings;var _e=_objectWithoutProperties(s,_excluded$1),tt=reactExports.useState(!1),j=_slicedToArray(tt,2),st=j[0],ut=j[1],ct=reactExports.useRef(),gt=reactExports.useRef(null),mt=function(){var Ct;(Ct=ct.current)===null||Ct===void 0||Ct.play()},_t=function(){var Ct;(Ct=ct.current)===null||Ct===void 0||Ct.stop()},kt=function(){var Ct;(Ct=ct.current)===null||Ct===void 0||Ct.pause()},wt=function(Ct){var Et;(Et=ct.current)===null||Et===void 0||Et.setSpeed(Ct)},St=function(Ct,Et){var bt;(bt=ct.current)===null||bt===void 0||bt.goToAndPlay(Ct,Et)},Tt=function(Ct,Et){var bt;(bt=ct.current)===null||bt===void 0||bt.goToAndStop(Ct,Et)},Mt=function(Ct){var Et;(Et=ct.current)===null||Et===void 0||Et.setDirection(Ct)},xt=function(Ct,Et){var bt;(bt=ct.current)===null||bt===void 0||bt.playSegments(Ct,Et)},pt=function(Ct){var Et;(Et=ct.current)===null||Et===void 0||Et.setSubframe(Ct)},vt=function(Ct){var Et;return(Et=ct.current)===null||Et===void 0?void 0:Et.getDuration(Ct)},lt=function(){var Ct;(Ct=ct.current)===null||Ct===void 0||Ct.destroy(),ct.current=void 0},ht=function(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Et;if(gt.current){(Et=ct.current)===null||Et===void 0||Et.destroy();var bt=_objectSpread2(_objectSpread2(_objectSpread2({},s),Ct),{},{container:gt.current});return ct.current=lottie.loadAnimation(bt),ut(!!ct.current),function(){var Ot;(Ot=ct.current)===null||Ot===void 0||Ot.destroy(),ct.current=void 0}}};reactExports.useEffect(function(){var ft=ht();return function(){return ft==null?void 0:ft()}},[a,o]),reactExports.useEffect(function(){ct.current&&(ct.current.autoplay=!!c)},[c]),reactExports.useEffect(function(){if(ct.current){if(!g){ct.current.resetSegments(!0);return}!Array.isArray(g)||!g.length||((ct.current.currentRawFrame<g[0]||ct.current.currentRawFrame>g[1])&&(ct.current.currentRawFrame=g[0]),ct.current.setSegment(g[0],g[1]))}},[g]),reactExports.useEffect(function(){var ft=[{name:"complete",handler:_},{name:"loopComplete",handler:b},{name:"enterFrame",handler:$},{name:"segmentStart",handler:et},{name:"config_ready",handler:ot},{name:"data_ready",handler:rt},{name:"data_failed",handler:at},{name:"loaded_images",handler:it},{name:"DOMLoaded",handler:nt},{name:"destroy",handler:dt}],Ct=ft.filter(function(bt){return bt.handler!=null});if(Ct.length){var Et=Ct.map(function(bt){var Ot;return(Ot=ct.current)===null||Ot===void 0||Ot.addEventListener(bt.name,bt.handler),function(){var Lt;(Lt=ct.current)===null||Lt===void 0||Lt.removeEventListener(bt.name,bt.handler)}});return function(){Et.forEach(function(bt){return bt()})}}},[_,b,$,et,ot,rt,at,it,nt,dt]);var yt=React.createElement("div",_objectSpread2({style:i,ref:gt},_e));return{View:yt,play:mt,stop:_t,pause:kt,setSpeed:wt,goToAndStop:Tt,goToAndPlay:St,setDirection:Mt,playSegments:xt,setSubframe:pt,getDuration:vt,destroy:lt,animationContainerRef:gt,animationLoaded:st,animationItem:ct.current}};function getContainerVisibility(e){var s=e.getBoundingClientRect(),i=s.top,a=s.height,o=window.innerHeight-i,c=window.innerHeight+a;return o/c}function getContainerCursorPosition(e,s,i){var a=e.getBoundingClientRect(),o=a.top,c=a.left,g=a.width,_=a.height,b=(s-c)/g,$=(i-o)/_;return{x:b,y:$}}var useInitInteractivity=function e(s){var i=s.wrapperRef,a=s.animationItem,o=s.mode,c=s.actions;reactExports.useEffect(function(){var g=i.current;if(!(!g||!a||!c.length)){a.stop();var _=function(){var et=null,ot=function(){var at=getContainerVisibility(g),it=c.find(function(dt){var _e=dt.visibility;return _e&&at>=_e[0]&&at<=_e[1]});if(it){if(it.type==="seek"&&it.visibility&&it.frames.length===2){var nt=it.frames[0]+Math.ceil((at-it.visibility[0])/(it.visibility[1]-it.visibility[0])*it.frames[1]);//! goToAndStop must be relative to the start of the current segment
50
- a.goToAndStop(nt-a.firstFrame-1,!0)}it.type==="loop"&&(et===null||et!==it.frames||a.isPaused)&&(a.playSegments(it.frames,!0),et=it.frames),it.type==="play"&&a.isPaused&&(a.resetSegments(!0),a.play()),it.type==="stop"&&a.goToAndStop(it.frames[0]-a.firstFrame-1,!0)}};return document.addEventListener("scroll",ot),function(){document.removeEventListener("scroll",ot)}},b=function(){var et=function(it,nt){var dt=it,_e=nt;if(dt!==-1&&_e!==-1){var tt=getContainerCursorPosition(g,dt,_e);dt=tt.x,_e=tt.y}var j=c.find(function(ct){var gt=ct.position;return gt&&Array.isArray(gt.x)&&Array.isArray(gt.y)?dt>=gt.x[0]&&dt<=gt.x[1]&&_e>=gt.y[0]&&_e<=gt.y[1]:gt&&!Number.isNaN(gt.x)&&!Number.isNaN(gt.y)?dt===gt.x&&_e===gt.y:!1});if(j){if(j.type==="seek"&&j.position&&Array.isArray(j.position.x)&&Array.isArray(j.position.y)&&j.frames.length===2){var st=(dt-j.position.x[0])/(j.position.x[1]-j.position.x[0]),ut=(_e-j.position.y[0])/(j.position.y[1]-j.position.y[0]);a.playSegments(j.frames,!0),a.goToAndStop(Math.ceil((st+ut)/2*(j.frames[1]-j.frames[0])),!0)}j.type==="loop"&&a.playSegments(j.frames,!0),j.type==="play"&&(a.isPaused&&a.resetSegments(!1),a.playSegments(j.frames)),j.type==="stop"&&a.goToAndStop(j.frames[0],!0)}},ot=function(it){et(it.clientX,it.clientY)},rt=function(){et(-1,-1)};return g.addEventListener("mousemove",ot),g.addEventListener("mouseout",rt),function(){g.removeEventListener("mousemove",ot),g.removeEventListener("mouseout",rt)}};switch(o){case"scroll":return _();case"cursor":return b()}}},[o,a])},useLottieInteractivity=function e(s){var i=s.actions,a=s.mode,o=s.lottieObj,c=o.animationItem,g=o.View,_=o.animationContainerRef;return useInitInteractivity({actions:i,animationItem:c,mode:a,wrapperRef:_}),g},_excluded=["style","interactivity"],Lottie=function e(s){var i,a,o,c=s.style,g=s.interactivity,_=_objectWithoutProperties(s,_excluded),b=useLottie(_,c),$=b.View,et=b.play,ot=b.stop,rt=b.pause,at=b.setSpeed,it=b.goToAndStop,nt=b.goToAndPlay,dt=b.setDirection,_e=b.playSegments,tt=b.setSubframe,j=b.getDuration,st=b.destroy,ut=b.animationContainerRef,ct=b.animationLoaded,gt=b.animationItem;return reactExports.useEffect(function(){s.lottieRef&&(s.lottieRef.current={play:et,stop:ot,pause:rt,setSpeed:at,goToAndPlay:nt,goToAndStop:it,setDirection:dt,playSegments:_e,setSubframe:tt,getDuration:j,destroy:st,animationContainerRef:ut,animationLoaded:ct,animationItem:gt})},[(i=s.lottieRef)===null||i===void 0?void 0:i.current]),useLottieInteractivity({lottieObj:{View:$,play:et,stop:ot,pause:rt,setSpeed:at,goToAndStop:it,goToAndPlay:nt,setDirection:dt,playSegments:_e,setSubframe:tt,getDuration:j,destroy:st,animationContainerRef:ut,animationLoaded:ct,animationItem:gt},actions:(a=g==null?void 0:g.actions)!==null&&a!==void 0?a:[],mode:(o=g==null?void 0:g.mode)!==null&&o!==void 0?o:"scroll"})};const v="5.9.6",fr=60,ip=0,op=106,w=1080,h=1080,nm="Check Mark 01",ddd=0,assets=[],layers=[{ddd:0,ind:1,ty:4,nm:"Tick",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-45,ix:10},p:{a:0,k:[50.412,45.412,0],ix:2,l:2},a:{a:0,k:[-.5,18,0],ix:1,l:2},s:{a:0,k:[76.923,76.923,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-50,-2.455],[-50,43],[49,43]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:22,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,-2.308],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[110,110],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:41,s:[0]},{t:56,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:181,st:0,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Burst",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[539.521,540.438,0],ix:2,l:2},a:{a:0,k:[539.958,540.438,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:65,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst 4",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:20,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst 3",np:1,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:45,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst 2",np:1,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst",np:1,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:39,op:448,st:32,ct:1,bm:0},{ddd:0,ind:3,ty:4,nm:"Circle 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,540,0],ix:2,l:2},a:{a:0,k:[12,-8,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.2,.2,.2],y:[1,1,1]},o:{x:[.167,.167,.167],y:[.167,.167,0]},t:36,s:[0,0,100]},{t:62,s:[120,120,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[424,424],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:36,s:[200]},{t:57,s:[0]}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[12,-8],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:36,op:159,st:-22,ct:1,bm:0},{ddd:0,ind:4,ty:3,nm:"Controller - 1",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,526,0],ix:2,l:2},a:{a:0,k:[50,50,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.48,.48,.2],y:[1,1,1]},o:{x:[.8,.8,.8],y:[0,0,0]},t:30,s:[130,130,100]},{i:{x:[.254,.254,.667],y:[1,1,1]},o:{x:[.166,.166,.333],y:[0,0,0]},t:37.5,s:[111.8,111.8,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.6,.6,.333],y:[0,0,0]},t:52.5,s:[140.4,140.4,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:61,s:[124.8,124.8,100]},{i:{x:[.398,.398,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:69.5,s:[135.2,135.2,100]},{t:78,s:[130,130,100]}],ix:6,l:2}},ao:0,ip:-30,op:151,st:-30,bm:0},{ddd:0,ind:5,ty:4,nm:"Circle_Fill",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[50,60.769,0],ix:2,l:2},a:{a:0,k:[93,57,0],ix:1,l:2},s:{a:1,k:[{i:{x:[0,0,.2],y:[1,1,1]},o:{x:[.167,.167,.167],y:[.167,.167,0]},t:38,s:[0,0,100]},{t:53,s:[76.923,76.923,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[350,350],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[93,57],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[90,90],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:38,op:418,st:-2,ct:1,bm:0},{ddd:0,ind:6,ty:4,nm:"Circle_Outline",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[50,60.769,0],ix:2,l:2},a:{a:0,k:[93,57,0],ix:1,l:2},s:{a:0,k:[76.923,76.923,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[350,350],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[.203921583587,.698039215686,.20000001496,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:12,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[93,57],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:9,s:[0]},{t:33,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:0,s:[0]},{t:33,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:38,st:-2,ct:1,bm:0}],markers=[],animationData={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers},AbhaVerificationStatus=({loading:e=!1,loadingText:s,successText:i})=>jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-w-full pds2-min-h-full pds2-flex pds2-flex-col pds2-items-center pds2-justify-center pds2-text-center",style:{backgroundColor:"#F2F2F2"},children:[jsxRuntimeExports.jsx(Lottie,{animationData,loop:!1,className:"pds2-w-400"}),e?jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading4Semibold pds2-absolute pds2-mt-220",children:s}):jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading4Semibold pds2-absolute pds2-mt-220",children:i})]}),createStoreImpl=e=>{let s;const i=new Set,a=($,et)=>{const ot=typeof $=="function"?$(s):$;if(!Object.is(ot,s)){const rt=s;s=et??(typeof ot!="object"||ot===null)?ot:Object.assign({},s,ot),i.forEach(at=>at(s,rt))}},o=()=>s,_={setState:a,getState:o,getInitialState:()=>b,subscribe:$=>(i.add($),()=>i.delete($))},b=s=e(a,o,_);return _},createStore=e=>e?createStoreImpl(e):createStoreImpl,identity=e=>e;function useStore(e,s=identity){const i=React.useSyncExternalStore(e.subscribe,React.useCallback(()=>s(e.getState()),[e,s]),React.useCallback(()=>s(e.getInitialState()),[e,s]));return React.useDebugValue(i),i}const createImpl=e=>{const s=createStore(e),i=a=>useStore(s,a);return Object.assign(i,s),i},create=e=>e?createImpl(e):createImpl;var SCREEN_NAMES=(e=>(e.LOGIN_WITH_ABHA="LOGIN_WITH_ABHA",e.VERIFY_OTP_LOGIN_WITH_ABHA="VERIFY_OTP_LOGIN_WITH_ABHA",e.CREATE_ABHA_WITH_AADHAAR="CREATE_ABHA_WITH_AADHAAR",e.ABHA_OTP_AND_MOBILE="ABHA_OTP_AND_MOBILE",e.ABHA_PHONE_NUMBER_VERIFICATION="ABHA_PHONE_NUMBER_VERIFICATION",e.AADHAAR_VERIFICATION_STATUS="AADHAAR_VERIFICATION_STATUS",e.ABHA_MOBILE_LINKING_STATUS="ABHA_MOBILE_LINKING_STATUS",e.SELECT_ABHA_FROM_LIST="SELECT_ABHA_FROM_LIST",e.CREATE_ABHA_ADDRESS="CREATE_ABHA_ADDRESS",e.CREATE_EKA_PROFILE="CREATE_EKA_PROFILE",e.SELECT_EKA_PROFILE="SELECT_EKA_PROFILE",e.CREATE_PHR_EKA_PROFILE="CREATE_PHR_EKA_PROFILE",e.GET_ALL_PROFILES="GET_ALL_PROFILES",e.LOGIN_OR_CREATE_ABHA="LOGIN_OR_CREATE_ABHA",e))(SCREEN_NAMES||{});const storeInitState={screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],authTxnId:null,txnId:null,aadhaarOtpSentToHint:null,mobileOtpSentToHint:null,aadhaarVerificationSkipStateStatus:null,ekaSmallToken:null,bottomsheetErrorInfo:null,abhaAddressList:null,loginIdentifierValue:null,abhaAuthFlowMethod:null,selectedAbhaAddress:null,ekaProfileInfo:null,registrationType:null,initAbhaAppMethod:"login_or_create_abha",initAbhaAppMobileNumber:null,initAbhaAppIdentifier:null,initAbhaAppIdentifierType:null,isEkaAppLogin:!1,isDocAppRequest:!1,isLoggedInFromRedirect:!1,clientId:"",oid:"",isApiTriggered:!1,isNewLoginOrCreateFlow:!1,selectedAbhaFlow:"",isInitApiTriggered:!1,identityValue:"",currentStepperIndex:1,mobileIdentifierValue:"",initAbhaAppIdentifierSource:"non_existing",goBackToLogin:!1,identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""},orgIcon:void 0,linkToOrgIcon:void 0},useAuthAbhaStore=create((e,s)=>({screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],setScreen:i=>e(a=>({screen:[...a.screen,i]})),goBackScreen:()=>{const{screen:i}=s();if(i.length===0)return null;e({screen:i.slice(0,-1)}),e(a=>({currentStepperIndex:i.slice(0,-1).at(-1)==="LOGIN_OR_CREATE_ABHA"?1:a.currentStepperIndex-1}))},goBackLoginScreen:()=>{const{isNewLoginOrCreateFlow:i}=s(),a=i?SCREEN_NAMES.LOGIN_OR_CREATE_ABHA:SCREEN_NAMES.LOGIN_WITH_ABHA;e({screen:[a]}),e({currentStepperIndex:1})},setUrlParams:i=>e({urlParams:i}),authTxnId:null,txnId:null,setTxnId:i=>e({txnId:i}),aadhaarOtpSentToHint:null,setAadhaarInitResponse:i=>e(i),mobileOtpSentToHint:null,setMobileInitResponse:i=>e(i),registrationType:null,setRegistrationType:i=>e({registrationType:i}),aadhaarVerificationSkipStateStatus:null,setAadhaarVerificationSkipStateStatus:i=>e({aadhaarVerificationSkipStateStatus:i}),bottomsheetErrorInfo:null,setBottomsheetErrorInfo:i=>e({bottomsheetErrorInfo:i}),ekaSmallToken:null,setEkaSmallToken:i=>e({ekaSmallToken:i}),abhaAddressList:null,setAbhaAddressList:i=>e({abhaAddressList:i}),loginIdentifierValue:null,setLoginIdentifierValue:i=>e({loginIdentifierValue:i}),abhaAuthFlowMethod:ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,setAbhaAuthFlowMethod:i=>e({abhaAuthFlowMethod:i}),selectedAbhaAddress:null,setSelectedAbhaAddress:i=>e({selectedAbhaAddress:i}),ekaProfileInfo:null,setEkaProfileInfo:i=>e({ekaProfileInfo:i}),initAbhaAppMethod:"login_or_create_abha",setInitAbhaAppMethod:i=>e({initAbhaAppMethod:i}),initAbhaAppMobileNumber:null,setInitAbhaAppMobileNumber:i=>e({initAbhaAppMobileNumber:i}),initAbhaAppIdentifier:null,setInitAbhaAppIdentifier:i=>e({initAbhaAppIdentifier:i}),initAbhaAppIdentifierType:null,setInitAbhaAppIdentifierType:i=>e({initAbhaAppIdentifierType:i}),initAbhaAppIdentifierSource:"non_existing",setInitAbhaAppIdentifierSource:i=>e({initAbhaAppIdentifierSource:i}),isEkaAppLogin:!1,setIsEkaAppLogin:i=>e({isEkaAppLogin:i}),isDocAppRequest:!1,setIsDocAppRequest:i=>e({isDocAppRequest:i}),setInitState:i=>e(i),isLoggedInFromRedirect:!1,setIsLoggedInFromRedirect:i=>e({isLoggedInFromRedirect:i}),clientId:"",setClientId:i=>e({clientId:i}),isApiTriggered:!1,setIsApiTriggered:i=>e({isApiTriggered:i}),oid:"",setOid:i=>e({oid:i}),isNewLoginOrCreateFlow:!1,setIsNewLoginOrCreateFlow:i=>e({isNewLoginOrCreateFlow:i}),selectedAbhaFlow:"",setSelectedAbhaFlow:i=>e({selectedAbhaFlow:i}),isInitApiTriggered:!1,setIsInitApiTriggered:i=>e({isInitApiTriggered:i}),identityValue:"",setIdentityValue:i=>e({identityValue:i}),currentStepperIndex:1,setCurrentStepperIndex:i=>e({currentStepperIndex:i}),mobileIdentifierValue:"",setMobileIdentifierValue:i=>e({mobileIdentifierValue:i}),identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""},setIdentifierValue:i=>e(a=>({identifierValue:{...a.identifierValue,...i}})),goBackToLogin:!1,setGoBackToLogin:i=>e({goBackToLogin:i}),orgIcon:void 0,setOrgIcon:i=>e({orgIcon:i}),linkToOrgIcon:void 0,setLinkToOrgIcon:i=>e({linkToOrgIcon:i}),clearAbhaAuthStore:()=>e(storeInitState)}));function fallbackFn(e){return function(...s){}}let mixpanel={notInitiated:!0,track:fallbackFn(),init:fallbackFn(),identify:fallbackFn(),register:fallbackFn()};function pushToMxpDataLayer({data:e}){typeof window<"u"&&(window.mxpDataLayer=window.mxpDataLayer||[],window.mxpDataLayer.push(e))}function sendApiFailedEvent({category:e="api-failed",url:s,params:i}){pushToMxpDataLayer({data:{name:e,data:{url:s,...i}}});const a=e,o={url:s,...i};mixpanel.track(a,o)}const handleSendEvent=({eventName:e,eventData:s})=>{var i;(i=window==null?void 0:window.Eka)!=null&&i.sendEvent&&window.Eka.sendEvent(JSON.stringify({event:e,properties:s}))},getMockAuthVerifyResponse=e=>({skip_state:0,method:AUTH_METHOD.MOBILE,txn_id:"",data:{tokens:{sess:"",refresh:""},profile:{oid:e.oid,fn:e.fn,mn:e.mn,ln:e.ln,gen:e.gen,dob:e.dob,fln:e.fln,at:"",mobile:e.mobile,abha_number:e.abha_number||"","health-ids":e["health-ids"]||[]}}});async function refreshToken(){if(await updateToken())return!0;const s=new Headers;s.append("Content-Type","application/json"),s.set("client-id",GET_CLIENT_ID());const i=JSON.stringify({}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include",mode:"cors"};try{const o=GET_AORTA_GO_HOST();if((await fetch(`${o}/emr/v3/auth/refresh`,{...a,body:JSON.stringify({})})).status===401)return!1}catch{return!1}return!0}async function fetchWrapper(e,s={},i=!0,a=!1){var o,c;try{const g=((c=(o=window==null?void 0:window.Eka)==null?void 0:o.getSessionToken)==null?void 0:c.call(o))||"",_=new Headers(s.headers);let b,$;!_.get("client-id")&&!a&&_.set("client-id",GET_CLIENT_ID()),g&&!_.get("auth")&&_.set("auth",g);const et=GET_EXTRA_HEADERS();et&&Object.keys(et).forEach(rt=>{_.set(rt,et[rt])});const ot=await fetch(e,{...s,headers:_});return window&&($=window.location.pathname,b=_.get("client-id")),ot.status===401&&i&&await refreshToken()?await fetchWrapper(e,s,!1):(ot.status>401&&sendApiFailedEvent({url:e,params:{responseStatus:ot.status}}),ot)}catch(g){throw sendApiFailedEvent({url:e,params:{error:`${g.message||g}`}}),console.error(g),g}}let androidRefreshCB=[];async function refreshCallback(e){androidRefreshCB.forEach(s=>s(!0)),androidRefreshCB=[]}async function updateToken(){var e,s,i,a,o,c;if(typeof window<"u"){if(typeof((e=window==null?void 0:window.Eka)==null?void 0:e.updateToken)=="function")return(s=window.parent)==null||s.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(g=>{var _;androidRefreshCB.push(g),(_=window==null?void 0:window.Eka)==null||_.updateToken("refreshCallback")});if(typeof((o=(a=(i=window==null?void 0:window.webkit)==null?void 0:i.messageHandlers)==null?void 0:a.statusCodeHandler)==null?void 0:o.postMessage)=="function")return(c=window.parent)==null||c.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(g=>{var _,b,$;androidRefreshCB.push(g),($=(b=(_=window==null?void 0:window.webkit)==null?void 0:_.messageHandlers)==null?void 0:b.statusCodeHandler)==null||$.postMessage(JSON.stringify({status:401}))})}return!1}async function postAuthVerifyV2({txn_id:e,code:s,token:i}){const a=new Headers;a.append("Content-Type","application/json");const o=JSON.stringify({txn_id:e,...s?{code:s}:{},...i?{token:i}:{}}),c={method:"POST",headers:a,body:o,redirect:"follow",credentials:"include"};try{const g=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${g}/v2/auth/verify`,c)).json()}catch(g){console.error(g)}return{}}const AbhaAadhaarVerificationStatusScreen=()=>{const e=useAuthAbhaStore(_e=>_e.aadhaarVerificationSkipStateStatus),s=useAuthAbhaStore(_e=>_e.authTxnId),i=useAuthAbhaStore(_e=>_e.ekaSmallToken),a=useAuthAbhaStore(_e=>_e.setScreen),o=useAuthAbhaStore(_e=>_e.abhaAddressList),[c,g]=reactExports.useState(!0),_=useAuthAbhaStore(_e=>_e.clientId),b=useAuthAbhaStore(_e=>_e.isEkaAppLogin),$=useAuthAbhaStore(_e=>_e.oid),et=useAuthAbhaStore(_e=>_e.ekaProfileInfo),ot=["M","F","O","U"],rt=useAuthAbhaStore(_e=>_e.setSelectedAbhaFlow),at=useAuthAbhaStore(_e=>_e.txnId),it=useAuthAbhaStore(_e=>_e.isNewLoginOrCreateFlow),nt=GET_EXTRA_HEADERS(),dt=({name:_e,data:tt={}})=>{var ut,ct;const st={...{login_platform:_,is_eka_app_login:b?"true":"false",is_new_login_or_create_flow:it?"true":"false",txn_id:at||"missing txnId",oid:nt!=null&&nt["X-User-ID"]?"true":"false",access_token:nt!=null&&nt.auth?"true":"false"},...tt};handleSendEvent({eventName:_e,eventData:st}),(ct=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ct.call(ut,_e,st)};return reactExports.useEffect(()=>{var j,st;const _e=new Promise(ut=>{setTimeout(()=>{ut(g(!1))},500)});handleSendEvent({eventName:"page_view",eventData:{page_view:"aadhaar_verified_successful",platform:_}}),(st=(j=window.curio)==null?void 0:j.pushToMixpanel)==null||st.call(j,"page_view",{platform:_,page_view:"aadhaar_verified_successful"});async function tt(){await _e,setTimeout(async()=>{var ut,ct,gt,mt,_t,kt,wt,St;if(e===ABHA_V3_SKIP_STATES.CONFIRM_MOBILE_OTP)console.log("setting the selected abha flow to aadhaar"),rt("aadhaar"),handleSendEvent({eventName:"abha_aadhaar_verification_status",eventData:{type:"confirm_mobile_otp",platform:_,transactionId:s||"",skipState:"confirm_mobile_otp",minToken:i||"",oid:(et==null?void 0:et.oid)||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}}),(ct=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ct.call(ut,"abha_aadhaar_verification_status",{platform:_,type:"confirm_mobile_otp",transactionId:s||"",skipState:"confirm_mobile_otp",minToken:i||"",oid:(et==null?void 0:et.oid)||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}),a(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);else{if(b){const Mt=ot.includes(et==null?void 0:et.gender)?et==null?void 0:et.gender:void 0,xt={oid:(et==null?void 0:et.oid)||"",fln:(et==null?void 0:et.name)||"",dob:et==null?void 0:et.date_of_birth,gen:Mt,mobile:et==null?void 0:et.mobile,at:"",fn:(et==null?void 0:et.firstname)||"",mn:(et==null?void 0:et.middlename)||"",ln:(et==null?void 0:et.lastname)||"",abha_number:(et==null?void 0:et.abha_number)||"","health-ids":et!=null&&et.abha_address?[et==null?void 0:et.abha_address]:void 0};console.log("inside abha aadhaar verification status auth profile response ",xt);const pt=getMockAuthVerifyResponse(xt);if(console.log("authResponse ",pt),e===ABHA_V3_SKIP_STATES.ABHA_END&&$){if(handleSendEvent({eventName:"abha_aadhaar_verification_status_eka_flow",eventData:{type:"verify",platform:_,transactionId:s||"",skipState:"abha_end",minToken:i||"",oid:$||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}}),(mt=(gt=window.curio)==null?void 0:gt.pushToMixpanel)==null||mt.call(gt,"abha_aadhaar_verification_status_eka_flow",{platform:_,type:"verify",transactionId:s||"",skipState:"abha_end",minToken:i||"",oid:$||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(_t=window.EkaAbha)==null||_t.onAbhaSuccess(JSON.stringify({response:pt}));return}onAbhaSuccess({response:pt}),unMount();return}if(e===ABHA_V3_SKIP_STATES.ABHA_CREATE&&o){a(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}console.log("redirecting to create eka profile for abha address creation -> mobile"),a(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!s||!i)return;const Tt=await postAuthVerifyV2({txn_id:s,token:i});if(Tt.data){if(e===ABHA_V3_SKIP_STATES.ABHA_END){if($){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(kt=window.EkaAbha)==null||kt.onAbhaSuccess(JSON.stringify({response:Tt}));return}onAbhaSuccess({response:Tt}),unMount();return}setIndividualEnv({extraHeaders:{auth:(wt=Tt.data)==null?void 0:wt.tokens.sess}}),a(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(St=Tt.data)==null?void 0:St.tokens.sess}}),dt({name:"abha_login_otp_verify_abha_select",data:{type:"verify",platform:_}}),a(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}}},2e3)}tt()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:c,loadingText:"Verifying...",successText:"Aadhaar Verification Successful!"})};var jsxRuntime=jsxRuntimeExports,k3=e=>jsxRuntime.jsx("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M14.9688 7C14.9688 7.5625 14.5312 8 14 8H4.40625L7.6875 11.3125C8.09375 11.6875 8.09375 12.3438 7.6875 12.7188C7.5 12.9062 7.25 13 7 13C6.71875 13 6.46875 12.9062 6.28125 12.7188L1.28125 7.71875C0.875 7.34375 0.875 6.6875 1.28125 6.3125L6.28125 1.3125C6.65625 0.90625 7.3125 0.90625 7.6875 1.3125C8.09375 1.6875 8.09375 2.34375 7.6875 2.71875L4.40625 6H14C14.5312 6 14.9688 6.46875 14.9688 7Z",fill:"currentColor"})}),F3=k3,v4=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z",fill:"currentColor"})}),u4=v4,B4=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z",fill:"currentColor"})}),R4=B4,d6=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"14",viewBox:"0 0 448 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24V232H40c-13.3 0-24 10.7-24 24s10.7 24 24 24H200V440c0 13.3 10.7 24 24 24s24-10.7 24-24V280H408c13.3 0 24-10.7 24-24s-10.7-24-24-24H248V72z"})}),w6=d6,B6=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512",...e,children:jsxRuntime.jsx("path",{d:"M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z",fill:"currentColor"})}),R6=B6,e8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"})}),s8=e8,z8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"14",viewBox:"0 0 448 512",...e,children:jsxRuntime.jsx("path",{d:"M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z",fill:"currentColor"})}),T8=z8,A8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"})}),S8=A8,k8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"})}),F8=k8,D8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z",fill:"currentColor"})}),y8=D8,E7=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z",fill:"currentColor"})}),_7=E7,Z9=e=>jsxRuntime.jsx("svg",{viewBox:"0 0 105 117",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M104.436 33.768C104.144 38.8643 102.1 43.6607 98.4497 47.408L63.4061 83.3816C62.53 84.2809 61.5079 85.1803 60.3398 85.9297C52.3089 91.4757 41.3578 90.4264 34.4951 83.3816C30.2607 79.0348 28.0704 72.8893 28.6545 66.5939C28.8005 62.8467 31.8668 59.9988 35.5172 59.9988C39.3136 59.9988 42.3799 63.1464 42.3799 67.0436C42.3799 69.142 41.5038 70.9407 40.1897 72.2897C40.6277 73.4889 41.3578 74.688 42.3799 75.5873C44.1321 77.386 46.6143 78.4352 49.0966 78.4352C50.7028 78.4352 52.1629 78.1354 53.4771 77.386C54.3531 76.9363 55.0832 76.3368 55.8133 75.5873L73.0431 57.9003L65.8883 50.5557L55.6673 40.0634C53.9151 38.2647 51.4328 37.2155 48.9506 37.2155C46.4683 37.2155 43.9861 38.2647 42.2339 40.0634C41.0658 41.2625 40.1897 42.7614 39.7516 44.2603C41.3578 45.6093 42.5259 47.5579 42.5259 49.8062C42.5259 53.7034 39.4596 56.8511 35.6632 56.8511C32.1589 56.8511 29.0925 54.0032 28.8005 50.4058C27.6324 43.6607 29.6766 36.9157 34.4951 31.9693C38.2915 28.0722 43.402 25.8238 48.9506 25.8238C54.3531 25.8238 59.6097 28.0722 63.4061 31.9693L73.6271 42.4616L80.7819 49.8062L90.7109 39.6137C92.6091 37.6651 93.4852 35.2669 93.4852 32.5689C93.4852 30.1706 92.6091 27.9223 91.0029 26.2735C86.7685 21.477 81.658 17.7298 75.9634 15.0318C69.9768 12.3337 63.6981 10.8348 57.1274 10.8348C44.8622 10.8348 33.473 15.7812 24.7121 24.6247C16.0972 33.4682 11.2787 45.3095 11.2787 57.9003C11.2787 70.4911 16.0972 82.1825 24.7121 91.1759C33.327 100.019 44.8622 104.966 57.1274 104.966C63.6981 104.966 69.9768 103.617 75.9634 100.769C81.658 98.0708 86.7685 94.3236 91.0029 89.5271C94.3613 85.6299 94.2152 79.7842 90.7109 76.037L83.4101 68.5425L91.1489 60.5983L98.4497 68.0928C106.188 76.037 106.481 88.6277 99.1798 97.0216C93.9232 103.017 87.6446 107.664 80.6359 110.961C73.3351 114.409 65.4503 116.058 57.2734 116.058C49.6807 116.058 42.2339 114.559 35.2252 111.561C28.5085 108.563 22.3758 104.366 17.2653 99.12C12.0088 93.724 7.92036 87.5785 5.14608 80.6836C2.22578 73.4889 0.765625 65.8445 0.765625 58.0502C0.765625 50.2559 2.22578 42.6115 5.14608 35.4168C8.06638 28.5219 12.1548 22.2265 17.2653 16.9803C22.5219 11.5843 28.5085 7.38737 35.2252 4.53946C42.2339 1.54166 49.6807 0.042762 57.2734 0.042762C65.4503 0.042762 73.1891 1.84143 80.6359 5.13901C87.7906 8.43659 93.9232 13.0832 99.1798 19.0788C101.37 21.6269 103.122 24.7746 103.852 28.0722C104.29 29.4212 104.436 31.6695 104.436 33.768Z",fill:"#7265E3"})}),I9=Z9,ArrowLeftRegularIcon=F3,CheckSquareSolidIcon=T8,ChevronDownRegularIcon=u4,CircleCheckSolidIcon=S8,CircleExclamationSolidIcon=F8,CircleInfoRegularIcon=R4,CircleInfoSolidIcon=y8,EkaIcon=I9,PhoneSolidIcon=_7,PlusRegularIcon=w6,SquareRegularIcon=R6,XMarkRegularIcon=s8;const usePostAuthVerifyV2=()=>{const e=useAuthAbhaStore(s=>s.setScreen);return useMutation({mutationFn:s=>postAuthVerifyV2(s),onSuccess:(s,{oid:i})=>{var a,o,c;if(i){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(a=window.EkaAbha)==null||a.onAbhaSuccess(JSON.stringify({response:s}));return}onAbhaSuccess({response:s}),unMount();return}(o=s.data)!=null&&o.tokens.sess&&setIndividualEnv({extraHeaders:{auth:(c=s.data)==null?void 0:c.tokens.sess}}),e(SCREEN_NAMES.GET_ALL_PROFILES)}})},Spinner=({className:e="",size:s=40})=>jsxRuntimeExports.jsx("div",{className:`pds2-w-full pds2-flex pds2-justify-center pds2-items-center ${e}`,children:jsxRuntimeExports.jsxs("svg",{className:"pds2-animate-spin",id:"svg-spinner",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 48 48",fill:"currentColor",children:[jsxRuntimeExports.jsx("circle",{cx:"24",cy:"4",r:"2.5",className:"fill-current opacity-100"}),jsxRuntimeExports.jsx("circle",{cx:"12.19",cy:"7.86",r:"2.5",className:"fill-current opacity-90"}),jsxRuntimeExports.jsx("circle",{cx:"5.02",cy:"17.68",r:"2.5",className:"fill-current opacity-80"}),jsxRuntimeExports.jsx("circle",{cx:"5.02",cy:"30.32",r:"2.5",className:"fill-current opacity-70"}),jsxRuntimeExports.jsx("circle",{cx:"12.19",cy:"40.14",r:"2.5",className:"fill-current opacity-60"}),jsxRuntimeExports.jsx("circle",{cx:"24",cy:"44",r:"2.5",className:"fill-current opacity-50"}),jsxRuntimeExports.jsx("circle",{cx:"35.81",cy:"40.14",r:"2.5",className:"fill-current opacity-40"}),jsxRuntimeExports.jsx("circle",{cx:"42.98",cy:"30.32",r:"2.5",className:"fill-current opacity-30"}),jsxRuntimeExports.jsx("circle",{cx:"42.98",cy:"17.68",r:"2.5",className:"fill-current opacity-20"}),jsxRuntimeExports.jsx("circle",{cx:"35.81",cy:"7.86",r:"2.5",className:"fill-current opacity-10"})]})}),Pds2Button=({title:e,textColor:s,size:i,state:a,buttonColor:o="",isLoading:c,className:g,onClick:_,width:b,buttonIconPosition:$="right",IconComponent:et})=>jsxRuntimeExports.jsx("button",{title:e,className:`${g} pds2-px-24 pds2-py-16 pds2-text-text-invert ${o||"pds2-bg-bg-brand-01"} pds2-flex pds2-justify-center pds2-items-center pds2-rounded-16 ${c?"pds2-pointer-events-none pds2-cursor-not-allowed":""} disabled:pds2-pointer-events-none disabled:pds2-bg-bg-04 disabled:pds2-text-text-03 ${a==="disabled"?"":"ripple"}`,onClick:_,...b?{style:{width:b}}:null,disabled:a==="disabled",children:c?jsxRuntimeExports.jsx(Spinner,{size:24,className:s}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[et&&$==="left"?jsxRuntimeExports.jsx(et,{}):null,jsxRuntimeExports.jsx("div",{className:`${s} Body1Semibold`,children:e}),et&&$==="right"?jsxRuntimeExports.jsx(et,{}):null]})}),AbhaHeader=({prefixIcon:e=jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"}),title:s,suffixIcon:i=jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"}),className:a=""})=>jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-items-center pds2-justify-between pds2-w-full pds2-p-16 pds2-sticky pds2-top-0 pds2-z-50 pds2-bg-bg-white ${a}`,children:[e,jsxRuntimeExports.jsx("div",{className:"pds2-flex-1 Heading4Semibold pds2-text-center pds2-text-text-black",children:s}),i]}),BottomSheetWrapper=({isOpen:e,setIsOpen:s,children:i,shouldCloseOnClickOutside:a=!0})=>jsxRuntimeExports.jsxs("div",{className:`pds2-absolute pds2-inset-0 pds2-z-50 pds2-transition-opacity pds2-duration-300 ${e?"pds2-opacity-100 pds2-pointer-events-auto":"pds2-opacity-0 pds2-pointer-events-none pds2-hidden"}`,children:[jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-inset-0 pds2-bg-text-black pds2-bg-opacity-60 pds2-transition-opacity pds2-duration-300",onClick:()=>a&&s(!1)}),jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-w-full pds2-bg-bg-white pds2-rounded-t-16 pds2-shadow-lg pds2-p-4 pds2-transition-all pds2-duration-300 pds2-ease-out",style:{transform:e?"translateY(0)":"translateY(100%)"},children:i})]}),AbhaBottomSheet$1=({description:e,subText:s,submitText:i,onSubmitClick:a,iconUrl:o,isBottomSheetOpen:c,onBottomSheetClose:g,shouldCloseOnClickOutside:_=!0})=>jsxRuntimeExports.jsx(BottomSheetWrapper,{isOpen:c,setIsOpen:g,shouldCloseOnClickOutside:_,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-p-16 pds2-text-center",children:[_?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-items-center",children:jsxRuntimeExports.jsx("button",{onClick:g,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(XMarkRegularIcon,{className:"pds2-w-18 pds2-h-18 pds2-text-text-03"})})}):null,jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[o&&jsxRuntimeExports.jsx("span",{className:"pds2-flex pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:o,className:"pds2-w-64 pds2-h-64",alt:"Bottom sheet icon"})}),jsxRuntimeExports.jsx("div",{className:"Heading4Semibold pds2-text-text-01 pds2-py-16 pds2-text-18",children:e}),s&&jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-text-03",children:s}),jsxRuntimeExports.jsx(Pds2Button,{title:i,onClick:a,state:"enabled",className:"pds2-w-full"})]})]})}),AbhaErrorBottomSheet=({onSubmitClick:e})=>{const s=useAuthAbhaStore(o=>o.bottomsheetErrorInfo),i=useAuthAbhaStore(o=>o.setBottomsheetErrorInfo),a=()=>{i(null)};return jsxRuntimeExports.jsx(AbhaBottomSheet$1,{description:(s==null?void 0:s.title)||"Something went wrong",subText:(s==null?void 0:s.description)||"Something went wrong",submitText:(s==null?void 0:s.cta.title)||"Retry",onSubmitClick:e,iconUrl:s==null?void 0:s.img,isBottomSheetOpen:!!s,onBottomSheetClose:a,shouldCloseOnClickOutside:!1})},SpacedInputComponent=({numberOfInputs:e,length:s=1,placeholder:i="",setIsValid:a,onSubmit:o,error:c,containerClassName:g,setError:_,initialValues:b,setAadhaarValue:$,disabled:et=!1})=>{const ot=reactExports.useRef([]),[rt,at]=reactExports.useState(b||Array(e).fill(""));reactExports.useEffect(()=>{if(b&&b.length===e){const j=b.join(""),st=rt.join("");j!==st&&(at(b),a==null||a(j.length===e*s))}},[b,e,s]);const it=(j,st)=>{var _t;if(et)return;_&&_(null);const ut=j.target.value;if(isNaN(Number(ut)))return;if(ut.trim().length===e*s){_e({otpValue:ut,index:0});return}const gt=[...rt];gt[st]=ut;const mt=gt.join("").length;mt>e*s||(at(gt),$==null||$(gt.join("")),mt===e*s?(a==null||a(!0),o({inputVal:gt.join("")}),$&&mt===12&&$(gt.join(""))):a==null||a(!1),ut.length===s&&st<e-1&&((_t=ot.current[st+1])==null||_t.focus()))},nt=(j,st)=>{var ut;et||j.key==="Backspace"&&!rt[st]&&st>0&&(j.preventDefault(),(ut=ot.current[st-1])==null||ut.focus())},dt=(j,st)=>{if(et)return;j.preventDefault();const ut=j.clipboardData.getData("text").replace(/\D/g,"");if(!ut)return;const ct=e*s,gt=ut.slice(0,ct);_e({otpValue:gt,index:st})},_e=({otpValue:j,index:st})=>{var mt,_t;const ut=j.match(new RegExp(`.{1,${s}}`,"g"))||[],ct=[...rt];ut.forEach((kt,wt)=>{st+wt<e&&(ct[st+wt]=kt)}),at(ct);const gt=ct.findIndex((kt,wt)=>wt>=st&&!kt);gt!==-1?(mt=ot.current[gt])==null||mt.focus():(_t=ot.current[e-1])==null||_t.focus(),ct.join("").length===e*s?(a==null||a(!0),o({inputVal:ct.join("")}),$&&ct.join("").length===12&&$(ct.join(""))):a==null||a(!1)},tt=reactExports.useMemo(()=>{const j=rt.findIndex(st=>st.length<s);return j!==-1?j:rt.length>0?rt.length-1:0},[rt,s]);return jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-justify-center pds2-items-center pds2-space-x-8 ${g}`,children:Array.from({length:e}).map((j,st)=>jsxRuntimeExports.jsx("label",{className:`focus-within:pds2-border-border-brand-01 pds2-border ${c?"pds2-border-border-error":"pds2-border-border-03"} pds2-rounded-12 pds2-bg-bg-white`,children:jsxRuntimeExports.jsx("input",{autoFocus:st===tt&&!et,placeholder:i,value:rt[st],type:"text",inputMode:"numeric",pattern:"[0-9]*",onPaste:ut=>dt(ut,st),ref:ut=>{ut&&(ot.current[st]=ut)},onChange:ut=>it(ut,st),onKeyDown:ut=>nt(ut,st),disabled:et,className:"pds2-w-full pds2-text-center pds2-h-56 pds2-rounded-12 pds2-outline-none pds2-bg-transparent disabled:pds2-text-text-04"},st)},st))})};function formatTime(e){const s=Math.floor(e/60),i=e%60;return`${s.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}const ResendTimer=({time:e,onResendOtpClick:s,error:i})=>{const[a,o]=reactExports.useState(e);return reactExports.useEffect(()=>{const c=setInterval(()=>{o(a-1)},1e3);return()=>clearInterval(c)},[a]),a>0?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsxs("div",{className:"pds2-text-text-04",children:[jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:"Resend OTP in"})," ",jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:formatTime(a)})]})}):jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-text-brand cursor-pointer",onClick:()=>{o(e),s()},children:"Resend OTP"})})},AbhaOtpCard=({otpSentToText:e,onOtpCompletion:s,onResendOtpClick:i,setIsValid:a,error:o,setError:c,prefixIcon:g=jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-w-48"})})=>{const _=useAuthAbhaStore(et=>et.goBackScreen),b=useAuthAbhaStore(et=>et.screen),$=useAuthAbhaStore(et=>et.setGoBackToLogin);return reactExports.useEffect(()=>{$(!1)},[]),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-bg-white pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-space-x-16",children:[jsxRuntimeExports.jsxs("div",{className:"Body1Regular pds2-text-text-01 pds2-flex-1",children:[e,jsxRuntimeExports.jsx("sup",{className:"pds2-text-text-error Body3Semibold",children:" *"})]}),g]}),jsxRuntimeExports.jsx(SpacedInputComponent,{numberOfInputs:6,length:1,onSubmit:({inputVal:et})=>s({otp:et}),setIsValid:a,error:o,setError:c}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex",children:[jsxRuntimeExports.jsx(ResendTimer,{time:60,onResendOtpClick:i,error:o}),b.length===2&&jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-text-brand cursor-pointer",onClick:()=>{_(),$(!0)},children:"Change"})]}),o&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-text-error",children:o})]})};async function postAbdmLoginVerify({txn_id:e,otp:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,otp:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/profile/login/verify`,o)).json()}catch(c){console.error("postAbdmLoginVerify error =>",c)}return{}}const usePostAbdmLoginVerify=()=>{const e=useAuthAbhaStore(s=>s.setSelectedAbhaAddress);return useMutation({mutationFn:({txn_id:s,otp:i})=>postAbdmLoginVerify({otp:i,txn_id:s}),onSuccess(s){s.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],s.profile),e(s.profile.abha_address))}})},Pds2CustomButton=({prefixIcon:e,title:s,suffixIcon:i,className:a="",onClick:o,width:c="pds2-w-full",padding:g,isRippleStyle:_=!0})=>jsxRuntimeExports.jsxs("button",{onClick:o,className:`pds2-flex pds2-flex-row pds2-items-center pds2-gap-12 ${g||"pds2-p-16"} pds2-rounded-16 pds2-text-bg-invert pds2-bg-bg-white pds2-border pds2-border-border-03 ${_&&"ripple"} ${c} ${a}`,children:[e||null,jsxRuntimeExports.jsx("span",{className:"Body1Medium",children:s}),i||null]}),ExitPopup=({open:e,setOpen:s})=>{const i=useAuthAbhaStore(at=>at.goBackLoginScreen),a=useAuthAbhaStore(at=>at.clientId),o=useAuthAbhaStore(at=>at.isEkaAppLogin),c=useAuthAbhaStore(at=>at.isNewLoginOrCreateFlow),g=useAuthAbhaStore(at=>at.setAbhaAuthFlowMethod),_=useAuthAbhaStore(at=>at.txnId),b=useAuthAbhaStore(at=>at.setGoBackToLogin),$=useAuthAbhaStore(at=>at.screen),et=useAuthAbhaStore(at=>at.abhaAuthFlowMethod),ot=({name:at,data:it={}})=>{var _e,tt;const dt={...{login_platform:a,is_eka_app_login:o?"true":"false",is_new_login_or_create_flow:c?"true":"false",txn_id:_||"missing txnId"},...it};handleSendEvent({eventName:at,eventData:dt}),(tt=(_e=window.curio)==null?void 0:_e.pushToMixpanel)==null||tt.call(_e,at,dt)},rt=()=>{ot({name:"abha_exit_popup_confirmed",data:{action:"go_back_to_login_screen"}}),$.at(-2)===SCREEN_NAMES.SELECT_ABHA_FROM_LIST&&et===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&g(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),b(!0),i()};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:e?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("div",{className:"pds2-h-full pds2-z-50 pds2-flex pds2-items-center pds2-justify-center pds2-absolute pds2-top-0 pds2-inset-0 pds2-bg-text-black pds2-bg-opacity-60 pds2-transition-opacity pds2-duration-300",onClick:()=>s(!1),children:jsxRuntimeExports.jsx("div",{className:"pds2-z-50 pds2-absolute pds2-top pds2-px-24",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-16 pds2-bg-bg-white pds2-rounded-16 pds2-w-full pds2-p-24",children:[jsxRuntimeExports.jsx("h2",{className:"pds2-text-text-black pds2-font-500 pds2-text-18",children:"Are you sure you want to exit?"}),jsxRuntimeExports.jsx("p",{className:"pds2-text-text-03 pds2-text-14 pds2-font-400",children:"Confirm if you'd like to exit. Any unsaved changes may be lost."}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-end pds2-gap-x-8",children:[jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Not yet",padding:"pds2-px-12 pds2-py-8",className:"pds2-text-text-error pds2-font-600 pds2-text-16 pds2-border-none",width:"pds2-w-fit",onClick:()=>s(!1)}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Yes, I'm done",padding:"pds2-px-12 pds2-py-8",className:"pds2-text-text-brand pds2-font-600 pds2-text-16 pds2-border-none",width:"pds2-w-fit",onClick:rt})]})]})})})}):null})},AbhaStepper=()=>{const e=useAuthAbhaStore($=>$.screen),s=useAuthAbhaStore($=>$.currentStepperIndex),i=useAuthAbhaStore($=>$.setCurrentStepperIndex),a=e[e.length-1],o=e.length>1&&e[e.length-2],c=useAuthAbhaStore($=>$.abhaAuthFlowMethod),g={1:["LOGIN_WITH_ABHA","LOGIN_OR_CREATE_ABHA","CREATE_ABHA_WITH_AADHAAR"],2:["VERIFY_OTP_LOGIN_WITH_ABHA","ABHA_OTP_AND_MOBILE"],3:["ABHA_PHONE_NUMBER_VERIFICATION","SELECT_ABHA_FROM_LIST","SELECT_EKA_PROFILE","CREATE_ABHA_ADDRESS","CREATE_ABHA_WITH_AADHAAR","CREATE_PHR_EKA_PROFILE","CREATE_EKA_PROFILE"]};reactExports.useEffect(()=>{var et;const $=(et=Object.entries(g).find(([ot,rt])=>rt.includes(a)))==null?void 0:et[0];if($){if(c==="abha_number"||c==="phr_address"){if(a==="VERIFY_OTP_LOGIN_WITH_ABHA"){i(3);return}}else if((o==="LOGIN_OR_CREATE_ABHA"||o==="LOGIN_WITH_ABHA"||o==="CREATE_ABHA_WITH_AADHAAR")&&e.length>1){i(2);return}Number($)>=s&&i(Number($))}},[e]);const _=Array.from({length:4},($,et)=>{const ot=et+1;return jsxRuntimeExports.jsx("div",{className:`pds2-relative pds2-p-0 pds2-text-center pds2-h-23 pds2-w-23 pds2-rounded-11 pds2-transition-all pds2-ease-in-out pds2-duration-250 pds2-text-bg-white ${ot<=s?"pds2-bg-text-brand":"pds2-bg-bg-secondary"}`,children:ot},ot)}),b=s===1?20:s===2?50:s===3?80:100;return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-01 pds2-flex pds2-w-full pds2-place-items-center pds2-justify-center pds2-relative pds2-px-60 pds2-py-20 pds2-cursor-default",children:[jsxRuntimeExports.jsx("div",{className:"pds2-cursor-default pds2-flex pds2-flex-row pds2-justify-between pds2-items-center pds2-gap-5 pds2-h-auto pds2-w-full pds2-z-10",children:_}),jsxRuntimeExports.jsx("progress",{className:"abhaStepper pds2-absolute pds2-w-full pds2-h-2 pds2-px-60",max:100,value:b})]})};async function postAbdmLoginInit({method:e,identifier:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({method:e,identifier:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/profile/login/init`,o)).json()}catch(c){console.error("postAbdmLoginInit error =>",c)}return{}}const AbhaLoginOtpVerifyScreen=()=>{const e=useAuthAbhaStore(ft=>ft.authTxnId),s=useAuthAbhaStore(ft=>ft.txnId),i=useAuthAbhaStore(ft=>ft.orgIcon),a=useAuthAbhaStore(ft=>ft.setAbhaAddressList),o=useAuthAbhaStore(ft=>ft.clearAbhaAuthStore),c=useAuthAbhaStore(ft=>ft.aadhaarOtpSentToHint),g=useAuthAbhaStore(ft=>ft.loginIdentifierValue),_=useAuthAbhaStore(ft=>ft.abhaAuthFlowMethod),b=useAuthAbhaStore(ft=>ft.setScreen),$=useAuthAbhaStore(ft=>ft.goBackLoginScreen),et=useAuthAbhaStore(ft=>ft.setTxnId),ot=useAuthAbhaStore(ft=>ft.setBottomsheetErrorInfo),[rt,at]=reactExports.useState(!1),it=useAuthAbhaStore(ft=>ft.setEkaProfileInfo),nt=useAuthAbhaStore(ft=>ft.setAadhaarVerificationSkipStateStatus),dt=useAuthAbhaStore(ft=>ft.setSelectedAbhaAddress),[_e,tt]=reactExports.useState(""),[j,st]=reactExports.useState(!1),[ut,ct]=reactExports.useState(""),[gt,mt]=reactExports.useState(LOADING_STATE.IDLE),_t=["M","F","O","U"],{mutateAsync:kt}=usePostAuthVerifyV2(),{mutateAsync:wt}=usePostAbdmLoginVerify(),St=useAuthAbhaStore(ft=>ft.isEkaAppLogin),Tt=useAuthAbhaStore(ft=>ft.clientId);useAuthAbhaStore(ft=>ft.oid);const Mt=useAuthAbhaStore(ft=>ft.isNewLoginOrCreateFlow),xt=GET_EXTRA_HEADERS(),pt=({name:ft,data:Ct={}})=>{var Ot,Lt;const bt={...{login_platform:Tt,is_eka_app_login:St?"true":"false",is_new_login_or_create_flow:Mt?"true":"false",txn_id:s||"missing txnId",oid:xt!=null&&xt["X-User-ID"]?"true":"false",access_token:xt!=null&&xt.auth?"true":"false"},...Ct};handleSendEvent({eventName:ft,eventData:bt}),(Lt=(Ot=window.curio)==null?void 0:Ot.pushToMixpanel)==null||Lt.call(Ot,ft,bt)};reactExports.useEffect(()=>{pt({name:"page_view",data:{page_view:"abha_login_otp_verify",platform:Tt}})},[]);const vt=()=>{pt({name:"abha_login_otp_verify_error_bottomsheet_dismissed",data:{platform:Tt}}),$();const ft=useAuthAbhaStore.getState().isEkaAppLogin;o(),useAuthAbhaStore.setState({isEkaAppLogin:ft})},lt=({otp:ft})=>{tt(ft),pt({name:"abha_login_otp_completion",data:{type:"verify",platform:Tt,txn_id:s,otp_entered:!0,method:_}}),ht(ft)},ht=async ft=>{var Rt,Vt,Gt,$t,Bt,er;if(!s){pt({name:"abha_login_otp_verify_txnId_not_found",data:{type:"verify",platform:Tt,txn_id:s||"missing_txn_id",txn_id_exists:!!s,method:(_==null?void 0:_.toLowerCase())||"unknown_method"}});return}pt({name:"abha_login_otp_verify",data:{type:"verify",platform:Tt,txn_id:s}}),mt(LOADING_STATE.LOADING);const{abha_profiles:Ct=[],skip_state:Et,profile:bt,error:Ot,action:Lt,eka:Pt}=await wt({otp:ft,txn_id:s});if(Lt){pt({name:"abha_login_otp_verify_error_action",data:{type:"verify",platform:Tt,error_action:Lt||"no_error_action",error_message:Ot||"no_error_message",error_action_exists:!!Lt,error_message_exists:!!Ot}}),ot(Lt);return}if(Ot){pt({name:"abha_login_otp_verify_error",data:{type:"verify",platform:Tt,error_message:Ot||"unknown_error",error_message_exists:!!Ot}}),mt(LOADING_STATE.REJECTED),ct(Ot);return}if(!Et){ct("Skip State is missing"),pt({name:"abha_login_skip_state_missing",data:{platform:Tt,skipState:Et||"missing_skip_state",skipState_exists:!!Et}});return}nt(Et),bt&&dt(bt.abha_address),bt&&it({date_of_birth:`${bt.year_of_birth}-${String(bt.month_of_birth).padStart(2,"0")}-${String(bt.day_of_birth).padStart(2,"0")}`,firstname:bt.first_name,lastname:bt.last_name,pincode:bt.pincode,gender:bt.gender,name:bt.first_name+" "+bt.last_name,mobile:bt.mobile,oid:Pt==null?void 0:Pt.oid,abha_address:bt==null?void 0:bt.abha_address,abha_number:bt==null?void 0:bt.abha_number});const It=_t.includes(bt==null?void 0:bt.gender)?bt==null?void 0:bt.gender:void 0,Dt={oid:(Pt==null?void 0:Pt.oid)||"",fln:(bt==null?void 0:bt.first_name)+" "+(bt==null?void 0:bt.last_name),dob:`${bt==null?void 0:bt.year_of_birth}-${String(bt==null?void 0:bt.month_of_birth).padStart(2,"0")}-${String(bt==null?void 0:bt.day_of_birth).padStart(2,"0")}`,gen:It,mobile:bt==null?void 0:bt.mobile,fn:(bt==null?void 0:bt.first_name)||"",mn:(bt==null?void 0:bt.middle_name)||"",ln:(bt==null?void 0:bt.last_name)||"","health-ids":bt!=null&&bt.abha_address?[bt.abha_address]:void 0,abha_number:(bt==null?void 0:bt.abha_number)||""};if(Et===ABHA_V3_SKIP_STATES.ABHA_END){if(St){if(pt({name:"abha_login_otp_verify_eka_app",data:{type:"verify",platform:Tt,txn_id:s,skip_state:Et}}),mt(LOADING_STATE.RESOLVED),!Pt){pt({name:"abha_login_otp_verify_eka_app_error",data:{type:"null_oid",platform:Tt,txn_id:s||"missing_txn_id",txn_id_exists:!!s,eka:Pt||"missing_eka",eka_exists:!!Pt,skip_state:Et||"missing_skip_state",skip_state_exists:!!Et}}),mt(LOADING_STATE.REJECTED),ct("Something went wrong, please try again");return}const tr=getMockAuthVerifyResponse(Dt);if(pt({name:"abha_login_otp_verify_success",data:{type:"verify",platform:Tt,txn_id:s,skip_state:Et,method:_}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Rt=window.EkaAbha)==null||Rt.onAbhaSuccess(JSON.stringify({response:tr}));return}onAbhaSuccess({response:tr}),unMount();return}if(!Pt||!Pt.min_token||!e){pt({name:"abha_login_otp_verify_eka_error",data:{type:"verify",platform:Tt,eka:Pt||"missing_eka",eka_exists:!!Pt,auth_txnId:e||"missing_auth_txnId",auth_txnId_exists:!!e,skip_state:Et||"missing_skip_state",skip_state_exists:!!Et}}),mt(LOADING_STATE.REJECTED),ct("Something went wrong, please try again");return}const Kt=await kt({txn_id:e,token:Pt.min_token,...Pt.oid?{oid:Pt.oid}:null});if(!Kt.data){pt({name:"abha_login_otp_verify_auth_verify_error",data:{type:"verify",platform:Tt,skip_state:Et||"missing_skip_state",skip_state_exists:!!Et,auth_verify_data_exists:!1}}),mt(LOADING_STATE.REJECTED),ct(((Vt=Kt.error)==null?void 0:Vt.message)||"Something went wrong, please try again");return}pt({name:"abha_login_otp_verify_abha_end_success",data:{type:"verify",platform:Tt,txn_id:s,skip_state:Et}}),mt(LOADING_STATE.RESOLVED);return}if(Et===ABHA_V3_SKIP_STATES.ABHA_SELECT&&Ct.length>0){pt({name:"abha_login_otp_verify_abha_select",data:{type:"verify",platform:Tt}}),b(SCREEN_NAMES.SELECT_ABHA_FROM_LIST),a(Ct);return}if(Et===ABHA_V3_SKIP_STATES.ABHA_CREATE&&_===ABHA_AUTH_FLOW_METHOD.MOBILE){b(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(Et===ABHA_V3_SKIP_STATES.ABHA_CREATE){b(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}if(St){if(!Pt){pt({name:"abha_login_otp_verify_eka_failed",data:{type:"verify",platform:Tt,txn_id:e||"missing_authTxnId",txn_id_exists:!!e}}),mt(LOADING_STATE.REJECTED),ct("Something went wrong, please try again");return}const Kt=getMockAuthVerifyResponse(Dt);if(mt(LOADING_STATE.RESOLVED),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Gt=window.EkaAbha)==null||Gt.onAbhaSuccess(JSON.stringify({response:Kt}));return}onAbhaSuccess({response:Kt}),unMount();return}if(!Et||!(Pt!=null&&Pt.min_token)){mt(LOADING_STATE.REJECTED),ct(Ot||"Something went wrong, please try again"),Lt&&ot(Lt);return}if(Pt.min_token&&e){const Kt=await kt({txn_id:e,token:Pt.min_token});Kt.data?pt({name:"abha_login_auth_verify_success",data:{platform:Tt,txn_id:e}}):(pt({name:"abha_login_auth_verify_failed",data:{platform:Tt,txn_id:e||"missing_authTxnId",txn_id_exists:!!e,error_message:(($t=Kt==null?void 0:Kt.error)==null?void 0:$t.message)||"unknown_error",error_message_exists:!!((Bt=Kt==null?void 0:Kt.error)!=null&&Bt.message)}}),mt(LOADING_STATE.REJECTED),ct(((er=Kt.error)==null?void 0:er.message)||"Something went wrong, please try again"))}mt(LOADING_STATE.RESOLVED)},yt=async()=>{if(g&&_){const{txn_id:ft}=await postAbdmLoginInit({method:_,identifier:g});pt({name:"abha_login_verify_resend_otp",data:{method:_,platform:Tt,txn_id:ft}}),ft&&et(ft)}};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-bg-white",children:[jsxRuntimeExports.jsx(AbhaHeader,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>at(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),title:"OTP Verification",suffixIcon:i?jsxRuntimeExports.jsx("img",{src:i,className:"pds2-w-20 pds2-h-20"}):jsxRuntimeExports.jsx(EkaIcon,{className:"pds2-w-20 pds2-h-20"}),className:"pds2-border-b-1 pds2-border-bg-seperator-dark"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-bg-01",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:c||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:lt,onResendOtpClick:yt,error:ut,setIsValid:ft=>{ut&&ct(null),st(ft)},prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abdm-abha-icon",className:"pds2-w-48"})})}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full pds2-border pds2-border-border-brand-02",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!j||gt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>ht(_e),isLoading:gt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:vt}),jsxRuntimeExports.jsx(ExitPopup,{open:rt,setOpen:at})]})};async function getProfilesPatient(){const e=new Headers;e.append("Content-Type","application/json");const s={method:"GET",headers:e,redirect:"follow",credentials:"include"},i=GET_EXTRA_HEADERS(),a=i==null?void 0:i["X-User-ID"];if(!a)return{};try{const o=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${o}/profiles/v1/patient/${a}`,s)).json()}catch(o){return console.error("profilePhrUser error =>",o),{}}}const AbhaMobileLinkingStatusScreen=()=>{const e=useAuthAbhaStore(_e=>_e.aadhaarVerificationSkipStateStatus),s=useAuthAbhaStore(_e=>_e.authTxnId),i=useAuthAbhaStore(_e=>_e.ekaSmallToken),a=useAuthAbhaStore(_e=>_e.oid),o=useAuthAbhaStore(_e=>_e.setScreen),[c,g]=reactExports.useState(!0),_=useAuthAbhaStore(_e=>_e.setEkaProfileInfo),b=useAuthAbhaStore(_e=>_e.clientId),$=useAuthAbhaStore(_e=>_e.isEkaAppLogin),et=useAuthAbhaStore(_e=>_e.ekaProfileInfo),ot=["M","F","O","U"],rt=reactExports.useRef(!1),at=useAuthAbhaStore(_e=>_e.isNewLoginOrCreateFlow),it=useAuthAbhaStore(_e=>_e.txnId),nt=GET_EXTRA_HEADERS(),dt=({name:_e,data:tt={}})=>{var ut,ct;const st={...{login_platform:b,is_eka_app_login:$?"true":"false",is_new_login_or_create_flow:at?"true":"false",txn_id:it||"missing txnId",oid:nt!=null&&nt["X-User-ID"]?"true":"false",access_token:nt!=null&&nt.auth?"true":"false"},...tt};handleSendEvent({eventName:_e,eventData:st}),(ct=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ct.call(ut,_e,st)};return reactExports.useEffect(()=>{const _e=new Promise(j=>{setTimeout(()=>{j(g(!1))},500)});dt({name:"page_view",data:{page_view:"mobile_verified_successful",platform:b}});async function tt(){await _e,setTimeout(async()=>{var j,st,ut,ct,gt,mt;if(e===ABHA_V3_SKIP_STATES.ABHA_CREATE||e===ABHA_V3_SKIP_STATES.ABHA_END){if(dt({name:"abha_create_mobile_initiate",data:{platform:b,oid_received:a,txn_id:it,skip_state:e}}),a&&!rt.current){const kt=await getProfilesPatient();rt.current=!0,kt&&_({date_of_birth:kt.dob,firstname:kt.fn,lastname:kt.ln,pincode:"",gender:kt.gen,oid:kt==null?void 0:kt.oid,middlename:kt==null?void 0:kt.mn,abha_address:(j=kt==null?void 0:kt["health-ids"])==null?void 0:j[0],abha_number:kt==null?void 0:kt.abha_number})}if($&&e===ABHA_V3_SKIP_STATES.ABHA_END&&a){const kt=ot.includes(et==null?void 0:et.gender)?et==null?void 0:et.gender:void 0,wt={oid:(et==null?void 0:et.oid)||"",fln:(et==null?void 0:et.name)||"",dob:et==null?void 0:et.date_of_birth,gen:kt,mobile:et==null?void 0:et.mobile,fn:(et==null?void 0:et.firstname)||"",mn:(et==null?void 0:et.middlename)||"",ln:(et==null?void 0:et.lastname)||"","health-ids":et!=null&&et.abha_address?[et.abha_address]:void 0,abha_number:(et==null?void 0:et.abha_number)||""};dt({name:"abha_mobile_linking_success",data:{type:"unmount",isEkaAppLogin:$,skip_state:e}});const St=getMockAuthVerifyResponse(wt);if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(st=window.EkaAbha)==null||st.onAbhaSuccess(JSON.stringify({response:St}));return}onAbhaSuccess({response:St}),unMount();return}if($&&e===ABHA_V3_SKIP_STATES.ABHA_CREATE){dt({name:"navigate_to_screen",data:{destination:"create_eka_profile",reason:"abha_create_from_mobile_flow"}}),o(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!s||!i){dt({name:"authTxnId_or_minToken_not_found",data:{platform:b,type:"error",auth_txnId:s||"missing_authTxnId",auth_txnId_exists:!!s,ekaSmallToken_exists:!!i}});return}const _t=await postAuthVerifyV2({txn_id:s,token:i});if(_t.data){if(setIndividualEnv({extraHeaders:{auth:(ut=_t.data)==null?void 0:ut.tokens.sess}}),e===ABHA_V3_SKIP_STATES.ABHA_END){if(a){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(ct=window.EkaAbha)==null||ct.onAbhaSuccess(JSON.stringify({response:_t}));return}onAbhaSuccess({response:_t}),unMount();return}setIndividualEnv({extraHeaders:{auth:(gt=_t.data)==null?void 0:gt.tokens.sess}}),dt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"abha_end_with_no_oid"}}),o(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(mt=_t.data)==null?void 0:mt.tokens.sess}}),dt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"auth_verify_success"}}),o(SCREEN_NAMES.GET_ALL_PROFILES);return}}},2e3)}tt()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:c,loadingText:"Verifying...",successText:"Successfully linked mobile number with ABHA!"})},Pds2Header=({prefixIcon:e,title:s,suffixIcon:i,className:a=""})=>jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-items-center pds2-justify-between pds2-w-full pds2-p-16 pds2-sticky pds2-top-0 pds2-z-50 ${a}`,children:[e||jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("div",{className:"pds2-flex-1 Heading4Semibold pds2-text-center pds2-text-text-black",children:s}),i||jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"})]}),Pds2InputField=({PrefixComponent:e,placeholder:s,value:i,onChange:a,borderStyle:o="",borderRadius:c="pds2-rounded-16",padding:g="pds2-px-24 pds2-py-16",textColor:_="pds2-text-text-black",textStyle:b="",onKeyDown:$=()=>{},type:et="text",label:ot,isMandatory:rt,maxDate:at,error:it,autoCapitalize:nt="off",autoCorrect:dt="off",disabled:_e,inputMode:tt,autoFocus:j,pattern:st,maxLength:ut,autoComplete:ct})=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-8 pds2-w-full",children:[ot?jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-text-04",children:[ot,rt?jsxRuntimeExports.jsx("span",{className:"pds2-text-text-error Body3Semibold",children:"*"}):null]}):null,jsxRuntimeExports.jsxs("label",{className:`${g} ${c} ${o} pds2-border ${it?"pds2-border-text-error pds2-border-2":"pds2-border-border-03"} pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-w-full pds2-bg-bg-white pds2-text-text-invert`,children:[e||null,jsxRuntimeExports.jsx("input",{className:`${_} ${b} pds2-outline-none pds2-w-full pds2-bg-transparent disabled:pds2-text-text-04`,placeholder:s||"Enter Value",value:i,onChange:a,type:et,max:et==="date"&&at?at:void 0,onKeyDown:$,autoCapitalize:nt,autoCorrect:dt,disabled:_e,inputMode:tt,autoFocus:j,pattern:st,maxLength:ut,required:rt,autoComplete:ct})]})]}),PatientPds2InputField=e=>jsxRuntimeExports.jsx(Pds2InputField,{...e,textStyle:"Body1Medium",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2"}),Pds2Spinner=({className:e="",size:s=40})=>jsxRuntimeExports.jsx("div",{className:`pds2-w-fit pds2-flex pds2-justify-center pds2-items-center ${e}`,children:jsxRuntimeExports.jsxs("svg",{className:"pds2-animate-spin",id:"svg-spinner",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 48 48",fill:"currentColor",children:[jsxRuntimeExports.jsx("circle",{cx:"24",cy:"4",r:"2.5",className:"fill-current opacity-100"}),jsxRuntimeExports.jsx("circle",{cx:"12.19",cy:"7.86",r:"2.5",className:"fill-current opacity-90"}),jsxRuntimeExports.jsx("circle",{cx:"5.02",cy:"17.68",r:"2.5",className:"fill-current opacity-80"}),jsxRuntimeExports.jsx("circle",{cx:"5.02",cy:"30.32",r:"2.5",className:"fill-current opacity-70"}),jsxRuntimeExports.jsx("circle",{cx:"12.19",cy:"40.14",r:"2.5",className:"fill-current opacity-60"}),jsxRuntimeExports.jsx("circle",{cx:"24",cy:"44",r:"2.5",className:"fill-current opacity-50"}),jsxRuntimeExports.jsx("circle",{cx:"35.81",cy:"40.14",r:"2.5",className:"fill-current opacity-40"}),jsxRuntimeExports.jsx("circle",{cx:"42.98",cy:"30.32",r:"2.5",className:"fill-current opacity-30"}),jsxRuntimeExports.jsx("circle",{cx:"42.98",cy:"17.68",r:"2.5",className:"fill-current opacity-20"}),jsxRuntimeExports.jsx("circle",{cx:"35.81",cy:"7.86",r:"2.5",className:"fill-current opacity-10"})]})}),TextSeparator=({title:e})=>jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-flex pds2-flex-row pds2-items-center pds2-gap-16",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-full pds2-h-1 pds2-bg-border-03"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-04 Body2Regular pds2-text-center pds2-min-w-max",children:e}),jsxRuntimeExports.jsx("div",{className:"pds2-w-full pds2-h-1 pds2-bg-border-03"})]});async function postAuthInitV2({method:e,identifier:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({method:e,identifier:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${c}/v2/auth/init`,o)).json()}catch(c){console.error(c)}return{}}async function postAuthLogoutV2(){console.log("inside postAuthLogoutV2 api call");const e=new Headers;e.append("Content-Type","application/json");const s=JSON.stringify({}),a=`${GET_AORTA_GO_HOST()}/v2/auth/logout`,o={method:"POST",headers:e,body:s,redirect:"follow",credentials:"include"};try{const c=await fetchWrapper(a,o);return c.ok?!0:(console.log("Logout failed with status",c==null?void 0:c.status),!1)}catch(c){return console.error("Logout API failed:",c),!1}}async function postRegisterAadhaarInit({aadhaar_number:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({aadhaar_number:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/aadhaar/init`,a)).json()}catch{}return{}}async function postRegisterMobileInit({mobile_number:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({mobile_number:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/mobile/init`,a)).json()}catch(o){console.error(o)}return{}}const CreateAbhaWithAadhaarScreen=()=>{const[e,s]=reactExports.useState(!1);useAuthAbhaStore(g=>g.setScreen),useAuthAbhaStore(g=>g.goBackLoginScreen);const i=useAuthAbhaStore(g=>g.setAbhaAuthFlowMethod);useAuthAbhaStore(g=>g.initAbhaAppMethod);const a=useAuthAbhaStore(g=>g.clientId);reactExports.useEffect(()=>{var g,_,b;if(handleSendEvent({eventName:"page_view",eventData:{page_view:"abha_landing_screen",platform:a}}),(_=(g=window.curio)==null?void 0:g.pushToMixpanel)==null||_.call(g,"page_view",{platform:a,page_view:"abha_landing_screen"}),(b=window.EkaAbha)!=null&&b.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#E4E1FA"),()=>{var $,et;($=window.EkaAbha)!=null&&$.changeStatusBarColor&&((et=window==null?void 0:window.EkaAbha)==null||et.changeStatusBarColor("#FFFFFF"))};i(ABHA_AUTH_FLOW_METHOD.MOBILE)},[]);const o=()=>{var g;(g=window.EkaAbha)==null||g.onAbhaClose(),unMount()},c=["eka-web","phr"];return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-01 pds2-h-full",children:[c.includes(a)?jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24","aria-hidden":"true"}),title:"",className:"pds2-bg-white"}):jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-bg-white pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:o,children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),title:"",className:"pds2-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx(LoginWithAadhaar,{openInfoDialog:()=>s(!0)}),jsxRuntimeExports.jsx(OtherLoginOptions,{}),jsxRuntimeExports.jsx(BottomSheetWrapper,{isOpen:e,setIsOpen:s,shouldCloseOnClickOutside:!0,children:jsxRuntimeExports.jsx(BottomSheetContent,{onClose:()=>s(!1)})})]})},BottomSheetContent=({onClose:e})=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-p-16 pds2-text-center",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-items-center",children:jsxRuntimeExports.jsx("button",{onClick:e,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(XMarkRegularIcon,{className:"pds2-w-18 pds2-h-18 pds2-text-text-03"})})}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-12 pds2-flex pds2-flex-col pds2-items-center pds2-justify-center",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5m4sx4a000c0tg9a5fo1gkz.webp",alt:"nha-icon",className:"pds2-h-52"}),jsxRuntimeExports.jsx("div",{className:"Heading4Semibold pds2-text-text-black",children:"Terms & Conditions"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-text-03 pds2-py-16",children:"I, hereby declare that I am voluntarily sharing my identity information with National Health Authority (NHA) for the sole purpose of creation of ABHA number. I understand that my ABHA number can be used and shared for purposes as may be notified by ABDM (Ayushman Bharat Digital Mission) from time to time including provision of healthcare services. Further, I am aware that my personal identifiable information (Name, Address, Age, Date of Birth, Gender and Photograph) may be made available to the entities working in the National Digital Health Ecosystem (NDHE) which inter alia includes stakeholders and entities such as healthcare professionals (e.g. doctors), facilities"}),jsxRuntimeExports.jsx(Pds2Button,{title:"Okay, Got it!",onClick:e,state:"enabled",className:"pds2-w-full"})]})]}),loginOptions=[{textSeparatorTitle:"Other options to create ABHA",loginCTA:[{method:ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,title:"Use Aadhaar to create ABHA",prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})},{method:ABHA_AUTH_FLOW_METHOD.MOBILE,title:"Use mobile to create ABHA",prefixIcon:jsxRuntimeExports.jsx(PhoneSolidIcon,{className:"pds2-w-20 pds2-h-20 pds2-text-icon-success-02"})}]},{textSeparatorTitle:"Login with ABHA",loginCTA:[{method:ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,title:"ABHA",prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})}]}],OtherLoginOptions=()=>{const e=useAuthAbhaStore(_=>_.setAbhaAuthFlowMethod),s=useAuthAbhaStore(_=>_.setScreen),i=useAuthAbhaStore(_=>_.abhaAuthFlowMethod),[a,o]=reactExports.useState(i??ABHA_AUTH_FLOW_METHOD.MOBILE);useAuthAbhaStore(_=>_.initAbhaAppMethod);const c=useAuthAbhaStore(_=>_.clientId),g=useAuthAbhaStore(_=>_.isNewLoginOrCreateFlow);return reactExports.useEffect(()=>{i&&i!==a&&o(i)},[i]),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-12",children:loginOptions.map(_=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TextSeparator,{title:_.textSeparatorTitle}),_.loginCTA.filter(b=>b.title==="ABHA"?!0:a===ABHA_AUTH_FLOW_METHOD.MOBILE?b.method===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?b.method===ABHA_AUTH_FLOW_METHOD.MOBILE:!0).map(b=>jsxRuntimeExports.jsx(Pds2CustomButton,{prefixIcon:b.prefixIcon,title:b.title,suffixIcon:jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-ml-auto pds2-h-16 pds2-w-16 pds2-text-text-04 -pds2-rotate-90","aria-hidden":"true"}),onClick:()=>{var $,et;if((et=($=window.curio)==null?void 0:$.pushToMixpanel)==null||et.call($,"abha_landing_screen_clicks",{platform:c,type:b.method===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"use Aadhaar":"use Mobile"}),b.title==="ABHA"){s(g?SCREEN_NAMES.LOGIN_OR_CREATE_ABHA:SCREEN_NAMES.LOGIN_WITH_ABHA);return}b.method===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?o(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER):b.method===ABHA_AUTH_FLOW_METHOD.MOBILE&&o(ABHA_AUTH_FLOW_METHOD.MOBILE),e(b.method)}},b.method))]}))})},LoginWithAadhaar=({openInfoDialog:e})=>{const s=useAuthAbhaStore(Et=>Et.setScreen),i=useAuthAbhaStore(Et=>Et.abhaAuthFlowMethod),a=useAuthAbhaStore(Et=>Et.setRegistrationType),o=useAuthAbhaStore(Et=>Et.setAadhaarInitResponse),c=useAuthAbhaStore(Et=>Et.setMobileInitResponse),g=useAuthAbhaStore(Et=>Et.setBottomsheetErrorInfo),_=useAuthAbhaStore(Et=>Et.clearAbhaAuthStore);useAuthAbhaStore(Et=>Et.initAbhaAppMethod);const b=useAuthAbhaStore(Et=>Et.initAbhaAppMobileNumber),$=useAuthAbhaStore(Et=>Et.isLoggedInFromRedirect),[et,ot]=reactExports.useState(""),[rt,at]=reactExports.useState(""),[it,nt]=reactExports.useState(!1),[dt,_e]=reactExports.useState(!1),[tt,j]=reactExports.useState(null),[st,ut]=reactExports.useState(!0),[ct,gt]=reactExports.useState(!1),[mt,_t]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),kt=!!b,wt=useAuthAbhaStore(Et=>Et.clientId),St=useAuthAbhaStore(Et=>Et.isEkaAppLogin),Tt=useAuthAbhaStore(Et=>Et.isDocAppRequest),Mt=useAuthAbhaStore(Et=>Et.setIsApiTriggered),xt=useAuthAbhaStore(Et=>Et.isApiTriggered),pt=useAuthAbhaStore(Et=>Et.setSelectedAbhaFlow);useAuthAbhaStore(Et=>Et.isNewLoginOrCreateFlow),reactExports.useEffect(()=>{b&&(at(b),_e(b.length===10))},[b]),reactExports.useEffect(()=>{var Ot,Lt;if(xt){console.log("Api is already triggered: ",xt);return}const Et=et&&et.length===12&&st,bt=rt&&rt.length===10&&st;if(console.log("Conditions check:","isLoggedInFromRedirect:",$,"shouldTriggerAadhaar:",Et,"shouldTriggerMobile:",bt),$||Et||bt){Mt(!0),console.log("Setting hasTriggered to true and proceeding with registration");let Pt="";Et?Pt="abha_aadhaar_otp_verify_clicks":bt&&(Pt="abha_mobile_otp_verify_clicks"),Pt&&((Lt=(Ot=window.curio)==null?void 0:Ot.pushToMixpanel)==null||Lt.call(Ot,Pt,{platform:wt,type:"next"})),yt()}},[$,et,rt,st,xt]);const vt=(Et,bt)=>{_t(Ot=>({...Ot,[Et]:bt}))},lt=Et=>{const bt=Et.target.value;bt.length<=10&&(at(bt),_e(bt.length===10),j(null))},ht=({inputVal:Et})=>{tt&&j(null),Et.length===12&&ot(Et)},yt=async()=>{var Ot,Lt,Pt,It,Dt,Rt,Vt,Gt,$t,Bt,er,Kt,tr,Wt,Qt,Nt,Ft,qt,sr,rr;j(null);const Et=i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"aadhaar":"mobile";vt(Et,LOADING_STATE.LOADING);let bt="";if(!St){handleSendEvent({eventName:"abha_create_auth_api_trigger",eventData:{type:"api_trigger",platform:wt,isEkaAppLogin:St?"true":"false"}}),(Lt=(Ot=window.curio)==null?void 0:Ot.pushToMixpanel)==null||Lt.call(Ot,"abha_create_auth_api_trigger",{platform:wt,type:"api_trigger",isEkaAppLogin:St?"true":"false"});const{txn_id:jt,error:zt}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!jt){handleSendEvent({eventName:"abha_create_auth_txnId_not_found",eventData:{type:"api_trigger",platform:wt,transactionId:jt||"",isEkaAppLogin:St?"true":"false"}}),(It=(Pt=window.curio)==null?void 0:Pt.pushToMixpanel)==null||It.call(Pt,"abha_create_auth_txnId_not_found",{platform:wt,type:"api_trigger",transactionId:jt||"",isEkaAppLogin:St?"true":"false"}),j((zt==null?void 0:zt.message)||"Something went wrong"),vt(Et,LOADING_STATE.REJECTED);return}bt=jt,handleSendEvent({eventName:"abha_create_auth_api_trigger_success",eventData:{type:"api_trigger",platform:wt,authTransactionId:bt,isEkaAppLogin:St?"true":"false"}}),(Rt=(Dt=window.curio)==null?void 0:Dt.pushToMixpanel)==null||Rt.call(Dt,"abha_create_auth_api_trigger_success",{platform:wt,type:"api_trigger",authTransactionId:bt,isEkaAppLogin:St?"true":"false"}),await postAuthLogoutV2()}if(i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){if(handleSendEvent({eventName:"abha_aadhaar_init_api_trigger_initiate",eventData:{type:"api_trigger",platform:wt,isEkaAppLogin:St?"true":"false"}}),(Gt=(Vt=window.curio)==null?void 0:Vt.pushToMixpanel)==null||Gt.call(Vt,"abha_aadhaar_init_api_trigger_initiate",{platform:wt,type:"api_trigger",isEkaAppLogin:St?"true":"false"}),vt("aadhaar",LOADING_STATE.LOADING),et.length!==12){j("Please enter valid 12 digit Aadhaar number"),vt("aadhaar",LOADING_STATE.REJECTED);return}if(!st){j("Please provide consent to create ABHA"),vt("aadhaar",LOADING_STATE.REJECTED);return}const{txn_id:jt,hint:zt,error:Zt,action:nr}=await postRegisterAadhaarInit({aadhaar_number:et});if(jt&&zt){o({authTxnId:bt,txnId:jt,aadhaarOtpSentToHint:zt}),handleSendEvent({eventName:"abha_aadhaar_init_api_trigger_success",eventData:{type:"api_trigger",platform:wt,transactionId:jt,isEkaAppLogin:St?"true":"false"}}),(Bt=($t=window.curio)==null?void 0:$t.pushToMixpanel)==null||Bt.call($t,"abha_aadhaar_init_api_trigger_success",{platform:wt,type:"api_trigger",transactionId:jt,isEkaAppLogin:St?"true":"false"}),vt("aadhaar",LOADING_STATE.RESOLVED),a(REGISTRATION_TYPE.CREATE),s(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}handleSendEvent({eventName:"abha_aadhaar_init_api_trigger_failure",eventData:{type:"api_trigger",platform:wt,transactionId:jt||"",isEkaAppLogin:St?"true":"false"}}),(Kt=(er=window.curio)==null?void 0:er.pushToMixpanel)==null||Kt.call(er,"abha_aadhaar_init_api_trigger_failure",{platform:wt,type:"api_trigger",transactionId:jt||"",isEkaAppLogin:St?"true":"false"}),vt("aadhaar",LOADING_STATE.REJECTED),nr?g(nr):j(Zt||"Something went wrong")}else{vt("mobile",LOADING_STATE.LOADING);const jt=b||rt;if(!jt||jt.length!==10)return handleSendEvent({eventName:"abha_mobile_number_length_error",eventData:{type:"verify",platform:wt,mobileNumber:jt,isEkaAppLogin:St?"true":"false"}}),(Wt=(tr=window.curio)==null?void 0:tr.pushToMixpanel)==null||Wt.call(tr,"abha_mobile_number_length_error",{platform:wt,type:"verify",mobileNumber:jt,isEkaAppLogin:St?"true":"false"}),j("Please enter valid 10 digit mobile number"),vt("mobile",LOADING_STATE.REJECTED),!1;handleSendEvent({eventName:"abha_mobile_init_api_trigger_initiate",eventData:{type:"api_trigger",platform:wt,isEkaAppLogin:St?"true":"false"}}),(Nt=(Qt=window.curio)==null?void 0:Qt.pushToMixpanel)==null||Nt.call(Qt,"abha_mobile_init_api_trigger_initiate",{platform:wt,type:"api_trigger",isEkaAppLogin:St?"true":"false"});const{txn_id:zt,hint:Zt,error:nr,action:lr}=await postRegisterMobileInit({mobile_number:jt});if(zt&&Zt){c({authTxnId:bt,txnId:zt,mobileOtpSentToHint:Zt}),handleSendEvent({eventName:"abha_mobile_init_api_trigger_success",eventData:{type:"api_trigger",platform:wt,transactionId:zt,isEkaAppLogin:St?"true":"false",authTransactionId:bt}}),(qt=(Ft=window.curio)==null?void 0:Ft.pushToMixpanel)==null||qt.call(Ft,"abha_mobile_init_api_trigger_success",{platform:wt,type:"api_trigger",transactionId:zt,isEkaAppLogin:St?"true":"false",authTransactionId:bt}),pt("mobile"),vt("mobile",LOADING_STATE.RESOLVED),a(REGISTRATION_TYPE.CREATE),pt("mobile"),console.log("update the selected abha flow to mobile"),s(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}handleSendEvent({eventName:"abha_mobile_init_api_trigger_failure",eventData:{type:"api_trigger",platform:wt,transactionId:zt||"",isEkaAppLogin:St?"true":"false",authTransactionId:bt}}),(rr=(sr=window.curio)==null?void 0:sr.pushToMixpanel)==null||rr.call(sr,"abha_mobile_init_api_trigger_failure",{platform:wt,type:"api_trigger",transactionId:zt||"",isEkaAppLogin:St?"true":"false",authTransactionId:bt}),vt("mobile",LOADING_STATE.REJECTED),lr?g(lr):j(nr||"Something went wrong")}},ft=Et=>{var Ot,Lt;Et.stopPropagation(),console.log("selectedMethod : ",i);const bt=i==="aadhaar_number"?"abha_aadhaar_otp_verify_clicks":"abha_mobile_otp_verify_clicks";handleSendEvent({eventName:bt,eventData:{type:"verify",platform:wt}}),(Lt=(Ot=window.curio)==null?void 0:Ot.pushToMixpanel)==null||Lt.call(Ot,bt,{platform:wt,type:"next"}),tt&&j(null),yt()},Ct=()=>{const Et=useAuthAbhaStore.getState().initAbhaAppMobileNumber,bt=useAuthAbhaStore.getState().initAbhaAppMethod,Ot=useAuthAbhaStore.getState().isEkaAppLogin,Lt=useAuthAbhaStore.getState().isApiTriggered,Pt=useAuthAbhaStore.getState().clientId;s(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR),_(),useAuthAbhaStore.setState({initAbhaAppMobileNumber:Et}),useAuthAbhaStore.setState({screen:[SCREEN_NAMES.LOGIN_WITH_ABHA]}),useAuthAbhaStore.setState({isEkaAppLogin:Ot}),useAuthAbhaStore.setState({initAbhaAppMethod:bt}),useAuthAbhaStore.setState({isApiTriggered:Lt}),useAuthAbhaStore.setState({clientId:Pt}),g(null)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-16 pds2-p-16 pds2-text-center",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64 pds2-rounded-16"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-16",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-black Heading3Semibold",children:Tt?"Create ABHA":"Create your ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03 Body2Regular",children:i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"Enter 12 digit Aadhaar number":"Enter 10 digit mobile number"})]}),i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?jsxRuntimeExports.jsx(SpacedInputComponent,{numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:ht,setIsValid:nt,error:tt}):jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-justify-center pds2-items-center pds2-gap-y-16 pds2-px-09",children:jsxRuntimeExports.jsx(PatientPds2InputField,{value:rt,onChange:lt,disabled:kt,type:"tel",autoComplete:"tel-national",placeholder:"Mobile Number",PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-border-brand-02 pds2-pr-24",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4mlct2900000tg98p8u967s.webp",alt:"indian-flag-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-black",children:"+91"})]})})})]}),jsxRuntimeExports.jsx(CustomCheckBox,{id:"aadhaar-number",label:"I give consent to NHA to share my identity info",openInfoDialog:e,className:"pds2-justify-between",isCheckboxChecked:st,onCheckboxChange:Et=>{tt&&j(null),gt(!1),ut(Et)},isErrored:ct}),jsxRuntimeExports.jsx("div",{onClick:()=>{st||gt(!0)},children:jsxRuntimeExports.jsx(Pds2Button,{title:mt[i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"aadhaar":"mobile"]===LOADING_STATE.LOADING?"Verifying":"Next",onClick:ft,IconComponent:mt[i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"aadhaar":"mobile"]===LOADING_STATE.LOADING?()=>jsxRuntimeExports.jsx(Pds2Spinner,{className:"pds2-ml-8",size:16}):void 0,state:i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?it&&st?"enabled":"disabled":dt&&st?"enabled":"disabled",className:"pds2-w-full"})}),tt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Semibold",children:tt})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Ct})]})},CustomCheckBox=({id:e,label:s,onCheckboxChange:i,openInfoDialog:a,className:o="",isCheckboxChecked:c=!1,isErrored:g=!1})=>jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-items-center pds2-space-x-8 ${o} ${g?"pds2-text-text-error":"pds2-text-text-03"}`,children:[jsxRuntimeExports.jsxs("label",{htmlFor:e,className:"Body2Regular pds2-flex pds2-items-center pds2-space-x-8",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:c,onChange:_=>i(_.target.checked),id:e,className:"pds2-hidden"}),c?jsxRuntimeExports.jsx(CheckSquareSolidIcon,{className:"pds2-w-14 pds2-h-14 pds2-text-icon-brand"}):jsxRuntimeExports.jsx(SquareRegularIcon,{className:"pds2-w-14 pds2-h-14"}),jsxRuntimeExports.jsx("span",{children:s})]}),a&&jsxRuntimeExports.jsx("button",{onClick:a,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(CircleInfoSolidIcon,{className:"pds2-w-14 pds2-h-14 pds2-text-text-04"})})]});async function postRegisterAadhaarResendOtp({txn_id:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({txn_id:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/aadhaar/resend`,a)).json()}catch{}return{}}async function postRegisterAadhaarVerify({txn_id:e,mobile:s,otp:i}){const a=new Headers;a.append("Content-Type","application/json");const o=JSON.stringify({txn_id:e,mobile:s,otp:i}),c={method:"POST",headers:a,body:o,redirect:"follow",credentials:"include"};try{const g=GET_NDHM_HOST();return await(await fetchWrapper(`${g}/abdm/na/v1/registration/aadhaar/verify`,c)).json()}catch{}return{}}const AbhaOtpAndMobileScreen=()=>{const e=useAuthAbhaStore(Pt=>Pt.setAbhaAddressList),s=useAuthAbhaStore(Pt=>Pt.setScreen),i=useAuthAbhaStore(Pt=>Pt.txnId),a=useAuthAbhaStore(Pt=>Pt.orgIcon),o=useAuthAbhaStore(Pt=>Pt.setTxnId),c=useAuthAbhaStore(Pt=>Pt.aadhaarOtpSentToHint),g=useAuthAbhaStore(Pt=>Pt.setAadhaarVerificationSkipStateStatus),_=useAuthAbhaStore(Pt=>Pt.setEkaSmallToken),b=useAuthAbhaStore(Pt=>Pt.setOid),$=useAuthAbhaStore(Pt=>Pt.clearAbhaAuthStore),et=useAuthAbhaStore(Pt=>Pt.setBottomsheetErrorInfo),ot=useAuthAbhaStore(Pt=>Pt.goBackLoginScreen),[rt,at]=reactExports.useState(""),[it,nt]=reactExports.useState(!1),[dt,_e]=reactExports.useState(""),[tt,j]=reactExports.useState(null),[st,ut]=reactExports.useState(null),[ct,gt]=reactExports.useState(!0),[mt,_t]=reactExports.useState(!0),[kt,wt]=reactExports.useState(LOADING_STATE.IDLE),St=useAuthAbhaStore(Pt=>Pt.setSelectedAbhaAddress),Tt=useAuthAbhaStore(Pt=>Pt.initAbhaAppMobileNumber),Mt=useAuthAbhaStore(Pt=>Pt.setEkaProfileInfo),xt=useAuthAbhaStore(Pt=>Pt.clientId),pt=useAuthAbhaStore(Pt=>Pt.isEkaAppLogin),vt=useAuthAbhaStore(Pt=>Pt.isNewLoginOrCreateFlow),lt=GET_EXTRA_HEADERS(),ht=useAuthAbhaStore(Pt=>Pt.abhaAuthFlowMethod),yt=({name:Pt,data:It={}})=>{var Vt,Gt;const Rt={...{login_platform:xt,is_eka_app_login:pt?"true":"false",is_new_login_or_create_flow:vt?"true":"false",txn_id:i||"missing txnId",oid:lt!=null&&lt["X-User-ID"]?"true":"false",access_token:lt!=null&&lt.auth?"true":"false",flow:ht??""},...It};handleSendEvent({eventName:Pt,eventData:Rt}),(Gt=(Vt=window.curio)==null?void 0:Vt.pushToMixpanel)==null||Gt.call(Vt,Pt,Rt)};reactExports.useEffect(()=>{Tt&&_e(Tt)},[Tt]);const ft=({otp:Pt})=>{yt({name:"abha_aadhaar_otp_enter_clicks",data:{page_view:"aadhaar_verification",platform:xt,otp_entered:!0}}),at(Pt)},Ct=({mobileNumber:Pt})=>{st||j(null),_e(Pt),yt({name:"abha_aadhaar_mobile_otp_enter",data:{page_view:"aadhaar_verification",platform:xt}})},Et=async()=>{if(!i){yt({name:"aadhaar_otp_resend_clicked_no_txnId",data:{platform:xt,txn_id:i||"missing_txnId",txn_id_exists:!!i}});return}const{txn_id:Pt,error:It,action:Dt}=await postRegisterAadhaarResendOtp({txn_id:i});if(!Pt){yt({name:"aadhaar_otp_resend_failed",data:{platform:xt,reason:It||"no_txn_id",reason_exists:!!It}}),j(It||"Something went wrong, please try again"),Dt&&et(Dt);return}yt({name:"aadhaar_otp_resend_success",data:{platform:xt,txn_id:Pt}}),o(Pt)},bt=async()=>{if(!i){yt({name:"aadhaar_otp_verification_no_txnId",data:{platform:xt,type:"verify",txn_id:i||"missing_txnId",txn_id_exists:!!i}});return}yt({name:"abha_aadhaar_otp_verify_submitted",data:{platform:xt,type:"verify"}}),wt(LOADING_STATE.LOADING);const{txn_id:Pt,skip_state:It,profile:Dt,eka:Rt,error:Vt,abha_profiles:Gt,source_error:$t,action:Bt}=await postRegisterAadhaarVerify({otp:rt,mobile:dt,txn_id:i});if(!Pt||!It){yt({name:"aadhaar_otp_verification_failed",data:{platform:xt,reason:Vt||"missing_txn_id_or_skip_state",txn_id_exists:!!Pt,skip_state_exists:!!It}}),wt(LOADING_STATE.REJECTED),ut($t??null),j(Vt||"Something went wrong, please try again"),Bt&&et(Bt);return}yt({name:"aadhaar_otp_verification_success",data:{platform:xt,skip_state:It,oid:Rt==null?void 0:Rt.oid}}),wt(LOADING_STATE.RESOLVED),g(It),Rt!=null&&Rt.min_token&&_(Rt.min_token),Dt&&Dt.abha_address&&St(Dt.abha_address),Rt!=null&&Rt.oid&&b(Rt.oid),Dt&&Mt({date_of_birth:`${Dt.year_of_birth}-${String(Dt.month_of_birth).padStart(2,"0")}-${String(Dt.day_of_birth).padStart(2,"0")}`,firstname:Dt.first_name,lastname:Dt.last_name,pincode:Dt.pincode,gender:Dt.gender,name:Dt.first_name+" "+Dt.last_name,mobile:Dt.mobile,oid:Rt==null?void 0:Rt.oid,abha_address:Dt.abha_address,abha_number:Dt.abha_number}),yt({name:"abha_aadhaar_otp_verification_success",data:{platform:xt,skip_state:It,oid:Rt==null?void 0:Rt.oid}}),Gt&&e(Gt),s(SCREEN_NAMES.AADHAAR_VERIFICATION_STATUS)},Ot=()=>{s(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const Pt=useAuthAbhaStore.getState().isEkaAppLogin;$(),useAuthAbhaStore.setState({isEkaAppLogin:Pt})},Lt=it&&dt.length===10&&ct&&mt;return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(AbhaHeader,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:ot,children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),title:"Create ABHA",suffixIcon:a?jsxRuntimeExports.jsx("img",{src:a,className:"pds2-w-20 pds2-h-20"}):jsxRuntimeExports.jsx(EkaIcon,{className:"pds2-w-20 pds2-h-20"}),className:"pds2-border-b-1 pds2-border-bg-seperator-dark"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-pb-16 pds2-space-y-12 pds2-overflow-y-auto pds2-flex-1 pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:c||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:ft,onResendOtpClick:Et,setIsValid:nt,error:st?tt:null,setError:j}),jsxRuntimeExports.jsx(EnterMobileNumberCard,{mobileNumber:dt,onMobileNumberChange:Ct,isOtpValid:it,error:st?null:tt,onKeyDown:({key:Pt})=>{Pt==="Enter"&&bt()}}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-8",children:jsxRuntimeExports.jsx(CustomCheckBox,{id:"health-locker",label:"Allow Eka Care to create ABHA locker and link health data",isCheckboxChecked:ct,onCheckboxChange:Pt=>{gt(Pt)}})})]}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full pds2-border pds2-border-border-brand-02",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!Lt||kt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:bt,isLoading:kt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Ot})]})},EnterMobileNumberCard=({mobileNumber:e,onMobileNumberChange:s,isOtpValid:i,onKeyDown:a,error:o})=>{const c=reactExports.useRef(null);reactExports.useEffect(()=>{c.current&&i&&c.current.focus()},[i]);const g=useAuthAbhaStore($=>$.abhaAuthFlowMethod),_=useAuthAbhaStore($=>$.initAbhaAppMobileNumber),b=g===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!_;return _&&(e=_),jsxRuntimeExports.jsxs(CustomCardLayout,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-space-x-16 pds2-w-full",children:[jsxRuntimeExports.jsxs("div",{className:"Body1Regular pds2-text-text-01 pds2-flex-1",children:["Enter your mobile number to link your ABHA"," ",jsxRuntimeExports.jsx("sup",{className:"pds2-text-text-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx(PhoneSolidIcon,{className:"pds2-w-48 pds2-h-48 pds2-text-icon-success-02 pds2-p-6"})]}),jsxRuntimeExports.jsxs("label",{className:`pds2-relative pds2-border pds2-rounded-12 ${o?"pds2-border-border-error focus-within:pds2-border-border-error ":"pds2-border-border-03 focus-within:pds2-border-border-brand-01 "}`,children:[jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-absolute pds2-left-16 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-text-text-01",children:"+91 -"}),jsxRuntimeExports.jsx("input",{ref:c,placeholder:"Mobile Number",type:"tel",autoComplete:"tel-national",value:e,disabled:b,onPaste:$=>{$.preventDefault();const et=$.clipboardData.getData("text").replace(/[^0-9]/g,"");s({mobileNumber:et.slice(-10)})},onChange:$=>{if($.target.value.length>10)return;const et=$.target.value.replace(/[^0-9]/g,"");s({mobileNumber:et.slice(-10)})},maxLength:10,className:"Body1Regular pds2-w-full pds2-pl-60 pds2-pr-12 pds2-py-12 pds2-rounded-12 pds2-outline-none",onKeyDown:a})]}),o&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-text-error",children:o}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-space-x-8 pds2-text-text-03"})]})},CustomCardLayout=({children:e,className:s="pds2-space-y-12"})=>jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-bg-white ${s}`,children:e});async function postAbdmRegisterMobileResendOtp({txn_id:e}){const s=new Headers;s.append("Content-Type","application/json");const i={method:"POST",headers:s,body:JSON.stringify({txn_id:e}),redirect:"follow",credentials:"include"};try{const a=GET_NDHM_HOST();return await(await fetchWrapper(`${a}/abdm/na/v1/registration/mobile/resend`,i)).json()}catch{}return{}}async function postRegisterAadhaarMobileResendOtp({txn_id:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({txn_id:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/aadhaar/mobile/resend`,a)).json()}catch{}return{}}async function postAbdmRegisterMobileVerify({txn_id:e,otp:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,otp:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/mobile/verify`,o)).json()}catch{}return{}}async function postRegisterAadhaarMobileVerify({txn_id:e,otp:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,otp:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/aadhaar/mobile/verify`,o)).json()}catch{}return{}}const AbhaPhoneNumberVerificationScreen=()=>{const e=useAuthAbhaStore(pt=>pt.txnId),s=useAuthAbhaStore(pt=>pt.clearAbhaAuthStore),i=useAuthAbhaStore(pt=>pt.setBottomsheetErrorInfo),a=useAuthAbhaStore(pt=>pt.setEkaSmallToken),o=useAuthAbhaStore(pt=>pt.setOid),c=useAuthAbhaStore(pt=>pt.setAadhaarVerificationSkipStateStatus),g=useAuthAbhaStore(pt=>pt.setSelectedAbhaAddress),_=useAuthAbhaStore(pt=>pt.setAbhaAddressList),b=useAuthAbhaStore(pt=>pt.setScreen),$=useAuthAbhaStore(pt=>pt.abhaAuthFlowMethod),[et,ot]=reactExports.useState(""),[rt,at]=reactExports.useState(!1),[it,nt]=reactExports.useState(""),[dt,_e]=reactExports.useState(LOADING_STATE.IDLE),tt=useAuthAbhaStore(pt=>pt.setTxnId),j=useAuthAbhaStore(pt=>pt.setEkaProfileInfo),st=useAuthAbhaStore(pt=>pt.clientId),ut=useAuthAbhaStore(pt=>pt.selectedAbhaFlow),ct=useAuthAbhaStore(pt=>pt.isNewLoginOrCreateFlow),gt=useAuthAbhaStore(pt=>pt.isEkaAppLogin),mt=GET_EXTRA_HEADERS(),[_t,kt]=reactExports.useState(!1);console.log("selectedAbhaFlow is : ",ut);const wt=({name:pt,data:vt={}})=>{var yt,ft;const ht={...{login_platform:st,is_eka_app_login:gt?"true":"false",is_new_login_or_create_flow:ct?"true":"false",txn_id:e||"missing txnId",oid:mt!=null&&mt["X-User-ID"]?"true":"false",access_token:mt!=null&&mt.auth?"true":"false",flow:$??""},...vt};handleSendEvent({eventName:pt,eventData:ht}),(ft=(yt=window.curio)==null?void 0:yt.pushToMixpanel)==null||ft.call(yt,pt,ht)};reactExports.useEffect(()=>{wt({name:"page_view",data:{page_view:"abha_mobile_otp_verify",platform:st}})},[]);const St=({otp:pt})=>{ot(pt),wt({name:"abha_mobile_otp_completion",data:{platform:st,type:"verify",otp_entered:!0}}),Mt(pt)},Tt=async()=>{if(!e){wt({name:"abha_mobile_otp_resend_clicked_no_txnId",data:{type:"resend",platform:st,txn_id:"missing_txnId",txn_id_exists:!1}});return}wt({name:"abha_mobile_otp_verify_clicks",data:{type:"resend",platform:st}}),console.log("selectedMethod",$);let pt;ut==="mobile"?(wt({name:"abha_mobile_otp_resend_initiated",data:{platform:st,type:"verify",flow_type:ut}}),console.log("selectedFlow is mobile, so triggering mobile resend otp api",ut),pt=await postAbdmRegisterMobileResendOtp({txn_id:e})):(wt({name:"aadhaar_mobile_otp_resend_initiated",data:{platform:st,type:"verify",flow_type:ut}}),console.log("selectedFlow is aadhaar, so triggering aadhaar resend otp api",ut),pt=await postRegisterAadhaarMobileResendOtp({txn_id:e}));const{txn_id:vt,error:lt,action:ht}=pt;if(!vt){wt({name:"abha_mobile_otp_resend_failed",data:{platform:st,reason:lt||"no_txn_id",reason_exists:!!lt}}),nt(lt||"Something went wrong, please try again"),ht&&i(ht);return}vt&&tt(vt),wt({name:"abha_mobile_otp_resend_success",data:{platform:st,txn_id:vt}})},Mt=async pt=>{if(!e){wt({name:"abha_mobile_verify_no_txnId",data:{type:"verify",platform:st,txn_id:"missing_txnId",txn_id_exists:!1}});return}wt({name:"abha_mobile_otp_submitted",data:{type:"verify",platform:st,txn_id:e}}),_e(LOADING_STATE.LOADING);try{let vt;ut==="mobile"?(wt({name:"abha_mobile_otp_verification_started",data:{platform:st,flow_type:ut}}),vt=await postAbdmRegisterMobileVerify({otp:pt,txn_id:e})):(wt({name:"aadhaar_otp_verification_started",data:{platform:st,flow_type:ut}}),vt=await postRegisterAadhaarMobileVerify({otp:pt,txn_id:e}));const{txn_id:lt,skip_state:ht,eka:yt,profile:ft,error:Ct,action:Et,abha_profiles:bt}=vt;if(!lt||!ht){wt({name:"abha_mobile_otp_verification_failed",data:{platform:st,reason:Ct||"missing_txn_id_or_skip_state",txn_id_exists:!!lt,skip_state_exists:!!ht}}),_e(LOADING_STATE.REJECTED),nt(Ct||"Something went wrong, please try again"),Et&&i(Et);return}if(_e(LOADING_STATE.RESOLVED),c(ht),yt!=null&&yt.min_token&&a(yt.min_token),yt!=null&&yt.oid&&o(yt.oid),ft&&ft.abha_address&&g(ft.abha_address),ft&&j({date_of_birth:`${ft.year_of_birth}-${String(ft.month_of_birth).padStart(2,"0")}-${String(ft.day_of_birth).padStart(2,"0")}`,firstname:ft.first_name,lastname:ft.last_name,pincode:ft.pincode,gender:ft.gender,oid:yt==null?void 0:yt.oid,abha_address:ft==null?void 0:ft.abha_address,abha_number:ft==null?void 0:ft.abha_number,middlename:ft==null?void 0:ft.middle_name}),console.log("remove oid from set indvidual env"),wt({name:"abha_mobile_otp_verification_success",data:{platform:st,skip_state:ht}}),bt!=null&&bt.length){_(bt),b(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}b(SCREEN_NAMES.ABHA_MOBILE_LINKING_STATUS)}catch{wt({name:"abha_mobile_otp_verification_exception",data:{platform:st,reason:"exception_thrown"}}),_e(LOADING_STATE.REJECTED),nt("Something went wrong, please try again")}},xt=()=>{b(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const pt=useAuthAbhaStore.getState().isEkaAppLogin;s(),useAuthAbhaStore.setState({isEkaAppLogin:pt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-bg-white",children:[jsxRuntimeExports.jsx(AbhaHeader,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>kt(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),title:"Phone Number Verification",className:"pds2-border-b-1 pds2-border-bg-seperator-dark"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-bg-01",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:"Enter OTP received through ABDM to verify mobile number",onOtpCompletion:St,onResendOtpClick:Tt,error:it,setIsValid:pt=>{it&&nt(null),at(pt)},prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abdm-abha-icon",className:"pds2-w-48"})})}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full pds2-border pds2-border-border-brand-02",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!rt||dt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>Mt(et),isLoading:dt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:xt}),jsxRuntimeExports.jsx(ExitPopup,{open:_t,setOpen:kt})]})};async function postProfileSwitch({oid:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({oid:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${o}/v1/profile/switch`,a)).json()}catch(o){console.error("postProfileSwitchError: ",o)}return{}}const usePostProfileSwitch=()=>useMutation({mutationFn:({oid:e,token:s})=>postProfileSwitch({oid:e}),onSuccess:e=>{var s;if(e){const{skip_state:i,method:a,sess:o,refresh:c,profile:g,txn_id:_,error:b}=e,$={skip_state:i,method:a,data:{tokens:{sess:o,refresh:c},profile:g},txn_id:_,...b?{error:{code:b.code,message:b.message}}:null};if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(s=window.EkaAbha)==null||s.onAbhaSuccess(JSON.stringify({response:$}));return}onAbhaSuccess({response:$}),unMount();return}}});async function postAbdmRegisterMobileCreatePhr({abha_address:e,address:s,first_name:i,last_name:a,day_of_birth:o,month_of_birth:c,year_of_birth:g,gender:_,middle_name:b,pincode:$,txn_id:et}){const ot=new Headers;ot.append("Content-Type","application/json");const rt=JSON.stringify({abha_address:e,profile:{address:s,day_of_birth:o,first_name:i,gender:_,last_name:a,middle_name:b,month_of_birth:c,pincode:$,year_of_birth:g},txn_id:et}),at={method:"POST",headers:ot,body:rt,redirect:"follow",credentials:"include"};try{const it=GET_NDHM_HOST();return await(await fetchWrapper(`${it}/abdm/na/v1/registration/mobile/create-phr`,at)).json()}catch(it){console.error("postAbdmRegisterMobileCreatePhr error =>",it)}return{}}const usePostRegisterMobileCreatePhr=()=>{const e=useAuthAbhaStore(s=>s.setSelectedAbhaAddress);return useMutation({mutationFn:s=>postAbdmRegisterMobileCreatePhr(s),onSuccess(s){s.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],s.profile),e(s.profile.abha_address))}})};async function getAbdmRegisterSuggest({txn_id:e,fn:s,mn:i,ln:a,dob:o}){const c=new Headers;c.append("Content-Type","application/json");const g={method:"GET",headers:c,redirect:"follow",credentials:"include"};try{const _=GET_NDHM_HOST();return await(await fetchWrapper(`${_}/abdm/na/v1/registration/suggest?transactionId=${e}&fn=${s||""}&mn=${i||""}&ln=${a||""}&dob=${o||""}`,g)).json()}catch(_){console.error("postAbdmLoginVerify error =>",_)}return{}}async function postRegisterAadhaarCreatePhr({abha_address:e,txn_id:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({abha_address:e,txn_id:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/aadhaar/create-phr`,o)).json()}catch(c){console.error("postRegisterAadhaarCreatePhr ==>",c)}return{}}async function postAbdmProfileEkaLinkPhr({abha_address:e,oid:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({abha_address:e,oid:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/v1/profile/eka/link-phr`,o)).json()}catch(c){console.error("postAbdmProfileLinkPhr ==>",c)}return{}}async function postAbdmProfileEka({abha_address:e,address:s,first_name:i,last_name:a,day_of_birth:o,month_of_birth:c,year_of_birth:g,gender:_,middle_name:b,pincode:$}){const et=new Headers;et.append("Content-Type","application/json");const ot=JSON.stringify({abha_address:e,profile:{address:s,day_of_birth:o,first_name:i,gender:_,last_name:a,middle_name:b,month_of_birth:c,pincode:$,year_of_birth:g}}),rt={method:"POST",headers:et,body:ot,redirect:"follow",credentials:"include"};try{const at=GET_NDHM_HOST();return await(await fetchWrapper(`${at}/abdm/v1/profile/eka`,rt)).json()}catch(at){console.error("postAbdmProfileEka error =>",at)}return{}}async function postAbdmRegisterPhrCheck({abha_address:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({abha_address:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/phr/check`,a)).json()}catch(o){console.error("postAbdmRegisterPhrCheck ==>",o)}return{}}async function postAbdmRegisterAbhaNumberCreatePhr({abha_address:e,txn_id:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({abha_address:e,txn_id:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/abha-number/create-phr`,o)).json()}catch(c){console.error("postAbdmRegisterAbhaNumberCreatePhr ==>",c)}return{}}const AbhaAddressCard=({address:e,setAddress:s,suggestions:i})=>jsxRuntimeExports.jsxs(CustomCardLayout,{className:"pds2-space-y-24",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-12",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cmgkgn6m500010td37a5wbbl3.webp",alt:"at-the-rate-icon",className:"pds2-w-48"}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Body1Regular",children:"Choose your ABHA Address"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-secondary BodyFootnote",children:"This ABHA Address will be used as your identity for ABHA Services."})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-2 pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsxs("label",{htmlFor:"abha-address",className:"pds2-text-text-brand BodyInputLabel",children:["ABHA Address",jsxRuntimeExports.jsx("sup",{className:"pds2-text-text-error Body3Semibold",children:" *"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-text-text-01 Body1Semibold",children:[jsxRuntimeExports.jsx("input",{value:e,className:"pds2-py-4 pds2-bg-transparent pds2-border-b-1 pds2-border-b-text-brand pds2-w-full pds2-pr-16 pds2-outline-none",id:"abha-address",onChange:a=>{const o=a.target.value.replace(/[^a-zA-Z0-9]/g,"");o.length<=18&&s(o)},autoCapitalize:"off",autoCorrect:"off"}),jsxRuntimeExports.jsx("span",{className:"pds2-absolute pds2-right-0 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-pointer-events-none",children:"@sbx"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-py-6 pds2-text-text-secondary BodyInputLabel",children:"8-18 characters alphabets and numbers only"})]}),i&&i.length>0?jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-04 Body1Semibold",children:"Suggestions:"}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-overflow-x-auto pds2-gap-6 pds2-py-4 pds2-px-4 -pds2-ml-4",children:i.map(a=>jsxRuntimeExports.jsxs("label",{className:`
48
+ */var Matrix=function(){var e=Math.cos,s=Math.sin,i=Math.tan,a=Math.round;function o(){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 c(lt){if(lt===0)return this;var ht=e(lt),yt=s(lt);return this._t(ht,-yt,0,0,yt,ht,0,0,0,0,1,0,0,0,0,1)}function g(lt){if(lt===0)return this;var ht=e(lt),yt=s(lt);return this._t(1,0,0,0,0,ht,-yt,0,0,yt,ht,0,0,0,0,1)}function _(lt){if(lt===0)return this;var ht=e(lt),yt=s(lt);return this._t(ht,0,yt,0,0,1,0,0,-yt,0,ht,0,0,0,0,1)}function b(lt){if(lt===0)return this;var ht=e(lt),yt=s(lt);return this._t(ht,-yt,0,0,yt,ht,0,0,0,0,1,0,0,0,0,1)}function $(lt,ht){return this._t(1,ht,lt,1,0,0)}function et(lt,ht){return this.shear(i(lt),i(ht))}function ot(lt,ht){var yt=e(ht),ft=s(ht);return this._t(yt,ft,0,0,-ft,yt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(lt),1,0,0,0,0,1,0,0,0,0,1)._t(yt,-ft,0,0,ft,yt,0,0,0,0,1,0,0,0,0,1)}function rt(lt,ht,yt){return!yt&&yt!==0&&(yt=1),lt===1&&ht===1&&yt===1?this:this._t(lt,0,0,0,0,ht,0,0,0,0,yt,0,0,0,0,1)}function at(lt,ht,yt,ft,Ct,St,bt,Ot,Mt,Rt,Kt,Wt,Vt,zt,It,Nt){return this.props[0]=lt,this.props[1]=ht,this.props[2]=yt,this.props[3]=ft,this.props[4]=Ct,this.props[5]=St,this.props[6]=bt,this.props[7]=Ot,this.props[8]=Mt,this.props[9]=Rt,this.props[10]=Kt,this.props[11]=Wt,this.props[12]=Vt,this.props[13]=zt,this.props[14]=It,this.props[15]=Nt,this}function it(lt,ht,yt){return yt=yt||0,lt!==0||ht!==0||yt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,lt,ht,yt,1):this}function nt(lt,ht,yt,ft,Ct,St,bt,Ot,Mt,Rt,Kt,Wt,Vt,zt,It,Nt){var Pt=this.props;if(lt===1&&ht===0&&yt===0&&ft===0&&Ct===0&&St===1&&bt===0&&Ot===0&&Mt===0&&Rt===0&&Kt===1&&Wt===0)return Pt[12]=Pt[12]*lt+Pt[15]*Vt,Pt[13]=Pt[13]*St+Pt[15]*zt,Pt[14]=Pt[14]*Kt+Pt[15]*It,Pt[15]*=Nt,this._identityCalculated=!1,this;var qt=Pt[0],Gt=Pt[1],er=Pt[2],Ut=Pt[3],Qt=Pt[4],Ft=Pt[5],Dt=Pt[6],tr=Pt[7],nr=Pt[8],Zt=Pt[9],jt=Pt[10],Bt=Pt[11],Jt=Pt[12],sr=Pt[13],lr=Pt[14],xr=Pt[15];return Pt[0]=qt*lt+Gt*Ct+er*Mt+Ut*Vt,Pt[1]=qt*ht+Gt*St+er*Rt+Ut*zt,Pt[2]=qt*yt+Gt*bt+er*Kt+Ut*It,Pt[3]=qt*ft+Gt*Ot+er*Wt+Ut*Nt,Pt[4]=Qt*lt+Ft*Ct+Dt*Mt+tr*Vt,Pt[5]=Qt*ht+Ft*St+Dt*Rt+tr*zt,Pt[6]=Qt*yt+Ft*bt+Dt*Kt+tr*It,Pt[7]=Qt*ft+Ft*Ot+Dt*Wt+tr*Nt,Pt[8]=nr*lt+Zt*Ct+jt*Mt+Bt*Vt,Pt[9]=nr*ht+Zt*St+jt*Rt+Bt*zt,Pt[10]=nr*yt+Zt*bt+jt*Kt+Bt*It,Pt[11]=nr*ft+Zt*Ot+jt*Wt+Bt*Nt,Pt[12]=Jt*lt+sr*Ct+lr*Mt+xr*Vt,Pt[13]=Jt*ht+sr*St+lr*Rt+xr*zt,Pt[14]=Jt*yt+sr*bt+lr*Kt+xr*It,Pt[15]=Jt*ft+sr*Ot+lr*Wt+xr*Nt,this._identityCalculated=!1,this}function dt(lt){var ht=lt.props;return this.transform(ht[0],ht[1],ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],ht[8],ht[9],ht[10],ht[11],ht[12],ht[13],ht[14],ht[15])}function _e(){return this._identityCalculated||(this._identity=!(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._identityCalculated=!0),this._identity}function tt(lt){for(var ht=0;ht<16;){if(lt.props[ht]!==this.props[ht])return!1;ht+=1}return!0}function j(lt){var ht;for(ht=0;ht<16;ht+=1)lt.props[ht]=this.props[ht];return lt}function st(lt){var ht;for(ht=0;ht<16;ht+=1)this.props[ht]=lt[ht]}function ut(lt,ht,yt){return{x:lt*this.props[0]+ht*this.props[4]+yt*this.props[8]+this.props[12],y:lt*this.props[1]+ht*this.props[5]+yt*this.props[9]+this.props[13],z:lt*this.props[2]+ht*this.props[6]+yt*this.props[10]+this.props[14]}}function ct(lt,ht,yt){return lt*this.props[0]+ht*this.props[4]+yt*this.props[8]+this.props[12]}function gt(lt,ht,yt){return lt*this.props[1]+ht*this.props[5]+yt*this.props[9]+this.props[13]}function mt(lt,ht,yt){return lt*this.props[2]+ht*this.props[6]+yt*this.props[10]+this.props[14]}function _t(){var lt=this.props[0]*this.props[5]-this.props[1]*this.props[4],ht=this.props[5]/lt,yt=-this.props[1]/lt,ft=-this.props[4]/lt,Ct=this.props[0]/lt,St=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/lt,bt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/lt,Ot=new Matrix;return Ot.props[0]=ht,Ot.props[1]=yt,Ot.props[4]=ft,Ot.props[5]=Ct,Ot.props[12]=St,Ot.props[13]=bt,Ot}function kt(lt){var ht=this.getInverseMatrix();return ht.applyToPointArray(lt[0],lt[1],lt[2]||0)}function wt(lt){var ht,yt=lt.length,ft=[];for(ht=0;ht<yt;ht+=1)ft[ht]=kt(lt[ht]);return ft}function Et(lt,ht,yt){var ft=createTypedArray("float32",6);if(this.isIdentity())ft[0]=lt[0],ft[1]=lt[1],ft[2]=ht[0],ft[3]=ht[1],ft[4]=yt[0],ft[5]=yt[1];else{var Ct=this.props[0],St=this.props[1],bt=this.props[4],Ot=this.props[5],Mt=this.props[12],Rt=this.props[13];ft[0]=lt[0]*Ct+lt[1]*bt+Mt,ft[1]=lt[0]*St+lt[1]*Ot+Rt,ft[2]=ht[0]*Ct+ht[1]*bt+Mt,ft[3]=ht[0]*St+ht[1]*Ot+Rt,ft[4]=yt[0]*Ct+yt[1]*bt+Mt,ft[5]=yt[0]*St+yt[1]*Ot+Rt}return ft}function Tt(lt,ht,yt){var ft;return this.isIdentity()?ft=[lt,ht,yt]:ft=[lt*this.props[0]+ht*this.props[4]+yt*this.props[8]+this.props[12],lt*this.props[1]+ht*this.props[5]+yt*this.props[9]+this.props[13],lt*this.props[2]+ht*this.props[6]+yt*this.props[10]+this.props[14]],ft}function Lt(lt,ht){if(this.isIdentity())return lt+","+ht;var yt=this.props;return Math.round((lt*yt[0]+ht*yt[4]+yt[12])*100)/100+","+Math.round((lt*yt[1]+ht*yt[5]+yt[13])*100)/100}function xt(){for(var lt=0,ht=this.props,yt="matrix3d(",ft=1e4;lt<16;)yt+=a(ht[lt]*ft)/ft,yt+=lt===15?")":",",lt+=1;return yt}function pt(lt){var ht=1e4;return lt<1e-6&&lt>0||lt>-1e-6&&lt<0?a(lt*ht)/ht:lt}function vt(){var lt=this.props,ht=pt(lt[0]),yt=pt(lt[1]),ft=pt(lt[4]),Ct=pt(lt[5]),St=pt(lt[12]),bt=pt(lt[13]);return"matrix("+ht+","+yt+","+ft+","+Ct+","+St+","+bt+")"}return function(){this.reset=o,this.rotate=c,this.rotateX=g,this.rotateY=_,this.rotateZ=b,this.skew=et,this.skewFromAxis=ot,this.shear=$,this.scale=rt,this.setTransform=at,this.translate=it,this.transform=nt,this.multiply=dt,this.applyToPoint=ut,this.applyToX=ct,this.applyToY=gt,this.applyToZ=mt,this.applyToPointArray=Tt,this.applyToTriplePoints=Et,this.applyToPointStringified=Lt,this.toCSS=xt,this.to2dCSS=vt,this.clone=j,this.cloneFromProps=st,this.equals=tt,this.inversePoints=wt,this.inversePoint=kt,this.getInverseMatrix=_t,this._t=this.transform,this.isIdentity=_e,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_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(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,s){e==="expressions"&&setExpressionsPlugin(s)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default: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";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var s=queryString.split("&"),i=0;i<s.length;i+=1){var a=s[i].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}var queryString="";{var 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{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},s={};e.registerModifier=i,e.getModifier=a;function i(o,c){s[o]||(s[o]=c)}function a(o,c,g){return new s[o](c,g)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var s={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,s){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,s),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);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,s){this.s=PropertyFactory.getProp(e,s.s,0,.01,this),this.e=PropertyFactory.getProp(e,s.e,0,.01,this),this.o=PropertyFactory.getProp(e,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.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,s,i,a,o){var c=[];s<=1?c.push({s:e,e:s}):e>=1?c.push({s:e-1,e:s-1}):(c.push({s:e,e:1}),c.push({s:0,e:s-1}));var g=[],_,b=c.length,$;for(_=0;_<b;_+=1)if($=c[_],!($.e*o<a||$.s*o>a+i)){var et,ot;$.s*o<=a?et=0:et=($.s*o-a)/i,$.e*o>=a+i?ot=1:ot=($.e*o-a)/i,g.push([et,ot])}return g.length||g.push([0,0]),g},TrimModifier.prototype.releasePathsData=function(e){var s,i=e.length;for(s=0;s<i;s+=1)segmentsLengthPool.release(e[s]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var s,i;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),this.s.v>1?s=1+a:this.s.v<0?s=0+a:s=this.s.v+a,this.e.v>1?i=1+a:this.e.v<0?i=0+a:i=this.e.v+a,s>i){var o=s;s=i,i=o}s=Math.round(s*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=s,this.eValue=i}else s=this.sValue,i=this.eValue;var c,g,_=this.shapes.length,b,$,et,ot,rt,at=0;if(i===s)for(g=0;g<_;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(i===1&&s===0||i===0&&s===1){if(this._mdf)for(g=0;g<_;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var it=[],nt,dt;for(g=0;g<_;g+=1)if(nt=this.shapes[g],!nt.shape._mdf&&!this._mdf&&!e&&this.m!==2)nt.shape.paths=nt.localShapeCollection;else{if(c=nt.shape.paths,$=c._length,rt=0,!nt.shape._mdf&&nt.pathsData.length)rt=nt.totalShapeLength;else{for(et=this.releasePathsData(nt.pathsData),b=0;b<$;b+=1)ot=bez.getSegmentsLength(c.shapes[b]),et.push(ot),rt+=ot.totalLength;nt.totalShapeLength=rt,nt.pathsData=et}at+=rt,nt.shape._mdf=!0}var _e=s,tt=i,j=0,st;for(g=_-1;g>=0;g-=1)if(nt=this.shapes[g],nt.shape._mdf){for(dt=nt.localShapeCollection,dt.releaseShapes(),this.m===2&&_>1?(st=this.calculateShapeEdges(s,i,nt.totalShapeLength,j,at),j+=nt.totalShapeLength):st=[[_e,tt]],$=st.length,b=0;b<$;b+=1){_e=st[b][0],tt=st[b][1],it.length=0,tt<=1?it.push({s:nt.totalShapeLength*_e,e:nt.totalShapeLength*tt}):_e>=1?it.push({s:nt.totalShapeLength*(_e-1),e:nt.totalShapeLength*(tt-1)}):(it.push({s:nt.totalShapeLength*_e,e:nt.totalShapeLength}),it.push({s:0,e:nt.totalShapeLength*(tt-1)}));var ut=this.addShapes(nt,it[0]);if(it[0].s!==it[0].e){if(it.length>1){var ct=nt.shape.paths.shapes[nt.shape.paths._length-1];if(ct.c){var gt=ut.pop();this.addPaths(ut,dt),ut=this.addShapes(nt,it[1],gt)}else this.addPaths(ut,dt),ut=this.addShapes(nt,it[1])}this.addPaths(ut,dt)}}nt.shape.paths=dt}}},TrimModifier.prototype.addPaths=function(e,s){var i,a=e.length;for(i=0;i<a;i+=1)s.addShape(e[i])},TrimModifier.prototype.addSegment=function(e,s,i,a,o,c,g){o.setXYAt(s[0],s[1],"o",c),o.setXYAt(i[0],i[1],"i",c+1),g&&o.setXYAt(e[0],e[1],"v",c),o.setXYAt(a[0],a[1],"v",c+1)},TrimModifier.prototype.addSegmentFromArray=function(e,s,i,a){s.setXYAt(e[1],e[5],"o",i),s.setXYAt(e[2],e[6],"i",i+1),a&&s.setXYAt(e[0],e[4],"v",i),s.setXYAt(e[3],e[7],"v",i+1)},TrimModifier.prototype.addShapes=function(e,s,i){var a=e.pathsData,o=e.shape.paths.shapes,c,g=e.shape.paths._length,_,b,$=0,et,ot,rt,at,it=[],nt,dt=!0;for(i?(ot=i._length,nt=i._length):(i=shapePool.newElement(),ot=0,nt=0),it.push(i),c=0;c<g;c+=1){for(rt=a[c].lengths,i.c=o[c].c,b=o[c].c?rt.length:rt.length+1,_=1;_<b;_+=1)if(et=rt[_-1],$+et.addedLength<s.s)$+=et.addedLength,i.c=!1;else if($>s.e){i.c=!1;break}else s.s<=$&&s.e>=$+et.addedLength?(this.addSegment(o[c].v[_-1],o[c].o[_-1],o[c].i[_],o[c].v[_],i,ot,dt),dt=!1):(at=bez.getNewSegment(o[c].v[_-1],o[c].v[_],o[c].o[_-1],o[c].i[_],(s.s-$)/et.addedLength,(s.e-$)/et.addedLength,rt[_-1]),this.addSegmentFromArray(at,i,ot,dt),dt=!1,i.c=!1),$+=et.addedLength,ot+=1;if(o[c].c&&rt.length){if(et=rt[_-1],$<=s.e){var _e=rt[_-1].addedLength;s.s<=$&&s.e>=$+_e?(this.addSegment(o[c].v[_-1],o[c].o[_-1],o[c].i[0],o[c].v[0],i,ot,dt),dt=!1):(at=bez.getNewSegment(o[c].v[_-1],o[c].v[0],o[c].o[_-1],o[c].i[0],(s.s-$)/_e,(s.e-$)/_e,rt[_-1]),this.addSegmentFromArray(at,i,ot,dt),dt=!1,i.c=!1)}else i.c=!1;$+=et.addedLength,ot+=1}if(i._length&&(i.setXYAt(i.v[nt][0],i.v[nt][1],"i",nt),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),$>s.e)break;c<g-1&&(i=shapePool.newElement(),dt=!0,it.push(i),ot=0)}return it};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,s){var i=s/100,a=[0,0],o=e._length,c=0;for(c=0;c<o;c+=1)a[0]+=e.v[c][0],a[1]+=e.v[c][1];a[0]/=o,a[1]/=o;var g=shapePool.newElement();g.c=e.c;var _,b,$,et,ot,rt;for(c=0;c<o;c+=1)_=e.v[c][0]+(a[0]-e.v[c][0])*i,b=e.v[c][1]+(a[1]-e.v[c][1])*i,$=e.o[c][0]+(a[0]-e.o[c][0])*-i,et=e.o[c][1]+(a[1]-e.o[c][1])*-i,ot=e.i[c][0]+(a[0]-e.i[c][0])*-i,rt=e.i[c][1]+(a[1]-e.i[c][1])*-i,g.setTripleAt(_,b,$,et,ot,rt,c);return g},PuckerAndBloatModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.amount.v;if(g!==0){var _,b;for(i=0;i<a;i+=1){if(_=this.shapes[i],b=_.localShapeCollection,!(!_.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),_.shape._mdf=!0,s=_.shape.paths.shapes,c=_.shape.paths._length,o=0;o<c;o+=1)b.addShape(this.processPath(s[o],g));_.shape.paths=_.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function s(b){var $=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||$,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.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?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var $;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 et,ot;if($=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(et=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/$,0),ot=this.p.getValueAtTime(this.p.keyframes[0].t/$,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(et=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/$,0),ot=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/$,0)):(et=this.p.pv,ot=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/$,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){et=[],ot=[];var rt=this.px,at=this.py;rt._caching.lastFrame+rt.offsetTime<=rt.keyframes[0].t?(et[0]=rt.getValueAtTime((rt.keyframes[0].t+.01)/$,0),et[1]=at.getValueAtTime((at.keyframes[0].t+.01)/$,0),ot[0]=rt.getValueAtTime(rt.keyframes[0].t/$,0),ot[1]=at.getValueAtTime(at.keyframes[0].t/$,0)):rt._caching.lastFrame+rt.offsetTime>=rt.keyframes[rt.keyframes.length-1].t?(et[0]=rt.getValueAtTime(rt.keyframes[rt.keyframes.length-1].t/$,0),et[1]=at.getValueAtTime(at.keyframes[at.keyframes.length-1].t/$,0),ot[0]=rt.getValueAtTime((rt.keyframes[rt.keyframes.length-1].t-.01)/$,0),ot[1]=at.getValueAtTime((at.keyframes[at.keyframes.length-1].t-.01)/$,0)):(et=[rt.pv,at.pv],ot[0]=rt.getValueAtTime((rt._caching.lastFrame+rt.offsetTime-.01)/$,rt.offsetTime),ot[1]=at.getValueAtTime((at._caching.lastFrame+at.offsetTime-.01)/$,at.offsetTime))}else ot=e,et=ot;this.v.rotate(-Math.atan2(et[1]-ot[1],et[0]-ot[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}}function a(){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;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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)}function o(){}function c(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,$,et){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=$,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(et||b),$.p&&$.p.s?(this.px=PropertyFactory.getProp(b,$.p.x,0,0,this),this.py=PropertyFactory.getProp(b,$.p.y,0,0,this),$.p.z&&(this.pz=PropertyFactory.getProp(b,$.p.z,0,0,this))):this.p=PropertyFactory.getProp(b,$.p||{k:[0,0,0]},1,0,this),$.rx){if(this.rx=PropertyFactory.getProp(b,$.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(b,$.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(b,$.rz,0,degToRads,this),$.or.k[0].ti){var ot,rt=$.or.k.length;for(ot=0;ot<rt;ot+=1)$.or.k[ot].to=null,$.or.k[ot].ti=null}this.or=PropertyFactory.getProp(b,$.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(b,$.r||{k:0},0,degToRads,this);$.sk&&(this.sk=PropertyFactory.getProp(b,$.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(b,$.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(b,$.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(b,$.s||{k:[100,100,100]},1,.01,this),$.o?this.o=PropertyFactory.getProp(b,$.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:s,getValue:i,precalculateMatrix:a,autoOrient:o},extendPrototype([DynamicPropertyContainer],g),g.prototype.addDynamicProperty=c,g.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function _(b,$,et){return new g(b,$,et)}return{getTransformProperty:_}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,s.c,0,null,this),this.o=PropertyFactory.getProp(e,s.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,s.tr,this),this.so=PropertyFactory.getProp(e,s.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,s.tr.eo,0,.01,this),this.data=s,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,s,i,a,o,c){var g=c?-1:1,_=a.s.v[0]+(1-a.s.v[0])*(1-o),b=a.s.v[1]+(1-a.s.v[1])*(1-o);e.translate(a.p.v[0]*g*o,a.p.v[1]*g*o,a.p.v[2]),s.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),s.rotate(-a.r.v*g*o),s.translate(a.a.v[0],a.a.v[1],a.a.v[2]),i.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),i.scale(c?1/_:_,c?1/b:b),i.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,s,i,a){for(this.elem=e,this.arr=s,this.pos=i,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,s[i]);i>0;)i-=1,this._elements.unshift(s[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s]._processed=!1,e[s].ty==="gr"&&this.resetElements(e[s].it)},RepeaterModifier.prototype.cloneElements=function(e){var s=JSON.parse(JSON.stringify(e));return this.resetElements(s),s},RepeaterModifier.prototype.changeGroupRender=function(e,s){var i,a=e.length;for(i=0;i<a;i+=1)e[i]._render=s,e[i].ty==="gr"&&this.changeGroupRender(e[i].it,s)},RepeaterModifier.prototype.processShapes=function(e){var s,i,a,o,c,g=!1;if(this._mdf||e){var _=Math.ceil(this.c.v);if(this._groups.length<_){for(;this._groups.length<_;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.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,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}c=0;var $;for(a=0;a<=this._groups.length-1;a+=1){if($=c<_,this._groups[a]._render=$,this.changeGroupRender(this._groups[a].it,$),!$){var et=this.elemsData[a].it,ot=et[et.length-1];ot.transform.op.v!==0?(ot.transform.op._mdf=!0,ot.transform.op.v=0):ot.transform.op._mdf=!1}c+=1}this._currentCopies=_;var rt=this.o.v,at=rt%1,it=rt>0?Math.floor(rt):Math.ceil(rt),nt=this.pMatrix.props,dt=this.rMatrix.props,_e=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var tt=0;if(rt>0){for(;tt<it;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),tt+=1;at&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,at,!1),tt+=at)}else if(rt<0){for(;tt>it;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),tt-=1;at&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-at,!0),tt-=at)}a=this.data.m===1?0:this._currentCopies-1,o=this.data.m===1?1:-1,c=this._currentCopies;for(var j,st;c;){if(s=this.elemsData[a].it,i=s[s.length-1].transform.mProps.v.props,st=i.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),tt!==0){for((a!==0&&o===1||a!==this._currentCopies-1&&o===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],dt[8],dt[9],dt[10],dt[11],dt[12],dt[13],dt[14],dt[15]),this.matrix.transform(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5],_e[6],_e[7],_e[8],_e[9],_e[10],_e[11],_e[12],_e[13],_e[14],_e[15]),this.matrix.transform(nt[0],nt[1],nt[2],nt[3],nt[4],nt[5],nt[6],nt[7],nt[8],nt[9],nt[10],nt[11],nt[12],nt[13],nt[14],nt[15]),j=0;j<st;j+=1)i[j]=this.matrix.props[j];this.matrix.reset()}else for(this.matrix.reset(),j=0;j<st;j+=1)i[j]=this.matrix.props[j];tt+=1,c-=1,a+=o}}else for(c=this._currentCopies,a=0,o=1;c;)s=this.elemsData[a].it,i=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,c-=1,a+=o;return g},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,s){var i=shapePool.newElement();i.c=e.c;var a,o=e._length,c,g,_,b,$,et,ot=0,rt,at,it,nt,dt,_e;for(a=0;a<o;a+=1)c=e.v[a],_=e.o[a],g=e.i[a],c[0]===_[0]&&c[1]===_[1]&&c[0]===g[0]&&c[1]===g[1]?(a===0||a===o-1)&&!e.c?(i.setTripleAt(c[0],c[1],_[0],_[1],g[0],g[1],ot),ot+=1):(a===0?b=e.v[o-1]:b=e.v[a-1],$=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),et=$?Math.min($/2,s)/$:0,dt=c[0]+(b[0]-c[0])*et,rt=dt,_e=c[1]-(c[1]-b[1])*et,at=_e,it=rt-(rt-c[0])*roundCorner,nt=at-(at-c[1])*roundCorner,i.setTripleAt(rt,at,it,nt,dt,_e,ot),ot+=1,a===o-1?b=e.v[0]:b=e.v[a+1],$=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),et=$?Math.min($/2,s)/$:0,it=c[0]+(b[0]-c[0])*et,rt=it,nt=c[1]+(b[1]-c[1])*et,at=nt,dt=rt-(rt-c[0])*roundCorner,_e=at-(at-c[1])*roundCorner,i.setTripleAt(rt,at,it,nt,dt,_e,ot),ot+=1):(i.setTripleAt(e.v[a][0],e.v[a][1],e.o[a][0],e.o[a][1],e.i[a][0],e.i[a][1],ot),ot+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.rd.v;if(g!==0){var _,b;for(i=0;i<a;i+=1){if(_=this.shapes[i],b=_.localShapeCollection,!(!_.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),_.shape._mdf=!0,s=_.shape.paths.shapes,c=_.shape.paths._length,o=0;o<c;o+=1)b.addShape(this.processPath(s[o],g));_.shape.paths=_.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,s){return Math.abs(e-s)*1e5<=Math.min(Math.abs(e),Math.abs(s))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,s,i){return e*(1-i)+s*i}function lerpPoint(e,s,i){return[lerp(e[0],s[0],i),lerp(e[1],s[1],i)]}function quadRoots(e,s,i){if(e===0)return[];var a=s*s-4*e*i;if(a<0)return[];var o=-s/(2*e);if(a===0)return[o];var c=Math.sqrt(a)/(2*e);return[o-c,o+c]}function polynomialCoefficients(e,s,i,a){return[-e+3*s-3*i+a,3*e-6*s+3*i,-3*e+3*s,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,s,i,a,o){o&&pointEqual(e,s)&&(s=lerpPoint(e,a,1/3)),o&&pointEqual(i,a)&&(i=lerpPoint(e,a,2/3));var c=polynomialCoefficients(e[0],s[0],i[0],a[0]),g=polynomialCoefficients(e[1],s[1],i[1],a[1]);this.a=[c[0],g[0]],this.b=[c[1],g[1]],this.c=[c[2],g[2]],this.d=[c[3],g[3]],this.points=[e,s,i,a]}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 s=this.derivative(e);return Math.atan2(s[1],s[0])},PolynomialBezier.prototype.normalAngle=function(e){var s=this.derivative(e);return Math.atan2(s[0],s[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,i=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(i<0)return[];var a=Math.sqrt(i);return floatZero(a)?a>0&&a<1?[s]:[]:[s-a,s+a].filter(function(o){return o>0&&o<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 s=lerpPoint(this.points[0],this.points[1],e),i=lerpPoint(this.points[1],this.points[2],e),a=lerpPoint(this.points[2],this.points[3],e),o=lerpPoint(s,i,e),c=lerpPoint(i,a,e),g=lerpPoint(o,c,e);return[new PolynomialBezier(this.points[0],s,o,g,!0),new PolynomialBezier(g,c,a,this.points[3],!0)]};function extrema(e,s){var i=e.points[0][s],a=e.points[e.points.length-1][s];if(i>a){var o=a;a=i,i=o}for(var c=quadRoots(3*e.a[s],2*e.b[s],e.c[s]),g=0;g<c.length;g+=1)if(c[g]>0&&c[g]<1){var _=e.point(c[g])[s];_<i?i=_:_>a&&(a=_)}return{min:i,max:a}}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}};function intersectData(e,s,i){var a=e.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:e,t:(s+i)/2,t1:s,t2:i}}function splitData(e){var s=e.bez.split(.5);return[intersectData(s[0],e.t1,e.t),intersectData(s[1],e.t,e.t2)]}function boxIntersect(e,s){return Math.abs(e.cx-s.cx)*2<e.width+s.width&&Math.abs(e.cy-s.cy)*2<e.height+s.height}function intersectsImpl(e,s,i,a,o,c){if(boxIntersect(e,s)){if(i>=c||e.width<=a&&e.height<=a&&s.width<=a&&s.height<=a){o.push([e.t,s.t]);return}var g=splitData(e),_=splitData(s);intersectsImpl(g[0],_[0],i+1,a,o,c),intersectsImpl(g[0],_[1],i+1,a,o,c),intersectsImpl(g[1],_[0],i+1,a,o,c),intersectsImpl(g[1],_[1],i+1,a,o,c)}}PolynomialBezier.prototype.intersections=function(e,s,i){s===void 0&&(s=2),i===void 0&&(i=7);var a=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,s,a,i),a},PolynomialBezier.shapeSegment=function(e,s){var i=(s+1)%e.length();return new PolynomialBezier(e.v[s],e.o[s],e.i[i],e.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(e,s){var i=(s+1)%e.length();return new PolynomialBezier(e.v[i],e.i[i],e.o[s],e.v[s],!0)};function crossProduct(e,s){return[e[1]*s[2]-e[2]*s[1],e[2]*s[0]-e[0]*s[2],e[0]*s[1]-e[1]*s[0]]}function lineIntersection(e,s,i,a){var o=[e[0],e[1],1],c=[s[0],s[1],1],g=[i[0],i[1],1],_=[a[0],a[1],1],b=crossProduct(crossProduct(o,c),crossProduct(g,_));return floatZero(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function polarOffset(e,s,i){return[e[0]+Math.cos(s)*i,e[1]-Math.sin(s)*i]}function pointDistance(e,s){return Math.hypot(e[0]-s[0],e[1]-s[1])}function pointEqual(e,s){return floatEqual(e[0],s[0])&&floatEqual(e[1],s[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,s.s,0,null,this),this.frequency=PropertyFactory.getProp(e,s.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,s,i,a,o,c,g){var _=i-Math.PI/2,b=i+Math.PI/2,$=s[0]+Math.cos(i)*a*o,et=s[1]-Math.sin(i)*a*o;e.setTripleAt($,et,$+Math.cos(_)*c,et-Math.sin(_)*c,$+Math.cos(b)*g,et-Math.sin(b)*g,e.length())}function getPerpendicularVector(e,s){var i=[s[0]-e[0],s[1]-e[1]],a=-Math.PI*.5,o=[Math.cos(a)*i[0]-Math.sin(a)*i[1],Math.sin(a)*i[0]+Math.cos(a)*i[1]];return o}function getProjectingAngle(e,s){var i=s===0?e.length()-1:s-1,a=(s+1)%e.length(),o=e.v[i],c=e.v[a],g=getPerpendicularVector(o,c);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function zigZagCorner(e,s,i,a,o,c,g){var _=getProjectingAngle(s,i),b=s.v[i%s._length],$=s.v[i===0?s._length-1:i-1],et=s.v[(i+1)%s._length],ot=c===2?Math.sqrt(Math.pow(b[0]-$[0],2)+Math.pow(b[1]-$[1],2)):0,rt=c===2?Math.sqrt(Math.pow(b[0]-et[0],2)+Math.pow(b[1]-et[1],2)):0;setPoint(e,s.v[i%s._length],_,g,a,rt/((o+1)*2),ot/((o+1)*2))}function zigZagSegment(e,s,i,a,o,c){for(var g=0;g<a;g+=1){var _=(g+1)/(a+1),b=o===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,$=s.normalAngle(_),et=s.point(_);setPoint(e,et,$,c,i,b/((a+1)*2),b/((a+1)*2)),c=-c}return c}ZigZagModifier.prototype.processPath=function(e,s,i,a){var o=e._length,c=shapePool.newElement();if(c.c=e.c,e.c||(o-=1),o===0)return c;var g=-1,_=PolynomialBezier.shapeSegment(e,0);zigZagCorner(c,e,0,s,i,a,g);for(var b=0;b<o;b+=1)g=zigZagSegment(c,_,s,i,a,-g),b===o-1&&!e.c?_=null:_=PolynomialBezier.shapeSegment(e,(b+1)%o),zigZagCorner(c,e,b+1,s,i,a,g);return c},ZigZagModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.amplitude.v,_=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var $,et;for(i=0;i<a;i+=1){if($=this.shapes[i],et=$.localShapeCollection,!(!$.shape._mdf&&!this._mdf&&!e))for(et.releaseShapes(),$.shape._mdf=!0,s=$.shape.paths.shapes,c=$.shape.paths._length,o=0;o<c;o+=1)et.addShape(this.processPath(s[o],g,_,b));$.shape.paths=$.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,s,i){var a=Math.atan2(s[0]-e[0],s[1]-e[1]);return[polarOffset(e,a,i),polarOffset(s,a,i)]}function offsetSegment(e,s){var i,a,o,c,g,_,b;b=linearOffset(e.points[0],e.points[1],s),i=b[0],a=b[1],b=linearOffset(e.points[1],e.points[2],s),o=b[0],c=b[1],b=linearOffset(e.points[2],e.points[3],s),g=b[0],_=b[1];var $=lineIntersection(i,a,o,c);$===null&&($=a);var et=lineIntersection(g,_,o,c);return et===null&&(et=g),new PolynomialBezier(i,$,et,_)}function joinLines(e,s,i,a,o){var c=s.points[3],g=i.points[0];if(a===3||pointEqual(c,g))return c;if(a===2){var _=-s.tangentAngle(1),b=-i.tangentAngle(0)+Math.PI,$=lineIntersection(c,polarOffset(c,_+Math.PI/2,100),g,polarOffset(g,_+Math.PI/2,100)),et=$?pointDistance($,c):pointDistance(c,g)/2,ot=polarOffset(c,_,2*et*roundCorner);return e.setXYAt(ot[0],ot[1],"o",e.length()-1),ot=polarOffset(g,b,2*et*roundCorner),e.setTripleAt(g[0],g[1],g[0],g[1],ot[0],ot[1],e.length()),g}var rt=pointEqual(c,s.points[2])?s.points[0]:s.points[2],at=pointEqual(g,i.points[1])?i.points[3]:i.points[1],it=lineIntersection(rt,c,g,at);return it&&pointDistance(it,c)<o?(e.setTripleAt(it[0],it[1],it[0],it[1],it[0],it[1],e.length()),it):c}function getIntersection(e,s){var i=e.intersections(s);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(e,s){var i=e.slice(),a=s.slice(),o=getIntersection(e[e.length-1],s[0]);return o&&(i[e.length-1]=e[e.length-1].split(o[0])[0],a[0]=s[0].split(o[1])[1]),e.length>1&&s.length>1&&(o=getIntersection(e[0],s[s.length-1]),o)?[[e[0].split(o[0])[0]],[s[s.length-1].split(o[1])[1]]]:[i,a]}function pruneIntersections(e){for(var s,i=1;i<e.length;i+=1)s=pruneSegmentIntersection(e[i-1],e[i]),e[i-1]=s[0],e[i]=s[1];return e.length>1&&(s=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=s[0],e[0]=s[1]),e}function offsetSegmentSplit(e,s){var i=e.inflectionPoints(),a,o,c,g;if(i.length===0)return[offsetSegment(e,s)];if(i.length===1||floatEqual(i[1],1))return c=e.split(i[0]),a=c[0],o=c[1],[offsetSegment(a,s),offsetSegment(o,s)];c=e.split(i[0]),a=c[0];var _=(i[1]-i[0])/(1-i[0]);return c=c[1].split(_),g=c[0],o=c[1],[offsetSegment(a,s),offsetSegment(g,s),offsetSegment(o,s)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,s.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,s,i,a){var o=shapePool.newElement();o.c=e.c;var c=e.length();e.c||(c-=1);var g,_,b,$=[];for(g=0;g<c;g+=1)b=PolynomialBezier.shapeSegment(e,g),$.push(offsetSegmentSplit(b,s));if(!e.c)for(g=c-1;g>=0;g-=1)b=PolynomialBezier.shapeSegmentInverted(e,g),$.push(offsetSegmentSplit(b,s));$=pruneIntersections($);var et=null,ot=null;for(g=0;g<$.length;g+=1){var rt=$[g];for(ot&&(et=joinLines(o,ot,rt[0],i,a)),ot=rt[rt.length-1],_=0;_<rt.length;_+=1)b=rt[_],et&&pointEqual(b.points[0],et)?o.setXYAt(b.points[1][0],b.points[1][1],"o",o.length()-1):o.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],o.length()),o.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],o.length()),et=b.points[3]}return $.length&&joinLines(o,ot,$[0][0],i,a),o},OffsetPathModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.amount.v,_=this.miterLimit.v,b=this.lineJoin;if(g!==0){var $,et;for(i=0;i<a;i+=1){if($=this.shapes[i],et=$.localShapeCollection,!(!$.shape._mdf&&!this._mdf&&!e))for(et.releaseShapes(),$.shape._mdf=!0,s=$.shape.paths.shapes,c=$.shape.paths._length,o=0;o<c;o+=1)et.addShape(this.processPath(s[o],g,b,_));$.shape.paths=$.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var s=e.fStyle?e.fStyle.split(" "):[],i="normal",a="normal",o=s.length,c,g=0;g<o;g+=1)switch(c=s[g].toLowerCase(),c){case"italic":a="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break}return{style:a,weight:e.fWeight||i}}var FontManager=function(){var e=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.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 a=127988,o=917631,c=917601,g=917626,_=65039,b=8205,$=127462,et=127487,ot=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function rt(pt){var vt=pt.split(","),lt,ht=vt.length,yt=[];for(lt=0;lt<ht;lt+=1)vt[lt]!=="sans-serif"&&vt[lt]!=="monospace"&&yt.push(vt[lt]);return yt.join(",")}function at(pt,vt){var lt=createTag("span");lt.setAttribute("aria-hidden",!0),lt.style.fontFamily=vt;var ht=createTag("span");ht.innerText="giItT1WQy@!-/#",lt.style.position="absolute",lt.style.left="-10000px",lt.style.top="-10000px",lt.style.fontSize="300px",lt.style.fontVariant="normal",lt.style.fontStyle="normal",lt.style.fontWeight="normal",lt.style.letterSpacing="0",lt.appendChild(ht),document.body.appendChild(lt);var yt=ht.offsetWidth;return ht.style.fontFamily=rt(pt)+", "+vt,{node:ht,w:yt,parent:lt}}function it(){var pt,vt=this.fonts.length,lt,ht,yt=vt;for(pt=0;pt<vt;pt+=1)this.fonts[pt].loaded?yt-=1:this.fonts[pt].fOrigin==="n"||this.fonts[pt].origin===0?this.fonts[pt].loaded=!0:(lt=this.fonts[pt].monoCase.node,ht=this.fonts[pt].monoCase.w,lt.offsetWidth!==ht?(yt-=1,this.fonts[pt].loaded=!0):(lt=this.fonts[pt].sansCase.node,ht=this.fonts[pt].sansCase.w,lt.offsetWidth!==ht&&(yt-=1,this.fonts[pt].loaded=!0)),this.fonts[pt].loaded&&(this.fonts[pt].sansCase.parent.parentNode.removeChild(this.fonts[pt].sansCase.parent),this.fonts[pt].monoCase.parent.parentNode.removeChild(this.fonts[pt].monoCase.parent)));yt!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function nt(pt,vt){var lt=document.body&&vt?"svg":"canvas",ht,yt=getFontProperties(pt);if(lt==="svg"){var ft=createNS("text");ft.style.fontSize="100px",ft.setAttribute("font-family",pt.fFamily),ft.setAttribute("font-style",yt.style),ft.setAttribute("font-weight",yt.weight),ft.textContent="1",pt.fClass?(ft.style.fontFamily="inherit",ft.setAttribute("class",pt.fClass)):ft.style.fontFamily=pt.fFamily,vt.appendChild(ft),ht=ft}else{var Ct=new OffscreenCanvas(500,500).getContext("2d");Ct.font=yt.style+" "+yt.weight+" 100px "+pt.fFamily,ht=Ct}function St(bt){return lt==="svg"?(ht.textContent=bt,ht.getComputedTextLength()):ht.measureText(bt).width}return{measureText:St}}function dt(pt,vt){if(!pt){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=pt.list;return}if(!document.body){this.isLoaded=!0,pt.list.forEach(function(Kt){Kt.helper=nt(Kt),Kt.cache={}}),this.fonts=pt.list;return}var lt=pt.list,ht,yt=lt.length,ft=yt;for(ht=0;ht<yt;ht+=1){var Ct=!0,St,bt;if(lt[ht].loaded=!1,lt[ht].monoCase=at(lt[ht].fFamily,"monospace"),lt[ht].sansCase=at(lt[ht].fFamily,"sans-serif"),!lt[ht].fPath)lt[ht].loaded=!0,ft-=1;else if(lt[ht].fOrigin==="p"||lt[ht].origin===3){if(St=document.querySelectorAll('style[f-forigin="p"][f-family="'+lt[ht].fFamily+'"], style[f-origin="3"][f-family="'+lt[ht].fFamily+'"]'),St.length>0&&(Ct=!1),Ct){var Ot=createTag("style");Ot.setAttribute("f-forigin",lt[ht].fOrigin),Ot.setAttribute("f-origin",lt[ht].origin),Ot.setAttribute("f-family",lt[ht].fFamily),Ot.type="text/css",Ot.innerText="@font-face {font-family: "+lt[ht].fFamily+"; font-style: normal; src: url('"+lt[ht].fPath+"');}",vt.appendChild(Ot)}}else if(lt[ht].fOrigin==="g"||lt[ht].origin===1){for(St=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),bt=0;bt<St.length;bt+=1)St[bt].href.indexOf(lt[ht].fPath)!==-1&&(Ct=!1);if(Ct){var Mt=createTag("link");Mt.setAttribute("f-forigin",lt[ht].fOrigin),Mt.setAttribute("f-origin",lt[ht].origin),Mt.type="text/css",Mt.rel="stylesheet",Mt.href=lt[ht].fPath,document.body.appendChild(Mt)}}else if(lt[ht].fOrigin==="t"||lt[ht].origin===2){for(St=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),bt=0;bt<St.length;bt+=1)lt[ht].fPath===St[bt].src&&(Ct=!1);if(Ct){var Rt=createTag("link");Rt.setAttribute("f-forigin",lt[ht].fOrigin),Rt.setAttribute("f-origin",lt[ht].origin),Rt.setAttribute("rel","stylesheet"),Rt.setAttribute("href",lt[ht].fPath),vt.appendChild(Rt)}}lt[ht].helper=nt(lt[ht],vt),lt[ht].cache={},this.fonts.push(lt[ht])}ft===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function _e(pt){if(pt){this.chars||(this.chars=[]);var vt,lt=pt.length,ht,yt=this.chars.length,ft;for(vt=0;vt<lt;vt+=1){for(ht=0,ft=!1;ht<yt;)this.chars[ht].style===pt[vt].style&&this.chars[ht].fFamily===pt[vt].fFamily&&this.chars[ht].ch===pt[vt].ch&&(ft=!0),ht+=1;ft||(this.chars.push(pt[vt]),yt+=1)}}}function tt(pt,vt,lt){for(var ht=0,yt=this.chars.length;ht<yt;){if(this.chars[ht].ch===pt&&this.chars[ht].style===vt&&this.chars[ht].fFamily===lt)return this.chars[ht];ht+=1}return(typeof pt=="string"&&pt.charCodeAt(0)!==13||!pt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",pt,vt,lt)),s}function j(pt,vt,lt){var ht=this.getFontByName(vt),yt=pt;if(!ht.cache[yt]){var ft=ht.helper;if(pt===" "){var Ct=ft.measureText("|"+pt+"|"),St=ft.measureText("||");ht.cache[yt]=(Ct-St)/100}else ht.cache[yt]=ft.measureText(pt)/100}return ht.cache[yt]*lt}function st(pt){for(var vt=0,lt=this.fonts.length;vt<lt;){if(this.fonts[vt].fName===pt)return this.fonts[vt];vt+=1}return this.fonts[0]}function ut(pt){var vt=0,lt=pt.charCodeAt(0);if(lt>=55296&&lt<=56319){var ht=pt.charCodeAt(1);ht>=56320&&ht<=57343&&(vt=(lt-55296)*1024+ht-56320+65536)}return vt}function ct(pt,vt){var lt=pt.toString(16)+vt.toString(16);return ot.indexOf(lt)!==-1}function gt(pt){return pt===b}function mt(pt){return pt===_}function _t(pt){var vt=ut(pt);return vt>=$&&vt<=et}function kt(pt){return _t(pt.substr(0,2))&&_t(pt.substr(2,2))}function wt(pt){return i.indexOf(pt)!==-1}function Et(pt,vt){var lt=ut(pt.substr(vt,2));if(lt!==a)return!1;var ht=0;for(vt+=2;ht<5;){if(lt=ut(pt.substr(vt,2)),lt<c||lt>g)return!1;ht+=1,vt+=2}return ut(pt.substr(vt,2))===o}function Tt(){this.isLoaded=!0}var Lt=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)};Lt.isModifier=ct,Lt.isZeroWidthJoiner=gt,Lt.isFlagEmoji=kt,Lt.isRegionalCode=_t,Lt.isCombinedCharacter=wt,Lt.isRegionalFlag=Et,Lt.isVariationSelector=mt,Lt.BLACK_FLAG_CODE_POINT=a;var xt={addChars:_e,addFonts:dt,getCharData:tt,getFontByName:st,measureText:j,checkLoadedFonts:it,setIsLoaded:Tt};return Lt.prototype=xt,Lt}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},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(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,i=this.renderableComponents.length;for(s=0;s<i;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={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"};return function(s){return e[s]||""}}();function SliderEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function AngleEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function ColorEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,1,0,i)}function PointEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,1,0,i)}function LayerIndexEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function MaskIndexEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function CheckboxEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(e,s){var i=e.ef||[];this.effectElements=[];var a,o=i.length,c;for(a=0;a<o;a+=1)c=new GroupEffect(i[a],s),this.effectElements.push(c)}function GroupEffect(e,s){this.init(e,s)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,s){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(s);var i,a=this.data.ef.length,o,c=this.data.ef;for(i=0;i<a;i+=1){switch(o=null,c[i].ty){case 0:o=new SliderEffect(c[i],s,this);break;case 1:o=new AngleEffect(c[i],s,this);break;case 2:o=new ColorEffect(c[i],s,this);break;case 3:o=new PointEffect(c[i],s,this);break;case 4:case 7:o=new CheckboxEffect(c[i],s,this);break;case 10:o=new LayerIndexEffect(c[i],s,this);break;case 11:o=new MaskIndexEffect(c[i],s,this);break;case 5:o=new EffectsManager(c[i],s);break;default:o=new NoValueEffect(c[i]);break}o&&this.effectElements.push(o)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,i=this.data.masksProperties.length;s<i;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=getExpressionInterfaces();if(s){var i=s("layer"),a=s("effects"),o=s("shape"),c=s("text"),g=s("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var _=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(_),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=o(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=getBlendMode(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=s},initBaseData:function(s,i,a){this.globalData=i,this.comp=a,this.data=s,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(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,i){var a,o=this.dynamicProperties.length;for(a=0;a<o;a+=1)(i||this._isParent&&this.dynamicProperties[a].propType==="transform")&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function FootageElement(e,s,i){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(e.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(e,s,i)}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 s=e("footage");this.layerInterface=s(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,s,i){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(e.refId),this.initBaseData(e,s,i),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}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 s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(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(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var s,i=this.layers.length,a;for(this.completeLayers=!0,s=i-1;s>=0;s-=1)this.elements[s]||(a=this.layers[s],a.ip-a.st<=e-this.layers[s].st&&a.op-a.st>e-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;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: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);default:return this.createNull(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,s=this.layers.length;for(e=0;e<s;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var s,i=e.length,a,o=this.layers.length;for(s=0;s<i;s+=1)for(a=0;a<o;){if(this.layers[a].id===e[s].id){this.layers[a]=e[s];break}a+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,s,i){for(var a=this.elements,o=this.layers,c=0,g=o.length;c<g;)o[c].ind==s&&(!a[c]||a[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(i.push(a[c]),a[c].setAsParent(),o[c].parent!==void 0?this.buildElementParenting(e,o[c].parent,i):e.setHierarchy(i))),c+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var s,i=e.length;for(s=0;s<i;s+=1)if(e[s].xt){var a=this.createComp(e[s]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementById=function(e){var s,i=this.elements.length;for(s=0;s<i;s+=1)if(this.elements[s].data.ind===e)return this.elements[s];return null},BaseRenderer.prototype.getElementByPath=function(e){var s=e.shift(),i;if(typeof s=="number")i=this.elements[s];else{var a,o=this.elements.length;for(a=0;a<o;a+=1)if(this.elements[a].data.nm===s){i=this.elements[a];break}}return e.length===0?i:i.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,s){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,s),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(){}TransformElement.prototype={initTransform:function(){var s=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,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 s,i=this.finalTransform.mat,a=0,o=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<o;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,i.cloneFromProps(s),a=0;a<o;a+=1)i.multiply(this.hierarchy[a].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 s=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<i;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),s=1;s<i;s+=1){var o=this.localTransforms[s].matrix;a.multiply(o)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(s=0;s<i;s+=1)c*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var i=0,a=s.length;for(i=0;i<a;i+=1)this.localTransforms.push(s[i])}}},globalToLocal:function(s){var i=[];i.push(this.finalTransform);for(var a=!0,o=this.comp;a;)o.finalTransform?(o.data.hasMask&&i.splice(0,0,o.finalTransform),o=o.comp):a=!1;var c,g=i.length,_;for(c=0;c<g;c+=1)_=i[c].mat.applyToPointArray(0,0,0),s=[s[0]-_[0],s[1]-_[1],0];return s},mHelper:new Matrix};function MaskElement(e,s,i){this.data=e,this.element=s,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a=this.globalData.defs,o,c=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(c),this.solidPath="";var g,_=this.masksProperties,b=0,$=[],et,ot,rt=createElementID(),at,it,nt,dt,_e="clipPath",tt="clip-path";for(o=0;o<c;o+=1)if((_[o].mode!=="a"&&_[o].mode!=="n"||_[o].inv||_[o].o.k!==100||_[o].o.x)&&(_e="mask",tt="mask"),(_[o].mode==="s"||_[o].mode==="i")&&b===0?(at=createNS("rect"),at.setAttribute("fill","#ffffff"),at.setAttribute("width",this.element.comp.data.w||0),at.setAttribute("height",this.element.comp.data.h||0),$.push(at)):at=null,g=createNS("path"),_[o].mode==="n")this.viewData[o]={op:PropertyFactory.getProp(this.element,_[o].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,_[o],3),elem:g,lastPath:""},a.appendChild(g);else{b+=1,g.setAttribute("fill",_[o].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var j;if(_[o].x.k!==0?(_e="mask",tt="mask",dt=PropertyFactory.getProp(this.element,_[o].x,0,null,this.element),j=createElementID(),it=createNS("filter"),it.setAttribute("id",j),nt=createNS("feMorphology"),nt.setAttribute("operator","erode"),nt.setAttribute("in","SourceGraphic"),nt.setAttribute("radius","0"),it.appendChild(nt),a.appendChild(it),g.setAttribute("stroke",_[o].mode==="s"?"#000000":"#ffffff")):(nt=null,dt=null),this.storedData[o]={elem:g,x:dt,expan:nt,lastPath:"",lastOperator:"",filterId:j,lastRadius:0},_[o].mode==="i"){ot=$.length;var st=createNS("g");for(et=0;et<ot;et+=1)st.appendChild($[et]);var ut=createNS("mask");ut.setAttribute("mask-type","alpha"),ut.setAttribute("id",rt+"_"+b),ut.appendChild(g),a.appendChild(ut),st.setAttribute("mask","url("+getLocationHref()+"#"+rt+"_"+b+")"),$.length=0,$.push(st)}else $.push(g);_[o].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[o]={elem:g,lastPath:"",op:PropertyFactory.getProp(this.element,_[o].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,_[o],3),invRect:at},this.viewData[o].prop.k||this.drawPath(_[o],this.viewData[o].prop.v,this.viewData[o])}for(this.maskElement=createNS(_e),c=$.length,o=0;o<c;o+=1)this.maskElement.appendChild($[o]);b>0&&(this.maskElement.setAttribute("id",rt),this.element.maskedElement.setAttribute(tt,"url("+getLocationHref()+"#"+rt+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var s=this.element.finalTransform.mat,i,a=this.masksProperties.length;for(i=0;i<a;i+=1)if((this.viewData[i].prop._mdf||e)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||e)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[i].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||e))){var o=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[i].filterId+")")),o.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},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+" ",e},MaskElement.prototype.drawPath=function(e,s,i){var a=" M"+s.v[0][0]+","+s.v[0][1],o,c;for(c=s._length,o=1;o<c;o+=1)a+=" C"+s.o[o-1][0]+","+s.o[o-1][1]+" "+s.i[o][0]+","+s.i[o][1]+" "+s.v[o][0]+","+s.v[o][1];if(s.c&&c>1&&(a+=" C"+s.o[o-1][0]+","+s.o[o-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),i.lastPath!==a){var g="";i.elem&&(s.c&&(g=e.inv?this.solidPath+a:a),i.elem.setAttribute("d",g)),i.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=s,e.createAlphaToLuminanceFilter=i;function s(a,o){var c=createNS("filter");return c.setAttribute("id",a),o!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function i(){var a=createNS("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a}return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};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 s,i="SourceGraphic",a=e.data.ef?e.data.ef.length:0,o=createElementID(),c=filtersFactory.createFilter(o,!0),g=0;this.filters=[];var _;for(s=0;s<a;s+=1){_=null;var b=e.data.ef[s].ty;if(registeredEffects$1[b]){var $=registeredEffects$1[b].effect;_=new $(c,e.effectsManager.effectElements[s],e,idPrefix+g,i),i=idPrefix+g,registeredEffects$1[b].countsAsEffect&&(g+=1)}_&&this.filters.push(_)}g&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var s,i=this.filters.length;for(s=0;s<i;s+=1)this.filters[s].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var s,i=this.filters.length,a=[];for(s=0;s<i;s+=1)this.filters[s].type===e&&a.push(this.filters[s]);return a};function registerEffect$1(e,s,i){registeredEffects$1[e]={effect:s,countsAsEffect:i}}function SVGBaseElement(){}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 s=null;if(this.data.td){this.matteMasks={};var i=createNS("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),s=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=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),this.data.ty===0&&!this.data.hd){var a=createNS("clipPath"),o=createNS("path");o.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=createElementID();if(a.setAttribute("id",c),a.appendChild(o),this.globalData.defs.appendChild(a),this.checkMasks()){var g=createNS("g");g.setAttribute("clip-path","url("+getLocationHref()+"#"+c+")"),g.appendChild(this.layerElement),this.transformedElement=g,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+c+")")}this.data.bm!==0&&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(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var i=this.layerId+"_"+s,a,o,c,g;if(s===1||s===3){var _=createNS("mask");_.setAttribute("id",i),_.setAttribute("mask-type",s===3?"luminance":"alpha"),c=createNS("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),_.appendChild(c),this.globalData.defs.appendChild(_),!featureSupport.maskType&&s===1&&(_.setAttribute("mask-type","luminance"),a=createElementID(),o=filtersFactory.createFilter(a),this.globalData.defs.appendChild(o),o.appendChild(filtersFactory.createAlphaToLuminanceFilter()),g=createNS("g"),g.appendChild(c),_.appendChild(g),g.setAttribute("filter","url("+getLocationHref()+"#"+a+")"))}else if(s===2){var b=createNS("mask");b.setAttribute("id",i),b.setAttribute("mask-type","alpha");var $=createNS("g");b.appendChild($),a=createElementID(),o=filtersFactory.createFilter(a);var et=createNS("feComponentTransfer");et.setAttribute("in","SourceGraphic"),o.appendChild(et);var ot=createNS("feFuncA");ot.setAttribute("type","table"),ot.setAttribute("tableValues","1.0 0.0"),et.appendChild(ot),this.globalData.defs.appendChild(o);var rt=createNS("rect");rt.setAttribute("width",this.comp.data.w),rt.setAttribute("height",this.comp.data.h),rt.setAttribute("x","0"),rt.setAttribute("y","0"),rt.setAttribute("fill","#ffffff"),rt.setAttribute("opacity","0"),$.setAttribute("filter","url("+getLocationHref()+"#"+a+")"),$.appendChild(rt),c=createNS("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),$.appendChild(c),featureSupport.maskType||(b.setAttribute("mask-type","luminance"),o.appendChild(filtersFactory.createAlphaToLuminanceFilter()),g=createNS("g"),$.appendChild(rt),g.appendChild(this.layerElement),$.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[s]=i}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+s+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(i,a,o){this.initFrame(),this.initBaseData(i,a,o),this.initTransform(i,a,o),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.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(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,s,i){this.assetData=s.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(e,s,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}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};function ProcessedElement(e,s){this.elem=e,this.pos=s}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(s){var i,a=this.shapeModifiers.length;for(i=0;i<a;i+=1)this.shapeModifiers[i].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var i=0,a=this.shapeModifiers.length;i<a;)if(this.shapeModifiers[i].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,i=this.shapes.length;for(s=0;s<i;s+=1)this.shapes[s].sh.reset();i=this.shapeModifiers.length;var a;for(s=i-1;s>=0&&(a=this.shapeModifiers[s].processShapes(this._isFirstFrame),!a);s-=1);}},searchProcessedElement:function(s){for(var i=this.processedElements,a=0,o=i.length;a<o;){if(i[a].elem===s)return i[a].pos;a+=1}return 0},addProcessedElement:function(s,i){for(var a=this.processedElements,o=a.length;o;)if(o-=1,a[o].elem===s){a[o].pos=i;return}a.push(new ProcessedElement(s,i))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,s,i){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=i,this.lvl=s,this._isAnimated=!!i.k;for(var a=0,o=e.length;a<o;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,s){this.data=e,this.type=e.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,s,i,a){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(s.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",s.length?s.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(a);var o,c=s.length||0,g;for(o=0;o<c;o+=1)g=PropertyFactory.getProp(e,s[o].v,0,0,this),this.k=g.k||this.k,this.dataProps[o]={n:s[o].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}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 s=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<i;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.w=PropertyFactory.getProp(e,s.w,0,null,this),this.d=new DashProperty(e,s.d||{},"svg",this),this.c=PropertyFactory.getProp(e,s.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.c=PropertyFactory.getProp(e,s.c,1,255,this),this.style=i}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=i}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,s,i){this.data=s,this.c=createTypedArray("uint8c",s.p*4);var a=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(e,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,s){for(var i=0,a=this.o.length/2,o;i<a;){if(o=Math.abs(e[i*4]-e[s*4+i*2]),o>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,s=this.data.k.k.length;e<s;){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 s,i=this.data.p*4,a,o;for(s=0;s<i;s+=1)a=s%4===0?100:255,o=Math.round(this.prop.v[s]*a),this.c[s]!==o&&(this.c[s]=o,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,s=this.data.p*4;s<i;s+=1)a=s%2===0?100:1,o=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==o&&(this.o[s-this.data.p*4]=o,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,s,i)}SVGGradientFillStyleData.prototype.initGradientData=function(e,s,i){this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.s=PropertyFactory.getProp(e,s.s,1,null,this),this.e=PropertyFactory.getProp(e,s.e,1,null,this),this.h=PropertyFactory.getProp(e,s.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,s.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,s.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,s),this.setGradientOpacity(s,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,s){var i=createElementID(),a=createNS(s.t===1?"linearGradient":"radialGradient");a.setAttribute("id",i),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var o=[],c,g,_;for(_=s.g.p*4,g=0;g<_;g+=4)c=createNS("stop"),a.appendChild(c),o.push(c);e.setAttribute(s.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=a,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,s){if(this.g._hasOpacity&&!this.g._collapsable){var i,a,o,c=createNS("mask"),g=createNS("path");c.appendChild(g);var _=createElementID(),b=createElementID();c.setAttribute("id",b);var $=createNS(e.t===1?"linearGradient":"radialGradient");$.setAttribute("id",_),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse"),o=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var et=this.stops;for(a=e.g.p*4;a<o;a+=2)i=createNS("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),$.appendChild(i),et.push(i);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+_+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),g.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=$,this.ms=c,this.ost=et,this.maskId=b,s.msElem=g}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,s.w,0,null,this),this.d=new DashProperty(e,s.d||{},"svg",this),this.initGradientData(e,s,i),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,s,i){this.transform={mProps:e,op:s,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(s,i,a,o){if(i===0)return"";var c=s.o,g=s.i,_=s.v,b,$=" M"+o.applyToPointStringified(_[0][0],_[0][1]);for(b=1;b<i;b+=1)$+=" C"+o.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+o.applyToPointStringified(g[b][0],g[b][1])+" "+o.applyToPointStringified(_[b][0],_[b][1]);return a&&i&&($+=" C"+o.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+o.applyToPointStringified(g[0][0],g[0][1])+" "+o.applyToPointStringified(_[0][0],_[0][1]),$+="z"),$},SVGElementsRenderer=function(){var e=new Matrix,s=new Matrix,i={createRenderFunction:a};function a(ot){switch(ot.ty){case"fl":return _;case"gf":return $;case"gs":return b;case"st":return et;case"sh":case"el":case"rc":case"sr":return g;case"tr":return o;case"no":return c;default:return null}}function o(ot,rt,at){(at||rt.transform.op._mdf)&&rt.transform.container.setAttribute("opacity",rt.transform.op.v),(at||rt.transform.mProps._mdf)&&rt.transform.container.setAttribute("transform",rt.transform.mProps.v.to2dCSS())}function c(){}function g(ot,rt,at){var it,nt,dt,_e,tt,j,st=rt.styles.length,ut=rt.lvl,ct,gt,mt,_t;for(j=0;j<st;j+=1){if(_e=rt.sh._mdf||at,rt.styles[j].lvl<ut){for(gt=s.reset(),mt=ut-rt.styles[j].lvl,_t=rt.transformers.length-1;!_e&&mt>0;)_e=rt.transformers[_t].mProps._mdf||_e,mt-=1,_t-=1;if(_e)for(mt=ut-rt.styles[j].lvl,_t=rt.transformers.length-1;mt>0;)gt.multiply(rt.transformers[_t].mProps.v),mt-=1,_t-=1}else gt=e;if(ct=rt.sh.paths,nt=ct._length,_e){for(dt="",it=0;it<nt;it+=1)tt=ct.shapes[it],tt&&tt._length&&(dt+=buildShapeString(tt,tt._length,tt.c,gt));rt.caches[j]=dt}else dt=rt.caches[j];rt.styles[j].d+=ot.hd===!0?"":dt,rt.styles[j]._mdf=_e||rt.styles[j]._mdf}}function _(ot,rt,at){var it=rt.style;(rt.c._mdf||at)&&it.pElem.setAttribute("fill","rgb("+bmFloor(rt.c.v[0])+","+bmFloor(rt.c.v[1])+","+bmFloor(rt.c.v[2])+")"),(rt.o._mdf||at)&&it.pElem.setAttribute("fill-opacity",rt.o.v)}function b(ot,rt,at){$(ot,rt,at),et(ot,rt,at)}function $(ot,rt,at){var it=rt.gf,nt=rt.g._hasOpacity,dt=rt.s.v,_e=rt.e.v;if(rt.o._mdf||at){var tt=ot.ty==="gf"?"fill-opacity":"stroke-opacity";rt.style.pElem.setAttribute(tt,rt.o.v)}if(rt.s._mdf||at){var j=ot.t===1?"x1":"cx",st=j==="x1"?"y1":"cy";it.setAttribute(j,dt[0]),it.setAttribute(st,dt[1]),nt&&!rt.g._collapsable&&(rt.of.setAttribute(j,dt[0]),rt.of.setAttribute(st,dt[1]))}var ut,ct,gt,mt;if(rt.g._cmdf||at){ut=rt.cst;var _t=rt.g.c;for(gt=ut.length,ct=0;ct<gt;ct+=1)mt=ut[ct],mt.setAttribute("offset",_t[ct*4]+"%"),mt.setAttribute("stop-color","rgb("+_t[ct*4+1]+","+_t[ct*4+2]+","+_t[ct*4+3]+")")}if(nt&&(rt.g._omdf||at)){var kt=rt.g.o;for(rt.g._collapsable?ut=rt.cst:ut=rt.ost,gt=ut.length,ct=0;ct<gt;ct+=1)mt=ut[ct],rt.g._collapsable||mt.setAttribute("offset",kt[ct*2]+"%"),mt.setAttribute("stop-opacity",kt[ct*2+1])}if(ot.t===1)(rt.e._mdf||at)&&(it.setAttribute("x2",_e[0]),it.setAttribute("y2",_e[1]),nt&&!rt.g._collapsable&&(rt.of.setAttribute("x2",_e[0]),rt.of.setAttribute("y2",_e[1])));else{var wt;if((rt.s._mdf||rt.e._mdf||at)&&(wt=Math.sqrt(Math.pow(dt[0]-_e[0],2)+Math.pow(dt[1]-_e[1],2)),it.setAttribute("r",wt),nt&&!rt.g._collapsable&&rt.of.setAttribute("r",wt)),rt.s._mdf||rt.e._mdf||rt.h._mdf||rt.a._mdf||at){wt||(wt=Math.sqrt(Math.pow(dt[0]-_e[0],2)+Math.pow(dt[1]-_e[1],2)));var Et=Math.atan2(_e[1]-dt[1],_e[0]-dt[0]),Tt=rt.h.v;Tt>=1?Tt=.99:Tt<=-1&&(Tt=-.99);var Lt=wt*Tt,xt=Math.cos(Et+rt.a.v)*Lt+dt[0],pt=Math.sin(Et+rt.a.v)*Lt+dt[1];it.setAttribute("fx",xt),it.setAttribute("fy",pt),nt&&!rt.g._collapsable&&(rt.of.setAttribute("fx",xt),rt.of.setAttribute("fy",pt))}}}function et(ot,rt,at){var it=rt.style,nt=rt.d;nt&&(nt._mdf||at)&&nt.dashStr&&(it.pElem.setAttribute("stroke-dasharray",nt.dashStr),it.pElem.setAttribute("stroke-dashoffset",nt.dashoffset[0])),rt.c&&(rt.c._mdf||at)&&it.pElem.setAttribute("stroke","rgb("+bmFloor(rt.c.v[0])+","+bmFloor(rt.c.v[1])+","+bmFloor(rt.c.v[2])+")"),(rt.o._mdf||at)&&it.pElem.setAttribute("stroke-opacity",rt.o.v),(rt.w._mdf||at)&&(it.pElem.setAttribute("stroke-width",rt.w.v),it.msElem&&it.msElem.setAttribute("stroke-width",rt.w.v))}return i}();function SVGShapeElement(e,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,s,i),this.prevViewData=[]}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,s=this.shapes.length,i,a,o=this.stylesList.length,c,g=[],_=!1;for(a=0;a<o;a+=1){for(c=this.stylesList[a],_=!1,g.length=0,e=0;e<s;e+=1)i=this.shapes[e],i.styles.indexOf(c)!==-1&&(g.push(i),_=i._isAnimated||_);g.length>1&&_&&this.setShapesAsAnimated(g)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,s){var i,a=new SVGStyleData(e,s),o=a.pElem;if(e.ty==="st")i=new SVGStrokeStyleData(this,e,a);else if(e.ty==="fl")i=new SVGFillStyleData(this,e,a);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;i=new c(this,e,a),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),o.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))}else e.ty==="no"&&(i=new SVGNoStyleData(this,e,a));return(e.ty==="st"||e.ty==="gs")&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),o.setAttribute("fill-opacity","0"),e.lj===1&&o.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&o.setAttribute("fill-rule","evenodd"),e.ln&&o.setAttribute("id",e.ln),e.cl&&o.setAttribute("class",e.cl),e.bm&&(o.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createGroupElement=function(e){var s=new ShapeGroupData;return e.ln&&s.gr.setAttribute("id",e.ln),e.cl&&s.gr.setAttribute("class",e.cl),e.bm&&(s.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),s},SVGShapeElement.prototype.createTransformElement=function(e,s){var i=TransformPropertyFactory.getTransformProperty(this,e,this),a=new SVGTransformData(i,i.o,s);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,s,i){var a=4;e.ty==="rc"?a=5:e.ty==="el"?a=6:e.ty==="sr"&&(a=7);var o=ShapePropertyFactory.getShapeProp(this,e,a,this),c=new SVGShapeData(s,i,o);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},SVGShapeElement.prototype.addToAnimatedContents=function(e,s){for(var i=0,a=this.animatedContents.length;i<a;){if(this.animatedContents[i].element===s)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:s,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var s=e.styles,i,a=this.stylesList.length;for(i=0;i<a;i+=1)s.indexOf(this.stylesList[i])===-1&&!this.stylesList[i].closed&&s.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,s=this.itemsData.length;for(e=0;e<s;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,e=0;e<s;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,s,i,a,o,c,g){var _=[].concat(c),b,$=e.length-1,et,ot,rt=[],at=[],it,nt,dt;for(b=$;b>=0;b-=1){if(dt=this.searchProcessedElement(e[b]),dt?s[b]=i[dt-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")dt?s[b].style.closed=e[b].hd:s[b]=this.createStyleElement(e[b],o),e[b]._render&&s[b].style.pElem.parentNode!==a&&a.appendChild(s[b].style.pElem),rt.push(s[b].style);else if(e[b].ty==="gr"){if(!dt)s[b]=this.createGroupElement(e[b]);else for(ot=s[b].it.length,et=0;et<ot;et+=1)s[b].prevViewData[et]=s[b].it[et];this.searchShapes(e[b].it,s[b].it,s[b].prevViewData,s[b].gr,o+1,_,g),e[b]._render&&s[b].gr.parentNode!==a&&a.appendChild(s[b].gr)}else e[b].ty==="tr"?(dt||(s[b]=this.createTransformElement(e[b],a)),it=s[b].transform,_.push(it)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(dt||(s[b]=this.createShapeElement(e[b],_,o)),this.setElementStyles(s[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(dt?(nt=s[b],nt.closed=!1):(nt=ShapeModifiers.getModifier(e[b].ty),nt.init(this,e[b]),s[b]=nt,this.shapeModifiers.push(nt)),at.push(nt)):e[b].ty==="rp"&&(dt?(nt=s[b],nt.closed=!0):(nt=ShapeModifiers.getModifier(e[b].ty),s[b]=nt,nt.init(this,e,b,s),this.shapeModifiers.push(nt),g=!1),at.push(nt));this.addProcessedElement(e[b],b+1)}for($=rt.length,b=0;b<$;b+=1)rt[b].closed=!0;for($=at.length,b=0;b<$;b+=1)at[b].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<s;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,s=this.animatedContents.length,i;for(e=0;e<s;e+=1)i=this.animatedContents[e],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,s,i,a,o,c){this.o=e,this.sw=s,this.sc=i,this.fc=a,this.m=o,this.p=c,this._mdf={o:!0,sw:!!s,sc:!!i,fc:!!a,m:!0,p:!0}}LetterProps.prototype.update=function(e,s,i,a,o,c){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 g=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,g=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,g=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,g=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,g=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,g=!0),g};function TextProperty(e,s){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=e.globalData.slotManager.getProp(s.d)),this.data=s,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)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i]);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 s=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,o=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(a=0;a<o;a+=1)i!==this.keysIndex?c=this.effectsSequence[a](c,c.t):c=this.effectsSequence[a](this.currentData,c.t);s!==c&&this.setCurrentData(c),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,s=this.elem.comp.renderedFrame,i=0,a=e.length;i<=a-1&&!(i===a-1||e[i+1].t>s);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var s=[],i=0,a=e.length,o,c,g=!1,_=!1,b="";i<a;)g=_,_=!1,o=e.charCodeAt(i),b=e.charAt(i),FontManager.isCombinedCharacter(o)?g=!0:o>=55296&&o<=56319?FontManager.isRegionalFlag(e,i)?b=e.substr(i,14):(c=e.charCodeAt(i+1),c>=56320&&c<=57343&&(FontManager.isModifier(o,c)?(b=e.substr(i,2),g=!0):FontManager.isFlagEmoji(e.substr(i,4))?b=e.substr(i,4):b=e.substr(i,2))):o>56319?(c=e.charCodeAt(i+1),FontManager.isVariationSelector(o)&&(g=!0)):FontManager.isZeroWidthJoiner(o)&&(g=!0,_=!0),g?(s[s.length-1]+=b,g=!1):s.push(b),i+=b.length;return s},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var s=this.elem.globalData.fontManager,i=this.data,a=[],o,c,g,_=0,b,$=i.m.g,et=0,ot=0,rt=0,at=[],it=0,nt=0,dt,_e,tt=s.getFontByName(e.f),j,st=0,ut=getFontProperties(tt);e.fWeight=ut.weight,e.fStyle=ut.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var ct=e.tr/1e3*e.finalSize,gt;if(e.sz)for(var mt=!0,_t=e.sz[0],kt=e.sz[1],wt,Et;mt;){Et=this.buildFinalText(e.t),wt=0,it=0,c=Et.length,ct=e.tr/1e3*e.finalSize;var Tt=-1;for(o=0;o<c;o+=1)gt=Et[o].charCodeAt(0),g=!1,Et[o]===" "?Tt=o:(gt===13||gt===3)&&(it=0,g=!0,wt+=e.finalLineHeight||e.finalSize*1.2),s.chars?(j=s.getCharData(Et[o],tt.fStyle,tt.fFamily),st=g?0:j.w*e.finalSize/100):st=s.measureText(Et[o],e.f,e.finalSize),it+st>_t&&Et[o]!==" "?(Tt===-1?c+=1:o=Tt,wt+=e.finalLineHeight||e.finalSize*1.2,Et.splice(o,Tt===o?1:0,"\r"),Tt=-1,it=0):(it+=st,it+=ct);wt+=tt.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&kt<wt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=Et,c=e.finalText.length,mt=!1)}it=-ct,st=0;var Lt=0,xt;for(o=0;o<c;o+=1)if(g=!1,xt=e.finalText[o],gt=xt.charCodeAt(0),gt===13||gt===3?(Lt=0,at.push(it),nt=it>nt?it:nt,it=-2*ct,b="",g=!0,rt+=1):b=xt,s.chars?(j=s.getCharData(xt,tt.fStyle,s.getFontByName(e.f).fFamily),st=g?0:j.w*e.finalSize/100):st=s.measureText(b,e.f,e.finalSize),xt===" "?Lt+=st+ct:(it+=st+ct+Lt,Lt=0),a.push({l:st,an:st,add:et,n:g,anIndexes:[],val:b,line:rt,animatorJustifyOffset:0}),$==2){if(et+=st,b===""||b===" "||o===c-1){for((b===""||b===" ")&&(et-=st);ot<=o;)a[ot].an=et,a[ot].ind=_,a[ot].extra=st,ot+=1;_+=1,et=0}}else if($==3){if(et+=st,b===""||o===c-1){for(b===""&&(et-=st);ot<=o;)a[ot].an=et,a[ot].ind=_,a[ot].extra=st,ot+=1;et=0,_+=1}}else a[_].ind=_,a[_].extra=0,_+=1;if(e.l=a,nt=it>nt?it:nt,at.push(it),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=nt,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=at;var pt=i.a,vt,lt;_e=pt.length;var ht,yt,ft=[];for(dt=0;dt<_e;dt+=1){for(vt=pt[dt],vt.a.sc&&(e.strokeColorAnim=!0),vt.a.sw&&(e.strokeWidthAnim=!0),(vt.a.fc||vt.a.fh||vt.a.fs||vt.a.fb)&&(e.fillColorAnim=!0),yt=0,ht=vt.s.b,o=0;o<c;o+=1)lt=a[o],lt.anIndexes[dt]=yt,(ht==1&&lt.val!==""||ht==2&&lt.val!==""&&lt.val!==" "||ht==3&&(lt.n||lt.val==" "||o==c-1)||ht==4&&(lt.n||o==c-1))&&(vt.s.rn===1&&ft.push(yt),yt+=1);i.a[dt].s.totalChars=yt;var Ct=-1,St;if(vt.s.rn===1)for(o=0;o<c;o+=1)lt=a[o],Ct!=lt.anIndexes[dt]&&(Ct=lt.anIndexes[dt],St=ft.splice(Math.floor(Math.random()*ft.length),1)[0]),lt.anIndexes[dt]=St}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=tt.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,s){s=s===void 0?this.keysIndex:s;var i=this.copyData({},this.data.d.k[s].s);i=this.copyData(i,e),this.data.d.k[s].s=i,this.recalculate(s),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var s=this.data.d.k[e].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},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,s=Math.min,i=Math.floor;function a(c,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=PropertyFactory.getProp(c,g.s||{k:0},0,0,this),"e"in g?this.e=PropertyFactory.getProp(c,g.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(c,g.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(c,g.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(c,g.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(c,g.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(c,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var _=0,b=0,$=1,et=1;this.ne.v>0?_=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?$=1-this.xe.v/100:et=1+this.xe.v/100;var ot=BezierFactory.getBezierEasing(_,b,$,et).get,rt=0,at=this.finalS,it=this.finalE,nt=this.data.sh;if(nt===2)it===at?rt=g>=it?1:0:rt=e(0,s(.5/(it-at)+(g-at)/(it-at),1)),rt=ot(rt);else if(nt===3)it===at?rt=g>=it?0:1:rt=1-e(0,s(.5/(it-at)+(g-at)/(it-at),1)),rt=ot(rt);else if(nt===4)it===at?rt=0:(rt=e(0,s(.5/(it-at)+(g-at)/(it-at),1)),rt<.5?rt*=2:rt=1-2*(rt-.5)),rt=ot(rt);else if(nt===5){if(it===at)rt=0;else{var dt=it-at;g=s(e(0,g+.5-at),it-at);var _e=-dt/2+g,tt=dt/2;rt=Math.sqrt(1-_e*_e/(tt*tt))}rt=ot(rt)}else nt===6?(it===at?rt=0:(g=s(e(0,g+.5-at),it-at),rt=(1+Math.cos(Math.PI+Math.PI*2*g/(it-at)))/2),rt=ot(rt)):(g>=i(at)&&(g-at<0?rt=e(0,s(s(it,1)-(at-g),1)):rt=e(0,s(it-g,1))),rt=ot(rt));if(this.sm.v!==100){var j=this.sm.v*.01;j===0&&(j=1e-8);var st=.5-j*.5;rt<st?rt=0:(rt=(rt-st)/j,rt>1&&(rt=1))}return rt*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var _=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/_,$=this.s.v/_+b,et=this.e.v/_+b;if($>et){var ot=$;$=et,et=ot}this.finalS=$,this.finalE=et}},extendPrototype([DynamicPropertyContainer],a);function o(c,g,_){return new a(c,g)}return{getTextSelectorProp:o}}();function TextAnimatorDataProperty(e,s,i){var a={propType:!1},o=PropertyFactory.getProp,c=s.a;this.a={r:c.r?o(e,c.r,0,degToRads,i):a,rx:c.rx?o(e,c.rx,0,degToRads,i):a,ry:c.ry?o(e,c.ry,0,degToRads,i):a,sk:c.sk?o(e,c.sk,0,degToRads,i):a,sa:c.sa?o(e,c.sa,0,degToRads,i):a,s:c.s?o(e,c.s,1,.01,i):a,a:c.a?o(e,c.a,1,0,i):a,o:c.o?o(e,c.o,0,.01,i):a,p:c.p?o(e,c.p,1,0,i):a,sw:c.sw?o(e,c.sw,0,0,i):a,sc:c.sc?o(e,c.sc,1,0,i):a,fc:c.fc?o(e,c.fc,1,0,i):a,fh:c.fh?o(e,c.fh,0,0,i):a,fs:c.fs?o(e,c.fs,0,.01,i):a,fb:c.fb?o(e,c.fb,0,.01,i):a,t:c.t?o(e,c.t,0,0,i):a},this.s=TextSelectorProp.getTextSelectorProp(e,s.s,i),this.s.t=s.s.t}function TextAnimatorProperty(e,s,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=s,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}TextAnimatorProperty.prototype.searchProperties=function(){var e,s=this._textData.a.length,i,a=PropertyFactory.getProp;for(e=0;e<s;e+=1)i=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=a(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,a=this._animatorsData,o=this._textData,c=this.mHelper,g=this._renderType,_=this.renderedLetters.length,b,$,et,ot,rt=e.l,at,it,nt,dt,_e,tt,j,st,ut,ct,gt,mt,_t,kt,wt;if(this._hasMaskedPath){if(wt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Et=wt.v;this._pathData.r.v&&(Et=Et.reverse()),at={tLength:0,segments:[]},ot=Et._length-1;var Tt;for(mt=0,et=0;et<ot;et+=1)Tt=bez.buildBezierData(Et.v[et],Et.v[et+1],[Et.o[et][0]-Et.v[et][0],Et.o[et][1]-Et.v[et][1]],[Et.i[et+1][0]-Et.v[et+1][0],Et.i[et+1][1]-Et.v[et+1][1]]),at.tLength+=Tt.segmentLength,at.segments.push(Tt),mt+=Tt.segmentLength;et=ot,wt.v.c&&(Tt=bez.buildBezierData(Et.v[et],Et.v[0],[Et.o[et][0]-Et.v[et][0],Et.o[et][1]-Et.v[et][1]],[Et.i[0][0]-Et.v[0][0],Et.i[0][1]-Et.v[0][1]]),at.tLength+=Tt.segmentLength,at.segments.push(Tt),mt+=Tt.segmentLength),this._pathData.pi=at}if(at=this._pathData.pi,it=this._pathData.f.v,j=0,tt=1,dt=0,_e=!0,ct=at.segments,it<0&&wt.v.c)for(at.tLength<Math.abs(it)&&(it=-Math.abs(it)%at.tLength),j=ct.length-1,ut=ct[j].points,tt=ut.length-1;it<0;)it+=ut[tt].partialLength,tt-=1,tt<0&&(j-=1,ut=ct[j].points,tt=ut.length-1);ut=ct[j].points,st=ut[tt-1],nt=ut[tt],gt=nt.partialLength}ot=rt.length,b=0,$=0;var Lt=e.finalSize*1.2*.714,xt=!0,pt,vt,lt,ht,yt;ht=a.length;var ft,Ct=-1,St,bt,Ot,Mt=it,Rt=j,Kt=tt,Wt=-1,Vt,zt,It,Nt,Pt,qt,Gt,er,Ut="",Qt=this.defaultPropsArray,Ft;if(e.j===2||e.j===1){var Dt=0,tr=0,nr=e.j===2?-.5:-1,Zt=0,jt=!0;for(et=0;et<ot;et+=1)if(rt[et].n){for(Dt&&(Dt+=tr);Zt<et;)rt[Zt].animatorJustifyOffset=Dt,Zt+=1;Dt=0,jt=!0}else{for(lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.t.propType&&(jt&&e.j===2&&(tr+=pt.t.v*nr),vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),ft.length?Dt+=pt.t.v*ft[0]*nr:Dt+=pt.t.v*ft*nr);jt=!1}for(Dt&&(Dt+=tr);Zt<et;)rt[Zt].animatorJustifyOffset=Dt,Zt+=1}for(et=0;et<ot;et+=1){if(c.reset(),Vt=1,rt[et].n)b=0,$+=e.yOffset,$+=xt?1:0,it=Mt,xt=!1,this._hasMaskedPath&&(j=Rt,tt=Kt,ut=ct[j].points,st=ut[tt-1],nt=ut[tt],gt=nt.partialLength,dt=0),Ut="",er="",qt="",Ft="",Qt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Wt!==rt[et].line){switch(e.j){case 1:it+=mt-e.lineWidths[rt[et].line];break;case 2:it+=(mt-e.lineWidths[rt[et].line])/2;break}Wt=rt[et].line}Ct!==rt[et].ind&&(rt[Ct]&&(it+=rt[Ct].extra),it+=rt[et].an/2,Ct=rt[et].ind),it+=i[0]*rt[et].an*.005;var Bt=0;for(lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.p.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),ft.length?Bt+=pt.p.v[0]*ft[0]:Bt+=pt.p.v[0]*ft),pt.a.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),ft.length?Bt+=pt.a.v[0]*ft[0]:Bt+=pt.a.v[0]*ft);for(_e=!0,this._pathData.a.v&&(it=rt[0].an*.5+(mt-this._pathData.f.v-rt[0].an*.5-rt[rt.length-1].an*.5)*Ct/(ot-1),it+=this._pathData.f.v);_e;)dt+gt>=it+Bt||!ut?(_t=(it+Bt-dt)/nt.partialLength,bt=st.point[0]+(nt.point[0]-st.point[0])*_t,Ot=st.point[1]+(nt.point[1]-st.point[1])*_t,c.translate(-i[0]*rt[et].an*.005,-(i[1]*Lt)*.01),_e=!1):ut&&(dt+=nt.partialLength,tt+=1,tt>=ut.length&&(tt=0,j+=1,ct[j]?ut=ct[j].points:wt.v.c?(tt=0,j=0,ut=ct[j].points):(dt-=nt.partialLength,ut=null)),ut&&(st=nt,nt=ut[tt],gt=nt.partialLength));St=rt[et].an/2-rt[et].add,c.translate(-St,0,0)}else St=rt[et].an/2-rt[et].add,c.translate(-St,0,0),c.translate(-i[0]*rt[et].an*.005,-i[1]*Lt*.01,0);for(lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.t.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?ft.length?it+=pt.t.v*ft[0]:it+=pt.t.v*ft:ft.length?b+=pt.t.v*ft[0]:b+=pt.t.v*ft));for(e.strokeWidthAnim&&(It=e.sw||0),e.strokeColorAnim&&(e.sc?zt=[e.sc[0],e.sc[1],e.sc[2]]:zt=[0,0,0]),e.fillColorAnim&&e.fc&&(Nt=[e.fc[0],e.fc[1],e.fc[2]]),lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.a.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),ft.length?c.translate(-pt.a.v[0]*ft[0],-pt.a.v[1]*ft[1],pt.a.v[2]*ft[2]):c.translate(-pt.a.v[0]*ft,-pt.a.v[1]*ft,pt.a.v[2]*ft));for(lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.s.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),ft.length?c.scale(1+(pt.s.v[0]-1)*ft[0],1+(pt.s.v[1]-1)*ft[1],1):c.scale(1+(pt.s.v[0]-1)*ft,1+(pt.s.v[1]-1)*ft,1));for(lt=0;lt<ht;lt+=1){if(pt=a[lt].a,vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),pt.sk.propType&&(ft.length?c.skewFromAxis(-pt.sk.v*ft[0],pt.sa.v*ft[1]):c.skewFromAxis(-pt.sk.v*ft,pt.sa.v*ft)),pt.r.propType&&(ft.length?c.rotateZ(-pt.r.v*ft[2]):c.rotateZ(-pt.r.v*ft)),pt.ry.propType&&(ft.length?c.rotateY(pt.ry.v*ft[1]):c.rotateY(pt.ry.v*ft)),pt.rx.propType&&(ft.length?c.rotateX(pt.rx.v*ft[0]):c.rotateX(pt.rx.v*ft)),pt.o.propType&&(ft.length?Vt+=(pt.o.v*ft[0]-Vt)*ft[0]:Vt+=(pt.o.v*ft-Vt)*ft),e.strokeWidthAnim&&pt.sw.propType&&(ft.length?It+=pt.sw.v*ft[0]:It+=pt.sw.v*ft),e.strokeColorAnim&&pt.sc.propType)for(Pt=0;Pt<3;Pt+=1)ft.length?zt[Pt]+=(pt.sc.v[Pt]-zt[Pt])*ft[0]:zt[Pt]+=(pt.sc.v[Pt]-zt[Pt])*ft;if(e.fillColorAnim&&e.fc){if(pt.fc.propType)for(Pt=0;Pt<3;Pt+=1)ft.length?Nt[Pt]+=(pt.fc.v[Pt]-Nt[Pt])*ft[0]:Nt[Pt]+=(pt.fc.v[Pt]-Nt[Pt])*ft;pt.fh.propType&&(ft.length?Nt=addHueToRGB(Nt,pt.fh.v*ft[0]):Nt=addHueToRGB(Nt,pt.fh.v*ft)),pt.fs.propType&&(ft.length?Nt=addSaturationToRGB(Nt,pt.fs.v*ft[0]):Nt=addSaturationToRGB(Nt,pt.fs.v*ft)),pt.fb.propType&&(ft.length?Nt=addBrightnessToRGB(Nt,pt.fb.v*ft[0]):Nt=addBrightnessToRGB(Nt,pt.fb.v*ft))}}for(lt=0;lt<ht;lt+=1)pt=a[lt].a,pt.p.propType&&(vt=a[lt].s,ft=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),this._hasMaskedPath?ft.length?c.translate(0,pt.p.v[1]*ft[0],-pt.p.v[2]*ft[1]):c.translate(0,pt.p.v[1]*ft,-pt.p.v[2]*ft):ft.length?c.translate(pt.p.v[0]*ft[0],pt.p.v[1]*ft[1],-pt.p.v[2]*ft[2]):c.translate(pt.p.v[0]*ft,pt.p.v[1]*ft,-pt.p.v[2]*ft));if(e.strokeWidthAnim&&(qt=It<0?0:It),e.strokeColorAnim&&(Gt="rgb("+Math.round(zt[0]*255)+","+Math.round(zt[1]*255)+","+Math.round(zt[2]*255)+")"),e.fillColorAnim&&e.fc&&(er="rgb("+Math.round(Nt[0]*255)+","+Math.round(Nt[1]*255)+","+Math.round(Nt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,i[1]*Lt*.01+$,0),this._pathData.p.v){kt=(nt.point[1]-st.point[1])/(nt.point[0]-st.point[0]);var Jt=Math.atan(kt)*180/Math.PI;nt.point[0]<st.point[0]&&(Jt+=180),c.rotate(-Jt*Math.PI/180)}c.translate(bt,Ot,0),it-=i[0]*rt[et].an*.005,rt[et+1]&&Ct!==rt[et+1].ind&&(it+=rt[et].an/2,it+=e.tr*.001*e.finalSize)}else{switch(c.translate(b,$,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(rt[et].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[rt[et].line]),0,0);break;case 2:c.translate(rt[et].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[rt[et].line])/2,0,0);break}c.translate(0,-e.ls),c.translate(St,0,0),c.translate(i[0]*rt[et].an*.005,i[1]*Lt*.01,0),b+=rt[et].l+e.tr*.001*e.finalSize}g==="html"?Ut=c.toCSS():g==="svg"?Ut=c.to2dCSS():Qt=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],Ft=Vt}_<=et?(yt=new LetterProps(Ft,qt,Gt,er,Ut,Qt),this.renderedLetters.push(yt),_+=1,this.lettersChangedFlag=!0):(yt=this.renderedLetters[et],this.lettersChangedFlag=yt.update(Ft,qt,Gt,er,Ut,Qt)||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);function ITextElement(){}ITextElement.prototype.initElement=function(e,s,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,s,i),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,s,i),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,s){var i,a=s.length,o,c="";for(i=0;i<a;i+=1)s[i].ty==="sh"&&(o=s[i].ks.k,c+=buildShapeString(o,o.i.length,!0,e));return c},ITextElement.prototype.updateDocumentData=function(e,s){this.textProperty.updateDocumentData(e,s)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,s,i,a,o){switch(e.ps&&s.translate(e.ps[0],e.ps[1]+e.ascent,0),s.translate(0,-e.ls,0),e.j){case 1:s.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i]),0,0);break;case 2:s.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i])/2,0,0);break}s.translate(a,o,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},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,s,i){this.textSpans=[],this.renderType="svg",this.initElement(e,s,i)}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 s=0,i=e.length,a=[],o="";s<i;)e[s]==="\r"||e[s]===""?(a.push(o),o=""):o+=e[s],s+=1;return a.push(o),a},SVGTextLottieElement.prototype.buildShapeData=function(e,s){if(e.shapes&&e.shapes.length){var i=e.shapes[0];if(i.it){var a=i.it[i.it.length-1];a.s&&(a.s.k[0]=s,a.s.k[1]=s)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,s,i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var a=this.globalData.fontManager.getFontByName(i.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var o=i.fWeight,c=i.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",o)}this.layerElement.setAttribute("aria-label",i.t);var g=i.l||[],_=!!this.globalData.fontManager.chars;s=g.length;var b,$=this.mHelper,et="",ot=this.data.singleShape,rt=0,at=0,it=!0,nt=i.tr*.001*i.finalSize;if(ot&&!_&&!i.sz){var dt=this.textContainer,_e="start";switch(i.j){case 1:_e="end";break;case 2:_e="middle";break;default:_e="start";break}dt.setAttribute("text-anchor",_e),dt.setAttribute("letter-spacing",nt);var tt=this.buildTextContents(i.finalText);for(s=tt.length,at=i.ps?i.ps[1]+i.ascent:0,e=0;e<s;e+=1)b=this.textSpans[e].span||createNS("tspan"),b.textContent=tt[e],b.setAttribute("x",0),b.setAttribute("y",at),b.style.display="inherit",dt.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,at+=i.finalLineHeight;this.layerElement.appendChild(dt)}else{var j=this.textSpans.length,st;for(e=0;e<s;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!_||!ot||e===0){if(b=j>e?this.textSpans[e].span:createNS(_?"g":"text"),j<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,_){var ut=createNS("g");b.appendChild(ut),this.textSpans[e].childSpan=ut}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if($.reset(),ot&&(g[e].n&&(rt=-nt,at+=i.yOffset,at+=it?1:0,it=!1),this.applyTextPropertiesToMatrix(i,$,g[e].line,rt,at),rt+=g[e].l||0,rt+=nt),_){st=this.globalData.fontManager.getCharData(i.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var ct;if(st.t===1)ct=new SVGCompElement(st.data,this.globalData,this);else{var gt=emptyShapeData;st.data&&st.data.shapes&&(gt=this.buildShapeData(st.data,i.finalSize)),ct=new SVGShapeElement(gt,this.globalData,this)}if(this.textSpans[e].glyph){var mt=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(mt.layerElement),mt.destroy()}this.textSpans[e].glyph=ct,ct._debug=!0,ct.prepareFrame(0),ct.renderFrame(),this.textSpans[e].childSpan.appendChild(ct.layerElement),st.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else ot&&b.setAttribute("transform","translate("+$.props[12]+","+$.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}ot&&b&&b.setAttribute("d",et)}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,s=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<s;e+=1)i=this.textSpans[e].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._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)){this._sizeChanged=!0;var e,s,i=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;s=a.length;var o,c,g;for(e=0;e<s;e+=1)a[e].n||(o=i[e],c=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),o._mdf.m&&c.setAttribute("transform",o.m),o._mdf.o&&c.setAttribute("opacity",o.o),o._mdf.sw&&c.setAttribute("stroke-width",o.sw),o._mdf.sc&&c.setAttribute("stroke",o.sc),o._mdf.fc&&c.setAttribute("fill",o.fc))}};function ISolidElement(e,s,i){this.initElement(e,s,i)}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)};function NullElement(e,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initFrame(),this.initTransform(e,s,i),this.initHierarchy()}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);function SVGRendererBase(){}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),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(e,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var i=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var o=createElementID();i.setAttribute("id",o),i.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),s.appendChild(i),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,s=this.layers?this.layers.length:0;for(e=0;e<s;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 s=0,i=this.layers.length;for(s=0;s<i;s+=1)if(this.layers[s].ind===e)return s;return-1},SVGRendererBase.prototype.buildItem=function(e){var s=this.elements;if(!(s[e]||this.layers[e].ty===99)){s[e]=!0;var i=this.createItem(this.layers[e]);if(s[e]=i,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,e),this.layers[e].tt){var a="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(i);else{var o=s[a],c=o.getMatte(this.layers[e].tt);i.setMatte(c)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var s=0,i=this.elements.length;s<i;){if(this.elements[s]===e){var a="tp"in e.data?this.findIndexByInd(e.data.tp):s-1,o=this.elements[a],c=o.getMatte(this.layers[s].tt);e.setMatte(c);break}s+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var s,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),s=i-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(e-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<i;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,s){var i=e.getBaseElement();if(i){for(var a=0,o;a<s;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(o=this.elements[a].getBaseElement()),a+=1;o?this.layerElement.insertBefore(i,o):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initTransform(e,s,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.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 s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var i,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,s=this.layers.length;for(e=0;e<s;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,s=this.layers.length;for(e=0;e<s;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,s,i){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(s&&s.title){var a=createNS("title"),o=createElementID();a.setAttribute("id",o),a.textContent=s.title,this.svgElement.appendChild(a),i+=o}if(s&&s.description){var c=createNS("desc"),g=createElementID();c.setAttribute("id",g),c.textContent=s.description,this.svgElement.appendChild(c),i+=" "+g}i&&this.svgElement.setAttribute("aria-labelledby",i);var _=createNS("defs");this.svgElement.appendChild(_);var b=createNS("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:_,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(s){var i,a=s.length,o="_";for(i=0;i<a;i+=1)o+=s[i].transform.key+"_";var c=this.sequences[o];return c||(c={transforms:[].concat(s),finalTransform:new Matrix,_mdf:!1},this.sequences[o]=c,this.sequenceList.push(c)),c},processSequence:function(s,i){for(var a=0,o=s.transforms.length,c=i;a<o&&!i;){if(s.transforms[a].transform.mProps._mdf){c=!0;break}a+=1}if(c)for(s.finalTransform.reset(),a=o-1;a>=0;a-=1)s.finalTransform.multiply(s.transforms[a].transform.mProps.v);s._mdf=c},processSequences:function(s){var i,a=this.sequenceList.length;for(i=0;i<a;i+=1)this.processSequence(this.sequenceList[i],s)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var s="__lottie_element_luma_buffer",i=null,a=null,o=null;function c(){var b=createNS("svg"),$=createNS("filter"),et=createNS("feColorMatrix");return $.setAttribute("id",s),et.setAttribute("type","matrix"),et.setAttribute("color-interpolation-filters","sRGB"),et.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"),$.appendChild(et),b.appendChild($),b.setAttribute("id",s+"_svg"),featureSupport.svgLumaHidden&&(b.style.display="none"),b}function g(){i||(o=c(),document.body.appendChild(o),i=createTag("canvas"),a=i.getContext("2d"),a.filter="url(#"+s+")",a.fillStyle="rgba(0,0,0,0)",a.fillRect(0,0,1,1))}function _(b){return i||g(),i.width=b.width,i.height=b.height,a.filter="url(#"+s+")",i}return{load:g,get:_}};function createCanvas(e,s){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,s);var i=createTag("canvas");return i.width=e,i.height=s,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var s,i=e.data.ef?e.data.ef.length:0;this.filters=[];var a;for(s=0;s<i;s+=1){a=null;var o=e.data.ef[s].ty;if(registeredEffects[o]){var c=registeredEffects[o].effect;a=new c(e.effectsManager.effectElements[s],e)}a&&this.filters.push(a)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var s,i=this.filters.length;for(s=0;s<i;s+=1)this.filters[s].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var s,i=this.filters.length,a=[];for(s=0;s<i;s+=1)this.filters[s].type===e&&a.push(this.filters[s]);return a};function registerEffect(e,s){registeredEffects[e]={effect:s}}function CVMaskElement(e,s){this.data=e,this.element=s,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,a=this.masksProperties.length,o=!1;for(i=0;i<a;i+=1)this.masksProperties[i].mode!=="n"&&(o=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,s=this.element.canvasContext,i,a=this.masksProperties.length,o,c,g;for(s.beginPath(),i=0;i<a;i+=1)if(this.masksProperties[i].mode!=="n"){this.masksProperties[i].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),g=this.viewData[i].v,o=e.applyToPointArray(g.v[0][0],g.v[0][1],0),s.moveTo(o[0],o[1]);var _,b=g._length;for(_=1;_<b;_+=1)c=e.applyToTriplePoints(g.o[_-1],g.i[_],g.v[_]),s.bezierCurveTo(c[0],c[1],c[2],c[3],c[4],c[5]);c=e.applyToTriplePoints(g.o[_-1],g.i[0],g.v[0]),s.bezierCurveTo(c[0],c[1],c[2],c[3],c[4],c[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var s=this.globalData.canvasContext,i=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push(i);var a=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push(a),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 s=this.globalData;if(s.blendMode!==this.data.bm){s.blendMode=this.data.bm;var i=getBlendMode(this.data.bm);s.canvasContext.globalCompositeOperation=i}},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(s){s.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 s=this.buffers[0],i=s.getContext("2d");this.clearCanvas(i),i.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 s=this.buffers[1],i=s.getContext("2d");this.clearCanvas(i),i.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var a=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(a.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var o=assetLoader.getLumaCanvas(this.canvasContext.canvas),c=o.getContext("2d");c.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(o,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(s,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(s){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!s)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var i=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(i),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(i),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;function CVShapeData(e,s,i,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o=4;s.ty==="rc"?o=5:s.ty==="el"?o=6:s.ty==="sr"&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,s,o,e);var c,g=i.length,_;for(c=0;c<g;c+=1)i[c].closed||(_={transforms:a.addTransformSequence(i[c].transforms),trNodes:[]},this.styledShapes.push(_),i[c].elements.push(_))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,s,i)}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,s){var i={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(s),transforms:[],elements:[],closed:e.hd===!0},a={};if(e.ty==="fl"||e.ty==="st"?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(i.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(i.lc=lineCapEnum[e.lc||2],i.lj=lineJoinEnum[e.lj||2],e.lj==1&&(i.ml=e.ml),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(i.wi=a.w.v),e.d){var o=new DashProperty(this,e.d,"canvas",this);a.d=o,a.d.k||(i.da=a.d.dashArray,i.do=a.d.dashoffset[0])}}else i.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(i),a.style=i,a},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var s={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return s},CVShapeElement.prototype.createShapeElement=function(e){var s=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(s),this.addShapeToModifiers(s),s},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,s=this.itemsData.length;for(e=0;e<s;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),s=this.dynamicProperties.length,e=0;e<s;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var s,i=this.stylesList.length;for(s=0;s<i;s+=1)this.stylesList[s].closed||this.stylesList[s].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s].closed=!0},CVShapeElement.prototype.searchShapes=function(e,s,i,a,o){var c,g=e.length-1,_,b,$=[],et=[],ot,rt,at,it=[].concat(o);for(c=g;c>=0;c-=1){if(ot=this.searchProcessedElement(e[c]),ot?s[c]=i[ot-1]:e[c]._shouldRender=a,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs")ot?s[c].style.closed=!1:s[c]=this.createStyleElement(e[c],it),$.push(s[c].style);else if(e[c].ty==="gr"){if(!ot)s[c]=this.createGroupElement(e[c]);else for(b=s[c].it.length,_=0;_<b;_+=1)s[c].prevViewData[_]=s[c].it[_];this.searchShapes(e[c].it,s[c].it,s[c].prevViewData,a,it)}else e[c].ty==="tr"?(ot||(at=this.createTransformElement(e[c]),s[c]=at),it.push(s[c]),this.addTransformToStyleList(s[c])):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?ot||(s[c]=this.createShapeElement(e[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(ot?(rt=s[c],rt.closed=!1):(rt=ShapeModifiers.getModifier(e[c].ty),rt.init(this,e[c]),s[c]=rt,this.shapeModifiers.push(rt)),et.push(rt)):e[c].ty==="rp"&&(ot?(rt=s[c],rt.closed=!0):(rt=ShapeModifiers.getModifier(e[c].ty),s[c]=rt,rt.init(this,e,c,s),this.shapeModifiers.push(rt),a=!1),et.push(rt));this.addProcessedElement(e[c],c+1)}for(this.removeTransformFromStyleList(),this.closeStyles($),g=et.length,c=0;c<g;c+=1)et[c].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,s){(e._opMdf||s.op._mdf||this._isFirstFrame)&&(s.opacity=e.opacity,s.opacity*=s.op.v,s._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,s=this.stylesList.length,i,a,o,c,g,_,b=this.globalData.renderer,$=this.globalData.canvasContext,et,ot;for(e=0;e<s;e+=1)if(ot=this.stylesList[e],et=ot.type,!((et==="st"||et==="gs")&&ot.wi===0||!ot.data._shouldRender||ot.coOp===0||this.globalData.currentGlobalAlpha===0)){for(b.save(),g=ot.elements,et==="st"||et==="gs"?(b.ctxStrokeStyle(et==="st"?ot.co:ot.grd),b.ctxLineWidth(ot.wi),b.ctxLineCap(ot.lc),b.ctxLineJoin(ot.lj),b.ctxMiterLimit(ot.ml||0)):b.ctxFillStyle(et==="fl"?ot.co:ot.grd),b.ctxOpacity(ot.coOp),et!=="st"&&et!=="gs"&&$.beginPath(),b.ctxTransform(ot.preTransforms.finalTransform.props),a=g.length,i=0;i<a;i+=1){for((et==="st"||et==="gs")&&($.beginPath(),ot.da&&($.setLineDash(ot.da),$.lineDashOffset=ot.do)),_=g[i].trNodes,c=_.length,o=0;o<c;o+=1)_[o].t==="m"?$.moveTo(_[o].p[0],_[o].p[1]):_[o].t==="c"?$.bezierCurveTo(_[o].pts[0],_[o].pts[1],_[o].pts[2],_[o].pts[3],_[o].pts[4],_[o].pts[5]):$.closePath();(et==="st"||et==="gs")&&(b.ctxStroke(),ot.da&&$.setLineDash(this.dashResetter))}et!=="st"&&et!=="gs"&&this.globalData.renderer.ctxFill(ot.r),b.restore()}},CVShapeElement.prototype.renderShape=function(e,s,i,a){var o,c=s.length-1,g;for(g=e,o=c;o>=0;o-=1)s[o].ty==="tr"?(g=i[o].transform,this.renderShapeTransform(e,g)):s[o].ty==="sh"||s[o].ty==="el"||s[o].ty==="rc"||s[o].ty==="sr"?this.renderPath(s[o],i[o]):s[o].ty==="fl"?this.renderFill(s[o],i[o],g):s[o].ty==="st"?this.renderStroke(s[o],i[o],g):s[o].ty==="gf"||s[o].ty==="gs"?this.renderGradientFill(s[o],i[o],g):s[o].ty==="gr"?this.renderShape(g,s[o].it,i[o].it):s[o].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,s){if(this._isFirstFrame||s._mdf||e.transforms._mdf){var i=e.trNodes,a=s.paths,o,c,g,_=a._length;i.length=0;var b=e.transforms.finalTransform;for(g=0;g<_;g+=1){var $=a.shapes[g];if($&&$.v){for(c=$._length,o=1;o<c;o+=1)o===1&&i.push({t:"m",p:b.applyToPointArray($.v[0][0],$.v[0][1],0)}),i.push({t:"c",pts:b.applyToTriplePoints($.o[o-1],$.i[o],$.v[o])});c===1&&i.push({t:"m",p:b.applyToPointArray($.v[0][0],$.v[0][1],0)}),$.c&&c&&(i.push({t:"c",pts:b.applyToTriplePoints($.o[o-1],$.i[0],$.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,s){if(e.hd!==!0&&e._shouldRender){var i,a=s.styledShapes.length;for(i=0;i<a;i+=1)this.renderStyledShape(s.styledShapes[i],s.sh)}},CVShapeElement.prototype.renderFill=function(e,s,i){var a=s.style;(s.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||i._opMdf||this._isFirstFrame)&&(a.coOp=s.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,s,i){var a=s.style,o;if(!a.grd||s.g._mdf||s.s._mdf||s.e._mdf||e.t!==1&&(s.h._mdf||s.a._mdf)){var c=this.globalData.canvasContext,g=s.s.v,_=s.e.v;if(e.t===1)o=c.createLinearGradient(g[0],g[1],_[0],_[1]);else{var b=Math.sqrt(Math.pow(g[0]-_[0],2)+Math.pow(g[1]-_[1],2)),$=Math.atan2(_[1]-g[1],_[0]-g[0]),et=s.h.v;et>=1?et=.99:et<=-1&&(et=-.99);var ot=b*et,rt=Math.cos($+s.a.v)*ot+g[0],at=Math.sin($+s.a.v)*ot+g[1];o=c.createRadialGradient(rt,at,0,g[0],g[1],b)}var it,nt=e.g.p,dt=s.g.c,_e=1;for(it=0;it<nt;it+=1)s.g._hasOpacity&&s.g._collapsable&&(_e=s.g.o[it*2+1]),o.addColorStop(dt[it*4]/100,"rgba("+dt[it*4+1]+","+dt[it*4+2]+","+dt[it*4+3]+","+_e+")");a.grd=o}a.coOp=s.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(e,s,i){var a=s.style,o=s.d;o&&(o._mdf||this._isFirstFrame)&&(a.da=o.dashArray,a.do=o.dashoffset[0]),(s.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||i._opMdf||this._isFirstFrame)&&(a.coOp=s.o.v*i.opacity),(s.w._mdf||this._isFirstFrame)&&(a.wi=s.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,s,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,s,i)}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 s=!1;e.fc?(s=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=s;var i=!1;e.sc&&(i=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var a=this.globalData.fontManager.getFontByName(e.f),o,c,g=e.l,_=this.mHelper;this.stroke=i,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,c=e.finalText.length;var b,$,et,ot,rt,at,it,nt,dt,_e,tt=this.data.singleShape,j=e.tr*.001*e.finalSize,st=0,ut=0,ct=!0,gt=0;for(o=0;o<c;o+=1){b=this.globalData.fontManager.getCharData(e.finalText[o],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),$=b&&b.data||{},_.reset(),tt&&g[o].n&&(st=-j,ut+=e.yOffset,ut+=ct?1:0,ct=!1),rt=$.shapes?$.shapes[0].it:[],it=rt.length,_.scale(e.finalSize/100,e.finalSize/100),tt&&this.applyTextPropertiesToMatrix(e,_,g[o].line,st,ut),dt=createSizedArray(it-1);var mt=0;for(at=0;at<it;at+=1)if(rt[at].ty==="sh"){for(ot=rt[at].ks.k.i.length,nt=rt[at].ks.k,_e=[],et=1;et<ot;et+=1)et===1&&_e.push(_.applyToX(nt.v[0][0],nt.v[0][1],0),_.applyToY(nt.v[0][0],nt.v[0][1],0)),_e.push(_.applyToX(nt.o[et-1][0],nt.o[et-1][1],0),_.applyToY(nt.o[et-1][0],nt.o[et-1][1],0),_.applyToX(nt.i[et][0],nt.i[et][1],0),_.applyToY(nt.i[et][0],nt.i[et][1],0),_.applyToX(nt.v[et][0],nt.v[et][1],0),_.applyToY(nt.v[et][0],nt.v[et][1],0));_e.push(_.applyToX(nt.o[et-1][0],nt.o[et-1][1],0),_.applyToY(nt.o[et-1][0],nt.o[et-1][1],0),_.applyToX(nt.i[0][0],nt.i[0][1],0),_.applyToY(nt.i[0][0],nt.i[0][1],0),_.applyToX(nt.v[0][0],nt.v[0][1],0),_.applyToY(nt.v[0][0],nt.v[0][1],0)),dt[mt]=_e,mt+=1}tt&&(st+=g[o].l,st+=j),this.textSpans[gt]?this.textSpans[gt].elem=dt:this.textSpans[gt]={elem:dt},gt+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.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 s,i,a,o,c,g,_=this.textAnimator.renderedLetters,b=this.textProperty.currentData.l;i=b.length;var $,et=null,ot=null,rt=null,at,it,nt=this.globalData.renderer;for(s=0;s<i;s+=1)if(!b[s].n){if($=_[s],$&&(nt.save(),nt.ctxTransform($.p),nt.ctxOpacity($.o)),this.fill){for($&&$.fc?et!==$.fc&&(nt.ctxFillStyle($.fc),et=$.fc):et!==this.values.fill&&(et=this.values.fill,nt.ctxFillStyle(this.values.fill)),at=this.textSpans[s].elem,o=at.length,this.globalData.canvasContext.beginPath(),a=0;a<o;a+=1)for(it=at[a],g=it.length,this.globalData.canvasContext.moveTo(it[0],it[1]),c=2;c<g;c+=6)this.globalData.canvasContext.bezierCurveTo(it[c],it[c+1],it[c+2],it[c+3],it[c+4],it[c+5]);this.globalData.canvasContext.closePath(),nt.ctxFill()}if(this.stroke){for($&&$.sw?rt!==$.sw&&(rt=$.sw,nt.ctxLineWidth($.sw)):rt!==this.values.sWidth&&(rt=this.values.sWidth,nt.ctxLineWidth(this.values.sWidth)),$&&$.sc?ot!==$.sc&&(ot=$.sc,nt.ctxStrokeStyle($.sc)):ot!==this.values.stroke&&(ot=this.values.stroke,nt.ctxStrokeStyle(this.values.stroke)),at=this.textSpans[s].elem,o=at.length,this.globalData.canvasContext.beginPath(),a=0;a<o;a+=1)for(it=at[a],g=it.length,this.globalData.canvasContext.moveTo(it[0],it[1]),c=2;c<g;c+=6)this.globalData.canvasContext.bezierCurveTo(it[c],it[c+1],it[c+2],it[c+3],it[c+4],it[c+5]);this.globalData.canvasContext.closePath(),nt.ctxStroke()}$&&this.globalData.renderer.restore()}};function CVImageElement(e,s,i){this.assetData=s.getAssetData(e.refId),this.img=s.imageLoader.getAsset(this.assetData),this.initElement(e,s,i)}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 s=e.getContext("2d"),i=this.img.width,a=this.img.height,o=i/a,c=this.assetData.w/this.assetData.h,g,_,b=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>c&&b==="xMidYMid slice"||o<c&&b!=="xMidYMid slice"?(_=a,g=_*c):(g=i,_=g/c),s.drawImage(this.img,(i-g)/2,(a-_)/2,g,_,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};function CVSolidElement(e,s,i){this.initElement(e,s,i)}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)};function CanvasRendererBase(){}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){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||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,s,i,a){this.canvasContext.fillRect(e,s,i,a)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var s=this.animationItem.container.style;s.width="100%",s.height="100%";var i="0px 0px 0px";s.transformOrigin=i,s.mozTransformOrigin=i,s.webkitTransformOrigin=i,s["-webkit-transform"]=i,s.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,s){this.reset();var i,a;e?(i=e,a=s,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=a):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,a=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=a*this.renderConfig.dpr);var o,c;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var g=this.renderConfig.preserveAspectRatio.split(" "),_=g[1]||"meet",b=g[0]||"xMidYMid",$=b.substr(0,4),et=b.substr(4);o=i/a,c=this.transformCanvas.w/this.transformCanvas.h,c>o&&_==="meet"||c<o&&_==="slice"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr)),$==="xMid"&&(c<o&&_==="meet"||c>o&&_==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:$==="xMax"&&(c<o&&_==="meet"||c>o&&_==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(a/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,et==="YMid"&&(c>o&&_==="meet"||c<o&&_==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:et==="YMax"&&(c>o&&_==="meet"||c<o&&_==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,s=this.layers?this.layers.length:0;for(e=s-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,s){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!s||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||s,this.globalData.projectInterface.currentFrame=e;var i,a=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var s=this.elements;if(!(s[e]||this.layers[e].ty===99)){var i=this.createItem(this.layers[e],this,this.globalData);s[e]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};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(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,s=15;for(e=0;e<s;e+=1){var i=new CanvasContext;this.stack[e]=i}this._length=s,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=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,s=0;for(s=this._length;s<e;s+=1)this.stack[s]=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 s=this.stack[this.cArrPos],i=s.transform,a,o=this.cTr.props;for(a=0;a<16;a+=1)o[a]=i[a];if(e){this.nativeContext.restore();var c=this.stack[this.cArrPos+1];this.appliedFillStyle=c.fillStyle,this.appliedStrokeStyle=c.strokeStyle,this.appliedLineWidth=c.lineWidth,this.appliedLineCap=c.lineCap,this.appliedLineJoin=c.lineJoin,this.appliedMiterLimit=c.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||s.opacity!==-1&&this.currentOpacity!==s.opacity)&&(this.nativeContext.globalAlpha=s.opacity,this.currentOpacity=s.opacity),this.currentFillStyle=s.fillStyle,this.currentStrokeStyle=s.strokeStyle,this.currentLineWidth=s.lineWidth,this.currentLineCap=s.lineCap,this.currentLineJoin=s.lineJoin,this.currentMiterLimit=s.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var s=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i=this.stack[this.cArrPos],a;for(a=0;a<16;a+=1)i.transform[a]=s[a];this.cArrPos+=1;var o=this.stack[this.cArrPos];o.opacity=i.opacity,o.fillStyle=i.fillStyle,o.strokeStyle=i.strokeStyle,o.lineWidth=i.lineWidth,o.lineCap=i.lineCap,o.lineJoin=i.lineJoin,o.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 s=this.cTr;this.transformMat.multiply(s),s.cloneFromProps(this.transformMat.props);var i=s.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(e){var s=this.stack[this.cArrPos].opacity;s*=e<0?0:e,this.stack[this.cArrPos].opacity!==s&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=s)},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,s,i,a){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,s,i,a)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,s,i){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var s,i=this.layers.length;for(s=i-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()},CVCompElement.prototype.destroy=function(){var e,s=this.layers.length;for(e=s-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)};function CanvasRenderer(e,s){this.animationItem=e,this.renderConfig={clearCanvas:s&&s.clearCanvas!==void 0?s.clearCanvas:!0,context:s&&s.context||null,progressiveLoad:s&&s.progressiveLoad||!1,preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",className:s&&s.className||"",id:s&&s.id||"",runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.renderConfig.dpr=s&&s.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=s&&s.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))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}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),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var s=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var i=this.finalTransform.mat.toCSS();s.transform=i,s.webkitTransform=i}this.finalTransform._opMdf&&(s.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;function HSolidElement(e,s,i){this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.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"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,s,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}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 s=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",s.w),e.setAttribute("height",s.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,s){var i,a=e.length;for(i=0;i<a;i+=1)s=e[i].mProps.v.applyToPointArray(s[0],s[1],0);return s},HShapeElement.prototype.calculateShapeBoundingBox=function(e,s){var i=e.sh.v,a=e.transformers,o,c=i._length,g,_,b,$;if(!(c<=1)){for(o=0;o<c-1;o+=1)g=this.getTransformedPoint(a,i.v[o]),_=this.getTransformedPoint(a,i.o[o]),b=this.getTransformedPoint(a,i.i[o+1]),$=this.getTransformedPoint(a,i.v[o+1]),this.checkBounds(g,_,b,$,s);i.c&&(g=this.getTransformedPoint(a,i.v[o]),_=this.getTransformedPoint(a,i.o[o]),b=this.getTransformedPoint(a,i.i[0]),$=this.getTransformedPoint(a,i.v[0]),this.checkBounds(g,_,b,$,s))}},HShapeElement.prototype.checkBounds=function(e,s,i,a,o){this.getBoundsOfCurve(e,s,i,a);var c=this.shapeBoundingBox;o.x=bmMin(c.left,o.x),o.xMax=bmMax(c.right,o.xMax),o.y=bmMin(c.top,o.y),o.yMax=bmMax(c.bottom,o.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,s,i,a){for(var o=[[e[0],a[0]],[e[1],a[1]]],c,g,_,b,$,et,ot,rt=0;rt<2;++rt)g=6*e[rt]-12*s[rt]+6*i[rt],c=-3*e[rt]+9*s[rt]-9*i[rt]+3*a[rt],_=3*s[rt]-3*e[rt],g|=0,c|=0,_|=0,c===0&&g===0||(c===0?(b=-_/g,b>0&&b<1&&o[rt].push(this.calculateF(b,e,s,i,a,rt))):($=g*g-4*_*c,$>=0&&(et=(-g+bmSqrt($))/(2*c),et>0&&et<1&&o[rt].push(this.calculateF(et,e,s,i,a,rt)),ot=(-g-bmSqrt($))/(2*c),ot>0&&ot<1&&o[rt].push(this.calculateF(ot,e,s,i,a,rt)))));this.shapeBoundingBox.left=bmMin.apply(null,o[0]),this.shapeBoundingBox.top=bmMin.apply(null,o[1]),this.shapeBoundingBox.right=bmMax.apply(null,o[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,o[1])},HShapeElement.prototype.calculateF=function(e,s,i,a,o,c){return bmPow(1-e,3)*s[c]+3*bmPow(1-e,2)*e*i[c]+3*(1-e)*bmPow(e,2)*a[c]+bmPow(e,3)*o[c]},HShapeElement.prototype.calculateBoundingBox=function(e,s){var i,a=e.length;for(i=0;i<a;i+=1)e[i]&&e[i].sh?this.calculateShapeBoundingBox(e[i],s):e[i]&&e[i].it?this.calculateBoundingBox(e[i].it,s):e[i]&&e[i].style&&e[i].w&&this.expandStrokeBoundingBox(e[i].w,s)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,s){var i=0;if(e.keyframes){for(var a=0;a<e.keyframes.length;a+=1){var o=e.keyframes[a].s;o>i&&(i=o)}i*=e.mult}else i=e.v*e.mult;s.x-=i,s.xMax+=i,s.y-=i,s.yMax+=i},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,s=999999;if(e.x=s,e.xMax=-s,e.y=s,e.yMax=-s,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 i=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),i=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),i=!0),i||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var a=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=o,a.webkitTransform=o}}};function HTextElement(e,s,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var s=this.innerElem.style,i=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";s.fill=i,s.color=i,e.sc&&(s.stroke=this.buildColor(e.sc),s.strokeWidth=e.sw+"px");var a=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(s.fontSize=e.finalSize+"px",s.lineHeight=e.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{s.fontFamily=a.fFamily;var o=e.fWeight,c=e.fStyle;s.fontStyle=c,s.fontWeight=o}var g,_,b=e.l;_=b.length;var $,et,ot,rt=this.mHelper,at,it="",nt=0;for(g=0;g<_;g+=1){if(this.globalData.fontManager.chars?(this.textPaths[nt]?$=this.textPaths[nt]:($=createNS("path"),$.setAttribute("stroke-linecap",lineCapEnum[1]),$.setAttribute("stroke-linejoin",lineJoinEnum[2]),$.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[nt]?(et=this.textSpans[nt],ot=et.children[0]):(et=createTag("div"),et.style.lineHeight=0,ot=createNS("svg"),ot.appendChild($),styleDiv(et)))):this.isMasked?$=this.textPaths[nt]?this.textPaths[nt]:createNS("text"):this.textSpans[nt]?(et=this.textSpans[nt],$=this.textPaths[nt]):(et=createTag("span"),styleDiv(et),$=createTag("span"),styleDiv($),et.appendChild($)),this.globalData.fontManager.chars){var dt=this.globalData.fontManager.getCharData(e.finalText[g],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),_e;if(dt?_e=dt.data:_e=null,rt.reset(),_e&&_e.shapes&&_e.shapes.length&&(at=_e.shapes[0].it,rt.scale(e.finalSize/100,e.finalSize/100),it=this.createPathShape(rt,at),$.setAttribute("d",it)),this.isMasked)this.innerElem.appendChild($);else{if(this.innerElem.appendChild(et),_e&&_e.shapes){document.body.appendChild(ot);var tt=ot.getBBox();ot.setAttribute("width",tt.width+2),ot.setAttribute("height",tt.height+2),ot.setAttribute("viewBox",tt.x-1+" "+(tt.y-1)+" "+(tt.width+2)+" "+(tt.height+2));var j=ot.style,st="translate("+(tt.x-1)+"px,"+(tt.y-1)+"px)";j.transform=st,j.webkitTransform=st,b[g].yOffset=tt.y-1}else ot.setAttribute("width",1),ot.setAttribute("height",1);et.appendChild(ot)}}else if($.textContent=b[g].val,$.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild($);else{this.innerElem.appendChild(et);var ut=$.style,ct="translate3d(0,"+-e.finalSize/1.2+"px,0)";ut.transform=ct,ut.webkitTransform=ct}this.isMasked?this.textSpans[nt]=$:this.textSpans[nt]=et,this.textSpans[nt].style.display="block",this.textPaths[nt]=$,nt+=1}for(;nt<this.textSpans.length;)this.textSpans[nt].style.display="none",nt+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var s="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=s,e.webkitTransform=s}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var i,a,o=0,c=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;a=g.length;var _,b,$;for(i=0;i<a;i+=1)g[i].n?o+=1:(b=this.textSpans[i],$=this.textPaths[i],_=c[o],o+=1,_._mdf.m&&(this.isMasked?b.setAttribute("transform",_.m):(b.style.webkitTransform=_.m,b.style.transform=_.m)),b.style.opacity=_.o,_.sw&&_._mdf.sw&&$.setAttribute("stroke-width",_.sw),_.sc&&_._mdf.sc&&$.setAttribute("stroke",_.sc),_.fc&&_._mdf.fc&&($.setAttribute("fill",_.fc),$.style.color=_.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var et=this.innerElem.getBBox();this.currentBBox.w!==et.width&&(this.currentBBox.w=et.width,this.svgElement.setAttribute("width",et.width)),this.currentBBox.h!==et.height&&(this.currentBBox.h=et.height,this.svgElement.setAttribute("height",et.height));var ot=1;if(this.currentBBox.w!==et.width+ot*2||this.currentBBox.h!==et.height+ot*2||this.currentBBox.x!==et.x-ot||this.currentBBox.y!==et.y-ot){this.currentBBox.w=et.width+ot*2,this.currentBBox.h=et.height+ot*2,this.currentBBox.x=et.x-ot,this.currentBBox.y=et.y-ot,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var rt="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=rt,e.webkitTransform=rt}}}};function HCameraElement(e,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var o,c=e.ks.or.k.length;for(o=0;o<c;o+=1)e.ks.or.k[o].to=null,e.ks.or.k[o].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,s=this.comp.threeDElements.length,i,a,o;for(e=0;e<s;e+=1)if(i=this.comp.threeDElements[e],i.type==="3d"){a=i.perspectiveElem.style,o=i.container.style;var c=this.pe.v+"px",g="0px 0px 0px",_="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.perspective=c,a.webkitPerspective=c,o.transformOrigin=g,o.mozTransformOrigin=g,o.webkitTransformOrigin=g,a.transform=_,a.webkitTransform=_}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,s,i;if(this.hierarchy)for(i=this.hierarchy.length,s=0;s<i;s+=1)e=this.hierarchy[s].finalTransform.mProp._mdf||e;if(e||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(i=this.hierarchy.length-1,s=i;s>=0;s-=1){var a=this.hierarchy[s].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var o;this.p?o=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:o=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var c=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),g=[o[0]/c,o[1]/c,o[2]/c],_=Math.sqrt(g[2]*g[2]+g[0]*g[0]),b=Math.atan2(g[1],_),$=Math.atan2(g[0],-g[2]);this.mat.rotateY($).rotateX(-b)}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 et=!this._prevMat.equals(this.mat);if((et||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var ot,rt,at;for(s=0;s<i;s+=1)if(ot=this.comp.threeDElements[s],ot.type==="3d"){if(et){var it=this.mat.toCSS();at=ot.container.style,at.transform=it,at.webkitTransform=it}this.pe._mdf&&(rt=ot.perspectiveElem.style,rt.perspective=this.pe.v+"px",rt.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};function HImageElement(e,s,i){this.assetData=s.getAssetData(e.refId),this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),s=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(s),s.crossOrigin="anonymous",s.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,s){var i=e.getBaseElement();if(i){var a=this.layers[s];if(!a.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(i,s);else{for(var o=0,c,g,_;o<s;)this.elements[o]&&this.elements[o]!==!0&&this.elements[o].getBaseElement&&(g=this.elements[o],_=this.layers[o].ddd?this.getThreeDContainerByPos(o):g.getBaseElement(),c=_||c),o+=1;c?(!a.ddd||!this.supports3d)&&this.layerElement.insertBefore(i,c):(!a.ddd||!this.supports3d)&&this.layerElement.appendChild(i)}else this.addTo3dContainer(i,s)}},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 s=0,i=this.threeDElements.length;s<i;){if(this.threeDElements[s].startPos<=e&&this.threeDElements[s].endPos>=e)return this.threeDElements[s].perspectiveElem;s+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,s){var i=createTag("div"),a,o;styleDiv(i);var c=createTag("div");if(styleDiv(c),s==="3d"){a=i.style,a.width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px";var g="50% 50%";a.webkitTransformOrigin=g,a.mozTransformOrigin=g,a.transformOrigin=g,o=c.style;var _="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";o.transform=_,o.webkitTransform=_}i.appendChild(c);var b={container:c,perspectiveElem:i,startPos:e,endPos:e,type:s};return this.threeDElements.push(b),b},HybridRendererBase.prototype.build3dContainers=function(){var e,s=this.layers.length,i,a="";for(e=0;e<s;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(a!=="3d"&&(a="3d",i=this.createThreeDContainer(e,"3d")),i.endPos=Math.max(i.endPos,e)):(a!=="2d"&&(a="2d",i=this.createThreeDContainer(e,"2d")),i.endPos=Math.max(i.endPos,e));for(s=this.threeDElements.length,e=s-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,s){for(var i=0,a=this.threeDElements.length;i<a;){if(s<=this.threeDElements[i].endPos){for(var o=this.threeDElements[i].startPos,c;o<s;)this.elements[o]&&this.elements[o].getBaseElement&&(c=this.elements[o].getBaseElement()),o+=1;c?this.threeDElements[i].container.insertBefore(e,c):this.threeDElements[i].container.appendChild(e);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(e){var s=createTag("div"),i=this.animationItem.wrapper,a=s.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=s,styleDiv(s),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&s.setAttribute("class",this.renderConfig.className),i.appendChild(s),a.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var c=createNS("defs");o.appendChild(c),this.data=e,this.setupGlobalData(e,o),this.globalData.defs=c,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,s=this.layers?this.layers.length:0;for(e=0;e<s;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=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,i=e/s,a=this.globalData.compSize.w/this.globalData.compSize.h,o,c,g,_;a>i?(o=e/this.globalData.compSize.w,c=e/this.globalData.compSize.w,g=0,_=(s-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(o=s/this.globalData.compSize.h,c=s/this.globalData.compSize.h,g=(e-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,_=0);var b=this.resizerElem.style;b.webkitTransform="matrix3d("+o+",0,0,0,0,"+c+",0,0,0,0,1,0,"+g+","+_+",0,1)",b.transform=b.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=this.globalData.compSize.w,s=this.globalData.compSize.h,i,a=this.threeDElements.length;for(i=0;i<a;i+=1){var o=this.threeDElements[i].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(s,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var s,i=e.length,a=createTag("div");for(s=0;s<i;s+=1)if(e[s].xt){var o=this.createComp(e[s],a,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}};function HCompElement(e,s,i){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0}}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,s){for(var i=0,a;i<s;)this.elements[i]&&this.elements[i].getBaseElement&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(e,a):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.filterSize.y||"-100%"},runExpressions:!s||s.runExpressions===void 0||s.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"}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(){return function(e){function s(i){for(var a=0,o=e.layers.length;a<o;){if(e.layers[a].nm===i||e.layers[a].ind===i)return e.elements[a].layerInterface;a+=1}return null}return Object.defineProperty(s,"_name",{value:e.data.nm}),s.layer=s,s.pixelAspect=1,s.height=e.data.h||e.globalData.compSize.h,s.width=e.data.w||e.globalData.compSize.w,s.pixelAspect=1,s.frameDuration=1/e.globalData.frameRate,s.displayStartTime=0,s.numLayers=e.layers.length,s}}();function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$2(e)}function seedRandom(e,s){var i=this,a=256,o=6,c=52,g="random",_=s.pow(a,o),b=s.pow(2,c),$=b*2,et=a-1,ot;function rt(j,st,ut){var ct=[];st=st===!0?{entropy:!0}:st||{};var gt=dt(nt(st.entropy?[j,tt(e)]:j===null?_e():j,3),ct),mt=new at(ct),_t=function(){for(var wt=mt.g(o),Et=_,Tt=0;wt<b;)wt=(wt+Tt)*a,Et*=a,Tt=mt.g(1);for(;wt>=$;)wt/=2,Et/=2,Tt>>>=1;return(wt+Tt)/Et};return _t.int32=function(){return mt.g(4)|0},_t.quick=function(){return mt.g(4)/4294967296},_t.double=_t,dt(tt(mt.S),e),(st.pass||ut||function(kt,wt,Et,Tt){return Tt&&(Tt.S&&it(Tt,mt),kt.state=function(){return it(mt,{})}),Et?(s[g]=kt,wt):kt})(_t,gt,"global"in st?st.global:this==s,st.state)}s["seed"+g]=rt;function at(j){var st,ut=j.length,ct=this,gt=0,mt=ct.i=ct.j=0,_t=ct.S=[];for(ut||(j=[ut++]);gt<a;)_t[gt]=gt++;for(gt=0;gt<a;gt++)_t[gt]=_t[mt=et&mt+j[gt%ut]+(st=_t[gt])],_t[mt]=st;ct.g=function(kt){for(var wt,Et=0,Tt=ct.i,Lt=ct.j,xt=ct.S;kt--;)wt=xt[Tt=et&Tt+1],Et=Et*a+xt[et&(xt[Tt]=xt[Lt=et&Lt+wt])+(xt[Lt]=wt)];return ct.i=Tt,ct.j=Lt,Et}}function it(j,st){return st.i=j.i,st.j=j.j,st.S=j.S.slice(),st}function nt(j,st){var ut=[],ct=_typeof$2(j),gt;if(st&&ct=="object")for(gt in j)try{ut.push(nt(j[gt],st-1))}catch{}return ut.length?ut:ct=="string"?j:j+"\0"}function dt(j,st){for(var ut=j+"",ct,gt=0;gt<ut.length;)st[et&gt]=et&(ct^=st[et&gt]*19)+ut.charCodeAt(gt++);return tt(st)}function _e(){try{var j=new Uint8Array(a);return(i.crypto||i.msCrypto).getRandomValues(j),tt(j)}catch{var st=i.navigator,ut=st&&st.plugins;return[+new Date,i,ut,i.screen,tt(e)]}}function tt(j){return String.fromCharCode.apply(0,j)}dt(s.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,s){return e==="number"||s instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var s=_typeof$1(e);if(s==="number"||e instanceof Number||s==="boolean")return-e;if($bm_isInstanceOfArray(e)){var i,a=e.length,o=[];for(i=0;i<a;i+=1)o[i]=-e[i];return o}return e.propType?e.v:-e}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,s){var i=_typeof$1(e),a=_typeof$1(s);if(isNumerable(i,e)&&isNumerable(a,s)||i==="string"||a==="string")return e+s;if($bm_isInstanceOfArray(e)&&isNumerable(a,s))return e=e.slice(0),e[0]+=s,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=e+s[0],s;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(s)){for(var o=0,c=e.length,g=s.length,_=[];o<c||o<g;)(typeof e[o]=="number"||e[o]instanceof Number)&&(typeof s[o]=="number"||s[o]instanceof Number)?_[o]=e[o]+s[o]:_[o]=s[o]===void 0?e[o]:e[o]||s[o],o+=1;return _}return 0}var add=sum;function sub(e,s){var i=_typeof$1(e),a=_typeof$1(s);if(isNumerable(i,e)&&isNumerable(a,s))return i==="string"&&(e=parseInt(e,10)),a==="string"&&(s=parseInt(s,10)),e-s;if($bm_isInstanceOfArray(e)&&isNumerable(a,s))return e=e.slice(0),e[0]-=s,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=e-s[0],s;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(s)){for(var o=0,c=e.length,g=s.length,_=[];o<c||o<g;)(typeof e[o]=="number"||e[o]instanceof Number)&&(typeof s[o]=="number"||s[o]instanceof Number)?_[o]=e[o]-s[o]:_[o]=s[o]===void 0?e[o]:e[o]||s[o],o+=1;return _}return 0}function mul(e,s){var i=_typeof$1(e),a=_typeof$1(s),o;if(isNumerable(i,e)&&isNumerable(a,s))return e*s;var c,g;if($bm_isInstanceOfArray(e)&&isNumerable(a,s)){for(g=e.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e[c]*s;return o}if(isNumerable(i,e)&&$bm_isInstanceOfArray(s)){for(g=s.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e*s[c];return o}return 0}function div(e,s){var i=_typeof$1(e),a=_typeof$1(s),o;if(isNumerable(i,e)&&isNumerable(a,s))return e/s;var c,g;if($bm_isInstanceOfArray(e)&&isNumerable(a,s)){for(g=e.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e[c]/s;return o}if(isNumerable(i,e)&&$bm_isInstanceOfArray(s)){for(g=s.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e/s[c];return o}return 0}function mod(e,s){return typeof e=="string"&&(e=parseInt(e,10)),typeof s=="string"&&(s=parseInt(s,10)),e%s}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,s,i){if(s>i){var a=i;i=s,s=a}return Math.min(Math.max(e,s),i)}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,s){if(typeof e=="number"||e instanceof Number)return s=s||0,Math.abs(e-s);s||(s=helperLengthArray);var i,a=Math.min(e.length,s.length),o=0;for(i=0;i<a;i+=1)o+=Math.pow(s[i]-e[i],2);return Math.sqrt(o)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var s=e[0],i=e[1],a=e[2],o=Math.max(s,i,a),c=Math.min(s,i,a),g,_,b=(o+c)/2;if(o===c)g=0,_=0;else{var $=o-c;switch(_=b>.5?$/(2-o-c):$/(o+c),o){case s:g=(i-a)/$+(i<a?6:0);break;case i:g=(a-s)/$+2;break;case a:g=(s-i)/$+4;break}g/=6}return[g,_,b,e[3]]}function hue2rgb(e,s,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(s-e)*6*i:i<1/2?s:i<2/3?e+(s-e)*(2/3-i)*6:e}function hslToRgb(e){var s=e[0],i=e[1],a=e[2],o,c,g;if(i===0)o=a,g=a,c=a;else{var _=a<.5?a*(1+i):a+i-a*i,b=2*a-_;o=hue2rgb(b,_,s+1/3),c=hue2rgb(b,_,s),g=hue2rgb(b,_,s-1/3)}return[o,c,g,e[3]]}function linear(e,s,i,a,o){if((a===void 0||o===void 0)&&(a=s,o=i,s=0,i=1),i<s){var c=i;i=s,s=c}if(e<=s)return a;if(e>=i)return o;var g=i===s?0:(e-s)/(i-s);if(!a.length)return a+(o-a)*g;var _,b=a.length,$=createTypedArray("float32",b);for(_=0;_<b;_+=1)$[_]=a[_]+(o[_]-a[_])*g;return $}function random(e,s){if(s===void 0&&(e===void 0?(e=0,s=1):(s=e,e=void 0)),s.length){var i,a=s.length;e||(e=createTypedArray("float32",a));var o=createTypedArray("float32",a),c=BMMath.random();for(i=0;i<a;i+=1)o[i]=e[i]+c*(s[i]-e[i]);return o}e===void 0&&(e=0);var g=BMMath.random();return e+g*(s-e)}function createPath(e,s,i,a){var o,c=e.length,g=shapePool.newElement();g.setPathData(!!a,c);var _=[0,0],b,$;for(o=0;o<c;o+=1)b=s&&s[o]?s[o]:_,$=i&&i[o]?i[o]:_,g.setTripleAt(e[o][0],e[o][1],$[0]+e[o][0],$[1]+e[o][1],b[0]+e[o][0],b[1]+e[o][1],o,!0);return g}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=val.indexOf("random")!==-1,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||this.data.hd!==!0,wiggle=(function e(s,i){var a,o,c=this.pv.length?this.pv.length:1,g=createTypedArray("float32",c);s=5;var _=Math.floor(time*s);for(a=0,o=0;a<_;){for(o=0;o<c;o+=1)g[o]+=-i+i*2*BMMath.random();a+=1}var b=time*s,$=b-Math.floor(b),et=createTypedArray("float32",c);if(c>1){for(o=0;o<c;o+=1)et[o]=this.pv[o]+g[o]+(-i+i*2*BMMath.random())*$;return et}return this.pv+g[0]+(-i+i*2*BMMath.random())*$}).bind(this);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));function loopInDuration(e,s){return loopIn(e,s,!0)}function loopOutDuration(e,s){return loopOut(e,s,!0)}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);function lookAt(e,s){var i=[s[0]-e[0],s[1]-e[1],s[2]-e[2]],a=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads,o=-Math.atan2(i[1],i[2])/degToRads;return[o,a,0]}function easeOut(e,s,i,a,o){return applyEase(easeOutBez,e,s,i,a,o)}function easeIn(e,s,i,a,o){return applyEase(easeInBez,e,s,i,a,o)}function ease(e,s,i,a,o){return applyEase(easeInOutBez,e,s,i,a,o)}function applyEase(e,s,i,a,o,c){o===void 0?(o=i,c=a):s=(s-i)/(a-i),s>1?s=1:s<0&&(s=0);var g=e(s);if($bm_isInstanceOfArray(o)){var _,b=o.length,$=createTypedArray("float32",b);for(_=0;_<b;_+=1)$[_]=(c[_]-o[_])*g+o[_];return $}return(c-o)*g+o}function nearestKey(e){var s,i=data.k.length,a,o;if(!data.k.length||typeof data.k[0]=="number")a=0,o=0;else if(a=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)a=1,o=data.k[0].t;else{for(s=0;s<i-1;s+=1)if(e===data.k[s].t){a=s+1,o=data.k[s].t;break}else if(e>data.k[s].t&&e<data.k[s+1].t){e-data.k[s].t>data.k[s+1].t-e?(a=s+2,o=data.k[s+1].t):(a=s+1,o=data.k[s].t);break}a===-1&&(a=s+1,o=data.k[s].t)}var c={};return c.index=a,c.time=o/elem.comp.globalData.frameRate,c}function key(e){var s,i,a;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,s={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=o.length,i=0;i<a;i+=1)s[i]=o[i],s.value[i]=o[i];return s}function framesToTime(e,s){return s||(s=elem.comp.globalData.frameRate),e/s}function timeToFrames(e,s){return!e&&e!==0&&(e=time),s||(s=elem.comp.globalData.frameRate),e*s}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,s){return typeof value=="string"?s===void 0?value.substring(e):value.substring(e,s):""}function substr(e,s){return typeof value=="string"?s===void 0?value.substr(e):value.substr(e,s):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(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)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!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,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={};e.initExpressions=s,e.resetFrame=ExpressionManager.resetFrame;function s(i){var a=0,o=[];function c(){a+=1}function g(){a-=1,a===0&&b()}function _($){o.indexOf($)===-1&&o.push($)}function b(){var $,et=o.length;for($=0;$<et;$+=1)o[$].release();o.length=0}i.renderer.compInterface=CompExpressionInterface(i.renderer),i.renderer.globalData.projectInterface.registerComposition(i.renderer),i.renderer.globalData.pushExpression=c,i.renderer.globalData.popExpression=g,i.renderer.globalData.registerExpressionProperty=_}return e}(),MaskManagerInterface=function(){function e(i,a){this._mask=i,this._data=a}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(),this._mask.op.v*100}});var s=function(a){var o=createSizedArray(a.viewData.length),c,g=a.viewData.length;for(c=0;c<g;c+=1)o[c]=new e(a.viewData[c],a.masksProperties[c]);var _=function($){for(c=0;c<g;){if(a.masksProperties[c].nm===$)return o[c];c+=1}return null};return _};return s}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},s={pv:[0,0,0],v:[0,0,0],mult:1};function i(g,_,b){Object.defineProperty(g,"velocity",{get:function(){return _.getVelocityAtTime(_.comp.currentFrame)}}),g.numKeys=_.keyframes?_.keyframes.length:0,g.key=function($){if(!g.numKeys)return 0;var et="";"s"in _.keyframes[$-1]?et=_.keyframes[$-1].s:"e"in _.keyframes[$-2]?et=_.keyframes[$-2].e:et=_.keyframes[$-2].s;var ot=b==="unidimensional"?new Number(et):Object.assign({},et);return ot.time=_.keyframes[$-1].t/_.elem.comp.globalData.frameRate,ot.value=b==="unidimensional"?et[0]:et,ot},g.valueAtTime=_.getValueAtTime,g.speedAtTime=_.getSpeedAtTime,g.velocityAtTime=_.getVelocityAtTime,g.propertyGroup=_.propertyGroup}function a(g){(!g||!("pv"in g))&&(g=e);var _=1/g.mult,b=g.pv*_,$=new Number(b);return $.value=b,i($,g,"unidimensional"),function(){return g.k&&g.getValue(),b=g.v*_,$.value!==b&&($=new Number(b),$.value=b,$[0]=b,i($,g,"unidimensional")),$}}function o(g){(!g||!("pv"in g))&&(g=s);var _=1/g.mult,b=g.data&&g.data.l||g.pv.length,$=createTypedArray("float32",b),et=createTypedArray("float32",b);return $.value=et,i($,g,"multidimensional"),function(){g.k&&g.getValue();for(var ot=0;ot<b;ot+=1)et[ot]=g.v[ot]*_,$[ot]=et[ot];return $}}function c(){return e}return function(g){return g?g.propType==="unidimensional"?a(g):o(g):c}}(),TransformExpressionInterface=function(){return function(e){function s(g){switch(g){case"scale":case"Scale":case"ADBE Scale":case 6:return s.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return s.rotation;case"ADBE Rotate X":return s.xRotation;case"ADBE Rotate Y":return s.yRotation;case"position":case"Position":case"ADBE Position":case 2:return s.position;case"ADBE Position_0":return s.xPosition;case"ADBE Position_1":return s.yPosition;case"ADBE Position_2":return s.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return s.anchorPoint;case"opacity":case"Opacity":case 11:return s.opacity;default:return null}}Object.defineProperty(s,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(s,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(s,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(s,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(s,"scale",{get:ExpressionPropertyInterface(e.s)});var i,a,o,c;return e.p?c=ExpressionPropertyInterface(e.p):(i=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(o=ExpressionPropertyInterface(e.pz))),Object.defineProperty(s,"position",{get:function(){return e.p?c():[i(),a(),o?o():0]}}),Object.defineProperty(s,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(s,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(s,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(s,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(s,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(s,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(s,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(s,"orientation",{get:ExpressionPropertyInterface(e.or)}),s}}(),LayerExpressionInterface=function(){function e($){var et=new Matrix;if($!==void 0){var ot=this._elem.finalTransform.mProp.getValueAtTime($);ot.clone(et)}else{var rt=this._elem.finalTransform.mProp;rt.applyToMatrix(et)}return et}function s($,et){var ot=this.getMatrix(et);return ot.props[12]=0,ot.props[13]=0,ot.props[14]=0,this.applyPoint(ot,$)}function i($,et){var ot=this.getMatrix(et);return this.applyPoint(ot,$)}function a($,et){var ot=this.getMatrix(et);return ot.props[12]=0,ot.props[13]=0,ot.props[14]=0,this.invertPoint(ot,$)}function o($,et){var ot=this.getMatrix(et);return this.invertPoint(ot,$)}function c($,et){if(this._elem.hierarchy&&this._elem.hierarchy.length){var ot,rt=this._elem.hierarchy.length;for(ot=0;ot<rt;ot+=1)this._elem.hierarchy[ot].finalTransform.mProp.applyToMatrix($)}return $.applyToPointArray(et[0],et[1],et[2]||0)}function g($,et){if(this._elem.hierarchy&&this._elem.hierarchy.length){var ot,rt=this._elem.hierarchy.length;for(ot=0;ot<rt;ot+=1)this._elem.hierarchy[ot].finalTransform.mProp.applyToMatrix($)}return $.inversePoint(et)}function _($){var et=new Matrix;if(et.reset(),this._elem.finalTransform.mProp.applyToMatrix(et),this._elem.hierarchy&&this._elem.hierarchy.length){var ot,rt=this._elem.hierarchy.length;for(ot=0;ot<rt;ot+=1)this._elem.hierarchy[ot].finalTransform.mProp.applyToMatrix(et);return et.inversePoint($)}return et.inversePoint($)}function b(){return[1,1,1,1]}return function($){var et;function ot(nt){at.mask=new MaskManagerInterface(nt,$)}function rt(nt){at.effect=nt}function at(nt){switch(nt){case"ADBE Root Vectors Group":case"Contents":case 2:return at.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return et;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return at.effect;case"ADBE Text Properties":return at.textInterface;default:return null}}at.getMatrix=e,at.invertPoint=g,at.applyPoint=c,at.toWorld=i,at.toWorldVec=s,at.fromWorld=o,at.fromWorldVec=a,at.toComp=i,at.fromComp=_,at.sampleImage=b,at.sourceRectAtTime=$.sourceRectAtTime.bind($),at._elem=$,et=TransformExpressionInterface($.finalTransform.mProp);var it=getDescriptor(et,"anchorPoint");return Object.defineProperties(at,{hasParent:{get:function(){return $.hierarchy.length}},parent:{get:function(){return $.hierarchy[0].layerInterface}},rotation:getDescriptor(et,"rotation"),scale:getDescriptor(et,"scale"),position:getDescriptor(et,"position"),opacity:getDescriptor(et,"opacity"),anchorPoint:it,anchor_point:it,transform:{get:function(){return et}},active:{get:function(){return $.isInRange}}}),at.startTime=$.data.st,at.index=$.data.ind,at.source=$.data.refId,at.height=$.data.ty===0?$.data.h:100,at.width=$.data.ty===0?$.data.w:100,at.inPoint=$.data.ip/$.comp.globalData.frameRate,at.outPoint=$.data.op/$.comp.globalData.frameRate,at._name=$.data.nm,at.registerMaskInterface=ot,at.registerEffectsInterface=rt,at}}(),propertyGroupFactory=function(){return function(e,s){return function(i){return i=i===void 0?1:i,i<=0?e:s(i-1)}}}(),PropertyInterface=function(){return function(e,s){var i={_name:e};function a(o){return o=o===void 0?1:o,o<=0?i:s(o-1)}return a}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:s};function s(o,c){if(o.effectsManager){var g=[],_=o.data.ef,b,$=o.effectsManager.effectElements.length;for(b=0;b<$;b+=1)g.push(i(_[b],o.effectsManager.effectElements[b],c,o));var et=o.data.ef||[],ot=function(at){for(b=0,$=et.length;b<$;){if(at===et[b].nm||at===et[b].mn||at===et[b].ix)return g[b];b+=1}return null};return Object.defineProperty(ot,"numProperties",{get:function(){return et.length}}),ot}return null}function i(o,c,g,_){function b(at){for(var it=o.ef,nt=0,dt=it.length;nt<dt;){if(at===it[nt].nm||at===it[nt].mn||at===it[nt].ix)return it[nt].ty===5?et[nt]:et[nt]();nt+=1}throw new Error}var $=propertyGroupFactory(b,g),et=[],ot,rt=o.ef.length;for(ot=0;ot<rt;ot+=1)o.ef[ot].ty===5?et.push(i(o.ef[ot],c.effectElements[ot],c.effectElements[ot].propertyGroup,_)):et.push(a(c.effectElements[ot],o.ef[ot].ty,_,$));return o.mn==="ADBE Color Control"&&Object.defineProperty(b,"color",{get:function(){return et[0]()}}),Object.defineProperties(b,{numProperties:{get:function(){return o.np}},_name:{value:o.nm},propertyGroup:{value:$}}),b.enabled=o.en!==0,b.active=b.enabled,b}function a(o,c,g,_){var b=ExpressionPropertyInterface(o.p);function $(){return c===10?g.comp.compInterface(o.p.v):b()}return o.p.setGroupProperty&&o.p.setGroupProperty(PropertyInterface("",_)),$}return e}(),ShapePathInterface=function(){return function(s,i,a){var o=i.sh;function c(_){return _==="Shape"||_==="shape"||_==="Path"||_==="path"||_==="ADBE Vector Shape"||_===2?c.path:null}var g=propertyGroupFactory(c,a);return o.setGroupProperty(PropertyInterface("Path",g)),Object.defineProperties(c,{path:{get:function(){return o.k&&o.getValue(),o}},shape:{get:function(){return o.k&&o.getValue(),o}},_name:{value:s.nm},ix:{value:s.ix},propertyIndex:{value:s.ix},mn:{value:s.mn},propertyGroup:{value:a}}),c}}(),ShapeExpressionInterface=function(){function e(it,nt,dt){var _e=[],tt,j=it?it.length:0;for(tt=0;tt<j;tt+=1)it[tt].ty==="gr"?_e.push(i(it[tt],nt[tt],dt)):it[tt].ty==="fl"?_e.push(a(it[tt],nt[tt],dt)):it[tt].ty==="st"?_e.push(g(it[tt],nt[tt],dt)):it[tt].ty==="tm"?_e.push(_(it[tt],nt[tt],dt)):it[tt].ty==="tr"||(it[tt].ty==="el"?_e.push($(it[tt],nt[tt],dt)):it[tt].ty==="sr"?_e.push(et(it[tt],nt[tt],dt)):it[tt].ty==="sh"?_e.push(ShapePathInterface(it[tt],nt[tt],dt)):it[tt].ty==="rc"?_e.push(ot(it[tt],nt[tt],dt)):it[tt].ty==="rd"?_e.push(rt(it[tt],nt[tt],dt)):it[tt].ty==="rp"?_e.push(at(it[tt],nt[tt],dt)):it[tt].ty==="gf"?_e.push(o(it[tt],nt[tt],dt)):_e.push(c(it[tt],nt[tt])));return _e}function s(it,nt,dt){var _e,tt=function(ut){for(var ct=0,gt=_e.length;ct<gt;){if(_e[ct]._name===ut||_e[ct].mn===ut||_e[ct].propertyIndex===ut||_e[ct].ix===ut||_e[ct].ind===ut)return _e[ct];ct+=1}return typeof ut=="number"?_e[ut-1]:null};tt.propertyGroup=propertyGroupFactory(tt,dt),_e=e(it.it,nt.it,tt.propertyGroup),tt.numProperties=_e.length;var j=b(it.it[it.it.length-1],nt.it[nt.it.length-1],tt.propertyGroup);return tt.transform=j,tt.propertyIndex=it.cix,tt._name=it.nm,tt}function i(it,nt,dt){var _e=function(ut){switch(ut){case"ADBE Vectors Group":case"Contents":case 2:return _e.content;default:return _e.transform}};_e.propertyGroup=propertyGroupFactory(_e,dt);var tt=s(it,nt,_e.propertyGroup),j=b(it.it[it.it.length-1],nt.it[nt.it.length-1],_e.propertyGroup);return _e.content=tt,_e.transform=j,Object.defineProperty(_e,"_name",{get:function(){return it.nm}}),_e.numProperties=it.np,_e.propertyIndex=it.ix,_e.nm=it.nm,_e.mn=it.mn,_e}function a(it,nt,dt){function _e(tt){return tt==="Color"||tt==="color"?_e.color:tt==="Opacity"||tt==="opacity"?_e.opacity:null}return Object.defineProperties(_e,{color:{get:ExpressionPropertyInterface(nt.c)},opacity:{get:ExpressionPropertyInterface(nt.o)},_name:{value:it.nm},mn:{value:it.mn}}),nt.c.setGroupProperty(PropertyInterface("Color",dt)),nt.o.setGroupProperty(PropertyInterface("Opacity",dt)),_e}function o(it,nt,dt){function _e(tt){return tt==="Start Point"||tt==="start point"?_e.startPoint:tt==="End Point"||tt==="end point"?_e.endPoint:tt==="Opacity"||tt==="opacity"?_e.opacity:null}return Object.defineProperties(_e,{startPoint:{get:ExpressionPropertyInterface(nt.s)},endPoint:{get:ExpressionPropertyInterface(nt.e)},opacity:{get:ExpressionPropertyInterface(nt.o)},type:{get:function(){return"a"}},_name:{value:it.nm},mn:{value:it.mn}}),nt.s.setGroupProperty(PropertyInterface("Start Point",dt)),nt.e.setGroupProperty(PropertyInterface("End Point",dt)),nt.o.setGroupProperty(PropertyInterface("Opacity",dt)),_e}function c(){function it(){return null}return it}function g(it,nt,dt){var _e=propertyGroupFactory(gt,dt),tt=propertyGroupFactory(ct,_e);function j(mt){Object.defineProperty(ct,it.d[mt].nm,{get:ExpressionPropertyInterface(nt.d.dataProps[mt].p)})}var st,ut=it.d?it.d.length:0,ct={};for(st=0;st<ut;st+=1)j(st),nt.d.dataProps[st].p.setGroupProperty(tt);function gt(mt){return mt==="Color"||mt==="color"?gt.color:mt==="Opacity"||mt==="opacity"?gt.opacity:mt==="Stroke Width"||mt==="stroke width"?gt.strokeWidth:null}return Object.defineProperties(gt,{color:{get:ExpressionPropertyInterface(nt.c)},opacity:{get:ExpressionPropertyInterface(nt.o)},strokeWidth:{get:ExpressionPropertyInterface(nt.w)},dash:{get:function(){return ct}},_name:{value:it.nm},mn:{value:it.mn}}),nt.c.setGroupProperty(PropertyInterface("Color",_e)),nt.o.setGroupProperty(PropertyInterface("Opacity",_e)),nt.w.setGroupProperty(PropertyInterface("Stroke Width",_e)),gt}function _(it,nt,dt){function _e(j){return j===it.e.ix||j==="End"||j==="end"?_e.end:j===it.s.ix?_e.start:j===it.o.ix?_e.offset:null}var tt=propertyGroupFactory(_e,dt);return _e.propertyIndex=it.ix,nt.s.setGroupProperty(PropertyInterface("Start",tt)),nt.e.setGroupProperty(PropertyInterface("End",tt)),nt.o.setGroupProperty(PropertyInterface("Offset",tt)),_e.propertyIndex=it.ix,_e.propertyGroup=dt,Object.defineProperties(_e,{start:{get:ExpressionPropertyInterface(nt.s)},end:{get:ExpressionPropertyInterface(nt.e)},offset:{get:ExpressionPropertyInterface(nt.o)},_name:{value:it.nm}}),_e.mn=it.mn,_e}function b(it,nt,dt){function _e(j){return it.a.ix===j||j==="Anchor Point"?_e.anchorPoint:it.o.ix===j||j==="Opacity"?_e.opacity:it.p.ix===j||j==="Position"?_e.position:it.r.ix===j||j==="Rotation"||j==="ADBE Vector Rotation"?_e.rotation:it.s.ix===j||j==="Scale"?_e.scale:it.sk&&it.sk.ix===j||j==="Skew"?_e.skew:it.sa&&it.sa.ix===j||j==="Skew Axis"?_e.skewAxis:null}var tt=propertyGroupFactory(_e,dt);return nt.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",tt)),nt.transform.mProps.p.setGroupProperty(PropertyInterface("Position",tt)),nt.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",tt)),nt.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",tt)),nt.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",tt)),nt.transform.mProps.sk&&(nt.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",tt)),nt.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",tt))),nt.transform.op.setGroupProperty(PropertyInterface("Opacity",tt)),Object.defineProperties(_e,{opacity:{get:ExpressionPropertyInterface(nt.transform.mProps.o)},position:{get:ExpressionPropertyInterface(nt.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(nt.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(nt.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(nt.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(nt.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(nt.transform.mProps.sa)},_name:{value:it.nm}}),_e.ty="tr",_e.mn=it.mn,_e.propertyGroup=dt,_e}function $(it,nt,dt){function _e(st){return it.p.ix===st?_e.position:it.s.ix===st?_e.size:null}var tt=propertyGroupFactory(_e,dt);_e.propertyIndex=it.ix;var j=nt.sh.ty==="tm"?nt.sh.prop:nt.sh;return j.s.setGroupProperty(PropertyInterface("Size",tt)),j.p.setGroupProperty(PropertyInterface("Position",tt)),Object.defineProperties(_e,{size:{get:ExpressionPropertyInterface(j.s)},position:{get:ExpressionPropertyInterface(j.p)},_name:{value:it.nm}}),_e.mn=it.mn,_e}function et(it,nt,dt){function _e(st){return it.p.ix===st?_e.position:it.r.ix===st?_e.rotation:it.pt.ix===st?_e.points:it.or.ix===st||st==="ADBE Vector Star Outer Radius"?_e.outerRadius:it.os.ix===st?_e.outerRoundness:it.ir&&(it.ir.ix===st||st==="ADBE Vector Star Inner Radius")?_e.innerRadius:it.is&&it.is.ix===st?_e.innerRoundness:null}var tt=propertyGroupFactory(_e,dt),j=nt.sh.ty==="tm"?nt.sh.prop:nt.sh;return _e.propertyIndex=it.ix,j.or.setGroupProperty(PropertyInterface("Outer Radius",tt)),j.os.setGroupProperty(PropertyInterface("Outer Roundness",tt)),j.pt.setGroupProperty(PropertyInterface("Points",tt)),j.p.setGroupProperty(PropertyInterface("Position",tt)),j.r.setGroupProperty(PropertyInterface("Rotation",tt)),it.ir&&(j.ir.setGroupProperty(PropertyInterface("Inner Radius",tt)),j.is.setGroupProperty(PropertyInterface("Inner Roundness",tt))),Object.defineProperties(_e,{position:{get:ExpressionPropertyInterface(j.p)},rotation:{get:ExpressionPropertyInterface(j.r)},points:{get:ExpressionPropertyInterface(j.pt)},outerRadius:{get:ExpressionPropertyInterface(j.or)},outerRoundness:{get:ExpressionPropertyInterface(j.os)},innerRadius:{get:ExpressionPropertyInterface(j.ir)},innerRoundness:{get:ExpressionPropertyInterface(j.is)},_name:{value:it.nm}}),_e.mn=it.mn,_e}function ot(it,nt,dt){function _e(st){return it.p.ix===st?_e.position:it.r.ix===st?_e.roundness:it.s.ix===st||st==="Size"||st==="ADBE Vector Rect Size"?_e.size:null}var tt=propertyGroupFactory(_e,dt),j=nt.sh.ty==="tm"?nt.sh.prop:nt.sh;return _e.propertyIndex=it.ix,j.p.setGroupProperty(PropertyInterface("Position",tt)),j.s.setGroupProperty(PropertyInterface("Size",tt)),j.r.setGroupProperty(PropertyInterface("Rotation",tt)),Object.defineProperties(_e,{position:{get:ExpressionPropertyInterface(j.p)},roundness:{get:ExpressionPropertyInterface(j.r)},size:{get:ExpressionPropertyInterface(j.s)},_name:{value:it.nm}}),_e.mn=it.mn,_e}function rt(it,nt,dt){function _e(st){return it.r.ix===st||st==="Round Corners 1"?_e.radius:null}var tt=propertyGroupFactory(_e,dt),j=nt;return _e.propertyIndex=it.ix,j.rd.setGroupProperty(PropertyInterface("Radius",tt)),Object.defineProperties(_e,{radius:{get:ExpressionPropertyInterface(j.rd)},_name:{value:it.nm}}),_e.mn=it.mn,_e}function at(it,nt,dt){function _e(st){return it.c.ix===st||st==="Copies"?_e.copies:it.o.ix===st||st==="Offset"?_e.offset:null}var tt=propertyGroupFactory(_e,dt),j=nt;return _e.propertyIndex=it.ix,j.c.setGroupProperty(PropertyInterface("Copies",tt)),j.o.setGroupProperty(PropertyInterface("Offset",tt)),Object.defineProperties(_e,{copies:{get:ExpressionPropertyInterface(j.c)},offset:{get:ExpressionPropertyInterface(j.o)},_name:{value:it.nm}}),_e.mn=it.mn,_e}return function(it,nt,dt){var _e;function tt(st){if(typeof st=="number")return st=st===void 0?1:st,st===0?dt:_e[st-1];for(var ut=0,ct=_e.length;ut<ct;){if(_e[ut]._name===st)return _e[ut];ut+=1}return null}function j(){return dt}return tt.propertyGroup=propertyGroupFactory(tt,j),_e=e(it,nt,tt.propertyGroup),tt.numProperties=_e.length,tt._name="Contents",tt}}(),TextExpressionInterface=function(){return function(e){var s;function i(a){switch(a){case"ADBE Text Document":return i.sourceText;default:return null}}return Object.defineProperty(i,"sourceText",{get:function(){e.textProperty.getValue();var o=e.textProperty.currentData.t;return(!s||o!==s.value)&&(s=new String(o),s.value=o||new String(o),Object.defineProperty(s,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),s}}),i}}();function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(e)}var FootageInterface=function(){var e=function(a){var o="",c=a.getFootageData();function g(){return o="",c=a.getFootageData(),_}function _(b){if(c[b])return o=b,c=c[b],_typeof(c)==="object"?_:c;var $=b.indexOf(o);if($!==-1){var et=parseInt(b.substr($+o.length),10);return c=c[et],_typeof(c)==="object"?_:c}return""}return g},s=function(a){function o(c){return c==="Outline"?o.outlineInterface():null}return o._name="Outline",o.outlineInterface=e(a),o};return function(i){function a(o){return o==="Data"?a.dataInterface:null}return a._name="Data",a.dataInterface=s(i),a}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(g,_,b){_.x&&(b.k=!0,b.x=!0,b.initiateExpression=ExpressionManager.initiateExpression,b.effectsSequence.push(b.initiateExpression(g,_,b).bind(b)))}function s(g){return g*=this.elem.globalData.frameRate,g-=this.offsetTime,g!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<g?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(g,this._cachingAtTime),this._cachingAtTime.lastFrame=g),this._cachingAtTime.value}function i(g){var _=-.01,b=this.getValueAtTime(g),$=this.getValueAtTime(g+_),et=0;if(b.length){var ot;for(ot=0;ot<b.length;ot+=1)et+=Math.pow($[ot]-b[ot],2);et=Math.sqrt(et)*100}else et=0;return et}function a(g){if(this.vel!==void 0)return this.vel;var _=-.001,b=this.getValueAtTime(g),$=this.getValueAtTime(g+_),et;if(b.length){et=createTypedArray("float32",b.length);var ot;for(ot=0;ot<b.length;ot+=1)et[ot]=($[ot]-b[ot])/_}else et=($-b)/_;return et}function o(){return this.pv}function c(g){this.propertyGroup=g}return{searchExpressions:e,getSpeedAtTime:i,getVelocityAtTime:a,getValueAtTime:s,getStaticValueAtTime:o,setGroupProperty:c}}();function addPropertyDecorator(){function e(rt,at,it){if(!this.k||!this.keyframes)return this.pv;rt=rt?rt.toLowerCase():"";var nt=this.comp.renderedFrame,dt=this.keyframes,_e=dt[dt.length-1].t;if(nt<=_e)return this.pv;var tt,j;it?(at?tt=Math.abs(_e-this.elem.comp.globalData.frameRate*at):tt=Math.max(0,_e-this.elem.data.ip),j=_e-tt):((!at||at>dt.length-1)&&(at=dt.length-1),j=dt[dt.length-1-at].t,tt=_e-j);var st,ut,ct;if(rt==="pingpong"){var gt=Math.floor((nt-j)/tt);if(gt%2!==0)return this.getValueAtTime((tt-(nt-j)%tt+j)/this.comp.globalData.frameRate,0)}else if(rt==="offset"){var mt=this.getValueAtTime(j/this.comp.globalData.frameRate,0),_t=this.getValueAtTime(_e/this.comp.globalData.frameRate,0),kt=this.getValueAtTime(((nt-j)%tt+j)/this.comp.globalData.frameRate,0),wt=Math.floor((nt-j)/tt);if(this.pv.length){for(ct=new Array(mt.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=(_t[st]-mt[st])*wt+kt[st];return ct}return(_t-mt)*wt+kt}else if(rt==="continue"){var Et=this.getValueAtTime(_e/this.comp.globalData.frameRate,0),Tt=this.getValueAtTime((_e-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ct=new Array(Et.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=Et[st]+(Et[st]-Tt[st])*((nt-_e)/this.comp.globalData.frameRate)/5e-4;return ct}return Et+(Et-Tt)*((nt-_e)/.001)}return this.getValueAtTime(((nt-j)%tt+j)/this.comp.globalData.frameRate,0)}function s(rt,at,it){if(!this.k)return this.pv;rt=rt?rt.toLowerCase():"";var nt=this.comp.renderedFrame,dt=this.keyframes,_e=dt[0].t;if(nt>=_e)return this.pv;var tt,j;it?(at?tt=Math.abs(this.elem.comp.globalData.frameRate*at):tt=Math.max(0,this.elem.data.op-_e),j=_e+tt):((!at||at>dt.length-1)&&(at=dt.length-1),j=dt[at].t,tt=j-_e);var st,ut,ct;if(rt==="pingpong"){var gt=Math.floor((_e-nt)/tt);if(gt%2===0)return this.getValueAtTime(((_e-nt)%tt+_e)/this.comp.globalData.frameRate,0)}else if(rt==="offset"){var mt=this.getValueAtTime(_e/this.comp.globalData.frameRate,0),_t=this.getValueAtTime(j/this.comp.globalData.frameRate,0),kt=this.getValueAtTime((tt-(_e-nt)%tt+_e)/this.comp.globalData.frameRate,0),wt=Math.floor((_e-nt)/tt)+1;if(this.pv.length){for(ct=new Array(mt.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=kt[st]-(_t[st]-mt[st])*wt;return ct}return kt-(_t-mt)*wt}else if(rt==="continue"){var Et=this.getValueAtTime(_e/this.comp.globalData.frameRate,0),Tt=this.getValueAtTime((_e+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ct=new Array(Et.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=Et[st]+(Et[st]-Tt[st])*(_e-nt)/.001;return ct}return Et+(Et-Tt)*(_e-nt)/.001}return this.getValueAtTime((tt-((_e-nt)%tt+_e))/this.comp.globalData.frameRate,0)}function i(rt,at){if(!this.k)return this.pv;if(rt=(rt||.4)*.5,at=Math.floor(at||5),at<=1)return this.pv;var it=this.comp.renderedFrame/this.comp.globalData.frameRate,nt=it-rt,dt=it+rt,_e=at>1?(dt-nt)/(at-1):1,tt=0,j=0,st;this.pv.length?st=createTypedArray("float32",this.pv.length):st=0;for(var ut;tt<at;){if(ut=this.getValueAtTime(nt+tt*_e),this.pv.length)for(j=0;j<this.pv.length;j+=1)st[j]+=ut[j];else st+=ut;tt+=1}if(this.pv.length)for(j=0;j<this.pv.length;j+=1)st[j]/=at;else st/=at;return st}function a(rt){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var at=this._transformCachingAtTime.v;if(at.cloneFromProps(this.pre.props),this.appliedTransformations<1){var it=this.a.getValueAtTime(rt);at.translate(-it[0]*this.a.mult,-it[1]*this.a.mult,it[2]*this.a.mult)}if(this.appliedTransformations<2){var nt=this.s.getValueAtTime(rt);at.scale(nt[0]*this.s.mult,nt[1]*this.s.mult,nt[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var dt=this.sk.getValueAtTime(rt),_e=this.sa.getValueAtTime(rt);at.skewFromAxis(-dt*this.sk.mult,_e*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var tt=this.r.getValueAtTime(rt);at.rotate(-tt*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var j=this.rz.getValueAtTime(rt),st=this.ry.getValueAtTime(rt),ut=this.rx.getValueAtTime(rt),ct=this.or.getValueAtTime(rt);at.rotateZ(-j*this.rz.mult).rotateY(st*this.ry.mult).rotateX(ut*this.rx.mult).rotateZ(-ct[2]*this.or.mult).rotateY(ct[1]*this.or.mult).rotateX(ct[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var gt=this.px.getValueAtTime(rt),mt=this.py.getValueAtTime(rt);if(this.data.p.z){var _t=this.pz.getValueAtTime(rt);at.translate(gt*this.px.mult,mt*this.py.mult,-_t*this.pz.mult)}else at.translate(gt*this.px.mult,mt*this.py.mult,0)}else{var kt=this.p.getValueAtTime(rt);at.translate(kt[0]*this.p.mult,kt[1]*this.p.mult,-kt[2]*this.p.mult)}return at}function o(){return this.v.clone(new Matrix)}var c=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(rt,at,it){var nt=c(rt,at,it);return nt.dynamicProperties.length?nt.getValueAtTime=a.bind(nt):nt.getValueAtTime=o.bind(nt),nt.setGroupProperty=expressionHelpers.setGroupProperty,nt};var g=PropertyFactory.getProp;PropertyFactory.getProp=function(rt,at,it,nt,dt){var _e=g(rt,at,it,nt,dt);_e.kf?_e.getValueAtTime=expressionHelpers.getValueAtTime.bind(_e):_e.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(_e),_e.setGroupProperty=expressionHelpers.setGroupProperty,_e.loopOut=e,_e.loopIn=s,_e.smooth=i,_e.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(_e),_e.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(_e),_e.numKeys=at.a===1?at.k.length:0,_e.propertyIndex=at.ix;var tt=0;return it!==0&&(tt=createTypedArray("float32",at.a===1?at.k[0].s.length:at.k.length)),_e._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:tt},expressionHelpers.searchExpressions(rt,at,_e),_e.k&&dt.addDynamicProperty(_e),_e};function _(rt){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),rt*=this.elem.globalData.frameRate,rt-=this.offsetTime,rt!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<rt?this._caching.lastIndex:0,this._cachingAtTime.lastTime=rt,this.interpolateShape(rt,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var b=ShapePropertyFactory.getConstructorFunction(),$=ShapePropertyFactory.getKeyframedConstructorFunction();function et(){}et.prototype={vertices:function(at,it){this.k&&this.getValue();var nt=this.v;it!==void 0&&(nt=this.getValueAtTime(it,0));var dt,_e=nt._length,tt=nt[at],j=nt.v,st=createSizedArray(_e);for(dt=0;dt<_e;dt+=1)at==="i"||at==="o"?st[dt]=[tt[dt][0]-j[dt][0],tt[dt][1]-j[dt][1]]:st[dt]=[tt[dt][0],tt[dt][1]];return st},points:function(at){return this.vertices("v",at)},inTangents:function(at){return this.vertices("i",at)},outTangents:function(at){return this.vertices("o",at)},isClosed:function(){return this.v.c},pointOnPath:function(at,it){var nt=this.v;it!==void 0&&(nt=this.getValueAtTime(it,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(nt));for(var dt=this._segmentsLength,_e=dt.lengths,tt=dt.totalLength*at,j=0,st=_e.length,ut=0,ct;j<st;){if(ut+_e[j].addedLength>tt){var gt=j,mt=nt.c&&j===st-1?0:j+1,_t=(tt-ut)/_e[j].addedLength;ct=bez.getPointInSegment(nt.v[gt],nt.v[mt],nt.o[gt],nt.i[mt],_t,_e[j]);break}else ut+=_e[j].addedLength;j+=1}return ct||(ct=nt.c?[nt.v[0][0],nt.v[0][1]]:[nt.v[nt._length-1][0],nt.v[nt._length-1][1]]),ct},vectorOnPath:function(at,it,nt){at==1?at=this.v.c:at==0&&(at=.999);var dt=this.pointOnPath(at,it),_e=this.pointOnPath(at+.001,it),tt=_e[0]-dt[0],j=_e[1]-dt[1],st=Math.sqrt(Math.pow(tt,2)+Math.pow(j,2));if(st===0)return[0,0];var ut=nt==="tangent"?[tt/st,j/st]:[-j/st,tt/st];return ut},tangentOnPath:function(at,it){return this.vectorOnPath(at,it,"tangent")},normalOnPath:function(at,it){return this.vectorOnPath(at,it,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([et],b),extendPrototype([et],$),$.prototype.getValueAtTime=_,$.prototype.initiateExpression=ExpressionManager.initiateExpression;var ot=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(rt,at,it,nt,dt){var _e=ot(rt,at,it,nt,dt);return _e.propertyIndex=at.ix,_e.lock=!1,it===3?expressionHelpers.searchExpressions(rt,at.pt,_e):it===4&&expressionHelpers.searchExpressions(rt,at.ks,_e),_e.k&&rt.addDynamicProperty(_e),_e}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){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}TextProperty.prototype.getExpressionValue=function(s,i){var a=this.calculateExpression(i);if(s.t!==a){var o={};return this.copyData(o,s),o.t=a.toString(),o.__complete=!1,o}return s},TextProperty.prototype.searchProperty=function(){var s=this.searchKeyframes(),i=this.searchExpressions();return this.kf=s||i,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(s,i){var a=createNS("feMerge");a.setAttribute("result",s);var o,c;for(c=0;c<i.length;c+=1)o=createNS("feMergeNode"),o.setAttribute("in",i[c]),a.appendChild(o),a.appendChild(o);return a}};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,s,i,a,o){this.filterManager=s;var c=createNS("feColorMatrix");c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","linearRGB"),c.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=c,c.setAttribute("result",a+"_tint_1"),e.appendChild(c),c=createNS("feColorMatrix"),c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),c.setAttribute("result",a+"_tint_2"),e.appendChild(c),this.matrixFilter=c;var g=this.createMergeNode(a,[o,a+"_tint_1",a+"_tint_2"]);e.appendChild(g)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+a+" 0"),this.matrixFilter.setAttribute("values",i[0]-s[0]+" 0 0 0 "+s[0]+" "+(i[1]-s[1])+" 0 0 0 "+s[1]+" "+(i[2]-s[2])+" 0 0 0 "+s[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,s,i,a){this.filterManager=s;var o=createNS("feColorMatrix");o.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",a),e.appendChild(o),this.matrixFilter=o}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+s[0]+" 0 0 0 0 "+s[1]+" 0 0 0 0 "+s[2]+" 0 0 0 "+i+" 0")}};function SVGStrokeEffect(e,s,i){this.initialized=!1,this.filterManager=s,this.elem=i,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,s,i,a,o;for(this.filterManager.effectElements[1].p.v===1?(o=this.elem.maskManager.masksProperties.length,a=0):(a=this.filterManager.effectElements[0].p.v-1,o=a+1),i=createNS("g"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1),a;a<o;a+=1)s=createNS("path"),i.appendChild(s),this.paths.push({p:s,m:a});if(this.filterManager.effectElements[10].p.v===3){var c=createNS("mask"),g=createElementID();c.setAttribute("id",g),c.setAttribute("mask-type","alpha"),c.appendChild(i),this.elem.globalData.defs.appendChild(c);var _=createNS("g");for(_.setAttribute("mask","url("+getLocationHref()+"#"+g+")");e[0];)_.appendChild(e[0]);this.elem.layerElement.appendChild(_),this.masker=c,i.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var s,i=this.paths.length,a,o;for(s=0;s<i;s+=1)if(this.paths[s].m!==-1&&(a=this.elem.maskManager.viewData[this.paths[s].m],o=this.paths[s].p,(e||this.filterManager._mdf||a.prop._mdf)&&o.setAttribute("d",a.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||a.prop._mdf)){var c;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var g=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,_=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,b=o.getTotalLength();c="0 0 0 "+b*g+" ";var $=b*(_-g),et=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,ot=Math.floor($/et),rt;for(rt=0;rt<ot;rt+=1)c+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";c+="0 "+b*10+" 0 0"}else c="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;o.setAttribute("stroke-dasharray",c)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var at=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(at[0]*255)+","+bmFloor(at[1]*255)+","+bmFloor(at[2]*255)+")")}};function SVGTritoneFilter(e,s,i,a){this.filterManager=s;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.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(o);var c=createNS("feComponentTransfer");c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("result",a),this.matrixFilter=c;var g=createNS("feFuncR");g.setAttribute("type","table"),c.appendChild(g),this.feFuncR=g;var _=createNS("feFuncG");_.setAttribute("type","table"),c.appendChild(_),this.feFuncG=_;var b=createNS("feFuncB");b.setAttribute("type","table"),c.appendChild(b),this.feFuncB=b,e.appendChild(c)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,o=a[0]+" "+i[0]+" "+s[0],c=a[1]+" "+i[1]+" "+s[1],g=a[2]+" "+i[2]+" "+s[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",c),this.feFuncB.setAttribute("tableValues",g)}};function SVGProLevelsFilter(e,s,i,a){this.filterManager=s;var o=this.filterManager.effectElements,c=createNS("feComponentTransfer");(o[10].p.k||o[10].p.v!==0||o[11].p.k||o[11].p.v!==1||o[12].p.k||o[12].p.v!==1||o[13].p.k||o[13].p.v!==0||o[14].p.k||o[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",c)),(o[17].p.k||o[17].p.v!==0||o[18].p.k||o[18].p.v!==1||o[19].p.k||o[19].p.v!==1||o[20].p.k||o[20].p.v!==0||o[21].p.k||o[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",c)),(o[24].p.k||o[24].p.v!==0||o[25].p.k||o[25].p.v!==1||o[26].p.k||o[26].p.v!==1||o[27].p.k||o[27].p.v!==0||o[28].p.k||o[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",c)),(o[31].p.k||o[31].p.v!==0||o[32].p.k||o[32].p.v!==1||o[33].p.k||o[33].p.v!==1||o[34].p.k||o[34].p.v!==0||o[35].p.k||o[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",c)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(c.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(c)),(o[3].p.k||o[3].p.v!==0||o[4].p.k||o[4].p.v!==1||o[5].p.k||o[5].p.v!==1||o[6].p.k||o[6].p.v!==0||o[7].p.k||o[7].p.v!==1)&&(c=createNS("feComponentTransfer"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("result",a),e.appendChild(c),this.feFuncRComposed=this.createFeFunc("feFuncR",c),this.feFuncGComposed=this.createFeFunc("feFuncG",c),this.feFuncBComposed=this.createFeFunc("feFuncB",c))}SVGProLevelsFilter.prototype.createFeFunc=function(e,s){var i=createNS(e);return i.setAttribute("type","table"),s.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(e,s,i,a,o){for(var c=0,g=256,_,b=Math.min(e,s),$=Math.max(e,s),et=Array.call(null,{length:g}),ot,rt=0,at=o-a,it=s-e;c<=256;)_=c/256,_<=b?ot=it<0?o:a:_>=$?ot=it<0?a:o:ot=a+at*Math.pow((_-e)/it,1/i),et[rt]=ot,rt+=1,c+=256/(g-1);return et.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s,i=this.filterManager.effectElements;this.feFuncRComposed&&(e||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(s=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",s),this.feFuncGComposed.setAttribute("tableValues",s),this.feFuncBComposed.setAttribute("tableValues",s)),this.feFuncR&&(e||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(s=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",s)),this.feFuncG&&(e||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(s=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",s)),this.feFuncB&&(e||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(s=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",s)),this.feFuncA&&(e||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(s=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",s))}};function SVGDropShadowEffect(e,s,i,a,o){var c=s.container.globalData.renderConfig.filterSize,g=s.data.fs||c;e.setAttribute("x",g.x||c.x),e.setAttribute("y",g.y||c.y),e.setAttribute("width",g.width||c.width),e.setAttribute("height",g.height||c.height),this.filterManager=s;var _=createNS("feGaussianBlur");_.setAttribute("in","SourceAlpha"),_.setAttribute("result",a+"_drop_shadow_1"),_.setAttribute("stdDeviation","0"),this.feGaussianBlur=_,e.appendChild(_);var b=createNS("feOffset");b.setAttribute("dx","25"),b.setAttribute("dy","0"),b.setAttribute("in",a+"_drop_shadow_1"),b.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=b,e.appendChild(b);var $=createNS("feFlood");$.setAttribute("flood-color","#00ff00"),$.setAttribute("flood-opacity","1"),$.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=$,e.appendChild($);var et=createNS("feComposite");et.setAttribute("in",a+"_drop_shadow_3"),et.setAttribute("in2",a+"_drop_shadow_2"),et.setAttribute("operator","in"),et.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(et);var ot=this.createMergeNode(a,[a+"_drop_shadow_4",o]);e.appendChild(ot)}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 s=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(s[0]*255),Math.round(s[1]*255),Math.round(s[2]*255)))}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 i=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=i*Math.cos(a),c=i*Math.sin(a);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",c)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,s,i){this.initialized=!1,this.filterManager=s,this.filterElem=e,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var s=0,i=_svgMatteSymbols.length;s<i;){if(_svgMatteSymbols[s]===e)return _svgMatteSymbols[s];s+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,s){var i=e.layerElement.parentNode;if(i){for(var a=i.children,o=0,c=a.length;o<c&&a[o]!==e.layerElement;)o+=1;var g;o<=c-2&&(g=a[o+1]);var _=createNS("use");_.setAttribute("href","#"+s),g?i.insertBefore(_,g):i.appendChild(_)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,s){if(!this.findSymbol(s)){var i=createElementID(),a=createNS("mask");a.setAttribute("id",s.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(s);var o=e.globalData.defs;o.appendChild(a);var c=createNS("symbol");c.setAttribute("id",i),this.replaceInParent(s,i),c.appendChild(s.layerElement),o.appendChild(c);var g=createNS("use");g.setAttribute("href","#"+i),a.appendChild(g),s.data.hd=!1,s.show()}e.setMatte(s.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,s=this.elem.comp.elements,i=0,a=s.length;i<a;)s[i]&&s[i].data.ind===e&&this.setElementAsMask(this.elem,s[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,s,i,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=s;var o=createNS("feGaussianBlur");o.setAttribute("result",a),e.appendChild(o),this.feGaussianBlur=o}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=.3,i=this.filterManager.effectElements[0].p.v*s,a=this.filterManager.effectElements[1].p.v,o=a==3?0:i,c=a==2?0:i;this.feGaussianBlur.setAttribute("stdDeviation",o+" "+c);var g=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",g)}};function TransformEffect(){}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 s=this.effectsManager.effectElements,i=s[0].p.v,a=s[1].p.v,o=s[2].p.v===1,c=s[3].p.v,g=o?c:s[4].p.v,_=s[5].p.v,b=s[6].p.v,$=s[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(g*.01,c*.01,1),this.matrix.rotate(-$*degToRads),this.matrix.skewFromAxis(-_*degToRads,(b+90)*degToRads),this.matrix.translate(a[0],a[1],0),this._mdf=!0,this.opacity!==s[8].p.v&&(this.opacity=s[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,s){this.init(s)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return 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})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(e,s){(s==null||s>e.length)&&(s=e.length);for(var i=0,a=Array(s);i<s;i++)a[i]=e[i];return a}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,s,i){return(s=_toPropertyKey(s))in e?Object.defineProperty(e,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[s]=i,e}function _iterableToArrayLimit(e,s){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var a,o,c,g,_=[],b=!0,$=!1;try{if(c=(i=i.call(e)).next,s!==0)for(;!(b=(a=c.call(i)).done)&&(_.push(a.value),_.length!==s);b=!0);}catch(et){$=!0,o=et}finally{try{if(!b&&i.return!=null&&(g=i.return(),Object(g)!==g))return}finally{if($)throw o}}return _}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
49
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys(e,s){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);s&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,a)}return i}function _objectSpread2(e){for(var s=1;s<arguments.length;s++){var i=arguments[s]!=null?arguments[s]:{};s%2?ownKeys(Object(i),!0).forEach(function(a){_defineProperty(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function _objectWithoutProperties(e,s){if(e==null)return{};var i,a,o=_objectWithoutPropertiesLoose(e,s);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(a=0;a<c.length;a++)i=c[a],s.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}function _objectWithoutPropertiesLoose(e,s){if(e==null)return{};var i={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(s.includes(a))continue;i[a]=e[a]}return i}function _slicedToArray(e,s){return _arrayWithHoles(e)||_iterableToArrayLimit(e,s)||_unsupportedIterableToArray(e,s)||_nonIterableRest()}function _toPrimitive(e,s){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,s);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(e)}function _toPropertyKey(e){var s=_toPrimitive(e,"string");return typeof s=="symbol"?s:s+""}function _unsupportedIterableToArray(e,s){if(e){if(typeof e=="string")return _arrayLikeToArray(e,s);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,s):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(s,i){var a=s.animationData,o=s.loop,c=s.autoplay,g=s.initialSegment,_=s.onComplete,b=s.onLoopComplete,$=s.onEnterFrame,et=s.onSegmentStart,ot=s.onConfigReady,rt=s.onDataReady,at=s.onDataFailed,it=s.onLoadedImages,nt=s.onDOMLoaded,dt=s.onDestroy;s.lottieRef,s.renderer,s.name,s.assetsPath,s.rendererSettings;var _e=_objectWithoutProperties(s,_excluded$1),tt=reactExports.useState(!1),j=_slicedToArray(tt,2),st=j[0],ut=j[1],ct=reactExports.useRef(),gt=reactExports.useRef(null),mt=function(){var Ct;(Ct=ct.current)===null||Ct===void 0||Ct.play()},_t=function(){var Ct;(Ct=ct.current)===null||Ct===void 0||Ct.stop()},kt=function(){var Ct;(Ct=ct.current)===null||Ct===void 0||Ct.pause()},wt=function(Ct){var St;(St=ct.current)===null||St===void 0||St.setSpeed(Ct)},Et=function(Ct,St){var bt;(bt=ct.current)===null||bt===void 0||bt.goToAndPlay(Ct,St)},Tt=function(Ct,St){var bt;(bt=ct.current)===null||bt===void 0||bt.goToAndStop(Ct,St)},Lt=function(Ct){var St;(St=ct.current)===null||St===void 0||St.setDirection(Ct)},xt=function(Ct,St){var bt;(bt=ct.current)===null||bt===void 0||bt.playSegments(Ct,St)},pt=function(Ct){var St;(St=ct.current)===null||St===void 0||St.setSubframe(Ct)},vt=function(Ct){var St;return(St=ct.current)===null||St===void 0?void 0:St.getDuration(Ct)},lt=function(){var Ct;(Ct=ct.current)===null||Ct===void 0||Ct.destroy(),ct.current=void 0},ht=function(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},St;if(gt.current){(St=ct.current)===null||St===void 0||St.destroy();var bt=_objectSpread2(_objectSpread2(_objectSpread2({},s),Ct),{},{container:gt.current});return ct.current=lottie.loadAnimation(bt),ut(!!ct.current),function(){var Ot;(Ot=ct.current)===null||Ot===void 0||Ot.destroy(),ct.current=void 0}}};reactExports.useEffect(function(){var ft=ht();return function(){return ft==null?void 0:ft()}},[a,o]),reactExports.useEffect(function(){ct.current&&(ct.current.autoplay=!!c)},[c]),reactExports.useEffect(function(){if(ct.current){if(!g){ct.current.resetSegments(!0);return}!Array.isArray(g)||!g.length||((ct.current.currentRawFrame<g[0]||ct.current.currentRawFrame>g[1])&&(ct.current.currentRawFrame=g[0]),ct.current.setSegment(g[0],g[1]))}},[g]),reactExports.useEffect(function(){var ft=[{name:"complete",handler:_},{name:"loopComplete",handler:b},{name:"enterFrame",handler:$},{name:"segmentStart",handler:et},{name:"config_ready",handler:ot},{name:"data_ready",handler:rt},{name:"data_failed",handler:at},{name:"loaded_images",handler:it},{name:"DOMLoaded",handler:nt},{name:"destroy",handler:dt}],Ct=ft.filter(function(bt){return bt.handler!=null});if(Ct.length){var St=Ct.map(function(bt){var Ot;return(Ot=ct.current)===null||Ot===void 0||Ot.addEventListener(bt.name,bt.handler),function(){var Mt;(Mt=ct.current)===null||Mt===void 0||Mt.removeEventListener(bt.name,bt.handler)}});return function(){St.forEach(function(bt){return bt()})}}},[_,b,$,et,ot,rt,at,it,nt,dt]);var yt=React.createElement("div",_objectSpread2({style:i,ref:gt},_e));return{View:yt,play:mt,stop:_t,pause:kt,setSpeed:wt,goToAndStop:Tt,goToAndPlay:Et,setDirection:Lt,playSegments:xt,setSubframe:pt,getDuration:vt,destroy:lt,animationContainerRef:gt,animationLoaded:st,animationItem:ct.current}};function getContainerVisibility(e){var s=e.getBoundingClientRect(),i=s.top,a=s.height,o=window.innerHeight-i,c=window.innerHeight+a;return o/c}function getContainerCursorPosition(e,s,i){var a=e.getBoundingClientRect(),o=a.top,c=a.left,g=a.width,_=a.height,b=(s-c)/g,$=(i-o)/_;return{x:b,y:$}}var useInitInteractivity=function e(s){var i=s.wrapperRef,a=s.animationItem,o=s.mode,c=s.actions;reactExports.useEffect(function(){var g=i.current;if(!(!g||!a||!c.length)){a.stop();var _=function(){var et=null,ot=function(){var at=getContainerVisibility(g),it=c.find(function(dt){var _e=dt.visibility;return _e&&at>=_e[0]&&at<=_e[1]});if(it){if(it.type==="seek"&&it.visibility&&it.frames.length===2){var nt=it.frames[0]+Math.ceil((at-it.visibility[0])/(it.visibility[1]-it.visibility[0])*it.frames[1]);//! goToAndStop must be relative to the start of the current segment
50
+ a.goToAndStop(nt-a.firstFrame-1,!0)}it.type==="loop"&&(et===null||et!==it.frames||a.isPaused)&&(a.playSegments(it.frames,!0),et=it.frames),it.type==="play"&&a.isPaused&&(a.resetSegments(!0),a.play()),it.type==="stop"&&a.goToAndStop(it.frames[0]-a.firstFrame-1,!0)}};return document.addEventListener("scroll",ot),function(){document.removeEventListener("scroll",ot)}},b=function(){var et=function(it,nt){var dt=it,_e=nt;if(dt!==-1&&_e!==-1){var tt=getContainerCursorPosition(g,dt,_e);dt=tt.x,_e=tt.y}var j=c.find(function(ct){var gt=ct.position;return gt&&Array.isArray(gt.x)&&Array.isArray(gt.y)?dt>=gt.x[0]&&dt<=gt.x[1]&&_e>=gt.y[0]&&_e<=gt.y[1]:gt&&!Number.isNaN(gt.x)&&!Number.isNaN(gt.y)?dt===gt.x&&_e===gt.y:!1});if(j){if(j.type==="seek"&&j.position&&Array.isArray(j.position.x)&&Array.isArray(j.position.y)&&j.frames.length===2){var st=(dt-j.position.x[0])/(j.position.x[1]-j.position.x[0]),ut=(_e-j.position.y[0])/(j.position.y[1]-j.position.y[0]);a.playSegments(j.frames,!0),a.goToAndStop(Math.ceil((st+ut)/2*(j.frames[1]-j.frames[0])),!0)}j.type==="loop"&&a.playSegments(j.frames,!0),j.type==="play"&&(a.isPaused&&a.resetSegments(!1),a.playSegments(j.frames)),j.type==="stop"&&a.goToAndStop(j.frames[0],!0)}},ot=function(it){et(it.clientX,it.clientY)},rt=function(){et(-1,-1)};return g.addEventListener("mousemove",ot),g.addEventListener("mouseout",rt),function(){g.removeEventListener("mousemove",ot),g.removeEventListener("mouseout",rt)}};switch(o){case"scroll":return _();case"cursor":return b()}}},[o,a])},useLottieInteractivity=function e(s){var i=s.actions,a=s.mode,o=s.lottieObj,c=o.animationItem,g=o.View,_=o.animationContainerRef;return useInitInteractivity({actions:i,animationItem:c,mode:a,wrapperRef:_}),g},_excluded=["style","interactivity"],Lottie=function e(s){var i,a,o,c=s.style,g=s.interactivity,_=_objectWithoutProperties(s,_excluded),b=useLottie(_,c),$=b.View,et=b.play,ot=b.stop,rt=b.pause,at=b.setSpeed,it=b.goToAndStop,nt=b.goToAndPlay,dt=b.setDirection,_e=b.playSegments,tt=b.setSubframe,j=b.getDuration,st=b.destroy,ut=b.animationContainerRef,ct=b.animationLoaded,gt=b.animationItem;return reactExports.useEffect(function(){s.lottieRef&&(s.lottieRef.current={play:et,stop:ot,pause:rt,setSpeed:at,goToAndPlay:nt,goToAndStop:it,setDirection:dt,playSegments:_e,setSubframe:tt,getDuration:j,destroy:st,animationContainerRef:ut,animationLoaded:ct,animationItem:gt})},[(i=s.lottieRef)===null||i===void 0?void 0:i.current]),useLottieInteractivity({lottieObj:{View:$,play:et,stop:ot,pause:rt,setSpeed:at,goToAndStop:it,goToAndPlay:nt,setDirection:dt,playSegments:_e,setSubframe:tt,getDuration:j,destroy:st,animationContainerRef:ut,animationLoaded:ct,animationItem:gt},actions:(a=g==null?void 0:g.actions)!==null&&a!==void 0?a:[],mode:(o=g==null?void 0:g.mode)!==null&&o!==void 0?o:"scroll"})};const v="5.9.6",fr=60,ip=0,op=106,w=1080,h=1080,nm="Check Mark 01",ddd=0,assets=[],layers=[{ddd:0,ind:1,ty:4,nm:"Tick",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-45,ix:10},p:{a:0,k:[50.412,45.412,0],ix:2,l:2},a:{a:0,k:[-.5,18,0],ix:1,l:2},s:{a:0,k:[76.923,76.923,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-50,-2.455],[-50,43],[49,43]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:22,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,-2.308],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[110,110],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:41,s:[0]},{t:56,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:181,st:0,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Burst",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[539.521,540.438,0],ix:2,l:2},a:{a:0,k:[539.958,540.438,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:65,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst 4",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:20,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst 3",np:1,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:45,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst 2",np:1,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst",np:1,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:39,op:448,st:32,ct:1,bm:0},{ddd:0,ind:3,ty:4,nm:"Circle 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,540,0],ix:2,l:2},a:{a:0,k:[12,-8,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.2,.2,.2],y:[1,1,1]},o:{x:[.167,.167,.167],y:[.167,.167,0]},t:36,s:[0,0,100]},{t:62,s:[120,120,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[424,424],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:36,s:[200]},{t:57,s:[0]}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[12,-8],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:36,op:159,st:-22,ct:1,bm:0},{ddd:0,ind:4,ty:3,nm:"Controller - 1",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,526,0],ix:2,l:2},a:{a:0,k:[50,50,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.48,.48,.2],y:[1,1,1]},o:{x:[.8,.8,.8],y:[0,0,0]},t:30,s:[130,130,100]},{i:{x:[.254,.254,.667],y:[1,1,1]},o:{x:[.166,.166,.333],y:[0,0,0]},t:37.5,s:[111.8,111.8,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.6,.6,.333],y:[0,0,0]},t:52.5,s:[140.4,140.4,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:61,s:[124.8,124.8,100]},{i:{x:[.398,.398,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:69.5,s:[135.2,135.2,100]},{t:78,s:[130,130,100]}],ix:6,l:2}},ao:0,ip:-30,op:151,st:-30,bm:0},{ddd:0,ind:5,ty:4,nm:"Circle_Fill",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[50,60.769,0],ix:2,l:2},a:{a:0,k:[93,57,0],ix:1,l:2},s:{a:1,k:[{i:{x:[0,0,.2],y:[1,1,1]},o:{x:[.167,.167,.167],y:[.167,.167,0]},t:38,s:[0,0,100]},{t:53,s:[76.923,76.923,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[350,350],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[93,57],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[90,90],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:38,op:418,st:-2,ct:1,bm:0},{ddd:0,ind:6,ty:4,nm:"Circle_Outline",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[50,60.769,0],ix:2,l:2},a:{a:0,k:[93,57,0],ix:1,l:2},s:{a:0,k:[76.923,76.923,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[350,350],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[.203921583587,.698039215686,.20000001496,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:12,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[93,57],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:9,s:[0]},{t:33,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:0,s:[0]},{t:33,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:38,st:-2,ct:1,bm:0}],markers=[],animationData={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers},AbhaVerificationStatus=({loading:e=!1,loadingText:s,successText:i})=>jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-w-full pds2-min-h-full pds2-flex pds2-flex-col pds2-items-center pds2-justify-center pds2-text-center",style:{backgroundColor:"#F2F2F2"},children:[jsxRuntimeExports.jsx(Lottie,{animationData,loop:!1,className:"pds2-w-400"}),e?jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading4Semibold pds2-absolute pds2-mt-220",children:s}):jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading4Semibold pds2-absolute pds2-mt-220",children:i})]}),createStoreImpl=e=>{let s;const i=new Set,a=($,et)=>{const ot=typeof $=="function"?$(s):$;if(!Object.is(ot,s)){const rt=s;s=et??(typeof ot!="object"||ot===null)?ot:Object.assign({},s,ot),i.forEach(at=>at(s,rt))}},o=()=>s,_={setState:a,getState:o,getInitialState:()=>b,subscribe:$=>(i.add($),()=>i.delete($))},b=s=e(a,o,_);return _},createStore=e=>e?createStoreImpl(e):createStoreImpl,identity=e=>e;function useStore(e,s=identity){const i=React.useSyncExternalStore(e.subscribe,React.useCallback(()=>s(e.getState()),[e,s]),React.useCallback(()=>s(e.getInitialState()),[e,s]));return React.useDebugValue(i),i}const createImpl=e=>{const s=createStore(e),i=a=>useStore(s,a);return Object.assign(i,s),i},create=e=>e?createImpl(e):createImpl;var SCREEN_NAMES=(e=>(e.LOGIN_WITH_ABHA="LOGIN_WITH_ABHA",e.VERIFY_OTP_LOGIN_WITH_ABHA="VERIFY_OTP_LOGIN_WITH_ABHA",e.CREATE_ABHA_WITH_AADHAAR="CREATE_ABHA_WITH_AADHAAR",e.ABHA_OTP_AND_MOBILE="ABHA_OTP_AND_MOBILE",e.ABHA_PHONE_NUMBER_VERIFICATION="ABHA_PHONE_NUMBER_VERIFICATION",e.AADHAAR_VERIFICATION_STATUS="AADHAAR_VERIFICATION_STATUS",e.ABHA_MOBILE_LINKING_STATUS="ABHA_MOBILE_LINKING_STATUS",e.SELECT_ABHA_FROM_LIST="SELECT_ABHA_FROM_LIST",e.CREATE_ABHA_ADDRESS="CREATE_ABHA_ADDRESS",e.CREATE_EKA_PROFILE="CREATE_EKA_PROFILE",e.SELECT_EKA_PROFILE="SELECT_EKA_PROFILE",e.CREATE_PHR_EKA_PROFILE="CREATE_PHR_EKA_PROFILE",e.GET_ALL_PROFILES="GET_ALL_PROFILES",e.LOGIN_OR_CREATE_ABHA="LOGIN_OR_CREATE_ABHA",e))(SCREEN_NAMES||{});const storeInitState={screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],authTxnId:null,txnId:null,aadhaarOtpSentToHint:null,mobileOtpSentToHint:null,aadhaarVerificationSkipStateStatus:null,ekaSmallToken:null,bottomsheetErrorInfo:null,abhaAddressList:null,loginIdentifierValue:null,abhaAuthFlowMethod:null,selectedAbhaAddress:null,ekaProfileInfo:null,registrationType:null,initAbhaAppMethod:"login_or_create_abha",initAbhaAppMobileNumber:null,initAbhaAppIdentifier:null,initAbhaAppIdentifierType:null,isEkaAppLogin:!1,isDocAppRequest:!1,isLoggedInFromRedirect:!1,clientId:"",oid:"",isApiTriggered:!1,isNewLoginOrCreateFlow:!1,selectedAbhaFlow:"",isInitApiTriggered:!1,identityValue:"",currentStepperIndex:1,mobileIdentifierValue:"",initAbhaAppIdentifierSource:"non_existing",goBackToLogin:!1,identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""},orgIcon:void 0,linkToOrgIcon:void 0},useAuthAbhaStore=create((e,s)=>({screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],setScreen:i=>e(a=>({screen:[...a.screen,i]})),goBackScreen:()=>{const{screen:i}=s();if(i.length===0)return null;e({screen:i.slice(0,-1)}),e(a=>({currentStepperIndex:i.slice(0,-1).at(-1)==="LOGIN_OR_CREATE_ABHA"?1:a.currentStepperIndex-1}))},goBackLoginScreen:()=>{const{isNewLoginOrCreateFlow:i}=s(),a=i?SCREEN_NAMES.LOGIN_OR_CREATE_ABHA:SCREEN_NAMES.LOGIN_WITH_ABHA;e({screen:[a]}),e({currentStepperIndex:1})},setUrlParams:i=>e({urlParams:i}),authTxnId:null,txnId:null,setTxnId:i=>e({txnId:i}),aadhaarOtpSentToHint:null,setAadhaarInitResponse:i=>e(i),mobileOtpSentToHint:null,setMobileInitResponse:i=>e(i),registrationType:null,setRegistrationType:i=>e({registrationType:i}),aadhaarVerificationSkipStateStatus:null,setAadhaarVerificationSkipStateStatus:i=>e({aadhaarVerificationSkipStateStatus:i}),bottomsheetErrorInfo:null,setBottomsheetErrorInfo:i=>e({bottomsheetErrorInfo:i}),ekaSmallToken:null,setEkaSmallToken:i=>e({ekaSmallToken:i}),abhaAddressList:null,setAbhaAddressList:i=>e({abhaAddressList:i}),loginIdentifierValue:null,setLoginIdentifierValue:i=>e({loginIdentifierValue:i}),abhaAuthFlowMethod:ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,setAbhaAuthFlowMethod:i=>e({abhaAuthFlowMethod:i}),selectedAbhaAddress:null,setSelectedAbhaAddress:i=>e({selectedAbhaAddress:i}),ekaProfileInfo:null,setEkaProfileInfo:i=>e({ekaProfileInfo:i}),initAbhaAppMethod:"login_or_create_abha",setInitAbhaAppMethod:i=>e({initAbhaAppMethod:i}),initAbhaAppMobileNumber:null,setInitAbhaAppMobileNumber:i=>e({initAbhaAppMobileNumber:i}),initAbhaAppIdentifier:null,setInitAbhaAppIdentifier:i=>e({initAbhaAppIdentifier:i}),initAbhaAppIdentifierType:null,setInitAbhaAppIdentifierType:i=>e({initAbhaAppIdentifierType:i}),initAbhaAppIdentifierSource:"non_existing",setInitAbhaAppIdentifierSource:i=>e({initAbhaAppIdentifierSource:i}),isEkaAppLogin:!1,setIsEkaAppLogin:i=>e({isEkaAppLogin:i}),isDocAppRequest:!1,setIsDocAppRequest:i=>e({isDocAppRequest:i}),setInitState:i=>e(i),isLoggedInFromRedirect:!1,setIsLoggedInFromRedirect:i=>e({isLoggedInFromRedirect:i}),clientId:"",setClientId:i=>e({clientId:i}),isApiTriggered:!1,setIsApiTriggered:i=>e({isApiTriggered:i}),oid:"",setOid:i=>e({oid:i}),isNewLoginOrCreateFlow:!1,setIsNewLoginOrCreateFlow:i=>e({isNewLoginOrCreateFlow:i}),selectedAbhaFlow:"",setSelectedAbhaFlow:i=>e({selectedAbhaFlow:i}),isInitApiTriggered:!1,setIsInitApiTriggered:i=>e({isInitApiTriggered:i}),identityValue:"",setIdentityValue:i=>e({identityValue:i}),currentStepperIndex:1,setCurrentStepperIndex:i=>e({currentStepperIndex:i}),mobileIdentifierValue:"",setMobileIdentifierValue:i=>e({mobileIdentifierValue:i}),identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""},setIdentifierValue:i=>e(a=>({identifierValue:{...a.identifierValue,...i}})),goBackToLogin:!1,setGoBackToLogin:i=>e({goBackToLogin:i}),orgIcon:void 0,setOrgIcon:i=>e({orgIcon:i}),linkToOrgIcon:void 0,setLinkToOrgIcon:i=>e({linkToOrgIcon:i}),clearAbhaAuthStore:()=>e(storeInitState)}));function fallbackFn(e){return function(...s){}}let mixpanel={notInitiated:!0,track:fallbackFn(),init:fallbackFn(),identify:fallbackFn(),register:fallbackFn()};function pushToMxpDataLayer({data:e}){typeof window<"u"&&(window.mxpDataLayer=window.mxpDataLayer||[],window.mxpDataLayer.push(e))}function sendApiFailedEvent({category:e="api-failed",url:s,params:i}){pushToMxpDataLayer({data:{name:e,data:{url:s,...i}}});const a=e,o={url:s,...i};mixpanel.track(a,o)}const handleSendEvent=({eventName:e,eventData:s})=>{var i;(i=window==null?void 0:window.Eka)!=null&&i.sendEvent&&window.Eka.sendEvent(JSON.stringify({event:e,properties:s}))},getMockAuthVerifyResponse=e=>({skip_state:0,method:AUTH_METHOD.MOBILE,txn_id:"",data:{tokens:{sess:"",refresh:""},profile:{oid:e.oid,fn:e.fn,mn:e.mn,ln:e.ln,gen:e.gen,dob:e.dob,fln:e.fln,at:"",mobile:e.mobile,abha_number:e.abha_number||"","health-ids":e["health-ids"]||[]}}});async function refreshToken(){if(await updateToken())return!0;const s=new Headers;s.append("Content-Type","application/json"),s.set("client-id",GET_CLIENT_ID());const i=JSON.stringify({}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include",mode:"cors"};try{const o=GET_AORTA_GO_HOST();if((await fetch(`${o}/emr/v3/auth/refresh`,{...a,body:JSON.stringify({})})).status===401)return!1}catch{return!1}return!0}async function fetchWrapper(e,s={},i=!0,a=!1){var o,c;try{const g=((c=(o=window==null?void 0:window.Eka)==null?void 0:o.getSessionToken)==null?void 0:c.call(o))||"",_=new Headers(s.headers);let b,$;!_.get("client-id")&&!a&&_.set("client-id",GET_CLIENT_ID()),g&&!_.get("auth")&&_.set("auth",g);const et=GET_EXTRA_HEADERS();et&&Object.keys(et).forEach(rt=>{_.set(rt,et[rt])});const ot=await fetch(e,{...s,headers:_});return window&&($=window.location.pathname,b=_.get("client-id")),ot.status===401&&i&&await refreshToken()?await fetchWrapper(e,s,!1):(ot.status>401&&sendApiFailedEvent({url:e,params:{responseStatus:ot.status}}),ot)}catch(g){throw sendApiFailedEvent({url:e,params:{error:`${g.message||g}`}}),console.error(g),g}}let androidRefreshCB=[];async function refreshCallback(e){androidRefreshCB.forEach(s=>s(!0)),androidRefreshCB=[]}async function updateToken(){var e,s,i,a,o,c;if(typeof window<"u"){if(typeof((e=window==null?void 0:window.Eka)==null?void 0:e.updateToken)=="function")return(s=window.parent)==null||s.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(g=>{var _;androidRefreshCB.push(g),(_=window==null?void 0:window.Eka)==null||_.updateToken("refreshCallback")});if(typeof((o=(a=(i=window==null?void 0:window.webkit)==null?void 0:i.messageHandlers)==null?void 0:a.statusCodeHandler)==null?void 0:o.postMessage)=="function")return(c=window.parent)==null||c.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(g=>{var _,b,$;androidRefreshCB.push(g),($=(b=(_=window==null?void 0:window.webkit)==null?void 0:_.messageHandlers)==null?void 0:b.statusCodeHandler)==null||$.postMessage(JSON.stringify({status:401}))})}return!1}async function postAuthVerifyV2({txn_id:e,code:s,token:i}){const a=new Headers;a.append("Content-Type","application/json");const o=JSON.stringify({txn_id:e,...s?{code:s}:{},...i?{token:i}:{}}),c={method:"POST",headers:a,body:o,redirect:"follow",credentials:"include"};try{const g=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${g}/v2/auth/verify`,c)).json()}catch(g){console.error(g)}return{}}const AbhaAadhaarVerificationStatusScreen=()=>{const e=useAuthAbhaStore(_e=>_e.aadhaarVerificationSkipStateStatus),s=useAuthAbhaStore(_e=>_e.authTxnId),i=useAuthAbhaStore(_e=>_e.ekaSmallToken),a=useAuthAbhaStore(_e=>_e.setScreen),o=useAuthAbhaStore(_e=>_e.abhaAddressList),[c,g]=reactExports.useState(!0),_=useAuthAbhaStore(_e=>_e.clientId),b=useAuthAbhaStore(_e=>_e.isEkaAppLogin),$=useAuthAbhaStore(_e=>_e.oid),et=useAuthAbhaStore(_e=>_e.ekaProfileInfo),ot=["M","F","O","U"],rt=useAuthAbhaStore(_e=>_e.setSelectedAbhaFlow),at=useAuthAbhaStore(_e=>_e.txnId),it=useAuthAbhaStore(_e=>_e.isNewLoginOrCreateFlow),nt=GET_EXTRA_HEADERS(),dt=({name:_e,data:tt={}})=>{var ut,ct;const st={...{login_platform:_,is_eka_app_login:b?"true":"false",is_new_login_or_create_flow:it?"true":"false",txn_id:at||"missing txnId",oid:nt!=null&&nt["X-User-ID"]?"true":"false",access_token:nt!=null&&nt.auth?"true":"false"},...tt};handleSendEvent({eventName:_e,eventData:st}),(ct=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ct.call(ut,_e,st)};return reactExports.useEffect(()=>{var j,st;const _e=new Promise(ut=>{setTimeout(()=>{ut(g(!1))},500)});handleSendEvent({eventName:"page_view",eventData:{page_view:"aadhaar_verified_successful",platform:_}}),(st=(j=window.curio)==null?void 0:j.pushToMixpanel)==null||st.call(j,"page_view",{platform:_,page_view:"aadhaar_verified_successful"});async function tt(){await _e,setTimeout(async()=>{var ut,ct,gt,mt,_t,kt,wt,Et;if(e===ABHA_V3_SKIP_STATES.CONFIRM_MOBILE_OTP)console.log("setting the selected abha flow to aadhaar"),rt("aadhaar"),handleSendEvent({eventName:"abha_aadhaar_verification_status",eventData:{type:"confirm_mobile_otp",platform:_,transactionId:s||"",skipState:"confirm_mobile_otp",minToken:i||"",oid:(et==null?void 0:et.oid)||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}}),(ct=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ct.call(ut,"abha_aadhaar_verification_status",{platform:_,type:"confirm_mobile_otp",transactionId:s||"",skipState:"confirm_mobile_otp",minToken:i||"",oid:(et==null?void 0:et.oid)||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}),a(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);else{if(b){const Lt=ot.includes(et==null?void 0:et.gender)?et==null?void 0:et.gender:void 0,xt={oid:(et==null?void 0:et.oid)||"",fln:(et==null?void 0:et.name)||"",dob:et==null?void 0:et.date_of_birth,gen:Lt,mobile:et==null?void 0:et.mobile,at:"",fn:(et==null?void 0:et.firstname)||"",mn:(et==null?void 0:et.middlename)||"",ln:(et==null?void 0:et.lastname)||"",abha_number:(et==null?void 0:et.abha_number)||"","health-ids":et!=null&&et.abha_address?[et==null?void 0:et.abha_address]:void 0};console.log("inside abha aadhaar verification status auth profile response ",xt);const pt=getMockAuthVerifyResponse(xt);if(console.log("authResponse ",pt),e===ABHA_V3_SKIP_STATES.ABHA_END&&$){if(handleSendEvent({eventName:"abha_aadhaar_verification_status_eka_flow",eventData:{type:"verify",platform:_,transactionId:s||"",skipState:"abha_end",minToken:i||"",oid:$||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}}),(mt=(gt=window.curio)==null?void 0:gt.pushToMixpanel)==null||mt.call(gt,"abha_aadhaar_verification_status_eka_flow",{platform:_,type:"verify",transactionId:s||"",skipState:"abha_end",minToken:i||"",oid:$||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(_t=window.EkaAbha)==null||_t.onAbhaSuccess(JSON.stringify({response:pt}));return}onAbhaSuccess({response:pt}),unMount();return}if(e===ABHA_V3_SKIP_STATES.ABHA_CREATE&&o){a(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}console.log("redirecting to create eka profile for abha address creation -> mobile"),a(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!s||!i)return;const Tt=await postAuthVerifyV2({txn_id:s,token:i});if(Tt.data){if(e===ABHA_V3_SKIP_STATES.ABHA_END){if($){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(kt=window.EkaAbha)==null||kt.onAbhaSuccess(JSON.stringify({response:Tt}));return}onAbhaSuccess({response:Tt}),unMount();return}setIndividualEnv({extraHeaders:{auth:(wt=Tt.data)==null?void 0:wt.tokens.sess}}),a(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(Et=Tt.data)==null?void 0:Et.tokens.sess}}),dt({name:"abha_login_otp_verify_abha_select",data:{type:"verify",platform:_}}),a(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}}},2e3)}tt()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:c,loadingText:"Verifying...",successText:"Aadhaar Verification Successful!"})};var jsxRuntime=jsxRuntimeExports,k3=e=>jsxRuntime.jsx("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M14.9688 7C14.9688 7.5625 14.5312 8 14 8H4.40625L7.6875 11.3125C8.09375 11.6875 8.09375 12.3438 7.6875 12.7188C7.5 12.9062 7.25 13 7 13C6.71875 13 6.46875 12.9062 6.28125 12.7188L1.28125 7.71875C0.875 7.34375 0.875 6.6875 1.28125 6.3125L6.28125 1.3125C6.65625 0.90625 7.3125 0.90625 7.6875 1.3125C8.09375 1.6875 8.09375 2.34375 7.6875 2.71875L4.40625 6H14C14.5312 6 14.9688 6.46875 14.9688 7Z",fill:"currentColor"})}),F3=k3,v4=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z",fill:"currentColor"})}),u4=v4,B4=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z",fill:"currentColor"})}),R4=B4,d6=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"14",viewBox:"0 0 448 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24V232H40c-13.3 0-24 10.7-24 24s10.7 24 24 24H200V440c0 13.3 10.7 24 24 24s24-10.7 24-24V280H408c13.3 0 24-10.7 24-24s-10.7-24-24-24H248V72z"})}),w6=d6,B6=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512",...e,children:jsxRuntime.jsx("path",{d:"M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z",fill:"currentColor"})}),R6=B6,e8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"})}),s8=e8,z8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"14",viewBox:"0 0 448 512",...e,children:jsxRuntime.jsx("path",{d:"M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z",fill:"currentColor"})}),T8=z8,A8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"})}),S8=A8,k8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"})}),F8=k8,D8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z",fill:"currentColor"})}),y8=D8,E7=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z",fill:"currentColor"})}),_7=E7,Z9=e=>jsxRuntime.jsx("svg",{viewBox:"0 0 105 117",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M104.436 33.768C104.144 38.8643 102.1 43.6607 98.4497 47.408L63.4061 83.3816C62.53 84.2809 61.5079 85.1803 60.3398 85.9297C52.3089 91.4757 41.3578 90.4264 34.4951 83.3816C30.2607 79.0348 28.0704 72.8893 28.6545 66.5939C28.8005 62.8467 31.8668 59.9988 35.5172 59.9988C39.3136 59.9988 42.3799 63.1464 42.3799 67.0436C42.3799 69.142 41.5038 70.9407 40.1897 72.2897C40.6277 73.4889 41.3578 74.688 42.3799 75.5873C44.1321 77.386 46.6143 78.4352 49.0966 78.4352C50.7028 78.4352 52.1629 78.1354 53.4771 77.386C54.3531 76.9363 55.0832 76.3368 55.8133 75.5873L73.0431 57.9003L65.8883 50.5557L55.6673 40.0634C53.9151 38.2647 51.4328 37.2155 48.9506 37.2155C46.4683 37.2155 43.9861 38.2647 42.2339 40.0634C41.0658 41.2625 40.1897 42.7614 39.7516 44.2603C41.3578 45.6093 42.5259 47.5579 42.5259 49.8062C42.5259 53.7034 39.4596 56.8511 35.6632 56.8511C32.1589 56.8511 29.0925 54.0032 28.8005 50.4058C27.6324 43.6607 29.6766 36.9157 34.4951 31.9693C38.2915 28.0722 43.402 25.8238 48.9506 25.8238C54.3531 25.8238 59.6097 28.0722 63.4061 31.9693L73.6271 42.4616L80.7819 49.8062L90.7109 39.6137C92.6091 37.6651 93.4852 35.2669 93.4852 32.5689C93.4852 30.1706 92.6091 27.9223 91.0029 26.2735C86.7685 21.477 81.658 17.7298 75.9634 15.0318C69.9768 12.3337 63.6981 10.8348 57.1274 10.8348C44.8622 10.8348 33.473 15.7812 24.7121 24.6247C16.0972 33.4682 11.2787 45.3095 11.2787 57.9003C11.2787 70.4911 16.0972 82.1825 24.7121 91.1759C33.327 100.019 44.8622 104.966 57.1274 104.966C63.6981 104.966 69.9768 103.617 75.9634 100.769C81.658 98.0708 86.7685 94.3236 91.0029 89.5271C94.3613 85.6299 94.2152 79.7842 90.7109 76.037L83.4101 68.5425L91.1489 60.5983L98.4497 68.0928C106.188 76.037 106.481 88.6277 99.1798 97.0216C93.9232 103.017 87.6446 107.664 80.6359 110.961C73.3351 114.409 65.4503 116.058 57.2734 116.058C49.6807 116.058 42.2339 114.559 35.2252 111.561C28.5085 108.563 22.3758 104.366 17.2653 99.12C12.0088 93.724 7.92036 87.5785 5.14608 80.6836C2.22578 73.4889 0.765625 65.8445 0.765625 58.0502C0.765625 50.2559 2.22578 42.6115 5.14608 35.4168C8.06638 28.5219 12.1548 22.2265 17.2653 16.9803C22.5219 11.5843 28.5085 7.38737 35.2252 4.53946C42.2339 1.54166 49.6807 0.042762 57.2734 0.042762C65.4503 0.042762 73.1891 1.84143 80.6359 5.13901C87.7906 8.43659 93.9232 13.0832 99.1798 19.0788C101.37 21.6269 103.122 24.7746 103.852 28.0722C104.29 29.4212 104.436 31.6695 104.436 33.768Z",fill:"#7265E3"})}),I9=Z9,ArrowLeftRegularIcon=F3,CheckSquareSolidIcon=T8,ChevronDownRegularIcon=u4,CircleCheckSolidIcon=S8,CircleExclamationSolidIcon=F8,CircleInfoRegularIcon=R4,CircleInfoSolidIcon=y8,EkaIcon=I9,PhoneSolidIcon=_7,PlusRegularIcon=w6,SquareRegularIcon=R6,XMarkRegularIcon=s8;const usePostAuthVerifyV2=()=>{const e=useAuthAbhaStore(s=>s.setScreen);return useMutation({mutationFn:s=>postAuthVerifyV2(s),onSuccess:(s,{oid:i})=>{var a,o,c;if(i){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(a=window.EkaAbha)==null||a.onAbhaSuccess(JSON.stringify({response:s}));return}onAbhaSuccess({response:s}),unMount();return}(o=s.data)!=null&&o.tokens.sess&&setIndividualEnv({extraHeaders:{auth:(c=s.data)==null?void 0:c.tokens.sess}}),e(SCREEN_NAMES.GET_ALL_PROFILES)}})},Spinner=({className:e="",size:s=40})=>jsxRuntimeExports.jsx("div",{className:`pds2-w-full pds2-flex pds2-justify-center pds2-items-center ${e}`,children:jsxRuntimeExports.jsxs("svg",{className:"pds2-animate-spin",id:"svg-spinner",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 48 48",fill:"currentColor",children:[jsxRuntimeExports.jsx("circle",{cx:"24",cy:"4",r:"2.5",className:"fill-current opacity-100"}),jsxRuntimeExports.jsx("circle",{cx:"12.19",cy:"7.86",r:"2.5",className:"fill-current opacity-90"}),jsxRuntimeExports.jsx("circle",{cx:"5.02",cy:"17.68",r:"2.5",className:"fill-current opacity-80"}),jsxRuntimeExports.jsx("circle",{cx:"5.02",cy:"30.32",r:"2.5",className:"fill-current opacity-70"}),jsxRuntimeExports.jsx("circle",{cx:"12.19",cy:"40.14",r:"2.5",className:"fill-current opacity-60"}),jsxRuntimeExports.jsx("circle",{cx:"24",cy:"44",r:"2.5",className:"fill-current opacity-50"}),jsxRuntimeExports.jsx("circle",{cx:"35.81",cy:"40.14",r:"2.5",className:"fill-current opacity-40"}),jsxRuntimeExports.jsx("circle",{cx:"42.98",cy:"30.32",r:"2.5",className:"fill-current opacity-30"}),jsxRuntimeExports.jsx("circle",{cx:"42.98",cy:"17.68",r:"2.5",className:"fill-current opacity-20"}),jsxRuntimeExports.jsx("circle",{cx:"35.81",cy:"7.86",r:"2.5",className:"fill-current opacity-10"})]})}),Pds2Button=({title:e,textColor:s,size:i,state:a,buttonColor:o="",isLoading:c,className:g,onClick:_,width:b,buttonIconPosition:$="right",IconComponent:et})=>jsxRuntimeExports.jsx("button",{title:e,className:`${g} pds2-px-24 pds2-py-16 pds2-text-text-invert ${o||"pds2-bg-bg-brand-01"} pds2-flex pds2-justify-center pds2-items-center pds2-rounded-16 ${c?"pds2-pointer-events-none pds2-cursor-not-allowed":""} disabled:pds2-pointer-events-none disabled:pds2-bg-bg-04 disabled:pds2-text-text-03 ${a==="disabled"?"":"ripple"}`,onClick:_,...b?{style:{width:b}}:null,disabled:a==="disabled",children:c?jsxRuntimeExports.jsx(Spinner,{size:24,className:s}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[et&&$==="left"?jsxRuntimeExports.jsx(et,{}):null,jsxRuntimeExports.jsx("div",{className:`${s} Body1Semibold`,children:e}),et&&$==="right"?jsxRuntimeExports.jsx(et,{}):null]})}),AbhaHeader=({prefixIcon:e=jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"}),title:s,suffixIcon:i=jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"}),className:a=""})=>jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-items-center pds2-justify-between pds2-w-full pds2-p-16 pds2-sticky pds2-top-0 pds2-z-50 pds2-bg-bg-white ${a}`,children:[e,jsxRuntimeExports.jsx("div",{className:"pds2-flex-1 Heading4Semibold pds2-text-center pds2-text-text-black",children:s}),i]}),BottomSheetWrapper=({isOpen:e,setIsOpen:s,children:i,shouldCloseOnClickOutside:a=!0})=>jsxRuntimeExports.jsxs("div",{className:`pds2-absolute pds2-inset-0 pds2-z-50 pds2-transition-opacity pds2-duration-300 ${e?"pds2-opacity-100 pds2-pointer-events-auto":"pds2-opacity-0 pds2-pointer-events-none pds2-hidden"}`,children:[jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-inset-0 pds2-bg-text-black pds2-bg-opacity-60 pds2-transition-opacity pds2-duration-300",onClick:()=>a&&s(!1)}),jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-w-full pds2-bg-bg-white pds2-rounded-t-16 pds2-shadow-lg pds2-p-4 pds2-transition-all pds2-duration-300 pds2-ease-out",style:{transform:e?"translateY(0)":"translateY(100%)"},children:i})]}),AbhaBottomSheet$1=({description:e,subText:s,submitText:i,onSubmitClick:a,iconUrl:o,isBottomSheetOpen:c,onBottomSheetClose:g,shouldCloseOnClickOutside:_=!0})=>jsxRuntimeExports.jsx(BottomSheetWrapper,{isOpen:c,setIsOpen:g,shouldCloseOnClickOutside:_,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-p-16 pds2-text-center",children:[_?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-items-center",children:jsxRuntimeExports.jsx("button",{onClick:g,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(XMarkRegularIcon,{className:"pds2-w-18 pds2-h-18 pds2-text-text-03"})})}):null,jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[o&&jsxRuntimeExports.jsx("span",{className:"pds2-flex pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:o,className:"pds2-w-64 pds2-h-64",alt:"Bottom sheet icon"})}),jsxRuntimeExports.jsx("div",{className:"Heading4Semibold pds2-text-text-01 pds2-py-16 pds2-text-18",children:e}),s&&jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-text-03",children:s}),jsxRuntimeExports.jsx(Pds2Button,{title:i,onClick:a,state:"enabled",className:"pds2-w-full"})]})]})}),AbhaErrorBottomSheet=({onSubmitClick:e})=>{const s=useAuthAbhaStore(o=>o.bottomsheetErrorInfo),i=useAuthAbhaStore(o=>o.setBottomsheetErrorInfo),a=()=>{i(null)};return jsxRuntimeExports.jsx(AbhaBottomSheet$1,{description:(s==null?void 0:s.title)||"Something went wrong",subText:(s==null?void 0:s.description)||"Something went wrong",submitText:(s==null?void 0:s.cta.title)||"Retry",onSubmitClick:e,iconUrl:s==null?void 0:s.img,isBottomSheetOpen:!!s,onBottomSheetClose:a,shouldCloseOnClickOutside:!1})},SpacedInputComponent=({numberOfInputs:e,length:s=1,placeholder:i="",setIsValid:a,onSubmit:o,error:c,containerClassName:g,setError:_,initialValues:b,setAadhaarValue:$,disabled:et=!1})=>{const ot=reactExports.useRef([]),[rt,at]=reactExports.useState(b||Array(e).fill(""));reactExports.useEffect(()=>{if(b&&b.length===e){const j=b.join(""),st=rt.join("");j!==st&&(at(b),a==null||a(j.length===e*s))}},[b,e,s]);const it=(j,st)=>{var _t;if(et)return;_&&_(null);const ut=j.target.value;if(isNaN(Number(ut)))return;if(ut.trim().length===e*s){_e({otpValue:ut,index:0});return}const gt=[...rt];gt[st]=ut;const mt=gt.join("").length;mt>e*s||(at(gt),$==null||$(gt.join("")),mt===e*s?(a==null||a(!0),o({inputVal:gt.join("")}),$&&mt===12&&$(gt.join(""))):a==null||a(!1),ut.length===s&&st<e-1&&((_t=ot.current[st+1])==null||_t.focus()))},nt=(j,st)=>{var ut;et||j.key==="Backspace"&&!rt[st]&&st>0&&(j.preventDefault(),(ut=ot.current[st-1])==null||ut.focus())},dt=(j,st)=>{if(et)return;j.preventDefault();const ut=j.clipboardData.getData("text").replace(/\D/g,"");if(!ut)return;const ct=e*s,gt=ut.slice(0,ct);_e({otpValue:gt,index:st})},_e=({otpValue:j,index:st})=>{var mt,_t;const ut=j.match(new RegExp(`.{1,${s}}`,"g"))||[],ct=[...rt];ut.forEach((kt,wt)=>{st+wt<e&&(ct[st+wt]=kt)}),at(ct);const gt=ct.findIndex((kt,wt)=>wt>=st&&!kt);gt!==-1?(mt=ot.current[gt])==null||mt.focus():(_t=ot.current[e-1])==null||_t.focus(),ct.join("").length===e*s?(a==null||a(!0),o({inputVal:ct.join("")}),$&&ct.join("").length===12&&$(ct.join(""))):a==null||a(!1)},tt=reactExports.useMemo(()=>{const j=rt.findIndex(st=>st.length<s);return j!==-1?j:rt.length>0?rt.length-1:0},[rt,s]);return jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-justify-center pds2-items-center pds2-space-x-8 ${g}`,children:Array.from({length:e}).map((j,st)=>jsxRuntimeExports.jsx("label",{className:`focus-within:pds2-border-border-brand-01 pds2-border ${c?"pds2-border-border-error":"pds2-border-border-03"} pds2-rounded-12 pds2-bg-bg-white`,children:jsxRuntimeExports.jsx("input",{autoFocus:st===tt&&!et,placeholder:i,value:rt[st],type:"text",inputMode:"numeric",pattern:"[0-9]*",onPaste:ut=>dt(ut,st),ref:ut=>{ut&&(ot.current[st]=ut)},onChange:ut=>it(ut,st),onKeyDown:ut=>nt(ut,st),disabled:et,autoComplete:"one-time-code",className:"pds2-w-full pds2-text-center pds2-h-56 pds2-rounded-12 pds2-outline-none pds2-bg-transparent disabled:pds2-text-text-04"},st)},st))})};function formatTime(e){const s=Math.floor(e/60),i=e%60;return`${s.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}const ResendTimer=({time:e,onResendOtpClick:s,error:i})=>{const[a,o]=reactExports.useState(e);return reactExports.useEffect(()=>{const c=setInterval(()=>{o(a-1)},1e3);return()=>clearInterval(c)},[a]),a>0?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsxs("div",{className:"pds2-text-text-04",children:[jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:"Resend OTP in"})," ",jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:formatTime(a)})]})}):jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-text-brand cursor-pointer",onClick:()=>{o(e),s()},children:"Resend OTP"})})},AbhaOtpCard=({otpSentToText:e,onOtpCompletion:s,onResendOtpClick:i,setIsValid:a,error:o,setError:c,prefixIcon:g=jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-w-48"})})=>{const _=useAuthAbhaStore(et=>et.goBackScreen),b=useAuthAbhaStore(et=>et.screen),$=useAuthAbhaStore(et=>et.setGoBackToLogin);return reactExports.useEffect(()=>{$(!1)},[]),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-bg-white pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-space-x-16",children:[jsxRuntimeExports.jsxs("div",{className:"Body1Regular pds2-text-text-01 pds2-flex-1",children:[e,jsxRuntimeExports.jsx("sup",{className:"pds2-text-text-error Body3Semibold",children:" *"})]}),g]}),jsxRuntimeExports.jsx(SpacedInputComponent,{numberOfInputs:6,length:1,onSubmit:({inputVal:et})=>s({otp:et}),setIsValid:a,error:o,setError:c}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex",children:[jsxRuntimeExports.jsx(ResendTimer,{time:60,onResendOtpClick:i,error:o}),b.length===2&&jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-text-brand cursor-pointer",onClick:()=>{_(),$(!0)},children:"Change"})]}),o&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-text-error",children:o})]})};async function postAbdmLoginVerify({txn_id:e,otp:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,otp:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/profile/login/verify`,o)).json()}catch(c){console.error("postAbdmLoginVerify error =>",c)}return{}}const usePostAbdmLoginVerify=()=>{const e=useAuthAbhaStore(s=>s.setSelectedAbhaAddress);return useMutation({mutationFn:({txn_id:s,otp:i})=>postAbdmLoginVerify({otp:i,txn_id:s}),onSuccess(s){s.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],s.profile),e(s.profile.abha_address))}})},Pds2CustomButton=({prefixIcon:e,title:s,suffixIcon:i,className:a="",onClick:o,width:c="pds2-w-full",padding:g,isRippleStyle:_=!0})=>jsxRuntimeExports.jsxs("button",{onClick:o,className:`pds2-flex pds2-flex-row pds2-items-center pds2-gap-12 ${g||"pds2-p-16"} pds2-rounded-16 pds2-text-bg-invert pds2-bg-bg-white pds2-border pds2-border-border-03 ${_&&"ripple"} ${c} ${a}`,children:[e||null,jsxRuntimeExports.jsx("span",{className:"Body1Medium",children:s}),i||null]}),ExitPopup=({open:e,setOpen:s})=>{const i=useAuthAbhaStore(at=>at.goBackLoginScreen),a=useAuthAbhaStore(at=>at.clientId),o=useAuthAbhaStore(at=>at.isEkaAppLogin),c=useAuthAbhaStore(at=>at.isNewLoginOrCreateFlow),g=useAuthAbhaStore(at=>at.setAbhaAuthFlowMethod),_=useAuthAbhaStore(at=>at.txnId),b=useAuthAbhaStore(at=>at.setGoBackToLogin),$=useAuthAbhaStore(at=>at.screen),et=useAuthAbhaStore(at=>at.abhaAuthFlowMethod),ot=({name:at,data:it={}})=>{var _e,tt;const dt={...{login_platform:a,is_eka_app_login:o?"true":"false",is_new_login_or_create_flow:c?"true":"false",txn_id:_||"missing txnId"},...it};handleSendEvent({eventName:at,eventData:dt}),(tt=(_e=window.curio)==null?void 0:_e.pushToMixpanel)==null||tt.call(_e,at,dt)},rt=()=>{ot({name:"abha_exit_popup_confirmed",data:{action:"go_back_to_login_screen"}}),$.at(-2)===SCREEN_NAMES.SELECT_ABHA_FROM_LIST&&et===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&g(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),b(!0),i()};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:e?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("div",{className:"pds2-h-full pds2-z-50 pds2-flex pds2-items-center pds2-justify-center pds2-absolute pds2-top-0 pds2-inset-0 pds2-bg-text-black pds2-bg-opacity-60 pds2-transition-opacity pds2-duration-300",onClick:()=>s(!1),children:jsxRuntimeExports.jsx("div",{className:"pds2-z-50 pds2-absolute pds2-top pds2-px-24",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-16 pds2-bg-bg-white pds2-rounded-16 pds2-w-full pds2-p-24",children:[jsxRuntimeExports.jsx("h2",{className:"pds2-text-text-black pds2-font-500 pds2-text-18",children:"Are you sure you want to exit?"}),jsxRuntimeExports.jsx("p",{className:"pds2-text-text-03 pds2-text-14 pds2-font-400",children:"Confirm if you'd like to exit. Any unsaved changes may be lost."}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-end pds2-gap-x-8",children:[jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Not yet",padding:"pds2-px-12 pds2-py-8",className:"pds2-text-text-error pds2-font-600 pds2-text-16 pds2-border-none",width:"pds2-w-fit",onClick:()=>s(!1)}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Yes, I'm done",padding:"pds2-px-12 pds2-py-8",className:"pds2-text-text-brand pds2-font-600 pds2-text-16 pds2-border-none",width:"pds2-w-fit",onClick:rt})]})]})})})}):null})},AbhaStepper=()=>{const e=useAuthAbhaStore($=>$.screen),s=useAuthAbhaStore($=>$.currentStepperIndex),i=useAuthAbhaStore($=>$.setCurrentStepperIndex),a=e[e.length-1],o=e.length>1&&e[e.length-2],c=useAuthAbhaStore($=>$.abhaAuthFlowMethod),g={1:["LOGIN_WITH_ABHA","LOGIN_OR_CREATE_ABHA","CREATE_ABHA_WITH_AADHAAR"],2:["VERIFY_OTP_LOGIN_WITH_ABHA","ABHA_OTP_AND_MOBILE"],3:["ABHA_PHONE_NUMBER_VERIFICATION","SELECT_ABHA_FROM_LIST","SELECT_EKA_PROFILE","CREATE_ABHA_ADDRESS","CREATE_ABHA_WITH_AADHAAR","CREATE_PHR_EKA_PROFILE","CREATE_EKA_PROFILE"]};reactExports.useEffect(()=>{var et;const $=(et=Object.entries(g).find(([ot,rt])=>rt.includes(a)))==null?void 0:et[0];if($){if(c==="abha_number"||c==="phr_address"){if(a==="VERIFY_OTP_LOGIN_WITH_ABHA"){i(3);return}}else if((o==="LOGIN_OR_CREATE_ABHA"||o==="LOGIN_WITH_ABHA"||o==="CREATE_ABHA_WITH_AADHAAR")&&e.length>1){i(2);return}Number($)>=s&&i(Number($))}},[e]);const _=Array.from({length:4},($,et)=>{const ot=et+1;return jsxRuntimeExports.jsx("div",{className:`pds2-relative pds2-p-0 pds2-text-center pds2-h-23 pds2-w-23 pds2-rounded-11 pds2-transition-all pds2-ease-in-out pds2-duration-250 pds2-text-bg-white ${ot<=s?"pds2-bg-text-brand":"pds2-bg-bg-secondary"}`,children:ot},ot)}),b=s===1?20:s===2?50:s===3?80:100;return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-01 pds2-flex pds2-w-full pds2-place-items-center pds2-justify-center pds2-relative pds2-px-60 pds2-py-20 pds2-cursor-default",children:[jsxRuntimeExports.jsx("div",{className:"pds2-cursor-default pds2-flex pds2-flex-row pds2-justify-between pds2-items-center pds2-gap-5 pds2-h-auto pds2-w-full pds2-z-10",children:_}),jsxRuntimeExports.jsx("progress",{className:"abhaStepper pds2-absolute pds2-w-full pds2-h-2 pds2-px-60",max:100,value:b})]})};async function postAbdmLoginInit({method:e,identifier:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({method:e,identifier:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/profile/login/init`,o)).json()}catch(c){console.error("postAbdmLoginInit error =>",c)}return{}}const AbhaLoginOtpVerifyScreen=()=>{const e=useAuthAbhaStore(ft=>ft.authTxnId),s=useAuthAbhaStore(ft=>ft.txnId),i=useAuthAbhaStore(ft=>ft.orgIcon),a=useAuthAbhaStore(ft=>ft.setAbhaAddressList),o=useAuthAbhaStore(ft=>ft.clearAbhaAuthStore),c=useAuthAbhaStore(ft=>ft.aadhaarOtpSentToHint),g=useAuthAbhaStore(ft=>ft.loginIdentifierValue),_=useAuthAbhaStore(ft=>ft.abhaAuthFlowMethod),b=useAuthAbhaStore(ft=>ft.setScreen),$=useAuthAbhaStore(ft=>ft.goBackLoginScreen),et=useAuthAbhaStore(ft=>ft.setTxnId),ot=useAuthAbhaStore(ft=>ft.setBottomsheetErrorInfo),[rt,at]=reactExports.useState(!1),it=useAuthAbhaStore(ft=>ft.setEkaProfileInfo),nt=useAuthAbhaStore(ft=>ft.setAadhaarVerificationSkipStateStatus),dt=useAuthAbhaStore(ft=>ft.setSelectedAbhaAddress),[_e,tt]=reactExports.useState(""),[j,st]=reactExports.useState(!1),[ut,ct]=reactExports.useState(""),[gt,mt]=reactExports.useState(LOADING_STATE.IDLE),_t=["M","F","O","U"],{mutateAsync:kt}=usePostAuthVerifyV2(),{mutateAsync:wt}=usePostAbdmLoginVerify(),Et=useAuthAbhaStore(ft=>ft.isEkaAppLogin),Tt=useAuthAbhaStore(ft=>ft.clientId);useAuthAbhaStore(ft=>ft.oid);const Lt=useAuthAbhaStore(ft=>ft.isNewLoginOrCreateFlow),xt=GET_EXTRA_HEADERS(),pt=({name:ft,data:Ct={}})=>{var Ot,Mt;const bt={...{login_platform:Tt,is_eka_app_login:Et?"true":"false",is_new_login_or_create_flow:Lt?"true":"false",txn_id:s||"missing txnId",oid:xt!=null&&xt["X-User-ID"]?"true":"false",access_token:xt!=null&&xt.auth?"true":"false"},...Ct};handleSendEvent({eventName:ft,eventData:bt}),(Mt=(Ot=window.curio)==null?void 0:Ot.pushToMixpanel)==null||Mt.call(Ot,ft,bt)};reactExports.useEffect(()=>{pt({name:"page_view",data:{page_view:"abha_login_otp_verify",platform:Tt}})},[]);const vt=()=>{pt({name:"abha_login_otp_verify_error_bottomsheet_dismissed",data:{platform:Tt}}),$();const ft=useAuthAbhaStore.getState().isEkaAppLogin;o(),useAuthAbhaStore.setState({isEkaAppLogin:ft})},lt=({otp:ft})=>{tt(ft),pt({name:"abha_login_otp_completion",data:{type:"verify",platform:Tt,txn_id:s,otp_entered:!0,method:_}}),ht(ft)},ht=async ft=>{var Vt,zt,It,Nt,Pt,qt;if(!s){pt({name:"abha_login_otp_verify_txnId_not_found",data:{type:"verify",platform:Tt,txn_id:s||"missing_txn_id",txn_id_exists:!!s,method:(_==null?void 0:_.toLowerCase())||"unknown_method"}});return}pt({name:"abha_login_otp_verify",data:{type:"verify",platform:Tt,txn_id:s}}),mt(LOADING_STATE.LOADING);const{abha_profiles:Ct=[],skip_state:St,profile:bt,error:Ot,action:Mt,eka:Rt}=await wt({otp:ft,txn_id:s});if(Mt){pt({name:"abha_login_otp_verify_error_action",data:{type:"verify",platform:Tt,error_action:Mt||"no_error_action",error_message:Ot||"no_error_message",error_action_exists:!!Mt,error_message_exists:!!Ot}}),ot(Mt);return}if(Ot){pt({name:"abha_login_otp_verify_error",data:{type:"verify",platform:Tt,error_message:Ot||"unknown_error",error_message_exists:!!Ot}}),mt(LOADING_STATE.REJECTED),ct(Ot);return}if(!St){ct("Skip State is missing"),pt({name:"abha_login_skip_state_missing",data:{platform:Tt,skipState:St||"missing_skip_state",skipState_exists:!!St}});return}nt(St),bt&&dt(bt.abha_address),bt&&it({date_of_birth:`${bt.year_of_birth}-${String(bt.month_of_birth).padStart(2,"0")}-${String(bt.day_of_birth).padStart(2,"0")}`,firstname:bt.first_name,lastname:bt.last_name,pincode:bt.pincode,gender:bt.gender,name:bt.first_name+" "+bt.last_name,mobile:bt.mobile,oid:Rt==null?void 0:Rt.oid,abha_address:bt==null?void 0:bt.abha_address,abha_number:bt==null?void 0:bt.abha_number});const Kt=_t.includes(bt==null?void 0:bt.gender)?bt==null?void 0:bt.gender:void 0,Wt={oid:(Rt==null?void 0:Rt.oid)||"",fln:(bt==null?void 0:bt.first_name)+" "+(bt==null?void 0:bt.last_name),dob:`${bt==null?void 0:bt.year_of_birth}-${String(bt==null?void 0:bt.month_of_birth).padStart(2,"0")}-${String(bt==null?void 0:bt.day_of_birth).padStart(2,"0")}`,gen:Kt,mobile:bt==null?void 0:bt.mobile,fn:(bt==null?void 0:bt.first_name)||"",mn:(bt==null?void 0:bt.middle_name)||"",ln:(bt==null?void 0:bt.last_name)||"","health-ids":bt!=null&&bt.abha_address?[bt.abha_address]:void 0,abha_number:(bt==null?void 0:bt.abha_number)||""};if(St===ABHA_V3_SKIP_STATES.ABHA_END){if(Et){if(pt({name:"abha_login_otp_verify_eka_app",data:{type:"verify",platform:Tt,txn_id:s,skip_state:St}}),mt(LOADING_STATE.RESOLVED),!Rt){pt({name:"abha_login_otp_verify_eka_app_error",data:{type:"null_oid",platform:Tt,txn_id:s||"missing_txn_id",txn_id_exists:!!s,eka:Rt||"missing_eka",eka_exists:!!Rt,skip_state:St||"missing_skip_state",skip_state_exists:!!St}}),mt(LOADING_STATE.REJECTED),ct("Something went wrong, please try again");return}const er=getMockAuthVerifyResponse(Wt);if(pt({name:"abha_login_otp_verify_success",data:{type:"verify",platform:Tt,txn_id:s,skip_state:St,method:_}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Vt=window.EkaAbha)==null||Vt.onAbhaSuccess(JSON.stringify({response:er}));return}onAbhaSuccess({response:er}),unMount();return}if(!Rt||!Rt.min_token||!e){pt({name:"abha_login_otp_verify_eka_error",data:{type:"verify",platform:Tt,eka:Rt||"missing_eka",eka_exists:!!Rt,auth_txnId:e||"missing_auth_txnId",auth_txnId_exists:!!e,skip_state:St||"missing_skip_state",skip_state_exists:!!St}}),mt(LOADING_STATE.REJECTED),ct("Something went wrong, please try again");return}const Gt=await kt({txn_id:e,token:Rt.min_token,...Rt.oid?{oid:Rt.oid}:null});if(!Gt.data){pt({name:"abha_login_otp_verify_auth_verify_error",data:{type:"verify",platform:Tt,skip_state:St||"missing_skip_state",skip_state_exists:!!St,auth_verify_data_exists:!1}}),mt(LOADING_STATE.REJECTED),ct(((zt=Gt.error)==null?void 0:zt.message)||"Something went wrong, please try again");return}pt({name:"abha_login_otp_verify_abha_end_success",data:{type:"verify",platform:Tt,txn_id:s,skip_state:St}}),mt(LOADING_STATE.RESOLVED);return}if(St===ABHA_V3_SKIP_STATES.ABHA_SELECT&&Ct.length>0){pt({name:"abha_login_otp_verify_abha_select",data:{type:"verify",platform:Tt}}),b(SCREEN_NAMES.SELECT_ABHA_FROM_LIST),a(Ct);return}if(St===ABHA_V3_SKIP_STATES.ABHA_CREATE&&_===ABHA_AUTH_FLOW_METHOD.MOBILE){b(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(St===ABHA_V3_SKIP_STATES.ABHA_CREATE){b(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}if(Et){if(!Rt){pt({name:"abha_login_otp_verify_eka_failed",data:{type:"verify",platform:Tt,txn_id:e||"missing_authTxnId",txn_id_exists:!!e}}),mt(LOADING_STATE.REJECTED),ct("Something went wrong, please try again");return}const Gt=getMockAuthVerifyResponse(Wt);if(mt(LOADING_STATE.RESOLVED),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(It=window.EkaAbha)==null||It.onAbhaSuccess(JSON.stringify({response:Gt}));return}onAbhaSuccess({response:Gt}),unMount();return}if(!St||!(Rt!=null&&Rt.min_token)){mt(LOADING_STATE.REJECTED),ct(Ot||"Something went wrong, please try again"),Mt&&ot(Mt);return}if(Rt.min_token&&e){const Gt=await kt({txn_id:e,token:Rt.min_token});Gt.data?pt({name:"abha_login_auth_verify_success",data:{platform:Tt,txn_id:e}}):(pt({name:"abha_login_auth_verify_failed",data:{platform:Tt,txn_id:e||"missing_authTxnId",txn_id_exists:!!e,error_message:((Nt=Gt==null?void 0:Gt.error)==null?void 0:Nt.message)||"unknown_error",error_message_exists:!!((Pt=Gt==null?void 0:Gt.error)!=null&&Pt.message)}}),mt(LOADING_STATE.REJECTED),ct(((qt=Gt.error)==null?void 0:qt.message)||"Something went wrong, please try again"))}mt(LOADING_STATE.RESOLVED)},yt=async()=>{if(g&&_){const{txn_id:ft}=await postAbdmLoginInit({method:_,identifier:g});pt({name:"abha_login_verify_resend_otp",data:{method:_,platform:Tt,txn_id:ft}}),ft&&et(ft)}};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-bg-white",children:[jsxRuntimeExports.jsx(AbhaHeader,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>at(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),title:"OTP Verification",suffixIcon:i?jsxRuntimeExports.jsx("img",{src:i,className:"pds2-w-20 pds2-h-20"}):jsxRuntimeExports.jsx(EkaIcon,{className:"pds2-w-20 pds2-h-20"}),className:"pds2-border-b-1 pds2-border-bg-seperator-dark"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-bg-01",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:c||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:lt,onResendOtpClick:yt,error:ut,setIsValid:ft=>{ut&&ct(null),st(ft)},prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abdm-abha-icon",className:"pds2-w-48"})})}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full pds2-border pds2-border-border-brand-02",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!j||gt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>ht(_e),isLoading:gt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:vt}),jsxRuntimeExports.jsx(ExitPopup,{open:rt,setOpen:at})]})};async function getProfilesPatient(){const e=new Headers;e.append("Content-Type","application/json");const s={method:"GET",headers:e,redirect:"follow",credentials:"include"},i=GET_EXTRA_HEADERS(),a=i==null?void 0:i["X-User-ID"];if(!a)return{};try{const o=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${o}/profiles/v1/patient/${a}`,s)).json()}catch(o){return console.error("profilePhrUser error =>",o),{}}}const AbhaMobileLinkingStatusScreen=()=>{const e=useAuthAbhaStore(_e=>_e.aadhaarVerificationSkipStateStatus),s=useAuthAbhaStore(_e=>_e.authTxnId),i=useAuthAbhaStore(_e=>_e.ekaSmallToken),a=useAuthAbhaStore(_e=>_e.oid),o=useAuthAbhaStore(_e=>_e.setScreen),[c,g]=reactExports.useState(!0),_=useAuthAbhaStore(_e=>_e.setEkaProfileInfo),b=useAuthAbhaStore(_e=>_e.clientId),$=useAuthAbhaStore(_e=>_e.isEkaAppLogin),et=useAuthAbhaStore(_e=>_e.ekaProfileInfo),ot=["M","F","O","U"],rt=reactExports.useRef(!1),at=useAuthAbhaStore(_e=>_e.isNewLoginOrCreateFlow),it=useAuthAbhaStore(_e=>_e.txnId),nt=GET_EXTRA_HEADERS(),dt=({name:_e,data:tt={}})=>{var ut,ct;const st={...{login_platform:b,is_eka_app_login:$?"true":"false",is_new_login_or_create_flow:at?"true":"false",txn_id:it||"missing txnId",oid:nt!=null&&nt["X-User-ID"]?"true":"false",access_token:nt!=null&&nt.auth?"true":"false"},...tt};handleSendEvent({eventName:_e,eventData:st}),(ct=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ct.call(ut,_e,st)};return reactExports.useEffect(()=>{const _e=new Promise(j=>{setTimeout(()=>{j(g(!1))},500)});dt({name:"page_view",data:{page_view:"mobile_verified_successful",platform:b}});async function tt(){await _e,setTimeout(async()=>{var j,st,ut,ct,gt,mt;if(e===ABHA_V3_SKIP_STATES.ABHA_CREATE||e===ABHA_V3_SKIP_STATES.ABHA_END){if(dt({name:"abha_create_mobile_initiate",data:{platform:b,oid_received:a,txn_id:it,skip_state:e}}),a&&!rt.current){const kt=await getProfilesPatient();rt.current=!0,kt&&_({date_of_birth:kt.dob,firstname:kt.fn,lastname:kt.ln,pincode:"",gender:kt.gen,oid:kt==null?void 0:kt.oid,middlename:kt==null?void 0:kt.mn,abha_address:(j=kt==null?void 0:kt["health-ids"])==null?void 0:j[0],abha_number:kt==null?void 0:kt.abha_number})}if($&&e===ABHA_V3_SKIP_STATES.ABHA_END&&a){const kt=ot.includes(et==null?void 0:et.gender)?et==null?void 0:et.gender:void 0,wt={oid:(et==null?void 0:et.oid)||"",fln:(et==null?void 0:et.name)||"",dob:et==null?void 0:et.date_of_birth,gen:kt,mobile:et==null?void 0:et.mobile,fn:(et==null?void 0:et.firstname)||"",mn:(et==null?void 0:et.middlename)||"",ln:(et==null?void 0:et.lastname)||"","health-ids":et!=null&&et.abha_address?[et.abha_address]:void 0,abha_number:(et==null?void 0:et.abha_number)||""};dt({name:"abha_mobile_linking_success",data:{type:"unmount",isEkaAppLogin:$,skip_state:e}});const Et=getMockAuthVerifyResponse(wt);if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(st=window.EkaAbha)==null||st.onAbhaSuccess(JSON.stringify({response:Et}));return}onAbhaSuccess({response:Et}),unMount();return}if($&&e===ABHA_V3_SKIP_STATES.ABHA_CREATE){dt({name:"navigate_to_screen",data:{destination:"create_eka_profile",reason:"abha_create_from_mobile_flow"}}),o(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!s||!i){dt({name:"authTxnId_or_minToken_not_found",data:{platform:b,type:"error",auth_txnId:s||"missing_authTxnId",auth_txnId_exists:!!s,ekaSmallToken_exists:!!i}});return}const _t=await postAuthVerifyV2({txn_id:s,token:i});if(_t.data){if(setIndividualEnv({extraHeaders:{auth:(ut=_t.data)==null?void 0:ut.tokens.sess}}),e===ABHA_V3_SKIP_STATES.ABHA_END){if(a){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(ct=window.EkaAbha)==null||ct.onAbhaSuccess(JSON.stringify({response:_t}));return}onAbhaSuccess({response:_t}),unMount();return}setIndividualEnv({extraHeaders:{auth:(gt=_t.data)==null?void 0:gt.tokens.sess}}),dt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"abha_end_with_no_oid"}}),o(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(mt=_t.data)==null?void 0:mt.tokens.sess}}),dt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"auth_verify_success"}}),o(SCREEN_NAMES.GET_ALL_PROFILES);return}}},2e3)}tt()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:c,loadingText:"Verifying...",successText:"Successfully linked mobile number with ABHA!"})},Pds2Header=({prefixIcon:e,title:s,suffixIcon:i,className:a=""})=>jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-items-center pds2-justify-between pds2-w-full pds2-p-16 pds2-sticky pds2-top-0 pds2-z-50 ${a}`,children:[e||jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("div",{className:"pds2-flex-1 Heading4Semibold pds2-text-center pds2-text-text-black",children:s}),i||jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"})]}),Pds2InputField=({PrefixComponent:e,placeholder:s,value:i,onChange:a,borderStyle:o="",borderRadius:c="pds2-rounded-16",padding:g="pds2-px-24 pds2-py-16",textColor:_="pds2-text-text-black",textStyle:b="",onKeyDown:$=()=>{},type:et="text",label:ot,isMandatory:rt,maxDate:at,error:it,autoCapitalize:nt="off",autoCorrect:dt="off",disabled:_e,inputMode:tt,autoFocus:j,pattern:st,maxLength:ut,autoComplete:ct})=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-8 pds2-w-full",children:[ot?jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-text-04",children:[ot,rt?jsxRuntimeExports.jsx("span",{className:"pds2-text-text-error Body3Semibold",children:"*"}):null]}):null,jsxRuntimeExports.jsxs("label",{className:`${g} ${c} ${o} pds2-border ${it?"pds2-border-text-error pds2-border-2":"pds2-border-border-03"} pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-w-full pds2-bg-bg-white pds2-text-text-invert`,children:[e||null,jsxRuntimeExports.jsx("input",{className:`${_} ${b} pds2-outline-none pds2-w-full pds2-bg-transparent disabled:pds2-text-text-04`,placeholder:s||"Enter Value",value:i,onChange:a,type:et,max:et==="date"&&at?at:void 0,onKeyDown:$,autoCapitalize:nt,autoCorrect:dt,disabled:_e,inputMode:tt,autoFocus:j,pattern:st,maxLength:ut,required:rt,autoComplete:ct})]})]}),PatientPds2InputField=e=>jsxRuntimeExports.jsx(Pds2InputField,{...e,textStyle:"Body1Medium",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2"}),Pds2Spinner=({className:e="",size:s=40})=>jsxRuntimeExports.jsx("div",{className:`pds2-w-fit pds2-flex pds2-justify-center pds2-items-center ${e}`,children:jsxRuntimeExports.jsxs("svg",{className:"pds2-animate-spin",id:"svg-spinner",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 48 48",fill:"currentColor",children:[jsxRuntimeExports.jsx("circle",{cx:"24",cy:"4",r:"2.5",className:"fill-current opacity-100"}),jsxRuntimeExports.jsx("circle",{cx:"12.19",cy:"7.86",r:"2.5",className:"fill-current opacity-90"}),jsxRuntimeExports.jsx("circle",{cx:"5.02",cy:"17.68",r:"2.5",className:"fill-current opacity-80"}),jsxRuntimeExports.jsx("circle",{cx:"5.02",cy:"30.32",r:"2.5",className:"fill-current opacity-70"}),jsxRuntimeExports.jsx("circle",{cx:"12.19",cy:"40.14",r:"2.5",className:"fill-current opacity-60"}),jsxRuntimeExports.jsx("circle",{cx:"24",cy:"44",r:"2.5",className:"fill-current opacity-50"}),jsxRuntimeExports.jsx("circle",{cx:"35.81",cy:"40.14",r:"2.5",className:"fill-current opacity-40"}),jsxRuntimeExports.jsx("circle",{cx:"42.98",cy:"30.32",r:"2.5",className:"fill-current opacity-30"}),jsxRuntimeExports.jsx("circle",{cx:"42.98",cy:"17.68",r:"2.5",className:"fill-current opacity-20"}),jsxRuntimeExports.jsx("circle",{cx:"35.81",cy:"7.86",r:"2.5",className:"fill-current opacity-10"})]})}),TextSeparator=({title:e})=>jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-flex pds2-flex-row pds2-items-center pds2-gap-16",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-full pds2-h-1 pds2-bg-border-03"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-04 Body2Regular pds2-text-center pds2-min-w-max",children:e}),jsxRuntimeExports.jsx("div",{className:"pds2-w-full pds2-h-1 pds2-bg-border-03"})]});async function postAuthInitV2({method:e,identifier:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({method:e,identifier:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${c}/v2/auth/init`,o)).json()}catch(c){console.error(c)}return{}}async function postAuthLogoutV2(){console.log("inside postAuthLogoutV2 api call");const e=new Headers;e.append("Content-Type","application/json");const s=JSON.stringify({}),a=`${GET_AORTA_GO_HOST()}/v2/auth/logout`,o={method:"POST",headers:e,body:s,redirect:"follow",credentials:"include"};try{const c=await fetchWrapper(a,o);return c.ok?!0:(console.log("Logout failed with status",c==null?void 0:c.status),!1)}catch(c){return console.error("Logout API failed:",c),!1}}async function postRegisterAadhaarInit({aadhaar_number:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({aadhaar_number:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/aadhaar/init`,a)).json()}catch{}return{}}async function postRegisterMobileInit({mobile_number:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({mobile_number:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/mobile/init`,a)).json()}catch(o){console.error(o)}return{}}const CreateAbhaWithAadhaarScreen=()=>{const[e,s]=reactExports.useState(!1);useAuthAbhaStore(g=>g.setScreen),useAuthAbhaStore(g=>g.goBackLoginScreen);const i=useAuthAbhaStore(g=>g.setAbhaAuthFlowMethod);useAuthAbhaStore(g=>g.initAbhaAppMethod);const a=useAuthAbhaStore(g=>g.clientId);reactExports.useEffect(()=>{var g,_,b;if(handleSendEvent({eventName:"page_view",eventData:{page_view:"abha_landing_screen",platform:a}}),(_=(g=window.curio)==null?void 0:g.pushToMixpanel)==null||_.call(g,"page_view",{platform:a,page_view:"abha_landing_screen"}),(b=window.EkaAbha)!=null&&b.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#E4E1FA"),()=>{var $,et;($=window.EkaAbha)!=null&&$.changeStatusBarColor&&((et=window==null?void 0:window.EkaAbha)==null||et.changeStatusBarColor("#FFFFFF"))};i(ABHA_AUTH_FLOW_METHOD.MOBILE)},[]);const o=()=>{var g;(g=window.EkaAbha)==null||g.onAbhaClose(),unMount()},c=["eka-web","phr"];return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-01 pds2-h-full",children:[c.includes(a)?jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24","aria-hidden":"true"}),title:"",className:"pds2-bg-white"}):jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-bg-white pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:o,children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),title:"",className:"pds2-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx(LoginWithAadhaar,{openInfoDialog:()=>s(!0)}),jsxRuntimeExports.jsx(OtherLoginOptions,{}),jsxRuntimeExports.jsx(BottomSheetWrapper,{isOpen:e,setIsOpen:s,shouldCloseOnClickOutside:!0,children:jsxRuntimeExports.jsx(BottomSheetContent,{onClose:()=>s(!1)})})]})},BottomSheetContent=({onClose:e})=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-p-16 pds2-text-center",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-items-center",children:jsxRuntimeExports.jsx("button",{onClick:e,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(XMarkRegularIcon,{className:"pds2-w-18 pds2-h-18 pds2-text-text-03"})})}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-12 pds2-flex pds2-flex-col pds2-items-center pds2-justify-center",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5m4sx4a000c0tg9a5fo1gkz.webp",alt:"nha-icon",className:"pds2-h-52"}),jsxRuntimeExports.jsx("div",{className:"Heading4Semibold pds2-text-text-black",children:"Terms & Conditions"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-text-03 pds2-py-16",children:"I, hereby declare that I am voluntarily sharing my identity information with National Health Authority (NHA) for the sole purpose of creation of ABHA number. I understand that my ABHA number can be used and shared for purposes as may be notified by ABDM (Ayushman Bharat Digital Mission) from time to time including provision of healthcare services. Further, I am aware that my personal identifiable information (Name, Address, Age, Date of Birth, Gender and Photograph) may be made available to the entities working in the National Digital Health Ecosystem (NDHE) which inter alia includes stakeholders and entities such as healthcare professionals (e.g. doctors), facilities"}),jsxRuntimeExports.jsx(Pds2Button,{title:"Okay, Got it!",onClick:e,state:"enabled",className:"pds2-w-full"})]})]}),loginOptions=[{textSeparatorTitle:"Other options to create ABHA",loginCTA:[{method:ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,title:"Use Aadhaar to create ABHA",prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})},{method:ABHA_AUTH_FLOW_METHOD.MOBILE,title:"Use mobile to create ABHA",prefixIcon:jsxRuntimeExports.jsx(PhoneSolidIcon,{className:"pds2-w-20 pds2-h-20 pds2-text-icon-success-02"})}]},{textSeparatorTitle:"Login with ABHA",loginCTA:[{method:ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,title:"ABHA",prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})}]}],OtherLoginOptions=()=>{const e=useAuthAbhaStore(_=>_.setAbhaAuthFlowMethod),s=useAuthAbhaStore(_=>_.setScreen),i=useAuthAbhaStore(_=>_.abhaAuthFlowMethod),[a,o]=reactExports.useState(i??ABHA_AUTH_FLOW_METHOD.MOBILE);useAuthAbhaStore(_=>_.initAbhaAppMethod);const c=useAuthAbhaStore(_=>_.clientId),g=useAuthAbhaStore(_=>_.isNewLoginOrCreateFlow);return reactExports.useEffect(()=>{i&&i!==a&&o(i)},[i]),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-12",children:loginOptions.map(_=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TextSeparator,{title:_.textSeparatorTitle}),_.loginCTA.filter(b=>b.title==="ABHA"?!0:a===ABHA_AUTH_FLOW_METHOD.MOBILE?b.method===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?b.method===ABHA_AUTH_FLOW_METHOD.MOBILE:!0).map(b=>jsxRuntimeExports.jsx(Pds2CustomButton,{prefixIcon:b.prefixIcon,title:b.title,suffixIcon:jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-ml-auto pds2-h-16 pds2-w-16 pds2-text-text-04 -pds2-rotate-90","aria-hidden":"true"}),onClick:()=>{var $,et;if((et=($=window.curio)==null?void 0:$.pushToMixpanel)==null||et.call($,"abha_landing_screen_clicks",{platform:c,type:b.method===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"use Aadhaar":"use Mobile"}),b.title==="ABHA"){s(g?SCREEN_NAMES.LOGIN_OR_CREATE_ABHA:SCREEN_NAMES.LOGIN_WITH_ABHA);return}b.method===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?o(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER):b.method===ABHA_AUTH_FLOW_METHOD.MOBILE&&o(ABHA_AUTH_FLOW_METHOD.MOBILE),e(b.method)}},b.method))]}))})},LoginWithAadhaar=({openInfoDialog:e})=>{const s=useAuthAbhaStore(St=>St.setScreen),i=useAuthAbhaStore(St=>St.abhaAuthFlowMethod),a=useAuthAbhaStore(St=>St.setRegistrationType),o=useAuthAbhaStore(St=>St.setAadhaarInitResponse),c=useAuthAbhaStore(St=>St.setMobileInitResponse),g=useAuthAbhaStore(St=>St.setBottomsheetErrorInfo),_=useAuthAbhaStore(St=>St.clearAbhaAuthStore);useAuthAbhaStore(St=>St.initAbhaAppMethod);const b=useAuthAbhaStore(St=>St.initAbhaAppMobileNumber),$=useAuthAbhaStore(St=>St.isLoggedInFromRedirect),[et,ot]=reactExports.useState(""),[rt,at]=reactExports.useState(""),[it,nt]=reactExports.useState(!1),[dt,_e]=reactExports.useState(!1),[tt,j]=reactExports.useState(null),[st,ut]=reactExports.useState(!0),[ct,gt]=reactExports.useState(!1),[mt,_t]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),kt=!!b,wt=useAuthAbhaStore(St=>St.clientId),Et=useAuthAbhaStore(St=>St.isEkaAppLogin),Tt=useAuthAbhaStore(St=>St.isDocAppRequest),Lt=useAuthAbhaStore(St=>St.setIsApiTriggered),xt=useAuthAbhaStore(St=>St.isApiTriggered),pt=useAuthAbhaStore(St=>St.setSelectedAbhaFlow);useAuthAbhaStore(St=>St.isNewLoginOrCreateFlow),reactExports.useEffect(()=>{b&&(at(b),_e(b.length===10))},[b]),reactExports.useEffect(()=>{var Ot,Mt;if(xt){console.log("Api is already triggered: ",xt);return}const St=et&&et.length===12&&st,bt=rt&&rt.length===10&&st;if(console.log("Conditions check:","isLoggedInFromRedirect:",$,"shouldTriggerAadhaar:",St,"shouldTriggerMobile:",bt),$||St||bt){Lt(!0),console.log("Setting hasTriggered to true and proceeding with registration");let Rt="";St?Rt="abha_aadhaar_otp_verify_clicks":bt&&(Rt="abha_mobile_otp_verify_clicks"),Rt&&((Mt=(Ot=window.curio)==null?void 0:Ot.pushToMixpanel)==null||Mt.call(Ot,Rt,{platform:wt,type:"next"})),yt()}},[$,et,rt,st,xt]);const vt=(St,bt)=>{_t(Ot=>({...Ot,[St]:bt}))},lt=St=>{const bt=St.target.value;bt.length<=10&&(at(bt),_e(bt.length===10),j(null))},ht=({inputVal:St})=>{tt&&j(null),St.length===12&&ot(St)},yt=async()=>{var Ot,Mt,Rt,Kt,Wt,Vt,zt,It,Nt,Pt,qt,Gt,er,Ut,Qt,Ft,Dt,tr,nr,Zt;j(null);const St=i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"aadhaar":"mobile";vt(St,LOADING_STATE.LOADING);let bt="";if(!Et){handleSendEvent({eventName:"abha_create_auth_api_trigger",eventData:{type:"api_trigger",platform:wt,isEkaAppLogin:Et?"true":"false"}}),(Mt=(Ot=window.curio)==null?void 0:Ot.pushToMixpanel)==null||Mt.call(Ot,"abha_create_auth_api_trigger",{platform:wt,type:"api_trigger",isEkaAppLogin:Et?"true":"false"});const{txn_id:jt,error:Bt}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!jt){handleSendEvent({eventName:"abha_create_auth_txnId_not_found",eventData:{type:"api_trigger",platform:wt,transactionId:jt||"",isEkaAppLogin:Et?"true":"false"}}),(Kt=(Rt=window.curio)==null?void 0:Rt.pushToMixpanel)==null||Kt.call(Rt,"abha_create_auth_txnId_not_found",{platform:wt,type:"api_trigger",transactionId:jt||"",isEkaAppLogin:Et?"true":"false"}),j((Bt==null?void 0:Bt.message)||"Something went wrong"),vt(St,LOADING_STATE.REJECTED);return}bt=jt,handleSendEvent({eventName:"abha_create_auth_api_trigger_success",eventData:{type:"api_trigger",platform:wt,authTransactionId:bt,isEkaAppLogin:Et?"true":"false"}}),(Vt=(Wt=window.curio)==null?void 0:Wt.pushToMixpanel)==null||Vt.call(Wt,"abha_create_auth_api_trigger_success",{platform:wt,type:"api_trigger",authTransactionId:bt,isEkaAppLogin:Et?"true":"false"}),await postAuthLogoutV2()}if(i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){if(handleSendEvent({eventName:"abha_aadhaar_init_api_trigger_initiate",eventData:{type:"api_trigger",platform:wt,isEkaAppLogin:Et?"true":"false"}}),(It=(zt=window.curio)==null?void 0:zt.pushToMixpanel)==null||It.call(zt,"abha_aadhaar_init_api_trigger_initiate",{platform:wt,type:"api_trigger",isEkaAppLogin:Et?"true":"false"}),vt("aadhaar",LOADING_STATE.LOADING),et.length!==12){j("Please enter valid 12 digit Aadhaar number"),vt("aadhaar",LOADING_STATE.REJECTED);return}if(!st){j("Please provide consent to create ABHA"),vt("aadhaar",LOADING_STATE.REJECTED);return}const{txn_id:jt,hint:Bt,error:Jt,action:sr}=await postRegisterAadhaarInit({aadhaar_number:et});if(jt&&Bt){o({authTxnId:bt,txnId:jt,aadhaarOtpSentToHint:Bt}),handleSendEvent({eventName:"abha_aadhaar_init_api_trigger_success",eventData:{type:"api_trigger",platform:wt,transactionId:jt,isEkaAppLogin:Et?"true":"false"}}),(Pt=(Nt=window.curio)==null?void 0:Nt.pushToMixpanel)==null||Pt.call(Nt,"abha_aadhaar_init_api_trigger_success",{platform:wt,type:"api_trigger",transactionId:jt,isEkaAppLogin:Et?"true":"false"}),vt("aadhaar",LOADING_STATE.RESOLVED),a(REGISTRATION_TYPE.CREATE),s(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}handleSendEvent({eventName:"abha_aadhaar_init_api_trigger_failure",eventData:{type:"api_trigger",platform:wt,transactionId:jt||"",isEkaAppLogin:Et?"true":"false"}}),(Gt=(qt=window.curio)==null?void 0:qt.pushToMixpanel)==null||Gt.call(qt,"abha_aadhaar_init_api_trigger_failure",{platform:wt,type:"api_trigger",transactionId:jt||"",isEkaAppLogin:Et?"true":"false"}),vt("aadhaar",LOADING_STATE.REJECTED),sr?g(sr):j(Jt||"Something went wrong")}else{vt("mobile",LOADING_STATE.LOADING);const jt=b||rt;if(!jt||jt.length!==10)return handleSendEvent({eventName:"abha_mobile_number_length_error",eventData:{type:"verify",platform:wt,mobileNumber:jt,isEkaAppLogin:Et?"true":"false"}}),(Ut=(er=window.curio)==null?void 0:er.pushToMixpanel)==null||Ut.call(er,"abha_mobile_number_length_error",{platform:wt,type:"verify",mobileNumber:jt,isEkaAppLogin:Et?"true":"false"}),j("Please enter valid 10 digit mobile number"),vt("mobile",LOADING_STATE.REJECTED),!1;handleSendEvent({eventName:"abha_mobile_init_api_trigger_initiate",eventData:{type:"api_trigger",platform:wt,isEkaAppLogin:Et?"true":"false"}}),(Ft=(Qt=window.curio)==null?void 0:Qt.pushToMixpanel)==null||Ft.call(Qt,"abha_mobile_init_api_trigger_initiate",{platform:wt,type:"api_trigger",isEkaAppLogin:Et?"true":"false"});const{txn_id:Bt,hint:Jt,error:sr,action:lr}=await postRegisterMobileInit({mobile_number:jt});if(Bt&&Jt){c({authTxnId:bt,txnId:Bt,mobileOtpSentToHint:Jt}),handleSendEvent({eventName:"abha_mobile_init_api_trigger_success",eventData:{type:"api_trigger",platform:wt,transactionId:Bt,isEkaAppLogin:Et?"true":"false",authTransactionId:bt}}),(tr=(Dt=window.curio)==null?void 0:Dt.pushToMixpanel)==null||tr.call(Dt,"abha_mobile_init_api_trigger_success",{platform:wt,type:"api_trigger",transactionId:Bt,isEkaAppLogin:Et?"true":"false",authTransactionId:bt}),pt("mobile"),vt("mobile",LOADING_STATE.RESOLVED),a(REGISTRATION_TYPE.CREATE),pt("mobile"),console.log("update the selected abha flow to mobile"),s(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}handleSendEvent({eventName:"abha_mobile_init_api_trigger_failure",eventData:{type:"api_trigger",platform:wt,transactionId:Bt||"",isEkaAppLogin:Et?"true":"false",authTransactionId:bt}}),(Zt=(nr=window.curio)==null?void 0:nr.pushToMixpanel)==null||Zt.call(nr,"abha_mobile_init_api_trigger_failure",{platform:wt,type:"api_trigger",transactionId:Bt||"",isEkaAppLogin:Et?"true":"false",authTransactionId:bt}),vt("mobile",LOADING_STATE.REJECTED),lr?g(lr):j(sr||"Something went wrong")}},ft=St=>{var Ot,Mt;St.stopPropagation(),console.log("selectedMethod : ",i);const bt=i==="aadhaar_number"?"abha_aadhaar_otp_verify_clicks":"abha_mobile_otp_verify_clicks";handleSendEvent({eventName:bt,eventData:{type:"verify",platform:wt}}),(Mt=(Ot=window.curio)==null?void 0:Ot.pushToMixpanel)==null||Mt.call(Ot,bt,{platform:wt,type:"next"}),tt&&j(null),yt()},Ct=()=>{const St=useAuthAbhaStore.getState().initAbhaAppMobileNumber,bt=useAuthAbhaStore.getState().initAbhaAppMethod,Ot=useAuthAbhaStore.getState().isEkaAppLogin,Mt=useAuthAbhaStore.getState().isApiTriggered,Rt=useAuthAbhaStore.getState().clientId;s(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR),_(),useAuthAbhaStore.setState({initAbhaAppMobileNumber:St}),useAuthAbhaStore.setState({screen:[SCREEN_NAMES.LOGIN_WITH_ABHA]}),useAuthAbhaStore.setState({isEkaAppLogin:Ot}),useAuthAbhaStore.setState({initAbhaAppMethod:bt}),useAuthAbhaStore.setState({isApiTriggered:Mt}),useAuthAbhaStore.setState({clientId:Rt}),g(null)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-16 pds2-p-16 pds2-text-center",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64 pds2-rounded-16"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-16",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-black Heading3Semibold",children:Tt?"Create ABHA":"Create your ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03 Body2Regular",children:i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"Enter 12 digit Aadhaar number":"Enter 10 digit mobile number"})]}),i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?jsxRuntimeExports.jsx(SpacedInputComponent,{numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:ht,setIsValid:nt,error:tt}):jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-justify-center pds2-items-center pds2-gap-y-16 pds2-px-09",children:jsxRuntimeExports.jsx(PatientPds2InputField,{value:rt,onChange:lt,disabled:kt,type:"tel",autoComplete:"tel-national",placeholder:"Mobile Number",PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-border-brand-02 pds2-pr-24",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4mlct2900000tg98p8u967s.webp",alt:"indian-flag-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-black",children:"+91"})]})})})]}),jsxRuntimeExports.jsx(CustomCheckBox,{id:"aadhaar-number",label:"I give consent to NHA to share my identity info",openInfoDialog:e,className:"pds2-justify-between",isCheckboxChecked:st,onCheckboxChange:St=>{tt&&j(null),gt(!1),ut(St)},isErrored:ct}),jsxRuntimeExports.jsx("div",{onClick:()=>{st||gt(!0)},children:jsxRuntimeExports.jsx(Pds2Button,{title:mt[i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"aadhaar":"mobile"]===LOADING_STATE.LOADING?"Verifying":"Next",onClick:ft,IconComponent:mt[i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"aadhaar":"mobile"]===LOADING_STATE.LOADING?()=>jsxRuntimeExports.jsx(Pds2Spinner,{className:"pds2-ml-8",size:16}):void 0,state:i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?it&&st?"enabled":"disabled":dt&&st?"enabled":"disabled",className:"pds2-w-full"})}),tt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Semibold",children:tt})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Ct})]})},CustomCheckBox=({id:e,label:s,onCheckboxChange:i,openInfoDialog:a,className:o="",isCheckboxChecked:c=!1,isErrored:g=!1})=>jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-items-center pds2-space-x-8 ${o} ${g?"pds2-text-text-error":"pds2-text-text-03"}`,children:[jsxRuntimeExports.jsxs("label",{htmlFor:e,className:"Body2Regular pds2-flex pds2-items-center pds2-space-x-8",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:c,onChange:_=>i(_.target.checked),id:e,className:"pds2-hidden"}),c?jsxRuntimeExports.jsx(CheckSquareSolidIcon,{className:"pds2-w-14 pds2-h-14 pds2-text-icon-brand"}):jsxRuntimeExports.jsx(SquareRegularIcon,{className:"pds2-w-14 pds2-h-14"}),jsxRuntimeExports.jsx("span",{children:s})]}),a&&jsxRuntimeExports.jsx("button",{onClick:a,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(CircleInfoSolidIcon,{className:"pds2-w-14 pds2-h-14 pds2-text-text-04"})})]});async function postRegisterAadhaarResendOtp({txn_id:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({txn_id:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/aadhaar/resend`,a)).json()}catch{}return{}}async function postRegisterAadhaarVerify({txn_id:e,mobile:s,otp:i}){const a=new Headers;a.append("Content-Type","application/json");const o=JSON.stringify({txn_id:e,mobile:s,otp:i}),c={method:"POST",headers:a,body:o,redirect:"follow",credentials:"include"};try{const g=GET_NDHM_HOST();return await(await fetchWrapper(`${g}/abdm/na/v1/registration/aadhaar/verify`,c)).json()}catch{}return{}}const AbhaOtpAndMobileScreen=()=>{const e=useAuthAbhaStore(Rt=>Rt.setAbhaAddressList),s=useAuthAbhaStore(Rt=>Rt.setScreen),i=useAuthAbhaStore(Rt=>Rt.txnId),a=useAuthAbhaStore(Rt=>Rt.orgIcon),o=useAuthAbhaStore(Rt=>Rt.setTxnId),c=useAuthAbhaStore(Rt=>Rt.aadhaarOtpSentToHint),g=useAuthAbhaStore(Rt=>Rt.setAadhaarVerificationSkipStateStatus),_=useAuthAbhaStore(Rt=>Rt.setEkaSmallToken),b=useAuthAbhaStore(Rt=>Rt.setOid),$=useAuthAbhaStore(Rt=>Rt.clearAbhaAuthStore),et=useAuthAbhaStore(Rt=>Rt.setBottomsheetErrorInfo),ot=useAuthAbhaStore(Rt=>Rt.goBackLoginScreen),[rt,at]=reactExports.useState(""),[it,nt]=reactExports.useState(!1),[dt,_e]=reactExports.useState(""),[tt,j]=reactExports.useState(null),[st,ut]=reactExports.useState(null),[ct,gt]=reactExports.useState(!0),[mt,_t]=reactExports.useState(!0),[kt,wt]=reactExports.useState(LOADING_STATE.IDLE),Et=useAuthAbhaStore(Rt=>Rt.setSelectedAbhaAddress),Tt=useAuthAbhaStore(Rt=>Rt.initAbhaAppMobileNumber),Lt=useAuthAbhaStore(Rt=>Rt.setEkaProfileInfo),xt=useAuthAbhaStore(Rt=>Rt.clientId),pt=useAuthAbhaStore(Rt=>Rt.isEkaAppLogin),vt=useAuthAbhaStore(Rt=>Rt.isNewLoginOrCreateFlow),lt=GET_EXTRA_HEADERS(),ht=useAuthAbhaStore(Rt=>Rt.abhaAuthFlowMethod),yt=({name:Rt,data:Kt={}})=>{var zt,It;const Vt={...{login_platform:xt,is_eka_app_login:pt?"true":"false",is_new_login_or_create_flow:vt?"true":"false",txn_id:i||"missing txnId",oid:lt!=null&&lt["X-User-ID"]?"true":"false",access_token:lt!=null&&lt.auth?"true":"false",flow:ht??""},...Kt};handleSendEvent({eventName:Rt,eventData:Vt}),(It=(zt=window.curio)==null?void 0:zt.pushToMixpanel)==null||It.call(zt,Rt,Vt)};reactExports.useEffect(()=>{Tt&&_e(Tt)},[Tt]);const ft=({otp:Rt})=>{yt({name:"abha_aadhaar_otp_enter_clicks",data:{page_view:"aadhaar_verification",platform:xt,otp_entered:!0}}),at(Rt)},Ct=({mobileNumber:Rt})=>{st||j(null),_e(Rt),yt({name:"abha_aadhaar_mobile_otp_enter",data:{page_view:"aadhaar_verification",platform:xt}})},St=async()=>{if(!i){yt({name:"aadhaar_otp_resend_clicked_no_txnId",data:{platform:xt,txn_id:i||"missing_txnId",txn_id_exists:!!i}});return}const{txn_id:Rt,error:Kt,action:Wt}=await postRegisterAadhaarResendOtp({txn_id:i});if(!Rt){yt({name:"aadhaar_otp_resend_failed",data:{platform:xt,reason:Kt||"no_txn_id",reason_exists:!!Kt}}),j(Kt||"Something went wrong, please try again"),Wt&&et(Wt);return}yt({name:"aadhaar_otp_resend_success",data:{platform:xt,txn_id:Rt}}),o(Rt)},bt=async()=>{if(!i){yt({name:"aadhaar_otp_verification_no_txnId",data:{platform:xt,type:"verify",txn_id:i||"missing_txnId",txn_id_exists:!!i}});return}yt({name:"abha_aadhaar_otp_verify_submitted",data:{platform:xt,type:"verify"}}),wt(LOADING_STATE.LOADING);const{txn_id:Rt,skip_state:Kt,profile:Wt,eka:Vt,error:zt,abha_profiles:It,source_error:Nt,action:Pt}=await postRegisterAadhaarVerify({otp:rt,mobile:dt,txn_id:i});if(!Rt||!Kt){yt({name:"aadhaar_otp_verification_failed",data:{platform:xt,reason:zt||"missing_txn_id_or_skip_state",txn_id_exists:!!Rt,skip_state_exists:!!Kt}}),wt(LOADING_STATE.REJECTED),ut(Nt??null),j(zt||"Something went wrong, please try again"),Pt&&et(Pt);return}yt({name:"aadhaar_otp_verification_success",data:{platform:xt,skip_state:Kt,oid:Vt==null?void 0:Vt.oid}}),wt(LOADING_STATE.RESOLVED),g(Kt),Vt!=null&&Vt.min_token&&_(Vt.min_token),Wt&&Wt.abha_address&&Et(Wt.abha_address),Vt!=null&&Vt.oid&&b(Vt.oid),Wt&&Lt({date_of_birth:`${Wt.year_of_birth}-${String(Wt.month_of_birth).padStart(2,"0")}-${String(Wt.day_of_birth).padStart(2,"0")}`,firstname:Wt.first_name,lastname:Wt.last_name,pincode:Wt.pincode,gender:Wt.gender,name:Wt.first_name+" "+Wt.last_name,mobile:Wt.mobile,oid:Vt==null?void 0:Vt.oid,abha_address:Wt.abha_address,abha_number:Wt.abha_number}),yt({name:"abha_aadhaar_otp_verification_success",data:{platform:xt,skip_state:Kt,oid:Vt==null?void 0:Vt.oid}}),It&&e(It),s(SCREEN_NAMES.AADHAAR_VERIFICATION_STATUS)},Ot=()=>{s(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const Rt=useAuthAbhaStore.getState().isEkaAppLogin;$(),useAuthAbhaStore.setState({isEkaAppLogin:Rt})},Mt=it&&dt.length===10&&ct&&mt;return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(AbhaHeader,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:ot,children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),title:"Create ABHA",suffixIcon:a?jsxRuntimeExports.jsx("img",{src:a,className:"pds2-w-20 pds2-h-20"}):jsxRuntimeExports.jsx(EkaIcon,{className:"pds2-w-20 pds2-h-20"}),className:"pds2-border-b-1 pds2-border-bg-seperator-dark"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-pb-16 pds2-space-y-12 pds2-overflow-y-auto pds2-flex-1 pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:c||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:ft,onResendOtpClick:St,setIsValid:nt,error:st?tt:null,setError:j}),jsxRuntimeExports.jsx(EnterMobileNumberCard,{mobileNumber:dt,onMobileNumberChange:Ct,isOtpValid:it,error:st?null:tt,onKeyDown:({key:Rt})=>{Rt==="Enter"&&bt()}}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-8",children:jsxRuntimeExports.jsx(CustomCheckBox,{id:"health-locker",label:"Allow Eka Care to create ABHA locker and link health data",isCheckboxChecked:ct,onCheckboxChange:Rt=>{gt(Rt)}})})]}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full pds2-border pds2-border-border-brand-02",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!Mt||kt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:bt,isLoading:kt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Ot})]})},EnterMobileNumberCard=({mobileNumber:e,onMobileNumberChange:s,isOtpValid:i,onKeyDown:a,error:o})=>{const c=reactExports.useRef(null);reactExports.useEffect(()=>{c.current&&i&&c.current.focus()},[i]);const g=useAuthAbhaStore($=>$.abhaAuthFlowMethod),_=useAuthAbhaStore($=>$.initAbhaAppMobileNumber),b=g===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!_;return _&&(e=_),jsxRuntimeExports.jsxs(CustomCardLayout,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-space-x-16 pds2-w-full",children:[jsxRuntimeExports.jsxs("div",{className:"Body1Regular pds2-text-text-01 pds2-flex-1",children:["Enter your mobile number to link your ABHA"," ",jsxRuntimeExports.jsx("sup",{className:"pds2-text-text-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx(PhoneSolidIcon,{className:"pds2-w-48 pds2-h-48 pds2-text-icon-success-02 pds2-p-6"})]}),jsxRuntimeExports.jsxs("label",{className:`pds2-relative pds2-border pds2-rounded-12 ${o?"pds2-border-border-error focus-within:pds2-border-border-error ":"pds2-border-border-03 focus-within:pds2-border-border-brand-01 "}`,children:[jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-absolute pds2-left-16 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-text-text-01",children:"+91 -"}),jsxRuntimeExports.jsx("input",{ref:c,placeholder:"Mobile Number",type:"tel",autoComplete:"tel-national",value:e,disabled:b,onPaste:$=>{$.preventDefault();const et=$.clipboardData.getData("text").replace(/[^0-9]/g,"");s({mobileNumber:et.slice(-10)})},onChange:$=>{if($.target.value.length>10)return;const et=$.target.value.replace(/[^0-9]/g,"");s({mobileNumber:et.slice(-10)})},maxLength:10,className:"Body1Regular pds2-w-full pds2-pl-60 pds2-pr-12 pds2-py-12 pds2-rounded-12 pds2-outline-none",onKeyDown:a})]}),o&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-text-error",children:o}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-space-x-8 pds2-text-text-03"})]})},CustomCardLayout=({children:e,className:s="pds2-space-y-12"})=>jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-bg-white ${s}`,children:e});async function postAbdmRegisterMobileResendOtp({txn_id:e}){const s=new Headers;s.append("Content-Type","application/json");const i={method:"POST",headers:s,body:JSON.stringify({txn_id:e}),redirect:"follow",credentials:"include"};try{const a=GET_NDHM_HOST();return await(await fetchWrapper(`${a}/abdm/na/v1/registration/mobile/resend`,i)).json()}catch{}return{}}async function postRegisterAadhaarMobileResendOtp({txn_id:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({txn_id:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/aadhaar/mobile/resend`,a)).json()}catch{}return{}}async function postAbdmRegisterMobileVerify({txn_id:e,otp:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,otp:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/mobile/verify`,o)).json()}catch{}return{}}async function postRegisterAadhaarMobileVerify({txn_id:e,otp:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,otp:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/aadhaar/mobile/verify`,o)).json()}catch{}return{}}const AbhaPhoneNumberVerificationScreen=()=>{const e=useAuthAbhaStore(pt=>pt.txnId),s=useAuthAbhaStore(pt=>pt.clearAbhaAuthStore),i=useAuthAbhaStore(pt=>pt.setBottomsheetErrorInfo),a=useAuthAbhaStore(pt=>pt.setEkaSmallToken),o=useAuthAbhaStore(pt=>pt.setOid),c=useAuthAbhaStore(pt=>pt.setAadhaarVerificationSkipStateStatus),g=useAuthAbhaStore(pt=>pt.setSelectedAbhaAddress),_=useAuthAbhaStore(pt=>pt.setAbhaAddressList),b=useAuthAbhaStore(pt=>pt.setScreen),$=useAuthAbhaStore(pt=>pt.abhaAuthFlowMethod),[et,ot]=reactExports.useState(""),[rt,at]=reactExports.useState(!1),[it,nt]=reactExports.useState(""),[dt,_e]=reactExports.useState(LOADING_STATE.IDLE),tt=useAuthAbhaStore(pt=>pt.setTxnId),j=useAuthAbhaStore(pt=>pt.setEkaProfileInfo),st=useAuthAbhaStore(pt=>pt.clientId),ut=useAuthAbhaStore(pt=>pt.selectedAbhaFlow),ct=useAuthAbhaStore(pt=>pt.isNewLoginOrCreateFlow),gt=useAuthAbhaStore(pt=>pt.isEkaAppLogin),mt=GET_EXTRA_HEADERS(),[_t,kt]=reactExports.useState(!1);console.log("selectedAbhaFlow is : ",ut);const wt=({name:pt,data:vt={}})=>{var yt,ft;const ht={...{login_platform:st,is_eka_app_login:gt?"true":"false",is_new_login_or_create_flow:ct?"true":"false",txn_id:e||"missing txnId",oid:mt!=null&&mt["X-User-ID"]?"true":"false",access_token:mt!=null&&mt.auth?"true":"false",flow:$??""},...vt};handleSendEvent({eventName:pt,eventData:ht}),(ft=(yt=window.curio)==null?void 0:yt.pushToMixpanel)==null||ft.call(yt,pt,ht)};reactExports.useEffect(()=>{wt({name:"page_view",data:{page_view:"abha_mobile_otp_verify",platform:st}})},[]);const Et=({otp:pt})=>{ot(pt),wt({name:"abha_mobile_otp_completion",data:{platform:st,type:"verify",otp_entered:!0}}),Lt(pt)},Tt=async()=>{if(!e){wt({name:"abha_mobile_otp_resend_clicked_no_txnId",data:{type:"resend",platform:st,txn_id:"missing_txnId",txn_id_exists:!1}});return}wt({name:"abha_mobile_otp_verify_clicks",data:{type:"resend",platform:st}}),console.log("selectedMethod",$);let pt;ut==="mobile"?(wt({name:"abha_mobile_otp_resend_initiated",data:{platform:st,type:"verify",flow_type:ut}}),console.log("selectedFlow is mobile, so triggering mobile resend otp api",ut),pt=await postAbdmRegisterMobileResendOtp({txn_id:e})):(wt({name:"aadhaar_mobile_otp_resend_initiated",data:{platform:st,type:"verify",flow_type:ut}}),console.log("selectedFlow is aadhaar, so triggering aadhaar resend otp api",ut),pt=await postRegisterAadhaarMobileResendOtp({txn_id:e}));const{txn_id:vt,error:lt,action:ht}=pt;if(!vt){wt({name:"abha_mobile_otp_resend_failed",data:{platform:st,reason:lt||"no_txn_id",reason_exists:!!lt}}),nt(lt||"Something went wrong, please try again"),ht&&i(ht);return}vt&&tt(vt),wt({name:"abha_mobile_otp_resend_success",data:{platform:st,txn_id:vt}})},Lt=async pt=>{if(!e){wt({name:"abha_mobile_verify_no_txnId",data:{type:"verify",platform:st,txn_id:"missing_txnId",txn_id_exists:!1}});return}wt({name:"abha_mobile_otp_submitted",data:{type:"verify",platform:st,txn_id:e}}),_e(LOADING_STATE.LOADING);try{let vt;ut==="mobile"?(wt({name:"abha_mobile_otp_verification_started",data:{platform:st,flow_type:ut}}),vt=await postAbdmRegisterMobileVerify({otp:pt,txn_id:e})):(wt({name:"aadhaar_otp_verification_started",data:{platform:st,flow_type:ut}}),vt=await postRegisterAadhaarMobileVerify({otp:pt,txn_id:e}));const{txn_id:lt,skip_state:ht,eka:yt,profile:ft,error:Ct,action:St,abha_profiles:bt}=vt;if(!lt||!ht){wt({name:"abha_mobile_otp_verification_failed",data:{platform:st,reason:Ct||"missing_txn_id_or_skip_state",txn_id_exists:!!lt,skip_state_exists:!!ht}}),_e(LOADING_STATE.REJECTED),nt(Ct||"Something went wrong, please try again"),St&&i(St);return}if(_e(LOADING_STATE.RESOLVED),c(ht),yt!=null&&yt.min_token&&a(yt.min_token),yt!=null&&yt.oid&&o(yt.oid),ft&&ft.abha_address&&g(ft.abha_address),ft&&j({date_of_birth:`${ft.year_of_birth}-${String(ft.month_of_birth).padStart(2,"0")}-${String(ft.day_of_birth).padStart(2,"0")}`,firstname:ft.first_name,lastname:ft.last_name,pincode:ft.pincode,gender:ft.gender,oid:yt==null?void 0:yt.oid,abha_address:ft==null?void 0:ft.abha_address,abha_number:ft==null?void 0:ft.abha_number,middlename:ft==null?void 0:ft.middle_name}),console.log("remove oid from set indvidual env"),wt({name:"abha_mobile_otp_verification_success",data:{platform:st,skip_state:ht}}),bt!=null&&bt.length){_(bt),b(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}b(SCREEN_NAMES.ABHA_MOBILE_LINKING_STATUS)}catch{wt({name:"abha_mobile_otp_verification_exception",data:{platform:st,reason:"exception_thrown"}}),_e(LOADING_STATE.REJECTED),nt("Something went wrong, please try again")}},xt=()=>{b(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const pt=useAuthAbhaStore.getState().isEkaAppLogin;s(),useAuthAbhaStore.setState({isEkaAppLogin:pt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-bg-white",children:[jsxRuntimeExports.jsx(AbhaHeader,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>kt(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),title:"Phone Number Verification",className:"pds2-border-b-1 pds2-border-bg-seperator-dark"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-bg-01",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:"Enter OTP received through ABDM to verify mobile number",onOtpCompletion:Et,onResendOtpClick:Tt,error:it,setIsValid:pt=>{it&&nt(null),at(pt)},prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abdm-abha-icon",className:"pds2-w-48"})})}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full pds2-border pds2-border-border-brand-02",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!rt||dt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>Lt(et),isLoading:dt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:xt}),jsxRuntimeExports.jsx(ExitPopup,{open:_t,setOpen:kt})]})};async function postProfileSwitch({oid:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({oid:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${o}/v1/profile/switch`,a)).json()}catch(o){console.error("postProfileSwitchError: ",o)}return{}}const usePostProfileSwitch=()=>useMutation({mutationFn:({oid:e,token:s})=>postProfileSwitch({oid:e}),onSuccess:e=>{var s;if(e){const{skip_state:i,method:a,sess:o,refresh:c,profile:g,txn_id:_,error:b}=e,$={skip_state:i,method:a,data:{tokens:{sess:o,refresh:c},profile:g},txn_id:_,...b?{error:{code:b.code,message:b.message}}:null};if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(s=window.EkaAbha)==null||s.onAbhaSuccess(JSON.stringify({response:$}));return}onAbhaSuccess({response:$}),unMount();return}}});async function postAbdmRegisterMobileCreatePhr({abha_address:e,address:s,first_name:i,last_name:a,day_of_birth:o,month_of_birth:c,year_of_birth:g,gender:_,middle_name:b,pincode:$,txn_id:et}){const ot=new Headers;ot.append("Content-Type","application/json");const rt=JSON.stringify({abha_address:e,profile:{address:s,day_of_birth:o,first_name:i,gender:_,last_name:a,middle_name:b,month_of_birth:c,pincode:$,year_of_birth:g},txn_id:et}),at={method:"POST",headers:ot,body:rt,redirect:"follow",credentials:"include"};try{const it=GET_NDHM_HOST();return await(await fetchWrapper(`${it}/abdm/na/v1/registration/mobile/create-phr`,at)).json()}catch(it){console.error("postAbdmRegisterMobileCreatePhr error =>",it)}return{}}const usePostRegisterMobileCreatePhr=()=>{const e=useAuthAbhaStore(s=>s.setSelectedAbhaAddress);return useMutation({mutationFn:s=>postAbdmRegisterMobileCreatePhr(s),onSuccess(s){s.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],s.profile),e(s.profile.abha_address))}})};async function getAbdmRegisterSuggest({txn_id:e,fn:s,mn:i,ln:a,dob:o}){const c=new Headers;c.append("Content-Type","application/json");const g={method:"GET",headers:c,redirect:"follow",credentials:"include"};try{const _=GET_NDHM_HOST();return await(await fetchWrapper(`${_}/abdm/na/v1/registration/suggest?transactionId=${e}&fn=${s||""}&mn=${i||""}&ln=${a||""}&dob=${o||""}`,g)).json()}catch(_){console.error("postAbdmLoginVerify error =>",_)}return{}}async function postRegisterAadhaarCreatePhr({abha_address:e,txn_id:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({abha_address:e,txn_id:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/aadhaar/create-phr`,o)).json()}catch(c){console.error("postRegisterAadhaarCreatePhr ==>",c)}return{}}async function postAbdmProfileEkaLinkPhr({abha_address:e,oid:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({abha_address:e,oid:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/v1/profile/eka/link-phr`,o)).json()}catch(c){console.error("postAbdmProfileLinkPhr ==>",c)}return{}}async function postAbdmProfileEka({abha_address:e,address:s,first_name:i,last_name:a,day_of_birth:o,month_of_birth:c,year_of_birth:g,gender:_,middle_name:b,pincode:$}){const et=new Headers;et.append("Content-Type","application/json");const ot=JSON.stringify({abha_address:e,profile:{address:s,day_of_birth:o,first_name:i,gender:_,last_name:a,middle_name:b,month_of_birth:c,pincode:$,year_of_birth:g}}),rt={method:"POST",headers:et,body:ot,redirect:"follow",credentials:"include"};try{const at=GET_NDHM_HOST();return await(await fetchWrapper(`${at}/abdm/v1/profile/eka`,rt)).json()}catch(at){console.error("postAbdmProfileEka error =>",at)}return{}}async function postAbdmRegisterPhrCheck({abha_address:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({abha_address:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/phr/check`,a)).json()}catch(o){console.error("postAbdmRegisterPhrCheck ==>",o)}return{}}async function postAbdmRegisterAbhaNumberCreatePhr({abha_address:e,txn_id:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({abha_address:e,txn_id:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/abha-number/create-phr`,o)).json()}catch(c){console.error("postAbdmRegisterAbhaNumberCreatePhr ==>",c)}return{}}const AbhaAddressCard=({address:e,setAddress:s,suggestions:i})=>jsxRuntimeExports.jsxs(CustomCardLayout,{className:"pds2-space-y-24",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-12",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cmgkgn6m500010td37a5wbbl3.webp",alt:"at-the-rate-icon",className:"pds2-w-48"}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Body1Regular",children:"Choose your ABHA Address"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-secondary BodyFootnote",children:"This ABHA Address will be used as your identity for ABHA Services."})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-2 pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsxs("label",{htmlFor:"abha-address",className:"pds2-text-text-brand BodyInputLabel",children:["ABHA Address",jsxRuntimeExports.jsx("sup",{className:"pds2-text-text-error Body3Semibold",children:" *"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-text-text-01 Body1Semibold",children:[jsxRuntimeExports.jsx("input",{value:e,className:"pds2-py-4 pds2-bg-transparent pds2-border-b-1 pds2-border-b-text-brand pds2-w-full pds2-pr-16 pds2-outline-none",id:"abha-address",onChange:a=>{const o=a.target.value.replace(/[^a-zA-Z0-9]/g,"");o.length<=18&&s(o)},autoCapitalize:"off",autoCorrect:"off"}),jsxRuntimeExports.jsx("span",{className:"pds2-absolute pds2-right-0 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-pointer-events-none",children:"@sbx"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-py-6 pds2-text-text-secondary BodyInputLabel",children:"8-18 characters alphabets and numbers only"})]}),i&&i.length>0?jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-04 Body1Semibold",children:"Suggestions:"}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-overflow-x-auto pds2-gap-6 pds2-py-4 pds2-px-4 -pds2-ml-4",children:i.map(a=>jsxRuntimeExports.jsxs("label",{className:`
51
51
  pds2-flex pds2-items-center pds2-cursor-pointer pds2-px-12 pds2-py-8
52
52
  pds2-border-1 pds2-rounded-12 pds2-bg-bg-01
53
53
  ${e===a?"pds2-border-border-brand-01 pds2-text-text-brand Body2Semibold focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2":"pds2-border-border-03 pds2-text-text-secondary Body3Medium"}
54
54
  active:pds2-bg-bg-brand-02 hover:pds2-bg-bg-hover-01
55
55
  pds2-transition-colors pds2-duration-200
56
- `,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"abha-suggestion",value:a,checked:e===a,onClick:()=>s(e===a?"":a),className:"focus:pds2-outline-none pds2-appearance-none"}),jsxRuntimeExports.jsxs("span",{children:[a,"@sbx"]})]},a))})]}):null]}),CreateAbhaAddressScreen=()=>{const[e,s]=reactExports.useState(""),i=useAuthAbhaStore(xt=>xt.txnId),a=useAuthAbhaStore(xt=>xt.setSelectedAbhaAddress),o=useAuthAbhaStore(xt=>xt.goBackLoginScreen),c=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod),[g,_]=reactExports.useState(null),b=useAuthAbhaStore(xt=>xt.authTxnId),[$,et]=reactExports.useState(null),{mutateAsync:ot}=usePostAuthVerifyV2(),rt=useAuthAbhaStore(xt=>xt.setBottomsheetErrorInfo),at=useAuthAbhaStore(xt=>xt.clearAbhaAuthStore),[it,nt]=reactExports.useState([]),[dt,_e]=reactExports.useState(!1),{mutateAsync:tt}=usePostRegisterMobileCreatePhr(),j=useAuthAbhaStore(xt=>xt.ekaProfileInfo),st=useAuthAbhaStore(xt=>xt.registrationType),{mutateAsync:ut}=usePostProfileSwitch(),ct=GET_EXTRA_HEADERS(),gt=useAuthAbhaStore(xt=>xt.isEkaAppLogin),mt=useAuthAbhaStore(xt=>xt.clientId),_t=["M","F","O","U"],kt=useAuthAbhaStore(xt=>xt.isNewLoginOrCreateFlow),wt=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),St=({name:xt,data:pt={}})=>{var ht,yt;const lt={...{login_platform:mt,is_eka_app_login:gt?"true":"false",is_new_login_or_create_flow:kt?"true":"false",txn_id:i||"missing txnId",oid:ct!=null&&ct["X-User-ID"]?"true":"false",access_token:ct!=null&&ct.auth?"true":"false",flow:wt==null?void 0:wt.toString()},...pt};handleSendEvent({eventName:xt,eventData:lt}),(yt=(ht=window.curio)==null?void 0:ht.pushToMixpanel)==null||yt.call(ht,xt,lt)};reactExports.useEffect(()=>{St({name:"page_view",data:{page_view:"choose_abha_address_screen",platform:mt}})},[mt]),reactExports.useEffect(()=>{async function xt(){if(i)try{const{suggestions:pt,error:vt}=await getAbdmRegisterSuggest({txn_id:i,fn:j==null?void 0:j.firstname,ln:j==null?void 0:j.lastname,dob:j==null?void 0:j.date_of_birth});if(vt){et(vt||"Something went wrong. Please try again.");return}pt&&(nt(pt),pt.length>0&&s(pt[0]))}catch{}}xt()},[]);const Tt=async()=>{var lt,ht,yt,ft,Ct,Et,bt,Ot,Lt,Pt,It,Dt,Rt,Vt,Gt;if(!e){St({name:"create_abha_address_click_no_selection",data:{platform:mt,type:"create",reason:"no_abha_address_selected",abha_address_selected:!1}});return}if(St({name:"create_abha_address_clicks",data:{platform:mt,type:"create"}}),_(LOADING_STATE.LOADING),st===REGISTRATION_TYPE.CREATE){if(!i||!j)return;const[$t,Bt,er]=j.date_of_birth?(lt=j==null?void 0:j.date_of_birth)==null?void 0:lt.split("-"):["","",""];if(c===ABHA_AUTH_FLOW_METHOD.MOBILE){const Wt={abha_address:e,day_of_birth:parseInt(er),first_name:j.firstname,gender:j.gender,last_name:j.lastname,month_of_birth:parseInt(Bt),pincode:j.pincode,year_of_birth:parseInt($t),txn_id:i};St({name:"create_abha_process_started",data:{method:"mobile",abha_address:e,platform:mt,pincode_sent:Wt==null?void 0:Wt.pincode,date_of_birth:(j==null?void 0:j.date_of_birth)||"missing date of birth",day_of_birth:(Wt==null?void 0:Wt.day_of_birth)||"missing day of birth",month_of_birth:(Wt==null?void 0:Wt.month_of_birth)||"missing month of birth",year_of_birth:(Wt==null?void 0:Wt.year_of_birth)||"missing year of birth"}});const{error:Qt,eka:Nt,profile:Ft,action:qt}=await tt(Wt);if(qt){St({name:"create_abha_process_error_action",data:{method:"mobile",platform:mt,error_message:((ht=qt==null?void 0:qt.cta)==null?void 0:ht.title)||"unknown_error_message",error_message_exists:!!((yt=qt==null?void 0:qt.cta)!=null&&yt.title)}}),rt(qt);return}if(Qt||!Nt){St({name:"create_abha_process_failed",data:{method:"mobile",platform:mt,error_message:Qt||"unknown_error",error_message_exists:!!Qt,pincode_received:(Ft==null?void 0:Ft.pincode)||"missing_pincode_received",pincode_received_exists:!!(Ft!=null&&Ft.pincode),pincode_sent:(j==null?void 0:j.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(j!=null&&j.pincode)}}),_(LOADING_STATE.REJECTED),et(Qt||"Something went wrong. Please try again.");return}if(St({name:"abha_address_created",data:{type:"create_abha",platform:mt}}),Nt.oid&&gt){_(LOADING_STATE.RESOLVED),St({name:"abha_create_process_started",data:{method:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt}});const sr=_t.includes(Ft==null?void 0:Ft.gender)?Ft==null?void 0:Ft.gender:void 0,rr={oid:(Nt==null?void 0:Nt.oid)||"",fln:(Ft==null?void 0:Ft.first_name)+" "+(Ft==null?void 0:Ft.last_name),dob:`${Ft==null?void 0:Ft.year_of_birth}-${String(Ft==null?void 0:Ft.month_of_birth).padStart(2,"0")}-${String(Ft==null?void 0:Ft.day_of_birth).padStart(2,"0")}`,gen:sr,mobile:Ft==null?void 0:Ft.mobile,fn:(Ft==null?void 0:Ft.first_name)||"",mn:(Ft==null?void 0:Ft.middle_name)||"",ln:(Ft==null?void 0:Ft.last_name)||"","health-ids":Ft!=null&&Ft.abha_address?[Ft.abha_address]:void 0,abha_number:(Ft==null?void 0:Ft.abha_number)||""},jt=getMockAuthVerifyResponse(rr);if(St({name:"abha_create_process_success",data:{method:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(ft=window.EkaAbha)==null||ft.onAbhaSuccess(JSON.stringify({response:jt}));return}onAbhaSuccess({response:jt}),unMount();return}}else{St({name:"create_abha_process_started",data:{method:c==null?void 0:c.toLowerCase(),platform:mt}});const{error:Wt,eka:Qt,profile:Nt,action:Ft}=await postRegisterAadhaarCreatePhr({abha_address:e,txn_id:i});if(Ft){St({name:"create_abha_process_error_action",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:mt,error_message:((Ct=Ft==null?void 0:Ft.cta)==null?void 0:Ct.title)||"unknown_error_message",error_message_exists:!!((Et=Ft==null?void 0:Ft.cta)!=null&&Et.title)}}),rt(Ft);return}if(Wt||!Qt){St({name:"create_abha_process_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:mt,error_message:Wt||"unknown_error",error_message_exists:!!Wt,pincode_received:(Nt==null?void 0:Nt.pincode)||"missing_pincode_received",pincode_received_exists:!!(Nt!=null&&Nt.pincode),pincode_sent:(j==null?void 0:j.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(j!=null&&j.pincode)}}),_(LOADING_STATE.REJECTED),et(Wt||"Something went wrong. Please try again.");return}if(St({name:"abha_address_created",data:{type:"create_abha",platform:mt}}),Qt.oid&&gt){_(LOADING_STATE.RESOLVED),St({name:"abha_create_process_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,page_view:"choose_abha_address"}});const qt=_t.includes(Nt==null?void 0:Nt.gender)?Nt==null?void 0:Nt.gender:void 0,sr={oid:(Qt==null?void 0:Qt.oid)||"",fln:(Nt==null?void 0:Nt.first_name)+" "+(Nt==null?void 0:Nt.last_name),dob:`${Nt==null?void 0:Nt.year_of_birth}-${String(Nt==null?void 0:Nt.month_of_birth).padStart(2,"0")}-${String(Nt==null?void 0:Nt.day_of_birth).padStart(2,"0")}`,gen:qt,mobile:Nt==null?void 0:Nt.mobile,fn:(Nt==null?void 0:Nt.first_name)||"",mn:(Nt==null?void 0:Nt.middle_name)||"",ln:(Nt==null?void 0:Nt.last_name)||"","health-ids":Nt!=null&&Nt.abha_address?[Nt.abha_address]:void 0,abha_number:(Nt==null?void 0:Nt.abha_number)||""},rr=getMockAuthVerifyResponse(sr);if(St({name:"abha_create_process_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(bt=window.EkaAbha)==null||bt.onAbhaSuccess(JSON.stringify({response:rr}));return}onAbhaSuccess({response:rr}),unMount();return}}let Kt=j.oid;if(j.oid){St({name:"abha_create_process_link_phr_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,page_view:"choose_abha_address"}});const{error:Wt,action:Qt,eka:Nt}=await postAbdmProfileEkaLinkPhr({abha_address:e,oid:j.oid});if(Qt){St({name:"abha_create_process_link_phr_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:mt,error_message:((Ot=Qt==null?void 0:Qt.cta)==null?void 0:Ot.title)||"unknown_error_message",error_message_exists:!!((Lt=Qt==null?void 0:Qt.cta)!=null&&Lt.title)}}),rt(Qt);return}if(Wt||!Nt||!Nt.oid){St({name:"abha_create_process_link_phr_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:mt,error_message:Wt||"unknown_error",error_message_exists:!!Wt,eka:Nt||"missing_eka",eka_oid:(Nt==null?void 0:Nt.oid)||"missing_oid",eka_oid_exists:!!(Nt!=null&&Nt.oid)}}),_(LOADING_STATE.REJECTED),et(Wt||"Something went wrong. Please try again.");return}St({name:"abha_create_process_link_phr_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,page_view:"choose_abha_address"}})}else{St({name:"abha_create_process_eka_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt}});const Wt={abha_address:e,day_of_birth:parseInt(er),first_name:j.firstname,gender:j.gender,last_name:j.lastname||"",month_of_birth:parseInt(Bt),pincode:j.pincode,year_of_birth:parseInt($t)},{error:Qt,eka:Nt,action:Ft}=await postAbdmProfileEka({...Wt});if(Ft){St({name:"abha_create_process_eka_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:mt,error_message:((Pt=Ft==null?void 0:Ft.cta)==null?void 0:Pt.title)||"unknown_error_message",error_message_exists:!!((It=Ft==null?void 0:Ft.cta)!=null&&It.title)}}),rt(Ft);return}if(Qt||!Nt||!Nt.oid){St({name:"abha_create_process_eka_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:gt?"true":"false",platform:mt,error_message:Qt||"unknown_error",error_message_exists:!!Qt,eka_exists:!!Nt,eka_oid:(Nt==null?void 0:Nt.oid)||"missing_oid",eka_oid_exists:!!(Nt!=null&&Nt.oid),flow:wt??""}}),_(LOADING_STATE.REJECTED),et(Qt||"Something went wrong. Please try again.");return}Kt=Nt.oid,St({name:"abha_create_process_eka_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,oid:Nt==null?void 0:Nt.oid}})}if(!Kt){St({name:"abha_create_process_oid_switch_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:gt?"true":"false",platform:mt,oid:Kt||"missing_oid",oid_exists:!!Kt}});return}St({name:"abha_create_process_switch_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,oid:Kt}});const tr=await ut({oid:Kt});if(tr.error){St({name:"abha_create_process_switch_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:gt?"true":"false",platform:mt,oid:Kt||"missing_oid",oid_exists:!!Kt,error_message:((Dt=tr.error)==null?void 0:Dt.message)||"unknown_error",error_message_exists:!!((Rt=tr.error)!=null&&Rt.message)}}),_(LOADING_STATE.REJECTED),et(((Vt=tr.error)==null?void 0:Vt.message)||"Something went wrong, please try again");return}St({name:"abha_create_process_switch_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,oid:Kt}}),_(LOADING_STATE.RESOLVED);return}a(`${e}@sbx`);const{exists:xt,error:pt,action:vt}=await postAbdmRegisterPhrCheck({abha_address:e});if(pt){_(LOADING_STATE.REJECTED),et(pt||"Something went wrong. Please try again.");return}if(xt){_(LOADING_STATE.REJECTED),et("This abha address is already taken.");return}if(c===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){if(!i)return;const{error:$t,eka:Bt,action:er}=await postAbdmRegisterAbhaNumberCreatePhr({abha_address:e,txn_id:i});if(er){rt(er);return}if($t||!Bt){_(LOADING_STATE.REJECTED),et($t||"Something went wrong. Please try again.");return}if(ct&&ct.auth&&gt){_(LOADING_STATE.RESOLVED),onAbhaSuccess({response:""}),unMount();return}(!Bt.min_token||!b)&&(_(LOADING_STATE.REJECTED),et($t||"Something went wrong. Please try again."));const Kt=await ot({txn_id:b||"",token:Bt.min_token,...Bt.oid?{oid:Bt.oid}:null});if(!Kt.data){_(LOADING_STATE.REJECTED),et(((Gt=Kt.error)==null?void 0:Gt.message)||"Something went wrong, please try again");return}_(LOADING_STATE.RESOLVED);return}},Mt=()=>{o();const xt=useAuthAbhaStore.getState().isEkaAppLogin;at(),useAuthAbhaStore.setState({isEkaAppLogin:xt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Create ABHA Address",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>_e(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),className:"pds2-border-b pds2-border-bg-seperator-dark pds2-bg-bg-white pds2-flex-shrink-0"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-flex-1 pds2-overflow-y-auto pds2-bg-bg-01",children:jsxRuntimeExports.jsx(AbhaAddressCard,{address:e,setAddress:s,suggestions:it})}),$&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-text-error pds2-text-center",children:$}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-shadow-elevation-only-top pds2-sticky pds2-bottom-0",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Create",state:e.length<8&&e.length>18||g===LOADING_STATE.LOADING?"disabled":"enabled",onClick:Tt,isLoading:g===LOADING_STATE.LOADING,className:"pds2-w-full"})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Mt}),jsxRuntimeExports.jsx(ExitPopup,{open:dt,setOpen:_e})]})};function Pds2SingleInputChip({title:e,isDisabled:s,isSelected:i,onSelect:a}){const o=reactExports.useRef(null);return jsxRuntimeExports.jsx("div",{onClick:s?void 0:a,className:`pds2-flex pds2-items-center pds2-cursor-pointer pds2-py-12 pds2-px-16 pds2-border-1 pds2-rounded-12 pds2-bg-bg-white
56
+ `,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"abha-suggestion",value:a,checked:e===a,onClick:()=>s(e===a?"":a),className:"focus:pds2-outline-none pds2-appearance-none"}),jsxRuntimeExports.jsxs("span",{children:[a,"@sbx"]})]},a))})]}):null]}),CreateAbhaAddressScreen=()=>{const[e,s]=reactExports.useState(""),i=useAuthAbhaStore(xt=>xt.txnId),a=useAuthAbhaStore(xt=>xt.setSelectedAbhaAddress),o=useAuthAbhaStore(xt=>xt.goBackLoginScreen),c=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod),[g,_]=reactExports.useState(null),b=useAuthAbhaStore(xt=>xt.authTxnId),[$,et]=reactExports.useState(null),{mutateAsync:ot}=usePostAuthVerifyV2(),rt=useAuthAbhaStore(xt=>xt.setBottomsheetErrorInfo),at=useAuthAbhaStore(xt=>xt.clearAbhaAuthStore),[it,nt]=reactExports.useState([]),[dt,_e]=reactExports.useState(!1),{mutateAsync:tt}=usePostRegisterMobileCreatePhr(),j=useAuthAbhaStore(xt=>xt.ekaProfileInfo),st=useAuthAbhaStore(xt=>xt.registrationType),{mutateAsync:ut}=usePostProfileSwitch(),ct=GET_EXTRA_HEADERS(),gt=useAuthAbhaStore(xt=>xt.isEkaAppLogin),mt=useAuthAbhaStore(xt=>xt.clientId),_t=["M","F","O","U"],kt=useAuthAbhaStore(xt=>xt.isNewLoginOrCreateFlow),wt=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),Et=({name:xt,data:pt={}})=>{var ht,yt;const lt={...{login_platform:mt,is_eka_app_login:gt?"true":"false",is_new_login_or_create_flow:kt?"true":"false",txn_id:i||"missing txnId",oid:ct!=null&&ct["X-User-ID"]?"true":"false",access_token:ct!=null&&ct.auth?"true":"false",flow:wt==null?void 0:wt.toString()},...pt};handleSendEvent({eventName:xt,eventData:lt}),(yt=(ht=window.curio)==null?void 0:ht.pushToMixpanel)==null||yt.call(ht,xt,lt)};reactExports.useEffect(()=>{Et({name:"page_view",data:{page_view:"choose_abha_address_screen",platform:mt}})},[mt]),reactExports.useEffect(()=>{async function xt(){if(i)try{const{suggestions:pt,error:vt}=await getAbdmRegisterSuggest({txn_id:i,fn:j==null?void 0:j.firstname,ln:j==null?void 0:j.lastname,dob:j==null?void 0:j.date_of_birth});if(vt){et(vt||"Something went wrong. Please try again.");return}pt&&(nt(pt),pt.length>0&&s(pt[0]))}catch{}}xt()},[]);const Tt=async()=>{var lt,ht,yt,ft,Ct,St,bt,Ot,Mt,Rt,Kt,Wt,Vt,zt,It;if(!e){Et({name:"create_abha_address_click_no_selection",data:{platform:mt,type:"create",reason:"no_abha_address_selected",abha_address_selected:!1}});return}if(Et({name:"create_abha_address_clicks",data:{platform:mt,type:"create"}}),_(LOADING_STATE.LOADING),st===REGISTRATION_TYPE.CREATE){if(!i||!j)return;const[Nt,Pt,qt]=j.date_of_birth?(lt=j==null?void 0:j.date_of_birth)==null?void 0:lt.split("-"):["","",""];if(c===ABHA_AUTH_FLOW_METHOD.MOBILE){const Ut={abha_address:e,day_of_birth:parseInt(qt),first_name:j.firstname,gender:j.gender,last_name:j.lastname,month_of_birth:parseInt(Pt),pincode:j.pincode,year_of_birth:parseInt(Nt),txn_id:i};Et({name:"create_abha_process_started",data:{method:"mobile",abha_address:e,platform:mt,pincode_sent:Ut==null?void 0:Ut.pincode,date_of_birth:(j==null?void 0:j.date_of_birth)||"missing date of birth",day_of_birth:(Ut==null?void 0:Ut.day_of_birth)||"missing day of birth",month_of_birth:(Ut==null?void 0:Ut.month_of_birth)||"missing month of birth",year_of_birth:(Ut==null?void 0:Ut.year_of_birth)||"missing year of birth"}});const{error:Qt,eka:Ft,profile:Dt,action:tr}=await tt(Ut);if(tr){Et({name:"create_abha_process_error_action",data:{method:"mobile",platform:mt,error_message:((ht=tr==null?void 0:tr.cta)==null?void 0:ht.title)||"unknown_error_message",error_message_exists:!!((yt=tr==null?void 0:tr.cta)!=null&&yt.title)}}),rt(tr);return}if(Qt||!Ft){Et({name:"create_abha_process_failed",data:{method:"mobile",platform:mt,error_message:Qt||"unknown_error",error_message_exists:!!Qt,pincode_received:(Dt==null?void 0:Dt.pincode)||"missing_pincode_received",pincode_received_exists:!!(Dt!=null&&Dt.pincode),pincode_sent:(j==null?void 0:j.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(j!=null&&j.pincode)}}),_(LOADING_STATE.REJECTED),et(Qt||"Something went wrong. Please try again.");return}if(Et({name:"abha_address_created",data:{type:"create_abha",platform:mt}}),Ft.oid&&gt){_(LOADING_STATE.RESOLVED),Et({name:"abha_create_process_started",data:{method:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt}});const nr=_t.includes(Dt==null?void 0:Dt.gender)?Dt==null?void 0:Dt.gender:void 0,Zt={oid:(Ft==null?void 0:Ft.oid)||"",fln:(Dt==null?void 0:Dt.first_name)+" "+(Dt==null?void 0:Dt.last_name),dob:`${Dt==null?void 0:Dt.year_of_birth}-${String(Dt==null?void 0:Dt.month_of_birth).padStart(2,"0")}-${String(Dt==null?void 0:Dt.day_of_birth).padStart(2,"0")}`,gen:nr,mobile:Dt==null?void 0:Dt.mobile,fn:(Dt==null?void 0:Dt.first_name)||"",mn:(Dt==null?void 0:Dt.middle_name)||"",ln:(Dt==null?void 0:Dt.last_name)||"","health-ids":Dt!=null&&Dt.abha_address?[Dt.abha_address]:void 0,abha_number:(Dt==null?void 0:Dt.abha_number)||""},jt=getMockAuthVerifyResponse(Zt);if(Et({name:"abha_create_process_success",data:{method:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(ft=window.EkaAbha)==null||ft.onAbhaSuccess(JSON.stringify({response:jt}));return}onAbhaSuccess({response:jt}),unMount();return}}else{Et({name:"create_abha_process_started",data:{method:c==null?void 0:c.toLowerCase(),platform:mt}});const{error:Ut,eka:Qt,profile:Ft,action:Dt}=await postRegisterAadhaarCreatePhr({abha_address:e,txn_id:i});if(Dt){Et({name:"create_abha_process_error_action",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:mt,error_message:((Ct=Dt==null?void 0:Dt.cta)==null?void 0:Ct.title)||"unknown_error_message",error_message_exists:!!((St=Dt==null?void 0:Dt.cta)!=null&&St.title)}}),rt(Dt);return}if(Ut||!Qt){Et({name:"create_abha_process_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:mt,error_message:Ut||"unknown_error",error_message_exists:!!Ut,pincode_received:(Ft==null?void 0:Ft.pincode)||"missing_pincode_received",pincode_received_exists:!!(Ft!=null&&Ft.pincode),pincode_sent:(j==null?void 0:j.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(j!=null&&j.pincode)}}),_(LOADING_STATE.REJECTED),et(Ut||"Something went wrong. Please try again.");return}if(Et({name:"abha_address_created",data:{type:"create_abha",platform:mt}}),Qt.oid&&gt){_(LOADING_STATE.RESOLVED),Et({name:"abha_create_process_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,page_view:"choose_abha_address"}});const tr=_t.includes(Ft==null?void 0:Ft.gender)?Ft==null?void 0:Ft.gender:void 0,nr={oid:(Qt==null?void 0:Qt.oid)||"",fln:(Ft==null?void 0:Ft.first_name)+" "+(Ft==null?void 0:Ft.last_name),dob:`${Ft==null?void 0:Ft.year_of_birth}-${String(Ft==null?void 0:Ft.month_of_birth).padStart(2,"0")}-${String(Ft==null?void 0:Ft.day_of_birth).padStart(2,"0")}`,gen:tr,mobile:Ft==null?void 0:Ft.mobile,fn:(Ft==null?void 0:Ft.first_name)||"",mn:(Ft==null?void 0:Ft.middle_name)||"",ln:(Ft==null?void 0:Ft.last_name)||"","health-ids":Ft!=null&&Ft.abha_address?[Ft.abha_address]:void 0,abha_number:(Ft==null?void 0:Ft.abha_number)||""},Zt=getMockAuthVerifyResponse(nr);if(Et({name:"abha_create_process_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(bt=window.EkaAbha)==null||bt.onAbhaSuccess(JSON.stringify({response:Zt}));return}onAbhaSuccess({response:Zt}),unMount();return}}let Gt=j.oid;if(j.oid){Et({name:"abha_create_process_link_phr_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,page_view:"choose_abha_address"}});const{error:Ut,action:Qt,eka:Ft}=await postAbdmProfileEkaLinkPhr({abha_address:e,oid:j.oid});if(Qt){Et({name:"abha_create_process_link_phr_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:mt,error_message:((Ot=Qt==null?void 0:Qt.cta)==null?void 0:Ot.title)||"unknown_error_message",error_message_exists:!!((Mt=Qt==null?void 0:Qt.cta)!=null&&Mt.title)}}),rt(Qt);return}if(Ut||!Ft||!Ft.oid){Et({name:"abha_create_process_link_phr_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:mt,error_message:Ut||"unknown_error",error_message_exists:!!Ut,eka:Ft||"missing_eka",eka_oid:(Ft==null?void 0:Ft.oid)||"missing_oid",eka_oid_exists:!!(Ft!=null&&Ft.oid)}}),_(LOADING_STATE.REJECTED),et(Ut||"Something went wrong. Please try again.");return}Et({name:"abha_create_process_link_phr_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,page_view:"choose_abha_address"}})}else{Et({name:"abha_create_process_eka_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt}});const Ut={abha_address:e,day_of_birth:parseInt(qt),first_name:j.firstname,gender:j.gender,last_name:j.lastname||"",month_of_birth:parseInt(Pt),pincode:j.pincode,year_of_birth:parseInt(Nt)},{error:Qt,eka:Ft,action:Dt}=await postAbdmProfileEka({...Ut});if(Dt){Et({name:"abha_create_process_eka_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:mt,error_message:((Rt=Dt==null?void 0:Dt.cta)==null?void 0:Rt.title)||"unknown_error_message",error_message_exists:!!((Kt=Dt==null?void 0:Dt.cta)!=null&&Kt.title)}}),rt(Dt);return}if(Qt||!Ft||!Ft.oid){Et({name:"abha_create_process_eka_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:gt?"true":"false",platform:mt,error_message:Qt||"unknown_error",error_message_exists:!!Qt,eka_exists:!!Ft,eka_oid:(Ft==null?void 0:Ft.oid)||"missing_oid",eka_oid_exists:!!(Ft!=null&&Ft.oid),flow:wt??""}}),_(LOADING_STATE.REJECTED),et(Qt||"Something went wrong. Please try again.");return}Gt=Ft.oid,Et({name:"abha_create_process_eka_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,oid:Ft==null?void 0:Ft.oid}})}if(!Gt){Et({name:"abha_create_process_oid_switch_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:gt?"true":"false",platform:mt,oid:Gt||"missing_oid",oid_exists:!!Gt}});return}Et({name:"abha_create_process_switch_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,oid:Gt}});const er=await ut({oid:Gt});if(er.error){Et({name:"abha_create_process_switch_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:gt?"true":"false",platform:mt,oid:Gt||"missing_oid",oid_exists:!!Gt,error_message:((Wt=er.error)==null?void 0:Wt.message)||"unknown_error",error_message_exists:!!((Vt=er.error)!=null&&Vt.message)}}),_(LOADING_STATE.REJECTED),et(((zt=er.error)==null?void 0:zt.message)||"Something went wrong, please try again");return}Et({name:"abha_create_process_switch_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:mt,oid:Gt}}),_(LOADING_STATE.RESOLVED);return}a(`${e}@sbx`);const{exists:xt,error:pt,action:vt}=await postAbdmRegisterPhrCheck({abha_address:e});if(pt){_(LOADING_STATE.REJECTED),et(pt||"Something went wrong. Please try again.");return}if(xt){_(LOADING_STATE.REJECTED),et("This abha address is already taken.");return}if(c===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){if(!i)return;const{error:Nt,eka:Pt,action:qt}=await postAbdmRegisterAbhaNumberCreatePhr({abha_address:e,txn_id:i});if(qt){rt(qt);return}if(Nt||!Pt){_(LOADING_STATE.REJECTED),et(Nt||"Something went wrong. Please try again.");return}if(ct&&ct.auth&&gt){_(LOADING_STATE.RESOLVED),onAbhaSuccess({response:""}),unMount();return}(!Pt.min_token||!b)&&(_(LOADING_STATE.REJECTED),et(Nt||"Something went wrong. Please try again."));const Gt=await ot({txn_id:b||"",token:Pt.min_token,...Pt.oid?{oid:Pt.oid}:null});if(!Gt.data){_(LOADING_STATE.REJECTED),et(((It=Gt.error)==null?void 0:It.message)||"Something went wrong, please try again");return}_(LOADING_STATE.RESOLVED);return}},Lt=()=>{o();const xt=useAuthAbhaStore.getState().isEkaAppLogin;at(),useAuthAbhaStore.setState({isEkaAppLogin:xt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Create ABHA Address",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>_e(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),className:"pds2-border-b pds2-border-bg-seperator-dark pds2-bg-bg-white pds2-flex-shrink-0"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-flex-1 pds2-overflow-y-auto pds2-bg-bg-01",children:jsxRuntimeExports.jsx(AbhaAddressCard,{address:e,setAddress:s,suggestions:it})}),$&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-text-error pds2-text-center",children:$}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-shadow-elevation-only-top pds2-sticky pds2-bottom-0",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Create",state:e.length<8&&e.length>18||g===LOADING_STATE.LOADING?"disabled":"enabled",onClick:Tt,isLoading:g===LOADING_STATE.LOADING,className:"pds2-w-full"})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Lt}),jsxRuntimeExports.jsx(ExitPopup,{open:dt,setOpen:_e})]})};function Pds2SingleInputChip({title:e,isDisabled:s,isSelected:i,onSelect:a}){const o=reactExports.useRef(null);return jsxRuntimeExports.jsx("div",{onClick:s?void 0:a,className:`pds2-flex pds2-items-center pds2-cursor-pointer pds2-py-12 pds2-px-16 pds2-border-1 pds2-rounded-12 pds2-bg-bg-white
57
57
  ${i?"pds2-border-border-brand-01":"pds2-border-border-03"}
58
58
  focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2
59
59
  active:pds2-bg-bg-brand-02 hover:pds2-bg-bg-hover-01
60
60
  pds2-transition-colors pds2-duration-200
61
- `,tabIndex:-1,ref:o,children:jsxRuntimeExports.jsx("p",{className:`${i?"pds2-text-text-brand Body2Semibold":"pds2-text-text-01 Body2Medium"}`,children:e})})}async function getPincodeDetails({pincode:e}){const i=`${GET_NDHM_HOST()}/abdm/na/v1/registration/pincode/${e}`,a=new Headers;a.append("Content-Type","application/json");const o={method:"GET",headers:a,redirect:"follow",credentials:"include"};try{return await(await fetchWrapper(i,o)).json()}catch(c){console.error(c)}return{}}const CreateEkaProfileScreen=()=>{const e=useAuthAbhaStore(ft=>ft.screen),s=useAuthAbhaStore(ft=>ft.selectedAbhaAddress),i=useAuthAbhaStore(ft=>ft.setBottomsheetErrorInfo),a=useAuthAbhaStore(ft=>ft.clearAbhaAuthStore),o=useAuthAbhaStore(ft=>ft.goBackLoginScreen),[c,g]=reactExports.useState(LOADING_STATE.IDLE),[_,b]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[$,et]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[ot,rt]=reactExports.useState(null),{mutateAsync:at}=usePostProfileSwitch(),[it,nt]=reactExports.useState(!1),dt=useAuthAbhaStore(ft=>ft.ekaProfileInfo),_e=useAuthAbhaStore(ft=>ft.setEkaProfileInfo),tt=useAuthAbhaStore(ft=>ft.setScreen),j=e[e.length-1],st=useAuthAbhaStore(ft=>ft.aadhaarVerificationSkipStateStatus),ut=queryClient.getQueryData(["abdmProfilePhrResponse"]),ct=useAuthAbhaStore(ft=>ft.abhaAuthFlowMethod),[gt,mt]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""});useAuthAbhaStore(ft=>ft.isDocAppRequest);const _t=useAuthAbhaStore(ft=>ft.clientId),kt=useAuthAbhaStore(ft=>ft.isEkaAppLogin),wt=useAuthAbhaStore(ft=>ft.isNewLoginOrCreateFlow),St=useAuthAbhaStore(ft=>ft.txnId),Tt=GET_EXTRA_HEADERS(),[Mt,xt]=reactExports.useState(null),pt=useAuthAbhaStore(ft=>ft.abhaAuthFlowMethod),vt=({name:ft,data:Ct={}})=>{var Ot,Lt;const bt={...{login_platform:_t,is_eka_app_login:kt?"true":"false",is_new_login_or_create_flow:wt?"true":"false",txn_id:St||"missing txnId",oid:Tt!=null&&Tt["X-User-ID"]?"true":"false",access_token:Tt!=null&&Tt.auth?"true":"false",flow:pt??""},...Ct};handleSendEvent({eventName:ft,eventData:bt}),(Lt=(Ot=window.curio)==null?void 0:Ot.pushToMixpanel)==null||Lt.call(Ot,ft,bt)};reactExports.useEffect(()=>{vt({name:"page_view",data:{page_view:"create_profile_screen"}})},[_t]),reactExports.useEffect(()=>{var ft;if((ft=window.EkaAbha)!=null&&ft.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var Ct,Et;(Ct=window.EkaAbha)!=null&&Ct.changeStatusBarColor&&((Et=window==null?void 0:window.EkaAbha)==null||Et.changeStatusBarColor("#FFFFFF"))}},[]),reactExports.useEffect(()=>{if(ut){const{first_name:ft,last_name:Ct,gender:Et,pincode:bt,day_of_birth:Ot,month_of_birth:Lt,year_of_birth:Pt}=ut,It=Ot===0?1:Ot,Rt=`${Pt}-${String(Lt===0?1:Lt).padStart(2,"0")}-${String(It).padStart(2,"0")}`;vt({name:"profile_data_set_from_phr_cache",data:{source:"phr_cache",date_of_birth:Rt,firstname:ft??"missing",lastname:Ct??"missing",gender:Et??"missing",pincode:bt??"missing",dob_day:Ot??"missing",dob_month:Lt??"missing",dob_year:Pt??"missing",flow:pt??""}}),b({firstname:ft,lastname:Ct,gender:Et,pincode:bt,date_of_birth:Rt});return}if(dt){let ft="1983",Ct="01",Et="01";if(dt.date_of_birth){const Ot=dt.date_of_birth.split("-");ft=Ot[0],Ct=Ot[1]==="00"||!Ot[1]?"01":Ot[1],Et=Ot[2]==="00"||!Ot[2]?"01":Ot[2]}const bt=`${ft}-${String(Ct).padStart(2,"0")}-${String(Et).padStart(2,"0")}`;b({firstname:dt.firstname,lastname:dt.lastname,gender:dt.gender,pincode:dt.pincode,date_of_birth:bt,oid:dt.oid}),vt({name:"profile_data_set_from_eka_profile",data:{source:"eka_profile",date_of_birth:(dt==null?void 0:dt.date_of_birth)??"missing",firstname:(dt==null?void 0:dt.firstname)??"missing",lastname:(dt==null?void 0:dt.lastname)??"missing",gender:(dt==null?void 0:dt.gender)??"missing",pincode:(dt==null?void 0:dt.pincode)??"missing",oid:(dt==null?void 0:dt.oid)??"missing"}})}},[ut,dt]);const lt=reactExports.useMemo(()=>!!(_.firstname&&!$.firstname&&_.date_of_birth&&!$.date_of_birth&&_.pincode&&!$.pincode&&_.gender&&!$.gender),[_,$]),ht=async()=>{var Ct,Et,bt,Ot;const ft={firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""};if(et(ft),_.firstname.trim()||(ft.firstname="Enter Name"),_.lastname.trim()||(ft.lastname="This field is required"),_.date_of_birth||(ft.date_of_birth="Enter DOB"),_.gender||(ft.gender="Select Gender"),_.pincode||(ft.pincode="Enter Valid Pincode"),!!lt){if(vt({name:"create_profile_screen_clicks",data:{type:"create_profile"}}),g(LOADING_STATE.LOADING),j===SCREEN_NAMES.CREATE_EKA_PROFILE){if(vt({name:"navigate_to_create_abha_address_screen",data:{type:"next",pincode_entered:(_==null?void 0:_.pincode)??"unknown",eka_profile_info_pincode:(dt==null?void 0:dt.pincode)??"unknown",flow_type:ct||"unknown_method"}}),ct===ABHA_AUTH_FLOW_METHOD.MOBILE){const Lt=await getPincodeDetails({pincode:Number(_.pincode)});if(Lt!=null&&Lt.error){xt(Lt!=null&&Lt.error?"Invalid Pincode":null),g(LOADING_STATE.REJECTED),vt({name:"pincode_api_failed",data:{type:"error",error:Lt==null?void 0:Lt.error}});return}if(vt({name:"pincode_api_success",data:{type:"verify",pincode_received:!!Lt.pincode,txn_id:St}}),Lt!=null&&Lt.pincode){rt(null),_e(_),vt({name:"eka_profile_info_set",data:{firstname:_==null?void 0:_.firstname,lastname:_==null?void 0:_.lastname,gender:_==null?void 0:_.gender,pincode:_==null?void 0:_.pincode,date_of_birth:_==null?void 0:_.date_of_birth}}),tt(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}vt({name:"no_action_on_pincode",data:{type:"verify",pincode_entered:!!Lt.pincode,txn_id:St}});return}else if(ct===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){_e(_),vt({name:"eka_profile_info_set",data:{firstname:_==null?void 0:_.firstname,lastname:_==null?void 0:_.lastname,gender:_==null?void 0:_.gender,pincode:_==null?void 0:_.pincode,date_of_birth:_==null?void 0:_.date_of_birth}}),tt(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}}if(j===SCREEN_NAMES.CREATE_PHR_EKA_PROFILE){if(!s){vt({name:"abha_create_eka_profile_abha_address_missing",data:{platform:_t}});return}const[Lt,Pt,It]=_.date_of_birth?(Ct=_==null?void 0:_.date_of_birth)==null?void 0:Ct.split("-"):["","",""],Dt={abha_address:s,day_of_birth:parseInt(It),first_name:_.firstname,gender:_.gender,last_name:_.lastname||"",month_of_birth:parseInt(Pt),pincode:_.pincode,year_of_birth:parseInt(Lt)};vt({name:"profile_eka_process_started",data:{platform:_t,date_of_birth:(_==null?void 0:_.date_of_birth)||null,dob_day:It||null,dob_month:Pt||null,dob_year:Lt||null}});const{error:Rt,eka:Vt,action:Gt}=await postAbdmProfileEka({...Dt});if(Gt){vt({name:"profile_eka_process_failed",data:{platform:_t,error_message:((Et=Gt==null?void 0:Gt.cta)==null?void 0:Et.title)||"unknown_error",error_message_exists:!!((bt=Gt==null?void 0:Gt.cta)!=null&&bt.title)}}),i(Gt);return}if(Rt||!Vt||!Vt.oid){vt({name:"profile_process_failed",data:{platform:_t,error_message:Rt||"Unknown error",eka_oid:(Vt==null?void 0:Vt.oid)||"missing",eka_exists:!!Vt,date_of_birth:(_==null?void 0:_.date_of_birth)||"missing",dob_day:It||"missing",dob_month:Pt||"missing",dob_year:Lt||"missing",parsed_date_valid:!!(parseInt(It)&&parseInt(Pt)&&parseInt(Lt)),firstname:(_==null?void 0:_.firstname)||"missing",gender:(_==null?void 0:_.gender)||"missing",pincode:(_==null?void 0:_.pincode)||"missing"}}),g(LOADING_STATE.REJECTED),rt(Rt||"Something went wrong. Please try again.");return}vt({name:"profile_eka_process_success",data:{platform:_t,eka:Vt}}),vt({name:"profile_switch_process_started",data:{platform:_t,error_message:Rt,eka:Vt}});const $t=await at({oid:Vt.oid});if($t.error){vt({name:"profile_switch_process_failed",data:{platform:_t,error_message:$t.error||"Something went wrong, please try again",error_message_exists:!!$t.error}}),g(LOADING_STATE.REJECTED),rt(((Ot=$t.error)==null?void 0:Ot.message)||"Something went wrong, please try again");return}vt({name:"profile_switch_process_success",data:{platform:_t,eka:Vt}}),g(LOADING_STATE.RESOLVED);return}}},yt=()=>{o();const ft=useAuthAbhaStore.getState().isEkaAppLogin;a(),useAuthAbhaStore.setState({isEkaAppLogin:ft})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-bg-bg-01 pds2-h-full",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Create ABHA Address",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>nt(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),className:"pds2-bg-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-flex-1 pds2-p-8 pds2-overflow-y-auto",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-justify-between"}),jsxRuntimeExports.jsx(UserDetailsForm,{profileData:_,setProfileData:b,error:$,setError:et,pincodeApiError:Mt})]}),ot&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-text-error pds2-text-center",children:ot}),jsxRuntimeExports.jsxs("div",{className:"pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full",children:[s&&st===ABHA_V3_SKIP_STATES.ABHA_END?jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-w-full pds2-px-16 pds2-py-6 pds2-bg-border-brand-02",children:[jsxRuntimeExports.jsxs("div",{className:"",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-text-03 Body2Regular",children:"Creating for: "}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-01 Body2Semibold",children:s})]}),jsxRuntimeExports.jsx("button",{onClick:o,className:"Body2Semibold pds2-text-text-brand pds2-rounded-full ripple pds2-px-8 pds2-py-2",children:"Change"})]}):null,jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-w-full",children:jsxRuntimeExports.jsx(Pds2Button,{className:"pds2-w-full",title:"Create Profile",state:c===LOADING_STATE.LOADING?"disabled":"enabled",onClick:ht,isLoading:c===LOADING_STATE.LOADING})})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:yt}),jsxRuntimeExports.jsx(ExitPopup,{open:it,setOpen:nt})]})},genders=[{id:"M",name:"Male"},{id:"F",name:"Female"},{id:"O",name:"Other"}],UserDetailsForm=({profileData:e,setProfileData:s,error:i,setError:a,pincodeApiError:o})=>{const c=({event:et,name:ot})=>{const rt=et.target.value;let at="";switch(ot){case"firstname":rt.trim()?at="":at="This field is required";break;case"lastname":!rt||rt.length<0?at="This field is required":at="";break;case"pincode":!rt||isNaN(Number(rt))||rt.length!=6?at="Pincode must consist of exactly 6 digits":at="";break;case"date_of_birth":!rt||rt>new Date().toISOString().split("T")[0]?at="Date of Birth is invalid":at="";break}a({...i,[ot]:at}),s({...e,[ot]:rt})},g=et=>{s({...e,gender:et}),a({...i,gender:""})},_=(et,ot)=>ot!=null&&ot.pincode||!((et.firstname??"").trim()!==""&&(et.gender??"").trim()!==""&&(et.date_of_birth??"").trim()!=="")?!1:!et.pincode||(et.pincode+"").length!==6,b=useAuthAbhaStore(et=>et.ekaProfileInfo),$=useAuthAbhaStore(et=>et.abhaAuthFlowMethod);return jsxRuntimeExports.jsxs("form",{className:"pds2-flex pds2-flex-col pds2-space-y-32 pds2-pt-16 pds2-px-16",children:[jsxRuntimeExports.jsxs("label",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-text-04",children:["Your name",jsxRuntimeExports.jsx("span",{className:"pds2-text-text-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx(Pds2InputField,{isMandatory:!0,textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2",placeholder:"Firstname",value:e.firstname,onChange:et=>c({event:et,name:"firstname"}),autoCapitalize:"on",disabled:!!(b!=null&&b.firstname)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,error:i.firstname}),i.firstname&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-4",children:i.firstname})]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Pds2InputField,{textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2",placeholder:"Lastname",value:e.lastname,onChange:et=>c({event:et,name:"lastname"}),autoCapitalize:"on",disabled:!!(b!=null&&b.lastname)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER})})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-text-04",children:["Gender",jsxRuntimeExports.jsx("span",{className:"pds2-text-text-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-gap-16",children:genders.map((et,ot)=>jsxRuntimeExports.jsx("div",{className:`${i.gender?"pds2-border-2 pds2-rounded-12 pds2-border-text-error placeholder:pds2-text-text-error":"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2 placeholder:pds2-text-text-04"}`,children:jsxRuntimeExports.jsx(Pds2SingleInputChip,{isSelected:et.id===e.gender,title:et.name,onSelect:()=>g(et.id)})},ot))}),i.gender&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-2",children:i.gender})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx(Pds2InputField,{label:"Date of Birth",isMandatory:!0,textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2",value:e.date_of_birth,disabled:!!(b!=null&&b.date_of_birth)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:et=>c({event:et,name:"date_of_birth"}),type:"date",maxDate:new Date().toISOString().split("T")[0],error:i.date_of_birth}),i.date_of_birth&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-2",children:i.date_of_birth})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-4",children:[jsxRuntimeExports.jsx(Pds2InputField,{label:"Pincode",isMandatory:!0,textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:_(e,b)||o?"pds2-border-1 pds2-border-text-error":"",value:e.pincode,placeholder:"Enter Pincode",disabled:!!(b!=null&&b.pincode)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:et=>{et.target.value.length>6||c({event:et,name:"pincode"})},type:"number",error:_(e,b)?i.pincode:"",textStyle:_(e,b)||o?"placeholder:pds2-text-text-error":"placeholder:pds2-text-text-04"}),o||i.pincode&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-4",children:i.pincode})]})]})};async function getProfilePhrUser(){const e=new Headers;e.append("Content-Type","application/json");const s={method:"GET",headers:e,redirect:"follow",credentials:"include"};try{const i=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${i}/profiles/v1/patient`,s)).json()}catch(i){return console.error("profilePhrUser error =>",i),[]}}const useGetProfilesPhrUser=()=>useQuery({queryKey:["profilesPhrUserResponse"],queryFn:async()=>{const e=await getProfilePhrUser();var s;return Array.isArray(e)?s=e==null?void 0:e.filter(a=>!a["health-ids"]||a["health-ids"].length===0):s=[],{profiles:s}}}),GetAllProfilesScreen=()=>{const e=useAuthAbhaStore(_e=>_e.setScreen);useAuthAbhaStore(_e=>_e.screen),useAuthAbhaStore(_e=>_e.goBackLoginScreen),useAuthAbhaStore(_e=>_e.clearAbhaAuthStore);const[s,i]=reactExports.useState(!1),[a,o]=reactExports.useState(""),c=useAuthAbhaStore(_e=>_e.clientId),g=useAuthAbhaStore(_e=>_e.aadhaarVerificationSkipStateStatus),_=useAuthAbhaStore(_e=>_e.isEkaAppLogin),b=useAuthAbhaStore(_e=>_e.isNewLoginOrCreateFlow),$=useAuthAbhaStore(_e=>_e.txnId),et=GET_EXTRA_HEADERS(),ot=useAuthAbhaStore(_e=>_e.abhaAuthFlowMethod),rt=({name:_e,data:tt={}})=>{var ut,ct;const st={...{login_platform:c,is_eka_app_login:_?"true":"false",is_new_login_or_create_flow:b?"true":"false",txn_id:$||"missing txnId",oid:et!=null&&et["X-User-ID"]?"true":"false",access_token:et!=null&&et.auth?"true":"false",flow:ot??""},...tt};handleSendEvent({eventName:_e,eventData:st}),(ct=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ct.call(ut,_e,st)};reactExports.useEffect(()=>{if(c==="doctor"){rt({name:"page_view",data:{platform:c,page_view:"get-all-profiles-screen"}}),rt({name:"redirect_to_create_eka_profile_screen",data:{type:"next"}}),e(SCREEN_NAMES.CREATE_EKA_PROFILE);return}},[c]);let at=!1;_?at=!1:_||(c==="doctor"?at=!1:at=!0);const{data:it,error:nt,isLoading:dt}=at?useGetProfilesPhrUser():{data:null,error:null,isLoading:!1};return reactExports.useEffect(()=>{if(c==="doctor")return;(async()=>{!dt&&it&&(i(!0),await new Promise(tt=>setTimeout(tt,2e3)),i(!1),!it.profiles||it.profiles.length<1?g===ABHA_V3_SKIP_STATES.ABHA_END?(rt({name:"redirect_to_create_phr_eka_profile_screen",data:{type:"next",skip_state:g}}),e(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE)):(rt({name:"redirect_to_create_eka_profile_screen",data:{type:"next",skip_state:g}}),e(SCREEN_NAMES.CREATE_EKA_PROFILE)):(rt({name:"redirect_to_select_eka_profile_screen",data:{type:"next",skip_state:g}}),e(SCREEN_NAMES.SELECT_EKA_PROFILE)))})()},[dt,it]),s?jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!0,loadingText:"In progress...",successText:""}):null},LoginWithAbhaScreen=()=>{const e=useAuthAbhaStore(c=>c.setAbhaAuthFlowMethod),s=useAuthAbhaStore(c=>c.clientId),i=useAuthAbhaStore(c=>c.clearAbhaAuthStore);reactExports.useEffect(()=>{var c;if(handleSendEvent({eventName:"page_view",eventData:{page_view:"abha_login_screen",platform:s}}),e(ABHA_AUTH_FLOW_METHOD.MOBILE),(c=window.EkaAbha)!=null&&c.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var g,_;(g=window.EkaAbha)!=null&&g.changeStatusBarColor&&((_=window==null?void 0:window.EkaAbha)==null||_.changeStatusBarColor("#FFFFFF"))}},[]);const a=()=>{var g;(g=window.EkaAbha)==null||g.onAbhaClose();const c=useAuthAbhaStore.getState().isNewLoginOrCreateFlow;i(),useAuthAbhaStore.setState({isNewLoginOrCreateFlow:c}),unMount()},o=["eka-web","phr"];return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-white pds2-h-full",children:[!o.includes(s)&&jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{onClick:a,children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),title:"",className:"pds2-bg-bg-01"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx(LoginWithDifferentMethods,{}),jsxRuntimeExports.jsx(OtherLoginMethods,{})]})},OtherLoginMethods=()=>{const e=useAuthAbhaStore(a=>a.setAbhaAuthFlowMethod),s=useAuthAbhaStore(a=>a.abhaAuthFlowMethod),i=[{method:ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,title:"ABHA Number",icon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})},{method:ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,title:"ABHA Address",icon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})},{method:ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,title:"Aadhaar Number",icon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})},{method:ABHA_AUTH_FLOW_METHOD.MOBILE,title:"Mobile Number",icon:jsxRuntimeExports.jsx(PhoneSolidIcon,{className:"pds2-w-20 pds2-h-20 pds2-text-icon-success-02"})}];return jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-space-y-16",children:[jsxRuntimeExports.jsx(TextSeparator,{title:"Other login options for ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-16",children:i.filter(a=>a.method!==s).map(a=>jsxRuntimeExports.jsx(Pds2CustomButton,{prefixIcon:a.icon,title:a.title,suffixIcon:jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-ml-auto pds2-h-16 pds2-w-16 pds2-text-text-04 -pds2-rotate-90","aria-hidden":"true"}),onClick:()=>e(a.method)},a.method))})]})},LoginWithDifferentMethods=()=>{const e=useAuthAbhaStore(Tt=>Tt.setScreen),s=useAuthAbhaStore(Tt=>Tt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),i=useAuthAbhaStore(Tt=>Tt.setRegistrationType),a=useAuthAbhaStore(Tt=>Tt.setAadhaarInitResponse),[o,c]=reactExports.useState(""),[g,_]=reactExports.useState(""),[b,$]=reactExports.useState(LOADING_STATE.IDLE),et=useAuthAbhaStore(Tt=>Tt.setLoginIdentifierValue),ot=useAuthAbhaStore(Tt=>Tt.setSelectedAbhaAddress),[rt,at]=reactExports.useState(!1),it=useAuthAbhaStore(Tt=>Tt.initAbhaAppMobileNumber),nt=useAuthAbhaStore(Tt=>Tt.setBottomsheetErrorInfo),[dt,_e]=React.useState(null),[tt,j]=reactExports.useState(""),st=useAuthAbhaStore(Tt=>Tt.clientId),ut=useAuthAbhaStore(Tt=>Tt.isEkaAppLogin);reactExports.useEffect(()=>{if(it&&s===ABHA_AUTH_FLOW_METHOD.MOBILE){c(it),at(it.length===10),_(null);return}c(""),_(null),at(!1)},[s]);const ct=Tt=>{g&&_(null);const Mt=Tt.target.value;switch(s){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:if(Mt.length>20)return;break;case ABHA_AUTH_FLOW_METHOD.MOBILE:if(Mt&&!/^[0-9]+$/.test(Mt)||Mt.length>10)return;break;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:if(!/^[\d-]*$/.test(Mt)||Mt.length>17)return;break;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:if(Mt&&!/^[0-9]+$/.test(Mt)||Mt.length>12)return;break}if(s===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){const xt=Tt.target.value.replace(/-/g,"");let pt="";xt.length>0&&(pt+=xt.slice(0,2)),xt.length>2&&(pt+=`-${xt.slice(2,6)}`),xt.length>6&&(pt+=`-${xt.slice(6,10)}`),xt.length>10&&(pt+=`-${xt.slice(10,14)}`),c(pt)}else c(Mt.trim())},gt=({inputVal:Tt})=>{g&&_(null),Tt.length===12&&c(Tt)},mt=reactExports.useCallback(()=>{const Tt=s===ABHA_AUTH_FLOW_METHOD.MOBILE&&!!it;if(s===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)return jsxRuntimeExports.jsx(SpacedInputComponent,{numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:gt});const Mt={value:o,onChange:ct,...s===ABHA_AUTH_FLOW_METHOD.MOBILE&&{type:"tel",placeholder:"Mobile Number",disabled:Tt,PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-border-brand-02 pds2-pr-24",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4mlct2900000tg98p8u967s.webp",alt:"indian-flag-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-black",children:"+91"})]})},...s===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&{placeholder:"00-0000-0000-0000",padding:"pds2-p-18",textStyle:"Body2Regular pds2-text-center pds2-text-lg",borderStyle:"focus-within:pds2-border-border-brand-01",type:"tel"},...s===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&{placeholder:"Enter ABHA Address"}};return jsxRuntimeExports.jsx(Pds2InputField,{...Mt})},[s,o,g]),_t=(Tt=dt)=>{Tt&&(useAuthAbhaStore.setState({isLoggedInFromRedirect:!0}),j(o),useAuthAbhaStore.setState({initAbhaAppMobileNumber:o}),useAuthAbhaStore.setState({abhaAuthFlowMethod:ABHA_AUTH_FLOW_METHOD.MOBILE}),e(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR),nt(null))},kt=async()=>{$(LOADING_STATE.LOADING);let Tt="";if(!ut){const{txn_id:ht,error:yt}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!ht||yt){_((yt==null?void 0:yt.message)||"Something went wrong. Please try again."),$(LOADING_STATE.REJECTED);return}Tt=ht,console.log("triggering logout api in login with abha screen"),await postAuthLogoutV2()}i(REGISTRATION_TYPE.LOGIN);const Mt=s===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?`${o}@sbx`:o;console.log("loginIdentifier",Mt);const{txn_id:xt,error:pt,action:vt,hint:lt}=await postAbdmLoginInit({method:s,identifier:Mt});if(console.log("after postAbdmLoginInit",vt),console.log("after postAbdmLoginInit",vt),vt){_e(vt),nt(vt);return}if(pt){_(pt||"Something went wrong. Please try again."),$(LOADING_STATE.REJECTED);return}if(!xt){_("Something went wrong. Please try again."),$(LOADING_STATE.REJECTED);return}s===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&ot(Mt),a({authTxnId:Tt,txnId:xt,aadhaarOtpSentToHint:lt||null}),et(Mt),$(LOADING_STATE.RESOLVED),handleSendEvent({eventName:"abha_login_submitted",eventData:{type:"next",platform:st}}),e(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA)},wt=React.useMemo(()=>{switch(s){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return o.length>=4&&o.length<=20;case ABHA_AUTH_FLOW_METHOD.MOBILE:return o.length===10;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return o.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return o.length===12}},[s,o]),St=React.useMemo(()=>{switch(s){case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return"Enter your ABHA Number";case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return"Enter your ABHA Address";case ABHA_AUTH_FLOW_METHOD.MOBILE:return"Enter your Mobile Number";case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return"Enter your Aadhaar Number";default:return"Enter your ABHA Number"}},[s]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-bg-bg-01 pds2-space-y-12 pds2-text-center pds2-rounded-b-24",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center pds2-gap-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-16",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64"})})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-text-black",children:"Log in With ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-black pds2-mt-2",children:St}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-12",children:jsxRuntimeExports.jsxs("div",{className:"pds2-relative",children:[mt(),s===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-right-16 pds2-top-16 Body1Regular pds2-text-text-03",children:"@sbx"})]})}),g&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular",children:g}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!wt||!rt||b===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:b===LOADING_STATE.LOADING,onClick:kt,className:"pds2-w-full"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-row pds2-justify-center pds2-items-center pds2-bg-bg-white pds2-w-fit pds2-px-12 pds2-bg-opacity-60 pds2-rounded-12 pds2-mx-auto",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-04 Body3Regular",children:"Don’t have ABHA?"}),jsxRuntimeExports.jsx(Pds2CustomButton,{className:"pds2-text-text-brand Body3Semibold pds2-pl-4 pds2-pr-0 pds2-py-4 ripple pds2-border-none pds2-bg-transparent",width:"pds2-w-fit",title:"Register Now",onClick:()=>{e(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR)}})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:_t})]})};async function postAbdmProfileLoginPhr({txn_id:e,phr_address:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,phr_address:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/profile/login/phr`,o)).json()}catch(c){console.error("postAbdmProfileLoginPhr error =>",c)}return{}}const usePostAbdmProfileLoginPhr=()=>{const e=useAuthAbhaStore(s=>s.setSelectedAbhaAddress);return useMutation({mutationFn:({txn_id:s,phr_address:i})=>postAbdmProfileLoginPhr({txn_id:s,phr_address:i}),onSuccess(s){s.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],s.profile),e(s.profile.abha_address))}})},SelectAbhaFromListScreen=()=>{var Pt;const[e,s]=reactExports.useState(null),i=useAuthAbhaStore(It=>It.setScreen),a=useAuthAbhaStore(It=>It.goBackLoginScreen),o=useAuthAbhaStore(It=>It.txnId),c=useAuthAbhaStore(It=>It.authTxnId),g=useAuthAbhaStore(It=>It.abhaAddressList),_=useAuthAbhaStore(It=>It.setBottomsheetErrorInfo),b=useAuthAbhaStore(It=>It.clearAbhaAuthStore),$=useAuthAbhaStore(It=>It.setSelectedAbhaAddress),et=useAuthAbhaStore(It=>It.abhaAuthFlowMethod);useAuthAbhaStore(It=>It.loginIdentifierValue);const[ot,rt]=reactExports.useState(""),[at,it]=reactExports.useState(!1),nt=useAuthAbhaStore(It=>It.setEkaProfileInfo),dt=useAuthAbhaStore(It=>It.setAbhaAuthFlowMethod),_e=useAuthAbhaStore(It=>It.setAadhaarVerificationSkipStateStatus),tt=useAuthAbhaStore(It=>It.identifierValue),[j,st]=reactExports.useState(LOADING_STATE.IDLE),ut=["M","F","O","U"],{mutateAsync:ct}=usePostAuthVerifyV2(),{mutateAsync:gt}=usePostAbdmProfileLoginPhr();useAuthAbhaStore(It=>It.ekaProfileInfo),useAuthAbhaStore(It=>It.registrationType);const mt=useAuthAbhaStore(It=>It.clientId),_t=useAuthAbhaStore(It=>It.isEkaAppLogin),kt=useAuthAbhaStore(It=>It.setRegistrationType),wt=useAuthAbhaStore(It=>It.abhaAuthFlowMethod),St=useAuthAbhaStore(It=>It.identityValue),Tt=useAuthAbhaStore(It=>It.setMobileInitResponse),[Mt,xt]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),pt=useAuthAbhaStore(It=>It.setAadhaarInitResponse),vt=useAuthAbhaStore(It=>It.setSelectedAbhaFlow),lt=useAuthAbhaStore(It=>It.isNewLoginOrCreateFlow),ht=GET_EXTRA_HEADERS(),yt=useAuthAbhaStore(It=>It.setLoginIdentifierValue),[ft,Ct]=reactExports.useState(!1),Et=({name:It,data:Dt={}})=>{var Gt,$t;const Vt={...{login_platform:mt,is_eka_app_login:_t?"true":"false",is_new_login_or_create_flow:lt?"true":"false",txn_id:o||"missing txnId",oid:ht!=null&&ht["X-User-ID"]?"true":"false",access_token:ht!=null&&ht.auth?"true":"false",flow:wt??""},...Dt};handleSendEvent({eventName:It,eventData:Vt}),($t=(Gt=window.curio)==null?void 0:Gt.pushToMixpanel)==null||$t.call(Gt,It,Vt)},bt=async()=>{Et({name:"abha_login_select_abha_init_started",data:{method:wt,platform:mt}});const It=(Dt,Rt)=>{xt(Vt=>({...Vt,[Dt]:Rt}))};if(kt(REGISTRATION_TYPE.CREATE),wt===ABHA_AUTH_FLOW_METHOD.MOBILE){const{txn_id:Dt,hint:Rt,error:Vt,action:Gt}=await postRegisterMobileInit({mobile_number:St});if(Dt&&Rt){Et({name:"abha_login_select_abha_mobile_init_success",data:{method:wt,platform:mt,txn_id:Dt}}),Tt({authTxnId:c,txnId:Dt,mobileOtpSentToHint:Rt}),vt("mobile"),It("mobile",LOADING_STATE.RESOLVED),kt(REGISTRATION_TYPE.CREATE),i(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}Et({name:"abha_login_select_abha_init_failed",data:{method:wt,platform:mt,reason:Vt||"unknown",reason_exists:!!Vt}}),It("mobile",LOADING_STATE.REJECTED),Gt?_(Gt):rt(Vt||"Something went wrong")}else if(wt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){Et({name:"abha_fetching_profiles",data:{method:wt,platform:mt}}),i(SCREEN_NAMES.GET_ALL_PROFILES);return}},Ot=async()=>{var Bt,er,Kt,tr,Wt,Qt;if(et===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&e){st(LOADING_STATE.LOADING),setIndividualEnv({extraHeaders:{auth:""}}),_t||await postAuthLogoutV2()||Et({name:"logout_api_failed_before_init_on_continue_click",data:{method:wt,platform:mt,reason:"logout_api_response_false"}});const{txn_id:Nt,error:Ft,action:qt,hint:sr}=await postAbdmLoginInit({method:ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,identifier:e.abha_address});if(Et({name:"abha_abdm_login_init_triggered",data:{flow_step_type:"init",authTxnId:c,ndhmTxnId:Nt,method:wt}}),console.log("after postAbdmLoginInit",qt),console.log("after postAbdmLoginInit",qt),qt){Et({name:"abha_abdm_login_init_abha_error_action",data:{method:wt,platform:mt,action:((Bt=qt==null?void 0:qt.cta)==null?void 0:Bt.title)||"unknown",action_exists:!!((er=qt==null?void 0:qt.cta)!=null&&er.title)}}),_(qt);return}if(Ft){Et({name:"abha_abdm_login_init_failed",data:{method:wt,platform:mt,reason:Ft||"unknown",reason_exists:!!Ft}}),st(LOADING_STATE.REJECTED),rt(Ft||"Something went wrong. Please try again.");return}if(!Nt){rt("Something went wrong. Please try again.");return}Et({name:"abha_login_init_success",data:{flow_step_type:"init",authTxnId:c,ndhmTxnId:Nt,hint:sr}}),pt({authTxnId:c,txnId:Nt,aadhaarOtpSentToHint:sr||null}),st(LOADING_STATE.RESOLVED),yt(e.abha_address),dt(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),i(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}if(!e)return;if($(e.abha_address),console.log(j,"from abha"),!o){Et({name:"abha_login_select_abha_txnId_not_found",data:{platform:mt,reason:"txnId missing",reason_exists:!0}});return}st(LOADING_STATE.LOADING),Et({name:"abha_login_select_abha_verify_start",data:{platform:mt,txn_id:o}});const{error:It,eka:Dt,profile:Rt,action:Vt,skip_state:Gt}=await gt({txn_id:o,phr_address:e.abha_address});if(Vt){Et({name:"abha_login_select_abha_error_action",data:{platform:mt,txn_id:o,action:((Kt=Vt==null?void 0:Vt.cta)==null?void 0:Kt.title)||"unknown",action_exists:!!((tr=Vt==null?void 0:Vt.cta)!=null&&tr.title)}}),_(Vt);return}if(It||!Dt){Et({name:"abha_login_select_abha_abdm_error",data:{platform:mt,txn_id:o,error_message:It||"eka object missing",error_exists:!!It}}),st(LOADING_STATE.REJECTED),rt(It);return}if(!Gt){rt("skip State is missing");return}if(Et({name:"abha_login_select_abha_verify_success",data:{platform:mt,txn_id:o,skip_state:Gt}}),_e(Gt),Rt&&(Et({name:"abha_login_select_abha_profile_received",data:{platform:mt}}),nt({date_of_birth:`${Rt.year_of_birth}-${String(Rt.month_of_birth).padStart(2,"0")}-${String(Rt.day_of_birth).padStart(2,"0")}`,firstname:Rt.first_name,lastname:Rt.last_name,pincode:Rt.pincode,gender:Rt.gender,name:Rt.first_name+" "+Rt.last_name,mobile:Rt.mobile,oid:Dt==null?void 0:Dt.oid,middlename:Rt.middle_name,abha_address:Rt.abha_address,abha_number:Rt.abha_number}),$(Rt.abha_address)),_t){if(!Dt.oid){Et({name:"abha_login_select_abha_oid_null",data:{platform:mt,oid:(Dt==null?void 0:Dt.oid)??"null_or_undefined"}}),st(LOADING_STATE.REJECTED);return}const Nt=ut.includes(Rt==null?void 0:Rt.gender)?Rt==null?void 0:Rt.gender:void 0,Ft={oid:(Dt==null?void 0:Dt.oid)||"",fln:(Rt==null?void 0:Rt.first_name)+" "+(Rt==null?void 0:Rt.last_name),dob:`${Rt==null?void 0:Rt.year_of_birth}-${String(Rt==null?void 0:Rt.month_of_birth).padStart(2,"0")}-${String(Rt==null?void 0:Rt.day_of_birth).padStart(2,"0")}`,gen:Nt,mobile:Rt==null?void 0:Rt.mobile,fn:(Rt==null?void 0:Rt.first_name)||"",mn:(Rt==null?void 0:Rt.middle_name)||"",ln:(Rt==null?void 0:Rt.last_name)||"","health-ids":Rt!=null&&Rt.abha_address?[Rt.abha_address]:void 0,abha_number:(Rt==null?void 0:Rt.abha_number)||""},qt=getMockAuthVerifyResponse(Ft);if(st(LOADING_STATE.RESOLVED),Et({name:"abha_login_select_abha_inside_app_success",data:{platform:mt,oid:Dt.oid}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Wt=window.EkaAbha)==null||Wt.onAbhaSuccess(JSON.stringify({response:qt}));return}onAbhaSuccess({response:qt}),unMount();return}if(!Dt.min_token||!c){Et({name:"abha_login_select_abha_min_token_missing",data:{platform:mt,oid:(Dt==null?void 0:Dt.oid)??"missing_oid",min_token:(Dt==null?void 0:Dt.min_token)??"missing_min_token",auth_txnId:c??"missing_authTxnId"}}),st(LOADING_STATE.REJECTED),rt(It||"Something went wrong. Please try again.");return}const $t=await ct({txn_id:c,token:Dt.min_token,...Dt.oid?{oid:Dt.oid}:null});if(!$t.data){Et({name:"abha_login_select_abha_auth_verify_failed",data:{platform:mt,oid:(Dt==null?void 0:Dt.oid)??"missing_oid",min_token:(Dt==null?void 0:Dt.min_token)??"missing_min_token",auth_txnId:c??"missing_authTxnId"}}),st(LOADING_STATE.REJECTED),rt(((Qt=$t.error)==null?void 0:Qt.message)||"Something went wrong, please try again");return}st(LOADING_STATE.RESOLVED),Et({name:"abha_login_select_abha_auth_verify_success",data:{platform:mt,oid:Dt.oid,min_token:Dt==null?void 0:Dt.min_token,auth_txnId:c}})},Lt=()=>{const It=useAuthAbhaStore.getState().initAbhaAppMobileNumber,Dt=useAuthAbhaStore.getState().isEkaAppLogin;a(),b(),useAuthAbhaStore.setState({initAbhaAppMobileNumber:It}),useAuthAbhaStore.setState({isEkaAppLogin:Dt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-h-full pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Select ABHA to continue",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>it(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),suffixIcon:((Pt=g==null?void 0:g[0])==null?void 0:Pt.kyc_verified)&&jsxRuntimeExports.jsx(CircleInfoRegularIcon,{onClick:()=>Ct(It=>!It),className:"pds2-w-20 pds2-h-20 pds2-text-icon-03 pds2-text-[2rem] hover:pds2-cursor-pointer"}),className:"pds2-border-b pds2-border-bg-seperator-dark pds2-bg-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),ft&&jsxRuntimeExports.jsx("div",{onMouseLeave:()=>Ct(!1),className:"pds2-absolute pds2-right-10 pds2-top-45 pds2-mt-2 pds2-z-50 pds2-animate-fade-in",children:jsxRuntimeExports.jsx(TooltipContent,{})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-overflow-y-auto pds2-flex pds2-flex-col pds2-p-16 pds2-space-y-16",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-text-text-03 Body1Regular pds2-text-center",children:["We found ",g==null?void 0:g.length," ABHA addresses ",jsxRuntimeExports.jsx("br",{})," select one you want to log in with"]}),jsxRuntimeExports.jsx(AbhaList,{list:g,selectedAbha:e,setSelectedAbha:s,handleContinueClick:Ot}),((g==null?void 0:g.length)??0)<6&&(et===ABHA_AUTH_FLOW_METHOD.MOBILE||et===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-gap-16",children:[jsxRuntimeExports.jsx(TextSeparator,{title:"or"}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Create new ABHA Address",prefixIcon:jsxRuntimeExports.jsx(PlusRegularIcon,{}),className:"pds2-justify-center pds2-text-text-brand pds2-bg-border-brand-02 pds2-border-border-03 Body1Semibold",onClick:bt})]})]}),et===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&jsxRuntimeExports.jsxs("div",{className:"pds2-text-center pds2-bg-bg-02 pds2-py-8",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-text-03 Body2Regular",children:"Your ABHA No: "}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-01 Body2Semibold",children:tt==null?void 0:tt.abha_number})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-white pds2-shadow-lg pds2-w-full pds2-sticky pds2-bottom-0 pds2-border-border-brand-02 pds2-p-16 z-10",children:[ot&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error pds2-text-center pds2-mb-4",children:ot}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:e===null||j===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:j===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:Ot})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Lt}),jsxRuntimeExports.jsx(ExitPopup,{open:at,setOpen:it})]})},AbhaList=({list:e,selectedAbha:s,setSelectedAbha:i,handleContinueClick:a})=>jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-16 pds2-border pds2-border-border-brand-02 pds2-w-full pds2-relative",children:e==null?void 0:e.map((o,c)=>jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsxs("label",{className:"pds2-p-16 pds2-flex pds2-space-x-8",children:[jsxRuntimeExports.jsx("input",{className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14 pds2-p-2 checked:pds2-accent-text-brand",type:"radio",value:o.abha_address,checked:(s==null?void 0:s.abha_address)===o.abha_address,onChange:()=>{i(o)},onKeyDown:g=>g.key==="Enter"&&a()}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-4 pds2-flex-1",children:[jsxRuntimeExports.jsxs("div",{className:"TitlesSubheadline pds2-text-text-primary pds2-flex pds2-flex-row pds2-items-center pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{children:o==null?void 0:o.abha_address}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-row pds2-items-center",children:(o==null?void 0:o.kyc_verified)&&(o.kyc_verified==="VERIFIED"?jsxRuntimeExports.jsx("div",{className:"Label1Bold pds2-rounded-full pds2-h-full",children:jsxRuntimeExports.jsx(CircleCheckSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-success-02 pds2-text-[2rem]"})}):jsxRuntimeExports.jsx("div",{className:"Label1Bold pds2-rounded-full pds2-h-full",children:jsxRuntimeExports.jsx(CircleExclamationSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-orange-300 pds2-text-[2rem]"})}))})]}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03 Body3Regular pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-4",children:(o==null?void 0:o.name)&&jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-text-03",children:o.name})})]})]}),c!==e.length-1&&jsxRuntimeExports.jsx("div",{className:"pds2-px-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-border-03 pds2-h-1 pds2-w-full"})})]},o.abha_address))}),TooltipContent=()=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-py-14 pds2-bg-bg-purple-800 pds2-rounded-16 pds2-w-150 pds2-animate-slide-up",children:[jsxRuntimeExports.jsxs("div",{className:" pds2-px-16 pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-py-6",children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-full",children:jsxRuntimeExports.jsx(CircleExclamationSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-orange-400"})}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-invert",children:"Non KYC"})]}),jsxRuntimeExports.jsxs("div",{className:" pds2-px-16 pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-py-6 pds2-border-t-1 pds2-border-[#FFFFFF4D]",children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-full",children:jsxRuntimeExports.jsx(CircleCheckSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-success-02"})}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-invert",children:"KYC"})]})]}),SelectEkaProfileScreen=()=>{var Mt;const e=useAuthAbhaStore(xt=>xt.setScreen),s=useAuthAbhaStore(xt=>xt.setEkaProfileInfo),i=useAuthAbhaStore(xt=>xt.registrationType),a=useAuthAbhaStore(xt=>xt.goBackLoginScreen),[o,c]=reactExports.useState(null),g=useAuthAbhaStore(xt=>xt.setBottomsheetErrorInfo),_=useAuthAbhaStore(xt=>xt.clearAbhaAuthStore),[b,$]=reactExports.useState(LOADING_STATE.IDLE),[et,ot]=reactExports.useState(!1),[rt,at]=reactExports.useState(null),it=useAuthAbhaStore(xt=>xt.selectedAbhaAddress),nt=useAuthAbhaStore(xt=>xt.aadhaarVerificationSkipStateStatus),{mutateAsync:dt}=usePostProfileSwitch(),_e=queryClient.getQueryData(["profilesPhrUserResponse"]),tt=useAuthAbhaStore(xt=>xt.clientId),j=useAuthAbhaStore(xt=>xt.linkToOrgIcon),st=useAuthAbhaStore(xt=>xt.isEkaAppLogin),ut=useAuthAbhaStore(xt=>xt.isNewLoginOrCreateFlow),ct=useAuthAbhaStore(xt=>xt.txnId),gt=GET_EXTRA_HEADERS(),mt=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod),_t=({name:xt,data:pt={}})=>{var ht,yt;const lt={...{login_platform:tt,is_eka_app_login:st?"true":"false",is_new_login_or_create_flow:ut?"true":"false",txn_id:ct||"missing txnId",oid:gt!=null&&gt["X-User-ID"]?"true":"false",access_token:gt!=null&&gt.auth?"true":"false",flow:mt??""},...pt};handleSendEvent({eventName:xt,eventData:lt}),(yt=(ht=window.curio)==null?void 0:ht.pushToMixpanel)==null||yt.call(ht,xt,lt)};reactExports.useEffect(()=>{_t({name:"choose_eka_profile_screen",data:{platform:tt,type:"select"}})},[tt]);const kt=()=>{if(_t({name:"create_family_profile_clicks",data:{platform:tt,type:"create",skip_state:nt}}),nt===ABHA_V3_SKIP_STATES.ABHA_END){_t({name:"navigate_to_create_phr_profile_screen",data:{platform:tt}}),e(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE);return}_t({name:"navigate_to_create_eka_profile_screen",data:{platform:tt}}),e(SCREEN_NAMES.CREATE_EKA_PROFILE)},wt=async({profile:xt})=>{_t({name:"select_profile_clicks",data:{platform:tt,oid:xt.oid}}),c(xt.oid)},St=async()=>{var ht,yt,ft,Ct;if(_t({name:"continue_click_on_choose_eka_profile",data:{platform:tt,selectedProfileOid:o,registrationType:i,skip_state:nt}}),o&&nt===ABHA_V3_SKIP_STATES.ABHA_CREATE){const Et=_e==null?void 0:_e.profiles.find(bt=>bt.oid===o);if(!Et){_t({name:"continue_click_profile_not_found",data:{platform:tt,oid:o||"unknown_oid",oid_exists:!!o}});return}_t({name:"navigate_to_create_eka_profile_screen_from_abha_create",data:{platform:tt,oid:Et.oid}}),s({oid:Et.oid,date_of_birth:Et.dob,firstname:Et.fn,lastname:Et.ln,pincode:"",gender:Et.gen,mobile:Et.mobile,name:Et.fln,middlename:Et.mn,abha_address:(ht=Et==null?void 0:Et["health-ids"])==null?void 0:ht[0],abha_number:Et.abha_number}),e(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!it||!o){_t({name:"continue_click_missing_profile_or_abha",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}});return}_t({name:"linking_abha_to_profile_start",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}}),$(LOADING_STATE.LOADING);const{error:xt,action:pt,eka:vt}=await postAbdmProfileEkaLinkPhr({abha_address:it,oid:o});if(pt){_t({name:"linking_abha_to_profile_error_action",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}}),g(pt);return}if(xt||!vt||!vt.oid){_t({name:"linking_abha_to_profile_failed",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o,error:xt||"No EKA/OID",error_exists:!!xt}}),$(LOADING_STATE.REJECTED),at(xt||"Something went wrong. Please try again.");return}const lt=await dt({oid:vt.oid});if(lt.error){_t({name:"profile_switch_failed_after_link",data:{platform:tt,oid:(vt==null?void 0:vt.oid)||"missing_oid",oid_exists:!!(vt!=null&&vt.oid),error:((yt=lt.error)==null?void 0:yt.message)||"unknown_error",error_exists:!!((ft=lt.error)!=null&&ft.message)}}),$(LOADING_STATE.REJECTED),at(((Ct=lt.error)==null?void 0:Ct.message)||"Something went wrong, please try again");return}_t({name:"linking_abha_to_profile_success",data:{platform:tt,oid:vt.oid}}),$(LOADING_STATE.RESOLVED)},Tt=()=>{a();const xt=useAuthAbhaStore.getState().isEkaAppLogin;_(),useAuthAbhaStore.setState({isEkaAppLogin:xt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Select Eka Profile",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>ot(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),className:"pds2-border-b pds2-border-bg-seperator-dark pds2-bg-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-relative pds2-bg-bg-01 pds2-overflow-y-auto",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-overflow-y-auto pds2-px-16 pds2-pt-24 pds2-pb-32",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-16 pds2-flex pds2-flex-col pds2-items-center pds2-text-center",children:[jsxRuntimeExports.jsx("img",{src:`${j||"https://cdn.eka.care/vagus/cm6agrs5000090tfwfz984x5b.webp"}`,alt:"link-abha-to-eka-icon",className:"pds2-w-163"}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading3Semibold",children:"Choose an Eka Profile"}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-03",children:"Select the person for whom you want to create an ABHA address."})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-justify-center pds2-space-y-12 pds2-mt-24",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03 Body2Medium pds2-text-center",children:"Select Eka Profile"}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-8",children:(Mt=_e==null?void 0:_e.profiles)==null?void 0:Mt.map(xt=>{const pt=o===xt.oid;return jsxRuntimeExports.jsxs("label",{className:`pds2-flex pds2-items-center pds2-gap-x-8 pds2-cursor-pointer pds2-p-16 pds2-rounded-16 pds2-bg-bg-white pds2-border
61
+ `,tabIndex:-1,ref:o,children:jsxRuntimeExports.jsx("p",{className:`${i?"pds2-text-text-brand Body2Semibold":"pds2-text-text-01 Body2Medium"}`,children:e})})}async function getPincodeDetails({pincode:e}){const i=`${GET_NDHM_HOST()}/abdm/na/v1/registration/pincode/${e}`,a=new Headers;a.append("Content-Type","application/json");const o={method:"GET",headers:a,redirect:"follow",credentials:"include"};try{return await(await fetchWrapper(i,o)).json()}catch(c){console.error(c)}return{}}const CreateEkaProfileScreen=()=>{const e=useAuthAbhaStore(ft=>ft.screen),s=useAuthAbhaStore(ft=>ft.selectedAbhaAddress),i=useAuthAbhaStore(ft=>ft.setBottomsheetErrorInfo),a=useAuthAbhaStore(ft=>ft.clearAbhaAuthStore),o=useAuthAbhaStore(ft=>ft.goBackLoginScreen),[c,g]=reactExports.useState(LOADING_STATE.IDLE),[_,b]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[$,et]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[ot,rt]=reactExports.useState(null),{mutateAsync:at}=usePostProfileSwitch(),[it,nt]=reactExports.useState(!1),dt=useAuthAbhaStore(ft=>ft.ekaProfileInfo),_e=useAuthAbhaStore(ft=>ft.setEkaProfileInfo),tt=useAuthAbhaStore(ft=>ft.setScreen),j=e[e.length-1],st=useAuthAbhaStore(ft=>ft.aadhaarVerificationSkipStateStatus),ut=queryClient.getQueryData(["abdmProfilePhrResponse"]),ct=useAuthAbhaStore(ft=>ft.abhaAuthFlowMethod),[gt,mt]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""});useAuthAbhaStore(ft=>ft.isDocAppRequest);const _t=useAuthAbhaStore(ft=>ft.clientId),kt=useAuthAbhaStore(ft=>ft.isEkaAppLogin),wt=useAuthAbhaStore(ft=>ft.isNewLoginOrCreateFlow),Et=useAuthAbhaStore(ft=>ft.txnId),Tt=GET_EXTRA_HEADERS(),[Lt,xt]=reactExports.useState(null),pt=useAuthAbhaStore(ft=>ft.abhaAuthFlowMethod),vt=({name:ft,data:Ct={}})=>{var Ot,Mt;const bt={...{login_platform:_t,is_eka_app_login:kt?"true":"false",is_new_login_or_create_flow:wt?"true":"false",txn_id:Et||"missing txnId",oid:Tt!=null&&Tt["X-User-ID"]?"true":"false",access_token:Tt!=null&&Tt.auth?"true":"false",flow:pt??""},...Ct};handleSendEvent({eventName:ft,eventData:bt}),(Mt=(Ot=window.curio)==null?void 0:Ot.pushToMixpanel)==null||Mt.call(Ot,ft,bt)};reactExports.useEffect(()=>{vt({name:"page_view",data:{page_view:"create_profile_screen"}})},[_t]),reactExports.useEffect(()=>{var ft;if((ft=window.EkaAbha)!=null&&ft.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var Ct,St;(Ct=window.EkaAbha)!=null&&Ct.changeStatusBarColor&&((St=window==null?void 0:window.EkaAbha)==null||St.changeStatusBarColor("#FFFFFF"))}},[]),reactExports.useEffect(()=>{if(ut){const{first_name:ft,last_name:Ct,gender:St,pincode:bt,day_of_birth:Ot,month_of_birth:Mt,year_of_birth:Rt}=ut,Kt=Ot===0?1:Ot,Vt=`${Rt}-${String(Mt===0?1:Mt).padStart(2,"0")}-${String(Kt).padStart(2,"0")}`;vt({name:"profile_data_set_from_phr_cache",data:{source:"phr_cache",date_of_birth:Vt,firstname:ft??"missing",lastname:Ct??"missing",gender:St??"missing",pincode:bt??"missing",dob_day:Ot??"missing",dob_month:Mt??"missing",dob_year:Rt??"missing",flow:pt??""}}),b({firstname:ft,lastname:Ct,gender:St,pincode:bt,date_of_birth:Vt});return}if(dt){let ft="1983",Ct="01",St="01";if(dt.date_of_birth){const Ot=dt.date_of_birth.split("-");ft=Ot[0],Ct=Ot[1]==="00"||!Ot[1]?"01":Ot[1],St=Ot[2]==="00"||!Ot[2]?"01":Ot[2]}const bt=`${ft}-${String(Ct).padStart(2,"0")}-${String(St).padStart(2,"0")}`;b({firstname:dt.firstname,lastname:dt.lastname,gender:dt.gender,pincode:dt.pincode,date_of_birth:bt,oid:dt.oid}),vt({name:"profile_data_set_from_eka_profile",data:{source:"eka_profile",date_of_birth:(dt==null?void 0:dt.date_of_birth)??"missing",firstname:(dt==null?void 0:dt.firstname)??"missing",lastname:(dt==null?void 0:dt.lastname)??"missing",gender:(dt==null?void 0:dt.gender)??"missing",pincode:(dt==null?void 0:dt.pincode)??"missing",oid:(dt==null?void 0:dt.oid)??"missing"}})}},[ut,dt]);const lt=reactExports.useMemo(()=>!!(_.firstname&&!$.firstname&&_.date_of_birth&&!$.date_of_birth&&_.pincode&&!$.pincode&&_.gender&&!$.gender),[_,$]),ht=async()=>{var Ct,St,bt,Ot;const ft={firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""};if(et(ft),_.firstname.trim()||(ft.firstname="Enter Name"),_.lastname.trim()||(ft.lastname="This field is required"),_.date_of_birth||(ft.date_of_birth="Enter DOB"),_.gender||(ft.gender="Select Gender"),_.pincode||(ft.pincode="Enter Valid Pincode"),!!lt){if(vt({name:"create_profile_screen_clicks",data:{type:"create_profile"}}),g(LOADING_STATE.LOADING),j===SCREEN_NAMES.CREATE_EKA_PROFILE){if(vt({name:"navigate_to_create_abha_address_screen",data:{type:"next",pincode_entered:(_==null?void 0:_.pincode)??"unknown",eka_profile_info_pincode:(dt==null?void 0:dt.pincode)??"unknown",flow_type:ct||"unknown_method"}}),ct===ABHA_AUTH_FLOW_METHOD.MOBILE){const Mt=await getPincodeDetails({pincode:Number(_.pincode)});if(Mt!=null&&Mt.error){xt(Mt!=null&&Mt.error?"Invalid Pincode":null),g(LOADING_STATE.REJECTED),vt({name:"pincode_api_failed",data:{type:"error",error:Mt==null?void 0:Mt.error}});return}if(vt({name:"pincode_api_success",data:{type:"verify",pincode_received:!!Mt.pincode,txn_id:Et}}),Mt!=null&&Mt.pincode){rt(null),_e(_),vt({name:"eka_profile_info_set",data:{firstname:_==null?void 0:_.firstname,lastname:_==null?void 0:_.lastname,gender:_==null?void 0:_.gender,pincode:_==null?void 0:_.pincode,date_of_birth:_==null?void 0:_.date_of_birth}}),tt(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}vt({name:"no_action_on_pincode",data:{type:"verify",pincode_entered:!!Mt.pincode,txn_id:Et}});return}else if(ct===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){_e(_),vt({name:"eka_profile_info_set",data:{firstname:_==null?void 0:_.firstname,lastname:_==null?void 0:_.lastname,gender:_==null?void 0:_.gender,pincode:_==null?void 0:_.pincode,date_of_birth:_==null?void 0:_.date_of_birth}}),tt(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}}if(j===SCREEN_NAMES.CREATE_PHR_EKA_PROFILE){if(!s){vt({name:"abha_create_eka_profile_abha_address_missing",data:{platform:_t}});return}const[Mt,Rt,Kt]=_.date_of_birth?(Ct=_==null?void 0:_.date_of_birth)==null?void 0:Ct.split("-"):["","",""],Wt={abha_address:s,day_of_birth:parseInt(Kt),first_name:_.firstname,gender:_.gender,last_name:_.lastname||"",month_of_birth:parseInt(Rt),pincode:_.pincode,year_of_birth:parseInt(Mt)};vt({name:"profile_eka_process_started",data:{platform:_t,date_of_birth:(_==null?void 0:_.date_of_birth)||null,dob_day:Kt||null,dob_month:Rt||null,dob_year:Mt||null}});const{error:Vt,eka:zt,action:It}=await postAbdmProfileEka({...Wt});if(It){vt({name:"profile_eka_process_failed",data:{platform:_t,error_message:((St=It==null?void 0:It.cta)==null?void 0:St.title)||"unknown_error",error_message_exists:!!((bt=It==null?void 0:It.cta)!=null&&bt.title)}}),i(It);return}if(Vt||!zt||!zt.oid){vt({name:"profile_process_failed",data:{platform:_t,error_message:Vt||"Unknown error",eka_oid:(zt==null?void 0:zt.oid)||"missing",eka_exists:!!zt,date_of_birth:(_==null?void 0:_.date_of_birth)||"missing",dob_day:Kt||"missing",dob_month:Rt||"missing",dob_year:Mt||"missing",parsed_date_valid:!!(parseInt(Kt)&&parseInt(Rt)&&parseInt(Mt)),firstname:(_==null?void 0:_.firstname)||"missing",gender:(_==null?void 0:_.gender)||"missing",pincode:(_==null?void 0:_.pincode)||"missing"}}),g(LOADING_STATE.REJECTED),rt(Vt||"Something went wrong. Please try again.");return}vt({name:"profile_eka_process_success",data:{platform:_t,eka:zt}}),vt({name:"profile_switch_process_started",data:{platform:_t,error_message:Vt,eka:zt}});const Nt=await at({oid:zt.oid});if(Nt.error){vt({name:"profile_switch_process_failed",data:{platform:_t,error_message:Nt.error||"Something went wrong, please try again",error_message_exists:!!Nt.error}}),g(LOADING_STATE.REJECTED),rt(((Ot=Nt.error)==null?void 0:Ot.message)||"Something went wrong, please try again");return}vt({name:"profile_switch_process_success",data:{platform:_t,eka:zt}}),g(LOADING_STATE.RESOLVED);return}}},yt=()=>{o();const ft=useAuthAbhaStore.getState().isEkaAppLogin;a(),useAuthAbhaStore.setState({isEkaAppLogin:ft})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-bg-bg-01 pds2-h-full",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Create ABHA Address",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>nt(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),className:"pds2-bg-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-flex-1 pds2-p-8 pds2-overflow-y-auto",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-justify-between"}),jsxRuntimeExports.jsx(UserDetailsForm,{profileData:_,setProfileData:b,error:$,setError:et,pincodeApiError:Lt})]}),ot&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-text-error pds2-text-center",children:ot}),jsxRuntimeExports.jsxs("div",{className:"pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full",children:[s&&st===ABHA_V3_SKIP_STATES.ABHA_END?jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-w-full pds2-px-16 pds2-py-6 pds2-bg-border-brand-02",children:[jsxRuntimeExports.jsxs("div",{className:"",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-text-03 Body2Regular",children:"Creating for: "}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-01 Body2Semibold",children:s})]}),jsxRuntimeExports.jsx("button",{onClick:o,className:"Body2Semibold pds2-text-text-brand pds2-rounded-full ripple pds2-px-8 pds2-py-2",children:"Change"})]}):null,jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-w-full",children:jsxRuntimeExports.jsx(Pds2Button,{className:"pds2-w-full",title:"Create Profile",state:c===LOADING_STATE.LOADING?"disabled":"enabled",onClick:ht,isLoading:c===LOADING_STATE.LOADING})})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:yt}),jsxRuntimeExports.jsx(ExitPopup,{open:it,setOpen:nt})]})},genders=[{id:"M",name:"Male"},{id:"F",name:"Female"},{id:"O",name:"Other"}],UserDetailsForm=({profileData:e,setProfileData:s,error:i,setError:a,pincodeApiError:o})=>{const c=({event:et,name:ot})=>{const rt=et.target.value;let at="";switch(ot){case"firstname":rt.trim()?at="":at="This field is required";break;case"lastname":!rt||rt.length<0?at="This field is required":at="";break;case"pincode":!rt||isNaN(Number(rt))||rt.length!=6?at="Pincode must consist of exactly 6 digits":at="";break;case"date_of_birth":!rt||rt>new Date().toISOString().split("T")[0]?at="Date of Birth is invalid":at="";break}a({...i,[ot]:at}),s({...e,[ot]:rt})},g=et=>{s({...e,gender:et}),a({...i,gender:""})},_=(et,ot)=>ot!=null&&ot.pincode||!((et.firstname??"").trim()!==""&&(et.gender??"").trim()!==""&&(et.date_of_birth??"").trim()!=="")?!1:!et.pincode||(et.pincode+"").length!==6,b=useAuthAbhaStore(et=>et.ekaProfileInfo),$=useAuthAbhaStore(et=>et.abhaAuthFlowMethod);return jsxRuntimeExports.jsxs("form",{className:"pds2-flex pds2-flex-col pds2-space-y-32 pds2-pt-16 pds2-px-16",children:[jsxRuntimeExports.jsxs("label",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-text-04",children:["Your name",jsxRuntimeExports.jsx("span",{className:"pds2-text-text-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx(Pds2InputField,{isMandatory:!0,textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2",placeholder:"Firstname",value:e.firstname,onChange:et=>c({event:et,name:"firstname"}),autoCapitalize:"on",disabled:!!(b!=null&&b.firstname)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,error:i.firstname}),i.firstname&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-4",children:i.firstname})]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Pds2InputField,{textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2",placeholder:"Lastname",value:e.lastname,onChange:et=>c({event:et,name:"lastname"}),autoCapitalize:"on",disabled:!!(b!=null&&b.lastname)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER})})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-text-04",children:["Gender",jsxRuntimeExports.jsx("span",{className:"pds2-text-text-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-gap-16",children:genders.map((et,ot)=>jsxRuntimeExports.jsx("div",{className:`${i.gender?"pds2-border-2 pds2-rounded-12 pds2-border-text-error placeholder:pds2-text-text-error":"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2 placeholder:pds2-text-text-04"}`,children:jsxRuntimeExports.jsx(Pds2SingleInputChip,{isSelected:et.id===e.gender,title:et.name,onSelect:()=>g(et.id)})},ot))}),i.gender&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-2",children:i.gender})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx(Pds2InputField,{label:"Date of Birth",isMandatory:!0,textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2",value:e.date_of_birth,disabled:!!(b!=null&&b.date_of_birth)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:et=>c({event:et,name:"date_of_birth"}),type:"date",maxDate:new Date().toISOString().split("T")[0],error:i.date_of_birth}),i.date_of_birth&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-2",children:i.date_of_birth})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-4",children:[jsxRuntimeExports.jsx(Pds2InputField,{label:"Pincode",isMandatory:!0,textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:_(e,b)||o?"pds2-border-1 pds2-border-text-error":"",value:e.pincode,placeholder:"Enter Pincode",disabled:!!(b!=null&&b.pincode)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:et=>{et.target.value.length>6||c({event:et,name:"pincode"})},type:"number",error:_(e,b)?i.pincode:"",textStyle:_(e,b)||o?"placeholder:pds2-text-text-error":"placeholder:pds2-text-text-04"}),o||i.pincode&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-4",children:i.pincode})]})]})};async function getProfilePhrUser(){const e=new Headers;e.append("Content-Type","application/json");const s={method:"GET",headers:e,redirect:"follow",credentials:"include"};try{const i=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${i}/profiles/v1/patient`,s)).json()}catch(i){return console.error("profilePhrUser error =>",i),[]}}const useGetProfilesPhrUser=()=>useQuery({queryKey:["profilesPhrUserResponse"],queryFn:async()=>{const e=await getProfilePhrUser();var s;return Array.isArray(e)?s=e==null?void 0:e.filter(a=>!a["health-ids"]||a["health-ids"].length===0):s=[],{profiles:s}}}),GetAllProfilesScreen=()=>{const e=useAuthAbhaStore(_e=>_e.setScreen);useAuthAbhaStore(_e=>_e.screen),useAuthAbhaStore(_e=>_e.goBackLoginScreen),useAuthAbhaStore(_e=>_e.clearAbhaAuthStore);const[s,i]=reactExports.useState(!1),[a,o]=reactExports.useState(""),c=useAuthAbhaStore(_e=>_e.clientId),g=useAuthAbhaStore(_e=>_e.aadhaarVerificationSkipStateStatus),_=useAuthAbhaStore(_e=>_e.isEkaAppLogin),b=useAuthAbhaStore(_e=>_e.isNewLoginOrCreateFlow),$=useAuthAbhaStore(_e=>_e.txnId),et=GET_EXTRA_HEADERS(),ot=useAuthAbhaStore(_e=>_e.abhaAuthFlowMethod),rt=({name:_e,data:tt={}})=>{var ut,ct;const st={...{login_platform:c,is_eka_app_login:_?"true":"false",is_new_login_or_create_flow:b?"true":"false",txn_id:$||"missing txnId",oid:et!=null&&et["X-User-ID"]?"true":"false",access_token:et!=null&&et.auth?"true":"false",flow:ot??""},...tt};handleSendEvent({eventName:_e,eventData:st}),(ct=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ct.call(ut,_e,st)};reactExports.useEffect(()=>{if(c==="doctor"){rt({name:"page_view",data:{platform:c,page_view:"get-all-profiles-screen"}}),rt({name:"redirect_to_create_eka_profile_screen",data:{type:"next"}}),e(SCREEN_NAMES.CREATE_EKA_PROFILE);return}},[c]);let at=!1;_?at=!1:_||(c==="doctor"?at=!1:at=!0);const{data:it,error:nt,isLoading:dt}=at?useGetProfilesPhrUser():{data:null,error:null,isLoading:!1};return reactExports.useEffect(()=>{if(c==="doctor")return;(async()=>{!dt&&it&&(i(!0),await new Promise(tt=>setTimeout(tt,2e3)),i(!1),!it.profiles||it.profiles.length<1?g===ABHA_V3_SKIP_STATES.ABHA_END?(rt({name:"redirect_to_create_phr_eka_profile_screen",data:{type:"next",skip_state:g}}),e(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE)):(rt({name:"redirect_to_create_eka_profile_screen",data:{type:"next",skip_state:g}}),e(SCREEN_NAMES.CREATE_EKA_PROFILE)):(rt({name:"redirect_to_select_eka_profile_screen",data:{type:"next",skip_state:g}}),e(SCREEN_NAMES.SELECT_EKA_PROFILE)))})()},[dt,it]),s?jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!0,loadingText:"In progress...",successText:""}):null},LoginWithAbhaScreen=()=>{const e=useAuthAbhaStore(c=>c.setAbhaAuthFlowMethod),s=useAuthAbhaStore(c=>c.clientId),i=useAuthAbhaStore(c=>c.clearAbhaAuthStore);reactExports.useEffect(()=>{var c;if(handleSendEvent({eventName:"page_view",eventData:{page_view:"abha_login_screen",platform:s}}),e(ABHA_AUTH_FLOW_METHOD.MOBILE),(c=window.EkaAbha)!=null&&c.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var g,_;(g=window.EkaAbha)!=null&&g.changeStatusBarColor&&((_=window==null?void 0:window.EkaAbha)==null||_.changeStatusBarColor("#FFFFFF"))}},[]);const a=()=>{var g;(g=window.EkaAbha)==null||g.onAbhaClose();const c=useAuthAbhaStore.getState().isNewLoginOrCreateFlow;i(),useAuthAbhaStore.setState({isNewLoginOrCreateFlow:c}),unMount()},o=["eka-web","phr"];return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-white pds2-h-full",children:[!o.includes(s)&&jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{onClick:a,children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),title:"",className:"pds2-bg-bg-01"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx(LoginWithDifferentMethods,{}),jsxRuntimeExports.jsx(OtherLoginMethods,{})]})},OtherLoginMethods=()=>{const e=useAuthAbhaStore(a=>a.setAbhaAuthFlowMethod),s=useAuthAbhaStore(a=>a.abhaAuthFlowMethod),i=[{method:ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,title:"ABHA Number",icon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})},{method:ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,title:"ABHA Address",icon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})},{method:ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,title:"Aadhaar Number",icon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})},{method:ABHA_AUTH_FLOW_METHOD.MOBILE,title:"Mobile Number",icon:jsxRuntimeExports.jsx(PhoneSolidIcon,{className:"pds2-w-20 pds2-h-20 pds2-text-icon-success-02"})}];return jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-space-y-16",children:[jsxRuntimeExports.jsx(TextSeparator,{title:"Other login options for ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-16",children:i.filter(a=>a.method!==s).map(a=>jsxRuntimeExports.jsx(Pds2CustomButton,{prefixIcon:a.icon,title:a.title,suffixIcon:jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-ml-auto pds2-h-16 pds2-w-16 pds2-text-text-04 -pds2-rotate-90","aria-hidden":"true"}),onClick:()=>e(a.method)},a.method))})]})},LoginWithDifferentMethods=()=>{const e=useAuthAbhaStore(Tt=>Tt.setScreen),s=useAuthAbhaStore(Tt=>Tt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),i=useAuthAbhaStore(Tt=>Tt.setRegistrationType),a=useAuthAbhaStore(Tt=>Tt.setAadhaarInitResponse),[o,c]=reactExports.useState(""),[g,_]=reactExports.useState(""),[b,$]=reactExports.useState(LOADING_STATE.IDLE),et=useAuthAbhaStore(Tt=>Tt.setLoginIdentifierValue),ot=useAuthAbhaStore(Tt=>Tt.setSelectedAbhaAddress),[rt,at]=reactExports.useState(!1),it=useAuthAbhaStore(Tt=>Tt.initAbhaAppMobileNumber),nt=useAuthAbhaStore(Tt=>Tt.setBottomsheetErrorInfo),[dt,_e]=React.useState(null),[tt,j]=reactExports.useState(""),st=useAuthAbhaStore(Tt=>Tt.clientId),ut=useAuthAbhaStore(Tt=>Tt.isEkaAppLogin);reactExports.useEffect(()=>{if(it&&s===ABHA_AUTH_FLOW_METHOD.MOBILE){c(it),at(it.length===10),_(null);return}c(""),_(null),at(!1)},[s]);const ct=Tt=>{g&&_(null);const Lt=Tt.target.value;switch(s){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:if(Lt.length>20)return;break;case ABHA_AUTH_FLOW_METHOD.MOBILE:if(Lt&&!/^[0-9]+$/.test(Lt)||Lt.length>10)return;break;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:if(!/^[\d-]*$/.test(Lt)||Lt.length>17)return;break;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:if(Lt&&!/^[0-9]+$/.test(Lt)||Lt.length>12)return;break}if(s===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){const xt=Tt.target.value.replace(/-/g,"");let pt="";xt.length>0&&(pt+=xt.slice(0,2)),xt.length>2&&(pt+=`-${xt.slice(2,6)}`),xt.length>6&&(pt+=`-${xt.slice(6,10)}`),xt.length>10&&(pt+=`-${xt.slice(10,14)}`),c(pt)}else c(Lt.trim())},gt=({inputVal:Tt})=>{g&&_(null),Tt.length===12&&c(Tt)},mt=reactExports.useCallback(()=>{const Tt=s===ABHA_AUTH_FLOW_METHOD.MOBILE&&!!it;if(s===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)return jsxRuntimeExports.jsx(SpacedInputComponent,{numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:gt});const Lt={value:o,onChange:ct,...s===ABHA_AUTH_FLOW_METHOD.MOBILE&&{type:"tel",placeholder:"Mobile Number",disabled:Tt,PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-border-brand-02 pds2-pr-24",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4mlct2900000tg98p8u967s.webp",alt:"indian-flag-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-black",children:"+91"})]})},...s===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&{placeholder:"00-0000-0000-0000",padding:"pds2-p-18",textStyle:"Body2Regular pds2-text-center pds2-text-lg",borderStyle:"focus-within:pds2-border-border-brand-01",type:"tel"},...s===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&{placeholder:"Enter ABHA Address"}};return jsxRuntimeExports.jsx(Pds2InputField,{...Lt})},[s,o,g]),_t=(Tt=dt)=>{Tt&&(useAuthAbhaStore.setState({isLoggedInFromRedirect:!0}),j(o),useAuthAbhaStore.setState({initAbhaAppMobileNumber:o}),useAuthAbhaStore.setState({abhaAuthFlowMethod:ABHA_AUTH_FLOW_METHOD.MOBILE}),e(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR),nt(null))},kt=async()=>{$(LOADING_STATE.LOADING);let Tt="";if(!ut){const{txn_id:ht,error:yt}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!ht||yt){_((yt==null?void 0:yt.message)||"Something went wrong. Please try again."),$(LOADING_STATE.REJECTED);return}Tt=ht,console.log("triggering logout api in login with abha screen"),await postAuthLogoutV2()}i(REGISTRATION_TYPE.LOGIN);const Lt=s===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?`${o}@sbx`:o;console.log("loginIdentifier",Lt);const{txn_id:xt,error:pt,action:vt,hint:lt}=await postAbdmLoginInit({method:s,identifier:Lt});if(console.log("after postAbdmLoginInit",vt),console.log("after postAbdmLoginInit",vt),vt){_e(vt),nt(vt);return}if(pt){_(pt||"Something went wrong. Please try again."),$(LOADING_STATE.REJECTED);return}if(!xt){_("Something went wrong. Please try again."),$(LOADING_STATE.REJECTED);return}s===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&ot(Lt),a({authTxnId:Tt,txnId:xt,aadhaarOtpSentToHint:lt||null}),et(Lt),$(LOADING_STATE.RESOLVED),handleSendEvent({eventName:"abha_login_submitted",eventData:{type:"next",platform:st}}),e(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA)},wt=React.useMemo(()=>{switch(s){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return o.length>=4&&o.length<=20;case ABHA_AUTH_FLOW_METHOD.MOBILE:return o.length===10;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return o.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return o.length===12}},[s,o]),Et=React.useMemo(()=>{switch(s){case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return"Enter your ABHA Number";case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return"Enter your ABHA Address";case ABHA_AUTH_FLOW_METHOD.MOBILE:return"Enter your Mobile Number";case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return"Enter your Aadhaar Number";default:return"Enter your ABHA Number"}},[s]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-bg-bg-01 pds2-space-y-12 pds2-text-center pds2-rounded-b-24",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center pds2-gap-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-16",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64"})})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-text-black",children:"Log in With ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-black pds2-mt-2",children:Et}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-12",children:jsxRuntimeExports.jsxs("div",{className:"pds2-relative",children:[mt(),s===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-right-16 pds2-top-16 Body1Regular pds2-text-text-03",children:"@sbx"})]})}),g&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular",children:g}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!wt||!rt||b===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:b===LOADING_STATE.LOADING,onClick:kt,className:"pds2-w-full"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-row pds2-justify-center pds2-items-center pds2-bg-bg-white pds2-w-fit pds2-px-12 pds2-bg-opacity-60 pds2-rounded-12 pds2-mx-auto",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-04 Body3Regular",children:"Don’t have ABHA?"}),jsxRuntimeExports.jsx(Pds2CustomButton,{className:"pds2-text-text-brand Body3Semibold pds2-pl-4 pds2-pr-0 pds2-py-4 ripple pds2-border-none pds2-bg-transparent",width:"pds2-w-fit",title:"Register Now",onClick:()=>{e(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR)}})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:_t})]})};async function postAbdmProfileLoginPhr({txn_id:e,phr_address:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,phr_address:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/profile/login/phr`,o)).json()}catch(c){console.error("postAbdmProfileLoginPhr error =>",c)}return{}}const usePostAbdmProfileLoginPhr=()=>{const e=useAuthAbhaStore(s=>s.setSelectedAbhaAddress);return useMutation({mutationFn:({txn_id:s,phr_address:i})=>postAbdmProfileLoginPhr({txn_id:s,phr_address:i}),onSuccess(s){s.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],s.profile),e(s.profile.abha_address))}})},SelectAbhaFromListScreen=()=>{var zt;const[e,s]=reactExports.useState(null),i=useAuthAbhaStore(It=>It.setScreen),a=useAuthAbhaStore(It=>It.goBackLoginScreen),o=useAuthAbhaStore(It=>It.txnId),c=useAuthAbhaStore(It=>It.authTxnId),g=useAuthAbhaStore(It=>It.abhaAddressList),_=useAuthAbhaStore(It=>It.setBottomsheetErrorInfo),b=useAuthAbhaStore(It=>It.clearAbhaAuthStore),$=useAuthAbhaStore(It=>It.setSelectedAbhaAddress),et=useAuthAbhaStore(It=>It.abhaAuthFlowMethod);useAuthAbhaStore(It=>It.loginIdentifierValue);const[ot,rt]=reactExports.useState(""),[at,it]=reactExports.useState(!1),nt=useAuthAbhaStore(It=>It.setEkaProfileInfo),dt=useAuthAbhaStore(It=>It.setAbhaAuthFlowMethod),_e=useAuthAbhaStore(It=>It.setAadhaarVerificationSkipStateStatus),tt=useAuthAbhaStore(It=>It.identifierValue),[j,st]=reactExports.useState(LOADING_STATE.IDLE),ut=["M","F","O","U"],{mutateAsync:ct}=usePostAuthVerifyV2(),{mutateAsync:gt}=usePostAbdmProfileLoginPhr();useAuthAbhaStore(It=>It.ekaProfileInfo),useAuthAbhaStore(It=>It.registrationType);const mt=useAuthAbhaStore(It=>It.clientId),_t=useAuthAbhaStore(It=>It.isEkaAppLogin),kt=useAuthAbhaStore(It=>It.setRegistrationType),wt=useAuthAbhaStore(It=>It.abhaAuthFlowMethod),Et=useAuthAbhaStore(It=>It.identityValue),Tt=useAuthAbhaStore(It=>It.setMobileInitResponse),[Lt,xt]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),pt=useAuthAbhaStore(It=>It.setAadhaarInitResponse),vt=useAuthAbhaStore(It=>It.setSelectedAbhaFlow),lt=useAuthAbhaStore(It=>It.isNewLoginOrCreateFlow),ht=GET_EXTRA_HEADERS(),yt=useAuthAbhaStore(It=>It.setLoginIdentifierValue),[ft,Ct]=reactExports.useState(!1),[St,bt]=reactExports.useState(10),Ot=reactExports.useRef(null),Mt=({name:It,data:Nt={}})=>{var Gt,er;const qt={...{login_platform:mt,is_eka_app_login:_t?"true":"false",is_new_login_or_create_flow:lt?"true":"false",txn_id:o||"missing txnId",oid:ht!=null&&ht["X-User-ID"]?"true":"false",access_token:ht!=null&&ht.auth?"true":"false",flow:wt??""},...Nt};handleSendEvent({eventName:It,eventData:qt}),(er=(Gt=window.curio)==null?void 0:Gt.pushToMixpanel)==null||er.call(Gt,It,qt)},Rt=async()=>{Mt({name:"abha_login_select_abha_init_started",data:{method:wt,platform:mt}});const It=(Nt,Pt)=>{xt(qt=>({...qt,[Nt]:Pt}))};if(kt(REGISTRATION_TYPE.CREATE),wt===ABHA_AUTH_FLOW_METHOD.MOBILE){const{txn_id:Nt,hint:Pt,error:qt,action:Gt}=await postRegisterMobileInit({mobile_number:Et});if(Nt&&Pt){Mt({name:"abha_login_select_abha_mobile_init_success",data:{method:wt,platform:mt,txn_id:Nt}}),Tt({authTxnId:c,txnId:Nt,mobileOtpSentToHint:Pt}),vt("mobile"),It("mobile",LOADING_STATE.RESOLVED),kt(REGISTRATION_TYPE.CREATE),i(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}Mt({name:"abha_login_select_abha_init_failed",data:{method:wt,platform:mt,reason:qt||"unknown",reason_exists:!!qt}}),It("mobile",LOADING_STATE.REJECTED),Gt?_(Gt):rt(qt||"Something went wrong")}else if(wt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){Mt({name:"abha_fetching_profiles",data:{method:wt,platform:mt}}),i(SCREEN_NAMES.GET_ALL_PROFILES);return}},Kt=async()=>{var Ut,Qt,Ft,Dt,tr,nr;if(et===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&e){st(LOADING_STATE.LOADING),setIndividualEnv({extraHeaders:{auth:""}}),_t||await postAuthLogoutV2()||Mt({name:"logout_api_failed_before_init_on_continue_click",data:{method:wt,platform:mt,reason:"logout_api_response_false"}});const{txn_id:Zt,error:jt,action:Bt,hint:Jt}=await postAbdmLoginInit({method:ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,identifier:e.abha_address});if(Mt({name:"abha_abdm_login_init_triggered",data:{flow_step_type:"init",authTxnId:c,ndhmTxnId:Zt,method:wt}}),console.log("after postAbdmLoginInit",Bt),console.log("after postAbdmLoginInit",Bt),Bt){Mt({name:"abha_abdm_login_init_abha_error_action",data:{method:wt,platform:mt,action:((Ut=Bt==null?void 0:Bt.cta)==null?void 0:Ut.title)||"unknown",action_exists:!!((Qt=Bt==null?void 0:Bt.cta)!=null&&Qt.title)}}),_(Bt);return}if(jt){Mt({name:"abha_abdm_login_init_failed",data:{method:wt,platform:mt,reason:jt||"unknown",reason_exists:!!jt}}),st(LOADING_STATE.REJECTED),rt(jt||"Something went wrong. Please try again.");return}if(!Zt){rt("Something went wrong. Please try again.");return}Mt({name:"abha_login_init_success",data:{flow_step_type:"init",authTxnId:c,ndhmTxnId:Zt,hint:Jt}}),pt({authTxnId:c,txnId:Zt,aadhaarOtpSentToHint:Jt||null}),st(LOADING_STATE.RESOLVED),yt(e.abha_address),dt(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),i(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}if(!e)return;if($(e.abha_address),console.log(j,"from abha"),!o){Mt({name:"abha_login_select_abha_txnId_not_found",data:{platform:mt,reason:"txnId missing",reason_exists:!0}});return}st(LOADING_STATE.LOADING),Mt({name:"abha_login_select_abha_verify_start",data:{platform:mt,txn_id:o}});const{error:It,eka:Nt,profile:Pt,action:qt,skip_state:Gt}=await gt({txn_id:o,phr_address:e.abha_address});if(qt){Mt({name:"abha_login_select_abha_error_action",data:{platform:mt,txn_id:o,action:((Ft=qt==null?void 0:qt.cta)==null?void 0:Ft.title)||"unknown",action_exists:!!((Dt=qt==null?void 0:qt.cta)!=null&&Dt.title)}}),_(qt);return}if(It||!Nt){Mt({name:"abha_login_select_abha_abdm_error",data:{platform:mt,txn_id:o,error_message:It||"eka object missing",error_exists:!!It}}),st(LOADING_STATE.REJECTED),rt(It);return}if(!Gt){rt("skip State is missing");return}if(Mt({name:"abha_login_select_abha_verify_success",data:{platform:mt,txn_id:o,skip_state:Gt}}),_e(Gt),Pt&&(Mt({name:"abha_login_select_abha_profile_received",data:{platform:mt}}),nt({date_of_birth:`${Pt.year_of_birth}-${String(Pt.month_of_birth).padStart(2,"0")}-${String(Pt.day_of_birth).padStart(2,"0")}`,firstname:Pt.first_name,lastname:Pt.last_name,pincode:Pt.pincode,gender:Pt.gender,name:Pt.first_name+" "+Pt.last_name,mobile:Pt.mobile,oid:Nt==null?void 0:Nt.oid,middlename:Pt.middle_name,abha_address:Pt.abha_address,abha_number:Pt.abha_number}),$(Pt.abha_address)),_t){if(!Nt.oid){Mt({name:"abha_login_select_abha_oid_null",data:{platform:mt,oid:(Nt==null?void 0:Nt.oid)??"null_or_undefined"}}),st(LOADING_STATE.REJECTED);return}const Zt=ut.includes(Pt==null?void 0:Pt.gender)?Pt==null?void 0:Pt.gender:void 0,jt={oid:(Nt==null?void 0:Nt.oid)||"",fln:(Pt==null?void 0:Pt.first_name)+" "+(Pt==null?void 0:Pt.last_name),dob:`${Pt==null?void 0:Pt.year_of_birth}-${String(Pt==null?void 0:Pt.month_of_birth).padStart(2,"0")}-${String(Pt==null?void 0:Pt.day_of_birth).padStart(2,"0")}`,gen:Zt,mobile:Pt==null?void 0:Pt.mobile,fn:(Pt==null?void 0:Pt.first_name)||"",mn:(Pt==null?void 0:Pt.middle_name)||"",ln:(Pt==null?void 0:Pt.last_name)||"","health-ids":Pt!=null&&Pt.abha_address?[Pt.abha_address]:void 0,abha_number:(Pt==null?void 0:Pt.abha_number)||""},Bt=getMockAuthVerifyResponse(jt);if(st(LOADING_STATE.RESOLVED),Mt({name:"abha_login_select_abha_inside_app_success",data:{platform:mt,oid:Nt.oid}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(tr=window.EkaAbha)==null||tr.onAbhaSuccess(JSON.stringify({response:Bt}));return}onAbhaSuccess({response:Bt}),unMount();return}if(!Nt.min_token||!c){Mt({name:"abha_login_select_abha_min_token_missing",data:{platform:mt,oid:(Nt==null?void 0:Nt.oid)??"missing_oid",min_token:(Nt==null?void 0:Nt.min_token)??"missing_min_token",auth_txnId:c??"missing_authTxnId"}}),st(LOADING_STATE.REJECTED),rt(It||"Something went wrong. Please try again.");return}const er=await ct({txn_id:c,token:Nt.min_token,...Nt.oid?{oid:Nt.oid}:null});if(!er.data){Mt({name:"abha_login_select_abha_auth_verify_failed",data:{platform:mt,oid:(Nt==null?void 0:Nt.oid)??"missing_oid",min_token:(Nt==null?void 0:Nt.min_token)??"missing_min_token",auth_txnId:c??"missing_authTxnId"}}),st(LOADING_STATE.REJECTED),rt(((nr=er.error)==null?void 0:nr.message)||"Something went wrong, please try again");return}st(LOADING_STATE.RESOLVED),Mt({name:"abha_login_select_abha_auth_verify_success",data:{platform:mt,oid:Nt.oid,min_token:Nt==null?void 0:Nt.min_token,auth_txnId:c}})},Wt=()=>{const It=useAuthAbhaStore.getState().initAbhaAppMobileNumber,Nt=useAuthAbhaStore.getState().isEkaAppLogin;a(),b(),useAuthAbhaStore.setState({initAbhaAppMobileNumber:It}),useAuthAbhaStore.setState({isEkaAppLogin:Nt})};reactExports.useEffect(()=>{if(!(g!=null&&g.length))return;const It=g.find(Pt=>Pt.kyc_verified==="VERIFIED");s(It??null);let Nt=10;return Ot.current=setInterval(()=>{if(bt(Nt),Nt===1){clearInterval(Ot.current),Ot.current=null;return}Nt-=1},1e3),()=>{Ot.current&&clearInterval(Ot.current)}},[]),reactExports.useEffect(()=>{St===1&&Kt()},[St]);const Vt=It=>{Ot.current&&(clearInterval(Ot.current),Ot.current=null),bt(0),s(It)};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-h-full pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Select ABHA to continue",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>it(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),suffixIcon:((zt=g==null?void 0:g[0])==null?void 0:zt.kyc_verified)&&jsxRuntimeExports.jsx(CircleInfoRegularIcon,{onClick:()=>Ct(It=>!It),className:"pds2-w-20 pds2-h-20 pds2-text-icon-03 pds2-text-[2rem] hover:pds2-cursor-pointer"}),className:"pds2-border-b pds2-border-bg-seperator-dark pds2-bg-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),ft&&jsxRuntimeExports.jsx("div",{onMouseLeave:()=>Ct(!1),className:"pds2-absolute pds2-right-10 pds2-top-45 pds2-mt-2 pds2-z-50 pds2-animate-fade-in",children:jsxRuntimeExports.jsx(TooltipContent,{})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-overflow-y-auto pds2-flex pds2-flex-col pds2-p-16 pds2-space-y-16",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-text-text-03 Body1Regular pds2-text-center",children:["We found ",g==null?void 0:g.length," ABHA addresses ",jsxRuntimeExports.jsx("br",{})," select one you want to log in with"]}),jsxRuntimeExports.jsx(AbhaList,{list:g,selectedAbha:e,handleChangeAbha:Vt,setSelectedAbha:s,handleContinueClick:Kt}),((g==null?void 0:g.length)??0)<6&&(et===ABHA_AUTH_FLOW_METHOD.MOBILE||et===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-gap-16",children:[jsxRuntimeExports.jsx(TextSeparator,{title:"or"}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Create new ABHA Address",prefixIcon:jsxRuntimeExports.jsx(PlusRegularIcon,{}),className:"pds2-justify-center pds2-text-text-brand pds2-bg-border-brand-02 pds2-border-border-03 Body1Semibold",onClick:Rt})]})]}),et===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&jsxRuntimeExports.jsxs("div",{className:"pds2-text-center pds2-bg-bg-02 pds2-py-8",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-text-03 Body2Regular",children:"Your ABHA No: "}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-01 Body2Semibold",children:tt==null?void 0:tt.abha_number})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-white pds2-shadow-lg pds2-w-full pds2-sticky pds2-bottom-0 pds2-border-border-brand-02 pds2-p-16 z-10",children:[ot&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error pds2-text-center pds2-mb-4",children:ot}),jsxRuntimeExports.jsx(Pds2Button,{title:St===0?"Continue":`Select any other abha to stop ${St}`,state:e===null||j===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:j===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:Kt})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Wt}),jsxRuntimeExports.jsx(ExitPopup,{open:at,setOpen:it})]})},AbhaList=({list:e,selectedAbha:s,handleChangeAbha:i,setSelectedAbha:a,handleContinueClick:o})=>jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-16 pds2-border pds2-border-border-brand-02 pds2-w-full pds2-relative",children:e==null?void 0:e.map((c,g)=>jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsxs("label",{className:"pds2-p-16 pds2-flex pds2-space-x-8",children:[jsxRuntimeExports.jsx("input",{className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14 pds2-p-2 checked:pds2-accent-text-brand",type:"radio",value:c.abha_address,checked:(s==null?void 0:s.abha_address)===c.abha_address,onChange:()=>i(c),onKeyDown:_=>_.key==="Enter"&&o()}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-4 pds2-flex-1",children:[jsxRuntimeExports.jsxs("div",{className:"TitlesSubheadline pds2-text-text-primary pds2-flex pds2-flex-row pds2-items-center pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{children:c==null?void 0:c.abha_address}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-row pds2-items-center",children:(c==null?void 0:c.kyc_verified)&&(c.kyc_verified==="VERIFIED"?jsxRuntimeExports.jsx("div",{className:"Label1Bold pds2-rounded-full pds2-h-full",children:jsxRuntimeExports.jsx(CircleCheckSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-success-02 pds2-text-[2rem]"})}):jsxRuntimeExports.jsx("div",{className:"Label1Bold pds2-rounded-full pds2-h-full",children:jsxRuntimeExports.jsx(CircleExclamationSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-orange-300 pds2-text-[2rem]"})}))})]}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03 Body3Regular pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-4",children:(c==null?void 0:c.name)&&jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-text-03",children:c.name})})]})]}),g!==e.length-1&&jsxRuntimeExports.jsx("div",{className:"pds2-px-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-border-03 pds2-h-1 pds2-w-full"})})]},c.abha_address))}),TooltipContent=()=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-py-14 pds2-bg-bg-purple-800 pds2-rounded-16 pds2-w-150 pds2-animate-slide-up",children:[jsxRuntimeExports.jsxs("div",{className:" pds2-px-16 pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-py-6",children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-full",children:jsxRuntimeExports.jsx(CircleExclamationSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-orange-400"})}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-invert",children:"Non KYC"})]}),jsxRuntimeExports.jsxs("div",{className:" pds2-px-16 pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-py-6 pds2-border-t-1 pds2-border-[#FFFFFF4D]",children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-full",children:jsxRuntimeExports.jsx(CircleCheckSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-success-02"})}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-invert",children:"KYC"})]})]}),SelectEkaProfileScreen=()=>{var Lt;const e=useAuthAbhaStore(xt=>xt.setScreen),s=useAuthAbhaStore(xt=>xt.setEkaProfileInfo),i=useAuthAbhaStore(xt=>xt.registrationType),a=useAuthAbhaStore(xt=>xt.goBackLoginScreen),[o,c]=reactExports.useState(null),g=useAuthAbhaStore(xt=>xt.setBottomsheetErrorInfo),_=useAuthAbhaStore(xt=>xt.clearAbhaAuthStore),[b,$]=reactExports.useState(LOADING_STATE.IDLE),[et,ot]=reactExports.useState(!1),[rt,at]=reactExports.useState(null),it=useAuthAbhaStore(xt=>xt.selectedAbhaAddress),nt=useAuthAbhaStore(xt=>xt.aadhaarVerificationSkipStateStatus),{mutateAsync:dt}=usePostProfileSwitch(),_e=queryClient.getQueryData(["profilesPhrUserResponse"]),tt=useAuthAbhaStore(xt=>xt.clientId),j=useAuthAbhaStore(xt=>xt.linkToOrgIcon),st=useAuthAbhaStore(xt=>xt.isEkaAppLogin),ut=useAuthAbhaStore(xt=>xt.isNewLoginOrCreateFlow),ct=useAuthAbhaStore(xt=>xt.txnId),gt=GET_EXTRA_HEADERS(),mt=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod),_t=({name:xt,data:pt={}})=>{var ht,yt;const lt={...{login_platform:tt,is_eka_app_login:st?"true":"false",is_new_login_or_create_flow:ut?"true":"false",txn_id:ct||"missing txnId",oid:gt!=null&&gt["X-User-ID"]?"true":"false",access_token:gt!=null&&gt.auth?"true":"false",flow:mt??""},...pt};handleSendEvent({eventName:xt,eventData:lt}),(yt=(ht=window.curio)==null?void 0:ht.pushToMixpanel)==null||yt.call(ht,xt,lt)};reactExports.useEffect(()=>{_t({name:"choose_eka_profile_screen",data:{platform:tt,type:"select"}})},[tt]);const kt=()=>{if(_t({name:"create_family_profile_clicks",data:{platform:tt,type:"create",skip_state:nt}}),nt===ABHA_V3_SKIP_STATES.ABHA_END){_t({name:"navigate_to_create_phr_profile_screen",data:{platform:tt}}),e(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE);return}_t({name:"navigate_to_create_eka_profile_screen",data:{platform:tt}}),e(SCREEN_NAMES.CREATE_EKA_PROFILE)},wt=async({profile:xt})=>{_t({name:"select_profile_clicks",data:{platform:tt,oid:xt.oid}}),c(xt.oid)},Et=async()=>{var ht,yt,ft,Ct;if(_t({name:"continue_click_on_choose_eka_profile",data:{platform:tt,selectedProfileOid:o,registrationType:i,skip_state:nt}}),o&&nt===ABHA_V3_SKIP_STATES.ABHA_CREATE){const St=_e==null?void 0:_e.profiles.find(bt=>bt.oid===o);if(!St){_t({name:"continue_click_profile_not_found",data:{platform:tt,oid:o||"unknown_oid",oid_exists:!!o}});return}_t({name:"navigate_to_create_eka_profile_screen_from_abha_create",data:{platform:tt,oid:St.oid}}),s({oid:St.oid,date_of_birth:St.dob,firstname:St.fn,lastname:St.ln,pincode:"",gender:St.gen,mobile:St.mobile,name:St.fln,middlename:St.mn,abha_address:(ht=St==null?void 0:St["health-ids"])==null?void 0:ht[0],abha_number:St.abha_number}),e(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!it||!o){_t({name:"continue_click_missing_profile_or_abha",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}});return}_t({name:"linking_abha_to_profile_start",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}}),$(LOADING_STATE.LOADING);const{error:xt,action:pt,eka:vt}=await postAbdmProfileEkaLinkPhr({abha_address:it,oid:o});if(pt){_t({name:"linking_abha_to_profile_error_action",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}}),g(pt);return}if(xt||!vt||!vt.oid){_t({name:"linking_abha_to_profile_failed",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o,error:xt||"No EKA/OID",error_exists:!!xt}}),$(LOADING_STATE.REJECTED),at(xt||"Something went wrong. Please try again.");return}const lt=await dt({oid:vt.oid});if(lt.error){_t({name:"profile_switch_failed_after_link",data:{platform:tt,oid:(vt==null?void 0:vt.oid)||"missing_oid",oid_exists:!!(vt!=null&&vt.oid),error:((yt=lt.error)==null?void 0:yt.message)||"unknown_error",error_exists:!!((ft=lt.error)!=null&&ft.message)}}),$(LOADING_STATE.REJECTED),at(((Ct=lt.error)==null?void 0:Ct.message)||"Something went wrong, please try again");return}_t({name:"linking_abha_to_profile_success",data:{platform:tt,oid:vt.oid}}),$(LOADING_STATE.RESOLVED)},Tt=()=>{a();const xt=useAuthAbhaStore.getState().isEkaAppLogin;_(),useAuthAbhaStore.setState({isEkaAppLogin:xt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Select Eka Profile",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>ot(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),className:"pds2-border-b pds2-border-bg-seperator-dark pds2-bg-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-relative pds2-bg-bg-01 pds2-overflow-y-auto",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-overflow-y-auto pds2-px-16 pds2-pt-24 pds2-pb-32",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-16 pds2-flex pds2-flex-col pds2-items-center pds2-text-center",children:[jsxRuntimeExports.jsx("img",{src:`${j||"https://cdn.eka.care/vagus/cm6agrs5000090tfwfz984x5b.webp"}`,alt:"link-abha-to-eka-icon",className:"pds2-w-163"}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading3Semibold",children:"Choose an Eka Profile"}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-03",children:"Select the person for whom you want to create an ABHA address."})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-justify-center pds2-space-y-12 pds2-mt-24",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03 Body2Medium pds2-text-center",children:"Select Eka Profile"}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-8",children:(Lt=_e==null?void 0:_e.profiles)==null?void 0:Lt.map(xt=>{const pt=o===xt.oid;return jsxRuntimeExports.jsxs("label",{className:`pds2-flex pds2-items-center pds2-gap-x-8 pds2-cursor-pointer pds2-p-16 pds2-rounded-16 pds2-bg-bg-white pds2-border
62
62
  pds2-border-border-03 hover:pds2-bg-bg-hover-01
63
- pds2-transition-colors`,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"ekaProfile",value:xt.oid,checked:pt,onChange:()=>wt({profile:xt}),className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14",onKeyDown:vt=>vt.key==="Enter"&&St()}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-flex-1",children:[jsxRuntimeExports.jsx("div",{className:"TitlesSubheadline pds2-text-text-primary",children:xt.fln}),jsxRuntimeExports.jsx("span",{className:"pds2-ml-auto pds2-text-text-brand pds2-text-14 pds2-font-600",children:"Link"})]})]},xt.oid)})}),jsxRuntimeExports.jsx(TextSeparator,{title:"or"}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Create new Family Member",prefixIcon:jsxRuntimeExports.jsx(PlusRegularIcon,{}),className:"pds2-justify-center pds2-text-text-brand pds2-border-bg-fab-bg-brand-04 Body1Semibold",onClick:kt})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-sticky pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-bg-bg-white pds2-shadow-lg pds2-p-16",children:[rt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error pds2-text-center pds2-mb-8",children:rt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:o===null||b===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:b===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:St})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Tt}),jsxRuntimeExports.jsx(ExitPopup,{open:et,setOpen:ot})]})},LoginorCreateAbhaScreen=()=>{const e=useAuthAbhaStore(a=>a.clientId);reactExports.useEffect(()=>{var a;if((a=window.EkaAbha)!=null&&a.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var o,c;(o=window.EkaAbha)!=null&&o.changeStatusBarColor&&((c=window==null?void 0:window.EkaAbha)==null||c.changeStatusBarColor("#FFFFFF"))}},[]);const s=()=>{var a;(a=window.EkaAbha)==null||a.onAbhaClose(),unMount()},i=["eka-web","phr"];return jsxRuntimeExports.jsxs("div",{className:"pds2-h-full pds2-overflow-y-auto",children:[!i.includes(e)&&jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{onClick:s,children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),title:"",className:"pds2-bg-bg-01"}),jsxRuntimeExports.jsx(LoginOrCreateWithDifferentMethods,{})]})},LoginOrCreateWithDifferentMethods=()=>{const e=useAuthAbhaStore(jt=>jt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),s=useAuthAbhaStore(jt=>jt.setAbhaAuthFlowMethod),i=useAuthAbhaStore(jt=>jt.goBackToLogin),a=useAuthAbhaStore(jt=>jt.setGoBackToLogin);useAuthAbhaStore(jt=>jt.initAbhaAppIdentifierSource);const o=useAuthAbhaStore(jt=>jt.setInitAbhaAppIdentifier),c=useAuthAbhaStore(jt=>jt.setIdentifierValue),g=useAuthAbhaStore(jt=>jt.identifierValue),_=useAuthAbhaStore(jt=>jt.isEkaAppLogin),b=useAuthAbhaStore(jt=>jt.setSelectedAbhaAddress),$=useAuthAbhaStore(jt=>jt.setLoginIdentifierValue),et=useAuthAbhaStore(jt=>jt.setRegistrationType),ot=useAuthAbhaStore(jt=>jt.setAadhaarInitResponse),rt=useAuthAbhaStore(jt=>jt.setMobileInitResponse),at=useAuthAbhaStore(jt=>jt.initAbhaAppMobileNumber),it=useAuthAbhaStore(jt=>jt.initAbhaAppIdentifierType),nt=useAuthAbhaStore(jt=>jt.initAbhaAppIdentifier),dt=useAuthAbhaStore(jt=>jt.isDocAppRequest),_e=useAuthAbhaStore(jt=>jt.isNewLoginOrCreateFlow),tt=useAuthAbhaStore(jt=>jt.setIsNewLoginOrCreateFlow),j=useAuthAbhaStore(jt=>jt.clientId),st=useAuthAbhaStore(jt=>jt.isInitApiTriggered),ut=useAuthAbhaStore(jt=>jt.setIsInitApiTriggered),ct=useAuthAbhaStore(jt=>jt.setIdentityValue);useAuthAbhaStore(jt=>jt.identityValue);const gt=useAuthAbhaStore(jt=>jt.setSelectedAbhaFlow),mt=useAuthAbhaStore(jt=>jt.txnId),[_t,kt]=reactExports.useState(LOADING_STATE.IDLE),[wt,St]=reactExports.useState(""),Tt=useAuthAbhaStore(jt=>jt.setScreen),[Mt,xt]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),[pt,vt]=reactExports.useState(g.mobile||""),[lt,ht]=reactExports.useState(!1),[yt,ft]=reactExports.useState(!1),[Ct,Et]=reactExports.useState(g.aadhaar_number||""),[bt,Ot]=reactExports.useState(g.abha_number||""),[Lt,Pt]=reactExports.useState(""),[It,Dt]=reactExports.useState(g.phr_address||""),Rt=reactExports.useRef(!1),Vt=GET_EXTRA_HEADERS();reactExports.useEffect(()=>{Gt({name:"abha_login_or_create_screen",data:{flow:e.toString()}})}),reactExports.useEffect(()=>{nt&&it===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?(Pt(nt),Dt(nt.split("@")[0]),c({phr_address:nt.split("@")[0]}),Nt(!0),rr(!0),s(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS)):nt&&it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?(c({abha_number:nt}),Ot(nt),Nt(!0),qt(!0),s(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER)):nt&&it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?(Et(nt),ft(!0),c({aadhaar_number:nt}),s(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)):nt&&it===ABHA_AUTH_FLOW_METHOD.MOBILE&&(vt(nt),c({mobile:nt}),ht(nt.length===10),St(null),s(ABHA_AUTH_FLOW_METHOD.MOBILE))},[it,nt]),reactExports.useEffect(()=>{st||Rt.current||pt&&pt.length===10&&(ut(!0),Rt.current=!0,Wt("auto_submit_mobile"))},[pt]),reactExports.useEffect(()=>{st||Rt.current||Ct&&Ct.length===12&&(ut(!0),Rt.current=!0,Wt("auto_submit_aadhaar"))},[Ct]),reactExports.useEffect(()=>{st||Rt.current||bt&&bt.length===17&&(ut(!0),Rt.current=!0,Wt("auto_submit_abha"))},[bt]),reactExports.useEffect(()=>{st||Rt.current||Lt&&Lt.includes("@sbx")&&(ut(!0),Rt.current=!0,Wt("auto_submit_phr"))},[Lt]);const Gt=({name:jt,data:zt={}})=>{var lr,xr;const nr={...{login_platform:j,is_eka_app_login:_?"true":"false",is_new_login_or_create_flow:_e?"true":"false",oid:Vt!=null&&Vt["X-User-ID"]?"true":"false",access_token:Vt!=null&&Vt.auth?"true":"false",txn_id:mt||"missing txnId",flow:e??""},...zt};handleSendEvent({eventName:jt,eventData:nr}),(xr=(lr=window.curio)==null?void 0:lr.pushToMixpanel)==null||xr.call(lr,jt,nr)},$t=React.useMemo(()=>{switch(e){case ABHA_AUTH_FLOW_METHOD.MOBILE:return"Enter your Mobile Number";case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return"Enter your Aadhaar Number";default:return""}},[e]),Bt=jt=>{St("");const zt=jt.target.value;switch(e){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:if(zt.length>20)return;Dt(zt),c({phr_address:zt}),o(null);break;case ABHA_AUTH_FLOW_METHOD.MOBILE:if(zt&&!/^[0-9]+$/.test(zt)||zt.length>10)return;vt(zt),ht(!0),c({mobile:zt}),o(null);break;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:if(!/^[\d-]*$/.test(zt)||zt.length>17)return;const Zt=jt.target.value.replace(/-/g,"");let nr="";return Zt.length>0&&(nr+=Zt.slice(0,2)),Zt.length>2&&(nr+=`-${Zt.slice(2,6)}`),Zt.length>6&&(nr+=`-${Zt.slice(6,10)}`),Zt.length>10&&(nr+=`-${Zt.slice(10,14)}`),Ot(nr),o(null),c({abha_number:nr.trim()});case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:if(zt&&!/^[0-9]+$/.test(zt)||zt.length>12)return;Et(zt),ft(!0),o(null),c({aadhaar_number:zt});break}};ABHA_AUTH_FLOW_METHOD.MOBILE;const er=React.useMemo(()=>{switch(e){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return g.phr_address.length>=4&&g.phr_address.length<=20;case ABHA_AUTH_FLOW_METHOD.MOBILE:return g.mobile.length===10;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return g.abha_number.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return g.aadhaar_number.length===12}},[e,g]),Kt=(jt,zt)=>{xt(Zt=>({...Zt,[jt]:zt}))},tr=({inputVal:jt})=>{jt.length===12&&(c({aadhaar_number:jt}),Et(jt),ft(!0))};reactExports.useEffect(()=>{console.log("selectedMethod changed:==================>",e)},[e]);const Wt=async jt=>{var nr,lr,xr;tt(!0),Gt({name:"abha_login_next_click",data:{flow_step_type:jt}}),kt(LOADING_STATE.LOADING),et(REGISTRATION_TYPE.LOGIN);let zt="";if(!_){const mr=await postAuthLogoutV2();Gt({name:mr?"abha_logout_success":"abha_logout_failure",data:{platform:j}});const{txn_id:gr,error:or}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!gr||or){Gt({name:"abha_auth_init_failure",data:{flow_step_type:"init",authTxnId:zt,error_message:or||"missing_txnId_or_unknown_error",error_message_exists:!!or,txn_id_exists:!!gr}}),St((or==null?void 0:or.message)||"Something went wrong. Please try again."),kt(LOADING_STATE.REJECTED);return}zt=gr,Gt({name:"abha_auth_init_success.",data:{flow_step_type:"init",auth_txnId:zt}})}const Zt=e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?`${g.phr_address}@sbx`:e===ABHA_AUTH_FLOW_METHOD.MOBILE?g.mobile:e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?g.abha_number:e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?g.aadhaar_number:"";if(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER||e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS){const{txn_id:mr,error:gr,action:or,hint:Sr}=await postAbdmLoginInit({method:e,identifier:Zt});if(ct(Zt),Gt({name:"abha_login_init_triggered",data:{flow_step_type:"init",authTxnId:zt,ndhmTxnId:mr,method:e}}),e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&b(Zt),gr||!mr){if(a(!0),((nr=or==null?void 0:or.cta)==null?void 0:nr.pid)==="abha_mobile_enroll"&&e===ABHA_AUTH_FLOW_METHOD.MOBILE){Kt("mobile",LOADING_STATE.LOADING),et(REGISTRATION_TYPE.CREATE);const{txn_id:Ts,hint:Cs,error:os,action:ls}=await postRegisterMobileInit({mobile_number:g.mobile});if(ct(g.mobile),gt("mobile"),Ts&&Cs){rt({authTxnId:zt,txnId:Ts,mobileOtpSentToHint:Cs}),Gt({name:"abha_mobile_registration_init_success",data:{flow_step_type:"init",authTxnId:zt,ndhmTxnId:mr,error_message:os,error_action:or}}),Kt("mobile",LOADING_STATE.RESOLVED),kt(LOADING_STATE.RESOLVED),et(REGISTRATION_TYPE.CREATE),Tt(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}if(Kt("mobile",LOADING_STATE.REJECTED),Gt({name:"abha_mobile_registration_init_failure",data:{flow_step_type:"init",authTxnId:zt,error_message:os||"unknown_error",error_message_exists:!!os,error_action_exists:!!ls}}),ls){if((lr=ls==null?void 0:ls.cta)!=null&&lr.pid)return Tt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA)}else St(os||"Something went wrong");St(os||"Something went wrong. Please try again."),kt(LOADING_STATE.REJECTED);return}Gt({name:"abha_login_init_failure",data:{flow_step_type:"init",authTxnId:zt,error_message:gr||"unknown_error",error_message_exists:!!gr,error_action_exists:!!or}}),St(gr||"Something went wrong. Please try again."),kt(LOADING_STATE.REJECTED);return}Gt({name:"abha_login_init_success",data:{flow_step_type:"init",authTxnId:zt,ndhmTxnId:mr,hint:Sr}}),ot({authTxnId:zt,txnId:mr,aadhaarOtpSentToHint:Sr||null}),a(!1),$(Zt),kt(LOADING_STATE.RESOLVED),Tt(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}if(e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){Kt("aadhaar",LOADING_STATE.LOADING),Gt({name:"aadhaar_registration_init_start",data:{flow_step_type:"init",authTxnId:zt,aadhaarNumber:g.aadhaar_number}});const{txn_id:mr,hint:gr,error:or,action:Sr}=await postRegisterAadhaarInit({aadhaar_number:g.aadhaar_number});if(ct(g.aadhaar_number),gt("aadhaar"),mr&&gr){ot({authTxnId:zt,txnId:mr,aadhaarOtpSentToHint:gr}),Gt({name:"aadhaar_registration_init_success",data:{flow_step_type:"verify",ndhmTxnId:mr,authTxnId:zt}}),a(!1),Kt("aadhaar",LOADING_STATE.RESOLVED),et(REGISTRATION_TYPE.CREATE),kt(LOADING_STATE.RESOLVED),Tt(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}if(Gt({name:"abha_registration_init_failure",data:{error_message:or||"unknown_error",error_message_exists:!!or,auth_txn_id:zt,error_action:Sr,error_action_exists:!!Sr}}),Kt("aadhaar",LOADING_STATE.REJECTED),kt(LOADING_STATE.REJECTED),Sr||or){a(!0),(xr=Sr==null?void 0:Sr.cta)!=null&&xr.pid?Tt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA):St(or||"Something went wrong");return}}},[Qt,Nt]=reactExports.useState(!1),[Ft,qt]=reactExports.useState(i&&e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),[sr,rr]=reactExports.useState(i&&e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-pt-22 pds2-p-16 pds2-bg-bg-01 pds2-space-y-16 pds2-text-center pds2-rounded-b-24",children:[jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center pds2-gap-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-16",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64"})})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-text-black",children:j==="phr"?"Login or Create your ABHA":dt?"Add Patient via ABHA":"Create your ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03",style:{marginTop:"4px"},children:e===ABHA_AUTH_FLOW_METHOD.MOBILE?dt?"Enter Patient's Mobile Number":"Enter your Mobile Number":e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?dt?"Enter Patient's Aadhaar Number":"Enter your Aadhaar Number":e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?dt?"Enter Patient's ABHA Number":"Enter your ABHA Number":e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?dt?"Enter Patient's ABHA Address":"Enter your ABHA Address":$t}),(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-flex pds2-bg-bg-seperator-dark pds2-rounded-12 pds2-mt-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-top-0 pds2-bottom-0 pds2-bg-bg-white pds2-rounded-12 pds2-transition-all pds2-duration-300",style:{left:e===ABHA_AUTH_FLOW_METHOD.MOBILE?0:"50%",width:"50%",boxShadow:"0px 10px 4px -6px #18274B17"}}),jsxRuntimeExports.jsxs("button",{onClick:()=>{s(ABHA_AUTH_FLOW_METHOD.MOBILE),St("")},className:"pds2-flex-1 pds2-py-6 pds2-flex pds2-items-center pds2-justify-center pds2-gap-8 pds2-relative pds2-z-10",children:[jsxRuntimeExports.jsx(PhoneSolidIcon,{className:"pds2-w-14 pds2-h-14 pds2-text-icon-success-02"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${e===ABHA_AUTH_FLOW_METHOD.MOBILE?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:e===ABHA_AUTH_FLOW_METHOD.MOBILE?{fontWeight:700}:{fontWeight:400},children:"Mobile"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{s(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),St("")},className:"pds2-flex-1 pds2-py-6 pds2-flex pds2-items-center pds2-justify-center pds2-gap-8 pds2-relative pds2-z-10",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?{fontWeight:700}:{fontWeight:400},children:"Aadhaar"})]})]}),(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx("div",{className:"pds2-mt-16 pds2-w-full pds2-max-w-md pds2-mx-auto pds2-px-4 pds2-relative",children:e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?jsxRuntimeExports.jsx(SpacedInputComponent,{initialValues:it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!i?(nt==null?void 0:nt.match(/.{1,4}/g))??void 0:(Ct==null?void 0:Ct.match(/.{1,4}/g))??void 0,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!nt,numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:tr,setIsValid:ft,setAadhaarValue:Et,setError:St}):jsxRuntimeExports.jsx(Pds2InputField,{value:it===ABHA_AUTH_FLOW_METHOD.MOBILE&&!i?nt||"":pt,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.MOBILE&&!!nt,onChange:Bt,type:"tel",autoComplete:"tel-national",placeholder:"Mobile Number",inputMode:"numeric",autoFocus:!0,maxLength:10,PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-border-brand-02 pds2-pr-24",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4mlct2900000tg98p8u967s.webp",alt:"indian-flag-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-black pds2-text-sm",children:"+91"})]})})}),wt&&(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular",children:wt}),(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!er||_t===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:_t===LOADING_STATE.LOADING,onClick:()=>Wt("aadhaar_or_mobile_on_click"),className:"pds2-w-full"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-m-16 pds2-bg-bg-white pds2-rounded-16 pds2-border pds2-border-border-03 pds2-overflow-hidden",children:[jsxRuntimeExports.jsxs("button",{onClick:()=>Nt(!Qt),className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-16 pds2-bg-bg-white hover:pds2-bg-bg-02 pds2-transition-colors",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-text-03",children:dt?"Other add options for ABHA":"Other login options for ABHA"}),jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:`pds2-w-16 pds2-h-16 pds2-text-text-03 pds2-transition-transform ${Qt?"pds2-rotate-180":""}`})]}),jsxRuntimeExports.jsxs("div",{className:`pds2-overflow-hidden pds2-transition-all pds2-duration-300 ${Qt?"pds2-max-h-126 pds2-opacity-100":"pds2-max-h-0 pds2-opacity-0"}`,children:[jsxRuntimeExports.jsxs("button",{onClick:()=>{Nt(!1),s(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),qt(!0),St("")},className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-12 hover:pds2-bg-bg-02 pds2-transition-colors",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-12",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-40 pds2-h-40 pds2-rounded-full pds2-bg-bg-02 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abd-icon",className:"pds2-w-24 pds2-h-24"})}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-black",children:dt?"Add patient with ABHA Number":"Login with ABHA Number"})]}),jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-text-03"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{Nt(!1),s(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),rr(!0),St("")},className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-12 hover:pds2-bg-bg-02 pds2-transition-colors",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-12",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-40 pds2-h-40 pds2-rounded-full pds2-bg-bg-02 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-24 pds2-h-24"})}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-black",children:dt?"Add patient with ABHA Address":"Login with ABHA Address"})]}),jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-text-03"})]})]})]}),jsxRuntimeExports.jsx(AbhaBottomSheet,{isOpen:Ft,setIsOpen:qt,setFlowMethod:s,setError:St,children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-24 pds2-text-center pds2-h-full pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{St(null),qt(!1),s(ABHA_AUTH_FLOW_METHOD.MOBILE)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-text-03 hover:pds2-text-text-black",children:"✕"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-mb-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-w-64 pds2-h-64 pds2-rounded-full pds2-bg-bg-01 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-48 pds2-h-48"})})}),jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-text-black",children:dt?"Add Patient with ABHA Number":"Login with ABHA Number"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-text-03 pds2-mb-24",children:dt?"Enter Patient's 14 digit ABHA Number":"Enter your 14 digit ABHA Number"}),jsxRuntimeExports.jsx(Pds2InputField,{value:it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!i?nt||"":bt,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!!nt,onChange:Bt,placeholder:"00-0000-0000-0000",padding:"pds2-p-18",textStyle:"Body2Regular pds2-text-center pds2-text-lg",borderStyle:"focus-within:pds2-border-border-brand-01",type:"tel",autoComplete:"tel-national",inputMode:"numeric",autoFocus:!0,onKeyDown:jt=>{jt.key==="Enter"&&Wt("after_enter_abha_number_on_click_by_user")}}),wt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular pds2-mt-12",children:wt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!g||_t===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>Wt("after_enter_abha_number_on_click_by_user"),className:`pds2-w-full ${wt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:_t===LOADING_STATE.LOADING})]})]})}),jsxRuntimeExports.jsx(AbhaBottomSheet,{isOpen:sr,setIsOpen:rr,setFlowMethod:s,setError:St,children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-24 pds2-text-center pds2-h-full pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{St(null),rr(!1),s(ABHA_AUTH_FLOW_METHOD.MOBILE)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-text-03 hover:pds2-text-text-black",children:"✕"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-mb-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-w-64 pds2-h-64 pds2-rounded-full pds2-bg-bg-01 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-48 pds2-h-48"})})}),jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-text-black",children:dt?"Add Patient with ABHA Address":"Login with ABHA Address"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-text-03 pds2-mb-24",children:dt?"Enter Patient's ABHA Address below":"Enter your ABHA Address below"}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative",children:[jsxRuntimeExports.jsx(Pds2InputField,{value:it===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!i?(nt==null?void 0:nt.split("@")[0])||"":It,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!!nt,onChange:Bt,placeholder:"Enter ABHA Address",inputMode:"text",autoFocus:!0,onKeyDown:jt=>{jt.key==="Enter"&&Wt("after_enter_abha_address_on_click_by_user")}}),jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-right-16 pds2-top-16 Body1Regular pds2-text-text-03",children:"@sbx"})]}),wt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular pds2-mt-12",children:wt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!g||_t===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>Wt("after_enter_abha_address_on_click_by_user"),className:`pds2-w-full ${wt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:_t===LOADING_STATE.LOADING})]})]})})]})},AbhaBottomSheet=({isOpen:e,setIsOpen:s,children:i,setFlowMethod:a,overlayClassName:o="pds2-bg-text-black pds2-bg-opacity-50",setError:c})=>{const[g,_]=reactExports.useState(e);return reactExports.useEffect(()=>{if(e)_(!0);else{const b=setTimeout(()=>_(!1),300);return()=>clearTimeout(b)}},[e]),g?jsxRuntimeExports.jsxs("div",{className:`pds2-absolute pds2-inset-0 pds2-z-50 pds2-flex pds2-items-end pds2-transition-all pds2-duration-300 ${e?"pds2-opacity-100":"pds2-opacity-0 pointer-events-none"}`,children:[jsxRuntimeExports.jsx("div",{className:`pds2-absolute pds2-inset-0 ${o} pds2-transition-opacity pds2-duration-300`,style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},onClick:()=>{c(null),s(!1),a(ABHA_AUTH_FLOW_METHOD.MOBILE)}}),jsxRuntimeExports.jsx("div",{className:`pds2-relative pds2-bg-bg-white pds2-rounded-t-24 pds2-w-full pds2-transition-transform pds2-duration-300 ${e?"pds2-translate-y-0":"pds2-translate-y-full"}`,style:{height:"75%",maxHeight:"600px",overflowY:"auto"},children:i})]}):null},ScreenStack=()=>{const e=useAuthAbhaStore(i=>i.screen);switch(e[e.length-1]){case SCREEN_NAMES.LOGIN_WITH_ABHA:return jsxRuntimeExports.jsx(LoginWithAbhaScreen,{});case SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA:return jsxRuntimeExports.jsx(AbhaLoginOtpVerifyScreen,{});case SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR:return jsxRuntimeExports.jsx(CreateAbhaWithAadhaarScreen,{});case SCREEN_NAMES.ABHA_OTP_AND_MOBILE:return jsxRuntimeExports.jsx(AbhaOtpAndMobileScreen,{});case SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION:return jsxRuntimeExports.jsx(AbhaPhoneNumberVerificationScreen,{});case SCREEN_NAMES.AADHAAR_VERIFICATION_STATUS:return jsxRuntimeExports.jsx(AbhaAadhaarVerificationStatusScreen,{});case SCREEN_NAMES.ABHA_MOBILE_LINKING_STATUS:return jsxRuntimeExports.jsx(AbhaMobileLinkingStatusScreen,{});case SCREEN_NAMES.SELECT_ABHA_FROM_LIST:return jsxRuntimeExports.jsx(SelectAbhaFromListScreen,{});case SCREEN_NAMES.SELECT_EKA_PROFILE:return jsxRuntimeExports.jsx(SelectEkaProfileScreen,{});case SCREEN_NAMES.CREATE_ABHA_ADDRESS:return jsxRuntimeExports.jsx(CreateAbhaAddressScreen,{});case SCREEN_NAMES.CREATE_EKA_PROFILE:return jsxRuntimeExports.jsx(CreateEkaProfileScreen,{});case SCREEN_NAMES.CREATE_PHR_EKA_PROFILE:return jsxRuntimeExports.jsx(CreateEkaProfileScreen,{});case SCREEN_NAMES.GET_ALL_PROFILES:return jsxRuntimeExports.jsx(GetAllProfilesScreen,{});case SCREEN_NAMES.LOGIN_OR_CREATE_ABHA:return jsxRuntimeExports.jsx(LoginorCreateAbhaScreen,{});default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}},queryClient=new QueryClient;function App(){return reactExports.useEffect(()=>()=>{unMount()},[]),jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:jsxRuntimeExports.jsx("div",{className:"pds2-h-full pds2-w-full pds2-bg-bg-white",style:{borderRadius:GET_CLIENT_ID()==="www-eka"?"1.5rem":void 0,position:"relative",height:GET_CLIENT_ID()==="www-eka"?"75vh":GET_CLIENT_ID()==="doc-web"?"100%":"100vh",overflowY:"auto",paddingTop:GET_CLIENT_ID()==="androiddoc"||GET_CLIENT_ID()==="doctor-app-ios"||GET_CLIENT_ID()==="doctor-ipad-ios"?"1rem":"0rem"},children:jsxRuntimeExports.jsx(ScreenStack,{})})})}const d=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],p=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]];function verhoeffValidate(e){let s=0;const i=e.split("").reverse().map(a=>parseInt(a,10));for(let a=0;a<i.length;a++)s=d[s][p[a%8][i[a]]];return s===0}function isValidAadhaar(e){return/^\d{12}$/.test(e)?verhoeffValidate(e):!1}const abhaRegex=/^[0-9]{14}$/;function luhnCheck(e){let s=0,i=!1;for(let a=e.length-1;a>=0;a--){let o=parseInt(e[a],10);i&&(o*=2,o>9&&(o-=9)),s+=o,i=!i}return s%10===0}function isValidABHA(e){return!abhaRegex.test(e)||e.split("").every(i=>i===e[0])?!1:luhnCheck(e)}const isValidMobile=e=>/^[6-9]\d{9}$/.test(e),setIdentifier=(e,s)=>{useAuthAbhaStore.getState().setInitAbhaAppIdentifierType(e),useAuthAbhaStore.getState().setInitAbhaAppIdentifier(s)},handleIdentifier=(e,s,i)=>{if(e){const a=e.replace(/[\s-]/g,"");if(s){if(s===ABHA_AUTH_FLOW_METHOD.MOBILE){useAuthAbhaStore.getState().setInitAbhaAppIdentifierSource("existing"),setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,e.slice(-10));return}setIdentifier(s,e),useAuthAbhaStore.getState().setInitAbhaAppIdentifierSource("existing");return}if(a.endsWith("@sbx")){setIdentifier(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,a);return}if(/^\+91\d{10}$/.test(a)){const c=a.slice(-10);if(c.length===10&&isValidMobile(c)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,c);return}}else if(/^\d+$/.test(a)){const c=a.length;if(c===10&&isValidMobile(a)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,a);return}if(c===12&&isValidAadhaar(a)){setIdentifier(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,a);return}if(c===14&&isValidABHA(a)){const g=`${a.slice(0,2)}-${a.slice(2,6)}-${a.slice(6,10)}-${a.slice(10,14)}`;setIdentifier(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,g);return}console.warn("Unknown numeric identifier type");return}console.warn("Unknown identifier type")}else console.warn("No identifier provided")};let PopupReactNode=null,unMount,onAbhaSuccess;function initAbhaApp(e){console.log("clear the abha auth store for every sdk invocation",e),useAuthAbhaStore.getState().clearAbhaAuthStore();const{clientId:s,containerId:i,urlParams:a,method:o,data:c,appVersion:g,onSuccess:_,onError:b,onAbhaClose:$}=e,{mobile:et,accessToken:ot,oid:rt,identifier:at,identifier_type:it,orgIcon:nt,linkToOrgIcon:dt}=c||{};console.log("recieved identifier, identifier_type",at,it),useAuthAbhaStore.getState().setOrgIcon(nt),useAuthAbhaStore.getState().setLinkToOrgIcon(dt),handleSendEvent({eventName:"recieved_init_identifiers",eventData:{identifier:at||"",identifier_type:it||""}});const _e={};ot&&(_e.auth=ot),rt&&(_e["X-User-ID"]=rt),console.log("set headers in headers"),console.log("invoked initAbhaApp",_e);const tt=_e!==null&&("auth"in _e||"X-User-ID"in _e);useAuthAbhaStore.getState().setIsEkaAppLogin(tt),s==="doc-web"&&useAuthAbhaStore.getState().setIsEkaAppLogin(!0),console.log("clientId ",s),console.log("isEkaAppLogin",useAuthAbhaStore.getState().isEkaAppLogin),s==="androiddoc"||s==="doctor-app-ios"||s==="doctor-ipad-ios"||s==="doc-web"?useAuthAbhaStore.getState().setClientId("doctor"):s==="androidp"||s==="patient-app-ios"?useAuthAbhaStore.getState().setClientId("phr"):s==="www-eka"?useAuthAbhaStore.getState().setClientId("eka-web"):(console.log("here"),useAuthAbhaStore.getState().setClientId("phr"));let j=!1;handleSendEvent({eventName:"init_abha_app",eventData:{platform:s,method:o||"",mobile:et||"",accessToken:ot||"",oid:rt||"",appVersion:g||"",isEkaAppLogin:tt.toString(),container_id:i}}),onTrack("init_abha_app",{platform:s,method:o||"",mobile:et||"",accessToken:_e.auth||"",oid:_e["X-User-ID"]||"",appVersion:g||"",isEkaAppLogin:tt.toString(),container_id:i}),(s==="androiddoc"||s==="doctor-app-ios"||s==="doctor-ipad-ios"||s==="doc-web")&&(j=!0,useAuthAbhaStore.getState().setIsDocAppRequest(j)),useAuthAbhaStore.getState().setInitAbhaAppMethod(o==="create_abha_with_mobile"?"create_abha_with_mobile":"login_with_abha"),setEnv({clientId:s,env:"DEV",..._e&&{extraHeaders:_e}}),console.log("isProd is",!1);const ut=SCREEN_NAMES.LOGIN_OR_CREATE_ABHA;useAuthAbhaStore.getState().setInitState({screen:[ut],urlParams:a});const gt=it&&["mobile","aadhaar_number","abha_number","phr_address"].includes(it)?it:void 0;handleIdentifier(at,gt),useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.MOBILE);const mt=()=>{useAuthAbhaStore.getState().clearAbhaAuthStore(),queryClient.removeQueries(),PopupReactNode==null||PopupReactNode.unmount(),$()},_t=document.getElementById(i);if(!_t){const kt=`Element with id ${i} not found`;console.error(kt),b({error:kt}),mt();return}return onAbhaSuccess=_,PopupReactNode=createRoot(_t),PopupReactNode.render(jsxRuntimeExports.jsx(App,{})),unMount=mt,window.closeAbhaApp=mt,mt}window.initAbhaApp=initAbhaApp;function onTrack(e,s={}){var o;const i=useAuthAbhaStore.getState().clientId||"unknown-platform",a={...s,platform:i};console.log("Tracking Event:",e,a),(o=window.curio)!=null&&o.pushToMixpanel?(console.log("Pushing to Mixpanel:",e,a),window.curio.pushToMixpanel(e,a)):(console.log("Curio not available. Queuing event:",e,a),console.error("Curio not available. Could not push event to Mixpanel."))}
63
+ pds2-transition-colors`,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"ekaProfile",value:xt.oid,checked:pt,onChange:()=>wt({profile:xt}),className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14",onKeyDown:vt=>vt.key==="Enter"&&Et()}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-flex-1",children:[jsxRuntimeExports.jsx("div",{className:"TitlesSubheadline pds2-text-text-primary",children:xt.fln}),jsxRuntimeExports.jsx("span",{className:"pds2-ml-auto pds2-text-text-brand pds2-text-14 pds2-font-600",children:"Link"})]})]},xt.oid)})}),jsxRuntimeExports.jsx(TextSeparator,{title:"or"}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Create new Family Member",prefixIcon:jsxRuntimeExports.jsx(PlusRegularIcon,{}),className:"pds2-justify-center pds2-text-text-brand pds2-border-bg-fab-bg-brand-04 Body1Semibold",onClick:kt})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-sticky pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-bg-bg-white pds2-shadow-lg pds2-p-16",children:[rt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error pds2-text-center pds2-mb-8",children:rt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:o===null||b===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:b===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:Et})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Tt}),jsxRuntimeExports.jsx(ExitPopup,{open:et,setOpen:ot})]})},LoginorCreateAbhaScreen=()=>{const e=useAuthAbhaStore(a=>a.clientId);reactExports.useEffect(()=>{var a;if((a=window.EkaAbha)!=null&&a.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var o,c;(o=window.EkaAbha)!=null&&o.changeStatusBarColor&&((c=window==null?void 0:window.EkaAbha)==null||c.changeStatusBarColor("#FFFFFF"))}},[]);const s=()=>{var a;(a=window.EkaAbha)==null||a.onAbhaClose(),unMount()},i=["eka-web","phr"];return jsxRuntimeExports.jsxs("div",{className:"pds2-h-full pds2-overflow-y-auto",children:[!i.includes(e)&&jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{onClick:s,children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),title:"",className:"pds2-bg-bg-01"}),jsxRuntimeExports.jsx(LoginOrCreateWithDifferentMethods,{})]})},LoginOrCreateWithDifferentMethods=()=>{const e=useAuthAbhaStore(jt=>jt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),s=useAuthAbhaStore(jt=>jt.setAbhaAuthFlowMethod),i=useAuthAbhaStore(jt=>jt.goBackToLogin),a=useAuthAbhaStore(jt=>jt.setGoBackToLogin);useAuthAbhaStore(jt=>jt.initAbhaAppIdentifierSource);const o=useAuthAbhaStore(jt=>jt.setInitAbhaAppIdentifier),c=useAuthAbhaStore(jt=>jt.setIdentifierValue),g=useAuthAbhaStore(jt=>jt.identifierValue),_=useAuthAbhaStore(jt=>jt.isEkaAppLogin),b=useAuthAbhaStore(jt=>jt.setSelectedAbhaAddress),$=useAuthAbhaStore(jt=>jt.setLoginIdentifierValue),et=useAuthAbhaStore(jt=>jt.setRegistrationType),ot=useAuthAbhaStore(jt=>jt.setAadhaarInitResponse),rt=useAuthAbhaStore(jt=>jt.setMobileInitResponse),at=useAuthAbhaStore(jt=>jt.initAbhaAppMobileNumber),it=useAuthAbhaStore(jt=>jt.initAbhaAppIdentifierType),nt=useAuthAbhaStore(jt=>jt.initAbhaAppIdentifier),dt=useAuthAbhaStore(jt=>jt.isDocAppRequest),_e=useAuthAbhaStore(jt=>jt.isNewLoginOrCreateFlow),tt=useAuthAbhaStore(jt=>jt.setIsNewLoginOrCreateFlow),j=useAuthAbhaStore(jt=>jt.clientId),st=useAuthAbhaStore(jt=>jt.isInitApiTriggered),ut=useAuthAbhaStore(jt=>jt.setIsInitApiTriggered),ct=useAuthAbhaStore(jt=>jt.setIdentityValue);useAuthAbhaStore(jt=>jt.identityValue);const gt=useAuthAbhaStore(jt=>jt.setSelectedAbhaFlow),mt=useAuthAbhaStore(jt=>jt.txnId),[_t,kt]=reactExports.useState(LOADING_STATE.IDLE),[wt,Et]=reactExports.useState(""),Tt=useAuthAbhaStore(jt=>jt.setScreen),[Lt,xt]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),[pt,vt]=reactExports.useState(g.mobile||""),[lt,ht]=reactExports.useState(!1),[yt,ft]=reactExports.useState(!1),[Ct,St]=reactExports.useState(g.aadhaar_number||""),[bt,Ot]=reactExports.useState(g.abha_number||""),[Mt,Rt]=reactExports.useState(""),[Kt,Wt]=reactExports.useState(g.phr_address||""),Vt=reactExports.useRef(!1),zt=GET_EXTRA_HEADERS();reactExports.useEffect(()=>{It({name:"abha_login_or_create_screen",data:{flow:e.toString()}})}),reactExports.useEffect(()=>{nt&&it===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?(Rt(nt),Wt(nt.split("@")[0]),c({phr_address:nt.split("@")[0]}),Ft(!0),Zt(!0),s(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS)):nt&&it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?(c({abha_number:nt}),Ot(nt),Ft(!0),tr(!0),s(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER)):nt&&it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?(St(nt),ft(!0),c({aadhaar_number:nt}),s(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)):nt&&it===ABHA_AUTH_FLOW_METHOD.MOBILE&&(vt(nt),c({mobile:nt}),ht(nt.length===10),Et(null),s(ABHA_AUTH_FLOW_METHOD.MOBILE))},[it,nt]),reactExports.useEffect(()=>{st||Vt.current||pt&&pt.length===10&&(ut(!0),Vt.current=!0,Ut("auto_submit_mobile"))},[pt]),reactExports.useEffect(()=>{st||Vt.current||Ct&&Ct.length===12&&(ut(!0),Vt.current=!0,Ut("auto_submit_aadhaar"))},[Ct]),reactExports.useEffect(()=>{st||Vt.current||bt&&bt.length===17&&(ut(!0),Vt.current=!0,Ut("auto_submit_abha"))},[bt]),reactExports.useEffect(()=>{st||Vt.current||Mt&&Mt.includes("@sbx")&&(ut(!0),Vt.current=!0,Ut("auto_submit_phr"))},[Mt]);const It=({name:jt,data:Bt={}})=>{var lr,xr;const sr={...{login_platform:j,is_eka_app_login:_?"true":"false",is_new_login_or_create_flow:_e?"true":"false",oid:zt!=null&&zt["X-User-ID"]?"true":"false",access_token:zt!=null&&zt.auth?"true":"false",txn_id:mt||"missing txnId",flow:e??""},...Bt};handleSendEvent({eventName:jt,eventData:sr}),(xr=(lr=window.curio)==null?void 0:lr.pushToMixpanel)==null||xr.call(lr,jt,sr)},Nt=React.useMemo(()=>{switch(e){case ABHA_AUTH_FLOW_METHOD.MOBILE:return"Enter your Mobile Number";case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return"Enter your Aadhaar Number";default:return""}},[e]),Pt=jt=>{Et("");const Bt=jt.target.value;switch(e){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:if(Bt.length>20)return;Wt(Bt),c({phr_address:Bt}),o(null);break;case ABHA_AUTH_FLOW_METHOD.MOBILE:if(Bt&&!/^[0-9]+$/.test(Bt)||Bt.length>10)return;vt(Bt),ht(!0),c({mobile:Bt}),o(null);break;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:if(!/^[\d-]*$/.test(Bt)||Bt.length>17)return;const Jt=jt.target.value.replace(/-/g,"");let sr="";return Jt.length>0&&(sr+=Jt.slice(0,2)),Jt.length>2&&(sr+=`-${Jt.slice(2,6)}`),Jt.length>6&&(sr+=`-${Jt.slice(6,10)}`),Jt.length>10&&(sr+=`-${Jt.slice(10,14)}`),Ot(sr),o(null),c({abha_number:sr.trim()});case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:if(Bt&&!/^[0-9]+$/.test(Bt)||Bt.length>12)return;St(Bt),ft(!0),o(null),c({aadhaar_number:Bt});break}};ABHA_AUTH_FLOW_METHOD.MOBILE;const qt=React.useMemo(()=>{switch(e){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return g.phr_address.length>=4&&g.phr_address.length<=20;case ABHA_AUTH_FLOW_METHOD.MOBILE:return g.mobile.length===10;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return g.abha_number.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return g.aadhaar_number.length===12}},[e,g]),Gt=(jt,Bt)=>{xt(Jt=>({...Jt,[jt]:Bt}))},er=({inputVal:jt})=>{jt.length===12&&(c({aadhaar_number:jt}),St(jt),ft(!0))};reactExports.useEffect(()=>{console.log("selectedMethod changed:==================>",e)},[e]);const Ut=async jt=>{var sr,lr,xr;tt(!0),It({name:"abha_login_next_click",data:{flow_step_type:jt}}),kt(LOADING_STATE.LOADING),et(REGISTRATION_TYPE.LOGIN);let Bt="";if(!_){const mr=await postAuthLogoutV2();It({name:mr?"abha_logout_success":"abha_logout_failure",data:{platform:j}});const{txn_id:gr,error:or}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!gr||or){It({name:"abha_auth_init_failure",data:{flow_step_type:"init",authTxnId:Bt,error_message:or||"missing_txnId_or_unknown_error",error_message_exists:!!or,txn_id_exists:!!gr}}),Et((or==null?void 0:or.message)||"Something went wrong. Please try again."),kt(LOADING_STATE.REJECTED);return}Bt=gr,It({name:"abha_auth_init_success.",data:{flow_step_type:"init",auth_txnId:Bt}})}const Jt=e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?`${g.phr_address}@sbx`:e===ABHA_AUTH_FLOW_METHOD.MOBILE?g.mobile:e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?g.abha_number:e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?g.aadhaar_number:"";if(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER||e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS){const{txn_id:mr,error:gr,action:or,hint:Sr}=await postAbdmLoginInit({method:e,identifier:Jt});if(ct(Jt),It({name:"abha_login_init_triggered",data:{flow_step_type:"init",authTxnId:Bt,ndhmTxnId:mr,method:e}}),e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&b(Jt),gr||!mr){if(a(!0),((sr=or==null?void 0:or.cta)==null?void 0:sr.pid)==="abha_mobile_enroll"&&e===ABHA_AUTH_FLOW_METHOD.MOBILE){Gt("mobile",LOADING_STATE.LOADING),et(REGISTRATION_TYPE.CREATE);const{txn_id:Ts,hint:Cs,error:os,action:ls}=await postRegisterMobileInit({mobile_number:g.mobile});if(ct(g.mobile),gt("mobile"),Ts&&Cs){rt({authTxnId:Bt,txnId:Ts,mobileOtpSentToHint:Cs}),It({name:"abha_mobile_registration_init_success",data:{flow_step_type:"init",authTxnId:Bt,ndhmTxnId:mr,error_message:os,error_action:or}}),Gt("mobile",LOADING_STATE.RESOLVED),kt(LOADING_STATE.RESOLVED),et(REGISTRATION_TYPE.CREATE),Tt(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}if(Gt("mobile",LOADING_STATE.REJECTED),It({name:"abha_mobile_registration_init_failure",data:{flow_step_type:"init",authTxnId:Bt,error_message:os||"unknown_error",error_message_exists:!!os,error_action_exists:!!ls}}),ls){if((lr=ls==null?void 0:ls.cta)!=null&&lr.pid)return Tt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA)}else Et(os||"Something went wrong");Et(os||"Something went wrong. Please try again."),kt(LOADING_STATE.REJECTED);return}It({name:"abha_login_init_failure",data:{flow_step_type:"init",authTxnId:Bt,error_message:gr||"unknown_error",error_message_exists:!!gr,error_action_exists:!!or}}),Et(gr||"Something went wrong. Please try again."),kt(LOADING_STATE.REJECTED);return}It({name:"abha_login_init_success",data:{flow_step_type:"init",authTxnId:Bt,ndhmTxnId:mr,hint:Sr}}),ot({authTxnId:Bt,txnId:mr,aadhaarOtpSentToHint:Sr||null}),a(!1),$(Jt),kt(LOADING_STATE.RESOLVED),Tt(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}if(e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){Gt("aadhaar",LOADING_STATE.LOADING),It({name:"aadhaar_registration_init_start",data:{flow_step_type:"init",authTxnId:Bt,aadhaarNumber:g.aadhaar_number}});const{txn_id:mr,hint:gr,error:or,action:Sr}=await postRegisterAadhaarInit({aadhaar_number:g.aadhaar_number});if(ct(g.aadhaar_number),gt("aadhaar"),mr&&gr){ot({authTxnId:Bt,txnId:mr,aadhaarOtpSentToHint:gr}),It({name:"aadhaar_registration_init_success",data:{flow_step_type:"verify",ndhmTxnId:mr,authTxnId:Bt}}),a(!1),Gt("aadhaar",LOADING_STATE.RESOLVED),et(REGISTRATION_TYPE.CREATE),kt(LOADING_STATE.RESOLVED),Tt(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}if(It({name:"abha_registration_init_failure",data:{error_message:or||"unknown_error",error_message_exists:!!or,auth_txn_id:Bt,error_action:Sr,error_action_exists:!!Sr}}),Gt("aadhaar",LOADING_STATE.REJECTED),kt(LOADING_STATE.REJECTED),Sr||or){a(!0),(xr=Sr==null?void 0:Sr.cta)!=null&&xr.pid?Tt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA):Et(or||"Something went wrong");return}}},[Qt,Ft]=reactExports.useState(!1),[Dt,tr]=reactExports.useState(i&&e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),[nr,Zt]=reactExports.useState(i&&e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-pt-22 pds2-p-16 pds2-bg-bg-01 pds2-space-y-16 pds2-text-center pds2-rounded-b-24",children:[jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center pds2-gap-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-16",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64"})})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-text-black",children:j==="phr"?"Login or Create your ABHA":dt?"Add Patient via ABHA":"Create your ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03",style:{marginTop:"4px"},children:e===ABHA_AUTH_FLOW_METHOD.MOBILE?dt?"Enter Patient's Mobile Number":"Enter your Mobile Number":e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?dt?"Enter Patient's Aadhaar Number":"Enter your Aadhaar Number":e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?dt?"Enter Patient's ABHA Number":"Enter your ABHA Number":e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?dt?"Enter Patient's ABHA Address":"Enter your ABHA Address":Nt}),(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-flex pds2-bg-bg-seperator-dark pds2-rounded-12 pds2-mt-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-top-0 pds2-bottom-0 pds2-bg-bg-white pds2-rounded-12 pds2-transition-all pds2-duration-300",style:{left:e===ABHA_AUTH_FLOW_METHOD.MOBILE?0:"50%",width:"50%",boxShadow:"0px 10px 4px -6px #18274B17"}}),jsxRuntimeExports.jsxs("button",{onClick:()=>{s(ABHA_AUTH_FLOW_METHOD.MOBILE),Et("")},className:"pds2-flex-1 pds2-py-6 pds2-flex pds2-items-center pds2-justify-center pds2-gap-8 pds2-relative pds2-z-10",children:[jsxRuntimeExports.jsx(PhoneSolidIcon,{className:"pds2-w-14 pds2-h-14 pds2-text-icon-success-02"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${e===ABHA_AUTH_FLOW_METHOD.MOBILE?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:e===ABHA_AUTH_FLOW_METHOD.MOBILE?{fontWeight:700}:{fontWeight:400},children:"Mobile"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{s(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),Et("")},className:"pds2-flex-1 pds2-py-6 pds2-flex pds2-items-center pds2-justify-center pds2-gap-8 pds2-relative pds2-z-10",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?{fontWeight:700}:{fontWeight:400},children:"Aadhaar"})]})]}),(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx("div",{className:"pds2-mt-16 pds2-w-full pds2-max-w-md pds2-mx-auto pds2-px-4 pds2-relative",children:e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?jsxRuntimeExports.jsx(SpacedInputComponent,{initialValues:it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!i?(nt==null?void 0:nt.match(/.{1,4}/g))??void 0:(Ct==null?void 0:Ct.match(/.{1,4}/g))??void 0,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!nt,numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:er,setIsValid:ft,setAadhaarValue:St,setError:Et}):jsxRuntimeExports.jsx(Pds2InputField,{value:it===ABHA_AUTH_FLOW_METHOD.MOBILE&&!i?nt||"":pt,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.MOBILE&&!!nt,onChange:Pt,type:"tel",autoComplete:"tel-national",placeholder:"Mobile Number",inputMode:"numeric",autoFocus:!0,maxLength:10,PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-border-brand-02 pds2-pr-24",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4mlct2900000tg98p8u967s.webp",alt:"indian-flag-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-black pds2-text-sm",children:"+91"})]})})}),wt&&(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular",children:wt}),(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!qt||_t===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:_t===LOADING_STATE.LOADING,onClick:()=>Ut("aadhaar_or_mobile_on_click"),className:"pds2-w-full"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-m-16 pds2-bg-bg-white pds2-rounded-16 pds2-border pds2-border-border-03 pds2-overflow-hidden",children:[jsxRuntimeExports.jsxs("button",{onClick:()=>Ft(!Qt),className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-16 pds2-bg-bg-white hover:pds2-bg-bg-02 pds2-transition-colors",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-text-03",children:dt?"Other add options for ABHA":"Other login options for ABHA"}),jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:`pds2-w-16 pds2-h-16 pds2-text-text-03 pds2-transition-transform ${Qt?"pds2-rotate-180":""}`})]}),jsxRuntimeExports.jsxs("div",{className:`pds2-overflow-hidden pds2-transition-all pds2-duration-300 ${Qt?"pds2-max-h-126 pds2-opacity-100":"pds2-max-h-0 pds2-opacity-0"}`,children:[jsxRuntimeExports.jsxs("button",{onClick:()=>{Ft(!1),s(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),tr(!0),Et("")},className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-12 hover:pds2-bg-bg-02 pds2-transition-colors",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-12",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-40 pds2-h-40 pds2-rounded-full pds2-bg-bg-02 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abd-icon",className:"pds2-w-24 pds2-h-24"})}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-black",children:dt?"Add patient with ABHA Number":"Login with ABHA Number"})]}),jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-text-03"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{Ft(!1),s(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),Zt(!0),Et("")},className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-12 hover:pds2-bg-bg-02 pds2-transition-colors",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-12",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-40 pds2-h-40 pds2-rounded-full pds2-bg-bg-02 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-24 pds2-h-24"})}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-black",children:dt?"Add patient with ABHA Address":"Login with ABHA Address"})]}),jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-text-03"})]})]})]}),jsxRuntimeExports.jsx(AbhaBottomSheet,{isOpen:Dt,setIsOpen:tr,setFlowMethod:s,setError:Et,children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-24 pds2-text-center pds2-h-full pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{Et(null),tr(!1),s(ABHA_AUTH_FLOW_METHOD.MOBILE)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-text-03 hover:pds2-text-text-black",children:"✕"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-mb-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-w-64 pds2-h-64 pds2-rounded-full pds2-bg-bg-01 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-48 pds2-h-48"})})}),jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-text-black",children:dt?"Add Patient with ABHA Number":"Login with ABHA Number"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-text-03 pds2-mb-24",children:dt?"Enter Patient's 14 digit ABHA Number":"Enter your 14 digit ABHA Number"}),jsxRuntimeExports.jsx(Pds2InputField,{value:it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!i?nt||"":bt,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!!nt,onChange:Pt,placeholder:"00-0000-0000-0000",padding:"pds2-p-18",textStyle:"Body2Regular pds2-text-center pds2-text-lg",borderStyle:"focus-within:pds2-border-border-brand-01",type:"tel",autoComplete:"tel-national",inputMode:"numeric",autoFocus:!0,onKeyDown:jt=>{jt.key==="Enter"&&Ut("after_enter_abha_number_on_click_by_user")}}),wt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular pds2-mt-12",children:wt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!g||_t===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>Ut("after_enter_abha_number_on_click_by_user"),className:`pds2-w-full ${wt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:_t===LOADING_STATE.LOADING})]})]})}),jsxRuntimeExports.jsx(AbhaBottomSheet,{isOpen:nr,setIsOpen:Zt,setFlowMethod:s,setError:Et,children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-24 pds2-text-center pds2-h-full pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{Et(null),Zt(!1),s(ABHA_AUTH_FLOW_METHOD.MOBILE)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-text-03 hover:pds2-text-text-black",children:"✕"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-mb-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-w-64 pds2-h-64 pds2-rounded-full pds2-bg-bg-01 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-48 pds2-h-48"})})}),jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-text-black",children:dt?"Add Patient with ABHA Address":"Login with ABHA Address"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-text-03 pds2-mb-24",children:dt?"Enter Patient's ABHA Address below":"Enter your ABHA Address below"}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative",children:[jsxRuntimeExports.jsx(Pds2InputField,{value:it===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!i?(nt==null?void 0:nt.split("@")[0])||"":Kt,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!!nt,onChange:Pt,placeholder:"Enter ABHA Address",inputMode:"text",autoFocus:!0,onKeyDown:jt=>{jt.key==="Enter"&&Ut("after_enter_abha_address_on_click_by_user")}}),jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-right-16 pds2-top-16 Body1Regular pds2-text-text-03",children:"@sbx"})]}),wt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular pds2-mt-12",children:wt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!g||_t===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>Ut("after_enter_abha_address_on_click_by_user"),className:`pds2-w-full ${wt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:_t===LOADING_STATE.LOADING})]})]})})]})},AbhaBottomSheet=({isOpen:e,setIsOpen:s,children:i,setFlowMethod:a,overlayClassName:o="pds2-bg-text-black pds2-bg-opacity-50",setError:c})=>{const[g,_]=reactExports.useState(e);return reactExports.useEffect(()=>{if(e)_(!0);else{const b=setTimeout(()=>_(!1),300);return()=>clearTimeout(b)}},[e]),g?jsxRuntimeExports.jsxs("div",{className:`pds2-absolute pds2-inset-0 pds2-z-50 pds2-flex pds2-items-end pds2-transition-all pds2-duration-300 ${e?"pds2-opacity-100":"pds2-opacity-0 pointer-events-none"}`,children:[jsxRuntimeExports.jsx("div",{className:`pds2-absolute pds2-inset-0 ${o} pds2-transition-opacity pds2-duration-300`,style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},onClick:()=>{c(null),s(!1),a(ABHA_AUTH_FLOW_METHOD.MOBILE)}}),jsxRuntimeExports.jsx("div",{className:`pds2-relative pds2-bg-bg-white pds2-rounded-t-24 pds2-w-full pds2-transition-transform pds2-duration-300 ${e?"pds2-translate-y-0":"pds2-translate-y-full"}`,style:{height:"75%",maxHeight:"600px",overflowY:"auto"},children:i})]}):null},ScreenStack=()=>{const e=useAuthAbhaStore(i=>i.screen);switch(e[e.length-1]){case SCREEN_NAMES.LOGIN_WITH_ABHA:return jsxRuntimeExports.jsx(LoginWithAbhaScreen,{});case SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA:return jsxRuntimeExports.jsx(AbhaLoginOtpVerifyScreen,{});case SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR:return jsxRuntimeExports.jsx(CreateAbhaWithAadhaarScreen,{});case SCREEN_NAMES.ABHA_OTP_AND_MOBILE:return jsxRuntimeExports.jsx(AbhaOtpAndMobileScreen,{});case SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION:return jsxRuntimeExports.jsx(AbhaPhoneNumberVerificationScreen,{});case SCREEN_NAMES.AADHAAR_VERIFICATION_STATUS:return jsxRuntimeExports.jsx(AbhaAadhaarVerificationStatusScreen,{});case SCREEN_NAMES.ABHA_MOBILE_LINKING_STATUS:return jsxRuntimeExports.jsx(AbhaMobileLinkingStatusScreen,{});case SCREEN_NAMES.SELECT_ABHA_FROM_LIST:return jsxRuntimeExports.jsx(SelectAbhaFromListScreen,{});case SCREEN_NAMES.SELECT_EKA_PROFILE:return jsxRuntimeExports.jsx(SelectEkaProfileScreen,{});case SCREEN_NAMES.CREATE_ABHA_ADDRESS:return jsxRuntimeExports.jsx(CreateAbhaAddressScreen,{});case SCREEN_NAMES.CREATE_EKA_PROFILE:return jsxRuntimeExports.jsx(CreateEkaProfileScreen,{});case SCREEN_NAMES.CREATE_PHR_EKA_PROFILE:return jsxRuntimeExports.jsx(CreateEkaProfileScreen,{});case SCREEN_NAMES.GET_ALL_PROFILES:return jsxRuntimeExports.jsx(GetAllProfilesScreen,{});case SCREEN_NAMES.LOGIN_OR_CREATE_ABHA:return jsxRuntimeExports.jsx(LoginorCreateAbhaScreen,{});default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}},queryClient=new QueryClient;function App(){return reactExports.useEffect(()=>()=>{unMount()},[]),jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:jsxRuntimeExports.jsx("div",{className:"pds2-h-full pds2-w-full pds2-bg-bg-white",style:{borderRadius:GET_CLIENT_ID()==="www-eka"?"1.5rem":void 0,position:"relative",height:GET_CLIENT_ID()==="www-eka"?"75vh":GET_CLIENT_ID()==="doc-web"?"100%":"100vh",overflowY:"auto",paddingTop:GET_CLIENT_ID()==="androiddoc"||GET_CLIENT_ID()==="doctor-app-ios"||GET_CLIENT_ID()==="doctor-ipad-ios"?"1rem":"0rem"},children:jsxRuntimeExports.jsx(ScreenStack,{})})})}const d=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],p=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]];function verhoeffValidate(e){let s=0;const i=e.split("").reverse().map(a=>parseInt(a,10));for(let a=0;a<i.length;a++)s=d[s][p[a%8][i[a]]];return s===0}function isValidAadhaar(e){return/^\d{12}$/.test(e)?verhoeffValidate(e):!1}const abhaRegex=/^[0-9]{14}$/;function luhnCheck(e){let s=0,i=!1;for(let a=e.length-1;a>=0;a--){let o=parseInt(e[a],10);i&&(o*=2,o>9&&(o-=9)),s+=o,i=!i}return s%10===0}function isValidABHA(e){return!abhaRegex.test(e)||e.split("").every(i=>i===e[0])?!1:luhnCheck(e)}const isValidMobile=e=>/^[6-9]\d{9}$/.test(e),setIdentifier=(e,s)=>{useAuthAbhaStore.getState().setInitAbhaAppIdentifierType(e),useAuthAbhaStore.getState().setInitAbhaAppIdentifier(s)},handleIdentifier=(e,s,i)=>{if(e){const a=e.replace(/[\s-]/g,"");if(s){if(s===ABHA_AUTH_FLOW_METHOD.MOBILE){useAuthAbhaStore.getState().setInitAbhaAppIdentifierSource("existing"),setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,e.slice(-10));return}setIdentifier(s,e),useAuthAbhaStore.getState().setInitAbhaAppIdentifierSource("existing");return}if(a.endsWith("@sbx")){setIdentifier(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,a);return}if(/^\+91\d{10}$/.test(a)){const c=a.slice(-10);if(c.length===10&&isValidMobile(c)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,c);return}}else if(/^\d+$/.test(a)){const c=a.length;if(c===10&&isValidMobile(a)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,a);return}if(c===12&&isValidAadhaar(a)){setIdentifier(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,a);return}if(c===14&&isValidABHA(a)){const g=`${a.slice(0,2)}-${a.slice(2,6)}-${a.slice(6,10)}-${a.slice(10,14)}`;setIdentifier(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,g);return}console.warn("Unknown numeric identifier type");return}console.warn("Unknown identifier type")}else console.warn("No identifier provided")};let PopupReactNode=null,unMount,onAbhaSuccess;function initAbhaApp(e){console.log("clear the abha auth store for every sdk invocation",e),useAuthAbhaStore.getState().clearAbhaAuthStore();const{clientId:s,containerId:i,urlParams:a,method:o,data:c,appVersion:g,onSuccess:_,onError:b,onAbhaClose:$}=e,{mobile:et,accessToken:ot,oid:rt,identifier:at,identifier_type:it,orgIcon:nt,linkToOrgIcon:dt}=c||{};console.log("recieved identifier, identifier_type",at,it),useAuthAbhaStore.getState().setOrgIcon(nt),useAuthAbhaStore.getState().setLinkToOrgIcon(dt),handleSendEvent({eventName:"recieved_init_identifiers",eventData:{identifier:at||"",identifier_type:it||""}});const _e={};ot&&(_e.auth=ot),rt&&(_e["X-User-ID"]=rt),console.log("set headers in headers"),console.log("invoked initAbhaApp",_e);const tt=_e!==null&&("auth"in _e||"X-User-ID"in _e);useAuthAbhaStore.getState().setIsEkaAppLogin(tt),s==="doc-web"&&useAuthAbhaStore.getState().setIsEkaAppLogin(!0),console.log("clientId ",s),console.log("isEkaAppLogin",useAuthAbhaStore.getState().isEkaAppLogin),s==="androiddoc"||s==="doctor-app-ios"||s==="doctor-ipad-ios"||s==="doc-web"?useAuthAbhaStore.getState().setClientId("doctor"):s==="androidp"||s==="patient-app-ios"?useAuthAbhaStore.getState().setClientId("phr"):s==="www-eka"?useAuthAbhaStore.getState().setClientId("eka-web"):(console.log("here"),useAuthAbhaStore.getState().setClientId("phr"));let j=!1;handleSendEvent({eventName:"init_abha_app",eventData:{platform:s,method:o||"",mobile:et||"",accessToken:ot||"",oid:rt||"",appVersion:g||"",isEkaAppLogin:tt.toString(),container_id:i}}),onTrack("init_abha_app",{platform:s,method:o||"",mobile:et||"",accessToken:_e.auth||"",oid:_e["X-User-ID"]||"",appVersion:g||"",isEkaAppLogin:tt.toString(),container_id:i}),(s==="androiddoc"||s==="doctor-app-ios"||s==="doctor-ipad-ios"||s==="doc-web")&&(j=!0,useAuthAbhaStore.getState().setIsDocAppRequest(j)),useAuthAbhaStore.getState().setInitAbhaAppMethod(o==="create_abha_with_mobile"?"create_abha_with_mobile":"login_with_abha"),setEnv({clientId:s,env:"DEV",..._e&&{extraHeaders:_e}}),console.log("isProd is",!1);const ut=SCREEN_NAMES.LOGIN_OR_CREATE_ABHA;useAuthAbhaStore.getState().setInitState({screen:[ut],urlParams:a});const gt=it&&["mobile","aadhaar_number","abha_number","phr_address"].includes(it)?it:void 0;handleIdentifier(at,gt),useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.MOBILE);const mt=()=>{useAuthAbhaStore.getState().clearAbhaAuthStore(),queryClient.removeQueries(),PopupReactNode==null||PopupReactNode.unmount(),$()},_t=document.getElementById(i);if(!_t){const kt=`Element with id ${i} not found`;console.error(kt),b({error:kt}),mt();return}return onAbhaSuccess=_,PopupReactNode=createRoot(_t),PopupReactNode.render(jsxRuntimeExports.jsx(App,{})),unMount=mt,window.closeAbhaApp=mt,mt}window.initAbhaApp=initAbhaApp;function onTrack(e,s={}){var o;const i=useAuthAbhaStore.getState().clientId||"unknown-platform",a={...s,platform:i};console.log("Tracking Event:",e,a),(o=window.curio)!=null&&o.pushToMixpanel?(console.log("Pushing to Mixpanel:",e,a),window.curio.pushToMixpanel(e,a)):(console.log("Curio not available. Queuing event:",e,a),console.error("Curio not available. Could not push event to Mixpanel."))}