@eka-care/abha-stg 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{index.html → dist/index.html} +2 -1
- package/dist/sdk/abha/css/abha.css +1 -0
- package/dist/sdk/abha/js/abha.js +63 -0
- package/package.json +1 -1
- package/.eslintignore +0 -3
- package/.eslintrc +0 -29
- package/.prettierrc +0 -7
- package/.turbo/daemon/da13e0828a6aedf8-turbo.log.2025-10-30 +0 -0
- package/package/styles/pds2/border.ts +0 -69
- package/package/styles/pds2/colors.ts +0 -70
- package/package/styles/pds2/spacing.ts +0 -1007
- package/package/tailwind/tailwind.config.ts +0 -124
- package/postcss.config.js +0 -6
- package/scripts/build-purged-css.cjs +0 -70
- package/src/App.css +0 -0
- package/src/App.tsx +0 -43
- package/src/api-queries/aorta-go/v3/get-profile-patient.ts +0 -32
- package/src/api-queries/aorta-go/v3/get-profiles-phr-user.ts +0 -26
- package/src/api-queries/aorta-go/v3/post-auth-init-v2.ts +0 -34
- package/src/api-queries/aorta-go/v3/post-auth-logout-v2.ts +0 -32
- package/src/api-queries/aorta-go/v3/post-auth-verify-v2.ts +0 -38
- package/src/api-queries/aorta-go/v3/post-profile-switch.ts +0 -39
- package/src/api-queries/ndhm/get-abdm-register-suggest.ts +0 -37
- package/src/api-queries/ndhm/get-pincode-details.ts +0 -28
- package/src/api-queries/ndhm/post-abdm-login-init.ts +0 -37
- package/src/api-queries/ndhm/post-abdm-login-phr.ts +0 -37
- package/src/api-queries/ndhm/post-abdm-login-verify.ts +0 -37
- package/src/api-queries/ndhm/post-abdm-profile-eka-link-phr.ts +0 -40
- package/src/api-queries/ndhm/post-abdm-profile-eka.ts +0 -66
- package/src/api-queries/ndhm/post-abdm-register-abha-number-create-phr.ts +0 -37
- package/src/api-queries/ndhm/post-abdm-register-mobile-create-phr.ts +0 -66
- package/src/api-queries/ndhm/post-abdm-register-mobile-resend-otp.ts +0 -32
- package/src/api-queries/ndhm/post-abdm-register-mobile-verify.ts +0 -38
- package/src/api-queries/ndhm/post-abdm-register-phr-check.ts +0 -34
- package/src/api-queries/ndhm/post-register-aadhaar-create-phr.ts +0 -37
- package/src/api-queries/ndhm/post-register-aadhaar-init.ts +0 -34
- package/src/api-queries/ndhm/post-register-aadhaar-mobile-resend-otp.ts +0 -34
- package/src/api-queries/ndhm/post-register-aadhaar-mobile-verify.ts +0 -37
- package/src/api-queries/ndhm/post-register-aadhaar-resend-otp.ts +0 -34
- package/src/api-queries/ndhm/post-register-aadhaar-verify.ts +0 -40
- package/src/api-queries/ndhm/post-register-mobile-init.ts +0 -34
- package/src/api-queries/use-get-profiles-patient.ts +0 -12
- package/src/api-queries/use-get-profiles-phr-user.ts +0 -28
- package/src/api-queries/use-post-abdm-login-verify-v1.ts +0 -26
- package/src/api-queries/use-post-auth-verify-v2.ts +0 -50
- package/src/api-queries/use-post-profile-switch.ts +0 -58
- package/src/api-queries/use-post-register-mobile-create-phr.ts +0 -39
- package/src/api-queries/user-post-abdm-profile-login-phr.ts +0 -26
- package/src/assets/Success.json +0 -1
- package/src/assets/react.svg +0 -1
- package/src/atoms/button/custom-button.tsx +0 -32
- package/src/atoms/button/index.tsx +0 -40
- package/src/atoms/button/types.d.ts +0 -31
- package/src/atoms/header.tsx +0 -25
- package/src/atoms/input-field/index.tsx +0 -63
- package/src/atoms/input-field/patient-input-field.tsx +0 -16
- package/src/atoms/input-field/types.ts +0 -24
- package/src/atoms/pds2-otp-input/index.tsx +0 -35
- package/src/atoms/pds2-otp-input/types.d.ts +0 -3
- package/src/atoms/single-input-chip/index.tsx +0 -32
- package/src/atoms/single-input-chip/types.ts +0 -6
- package/src/atoms/spinner.tsx +0 -33
- package/src/atoms/text-separator.tsx +0 -11
- package/src/atoms/ui/spinner.tsx +0 -75
- package/src/constants/constants.ts +0 -376
- package/src/fetch-client/index.ts +0 -164
- package/src/index.css +0 -152
- package/src/main.tsx +0 -374
- package/src/molecules/abha/bottom-sheet/bottom-sheet-wrapper.tsx +0 -40
- package/src/molecules/abha/bottom-sheet/index.tsx +0 -66
- package/src/molecules/abha/spaced-input-component.tsx +0 -168
- package/src/molecules/copyright-year.tsx +0 -16
- package/src/molecules/exit-popup/index.tsx +0 -101
- package/src/molecules/pds2-otp-component/index.tsx +0 -147
- package/src/organisms/abha/abha-header.tsx +0 -25
- package/src/organisms/abha/abha-stepper.tsx +0 -83
- package/src/organisms/abha/error-bottom-sheet.tsx +0 -27
- package/src/organisms/abha/otp-card.tsx +0 -99
- package/src/organisms/abha/verification-status.tsx +0 -30
- package/src/organisms/choose-language/choose-language.tsx +0 -53
- package/src/organisms/choose-language/types.ts +0 -10
- package/src/organisms/screen-switcher/screen-switcher.tsx +0 -80
- package/src/routes/abha-aadhaar-verification-status-screen.tsx +0 -246
- package/src/routes/abha-created-screen.tsx +0 -45
- package/src/routes/abha-login-otp-verify-screen.tsx +0 -519
- package/src/routes/abha-mobile-linking-status-screen.tsx +0 -267
- package/src/routes/abha-otp-and-mobile-screen.tsx +0 -435
- package/src/routes/abha-phone-number-verification-screen.tsx +0 -388
- package/src/routes/create-abha-address-screen.tsx +0 -928
- package/src/routes/create-abha-with-aadhaar-screen.tsx +0 -986
- package/src/routes/create-eka-profile-screen.tsx +0 -831
- package/src/routes/get-all-profiles-screen.tsx +0 -161
- package/src/routes/login-or-create-abha-address-screen.tsx +0 -1056
- package/src/routes/login-with-abha-screen.tsx +0 -454
- package/src/routes/select-abha-from-list-screen.tsx +0 -792
- package/src/routes/select-eka-profile-screen.tsx +0 -446
- package/src/routes/utils/trackAbhaEvent.ts +0 -41
- package/src/stores/auth-abha-store/index.ts +0 -152
- package/src/stores/auth-abha-store/types.ts +0 -217
- package/src/utils/mock-auth-response.ts +0 -29
- package/src/utils/send-event-utils.ts +0 -76
- package/src/utils/validations.ts +0 -89
- package/src/vite-env.d.ts +0 -1
- package/tailwind.config.ts +0 -9
- package/tsconfig.json +0 -25
- package/tsconfig.node.json +0 -10
- package/tsconfig.node.tsbuildinfo +0 -1
- package/tsconfig.tsbuildinfo +0 -1
- package/vite.config.d.ts +0 -2
- package/vite.config.js +0 -45
- package/vite.config.ts +0 -50
- /package/{public → dist}/images/adhaar.webp +0 -0
- /package/{public → dist}/images/at-the-rate.webp +0 -0
- /package/{public → dist}/images/avatar.webp +0 -0
- /package/{public → dist}/images/ayushman-bharat.webp +0 -0
- /package/{public → dist}/images/circle-checkmark.webp +0 -0
- /package/{public → dist}/images/link-abha.webp +0 -0
- /package/{public → dist}/images/national-authority.webp +0 -0
- /package/{public → dist}/images/three-dots.webp +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var ws=e=>{throw TypeError(e)};var fs=(e,s,i)=>s.has(e)||ws("Cannot "+i);var At=(e,s,i)=>(fs(e,s,"read from private field"),i?i.call(e):s.get(e)),$t=(e,s,i)=>s.has(e)?ws("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,i),Ht=(e,s,i,a)=>(fs(e,s,"write to private field"),a?a.call(e,i):s.set(e,i),i),Xt=(e,s,i)=>(fs(e,s,"access private method"),i);var ps=(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
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var l$1=Symbol.for("react.element"),n$1=Symbol.for("react.portal"),p$3=Symbol.for("react.fragment"),q$1=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v$2=Symbol.for("react.forward_ref"),w$1=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z$1=Symbol.iterator;function A$1(e){return e===null||typeof e!="object"?null:(e=z$1&&e[z$1]||e["@@iterator"],typeof e=="function"?e:null)}var B$1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$1=Object.assign,D$1={};function E$1(e,s,i){this.props=e,this.context=s,this.refs=D$1,this.updater=i||B$1}E$1.prototype.isReactComponent={};E$1.prototype.setState=function(e,s){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,s,"setState")};E$1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function F(){}F.prototype=E$1.prototype;function G$1(e,s,i){this.props=e,this.context=s,this.refs=D$1,this.updater=i||B$1}var H$1=G$1.prototype=new F;H$1.constructor=G$1;C$1(H$1,E$1.prototype);H$1.isPureReactComponent=!0;var I$1=Array.isArray,J=Object.prototype.hasOwnProperty,K$1={current:null},L$1={key:!0,ref:!0,__self:!0,__source:!0};function M$1(e,s,i){var a,o={},c=null,g=null;if(s!=null)for(a in s.ref!==void 0&&(g=s.ref),s.key!==void 0&&(c=""+s.key),s)J.call(s,a)&&!L$1.hasOwnProperty(a)&&(o[a]=s[a]);var _=arguments.length-2;if(_===1)o.children=i;else if(1<_){for(var b=Array(_),_e=0;_e<_;_e++)b[_e]=arguments[_e+2];o.children=b}if(e&&e.defaultProps)for(a in _=e.defaultProps,_)o[a]===void 0&&(o[a]=_[a]);return{$$typeof:l$1,type:e,key:c,ref:g,props:o,_owner:K$1.current}}function N$1(e,s){return{$$typeof:l$1,type:e.type,key:s,ref:e.ref,props:e.props,_owner:e._owner}}function O$1(e){return typeof e=="object"&&e!==null&&e.$$typeof===l$1}function escape(e){var s={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(i){return s[i]})}var P$1=/\/+/g;function Q$1(e,s){return typeof e=="object"&&e!==null&&e.key!=null?escape(""+e.key):s.toString(36)}function R$1(e,s,i,a,o){var c=typeof e;(c==="undefined"||c==="boolean")&&(e=null);var g=!1;if(e===null)g=!0;else switch(c){case"string":case"number":g=!0;break;case"object":switch(e.$$typeof){case l$1:case n$1:g=!0}}if(g)return g=e,o=o(g),e=a===""?"."+Q$1(g,0):a,I$1(o)?(i="",e!=null&&(i=e.replace(P$1,"$&/")+"/"),R$1(o,s,i,"",function(_e){return _e})):o!=null&&(O$1(o)&&(o=N$1(o,i+(!o.key||g&&g.key===o.key?"":(""+o.key).replace(P$1,"$&/")+"/")+e)),s.push(o)),1;if(g=0,a=a===""?".":a+":",I$1(e))for(var _=0;_<e.length;_++){c=e[_];var b=a+Q$1(c,_);g+=R$1(c,s,i,b,o)}else if(b=A$1(e),typeof b=="function")for(e=b.call(e),_=0;!(c=e.next()).done;)c=c.value,b=a+Q$1(c,_++),g+=R$1(c,s,i,b,o);else if(c==="object")throw s=String(e),Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.");return g}function S$1(e,s,i){if(e==null)return e;var a=[],o=0;return R$1(e,a,"","",function(c){return s.call(i,c,o++)}),a}function T$1(e){if(e._status===-1){var s=e._result;s=s(),s.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i)},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i)}),e._status===-1&&(e._status=0,e._result=s)}if(e._status===1)return e._result.default;throw e._result}var U$1={current:null},V$1={transition:null},W$1={ReactCurrentDispatcher:U$1,ReactCurrentBatchConfig:V$1,ReactCurrentOwner:K$1};function X$1(){throw Error("act(...) is not supported in production builds of React.")}react_production_min.Children={map:S$1,forEach:function(e,s,i){S$1(e,function(){s.apply(this,arguments)},i)},count:function(e){var s=0;return S$1(e,function(){s++}),s},toArray:function(e){return S$1(e,function(s){return s})||[]},only:function(e){if(!O$1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};react_production_min.Component=E$1;react_production_min.Fragment=p$3;react_production_min.Profiler=r;react_production_min.PureComponent=G$1;react_production_min.StrictMode=q$1;react_production_min.Suspense=w$1;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$1;react_production_min.act=X$1;react_production_min.cloneElement=function(e,s,i){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=C$1({},e.props),o=e.key,c=e.ref,g=e._owner;if(s!=null){if(s.ref!==void 0&&(c=s.ref,g=K$1.current),s.key!==void 0&&(o=""+s.key),e.type&&e.type.defaultProps)var _=e.type.defaultProps;for(b in s)J.call(s,b)&&!L$1.hasOwnProperty(b)&&(a[b]=s[b]===void 0&&_!==void 0?_[b]:s[b])}var b=arguments.length-2;if(b===1)a.children=i;else if(1<b){_=Array(b);for(var _e=0;_e<b;_e++)_[_e]=arguments[_e+2];a.children=_}return{$$typeof:l$1,type:e.type,key:o,ref:c,props:a,_owner:g}};react_production_min.createContext=function(e){return e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:t,_context:e},e.Consumer=e};react_production_min.createElement=M$1;react_production_min.createFactory=function(e){var s=M$1.bind(null,e);return s.type=e,s};react_production_min.createRef=function(){return{current:null}};react_production_min.forwardRef=function(e){return{$$typeof:v$2,render:e}};react_production_min.isValidElement=O$1;react_production_min.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:T$1}};react_production_min.memo=function(e,s){return{$$typeof:x,type:e,compare:s===void 0?null:s}};react_production_min.startTransition=function(e){var s=V$1.transition;V$1.transition={};try{e()}finally{V$1.transition=s}};react_production_min.unstable_act=X$1;react_production_min.useCallback=function(e,s){return U$1.current.useCallback(e,s)};react_production_min.useContext=function(e){return U$1.current.useContext(e)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(e){return U$1.current.useDeferredValue(e)};react_production_min.useEffect=function(e,s){return U$1.current.useEffect(e,s)};react_production_min.useId=function(){return U$1.current.useId()};react_production_min.useImperativeHandle=function(e,s,i){return U$1.current.useImperativeHandle(e,s,i)};react_production_min.useInsertionEffect=function(e,s){return U$1.current.useInsertionEffect(e,s)};react_production_min.useLayoutEffect=function(e,s){return U$1.current.useLayoutEffect(e,s)};react_production_min.useMemo=function(e,s){return U$1.current.useMemo(e,s)};react_production_min.useReducer=function(e,s,i){return U$1.current.useReducer(e,s,i)};react_production_min.useRef=function(e){return U$1.current.useRef(e)};react_production_min.useState=function(e){return U$1.current.useState(e)};react_production_min.useSyncExternalStore=function(e,s,i){return U$1.current.useSyncExternalStore(e,s,i)};react_production_min.useTransition=function(){return U$1.current.useTransition()};react_production_min.version="18.3.1";react.exports=react_production_min;var reactExports=react.exports;const React=getDefaultExportFromCjs(reactExports);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var f=reactExports,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m$1=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$2={key:!0,ref:!0,__self:!0,__source:!0};function q(e,s,i){var a,o={},c=null,g=null;i!==void 0&&(c=""+i),s.key!==void 0&&(c=""+s.key),s.ref!==void 0&&(g=s.ref);for(a in s)m$1.call(s,a)&&!p$2.hasOwnProperty(a)&&(o[a]=s[a]);if(e&&e.defaultProps)for(a in s=e.defaultProps,s)o[a]===void 0&&(o[a]=s[a]);return{$$typeof:k,type:e,key:c,ref:g,props:o,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;jsxRuntime$1.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime$1.exports,reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
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 gt=yt-1>>>1,kt=lt[gt];if(0<o(kt,ht))lt[gt]=ht,lt[yt]=kt,yt=gt;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 gt=0,kt=lt.length,xt=kt>>>1;gt<xt;){var bt=2*(gt+1)-1,It=lt[bt],Rt=bt+1,Bt=lt[Rt];if(0>o(It,yt))Rt<kt&&0>o(Bt,It)?(lt[gt]=Bt,lt[Rt]=yt,gt=Rt):(lt[gt]=It,lt[bt]=yt,gt=bt);else if(Rt<kt&&0>o(Bt,yt))lt[gt]=Bt,lt[Rt]=yt,gt=Rt;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=[],_e=[],et=1,at=null,rt=3,ot=!1,it=!1,nt=!1,pt=typeof setTimeout=="function"?setTimeout:null,$=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(_e);ht!==null;){if(ht.callback===null)a(_e);else if(ht.startTime<=lt)a(_e),ht.sortIndex=ht.expirationTime,s(b,ht);else break;ht=i(_e)}}function st(lt){if(nt=!1,j(lt),!it)if(i(b)!==null)it=!0,dt(ut);else{var ht=i(_e);ht!==null&&vt(st,ht.startTime-lt)}}function ut(lt,ht){it=!1,nt&&(nt=!1,$(ft),ft=-1),ot=!0;var yt=rt;try{for(j(ht),at=i(b);at!==null&&(!(at.expirationTime>ht)||lt&&!Tt());){var gt=at.callback;if(typeof gt=="function"){at.callback=null,rt=at.priorityLevel;var kt=gt(at.expirationTime<=ht);ht=e.unstable_now(),typeof kt=="function"?at.callback=kt:at===i(b)&&a(b),j(ht)}else a(b);at=i(b)}if(at!==null)var xt=!0;else{var bt=i(_e);bt!==null&&vt(st,bt.startTime-ht),xt=!1}return xt}finally{at=null,rt=yt,ot=!1}}var ct=!1,mt=null,ft=-1,St=5,wt=-1;function Tt(){return!(e.unstable_now()-wt<St)}function _t(){if(mt!==null){var lt=e.unstable_now();wt=lt;var ht=!0;try{ht=mt(!0,lt)}finally{ht?Pt():(ct=!1,mt=null)}}else ct=!1}var Pt;if(typeof tt=="function")Pt=function(){tt(_t)};else if(typeof MessageChannel<"u"){var Ct=new MessageChannel,Et=Ct.port2;Ct.port1.onmessage=_t,Pt=function(){Et.postMessage(null)}}else Pt=function(){pt(_t,0)};function dt(lt){mt=lt,ct||(ct=!0,Pt())}function vt(lt,ht){ft=pt(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||ot||(it=!0,dt(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"):St=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 gt=e.unstable_now();switch(typeof yt=="object"&&yt!==null?(yt=yt.delay,yt=typeof yt=="number"&&0<yt?gt+yt:gt):yt=gt,lt){case 1:var kt=-1;break;case 2:kt=250;break;case 5:kt=1073741823;break;case 4:kt=1e4;break;default:kt=5e3}return kt=yt+kt,lt={id:et++,callback:ht,priorityLevel:lt,startTime:yt,expirationTime:kt,sortIndex:-1},yt>gt?(lt.sortIndex=yt,s(_e,lt),i(b)===null&<===i(_e)&&(nt?($(ft),ft=-1):nt=!0,vt(st,yt-gt))):(lt.sortIndex=kt,s(b,lt),it||ot||(it=!0,dt(ut))),lt},e.unstable_shouldYield=Tt,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
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var aa=reactExports,ca=schedulerExports;function p$1(e){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)s+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(e,s){ha(e,s),ha(e+"Capture",s)}function ha(e,s){for(ea[e]=s,e=0;e<s.length;e++)da.add(s[e])}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la={},ma={};function oa(e){return ja.call(ma,e)?!0:ja.call(la,e)?!1:ka.test(e)?ma[e]=!0:(la[e]=!0,!1)}function pa(e,s,i,a){if(i!==null&&i.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return a?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qa(e,s,i,a){if(s===null||typeof s>"u"||pa(e,s,i,a))return!0;if(a)return!1;if(i!==null)switch(i.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function v$1(e,s,i,a,o,c,g){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=a,this.attributeNamespace=o,this.mustUseProperty=i,this.propertyName=e,this.type=s,this.sanitizeURL=c,this.removeEmptyString=g}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){z[e]=new v$1(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var s=e[0];z[s]=new v$1(s,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){z[e]=new v$1(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){z[e]=new v$1(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){z[e]=new v$1(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){z[e]=new v$1(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){z[e]=new v$1(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){z[e]=new v$1(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){z[e]=new v$1(e,5,!1,e.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var s=e.replace(ra,sa);z[s]=new v$1(s,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var s=e.replace(ra,sa);z[s]=new v$1(s,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var s=e.replace(ra,sa);z[s]=new v$1(s,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){z[e]=new v$1(e,1,!1,e.toLowerCase(),null,!1,!1)});z.xlinkHref=new v$1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){z[e]=new v$1(e,1,!1,e.toLowerCase(),null,!0,!0)});function ta(e,s,i,a){var o=z.hasOwnProperty(s)?z[s]:null;(o!==null?o.type!==0:a||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(qa(s,i,o,a)&&(i=null),a||o===null?oa(s)&&(i===null?e.removeAttribute(s):e.setAttribute(s,""+i)):o.mustUseProperty?e[o.propertyName]=i===null?o.type===3?!1:"":i:(s=o.attributeName,a=o.attributeNamespace,i===null?e.removeAttribute(s):(o=o.type,i=o===3||o===4&&i===!0?"":""+i,a?e.setAttributeNS(a,s,i):e.setAttribute(s,i))))}var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(e){return e===null||typeof e!="object"?null:(e=Ja&&e[Ja]||e["@@iterator"],typeof e=="function"?e:null)}var A=Object.assign,La;function Ma(e){if(La===void 0)try{throw Error()}catch(i){var s=i.stack.trim().match(/\n( *(at )?)/);La=s&&s[1]||""}return`
|
|
34
|
+
`+La+e}var Na=!1;function Oa(e,s){if(!e||Na)return"";Na=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(_e){var a=_e}Reflect.construct(e,[],s)}else{try{s.call()}catch(_e){a=_e}e.call(s.prototype)}else{try{throw Error()}catch(_e){a=_e}e()}}catch(_e){if(_e&&a&&typeof _e.stack=="string"){for(var o=_e.stack.split(`
|
|
35
|
+
`),c=a.stack.split(`
|
|
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
|
+
`+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 _e=Array.prototype.slice.call(arguments,3);try{s.apply(i,_e)}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 _e=Pb;Ob=!1,Pb=null}else throw Error(p$1(198));Qb||(Qb=!0,Rb=_e)}}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,_e=_.currentTarget;if(_=_.listener,b!==c&&o.isPropagationStopped())break e;nf(o,_,_e),c=b}else for(g=0;g<a.length;g++){if(_=a[g],b=_.instance,_e=_.currentTarget,_=_.listener,b!==c&&o.isPropagationStopped())break e;nf(o,_,_e),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 _e=c,et=xb(i),at=[];e:{var rt=df.get(e);if(rt!==void 0){var ot=td,it=e;switch(e){case"keypress":if(od(i)===0)break e;case"keydown":case"keyup":ot=Rd;break;case"focusin":it="focus",ot=Fd;break;case"focusout":it="blur",ot=Fd;break;case"beforeblur":case"afterblur":ot=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":ot=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ot=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ot=Vd;break;case $e:case af:case bf:ot=Hd;break;case cf:ot=Xd;break;case"scroll":ot=vd;break;case"wheel":ot=Zd;break;case"copy":case"cut":case"paste":ot=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ot=Td}var nt=(s&4)!==0,pt=!nt&&e==="scroll",$=nt?rt!==null?rt+"Capture":null:rt;nt=[];for(var tt=_e,j;tt!==null;){j=tt;var st=j.stateNode;if(j.tag===5&&st!==null&&(j=st,$!==null&&(st=Kb(tt,$),st!=null&&nt.push(tf(tt,st,j)))),pt)break;tt=tt.return}0<nt.length&&(rt=new ot(rt,it,null,i,et),at.push({event:rt,listeners:nt}))}}if(!(s&7)){e:{if(rt=e==="mouseover"||e==="pointerover",ot=e==="mouseout"||e==="pointerout",rt&&i!==wb&&(it=i.relatedTarget||i.fromElement)&&(Wc(it)||it[uf]))break e;if((ot||rt)&&(rt=et.window===et?et:(rt=et.ownerDocument)?rt.defaultView||rt.parentWindow:window,ot?(it=i.relatedTarget||i.toElement,ot=_e,it=it?Wc(it):null,it!==null&&(pt=Vb(it),it!==pt||it.tag!==5&&it.tag!==6)&&(it=null)):(ot=null,it=_e),ot!==it)){if(nt=Bd,st="onMouseLeave",$="onMouseEnter",tt="mouse",(e==="pointerout"||e==="pointerover")&&(nt=Td,st="onPointerLeave",$="onPointerEnter",tt="pointer"),pt=ot==null?rt:ue(ot),j=it==null?rt:ue(it),rt=new nt(st,tt+"leave",ot,i,et),rt.target=pt,rt.relatedTarget=j,st=null,Wc(et)===_e&&(nt=new nt($,tt+"enter",it,i,et),nt.target=j,nt.relatedTarget=pt,st=nt),pt=st,ot&&it)t:{for(nt=ot,$=it,tt=0,j=nt;j;j=vf(j))tt++;for(j=0,st=$;st;st=vf(st))j++;for(;0<tt-j;)nt=vf(nt),tt--;for(;0<j-tt;)$=vf($),j--;for(;tt--;){if(nt===$||$!==null&&nt===$.alternate)break t;nt=vf(nt),$=vf($)}nt=null}else nt=null;ot!==null&&wf(at,rt,ot,nt,!1),it!==null&&pt!==null&&wf(at,pt,it,nt,!0)}}e:{if(rt=_e?ue(_e):window,ot=rt.nodeName&&rt.nodeName.toLowerCase(),ot==="select"||ot==="input"&&rt.type==="file")var ut=ve;else if(me(rt))if(we)ut=Fe;else{ut=De;var ct=Ce}else(ot=rt.nodeName)&&ot.toLowerCase()==="input"&&(rt.type==="checkbox"||rt.type==="radio")&&(ut=Ee);if(ut&&(ut=ut(e,_e))){ne(at,ut,i,et);break e}ct&&ct(e,rt,_e),e==="focusout"&&(ct=rt._wrapperState)&&ct.controlled&&rt.type==="number"&&cb(rt,"number",rt.value)}switch(ct=_e?ue(_e):window,e){case"focusin":(me(ct)||ct.contentEditable==="true")&&(Qe=ct,Re=_e,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(at,i,et);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(at,i,et)}var mt;if(ae)e:{switch(e){case"compositionstart":var ft="onCompositionStart";break e;case"compositionend":ft="onCompositionEnd";break e;case"compositionupdate":ft="onCompositionUpdate";break e}ft=void 0}else ie?ge(e,i)&&(ft="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(ft="onCompositionStart");ft&&(de&&i.locale!=="ko"&&(ie||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&ie&&(mt=nd()):(kd=et,ld="value"in kd?kd.value:kd.textContent,ie=!0)),ct=oe(_e,ft),0<ct.length&&(ft=new Ld(ft,e,null,i,et),at.push({event:ft,listeners:ct}),mt?ft.data=mt:(mt=he(i),mt!==null&&(ft.data=mt)))),(mt=ce?je(e,i):ke(e,i))&&(_e=oe(_e,"onBeforeInput"),0<_e.length&&(et=new Ld("onBeforeInput","beforeinput",null,i,et),at.push({event:et,listeners:_e}),et.data=mt))}se(at,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,_e=_.stateNode;if(b!==null&&b===a)break;_.tag===5&&_e!==null&&(_=_e,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($,tt){if(e){var j=$.deletions;j===null?($.deletions=[tt],$.flags|=16):j.push(tt)}}function i($,tt){if(!e)return null;for(;tt!==null;)s($,tt),tt=tt.sibling;return null}function a($,tt){for($=new Map;tt!==null;)tt.key!==null?$.set(tt.key,tt):$.set(tt.index,tt),tt=tt.sibling;return $}function o($,tt){return $=Pg($,tt),$.index=0,$.sibling=null,$}function c($,tt,j){return $.index=j,e?(j=$.alternate,j!==null?(j=j.index,j<tt?($.flags|=2,tt):j):($.flags|=2,tt)):($.flags|=1048576,tt)}function g($){return e&&$.alternate===null&&($.flags|=2),$}function _($,tt,j,st){return tt===null||tt.tag!==6?(tt=Qg(j,$.mode,st),tt.return=$,tt):(tt=o(tt,j),tt.return=$,tt)}function b($,tt,j,st){var ut=j.type;return ut===ya?et($,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($,tt,j),st.return=$,st):(st=Rg(j.type,j.key,j.props,null,$.mode,st),st.ref=Lg($,tt,j),st.return=$,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,$.mode,st),tt.return=$,tt):(tt=o(tt,j.children||[]),tt.return=$,tt)}function et($,tt,j,st,ut){return tt===null||tt.tag!==7?(tt=Tg(j,$.mode,st,ut),tt.return=$,tt):(tt=o(tt,j),tt.return=$,tt)}function at($,tt,j){if(typeof tt=="string"&&tt!==""||typeof tt=="number")return tt=Qg(""+tt,$.mode,j),tt.return=$,tt;if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case va:return j=Rg(tt.type,tt.key,tt.props,null,$.mode,j),j.ref=Lg($,null,tt),j.return=$,j;case wa:return tt=Sg(tt,$.mode,j),tt.return=$,tt;case Ha:var st=tt._init;return at($,st(tt._payload),j)}if(eb(tt)||Ka(tt))return tt=Tg(tt,$.mode,j,null),tt.return=$,tt;Mg($,tt)}return null}function rt($,tt,j,st){var ut=tt!==null?tt.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return ut!==null?null:_($,tt,""+j,st);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case va:return j.key===ut?b($,tt,j,st):null;case wa:return j.key===ut?_e($,tt,j,st):null;case Ha:return ut=j._init,rt($,tt,ut(j._payload),st)}if(eb(j)||Ka(j))return ut!==null?null:et($,tt,j,st,null);Mg($,j)}return null}function ot($,tt,j,st,ut){if(typeof st=="string"&&st!==""||typeof st=="number")return $=$.get(j)||null,_(tt,$,""+st,ut);if(typeof st=="object"&&st!==null){switch(st.$$typeof){case va:return $=$.get(st.key===null?j:st.key)||null,b(tt,$,st,ut);case wa:return $=$.get(st.key===null?j:st.key)||null,_e(tt,$,st,ut);case Ha:var ct=st._init;return ot($,tt,j,ct(st._payload),ut)}if(eb(st)||Ka(st))return $=$.get(j)||null,et(tt,$,st,ut,null);Mg(tt,st)}return null}function it($,tt,j,st){for(var ut=null,ct=null,mt=tt,ft=tt=0,St=null;mt!==null&&ft<j.length;ft++){mt.index>ft?(St=mt,mt=null):St=mt.sibling;var wt=rt($,mt,j[ft],st);if(wt===null){mt===null&&(mt=St);break}e&&mt&&wt.alternate===null&&s($,mt),tt=c(wt,tt,ft),ct===null?ut=wt:ct.sibling=wt,ct=wt,mt=St}if(ft===j.length)return i($,mt),I&&tg($,ft),ut;if(mt===null){for(;ft<j.length;ft++)mt=at($,j[ft],st),mt!==null&&(tt=c(mt,tt,ft),ct===null?ut=mt:ct.sibling=mt,ct=mt);return I&&tg($,ft),ut}for(mt=a($,mt);ft<j.length;ft++)St=ot(mt,$,ft,j[ft],st),St!==null&&(e&&St.alternate!==null&&mt.delete(St.key===null?ft:St.key),tt=c(St,tt,ft),ct===null?ut=St:ct.sibling=St,ct=St);return e&&mt.forEach(function(Tt){return s($,Tt)}),I&&tg($,ft),ut}function nt($,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,mt=tt,ft=tt=0,St=null,wt=j.next();mt!==null&&!wt.done;ft++,wt=j.next()){mt.index>ft?(St=mt,mt=null):St=mt.sibling;var Tt=rt($,mt,wt.value,st);if(Tt===null){mt===null&&(mt=St);break}e&&mt&&Tt.alternate===null&&s($,mt),tt=c(Tt,tt,ft),ct===null?ut=Tt:ct.sibling=Tt,ct=Tt,mt=St}if(wt.done)return i($,mt),I&&tg($,ft),ut;if(mt===null){for(;!wt.done;ft++,wt=j.next())wt=at($,wt.value,st),wt!==null&&(tt=c(wt,tt,ft),ct===null?ut=wt:ct.sibling=wt,ct=wt);return I&&tg($,ft),ut}for(mt=a($,mt);!wt.done;ft++,wt=j.next())wt=ot(mt,$,ft,wt.value,st),wt!==null&&(e&&wt.alternate!==null&&mt.delete(wt.key===null?ft:wt.key),tt=c(wt,tt,ft),ct===null?ut=wt:ct.sibling=wt,ct=wt);return e&&mt.forEach(function(_t){return s($,_t)}),I&&tg($,ft),ut}function pt($,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($,ct.sibling),tt=o(ct,j.props.children),tt.return=$,$=tt;break e}}else if(ct.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===Ha&&Ng(ut)===ct.type){i($,ct.sibling),tt=o(ct,j.props),tt.ref=Lg($,ct,j),tt.return=$,$=tt;break e}i($,ct);break}else s($,ct);ct=ct.sibling}j.type===ya?(tt=Tg(j.props.children,$.mode,st,j.key),tt.return=$,$=tt):(st=Rg(j.type,j.key,j.props,null,$.mode,st),st.ref=Lg($,tt,j),st.return=$,$=st)}return g($);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($,tt.sibling),tt=o(tt,j.children||[]),tt.return=$,$=tt;break e}else{i($,tt);break}else s($,tt);tt=tt.sibling}tt=Sg(j,$.mode,st),tt.return=$,$=tt}return g($);case Ha:return ct=j._init,pt($,tt,ct(j._payload),st)}if(eb(j))return it($,tt,j,st);if(Ka(j))return nt($,tt,j,st);Mg($,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,tt!==null&&tt.tag===6?(i($,tt.sibling),tt=o(tt,j),tt.return=$,$=tt):(i($,tt),tt=Qg(j,$.mode,st),tt.return=$,$=tt),g($)):i($,tt)}return pt}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=_,_e=b.next;b.next=null,g===null?c=_e:g.next=_e,g=b;var et=e.alternate;et!==null&&(et=et.updateQueue,_=et.lastBaseUpdate,_!==g&&(_===null?et.firstBaseUpdate=_e:_.next=_e,et.lastBaseUpdate=b))}if(c!==null){var at=o.baseState;g=0,et=_e=b=null,_=c;do{var rt=_.lane,ot=_.eventTime;if((a&rt)===rt){et!==null&&(et=et.next={eventTime:ot,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var it=e,nt=_;switch(rt=s,ot=i,nt.tag){case 1:if(it=nt.payload,typeof it=="function"){at=it.call(ot,at,rt);break e}at=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=nt.payload,rt=typeof it=="function"?it.call(ot,at,rt):it,rt==null)break e;at=A({},at,rt);break e;case 2:jh=!0}}_.callback!==null&&_.lane!==0&&(e.flags|=64,rt=o.effects,rt===null?o.effects=[_]:rt.push(_))}else ot={eventTime:ot,lane:rt,tag:_.tag,payload:_.payload,callback:_.callback,next:null},et===null?(_e=et=ot,b=at):et=et.next=ot,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=at),o.baseState=b,o.firstBaseUpdate=_e,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=at}}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,_e=c;do{var et=_e.lane;if((Hh&et)===et)b!==null&&(b=b.next={lane:0,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null}),a=_e.hasEagerState?_e.eagerState:e(a,_e.action);else{var at={lane:et,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};b===null?(_=b=at,g=a):b=b.next=at,M.lanes|=et,rh|=et}_e=_e.next}while(_e!==null&&_e!==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
|
+
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,_e=i.contextType;typeof _e=="object"&&_e!==null?_e=eh(_e):(_e=Zf(i)?Xf:H.current,_e=Yf(s,_e));var et=i.getDerivedStateFromProps,at=typeof et=="function"||typeof g.getSnapshotBeforeUpdate=="function";at||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_!==a||b!==_e)&&Hi(s,g,a,_e),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,_e))?(at||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=_e,a=_):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),a=!1)}else{g=s.stateNode,lh(e,s),_=s.memoizedProps,_e=s.type===s.elementType?_:Ci(s.type,_),g.props=_e,at=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 ot=i.getDerivedStateFromProps;(et=typeof ot=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_!==at||rt!==b)&&Hi(s,g,a,b),jh=!1,rt=s.memoizedState,g.state=rt,qh(s,a,g,o);var it=s.memoizedState;_!==at||rt!==it||Wf.current||jh?(typeof ot=="function"&&(Di(s,i,ot,a),it=s.memoizedState),(_e=jh||Fi(s,i,_e,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=_e):(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(_e in o)if(!a.hasOwnProperty(_e)&&o.hasOwnProperty(_e)&&o[_e]!=null)if(_e==="style"){var _=o[_e];for(g in _)_.hasOwnProperty(g)&&(i||(i={}),i[g]="")}else _e!=="dangerouslySetInnerHTML"&&_e!=="children"&&_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&_e!=="autoFocus"&&(ea.hasOwnProperty(_e)?c||(c=[]):(c=c||[]).push(_e,null));for(_e in a){var b=a[_e];if(_=o!=null?o[_e]:void 0,a.hasOwnProperty(_e)&&b!==_&&(b!=null||_!=null))if(_e==="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(_e,i)),i=b;else _e==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,_=_?_.__html:void 0,b!=null&&_!==b&&(c=c||[]).push(_e,b)):_e==="children"?typeof b!="string"&&typeof b!="number"||(c=c||[]).push(_e,""+b):_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&(ea.hasOwnProperty(_e)?(b!=null&&_e==="onScroll"&&D("scroll",e),c||_===b||(c=[])):(c=c||[]).push(_e,b))}i&&(c=c||[]).push("style",i);var _e=c;(s.updateQueue=_e)&&(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,_e=0,et=0,at=e,rt=null;t:for(;;){for(var ot;at!==i||o!==0&&at.nodeType!==3||(_=g+o),at!==c||a!==0&&at.nodeType!==3||(b=g+a),at.nodeType===3&&(g+=at.nodeValue.length),(ot=at.firstChild)!==null;)rt=at,at=ot;for(;;){if(at===e)break t;if(rt===i&&++_e===o&&(_=g),rt===c&&++et===a&&(b=g),(ot=at.nextSibling)!==null)break;at=rt,rt=at.parentNode}at=ot}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,pt=it.memoizedState,$=s.stateNode,tt=$.getSnapshotBeforeUpdate(s.elementType===s.type?nt:Ci(s.type,nt),pt);$.__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(_e){W(o,s,_e)}}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 _e=vb(_,c);for(g=0;g<b.length;g+=2){var et=b[g],at=b[g+1];et==="style"?sb(o,at):et==="dangerouslySetInnerHTML"?nb(o,at):et==="children"?ob(o,at):ta(o,et,at,_e)}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 ot=c.value;ot!=null?fb(o,!!c.multiple,ot,!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=(_e=U)||et,ck(s,e),U=_e):ck(s,e),ek(e),a&8192){if(_e=e.memoizedState!==null,(e.stateNode.isHidden=_e)&&!et&&e.mode&1)for(V=e,et=e.child;et!==null;){for(at=V=et;V!==null;){switch(rt=V,ot=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(at);continue}}ot!==null?(ot.return=rt,V=ot):gk(at)}et=et.sibling}e:for(et=null,at=e;;){if(at.tag===5){if(et===null){et=at;try{o=at.stateNode,_e?(c=o.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(_=at.stateNode,b=at.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(at.tag===6){if(et===null)try{at.stateNode.nodeValue=_e?"":at.memoizedProps}catch(nt){W(e,e.return,nt)}}else if((at.tag!==22&&at.tag!==23||at.memoizedState===null||at===e)&&at.child!==null){at.child.return=at,at=at.child;continue}if(at===e)break e;for(;at.sibling===null;){if(at.return===null||at.return===e)break e;et===at&&(et=null),at=at.return}et===at&&(et=null),at.sibling.return=at.return,at=at.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 _e=U;if(Jj=g,(U=b)&&!_e)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=_e}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 _e=s.alternate;if(_e!==null){var et=_e.memoizedState;if(et!==null){var at=et.dehydrated;at!==null&&bd(at)}}}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 _e=b,et=_,at=et.tag;if(!(et.mode&1)&&(at===0||at===11||at===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 ot=Ui(g);if(ot!==null){ot.flags&=-257,Vi(ot,g,_,c,s),ot.mode&1&&Si(c,_e,s),s=ot,b=_e;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,_e,s),tj();break e}b=Error(p$1(426))}}else if(I&&_.mode&1){var pt=Ui(g);if(pt!==null){!(pt.flags&65536)&&(pt.flags|=256),Vi(pt,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 $=Ni(c,b,s);ph(c,$);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 _e=_[b];for(V=_e;V!==null;){var et=V;switch(et.tag){case 0:case 11:case 15:Pj(8,et,c)}var at=et.child;if(at!==null)at.return=et,V=at;else for(;V!==null;){et=V;var rt=et.sibling,ot=et.return;if(Sj(et),et===_e){V=null;break}if(rt!==null){rt.return=ot,V=rt;break}V=ot}}}var it=c.alternate;if(it!==null){var nt=it.child;if(nt!==null){it.child=null;do{var pt=nt.sibling;nt.sibling=null,nt=pt}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 $=c.sibling;if($!==null){$.return=c.return,V=$;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 _e=c.updateQueue;if(_e!==null){_e=_e.shared;var et=_e.pending;et===null?b.next=b:(b.next=et.next,et.next=b),_e.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 _e=gl(g);c.call(_e)}}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 _e=gl(b);_.call(_e)}}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)},Cr,Ss,Ts,TimeoutManager=(Ts=class{constructor(){$t(this,Cr,defaultTimeoutProvider);$t(this,Ss,!1)}setTimeoutProvider(e){Ht(this,Cr,e)}setTimeout(e,s){return At(this,Cr).setTimeout(e,s)}clearTimeout(e){At(this,Cr).clearTimeout(e)}setInterval(e,s){return At(this,Cr).setInterval(e,s)}clearInterval(e){At(this,Cr).clearInterval(e)}},Cr=new WeakMap,Ss=new WeakMap,Ts),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 _e=0;_e<g;_e++){const et=i?_e:c[_e],at=e[et],rt=s[et];if(at===rt){_[et]=at,(i?_e<o:hasOwn.call(e,et))&&b++;continue}if(at===null||rt===null||typeof at!="object"||typeof rt!="object"){_[et]=rt;continue}const ot=replaceEqualDeep(at,rt);_[et]=ot,ot===at&&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 Fr,Pr,Wr,Cs,FocusManager=(Cs=class extends Subscribable{constructor(){super();$t(this,Fr);$t(this,Pr);$t(this,Wr);Ht(this,Wr,s=>{if(!isServer&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){At(this,Pr)||this.setEventListener(At(this,Wr))}onUnsubscribe(){var s;this.hasListeners()||((s=At(this,Pr))==null||s.call(this),Ht(this,Pr,void 0))}setEventListener(s){var i;Ht(this,Wr,s),(i=At(this,Pr))==null||i.call(this),Ht(this,Pr,s(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(s){At(this,Fr)!==s&&(Ht(this,Fr,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof At(this,Fr)=="boolean"?At(this,Fr):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Fr=new WeakMap,Pr=new WeakMap,Wr=new WeakMap,Cs),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(),Kr,Rr,Qr,Ps,OnlineManager=(Ps=class extends Subscribable{constructor(){super();$t(this,Kr,!0);$t(this,Rr);$t(this,Qr);Ht(this,Qr,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,Rr)||this.setEventListener(At(this,Qr))}onUnsubscribe(){var s;this.hasListeners()||((s=At(this,Rr))==null||s.call(this),Ht(this,Rr,void 0))}setEventListener(s){var i;Ht(this,Qr,s),(i=At(this,Rr))==null||i.call(this),Ht(this,Rr,s(this.setOnline.bind(this)))}setOnline(s){At(this,Kr)!==s&&(Ht(this,Kr,s),this.listeners.forEach(a=>{a(s)}))}isOnline(){return At(this,Kr)}},Kr=new WeakMap,Rr=new WeakMap,Qr=new WeakMap,Ps),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 pt;if(!c()){const $=new CancelledError(nt);rt($),(pt=e.onCancel)==null||pt.call(e,$)}},_=()=>{s=!0},b=()=>{s=!1},_e=()=>focusManager.isFocused()&&(e.networkMode==="always"||onlineManager.isOnline())&&e.canRun(),et=()=>canFetch(e.networkMode)&&e.canRun(),at=nt=>{c()||(a==null||a(),o.resolve(nt))},rt=nt=>{c()||(a==null||a(),o.reject(nt))},ot=()=>new Promise(nt=>{var pt;a=$=>{(c()||_e())&&nt($)},(pt=e.onPause)==null||pt.call(e)}).then(()=>{var nt;a=void 0,c()||(nt=e.onContinue)==null||nt.call(e)}),it=()=>{if(c())return;let nt;const pt=i===0?e.initialPromise:void 0;try{nt=pt??e.fn()}catch($){nt=Promise.reject($)}Promise.resolve(nt).then(at).catch($=>{var ct;if(c())return;const tt=e.retry??(isServer?0:3),j=e.retryDelay??defaultRetryDelay,st=typeof j=="function"?j(i,$):j,ut=tt===!0||typeof tt=="number"&&i<tt||typeof tt=="function"&&tt(i,$);if(s||!ut){rt($);return}i++,(ct=e.onFail)==null||ct.call(e,i,$),sleep(st).then(()=>_e()?void 0:ot()).then(()=>{s?rt($):it()})})};return{promise:o,status:()=>o.status,cancel:g,continue:()=>(a==null||a(),o),cancelRetry:_,continueRetry:b,canStart:et,start:()=>(et()?it():ot().then(it),o)}}var Dr,Rs,Removable=(Rs=class{constructor(){$t(this,Dr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Ht(this,Dr,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,Dr)&&(timeoutManager.clearTimeout(At(this,Dr)),Ht(this,Dr,void 0))}},Dr=new WeakMap,Rs),Br,qr,dr,Hr,lr,os,Vr,mr,Ar,Is,Query=(Is=class extends Removable{constructor(s){super();$t(this,mr);$t(this,Br);$t(this,qr);$t(this,dr);$t(this,Hr);$t(this,lr);$t(this,os);$t(this,Vr);Ht(this,Vr,!1),Ht(this,os,s.defaultOptions),this.setOptions(s.options),this.observers=[],Ht(this,Hr,s.client),Ht(this,dr,At(this,Hr).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,Ht(this,Br,getDefaultState$1(this.options)),this.state=s.state??At(this,Br),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=At(this,lr))==null?void 0:s.promise}setOptions(s){if(this.options={...At(this,os),...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,Br,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&At(this,dr).remove(this)}setData(s,i){const a=replaceData(this.state.data,s,this.options);return Xt(this,mr,Ar).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,mr,Ar).call(this,{type:"setState",state:s,setStateOptions:i})}cancel(s){var a,o;const i=(a=At(this,lr))==null?void 0:a.promise;return(o=At(this,lr))==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,Br))}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,lr))==null||i.continue()}onOnline(){var i;const s=this.observers.find(a=>a.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=At(this,lr))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),At(this,dr).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,lr)&&(At(this,Vr)?At(this,lr).cancel({revert:!0}):At(this,lr).cancelRetry()),this.scheduleGc()),At(this,dr).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Xt(this,mr,Ar).call(this,{type:"invalidate"})}async fetch(s,i){var b,_e,et,at,rt,ot,it,nt,pt,$,tt,j;if(this.state.fetchStatus!=="idle"&&((b=At(this,lr))==null?void 0:b.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(At(this,lr))return At(this,lr).continueRetry(),At(this,lr).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,Vr,!0),a.signal)})},c=()=>{const st=ensureQueryFn(this.options,i),ct=(()=>{const mt={client:At(this,Hr),queryKey:this.queryKey,meta:this.meta};return o(mt),mt})();return Ht(this,Vr,!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,Hr),state:this.state,fetchFn:c};return o(st),st})();(_e=this.options.behavior)==null||_e.onFetch(_,this),Ht(this,qr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((et=_.fetchOptions)==null?void 0:et.meta))&&Xt(this,mr,Ar).call(this,{type:"fetch",meta:(at=_.fetchOptions)==null?void 0:at.meta}),Ht(this,lr,createRetryer({initialPromise:i==null?void 0:i.initialPromise,fn:_.fetchFn,onCancel:st=>{st instanceof CancelledError&&st.revert&&this.setState({...At(this,qr),fetchStatus:"idle"}),a.abort()},onFail:(st,ut)=>{Xt(this,mr,Ar).call(this,{type:"failed",failureCount:st,error:ut})},onPause:()=>{Xt(this,mr,Ar).call(this,{type:"pause"})},onContinue:()=>{Xt(this,mr,Ar).call(this,{type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode,canRun:()=>!0}));try{const st=await At(this,lr).start();if(st===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(st),(ot=(rt=At(this,dr).config).onSuccess)==null||ot.call(rt,st,this),(nt=(it=At(this,dr).config).onSettled)==null||nt.call(it,st,this.state.error,this),st}catch(st){if(st instanceof CancelledError){if(st.silent)return At(this,lr).promise;if(st.revert){if(this.state.data===void 0)throw st;return this.state.data}}throw Xt(this,mr,Ar).call(this,{type:"error",error:st}),($=(pt=At(this,dr).config).onError)==null||$.call(pt,st,this),(j=(tt=At(this,dr).config).onSettled)==null||j.call(tt,this.state.data,st,this),st}finally{this.scheduleGc()}}},Br=new WeakMap,qr=new WeakMap,dr=new WeakMap,Hr=new WeakMap,lr=new WeakMap,os=new WeakMap,Vr=new WeakMap,mr=new WeakSet,Ar=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,qr,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,dr).notify({query:this,type:"updated",action:s})})},Is);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,Jt,ls,ur,Gr,Xr,Er,Ir,us,Yr,Jr,zr,$r,Mr,Zr,tr,as,ms,gs,vs,ys,xs,_s,As,Ds,Ms,QueryObserver=(Ms=class extends Subscribable{constructor(s,i){super();$t(this,tr);$t(this,cr);$t(this,Jt);$t(this,ls);$t(this,ur);$t(this,Gr);$t(this,Xr);$t(this,Er);$t(this,Ir);$t(this,us);$t(this,Yr);$t(this,Jr);$t(this,zr);$t(this,$r);$t(this,Mr);$t(this,Zr,new Set);this.options=i,Ht(this,cr,s),Ht(this,Ir,null),Ht(this,Er,pendingThenable()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(At(this,Jt).addObserver(this),shouldFetchOnMount(At(this,Jt),this.options)?Xt(this,tr,as).call(this):this.updateResult(),Xt(this,tr,ys).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(At(this,Jt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(At(this,Jt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Xt(this,tr,xs).call(this),Xt(this,tr,_s).call(this),At(this,Jt).removeObserver(this)}setOptions(s){const i=this.options,a=At(this,Jt);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,Jt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Xt(this,tr,As).call(this),At(this,Jt).setOptions(this.options),i._defaulted&&!shallowEqualObjects(this.options,i)&&At(this,cr).getQueryCache().notify({type:"observerOptionsUpdated",query:At(this,Jt),observer:this});const o=this.hasListeners();o&&shouldFetchOptionally(At(this,Jt),a,this.options,i)&&Xt(this,tr,as).call(this),this.updateResult(),o&&(At(this,Jt)!==a||resolveEnabled(this.options.enabled,At(this,Jt))!==resolveEnabled(i.enabled,At(this,Jt))||resolveStaleTime(this.options.staleTime,At(this,Jt))!==resolveStaleTime(i.staleTime,At(this,Jt)))&&Xt(this,tr,ms).call(this);const c=Xt(this,tr,gs).call(this);o&&(At(this,Jt)!==a||resolveEnabled(this.options.enabled,At(this,Jt))!==resolveEnabled(i.enabled,At(this,Jt))||c!==At(this,Mr))&&Xt(this,tr,vs).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,Xr,this.options),Ht(this,Gr,At(this,Jt).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,Er).status==="pending"&&At(this,Er).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,o))})}trackProp(s){At(this,Zr).add(s)}getCurrentQuery(){return At(this,Jt)}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,tr,as).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),At(this,ur)))}createResult(s,i){var St;const a=At(this,Jt),o=this.options,c=At(this,ur),g=At(this,Gr),_=At(this,Xr),_e=s!==a?s.state:At(this,ls),{state:et}=s;let at={...et},rt=!1,ot;if(i._optimisticResults){const wt=this.hasListeners(),Tt=!wt&&shouldFetchOnMount(s,i),_t=wt&&shouldFetchOptionally(s,a,i,o);(Tt||_t)&&(at={...at,...fetchState(et.data,s.options)}),i._optimisticResults==="isRestoring"&&(at.fetchStatus="idle")}let{error:it,errorUpdatedAt:nt,status:pt}=at;ot=at.data;let $=!1;if(i.placeholderData!==void 0&&ot===void 0&&pt==="pending"){let wt;c!=null&&c.isPlaceholderData&&i.placeholderData===(_==null?void 0:_.placeholderData)?(wt=c.data,$=!0):wt=typeof i.placeholderData=="function"?i.placeholderData((St=At(this,Jr))==null?void 0:St.state.data,At(this,Jr)):i.placeholderData,wt!==void 0&&(pt="success",ot=replaceData(c==null?void 0:c.data,wt,i),rt=!0)}if(i.select&&ot!==void 0&&!$)if(c&&ot===(g==null?void 0:g.data)&&i.select===At(this,us))ot=At(this,Yr);else try{Ht(this,us,i.select),ot=i.select(ot),ot=replaceData(c==null?void 0:c.data,ot,i),Ht(this,Yr,ot),Ht(this,Ir,null)}catch(wt){Ht(this,Ir,wt)}At(this,Ir)&&(it=At(this,Ir),ot=At(this,Yr),nt=Date.now(),pt="error");const tt=at.fetchStatus==="fetching",j=pt==="pending",st=pt==="error",ut=j&&tt,ct=ot!==void 0,ft={status:pt,fetchStatus:at.fetchStatus,isPending:j,isSuccess:pt==="success",isError:st,isInitialLoading:ut,isLoading:ut,data:ot,dataUpdatedAt:at.dataUpdatedAt,error:it,errorUpdatedAt:nt,failureCount:at.fetchFailureCount,failureReason:at.fetchFailureReason,errorUpdateCount:at.errorUpdateCount,isFetched:at.dataUpdateCount>0||at.errorUpdateCount>0,isFetchedAfterMount:at.dataUpdateCount>_e.dataUpdateCount||at.errorUpdateCount>_e.errorUpdateCount,isFetching:tt,isRefetching:tt&&!j,isLoadingError:st&&!ct,isPaused:at.fetchStatus==="paused",isPlaceholderData:rt,isRefetchError:st&&ct,isStale:isStale(s,i),refetch:this.refetch,promise:At(this,Er),isEnabled:resolveEnabled(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const wt=Pt=>{ft.status==="error"?Pt.reject(ft.error):ft.data!==void 0&&Pt.resolve(ft.data)},Tt=()=>{const Pt=Ht(this,Er,ft.promise=pendingThenable());wt(Pt)},_t=At(this,Er);switch(_t.status){case"pending":s.queryHash===a.queryHash&&wt(_t);break;case"fulfilled":(ft.status==="error"||ft.data!==_t.value)&&Tt();break;case"rejected":(ft.status!=="error"||ft.error!==_t.reason)&&Tt();break}}return ft}updateResult(){const s=At(this,ur),i=this.createResult(At(this,Jt),this.options);if(Ht(this,Gr,At(this,Jt).state),Ht(this,Xr,this.options),At(this,Gr).data!==void 0&&Ht(this,Jr,At(this,Jt)),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,Zr).size)return!0;const g=new Set(c??At(this,Zr));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,tr,Ds).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Xt(this,tr,ys).call(this)}},cr=new WeakMap,Jt=new WeakMap,ls=new WeakMap,ur=new WeakMap,Gr=new WeakMap,Xr=new WeakMap,Er=new WeakMap,Ir=new WeakMap,us=new WeakMap,Yr=new WeakMap,Jr=new WeakMap,zr=new WeakMap,$r=new WeakMap,Mr=new WeakMap,Zr=new WeakMap,tr=new WeakSet,as=function(s){Xt(this,tr,As).call(this);let i=At(this,Jt).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(noop)),i},ms=function(){Xt(this,tr,xs).call(this);const s=resolveStaleTime(this.options.staleTime,At(this,Jt));if(isServer||At(this,ur).isStale||!isValidTimeout(s))return;const a=timeUntilStale(At(this,ur).dataUpdatedAt,s)+1;Ht(this,zr,timeoutManager.setTimeout(()=>{At(this,ur).isStale||this.updateResult()},a))},gs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(At(this,Jt)):this.options.refetchInterval)??!1},vs=function(s){Xt(this,tr,_s).call(this),Ht(this,Mr,s),!(isServer||resolveEnabled(this.options.enabled,At(this,Jt))===!1||!isValidTimeout(At(this,Mr))||At(this,Mr)===0)&&Ht(this,$r,timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&Xt(this,tr,as).call(this)},At(this,Mr)))},ys=function(){Xt(this,tr,ms).call(this),Xt(this,tr,vs).call(this,Xt(this,tr,gs).call(this))},xs=function(){At(this,zr)&&(timeoutManager.clearTimeout(At(this,zr)),Ht(this,zr,void 0))},_s=function(){At(this,$r)&&(timeoutManager.clearInterval(At(this,$r)),Ht(this,$r,void 0))},As=function(){const s=At(this,cr).getQueryCache().build(At(this,cr),this.options);if(s===At(this,Jt))return;const i=At(this,Jt);Ht(this,Jt,s),Ht(this,ls,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},Ds=function(s){notifyManager.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(At(this,ur))}),At(this,cr).getQueryCache().notify({query:At(this,Jt),type:"observerResultsUpdated"})})},Ms);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,at,rt,ot,it;const a=s.options,o=(rt=(at=(et=s.fetchOptions)==null?void 0:et.meta)==null?void 0:at.fetchMore)==null?void 0:rt.direction,c=((ot=s.state.data)==null?void 0:ot.pages)||[],g=((it=s.state.data)==null?void 0:it.pageParams)||[];let _={pages:[],pageParams:[]},b=0;const _e=async()=>{let nt=!1;const pt=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(s.signal.aborted?nt=!0:s.signal.addEventListener("abort",()=>{nt=!0}),s.signal)})},$=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 mt=(()=>{const Tt={client:s.client,queryKey:s.queryKey,pageParam:st,direction:ut?"backward":"forward",meta:s.options.meta};return pt(Tt),Tt})(),ft=await $(mt),{maxPages:St}=s.options,wt=ut?addToStart:addToEnd;return{pages:wt(j.pages,ft,St),pageParams:wt(j.pageParams,st,St)}};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,pt;return(pt=(nt=s.options).persister)==null?void 0:pt.call(nt,_e,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=_e}}}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 hs,vr,hr,Ur,yr,Tr,Ls,Mutation=(Ls=class extends Removable{constructor(s){super();$t(this,yr);$t(this,hs);$t(this,vr);$t(this,hr);$t(this,Ur);Ht(this,hs,s.client),this.mutationId=s.mutationId,Ht(this,hr,s.mutationCache),Ht(this,vr,[]),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,vr).includes(s)||(At(this,vr).push(s),this.clearGcTimeout(),At(this,hr).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){Ht(this,vr,At(this,vr).filter(i=>i!==s)),this.scheduleGc(),At(this,hr).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){At(this,vr).length||(this.state.status==="pending"?this.scheduleGc():At(this,hr).remove(this))}continue(){var s;return((s=At(this,Ur))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var g,_,b,_e,et,at,rt,ot,it,nt,pt,$,tt,j,st,ut,ct,mt,ft,St;const i=()=>{Xt(this,yr,Tr).call(this,{type:"continue"})},a={client:At(this,hs),meta:this.options.meta,mutationKey:this.options.mutationKey};Ht(this,Ur,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(s,a):Promise.reject(new Error("No mutationFn found")),onFail:(wt,Tt)=>{Xt(this,yr,Tr).call(this,{type:"failed",failureCount:wt,error:Tt})},onPause:()=>{Xt(this,yr,Tr).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,Ur).canStart();try{if(o)i();else{Xt(this,yr,Tr).call(this,{type:"pending",variables:s,isPaused:c}),await((_=(g=At(this,hr).config).onMutate)==null?void 0:_.call(g,s,this,a));const Tt=await((_e=(b=this.options).onMutate)==null?void 0:_e.call(b,s,a));Tt!==this.state.context&&Xt(this,yr,Tr).call(this,{type:"pending",context:Tt,variables:s,isPaused:c})}const wt=await At(this,Ur).start();return await((at=(et=At(this,hr).config).onSuccess)==null?void 0:at.call(et,wt,s,this.state.context,this,a)),await((ot=(rt=this.options).onSuccess)==null?void 0:ot.call(rt,wt,s,this.state.context,a)),await((nt=(it=At(this,hr).config).onSettled)==null?void 0:nt.call(it,wt,null,this.state.variables,this.state.context,this,a)),await(($=(pt=this.options).onSettled)==null?void 0:$.call(pt,wt,null,s,this.state.context,a)),Xt(this,yr,Tr).call(this,{type:"success",data:wt}),wt}catch(wt){try{throw await((j=(tt=At(this,hr).config).onError)==null?void 0:j.call(tt,wt,s,this.state.context,this,a)),await((ut=(st=this.options).onError)==null?void 0:ut.call(st,wt,s,this.state.context,a)),await((mt=(ct=At(this,hr).config).onSettled)==null?void 0:mt.call(ct,void 0,wt,this.state.variables,this.state.context,this,a)),await((St=(ft=this.options).onSettled)==null?void 0:St.call(ft,void 0,wt,s,this.state.context,a)),wt}finally{Xt(this,yr,Tr).call(this,{type:"error",error:wt})}}finally{At(this,hr).runNext(this)}}},hs=new WeakMap,vr=new WeakMap,hr=new WeakMap,Ur=new WeakMap,yr=new WeakSet,Tr=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,vr).forEach(a=>{a.onMutationUpdate(s)}),At(this,hr).notify({mutation:this,type:"updated",action:s})})},Ls);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 Sr,gr,cs,Os,MutationCache=(Os=class extends Subscribable{constructor(s={}){super();$t(this,Sr);$t(this,gr);$t(this,cs);this.config=s,Ht(this,Sr,new Set),Ht(this,gr,new Map),Ht(this,cs,0)}build(s,i,a){const o=new Mutation({client:s,mutationCache:this,mutationId:++ps(this,cs)._,options:s.defaultMutationOptions(i),state:a});return this.add(o),o}add(s){At(this,Sr).add(s);const i=scopeFor(s);if(typeof i=="string"){const a=At(this,gr).get(i);a?a.push(s):At(this,gr).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(At(this,Sr).delete(s)){const i=scopeFor(s);if(typeof i=="string"){const a=At(this,gr).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,gr).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=scopeFor(s);if(typeof i=="string"){const a=At(this,gr).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,gr).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,Sr).forEach(s=>{this.notify({type:"removed",mutation:s})}),At(this,Sr).clear(),At(this,gr).clear()})}getAll(){return Array.from(At(this,Sr))}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))))}},Sr=new WeakMap,gr=new WeakMap,cs=new WeakMap,Os);function scopeFor(e){var s;return(s=e.options.scope)==null?void 0:s.id}var br,Lr,pr,kr,wr,ds,Es,js,MutationObserver$1=(js=class extends Subscribable{constructor(i,a){super();$t(this,wr);$t(this,br);$t(this,Lr);$t(this,pr);$t(this,kr);Ht(this,br,i),this.setOptions(a),this.bindMethods(),Xt(this,wr,ds).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,br).defaultMutationOptions(i),shallowEqualObjects(this.options,a)||At(this,br).getMutationCache().notify({type:"observerOptionsUpdated",mutation:At(this,pr),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&hashKey(a.mutationKey)!==hashKey(this.options.mutationKey)?this.reset():((o=At(this,pr))==null?void 0:o.state.status)==="pending"&&At(this,pr).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=At(this,pr))==null||i.removeObserver(this)}onMutationUpdate(i){Xt(this,wr,ds).call(this),Xt(this,wr,Es).call(this,i)}getCurrentResult(){return At(this,Lr)}reset(){var i;(i=At(this,pr))==null||i.removeObserver(this),Ht(this,pr,void 0),Xt(this,wr,ds).call(this),Xt(this,wr,Es).call(this)}mutate(i,a){var o;return Ht(this,kr,a),(o=At(this,pr))==null||o.removeObserver(this),Ht(this,pr,At(this,br).getMutationCache().build(At(this,br),this.options)),At(this,pr).addObserver(this),At(this,pr).execute(i)}},br=new WeakMap,Lr=new WeakMap,pr=new WeakMap,kr=new WeakMap,wr=new WeakSet,ds=function(){var a;const i=((a=At(this,pr))==null?void 0:a.state)??getDefaultState();Ht(this,Lr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Es=function(i){notifyManager.batch(()=>{var a,o,c,g,_,b,_e,et;if(At(this,kr)&&this.hasListeners()){const at=At(this,Lr).variables,rt=At(this,Lr).context,ot={client:At(this,br),meta:this.options.meta,mutationKey:this.options.mutationKey};(i==null?void 0:i.type)==="success"?((o=(a=At(this,kr)).onSuccess)==null||o.call(a,i.data,at,rt,ot),(g=(c=At(this,kr)).onSettled)==null||g.call(c,i.data,null,at,rt,ot)):(i==null?void 0:i.type)==="error"&&((b=(_=At(this,kr)).onError)==null||b.call(_,i.error,at,rt,ot),(et=(_e=At(this,kr)).onSettled)==null||et.call(_e,void 0,i.error,at,rt,ot))}this.listeners.forEach(at=>{at(At(this,Lr))})})},js),xr,Ns,QueryCache=(Ns=class extends Subscribable{constructor(s={}){super();$t(this,xr);this.config=s,Ht(this,xr,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,xr).has(s.queryHash)||(At(this,xr).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=At(this,xr).get(s.queryHash);i&&(s.destroy(),i===s&&At(this,xr).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return At(this,xr).get(s)}getAll(){return[...At(this,xr).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()})})}},xr=new WeakMap,Ns),nr,Or,jr,es,ts,Nr,rs,ss,Fs,QueryClient=(Fs=class{constructor(e={}){$t(this,nr);$t(this,Or);$t(this,jr);$t(this,es);$t(this,ts);$t(this,Nr);$t(this,rs);$t(this,ss);Ht(this,nr,e.queryCache||new QueryCache),Ht(this,Or,e.mutationCache||new MutationCache),Ht(this,jr,e.defaultOptions||{}),Ht(this,es,new Map),Ht(this,ts,new Map),Ht(this,Nr,0)}mount(){ps(this,Nr)._++,At(this,Nr)===1&&(Ht(this,rs,focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),At(this,nr).onFocus())})),Ht(this,ss,onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),At(this,nr).onOnline())})))}unmount(){var e,s;ps(this,Nr)._--,At(this,Nr)===0&&((e=At(this,rs))==null||e.call(this),Ht(this,rs,void 0),(s=At(this,ss))==null||s.call(this),Ht(this,ss,void 0))}isFetching(e){return At(this,nr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return At(this,Or).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const s=this.defaultQueryOptions({queryKey:e});return(i=At(this,nr).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const s=this.defaultQueryOptions(e),i=At(this,nr).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,nr).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,nr).get(a.queryHash),c=o==null?void 0:o.state.data,g=functionalUpdate(s,c);if(g!==void 0)return At(this,nr).build(this,a).setData(g,{...i,manual:!0})}setQueriesData(e,s,i){return notifyManager.batch(()=>At(this,nr).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,nr).get(s.queryHash))==null?void 0:i.state}removeQueries(e){const s=At(this,nr);notifyManager.batch(()=>{s.findAll(e).forEach(i=>{s.remove(i)})})}resetQueries(e,s){const i=At(this,nr);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,nr).findAll(e).map(o=>o.cancel(i)));return Promise.all(a).then(noop).catch(noop)}invalidateQueries(e,s={}){return notifyManager.batch(()=>(At(this,nr).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,nr).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,nr).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,Or).resumePausedMutations():Promise.resolve()}getQueryCache(){return At(this,nr)}getMutationCache(){return At(this,Or)}getDefaultOptions(){return At(this,jr)}setDefaultOptions(e){Ht(this,jr,e)}setQueryDefaults(e,s){At(this,es).set(hashKey(e),{queryKey:e,defaultOptions:s})}getQueryDefaults(e){const s=[...At(this,es).values()],i={};return s.forEach(a=>{partialMatchKey(e,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(e,s){At(this,ts).set(hashKey(e),{mutationKey:e,defaultOptions:s})}getMutationDefaults(e){const s=[...At(this,ts).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,jr).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,jr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){At(this,nr).clear(),At(this,Or).clear()}},nr=new WeakMap,Or=new WeakMap,jr=new WeakMap,es=new WeakMap,ts=new WeakMap,Nr=new WeakMap,rs=new WeakMap,ss=new WeakMap,Fs),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 at,rt,ot,it,nt;const a=useIsRestoring(),o=useQueryErrorResetBoundary(),c=useQueryClient(),g=c.defaultQueryOptions(e);(rt=(at=c.getDefaultOptions().queries)==null?void 0:at._experimental_beforeQuery)==null||rt.call(at,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)),_e=b.getOptimisticResult(g),et=!a&&e.subscribed!==!1;if(reactExports.useSyncExternalStore(reactExports.useCallback(pt=>{const $=et?b.subscribe(notifyManager.batchCalls(pt)):noop;return b.updateResult(),$},[b,et]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),reactExports.useEffect(()=>{b.setOptions(g)},[g,b]),shouldSuspend(g,_e))throw fetchOptimistic(g,b,o);if(getHasError({result:_e,errorResetBoundary:o,throwOnError:g.throwOnError,query:c.getQueryCache().get(g.queryHash),suspense:g.suspense}))throw _e.error;if((it=(ot=c.getDefaultOptions().queries)==null?void 0:ot._experimental_afterQuery)==null||it.call(ot,g,_e),g.experimental_prefetchInRender&&!isServer&&willFetch(_e,a)){const pt=_?fetchOptimistic(g,b,o):(nt=c.getQueryCache().get(g.queryHash))==null?void 0:nt.promise;pt==null||pt.catch(noop).finally(()=>{b.updateResult()})}return g.notifyOnChangeProps?_e:b.trackResult(_e)}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,_e,et;switch(g=Math.floor(e*6),_=e*6-g,b=i*(1-s),_e=i*(1-_*s),et=i*(1-(1-_)*s),g%6){case 0:a=i,o=et,c=b;break;case 1:a=_e,o=i,c=b;break;case 2:a=b,o=i,c=et;break;case 3:a=b,o=_e,c=i;break;case 4:a=et,o=b,c=i;break;case 5:a=i,o=b,c=_e;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(ot){i({data:ot})}},c={postMessage:function(ot){o.onmessage({data:ot})}};function g(rt){if(window.Worker&&window.Blob&&getWebWorker()){var ot=new Blob(["var _workerSelf = self; self.onmessage = ",rt.toString()],{type:"text/javascript"}),it=URL.createObjectURL(ot);return new Worker(it)}return i=rt,o}function _(){a||(a=g(function(ot){function it(){function pt(Et,dt){var vt,lt,ht=Et.length,yt,gt,kt,xt;for(lt=0;lt<ht;lt+=1)if(vt=Et[lt],"ks"in vt&&!vt.completed){if(vt.completed=!0,vt.hasMask){var bt=vt.masksProperties;for(gt=bt.length,yt=0;yt<gt;yt+=1)if(bt[yt].pt.k.i)ut(bt[yt].pt.k);else for(xt=bt[yt].pt.k.length,kt=0;kt<xt;kt+=1)bt[yt].pt.k[kt].s&&ut(bt[yt].pt.k[kt].s[0]),bt[yt].pt.k[kt].e&&ut(bt[yt].pt.k[kt].e[0])}vt.ty===0?(vt.layers=j(vt.refId,dt),pt(vt.layers,dt)):vt.ty===4?st(vt.shapes):vt.ty===5&&Pt(vt)}}function $(Et,dt){if(Et){var vt=0,lt=Et.length;for(vt=0;vt<lt;vt+=1)Et[vt].t===1&&(Et[vt].data.layers=j(Et[vt].data.refId,dt),pt(Et[vt].data.layers,dt))}}function tt(Et,dt){for(var vt=0,lt=dt.length;vt<lt;){if(dt[vt].id===Et)return dt[vt];vt+=1}return null}function j(Et,dt){var vt=tt(Et,dt);return vt?vt.layers.__used?JSON.parse(JSON.stringify(vt.layers)):(vt.layers.__used=!0,vt.layers):null}function st(Et){var dt,vt=Et.length,lt,ht;for(dt=vt-1;dt>=0;dt-=1)if(Et[dt].ty==="sh")if(Et[dt].ks.k.i)ut(Et[dt].ks.k);else for(ht=Et[dt].ks.k.length,lt=0;lt<ht;lt+=1)Et[dt].ks.k[lt].s&&ut(Et[dt].ks.k[lt].s[0]),Et[dt].ks.k[lt].e&&ut(Et[dt].ks.k[lt].e[0]);else Et[dt].ty==="gr"&&st(Et[dt].it)}function ut(Et){var dt,vt=Et.i.length;for(dt=0;dt<vt;dt+=1)Et.i[dt][0]+=Et.v[dt][0],Et.i[dt][1]+=Et.v[dt][1],Et.o[dt][0]+=Et.v[dt][0],Et.o[dt][1]+=Et.v[dt][1]}function ct(Et,dt){var vt=dt?dt.split("."):[100,100,100];return Et[0]>vt[0]?!0:vt[0]>Et[0]?!1:Et[1]>vt[1]?!0:vt[1]>Et[1]?!1:Et[2]>vt[2]?!0:vt[2]>Et[2]?!1:null}var mt=function(){var Et=[4,4,14];function dt(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&&dt(lt[ht])}return function(lt){if(ct(Et,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)}}}(),ft=function(){var Et=[4,7,99];return function(dt){if(dt.chars&&!ct(Et,dt.v)){var vt,lt=dt.chars.length;for(vt=0;vt<lt;vt+=1){var ht=dt.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}},dt.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"})))}}}}(),St=function(){var Et=[5,7,15];function dt(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&&dt(lt[ht])}return function(lt){if(ct(Et,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 Et=[4,1,9];function dt(lt){var ht,yt=lt.length,gt,kt;for(ht=0;ht<yt;ht+=1)if(lt[ht].ty==="gr")dt(lt[ht].it);else if(lt[ht].ty==="fl"||lt[ht].ty==="st")if(lt[ht].c.k&<[ht].c.k[0].i)for(kt=lt[ht].c.k.length,gt=0;gt<kt;gt+=1)lt[ht].c.k[gt].s&&(lt[ht].c.k[gt].s[0]/=255,lt[ht].c.k[gt].s[1]/=255,lt[ht].c.k[gt].s[2]/=255,lt[ht].c.k[gt].s[3]/=255),lt[ht].c.k[gt].e&&(lt[ht].c.k[gt].e[0]/=255,lt[ht].c.k[gt].e[1]/=255,lt[ht].c.k[gt].e[2]/=255,lt[ht].c.k[gt].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&&dt(lt[ht].shapes)}return function(lt){if(ct(Et,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)}}}(),Tt=function(){var Et=[4,4,18];function dt(lt){var ht,yt=lt.length,gt,kt;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(kt=lt[ht].ks.k.length,gt=0;gt<kt;gt+=1)lt[ht].ks.k[gt].s&&(lt[ht].ks.k[gt].s[0].c=lt[ht].closed),lt[ht].ks.k[gt].e&&(lt[ht].ks.k[gt].e[0].c=lt[ht].closed);else lt[ht].ty==="gr"&&dt(lt[ht].it)}function vt(lt){var ht,yt,gt=lt.length,kt,xt,bt,It;for(yt=0;yt<gt;yt+=1){if(ht=lt[yt],ht.hasMask){var Rt=ht.masksProperties;for(xt=Rt.length,kt=0;kt<xt;kt+=1)if(Rt[kt].pt.k.i)Rt[kt].pt.k.c=Rt[kt].cl;else for(It=Rt[kt].pt.k.length,bt=0;bt<It;bt+=1)Rt[kt].pt.k[bt].s&&(Rt[kt].pt.k[bt].s[0].c=Rt[kt].cl),Rt[kt].pt.k[bt].e&&(Rt[kt].pt.k[bt].e[0].c=Rt[kt].cl)}ht.ty===4&&dt(ht.shapes)}}return function(lt){if(ct(Et,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 _t(Et){Et.__complete||(wt(Et),mt(Et),ft(Et),St(Et),Tt(Et),pt(Et.layers,Et.assets),$(Et.chars,Et.assets),Et.__complete=!0)}function Pt(Et){Et.t.a.length===0&&"m"in Et.t.p}var Ct={};return Ct.completeData=_t,Ct.checkColors=wt,Ct.checkChars=ft,Ct.checkPathProperties=St,Ct.checkShapes=Tt,Ct.completeLayers=pt,Ct}if(c.dataManager||(c.dataManager=it()),c.assetLoader||(c.assetLoader=function(){function pt(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 $(tt,j,st,ut){var ct,mt=new XMLHttpRequest;try{mt.responseType="json"}catch{}mt.onreadystatechange=function(){if(mt.readyState===4)if(mt.status===200)ct=pt(mt),st(ct);else try{ct=pt(mt),st(ct)}catch(ft){ut&&ut(ft)}};try{mt.open(["G","E","T"].join(""),tt,!0)}catch{mt.open(["G","E","T"].join(""),j+"/"+tt,!0)}mt.send()}return{load:$}}()),ot.data.type==="loadAnimation")c.assetLoader.load(ot.data.path,ot.data.fullPath,function(pt){c.dataManager.completeData(pt),c.postMessage({id:ot.data.id,payload:pt,status:"success"})},function(){c.postMessage({id:ot.data.id,status:"error"})});else if(ot.data.type==="complete"){var nt=ot.data.animation;c.dataManager.completeData(nt),c.postMessage({id:ot.data.id,payload:nt,status:"success"})}else ot.data.type==="loadData"&&c.assetLoader.load(ot.data.path,ot.data.fullPath,function(pt){c.postMessage({id:ot.data.id,payload:pt,status:"success"})},function(){c.postMessage({id:ot.data.id,status:"error"})})}),a.onmessage=function(rt){var ot=rt.data,it=ot.id,nt=s[it];s[it]=null,ot.status==="success"?nt.onComplete(ot.payload):nt.onError&&nt.onError()})}function b(rt,ot){e+=1;var it="processId_"+e;return s[it]={onComplete:rt,onError:ot},it}function _e(rt,ot,it){_();var nt=b(ot,it);a.postMessage({type:"loadAnimation",path:rt,fullPath:window.location.origin+window.location.pathname,id:nt})}function et(rt,ot,it){_();var nt=b(ot,it);a.postMessage({type:"loadData",path:rt,fullPath:window.location.origin+window.location.pathname,id:nt})}function at(rt,ot,it){_();var nt=b(ot,it);a.postMessage({type:"complete",animation:rt,id:nt})}return{loadAnimation:_e,loadData:et,completeAnimation:at}}(),ImagePreloader=function(){var e=function(){var $=createTag("canvas");$.width=1,$.height=1;var tt=$.getContext("2d");return tt.fillStyle="rgba(0,0,0,0)",tt.fillRect(0,0,1,1),$}();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($,tt,j){var st="";if($.e)st=$.p;else if(tt){var ut=$.p;ut.indexOf("images/")!==-1&&(ut=ut.split("/")[1]),st=tt+ut}else st=j,st+=$.u?$.u:"",st+=$.p;return st}function o($){var tt=0,j=setInterval((function(){var st=$.getBBox();(st.width||tt>500)&&(this._imageLoaded(),clearInterval(j)),tt+=1}).bind(this),50)}function c($){var tt=a($,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:$};return st}function g($){var tt=a($,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:$};return st}function _($){var tt={assetData:$},j=a($,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($,tt){this.imagesLoadedCb=tt;var j,st=$.length;for(j=0;j<st;j+=1)$[j].layers||(!$[j].t||$[j].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData($[j]))):$[j].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData($[j]))))}function _e($){this.path=$||""}function et($){this.assetsPath=$||""}function at($){for(var tt=0,j=this.images.length;tt<j;){if(this.images[tt].assetData===$)return this.images[tt].img;tt+=1}return null}function rt(){this.imagesLoadedCb=null,this.images.length=0}function ot(){return this.totalImages===this.loadedAssets}function it(){return this.totalFootages===this.loadedFootagesCount}function nt($,tt){$==="svg"?(this._elementHelper=tt,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function pt(){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 pt.prototype={loadAssets:b,setAssetsPath:et,setPath:_e,loadedImages:ot,loadedFootages:it,destroy:rt,getAsset:at,createImgData:g,createImageData:c,imageLoaded:s,footageLoaded:i,setCacheType:nt},pt}();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 _(dt){for(var vt=0,lt=dt.target;vt<a;)s[vt].animation===lt&&(s.splice(vt,1),vt-=1,a-=1,lt.isPaused||at()),vt+=1}function b(dt,vt){if(!dt)return null;for(var lt=0;lt<a;){if(s[lt].elem===dt&&s[lt].elem!==null)return s[lt].animation;lt+=1}var ht=new AnimationItem;return rt(ht,dt),ht.setData(dt,vt),ht}function _e(){var dt,vt=s.length,lt=[];for(dt=0;dt<vt;dt+=1)lt.push(s[dt].animation);return lt}function et(){o+=1,wt()}function at(){o-=1}function rt(dt,vt){dt.addEventListener("destroy",_),dt.addEventListener("_active",et),dt.addEventListener("_idle",at),s.push({elem:vt,animation:dt}),a+=1}function ot(dt){var vt=new AnimationItem;return rt(vt,null),vt.setParams(dt),vt}function it(dt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setSpeed(dt,vt)}function nt(dt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setDirection(dt,vt)}function pt(dt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.play(dt)}function $(dt){var vt=dt-i,lt;for(lt=0;lt<a;lt+=1)s[lt].animation.advanceTime(vt);i=dt,o&&!g?window.requestAnimationFrame($):c=!0}function tt(dt){i=dt,window.requestAnimationFrame($)}function j(dt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.pause(dt)}function st(dt,vt,lt){var ht;for(ht=0;ht<a;ht+=1)s[ht].animation.goToAndStop(dt,vt,lt)}function ut(dt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.stop(dt)}function ct(dt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.togglePause(dt)}function mt(dt){var vt;for(vt=a-1;vt>=0;vt-=1)s[vt].animation.destroy(dt)}function ft(dt,vt,lt){var ht=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),yt,gt=ht.length;for(yt=0;yt<gt;yt+=1)lt&&ht[yt].setAttribute("data-bm-type",lt),b(ht[yt],dt);if(vt&>===0){lt||(lt="svg");var kt=document.getElementsByTagName("body")[0];kt.innerText="";var xt=createTag("div");xt.style.width="100%",xt.style.height="100%",xt.setAttribute("data-bm-type",lt),kt.appendChild(xt),b(xt,dt)}}function St(){var dt;for(dt=0;dt<a;dt+=1)s[dt].animation.resize()}function wt(){!g&&o&&c&&(window.requestAnimationFrame(tt),c=!1)}function Tt(){g=!0}function _t(){g=!1,wt()}function Pt(dt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setVolume(dt,vt)}function Ct(dt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.mute(dt)}function Et(dt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.unmute(dt)}return e.registerAnimation=b,e.loadAnimation=ot,e.setSpeed=it,e.setDirection=nt,e.play=pt,e.pause=j,e.stop=ut,e.togglePause=ct,e.searchAnimations=ft,e.resize=St,e.goToAndStop=st,e.destroy=mt,e.freeze=Tt,e.unfreeze=_t,e.setVolume=Pt,e.mute=Ct,e.unmute=Et,e.getRegisteredAnimations=_e,e}(),BezierFactory=function(){var e={};e.getBezierEasing=i;var s={};function i(tt,j,st,ut,ct){var mt=ct||("bez_"+tt+"_"+j+"_"+st+"_"+ut).replace(/\./g,"p");if(s[mt])return s[mt];var ft=new $([tt,j,st,ut]);return s[mt]=ft,ft}var a=4,o=.001,c=1e-7,g=10,_=11,b=1/(_-1),_e=typeof Float32Array=="function";function et(tt,j){return 1-3*j+3*tt}function at(tt,j){return 3*j-6*tt}function rt(tt){return 3*tt}function ot(tt,j,st){return((et(j,st)*tt+at(j,st))*tt+rt(j))*tt}function it(tt,j,st){return 3*et(j,st)*tt*tt+2*at(j,st)*tt+rt(j)}function nt(tt,j,st,ut,ct){var mt,ft,St=0;do ft=j+(st-j)/2,mt=ot(ft,ut,ct)-tt,mt>0?st=ft:j=ft;while(Math.abs(mt)>c&&++St<g);return ft}function pt(tt,j,st,ut){for(var ct=0;ct<a;++ct){var mt=it(j,st,ut);if(mt===0)return j;var ft=ot(j,st,ut)-tt;j-=ft/mt}return j}function $(tt){this._p=tt,this._mSampleValues=_e?new Float32Array(_):new Array(_),this._precomputed=!1,this.get=this.get.bind(this)}return $.prototype={get:function(j){var st=this._p[0],ut=this._p[1],ct=this._p[2],mt=this._p[3];return this._precomputed||this._precompute(),st===ut&&ct===mt?j:j===0?0:j===1?1:ot(this._getTForX(j),ut,mt)},_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]=ot(ut*b,j,st)},_getTForX:function(j){for(var st=this._p[0],ut=this._p[2],ct=this._mSampleValues,mt=0,ft=1,St=_-1;ft!==St&&ct[ft]<=j;++ft)mt+=b;--ft;var wt=(j-ct[ft])/(ct[ft+1]-ct[ft]),Tt=mt+wt*b,_t=it(Tt,st,ut);return _t>=o?pt(j,Tt,st,ut):_t===0?Tt:nt(j,mt,mt+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 _e;return a?(a-=1,_e=c[a]):_e=s(),_e}function b(_e){a===o&&(c=pooling.double(c),o*=2),i&&i(_e),c[a]=_e,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,ot,it,nt,pt,$){var tt=rt*nt+ot*pt+it*$-pt*nt-$*rt-it*ot;return tt>-.001&&tt<.001}function i(rt,ot,it,nt,pt,$,tt,j,st){if(it===0&&$===0&&st===0)return s(rt,ot,nt,pt,tt,j);var ut=e.sqrt(e.pow(nt-rt,2)+e.pow(pt-ot,2)+e.pow($-it,2)),ct=e.sqrt(e.pow(tt-rt,2)+e.pow(j-ot,2)+e.pow(st-it,2)),mt=e.sqrt(e.pow(tt-nt,2)+e.pow(j-pt,2)+e.pow(st-$,2)),ft;return ut>ct?ut>mt?ft=ut-ct-mt:ft=mt-ct-ut:mt>ct?ft=mt-ct-ut:ft=ct-ut-mt,ft>-1e-4&&ft<1e-4}var a=function(){return function(rt,ot,it,nt){var pt=getDefaultCurveSegments(),$,tt,j,st,ut,ct=0,mt,ft=[],St=[],wt=bezierLengthPool.newElement();for(j=it.length,$=0;$<pt;$+=1){for(ut=$/(pt-1),mt=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)*ot[tt],ft[tt]=st,St[tt]!==null&&(mt+=bmPow(ft[tt]-St[tt],2)),St[tt]=ft[tt];mt&&(mt=bmSqrt(mt),ct+=mt),wt.percents[$]=ut,wt.lengths[$]=ct}return wt.addedLength=ct,wt}}();function o(rt){var ot=segmentsLengthPool.newElement(),it=rt.c,nt=rt.v,pt=rt.o,$=rt.i,tt,j=rt._length,st=ot.lengths,ut=0;for(tt=0;tt<j-1;tt+=1)st[tt]=a(nt[tt],nt[tt+1],pt[tt],$[tt+1]),ut+=st[tt].addedLength;return it&&j&&(st[tt]=a(nt[tt],nt[0],pt[tt],$[0]),ut+=st[tt].addedLength),ot.totalLength=ut,ot}function c(rt){this.segmentLength=0,this.points=new Array(rt)}function g(rt,ot){this.partialLength=rt,this.point=ot}var _=function(){var rt={};return function(ot,it,nt,pt){var $=(ot[0]+"_"+ot[1]+"_"+it[0]+"_"+it[1]+"_"+nt[0]+"_"+nt[1]+"_"+pt[0]+"_"+pt[1]).replace(/\./g,"p");if(!rt[$]){var tt=getDefaultCurveSegments(),j,st,ut,ct,mt,ft=0,St,wt,Tt=null;ot.length===2&&(ot[0]!==it[0]||ot[1]!==it[1])&&s(ot[0],ot[1],it[0],it[1],ot[0]+nt[0],ot[1]+nt[1])&&s(ot[0],ot[1],it[0],it[1],it[0]+pt[0],it[1]+pt[1])&&(tt=2);var _t=new c(tt);for(ut=nt.length,j=0;j<tt;j+=1){for(wt=createSizedArray(ut),mt=j/(tt-1),St=0,st=0;st<ut;st+=1)ct=bmPow(1-mt,3)*ot[st]+3*bmPow(1-mt,2)*mt*(ot[st]+nt[st])+3*(1-mt)*bmPow(mt,2)*(it[st]+pt[st])+bmPow(mt,3)*it[st],wt[st]=ct,Tt!==null&&(St+=bmPow(wt[st]-Tt[st],2));St=bmSqrt(St),ft+=St,_t.points[j]=new g(St,wt),Tt=wt}_t.segmentLength=ft,rt[$]=_t}return rt[$]}}();function b(rt,ot){var it=ot.percents,nt=ot.lengths,pt=it.length,$=bmFloor((pt-1)*rt),tt=rt*ot.addedLength,j=0;if($===pt-1||$===0||tt===nt[$])return it[$];for(var st=nt[$]>tt?-1:1,ut=!0;ut;)if(nt[$]<=tt&&nt[$+1]>tt?(j=(tt-nt[$])/(nt[$+1]-nt[$]),ut=!1):$+=st,$<0||$>=pt-1){if($===pt-1)return it[$];ut=!1}return it[$]+(it[$+1]-it[$])*j}function _e(rt,ot,it,nt,pt,$){var tt=b(pt,$),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*ot[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*ot[1])*1e3)/1e3;return[st,ut]}var et=createTypedArray("float32",8);function at(rt,ot,it,nt,pt,$,tt){pt<0?pt=0:pt>1&&(pt=1);var j=b(pt,tt);$=$>1?1:$;var st=b($,tt),ut,ct=rt.length,mt=1-j,ft=1-st,St=mt*mt*mt,wt=j*mt*mt*3,Tt=j*j*mt*3,_t=j*j*j,Pt=mt*mt*ft,Ct=j*mt*ft+mt*j*ft+mt*mt*st,Et=j*j*ft+mt*j*st+j*mt*st,dt=j*j*st,vt=mt*ft*ft,lt=j*ft*ft+mt*st*ft+mt*ft*st,ht=j*st*ft+mt*st*st+j*ft*st,yt=j*st*st,gt=ft*ft*ft,kt=st*ft*ft+ft*st*ft+ft*ft*st,xt=st*st*ft+ft*st*st+st*ft*st,bt=st*st*st;for(ut=0;ut<ct;ut+=1)et[ut*4]=e.round((St*rt[ut]+wt*it[ut]+Tt*nt[ut]+_t*ot[ut])*1e3)/1e3,et[ut*4+1]=e.round((Pt*rt[ut]+Ct*it[ut]+Et*nt[ut]+dt*ot[ut])*1e3)/1e3,et[ut*4+2]=e.round((vt*rt[ut]+lt*it[ut]+ht*nt[ut]+yt*ot[ut])*1e3)/1e3,et[ut*4+3]=e.round((gt*rt[ut]+kt*it[ut]+xt*nt[ut]+bt*ot[ut])*1e3)/1e3;return et}return{getSegmentsLength:o,getNewSegment:at,getPointInSegment:_e,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,_e,et;_;){if(b=this.keyframes[c],_e=this.keyframes[c+1],c===g-1&&e>=_e.t-i){b.h&&(b=_e),o=0;break}if(_e.t-i>e){o=c;break}c<g-1?c+=1:(o=0,_=!1)}et=this.keyframesMetadata[c]||{};var at,rt,ot,it,nt,pt,$=_e.t-i,tt=b.t-i,j;if(b.to){et.bezierData||(et.bezierData=bez.buildBezierData(b.s,_e.s||b.e,b.to,b.ti));var st=et.bezierData;if(e>=$||e<tt){var ut=e>=$?st.points.length-1:0;for(rt=st.points[ut].point.length,at=0;at<rt;at+=1)a[at]=st.points[ut].point[at]}else{et.__fnct?pt=et.__fnct:(pt=BezierFactory.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,et.__fnct=pt),ot=pt((e-tt)/($-tt));var ct=st.segmentLength*ot,mt,ft=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(ft+=st.points[nt].partialLength,ct===0||ot===0||nt===st.points.length-1){for(rt=st.points[nt].point.length,at=0;at<rt;at+=1)a[at]=st.points[nt].point[at];break}else if(ct>=ft&&ct<ft+st.points[nt+1].partialLength){for(mt=(ct-ft)/st.points[nt+1].partialLength,rt=st.points[nt].point.length,at=0;at<rt;at+=1)a[at]=st.points[nt].point[at]+(st.points[nt+1].point[at]-st.points[nt].point[at])*mt;break}nt<it-1?nt+=1:_=!1}s._lastPoint=nt,s._lastAddedLength=ft-st.points[nt].partialLength,s._lastKeyframeIndex=c}}else{var St,wt,Tt,_t,Pt;if(g=b.s.length,j=_e.s||b.e,this.sh&&b.h!==1)if(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 Ct=createQuaternion(b.s),Et=createQuaternion(j),dt=(e-tt)/($-tt);quaternionToEuler(a,slerp(Ct,Et,dt))}else for(c=0;c<g;c+=1)b.h!==1&&(e>=$?ot=1:e<tt?ot=0:(b.o.x.constructor===Array?(et.__fnct||(et.__fnct=[]),et.__fnct[c]?pt=et.__fnct[c]:(St=b.o.x[c]===void 0?b.o.x[0]:b.o.x[c],wt=b.o.y[c]===void 0?b.o.y[0]:b.o.y[c],Tt=b.i.x[c]===void 0?b.i.x[0]:b.i.x[c],_t=b.i.y[c]===void 0?b.i.y[0]:b.i.y[c],pt=BezierFactory.getBezierEasing(St,wt,Tt,_t).get,et.__fnct[c]=pt)):et.__fnct?pt=et.__fnct:(St=b.o.x,wt=b.o.y,Tt=b.i.x,_t=b.i.y,pt=BezierFactory.getBezierEasing(St,wt,Tt,_t).get,b.keyframeMetadata=pt),ot=pt((e-tt)/($-tt)))),j=_e.s||b.e,Pt=b.h===1?b.s[c]:b.s[c]+(j[c]-b.s[c])*ot,this.propType==="multidimensional"?a[c]=Pt:a=Pt}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],_e=s[1],et=s[2],at=s[3],rt,ot,it,nt,pt;return ot=o*b+c*_e+g*et+_*at,ot<0&&(ot=-ot,b=-b,_e=-_e,et=-et,at=-at),1-ot>1e-6?(rt=Math.acos(ot),it=Math.sin(rt),nt=Math.sin((1-i)*rt)/it,pt=Math.sin(i*rt)/it):(nt=1-i,pt=i),a[0]=nt*o+pt*b,a[1]=nt*c+pt*_e,a[2]=nt*g+pt*et,a[3]=nt*_+pt*at,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),_e=Math.sin(a/2),et=o*c*g-_*b*_e,at=_*b*g+o*c*_e,rt=_*c*g+o*b*_e,ot=o*b*g-_*c*_e;return[at,rt,ot,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,_e;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,_e=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]+_e[0],_[1]+_e[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]+_e[0],_[1]+_e[1],_[2]+_e[2]))&&(s.k[o].to=null,s.k[o].ti=null),g[0]===_[0]&&g[1]===_[1]&&b[0]===0&&b[1]===0&&_e[0]===0&&_e[1]===0&&(g.length===2||g[2]===_[2]&&b[2]===0&&_e[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($,tt,j){var st=j.lastIndex,ut,ct,mt,ft,St,wt,Tt,_t,Pt,Ct=this.keyframes;if($<Ct[0].t-this.offsetTime)ut=Ct[0].s[0],mt=!0,st=0;else if($>=Ct[Ct.length-1].t-this.offsetTime)ut=Ct[Ct.length-1].s?Ct[Ct.length-1].s[0]:Ct[Ct.length-2].e[0],mt=!0;else{for(var Et=st,dt=Ct.length-1,vt=!0,lt,ht,yt;vt&&(lt=Ct[Et],ht=Ct[Et+1],!(ht.t-this.offsetTime>$));)Et<dt-1?Et+=1:vt=!1;if(yt=this.keyframesMetadata[Et]||{},mt=lt.h===1,st=Et,!mt){if($>=ht.t-this.offsetTime)_t=1;else if($<lt.t-this.offsetTime)_t=0;else{var gt;yt.__fnct?gt=yt.__fnct:(gt=BezierFactory.getBezierEasing(lt.o.x,lt.o.y,lt.i.x,lt.i.y).get,yt.__fnct=gt),_t=gt(($-(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(wt=tt._length,Tt=ut.i[0].length,j.lastIndex=st,ft=0;ft<wt;ft+=1)for(St=0;St<Tt;St+=1)Pt=mt?ut.i[ft][St]:ut.i[ft][St]+(ct.i[ft][St]-ut.i[ft][St])*_t,tt.i[ft][St]=Pt,Pt=mt?ut.o[ft][St]:ut.o[ft][St]+(ct.o[ft][St]-ut.o[ft][St])*_t,tt.o[ft][St]=Pt,Pt=mt?ut.v[ft][St]:ut.v[ft][St]+(ct.v[ft][St]-ut.v[ft][St])*_t,tt.v[ft][St]=Pt}function i(){var $=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&&$<tt||st>j&&$>j)||(this._caching.lastIndex=st<$?this._caching.lastIndex:0,this.interpolateShape($,this.pv,this._caching)),this._caching.lastFrame=$,this.pv}function a(){this.paths=this.localShapeCollection}function o($,tt){if($._length!==tt._length||$.c!==tt.c)return!1;var j,st=$._length;for(j=0;j<st;j+=1)if($.v[j][0]!==tt.v[j][0]||$.v[j][1]!==tt.v[j][1]||$.o[j][0]!==tt.o[j][0]||$.o[j][1]!==tt.o[j][1]||$.i[j][0]!==tt.i[j][0]||$.i[j][1]!==tt.i[j][1])return!1;return!0}function c($){o(this.v,$)||(this.v=shapePool.clone($),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 $;this.kf?$=this.pv:this.data.ks?$=this.data.ks.k:$=this.data.pt.k;var tt,j=this.effectsSequence.length;for(tt=0;tt<j;tt+=1)$=this.effectsSequence[tt]($);this.setVValue($),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function _($,tt,j){this.propType="shape",this.comp=$.comp,this.container=$,this.elem=$,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($){this.effectsSequence.push($),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=$.comp,this.elem=$,this.container=$,this.offsetTime=$.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)]}_e.prototype.getValue=g,_e.prototype.interpolateShape=s,_e.prototype.setVValue=c,_e.prototype.addEffect=b;var et=function(){var $=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,mt=this.s.v[1]/2,ft=this.d!==3,St=this.v;St.v[0][0]=st,St.v[0][1]=ut-mt,St.v[1][0]=ft?st+ct:st-ct,St.v[1][1]=ut,St.v[2][0]=st,St.v[2][1]=ut+mt,St.v[3][0]=ft?st-ct:st+ct,St.v[3][1]=ut,St.i[0][0]=ft?st-ct*$:st+ct*$,St.i[0][1]=ut-mt,St.i[1][0]=ft?st+ct:st-ct,St.i[1][1]=ut-mt*$,St.i[2][0]=ft?st+ct*$:st-ct*$,St.i[2][1]=ut+mt,St.i[3][0]=ft?st-ct:st+ct,St.i[3][1]=ut+mt*$,St.o[0][0]=ft?st+ct*$:st-ct*$,St.o[0][1]=ut-mt,St.o[1][0]=ft?st+ct:st-ct,St.o[1][1]=ut+mt*$,St.o[2][0]=ft?st-ct*$:st+ct*$,St.o[2][1]=ut+mt,St.o[3][0]=ft?st-ct:st+ct,St.o[3][1]=ut-mt*$}},extendPrototype([DynamicPropertyContainer],tt),tt}(),at=function(){function $(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 $.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,mt=this.ir.v,ft=this.os.v,St=this.is.v,wt=2*Math.PI*ct/(j*2),Tt=2*Math.PI*mt/(j*2),_t,Pt,Ct,Et,dt=-Math.PI/2;dt+=this.r.v;var vt=this.data.d===3?-1:1;for(this.v._length=0,_t=0;_t<j;_t+=1){Pt=ut?ct:mt,Ct=ut?ft:St,Et=ut?wt:Tt;var lt=Pt*Math.cos(dt),ht=Pt*Math.sin(dt),yt=lt===0&&ht===0?0:ht/Math.sqrt(lt*lt+ht*ht),gt=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*Et*Ct*vt,ht-gt*Et*Ct*vt,lt+yt*Et*Ct*vt,ht+gt*Et*Ct*vt,_t,!0),ut=!ut,dt+=st*vt}},convertPolygonToPath:function(){var j=Math.floor(this.pt.v),st=Math.PI*2/j,ut=this.or.v,ct=this.os.v,mt=2*Math.PI*ut/(j*4),ft,St=-Math.PI*.5,wt=this.data.d===3?-1:1;for(St+=this.r.v,this.v._length=0,ft=0;ft<j;ft+=1){var Tt=ut*Math.cos(St),_t=ut*Math.sin(St),Pt=Tt===0&&_t===0?0:_t/Math.sqrt(Tt*Tt+_t*_t),Ct=Tt===0&&_t===0?0:-Tt/Math.sqrt(Tt*Tt+_t*_t);Tt+=+this.p.v[0],_t+=+this.p.v[1],this.v.setTripleAt(Tt,_t,Tt-Pt*mt*ct*wt,_t-Ct*mt*ct*wt,Tt+Pt*mt*ct*wt,_t+Ct*mt*ct*wt,ft,!0),St+=st*wt}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],$),$}(),rt=function(){function $(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 $.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,mt=bmMin(ut,ct,this.r.v),ft=mt*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(j+ut,st-ct+mt,j+ut,st-ct+mt,j+ut,st-ct+ft,0,!0),this.v.setTripleAt(j+ut,st+ct-mt,j+ut,st+ct-ft,j+ut,st+ct-mt,1,!0),mt!==0?(this.v.setTripleAt(j+ut-mt,st+ct,j+ut-mt,st+ct,j+ut-ft,st+ct,2,!0),this.v.setTripleAt(j-ut+mt,st+ct,j-ut+ft,st+ct,j-ut+mt,st+ct,3,!0),this.v.setTripleAt(j-ut,st+ct-mt,j-ut,st+ct-mt,j-ut,st+ct-ft,4,!0),this.v.setTripleAt(j-ut,st-ct+mt,j-ut,st-ct+ft,j-ut,st-ct+mt,5,!0),this.v.setTripleAt(j-ut+mt,st-ct,j-ut+mt,st-ct,j-ut+ft,st-ct,6,!0),this.v.setTripleAt(j+ut-mt,st-ct,j+ut-ft,st-ct,j+ut-mt,st-ct,7,!0)):(this.v.setTripleAt(j-ut,st+ct,j-ut+ft,st+ct,j-ut,st+ct,2),this.v.setTripleAt(j-ut,st-ct,j-ut,st-ct+ft,j-ut,st-ct,3))):(this.v.setTripleAt(j+ut,st-ct+mt,j+ut,st-ct+ft,j+ut,st-ct+mt,0,!0),mt!==0?(this.v.setTripleAt(j+ut-mt,st-ct,j+ut-mt,st-ct,j+ut-ft,st-ct,1,!0),this.v.setTripleAt(j-ut+mt,st-ct,j-ut+ft,st-ct,j-ut+mt,st-ct,2,!0),this.v.setTripleAt(j-ut,st-ct+mt,j-ut,st-ct+mt,j-ut,st-ct+ft,3,!0),this.v.setTripleAt(j-ut,st+ct-mt,j-ut,st+ct-ft,j-ut,st+ct-mt,4,!0),this.v.setTripleAt(j-ut+mt,st+ct,j-ut+mt,st+ct,j-ut+ft,st+ct,5,!0),this.v.setTripleAt(j+ut-mt,st+ct,j+ut-ft,st+ct,j+ut-mt,st+ct,6,!0),this.v.setTripleAt(j+ut,st+ct-mt,j+ut,st+ct-mt,j+ut,st+ct-ft,7,!0)):(this.v.setTripleAt(j-ut,st-ct,j-ut+ft,st-ct,j-ut,st-ct,1,!0),this.v.setTripleAt(j-ut,st+ct,j-ut,st+ct-ft,j-ut,st+ct,2,!0),this.v.setTripleAt(j+ut,st+ct,j+ut-ft,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],$),$}();function ot($,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 _($,tt,j)}else j===5?st=new rt($,tt):j===6?st=new et($,tt):j===7&&(st=new at($,tt));return st.k&&$.addDynamicProperty(st),st}function it(){return _}function nt(){return _e}var pt={};return pt.getShapeProp=ot,pt.getConstructorFunction=it,pt.getKeyframedConstructorFunction=nt,pt}();/*!
|
|
42
|
+
Transformation Matrix v2.0
|
|
43
|
+
(c) Epistemex 2014-2015
|
|
44
|
+
www.epistemex.com
|
|
45
|
+
By Ken Fyrstenberg
|
|
46
|
+
Contributions by leeoniya.
|
|
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 _e(lt,ht){return this._t(1,ht,lt,1,0,0)}function et(lt,ht){return this.shear(i(lt),i(ht))}function at(lt,ht){var yt=e(ht),gt=s(ht);return this._t(yt,gt,0,0,-gt,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,-gt,0,0,gt,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 ot(lt,ht,yt,gt,kt,xt,bt,It,Rt,Bt,Mt,Ft,Lt,Vt,Kt,Gt){return this.props[0]=lt,this.props[1]=ht,this.props[2]=yt,this.props[3]=gt,this.props[4]=kt,this.props[5]=xt,this.props[6]=bt,this.props[7]=It,this.props[8]=Rt,this.props[9]=Bt,this.props[10]=Mt,this.props[11]=Ft,this.props[12]=Lt,this.props[13]=Vt,this.props[14]=Kt,this.props[15]=Gt,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,gt,kt,xt,bt,It,Rt,Bt,Mt,Ft,Lt,Vt,Kt,Gt){var Dt=this.props;if(lt===1&&ht===0&&yt===0&>===0&&kt===0&&xt===1&&bt===0&&It===0&&Rt===0&&Bt===0&&Mt===1&&Ft===0)return Dt[12]=Dt[12]*lt+Dt[15]*Lt,Dt[13]=Dt[13]*xt+Dt[15]*Vt,Dt[14]=Dt[14]*Mt+Dt[15]*Kt,Dt[15]*=Gt,this._identityCalculated=!1,this;var Ut=Dt[0],Zt=Dt[1],rr=Dt[2],Qt=Dt[3],Wt=Dt[4],Ot=Dt[5],Nt=Dt[6],jt=Dt[7],zt=Dt[8],Yt=Dt[9],qt=Dt[10],er=Dt[11],or=Dt[12],ir=Dt[13],ar=Dt[14],sr=Dt[15];return Dt[0]=Ut*lt+Zt*kt+rr*Rt+Qt*Lt,Dt[1]=Ut*ht+Zt*xt+rr*Bt+Qt*Vt,Dt[2]=Ut*yt+Zt*bt+rr*Mt+Qt*Kt,Dt[3]=Ut*gt+Zt*It+rr*Ft+Qt*Gt,Dt[4]=Wt*lt+Ot*kt+Nt*Rt+jt*Lt,Dt[5]=Wt*ht+Ot*xt+Nt*Bt+jt*Vt,Dt[6]=Wt*yt+Ot*bt+Nt*Mt+jt*Kt,Dt[7]=Wt*gt+Ot*It+Nt*Ft+jt*Gt,Dt[8]=zt*lt+Yt*kt+qt*Rt+er*Lt,Dt[9]=zt*ht+Yt*xt+qt*Bt+er*Vt,Dt[10]=zt*yt+Yt*bt+qt*Mt+er*Kt,Dt[11]=zt*gt+Yt*It+qt*Ft+er*Gt,Dt[12]=or*lt+ir*kt+ar*Rt+sr*Lt,Dt[13]=or*ht+ir*xt+ar*Bt+sr*Vt,Dt[14]=or*yt+ir*bt+ar*Mt+sr*Kt,Dt[15]=or*gt+ir*It+ar*Ft+sr*Gt,this._identityCalculated=!1,this}function pt(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 $(){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 mt(lt,ht,yt){return lt*this.props[1]+ht*this.props[5]+yt*this.props[9]+this.props[13]}function ft(lt,ht,yt){return lt*this.props[2]+ht*this.props[6]+yt*this.props[10]+this.props[14]}function St(){var lt=this.props[0]*this.props[5]-this.props[1]*this.props[4],ht=this.props[5]/lt,yt=-this.props[1]/lt,gt=-this.props[4]/lt,kt=this.props[0]/lt,xt=(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,It=new Matrix;return It.props[0]=ht,It.props[1]=yt,It.props[4]=gt,It.props[5]=kt,It.props[12]=xt,It.props[13]=bt,It}function wt(lt){var ht=this.getInverseMatrix();return ht.applyToPointArray(lt[0],lt[1],lt[2]||0)}function Tt(lt){var ht,yt=lt.length,gt=[];for(ht=0;ht<yt;ht+=1)gt[ht]=wt(lt[ht]);return gt}function _t(lt,ht,yt){var gt=createTypedArray("float32",6);if(this.isIdentity())gt[0]=lt[0],gt[1]=lt[1],gt[2]=ht[0],gt[3]=ht[1],gt[4]=yt[0],gt[5]=yt[1];else{var kt=this.props[0],xt=this.props[1],bt=this.props[4],It=this.props[5],Rt=this.props[12],Bt=this.props[13];gt[0]=lt[0]*kt+lt[1]*bt+Rt,gt[1]=lt[0]*xt+lt[1]*It+Bt,gt[2]=ht[0]*kt+ht[1]*bt+Rt,gt[3]=ht[0]*xt+ht[1]*It+Bt,gt[4]=yt[0]*kt+yt[1]*bt+Rt,gt[5]=yt[0]*xt+yt[1]*It+Bt}return gt}function Pt(lt,ht,yt){var gt;return this.isIdentity()?gt=[lt,ht,yt]:gt=[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]],gt}function Ct(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 Et(){for(var lt=0,ht=this.props,yt="matrix3d(",gt=1e4;lt<16;)yt+=a(ht[lt]*gt)/gt,yt+=lt===15?")":",",lt+=1;return yt}function dt(lt){var ht=1e4;return lt<1e-6&<>0||lt>-1e-6&<<0?a(lt*ht)/ht:lt}function vt(){var lt=this.props,ht=dt(lt[0]),yt=dt(lt[1]),gt=dt(lt[4]),kt=dt(lt[5]),xt=dt(lt[12]),bt=dt(lt[13]);return"matrix("+ht+","+yt+","+gt+","+kt+","+xt+","+bt+")"}return function(){this.reset=o,this.rotate=c,this.rotateX=g,this.rotateY=_,this.rotateZ=b,this.skew=et,this.skewFromAxis=at,this.shear=_e,this.scale=rt,this.setTransform=ot,this.translate=it,this.transform=nt,this.multiply=pt,this.applyToPoint=ut,this.applyToX=ct,this.applyToY=mt,this.applyToZ=ft,this.applyToPointArray=Pt,this.applyToTriplePoints=_t,this.applyToPointStringified=Ct,this.toCSS=Et,this.to2dCSS=vt,this.clone=j,this.cloneFromProps=st,this.equals=tt,this.inversePoints=Tt,this.inversePoint=wt,this.getInverseMatrix=St,this._t=this.transform,this.isIdentity=$,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,_e;for(_=0;_<b;_+=1)if(_e=c[_],!(_e.e*o<a||_e.s*o>a+i)){var et,at;_e.s*o<=a?et=0:et=(_e.s*o-a)/i,_e.e*o>=a+i?at=1:at=(_e.e*o-a)/i,g.push([et,at])}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,_e,et,at,rt,ot=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,pt;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,_e=c._length,rt=0,!nt.shape._mdf&&nt.pathsData.length)rt=nt.totalShapeLength;else{for(et=this.releasePathsData(nt.pathsData),b=0;b<_e;b+=1)at=bez.getSegmentsLength(c.shapes[b]),et.push(at),rt+=at.totalLength;nt.totalShapeLength=rt,nt.pathsData=et}ot+=rt,nt.shape._mdf=!0}var $=s,tt=i,j=0,st;for(g=_-1;g>=0;g-=1)if(nt=this.shapes[g],nt.shape._mdf){for(pt=nt.localShapeCollection,pt.releaseShapes(),this.m===2&&_>1?(st=this.calculateShapeEdges(s,i,nt.totalShapeLength,j,ot),j+=nt.totalShapeLength):st=[[$,tt]],_e=st.length,b=0;b<_e;b+=1){$=st[b][0],tt=st[b][1],it.length=0,tt<=1?it.push({s:nt.totalShapeLength*$,e:nt.totalShapeLength*tt}):$>=1?it.push({s:nt.totalShapeLength*($-1),e:nt.totalShapeLength*(tt-1)}):(it.push({s:nt.totalShapeLength*$,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 mt=ut.pop();this.addPaths(ut,pt),ut=this.addShapes(nt,it[1],mt)}else this.addPaths(ut,pt),ut=this.addShapes(nt,it[1])}this.addPaths(ut,pt)}}nt.shape.paths=pt}}},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,_e=0,et,at,rt,ot,it=[],nt,pt=!0;for(i?(at=i._length,nt=i._length):(i=shapePool.newElement(),at=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],_e+et.addedLength<s.s)_e+=et.addedLength,i.c=!1;else if(_e>s.e){i.c=!1;break}else s.s<=_e&&s.e>=_e+et.addedLength?(this.addSegment(o[c].v[_-1],o[c].o[_-1],o[c].i[_],o[c].v[_],i,at,pt),pt=!1):(ot=bez.getNewSegment(o[c].v[_-1],o[c].v[_],o[c].o[_-1],o[c].i[_],(s.s-_e)/et.addedLength,(s.e-_e)/et.addedLength,rt[_-1]),this.addSegmentFromArray(ot,i,at,pt),pt=!1,i.c=!1),_e+=et.addedLength,at+=1;if(o[c].c&&rt.length){if(et=rt[_-1],_e<=s.e){var $=rt[_-1].addedLength;s.s<=_e&&s.e>=_e+$?(this.addSegment(o[c].v[_-1],o[c].o[_-1],o[c].i[0],o[c].v[0],i,at,pt),pt=!1):(ot=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(ot,i,at,pt),pt=!1,i.c=!1)}else i.c=!1;_e+=et.addedLength,at+=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)),_e>s.e)break;c<g-1&&(i=shapePool.newElement(),pt=!0,it.push(i),at=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,_e,et,at,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=e.o[c][0]+(a[0]-e.o[c][0])*-i,et=e.o[c][1]+(a[1]-e.o[c][1])*-i,at=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,_e,et,at,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 _e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||_e,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 _e;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,at;if(_e=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)/_e,0),at=this.p.getValueAtTime(this.p.keyframes[0].t/_e,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/_e,0),at=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/_e,0)):(et=this.p.pv,at=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/_e,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){et=[],at=[];var rt=this.px,ot=this.py;rt._caching.lastFrame+rt.offsetTime<=rt.keyframes[0].t?(et[0]=rt.getValueAtTime((rt.keyframes[0].t+.01)/_e,0),et[1]=ot.getValueAtTime((ot.keyframes[0].t+.01)/_e,0),at[0]=rt.getValueAtTime(rt.keyframes[0].t/_e,0),at[1]=ot.getValueAtTime(ot.keyframes[0].t/_e,0)):rt._caching.lastFrame+rt.offsetTime>=rt.keyframes[rt.keyframes.length-1].t?(et[0]=rt.getValueAtTime(rt.keyframes[rt.keyframes.length-1].t/_e,0),et[1]=ot.getValueAtTime(ot.keyframes[ot.keyframes.length-1].t/_e,0),at[0]=rt.getValueAtTime((rt.keyframes[rt.keyframes.length-1].t-.01)/_e,0),at[1]=ot.getValueAtTime((ot.keyframes[ot.keyframes.length-1].t-.01)/_e,0)):(et=[rt.pv,ot.pv],at[0]=rt.getValueAtTime((rt._caching.lastFrame+rt.offsetTime-.01)/_e,rt.offsetTime),at[1]=ot.getValueAtTime((ot._caching.lastFrame+ot.offsetTime-.01)/_e,ot.offsetTime))}else at=e,et=at;this.v.rotate(-Math.atan2(et[1]-at[1],et[0]-at[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,_e,et){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=_e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(et||b),_e.p&&_e.p.s?(this.px=PropertyFactory.getProp(b,_e.p.x,0,0,this),this.py=PropertyFactory.getProp(b,_e.p.y,0,0,this),_e.p.z&&(this.pz=PropertyFactory.getProp(b,_e.p.z,0,0,this))):this.p=PropertyFactory.getProp(b,_e.p||{k:[0,0,0]},1,0,this),_e.rx){if(this.rx=PropertyFactory.getProp(b,_e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(b,_e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(b,_e.rz,0,degToRads,this),_e.or.k[0].ti){var at,rt=_e.or.k.length;for(at=0;at<rt;at+=1)_e.or.k[at].to=null,_e.or.k[at].ti=null}this.or=PropertyFactory.getProp(b,_e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(b,_e.r||{k:0},0,degToRads,this);_e.sk&&(this.sk=PropertyFactory.getProp(b,_e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(b,_e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(b,_e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(b,_e.s||{k:[100,100,100]},1,.01,this),_e.o?this.o=PropertyFactory.getProp(b,_e.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,_e,et){return new g(b,_e,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 _e;for(a=0;a<=this._groups.length-1;a+=1){if(_e=c<_,this._groups[a]._render=_e,this.changeGroupRender(this._groups[a].it,_e),!_e){var et=this.elemsData[a].it,at=et[et.length-1];at.transform.op.v!==0?(at.transform.op._mdf=!0,at.transform.op.v=0):at.transform.op._mdf=!1}c+=1}this._currentCopies=_;var rt=this.o.v,ot=rt%1,it=rt>0?Math.floor(rt):Math.ceil(rt),nt=this.pMatrix.props,pt=this.rMatrix.props,$=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;ot&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,ot,!1),tt+=ot)}else if(rt<0){for(;tt>it;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),tt-=1;ot&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-ot,!0),tt-=ot)}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(pt[0],pt[1],pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],pt[8],pt[9],pt[10],pt[11],pt[12],pt[13],pt[14],pt[15]),this.matrix.transform($[0],$[1],$[2],$[3],$[4],$[5],$[6],$[7],$[8],$[9],$[10],$[11],$[12],$[13],$[14],$[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,_e,et,at=0,rt,ot,it,nt,pt,$;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],at),at+=1):(a===0?b=e.v[o-1]:b=e.v[a-1],_e=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),et=_e?Math.min(_e/2,s)/_e:0,pt=c[0]+(b[0]-c[0])*et,rt=pt,$=c[1]-(c[1]-b[1])*et,ot=$,it=rt-(rt-c[0])*roundCorner,nt=ot-(ot-c[1])*roundCorner,i.setTripleAt(rt,ot,it,nt,pt,$,at),at+=1,a===o-1?b=e.v[0]:b=e.v[a+1],_e=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),et=_e?Math.min(_e/2,s)/_e:0,it=c[0]+(b[0]-c[0])*et,rt=it,nt=c[1]+(b[1]-c[1])*et,ot=nt,pt=rt-(rt-c[0])*roundCorner,$=ot-(ot-c[1])*roundCorner,i.setTripleAt(rt,ot,it,nt,pt,$,at),at+=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],at),at+=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,_e=s[0]+Math.cos(i)*a*o,et=s[1]-Math.sin(i)*a*o;e.setTripleAt(_e,et,_e+Math.cos(_)*c,et-Math.sin(_)*c,_e+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],_e=s.v[i===0?s._length-1:i-1],et=s.v[(i+1)%s._length],at=c===2?Math.sqrt(Math.pow(b[0]-_e[0],2)+Math.pow(b[1]-_e[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),at/((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,_e=s.normalAngle(_),et=s.point(_);setPoint(e,et,_e,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 _e,et;for(i=0;i<a;i+=1){if(_e=this.shapes[i],et=_e.localShapeCollection,!(!_e.shape._mdf&&!this._mdf&&!e))for(et.releaseShapes(),_e.shape._mdf=!0,s=_e.shape.paths.shapes,c=_e.shape.paths._length,o=0;o<c;o+=1)et.addShape(this.processPath(s[o],g,_,b));_e.shape.paths=_e.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 _e=lineIntersection(i,a,o,c);_e===null&&(_e=a);var et=lineIntersection(g,_,o,c);return et===null&&(et=g),new PolynomialBezier(i,_e,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,_e=lineIntersection(c,polarOffset(c,_+Math.PI/2,100),g,polarOffset(g,_+Math.PI/2,100)),et=_e?pointDistance(_e,c):pointDistance(c,g)/2,at=polarOffset(c,_,2*et*roundCorner);return e.setXYAt(at[0],at[1],"o",e.length()-1),at=polarOffset(g,b,2*et*roundCorner),e.setTripleAt(g[0],g[1],g[0],g[1],at[0],at[1],e.length()),g}var rt=pointEqual(c,s.points[2])?s.points[0]:s.points[2],ot=pointEqual(g,i.points[1])?i.points[3]:i.points[1],it=lineIntersection(rt,c,g,ot);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,_e=[];for(g=0;g<c;g+=1)b=PolynomialBezier.shapeSegment(e,g),_e.push(offsetSegmentSplit(b,s));if(!e.c)for(g=c-1;g>=0;g-=1)b=PolynomialBezier.shapeSegmentInverted(e,g),_e.push(offsetSegmentSplit(b,s));_e=pruneIntersections(_e);var et=null,at=null;for(g=0;g<_e.length;g+=1){var rt=_e[g];for(at&&(et=joinLines(o,at,rt[0],i,a)),at=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 _e.length&&joinLines(o,at,_e[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 _e,et;for(i=0;i<a;i+=1){if(_e=this.shapes[i],et=_e.localShapeCollection,!(!_e.shape._mdf&&!this._mdf&&!e))for(et.releaseShapes(),_e.shape._mdf=!0,s=_e.shape.paths.shapes,c=_e.shape.paths._length,o=0;o<c;o+=1)et.addShape(this.processPath(s[o],g,b,_));_e.shape.paths=_e.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,_e=127462,et=127487,at=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function rt(dt){var vt=dt.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 ot(dt,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(dt)+", "+vt,{node:ht,w:yt,parent:lt}}function it(){var dt,vt=this.fonts.length,lt,ht,yt=vt;for(dt=0;dt<vt;dt+=1)this.fonts[dt].loaded?yt-=1:this.fonts[dt].fOrigin==="n"||this.fonts[dt].origin===0?this.fonts[dt].loaded=!0:(lt=this.fonts[dt].monoCase.node,ht=this.fonts[dt].monoCase.w,lt.offsetWidth!==ht?(yt-=1,this.fonts[dt].loaded=!0):(lt=this.fonts[dt].sansCase.node,ht=this.fonts[dt].sansCase.w,lt.offsetWidth!==ht&&(yt-=1,this.fonts[dt].loaded=!0)),this.fonts[dt].loaded&&(this.fonts[dt].sansCase.parent.parentNode.removeChild(this.fonts[dt].sansCase.parent),this.fonts[dt].monoCase.parent.parentNode.removeChild(this.fonts[dt].monoCase.parent)));yt!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function nt(dt,vt){var lt=document.body&&vt?"svg":"canvas",ht,yt=getFontProperties(dt);if(lt==="svg"){var gt=createNS("text");gt.style.fontSize="100px",gt.setAttribute("font-family",dt.fFamily),gt.setAttribute("font-style",yt.style),gt.setAttribute("font-weight",yt.weight),gt.textContent="1",dt.fClass?(gt.style.fontFamily="inherit",gt.setAttribute("class",dt.fClass)):gt.style.fontFamily=dt.fFamily,vt.appendChild(gt),ht=gt}else{var kt=new OffscreenCanvas(500,500).getContext("2d");kt.font=yt.style+" "+yt.weight+" 100px "+dt.fFamily,ht=kt}function xt(bt){return lt==="svg"?(ht.textContent=bt,ht.getComputedTextLength()):ht.measureText(bt).width}return{measureText:xt}}function pt(dt,vt){if(!dt){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=dt.list;return}if(!document.body){this.isLoaded=!0,dt.list.forEach(function(Mt){Mt.helper=nt(Mt),Mt.cache={}}),this.fonts=dt.list;return}var lt=dt.list,ht,yt=lt.length,gt=yt;for(ht=0;ht<yt;ht+=1){var kt=!0,xt,bt;if(lt[ht].loaded=!1,lt[ht].monoCase=ot(lt[ht].fFamily,"monospace"),lt[ht].sansCase=ot(lt[ht].fFamily,"sans-serif"),!lt[ht].fPath)lt[ht].loaded=!0,gt-=1;else if(lt[ht].fOrigin==="p"||lt[ht].origin===3){if(xt=document.querySelectorAll('style[f-forigin="p"][f-family="'+lt[ht].fFamily+'"], style[f-origin="3"][f-family="'+lt[ht].fFamily+'"]'),xt.length>0&&(kt=!1),kt){var It=createTag("style");It.setAttribute("f-forigin",lt[ht].fOrigin),It.setAttribute("f-origin",lt[ht].origin),It.setAttribute("f-family",lt[ht].fFamily),It.type="text/css",It.innerText="@font-face {font-family: "+lt[ht].fFamily+"; font-style: normal; src: url('"+lt[ht].fPath+"');}",vt.appendChild(It)}}else if(lt[ht].fOrigin==="g"||lt[ht].origin===1){for(xt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),bt=0;bt<xt.length;bt+=1)xt[bt].href.indexOf(lt[ht].fPath)!==-1&&(kt=!1);if(kt){var Rt=createTag("link");Rt.setAttribute("f-forigin",lt[ht].fOrigin),Rt.setAttribute("f-origin",lt[ht].origin),Rt.type="text/css",Rt.rel="stylesheet",Rt.href=lt[ht].fPath,document.body.appendChild(Rt)}}else if(lt[ht].fOrigin==="t"||lt[ht].origin===2){for(xt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),bt=0;bt<xt.length;bt+=1)lt[ht].fPath===xt[bt].src&&(kt=!1);if(kt){var Bt=createTag("link");Bt.setAttribute("f-forigin",lt[ht].fOrigin),Bt.setAttribute("f-origin",lt[ht].origin),Bt.setAttribute("rel","stylesheet"),Bt.setAttribute("href",lt[ht].fPath),vt.appendChild(Bt)}}lt[ht].helper=nt(lt[ht],vt),lt[ht].cache={},this.fonts.push(lt[ht])}gt===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function $(dt){if(dt){this.chars||(this.chars=[]);var vt,lt=dt.length,ht,yt=this.chars.length,gt;for(vt=0;vt<lt;vt+=1){for(ht=0,gt=!1;ht<yt;)this.chars[ht].style===dt[vt].style&&this.chars[ht].fFamily===dt[vt].fFamily&&this.chars[ht].ch===dt[vt].ch&&(gt=!0),ht+=1;gt||(this.chars.push(dt[vt]),yt+=1)}}}function tt(dt,vt,lt){for(var ht=0,yt=this.chars.length;ht<yt;){if(this.chars[ht].ch===dt&&this.chars[ht].style===vt&&this.chars[ht].fFamily===lt)return this.chars[ht];ht+=1}return(typeof dt=="string"&&dt.charCodeAt(0)!==13||!dt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",dt,vt,lt)),s}function j(dt,vt,lt){var ht=this.getFontByName(vt),yt=dt;if(!ht.cache[yt]){var gt=ht.helper;if(dt===" "){var kt=gt.measureText("|"+dt+"|"),xt=gt.measureText("||");ht.cache[yt]=(kt-xt)/100}else ht.cache[yt]=gt.measureText(dt)/100}return ht.cache[yt]*lt}function st(dt){for(var vt=0,lt=this.fonts.length;vt<lt;){if(this.fonts[vt].fName===dt)return this.fonts[vt];vt+=1}return this.fonts[0]}function ut(dt){var vt=0,lt=dt.charCodeAt(0);if(lt>=55296&<<=56319){var ht=dt.charCodeAt(1);ht>=56320&&ht<=57343&&(vt=(lt-55296)*1024+ht-56320+65536)}return vt}function ct(dt,vt){var lt=dt.toString(16)+vt.toString(16);return at.indexOf(lt)!==-1}function mt(dt){return dt===b}function ft(dt){return dt===_}function St(dt){var vt=ut(dt);return vt>=_e&&vt<=et}function wt(dt){return St(dt.substr(0,2))&&St(dt.substr(2,2))}function Tt(dt){return i.indexOf(dt)!==-1}function _t(dt,vt){var lt=ut(dt.substr(vt,2));if(lt!==a)return!1;var ht=0;for(vt+=2;ht<5;){if(lt=ut(dt.substr(vt,2)),lt<c||lt>g)return!1;ht+=1,vt+=2}return ut(dt.substr(vt,2))===o}function Pt(){this.isLoaded=!0}var Ct=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)};Ct.isModifier=ct,Ct.isZeroWidthJoiner=mt,Ct.isFlagEmoji=wt,Ct.isRegionalCode=St,Ct.isCombinedCharacter=Tt,Ct.isRegionalFlag=_t,Ct.isVariationSelector=ft,Ct.BLACK_FLAG_CODE_POINT=a;var Et={addChars:$,addFonts:pt,getCharData:tt,getFontByName:st,measureText:j,checkLoadedFonts:it,setIsLoaded:Pt};return Ct.prototype=Et,Ct}();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,_e=[],et,at,rt=createElementID(),ot,it,nt,pt,$="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)&&($="mask",tt="mask"),(_[o].mode==="s"||_[o].mode==="i")&&b===0?(ot=createNS("rect"),ot.setAttribute("fill","#ffffff"),ot.setAttribute("width",this.element.comp.data.w||0),ot.setAttribute("height",this.element.comp.data.h||0),_e.push(ot)):ot=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?($="mask",tt="mask",pt=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,pt=null),this.storedData[o]={elem:g,x:pt,expan:nt,lastPath:"",lastOperator:"",filterId:j,lastRadius:0},_[o].mode==="i"){at=_e.length;var st=createNS("g");for(et=0;et<at;et+=1)st.appendChild(_e[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+")"),_e.length=0,_e.push(st)}else _e.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:ot},this.viewData[o].prop.k||this.drawPath(_[o],this.viewData[o].prop.v,this.viewData[o])}for(this.maskElement=createNS($),c=_e.length,o=0;o<c;o+=1)this.maskElement.appendChild(_e[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 _e=registeredEffects$1[b].effect;_=new _e(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 _e=createNS("g");b.appendChild(_e),a=createElementID(),o=filtersFactory.createFilter(a);var et=createNS("feComponentTransfer");et.setAttribute("in","SourceGraphic"),o.appendChild(et);var at=createNS("feFuncA");at.setAttribute("type","table"),at.setAttribute("tableValues","1.0 0.0"),et.appendChild(at),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"),_e.setAttribute("filter","url("+getLocationHref()+"#"+a+")"),_e.appendChild(rt),c=createNS("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),_e.appendChild(c),featureSupport.maskType||(b.setAttribute("mask-type","luminance"),o.appendChild(filtersFactory.createAlphaToLuminanceFilter()),g=createNS("g"),_e.appendChild(rt),g.appendChild(this.layerElement),_e.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 _e=createNS(e.t===1?"linearGradient":"radialGradient");_e.setAttribute("id",_),_e.setAttribute("spreadMethod","pad"),_e.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)"),_e.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=_e,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,_e=" M"+o.applyToPointStringified(_[0][0],_[0][1]);for(b=1;b<i;b+=1)_e+=" 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&&(_e+=" 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]),_e+="z"),_e},SVGElementsRenderer=function(){var e=new Matrix,s=new Matrix,i={createRenderFunction:a};function a(at){switch(at.ty){case"fl":return _;case"gf":return _e;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(at,rt,ot){(ot||rt.transform.op._mdf)&&rt.transform.container.setAttribute("opacity",rt.transform.op.v),(ot||rt.transform.mProps._mdf)&&rt.transform.container.setAttribute("transform",rt.transform.mProps.v.to2dCSS())}function c(){}function g(at,rt,ot){var it,nt,pt,$,tt,j,st=rt.styles.length,ut=rt.lvl,ct,mt,ft,St;for(j=0;j<st;j+=1){if($=rt.sh._mdf||ot,rt.styles[j].lvl<ut){for(mt=s.reset(),ft=ut-rt.styles[j].lvl,St=rt.transformers.length-1;!$&&ft>0;)$=rt.transformers[St].mProps._mdf||$,ft-=1,St-=1;if($)for(ft=ut-rt.styles[j].lvl,St=rt.transformers.length-1;ft>0;)mt.multiply(rt.transformers[St].mProps.v),ft-=1,St-=1}else mt=e;if(ct=rt.sh.paths,nt=ct._length,$){for(pt="",it=0;it<nt;it+=1)tt=ct.shapes[it],tt&&tt._length&&(pt+=buildShapeString(tt,tt._length,tt.c,mt));rt.caches[j]=pt}else pt=rt.caches[j];rt.styles[j].d+=at.hd===!0?"":pt,rt.styles[j]._mdf=$||rt.styles[j]._mdf}}function _(at,rt,ot){var it=rt.style;(rt.c._mdf||ot)&&it.pElem.setAttribute("fill","rgb("+bmFloor(rt.c.v[0])+","+bmFloor(rt.c.v[1])+","+bmFloor(rt.c.v[2])+")"),(rt.o._mdf||ot)&&it.pElem.setAttribute("fill-opacity",rt.o.v)}function b(at,rt,ot){_e(at,rt,ot),et(at,rt,ot)}function _e(at,rt,ot){var it=rt.gf,nt=rt.g._hasOpacity,pt=rt.s.v,$=rt.e.v;if(rt.o._mdf||ot){var tt=at.ty==="gf"?"fill-opacity":"stroke-opacity";rt.style.pElem.setAttribute(tt,rt.o.v)}if(rt.s._mdf||ot){var j=at.t===1?"x1":"cx",st=j==="x1"?"y1":"cy";it.setAttribute(j,pt[0]),it.setAttribute(st,pt[1]),nt&&!rt.g._collapsable&&(rt.of.setAttribute(j,pt[0]),rt.of.setAttribute(st,pt[1]))}var ut,ct,mt,ft;if(rt.g._cmdf||ot){ut=rt.cst;var St=rt.g.c;for(mt=ut.length,ct=0;ct<mt;ct+=1)ft=ut[ct],ft.setAttribute("offset",St[ct*4]+"%"),ft.setAttribute("stop-color","rgb("+St[ct*4+1]+","+St[ct*4+2]+","+St[ct*4+3]+")")}if(nt&&(rt.g._omdf||ot)){var wt=rt.g.o;for(rt.g._collapsable?ut=rt.cst:ut=rt.ost,mt=ut.length,ct=0;ct<mt;ct+=1)ft=ut[ct],rt.g._collapsable||ft.setAttribute("offset",wt[ct*2]+"%"),ft.setAttribute("stop-opacity",wt[ct*2+1])}if(at.t===1)(rt.e._mdf||ot)&&(it.setAttribute("x2",$[0]),it.setAttribute("y2",$[1]),nt&&!rt.g._collapsable&&(rt.of.setAttribute("x2",$[0]),rt.of.setAttribute("y2",$[1])));else{var Tt;if((rt.s._mdf||rt.e._mdf||ot)&&(Tt=Math.sqrt(Math.pow(pt[0]-$[0],2)+Math.pow(pt[1]-$[1],2)),it.setAttribute("r",Tt),nt&&!rt.g._collapsable&&rt.of.setAttribute("r",Tt)),rt.s._mdf||rt.e._mdf||rt.h._mdf||rt.a._mdf||ot){Tt||(Tt=Math.sqrt(Math.pow(pt[0]-$[0],2)+Math.pow(pt[1]-$[1],2)));var _t=Math.atan2($[1]-pt[1],$[0]-pt[0]),Pt=rt.h.v;Pt>=1?Pt=.99:Pt<=-1&&(Pt=-.99);var Ct=Tt*Pt,Et=Math.cos(_t+rt.a.v)*Ct+pt[0],dt=Math.sin(_t+rt.a.v)*Ct+pt[1];it.setAttribute("fx",Et),it.setAttribute("fy",dt),nt&&!rt.g._collapsable&&(rt.of.setAttribute("fx",Et),rt.of.setAttribute("fy",dt))}}}function et(at,rt,ot){var it=rt.style,nt=rt.d;nt&&(nt._mdf||ot)&&nt.dashStr&&(it.pElem.setAttribute("stroke-dasharray",nt.dashStr),it.pElem.setAttribute("stroke-dashoffset",nt.dashoffset[0])),rt.c&&(rt.c._mdf||ot)&&it.pElem.setAttribute("stroke","rgb("+bmFloor(rt.c.v[0])+","+bmFloor(rt.c.v[1])+","+bmFloor(rt.c.v[2])+")"),(rt.o._mdf||ot)&&it.pElem.setAttribute("stroke-opacity",rt.o.v),(rt.w._mdf||ot)&&(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=e.length-1,et,at,rt=[],ot=[],it,nt,pt;for(b=_e;b>=0;b-=1){if(pt=this.searchProcessedElement(e[b]),pt?s[b]=i[pt-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")pt?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(!pt)s[b]=this.createGroupElement(e[b]);else for(at=s[b].it.length,et=0;et<at;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"?(pt||(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"?(pt||(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"?(pt?(nt=s[b],nt.closed=!1):(nt=ShapeModifiers.getModifier(e[b].ty),nt.init(this,e[b]),s[b]=nt,this.shapeModifiers.push(nt)),ot.push(nt)):e[b].ty==="rp"&&(pt?(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),ot.push(nt));this.addProcessedElement(e[b],b+1)}for(_e=rt.length,b=0;b<_e;b+=1)rt[b].closed=!0;for(_e=ot.length,b=0;b<_e;b+=1)ot[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,_e=i.m.g,et=0,at=0,rt=0,ot=[],it=0,nt=0,pt,$,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,mt;if(e.sz)for(var ft=!0,St=e.sz[0],wt=e.sz[1],Tt,_t;ft;){_t=this.buildFinalText(e.t),Tt=0,it=0,c=_t.length,ct=e.tr/1e3*e.finalSize;var Pt=-1;for(o=0;o<c;o+=1)mt=_t[o].charCodeAt(0),g=!1,_t[o]===" "?Pt=o:(mt===13||mt===3)&&(it=0,g=!0,Tt+=e.finalLineHeight||e.finalSize*1.2),s.chars?(j=s.getCharData(_t[o],tt.fStyle,tt.fFamily),st=g?0:j.w*e.finalSize/100):st=s.measureText(_t[o],e.f,e.finalSize),it+st>St&&_t[o]!==" "?(Pt===-1?c+=1:o=Pt,Tt+=e.finalLineHeight||e.finalSize*1.2,_t.splice(o,Pt===o?1:0,"\r"),Pt=-1,it=0):(it+=st,it+=ct);Tt+=tt.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&wt<Tt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=_t,c=e.finalText.length,ft=!1)}it=-ct,st=0;var Ct=0,Et;for(o=0;o<c;o+=1)if(g=!1,Et=e.finalText[o],mt=Et.charCodeAt(0),mt===13||mt===3?(Ct=0,ot.push(it),nt=it>nt?it:nt,it=-2*ct,b="",g=!0,rt+=1):b=Et,s.chars?(j=s.getCharData(Et,tt.fStyle,s.getFontByName(e.f).fFamily),st=g?0:j.w*e.finalSize/100):st=s.measureText(b,e.f,e.finalSize),Et===" "?Ct+=st+ct:(it+=st+ct+Ct,Ct=0),a.push({l:st,an:st,add:et,n:g,anIndexes:[],val:b,line:rt,animatorJustifyOffset:0}),_e==2){if(et+=st,b===""||b===" "||o===c-1){for((b===""||b===" ")&&(et-=st);at<=o;)a[at].an=et,a[at].ind=_,a[at].extra=st,at+=1;_+=1,et=0}}else if(_e==3){if(et+=st,b===""||o===c-1){for(b===""&&(et-=st);at<=o;)a[at].an=et,a[at].ind=_,a[at].extra=st,at+=1;et=0,_+=1}}else a[_].ind=_,a[_].extra=0,_+=1;if(e.l=a,nt=it>nt?it:nt,ot.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=ot;var dt=i.a,vt,lt;$=dt.length;var ht,yt,gt=[];for(pt=0;pt<$;pt+=1){for(vt=dt[pt],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[pt]=yt,(ht==1&<.val!==""||ht==2&<.val!==""&<.val!==" "||ht==3&&(lt.n||lt.val==" "||o==c-1)||ht==4&&(lt.n||o==c-1))&&(vt.s.rn===1&>.push(yt),yt+=1);i.a[pt].s.totalChars=yt;var kt=-1,xt;if(vt.s.rn===1)for(o=0;o<c;o+=1)lt=a[o],kt!=lt.anIndexes[pt]&&(kt=lt.anIndexes[pt],xt=gt.splice(Math.floor(Math.random()*gt.length),1)[0]),lt.anIndexes[pt]=xt}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,_e=1,et=1;this.ne.v>0?_=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?_e=1-this.xe.v/100:et=1+this.xe.v/100;var at=BezierFactory.getBezierEasing(_,b,_e,et).get,rt=0,ot=this.finalS,it=this.finalE,nt=this.data.sh;if(nt===2)it===ot?rt=g>=it?1:0:rt=e(0,s(.5/(it-ot)+(g-ot)/(it-ot),1)),rt=at(rt);else if(nt===3)it===ot?rt=g>=it?0:1:rt=1-e(0,s(.5/(it-ot)+(g-ot)/(it-ot),1)),rt=at(rt);else if(nt===4)it===ot?rt=0:(rt=e(0,s(.5/(it-ot)+(g-ot)/(it-ot),1)),rt<.5?rt*=2:rt=1-2*(rt-.5)),rt=at(rt);else if(nt===5){if(it===ot)rt=0;else{var pt=it-ot;g=s(e(0,g+.5-ot),it-ot);var $=-pt/2+g,tt=pt/2;rt=Math.sqrt(1-$*$/(tt*tt))}rt=at(rt)}else nt===6?(it===ot?rt=0:(g=s(e(0,g+.5-ot),it-ot),rt=(1+Math.cos(Math.PI+Math.PI*2*g/(it-ot)))/2),rt=at(rt)):(g>=i(ot)&&(g-ot<0?rt=e(0,s(s(it,1)-(ot-g),1)):rt=e(0,s(it-g,1))),rt=at(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/_,_e=this.s.v/_+b,et=this.e.v/_+b;if(_e>et){var at=_e;_e=et,et=at}this.finalS=_e,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,_e,et,at,rt=e.l,ot,it,nt,pt,$,tt,j,st,ut,ct,mt,ft,St,wt,Tt;if(this._hasMaskedPath){if(Tt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var _t=Tt.v;this._pathData.r.v&&(_t=_t.reverse()),ot={tLength:0,segments:[]},at=_t._length-1;var Pt;for(ft=0,et=0;et<at;et+=1)Pt=bez.buildBezierData(_t.v[et],_t.v[et+1],[_t.o[et][0]-_t.v[et][0],_t.o[et][1]-_t.v[et][1]],[_t.i[et+1][0]-_t.v[et+1][0],_t.i[et+1][1]-_t.v[et+1][1]]),ot.tLength+=Pt.segmentLength,ot.segments.push(Pt),ft+=Pt.segmentLength;et=at,Tt.v.c&&(Pt=bez.buildBezierData(_t.v[et],_t.v[0],[_t.o[et][0]-_t.v[et][0],_t.o[et][1]-_t.v[et][1]],[_t.i[0][0]-_t.v[0][0],_t.i[0][1]-_t.v[0][1]]),ot.tLength+=Pt.segmentLength,ot.segments.push(Pt),ft+=Pt.segmentLength),this._pathData.pi=ot}if(ot=this._pathData.pi,it=this._pathData.f.v,j=0,tt=1,pt=0,$=!0,ct=ot.segments,it<0&&Tt.v.c)for(ot.tLength<Math.abs(it)&&(it=-Math.abs(it)%ot.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],mt=nt.partialLength}at=rt.length,b=0,_e=0;var Ct=e.finalSize*1.2*.714,Et=!0,dt,vt,lt,ht,yt;ht=a.length;var gt,kt=-1,xt,bt,It,Rt=it,Bt=j,Mt=tt,Ft=-1,Lt,Vt,Kt,Gt,Dt,Ut,Zt,rr,Qt="",Wt=this.defaultPropsArray,Ot;if(e.j===2||e.j===1){var Nt=0,jt=0,zt=e.j===2?-.5:-1,Yt=0,qt=!0;for(et=0;et<at;et+=1)if(rt[et].n){for(Nt&&(Nt+=jt);Yt<et;)rt[Yt].animatorJustifyOffset=Nt,Yt+=1;Nt=0,qt=!0}else{for(lt=0;lt<ht;lt+=1)dt=a[lt].a,dt.t.propType&&(qt&&e.j===2&&(jt+=dt.t.v*zt),vt=a[lt].s,gt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),gt.length?Nt+=dt.t.v*gt[0]*zt:Nt+=dt.t.v*gt*zt);qt=!1}for(Nt&&(Nt+=jt);Yt<et;)rt[Yt].animatorJustifyOffset=Nt,Yt+=1}for(et=0;et<at;et+=1){if(c.reset(),Lt=1,rt[et].n)b=0,_e+=e.yOffset,_e+=Et?1:0,it=Rt,Et=!1,this._hasMaskedPath&&(j=Bt,tt=Mt,ut=ct[j].points,st=ut[tt-1],nt=ut[tt],mt=nt.partialLength,pt=0),Qt="",rr="",Ut="",Ot="",Wt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Ft!==rt[et].line){switch(e.j){case 1:it+=ft-e.lineWidths[rt[et].line];break;case 2:it+=(ft-e.lineWidths[rt[et].line])/2;break}Ft=rt[et].line}kt!==rt[et].ind&&(rt[kt]&&(it+=rt[kt].extra),it+=rt[et].an/2,kt=rt[et].ind),it+=i[0]*rt[et].an*.005;var er=0;for(lt=0;lt<ht;lt+=1)dt=a[lt].a,dt.p.propType&&(vt=a[lt].s,gt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),gt.length?er+=dt.p.v[0]*gt[0]:er+=dt.p.v[0]*gt),dt.a.propType&&(vt=a[lt].s,gt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),gt.length?er+=dt.a.v[0]*gt[0]:er+=dt.a.v[0]*gt);for($=!0,this._pathData.a.v&&(it=rt[0].an*.5+(ft-this._pathData.f.v-rt[0].an*.5-rt[rt.length-1].an*.5)*kt/(at-1),it+=this._pathData.f.v);$;)pt+mt>=it+er||!ut?(St=(it+er-pt)/nt.partialLength,bt=st.point[0]+(nt.point[0]-st.point[0])*St,It=st.point[1]+(nt.point[1]-st.point[1])*St,c.translate(-i[0]*rt[et].an*.005,-(i[1]*Ct)*.01),$=!1):ut&&(pt+=nt.partialLength,tt+=1,tt>=ut.length&&(tt=0,j+=1,ct[j]?ut=ct[j].points:Tt.v.c?(tt=0,j=0,ut=ct[j].points):(pt-=nt.partialLength,ut=null)),ut&&(st=nt,nt=ut[tt],mt=nt.partialLength));xt=rt[et].an/2-rt[et].add,c.translate(-xt,0,0)}else xt=rt[et].an/2-rt[et].add,c.translate(-xt,0,0),c.translate(-i[0]*rt[et].an*.005,-i[1]*Ct*.01,0);for(lt=0;lt<ht;lt+=1)dt=a[lt].a,dt.t.propType&&(vt=a[lt].s,gt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?gt.length?it+=dt.t.v*gt[0]:it+=dt.t.v*gt:gt.length?b+=dt.t.v*gt[0]:b+=dt.t.v*gt));for(e.strokeWidthAnim&&(Kt=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&&(Gt=[e.fc[0],e.fc[1],e.fc[2]]),lt=0;lt<ht;lt+=1)dt=a[lt].a,dt.a.propType&&(vt=a[lt].s,gt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),gt.length?c.translate(-dt.a.v[0]*gt[0],-dt.a.v[1]*gt[1],dt.a.v[2]*gt[2]):c.translate(-dt.a.v[0]*gt,-dt.a.v[1]*gt,dt.a.v[2]*gt));for(lt=0;lt<ht;lt+=1)dt=a[lt].a,dt.s.propType&&(vt=a[lt].s,gt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),gt.length?c.scale(1+(dt.s.v[0]-1)*gt[0],1+(dt.s.v[1]-1)*gt[1],1):c.scale(1+(dt.s.v[0]-1)*gt,1+(dt.s.v[1]-1)*gt,1));for(lt=0;lt<ht;lt+=1){if(dt=a[lt].a,vt=a[lt].s,gt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),dt.sk.propType&&(gt.length?c.skewFromAxis(-dt.sk.v*gt[0],dt.sa.v*gt[1]):c.skewFromAxis(-dt.sk.v*gt,dt.sa.v*gt)),dt.r.propType&&(gt.length?c.rotateZ(-dt.r.v*gt[2]):c.rotateZ(-dt.r.v*gt)),dt.ry.propType&&(gt.length?c.rotateY(dt.ry.v*gt[1]):c.rotateY(dt.ry.v*gt)),dt.rx.propType&&(gt.length?c.rotateX(dt.rx.v*gt[0]):c.rotateX(dt.rx.v*gt)),dt.o.propType&&(gt.length?Lt+=(dt.o.v*gt[0]-Lt)*gt[0]:Lt+=(dt.o.v*gt-Lt)*gt),e.strokeWidthAnim&&dt.sw.propType&&(gt.length?Kt+=dt.sw.v*gt[0]:Kt+=dt.sw.v*gt),e.strokeColorAnim&&dt.sc.propType)for(Dt=0;Dt<3;Dt+=1)gt.length?Vt[Dt]+=(dt.sc.v[Dt]-Vt[Dt])*gt[0]:Vt[Dt]+=(dt.sc.v[Dt]-Vt[Dt])*gt;if(e.fillColorAnim&&e.fc){if(dt.fc.propType)for(Dt=0;Dt<3;Dt+=1)gt.length?Gt[Dt]+=(dt.fc.v[Dt]-Gt[Dt])*gt[0]:Gt[Dt]+=(dt.fc.v[Dt]-Gt[Dt])*gt;dt.fh.propType&&(gt.length?Gt=addHueToRGB(Gt,dt.fh.v*gt[0]):Gt=addHueToRGB(Gt,dt.fh.v*gt)),dt.fs.propType&&(gt.length?Gt=addSaturationToRGB(Gt,dt.fs.v*gt[0]):Gt=addSaturationToRGB(Gt,dt.fs.v*gt)),dt.fb.propType&&(gt.length?Gt=addBrightnessToRGB(Gt,dt.fb.v*gt[0]):Gt=addBrightnessToRGB(Gt,dt.fb.v*gt))}}for(lt=0;lt<ht;lt+=1)dt=a[lt].a,dt.p.propType&&(vt=a[lt].s,gt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),this._hasMaskedPath?gt.length?c.translate(0,dt.p.v[1]*gt[0],-dt.p.v[2]*gt[1]):c.translate(0,dt.p.v[1]*gt,-dt.p.v[2]*gt):gt.length?c.translate(dt.p.v[0]*gt[0],dt.p.v[1]*gt[1],-dt.p.v[2]*gt[2]):c.translate(dt.p.v[0]*gt,dt.p.v[1]*gt,-dt.p.v[2]*gt));if(e.strokeWidthAnim&&(Ut=Kt<0?0:Kt),e.strokeColorAnim&&(Zt="rgb("+Math.round(Vt[0]*255)+","+Math.round(Vt[1]*255)+","+Math.round(Vt[2]*255)+")"),e.fillColorAnim&&e.fc&&(rr="rgb("+Math.round(Gt[0]*255)+","+Math.round(Gt[1]*255)+","+Math.round(Gt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,i[1]*Ct*.01+_e,0),this._pathData.p.v){wt=(nt.point[1]-st.point[1])/(nt.point[0]-st.point[0]);var or=Math.atan(wt)*180/Math.PI;nt.point[0]<st.point[0]&&(or+=180),c.rotate(-or*Math.PI/180)}c.translate(bt,It,0),it-=i[0]*rt[et].an*.005,rt[et+1]&&kt!==rt[et+1].ind&&(it+=rt[et].an/2,it+=e.tr*.001*e.finalSize)}else{switch(c.translate(b,_e,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(xt,0,0),c.translate(i[0]*rt[et].an*.005,i[1]*Ct*.01,0),b+=rt[et].l+e.tr*.001*e.finalSize}g==="html"?Qt=c.toCSS():g==="svg"?Qt=c.to2dCSS():Wt=[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]],Ot=Lt}_<=et?(yt=new LetterProps(Ot,Ut,Zt,rr,Qt,Wt),this.renderedLetters.push(yt),_+=1,this.lettersChangedFlag=!0):(yt=this.renderedLetters[et],this.lettersChangedFlag=yt.update(Ot,Ut,Zt,rr,Qt,Wt)||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,_e=this.mHelper,et="",at=this.data.singleShape,rt=0,ot=0,it=!0,nt=i.tr*.001*i.finalSize;if(at&&!_&&!i.sz){var pt=this.textContainer,$="start";switch(i.j){case 1:$="end";break;case 2:$="middle";break;default:$="start";break}pt.setAttribute("text-anchor",$),pt.setAttribute("letter-spacing",nt);var tt=this.buildTextContents(i.finalText);for(s=tt.length,ot=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",ot),b.style.display="inherit",pt.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,ot+=i.finalLineHeight;this.layerElement.appendChild(pt)}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}),!_||!at||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(_e.reset(),at&&(g[e].n&&(rt=-nt,ot+=i.yOffset,ot+=it?1:0,it=!1),this.applyTextPropertiesToMatrix(i,_e,g[e].line,rt,ot),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 mt=emptyShapeData;st.data&&st.data.shapes&&(mt=this.buildShapeData(st.data,i.finalSize)),ct=new SVGShapeElement(mt,this.globalData,this)}if(this.textSpans[e].glyph){var ft=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(ft.layerElement),ft.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 at&&b.setAttribute("transform","translate("+_e.props[12]+","+_e.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}at&&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"),_e=createNS("filter"),et=createNS("feColorMatrix");return _e.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"),_e.appendChild(et),b.appendChild(_e),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,_e=[],et=[],at,rt,ot,it=[].concat(o);for(c=g;c>=0;c-=1){if(at=this.searchProcessedElement(e[c]),at?s[c]=i[at-1]:e[c]._shouldRender=a,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs")at?s[c].style.closed=!1:s[c]=this.createStyleElement(e[c],it),_e.push(s[c].style);else if(e[c].ty==="gr"){if(!at)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"?(at||(ot=this.createTransformElement(e[c]),s[c]=ot),it.push(s[c]),this.addTransformToStyleList(s[c])):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?at||(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"?(at?(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"&&(at?(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(_e),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,_e=this.globalData.canvasContext,et,at;for(e=0;e<s;e+=1)if(at=this.stylesList[e],et=at.type,!((et==="st"||et==="gs")&&at.wi===0||!at.data._shouldRender||at.coOp===0||this.globalData.currentGlobalAlpha===0)){for(b.save(),g=at.elements,et==="st"||et==="gs"?(b.ctxStrokeStyle(et==="st"?at.co:at.grd),b.ctxLineWidth(at.wi),b.ctxLineCap(at.lc),b.ctxLineJoin(at.lj),b.ctxMiterLimit(at.ml||0)):b.ctxFillStyle(et==="fl"?at.co:at.grd),b.ctxOpacity(at.coOp),et!=="st"&&et!=="gs"&&_e.beginPath(),b.ctxTransform(at.preTransforms.finalTransform.props),a=g.length,i=0;i<a;i+=1){for((et==="st"||et==="gs")&&(_e.beginPath(),at.da&&(_e.setLineDash(at.da),_e.lineDashOffset=at.do)),_=g[i].trNodes,c=_.length,o=0;o<c;o+=1)_[o].t==="m"?_e.moveTo(_[o].p[0],_[o].p[1]):_[o].t==="c"?_e.bezierCurveTo(_[o].pts[0],_[o].pts[1],_[o].pts[2],_[o].pts[3],_[o].pts[4],_[o].pts[5]):_e.closePath();(et==="st"||et==="gs")&&(b.ctxStroke(),at.da&&_e.setLineDash(this.dashResetter))}et!=="st"&&et!=="gs"&&this.globalData.renderer.ctxFill(at.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 _e=a.shapes[g];if(_e&&_e.v){for(c=_e._length,o=1;o<c;o+=1)o===1&&i.push({t:"m",p:b.applyToPointArray(_e.v[0][0],_e.v[0][1],0)}),i.push({t:"c",pts:b.applyToTriplePoints(_e.o[o-1],_e.i[o],_e.v[o])});c===1&&i.push({t:"m",p:b.applyToPointArray(_e.v[0][0],_e.v[0][1],0)}),_e.c&&c&&(i.push({t:"c",pts:b.applyToTriplePoints(_e.o[o-1],_e.i[0],_e.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)),_e=Math.atan2(_[1]-g[1],_[0]-g[0]),et=s.h.v;et>=1?et=.99:et<=-1&&(et=-.99);var at=b*et,rt=Math.cos(_e+s.a.v)*at+g[0],ot=Math.sin(_e+s.a.v)*at+g[1];o=c.createRadialGradient(rt,ot,0,g[0],g[1],b)}var it,nt=e.g.p,pt=s.g.c,$=1;for(it=0;it<nt;it+=1)s.g._hasOpacity&&s.g._collapsable&&($=s.g.o[it*2+1]),o.addColorStop(pt[it*4]/100,"rgba("+pt[it*4+1]+","+pt[it*4+2]+","+pt[it*4+3]+","+$+")");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,_e,et,at,rt,ot,it,nt,pt,$,tt=this.data.singleShape,j=e.tr*.001*e.finalSize,st=0,ut=0,ct=!0,mt=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),_e=b&&b.data||{},_.reset(),tt&&g[o].n&&(st=-j,ut+=e.yOffset,ut+=ct?1:0,ct=!1),rt=_e.shapes?_e.shapes[0].it:[],it=rt.length,_.scale(e.finalSize/100,e.finalSize/100),tt&&this.applyTextPropertiesToMatrix(e,_,g[o].line,st,ut),pt=createSizedArray(it-1);var ft=0;for(ot=0;ot<it;ot+=1)if(rt[ot].ty==="sh"){for(at=rt[ot].ks.k.i.length,nt=rt[ot].ks.k,$=[],et=1;et<at;et+=1)et===1&&$.push(_.applyToX(nt.v[0][0],nt.v[0][1],0),_.applyToY(nt.v[0][0],nt.v[0][1],0)),$.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));$.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)),pt[ft]=$,ft+=1}tt&&(st+=g[o].l,st+=j),this.textSpans[mt]?this.textSpans[mt].elem=pt:this.textSpans[mt]={elem:pt},mt+=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 _e,et=null,at=null,rt=null,ot,it,nt=this.globalData.renderer;for(s=0;s<i;s+=1)if(!b[s].n){if(_e=_[s],_e&&(nt.save(),nt.ctxTransform(_e.p),nt.ctxOpacity(_e.o)),this.fill){for(_e&&_e.fc?et!==_e.fc&&(nt.ctxFillStyle(_e.fc),et=_e.fc):et!==this.values.fill&&(et=this.values.fill,nt.ctxFillStyle(this.values.fill)),ot=this.textSpans[s].elem,o=ot.length,this.globalData.canvasContext.beginPath(),a=0;a<o;a+=1)for(it=ot[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(_e&&_e.sw?rt!==_e.sw&&(rt=_e.sw,nt.ctxLineWidth(_e.sw)):rt!==this.values.sWidth&&(rt=this.values.sWidth,nt.ctxLineWidth(this.values.sWidth)),_e&&_e.sc?at!==_e.sc&&(at=_e.sc,nt.ctxStrokeStyle(_e.sc)):at!==this.values.stroke&&(at=this.values.stroke,nt.ctxStrokeStyle(this.values.stroke)),ot=this.textSpans[s].elem,o=ot.length,this.globalData.canvasContext.beginPath(),a=0;a<o;a+=1)for(it=ot[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()}_e&&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",_e=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)),_e==="xMid"&&(c<o&&_==="meet"||c>o&&_==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:_e==="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,_e;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]),_e=this.getTransformedPoint(a,i.v[o+1]),this.checkBounds(g,_,b,_e,s);i.c&&(g=this.getTransformedPoint(a,i.v[o]),_=this.getTransformedPoint(a,i.o[o]),b=this.getTransformedPoint(a,i.i[0]),_e=this.getTransformedPoint(a,i.v[0]),this.checkBounds(g,_,b,_e,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,_e,et,at,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))):(_e=g*g-4*_*c,_e>=0&&(et=(-g+bmSqrt(_e))/(2*c),et>0&&et<1&&o[rt].push(this.calculateF(et,e,s,i,a,rt)),at=(-g-bmSqrt(_e))/(2*c),at>0&&at<1&&o[rt].push(this.calculateF(at,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 _e,et,at,rt=this.mHelper,ot,it="",nt=0;for(g=0;g<_;g+=1){if(this.globalData.fontManager.chars?(this.textPaths[nt]?_e=this.textPaths[nt]:(_e=createNS("path"),_e.setAttribute("stroke-linecap",lineCapEnum[1]),_e.setAttribute("stroke-linejoin",lineJoinEnum[2]),_e.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[nt]?(et=this.textSpans[nt],at=et.children[0]):(et=createTag("div"),et.style.lineHeight=0,at=createNS("svg"),at.appendChild(_e),styleDiv(et)))):this.isMasked?_e=this.textPaths[nt]?this.textPaths[nt]:createNS("text"):this.textSpans[nt]?(et=this.textSpans[nt],_e=this.textPaths[nt]):(et=createTag("span"),styleDiv(et),_e=createTag("span"),styleDiv(_e),et.appendChild(_e)),this.globalData.fontManager.chars){var pt=this.globalData.fontManager.getCharData(e.finalText[g],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),$;if(pt?$=pt.data:$=null,rt.reset(),$&&$.shapes&&$.shapes.length&&(ot=$.shapes[0].it,rt.scale(e.finalSize/100,e.finalSize/100),it=this.createPathShape(rt,ot),_e.setAttribute("d",it)),this.isMasked)this.innerElem.appendChild(_e);else{if(this.innerElem.appendChild(et),$&&$.shapes){document.body.appendChild(at);var tt=at.getBBox();at.setAttribute("width",tt.width+2),at.setAttribute("height",tt.height+2),at.setAttribute("viewBox",tt.x-1+" "+(tt.y-1)+" "+(tt.width+2)+" "+(tt.height+2));var j=at.style,st="translate("+(tt.x-1)+"px,"+(tt.y-1)+"px)";j.transform=st,j.webkitTransform=st,b[g].yOffset=tt.y-1}else at.setAttribute("width",1),at.setAttribute("height",1);et.appendChild(at)}}else if(_e.textContent=b[g].val,_e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(_e);else{this.innerElem.appendChild(et);var ut=_e.style,ct="translate3d(0,"+-e.finalSize/1.2+"px,0)";ut.transform=ct,ut.webkitTransform=ct}this.isMasked?this.textSpans[nt]=_e:this.textSpans[nt]=et,this.textSpans[nt].style.display="block",this.textPaths[nt]=_e,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,_e;for(i=0;i<a;i+=1)g[i].n?o+=1:(b=this.textSpans[i],_e=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&&_e.setAttribute("stroke-width",_.sw),_.sc&&_._mdf.sc&&_e.setAttribute("stroke",_.sc),_.fc&&_._mdf.fc&&(_e.setAttribute("fill",_.fc),_e.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 at=1;if(this.currentBBox.w!==et.width+at*2||this.currentBBox.h!==et.height+at*2||this.currentBBox.x!==et.x-at||this.currentBBox.y!==et.y-at){this.currentBBox.w=et.width+at*2,this.currentBBox.h=et.height+at*2,this.currentBBox.x=et.x-at,this.currentBBox.y=et.y-at,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],_),_e=Math.atan2(g[0],-g[2]);this.mat.rotateY(_e).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 at,rt,ot;for(s=0;s<i;s+=1)if(at=this.comp.threeDElements[s],at.type==="3d"){if(et){var it=this.mat.toCSS();ot=at.container.style,ot.transform=it,ot.webkitTransform=it}this.pe._mdf&&(rt=at.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),_e=b*2,et=a-1,at;function rt(j,st,ut){var ct=[];st=st===!0?{entropy:!0}:st||{};var mt=pt(nt(st.entropy?[j,tt(e)]:j===null?$():j,3),ct),ft=new ot(ct),St=function(){for(var Tt=ft.g(o),_t=_,Pt=0;Tt<b;)Tt=(Tt+Pt)*a,_t*=a,Pt=ft.g(1);for(;Tt>=_e;)Tt/=2,_t/=2,Pt>>>=1;return(Tt+Pt)/_t};return St.int32=function(){return ft.g(4)|0},St.quick=function(){return ft.g(4)/4294967296},St.double=St,pt(tt(ft.S),e),(st.pass||ut||function(wt,Tt,_t,Pt){return Pt&&(Pt.S&&it(Pt,ft),wt.state=function(){return it(ft,{})}),_t?(s[g]=wt,Tt):wt})(St,mt,"global"in st?st.global:this==s,st.state)}s["seed"+g]=rt;function ot(j){var st,ut=j.length,ct=this,mt=0,ft=ct.i=ct.j=0,St=ct.S=[];for(ut||(j=[ut++]);mt<a;)St[mt]=mt++;for(mt=0;mt<a;mt++)St[mt]=St[ft=et&ft+j[mt%ut]+(st=St[mt])],St[ft]=st;ct.g=function(wt){for(var Tt,_t=0,Pt=ct.i,Ct=ct.j,Et=ct.S;wt--;)Tt=Et[Pt=et&Pt+1],_t=_t*a+Et[et&(Et[Pt]=Et[Ct=et&Ct+Tt])+(Et[Ct]=Tt)];return ct.i=Pt,ct.j=Ct,_t}}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),mt;if(st&&ct=="object")for(mt in j)try{ut.push(nt(j[mt],st-1))}catch{}return ut.length?ut:ct=="string"?j:j+"\0"}function pt(j,st){for(var ut=j+"",ct,mt=0;mt<ut.length;)st[et&mt]=et&(ct^=st[et&mt]*19)+ut.charCodeAt(mt++);return tt(st)}function $(){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)}pt(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 _e=o-c;switch(_=b>.5?_e/(2-o-c):_e/(o+c),o){case s:g=(i-a)/_e+(i<a?6:0);break;case i:g=(a-s)/_e+2;break;case a:g=(s-i)/_e+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,_e=createTypedArray("float32",b);for(_=0;_<b;_+=1)_e[_]=a[_]+(o[_]-a[_])*g;return _e}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,_e;for(o=0;o<c;o+=1)b=s&&s[o]?s[o]:_,_e=i&&i[o]?i[o]:_,g.setTripleAt(e[o][0],e[o][1],_e[0]+e[o][0],_e[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,_e=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())*_e;return et}return this.pv+g[0]+(-i+i*2*BMMath.random())*_e}).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,_e=createTypedArray("float32",b);for(_=0;_<b;_+=1)_e[_]=(c[_]-o[_])*g+o[_];return _e}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 _(_e){o.indexOf(_e)===-1&&o.push(_e)}function b(){var _e,et=o.length;for(_e=0;_e<et;_e+=1)o[_e].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(_e){for(c=0;c<g;){if(a.masksProperties[c].nm===_e)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(_e){if(!g.numKeys)return 0;var et="";"s"in _.keyframes[_e-1]?et=_.keyframes[_e-1].s:"e"in _.keyframes[_e-2]?et=_.keyframes[_e-2].e:et=_.keyframes[_e-2].s;var at=b==="unidimensional"?new Number(et):Object.assign({},et);return at.time=_.keyframes[_e-1].t/_.elem.comp.globalData.frameRate,at.value=b==="unidimensional"?et[0]:et,at},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*_,_e=new Number(b);return _e.value=b,i(_e,g,"unidimensional"),function(){return g.k&&g.getValue(),b=g.v*_,_e.value!==b&&(_e=new Number(b),_e.value=b,_e[0]=b,i(_e,g,"unidimensional")),_e}}function o(g){(!g||!("pv"in g))&&(g=s);var _=1/g.mult,b=g.data&&g.data.l||g.pv.length,_e=createTypedArray("float32",b),et=createTypedArray("float32",b);return _e.value=et,i(_e,g,"multidimensional"),function(){g.k&&g.getValue();for(var at=0;at<b;at+=1)et[at]=g.v[at]*_,_e[at]=et[at];return _e}}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(_e){var et=new Matrix;if(_e!==void 0){var at=this._elem.finalTransform.mProp.getValueAtTime(_e);at.clone(et)}else{var rt=this._elem.finalTransform.mProp;rt.applyToMatrix(et)}return et}function s(_e,et){var at=this.getMatrix(et);return at.props[12]=0,at.props[13]=0,at.props[14]=0,this.applyPoint(at,_e)}function i(_e,et){var at=this.getMatrix(et);return this.applyPoint(at,_e)}function a(_e,et){var at=this.getMatrix(et);return at.props[12]=0,at.props[13]=0,at.props[14]=0,this.invertPoint(at,_e)}function o(_e,et){var at=this.getMatrix(et);return this.invertPoint(at,_e)}function c(_e,et){if(this._elem.hierarchy&&this._elem.hierarchy.length){var at,rt=this._elem.hierarchy.length;for(at=0;at<rt;at+=1)this._elem.hierarchy[at].finalTransform.mProp.applyToMatrix(_e)}return _e.applyToPointArray(et[0],et[1],et[2]||0)}function g(_e,et){if(this._elem.hierarchy&&this._elem.hierarchy.length){var at,rt=this._elem.hierarchy.length;for(at=0;at<rt;at+=1)this._elem.hierarchy[at].finalTransform.mProp.applyToMatrix(_e)}return _e.inversePoint(et)}function _(_e){var et=new Matrix;if(et.reset(),this._elem.finalTransform.mProp.applyToMatrix(et),this._elem.hierarchy&&this._elem.hierarchy.length){var at,rt=this._elem.hierarchy.length;for(at=0;at<rt;at+=1)this._elem.hierarchy[at].finalTransform.mProp.applyToMatrix(et);return et.inversePoint(_e)}return et.inversePoint(_e)}function b(){return[1,1,1,1]}return function(_e){var et;function at(nt){ot.mask=new MaskManagerInterface(nt,_e)}function rt(nt){ot.effect=nt}function ot(nt){switch(nt){case"ADBE Root Vectors Group":case"Contents":case 2:return ot.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 ot.effect;case"ADBE Text Properties":return ot.textInterface;default:return null}}ot.getMatrix=e,ot.invertPoint=g,ot.applyPoint=c,ot.toWorld=i,ot.toWorldVec=s,ot.fromWorld=o,ot.fromWorldVec=a,ot.toComp=i,ot.fromComp=_,ot.sampleImage=b,ot.sourceRectAtTime=_e.sourceRectAtTime.bind(_e),ot._elem=_e,et=TransformExpressionInterface(_e.finalTransform.mProp);var it=getDescriptor(et,"anchorPoint");return Object.defineProperties(ot,{hasParent:{get:function(){return _e.hierarchy.length}},parent:{get:function(){return _e.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 _e.isInRange}}}),ot.startTime=_e.data.st,ot.index=_e.data.ind,ot.source=_e.data.refId,ot.height=_e.data.ty===0?_e.data.h:100,ot.width=_e.data.ty===0?_e.data.w:100,ot.inPoint=_e.data.ip/_e.comp.globalData.frameRate,ot.outPoint=_e.data.op/_e.comp.globalData.frameRate,ot._name=_e.data.nm,ot.registerMaskInterface=at,ot.registerEffectsInterface=rt,ot}}(),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,_e=o.effectsManager.effectElements.length;for(b=0;b<_e;b+=1)g.push(i(_[b],o.effectsManager.effectElements[b],c,o));var et=o.data.ef||[],at=function(ot){for(b=0,_e=et.length;b<_e;){if(ot===et[b].nm||ot===et[b].mn||ot===et[b].ix)return g[b];b+=1}return null};return Object.defineProperty(at,"numProperties",{get:function(){return et.length}}),at}return null}function i(o,c,g,_){function b(ot){for(var it=o.ef,nt=0,pt=it.length;nt<pt;){if(ot===it[nt].nm||ot===it[nt].mn||ot===it[nt].ix)return it[nt].ty===5?et[nt]:et[nt]();nt+=1}throw new Error}var _e=propertyGroupFactory(b,g),et=[],at,rt=o.ef.length;for(at=0;at<rt;at+=1)o.ef[at].ty===5?et.push(i(o.ef[at],c.effectElements[at],c.effectElements[at].propertyGroup,_)):et.push(a(c.effectElements[at],o.ef[at].ty,_,_e));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:_e}}),b.enabled=o.en!==0,b.active=b.enabled,b}function a(o,c,g,_){var b=ExpressionPropertyInterface(o.p);function _e(){return c===10?g.comp.compInterface(o.p.v):b()}return o.p.setGroupProperty&&o.p.setGroupProperty(PropertyInterface("",_)),_e}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,pt){var $=[],tt,j=it?it.length:0;for(tt=0;tt<j;tt+=1)it[tt].ty==="gr"?$.push(i(it[tt],nt[tt],pt)):it[tt].ty==="fl"?$.push(a(it[tt],nt[tt],pt)):it[tt].ty==="st"?$.push(g(it[tt],nt[tt],pt)):it[tt].ty==="tm"?$.push(_(it[tt],nt[tt],pt)):it[tt].ty==="tr"||(it[tt].ty==="el"?$.push(_e(it[tt],nt[tt],pt)):it[tt].ty==="sr"?$.push(et(it[tt],nt[tt],pt)):it[tt].ty==="sh"?$.push(ShapePathInterface(it[tt],nt[tt],pt)):it[tt].ty==="rc"?$.push(at(it[tt],nt[tt],pt)):it[tt].ty==="rd"?$.push(rt(it[tt],nt[tt],pt)):it[tt].ty==="rp"?$.push(ot(it[tt],nt[tt],pt)):it[tt].ty==="gf"?$.push(o(it[tt],nt[tt],pt)):$.push(c(it[tt],nt[tt])));return $}function s(it,nt,pt){var $,tt=function(ut){for(var ct=0,mt=$.length;ct<mt;){if($[ct]._name===ut||$[ct].mn===ut||$[ct].propertyIndex===ut||$[ct].ix===ut||$[ct].ind===ut)return $[ct];ct+=1}return typeof ut=="number"?$[ut-1]:null};tt.propertyGroup=propertyGroupFactory(tt,pt),$=e(it.it,nt.it,tt.propertyGroup),tt.numProperties=$.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,pt){var $=function(ut){switch(ut){case"ADBE Vectors Group":case"Contents":case 2:return $.content;default:return $.transform}};$.propertyGroup=propertyGroupFactory($,pt);var tt=s(it,nt,$.propertyGroup),j=b(it.it[it.it.length-1],nt.it[nt.it.length-1],$.propertyGroup);return $.content=tt,$.transform=j,Object.defineProperty($,"_name",{get:function(){return it.nm}}),$.numProperties=it.np,$.propertyIndex=it.ix,$.nm=it.nm,$.mn=it.mn,$}function a(it,nt,pt){function $(tt){return tt==="Color"||tt==="color"?$.color:tt==="Opacity"||tt==="opacity"?$.opacity:null}return Object.defineProperties($,{color:{get:ExpressionPropertyInterface(nt.c)},opacity:{get:ExpressionPropertyInterface(nt.o)},_name:{value:it.nm},mn:{value:it.mn}}),nt.c.setGroupProperty(PropertyInterface("Color",pt)),nt.o.setGroupProperty(PropertyInterface("Opacity",pt)),$}function o(it,nt,pt){function $(tt){return tt==="Start Point"||tt==="start point"?$.startPoint:tt==="End Point"||tt==="end point"?$.endPoint:tt==="Opacity"||tt==="opacity"?$.opacity:null}return Object.defineProperties($,{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",pt)),nt.e.setGroupProperty(PropertyInterface("End Point",pt)),nt.o.setGroupProperty(PropertyInterface("Opacity",pt)),$}function c(){function it(){return null}return it}function g(it,nt,pt){var $=propertyGroupFactory(mt,pt),tt=propertyGroupFactory(ct,$);function j(ft){Object.defineProperty(ct,it.d[ft].nm,{get:ExpressionPropertyInterface(nt.d.dataProps[ft].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 mt(ft){return ft==="Color"||ft==="color"?mt.color:ft==="Opacity"||ft==="opacity"?mt.opacity:ft==="Stroke Width"||ft==="stroke width"?mt.strokeWidth:null}return Object.defineProperties(mt,{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",$)),nt.o.setGroupProperty(PropertyInterface("Opacity",$)),nt.w.setGroupProperty(PropertyInterface("Stroke Width",$)),mt}function _(it,nt,pt){function $(j){return j===it.e.ix||j==="End"||j==="end"?$.end:j===it.s.ix?$.start:j===it.o.ix?$.offset:null}var tt=propertyGroupFactory($,pt);return $.propertyIndex=it.ix,nt.s.setGroupProperty(PropertyInterface("Start",tt)),nt.e.setGroupProperty(PropertyInterface("End",tt)),nt.o.setGroupProperty(PropertyInterface("Offset",tt)),$.propertyIndex=it.ix,$.propertyGroup=pt,Object.defineProperties($,{start:{get:ExpressionPropertyInterface(nt.s)},end:{get:ExpressionPropertyInterface(nt.e)},offset:{get:ExpressionPropertyInterface(nt.o)},_name:{value:it.nm}}),$.mn=it.mn,$}function b(it,nt,pt){function $(j){return it.a.ix===j||j==="Anchor Point"?$.anchorPoint:it.o.ix===j||j==="Opacity"?$.opacity:it.p.ix===j||j==="Position"?$.position:it.r.ix===j||j==="Rotation"||j==="ADBE Vector Rotation"?$.rotation:it.s.ix===j||j==="Scale"?$.scale:it.sk&&it.sk.ix===j||j==="Skew"?$.skew:it.sa&&it.sa.ix===j||j==="Skew Axis"?$.skewAxis:null}var tt=propertyGroupFactory($,pt);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($,{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}}),$.ty="tr",$.mn=it.mn,$.propertyGroup=pt,$}function _e(it,nt,pt){function $(st){return it.p.ix===st?$.position:it.s.ix===st?$.size:null}var tt=propertyGroupFactory($,pt);$.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($,{size:{get:ExpressionPropertyInterface(j.s)},position:{get:ExpressionPropertyInterface(j.p)},_name:{value:it.nm}}),$.mn=it.mn,$}function et(it,nt,pt){function $(st){return it.p.ix===st?$.position:it.r.ix===st?$.rotation:it.pt.ix===st?$.points:it.or.ix===st||st==="ADBE Vector Star Outer Radius"?$.outerRadius:it.os.ix===st?$.outerRoundness:it.ir&&(it.ir.ix===st||st==="ADBE Vector Star Inner Radius")?$.innerRadius:it.is&&it.is.ix===st?$.innerRoundness:null}var tt=propertyGroupFactory($,pt),j=nt.sh.ty==="tm"?nt.sh.prop:nt.sh;return $.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($,{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}}),$.mn=it.mn,$}function at(it,nt,pt){function $(st){return it.p.ix===st?$.position:it.r.ix===st?$.roundness:it.s.ix===st||st==="Size"||st==="ADBE Vector Rect Size"?$.size:null}var tt=propertyGroupFactory($,pt),j=nt.sh.ty==="tm"?nt.sh.prop:nt.sh;return $.propertyIndex=it.ix,j.p.setGroupProperty(PropertyInterface("Position",tt)),j.s.setGroupProperty(PropertyInterface("Size",tt)),j.r.setGroupProperty(PropertyInterface("Rotation",tt)),Object.defineProperties($,{position:{get:ExpressionPropertyInterface(j.p)},roundness:{get:ExpressionPropertyInterface(j.r)},size:{get:ExpressionPropertyInterface(j.s)},_name:{value:it.nm}}),$.mn=it.mn,$}function rt(it,nt,pt){function $(st){return it.r.ix===st||st==="Round Corners 1"?$.radius:null}var tt=propertyGroupFactory($,pt),j=nt;return $.propertyIndex=it.ix,j.rd.setGroupProperty(PropertyInterface("Radius",tt)),Object.defineProperties($,{radius:{get:ExpressionPropertyInterface(j.rd)},_name:{value:it.nm}}),$.mn=it.mn,$}function ot(it,nt,pt){function $(st){return it.c.ix===st||st==="Copies"?$.copies:it.o.ix===st||st==="Offset"?$.offset:null}var tt=propertyGroupFactory($,pt),j=nt;return $.propertyIndex=it.ix,j.c.setGroupProperty(PropertyInterface("Copies",tt)),j.o.setGroupProperty(PropertyInterface("Offset",tt)),Object.defineProperties($,{copies:{get:ExpressionPropertyInterface(j.c)},offset:{get:ExpressionPropertyInterface(j.o)},_name:{value:it.nm}}),$.mn=it.mn,$}return function(it,nt,pt){var $;function tt(st){if(typeof st=="number")return st=st===void 0?1:st,st===0?pt:$[st-1];for(var ut=0,ct=$.length;ut<ct;){if($[ut]._name===st)return $[ut];ut+=1}return null}function j(){return pt}return tt.propertyGroup=propertyGroupFactory(tt,j),$=e(it,nt,tt.propertyGroup),tt.numProperties=$.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 _e=b.indexOf(o);if(_e!==-1){var et=parseInt(b.substr(_e+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),_e=this.getValueAtTime(g+_),et=0;if(b.length){var at;for(at=0;at<b.length;at+=1)et+=Math.pow(_e[at]-b[at],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),_e=this.getValueAtTime(g+_),et;if(b.length){et=createTypedArray("float32",b.length);var at;for(at=0;at<b.length;at+=1)et[at]=(_e[at]-b[at])/_}else et=(_e-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,ot,it){if(!this.k||!this.keyframes)return this.pv;rt=rt?rt.toLowerCase():"";var nt=this.comp.renderedFrame,pt=this.keyframes,$=pt[pt.length-1].t;if(nt<=$)return this.pv;var tt,j;it?(ot?tt=Math.abs($-this.elem.comp.globalData.frameRate*ot):tt=Math.max(0,$-this.elem.data.ip),j=$-tt):((!ot||ot>pt.length-1)&&(ot=pt.length-1),j=pt[pt.length-1-ot].t,tt=$-j);var st,ut,ct;if(rt==="pingpong"){var mt=Math.floor((nt-j)/tt);if(mt%2!==0)return this.getValueAtTime((tt-(nt-j)%tt+j)/this.comp.globalData.frameRate,0)}else if(rt==="offset"){var ft=this.getValueAtTime(j/this.comp.globalData.frameRate,0),St=this.getValueAtTime($/this.comp.globalData.frameRate,0),wt=this.getValueAtTime(((nt-j)%tt+j)/this.comp.globalData.frameRate,0),Tt=Math.floor((nt-j)/tt);if(this.pv.length){for(ct=new Array(ft.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=(St[st]-ft[st])*Tt+wt[st];return ct}return(St-ft)*Tt+wt}else if(rt==="continue"){var _t=this.getValueAtTime($/this.comp.globalData.frameRate,0),Pt=this.getValueAtTime(($-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ct=new Array(_t.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=_t[st]+(_t[st]-Pt[st])*((nt-$)/this.comp.globalData.frameRate)/5e-4;return ct}return _t+(_t-Pt)*((nt-$)/.001)}return this.getValueAtTime(((nt-j)%tt+j)/this.comp.globalData.frameRate,0)}function s(rt,ot,it){if(!this.k)return this.pv;rt=rt?rt.toLowerCase():"";var nt=this.comp.renderedFrame,pt=this.keyframes,$=pt[0].t;if(nt>=$)return this.pv;var tt,j;it?(ot?tt=Math.abs(this.elem.comp.globalData.frameRate*ot):tt=Math.max(0,this.elem.data.op-$),j=$+tt):((!ot||ot>pt.length-1)&&(ot=pt.length-1),j=pt[ot].t,tt=j-$);var st,ut,ct;if(rt==="pingpong"){var mt=Math.floor(($-nt)/tt);if(mt%2===0)return this.getValueAtTime((($-nt)%tt+$)/this.comp.globalData.frameRate,0)}else if(rt==="offset"){var ft=this.getValueAtTime($/this.comp.globalData.frameRate,0),St=this.getValueAtTime(j/this.comp.globalData.frameRate,0),wt=this.getValueAtTime((tt-($-nt)%tt+$)/this.comp.globalData.frameRate,0),Tt=Math.floor(($-nt)/tt)+1;if(this.pv.length){for(ct=new Array(ft.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=wt[st]-(St[st]-ft[st])*Tt;return ct}return wt-(St-ft)*Tt}else if(rt==="continue"){var _t=this.getValueAtTime($/this.comp.globalData.frameRate,0),Pt=this.getValueAtTime(($+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ct=new Array(_t.length),ut=ct.length,st=0;st<ut;st+=1)ct[st]=_t[st]+(_t[st]-Pt[st])*($-nt)/.001;return ct}return _t+(_t-Pt)*($-nt)/.001}return this.getValueAtTime((tt-(($-nt)%tt+$))/this.comp.globalData.frameRate,0)}function i(rt,ot){if(!this.k)return this.pv;if(rt=(rt||.4)*.5,ot=Math.floor(ot||5),ot<=1)return this.pv;var it=this.comp.renderedFrame/this.comp.globalData.frameRate,nt=it-rt,pt=it+rt,$=ot>1?(pt-nt)/(ot-1):1,tt=0,j=0,st;this.pv.length?st=createTypedArray("float32",this.pv.length):st=0;for(var ut;tt<ot;){if(ut=this.getValueAtTime(nt+tt*$),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]/=ot;else st/=ot;return st}function a(rt){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var ot=this._transformCachingAtTime.v;if(ot.cloneFromProps(this.pre.props),this.appliedTransformations<1){var it=this.a.getValueAtTime(rt);ot.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);ot.scale(nt[0]*this.s.mult,nt[1]*this.s.mult,nt[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var pt=this.sk.getValueAtTime(rt),$=this.sa.getValueAtTime(rt);ot.skewFromAxis(-pt*this.sk.mult,$*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var tt=this.r.getValueAtTime(rt);ot.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);ot.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 mt=this.px.getValueAtTime(rt),ft=this.py.getValueAtTime(rt);if(this.data.p.z){var St=this.pz.getValueAtTime(rt);ot.translate(mt*this.px.mult,ft*this.py.mult,-St*this.pz.mult)}else ot.translate(mt*this.px.mult,ft*this.py.mult,0)}else{var wt=this.p.getValueAtTime(rt);ot.translate(wt[0]*this.p.mult,wt[1]*this.p.mult,-wt[2]*this.p.mult)}return ot}function o(){return this.v.clone(new Matrix)}var c=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(rt,ot,it){var nt=c(rt,ot,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,ot,it,nt,pt){var $=g(rt,ot,it,nt,pt);$.kf?$.getValueAtTime=expressionHelpers.getValueAtTime.bind($):$.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind($),$.setGroupProperty=expressionHelpers.setGroupProperty,$.loopOut=e,$.loopIn=s,$.smooth=i,$.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind($),$.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind($),$.numKeys=ot.a===1?ot.k.length:0,$.propertyIndex=ot.ix;var tt=0;return it!==0&&(tt=createTypedArray("float32",ot.a===1?ot.k[0].s.length:ot.k.length)),$._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:tt},expressionHelpers.searchExpressions(rt,ot,$),$.k&&pt.addDynamicProperty($),$};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(),_e=ShapePropertyFactory.getKeyframedConstructorFunction();function et(){}et.prototype={vertices:function(ot,it){this.k&&this.getValue();var nt=this.v;it!==void 0&&(nt=this.getValueAtTime(it,0));var pt,$=nt._length,tt=nt[ot],j=nt.v,st=createSizedArray($);for(pt=0;pt<$;pt+=1)ot==="i"||ot==="o"?st[pt]=[tt[pt][0]-j[pt][0],tt[pt][1]-j[pt][1]]:st[pt]=[tt[pt][0],tt[pt][1]];return st},points:function(ot){return this.vertices("v",ot)},inTangents:function(ot){return this.vertices("i",ot)},outTangents:function(ot){return this.vertices("o",ot)},isClosed:function(){return this.v.c},pointOnPath:function(ot,it){var nt=this.v;it!==void 0&&(nt=this.getValueAtTime(it,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(nt));for(var pt=this._segmentsLength,$=pt.lengths,tt=pt.totalLength*ot,j=0,st=$.length,ut=0,ct;j<st;){if(ut+$[j].addedLength>tt){var mt=j,ft=nt.c&&j===st-1?0:j+1,St=(tt-ut)/$[j].addedLength;ct=bez.getPointInSegment(nt.v[mt],nt.v[ft],nt.o[mt],nt.i[ft],St,$[j]);break}else ut+=$[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(ot,it,nt){ot==1?ot=this.v.c:ot==0&&(ot=.999);var pt=this.pointOnPath(ot,it),$=this.pointOnPath(ot+.001,it),tt=$[0]-pt[0],j=$[1]-pt[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(ot,it){return this.vectorOnPath(ot,it,"tangent")},normalOnPath:function(ot,it){return this.vectorOnPath(ot,it,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([et],b),extendPrototype([et],_e),_e.prototype.getValueAtTime=_,_e.prototype.initiateExpression=ExpressionManager.initiateExpression;var at=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(rt,ot,it,nt,pt){var $=at(rt,ot,it,nt,pt);return $.propertyIndex=ot.ix,$.lock=!1,it===3?expressionHelpers.searchExpressions(rt,ot.pt,$):it===4&&expressionHelpers.searchExpressions(rt,ot.ks,$),$.k&&rt.addDynamicProperty($),$}}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 _e=b*(_-g),et=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,at=Math.floor(_e/et),rt;for(rt=0;rt<at;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 ot=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(ot[0]*255)+","+bmFloor(ot[1]*255)+","+bmFloor(ot[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),_e=Math.max(e,s),et=Array.call(null,{length:g}),at,rt=0,ot=o-a,it=s-e;c<=256;)_=c/256,_<=b?at=it<0?o:a:_>=_e?at=it<0?a:o:at=a+ot*Math.pow((_-e)/it,1/i),et[rt]=at,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 _e=createNS("feFlood");_e.setAttribute("flood-color","#00ff00"),_e.setAttribute("flood-opacity","1"),_e.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=_e,e.appendChild(_e);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 at=this.createMergeNode(a,[a+"_drop_shadow_4",o]);e.appendChild(at)}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,_e=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(-_e*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,_e=!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){_e=!0,o=et}finally{try{if(!b&&i.return!=null&&(g=i.return(),Object(g)!==g))return}finally{if(_e)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,_e=s.onEnterFrame,et=s.onSegmentStart,at=s.onConfigReady,rt=s.onDataReady,ot=s.onDataFailed,it=s.onLoadedImages,nt=s.onDOMLoaded,pt=s.onDestroy;s.lottieRef,s.renderer,s.name,s.assetsPath,s.rendererSettings;var $=_objectWithoutProperties(s,_excluded$1),tt=reactExports.useState(!1),j=_slicedToArray(tt,2),st=j[0],ut=j[1],ct=reactExports.useRef(),mt=reactExports.useRef(null),ft=function(){var kt;(kt=ct.current)===null||kt===void 0||kt.play()},St=function(){var kt;(kt=ct.current)===null||kt===void 0||kt.stop()},wt=function(){var kt;(kt=ct.current)===null||kt===void 0||kt.pause()},Tt=function(kt){var xt;(xt=ct.current)===null||xt===void 0||xt.setSpeed(kt)},_t=function(kt,xt){var bt;(bt=ct.current)===null||bt===void 0||bt.goToAndPlay(kt,xt)},Pt=function(kt,xt){var bt;(bt=ct.current)===null||bt===void 0||bt.goToAndStop(kt,xt)},Ct=function(kt){var xt;(xt=ct.current)===null||xt===void 0||xt.setDirection(kt)},Et=function(kt,xt){var bt;(bt=ct.current)===null||bt===void 0||bt.playSegments(kt,xt)},dt=function(kt){var xt;(xt=ct.current)===null||xt===void 0||xt.setSubframe(kt)},vt=function(kt){var xt;return(xt=ct.current)===null||xt===void 0?void 0:xt.getDuration(kt)},lt=function(){var kt;(kt=ct.current)===null||kt===void 0||kt.destroy(),ct.current=void 0},ht=function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xt;if(mt.current){(xt=ct.current)===null||xt===void 0||xt.destroy();var bt=_objectSpread2(_objectSpread2(_objectSpread2({},s),kt),{},{container:mt.current});return ct.current=lottie.loadAnimation(bt),ut(!!ct.current),function(){var It;(It=ct.current)===null||It===void 0||It.destroy(),ct.current=void 0}}};reactExports.useEffect(function(){var gt=ht();return function(){return gt==null?void 0:gt()}},[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 gt=[{name:"complete",handler:_},{name:"loopComplete",handler:b},{name:"enterFrame",handler:_e},{name:"segmentStart",handler:et},{name:"config_ready",handler:at},{name:"data_ready",handler:rt},{name:"data_failed",handler:ot},{name:"loaded_images",handler:it},{name:"DOMLoaded",handler:nt},{name:"destroy",handler:pt}],kt=gt.filter(function(bt){return bt.handler!=null});if(kt.length){var xt=kt.map(function(bt){var It;return(It=ct.current)===null||It===void 0||It.addEventListener(bt.name,bt.handler),function(){var Rt;(Rt=ct.current)===null||Rt===void 0||Rt.removeEventListener(bt.name,bt.handler)}});return function(){xt.forEach(function(bt){return bt()})}}},[_,b,_e,et,at,rt,ot,it,nt,pt]);var yt=React.createElement("div",_objectSpread2({style:i,ref:mt},$));return{View:yt,play:ft,stop:St,pause:wt,setSpeed:Tt,goToAndStop:Pt,goToAndPlay:_t,setDirection:Ct,playSegments:Et,setSubframe:dt,getDuration:vt,destroy:lt,animationContainerRef:mt,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,_e=(i-o)/_;return{x:b,y:_e}}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,at=function(){var ot=getContainerVisibility(g),it=c.find(function(pt){var $=pt.visibility;return $&&ot>=$[0]&&ot<=$[1]});if(it){if(it.type==="seek"&&it.visibility&&it.frames.length===2){var nt=it.frames[0]+Math.ceil((ot-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",at),function(){document.removeEventListener("scroll",at)}},b=function(){var et=function(it,nt){var pt=it,$=nt;if(pt!==-1&&$!==-1){var tt=getContainerCursorPosition(g,pt,$);pt=tt.x,$=tt.y}var j=c.find(function(ct){var mt=ct.position;return mt&&Array.isArray(mt.x)&&Array.isArray(mt.y)?pt>=mt.x[0]&&pt<=mt.x[1]&&$>=mt.y[0]&&$<=mt.y[1]:mt&&!Number.isNaN(mt.x)&&!Number.isNaN(mt.y)?pt===mt.x&&$===mt.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=(pt-j.position.x[0])/(j.position.x[1]-j.position.x[0]),ut=($-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)}},at=function(it){et(it.clientX,it.clientY)},rt=function(){et(-1,-1)};return g.addEventListener("mousemove",at),g.addEventListener("mouseout",rt),function(){g.removeEventListener("mousemove",at),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),_e=b.View,et=b.play,at=b.stop,rt=b.pause,ot=b.setSpeed,it=b.goToAndStop,nt=b.goToAndPlay,pt=b.setDirection,$=b.playSegments,tt=b.setSubframe,j=b.getDuration,st=b.destroy,ut=b.animationContainerRef,ct=b.animationLoaded,mt=b.animationItem;return reactExports.useEffect(function(){s.lottieRef&&(s.lottieRef.current={play:et,stop:at,pause:rt,setSpeed:ot,goToAndPlay:nt,goToAndStop:it,setDirection:pt,playSegments:$,setSubframe:tt,getDuration:j,destroy:st,animationContainerRef:ut,animationLoaded:ct,animationItem:mt})},[(i=s.lottieRef)===null||i===void 0?void 0:i.current]),useLottieInteractivity({lottieObj:{View:_e,play:et,stop:at,pause:rt,setSpeed:ot,goToAndStop:it,goToAndPlay:nt,setDirection:pt,playSegments:$,setSubframe:tt,getDuration:j,destroy:st,animationContainerRef:ut,animationLoaded:ct,animationItem:mt},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=(_e,et)=>{const at=typeof _e=="function"?_e(s):_e;if(!Object.is(at,s)){const rt=s;s=et??(typeof at!="object"||at===null)?at:Object.assign({},s,at),i.forEach(ot=>ot(s,rt))}},o=()=>s,_={setState:a,getState:o,getInitialState:()=>b,subscribe:_e=>(i.add(_e),()=>i.delete(_e))},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},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)})},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}),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}),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,_e;!_.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 at=await fetch(e,{...s,headers:_});return window&&(_e=window.location.pathname,b=_.get("client-id")),at.status===401&&i&&await refreshToken()?await fetchWrapper(e,s,!1):(at.status>401&&sendApiFailedEvent({url:e,params:{responseStatus:at.status}}),at)}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,_e;androidRefreshCB.push(g),(_e=(b=(_=window==null?void 0:window.webkit)==null?void 0:_.messageHandlers)==null?void 0:b.statusCodeHandler)==null||_e.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($=>$.aadhaarVerificationSkipStateStatus),s=useAuthAbhaStore($=>$.authTxnId),i=useAuthAbhaStore($=>$.ekaSmallToken),a=useAuthAbhaStore($=>$.setScreen),o=useAuthAbhaStore($=>$.abhaAddressList),[c,g]=reactExports.useState(!0),_=useAuthAbhaStore($=>$.clientId),b=useAuthAbhaStore($=>$.isEkaAppLogin),_e=useAuthAbhaStore($=>$.oid),et=useAuthAbhaStore($=>$.ekaProfileInfo),at=["M","F","O","U"],rt=useAuthAbhaStore($=>$.setSelectedAbhaFlow),ot=useAuthAbhaStore($=>$.txnId),it=useAuthAbhaStore($=>$.isNewLoginOrCreateFlow),nt=GET_EXTRA_HEADERS(),pt=({name:$,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:ot||"missing txnId",oid:nt!=null&&nt["X-User-ID"]?"true":"false",access_token:nt!=null&&nt.auth?"true":"false"},...tt};handleSendEvent({eventName:$,eventData:st}),(ct=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ct.call(ut,$,st)};return reactExports.useEffect(()=>{var j,st;const $=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 $,setTimeout(async()=>{var ut,ct,mt,ft,St,wt,Tt,_t;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 Ct=at.includes(et==null?void 0:et.gender)?et==null?void 0:et.gender:void 0,Et={oid:(et==null?void 0:et.oid)||"",fln:(et==null?void 0:et.name)||"",dob:et==null?void 0:et.date_of_birth,gen:Ct,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 ",Et);const dt=getMockAuthVerifyResponse(Et);if(console.log("authResponse ",dt),e===ABHA_V3_SKIP_STATES.ABHA_END&&_e){if(handleSendEvent({eventName:"abha_aadhaar_verification_status_eka_flow",eventData:{type:"verify",platform:_,transactionId:s||"",skipState:"abha_end",minToken:i||"",oid:_e||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}}),(ft=(mt=window.curio)==null?void 0:mt.pushToMixpanel)==null||ft.call(mt,"abha_aadhaar_verification_status_eka_flow",{platform:_,type:"verify",transactionId:s||"",skipState:"abha_end",minToken:i||"",oid:_e||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(St=window.EkaAbha)==null||St.onAbhaSuccess(JSON.stringify({response:dt}));return}onAbhaSuccess({response:dt}),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 Pt=await postAuthVerifyV2({txn_id:s,token:i});if(Pt.data){if(e===ABHA_V3_SKIP_STATES.ABHA_END){if(_e){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(wt=window.EkaAbha)==null||wt.onAbhaSuccess(JSON.stringify({response:Pt}));return}onAbhaSuccess({response:Pt}),unMount();return}setIndividualEnv({extraHeaders:{auth:(Tt=Pt.data)==null?void 0:Tt.tokens.sess}}),a(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(_t=Pt.data)==null?void 0:_t.tokens.sess}}),pt({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:_e="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&&_e==="left"?jsxRuntimeExports.jsx(et,{}):null,jsxRuntimeExports.jsx("div",{className:`${s} Body1Semibold`,children:e}),et&&_e==="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,disabled:_e=!1})=>{const et=reactExports.useRef([]),[at,rt]=reactExports.useState(Array(e).fill(""));reactExports.useEffect(()=>{b&&b.length===e&&(rt(b),b.join("").length===e*s&&(a==null||a(!0)))},[b,e,s,a]);const ot=($,tt)=>{var mt;if(_e)return;_&&_(null);const j=$.target.value;if(isNaN(Number(j)))return;if(j.trim().length===e*s){pt({otpValue:j,index:0});return}const ut=[...at];ut[tt]=j;const ct=ut.join("").length;ct>e*s||(rt(ut),ct===e*s?(a==null||a(!0),o({inputVal:ut.join("")})):a==null||a(!1),j.length===s&&tt<e-1&&((mt=et.current[tt+1])==null||mt.focus()))},it=($,tt)=>{var j;_e||$.key==="Backspace"&&!at[tt]&&tt>0&&((j=et.current[tt-1])==null||j.focus(),rt(st=>{const ut=[...st];return ut[tt-1]="",ut}))},nt=($,tt)=>{if(_e)return;$.preventDefault();const j=$.clipboardData.getData("text").replace(/\D/g,"");if(!j)return;const st=e*s,ut=j.slice(0,st);pt({otpValue:ut,index:tt})},pt=({otpValue:$,index:tt})=>{var ct,mt;const j=$.match(new RegExp(`.{1,${s}}`,"g"))||[],st=[...at];j.forEach((ft,St)=>{tt+St<e&&(st[tt+St]=ft)}),rt(st);const ut=st.findIndex((ft,St)=>St>=tt&&!ft);ut!==-1?(ct=et.current[ut])==null||ct.focus():(mt=et.current[e-1])==null||mt.focus(),st.join("").length===e*s?(a==null||a(!0),o({inputVal:st.join("")})):a==null||a(!1)};return jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-justify-center pds2-items-center pds2-space-x-8 ${g}`,children:Array.from({length:e}).map(($,tt)=>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:tt===0&&!_e,placeholder:i,value:at[tt],type:"text",inputMode:"numeric",pattern:"[0-9]*",onPaste:j=>nt(j,tt),ref:j=>{j&&(et.current[tt]=j)},onChange:j=>ot(j,tt),onKeyDown:j=>it(j,tt),disabled:_e,className:"pds2-w-full pds2-text-center pds2-h-56 pds2-rounded-12 pds2-outline-none pds2-bg-transparent disabled:pds2-text-text-04"},tt)},tt))})};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:"Body3CapsSemibold",children:"Resend OTP in"})," ",jsxRuntimeExports.jsx("span",{className:"Body3CapsSemibold",children:formatTime(a)})]})}):jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsx("button",{className:"Body3CapsSemibold pds2-text-text-brand cursor-pointer",onClick:()=>{o(e),s()},children:"Resend OTP"})})},AbhaOtpCard=({otpSentToText:e,onOtpCompletion:s,onResendOtpClick:i,setIsValid:a,error:o,prefixIcon:c=jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"adhaar",className:"pds2-w-48"})})=>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:" *"})]}),c]}),jsxRuntimeExports.jsx(SpacedInputComponent,{numberOfInputs:6,length:1,onSubmit:({inputVal:g})=>s({otp:g}),setIsValid:a,error:o}),jsxRuntimeExports.jsx(ResendTimer,{time:60,onResendOtpClick:i,error:o}),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(et=>et.goBackLoginScreen),a=useAuthAbhaStore(et=>et.clientId),o=useAuthAbhaStore(et=>et.isEkaAppLogin),c=useAuthAbhaStore(et=>et.isNewLoginOrCreateFlow),g=useAuthAbhaStore(et=>et.setAbhaAuthFlowMethod),_=useAuthAbhaStore(et=>et.txnId),b=({name:et,data:at={}})=>{var it,nt;const ot={...{login_platform:a,is_eka_app_login:o?"true":"false",is_new_login_or_create_flow:c?"true":"false",txn_id:_||"missing txnId"},...at};handleSendEvent({eventName:et,eventData:ot}),(nt=(it=window.curio)==null?void 0:it.pushToMixpanel)==null||nt.call(it,et,ot)},_e=()=>{b({name:"abha_exit_popup_confirmed",data:{action:"go_back_to_login_screen"}}),g(ABHA_AUTH_FLOW_METHOD.MOBILE),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:_e})]})]})})})}):null})},AbhaStepper=()=>{const e=useAuthAbhaStore(b=>b.screen),s=useAuthAbhaStore(b=>b.currentStepperIndex),i=useAuthAbhaStore(b=>b.setCurrentStepperIndex),a=e[e.length-1],o=useAuthAbhaStore(b=>b.abhaAuthFlowMethod),c={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 _e;const b=(_e=Object.entries(c).find(([et,at])=>at.includes(a)))==null?void 0:_e[0];if(b){if(a==="VERIFY_OTP_LOGIN_WITH_ABHA"&&(o==="abha_number"||o==="phr_address")){i(3);return}Number(b)>=s&&i(Number(b))}},[e]);const g=Array.from({length:4},(b,_e)=>{const et=_e+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-cursor-pointer pds2-text-bg-white ${et<=s?"pds2-bg-text-brand":"pds2-bg-bg-secondary"}`,children:et},et)}),_=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",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-row pds2-justify-between pds2-items-center pds2-gap-5 pds2-h-auto pds2-w-full pds2-z-10",children:g}),jsxRuntimeExports.jsx("progress",{className:"abhaStepper pds2-absolute pds2-w-full pds2-h-2 pds2-px-60",max:100,value:_})]})};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(yt=>yt.authTxnId),s=useAuthAbhaStore(yt=>yt.txnId),i=useAuthAbhaStore(yt=>yt.setAbhaAddressList),a=useAuthAbhaStore(yt=>yt.clearAbhaAuthStore),o=useAuthAbhaStore(yt=>yt.aadhaarOtpSentToHint),c=useAuthAbhaStore(yt=>yt.loginIdentifierValue),g=useAuthAbhaStore(yt=>yt.abhaAuthFlowMethod),_=useAuthAbhaStore(yt=>yt.setScreen),b=useAuthAbhaStore(yt=>yt.goBackLoginScreen),_e=useAuthAbhaStore(yt=>yt.setTxnId),et=useAuthAbhaStore(yt=>yt.setBottomsheetErrorInfo),[at,rt]=reactExports.useState(!1),ot=useAuthAbhaStore(yt=>yt.setEkaProfileInfo),it=useAuthAbhaStore(yt=>yt.setAadhaarVerificationSkipStateStatus),nt=useAuthAbhaStore(yt=>yt.setSelectedAbhaAddress),[pt,$]=reactExports.useState(""),[tt,j]=reactExports.useState(!1),[st,ut]=reactExports.useState(""),[ct,mt]=reactExports.useState(LOADING_STATE.IDLE),ft=["M","F","O","U"],{mutateAsync:St}=usePostAuthVerifyV2(),{mutateAsync:wt}=usePostAbdmLoginVerify(),Tt=useAuthAbhaStore(yt=>yt.isEkaAppLogin),_t=useAuthAbhaStore(yt=>yt.clientId);useAuthAbhaStore(yt=>yt.oid);const Pt=useAuthAbhaStore(yt=>yt.isNewLoginOrCreateFlow),Ct=GET_EXTRA_HEADERS(),Et=({name:yt,data:gt={}})=>{var bt,It;const xt={...{login_platform:_t,is_eka_app_login:Tt?"true":"false",is_new_login_or_create_flow:Pt?"true":"false",txn_id:s||"missing txnId",oid:Ct!=null&&Ct["X-User-ID"]?"true":"false",access_token:Ct!=null&&Ct.auth?"true":"false"},...gt};handleSendEvent({eventName:yt,eventData:xt}),(It=(bt=window.curio)==null?void 0:bt.pushToMixpanel)==null||It.call(bt,yt,xt)};reactExports.useEffect(()=>{Et({name:"page_view",data:{page_view:"abha_login_otp_verify",platform:_t}})},[]);const dt=()=>{Et({name:"abha_login_otp_verify_error_bottomsheet_dismissed",data:{platform:_t}}),b();const yt=useAuthAbhaStore.getState().isEkaAppLogin;a(),useAuthAbhaStore.setState({isEkaAppLogin:yt})},vt=({otp:yt})=>{$(yt),Et({name:"abha_login_otp_completion",data:{type:"verify",platform:_t,txn_id:s,otp_entered:!0,method:g}}),lt(yt)},lt=async yt=>{var Ft,Lt,Vt,Kt,Gt,Dt;if(!s){Et({name:"abha_login_otp_verify_txnId_not_found",data:{type:"verify",platform:_t,txn_id:s||"missing_txn_id",txn_id_exists:!!s,method:(g==null?void 0:g.toLowerCase())||"unknown_method"}});return}Et({name:"abha_login_otp_verify",data:{type:"verify",platform:_t,txn_id:s}}),mt(LOADING_STATE.LOADING);const{abha_profiles:gt=[],skip_state:kt,profile:xt,error:bt,action:It,eka:Rt}=await wt({otp:yt,txn_id:s});if(It){Et({name:"abha_login_otp_verify_error_action",data:{type:"verify",platform:_t,error_action:It||"no_error_action",error_message:bt||"no_error_message",error_action_exists:!!It,error_message_exists:!!bt}}),et(It);return}if(bt){Et({name:"abha_login_otp_verify_error",data:{type:"verify",platform:_t,error_message:bt||"unknown_error",error_message_exists:!!bt}}),mt(LOADING_STATE.REJECTED),ut(bt);return}if(!kt){ut("Skip State is missing"),Et({name:"abha_login_skip_state_missing",data:{platform:_t,skipState:kt||"missing_skip_state",skipState_exists:!!kt}});return}it(kt),xt&&nt(xt.abha_address),xt&&ot({date_of_birth:`${xt.year_of_birth}-${String(xt.month_of_birth).padStart(2,"0")}-${String(xt.day_of_birth).padStart(2,"0")}`,firstname:xt.first_name,lastname:xt.last_name,pincode:xt.pincode,gender:xt.gender,name:xt.first_name+" "+xt.last_name,mobile:xt.mobile,oid:Rt==null?void 0:Rt.oid,abha_address:xt==null?void 0:xt.abha_address,abha_number:xt==null?void 0:xt.abha_number});const Bt=ft.includes(xt==null?void 0:xt.gender)?xt==null?void 0:xt.gender:void 0,Mt={oid:(Rt==null?void 0:Rt.oid)||"",fln:(xt==null?void 0:xt.first_name)+" "+(xt==null?void 0:xt.last_name),dob:`${xt==null?void 0:xt.year_of_birth}-${String(xt==null?void 0:xt.month_of_birth).padStart(2,"0")}-${String(xt==null?void 0:xt.day_of_birth).padStart(2,"0")}`,gen:Bt,mobile:xt==null?void 0:xt.mobile,fn:(xt==null?void 0:xt.first_name)||"",mn:(xt==null?void 0:xt.middle_name)||"",ln:(xt==null?void 0:xt.last_name)||"","health-ids":xt!=null&&xt.abha_address?[xt.abha_address]:void 0,abha_number:(xt==null?void 0:xt.abha_number)||""};if(kt===ABHA_V3_SKIP_STATES.ABHA_END){if(Tt){if(Et({name:"abha_login_otp_verify_eka_app",data:{type:"verify",platform:_t,txn_id:s,skip_state:kt}}),mt(LOADING_STATE.RESOLVED),!Rt){Et({name:"abha_login_otp_verify_eka_app_error",data:{type:"null_oid",platform:_t,txn_id:s||"missing_txn_id",txn_id_exists:!!s,eka:Rt||"missing_eka",eka_exists:!!Rt,skip_state:kt||"missing_skip_state",skip_state_exists:!!kt}}),mt(LOADING_STATE.REJECTED),ut("Something went wrong, please try again");return}const Zt=getMockAuthVerifyResponse(Mt);if(Et({name:"abha_login_otp_verify_success",data:{type:"verify",platform:_t,txn_id:s,skip_state:kt,method:g}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Ft=window.EkaAbha)==null||Ft.onAbhaSuccess(JSON.stringify({response:Zt}));return}onAbhaSuccess({response:Zt}),unMount();return}if(!Rt||!Rt.min_token||!e){Et({name:"abha_login_otp_verify_eka_error",data:{type:"verify",platform:_t,eka:Rt||"missing_eka",eka_exists:!!Rt,auth_txnId:e||"missing_auth_txnId",auth_txnId_exists:!!e,skip_state:kt||"missing_skip_state",skip_state_exists:!!kt}}),mt(LOADING_STATE.REJECTED),ut("Something went wrong, please try again");return}const Ut=await St({txn_id:e,token:Rt.min_token,...Rt.oid?{oid:Rt.oid}:null});if(!Ut.data){Et({name:"abha_login_otp_verify_auth_verify_error",data:{type:"verify",platform:_t,skip_state:kt||"missing_skip_state",skip_state_exists:!!kt,auth_verify_data_exists:!1}}),mt(LOADING_STATE.REJECTED),ut(((Lt=Ut.error)==null?void 0:Lt.message)||"Something went wrong, please try again");return}Et({name:"abha_login_otp_verify_abha_end_success",data:{type:"verify",platform:_t,txn_id:s,skip_state:kt}}),mt(LOADING_STATE.RESOLVED);return}if(kt===ABHA_V3_SKIP_STATES.ABHA_SELECT&>.length>0){Et({name:"abha_login_otp_verify_abha_select",data:{type:"verify",platform:_t}}),_(SCREEN_NAMES.SELECT_ABHA_FROM_LIST),i(gt);return}if(kt===ABHA_V3_SKIP_STATES.ABHA_CREATE&&g===ABHA_AUTH_FLOW_METHOD.MOBILE){_(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(kt===ABHA_V3_SKIP_STATES.ABHA_CREATE){_(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}if(Tt){if(!Rt){Et({name:"abha_login_otp_verify_eka_failed",data:{type:"verify",platform:_t,txn_id:e||"missing_authTxnId",txn_id_exists:!!e}}),mt(LOADING_STATE.REJECTED),ut("Something went wrong, please try again");return}const Ut=getMockAuthVerifyResponse(Mt);if(mt(LOADING_STATE.RESOLVED),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Vt=window.EkaAbha)==null||Vt.onAbhaSuccess(JSON.stringify({response:Ut}));return}onAbhaSuccess({response:Ut}),unMount();return}if(!kt||!(Rt!=null&&Rt.min_token)){mt(LOADING_STATE.REJECTED),ut(bt||"Something went wrong, please try again"),It&&et(It);return}if(Rt.min_token&&e){const Ut=await St({txn_id:e,token:Rt.min_token});Ut.data?Et({name:"abha_login_auth_verify_success",data:{platform:_t,txn_id:e}}):(Et({name:"abha_login_auth_verify_failed",data:{platform:_t,txn_id:e||"missing_authTxnId",txn_id_exists:!!e,error_message:((Kt=Ut==null?void 0:Ut.error)==null?void 0:Kt.message)||"unknown_error",error_message_exists:!!((Gt=Ut==null?void 0:Ut.error)!=null&&Gt.message)}}),mt(LOADING_STATE.REJECTED),ut(((Dt=Ut.error)==null?void 0:Dt.message)||"Something went wrong, please try again"))}mt(LOADING_STATE.RESOLVED)},ht=async()=>{if(c&&g){const{txn_id:yt}=await postAbdmLoginInit({method:g,identifier:c});Et({name:"abha_login_verify_resend_otp",data:{method:g,platform:_t,txn_id:yt}}),yt&&_e(yt)}};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:()=>rt(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),title:"OTP Verification",suffixIcon: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:o||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:vt,onResendOtpClick:ht,error:st,setIsValid:yt=>{st&&ut(null),j(yt)},prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abha",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:!tt||ct===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>lt(pt),isLoading:ct===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:dt}),jsxRuntimeExports.jsx(ExitPopup,{open:at,setOpen:rt})]})};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($=>$.aadhaarVerificationSkipStateStatus),s=useAuthAbhaStore($=>$.authTxnId),i=useAuthAbhaStore($=>$.ekaSmallToken),a=useAuthAbhaStore($=>$.oid),o=useAuthAbhaStore($=>$.setScreen),[c,g]=reactExports.useState(!0),_=useAuthAbhaStore($=>$.setEkaProfileInfo),b=useAuthAbhaStore($=>$.clientId),_e=useAuthAbhaStore($=>$.isEkaAppLogin),et=useAuthAbhaStore($=>$.ekaProfileInfo),at=["M","F","O","U"],rt=reactExports.useRef(!1),ot=useAuthAbhaStore($=>$.isNewLoginOrCreateFlow),it=useAuthAbhaStore($=>$.txnId),nt=GET_EXTRA_HEADERS(),pt=({name:$,data:tt={}})=>{var ut,ct;const st={...{login_platform:b,is_eka_app_login:_e?"true":"false",is_new_login_or_create_flow:ot?"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:$,eventData:st}),(ct=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ct.call(ut,$,st)};return reactExports.useEffect(()=>{const $=new Promise(j=>{setTimeout(()=>{j(g(!1))},500)});pt({name:"page_view",data:{page_view:"mobile_verified_successful",platform:b}});async function tt(){await $,setTimeout(async()=>{var j,st,ut,ct,mt,ft;if(e===ABHA_V3_SKIP_STATES.ABHA_CREATE||e===ABHA_V3_SKIP_STATES.ABHA_END){if(pt({name:"abha_create_mobile_initiate",data:{platform:b,oid_received:a,txn_id:it,skip_state:e}}),a&&!rt.current){const wt=await getProfilesPatient();rt.current=!0,wt&&_({date_of_birth:wt.dob,firstname:wt.fn,lastname:wt.ln,pincode:"",gender:wt.gen,oid:wt==null?void 0:wt.oid,middlename:wt==null?void 0:wt.mn,abha_address:(j=wt==null?void 0:wt["health-ids"])==null?void 0:j[0],abha_number:wt==null?void 0:wt.abha_number})}if(_e&&e===ABHA_V3_SKIP_STATES.ABHA_END&&a){const wt=at.includes(et==null?void 0:et.gender)?et==null?void 0:et.gender:void 0,Tt={oid:(et==null?void 0:et.oid)||"",fln:(et==null?void 0:et.name)||"",dob:et==null?void 0:et.date_of_birth,gen:wt,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)||""};pt({name:"abha_mobile_linking_success",data:{type:"unmount",isEkaAppLogin:_e,skip_state:e}});const _t=getMockAuthVerifyResponse(Tt);if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(st=window.EkaAbha)==null||st.onAbhaSuccess(JSON.stringify({response:_t}));return}onAbhaSuccess({response:_t}),unMount();return}if(_e&&e===ABHA_V3_SKIP_STATES.ABHA_CREATE){pt({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){pt({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 St=await postAuthVerifyV2({txn_id:s,token:i});if(St.data){if(setIndividualEnv({extraHeaders:{auth:(ut=St.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:St}));return}onAbhaSuccess({response:St}),unMount();return}setIndividualEnv({extraHeaders:{auth:(mt=St.data)==null?void 0:mt.tokens.sess}}),pt({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:(ft=St.data)==null?void 0:ft.tokens.sess}}),pt({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:_e=()=>{},type:et="text",label:at,isMandatory:rt,maxDate:ot,error:it,autoCapitalize:nt="off",autoCorrect:pt="off",disabled:$,inputMode:tt,autoFocus:j,pattern:st,maxLength:ut})=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-8 pds2-w-full",children:[at?jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-text-04",children:[at,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"&&ot?ot:void 0,onKeyDown:_e,autoCapitalize:nt,autoCorrect:pt,disabled:$,inputMode:tt,autoFocus:j,pattern:st,maxLength:ut,required:rt})]})]}),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 _e,et;(_e=window.EkaAbha)!=null&&_e.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:"national health authority",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:"ABHA Address 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 _e,et;if((et=(_e=window.curio)==null?void 0:_e.pushToMixpanel)==null||et.call(_e,"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(xt=>xt.setScreen),i=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod),a=useAuthAbhaStore(xt=>xt.setRegistrationType),o=useAuthAbhaStore(xt=>xt.setAadhaarInitResponse),c=useAuthAbhaStore(xt=>xt.setMobileInitResponse),g=useAuthAbhaStore(xt=>xt.setBottomsheetErrorInfo),_=useAuthAbhaStore(xt=>xt.clearAbhaAuthStore);useAuthAbhaStore(xt=>xt.initAbhaAppMethod);const b=useAuthAbhaStore(xt=>xt.initAbhaAppMobileNumber),_e=useAuthAbhaStore(xt=>xt.isLoggedInFromRedirect),[et,at]=reactExports.useState(""),[rt,ot]=reactExports.useState(""),[it,nt]=reactExports.useState(!1),[pt,$]=reactExports.useState(!1),[tt,j]=reactExports.useState(null),[st,ut]=reactExports.useState(!0),[ct,mt]=reactExports.useState(!1),[ft,St]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),wt=!!b,Tt=useAuthAbhaStore(xt=>xt.clientId),_t=useAuthAbhaStore(xt=>xt.isEkaAppLogin),Pt=useAuthAbhaStore(xt=>xt.isDocAppRequest),Ct=useAuthAbhaStore(xt=>xt.setIsApiTriggered),Et=useAuthAbhaStore(xt=>xt.isApiTriggered),dt=useAuthAbhaStore(xt=>xt.setSelectedAbhaFlow);useAuthAbhaStore(xt=>xt.isNewLoginOrCreateFlow),reactExports.useEffect(()=>{b&&(ot(b),$(b.length===10))},[b]),reactExports.useEffect(()=>{var It,Rt;if(Et){console.log("Api is already triggered: ",Et);return}const xt=et&&et.length===12&&st,bt=rt&&rt.length===10&&st;if(console.log("Conditions check:","isLoggedInFromRedirect:",_e,"shouldTriggerAadhaar:",xt,"shouldTriggerMobile:",bt),_e||xt||bt){Ct(!0),console.log("Setting hasTriggered to true and proceeding with registration");let Bt="";xt?Bt="abha_aadhaar_otp_verify_clicks":bt&&(Bt="abha_mobile_otp_verify_clicks"),Bt&&((Rt=(It=window.curio)==null?void 0:It.pushToMixpanel)==null||Rt.call(It,Bt,{platform:Tt,type:"next"})),yt()}},[_e,et,rt,st,Et]);const vt=(xt,bt)=>{St(It=>({...It,[xt]:bt}))},lt=xt=>{const bt=xt.target.value;bt.length<=10&&(ot(bt),$(bt.length===10),j(null))},ht=({inputVal:xt})=>{tt&&j(null),xt.length===12&&at(xt)},yt=async()=>{var It,Rt,Bt,Mt,Ft,Lt,Vt,Kt,Gt,Dt,Ut,Zt,rr,Qt,Wt,Ot,Nt,jt,zt,Yt;j(null);const xt=i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"aadhaar":"mobile";vt(xt,LOADING_STATE.LOADING);let bt="";if(!_t){handleSendEvent({eventName:"abha_create_auth_api_trigger",eventData:{type:"api_trigger",platform:Tt,isEkaAppLogin:_t?"true":"false"}}),(Rt=(It=window.curio)==null?void 0:It.pushToMixpanel)==null||Rt.call(It,"abha_create_auth_api_trigger",{platform:Tt,type:"api_trigger",isEkaAppLogin:_t?"true":"false"});const{txn_id:qt,error:er}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!qt){handleSendEvent({eventName:"abha_create_auth_txnId_not_found",eventData:{type:"api_trigger",platform:Tt,transactionId:qt||"",isEkaAppLogin:_t?"true":"false"}}),(Mt=(Bt=window.curio)==null?void 0:Bt.pushToMixpanel)==null||Mt.call(Bt,"abha_create_auth_txnId_not_found",{platform:Tt,type:"api_trigger",transactionId:qt||"",isEkaAppLogin:_t?"true":"false"}),j((er==null?void 0:er.message)||"Something went wrong"),vt(xt,LOADING_STATE.REJECTED);return}bt=qt,handleSendEvent({eventName:"abha_create_auth_api_trigger_success",eventData:{type:"api_trigger",platform:Tt,authTransactionId:bt,isEkaAppLogin:_t?"true":"false"}}),(Lt=(Ft=window.curio)==null?void 0:Ft.pushToMixpanel)==null||Lt.call(Ft,"abha_create_auth_api_trigger_success",{platform:Tt,type:"api_trigger",authTransactionId:bt,isEkaAppLogin:_t?"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:Tt,isEkaAppLogin:_t?"true":"false"}}),(Kt=(Vt=window.curio)==null?void 0:Vt.pushToMixpanel)==null||Kt.call(Vt,"abha_aadhaar_init_api_trigger_initiate",{platform:Tt,type:"api_trigger",isEkaAppLogin:_t?"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:qt,hint:er,error:or,action:ir}=await postRegisterAadhaarInit({aadhaar_number:et});if(qt&&er){o({authTxnId:bt,txnId:qt,aadhaarOtpSentToHint:er}),handleSendEvent({eventName:"abha_aadhaar_init_api_trigger_success",eventData:{type:"api_trigger",platform:Tt,transactionId:qt,isEkaAppLogin:_t?"true":"false"}}),(Dt=(Gt=window.curio)==null?void 0:Gt.pushToMixpanel)==null||Dt.call(Gt,"abha_aadhaar_init_api_trigger_success",{platform:Tt,type:"api_trigger",transactionId:qt,isEkaAppLogin:_t?"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:Tt,transactionId:qt||"",isEkaAppLogin:_t?"true":"false"}}),(Zt=(Ut=window.curio)==null?void 0:Ut.pushToMixpanel)==null||Zt.call(Ut,"abha_aadhaar_init_api_trigger_failure",{platform:Tt,type:"api_trigger",transactionId:qt||"",isEkaAppLogin:_t?"true":"false"}),vt("aadhaar",LOADING_STATE.REJECTED),ir?g(ir):j(or||"Something went wrong")}else{vt("mobile",LOADING_STATE.LOADING);const qt=b||rt;if(!qt||qt.length!==10)return handleSendEvent({eventName:"abha_mobile_number_length_error",eventData:{type:"verify",platform:Tt,mobileNumber:qt,isEkaAppLogin:_t?"true":"false"}}),(Qt=(rr=window.curio)==null?void 0:rr.pushToMixpanel)==null||Qt.call(rr,"abha_mobile_number_length_error",{platform:Tt,type:"verify",mobileNumber:qt,isEkaAppLogin:_t?"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:Tt,isEkaAppLogin:_t?"true":"false"}}),(Ot=(Wt=window.curio)==null?void 0:Wt.pushToMixpanel)==null||Ot.call(Wt,"abha_mobile_init_api_trigger_initiate",{platform:Tt,type:"api_trigger",isEkaAppLogin:_t?"true":"false"});const{txn_id:er,hint:or,error:ir,action:ar}=await postRegisterMobileInit({mobile_number:qt});if(er&&or){c({authTxnId:bt,txnId:er,mobileOtpSentToHint:or}),handleSendEvent({eventName:"abha_mobile_init_api_trigger_success",eventData:{type:"api_trigger",platform:Tt,transactionId:er,isEkaAppLogin:_t?"true":"false",authTransactionId:bt}}),(jt=(Nt=window.curio)==null?void 0:Nt.pushToMixpanel)==null||jt.call(Nt,"abha_mobile_init_api_trigger_success",{platform:Tt,type:"api_trigger",transactionId:er,isEkaAppLogin:_t?"true":"false",authTransactionId:bt}),dt("mobile"),vt("mobile",LOADING_STATE.RESOLVED),a(REGISTRATION_TYPE.CREATE),dt("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:Tt,transactionId:er||"",isEkaAppLogin:_t?"true":"false",authTransactionId:bt}}),(Yt=(zt=window.curio)==null?void 0:zt.pushToMixpanel)==null||Yt.call(zt,"abha_mobile_init_api_trigger_failure",{platform:Tt,type:"api_trigger",transactionId:er||"",isEkaAppLogin:_t?"true":"false",authTransactionId:bt}),vt("mobile",LOADING_STATE.REJECTED),ar?g(ar):j(ir||"Something went wrong")}},gt=xt=>{var It,Rt;xt.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:Tt}}),(Rt=(It=window.curio)==null?void 0:It.pushToMixpanel)==null||Rt.call(It,bt,{platform:Tt,type:"next"}),tt&&j(null),yt()},kt=()=>{const xt=useAuthAbhaStore.getState().initAbhaAppMobileNumber,bt=useAuthAbhaStore.getState().initAbhaAppMethod,It=useAuthAbhaStore.getState().isEkaAppLogin,Rt=useAuthAbhaStore.getState().isApiTriggered,Bt=useAuthAbhaStore.getState().clientId;s(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR),_(),useAuthAbhaStore.setState({initAbhaAppMobileNumber:xt}),useAuthAbhaStore.setState({screen:[SCREEN_NAMES.LOGIN_WITH_ABHA]}),useAuthAbhaStore.setState({isEkaAppLogin:It}),useAuthAbhaStore.setState({initAbhaAppMethod:bt}),useAuthAbhaStore.setState({isApiTriggered:Rt}),useAuthAbhaStore.setState({clientId:Bt}),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:"adaar",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:Pt?"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:wt,type:"tel",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:"India Flag",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:xt=>{tt&&j(null),mt(!1),ut(xt)},isErrored:ct}),jsxRuntimeExports.jsx("div",{onClick:()=>{st||mt(!0)},children:jsxRuntimeExports.jsx(Pds2Button,{title:ft[i===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"aadhaar":"mobile"]===LOADING_STATE.LOADING?"Verifying":"Next",onClick:gt,IconComponent:ft[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":pt&&st?"enabled":"disabled",className:"pds2-w-full"})}),tt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Semibold",children:tt})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:kt})]})},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(bt=>bt.setAbhaAddressList),s=useAuthAbhaStore(bt=>bt.setScreen),i=useAuthAbhaStore(bt=>bt.txnId),a=useAuthAbhaStore(bt=>bt.setTxnId),o=useAuthAbhaStore(bt=>bt.aadhaarOtpSentToHint),c=useAuthAbhaStore(bt=>bt.setAadhaarVerificationSkipStateStatus),g=useAuthAbhaStore(bt=>bt.setEkaSmallToken),_=useAuthAbhaStore(bt=>bt.setOid),b=useAuthAbhaStore(bt=>bt.clearAbhaAuthStore),_e=useAuthAbhaStore(bt=>bt.setBottomsheetErrorInfo),et=useAuthAbhaStore(bt=>bt.goBackLoginScreen),[at,rt]=reactExports.useState(""),[ot,it]=reactExports.useState(!1),[nt,pt]=reactExports.useState(""),[$,tt]=reactExports.useState(null),[j,st]=reactExports.useState(!0),[ut,ct]=reactExports.useState(!0),[mt,ft]=reactExports.useState(LOADING_STATE.IDLE),St=useAuthAbhaStore(bt=>bt.setSelectedAbhaAddress),wt=useAuthAbhaStore(bt=>bt.initAbhaAppMobileNumber),Tt=useAuthAbhaStore(bt=>bt.setEkaProfileInfo),_t=useAuthAbhaStore(bt=>bt.clientId),Pt=useAuthAbhaStore(bt=>bt.isEkaAppLogin),Ct=useAuthAbhaStore(bt=>bt.isNewLoginOrCreateFlow),Et=GET_EXTRA_HEADERS(),dt=useAuthAbhaStore(bt=>bt.abhaAuthFlowMethod),vt=({name:bt,data:It={}})=>{var Mt,Ft;const Bt={...{login_platform:_t,is_eka_app_login:Pt?"true":"false",is_new_login_or_create_flow:Ct?"true":"false",txn_id:i||"missing txnId",oid:Et!=null&&Et["X-User-ID"]?"true":"false",access_token:Et!=null&&Et.auth?"true":"false",flow:dt??""},...It};handleSendEvent({eventName:bt,eventData:Bt}),(Ft=(Mt=window.curio)==null?void 0:Mt.pushToMixpanel)==null||Ft.call(Mt,bt,Bt)};reactExports.useEffect(()=>{wt&&pt(wt)},[wt]);const lt=({otp:bt})=>{vt({name:"abha_aadhaar_otp_enter_clicks",data:{page_view:"aadhaar_verification",platform:_t,otp_entered:!0}}),rt(bt)},ht=({mobileNumber:bt})=>{pt(bt),vt({name:"abha_aadhaar_mobile_otp_enter",data:{page_view:"aadhaar_verification",platform:_t}})},yt=async()=>{if(!i){vt({name:"aadhaar_otp_resend_clicked_no_txnId",data:{platform:_t,txn_id:i||"missing_txnId",txn_id_exists:!!i}});return}const{txn_id:bt,error:It,action:Rt}=await postRegisterAadhaarResendOtp({txn_id:i});if(!bt){vt({name:"aadhaar_otp_resend_failed",data:{platform:_t,reason:It||"no_txn_id",reason_exists:!!It}}),tt(It||"Something went wrong, please try again"),Rt&&_e(Rt);return}vt({name:"aadhaar_otp_resend_success",data:{platform:_t,txn_id:bt}}),a(bt)},gt=async()=>{if(!i){vt({name:"aadhaar_otp_verification_no_txnId",data:{platform:_t,type:"verify",txn_id:i||"missing_txnId",txn_id_exists:!!i}});return}vt({name:"abha_aadhaar_otp_verify_submitted",data:{platform:_t,type:"verify"}}),ft(LOADING_STATE.LOADING);const{txn_id:bt,skip_state:It,profile:Rt,eka:Bt,error:Mt,abha_profiles:Ft,action:Lt}=await postRegisterAadhaarVerify({otp:at,mobile:nt,txn_id:i});if(!bt||!It){vt({name:"aadhaar_otp_verification_failed",data:{platform:_t,reason:Mt||"missing_txn_id_or_skip_state",txn_id_exists:!!bt,skip_state_exists:!!It}}),ft(LOADING_STATE.REJECTED),tt(Mt||"Something went wrong, please try again"),Lt&&_e(Lt);return}vt({name:"aadhaar_otp_verification_success",data:{platform:_t,skip_state:It,oid:Bt==null?void 0:Bt.oid}}),ft(LOADING_STATE.RESOLVED),c(It),Bt!=null&&Bt.min_token&&g(Bt.min_token),Rt&&Rt.abha_address&&St(Rt.abha_address),Bt!=null&&Bt.oid&&_(Bt.oid),Rt&&Tt({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:Bt==null?void 0:Bt.oid,abha_address:Rt.abha_address,abha_number:Rt.abha_number}),vt({name:"abha_aadhaar_otp_verification_success",data:{platform:_t,skip_state:It,oid:Bt==null?void 0:Bt.oid}}),Ft&&e(Ft),s(SCREEN_NAMES.AADHAAR_VERIFICATION_STATUS)},kt=()=>{s(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const bt=useAuthAbhaStore.getState().isEkaAppLogin;b(),useAuthAbhaStore.setState({isEkaAppLogin:bt})},xt=ot&&nt.length===10&&j&&ut;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:et,children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),title:"Create ABHA",suffixIcon: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:o||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:lt,onResendOtpClick:yt,setIsValid:it,error:$}),jsxRuntimeExports.jsx(EnterMobileNumberCard,{mobileNumber:nt,onMobileNumberChange:ht,isOtpValid:ot,onKeyDown:({key:bt})=>{bt==="Enter"&>()}}),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:j,onCheckboxChange:bt=>{st(bt)}})})]}),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:!xt||mt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:gt,isLoading:mt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:kt})]})},EnterMobileNumberCard=({mobileNumber:e,onMobileNumberChange:s,isOtpValid:i,onKeyDown:a})=>{const o=reactExports.useRef(null);reactExports.useEffect(()=>{o.current&&i&&o.current.focus()},[i]);const c=useAuthAbhaStore(b=>b.abhaAuthFlowMethod),g=useAuthAbhaStore(b=>b.initAbhaAppMobileNumber),_=c===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!g;return g&&(e=g),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 focus-within:pds2-border-border-brand-01 pds2-border-border-03 pds2-rounded-12",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:o,placeholder:"Mobile Number",type:"tel",value:e,disabled:_,onPaste:b=>{b.preventDefault();const _e=b.clipboardData.getData("text").replace(/[^0-9]/g,"");s({mobileNumber:_e.slice(-10)})},onChange:b=>{if(b.target.value.length>10)return;const _e=b.target.value.replace(/[^0-9]/g,"");s({mobileNumber:_e.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})]}),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(dt=>dt.txnId),s=useAuthAbhaStore(dt=>dt.clearAbhaAuthStore),i=useAuthAbhaStore(dt=>dt.setBottomsheetErrorInfo),a=useAuthAbhaStore(dt=>dt.setEkaSmallToken),o=useAuthAbhaStore(dt=>dt.setOid),c=useAuthAbhaStore(dt=>dt.setAadhaarVerificationSkipStateStatus),g=useAuthAbhaStore(dt=>dt.setSelectedAbhaAddress),_=useAuthAbhaStore(dt=>dt.setAbhaAddressList),b=useAuthAbhaStore(dt=>dt.setScreen),_e=useAuthAbhaStore(dt=>dt.abhaAuthFlowMethod),[et,at]=reactExports.useState(""),[rt,ot]=reactExports.useState(!1),[it,nt]=reactExports.useState(""),[pt,$]=reactExports.useState(LOADING_STATE.IDLE),tt=useAuthAbhaStore(dt=>dt.setTxnId),j=useAuthAbhaStore(dt=>dt.setEkaProfileInfo),st=useAuthAbhaStore(dt=>dt.clientId),ut=useAuthAbhaStore(dt=>dt.selectedAbhaFlow),ct=useAuthAbhaStore(dt=>dt.isNewLoginOrCreateFlow),mt=useAuthAbhaStore(dt=>dt.isEkaAppLogin),ft=GET_EXTRA_HEADERS(),[St,wt]=reactExports.useState(!1);console.log("selectedAbhaFlow is : ",ut);const Tt=({name:dt,data:vt={}})=>{var yt,gt;const ht={...{login_platform:st,is_eka_app_login:mt?"true":"false",is_new_login_or_create_flow:ct?"true":"false",txn_id:e||"missing txnId",oid:ft!=null&&ft["X-User-ID"]?"true":"false",access_token:ft!=null&&ft.auth?"true":"false",flow:_e??""},...vt};handleSendEvent({eventName:dt,eventData:ht}),(gt=(yt=window.curio)==null?void 0:yt.pushToMixpanel)==null||gt.call(yt,dt,ht)};reactExports.useEffect(()=>{Tt({name:"page_view",data:{page_view:"abha_mobile_otp_verify",platform:st}})},[]);const _t=({otp:dt})=>{at(dt),Tt({name:"abha_mobile_otp_completion",data:{platform:st,type:"verify",otp_entered:!0}}),Ct(dt)},Pt=async()=>{if(!e){Tt({name:"abha_mobile_otp_resend_clicked_no_txnId",data:{type:"resend",platform:st,txn_id:"missing_txnId",txn_id_exists:!1}});return}Tt({name:"abha_mobile_otp_verify_clicks",data:{type:"resend",platform:st}}),console.log("selectedMethod",_e);let dt;ut==="mobile"?(Tt({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),dt=await postAbdmRegisterMobileResendOtp({txn_id:e})):(Tt({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),dt=await postRegisterAadhaarMobileResendOtp({txn_id:e}));const{txn_id:vt,error:lt,action:ht}=dt;if(!vt){Tt({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),Tt({name:"abha_mobile_otp_resend_success",data:{platform:st,txn_id:vt}})},Ct=async dt=>{if(!e){Tt({name:"abha_mobile_verify_no_txnId",data:{type:"verify",platform:st,txn_id:"missing_txnId",txn_id_exists:!1}});return}Tt({name:"abha_mobile_otp_submitted",data:{type:"verify",platform:st,txn_id:e}}),$(LOADING_STATE.LOADING);try{let vt;ut==="mobile"?(Tt({name:"abha_mobile_otp_verification_started",data:{platform:st,flow_type:ut}}),vt=await postAbdmRegisterMobileVerify({otp:dt,txn_id:e})):(Tt({name:"aadhaar_otp_verification_started",data:{platform:st,flow_type:ut}}),vt=await postRegisterAadhaarMobileVerify({otp:dt,txn_id:e}));const{txn_id:lt,skip_state:ht,eka:yt,profile:gt,error:kt,action:xt,abha_profiles:bt}=vt;if(!lt||!ht){Tt({name:"abha_mobile_otp_verification_failed",data:{platform:st,reason:kt||"missing_txn_id_or_skip_state",txn_id_exists:!!lt,skip_state_exists:!!ht}}),$(LOADING_STATE.REJECTED),nt(kt||"Something went wrong, please try again"),xt&&i(xt);return}if($(LOADING_STATE.RESOLVED),c(ht),yt!=null&&yt.min_token&&a(yt.min_token),yt!=null&&yt.oid&&o(yt.oid),gt&>.abha_address&&g(gt.abha_address),gt&&j({date_of_birth:`${gt.year_of_birth}-${String(gt.month_of_birth).padStart(2,"0")}-${String(gt.day_of_birth).padStart(2,"0")}`,firstname:gt.first_name,lastname:gt.last_name,pincode:gt.pincode,gender:gt.gender,oid:yt==null?void 0:yt.oid,abha_address:gt==null?void 0:gt.abha_address,abha_number:gt==null?void 0:gt.abha_number,middlename:gt==null?void 0:gt.middle_name}),console.log("remove oid from set indvidual env"),Tt({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{Tt({name:"abha_mobile_otp_verification_exception",data:{platform:st,reason:"exception_thrown"}}),$(LOADING_STATE.REJECTED),nt("Something went wrong, please try again")}},Et=()=>{b(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const dt=useAuthAbhaStore.getState().isEkaAppLogin;s(),useAuthAbhaStore.setState({isEkaAppLogin:dt})};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:()=>wt(!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:_t,onResendOtpClick:Pt,error:it,setIsValid:dt=>{it&&nt(null),ot(dt)},prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abha",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||pt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>Ct(et),isLoading:pt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Et}),jsxRuntimeExports.jsx(ExitPopup,{open:St,setOpen:wt})]})};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,_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:_e}));return}onAbhaSuccess({response:_e}),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:_e,txn_id:et}){const at=new Headers;at.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:_e,year_of_birth:g},txn_id:et}),ot={method:"POST",headers:at,body:rt,redirect:"follow",credentials:"include"};try{const it=GET_NDHM_HOST();return await(await fetchWrapper(`${it}/abdm/na/v1/registration/mobile/create-phr`,ot)).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:_e}){const et=new Headers;et.append("Content-Type","application/json");const at=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:_e,year_of_birth:g}}),rt={method:"POST",headers:et,body:at,redirect:"follow",credentials:"include"};try{const ot=GET_NDHM_HOST();return await(await fetchWrapper(`${ot}/abdm/v1/profile/eka`,rt)).json()}catch(ot){console.error("postAbdmProfileEka error =>",ot)}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",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
|
+
pds2-flex pds2-items-center pds2-cursor-pointer pds2-px-12 pds2-py-8
|
|
52
|
+
pds2-border-1 pds2-rounded-12 pds2-bg-bg-01
|
|
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
|
+
active:pds2-bg-bg-brand-02 hover:pds2-bg-bg-hover-01
|
|
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(Et=>Et.txnId),a=useAuthAbhaStore(Et=>Et.setSelectedAbhaAddress),o=useAuthAbhaStore(Et=>Et.goBackLoginScreen),c=useAuthAbhaStore(Et=>Et.abhaAuthFlowMethod),[g,_]=reactExports.useState(null),b=useAuthAbhaStore(Et=>Et.authTxnId),[_e,et]=reactExports.useState(null),{mutateAsync:at}=usePostAuthVerifyV2(),rt=useAuthAbhaStore(Et=>Et.setBottomsheetErrorInfo),ot=useAuthAbhaStore(Et=>Et.clearAbhaAuthStore),[it,nt]=reactExports.useState([]),[pt,$]=reactExports.useState(!1),{mutateAsync:tt}=usePostRegisterMobileCreatePhr(),j=useAuthAbhaStore(Et=>Et.ekaProfileInfo),st=useAuthAbhaStore(Et=>Et.registrationType),{mutateAsync:ut}=usePostProfileSwitch(),ct=GET_EXTRA_HEADERS(),mt=useAuthAbhaStore(Et=>Et.isEkaAppLogin),ft=useAuthAbhaStore(Et=>Et.clientId),St=["M","F","O","U"],wt=useAuthAbhaStore(Et=>Et.isNewLoginOrCreateFlow),Tt=useAuthAbhaStore(Et=>Et.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),_t=({name:Et,data:dt={}})=>{var ht,yt;const lt={...{login_platform:ft,is_eka_app_login:mt?"true":"false",is_new_login_or_create_flow:wt?"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:Tt==null?void 0:Tt.toString()},...dt};handleSendEvent({eventName:Et,eventData:lt}),(yt=(ht=window.curio)==null?void 0:ht.pushToMixpanel)==null||yt.call(ht,Et,lt)};reactExports.useEffect(()=>{_t({name:"page_view",data:{page_view:"choose_abha_address_screen",platform:ft}})},[ft]),reactExports.useEffect(()=>{async function Et(){if(i)try{const{suggestions:dt,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}dt&&(nt(dt),dt.length>0&&s(dt[0]))}catch{}}Et()},[]);const Pt=async()=>{var lt,ht,yt,gt,kt,xt,bt,It,Rt,Bt,Mt,Ft,Lt,Vt,Kt;if(!e){_t({name:"create_abha_address_click_no_selection",data:{platform:ft,type:"create",reason:"no_abha_address_selected",abha_address_selected:!1}});return}if(_t({name:"create_abha_address_clicks",data:{platform:ft,type:"create"}}),_(LOADING_STATE.LOADING),st===REGISTRATION_TYPE.CREATE){if(!i||!j)return;const[Gt,Dt,Ut]=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 Qt={abha_address:e,day_of_birth:parseInt(Ut),first_name:j.firstname,gender:j.gender,last_name:j.lastname,month_of_birth:parseInt(Dt),pincode:j.pincode,year_of_birth:parseInt(Gt),txn_id:i};_t({name:"create_abha_process_started",data:{method:"mobile",abha_address:e,platform:ft,pincode_sent:Qt==null?void 0:Qt.pincode,date_of_birth:(j==null?void 0:j.date_of_birth)||"missing date of birth",day_of_birth:(Qt==null?void 0:Qt.day_of_birth)||"missing day of birth",month_of_birth:(Qt==null?void 0:Qt.month_of_birth)||"missing month of birth",year_of_birth:(Qt==null?void 0:Qt.year_of_birth)||"missing year of birth"}});const{error:Wt,eka:Ot,profile:Nt,action:jt}=await tt(Qt);if(jt){_t({name:"create_abha_process_error_action",data:{method:"mobile",platform:ft,error_message:((ht=jt==null?void 0:jt.cta)==null?void 0:ht.title)||"unknown_error_message",error_message_exists:!!((yt=jt==null?void 0:jt.cta)!=null&&yt.title)}}),rt(jt);return}if(Wt||!Ot){_t({name:"create_abha_process_failed",data:{method:"mobile",platform:ft,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(_t({name:"abha_address_created",data:{type:"create_abha",platform:ft}}),Ot.oid&&mt){_(LOADING_STATE.RESOLVED),_t({name:"abha_create_process_started",data:{method:c.toLowerCase(),is_eka_app_login:mt?"true":"false",platform:ft}});const zt=St.includes(Nt==null?void 0:Nt.gender)?Nt==null?void 0:Nt.gender:void 0,Yt={oid:(Ot==null?void 0:Ot.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:zt,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)||""},qt=getMockAuthVerifyResponse(Yt);if(_t({name:"abha_create_process_success",data:{method:c.toLowerCase(),is_eka_app_login:mt?"true":"false",platform:ft}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(gt=window.EkaAbha)==null||gt.onAbhaSuccess(JSON.stringify({response:qt}));return}onAbhaSuccess({response:qt}),unMount();return}}else{_t({name:"create_abha_process_started",data:{method:c==null?void 0:c.toLowerCase(),platform:ft}});const{error:Qt,eka:Wt,profile:Ot,action:Nt}=await postRegisterAadhaarCreatePhr({abha_address:e,txn_id:i});if(Nt){_t({name:"create_abha_process_error_action",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:ft,error_message:((kt=Nt==null?void 0:Nt.cta)==null?void 0:kt.title)||"unknown_error_message",error_message_exists:!!((xt=Nt==null?void 0:Nt.cta)!=null&&xt.title)}}),rt(Nt);return}if(Qt||!Wt){_t({name:"create_abha_process_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:ft,error_message:Qt||"unknown_error",error_message_exists:!!Qt,pincode_received:(Ot==null?void 0:Ot.pincode)||"missing_pincode_received",pincode_received_exists:!!(Ot!=null&&Ot.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(_t({name:"abha_address_created",data:{type:"create_abha",platform:ft}}),Wt.oid&&mt){_(LOADING_STATE.RESOLVED),_t({name:"abha_create_process_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:mt?"true":"false",platform:ft,page_view:"choose_abha_address"}});const jt=St.includes(Ot==null?void 0:Ot.gender)?Ot==null?void 0:Ot.gender:void 0,zt={oid:(Wt==null?void 0:Wt.oid)||"",fln:(Ot==null?void 0:Ot.first_name)+" "+(Ot==null?void 0:Ot.last_name),dob:`${Ot==null?void 0:Ot.year_of_birth}-${String(Ot==null?void 0:Ot.month_of_birth).padStart(2,"0")}-${String(Ot==null?void 0:Ot.day_of_birth).padStart(2,"0")}`,gen:jt,mobile:Ot==null?void 0:Ot.mobile,fn:(Ot==null?void 0:Ot.first_name)||"",mn:(Ot==null?void 0:Ot.middle_name)||"",ln:(Ot==null?void 0:Ot.last_name)||"","health-ids":Ot!=null&&Ot.abha_address?[Ot.abha_address]:void 0,abha_number:(Ot==null?void 0:Ot.abha_number)||""},Yt=getMockAuthVerifyResponse(zt);if(_t({name:"abha_create_process_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:mt?"true":"false",platform:ft}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(bt=window.EkaAbha)==null||bt.onAbhaSuccess(JSON.stringify({response:Yt}));return}onAbhaSuccess({response:Yt}),unMount();return}}let Zt=j.oid;if(j.oid){_t({name:"abha_create_process_link_phr_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:mt?"true":"false",platform:ft,page_view:"choose_abha_address"}});const{error:Qt,action:Wt,eka:Ot}=await postAbdmProfileEkaLinkPhr({abha_address:e,oid:j.oid});if(Wt){_t({name:"abha_create_process_link_phr_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:ft,error_message:((It=Wt==null?void 0:Wt.cta)==null?void 0:It.title)||"unknown_error_message",error_message_exists:!!((Rt=Wt==null?void 0:Wt.cta)!=null&&Rt.title)}}),rt(Wt);return}if(Qt||!Ot||!Ot.oid){_t({name:"abha_create_process_link_phr_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:ft,error_message:Qt||"unknown_error",error_message_exists:!!Qt,eka:Ot||"missing_eka",eka_oid:(Ot==null?void 0:Ot.oid)||"missing_oid",eka_oid_exists:!!(Ot!=null&&Ot.oid)}}),_(LOADING_STATE.REJECTED),et(Qt||"Something went wrong. Please try again.");return}_t({name:"abha_create_process_link_phr_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:mt?"true":"false",platform:ft,page_view:"choose_abha_address"}})}else{_t({name:"abha_create_process_eka_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:mt?"true":"false",platform:ft}});const Qt={abha_address:e,day_of_birth:parseInt(Ut),first_name:j.firstname,gender:j.gender,last_name:j.lastname||"",month_of_birth:parseInt(Dt),pincode:j.pincode,year_of_birth:parseInt(Gt)},{error:Wt,eka:Ot,action:Nt}=await postAbdmProfileEka({...Qt});if(Nt){_t({name:"abha_create_process_eka_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:ft,error_message:((Bt=Nt==null?void 0:Nt.cta)==null?void 0:Bt.title)||"unknown_error_message",error_message_exists:!!((Mt=Nt==null?void 0:Nt.cta)!=null&&Mt.title)}}),rt(Nt);return}if(Wt||!Ot||!Ot.oid){_t({name:"abha_create_process_eka_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:mt?"true":"false",platform:ft,error_message:Wt||"unknown_error",error_message_exists:!!Wt,eka_exists:!!Ot,eka_oid:(Ot==null?void 0:Ot.oid)||"missing_oid",eka_oid_exists:!!(Ot!=null&&Ot.oid),flow:Tt??""}}),_(LOADING_STATE.REJECTED),et(Wt||"Something went wrong. Please try again.");return}Zt=Ot.oid,_t({name:"abha_create_process_eka_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:mt?"true":"false",platform:ft,oid:Ot==null?void 0:Ot.oid}})}if(!Zt){_t({name:"abha_create_process_oid_switch_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:mt?"true":"false",platform:ft,oid:Zt||"missing_oid",oid_exists:!!Zt}});return}_t({name:"abha_create_process_switch_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:mt?"true":"false",platform:ft,oid:Zt}});const rr=await ut({oid:Zt});if(rr.error){_t({name:"abha_create_process_switch_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:mt?"true":"false",platform:ft,oid:Zt||"missing_oid",oid_exists:!!Zt,error_message:((Ft=rr.error)==null?void 0:Ft.message)||"unknown_error",error_message_exists:!!((Lt=rr.error)!=null&&Lt.message)}}),_(LOADING_STATE.REJECTED),et(((Vt=rr.error)==null?void 0:Vt.message)||"Something went wrong, please try again");return}_t({name:"abha_create_process_switch_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:mt?"true":"false",platform:ft,oid:Zt}}),_(LOADING_STATE.RESOLVED);return}a(`${e}@sbx`);const{exists:Et,error:dt,action:vt}=await postAbdmRegisterPhrCheck({abha_address:e});if(dt){_(LOADING_STATE.REJECTED),et(dt||"Something went wrong. Please try again.");return}if(Et){_(LOADING_STATE.REJECTED),et("This abha address is already taken.");return}if(c===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){if(!i)return;const{error:Gt,eka:Dt,action:Ut}=await postAbdmRegisterAbhaNumberCreatePhr({abha_address:e,txn_id:i});if(Ut){rt(Ut);return}if(Gt||!Dt){_(LOADING_STATE.REJECTED),et(Gt||"Something went wrong. Please try again.");return}if(ct&&ct.auth&&mt){_(LOADING_STATE.RESOLVED),onAbhaSuccess({response:""}),unMount();return}(!Dt.min_token||!b)&&(_(LOADING_STATE.REJECTED),et(Gt||"Something went wrong. Please try again."));const Zt=await at({txn_id:b||"",token:Dt.min_token,...Dt.oid?{oid:Dt.oid}:null});if(!Zt.data){_(LOADING_STATE.REJECTED),et(((Kt=Zt.error)==null?void 0:Kt.message)||"Something went wrong, please try again");return}_(LOADING_STATE.RESOLVED);return}},Ct=()=>{o();const Et=useAuthAbhaStore.getState().isEkaAppLogin;ot(),useAuthAbhaStore.setState({isEkaAppLogin:Et})};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:()=>$(!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})}),_e&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-text-error pds2-text-center",children:_e}),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:Pt,isLoading:g===LOADING_STATE.LOADING,className:"pds2-w-full"})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Ct}),jsxRuntimeExports.jsx(ExitPopup,{open:pt,setOpen:$})]})};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
|
+
${i?"pds2-border-border-brand-01":"pds2-border-border-03"}
|
|
58
|
+
focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2
|
|
59
|
+
active:pds2-bg-bg-brand-02 hover:pds2-bg-bg-hover-01
|
|
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(gt=>gt.screen),s=useAuthAbhaStore(gt=>gt.selectedAbhaAddress),i=useAuthAbhaStore(gt=>gt.setBottomsheetErrorInfo),a=useAuthAbhaStore(gt=>gt.clearAbhaAuthStore),o=useAuthAbhaStore(gt=>gt.goBackLoginScreen),[c,g]=reactExports.useState(LOADING_STATE.IDLE),[_,b]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[_e,et]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[at,rt]=reactExports.useState(null),{mutateAsync:ot}=usePostProfileSwitch(),[it,nt]=reactExports.useState(!1),pt=useAuthAbhaStore(gt=>gt.ekaProfileInfo),$=useAuthAbhaStore(gt=>gt.setEkaProfileInfo),tt=useAuthAbhaStore(gt=>gt.setScreen),j=e[e.length-1],st=useAuthAbhaStore(gt=>gt.aadhaarVerificationSkipStateStatus),ut=queryClient.getQueryData(["abdmProfilePhrResponse"]),ct=useAuthAbhaStore(gt=>gt.abhaAuthFlowMethod),[mt,ft]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""});useAuthAbhaStore(gt=>gt.isDocAppRequest);const St=useAuthAbhaStore(gt=>gt.clientId),wt=useAuthAbhaStore(gt=>gt.isEkaAppLogin),Tt=useAuthAbhaStore(gt=>gt.isNewLoginOrCreateFlow),_t=useAuthAbhaStore(gt=>gt.txnId),Pt=GET_EXTRA_HEADERS(),[Ct,Et]=reactExports.useState(null),dt=useAuthAbhaStore(gt=>gt.abhaAuthFlowMethod),vt=({name:gt,data:kt={}})=>{var It,Rt;const bt={...{login_platform:St,is_eka_app_login:wt?"true":"false",is_new_login_or_create_flow:Tt?"true":"false",txn_id:_t||"missing txnId",oid:Pt!=null&&Pt["X-User-ID"]?"true":"false",access_token:Pt!=null&&Pt.auth?"true":"false",flow:dt??""},...kt};handleSendEvent({eventName:gt,eventData:bt}),(Rt=(It=window.curio)==null?void 0:It.pushToMixpanel)==null||Rt.call(It,gt,bt)};reactExports.useEffect(()=>{vt({name:"page_view",data:{page_view:"create_profile_screen"}})},[St]),reactExports.useEffect(()=>{var gt;if((gt=window.EkaAbha)!=null&>.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var kt,xt;(kt=window.EkaAbha)!=null&&kt.changeStatusBarColor&&((xt=window==null?void 0:window.EkaAbha)==null||xt.changeStatusBarColor("#FFFFFF"))}},[]),reactExports.useEffect(()=>{if(ut){const{first_name:gt,last_name:kt,gender:xt,pincode:bt,day_of_birth:It,month_of_birth:Rt,year_of_birth:Bt}=ut,Mt=It===0?1:It,Lt=`${Bt}-${String(Rt===0?1:Rt).padStart(2,"0")}-${String(Mt).padStart(2,"0")}`;vt({name:"profile_data_set_from_phr_cache",data:{source:"phr_cache",date_of_birth:Lt,firstname:gt??"missing",lastname:kt??"missing",gender:xt??"missing",pincode:bt??"missing",dob_day:It??"missing",dob_month:Rt??"missing",dob_year:Bt??"missing",flow:dt??""}}),b({firstname:gt,lastname:kt,gender:xt,pincode:bt,date_of_birth:Lt});return}if(pt){let gt="1983",kt="01",xt="01";if(pt.date_of_birth){const It=pt.date_of_birth.split("-");gt=It[0],kt=It[1]==="00"||!It[1]?"01":It[1],xt=It[2]==="00"||!It[2]?"01":It[2]}const bt=`${gt}-${String(kt).padStart(2,"0")}-${String(xt).padStart(2,"0")}`;b({firstname:pt.firstname,lastname:pt.lastname,gender:pt.gender,pincode:pt.pincode,date_of_birth:bt,oid:pt.oid}),vt({name:"profile_data_set_from_eka_profile",data:{source:"eka_profile",date_of_birth:(pt==null?void 0:pt.date_of_birth)??"missing",firstname:(pt==null?void 0:pt.firstname)??"missing",lastname:(pt==null?void 0:pt.lastname)??"missing",gender:(pt==null?void 0:pt.gender)??"missing",pincode:(pt==null?void 0:pt.pincode)??"missing",oid:(pt==null?void 0:pt.oid)??"missing"}})}},[ut,pt]);const lt=reactExports.useMemo(()=>!!(_.firstname&&!_e.firstname&&_.date_of_birth&&!_e.date_of_birth&&_.pincode&&!_e.pincode&&_.gender&&!_e.gender),[_,_e]),ht=async()=>{var kt,xt,bt,It;const gt={firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""};if(et(gt),_.firstname.trim()||(gt.firstname="Enter Name"),_.lastname.trim()||(gt.lastname="This field is required"),_.date_of_birth||(gt.date_of_birth="Enter DOB"),_.gender||(gt.gender="Select Gender"),_.pincode||(gt.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:(pt==null?void 0:pt.pincode)??"unknown",flow_type:ct||"unknown_method"}}),ct===ABHA_AUTH_FLOW_METHOD.MOBILE){const Rt=await getPincodeDetails({pincode:Number(_.pincode)});if(Rt!=null&&Rt.error){Et(Rt!=null&&Rt.error?"Invalid Pincode":null),g(LOADING_STATE.REJECTED),vt({name:"pincode_api_failed",data:{type:"error",error:Rt==null?void 0:Rt.error}});return}if(vt({name:"pincode_api_success",data:{type:"verify",pincode_received:!!Rt.pincode,txn_id:_t}}),Rt!=null&&Rt.pincode){rt(null),$(_),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:!!Rt.pincode,txn_id:_t}});return}else if(ct===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){$(_),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:St}});return}const[Rt,Bt,Mt]=_.date_of_birth?(kt=_==null?void 0:_.date_of_birth)==null?void 0:kt.split("-"):["","",""],Ft={abha_address:s,day_of_birth:parseInt(Mt),first_name:_.firstname,gender:_.gender,last_name:_.lastname||"",month_of_birth:parseInt(Bt),pincode:_.pincode,year_of_birth:parseInt(Rt)};vt({name:"profile_eka_process_started",data:{platform:St,date_of_birth:(_==null?void 0:_.date_of_birth)||null,dob_day:Mt||null,dob_month:Bt||null,dob_year:Rt||null}});const{error:Lt,eka:Vt,action:Kt}=await postAbdmProfileEka({...Ft});if(Kt){vt({name:"profile_eka_process_failed",data:{platform:St,error_message:((xt=Kt==null?void 0:Kt.cta)==null?void 0:xt.title)||"unknown_error",error_message_exists:!!((bt=Kt==null?void 0:Kt.cta)!=null&&bt.title)}}),i(Kt);return}if(Lt||!Vt||!Vt.oid){vt({name:"profile_process_failed",data:{platform:St,error_message:Lt||"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:Mt||"missing",dob_month:Bt||"missing",dob_year:Rt||"missing",parsed_date_valid:!!(parseInt(Mt)&&parseInt(Bt)&&parseInt(Rt)),firstname:(_==null?void 0:_.firstname)||"missing",gender:(_==null?void 0:_.gender)||"missing",pincode:(_==null?void 0:_.pincode)||"missing"}}),g(LOADING_STATE.REJECTED),rt(Lt||"Something went wrong. Please try again.");return}vt({name:"profile_eka_process_success",data:{platform:St,eka:Vt}}),vt({name:"profile_switch_process_started",data:{platform:St,error_message:Lt,eka:Vt}});const Gt=await ot({oid:Vt.oid});if(Gt.error){vt({name:"profile_switch_process_failed",data:{platform:St,error_message:Gt.error||"Something went wrong, please try again",error_message_exists:!!Gt.error}}),g(LOADING_STATE.REJECTED),rt(((It=Gt.error)==null?void 0:It.message)||"Something went wrong, please try again");return}vt({name:"profile_switch_process_success",data:{platform:St,eka:Vt}}),g(LOADING_STATE.RESOLVED);return}}},yt=()=>{o();const gt=useAuthAbhaStore.getState().isEkaAppLogin;a(),useAuthAbhaStore.setState({isEkaAppLogin:gt})};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:_e,setError:et,pincodeApiError:Ct})]}),at&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-text-error pds2-text-center",children:at}),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:at})=>{const rt=et.target.value;let ot="";switch(at){case"firstname":rt.trim()?ot="":ot="This field is required";break;case"lastname":!rt||rt.length<0?ot="This field is required":ot="";break;case"pincode":!rt||isNaN(Number(rt))||rt.length!=6?ot="Pincode must consist of exactly 6 digits":ot="";break;case"date_of_birth":!rt||rt>new Date().toISOString().split("T")[0]?ot="Date of Birth is invalid":ot="";break}a({...i,[at]:ot}),s({...e,[at]:rt})},g=et=>{s({...e,gender:et}),a({...i,gender:""})},_=(et,at)=>at!=null&&at.pincode||!((et.firstname??"").trim()!==""&&(et.gender??"").trim()!==""&&(et.date_of_birth??"").trim()!=="")?!1:!et.pincode||(et.pincode+"").length!==6,b=useAuthAbhaStore(et=>et.ekaProfileInfo),_e=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)&&_e===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)&&_e===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,at)=>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)})},at))}),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)&&_e===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)&&_e===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($=>$.setScreen);useAuthAbhaStore($=>$.screen),useAuthAbhaStore($=>$.goBackLoginScreen),useAuthAbhaStore($=>$.clearAbhaAuthStore);const[s,i]=reactExports.useState(!1),[a,o]=reactExports.useState(""),c=useAuthAbhaStore($=>$.clientId),g=useAuthAbhaStore($=>$.aadhaarVerificationSkipStateStatus),_=useAuthAbhaStore($=>$.isEkaAppLogin),b=useAuthAbhaStore($=>$.isNewLoginOrCreateFlow),_e=useAuthAbhaStore($=>$.txnId),et=GET_EXTRA_HEADERS(),at=useAuthAbhaStore($=>$.abhaAuthFlowMethod),rt=({name:$,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:_e||"missing txnId",oid:et!=null&&et["X-User-ID"]?"true":"false",access_token:et!=null&&et.auth?"true":"false",flow:at??""},...tt};handleSendEvent({eventName:$,eventData:st}),(ct=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ct.call(ut,$,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 ot=!1;_?ot=!1:_||(c==="doctor"?ot=!1:ot=!0);const{data:it,error:nt,isLoading:pt}=ot?useGetProfilesPhrUser():{data:null,error:null,isLoading:!1};return reactExports.useEffect(()=>{if(c==="doctor")return;(async()=>{!pt&&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)))})()},[pt,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:"ABHA Number 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:"ABHA Address 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 Number 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(Pt=>Pt.setScreen),s=useAuthAbhaStore(Pt=>Pt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),i=useAuthAbhaStore(Pt=>Pt.setRegistrationType),a=useAuthAbhaStore(Pt=>Pt.setAadhaarInitResponse),[o,c]=reactExports.useState(""),[g,_]=reactExports.useState(""),[b,_e]=reactExports.useState(LOADING_STATE.IDLE),et=useAuthAbhaStore(Pt=>Pt.setLoginIdentifierValue),at=useAuthAbhaStore(Pt=>Pt.setSelectedAbhaAddress),[rt,ot]=reactExports.useState(!1),it=useAuthAbhaStore(Pt=>Pt.initAbhaAppMobileNumber),nt=useAuthAbhaStore(Pt=>Pt.setBottomsheetErrorInfo),[pt,$]=React.useState(null),[tt,j]=reactExports.useState(""),st=useAuthAbhaStore(Pt=>Pt.clientId),ut=useAuthAbhaStore(Pt=>Pt.isEkaAppLogin);reactExports.useEffect(()=>{if(it&&s===ABHA_AUTH_FLOW_METHOD.MOBILE){c(it),ot(it.length===10),_(null);return}c(""),_(null),ot(!1)},[s]);const ct=Pt=>{g&&_(null);const Ct=Pt.target.value;switch(s){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:if(Ct.length>20)return;break;case ABHA_AUTH_FLOW_METHOD.MOBILE:if(Ct&&!/^[0-9]+$/.test(Ct)||Ct.length>10)return;break;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:if(!/^[\d-]*$/.test(Ct)||Ct.length>17)return;break;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:if(Ct&&!/^[0-9]+$/.test(Ct)||Ct.length>12)return;break}if(s===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){const Et=Pt.target.value.replace(/-/g,"");let dt="";Et.length>0&&(dt+=Et.slice(0,2)),Et.length>2&&(dt+=`-${Et.slice(2,6)}`),Et.length>6&&(dt+=`-${Et.slice(6,10)}`),Et.length>10&&(dt+=`-${Et.slice(10,14)}`),c(dt)}else c(Ct.trim())},mt=({inputVal:Pt})=>{g&&_(null),Pt.length===12&&c(Pt)},ft=reactExports.useCallback(()=>{const Pt=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:mt});const Ct={value:o,onChange:ct,...s===ABHA_AUTH_FLOW_METHOD.MOBILE&&{type:"tel",placeholder:"Mobile Number",disabled:Pt,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:"India Flag",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,{...Ct})},[s,o,g]),St=(Pt=pt)=>{Pt&&(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))},wt=async()=>{_e(LOADING_STATE.LOADING);let Pt="";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."),_e(LOADING_STATE.REJECTED);return}Pt=ht,console.log("triggering logout api in login with abha screen"),await postAuthLogoutV2()}i(REGISTRATION_TYPE.LOGIN);const Ct=s===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?`${o}@sbx`:o;console.log("loginIdentifier",Ct);const{txn_id:Et,error:dt,action:vt,hint:lt}=await postAbdmLoginInit({method:s,identifier:Ct});if(console.log("after postAbdmLoginInit",vt),console.log("after postAbdmLoginInit",vt),vt){$(vt),nt(vt);return}if(dt){_(dt||"Something went wrong. Please try again."),_e(LOADING_STATE.REJECTED);return}if(!Et){_("Something went wrong. Please try again."),_e(LOADING_STATE.REJECTED);return}s===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&at(Ct),a({authTxnId:Pt,txnId:Et,aadhaarOtpSentToHint:lt||null}),et(Ct),_e(LOADING_STATE.RESOLVED),handleSendEvent({eventName:"abha_login_submitted",eventData:{type:"next",platform:st}}),e(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA)},Tt=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]),_t=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:"abha",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:_t}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-12",children:jsxRuntimeExports.jsxs("div",{className:"pds2-relative",children:[ft(),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:!Tt||!rt||b===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:b===LOADING_STATE.LOADING,onClick:wt,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:St})]})};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 Bt;const[e,s]=reactExports.useState(null),i=useAuthAbhaStore(Mt=>Mt.setScreen),a=useAuthAbhaStore(Mt=>Mt.goBackLoginScreen),o=useAuthAbhaStore(Mt=>Mt.txnId),c=useAuthAbhaStore(Mt=>Mt.authTxnId),g=useAuthAbhaStore(Mt=>Mt.abhaAddressList),_=useAuthAbhaStore(Mt=>Mt.setBottomsheetErrorInfo),b=useAuthAbhaStore(Mt=>Mt.clearAbhaAuthStore),_e=useAuthAbhaStore(Mt=>Mt.setSelectedAbhaAddress),et=useAuthAbhaStore(Mt=>Mt.abhaAuthFlowMethod);useAuthAbhaStore(Mt=>Mt.loginIdentifierValue);const[at,rt]=reactExports.useState(""),[ot,it]=reactExports.useState(!1),nt=useAuthAbhaStore(Mt=>Mt.setEkaProfileInfo),pt=useAuthAbhaStore(Mt=>Mt.setAbhaAuthFlowMethod),$=useAuthAbhaStore(Mt=>Mt.setAadhaarVerificationSkipStateStatus),[tt,j]=reactExports.useState(LOADING_STATE.IDLE),st=["M","F","O","U"],{mutateAsync:ut}=usePostAuthVerifyV2(),{mutateAsync:ct}=usePostAbdmProfileLoginPhr(),mt=useAuthAbhaStore(Mt=>Mt.ekaProfileInfo);useAuthAbhaStore(Mt=>Mt.registrationType);const ft=useAuthAbhaStore(Mt=>Mt.clientId),St=useAuthAbhaStore(Mt=>Mt.isEkaAppLogin),wt=useAuthAbhaStore(Mt=>Mt.setRegistrationType),Tt=useAuthAbhaStore(Mt=>Mt.abhaAuthFlowMethod),_t=useAuthAbhaStore(Mt=>Mt.identityValue),Pt=useAuthAbhaStore(Mt=>Mt.setMobileInitResponse),[Ct,Et]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),dt=useAuthAbhaStore(Mt=>Mt.setAadhaarInitResponse),vt=useAuthAbhaStore(Mt=>Mt.setSelectedAbhaFlow),lt=useAuthAbhaStore(Mt=>Mt.isNewLoginOrCreateFlow),ht=GET_EXTRA_HEADERS(),yt=useAuthAbhaStore(Mt=>Mt.setLoginIdentifierValue),[gt,kt]=reactExports.useState(!1),xt=({name:Mt,data:Ft={}})=>{var Kt,Gt;const Vt={...{login_platform:ft,is_eka_app_login:St?"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:Tt??""},...Ft};handleSendEvent({eventName:Mt,eventData:Vt}),(Gt=(Kt=window.curio)==null?void 0:Kt.pushToMixpanel)==null||Gt.call(Kt,Mt,Vt)},bt=async()=>{xt({name:"abha_login_select_abha_init_started",data:{method:Tt,platform:ft}});const Mt=(Ft,Lt)=>{Et(Vt=>({...Vt,[Ft]:Lt}))};if(wt(REGISTRATION_TYPE.CREATE),Tt===ABHA_AUTH_FLOW_METHOD.MOBILE){const{txn_id:Ft,hint:Lt,error:Vt,action:Kt}=await postRegisterMobileInit({mobile_number:_t});if(Ft&&Lt){xt({name:"abha_login_select_abha_mobile_init_success",data:{method:Tt,platform:ft,txn_id:Ft}}),Pt({authTxnId:c,txnId:Ft,mobileOtpSentToHint:Lt}),vt("mobile"),Mt("mobile",LOADING_STATE.RESOLVED),wt(REGISTRATION_TYPE.CREATE),i(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}xt({name:"abha_login_select_abha_init_failed",data:{method:Tt,platform:ft,reason:Vt||"unknown",reason_exists:!!Vt}}),Mt("mobile",LOADING_STATE.REJECTED),Kt?_(Kt):rt(Vt||"Something went wrong")}else if(Tt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){xt({name:"abha_fetching_profiles",data:{method:Tt,platform:ft}}),i(SCREEN_NAMES.GET_ALL_PROFILES);return}},It=async()=>{var Dt,Ut,Zt,rr,Qt,Wt;if(et===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&e){j(LOADING_STATE.LOADING),setIndividualEnv({extraHeaders:{auth:""}}),St||await postAuthLogoutV2()||xt({name:"logout_api_failed_before_init_on_continue_click",data:{method:Tt,platform:ft,reason:"logout_api_response_false"}});const{txn_id:Ot,error:Nt,action:jt,hint:zt}=await postAbdmLoginInit({method:ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,identifier:e.abha_address});if(xt({name:"abha_abdm_login_init_triggered",data:{flow_step_type:"init",authTxnId:c,ndhmTxnId:Ot,method:Tt}}),console.log("after postAbdmLoginInit",jt),console.log("after postAbdmLoginInit",jt),jt){xt({name:"abha_abdm_login_init_abha_error_action",data:{method:Tt,platform:ft,action:((Dt=jt==null?void 0:jt.cta)==null?void 0:Dt.title)||"unknown",action_exists:!!((Ut=jt==null?void 0:jt.cta)!=null&&Ut.title)}}),_(jt);return}if(Nt){xt({name:"abha_abdm_login_init_failed",data:{method:Tt,platform:ft,reason:Nt||"unknown",reason_exists:!!Nt}}),j(LOADING_STATE.REJECTED),rt(Nt||"Something went wrong. Please try again.");return}if(!Ot){rt("Something went wrong. Please try again.");return}xt({name:"abha_login_init_success",data:{flow_step_type:"init",authTxnId:c,ndhmTxnId:Ot,hint:zt}}),dt({authTxnId:c,txnId:Ot,aadhaarOtpSentToHint:zt||null}),j(LOADING_STATE.RESOLVED),yt(e.abha_address),pt(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),i(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}if(!e)return;if(_e(e.abha_address),console.log(tt,"from abha"),!o){xt({name:"abha_login_select_abha_txnId_not_found",data:{platform:ft,reason:"txnId missing",reason_exists:!0}});return}j(LOADING_STATE.LOADING),xt({name:"abha_login_select_abha_verify_start",data:{platform:ft,txn_id:o}});const{error:Mt,eka:Ft,profile:Lt,action:Vt,skip_state:Kt}=await ct({txn_id:o,phr_address:e.abha_address});if(Vt){xt({name:"abha_login_select_abha_error_action",data:{platform:ft,txn_id:o,action:((Zt=Vt==null?void 0:Vt.cta)==null?void 0:Zt.title)||"unknown",action_exists:!!((rr=Vt==null?void 0:Vt.cta)!=null&&rr.title)}}),_(Vt);return}if(Mt||!Ft){xt({name:"abha_login_select_abha_abdm_error",data:{platform:ft,txn_id:o,error_message:Mt||"eka object missing",error_exists:!!Mt}}),j(LOADING_STATE.REJECTED),rt(Mt);return}if(!Kt){rt("skip State is missing");return}if(xt({name:"abha_login_select_abha_verify_success",data:{platform:ft,txn_id:o,skip_state:Kt}}),$(Kt),Lt&&(xt({name:"abha_login_select_abha_profile_received",data:{platform:ft}}),nt({date_of_birth:`${Lt.year_of_birth}-${String(Lt.month_of_birth).padStart(2,"0")}-${String(Lt.day_of_birth).padStart(2,"0")}`,firstname:Lt.first_name,lastname:Lt.last_name,pincode:Lt.pincode,gender:Lt.gender,name:Lt.first_name+" "+Lt.last_name,mobile:Lt.mobile,oid:Ft==null?void 0:Ft.oid,middlename:Lt.middle_name,abha_address:Lt.abha_address,abha_number:Lt.abha_number}),_e(Lt.abha_address)),St){if(!Ft.oid){xt({name:"abha_login_select_abha_oid_null",data:{platform:ft,oid:(Ft==null?void 0:Ft.oid)??"null_or_undefined"}}),j(LOADING_STATE.REJECTED);return}const Ot=st.includes(Lt==null?void 0:Lt.gender)?Lt==null?void 0:Lt.gender:void 0,Nt={oid:(Ft==null?void 0:Ft.oid)||"",fln:(Lt==null?void 0:Lt.first_name)+" "+(Lt==null?void 0:Lt.last_name),dob:`${Lt==null?void 0:Lt.year_of_birth}-${String(Lt==null?void 0:Lt.month_of_birth).padStart(2,"0")}-${String(Lt==null?void 0:Lt.day_of_birth).padStart(2,"0")}`,gen:Ot,mobile:Lt==null?void 0:Lt.mobile,fn:(Lt==null?void 0:Lt.first_name)||"",mn:(Lt==null?void 0:Lt.middle_name)||"",ln:(Lt==null?void 0:Lt.last_name)||"","health-ids":Lt!=null&&Lt.abha_address?[Lt.abha_address]:void 0,abha_number:(Lt==null?void 0:Lt.abha_number)||""},jt=getMockAuthVerifyResponse(Nt);if(j(LOADING_STATE.RESOLVED),xt({name:"abha_login_select_abha_inside_app_success",data:{platform:ft,oid:Ft.oid}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Qt=window.EkaAbha)==null||Qt.onAbhaSuccess(JSON.stringify({response:jt}));return}onAbhaSuccess({response:jt}),unMount();return}if(!Ft.min_token||!c){xt({name:"abha_login_select_abha_min_token_missing",data:{platform:ft,oid:(Ft==null?void 0:Ft.oid)??"missing_oid",min_token:(Ft==null?void 0:Ft.min_token)??"missing_min_token",auth_txnId:c??"missing_authTxnId"}}),j(LOADING_STATE.REJECTED),rt(Mt||"Something went wrong. Please try again.");return}const Gt=await ut({txn_id:c,token:Ft.min_token,...Ft.oid?{oid:Ft.oid}:null});if(!Gt.data){xt({name:"abha_login_select_abha_auth_verify_failed",data:{platform:ft,oid:(Ft==null?void 0:Ft.oid)??"missing_oid",min_token:(Ft==null?void 0:Ft.min_token)??"missing_min_token",auth_txnId:c??"missing_authTxnId"}}),j(LOADING_STATE.REJECTED),rt(((Wt=Gt.error)==null?void 0:Wt.message)||"Something went wrong, please try again");return}j(LOADING_STATE.RESOLVED),xt({name:"abha_login_select_abha_auth_verify_success",data:{platform:ft,oid:Ft.oid,min_token:Ft==null?void 0:Ft.min_token,auth_txnId:c}})},Rt=()=>{const Mt=useAuthAbhaStore.getState().initAbhaAppMobileNumber,Ft=useAuthAbhaStore.getState().isEkaAppLogin;a(),b(),useAuthAbhaStore.setState({initAbhaAppMobileNumber:Mt}),useAuthAbhaStore.setState({isEkaAppLogin:Ft})};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:((Bt=g==null?void 0:g[0])==null?void 0:Bt.kyc_verified)&&jsxRuntimeExports.jsx(CircleInfoRegularIcon,{onClick:()=>kt(Mt=>!Mt),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,{}),gt&&jsxRuntimeExports.jsx("div",{onMouseLeave:()=>kt(!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:It}),((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:mt==null?void 0:mt.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:[at&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error pds2-text-center pds2-mb-4",children:at}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:e===null||tt===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:tt===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:It})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Rt}),jsxRuntimeExports.jsx(ExitPopup,{open:ot,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 Pt;const e=useAuthAbhaStore(Ct=>Ct.setScreen),s=useAuthAbhaStore(Ct=>Ct.setEkaProfileInfo),i=useAuthAbhaStore(Ct=>Ct.registrationType),a=useAuthAbhaStore(Ct=>Ct.goBackLoginScreen),[o,c]=reactExports.useState(null),g=useAuthAbhaStore(Ct=>Ct.setBottomsheetErrorInfo),_=useAuthAbhaStore(Ct=>Ct.clearAbhaAuthStore),[b,_e]=reactExports.useState(LOADING_STATE.IDLE),[et,at]=reactExports.useState(!1),[rt,ot]=reactExports.useState(null),it=useAuthAbhaStore(Ct=>Ct.selectedAbhaAddress),nt=useAuthAbhaStore(Ct=>Ct.aadhaarVerificationSkipStateStatus),{mutateAsync:pt}=usePostProfileSwitch(),$=queryClient.getQueryData(["profilesPhrUserResponse"]),tt=useAuthAbhaStore(Ct=>Ct.clientId),j=useAuthAbhaStore(Ct=>Ct.isEkaAppLogin),st=useAuthAbhaStore(Ct=>Ct.isNewLoginOrCreateFlow),ut=useAuthAbhaStore(Ct=>Ct.txnId),ct=GET_EXTRA_HEADERS(),mt=useAuthAbhaStore(Ct=>Ct.abhaAuthFlowMethod),ft=({name:Ct,data:Et={}})=>{var lt,ht;const vt={...{login_platform:tt,is_eka_app_login:j?"true":"false",is_new_login_or_create_flow:st?"true":"false",txn_id:ut||"missing txnId",oid:ct!=null&&ct["X-User-ID"]?"true":"false",access_token:ct!=null&&ct.auth?"true":"false",flow:mt??""},...Et};handleSendEvent({eventName:Ct,eventData:vt}),(ht=(lt=window.curio)==null?void 0:lt.pushToMixpanel)==null||ht.call(lt,Ct,vt)};reactExports.useEffect(()=>{ft({name:"choose_eka_profile_screen",data:{platform:tt,type:"select"}})},[tt]);const St=()=>{if(ft({name:"create_family_profile_clicks",data:{platform:tt,type:"create",skip_state:nt}}),nt===ABHA_V3_SKIP_STATES.ABHA_END){ft({name:"navigate_to_create_phr_profile_screen",data:{platform:tt}}),e(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE);return}ft({name:"navigate_to_create_eka_profile_screen",data:{platform:tt}}),e(SCREEN_NAMES.CREATE_EKA_PROFILE)},wt=async({profile:Ct})=>{ft({name:"select_profile_clicks",data:{platform:tt,oid:Ct.oid}}),c(Ct.oid)},Tt=async()=>{var lt,ht,yt,gt;if(ft({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 kt=$==null?void 0:$.profiles.find(xt=>xt.oid===o);if(!kt){ft({name:"continue_click_profile_not_found",data:{platform:tt,oid:o||"unknown_oid",oid_exists:!!o}});return}ft({name:"navigate_to_create_eka_profile_screen_from_abha_create",data:{platform:tt,oid:kt.oid}}),s({oid:kt.oid,date_of_birth:kt.dob,firstname:kt.fn,lastname:kt.ln,pincode:"",gender:kt.gen,mobile:kt.mobile,name:kt.fln,middlename:kt.mn,abha_address:(lt=kt==null?void 0:kt["health-ids"])==null?void 0:lt[0],abha_number:kt.abha_number}),e(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!it||!o){ft({name:"continue_click_missing_profile_or_abha",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}});return}ft({name:"linking_abha_to_profile_start",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}}),_e(LOADING_STATE.LOADING);const{error:Ct,action:Et,eka:dt}=await postAbdmProfileEkaLinkPhr({abha_address:it,oid:o});if(Et){ft({name:"linking_abha_to_profile_error_action",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}}),g(Et);return}if(Ct||!dt||!dt.oid){ft({name:"linking_abha_to_profile_failed",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o,error:Ct||"No EKA/OID",error_exists:!!Ct}}),_e(LOADING_STATE.REJECTED),ot(Ct||"Something went wrong. Please try again.");return}const vt=await pt({oid:dt.oid});if(vt.error){ft({name:"profile_switch_failed_after_link",data:{platform:tt,oid:(dt==null?void 0:dt.oid)||"missing_oid",oid_exists:!!(dt!=null&&dt.oid),error:((ht=vt.error)==null?void 0:ht.message)||"unknown_error",error_exists:!!((yt=vt.error)!=null&&yt.message)}}),_e(LOADING_STATE.REJECTED),ot(((gt=vt.error)==null?void 0:gt.message)||"Something went wrong, please try again");return}ft({name:"linking_abha_to_profile_success",data:{platform:tt,oid:dt.oid}}),_e(LOADING_STATE.RESOLVED)},_t=()=>{a();const Ct=useAuthAbhaStore.getState().isEkaAppLogin;_(),useAuthAbhaStore.setState({isEkaAppLogin:Ct})};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:()=>at(!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:"https://cdn.eka.care/vagus/cm6agrs5000090tfwfz984x5b.webp",alt:"Link ABHA",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:(Pt=$==null?void 0:$.profiles)==null?void 0:Pt.map(Ct=>{const Et=o===Ct.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
|
+
pds2-border-border-03 hover:pds2-bg-bg-hover-01
|
|
63
|
+
pds2-transition-colors`,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"ekaProfile",value:Ct.oid,checked:Et,onChange:()=>wt({profile:Ct}),className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14",onKeyDown:dt=>dt.key==="Enter"&&Tt()}),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:Ct.fln}),jsxRuntimeExports.jsx("span",{className:"pds2-ml-auto pds2-text-text-brand pds2-text-14 pds2-font-600",children:"Link"})]})]},Ct.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:St})]})]}),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:Tt})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:_t}),jsxRuntimeExports.jsx(ExitPopup,{open:et,setOpen:at})]})},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,a]=reactExports.useState(""),[o,c]=reactExports.useState(LOADING_STATE.IDLE),g=useAuthAbhaStore(jt=>jt.isEkaAppLogin),[_,b]=reactExports.useState(""),_e=useAuthAbhaStore(jt=>jt.setSelectedAbhaAddress),et=useAuthAbhaStore(jt=>jt.setLoginIdentifierValue),at=useAuthAbhaStore(jt=>jt.setScreen),[rt,ot]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),it=useAuthAbhaStore(jt=>jt.setRegistrationType),nt=useAuthAbhaStore(jt=>jt.setAadhaarInitResponse),pt=useAuthAbhaStore(jt=>jt.setMobileInitResponse),$=useAuthAbhaStore(jt=>jt.initAbhaAppMobileNumber),tt=useAuthAbhaStore(jt=>jt.initAbhaAppIdentifierType),j=useAuthAbhaStore(jt=>jt.initAbhaAppIdentifier),[st,ut]=reactExports.useState(""),[ct,mt]=reactExports.useState(!1),[ft,St]=reactExports.useState(!1),[wt,Tt]=reactExports.useState(""),[_t,Pt]=reactExports.useState(""),[Ct,Et]=reactExports.useState(""),[dt,vt]=reactExports.useState(""),lt=useAuthAbhaStore(jt=>jt.isNewLoginOrCreateFlow),ht=useAuthAbhaStore(jt=>jt.setIsNewLoginOrCreateFlow),yt=useAuthAbhaStore(jt=>jt.clientId),gt=reactExports.useRef(!1),kt=useAuthAbhaStore(jt=>jt.isInitApiTriggered),xt=useAuthAbhaStore(jt=>jt.setIsInitApiTriggered),bt=useAuthAbhaStore(jt=>jt.setIdentityValue);useAuthAbhaStore(jt=>jt.identityValue);const It=GET_EXTRA_HEADERS(),Rt=useAuthAbhaStore(jt=>jt.setSelectedAbhaFlow),Bt=useAuthAbhaStore(jt=>jt.isDocAppRequest),Mt=useAuthAbhaStore(jt=>jt.txnId);reactExports.useEffect(()=>{Ft({name:"abha_login_or_create_screen",data:{flow:e.toString()}})}),reactExports.useEffect(()=>{j&&tt===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?(Et(j),a(j.split("@")[0]),rr(!0),Nt(!0),s(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS)):j&&tt===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?(a(j),Pt(j),rr(!0),Wt(!0),s(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER)):j&&tt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?(Tt(j),St(!0),a(j),s(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)):j&&tt===ABHA_AUTH_FLOW_METHOD.MOBILE?(ut(j),a(j),mt(j.length===10),b(null),s(ABHA_AUTH_FLOW_METHOD.MOBILE)):(a(""),b(null),mt(!1),rr(!1),Nt(!1),Wt(!1),s(ABHA_AUTH_FLOW_METHOD.MOBILE))},[tt]),reactExports.useEffect(()=>{kt||gt.current||st&&st.length===10&&(xt(!0),gt.current=!0,Ut("auto_submit_mobile"))},[st]),reactExports.useEffect(()=>{kt||gt.current||wt&&wt.length===12&&(xt(!0),gt.current=!0,Ut("auto_submit_aadhaar"))},[wt]),reactExports.useEffect(()=>{kt||gt.current||_t&&_t.length===17&&(xt(!0),gt.current=!0,Ut("auto_submit_abha"))},[_t]),reactExports.useEffect(()=>{kt||gt.current||Ct&&Ct.includes("@sbx")&&(xt(!0),gt.current=!0,Ut("auto_submit_phr"))},[Ct]);const Ft=({name:jt,data:zt={}})=>{var er,or;const qt={...{login_platform:yt,is_eka_app_login:g?"true":"false",is_new_login_or_create_flow:lt?"true":"false",oid:It!=null&&It["X-User-ID"]?"true":"false",access_token:It!=null&&It.auth?"true":"false",txn_id:Mt||"missing txnId",flow:e??""},...zt};handleSendEvent({eventName:jt,eventData:qt}),(or=(er=window.curio)==null?void 0:er.pushToMixpanel)==null||or.call(er,jt,qt)},Lt=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]),Vt=jt=>{const zt=jt.target.value;switch(e){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:if(zt.length>20)return;vt(zt),a(zt);break;case ABHA_AUTH_FLOW_METHOD.MOBILE:if(zt&&!/^[0-9]+$/.test(zt)||zt.length>10)return;ut(zt),mt(!0),a(zt);break;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:if(!/^[\d-]*$/.test(zt)||zt.length>17)return;const Yt=jt.target.value.replace(/-/g,"");let qt="";return Yt.length>0&&(qt+=Yt.slice(0,2)),Yt.length>2&&(qt+=`-${Yt.slice(2,6)}`),Yt.length>6&&(qt+=`-${Yt.slice(6,10)}`),Yt.length>10&&(qt+=`-${Yt.slice(10,14)}`),Pt(qt),a(qt.trim());case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:if(zt&&!/^[0-9]+$/.test(zt)||zt.length>12)return;Tt(zt),St(!0),a(zt);break}a(zt.trim())};ABHA_AUTH_FLOW_METHOD.MOBILE;const Kt=React.useMemo(()=>{switch(e){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return i.length>=4&&i.length<=20;case ABHA_AUTH_FLOW_METHOD.MOBILE:return i.length===10;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return i.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return i.length===12}},[e,i]),Gt=(jt,zt)=>{ot(Yt=>({...Yt,[jt]:zt}))},Dt=({inputVal:jt})=>{jt.length===12&&(a(jt),Tt(jt),St(!0))};reactExports.useEffect(()=>{console.log("selectedMethod changed:==================>",e)},[e]);const Ut=async jt=>{var qt,er,or;ht(!0),Ft({name:"abha_login_next_click",data:{flow_step_type:jt}}),c(LOADING_STATE.LOADING),it(REGISTRATION_TYPE.LOGIN);let zt="";if(!g){const ir=await postAuthLogoutV2();Ft({name:ir?"abha_logout_success":"abha_logout_failure",data:{platform:yt}});const{txn_id:ar,error:sr}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!ar||sr){Ft({name:"abha_auth_init_failure",data:{flow_step_type:"init",authTxnId:zt,error_message:sr||"missing_txnId_or_unknown_error",error_message_exists:!!sr,txn_id_exists:!!ar}}),b((sr==null?void 0:sr.message)||"Something went wrong. Please try again."),c(LOADING_STATE.REJECTED);return}zt=ar,Ft({name:"abha_auth_init_success.",data:{flow_step_type:"init",auth_txnId:zt}})}const Yt=e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?`${i}@sbx`:i;if(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER||e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS){const{txn_id:ir,error:ar,action:sr,hint:_r}=await postAbdmLoginInit({method:e,identifier:Yt});if(bt(Yt),Ft({name:"abha_login_init_triggered",data:{flow_step_type:"init",authTxnId:zt,ndhmTxnId:ir,method:e}}),e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&_e(Yt),ar||!ir){if(((qt=sr==null?void 0:sr.cta)==null?void 0:qt.pid)==="abha_mobile_enroll"&&e===ABHA_AUTH_FLOW_METHOD.MOBILE){Gt("mobile",LOADING_STATE.LOADING),it(REGISTRATION_TYPE.CREATE);const{txn_id:bs,hint:ks,error:ns,action:is}=await postRegisterMobileInit({mobile_number:i});if(bt(i),Rt("mobile"),bs&&ks){pt({authTxnId:zt,txnId:bs,mobileOtpSentToHint:ks}),Ft({name:"abha_mobile_registration_init_success",data:{flow_step_type:"init",authTxnId:zt,ndhmTxnId:ir,error_message:ns,error_action:sr}}),Gt("mobile",LOADING_STATE.RESOLVED),c(LOADING_STATE.RESOLVED),it(REGISTRATION_TYPE.CREATE),at(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}if(Gt("mobile",LOADING_STATE.REJECTED),Ft({name:"abha_mobile_registration_init_failure",data:{flow_step_type:"init",authTxnId:zt,error_message:ns||"unknown_error",error_message_exists:!!ns,error_action_exists:!!is}}),is){if((er=is==null?void 0:is.cta)!=null&&er.pid)return at(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA)}else b(ns||"Something went wrong");b(ns||"Something went wrong. Please try again."),c(LOADING_STATE.REJECTED);return}Ft({name:"abha_login_init_failure",data:{flow_step_type:"init",authTxnId:zt,error_message:ar||"unknown_error",error_message_exists:!!ar,error_action_exists:!!sr}}),b(ar||"Something went wrong. Please try again."),c(LOADING_STATE.REJECTED);return}Ft({name:"abha_login_init_success",data:{flow_step_type:"init",authTxnId:zt,ndhmTxnId:ir,hint:_r}}),nt({authTxnId:zt,txnId:ir,aadhaarOtpSentToHint:_r||null}),et(Yt),c(LOADING_STATE.RESOLVED),at(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}if(e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){Gt("aadhaar",LOADING_STATE.LOADING),Ft({name:"aadhaar_registration_init_start",data:{flow_step_type:"init",authTxnId:zt,aadhaarNumber:i}});const{txn_id:ir,hint:ar,error:sr,action:_r}=await postRegisterAadhaarInit({aadhaar_number:i});if(bt(i),Rt("aadhaar"),ir&&ar){nt({authTxnId:zt,txnId:ir,aadhaarOtpSentToHint:ar}),Ft({name:"aadhaar_registration_init_success",data:{flow_step_type:"verify",ndhmTxnId:ir,authTxnId:zt}}),Gt("aadhaar",LOADING_STATE.RESOLVED),it(REGISTRATION_TYPE.CREATE),c(LOADING_STATE.RESOLVED),at(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}if(Ft({name:"abha_registration_init_failure",data:{error_message:sr||"unknown_error",error_message_exists:!!sr,auth_txn_id:zt,error_action:_r,error_action_exists:!!_r}}),Gt("aadhaar",LOADING_STATE.REJECTED),c(LOADING_STATE.REJECTED),_r||sr){(or=_r==null?void 0:_r.cta)!=null&&or.pid?at(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA):b(sr||"Something went wrong");return}}},[Zt,rr]=reactExports.useState(!1),[Qt,Wt]=reactExports.useState(!1),[Ot,Nt]=reactExports.useState(!1);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:"abha",className:"pds2-w-64 pds2-h-64"})})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-text-black",children:yt==="phr"?"Login or Create your ABHA":Bt?"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?"Enter your Mobile Number":e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"Enter your Aadhaar Number":e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?"Enter your ABHA Number":e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?"Enter your ABHA Address":Lt}),(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),b("")},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),b("")},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",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:tt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?(j==null?void 0:j.match(/.{1,4}/g))??void 0:void 0,disabled:tt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!j,numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:Dt,setIsValid:St}):jsxRuntimeExports.jsx(Pds2InputField,{value:tt===ABHA_AUTH_FLOW_METHOD.MOBILE?j||"":st,disabled:tt===ABHA_AUTH_FLOW_METHOD.MOBILE&&!!j,onChange:Vt,type:"tel",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:"India Flag",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-black pds2-text-sm",children:"+91"})]})})}),_&&(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular",children:_}),(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:!Kt||o===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:o===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:()=>rr(!Zt),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:"Other login options for ABHA"}),jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:`pds2-w-16 pds2-h-16 pds2-text-text-03 pds2-transition-transform ${Zt?"pds2-rotate-180":""}`})]}),jsxRuntimeExports.jsxs("div",{className:`pds2-overflow-hidden pds2-transition-all pds2-duration-300 ${Zt?"pds2-max-h-126 pds2-opacity-100":"pds2-max-h-0 pds2-opacity-0"}`,children:[jsxRuntimeExports.jsxs("button",{onClick:()=>{rr(!1),s(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),Wt(!0),b("")},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:"ABHA",className:"pds2-w-24 pds2-h-24"})}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-black",children:"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:()=>{rr(!1),s(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),Nt(!0),b("")},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:"ABHA",className:"pds2-w-24 pds2-h-24"})}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-black",children:"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:Qt,setIsOpen:Wt,setFlowMethod:s,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:()=>{b(null),Wt(!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:"ABHA Logo",className:"pds2-w-48 pds2-h-48"})})}),jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-text-black",children:"Login with ABHA Number"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-text-03 pds2-mb-24",children:"Enter your 14 digit ABHA Number"}),jsxRuntimeExports.jsx(Pds2InputField,{value:tt===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?j||"":_t,disabled:tt===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!!j,onChange:Vt,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",inputMode:"numeric",autoFocus:!0,onKeyDown:jt=>{jt.key==="Enter"&&Ut("after_enter_abha_number_on_click_by_user")}}),_&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular pds2-mt-12",children:_}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!i||o===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>Ut("after_enter_abha_number_on_click_by_user"),className:`pds2-w-full ${_?"pds2-mt-12":"pds2-mt-24"}`,isLoading:o===LOADING_STATE.LOADING})]})]})}),jsxRuntimeExports.jsx(AbhaBottomSheet,{isOpen:Ot,setIsOpen:Nt,setFlowMethod:s,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:()=>{b(null),Nt(!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:"ABHA Logo",className:"pds2-w-48 pds2-h-48"})})}),jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-text-black",children:"Login with ABHA Address"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-text-03 pds2-mb-24",children:"Enter your ABHA Address below"}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative",children:[jsxRuntimeExports.jsx(Pds2InputField,{value:tt===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?(j==null?void 0:j.split("@")[0])||"":dt,disabled:tt===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!!j,onChange:Vt,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"})]}),_&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular pds2-mt-12",children:_}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!i||o===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>Ut("after_enter_abha_address_on_click_by_user"),className:`pds2-w-full ${_?"pds2-mt-12":"pds2-mt-24"}`,isLoading:o===LOADING_STATE.LOADING})]})]})})]})},AbhaBottomSheet=({isOpen:e,setIsOpen:s,children:i,setFlowMethod:a,overlayClassName:o="pds2-bg-text-black pds2-bg-opacity-50"})=>{const[c,g]=reactExports.useState(e);return reactExports.useEffect(()=>{if(e)g(!0);else{const _=setTimeout(()=>g(!1),300);return()=>clearTimeout(_)}},[e]),c?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:()=>{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){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,e.slice(-10));return}setIdentifier(s,e);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}=e,{mobile:et,accessToken:at,oid:rt,identifier:ot,identifier_type:it}=c||{};console.log("recieved identifier, identifier_type",ot,it),handleSendEvent({eventName:"recieved_init_identifiers",eventData:{identifier:ot||"",identifier_type:it||""}});const nt={};at&&(nt.auth=at),rt&&(nt["X-User-ID"]=rt),console.log("set headers in headers"),console.log("invoked initAbhaApp",nt);const pt=nt!==null&&("auth"in nt||"X-User-ID"in nt);useAuthAbhaStore.getState().setIsEkaAppLogin(pt),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 $=!1;handleSendEvent({eventName:"init_abha_app",eventData:{platform:s,method:o||"",mobile:et||"",accessToken:at||"",oid:rt||"",appVersion:g||"",isEkaAppLogin:pt.toString(),container_id:i}}),onTrack("init_abha_app",{platform:s,method:o||"",mobile:et||"",accessToken:nt.auth||"",oid:nt["X-User-ID"]||"",appVersion:g||"",isEkaAppLogin:pt.toString(),container_id:i}),(s==="androiddoc"||s==="doctor-app-ios"||s==="doctor-ipad-ios"||s==="doc-web")&&($=!0,useAuthAbhaStore.getState().setIsDocAppRequest($)),useAuthAbhaStore.getState().setInitAbhaAppMethod(o==="create_abha_with_mobile"?"create_abha_with_mobile":"login_with_abha"),setEnv({clientId:s,env:"DEV",...nt&&{extraHeaders:nt}}),console.log("isProd is",!1);const j=SCREEN_NAMES.LOGIN_OR_CREATE_ABHA;useAuthAbhaStore.getState().setInitState({screen:[j],urlParams:a});const ut=it&&["mobile","aadhaar_number","abha_number","phr_address"].includes(it)?it:void 0;handleIdentifier(ot,ut),useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.MOBILE);const ct=()=>{useAuthAbhaStore.getState().clearAbhaAuthStore(),queryClient.removeQueries(),PopupReactNode==null||PopupReactNode.unmount(),_e()},mt=document.getElementById(i);if(!mt){const ft=`Element with id ${i} not found`;console.error(ft),b({error:ft}),ct();return}return onAbhaSuccess=_,PopupReactNode=createRoot(mt),PopupReactNode.render(jsxRuntimeExports.jsx(App,{})),unMount=ct,window.closeAbhaApp=ct,ct}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."))}
|