@eka-care/abha-stg 0.1.50 → 0.1.51
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/README.md +1 -1
- package/dist/sdk/abha/css/abha.css +1 -1
- package/dist/sdk/abha/js/abha.js +21 -104
- package/package.json +9 -8
package/dist/sdk/abha/js/abha.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Rn=e=>{throw TypeError(e)};var yn=(e,s,i)=>s.has(e)||Rn("Cannot "+i);var Et=(e,s,i)=>(yn(e,s,"read from private field"),i?i.call(e):s.get(e)),zt=(e,s,i)=>s.has(e)?Rn("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,i),Ht=(e,s,i,a)=>(yn(e,s,"write to private field"),a?a.call(e,i):s.set(e,i),i),qt=(e,s,i)=>(yn(e,s,"access private method"),i);var gn=(e,s,i,a)=>({set _(o){Ht(e,s,o,i)},get _(){return Et(e,s,a)}});(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const g of c.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&a(g)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jsxRuntime$1={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var Oo=a=>{throw TypeError(a)};var Bs=(a,_,$)=>_.has(a)||Oo("Cannot "+$);var Ft=
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var l$
|
|
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(_),$=0;$<_;$++)b[$]=arguments[$+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($){return $})):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 $=0;$<b;$++)_[$]=arguments[$+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
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var Oo=a=>{throw TypeError(a)};var Bs=(a,_,$)=>_.has(a)||Oo("Cannot "+$);var Ft=
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var f$3=reactExports,k$3=Symbol.for("react.element"),l$8=Symbol.for("react.fragment"),m$3=Object.prototype.hasOwnProperty,n$3=f$3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$6={key:!0,ref:!0,__self:!0,__source:!0};function q$2(a,_,$){var _e,et={},tt=null,rt=null;$!==void 0&&(tt=""+$),_.key!==void 0&&(tt=""+_.key),_.ref!==void 0&&(rt=_.ref);for(_e in _)m$3.call(_,_e)&&!p$6.hasOwnProperty(_e)&&(et[_e]=_[_e]);if(a&&a.defaultProps)for(_e in _=a.defaultProps,_)et[_e]===void 0&&(et[_e]=_[_e]);return{$$typeof:k$3,type:a,key:tt,ref:rt,props:et,_owner:n$3.current}}reactJsxRuntime_production_min.Fragment=l$8;reactJsxRuntime_production_min.jsx=q$2;reactJsxRuntime_production_min.jsxs=q$2;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,ABHA_V3_SKIP_STATES=(a=>(a.ABHA_END="abha_end",a.CONFIRM_MOBILE_OTP="confirm_mobile_otp",a.ABHA_CREATE="abha_create",a.ABHA_SELECT="abha_select",a))(ABHA_V3_SKIP_STATES||{}),APPOINTMENT_CHANNEL=(a=>(a.PRACTO="Practo",a.COVID_CONNECT="Covid-Connect",a.CORPORATE_CONNECT="Corporate-Connect",a.SPHERE_INDIA_PSYCHOLOGY="SPPS",a.SPHERE_INDIA_COVID="SPCO",a.TALK_TO_DOCTOR="TTD",a.SECOND_OPINION="SECO",a.EMERGENCY="EMCY",a.CORPORATE_CONNECT_INIT="CC-Init",a.WALKIN="Walkin",a.WALKINQR="Walkin-Scan",a.OFFLINE="Offline",a.ON_PAD="ON-PAD",a.UHI_HPD="UHI_HPD",a.UHI_DCM="UHI_DCM",a.IVR="IVR",a.STAFF="Staff",a.DOCTOR="Doctor",a.FOLLOW_UP="FOLLOW-UP",a.ONLINE_APPOINTMENT="Online-Appointment",a.PACKAGE="PACKAGE",a.PATIENT_REQUESTED="Patient-Requested",a.ABHA="ABHA",a))(APPOINTMENT_CHANNEL||{}),APPOINTMENT_STATUS=(a=>(a.CANCELLED="CN",a.ABORTED="AB",a.NO_SHOW="NS",a.NO_SHOW_DOCTOR="NSD",a.NO_SHOW_STAFF="NSS",a.COMPLETED="CM",a.RESCHEDULED="RE",a.ONGOING="OG",a.BOOKED="BK",a.PARKED="PA",a.PROVISIONAL_CANCELLED="PC",a.COMPLETED_NO_PRESCRIPTION="CMNP",a.DOCTOR_RESCHEDULED="RED",a.DOCTOR_CANCELLED="CND",a.STAFF_RESCHEDULED="RES",a.STAFF_CANCELLED="CNS",a.PAYMENT_NOT_RECEIVED="PNR",a.INITIATED="IN",a.RESERVED="RV",a.CHECKED_IN="CK",a))(APPOINTMENT_STATUS||{});const bookedAptWhitelist=new Set(["BK","PA"]),completedQueueStatus=["CM","CMNP"],otherQueueStatus=["CN","CNS","CND","RE","RES","RED","AB","NS","NSD","NSS"],followupQueueStatus=["IN","RV","PC","RE"],completedAptWhitelist=new Set(completedQueueStatus),followupAptWhileWhitelist=new Set(followupQueueStatus),otherAptWhitelist=new Set(otherQueueStatus),opdAptWhitelist=new Set(["CK","OG"]);[...Array.from(completedAptWhitelist),...Array.from(followupAptWhileWhitelist),...Array.from(bookedAptWhitelist),...Array.from(opdAptWhitelist),...Array.from(otherAptWhitelist)];var AUTH_METHOD=(a=>(a[a.EMAIL=1]="EMAIL",a[a.MOBILE=2]="MOBILE",a[a.ABHA=7]="ABHA",a))(AUTH_METHOD||{}),LOADING_STATE=(a=>(a.IDLE="IDLE",a.LOADING="LOADING",a.RESOLVED="RESOLVED",a.REJECTED="REJECTED",a))(LOADING_STATE||{}),ABHA_AUTH_FLOW_METHOD=(a=>(a.PHR_ADDRESS="phr_address",a.MOBILE="mobile",a.ABHA_NUMBER="abha_number",a.AADHAR_NUMBER="aadhaar_number",a.REGISTRATION_TYPE="registration_type",a))(ABHA_AUTH_FLOW_METHOD||{}),REGISTRATION_TYPE=(a=>(a.LOGIN="login",a.CREATE="create",a))(REGISTRATION_TYPE||{}),DISCOUNT_TYPE=(a=>(a.PERCENTAGE="PERCENTAGE",a.AMOUNT="AMOUNT",a))(DISCOUNT_TYPE||{}),RECEIPT_PAYMENT_MODE_ID=(a=>(a.CASH="CASH",a.UPI="UPI",a.DEBIT_CARD="DEBIT_CARD",a.GPAY="GPAY",a.PAYTM="PAYTM",a.CREDIT_CARD="CREDIT_CARD",a.OTHER="OTHER",a.EKA_POSTPAY="EKA_POSTPAY",a.EKA_PREPAID="EKA_PREPAID",a.EKA_WALLET="EKA_WALLET",a))(RECEIPT_PAYMENT_MODE_ID||{}),RECEIPT_PAYMENT_MODE_NAME=(a=>(a.CASH="Cash",a.UPI="UPI",a.DEBIT_CARD="Debit Card",a.GPAY="GPay",a.PAYTM="Paytm",a.CREDIT_CARD="Credit Card",a.OTHER="Other",a.EKA_POSTPAY="Eka Payment",a.EKA_PREPAID="Eka Prepaid",a))(RECEIPT_PAYMENT_MODE_NAME||{}),QUEUE_CARD_ACTIONS=(a=>(a.TAGS="TAGS",a.VISIT_TYPE="VITY",a.PAYMENT_STATUS="PAYS",a.ASSESSMENT_STATUS="ASST",a.PAST_VISITS="PRES",a.CREATE_ABHA="ABHA",a.ADD_VITALS_AND_LAB_RESULTS="AVLR",a.ADD_ADDRESS="ADDR",a.REQUEST_RECORDS="RMDR",a.REQUEST_PAYMENT="REQP",a.ARCHIVE_APPOINTMENT="AAPT",a.CREATE_CERTIFICATE="CRMC",a.REFER_TO_DOCTOR="RTOD",a.SEND_GOOGLE_REVIEW_LINK="SGRL",a.MARK_NO_SHOW="MNSH",a.CREATE_TEMPLATE="CATP",a.FOLLOW_UP="FLWU",a.ABHA_ID="ABHA_ID",a.UPLOAD_MEDICAL_RECORDS="UPMR",a.RESUME="RESUME",a.CHECK_IN="CHECK_IN",a.EXIT="EXIT",a.WRITE_RX="WRITE_RX",a.START_VISIT="START_VISIT",a.RECEIPT="RECEIPT",a.ORDER_MEDICINE="ORDER_MEDICINE",a.PRINT_RX="PRINT_RX",a.QUESTIONAIRE="SAQU",a.LABEL="LABEL",a.NOTES="NOTES",a.ASSIGN_DOCTOR="ASSIGN_DOCTOR",a.RESCHEDULE_APPOINTMENT="RAPT",a))(QUEUE_CARD_ACTIONS||{});APPOINTMENT_STATUS.BOOKED,APPOINTMENT_STATUS.PARKED;APPOINTMENT_STATUS.CHECKED_IN,APPOINTMENT_STATUS.ONGOING;APPOINTMENT_STATUS.COMPLETED,APPOINTMENT_STATUS.COMPLETED_NO_PRESCRIPTION;APPOINTMENT_STATUS.CANCELLED,APPOINTMENT_STATUS.STAFF_CANCELLED,APPOINTMENT_STATUS.DOCTOR_CANCELLED,APPOINTMENT_STATUS.RESCHEDULED,APPOINTMENT_STATUS.STAFF_RESCHEDULED,APPOINTMENT_STATUS.DOCTOR_RESCHEDULED,APPOINTMENT_STATUS.ABORTED,APPOINTMENT_STATUS.NO_SHOW,APPOINTMENT_STATUS.NO_SHOW_DOCTOR,APPOINTMENT_STATUS.NO_SHOW_STAFF;APPOINTMENT_STATUS.INITIATED,APPOINTMENT_STATUS.RESERVED,APPOINTMENT_STATUS.PROVISIONAL_CANCELLED,APPOINTMENT_STATUS.RESCHEDULED;RECEIPT_PAYMENT_MODE_NAME.CASH,RECEIPT_PAYMENT_MODE_ID.CASH,RECEIPT_PAYMENT_MODE_ID.CASH,RECEIPT_PAYMENT_MODE_NAME.CREDIT_CARD,RECEIPT_PAYMENT_MODE_ID.CREDIT_CARD,RECEIPT_PAYMENT_MODE_ID.CREDIT_CARD,RECEIPT_PAYMENT_MODE_NAME.DEBIT_CARD,RECEIPT_PAYMENT_MODE_ID.DEBIT_CARD,RECEIPT_PAYMENT_MODE_ID.DEBIT_CARD,RECEIPT_PAYMENT_MODE_NAME.PAYTM,RECEIPT_PAYMENT_MODE_ID.PAYTM,RECEIPT_PAYMENT_MODE_ID.PAYTM,RECEIPT_PAYMENT_MODE_NAME.GPAY,RECEIPT_PAYMENT_MODE_ID.GPAY,RECEIPT_PAYMENT_MODE_ID.GPAY,RECEIPT_PAYMENT_MODE_NAME.UPI,RECEIPT_PAYMENT_MODE_ID.UPI,RECEIPT_PAYMENT_MODE_ID.UPI,RECEIPT_PAYMENT_MODE_NAME.OTHER,RECEIPT_PAYMENT_MODE_ID.OTHER,RECEIPT_PAYMENT_MODE_ID.OTHER;RECEIPT_PAYMENT_MODE_ID.CASH,RECEIPT_PAYMENT_MODE_NAME.CASH,RECEIPT_PAYMENT_MODE_ID.CREDIT_CARD,RECEIPT_PAYMENT_MODE_NAME.CREDIT_CARD,RECEIPT_PAYMENT_MODE_ID.DEBIT_CARD,RECEIPT_PAYMENT_MODE_NAME.DEBIT_CARD,RECEIPT_PAYMENT_MODE_ID.PAYTM,RECEIPT_PAYMENT_MODE_NAME.PAYTM,RECEIPT_PAYMENT_MODE_ID.GPAY,RECEIPT_PAYMENT_MODE_NAME.GPAY,RECEIPT_PAYMENT_MODE_ID.UPI,RECEIPT_PAYMENT_MODE_NAME.UPI,RECEIPT_PAYMENT_MODE_ID.OTHER,RECEIPT_PAYMENT_MODE_NAME.OTHER;DISCOUNT_TYPE.AMOUNT,DISCOUNT_TYPE.PERCENTAGE;APPOINTMENT_STATUS.CANCELLED,APPOINTMENT_STATUS.ABORTED,APPOINTMENT_STATUS.ONGOING,APPOINTMENT_STATUS.COMPLETED,APPOINTMENT_STATUS.RESCHEDULED,APPOINTMENT_STATUS.BOOKED,APPOINTMENT_STATUS.CHECKED_IN,APPOINTMENT_STATUS.NO_SHOW,APPOINTMENT_STATUS.INITIATED;APPOINTMENT_STATUS.COMPLETED_NO_PRESCRIPTION+"",APPOINTMENT_STATUS.COMPLETED,APPOINTMENT_STATUS.DOCTOR_CANCELLED+"",APPOINTMENT_STATUS.CANCELLED,APPOINTMENT_STATUS.STAFF_CANCELLED+"",APPOINTMENT_STATUS.CANCELLED,APPOINTMENT_STATUS.NO_SHOW_DOCTOR+"",APPOINTMENT_STATUS.NO_SHOW,APPOINTMENT_STATUS.NO_SHOW_STAFF+"",APPOINTMENT_STATUS.NO_SHOW,APPOINTMENT_STATUS.DOCTOR_RESCHEDULED+"",APPOINTMENT_STATUS.RESCHEDULED,APPOINTMENT_STATUS.STAFF_RESCHEDULED+"",APPOINTMENT_STATUS.RESCHEDULED;APPOINTMENT_CHANNEL.WALKIN,APPOINTMENT_CHANNEL.FOLLOW_UP,APPOINTMENT_CHANNEL.PATIENT_REQUESTED,APPOINTMENT_CHANNEL.OFFLINE,APPOINTMENT_CHANNEL.STAFF,APPOINTMENT_CHANNEL.DOCTOR,APPOINTMENT_CHANNEL.ONLINE_APPOINTMENT,APPOINTMENT_CHANNEL.ABHA;QUEUE_CARD_ACTIONS.TAGS,QUEUE_CARD_ACTIONS.VISIT_TYPE,QUEUE_CARD_ACTIONS.RECEIPT,QUEUE_CARD_ACTIONS.CREATE_ABHA,QUEUE_CARD_ACTIONS.ADD_VITALS_AND_LAB_RESULTS,QUEUE_CARD_ACTIONS.UPLOAD_MEDICAL_RECORDS;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:a,clientId:_,extraHeaders:$})=>{envVar=a==="PROD"?PROD:DEV,client_id=_,$&&(extraHeaders=$)},setIndividualEnv=({clientId:a,env:_,extraHeaders:$})=>{a&&(client_id=a),_&&(envVar=_==="PROD"?PROD:DEV),$&&(extraHeaders={...extraHeaders,...$})},GET_AORTA_GO_HOST=()=>envVar.AORTA_GO_HOST,GET_NDHM_HOST=()=>envVar.NDHM_HOST,GET_CLIENT_ID=()=>client_id,GET_EXTRA_HEADERS=()=>extraHeaders;function pushToMxpDataLayer({data:a}){typeof window<"u"&&(window.mxpDataLayer=window.mxpDataLayer||[],window.mxpDataLayer.push(a))}function sendApiFailedEvent({category:a="api-failed",url:_,params:$}){pushToMxpDataLayer({data:{name:a,data:{url:_,...$}}}),{...$}}async function refreshToken(){if(await updateToken())return!0;const _=new Headers;_.append("Content-Type","application/json"),_.set("client-id",GET_CLIENT_ID());const $=JSON.stringify({}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include",mode:"cors"};try{const et=GET_AORTA_GO_HOST();if((await fetch(`${et}/emr/v3/auth/refresh`,{..._e,body:JSON.stringify({})})).status===401)return!1}catch{return!1}return!0}async function fetchWrapper(a,_={},$=!0,_e=!1){var et,tt;try{const rt=((tt=(et=window==null?void 0:window.Eka)==null?void 0:et.getSessionToken)==null?void 0:tt.call(et))||"",nt=new Headers(_.headers);let it,at;!nt.get("client-id")&&!_e&&nt.set("client-id",GET_CLIENT_ID()),rt&&!nt.get("auth")&&nt.set("auth",rt);const st=GET_EXTRA_HEADERS();st&&Object.keys(st).forEach(ot=>{nt.set(ot,st[ot])});const ut=await fetch(a,{..._,headers:nt});return window&&(at=window.location.pathname,it=nt.get("client-id")),ut.status===401&&$&&await refreshToken()?await fetchWrapper(a,_,!1):(ut.status>401&&sendApiFailedEvent({url:a,params:{responseStatus:ut.status}}),ut)}catch(rt){throw sendApiFailedEvent({url:a,params:{error:`${rt.message||rt}`}}),console.error(rt),rt}}let androidRefreshCB=[];async function refreshCallback(a){androidRefreshCB.forEach(_=>_(!0)),androidRefreshCB=[]}async function updateToken(){var a,_,$,_e,et,tt;if(typeof window<"u"){if(typeof((a=window==null?void 0:window.Eka)==null?void 0:a.updateToken)=="function")return(_=window.parent)==null||_.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(rt=>{var nt;androidRefreshCB.push(rt),(nt=window==null?void 0:window.Eka)==null||nt.updateToken("refreshCallback")});if(typeof((et=(_e=($=window==null?void 0:window.webkit)==null?void 0:$.messageHandlers)==null?void 0:_e.statusCodeHandler)==null?void 0:et.postMessage)=="function")return(tt=window.parent)==null||tt.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(rt=>{var nt,it,at;androidRefreshCB.push(rt),(at=(it=(nt=window==null?void 0:window.webkit)==null?void 0:nt.messageHandlers)==null?void 0:it.statusCodeHandler)==null||at.postMessage(JSON.stringify({status:401}))})}return!1}async function postAuthInitV2({method:a,identifier:_}){const $=new Headers;$.append("Content-Type","application/json");const _e=JSON.stringify({method:a,identifier:_}),et={method:"POST",headers:$,body:_e,redirect:"follow",credentials:"include"};try{const tt=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${tt}/v2/auth/init`,et)).json()}catch(tt){console.error(tt)}return{}}async function postAuthVerifyV2({txn_id:a,code:_,token:$}){const _e=new Headers;_e.append("Content-Type","application/json");const et=JSON.stringify({txn_id:a,..._?{code:_}:{},...$?{token:$}:{}}),tt={method:"POST",headers:_e,body:et,redirect:"follow",credentials:"include"};try{const rt=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${rt}/v2/auth/verify`,tt)).json()}catch(rt){console.error(rt)}return{}}async function getProfilePhrUser(){const a=new Headers;a.append("Content-Type","application/json");const _={method:"GET",headers:a,redirect:"follow",credentials:"include"};try{const $=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${$}/profiles/v1/patient`,_)).json()}catch($){return console.error("profilePhrUser error =>",$),[]}}async function getProfilesPatient(){const a=new Headers;a.append("Content-Type","application/json");const _={method:"GET",headers:a,redirect:"follow",credentials:"include"},$=GET_EXTRA_HEADERS(),_e=$==null?void 0:$["X-User-ID"];if(!_e)return{};try{const et=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${et}/profiles/v1/patient/${_e}`,_)).json()}catch(et){return console.error("profilePhrUser error =>",et),{}}}async function postProfileSwitch({oid:a}){const _=new Headers;_.append("Content-Type","application/json");const $=JSON.stringify({oid:a}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"};try{const et=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${et}/v1/profile/switch`,_e)).json()}catch(et){console.error("postProfileSwitchError: ",et)}return{}}async function postAuthLogoutV2(){console.log("inside postAuthLogoutV2 api call");const a=new Headers;a.append("Content-Type","application/json");const _=JSON.stringify({}),_e=`${GET_AORTA_GO_HOST()}/v2/auth/logout`,et={method:"POST",headers:a,body:_,redirect:"follow",credentials:"include"};try{const tt=await fetchWrapper(_e,et);return tt.ok?!0:(console.log("Logout failed with status",tt==null?void 0:tt.status),!1)}catch(tt){return console.error("Logout API failed:",tt),!1}}async function postAbdmLoginInit({method:a,identifier:_}){const $=new Headers;$.append("Content-Type","application/json");const _e=JSON.stringify({method:a,identifier:_}),et={method:"POST",headers:$,body:_e,redirect:"follow",credentials:"include"};try{const tt=GET_NDHM_HOST();return await(await fetchWrapper(`${tt}/abdm/na/v1/profile/login/init`,et)).json()}catch(tt){console.error("postAbdmLoginInit error =>",tt)}return{}}async function postAbdmLoginVerify({txn_id:a,otp:_}){const $=new Headers;$.append("Content-Type","application/json");const _e=JSON.stringify({txn_id:a,otp:_}),et={method:"POST",headers:$,body:_e,redirect:"follow",credentials:"include"};try{const tt=GET_NDHM_HOST();return await(await fetchWrapper(`${tt}/abdm/na/v1/profile/login/verify`,et)).json()}catch(tt){console.error("postAbdmLoginVerify error =>",tt)}return{}}async function postRegisterAadhaarInit({aadhaar_number:a}){const _=new Headers;_.append("Content-Type","application/json");const $=JSON.stringify({aadhaar_number:a}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"};try{const et=GET_NDHM_HOST();return await(await fetchWrapper(`${et}/abdm/na/v1/registration/aadhaar/init`,_e)).json()}catch{}return{}}async function postRegisterMobileInit({mobile_number:a}){const _=new Headers;_.append("Content-Type","application/json");const $=JSON.stringify({mobile_number:a}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"};try{const et=GET_NDHM_HOST();return await(await fetchWrapper(`${et}/abdm/na/v1/registration/mobile/init`,_e)).json()}catch(et){console.error(et)}return{}}async function postRegisterAadhaarVerify({txn_id:a,mobile:_,otp:$}){const _e=new Headers;_e.append("Content-Type","application/json");const et=JSON.stringify({txn_id:a,mobile:_,otp:$}),tt={method:"POST",headers:_e,body:et,redirect:"follow",credentials:"include"};try{const rt=GET_NDHM_HOST();return await(await fetchWrapper(`${rt}/abdm/na/v1/registration/aadhaar/verify`,tt)).json()}catch{}return{}}async function postRegisterAadhaarMobileVerify({txn_id:a,otp:_}){const $=new Headers;$.append("Content-Type","application/json");const _e=JSON.stringify({txn_id:a,otp:_}),et={method:"POST",headers:$,body:_e,redirect:"follow",credentials:"include"};try{const tt=GET_NDHM_HOST();return await(await fetchWrapper(`${tt}/abdm/na/v1/registration/aadhaar/mobile/verify`,et)).json()}catch{}return{}}async function postRegisterAadhaarResendOtp({txn_id:a}){const _=new Headers;_.append("Content-Type","application/json");const $=JSON.stringify({txn_id:a}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"};try{const et=GET_NDHM_HOST();return await(await fetchWrapper(`${et}/abdm/na/v1/registration/aadhaar/resend`,_e)).json()}catch{}return{}}async function postRegisterAadhaarMobileResendOtp({txn_id:a}){const _=new Headers;_.append("Content-Type","application/json");const $=JSON.stringify({txn_id:a}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"};try{const et=GET_NDHM_HOST();return await(await fetchWrapper(`${et}/abdm/na/v1/registration/aadhaar/mobile/resend`,_e)).json()}catch{}return{}}async function postRegisterAadhaarCreatePhr({abha_address:a,txn_id:_}){const $=new Headers;$.append("Content-Type","application/json");const _e=JSON.stringify({abha_address:a,txn_id:_}),et={method:"POST",headers:$,body:_e,redirect:"follow",credentials:"include"};try{const tt=GET_NDHM_HOST();return await(await fetchWrapper(`${tt}/abdm/na/v1/registration/aadhaar/create-phr`,et)).json()}catch(tt){console.error("postRegisterAadhaarCreatePhr ==>",tt)}return{}}async function postAbdmRegisterMobileCreatePhr({abha_address:a,address:_,first_name:$,last_name:_e,day_of_birth:et,month_of_birth:tt,year_of_birth:rt,gender:nt,middle_name:it,pincode:at,txn_id:st}){const ut=new Headers;ut.append("Content-Type","application/json");const ot=JSON.stringify({abha_address:a,profile:{address:_,day_of_birth:et,first_name:$,gender:nt,last_name:_e,middle_name:it,month_of_birth:tt,pincode:at,year_of_birth:rt},txn_id:st}),pt={method:"POST",headers:ut,body:ot,redirect:"follow",credentials:"include"};try{const ht=GET_NDHM_HOST();return await(await fetchWrapper(`${ht}/abdm/na/v1/registration/mobile/create-phr`,pt)).json()}catch(ht){console.error("postAbdmRegisterMobileCreatePhr error =>",ht)}return{}}async function postAbdmProfileLoginPhr({txn_id:a,phr_address:_}){const $=new Headers;$.append("Content-Type","application/json");const _e=JSON.stringify({txn_id:a,phr_address:_}),et={method:"POST",headers:$,body:_e,redirect:"follow",credentials:"include"};try{const tt=GET_NDHM_HOST();return await(await fetchWrapper(`${tt}/abdm/na/v1/profile/login/phr`,et)).json()}catch(tt){console.error("postAbdmProfileLoginPhr error =>",tt)}return{}}async function getAbdmRegisterSuggest({txn_id:a,fn:_,mn:$,ln:_e,dob:et}){const tt=new Headers;tt.append("Content-Type","application/json");const rt={method:"GET",headers:tt,redirect:"follow",credentials:"include"};try{const nt=GET_NDHM_HOST();return await(await fetchWrapper(`${nt}/abdm/na/v1/registration/suggest?transactionId=${a}&fn=${_||""}&mn=${$||""}&ln=${_e||""}&dob=${et||""}`,rt)).json()}catch(nt){console.error("postAbdmLoginVerify error =>",nt)}return{}}async function postAbdmRegisterAbhaNumberCreatePhr({abha_address:a,txn_id:_}){const $=new Headers;$.append("Content-Type","application/json");const _e=JSON.stringify({abha_address:a,txn_id:_}),et={method:"POST",headers:$,body:_e,redirect:"follow",credentials:"include"};try{const tt=GET_NDHM_HOST();return await(await fetchWrapper(`${tt}/abdm/na/v1/registration/abha-number/create-phr`,et)).json()}catch(tt){console.error("postAbdmRegisterAbhaNumberCreatePhr ==>",tt)}return{}}async function postAbdmRegisterPhrCheck({abha_address:a}){const _=new Headers;_.append("Content-Type","application/json");const $=JSON.stringify({abha_address:a}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"};try{const et=GET_NDHM_HOST();return await(await fetchWrapper(`${et}/abdm/na/v1/registration/phr/check`,_e)).json()}catch(et){console.error("postAbdmRegisterPhrCheck ==>",et)}return{}}async function postAbdmProfileEka({abha_address:a,address:_,first_name:$,last_name:_e,day_of_birth:et,month_of_birth:tt,year_of_birth:rt,gender:nt,middle_name:it,pincode:at}){const st=new Headers;st.append("Content-Type","application/json");const ut=JSON.stringify({abha_address:a,profile:{address:_,day_of_birth:et,first_name:$,gender:nt,last_name:_e,middle_name:it,month_of_birth:tt,pincode:at,year_of_birth:rt}}),ot={method:"POST",headers:st,body:ut,redirect:"follow",credentials:"include"};try{const pt=GET_NDHM_HOST();return await(await fetchWrapper(`${pt}/abdm/v1/profile/eka`,ot)).json()}catch(pt){console.error("postAbdmProfileEka error =>",pt)}return{}}async function postAbdmProfileEkaLinkPhr({abha_address:a,oid:_}){const $=new Headers;$.append("Content-Type","application/json");const _e=JSON.stringify({abha_address:a,oid:_}),et={method:"POST",headers:$,body:_e,redirect:"follow",credentials:"include"};try{const tt=GET_NDHM_HOST();return await(await fetchWrapper(`${tt}/abdm/v1/profile/eka/link-phr`,et)).json()}catch(tt){console.error("postAbdmProfileLinkPhr ==>",tt)}return{}}async function postAbdmRegisterMobileVerify({txn_id:a,otp:_}){const $=new Headers;$.append("Content-Type","application/json");const _e=JSON.stringify({txn_id:a,otp:_}),et={method:"POST",headers:$,body:_e,redirect:"follow",credentials:"include"};try{const tt=GET_NDHM_HOST();return await(await fetchWrapper(`${tt}/abdm/na/v1/registration/mobile/verify`,et)).json()}catch{}return{}}async function postAbdmRegisterMobileResendOtp({txn_id:a}){const _=new Headers;_.append("Content-Type","application/json");const $={method:"POST",headers:_,body:JSON.stringify({txn_id:a}),redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/mobile/resend`,$)).json()}catch{}return{}}async function getPincodeDetails({pincode:a}){const $=`${GET_NDHM_HOST()}/abdm/na/v1/registration/pincode/${a}`,_e=new Headers;_e.append("Content-Type","application/json");const et={method:"GET",headers:_e,redirect:"follow",credentials:"include"};try{return await(await fetchWrapper($,et)).json()}catch(tt){console.error(tt)}return{}}var reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/**
|
|
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
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var Oo=a=>{throw TypeError(a)};var Bs=(a,_,$)=>_.has(a)||Oo("Cannot "+$);var Ft=
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(
|
|
25
|
+
*/(function(e){function s(lt,ct){var yt=lt.length;lt.push(ct);e:for(;0<yt;){var mt=yt-1>>>1,wt=lt[mt];if(0<o(wt,ct))lt[mt]=ct,lt[yt]=wt,yt=mt;else break e}}function i(lt){return lt.length===0?null:lt[0]}function a(lt){if(lt.length===0)return null;var ct=lt[0],yt=lt.pop();if(yt!==ct){lt[0]=yt;e:for(var mt=0,wt=lt.length,Tt=wt>>>1;mt<Tt;){var bt=2*(mt+1)-1,jt=lt[bt],Lt=bt+1,Rt=lt[Lt];if(0>o(jt,yt))Lt<wt&&0>o(Rt,jt)?(lt[mt]=Rt,lt[Lt]=yt,mt=Lt):(lt[mt]=jt,lt[bt]=yt,mt=bt);else if(Lt<wt&&0>o(Rt,yt))lt[mt]=Rt,lt[Lt]=yt,mt=Lt;else break e}}return ct}function o(lt,ct){var yt=lt.sortIndex-ct.sortIndex;return yt!==0?yt:lt.id-ct.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var g=Date,_=g.now();e.unstable_now=function(){return g.now()-_}}var b=[],$=[],et=1,ot=null,rt=3,at=!1,it=!1,st=!1,dt=typeof setTimeout=="function"?setTimeout:null,j=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 _e(lt){for(var ct=i($);ct!==null;){if(ct.callback===null)a($);else if(ct.startTime<=lt)a($),ct.sortIndex=ct.expirationTime,s(b,ct);else break;ct=i($)}}function nt(lt){if(st=!1,_e(lt),!it)if(i(b)!==null)it=!0,pt(ut);else{var ct=i($);ct!==null&&vt(nt,ct.startTime-lt)}}function ut(lt,ct){it=!1,st&&(st=!1,j(ft),ft=-1),at=!0;var yt=rt;try{for(_e(ct),ot=i(b);ot!==null&&(!(ot.expirationTime>ct)||lt&&!kt());){var mt=ot.callback;if(typeof mt=="function"){ot.callback=null,rt=ot.priorityLevel;var wt=mt(ot.expirationTime<=ct);ct=e.unstable_now(),typeof wt=="function"?ot.callback=wt:ot===i(b)&&a(b),_e(ct)}else a(b);ot=i(b)}if(ot!==null)var Tt=!0;else{var bt=i($);bt!==null&&vt(nt,bt.startTime-ct),Tt=!1}return Tt}finally{ot=null,rt=yt,at=!1}}var ht=!1,gt=null,ft=-1,_t=5,At=-1;function kt(){return!(e.unstable_now()-At<_t)}function St(){if(gt!==null){var lt=e.unstable_now();At=lt;var ct=!0;try{ct=gt(!0,lt)}finally{ct?Ct():(ht=!1,gt=null)}}else ht=!1}var Ct;if(typeof tt=="function")Ct=function(){tt(St)};else if(typeof MessageChannel<"u"){var Ot=new MessageChannel,xt=Ot.port2;Ot.port1.onmessage=St,Ct=function(){xt.postMessage(null)}}else Ct=function(){dt(St,0)};function pt(lt){gt=lt,ht||(ht=!0,Ct())}function vt(lt,ct){ft=dt(function(){lt(e.unstable_now())},ct)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(lt){lt.callback=null},e.unstable_continueExecution=function(){it||at||(it=!0,pt(ut))},e.unstable_forceFrameRate=function(lt){0>lt||125<lt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_t=0<lt?Math.floor(1e3/lt):5},e.unstable_getCurrentPriorityLevel=function(){return rt},e.unstable_getFirstCallbackNode=function(){return i(b)},e.unstable_next=function(lt){switch(rt){case 1:case 2:case 3:var ct=3;break;default:ct=rt}var yt=rt;rt=ct;try{return lt()}finally{rt=yt}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(lt,ct){switch(lt){case 1:case 2:case 3:case 4:case 5:break;default:lt=3}var yt=rt;rt=lt;try{return ct()}finally{rt=yt}},e.unstable_scheduleCallback=function(lt,ct,yt){var mt=e.unstable_now();switch(typeof yt=="object"&&yt!==null?(yt=yt.delay,yt=typeof yt=="number"&&0<yt?mt+yt:mt):yt=mt,lt){case 1:var wt=-1;break;case 2:wt=250;break;case 5:wt=1073741823;break;case 4:wt=1e4;break;default:wt=5e3}return wt=yt+wt,lt={id:et++,callback:ct,priorityLevel:lt,startTime:yt,expirationTime:wt,sortIndex:-1},yt>mt?(lt.sortIndex=yt,s($,lt),i(b)===null&<===i($)&&(st?(j(ft),ft=-1):st=!0,vt(nt,yt-mt))):(lt.sortIndex=wt,s(b,lt),it||at||(it=!0,pt(ut))),lt},e.unstable_shouldYield=kt,e.unstable_wrapCallback=function(lt){var ct=rt;return function(){var yt=rt;rt=ct;try{return lt.apply(this,arguments)}finally{rt=yt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,117 +30,34 @@ var Oo=a=>{throw TypeError(a)};var Bs=(a,_,$)=>_.has(a)||Oo("Cannot "+$);var Ft=
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var aa=reactExports,ca=schedulerExports;function p$
|
|
34
|
-
`+La+
|
|
35
|
-
`),
|
|
36
|
-
`),
|
|
37
|
-
`+et[rt].replace(" at new "," at ");return a.displayName&&it.includes("<anonymous>")&&(it=it.replace("<anonymous>",a.displayName)),it}while(1<=rt&&0<=nt);break}}}finally{Na=!1,Error.prepareStackTrace=$}return(a=a?a.displayName||a.name:"")?Ma(a):""}function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return""}}function Qa(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){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 a=="object")switch(a.$$typeof){case Ca:return(a.displayName||"Context")+".Consumer";case Ba:return(a._context.displayName||"Context")+".Provider";case Da:var _=a.render;return a=a.displayName,a||(a=_.displayName||_.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Ga:return _=a.displayName||null,_!==null?_:Qa(a.type)||"Memo";case Ha:_=a._payload,a=a._init;try{return Qa(a(_))}catch{}}return null}function Ra(a){var _=a.type;switch(a.tag){case 24:return"Cache";case 9:return(_.displayName||"Context")+".Consumer";case 10:return(_._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=_.render,a=a.displayName||a.name||"",_.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return _;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(_);case 8:return _===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 _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _}return null}function Sa(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ta(a){var _=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function Ua(a){var _=Ta(a)?"checked":"value",$=Object.getOwnPropertyDescriptor(a.constructor.prototype,_),_e=""+a[_];if(!a.hasOwnProperty(_)&&typeof $<"u"&&typeof $.get=="function"&&typeof $.set=="function"){var et=$.get,tt=$.set;return Object.defineProperty(a,_,{configurable:!0,get:function(){return et.call(this)},set:function(rt){_e=""+rt,tt.call(this,rt)}}),Object.defineProperty(a,_,{enumerable:$.enumerable}),{getValue:function(){return _e},setValue:function(rt){_e=""+rt},stopTracking:function(){a._valueTracker=null,delete a[_]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var _=a._valueTracker;if(!_)return!0;var $=_.getValue(),_e="";return a&&(_e=Ta(a)?a.checked?"true":"false":a.value),a=_e,a!==$?(_.setValue(a),!0):!1}function Xa(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ya(a,_){var $=_.checked;return A$1({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:$??a._wrapperState.initialChecked})}function Za(a,_){var $=_.defaultValue==null?"":_.defaultValue,_e=_.checked!=null?_.checked:_.defaultChecked;$=Sa(_.value!=null?_.value:$),a._wrapperState={initialChecked:_e,initialValue:$,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function ab(a,_){_=_.checked,_!=null&&ta(a,"checked",_,!1)}function bb(a,_){ab(a,_);var $=Sa(_.value),_e=_.type;if($!=null)_e==="number"?($===0&&a.value===""||a.value!=$)&&(a.value=""+$):a.value!==""+$&&(a.value=""+$);else if(_e==="submit"||_e==="reset"){a.removeAttribute("value");return}_.hasOwnProperty("value")?cb(a,_.type,$):_.hasOwnProperty("defaultValue")&&cb(a,_.type,Sa(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(a.defaultChecked=!!_.defaultChecked)}function db(a,_,$){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var _e=_.type;if(!(_e!=="submit"&&_e!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+a._wrapperState.initialValue,$||_===a.value||(a.value=_),a.defaultValue=_}$=a.name,$!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,$!==""&&(a.name=$)}function cb(a,_,$){(_!=="number"||Xa(a.ownerDocument)!==a)&&($==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+$&&(a.defaultValue=""+$))}var eb=Array.isArray;function fb(a,_,$,_e){if(a=a.options,_){_={};for(var et=0;et<$.length;et++)_["$"+$[et]]=!0;for($=0;$<a.length;$++)et=_.hasOwnProperty("$"+a[$].value),a[$].selected!==et&&(a[$].selected=et),et&&_e&&(a[$].defaultSelected=!0)}else{for($=""+Sa($),_=null,et=0;et<a.length;et++){if(a[et].value===$){a[et].selected=!0,_e&&(a[et].defaultSelected=!0);return}_!==null||a[et].disabled||(_=a[et])}_!==null&&(_.selected=!0)}}function gb(a,_){if(_.dangerouslySetInnerHTML!=null)throw Error(p$5(91));return A$1({},_,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function hb(a,_){var $=_.value;if($==null){if($=_.children,_=_.defaultValue,$!=null){if(_!=null)throw Error(p$5(92));if(eb($)){if(1<$.length)throw Error(p$5(93));$=$[0]}_=$}_==null&&(_=""),$=_}a._wrapperState={initialValue:Sa($)}}function ib(a,_){var $=Sa(_.value),_e=Sa(_.defaultValue);$!=null&&($=""+$,$!==a.value&&(a.value=$),_.defaultValue==null&&a.defaultValue!==$&&(a.defaultValue=$)),_e!=null&&(a.defaultValue=""+_e)}function jb(a){var _=a.textContent;_===a._wrapperState.initialValue&&_!==""&&_!==null&&(a.value=_)}function kb(a){switch(a){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(a,_){return a==null||a==="http://www.w3.org/1999/xhtml"?kb(_):a==="http://www.w3.org/2000/svg"&&_==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var mb,nb=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(_,$,_e,et){MSApp.execUnsafeLocalFunction(function(){return a(_,$,_e,et)})}:a}(function(a,_){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=_;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+_.valueOf().toString()+"</svg>",_=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;_.firstChild;)a.appendChild(_.firstChild)}});function ob(a,_){if(_){var $=a.firstChild;if($&&$===a.lastChild&&$.nodeType===3){$.nodeValue=_;return}}a.textContent=_}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(a){qb.forEach(function(_){_=_+a.charAt(0).toUpperCase()+a.substring(1),pb[_]=pb[a]})});function rb(a,_,$){return _==null||typeof _=="boolean"||_===""?"":$||typeof _!="number"||_===0||pb.hasOwnProperty(a)&&pb[a]?(""+_).trim():_+"px"}function sb(a,_){a=a.style;for(var $ in _)if(_.hasOwnProperty($)){var _e=$.indexOf("--")===0,et=rb($,_[$],_e);$==="float"&&($="cssFloat"),_e?a.setProperty($,et):a[$]=et}}var tb=A$1({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(a,_){if(_){if(tb[a]&&(_.children!=null||_.dangerouslySetInnerHTML!=null))throw Error(p$5(137,a));if(_.dangerouslySetInnerHTML!=null){if(_.children!=null)throw Error(p$5(60));if(typeof _.dangerouslySetInnerHTML!="object"||!("__html"in _.dangerouslySetInnerHTML))throw Error(p$5(61))}if(_.style!=null&&typeof _.style!="object")throw Error(p$5(62))}}function vb(a,_){if(a.indexOf("-")===-1)return typeof _.is=="string";switch(a){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(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var yb=null,zb=null,Ab=null;function Bb(a){if(a=Cb(a)){if(typeof yb!="function")throw Error(p$5(280));var _=a.stateNode;_&&(_=Db(_),yb(a.stateNode,a.type,_))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,_=Ab;if(Ab=zb=null,Bb(a),_)for(a=0;a<_.length;a++)Bb(_[a])}}function Gb$1(a,_){return a(_)}function Hb(){}var Ib=!1;function Jb(a,_,$){if(Ib)return a(_,$);Ib=!0;try{return Gb$1(a,_,$)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(a,_){var $=a.stateNode;if($===null)return null;var _e=Db($);if(_e===null)return null;$=_e[_];e:switch(_){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(_e=!_e.disabled)||(a=a.type,_e=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!_e;break e;default:a=!1}if(a)return null;if($&&typeof $!="function")throw Error(p$5(231,_,typeof $));return $}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(a,_,$,_e,et,tt,rt,nt,it){var at=Array.prototype.slice.call(arguments,3);try{_.apply($,at)}catch(st){this.onError(st)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(a){Ob=!0,Pb=a}};function Tb(a,_,$,_e,et,tt,rt,nt,it){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub$1(a,_,$,_e,et,tt,rt,nt,it){if(Tb.apply(this,arguments),Ob){if(Ob){var at=Pb;Ob=!1,Pb=null}else throw Error(p$5(198));Qb||(Qb=!0,Rb=at)}}function Vb(a){var _=a,$=a;if(a.alternate)for(;_.return;)_=_.return;else{a=_;do _=a,_.flags&4098&&($=_.return),a=_.return;while(a)}return _.tag===3?$:null}function Wb(a){if(a.tag===13){var _=a.memoizedState;if(_===null&&(a=a.alternate,a!==null&&(_=a.memoizedState)),_!==null)return _.dehydrated}return null}function Xb(a){if(Vb(a)!==a)throw Error(p$5(188))}function Yb(a){var _=a.alternate;if(!_){if(_=Vb(a),_===null)throw Error(p$5(188));return _!==a?null:a}for(var $=a,_e=_;;){var et=$.return;if(et===null)break;var tt=et.alternate;if(tt===null){if(_e=et.return,_e!==null){$=_e;continue}break}if(et.child===tt.child){for(tt=et.child;tt;){if(tt===$)return Xb(et),a;if(tt===_e)return Xb(et),_;tt=tt.sibling}throw Error(p$5(188))}if($.return!==_e.return)$=et,_e=tt;else{for(var rt=!1,nt=et.child;nt;){if(nt===$){rt=!0,$=et,_e=tt;break}if(nt===_e){rt=!0,_e=et,$=tt;break}nt=nt.sibling}if(!rt){for(nt=tt.child;nt;){if(nt===$){rt=!0,$=tt,_e=et;break}if(nt===_e){rt=!0,_e=tt,$=et;break}nt=nt.sibling}if(!rt)throw Error(p$5(189))}}if($.alternate!==_e)throw Error(p$5(190))}if($.tag!==3)throw Error(p$5(188));return $.stateNode.current===$?a:_}function Zb(a){return a=Yb(a),a!==null?$b(a):null}function $b(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var _=$b(a);if(_!==null)return _;a=a.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(a){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,a,void 0,(a.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(a){return a>>>=0,a===0?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;function tc(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function uc(a,_){var $=a.pendingLanes;if($===0)return 0;var _e=0,et=a.suspendedLanes,tt=a.pingedLanes,rt=$&268435455;if(rt!==0){var nt=rt&~et;nt!==0?_e=tc(nt):(tt&=rt,tt!==0&&(_e=tc(tt)))}else rt=$&~et,rt!==0?_e=tc(rt):tt!==0&&(_e=tc(tt));if(_e===0)return 0;if(_!==0&&_!==_e&&!(_&et)&&(et=_e&-_e,tt=_&-_,et>=tt||et===16&&(tt&4194240)!==0))return _;if(_e&4&&(_e|=$&16),_=a.entangledLanes,_!==0)for(a=a.entanglements,_&=_e;0<_;)$=31-oc(_),et=1<<$,_e|=a[$],_&=~et;return _e}function vc(a,_){switch(a){case 1:case 2:case 4:return _+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 _+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(a,_){for(var $=a.suspendedLanes,_e=a.pingedLanes,et=a.expirationTimes,tt=a.pendingLanes;0<tt;){var rt=31-oc(tt),nt=1<<rt,it=et[rt];it===-1?(!(nt&$)||nt&_e)&&(et[rt]=vc(nt,_)):it<=_&&(a.expiredLanes|=nt),tt&=~nt}}function xc(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function yc(){var a=rc;return rc<<=1,!(rc&4194240)&&(rc=64),a}function zc(a){for(var _=[],$=0;31>$;$++)_.push(a);return _}function Ac(a,_,$){a.pendingLanes|=_,_!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,_=31-oc(_),a[_]=$}function Bc(a,_){var $=a.pendingLanes&~_;a.pendingLanes=_,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=_,a.mutableReadLanes&=_,a.entangledLanes&=_,_=a.entanglements;var _e=a.eventTimes;for(a=a.expirationTimes;0<$;){var et=31-oc($),tt=1<<et;_[et]=0,_e[et]=-1,a[et]=-1,$&=~tt}}function Cc(a,_){var $=a.entangledLanes|=_;for(a=a.entanglements;$;){var _e=31-oc($),et=1<<_e;et&_|a[_e]&_&&(a[_e]|=_),$&=~et}}var C=0;function Dc(a){return a&=-a,1<a?4<a?a&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(a,_){switch(a){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(_.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(_.pointerId)}}function Tc(a,_,$,_e,et,tt){return a===null||a.nativeEvent!==tt?(a={blockedOn:_,domEventName:$,eventSystemFlags:_e,nativeEvent:tt,targetContainers:[et]},_!==null&&(_=Cb(_),_!==null&&Fc(_)),a):(a.eventSystemFlags|=_e,_=a.targetContainers,et!==null&&_.indexOf(et)===-1&&_.push(et),a)}function Uc(a,_,$,_e,et){switch(_){case"focusin":return Lc=Tc(Lc,a,_,$,_e,et),!0;case"dragenter":return Mc=Tc(Mc,a,_,$,_e,et),!0;case"mouseover":return Nc=Tc(Nc,a,_,$,_e,et),!0;case"pointerover":var tt=et.pointerId;return Oc.set(tt,Tc(Oc.get(tt)||null,a,_,$,_e,et)),!0;case"gotpointercapture":return tt=et.pointerId,Pc.set(tt,Tc(Pc.get(tt)||null,a,_,$,_e,et)),!0}return!1}function Vc(a){var _=Wc(a.target);if(_!==null){var $=Vb(_);if($!==null){if(_=$.tag,_===13){if(_=Wb($),_!==null){a.blockedOn=_,Ic(a.priority,function(){Gc($)});return}}else if(_===3&&$.stateNode.current.memoizedState.isDehydrated){a.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Xc(a){if(a.blockedOn!==null)return!1;for(var _=a.targetContainers;0<_.length;){var $=Yc(a.domEventName,a.eventSystemFlags,_[0],a.nativeEvent);if($===null){$=a.nativeEvent;var _e=new $.constructor($.type,$);wb=_e,$.target.dispatchEvent(_e),wb=null}else return _=Cb($),_!==null&&Fc(_),a.blockedOn=$,!1;_.shift()}return!0}function Zc(a,_,$){Xc(a)&&$.delete(_)}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(a,_){a.blockedOn===_&&(a.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(a){function _(et){return ad(et,a)}if(0<Kc.length){ad(Kc[0],a);for(var $=1;$<Kc.length;$++){var _e=Kc[$];_e.blockedOn===a&&(_e.blockedOn=null)}}for(Lc!==null&&ad(Lc,a),Mc!==null&&ad(Mc,a),Nc!==null&&ad(Nc,a),Oc.forEach(_),Pc.forEach(_),$=0;$<Qc.length;$++)_e=Qc[$],_e.blockedOn===a&&(_e.blockedOn=null);for(;0<Qc.length&&($=Qc[0],$.blockedOn===null);)Vc($),$.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(a,_,$,_e){var et=C,tt=cd.transition;cd.transition=null;try{C=1,fd(a,_,$,_e)}finally{C=et,cd.transition=tt}}function gd(a,_,$,_e){var et=C,tt=cd.transition;cd.transition=null;try{C=4,fd(a,_,$,_e)}finally{C=et,cd.transition=tt}}function fd(a,_,$,_e){if(dd){var et=Yc(a,_,$,_e);if(et===null)hd(a,_,_e,id$1,$),Sc(a,_e);else if(Uc(et,a,_,$,_e))_e.stopPropagation();else if(Sc(a,_e),_&4&&-1<Rc.indexOf(a)){for(;et!==null;){var tt=Cb(et);if(tt!==null&&Ec(tt),tt=Yc(a,_,$,_e),tt===null&&hd(a,_,_e,id$1,$),tt===et)break;et=tt}et!==null&&_e.stopPropagation()}else hd(a,_,_e,null,$)}}var id$1=null;function Yc(a,_,$,_e){if(id$1=null,a=xb(_e),a=Wc(a),a!==null)if(_=Vb(a),_===null)a=null;else if($=_.tag,$===13){if(a=Wb(_),a!==null)return a;a=null}else if($===3){if(_.stateNode.current.memoizedState.isDehydrated)return _.tag===3?_.stateNode.containerInfo:null;a=null}else _!==a&&(a=null);return id$1=a,null}function jd(a){switch(a){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 a,_=ld,$=_.length,_e,et="value"in kd?kd.value:kd.textContent,tt=et.length;for(a=0;a<$&&_[a]===et[a];a++);var rt=$-a;for(_e=1;_e<=rt&&_[$-_e]===et[tt-_e];_e++);return md=et.slice(a,1<_e?1-_e:void 0)}function od(a){var _=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&_===13&&(a=13)):a=_,a===10&&(a=13),32<=a||a===13?a:0}function pd(){return!0}function qd(){return!1}function rd(a){function _($,_e,et,tt,rt){this._reactName=$,this._targetInst=et,this.type=_e,this.nativeEvent=tt,this.target=rt,this.currentTarget=null;for(var nt in a)a.hasOwnProperty(nt)&&($=a[nt],this[nt]=$?$(tt):tt[nt]);return this.isDefaultPrevented=(tt.defaultPrevented!=null?tt.defaultPrevented:tt.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A$1(_.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!="unknown"&&($.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),_}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A$1({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A$1({},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(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==yd&&(yd&&a.type==="mousemove"?(wd=a.screenX-yd.screenX,xd=a.screenY-yd.screenY):xd=wd=0,yd=a),wd)},movementY:function(a){return"movementY"in a?a.movementY:xd}}),Bd=rd(Ad),Cd=A$1({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A$1({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A$1({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A$1({},sd,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A$1({},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(a){var _=this.nativeEvent;return _.getModifierState?_.getModifierState(a):(a=Od[a])?!!_[a]:!1}function zd(){return Pd}var Qd=A$1({},ud,{key:function(a){if(a.key){var _=Md[a.key]||a.key;if(_!=="Unidentified")return _}return a.type==="keypress"?(a=od(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?Nd[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(a){return a.type==="keypress"?od(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?od(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Rd=rd(Qd),Sd=A$1({},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$1({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A$1({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A$1({},Ad,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.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$1(a,_){switch(a){case"keyup":return $d.indexOf(_.keyCode)!==-1;case"keydown":return _.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ie=!1;function je$1(a,_){switch(a){case"compositionend":return he(_);case"keypress":return _.which!==32?null:(fe=!0,ee);case"textInput":return a=_.data,a===ee&&fe?null:a;default:return null}}function ke(a,_){if(ie)return a==="compositionend"||!ae&&ge$1(a,_)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(_.ctrlKey||_.altKey||_.metaKey)||_.ctrlKey&&_.altKey){if(_.char&&1<_.char.length)return _.char;if(_.which)return String.fromCharCode(_.which)}return null;case"compositionend":return de&&_.locale!=="ko"?null:_.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(a){var _=a&&a.nodeName&&a.nodeName.toLowerCase();return _==="input"?!!le[a.type]:_==="textarea"}function ne(a,_,$,_e){Eb(_e),_=oe(_,"onChange"),0<_.length&&($=new td("onChange","change",null,$,_e),a.push({event:$,listeners:_}))}var pe=null,qe$1=null;function re(a){se$1(a,0)}function te(a){var _=ue(a);if(Wa(_))return a}function ve(a,_){if(a==="change")return _}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$1=pe=null)}function Be(a){if(a.propertyName==="value"&&te(qe$1)){var _=[];ne(_,qe$1,a,xb(a)),Jb(re,_)}}function Ce(a,_,$){a==="focusin"?(Ae(),pe=_,qe$1=$,pe.attachEvent("onpropertychange",Be)):a==="focusout"&&Ae()}function De(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return te(qe$1)}function Ee(a,_){if(a==="click")return te(_)}function Fe(a,_){if(a==="input"||a==="change")return te(_)}function Ge(a,_){return a===_&&(a!==0||1/a===1/_)||a!==a&&_!==_}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(a,_){if(He(a,_))return!0;if(typeof a!="object"||a===null||typeof _!="object"||_===null)return!1;var $=Object.keys(a),_e=Object.keys(_);if($.length!==_e.length)return!1;for(_e=0;_e<$.length;_e++){var et=$[_e];if(!ja.call(_,et)||!He(a[et],_[et]))return!1}return!0}function Je(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Ke(a,_){var $=Je(a);a=0;for(var _e;$;){if($.nodeType===3){if(_e=a+$.textContent.length,a<=_&&_e>=_)return{node:$,offset:_-a};a=_e}e:{for(;$;){if($.nextSibling){$=$.nextSibling;break e}$=$.parentNode}$=void 0}$=Je($)}}function Le(a,_){return a&&_?a===_?!0:a&&a.nodeType===3?!1:_&&_.nodeType===3?Le(a,_.parentNode):"contains"in a?a.contains(_):a.compareDocumentPosition?!!(a.compareDocumentPosition(_)&16):!1:!1}function Me(){for(var a=window,_=Xa();_ instanceof a.HTMLIFrameElement;){try{var $=typeof _.contentWindow.location.href=="string"}catch{$=!1}if($)a=_.contentWindow;else break;_=Xa(a.document)}return _}function Ne(a){var _=a&&a.nodeName&&a.nodeName.toLowerCase();return _&&(_==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||_==="textarea"||a.contentEditable==="true")}function Oe(a){var _=Me(),$=a.focusedElem,_e=a.selectionRange;if(_!==$&&$&&$.ownerDocument&&Le($.ownerDocument.documentElement,$)){if(_e!==null&&Ne($)){if(_=_e.start,a=_e.end,a===void 0&&(a=_),"selectionStart"in $)$.selectionStart=_,$.selectionEnd=Math.min(a,$.value.length);else if(a=(_=$.ownerDocument||document)&&_.defaultView||window,a.getSelection){a=a.getSelection();var et=$.textContent.length,tt=Math.min(_e.start,et);_e=_e.end===void 0?tt:Math.min(_e.end,et),!a.extend&&tt>_e&&(et=_e,_e=tt,tt=et),et=Ke($,tt);var rt=Ke($,_e);et&&rt&&(a.rangeCount!==1||a.anchorNode!==et.node||a.anchorOffset!==et.offset||a.focusNode!==rt.node||a.focusOffset!==rt.offset)&&(_=_.createRange(),_.setStart(et.node,et.offset),a.removeAllRanges(),tt>_e?(a.addRange(_),a.extend(rt.node,rt.offset)):(_.setEnd(rt.node,rt.offset),a.addRange(_)))}}for(_=[],a=$;a=a.parentNode;)a.nodeType===1&&_.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<_.length;$++)a=_[$],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(a,_,$){var _e=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;Te||Qe==null||Qe!==Xa(_e)||(_e=Qe,"selectionStart"in _e&&Ne(_e)?_e={start:_e.selectionStart,end:_e.selectionEnd}:(_e=(_e.ownerDocument&&_e.ownerDocument.defaultView||window).getSelection(),_e={anchorNode:_e.anchorNode,anchorOffset:_e.anchorOffset,focusNode:_e.focusNode,focusOffset:_e.focusOffset}),Se&&Ie(Se,_e)||(Se=_e,_e=oe(Re,"onSelect"),0<_e.length&&(_=new td("onSelect","select",null,_,$),a.push({event:_,listeners:_e}),_.target=Qe)))}function Ve(a,_){var $={};return $[a.toLowerCase()]=_.toLowerCase(),$["Webkit"+a]="webkit"+_,$["Moz"+a]="moz"+_,$}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(a){if(Xe[a])return Xe[a];if(!We[a])return a;var _=We[a],$;for($ in _)if(_.hasOwnProperty($)&&$ in Ye)return Xe[a]=_[$];return a}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(a,_){df.set(a,_),fa(_,[a])}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(a,_,$){var _e=a.type||"unknown-event";a.currentTarget=$,Ub$1(_e,_,void 0,a),a.currentTarget=null}function se$1(a,_){_=(_&4)!==0;for(var $=0;$<a.length;$++){var _e=a[$],et=_e.event;_e=_e.listeners;e:{var tt=void 0;if(_)for(var rt=_e.length-1;0<=rt;rt--){var nt=_e[rt],it=nt.instance,at=nt.currentTarget;if(nt=nt.listener,it!==tt&&et.isPropagationStopped())break e;nf(et,nt,at),tt=it}else for(rt=0;rt<_e.length;rt++){if(nt=_e[rt],it=nt.instance,at=nt.currentTarget,nt=nt.listener,it!==tt&&et.isPropagationStopped())break e;nf(et,nt,at),tt=it}}}if(Qb)throw a=Rb,Qb=!1,Rb=null,a}function D(a,_){var $=_[of];$===void 0&&($=_[of]=new Set);var _e=a+"__bubble";$.has(_e)||(pf(_,a,2,!1),$.add(_e))}function qf(a,_,$){var _e=0;_&&(_e|=4),pf($,a,_e,_)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(a){if(!a[rf]){a[rf]=!0,da.forEach(function($){$!=="selectionchange"&&(mf.has($)||qf($,!1,a),qf($,!0,a))});var _=a.nodeType===9?a:a.ownerDocument;_===null||_[rf]||(_[rf]=!0,qf("selectionchange",!1,_))}}function pf(a,_,$,_e){switch(jd(_)){case 1:var et=ed;break;case 4:et=gd;break;default:et=fd}$=et.bind(null,_,$,a),et=void 0,!Lb||_!=="touchstart"&&_!=="touchmove"&&_!=="wheel"||(et=!0),_e?et!==void 0?a.addEventListener(_,$,{capture:!0,passive:et}):a.addEventListener(_,$,!0):et!==void 0?a.addEventListener(_,$,{passive:et}):a.addEventListener(_,$,!1)}function hd(a,_,$,_e,et){var tt=_e;if(!(_&1)&&!(_&2)&&_e!==null)e:for(;;){if(_e===null)return;var rt=_e.tag;if(rt===3||rt===4){var nt=_e.stateNode.containerInfo;if(nt===et||nt.nodeType===8&&nt.parentNode===et)break;if(rt===4)for(rt=_e.return;rt!==null;){var it=rt.tag;if((it===3||it===4)&&(it=rt.stateNode.containerInfo,it===et||it.nodeType===8&&it.parentNode===et))return;rt=rt.return}for(;nt!==null;){if(rt=Wc(nt),rt===null)return;if(it=rt.tag,it===5||it===6){_e=tt=rt;continue e}nt=nt.parentNode}}_e=_e.return}Jb(function(){var at=tt,st=xb($),ut=[];e:{var ot=df.get(a);if(ot!==void 0){var pt=td,ht=a;switch(a){case"keypress":if(od($)===0)break e;case"keydown":case"keyup":pt=Rd;break;case"focusin":ht="focus",pt=Fd;break;case"focusout":ht="blur",pt=Fd;break;case"beforeblur":case"afterblur":pt=Fd;break;case"click":if($.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pt=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pt=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pt=Vd;break;case $e:case af:case bf:pt=Hd;break;case cf:pt=Xd;break;case"scroll":pt=vd;break;case"wheel":pt=Zd;break;case"copy":case"cut":case"paste":pt=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pt=Td}var dt=(_&4)!==0,gt=!dt&&a==="scroll",lt=dt?ot!==null?ot+"Capture":null:ot;dt=[];for(var ft=at,ct;ft!==null;){ct=ft;var mt=ct.stateNode;if(ct.tag===5&&mt!==null&&(ct=mt,lt!==null&&(mt=Kb(ft,lt),mt!=null&&dt.push(tf(ft,mt,ct)))),gt)break;ft=ft.return}0<dt.length&&(ot=new pt(ot,ht,null,$,st),ut.push({event:ot,listeners:dt}))}}if(!(_&7)){e:{if(ot=a==="mouseover"||a==="pointerover",pt=a==="mouseout"||a==="pointerout",ot&&$!==wb&&(ht=$.relatedTarget||$.fromElement)&&(Wc(ht)||ht[uf]))break e;if((pt||ot)&&(ot=st.window===st?st:(ot=st.ownerDocument)?ot.defaultView||ot.parentWindow:window,pt?(ht=$.relatedTarget||$.toElement,pt=at,ht=ht?Wc(ht):null,ht!==null&&(gt=Vb(ht),ht!==gt||ht.tag!==5&&ht.tag!==6)&&(ht=null)):(pt=null,ht=at),pt!==ht)){if(dt=Bd,mt="onMouseLeave",lt="onMouseEnter",ft="mouse",(a==="pointerout"||a==="pointerover")&&(dt=Td,mt="onPointerLeave",lt="onPointerEnter",ft="pointer"),gt=pt==null?ot:ue(pt),ct=ht==null?ot:ue(ht),ot=new dt(mt,ft+"leave",pt,$,st),ot.target=gt,ot.relatedTarget=ct,mt=null,Wc(st)===at&&(dt=new dt(lt,ft+"enter",ht,$,st),dt.target=ct,dt.relatedTarget=gt,mt=dt),gt=mt,pt&&ht)t:{for(dt=pt,lt=ht,ft=0,ct=dt;ct;ct=vf(ct))ft++;for(ct=0,mt=lt;mt;mt=vf(mt))ct++;for(;0<ft-ct;)dt=vf(dt),ft--;for(;0<ct-ft;)lt=vf(lt),ct--;for(;ft--;){if(dt===lt||lt!==null&&dt===lt.alternate)break t;dt=vf(dt),lt=vf(lt)}dt=null}else dt=null;pt!==null&&wf(ut,ot,pt,dt,!1),ht!==null&>!==null&&wf(ut,gt,ht,dt,!0)}}e:{if(ot=at?ue(at):window,pt=ot.nodeName&&ot.nodeName.toLowerCase(),pt==="select"||pt==="input"&&ot.type==="file")var yt=ve;else if(me(ot))if(we)yt=Fe;else{yt=De;var Et=Ce}else(pt=ot.nodeName)&&pt.toLowerCase()==="input"&&(ot.type==="checkbox"||ot.type==="radio")&&(yt=Ee);if(yt&&(yt=yt(a,at))){ne(ut,yt,$,st);break e}Et&&Et(a,ot,at),a==="focusout"&&(Et=ot._wrapperState)&&Et.controlled&&ot.type==="number"&&cb(ot,"number",ot.value)}switch(Et=at?ue(at):window,a){case"focusin":(me(Et)||Et.contentEditable==="true")&&(Qe=Et,Re=at,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(ut,$,st);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(ut,$,st)}var St;if(ae)e:{switch(a){case"compositionstart":var At="onCompositionStart";break e;case"compositionend":At="onCompositionEnd";break e;case"compositionupdate":At="onCompositionUpdate";break e}At=void 0}else ie?ge$1(a,$)&&(At="onCompositionEnd"):a==="keydown"&&$.keyCode===229&&(At="onCompositionStart");At&&(de&&$.locale!=="ko"&&(ie||At!=="onCompositionStart"?At==="onCompositionEnd"&&ie&&(St=nd()):(kd=st,ld="value"in kd?kd.value:kd.textContent,ie=!0)),Et=oe(at,At),0<Et.length&&(At=new Ld(At,a,null,$,st),ut.push({event:At,listeners:Et}),St?At.data=St:(St=he($),St!==null&&(At.data=St)))),(St=ce?je$1(a,$):ke(a,$))&&(at=oe(at,"onBeforeInput"),0<at.length&&(st=new Ld("onBeforeInput","beforeinput",null,$,st),ut.push({event:st,listeners:at}),st.data=St))}se$1(ut,_)})}function tf(a,_,$){return{instance:a,listener:_,currentTarget:$}}function oe(a,_){for(var $=_+"Capture",_e=[];a!==null;){var et=a,tt=et.stateNode;et.tag===5&&tt!==null&&(et=tt,tt=Kb(a,$),tt!=null&&_e.unshift(tf(a,tt,et)),tt=Kb(a,_),tt!=null&&_e.push(tf(a,tt,et))),a=a.return}return _e}function vf(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function wf(a,_,$,_e,et){for(var tt=_._reactName,rt=[];$!==null&&$!==_e;){var nt=$,it=nt.alternate,at=nt.stateNode;if(it!==null&&it===_e)break;nt.tag===5&&at!==null&&(nt=at,et?(it=Kb($,tt),it!=null&&rt.unshift(tf($,it,nt))):et||(it=Kb($,tt),it!=null&&rt.push(tf($,it,nt)))),$=$.return}rt.length!==0&&a.push({event:_,listeners:rt})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(a){return(typeof a=="string"?a:""+a).replace(xf,`
|
|
38
|
-
`).replace(yf,"")}function Af(a,_,$){if(_=zf(_),zf(a)!==_&&$)throw Error(p$5(425))}function Bf(){}var Cf=null,Df=null;function Ef(a,_){return a==="textarea"||a==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.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(a){return Hf.resolve(null).then(a).catch(If)}:Ff;function If(a){setTimeout(function(){throw a})}function Kf(a,_){var $=_,_e=0;do{var et=$.nextSibling;if(a.removeChild($),et&&et.nodeType===8)if($=et.data,$==="/$"){if(_e===0){a.removeChild(et),bd(_);return}_e--}else $!=="$"&&$!=="$?"&&$!=="$!"||_e++;$=et}while($);bd(_)}function Lf(a){for(;a!=null;a=a.nextSibling){var _=a.nodeType;if(_===1||_===3)break;if(_===8){if(_=a.data,_==="$"||_==="$!"||_==="$?")break;if(_==="/$")return null}}return a}function Mf(a){a=a.previousSibling;for(var _=0;a;){if(a.nodeType===8){var $=a.data;if($==="$"||$==="$!"||$==="$?"){if(_===0)return a;_--}else $==="/$"&&_++}a=a.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(a){var _=a[Of];if(_)return _;for(var $=a.parentNode;$;){if(_=$[uf]||$[Of]){if($=_.alternate,_.child!==null||$!==null&&$.child!==null)for(a=Mf(a);a!==null;){if($=a[Of])return $;a=Mf(a)}return _}a=$,$=a.parentNode}return null}function Cb(a){return a=a[Of]||a[uf],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function ue(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(p$5(33))}function Db(a){return a[Pf]||null}var Sf=[],Tf=-1;function Uf(a){return{current:a}}function E(a){0>Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,_){Tf++,Sf[Tf]=a.current,a.current=_}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,_){var $=a.type.contextTypes;if(!$)return Vf;var _e=a.stateNode;if(_e&&_e.__reactInternalMemoizedUnmaskedChildContext===_)return _e.__reactInternalMemoizedMaskedChildContext;var et={},tt;for(tt in $)et[tt]=_[tt];return _e&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=_,a.__reactInternalMemoizedMaskedChildContext=et),et}function Zf(a){return a=a.childContextTypes,a!=null}function $f(){E(Wf),E(H)}function ag(a,_,$){if(H.current!==Vf)throw Error(p$5(168));G(H,_),G(Wf,$)}function bg(a,_,$){var _e=a.stateNode;if(_=_.childContextTypes,typeof _e.getChildContext!="function")return $;_e=_e.getChildContext();for(var et in _e)if(!(et in _))throw Error(p$5(108,Ra(a)||"Unknown",et));return A$1({},$,_e)}function cg(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,a),G(Wf,Wf.current),!0}function dg(a,_,$){var _e=a.stateNode;if(!_e)throw Error(p$5(169));$?(a=bg(a,_,Xf),_e.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf),G(Wf,$)}var eg=null,fg=!1,gg=!1;function hg(a){eg===null?eg=[a]:eg.push(a)}function ig(a){fg=!0,hg(a)}function jg(){if(!gg&&eg!==null){gg=!0;var a=0,_=C;try{var $=eg;for(C=1;a<$.length;a++){var _e=$[a];do _e=_e(!0);while(_e!==null)}eg=null,fg=!1}catch(et){throw eg!==null&&(eg=eg.slice(a+1)),ac(fc,jg),et}finally{C=_,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(a,_){kg[lg++]=ng,kg[lg++]=mg,mg=a,ng=_}function ug(a,_,$){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=a;var _e=rg;a=sg;var et=32-oc(_e)-1;_e&=~(1<<et),$+=1;var tt=32-oc(_)+et;if(30<tt){var rt=et-et%5;tt=(_e&(1<<rt)-1).toString(32),_e>>=rt,et-=rt,rg=1<<32-oc(_)+et|$<<et|_e,sg=tt+a}else rg=1<<tt|$<<et|_e,sg=a}function vg(a){a.return!==null&&(tg(a,1),ug(a,1,0))}function wg(a){for(;a===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;a===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(a,_){var $=Bg(5,null,null,0);$.elementType="DELETED",$.stateNode=_,$.return=a,_=a.deletions,_===null?(a.deletions=[$],a.flags|=16):_.push($)}function Cg(a,_){switch(a.tag){case 5:var $=a.type;return _=_.nodeType!==1||$.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(a.stateNode=_,xg=a,yg=Lf(_.firstChild),!0):!1;case 6:return _=a.pendingProps===""||_.nodeType!==3?null:_,_!==null?(a.stateNode=_,xg=a,yg=null,!0):!1;case 13:return _=_.nodeType!==8?null:_,_!==null?($=qg!==null?{id:rg,overflow:sg}:null,a.memoizedState={dehydrated:_,treeContext:$,retryLane:1073741824},$=Bg(18,null,null,0),$.stateNode=_,$.return=a,a.child=$,xg=a,yg=null,!0):!1;default:return!1}}function Dg(a){return(a.mode&1)!==0&&(a.flags&128)===0}function Eg(a){if(I){var _=yg;if(_){var $=_;if(!Cg(a,_)){if(Dg(a))throw Error(p$5(418));_=Lf($.nextSibling);var _e=xg;_&&Cg(a,_)?Ag(_e,$):(a.flags=a.flags&-4097|2,I=!1,xg=a)}}else{if(Dg(a))throw Error(p$5(418));a.flags=a.flags&-4097|2,I=!1,xg=a}}}function Fg(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;xg=a}function Gg(a){if(a!==xg)return!1;if(!I)return Fg(a),I=!0,!1;var _;if((_=a.tag!==3)&&!(_=a.tag!==5)&&(_=a.type,_=_!=="head"&&_!=="body"&&!Ef(a.type,a.memoizedProps)),_&&(_=yg)){if(Dg(a))throw Hg(),Error(p$5(418));for(;_;)Ag(a,_),_=Lf(_.nextSibling)}if(Fg(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(p$5(317));e:{for(a=a.nextSibling,_=0;a;){if(a.nodeType===8){var $=a.data;if($==="/$"){if(_===0){yg=Lf(a.nextSibling);break e}_--}else $!=="$"&&$!=="$!"&&$!=="$?"||_++}a=a.nextSibling}yg=null}}else yg=xg?Lf(a.stateNode.nextSibling):null;return!0}function Hg(){for(var a=yg;a;)a=Lf(a.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(a){zg===null?zg=[a]:zg.push(a)}var Kg=ua.ReactCurrentBatchConfig;function Lg(a,_){if(a&&a.defaultProps){_=A$1({},_),a=a.defaultProps;for(var $ in a)_[$]===void 0&&(_[$]=a[$]);return _}return _}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(a){var _=Mg.current;E(Mg),a._currentValue=_}function Sg(a,_,$){for(;a!==null;){var _e=a.alternate;if((a.childLanes&_)!==_?(a.childLanes|=_,_e!==null&&(_e.childLanes|=_)):_e!==null&&(_e.childLanes&_)!==_&&(_e.childLanes|=_),a===$)break;a=a.return}}function Tg(a,_){Ng=a,Pg=Og=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&_&&(Ug=!0),a.firstContext=null)}function Vg(a){var _=a._currentValue;if(Pg!==a)if(a={context:a,memoizedValue:_,next:null},Og===null){if(Ng===null)throw Error(p$5(308));Og=a,Ng.dependencies={lanes:0,firstContext:a}}else Og=Og.next=a;return _}var Wg=null;function Xg(a){Wg===null?Wg=[a]:Wg.push(a)}function Yg(a,_,$,_e){var et=_.interleaved;return et===null?($.next=$,Xg(_)):($.next=et.next,et.next=$),_.interleaved=$,Zg(a,_e)}function Zg(a,_){a.lanes|=_;var $=a.alternate;for($!==null&&($.lanes|=_),$=a,a=a.return;a!==null;)a.childLanes|=_,$=a.alternate,$!==null&&($.childLanes|=_),$=a,a=a.return;return $.tag===3?$.stateNode:null}var $g=!1;function ah(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(a,_){a=a.updateQueue,_.updateQueue===a&&(_.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function ch(a,_){return{eventTime:a,lane:_,tag:0,payload:null,callback:null,next:null}}function dh(a,_,$){var _e=a.updateQueue;if(_e===null)return null;if(_e=_e.shared,K&2){var et=_e.pending;return et===null?_.next=_:(_.next=et.next,et.next=_),_e.pending=_,Zg(a,$)}return et=_e.interleaved,et===null?(_.next=_,Xg(_e)):(_.next=et.next,et.next=_),_e.interleaved=_,Zg(a,$)}function eh(a,_,$){if(_=_.updateQueue,_!==null&&(_=_.shared,($&4194240)!==0)){var _e=_.lanes;_e&=a.pendingLanes,$|=_e,_.lanes=$,Cc(a,$)}}function fh(a,_){var $=a.updateQueue,_e=a.alternate;if(_e!==null&&(_e=_e.updateQueue,$===_e)){var et=null,tt=null;if($=$.firstBaseUpdate,$!==null){do{var rt={eventTime:$.eventTime,lane:$.lane,tag:$.tag,payload:$.payload,callback:$.callback,next:null};tt===null?et=tt=rt:tt=tt.next=rt,$=$.next}while($!==null);tt===null?et=tt=_:tt=tt.next=_}else et=tt=_;$={baseState:_e.baseState,firstBaseUpdate:et,lastBaseUpdate:tt,shared:_e.shared,effects:_e.effects},a.updateQueue=$;return}a=$.lastBaseUpdate,a===null?$.firstBaseUpdate=_:a.next=_,$.lastBaseUpdate=_}function gh(a,_,$,_e){var et=a.updateQueue;$g=!1;var tt=et.firstBaseUpdate,rt=et.lastBaseUpdate,nt=et.shared.pending;if(nt!==null){et.shared.pending=null;var it=nt,at=it.next;it.next=null,rt===null?tt=at:rt.next=at,rt=it;var st=a.alternate;st!==null&&(st=st.updateQueue,nt=st.lastBaseUpdate,nt!==rt&&(nt===null?st.firstBaseUpdate=at:nt.next=at,st.lastBaseUpdate=it))}if(tt!==null){var ut=et.baseState;rt=0,st=at=it=null,nt=tt;do{var ot=nt.lane,pt=nt.eventTime;if((_e&ot)===ot){st!==null&&(st=st.next={eventTime:pt,lane:0,tag:nt.tag,payload:nt.payload,callback:nt.callback,next:null});e:{var ht=a,dt=nt;switch(ot=_,pt=$,dt.tag){case 1:if(ht=dt.payload,typeof ht=="function"){ut=ht.call(pt,ut,ot);break e}ut=ht;break e;case 3:ht.flags=ht.flags&-65537|128;case 0:if(ht=dt.payload,ot=typeof ht=="function"?ht.call(pt,ut,ot):ht,ot==null)break e;ut=A$1({},ut,ot);break e;case 2:$g=!0}}nt.callback!==null&&nt.lane!==0&&(a.flags|=64,ot=et.effects,ot===null?et.effects=[nt]:ot.push(nt))}else pt={eventTime:pt,lane:ot,tag:nt.tag,payload:nt.payload,callback:nt.callback,next:null},st===null?(at=st=pt,it=ut):st=st.next=pt,rt|=ot;if(nt=nt.next,nt===null){if(nt=et.shared.pending,nt===null)break;ot=nt,nt=ot.next,ot.next=null,et.lastBaseUpdate=ot,et.shared.pending=null}}while(!0);if(st===null&&(it=ut),et.baseState=it,et.firstBaseUpdate=at,et.lastBaseUpdate=st,_=et.shared.interleaved,_!==null){et=_;do rt|=et.lane,et=et.next;while(et!==_)}else tt===null&&(et.shared.lanes=0);hh|=rt,a.lanes=rt,a.memoizedState=ut}}function ih(a,_,$){if(a=_.effects,_.effects=null,a!==null)for(_=0;_<a.length;_++){var _e=a[_],et=_e.callback;if(et!==null){if(_e.callback=null,_e=$,typeof et!="function")throw Error(p$5(191,et));et.call(_e)}}}var jh=new aa.Component().refs;function kh(a,_,$,_e){_=a.memoizedState,$=$(_e,_),$=$==null?_:A$1({},_,$),a.memoizedState=$,a.lanes===0&&(a.updateQueue.baseState=$)}var nh={isMounted:function(a){return(a=a._reactInternals)?Vb(a)===a:!1},enqueueSetState:function(a,_,$){a=a._reactInternals;var _e=L(),et=lh(a),tt=ch(_e,et);tt.payload=_,$!=null&&(tt.callback=$),_=dh(a,tt,et),_!==null&&(mh(_,a,et,_e),eh(_,a,et))},enqueueReplaceState:function(a,_,$){a=a._reactInternals;var _e=L(),et=lh(a),tt=ch(_e,et);tt.tag=1,tt.payload=_,$!=null&&(tt.callback=$),_=dh(a,tt,et),_!==null&&(mh(_,a,et,_e),eh(_,a,et))},enqueueForceUpdate:function(a,_){a=a._reactInternals;var $=L(),_e=lh(a),et=ch($,_e);et.tag=2,_!=null&&(et.callback=_),_=dh(a,et,_e),_!==null&&(mh(_,a,_e,$),eh(_,a,_e))}};function oh(a,_,$,_e,et,tt,rt){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(_e,tt,rt):_.prototype&&_.prototype.isPureReactComponent?!Ie($,_e)||!Ie(et,tt):!0}function ph(a,_,$){var _e=!1,et=Vf,tt=_.contextType;return typeof tt=="object"&&tt!==null?tt=Vg(tt):(et=Zf(_)?Xf:H.current,_e=_.contextTypes,tt=(_e=_e!=null)?Yf(a,et):Vf),_=new _($,tt),a.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=nh,a.stateNode=_,_._reactInternals=a,_e&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=et,a.__reactInternalMemoizedMaskedChildContext=tt),_}function qh(a,_,$,_e){a=_.state,typeof _.componentWillReceiveProps=="function"&&_.componentWillReceiveProps($,_e),typeof _.UNSAFE_componentWillReceiveProps=="function"&&_.UNSAFE_componentWillReceiveProps($,_e),_.state!==a&&nh.enqueueReplaceState(_,_.state,null)}function rh(a,_,$,_e){var et=a.stateNode;et.props=$,et.state=a.memoizedState,et.refs=jh,ah(a);var tt=_.contextType;typeof tt=="object"&&tt!==null?et.context=Vg(tt):(tt=Zf(_)?Xf:H.current,et.context=Yf(a,tt)),et.state=a.memoizedState,tt=_.getDerivedStateFromProps,typeof tt=="function"&&(kh(a,_,tt,$),et.state=a.memoizedState),typeof _.getDerivedStateFromProps=="function"||typeof et.getSnapshotBeforeUpdate=="function"||typeof et.UNSAFE_componentWillMount!="function"&&typeof et.componentWillMount!="function"||(_=et.state,typeof et.componentWillMount=="function"&&et.componentWillMount(),typeof et.UNSAFE_componentWillMount=="function"&&et.UNSAFE_componentWillMount(),_!==et.state&&nh.enqueueReplaceState(et,et.state,null),gh(a,$,et,_e),et.state=a.memoizedState),typeof et.componentDidMount=="function"&&(a.flags|=4194308)}function sh(a,_,$){if(a=$.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if($._owner){if($=$._owner,$){if($.tag!==1)throw Error(p$5(309));var _e=$.stateNode}if(!_e)throw Error(p$5(147,a));var et=_e,tt=""+a;return _!==null&&_.ref!==null&&typeof _.ref=="function"&&_.ref._stringRef===tt?_.ref:(_=function(rt){var nt=et.refs;nt===jh&&(nt=et.refs={}),rt===null?delete nt[tt]:nt[tt]=rt},_._stringRef=tt,_)}if(typeof a!="string")throw Error(p$5(284));if(!$._owner)throw Error(p$5(290,a))}return a}function th(a,_){throw a=Object.prototype.toString.call(_),Error(p$5(31,a==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":a))}function uh(a){var _=a._init;return _(a._payload)}function vh(a){function _(lt,ft){if(a){var ct=lt.deletions;ct===null?(lt.deletions=[ft],lt.flags|=16):ct.push(ft)}}function $(lt,ft){if(!a)return null;for(;ft!==null;)_(lt,ft),ft=ft.sibling;return null}function _e(lt,ft){for(lt=new Map;ft!==null;)ft.key!==null?lt.set(ft.key,ft):lt.set(ft.index,ft),ft=ft.sibling;return lt}function et(lt,ft){return lt=wh(lt,ft),lt.index=0,lt.sibling=null,lt}function tt(lt,ft,ct){return lt.index=ct,a?(ct=lt.alternate,ct!==null?(ct=ct.index,ct<ft?(lt.flags|=2,ft):ct):(lt.flags|=2,ft)):(lt.flags|=1048576,ft)}function rt(lt){return a&<.alternate===null&&(lt.flags|=2),lt}function nt(lt,ft,ct,mt){return ft===null||ft.tag!==6?(ft=xh(ct,lt.mode,mt),ft.return=lt,ft):(ft=et(ft,ct),ft.return=lt,ft)}function it(lt,ft,ct,mt){var yt=ct.type;return yt===ya?st(lt,ft,ct.props.children,mt,ct.key):ft!==null&&(ft.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===Ha&&uh(yt)===ft.type)?(mt=et(ft,ct.props),mt.ref=sh(lt,ft,ct),mt.return=lt,mt):(mt=yh(ct.type,ct.key,ct.props,null,lt.mode,mt),mt.ref=sh(lt,ft,ct),mt.return=lt,mt)}function at(lt,ft,ct,mt){return ft===null||ft.tag!==4||ft.stateNode.containerInfo!==ct.containerInfo||ft.stateNode.implementation!==ct.implementation?(ft=zh$1(ct,lt.mode,mt),ft.return=lt,ft):(ft=et(ft,ct.children||[]),ft.return=lt,ft)}function st(lt,ft,ct,mt,yt){return ft===null||ft.tag!==7?(ft=Ah$1(ct,lt.mode,mt,yt),ft.return=lt,ft):(ft=et(ft,ct),ft.return=lt,ft)}function ut(lt,ft,ct){if(typeof ft=="string"&&ft!==""||typeof ft=="number")return ft=xh(""+ft,lt.mode,ct),ft.return=lt,ft;if(typeof ft=="object"&&ft!==null){switch(ft.$$typeof){case va:return ct=yh(ft.type,ft.key,ft.props,null,lt.mode,ct),ct.ref=sh(lt,null,ft),ct.return=lt,ct;case wa:return ft=zh$1(ft,lt.mode,ct),ft.return=lt,ft;case Ha:var mt=ft._init;return ut(lt,mt(ft._payload),ct)}if(eb(ft)||Ka(ft))return ft=Ah$1(ft,lt.mode,ct,null),ft.return=lt,ft;th(lt,ft)}return null}function ot(lt,ft,ct,mt){var yt=ft!==null?ft.key:null;if(typeof ct=="string"&&ct!==""||typeof ct=="number")return yt!==null?null:nt(lt,ft,""+ct,mt);if(typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case va:return ct.key===yt?it(lt,ft,ct,mt):null;case wa:return ct.key===yt?at(lt,ft,ct,mt):null;case Ha:return yt=ct._init,ot(lt,ft,yt(ct._payload),mt)}if(eb(ct)||Ka(ct))return yt!==null?null:st(lt,ft,ct,mt,null);th(lt,ct)}return null}function pt(lt,ft,ct,mt,yt){if(typeof mt=="string"&&mt!==""||typeof mt=="number")return lt=lt.get(ct)||null,nt(ft,lt,""+mt,yt);if(typeof mt=="object"&&mt!==null){switch(mt.$$typeof){case va:return lt=lt.get(mt.key===null?ct:mt.key)||null,it(ft,lt,mt,yt);case wa:return lt=lt.get(mt.key===null?ct:mt.key)||null,at(ft,lt,mt,yt);case Ha:var Et=mt._init;return pt(lt,ft,ct,Et(mt._payload),yt)}if(eb(mt)||Ka(mt))return lt=lt.get(ct)||null,st(ft,lt,mt,yt,null);th(ft,mt)}return null}function ht(lt,ft,ct,mt){for(var yt=null,Et=null,St=ft,At=ft=0,Mt=null;St!==null&&At<ct.length;At++){St.index>At?(Mt=St,St=null):Mt=St.sibling;var Nt=ot(lt,St,ct[At],mt);if(Nt===null){St===null&&(St=Mt);break}a&&St&&Nt.alternate===null&&_(lt,St),ft=tt(Nt,ft,At),Et===null?yt=Nt:Et.sibling=Nt,Et=Nt,St=Mt}if(At===ct.length)return $(lt,St),I&&tg(lt,At),yt;if(St===null){for(;At<ct.length;At++)St=ut(lt,ct[At],mt),St!==null&&(ft=tt(St,ft,At),Et===null?yt=St:Et.sibling=St,Et=St);return I&&tg(lt,At),yt}for(St=_e(lt,St);At<ct.length;At++)Mt=pt(St,lt,At,ct[At],mt),Mt!==null&&(a&&Mt.alternate!==null&&St.delete(Mt.key===null?At:Mt.key),ft=tt(Mt,ft,At),Et===null?yt=Mt:Et.sibling=Mt,Et=Mt);return a&&St.forEach(function(kt){return _(lt,kt)}),I&&tg(lt,At),yt}function dt(lt,ft,ct,mt){var yt=Ka(ct);if(typeof yt!="function")throw Error(p$5(150));if(ct=yt.call(ct),ct==null)throw Error(p$5(151));for(var Et=yt=null,St=ft,At=ft=0,Mt=null,Nt=ct.next();St!==null&&!Nt.done;At++,Nt=ct.next()){St.index>At?(Mt=St,St=null):Mt=St.sibling;var kt=ot(lt,St,Nt.value,mt);if(kt===null){St===null&&(St=Mt);break}a&&St&&kt.alternate===null&&_(lt,St),ft=tt(kt,ft,At),Et===null?yt=kt:Et.sibling=kt,Et=kt,St=Mt}if(Nt.done)return $(lt,St),I&&tg(lt,At),yt;if(St===null){for(;!Nt.done;At++,Nt=ct.next())Nt=ut(lt,Nt.value,mt),Nt!==null&&(ft=tt(Nt,ft,At),Et===null?yt=Nt:Et.sibling=Nt,Et=Nt);return I&&tg(lt,At),yt}for(St=_e(lt,St);!Nt.done;At++,Nt=ct.next())Nt=pt(St,lt,At,Nt.value,mt),Nt!==null&&(a&&Nt.alternate!==null&&St.delete(Nt.key===null?At:Nt.key),ft=tt(Nt,ft,At),Et===null?yt=Nt:Et.sibling=Nt,Et=Nt);return a&&St.forEach(function(Pt){return _(lt,Pt)}),I&&tg(lt,At),yt}function gt(lt,ft,ct,mt){if(typeof ct=="object"&&ct!==null&&ct.type===ya&&ct.key===null&&(ct=ct.props.children),typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case va:e:{for(var yt=ct.key,Et=ft;Et!==null;){if(Et.key===yt){if(yt=ct.type,yt===ya){if(Et.tag===7){$(lt,Et.sibling),ft=et(Et,ct.props.children),ft.return=lt,lt=ft;break e}}else if(Et.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===Ha&&uh(yt)===Et.type){$(lt,Et.sibling),ft=et(Et,ct.props),ft.ref=sh(lt,Et,ct),ft.return=lt,lt=ft;break e}$(lt,Et);break}else _(lt,Et);Et=Et.sibling}ct.type===ya?(ft=Ah$1(ct.props.children,lt.mode,mt,ct.key),ft.return=lt,lt=ft):(mt=yh(ct.type,ct.key,ct.props,null,lt.mode,mt),mt.ref=sh(lt,ft,ct),mt.return=lt,lt=mt)}return rt(lt);case wa:e:{for(Et=ct.key;ft!==null;){if(ft.key===Et)if(ft.tag===4&&ft.stateNode.containerInfo===ct.containerInfo&&ft.stateNode.implementation===ct.implementation){$(lt,ft.sibling),ft=et(ft,ct.children||[]),ft.return=lt,lt=ft;break e}else{$(lt,ft);break}else _(lt,ft);ft=ft.sibling}ft=zh$1(ct,lt.mode,mt),ft.return=lt,lt=ft}return rt(lt);case Ha:return Et=ct._init,gt(lt,ft,Et(ct._payload),mt)}if(eb(ct))return ht(lt,ft,ct,mt);if(Ka(ct))return dt(lt,ft,ct,mt);th(lt,ct)}return typeof ct=="string"&&ct!==""||typeof ct=="number"?(ct=""+ct,ft!==null&&ft.tag===6?($(lt,ft.sibling),ft=et(ft,ct),ft.return=lt,lt=ft):($(lt,ft),ft=xh(ct,lt.mode,mt),ft.return=lt,lt=ft),rt(lt)):$(lt,ft)}return gt}var Bh$1=vh(!0),Ch=vh(!1),Dh$1={},Eh=Uf(Dh$1),Fh=Uf(Dh$1),Gh$1=Uf(Dh$1);function Hh(a){if(a===Dh$1)throw Error(p$5(174));return a}function Ih$1(a,_){switch(G(Gh$1,_),G(Fh,a),G(Eh,Dh$1),a=_.nodeType,a){case 9:case 11:_=(_=_.documentElement)?_.namespaceURI:lb(null,"");break;default:a=a===8?_.parentNode:_,_=a.namespaceURI||null,a=a.tagName,_=lb(_,a)}E(Eh),G(Eh,_)}function Jh$1(){E(Eh),E(Fh),E(Gh$1)}function Kh$1(a){Hh(Gh$1.current);var _=Hh(Eh.current),$=lb(_,a.type);_!==$&&(G(Fh,a),G(Eh,$))}function Lh$1(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);function Mh(a){for(var _=a;_!==null;){if(_.tag===13){var $=_.memoizedState;if($!==null&&($=$.dehydrated,$===null||$.data==="$?"||$.data==="$!"))return _}else if(_.tag===19&&_.memoizedProps.revealOrder!==void 0){if(_.flags&128)return _}else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===a)break;for(;_.sibling===null;){if(_.return===null||_.return===a)return null;_=_.return}_.sibling.return=_.return,_=_.sibling}return null}var Nh=[];function Oh$1(){for(var a=0;a<Nh.length;a++)Nh[a]._workInProgressVersionPrimary=null;Nh.length=0}var Ph$1=ua.ReactCurrentDispatcher,Qh$1=ua.ReactCurrentBatchConfig,Rh=0,N=null,O=null,P=null,Sh=!1,Th=!1,Uh$1=0,Vh$1=0;function Q(){throw Error(p$5(321))}function Wh$1(a,_){if(_===null)return!1;for(var $=0;$<_.length&&$<a.length;$++)if(!He(a[$],_[$]))return!1;return!0}function Xh$1(a,_,$,_e,et,tt){if(Rh=tt,N=_,_.memoizedState=null,_.updateQueue=null,_.lanes=0,Ph$1.current=a===null||a.memoizedState===null?Yh$1:Zh,a=$(_e,et),Th){tt=0;do{if(Th=!1,Uh$1=0,25<=tt)throw Error(p$5(301));tt+=1,P=O=null,_.updateQueue=null,Ph$1.current=$h$1,a=$(_e,et)}while(Th)}if(Ph$1.current=ai,_=O!==null&&O.next!==null,Rh=0,P=O=N=null,Sh=!1,_)throw Error(p$5(300));return a}function bi(){var a=Uh$1!==0;return Uh$1=0,a}function ci(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return P===null?N.memoizedState=P=a:P=P.next=a,P}function di(){if(O===null){var a=N.alternate;a=a!==null?a.memoizedState:null}else a=O.next;var _=P===null?N.memoizedState:P.next;if(_!==null)P=_,O=a;else{if(a===null)throw Error(p$5(310));O=a,a={memoizedState:O.memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null},P===null?N.memoizedState=P=a:P=P.next=a}return P}function ei(a,_){return typeof _=="function"?_(a):_}function fi(a){var _=di(),$=_.queue;if($===null)throw Error(p$5(311));$.lastRenderedReducer=a;var _e=O,et=_e.baseQueue,tt=$.pending;if(tt!==null){if(et!==null){var rt=et.next;et.next=tt.next,tt.next=rt}_e.baseQueue=et=tt,$.pending=null}if(et!==null){tt=et.next,_e=_e.baseState;var nt=rt=null,it=null,at=tt;do{var st=at.lane;if((Rh&st)===st)it!==null&&(it=it.next={lane:0,action:at.action,hasEagerState:at.hasEagerState,eagerState:at.eagerState,next:null}),_e=at.hasEagerState?at.eagerState:a(_e,at.action);else{var ut={lane:st,action:at.action,hasEagerState:at.hasEagerState,eagerState:at.eagerState,next:null};it===null?(nt=it=ut,rt=_e):it=it.next=ut,N.lanes|=st,hh|=st}at=at.next}while(at!==null&&at!==tt);it===null?rt=_e:it.next=nt,He(_e,_.memoizedState)||(Ug=!0),_.memoizedState=_e,_.baseState=rt,_.baseQueue=it,$.lastRenderedState=_e}if(a=$.interleaved,a!==null){et=a;do tt=et.lane,N.lanes|=tt,hh|=tt,et=et.next;while(et!==a)}else et===null&&($.lanes=0);return[_.memoizedState,$.dispatch]}function gi(a){var _=di(),$=_.queue;if($===null)throw Error(p$5(311));$.lastRenderedReducer=a;var _e=$.dispatch,et=$.pending,tt=_.memoizedState;if(et!==null){$.pending=null;var rt=et=et.next;do tt=a(tt,rt.action),rt=rt.next;while(rt!==et);He(tt,_.memoizedState)||(Ug=!0),_.memoizedState=tt,_.baseQueue===null&&(_.baseState=tt),$.lastRenderedState=tt}return[tt,_e]}function hi(){}function ii(a,_){var $=N,_e=di(),et=_(),tt=!He(_e.memoizedState,et);if(tt&&(_e.memoizedState=et,Ug=!0),_e=_e.queue,ji(ki.bind(null,$,_e,a),[a]),_e.getSnapshot!==_||tt||P!==null&&P.memoizedState.tag&1){if($.flags|=2048,li(9,mi.bind(null,$,_e,et,_),void 0,null),R===null)throw Error(p$5(349));Rh&30||ni($,_,et)}return et}function ni(a,_,$){a.flags|=16384,a={getSnapshot:_,value:$},_=N.updateQueue,_===null?(_={lastEffect:null,stores:null},N.updateQueue=_,_.stores=[a]):($=_.stores,$===null?_.stores=[a]:$.push(a))}function mi(a,_,$,_e){_.value=$,_.getSnapshot=_e,oi(_)&&pi(a)}function ki(a,_,$){return $(function(){oi(_)&&pi(a)})}function oi(a){var _=a.getSnapshot;a=a.value;try{var $=_();return!He(a,$)}catch{return!0}}function pi(a){var _=Zg(a,1);_!==null&&mh(_,a,1,-1)}function qi(a){var _=ci();return typeof a=="function"&&(a=a()),_.memoizedState=_.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:a},_.queue=a,a=a.dispatch=ri.bind(null,N,a),[_.memoizedState,a]}function li(a,_,$,_e){return a={tag:a,create:_,destroy:$,deps:_e,next:null},_=N.updateQueue,_===null?(_={lastEffect:null,stores:null},N.updateQueue=_,_.lastEffect=a.next=a):($=_.lastEffect,$===null?_.lastEffect=a.next=a:(_e=$.next,$.next=a,a.next=_e,_.lastEffect=a)),a}function si(){return di().memoizedState}function ti(a,_,$,_e){var et=ci();N.flags|=a,et.memoizedState=li(1|_,$,void 0,_e===void 0?null:_e)}function ui(a,_,$,_e){var et=di();_e=_e===void 0?null:_e;var tt=void 0;if(O!==null){var rt=O.memoizedState;if(tt=rt.destroy,_e!==null&&Wh$1(_e,rt.deps)){et.memoizedState=li(_,$,tt,_e);return}}N.flags|=a,et.memoizedState=li(1|_,$,tt,_e)}function vi(a,_){return ti(8390656,8,a,_)}function ji(a,_){return ui(2048,8,a,_)}function wi(a,_){return ui(4,2,a,_)}function xi(a,_){return ui(4,4,a,_)}function yi(a,_){if(typeof _=="function")return a=a(),_(a),function(){_(null)};if(_!=null)return a=a(),_.current=a,function(){_.current=null}}function zi(a,_,$){return $=$!=null?$.concat([a]):null,ui(4,4,yi.bind(null,_,a),$)}function Ai(){}function Bi(a,_){var $=di();_=_===void 0?null:_;var _e=$.memoizedState;return _e!==null&&_!==null&&Wh$1(_,_e[1])?_e[0]:($.memoizedState=[a,_],a)}function Ci(a,_){var $=di();_=_===void 0?null:_;var _e=$.memoizedState;return _e!==null&&_!==null&&Wh$1(_,_e[1])?_e[0]:(a=a(),$.memoizedState=[a,_],a)}function Di(a,_,$){return Rh&21?(He($,_)||($=yc(),N.lanes|=$,hh|=$,a.baseState=!0),_):(a.baseState&&(a.baseState=!1,Ug=!0),a.memoizedState=$)}function Ei(a,_){var $=C;C=$!==0&&4>$?$:4,a(!0);var _e=Qh$1.transition;Qh$1.transition={};try{a(!1),_()}finally{C=$,Qh$1.transition=_e}}function Fi(){return di().memoizedState}function Gi(a,_,$){var _e=lh(a);if($={lane:_e,action:$,hasEagerState:!1,eagerState:null,next:null},Hi(a))Ii(_,$);else if($=Yg(a,_,$,_e),$!==null){var et=L();mh($,a,_e,et),Ji($,_,_e)}}function ri(a,_,$){var _e=lh(a),et={lane:_e,action:$,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(_,et);else{var tt=a.alternate;if(a.lanes===0&&(tt===null||tt.lanes===0)&&(tt=_.lastRenderedReducer,tt!==null))try{var rt=_.lastRenderedState,nt=tt(rt,$);if(et.hasEagerState=!0,et.eagerState=nt,He(nt,rt)){var it=_.interleaved;it===null?(et.next=et,Xg(_)):(et.next=it.next,it.next=et),_.interleaved=et;return}}catch{}finally{}$=Yg(a,_,et,_e),$!==null&&(et=L(),mh($,a,_e,et),Ji($,_,_e))}}function Hi(a){var _=a.alternate;return a===N||_!==null&&_===N}function Ii(a,_){Th=Sh=!0;var $=a.pending;$===null?_.next=_:(_.next=$.next,$.next=_),a.pending=_}function Ji(a,_,$){if($&4194240){var _e=_.lanes;_e&=a.pendingLanes,$|=_e,_.lanes=$,Cc(a,$)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh$1={readContext:Vg,useCallback:function(a,_){return ci().memoizedState=[a,_===void 0?null:_],a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,_,$){return $=$!=null?$.concat([a]):null,ti(4194308,4,yi.bind(null,_,a),$)},useLayoutEffect:function(a,_){return ti(4194308,4,a,_)},useInsertionEffect:function(a,_){return ti(4,2,a,_)},useMemo:function(a,_){var $=ci();return _=_===void 0?null:_,a=a(),$.memoizedState=[a,_],a},useReducer:function(a,_,$){var _e=ci();return _=$!==void 0?$(_):_,_e.memoizedState=_e.baseState=_,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:_},_e.queue=a,a=a.dispatch=Gi.bind(null,N,a),[_e.memoizedState,a]},useRef:function(a){var _=ci();return a={current:a},_.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),_=a[0];return a=Ei.bind(null,a[1]),ci().memoizedState=a,[_,a]},useMutableSource:function(){},useSyncExternalStore:function(a,_,$){var _e=N,et=ci();if(I){if($===void 0)throw Error(p$5(407));$=$()}else{if($=_(),R===null)throw Error(p$5(349));Rh&30||ni(_e,_,$)}et.memoizedState=$;var tt={value:$,getSnapshot:_};return et.queue=tt,vi(ki.bind(null,_e,tt,a),[a]),_e.flags|=2048,li(9,mi.bind(null,_e,tt,$,_),void 0,null),$},useId:function(){var a=ci(),_=R.identifierPrefix;if(I){var $=sg,_e=rg;$=(_e&~(1<<32-oc(_e)-1)).toString(32)+$,_=":"+_+"R"+$,$=Uh$1++,0<$&&(_+="H"+$.toString(32)),_+=":"}else $=Vh$1++,_=":"+_+"r"+$.toString(32)+":";return a.memoizedState=_},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(a){var _=di();return Di(_,O.memoizedState,a)},useTransition:function(){var a=fi(ei)[0],_=di().memoizedState;return[a,_]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h$1={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(a){var _=di();return O===null?_.memoizedState=a:Di(_,O.memoizedState,a)},useTransition:function(){var a=gi(ei)[0],_=di().memoizedState;return[a,_]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(a,_){try{var $="",_e=_;do $+=Pa(_e),_e=_e.return;while(_e);var et=$}catch(tt){et=`
|
|
39
|
-
Error generating stack: `+
|
|
40
|
-
`+tt.stack}return{value:a,source:_,stack:et,digest:null}}function Li(a,_,$){return{value:a,source:null,stack:$??null,digest:_??null}}function Mi(a,_){try{console.error(_.value)}catch($){setTimeout(function(){throw $})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(a,_,$){$=ch(-1,$),$.tag=3,$.payload={element:null};var _e=_.value;return $.callback=function(){Pi||(Pi=!0,Qi=_e),Mi(a,_)},$}function Ri(a,_,$){$=ch(-1,$),$.tag=3;var _e=a.type.getDerivedStateFromError;if(typeof _e=="function"){var et=_.value;$.payload=function(){return _e(et)},$.callback=function(){Mi(a,_)}}var tt=a.stateNode;return tt!==null&&typeof tt.componentDidCatch=="function"&&($.callback=function(){Mi(a,_),typeof _e!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var rt=_.stack;this.componentDidCatch(_.value,{componentStack:rt!==null?rt:""})}),$}function Ti(a,_,$){var _e=a.pingCache;if(_e===null){_e=a.pingCache=new Ni;var et=new Set;_e.set(_,et)}else et=_e.get(_),et===void 0&&(et=new Set,_e.set(_,et));et.has($)||(et.add($),a=Ui.bind(null,a,_,$),_.then(a,a))}function Vi(a){do{var _;if((_=a.tag===13)&&(_=a.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return a;a=a.return}while(a!==null);return null}function Wi(a,_,$,_e,et){return a.mode&1?(a.flags|=65536,a.lanes=et,a):(a===_?a.flags|=65536:(a.flags|=128,$.flags|=131072,$.flags&=-52805,$.tag===1&&($.alternate===null?$.tag=17:(_=ch(-1,1),_.tag=2,dh($,_,1))),$.lanes|=1),a)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(a,_,$,_e){_.child=a===null?Ch(_,null,$,_e):Bh$1(_,a.child,$,_e)}function Zi(a,_,$,_e,et){$=$.render;var tt=_.ref;return Tg(_,et),_e=Xh$1(a,_,$,_e,tt,et),$=bi(),a!==null&&!Ug?(_.updateQueue=a.updateQueue,_.flags&=-2053,a.lanes&=~et,$i(a,_,et)):(I&&$&&vg(_),_.flags|=1,Yi(a,_,_e,et),_.child)}function aj(a,_,$,_e,et){if(a===null){var tt=$.type;return typeof tt=="function"&&!bj(tt)&&tt.defaultProps===void 0&&$.compare===null&&$.defaultProps===void 0?(_.tag=15,_.type=tt,cj(a,_,tt,_e,et)):(a=yh($.type,null,_e,_,_.mode,et),a.ref=_.ref,a.return=_,_.child=a)}if(tt=a.child,!(a.lanes&et)){var rt=tt.memoizedProps;if($=$.compare,$=$!==null?$:Ie,$(rt,_e)&&a.ref===_.ref)return $i(a,_,et)}return _.flags|=1,a=wh(tt,_e),a.ref=_.ref,a.return=_,_.child=a}function cj(a,_,$,_e,et){if(a!==null){var tt=a.memoizedProps;if(Ie(tt,_e)&&a.ref===_.ref)if(Ug=!1,_.pendingProps=_e=tt,(a.lanes&et)!==0)a.flags&131072&&(Ug=!0);else return _.lanes=a.lanes,$i(a,_,et)}return dj(a,_,$,_e,et)}function ej(a,_,$){var _e=_.pendingProps,et=_e.children,tt=a!==null?a.memoizedState:null;if(_e.mode==="hidden")if(!(_.mode&1))_.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=$;else{if(!($&1073741824))return a=tt!==null?tt.baseLanes|$:$,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:a,cachePool:null,transitions:null},_.updateQueue=null,G(fj,gj),gj|=a,null;_.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e=tt!==null?tt.baseLanes:$,G(fj,gj),gj|=_e}else tt!==null?(_e=tt.baseLanes|$,_.memoizedState=null):_e=$,G(fj,gj),gj|=_e;return Yi(a,_,et,$),_.child}function hj(a,_){var $=_.ref;(a===null&&$!==null||a!==null&&a.ref!==$)&&(_.flags|=512,_.flags|=2097152)}function dj(a,_,$,_e,et){var tt=Zf($)?Xf:H.current;return tt=Yf(_,tt),Tg(_,et),$=Xh$1(a,_,$,_e,tt,et),_e=bi(),a!==null&&!Ug?(_.updateQueue=a.updateQueue,_.flags&=-2053,a.lanes&=~et,$i(a,_,et)):(I&&_e&&vg(_),_.flags|=1,Yi(a,_,$,et),_.child)}function ij(a,_,$,_e,et){if(Zf($)){var tt=!0;cg(_)}else tt=!1;if(Tg(_,et),_.stateNode===null)jj(a,_),ph(_,$,_e),rh(_,$,_e,et),_e=!0;else if(a===null){var rt=_.stateNode,nt=_.memoizedProps;rt.props=nt;var it=rt.context,at=$.contextType;typeof at=="object"&&at!==null?at=Vg(at):(at=Zf($)?Xf:H.current,at=Yf(_,at));var st=$.getDerivedStateFromProps,ut=typeof st=="function"||typeof rt.getSnapshotBeforeUpdate=="function";ut||typeof rt.UNSAFE_componentWillReceiveProps!="function"&&typeof rt.componentWillReceiveProps!="function"||(nt!==_e||it!==at)&&qh(_,rt,_e,at),$g=!1;var ot=_.memoizedState;rt.state=ot,gh(_,_e,rt,et),it=_.memoizedState,nt!==_e||ot!==it||Wf.current||$g?(typeof st=="function"&&(kh(_,$,st,_e),it=_.memoizedState),(nt=$g||oh(_,$,nt,_e,ot,it,at))?(ut||typeof rt.UNSAFE_componentWillMount!="function"&&typeof rt.componentWillMount!="function"||(typeof rt.componentWillMount=="function"&&rt.componentWillMount(),typeof rt.UNSAFE_componentWillMount=="function"&&rt.UNSAFE_componentWillMount()),typeof rt.componentDidMount=="function"&&(_.flags|=4194308)):(typeof rt.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=_e,_.memoizedState=it),rt.props=_e,rt.state=it,rt.context=at,_e=nt):(typeof rt.componentDidMount=="function"&&(_.flags|=4194308),_e=!1)}else{rt=_.stateNode,bh(a,_),nt=_.memoizedProps,at=_.type===_.elementType?nt:Lg(_.type,nt),rt.props=at,ut=_.pendingProps,ot=rt.context,it=$.contextType,typeof it=="object"&&it!==null?it=Vg(it):(it=Zf($)?Xf:H.current,it=Yf(_,it));var pt=$.getDerivedStateFromProps;(st=typeof pt=="function"||typeof rt.getSnapshotBeforeUpdate=="function")||typeof rt.UNSAFE_componentWillReceiveProps!="function"&&typeof rt.componentWillReceiveProps!="function"||(nt!==ut||ot!==it)&&qh(_,rt,_e,it),$g=!1,ot=_.memoizedState,rt.state=ot,gh(_,_e,rt,et);var ht=_.memoizedState;nt!==ut||ot!==ht||Wf.current||$g?(typeof pt=="function"&&(kh(_,$,pt,_e),ht=_.memoizedState),(at=$g||oh(_,$,at,_e,ot,ht,it)||!1)?(st||typeof rt.UNSAFE_componentWillUpdate!="function"&&typeof rt.componentWillUpdate!="function"||(typeof rt.componentWillUpdate=="function"&&rt.componentWillUpdate(_e,ht,it),typeof rt.UNSAFE_componentWillUpdate=="function"&&rt.UNSAFE_componentWillUpdate(_e,ht,it)),typeof rt.componentDidUpdate=="function"&&(_.flags|=4),typeof rt.getSnapshotBeforeUpdate=="function"&&(_.flags|=1024)):(typeof rt.componentDidUpdate!="function"||nt===a.memoizedProps&&ot===a.memoizedState||(_.flags|=4),typeof rt.getSnapshotBeforeUpdate!="function"||nt===a.memoizedProps&&ot===a.memoizedState||(_.flags|=1024),_.memoizedProps=_e,_.memoizedState=ht),rt.props=_e,rt.state=ht,rt.context=it,_e=at):(typeof rt.componentDidUpdate!="function"||nt===a.memoizedProps&&ot===a.memoizedState||(_.flags|=4),typeof rt.getSnapshotBeforeUpdate!="function"||nt===a.memoizedProps&&ot===a.memoizedState||(_.flags|=1024),_e=!1)}return kj(a,_,$,_e,tt,et)}function kj(a,_,$,_e,et,tt){hj(a,_);var rt=(_.flags&128)!==0;if(!_e&&!rt)return et&&dg(_,$,!1),$i(a,_,tt);_e=_.stateNode,Xi.current=_;var nt=rt&&typeof $.getDerivedStateFromError!="function"?null:_e.render();return _.flags|=1,a!==null&&rt?(_.child=Bh$1(_,a.child,null,tt),_.child=Bh$1(_,null,nt,tt)):Yi(a,_,nt,tt),_.memoizedState=_e.state,et&&dg(_,$,!0),_.child}function lj(a){var _=a.stateNode;_.pendingContext?ag(a,_.pendingContext,_.pendingContext!==_.context):_.context&&ag(a,_.context,!1),Ih$1(a,_.containerInfo)}function mj(a,_,$,_e,et){return Ig(),Jg(et),_.flags|=256,Yi(a,_,$,_e),_.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(a){return{baseLanes:a,cachePool:null,transitions:null}}function pj(a,_,$){var _e=_.pendingProps,et=M.current,tt=!1,rt=(_.flags&128)!==0,nt;if((nt=rt)||(nt=a!==null&&a.memoizedState===null?!1:(et&2)!==0),nt?(tt=!0,_.flags&=-129):(a===null||a.memoizedState!==null)&&(et|=1),G(M,et&1),a===null)return Eg(_),a=_.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(_.mode&1?a.data==="$!"?_.lanes=8:_.lanes=1073741824:_.lanes=1,null):(rt=_e.children,a=_e.fallback,tt?(_e=_.mode,tt=_.child,rt={mode:"hidden",children:rt},!(_e&1)&&tt!==null?(tt.childLanes=0,tt.pendingProps=rt):tt=qj(rt,_e,0,null),a=Ah$1(a,_e,$,null),tt.return=_,a.return=_,tt.sibling=a,_.child=tt,_.child.memoizedState=oj($),_.memoizedState=nj,a):rj(_,rt));if(et=a.memoizedState,et!==null&&(nt=et.dehydrated,nt!==null))return sj(a,_,rt,_e,nt,et,$);if(tt){tt=_e.fallback,rt=_.mode,et=a.child,nt=et.sibling;var it={mode:"hidden",children:_e.children};return!(rt&1)&&_.child!==et?(_e=_.child,_e.childLanes=0,_e.pendingProps=it,_.deletions=null):(_e=wh(et,it),_e.subtreeFlags=et.subtreeFlags&14680064),nt!==null?tt=wh(nt,tt):(tt=Ah$1(tt,rt,$,null),tt.flags|=2),tt.return=_,_e.return=_,_e.sibling=tt,_.child=_e,_e=tt,tt=_.child,rt=a.child.memoizedState,rt=rt===null?oj($):{baseLanes:rt.baseLanes|$,cachePool:null,transitions:rt.transitions},tt.memoizedState=rt,tt.childLanes=a.childLanes&~$,_.memoizedState=nj,_e}return tt=a.child,a=tt.sibling,_e=wh(tt,{mode:"visible",children:_e.children}),!(_.mode&1)&&(_e.lanes=$),_e.return=_,_e.sibling=null,a!==null&&($=_.deletions,$===null?(_.deletions=[a],_.flags|=16):$.push(a)),_.child=_e,_.memoizedState=null,_e}function rj(a,_){return _=qj({mode:"visible",children:_},a.mode,0,null),_.return=a,a.child=_}function tj(a,_,$,_e){return _e!==null&&Jg(_e),Bh$1(_,a.child,null,$),a=rj(_,_.pendingProps.children),a.flags|=2,_.memoizedState=null,a}function sj(a,_,$,_e,et,tt,rt){if($)return _.flags&256?(_.flags&=-257,_e=Li(Error(p$5(422))),tj(a,_,rt,_e)):_.memoizedState!==null?(_.child=a.child,_.flags|=128,null):(tt=_e.fallback,et=_.mode,_e=qj({mode:"visible",children:_e.children},et,0,null),tt=Ah$1(tt,et,rt,null),tt.flags|=2,_e.return=_,tt.return=_,_e.sibling=tt,_.child=_e,_.mode&1&&Bh$1(_,a.child,null,rt),_.child.memoizedState=oj(rt),_.memoizedState=nj,tt);if(!(_.mode&1))return tj(a,_,rt,null);if(et.data==="$!"){if(_e=et.nextSibling&&et.nextSibling.dataset,_e)var nt=_e.dgst;return _e=nt,tt=Error(p$5(419)),_e=Li(tt,_e,void 0),tj(a,_,rt,_e)}if(nt=(rt&a.childLanes)!==0,Ug||nt){if(_e=R,_e!==null){switch(rt&-rt){case 4:et=2;break;case 16:et=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:et=32;break;case 536870912:et=268435456;break;default:et=0}et=et&(_e.suspendedLanes|rt)?0:et,et!==0&&et!==tt.retryLane&&(tt.retryLane=et,Zg(a,et),mh(_e,a,et,-1))}return uj(),_e=Li(Error(p$5(421))),tj(a,_,rt,_e)}return et.data==="$?"?(_.flags|=128,_.child=a.child,_=vj.bind(null,a),et._reactRetry=_,null):(a=tt.treeContext,yg=Lf(et.nextSibling),xg=_,I=!0,zg=null,a!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=_),_=rj(_,_e.children),_.flags|=4096,_)}function wj(a,_,$){a.lanes|=_;var _e=a.alternate;_e!==null&&(_e.lanes|=_),Sg(a.return,_,$)}function xj(a,_,$,_e,et){var tt=a.memoizedState;tt===null?a.memoizedState={isBackwards:_,rendering:null,renderingStartTime:0,last:_e,tail:$,tailMode:et}:(tt.isBackwards=_,tt.rendering=null,tt.renderingStartTime=0,tt.last=_e,tt.tail=$,tt.tailMode=et)}function yj(a,_,$){var _e=_.pendingProps,et=_e.revealOrder,tt=_e.tail;if(Yi(a,_,_e.children,$),_e=M.current,_e&2)_e=_e&1|2,_.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=_.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&wj(a,$,_);else if(a.tag===19)wj(a,$,_);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===_)break e;for(;a.sibling===null;){if(a.return===null||a.return===_)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}_e&=1}if(G(M,_e),!(_.mode&1))_.memoizedState=null;else switch(et){case"forwards":for($=_.child,et=null;$!==null;)a=$.alternate,a!==null&&Mh(a)===null&&(et=$),$=$.sibling;$=et,$===null?(et=_.child,_.child=null):(et=$.sibling,$.sibling=null),xj(_,!1,et,$,tt);break;case"backwards":for($=null,et=_.child,_.child=null;et!==null;){if(a=et.alternate,a!==null&&Mh(a)===null){_.child=et;break}a=et.sibling,et.sibling=$,$=et,et=a}xj(_,!0,$,null,tt);break;case"together":xj(_,!1,null,null,void 0);break;default:_.memoizedState=null}return _.child}function jj(a,_){!(_.mode&1)&&a!==null&&(a.alternate=null,_.alternate=null,_.flags|=2)}function $i(a,_,$){if(a!==null&&(_.dependencies=a.dependencies),hh|=_.lanes,!($&_.childLanes))return null;if(a!==null&&_.child!==a.child)throw Error(p$5(153));if(_.child!==null){for(a=_.child,$=wh(a,a.pendingProps),_.child=$,$.return=_;a.sibling!==null;)a=a.sibling,$=$.sibling=wh(a,a.pendingProps),$.return=_;$.sibling=null}return _.child}function zj(a,_,$){switch(_.tag){case 3:lj(_),Ig();break;case 5:Kh$1(_);break;case 1:Zf(_.type)&&cg(_);break;case 4:Ih$1(_,_.stateNode.containerInfo);break;case 10:var _e=_.type._context,et=_.memoizedProps.value;G(Mg,_e._currentValue),_e._currentValue=et;break;case 13:if(_e=_.memoizedState,_e!==null)return _e.dehydrated!==null?(G(M,M.current&1),_.flags|=128,null):$&_.child.childLanes?pj(a,_,$):(G(M,M.current&1),a=$i(a,_,$),a!==null?a.sibling:null);G(M,M.current&1);break;case 19:if(_e=($&_.childLanes)!==0,a.flags&128){if(_e)return yj(a,_,$);_.flags|=128}if(et=_.memoizedState,et!==null&&(et.rendering=null,et.tail=null,et.lastEffect=null),G(M,M.current),_e)break;return null;case 22:case 23:return _.lanes=0,ej(a,_,$)}return $i(a,_,$)}var Aj,Bj,Cj,Dj;Aj=function(a,_){for(var $=_.child;$!==null;){if($.tag===5||$.tag===6)a.appendChild($.stateNode);else if($.tag!==4&&$.child!==null){$.child.return=$,$=$.child;continue}if($===_)break;for(;$.sibling===null;){if($.return===null||$.return===_)return;$=$.return}$.sibling.return=$.return,$=$.sibling}};Bj=function(){};Cj=function(a,_,$,_e){var et=a.memoizedProps;if(et!==_e){a=_.stateNode,Hh(Eh.current);var tt=null;switch($){case"input":et=Ya(a,et),_e=Ya(a,_e),tt=[];break;case"select":et=A$1({},et,{value:void 0}),_e=A$1({},_e,{value:void 0}),tt=[];break;case"textarea":et=gb(a,et),_e=gb(a,_e),tt=[];break;default:typeof et.onClick!="function"&&typeof _e.onClick=="function"&&(a.onclick=Bf)}ub($,_e);var rt;$=null;for(at in et)if(!_e.hasOwnProperty(at)&&et.hasOwnProperty(at)&&et[at]!=null)if(at==="style"){var nt=et[at];for(rt in nt)nt.hasOwnProperty(rt)&&($||($={}),$[rt]="")}else at!=="dangerouslySetInnerHTML"&&at!=="children"&&at!=="suppressContentEditableWarning"&&at!=="suppressHydrationWarning"&&at!=="autoFocus"&&(ea.hasOwnProperty(at)?tt||(tt=[]):(tt=tt||[]).push(at,null));for(at in _e){var it=_e[at];if(nt=et!=null?et[at]:void 0,_e.hasOwnProperty(at)&&it!==nt&&(it!=null||nt!=null))if(at==="style")if(nt){for(rt in nt)!nt.hasOwnProperty(rt)||it&&it.hasOwnProperty(rt)||($||($={}),$[rt]="");for(rt in it)it.hasOwnProperty(rt)&&nt[rt]!==it[rt]&&($||($={}),$[rt]=it[rt])}else $||(tt||(tt=[]),tt.push(at,$)),$=it;else at==="dangerouslySetInnerHTML"?(it=it?it.__html:void 0,nt=nt?nt.__html:void 0,it!=null&&nt!==it&&(tt=tt||[]).push(at,it)):at==="children"?typeof it!="string"&&typeof it!="number"||(tt=tt||[]).push(at,""+it):at!=="suppressContentEditableWarning"&&at!=="suppressHydrationWarning"&&(ea.hasOwnProperty(at)?(it!=null&&at==="onScroll"&&D("scroll",a),tt||nt===it||(tt=[])):(tt=tt||[]).push(at,it))}$&&(tt=tt||[]).push("style",$);var at=tt;(_.updateQueue=at)&&(_.flags|=4)}};Dj=function(a,_,$,_e){$!==_e&&(_.flags|=4)};function Ej(a,_){if(!I)switch(a.tailMode){case"hidden":_=a.tail;for(var $=null;_!==null;)_.alternate!==null&&($=_),_=_.sibling;$===null?a.tail=null:$.sibling=null;break;case"collapsed":$=a.tail;for(var _e=null;$!==null;)$.alternate!==null&&(_e=$),$=$.sibling;_e===null?_||a.tail===null?a.tail=null:a.tail.sibling=null:_e.sibling=null}}function S(a){var _=a.alternate!==null&&a.alternate.child===a.child,$=0,_e=0;if(_)for(var et=a.child;et!==null;)$|=et.lanes|et.childLanes,_e|=et.subtreeFlags&14680064,_e|=et.flags&14680064,et.return=a,et=et.sibling;else for(et=a.child;et!==null;)$|=et.lanes|et.childLanes,_e|=et.subtreeFlags,_e|=et.flags,et.return=a,et=et.sibling;return a.subtreeFlags|=_e,a.childLanes=$,_}function Fj(a,_,$){var _e=_.pendingProps;switch(wg(_),_.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(_),null;case 1:return Zf(_.type)&&$f(),S(_),null;case 3:return _e=_.stateNode,Jh$1(),E(Wf),E(H),Oh$1(),_e.pendingContext&&(_e.context=_e.pendingContext,_e.pendingContext=null),(a===null||a.child===null)&&(Gg(_)?_.flags|=4:a===null||a.memoizedState.isDehydrated&&!(_.flags&256)||(_.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(a,_),S(_),null;case 5:Lh$1(_);var et=Hh(Gh$1.current);if($=_.type,a!==null&&_.stateNode!=null)Cj(a,_,$,_e,et),a.ref!==_.ref&&(_.flags|=512,_.flags|=2097152);else{if(!_e){if(_.stateNode===null)throw Error(p$5(166));return S(_),null}if(a=Hh(Eh.current),Gg(_)){_e=_.stateNode,$=_.type;var tt=_.memoizedProps;switch(_e[Of]=_,_e[Pf]=tt,a=(_.mode&1)!==0,$){case"dialog":D("cancel",_e),D("close",_e);break;case"iframe":case"object":case"embed":D("load",_e);break;case"video":case"audio":for(et=0;et<lf.length;et++)D(lf[et],_e);break;case"source":D("error",_e);break;case"img":case"image":case"link":D("error",_e),D("load",_e);break;case"details":D("toggle",_e);break;case"input":Za(_e,tt),D("invalid",_e);break;case"select":_e._wrapperState={wasMultiple:!!tt.multiple},D("invalid",_e);break;case"textarea":hb(_e,tt),D("invalid",_e)}ub($,tt),et=null;for(var rt in tt)if(tt.hasOwnProperty(rt)){var nt=tt[rt];rt==="children"?typeof nt=="string"?_e.textContent!==nt&&(tt.suppressHydrationWarning!==!0&&Af(_e.textContent,nt,a),et=["children",nt]):typeof nt=="number"&&_e.textContent!==""+nt&&(tt.suppressHydrationWarning!==!0&&Af(_e.textContent,nt,a),et=["children",""+nt]):ea.hasOwnProperty(rt)&&nt!=null&&rt==="onScroll"&&D("scroll",_e)}switch($){case"input":Va(_e),db(_e,tt,!0);break;case"textarea":Va(_e),jb(_e);break;case"select":case"option":break;default:typeof tt.onClick=="function"&&(_e.onclick=Bf)}_e=et,_.updateQueue=_e,_e!==null&&(_.flags|=4)}else{rt=et.nodeType===9?et:et.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=kb($)),a==="http://www.w3.org/1999/xhtml"?$==="script"?(a=rt.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof _e.is=="string"?a=rt.createElement($,{is:_e.is}):(a=rt.createElement($),$==="select"&&(rt=a,_e.multiple?rt.multiple=!0:_e.size&&(rt.size=_e.size))):a=rt.createElementNS(a,$),a[Of]=_,a[Pf]=_e,Aj(a,_,!1,!1),_.stateNode=a;e:{switch(rt=vb($,_e),$){case"dialog":D("cancel",a),D("close",a),et=_e;break;case"iframe":case"object":case"embed":D("load",a),et=_e;break;case"video":case"audio":for(et=0;et<lf.length;et++)D(lf[et],a);et=_e;break;case"source":D("error",a),et=_e;break;case"img":case"image":case"link":D("error",a),D("load",a),et=_e;break;case"details":D("toggle",a),et=_e;break;case"input":Za(a,_e),et=Ya(a,_e),D("invalid",a);break;case"option":et=_e;break;case"select":a._wrapperState={wasMultiple:!!_e.multiple},et=A$1({},_e,{value:void 0}),D("invalid",a);break;case"textarea":hb(a,_e),et=gb(a,_e),D("invalid",a);break;default:et=_e}ub($,et),nt=et;for(tt in nt)if(nt.hasOwnProperty(tt)){var it=nt[tt];tt==="style"?sb(a,it):tt==="dangerouslySetInnerHTML"?(it=it?it.__html:void 0,it!=null&&nb(a,it)):tt==="children"?typeof it=="string"?($!=="textarea"||it!=="")&&ob(a,it):typeof it=="number"&&ob(a,""+it):tt!=="suppressContentEditableWarning"&&tt!=="suppressHydrationWarning"&&tt!=="autoFocus"&&(ea.hasOwnProperty(tt)?it!=null&&tt==="onScroll"&&D("scroll",a):it!=null&&ta(a,tt,it,rt))}switch($){case"input":Va(a),db(a,_e,!1);break;case"textarea":Va(a),jb(a);break;case"option":_e.value!=null&&a.setAttribute("value",""+Sa(_e.value));break;case"select":a.multiple=!!_e.multiple,tt=_e.value,tt!=null?fb(a,!!_e.multiple,tt,!1):_e.defaultValue!=null&&fb(a,!!_e.multiple,_e.defaultValue,!0);break;default:typeof et.onClick=="function"&&(a.onclick=Bf)}switch($){case"button":case"input":case"select":case"textarea":_e=!!_e.autoFocus;break e;case"img":_e=!0;break e;default:_e=!1}}_e&&(_.flags|=4)}_.ref!==null&&(_.flags|=512,_.flags|=2097152)}return S(_),null;case 6:if(a&&_.stateNode!=null)Dj(a,_,a.memoizedProps,_e);else{if(typeof _e!="string"&&_.stateNode===null)throw Error(p$5(166));if($=Hh(Gh$1.current),Hh(Eh.current),Gg(_)){if(_e=_.stateNode,$=_.memoizedProps,_e[Of]=_,(tt=_e.nodeValue!==$)&&(a=xg,a!==null))switch(a.tag){case 3:Af(_e.nodeValue,$,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Af(_e.nodeValue,$,(a.mode&1)!==0)}tt&&(_.flags|=4)}else _e=($.nodeType===9?$:$.ownerDocument).createTextNode(_e),_e[Of]=_,_.stateNode=_e}return S(_),null;case 13:if(E(M),_e=_.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(I&&yg!==null&&_.mode&1&&!(_.flags&128))Hg(),Ig(),_.flags|=98560,tt=!1;else if(tt=Gg(_),_e!==null&&_e.dehydrated!==null){if(a===null){if(!tt)throw Error(p$5(318));if(tt=_.memoizedState,tt=tt!==null?tt.dehydrated:null,!tt)throw Error(p$5(317));tt[Of]=_}else Ig(),!(_.flags&128)&&(_.memoizedState=null),_.flags|=4;S(_),tt=!1}else zg!==null&&(Gj(zg),zg=null),tt=!0;if(!tt)return _.flags&65536?_:null}return _.flags&128?(_.lanes=$,_):(_e=_e!==null,_e!==(a!==null&&a.memoizedState!==null)&&_e&&(_.child.flags|=8192,_.mode&1&&(a===null||M.current&1?T===0&&(T=3):uj())),_.updateQueue!==null&&(_.flags|=4),S(_),null);case 4:return Jh$1(),Bj(a,_),a===null&&sf(_.stateNode.containerInfo),S(_),null;case 10:return Rg(_.type._context),S(_),null;case 17:return Zf(_.type)&&$f(),S(_),null;case 19:if(E(M),tt=_.memoizedState,tt===null)return S(_),null;if(_e=(_.flags&128)!==0,rt=tt.rendering,rt===null)if(_e)Ej(tt,!1);else{if(T!==0||a!==null&&a.flags&128)for(a=_.child;a!==null;){if(rt=Mh(a),rt!==null){for(_.flags|=128,Ej(tt,!1),_e=rt.updateQueue,_e!==null&&(_.updateQueue=_e,_.flags|=4),_.subtreeFlags=0,_e=$,$=_.child;$!==null;)tt=$,a=_e,tt.flags&=14680066,rt=tt.alternate,rt===null?(tt.childLanes=0,tt.lanes=a,tt.child=null,tt.subtreeFlags=0,tt.memoizedProps=null,tt.memoizedState=null,tt.updateQueue=null,tt.dependencies=null,tt.stateNode=null):(tt.childLanes=rt.childLanes,tt.lanes=rt.lanes,tt.child=rt.child,tt.subtreeFlags=0,tt.deletions=null,tt.memoizedProps=rt.memoizedProps,tt.memoizedState=rt.memoizedState,tt.updateQueue=rt.updateQueue,tt.type=rt.type,a=rt.dependencies,tt.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),$=$.sibling;return G(M,M.current&1|2),_.child}a=a.sibling}tt.tail!==null&&B()>Hj&&(_.flags|=128,_e=!0,Ej(tt,!1),_.lanes=4194304)}else{if(!_e)if(a=Mh(rt),a!==null){if(_.flags|=128,_e=!0,$=a.updateQueue,$!==null&&(_.updateQueue=$,_.flags|=4),Ej(tt,!0),tt.tail===null&&tt.tailMode==="hidden"&&!rt.alternate&&!I)return S(_),null}else 2*B()-tt.renderingStartTime>Hj&&$!==1073741824&&(_.flags|=128,_e=!0,Ej(tt,!1),_.lanes=4194304);tt.isBackwards?(rt.sibling=_.child,_.child=rt):($=tt.last,$!==null?$.sibling=rt:_.child=rt,tt.last=rt)}return tt.tail!==null?(_=tt.tail,tt.rendering=_,tt.tail=_.sibling,tt.renderingStartTime=B(),_.sibling=null,$=M.current,G(M,_e?$&1|2:$&1),_):(S(_),null);case 22:case 23:return Ij(),_e=_.memoizedState!==null,a!==null&&a.memoizedState!==null!==_e&&(_.flags|=8192),_e&&_.mode&1?gj&1073741824&&(S(_),_.subtreeFlags&6&&(_.flags|=8192)):S(_),null;case 24:return null;case 25:return null}throw Error(p$5(156,_.tag))}function Jj(a,_){switch(wg(_),_.tag){case 1:return Zf(_.type)&&$f(),a=_.flags,a&65536?(_.flags=a&-65537|128,_):null;case 3:return Jh$1(),E(Wf),E(H),Oh$1(),a=_.flags,a&65536&&!(a&128)?(_.flags=a&-65537|128,_):null;case 5:return Lh$1(_),null;case 13:if(E(M),a=_.memoizedState,a!==null&&a.dehydrated!==null){if(_.alternate===null)throw Error(p$5(340));Ig()}return a=_.flags,a&65536?(_.flags=a&-65537|128,_):null;case 19:return E(M),null;case 4:return Jh$1(),null;case 10:return Rg(_.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Mj(a,_){var $=a.ref;if($!==null)if(typeof $=="function")try{$(null)}catch(_e){W(a,_,_e)}else $.current=null}function Nj(a,_,$){try{$()}catch(_e){W(a,_,_e)}}var Oj=!1;function Pj(a,_){if(Cf=dd,a=Me(),Ne(a)){if("selectionStart"in a)var $={start:a.selectionStart,end:a.selectionEnd};else e:{$=($=a.ownerDocument)&&$.defaultView||window;var _e=$.getSelection&&$.getSelection();if(_e&&_e.rangeCount!==0){$=_e.anchorNode;var et=_e.anchorOffset,tt=_e.focusNode;_e=_e.focusOffset;try{$.nodeType,tt.nodeType}catch{$=null;break e}var rt=0,nt=-1,it=-1,at=0,st=0,ut=a,ot=null;t:for(;;){for(var pt;ut!==$||et!==0&&ut.nodeType!==3||(nt=rt+et),ut!==tt||_e!==0&&ut.nodeType!==3||(it=rt+_e),ut.nodeType===3&&(rt+=ut.nodeValue.length),(pt=ut.firstChild)!==null;)ot=ut,ut=pt;for(;;){if(ut===a)break t;if(ot===$&&++at===et&&(nt=rt),ot===tt&&++st===_e&&(it=rt),(pt=ut.nextSibling)!==null)break;ut=ot,ot=ut.parentNode}ut=pt}$=nt===-1||it===-1?null:{start:nt,end:it}}else $=null}$=$||{start:0,end:0}}else $=null;for(Df={focusedElem:a,selectionRange:$},dd=!1,V$1=_;V$1!==null;)if(_=V$1,a=_.child,(_.subtreeFlags&1028)!==0&&a!==null)a.return=_,V$1=a;else for(;V$1!==null;){_=V$1;try{var ht=_.alternate;if(_.flags&1024)switch(_.tag){case 0:case 11:case 15:break;case 1:if(ht!==null){var dt=ht.memoizedProps,gt=ht.memoizedState,lt=_.stateNode,ft=lt.getSnapshotBeforeUpdate(_.elementType===_.type?dt:Lg(_.type,dt),gt);lt.__reactInternalSnapshotBeforeUpdate=ft}break;case 3:var ct=_.stateNode.containerInfo;ct.nodeType===1?ct.textContent="":ct.nodeType===9&&ct.documentElement&&ct.removeChild(ct.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$5(163))}}catch(mt){W(_,_.return,mt)}if(a=_.sibling,a!==null){a.return=_.return,V$1=a;break}V$1=_.return}return ht=Oj,Oj=!1,ht}function Qj(a,_,$){var _e=_.updateQueue;if(_e=_e!==null?_e.lastEffect:null,_e!==null){var et=_e=_e.next;do{if((et.tag&a)===a){var tt=et.destroy;et.destroy=void 0,tt!==void 0&&Nj(_,$,tt)}et=et.next}while(et!==_e)}}function Rj(a,_){if(_=_.updateQueue,_=_!==null?_.lastEffect:null,_!==null){var $=_=_.next;do{if(($.tag&a)===a){var _e=$.create;$.destroy=_e()}$=$.next}while($!==_)}}function Sj(a){var _=a.ref;if(_!==null){var $=a.stateNode;switch(a.tag){case 5:a=$;break;default:a=$}typeof _=="function"?_(a):_.current=a}}function Tj(a){var _=a.alternate;_!==null&&(a.alternate=null,Tj(_)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(_=a.stateNode,_!==null&&(delete _[Of],delete _[Pf],delete _[of],delete _[Qf],delete _[Rf])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Uj(a){return a.tag===5||a.tag===3||a.tag===4}function Vj(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Uj(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Wj(a,_,$){var _e=a.tag;if(_e===5||_e===6)a=a.stateNode,_?$.nodeType===8?$.parentNode.insertBefore(a,_):$.insertBefore(a,_):($.nodeType===8?(_=$.parentNode,_.insertBefore(a,$)):(_=$,_.appendChild(a)),$=$._reactRootContainer,$!=null||_.onclick!==null||(_.onclick=Bf));else if(_e!==4&&(a=a.child,a!==null))for(Wj(a,_,$),a=a.sibling;a!==null;)Wj(a,_,$),a=a.sibling}function Xj(a,_,$){var _e=a.tag;if(_e===5||_e===6)a=a.stateNode,_?$.insertBefore(a,_):$.appendChild(a);else if(_e!==4&&(a=a.child,a!==null))for(Xj(a,_,$),a=a.sibling;a!==null;)Xj(a,_,$),a=a.sibling}var X=null,Yj=!1;function Zj(a,_,$){for($=$.child;$!==null;)ak(a,_,$),$=$.sibling}function ak(a,_,$){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,$)}catch{}switch($.tag){case 5:U||Mj($,_);case 6:var _e=X,et=Yj;X=null,Zj(a,_,$),X=_e,Yj=et,X!==null&&(Yj?(a=X,$=$.stateNode,a.nodeType===8?a.parentNode.removeChild($):a.removeChild($)):X.removeChild($.stateNode));break;case 18:X!==null&&(Yj?(a=X,$=$.stateNode,a.nodeType===8?Kf(a.parentNode,$):a.nodeType===1&&Kf(a,$),bd(a)):Kf(X,$.stateNode));break;case 4:_e=X,et=Yj,X=$.stateNode.containerInfo,Yj=!0,Zj(a,_,$),X=_e,Yj=et;break;case 0:case 11:case 14:case 15:if(!U&&(_e=$.updateQueue,_e!==null&&(_e=_e.lastEffect,_e!==null))){et=_e=_e.next;do{var tt=et,rt=tt.destroy;tt=tt.tag,rt!==void 0&&(tt&2||tt&4)&&Nj($,_,rt),et=et.next}while(et!==_e)}Zj(a,_,$);break;case 1:if(!U&&(Mj($,_),_e=$.stateNode,typeof _e.componentWillUnmount=="function"))try{_e.props=$.memoizedProps,_e.state=$.memoizedState,_e.componentWillUnmount()}catch(nt){W($,_,nt)}Zj(a,_,$);break;case 21:Zj(a,_,$);break;case 22:$.mode&1?(U=(_e=U)||$.memoizedState!==null,Zj(a,_,$),U=_e):Zj(a,_,$);break;default:Zj(a,_,$)}}function bk(a){var _=a.updateQueue;if(_!==null){a.updateQueue=null;var $=a.stateNode;$===null&&($=a.stateNode=new Lj),_.forEach(function(_e){var et=ck.bind(null,a,_e);$.has(_e)||($.add(_e),_e.then(et,et))})}}function dk(a,_){var $=_.deletions;if($!==null)for(var _e=0;_e<$.length;_e++){var et=$[_e];try{var tt=a,rt=_,nt=rt;e:for(;nt!==null;){switch(nt.tag){case 5:X=nt.stateNode,Yj=!1;break e;case 3:X=nt.stateNode.containerInfo,Yj=!0;break e;case 4:X=nt.stateNode.containerInfo,Yj=!0;break e}nt=nt.return}if(X===null)throw Error(p$5(160));ak(tt,rt,et),X=null,Yj=!1;var it=et.alternate;it!==null&&(it.return=null),et.return=null}catch(at){W(et,_,at)}}if(_.subtreeFlags&12854)for(_=_.child;_!==null;)ek(_,a),_=_.sibling}function ek(a,_){var $=a.alternate,_e=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(dk(_,a),fk(a),_e&4){try{Qj(3,a,a.return),Rj(3,a)}catch(dt){W(a,a.return,dt)}try{Qj(5,a,a.return)}catch(dt){W(a,a.return,dt)}}break;case 1:dk(_,a),fk(a),_e&512&&$!==null&&Mj($,$.return);break;case 5:if(dk(_,a),fk(a),_e&512&&$!==null&&Mj($,$.return),a.flags&32){var et=a.stateNode;try{ob(et,"")}catch(dt){W(a,a.return,dt)}}if(_e&4&&(et=a.stateNode,et!=null)){var tt=a.memoizedProps,rt=$!==null?$.memoizedProps:tt,nt=a.type,it=a.updateQueue;if(a.updateQueue=null,it!==null)try{nt==="input"&&tt.type==="radio"&&tt.name!=null&&ab(et,tt),vb(nt,rt);var at=vb(nt,tt);for(rt=0;rt<it.length;rt+=2){var st=it[rt],ut=it[rt+1];st==="style"?sb(et,ut):st==="dangerouslySetInnerHTML"?nb(et,ut):st==="children"?ob(et,ut):ta(et,st,ut,at)}switch(nt){case"input":bb(et,tt);break;case"textarea":ib(et,tt);break;case"select":var ot=et._wrapperState.wasMultiple;et._wrapperState.wasMultiple=!!tt.multiple;var pt=tt.value;pt!=null?fb(et,!!tt.multiple,pt,!1):ot!==!!tt.multiple&&(tt.defaultValue!=null?fb(et,!!tt.multiple,tt.defaultValue,!0):fb(et,!!tt.multiple,tt.multiple?[]:"",!1))}et[Pf]=tt}catch(dt){W(a,a.return,dt)}}break;case 6:if(dk(_,a),fk(a),_e&4){if(a.stateNode===null)throw Error(p$5(162));et=a.stateNode,tt=a.memoizedProps;try{et.nodeValue=tt}catch(dt){W(a,a.return,dt)}}break;case 3:if(dk(_,a),fk(a),_e&4&&$!==null&&$.memoizedState.isDehydrated)try{bd(_.containerInfo)}catch(dt){W(a,a.return,dt)}break;case 4:dk(_,a),fk(a);break;case 13:dk(_,a),fk(a),et=a.child,et.flags&8192&&(tt=et.memoizedState!==null,et.stateNode.isHidden=tt,!tt||et.alternate!==null&&et.alternate.memoizedState!==null||(gk=B())),_e&4&&bk(a);break;case 22:if(st=$!==null&&$.memoizedState!==null,a.mode&1?(U=(at=U)||st,dk(_,a),U=at):dk(_,a),fk(a),_e&8192){if(at=a.memoizedState!==null,(a.stateNode.isHidden=at)&&!st&&a.mode&1)for(V$1=a,st=a.child;st!==null;){for(ut=V$1=st;V$1!==null;){switch(ot=V$1,pt=ot.child,ot.tag){case 0:case 11:case 14:case 15:Qj(4,ot,ot.return);break;case 1:Mj(ot,ot.return);var ht=ot.stateNode;if(typeof ht.componentWillUnmount=="function"){_e=ot,$=ot.return;try{_=_e,ht.props=_.memoizedProps,ht.state=_.memoizedState,ht.componentWillUnmount()}catch(dt){W(_e,$,dt)}}break;case 5:Mj(ot,ot.return);break;case 22:if(ot.memoizedState!==null){hk(ut);continue}}pt!==null?(pt.return=ot,V$1=pt):hk(ut)}st=st.sibling}e:for(st=null,ut=a;;){if(ut.tag===5){if(st===null){st=ut;try{et=ut.stateNode,at?(tt=et.style,typeof tt.setProperty=="function"?tt.setProperty("display","none","important"):tt.display="none"):(nt=ut.stateNode,it=ut.memoizedProps.style,rt=it!=null&&it.hasOwnProperty("display")?it.display:null,nt.style.display=rb("display",rt))}catch(dt){W(a,a.return,dt)}}}else if(ut.tag===6){if(st===null)try{ut.stateNode.nodeValue=at?"":ut.memoizedProps}catch(dt){W(a,a.return,dt)}}else if((ut.tag!==22&&ut.tag!==23||ut.memoizedState===null||ut===a)&&ut.child!==null){ut.child.return=ut,ut=ut.child;continue}if(ut===a)break e;for(;ut.sibling===null;){if(ut.return===null||ut.return===a)break e;st===ut&&(st=null),ut=ut.return}st===ut&&(st=null),ut.sibling.return=ut.return,ut=ut.sibling}}break;case 19:dk(_,a),fk(a),_e&4&&bk(a);break;case 21:break;default:dk(_,a),fk(a)}}function fk(a){var _=a.flags;if(_&2){try{e:{for(var $=a.return;$!==null;){if(Uj($)){var _e=$;break e}$=$.return}throw Error(p$5(160))}switch(_e.tag){case 5:var et=_e.stateNode;_e.flags&32&&(ob(et,""),_e.flags&=-33);var tt=Vj(a);Xj(a,tt,et);break;case 3:case 4:var rt=_e.stateNode.containerInfo,nt=Vj(a);Wj(a,nt,rt);break;default:throw Error(p$5(161))}}catch(it){W(a,a.return,it)}a.flags&=-3}_&4096&&(a.flags&=-4097)}function ik(a,_,$){V$1=a,jk(a)}function jk(a,_,$){for(var _e=(a.mode&1)!==0;V$1!==null;){var et=V$1,tt=et.child;if(et.tag===22&&_e){var rt=et.memoizedState!==null||Kj;if(!rt){var nt=et.alternate,it=nt!==null&&nt.memoizedState!==null||U;nt=Kj;var at=U;if(Kj=rt,(U=it)&&!at)for(V$1=et;V$1!==null;)rt=V$1,it=rt.child,rt.tag===22&&rt.memoizedState!==null?kk(et):it!==null?(it.return=rt,V$1=it):kk(et);for(;tt!==null;)V$1=tt,jk(tt),tt=tt.sibling;V$1=et,Kj=nt,U=at}lk(a)}else et.subtreeFlags&8772&&tt!==null?(tt.return=et,V$1=tt):lk(a)}}function lk(a){for(;V$1!==null;){var _=V$1;if(_.flags&8772){var $=_.alternate;try{if(_.flags&8772)switch(_.tag){case 0:case 11:case 15:U||Rj(5,_);break;case 1:var _e=_.stateNode;if(_.flags&4&&!U)if($===null)_e.componentDidMount();else{var et=_.elementType===_.type?$.memoizedProps:Lg(_.type,$.memoizedProps);_e.componentDidUpdate(et,$.memoizedState,_e.__reactInternalSnapshotBeforeUpdate)}var tt=_.updateQueue;tt!==null&&ih(_,tt,_e);break;case 3:var rt=_.updateQueue;if(rt!==null){if($=null,_.child!==null)switch(_.child.tag){case 5:$=_.child.stateNode;break;case 1:$=_.child.stateNode}ih(_,rt,$)}break;case 5:var nt=_.stateNode;if($===null&&_.flags&4){$=nt;var it=_.memoizedProps;switch(_.type){case"button":case"input":case"select":case"textarea":it.autoFocus&&$.focus();break;case"img":it.src&&($.src=it.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(_.memoizedState===null){var at=_.alternate;if(at!==null){var st=at.memoizedState;if(st!==null){var ut=st.dehydrated;ut!==null&&bd(ut)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$5(163))}U||_.flags&512&&Sj(_)}catch(ot){W(_,_.return,ot)}}if(_===a){V$1=null;break}if($=_.sibling,$!==null){$.return=_.return,V$1=$;break}V$1=_.return}}function hk(a){for(;V$1!==null;){var _=V$1;if(_===a){V$1=null;break}var $=_.sibling;if($!==null){$.return=_.return,V$1=$;break}V$1=_.return}}function kk(a){for(;V$1!==null;){var _=V$1;try{switch(_.tag){case 0:case 11:case 15:var $=_.return;try{Rj(4,_)}catch(it){W(_,$,it)}break;case 1:var _e=_.stateNode;if(typeof _e.componentDidMount=="function"){var et=_.return;try{_e.componentDidMount()}catch(it){W(_,et,it)}}var tt=_.return;try{Sj(_)}catch(it){W(_,tt,it)}break;case 5:var rt=_.return;try{Sj(_)}catch(it){W(_,rt,it)}}}catch(it){W(_,_.return,it)}if(_===a){V$1=null;break}var nt=_.sibling;if(nt!==null){nt.return=_.return,V$1=nt;break}V$1=_.return}}var mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K=0,R=null,Y=null,Z=0,gj=0,fj=Uf(0),T=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L(){return K&6?B():Bk!==-1?Bk:Bk=B()}function lh(a){return a.mode&1?K&2&&Z!==0?Z&-Z:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(a=C,a!==0||(a=window.event,a=a===void 0?16:jd(a.type)),a):1}function mh(a,_,$,_e){if(50<zk)throw zk=0,Ak=null,Error(p$5(185));Ac(a,$,_e),(!(K&2)||a!==R)&&(a===R&&(!(K&2)&&(rk|=$),T===4&&Dk(a,Z)),Ek(a,_e),$===1&&K===0&&!(_.mode&1)&&(Hj=B()+500,fg&&jg()))}function Ek(a,_){var $=a.callbackNode;wc(a,_);var _e=uc(a,a===R?Z:0);if(_e===0)$!==null&&bc($),a.callbackNode=null,a.callbackPriority=0;else if(_=_e&-_e,a.callbackPriority!==_){if($!=null&&bc($),_===1)a.tag===0?ig(Fk.bind(null,a)):hg(Fk.bind(null,a)),Jf(function(){!(K&6)&&jg()}),$=null;else{switch(Dc(_e)){case 1:$=fc;break;case 4:$=gc;break;case 16:$=hc;break;case 536870912:$=jc;break;default:$=hc}$=Gk($,Hk.bind(null,a))}a.callbackPriority=_,a.callbackNode=$}}function Hk(a,_){if(Bk=-1,Ck=0,K&6)throw Error(p$5(327));var $=a.callbackNode;if(Ik()&&a.callbackNode!==$)return null;var _e=uc(a,a===R?Z:0);if(_e===0)return null;if(_e&30||_e&a.expiredLanes||_)_=Jk(a,_e);else{_=_e;var et=K;K|=2;var tt=Kk();(R!==a||Z!==_)&&(vk=null,Hj=B()+500,Lk(a,_));do try{Mk();break}catch(nt){Nk(a,nt)}while(!0);Qg(),nk.current=tt,K=et,Y!==null?_=0:(R=null,Z=0,_=T)}if(_!==0){if(_===2&&(et=xc(a),et!==0&&(_e=et,_=Ok(a,et))),_===1)throw $=qk,Lk(a,0),Dk(a,_e),Ek(a,B()),$;if(_===6)Dk(a,_e);else{if(et=a.current.alternate,!(_e&30)&&!Pk(et)&&(_=Jk(a,_e),_===2&&(tt=xc(a),tt!==0&&(_e=tt,_=Ok(a,tt))),_===1))throw $=qk,Lk(a,0),Dk(a,_e),Ek(a,B()),$;switch(a.finishedWork=et,a.finishedLanes=_e,_){case 0:case 1:throw Error(p$5(345));case 2:Qk(a,uk,vk);break;case 3:if(Dk(a,_e),(_e&130023424)===_e&&(_=gk+500-B(),10<_)){if(uc(a,0)!==0)break;if(et=a.suspendedLanes,(et&_e)!==_e){L(),a.pingedLanes|=a.suspendedLanes&et;break}a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),_);break}Qk(a,uk,vk);break;case 4:if(Dk(a,_e),(_e&4194240)===_e)break;for(_=a.eventTimes,et=-1;0<_e;){var rt=31-oc(_e);tt=1<<rt,rt=_[rt],rt>et&&(et=rt),_e&=~tt}if(_e=et,_e=B()-_e,_e=(120>_e?120:480>_e?480:1080>_e?1080:1920>_e?1920:3e3>_e?3e3:4320>_e?4320:1960*mk(_e/1960))-_e,10<_e){a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),_e);break}Qk(a,uk,vk);break;case 5:Qk(a,uk,vk);break;default:throw Error(p$5(329))}}}return Ek(a,B()),a.callbackNode===$?Hk.bind(null,a):null}function Ok(a,_){var $=tk;return a.current.memoizedState.isDehydrated&&(Lk(a,_).flags|=256),a=Jk(a,_),a!==2&&(_=uk,uk=$,_!==null&&Gj(_)),a}function Gj(a){uk===null?uk=a:uk.push.apply(uk,a)}function Pk(a){for(var _=a;;){if(_.flags&16384){var $=_.updateQueue;if($!==null&&($=$.stores,$!==null))for(var _e=0;_e<$.length;_e++){var et=$[_e],tt=et.getSnapshot;et=et.value;try{if(!He(tt(),et))return!1}catch{return!1}}}if($=_.child,_.subtreeFlags&16384&&$!==null)$.return=_,_=$;else{if(_===a)break;for(;_.sibling===null;){if(_.return===null||_.return===a)return!0;_=_.return}_.sibling.return=_.return,_=_.sibling}}return!0}function Dk(a,_){for(_&=~sk,_&=~rk,a.suspendedLanes|=_,a.pingedLanes&=~_,a=a.expirationTimes;0<_;){var $=31-oc(_),_e=1<<$;a[$]=-1,_&=~_e}}function Fk(a){if(K&6)throw Error(p$5(327));Ik();var _=uc(a,0);if(!(_&1))return Ek(a,B()),null;var $=Jk(a,_);if(a.tag!==0&&$===2){var _e=xc(a);_e!==0&&(_=_e,$=Ok(a,_e))}if($===1)throw $=qk,Lk(a,0),Dk(a,_),Ek(a,B()),$;if($===6)throw Error(p$5(345));return a.finishedWork=a.current.alternate,a.finishedLanes=_,Qk(a,uk,vk),Ek(a,B()),null}function Rk(a,_){var $=K;K|=1;try{return a(_)}finally{K=$,K===0&&(Hj=B()+500,fg&&jg())}}function Sk(a){xk!==null&&xk.tag===0&&!(K&6)&&Ik();var _=K;K|=1;var $=pk.transition,_e=C;try{if(pk.transition=null,C=1,a)return a()}finally{C=_e,pk.transition=$,K=_,!(K&6)&&jg()}}function Ij(){gj=fj.current,E(fj)}function Lk(a,_){a.finishedWork=null,a.finishedLanes=0;var $=a.timeoutHandle;if($!==-1&&(a.timeoutHandle=-1,Gf($)),Y!==null)for($=Y.return;$!==null;){var _e=$;switch(wg(_e),_e.tag){case 1:_e=_e.type.childContextTypes,_e!=null&&$f();break;case 3:Jh$1(),E(Wf),E(H),Oh$1();break;case 5:Lh$1(_e);break;case 4:Jh$1();break;case 13:E(M);break;case 19:E(M);break;case 10:Rg(_e.type._context);break;case 22:case 23:Ij()}$=$.return}if(R=a,Y=a=wh(a.current,null),Z=gj=_,T=0,qk=null,sk=rk=hh=0,uk=tk=null,Wg!==null){for(_=0;_<Wg.length;_++)if($=Wg[_],_e=$.interleaved,_e!==null){$.interleaved=null;var et=_e.next,tt=$.pending;if(tt!==null){var rt=tt.next;tt.next=et,_e.next=rt}$.pending=_e}Wg=null}return a}function Nk(a,_){do{var $=Y;try{if(Qg(),Ph$1.current=ai,Sh){for(var _e=N.memoizedState;_e!==null;){var et=_e.queue;et!==null&&(et.pending=null),_e=_e.next}Sh=!1}if(Rh=0,P=O=N=null,Th=!1,Uh$1=0,ok.current=null,$===null||$.return===null){T=1,qk=_,Y=null;break}e:{var tt=a,rt=$.return,nt=$,it=_;if(_=Z,nt.flags|=32768,it!==null&&typeof it=="object"&&typeof it.then=="function"){var at=it,st=nt,ut=st.tag;if(!(st.mode&1)&&(ut===0||ut===11||ut===15)){var ot=st.alternate;ot?(st.updateQueue=ot.updateQueue,st.memoizedState=ot.memoizedState,st.lanes=ot.lanes):(st.updateQueue=null,st.memoizedState=null)}var pt=Vi(rt);if(pt!==null){pt.flags&=-257,Wi(pt,rt,nt,tt,_),pt.mode&1&&Ti(tt,at,_),_=pt,it=at;var ht=_.updateQueue;if(ht===null){var dt=new Set;dt.add(it),_.updateQueue=dt}else ht.add(it);break e}else{if(!(_&1)){Ti(tt,at,_),uj();break e}it=Error(p$5(426))}}else if(I&&nt.mode&1){var gt=Vi(rt);if(gt!==null){!(gt.flags&65536)&&(gt.flags|=256),Wi(gt,rt,nt,tt,_),Jg(Ki(it,nt));break e}}tt=it=Ki(it,nt),T!==4&&(T=2),tk===null?tk=[tt]:tk.push(tt),tt=rt;do{switch(tt.tag){case 3:tt.flags|=65536,_&=-_,tt.lanes|=_;var lt=Oi(tt,it,_);fh(tt,lt);break e;case 1:nt=it;var ft=tt.type,ct=tt.stateNode;if(!(tt.flags&128)&&(typeof ft.getDerivedStateFromError=="function"||ct!==null&&typeof ct.componentDidCatch=="function"&&(Si===null||!Si.has(ct)))){tt.flags|=65536,_&=-_,tt.lanes|=_;var mt=Ri(tt,nt,_);fh(tt,mt);break e}}tt=tt.return}while(tt!==null)}Tk($)}catch(yt){_=yt,Y===$&&$!==null&&(Y=$=$.return);continue}break}while(!0)}function Kk(){var a=nk.current;return nk.current=ai,a===null?ai:a}function uj(){(T===0||T===3||T===2)&&(T=4),R===null||!(hh&268435455)&&!(rk&268435455)||Dk(R,Z)}function Jk(a,_){var $=K;K|=2;var _e=Kk();(R!==a||Z!==_)&&(vk=null,Lk(a,_));do try{Uk();break}catch(et){Nk(a,et)}while(!0);if(Qg(),K=$,nk.current=_e,Y!==null)throw Error(p$5(261));return R=null,Z=0,T}function Uk(){for(;Y!==null;)Vk(Y)}function Mk(){for(;Y!==null&&!cc();)Vk(Y)}function Vk(a){var _=Wk(a.alternate,a,gj);a.memoizedProps=a.pendingProps,_===null?Tk(a):Y=_,ok.current=null}function Tk(a){var _=a;do{var $=_.alternate;if(a=_.return,_.flags&32768){if($=Jj($,_),$!==null){$.flags&=32767,Y=$;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{T=6,Y=null;return}}else if($=Fj($,_,gj),$!==null){Y=$;return}if(_=_.sibling,_!==null){Y=_;return}Y=_=a}while(_!==null);T===0&&(T=5)}function Qk(a,_,$){var _e=C,et=pk.transition;try{pk.transition=null,C=1,Xk(a,_,$,_e)}finally{pk.transition=et,C=_e}return null}function Xk(a,_,$,_e){do Ik();while(xk!==null);if(K&6)throw Error(p$5(327));$=a.finishedWork;var et=a.finishedLanes;if($===null)return null;if(a.finishedWork=null,a.finishedLanes=0,$===a.current)throw Error(p$5(177));a.callbackNode=null,a.callbackPriority=0;var tt=$.lanes|$.childLanes;if(Bc(a,tt),a===R&&(Y=R=null,Z=0),!($.subtreeFlags&2064)&&!($.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),tt=($.flags&15990)!==0,$.subtreeFlags&15990||tt){tt=pk.transition,pk.transition=null;var rt=C;C=1;var nt=K;K|=4,ok.current=null,Pj(a,$),ek($,a),Oe(Df),dd=!!Cf,Df=Cf=null,a.current=$,ik($),dc(),K=nt,C=rt,pk.transition=tt}else a.current=$;if(wk&&(wk=!1,xk=a,yk=et),tt=a.pendingLanes,tt===0&&(Si=null),mc($.stateNode),Ek(a,B()),_!==null)for(_e=a.onRecoverableError,$=0;$<_.length;$++)et=_[$],_e(et.value,{componentStack:et.stack,digest:et.digest});if(Pi)throw Pi=!1,a=Qi,Qi=null,a;return yk&1&&a.tag!==0&&Ik(),tt=a.pendingLanes,tt&1?a===Ak?zk++:(zk=0,Ak=a):zk=0,jg(),null}function Ik(){if(xk!==null){var a=Dc(yk),_=pk.transition,$=C;try{if(pk.transition=null,C=16>a?16:a,xk===null)var _e=!1;else{if(a=xk,xk=null,yk=0,K&6)throw Error(p$5(331));var et=K;for(K|=4,V$1=a.current;V$1!==null;){var tt=V$1,rt=tt.child;if(V$1.flags&16){var nt=tt.deletions;if(nt!==null){for(var it=0;it<nt.length;it++){var at=nt[it];for(V$1=at;V$1!==null;){var st=V$1;switch(st.tag){case 0:case 11:case 15:Qj(8,st,tt)}var ut=st.child;if(ut!==null)ut.return=st,V$1=ut;else for(;V$1!==null;){st=V$1;var ot=st.sibling,pt=st.return;if(Tj(st),st===at){V$1=null;break}if(ot!==null){ot.return=pt,V$1=ot;break}V$1=pt}}}var ht=tt.alternate;if(ht!==null){var dt=ht.child;if(dt!==null){ht.child=null;do{var gt=dt.sibling;dt.sibling=null,dt=gt}while(dt!==null)}}V$1=tt}}if(tt.subtreeFlags&2064&&rt!==null)rt.return=tt,V$1=rt;else e:for(;V$1!==null;){if(tt=V$1,tt.flags&2048)switch(tt.tag){case 0:case 11:case 15:Qj(9,tt,tt.return)}var lt=tt.sibling;if(lt!==null){lt.return=tt.return,V$1=lt;break e}V$1=tt.return}}var ft=a.current;for(V$1=ft;V$1!==null;){rt=V$1;var ct=rt.child;if(rt.subtreeFlags&2064&&ct!==null)ct.return=rt,V$1=ct;else e:for(rt=ft;V$1!==null;){if(nt=V$1,nt.flags&2048)try{switch(nt.tag){case 0:case 11:case 15:Rj(9,nt)}}catch(yt){W(nt,nt.return,yt)}if(nt===rt){V$1=null;break e}var mt=nt.sibling;if(mt!==null){mt.return=nt.return,V$1=mt;break e}V$1=nt.return}}if(K=et,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,a)}catch{}_e=!0}return _e}finally{C=$,pk.transition=_}}return!1}function Yk(a,_,$){_=Ki($,_),_=Oi(a,_,1),a=dh(a,_,1),_=L(),a!==null&&(Ac(a,1,_),Ek(a,_))}function W(a,_,$){if(a.tag===3)Yk(a,a,$);else for(;_!==null;){if(_.tag===3){Yk(_,a,$);break}else if(_.tag===1){var _e=_.stateNode;if(typeof _.type.getDerivedStateFromError=="function"||typeof _e.componentDidCatch=="function"&&(Si===null||!Si.has(_e))){a=Ki($,a),a=Ri(_,a,1),_=dh(_,a,1),a=L(),_!==null&&(Ac(_,1,a),Ek(_,a));break}}_=_.return}}function Ui(a,_,$){var _e=a.pingCache;_e!==null&&_e.delete(_),_=L(),a.pingedLanes|=a.suspendedLanes&$,R===a&&(Z&$)===$&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-gk?Lk(a,0):sk|=$),Ek(a,_)}function Zk(a,_){_===0&&(a.mode&1?(_=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):_=1);var $=L();a=Zg(a,_),a!==null&&(Ac(a,_,$),Ek(a,$))}function vj(a){var _=a.memoizedState,$=0;_!==null&&($=_.retryLane),Zk(a,$)}function ck(a,_){var $=0;switch(a.tag){case 13:var _e=a.stateNode,et=a.memoizedState;et!==null&&($=et.retryLane);break;case 19:_e=a.stateNode;break;default:throw Error(p$5(314))}_e!==null&&_e.delete(_),Zk(a,$)}var Wk;Wk=function(a,_,$){if(a!==null)if(a.memoizedProps!==_.pendingProps||Wf.current)Ug=!0;else{if(!(a.lanes&$)&&!(_.flags&128))return Ug=!1,zj(a,_,$);Ug=!!(a.flags&131072)}else Ug=!1,I&&_.flags&1048576&&ug(_,ng,_.index);switch(_.lanes=0,_.tag){case 2:var _e=_.type;jj(a,_),a=_.pendingProps;var et=Yf(_,H.current);Tg(_,$),et=Xh$1(null,_,_e,a,et,$);var tt=bi();return _.flags|=1,typeof et=="object"&&et!==null&&typeof et.render=="function"&&et.$$typeof===void 0?(_.tag=1,_.memoizedState=null,_.updateQueue=null,Zf(_e)?(tt=!0,cg(_)):tt=!1,_.memoizedState=et.state!==null&&et.state!==void 0?et.state:null,ah(_),et.updater=nh,_.stateNode=et,et._reactInternals=_,rh(_,_e,a,$),_=kj(null,_,_e,!0,tt,$)):(_.tag=0,I&&tt&&vg(_),Yi(null,_,et,$),_=_.child),_;case 16:_e=_.elementType;e:{switch(jj(a,_),a=_.pendingProps,et=_e._init,_e=et(_e._payload),_.type=_e,et=_.tag=$k(_e),a=Lg(_e,a),et){case 0:_=dj(null,_,_e,a,$);break e;case 1:_=ij(null,_,_e,a,$);break e;case 11:_=Zi(null,_,_e,a,$);break e;case 14:_=aj(null,_,_e,Lg(_e.type,a),$);break e}throw Error(p$5(306,_e,""))}return _;case 0:return _e=_.type,et=_.pendingProps,et=_.elementType===_e?et:Lg(_e,et),dj(a,_,_e,et,$);case 1:return _e=_.type,et=_.pendingProps,et=_.elementType===_e?et:Lg(_e,et),ij(a,_,_e,et,$);case 3:e:{if(lj(_),a===null)throw Error(p$5(387));_e=_.pendingProps,tt=_.memoizedState,et=tt.element,bh(a,_),gh(_,_e,null,$);var rt=_.memoizedState;if(_e=rt.element,tt.isDehydrated)if(tt={element:_e,isDehydrated:!1,cache:rt.cache,pendingSuspenseBoundaries:rt.pendingSuspenseBoundaries,transitions:rt.transitions},_.updateQueue.baseState=tt,_.memoizedState=tt,_.flags&256){et=Ki(Error(p$5(423)),_),_=mj(a,_,_e,$,et);break e}else if(_e!==et){et=Ki(Error(p$5(424)),_),_=mj(a,_,_e,$,et);break e}else for(yg=Lf(_.stateNode.containerInfo.firstChild),xg=_,I=!0,zg=null,$=Ch(_,null,_e,$),_.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling;else{if(Ig(),_e===et){_=$i(a,_,$);break e}Yi(a,_,_e,$)}_=_.child}return _;case 5:return Kh$1(_),a===null&&Eg(_),_e=_.type,et=_.pendingProps,tt=a!==null?a.memoizedProps:null,rt=et.children,Ef(_e,et)?rt=null:tt!==null&&Ef(_e,tt)&&(_.flags|=32),hj(a,_),Yi(a,_,rt,$),_.child;case 6:return a===null&&Eg(_),null;case 13:return pj(a,_,$);case 4:return Ih$1(_,_.stateNode.containerInfo),_e=_.pendingProps,a===null?_.child=Bh$1(_,null,_e,$):Yi(a,_,_e,$),_.child;case 11:return _e=_.type,et=_.pendingProps,et=_.elementType===_e?et:Lg(_e,et),Zi(a,_,_e,et,$);case 7:return Yi(a,_,_.pendingProps,$),_.child;case 8:return Yi(a,_,_.pendingProps.children,$),_.child;case 12:return Yi(a,_,_.pendingProps.children,$),_.child;case 10:e:{if(_e=_.type._context,et=_.pendingProps,tt=_.memoizedProps,rt=et.value,G(Mg,_e._currentValue),_e._currentValue=rt,tt!==null)if(He(tt.value,rt)){if(tt.children===et.children&&!Wf.current){_=$i(a,_,$);break e}}else for(tt=_.child,tt!==null&&(tt.return=_);tt!==null;){var nt=tt.dependencies;if(nt!==null){rt=tt.child;for(var it=nt.firstContext;it!==null;){if(it.context===_e){if(tt.tag===1){it=ch(-1,$&-$),it.tag=2;var at=tt.updateQueue;if(at!==null){at=at.shared;var st=at.pending;st===null?it.next=it:(it.next=st.next,st.next=it),at.pending=it}}tt.lanes|=$,it=tt.alternate,it!==null&&(it.lanes|=$),Sg(tt.return,$,_),nt.lanes|=$;break}it=it.next}}else if(tt.tag===10)rt=tt.type===_.type?null:tt.child;else if(tt.tag===18){if(rt=tt.return,rt===null)throw Error(p$5(341));rt.lanes|=$,nt=rt.alternate,nt!==null&&(nt.lanes|=$),Sg(rt,$,_),rt=tt.sibling}else rt=tt.child;if(rt!==null)rt.return=tt;else for(rt=tt;rt!==null;){if(rt===_){rt=null;break}if(tt=rt.sibling,tt!==null){tt.return=rt.return,rt=tt;break}rt=rt.return}tt=rt}Yi(a,_,et.children,$),_=_.child}return _;case 9:return et=_.type,_e=_.pendingProps.children,Tg(_,$),et=Vg(et),_e=_e(et),_.flags|=1,Yi(a,_,_e,$),_.child;case 14:return _e=_.type,et=Lg(_e,_.pendingProps),et=Lg(_e.type,et),aj(a,_,_e,et,$);case 15:return cj(a,_,_.type,_.pendingProps,$);case 17:return _e=_.type,et=_.pendingProps,et=_.elementType===_e?et:Lg(_e,et),jj(a,_),_.tag=1,Zf(_e)?(a=!0,cg(_)):a=!1,Tg(_,$),ph(_,_e,et),rh(_,_e,et,$),kj(null,_,_e,!0,a,$);case 19:return yj(a,_,$);case 22:return ej(a,_,$)}throw Error(p$5(156,_.tag))};function Gk(a,_){return ac(a,_)}function al(a,_,$,_e){this.tag=a,this.key=$,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=_,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_e,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(a,_,$,_e){return new al(a,_,$,_e)}function bj(a){return a=a.prototype,!(!a||!a.isReactComponent)}function $k(a){if(typeof a=="function")return bj(a)?1:0;if(a!=null){if(a=a.$$typeof,a===Da)return 11;if(a===Ga)return 14}return 2}function wh(a,_){var $=a.alternate;return $===null?($=Bg(a.tag,_,a.key,a.mode),$.elementType=a.elementType,$.type=a.type,$.stateNode=a.stateNode,$.alternate=a,a.alternate=$):($.pendingProps=_,$.type=a.type,$.flags=0,$.subtreeFlags=0,$.deletions=null),$.flags=a.flags&14680064,$.childLanes=a.childLanes,$.lanes=a.lanes,$.child=a.child,$.memoizedProps=a.memoizedProps,$.memoizedState=a.memoizedState,$.updateQueue=a.updateQueue,_=a.dependencies,$.dependencies=_===null?null:{lanes:_.lanes,firstContext:_.firstContext},$.sibling=a.sibling,$.index=a.index,$.ref=a.ref,$}function yh(a,_,$,_e,et,tt){var rt=2;if(_e=a,typeof a=="function")bj(a)&&(rt=1);else if(typeof a=="string")rt=5;else e:switch(a){case ya:return Ah$1($.children,et,tt,_);case za:rt=8,et|=8;break;case Aa:return a=Bg(12,$,_,et|2),a.elementType=Aa,a.lanes=tt,a;case Ea:return a=Bg(13,$,_,et),a.elementType=Ea,a.lanes=tt,a;case Fa:return a=Bg(19,$,_,et),a.elementType=Fa,a.lanes=tt,a;case Ia:return qj($,et,tt,_);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ba:rt=10;break e;case Ca:rt=9;break e;case Da:rt=11;break e;case Ga:rt=14;break e;case Ha:rt=16,_e=null;break e}throw Error(p$5(130,a==null?a:typeof a,""))}return _=Bg(rt,$,_,et),_.elementType=a,_.type=_e,_.lanes=tt,_}function Ah$1(a,_,$,_e){return a=Bg(7,a,_e,_),a.lanes=$,a}function qj(a,_,$,_e){return a=Bg(22,a,_e,_),a.elementType=Ia,a.lanes=$,a.stateNode={isHidden:!1},a}function xh(a,_,$){return a=Bg(6,a,null,_),a.lanes=$,a}function zh$1(a,_,$){return _=Bg(4,a.children!==null?a.children:[],a.key,_),_.lanes=$,_.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},_}function bl(a,_,$,_e,et){this.tag=_,this.containerInfo=a,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=_e,this.onRecoverableError=et,this.mutableSourceEagerHydrationData=null}function cl(a,_,$,_e,et,tt,rt,nt,it){return a=new bl(a,_,$,nt,it),_===1?(_=1,tt===!0&&(_|=8)):_=0,tt=Bg(3,null,null,_),a.current=tt,tt.stateNode=a,tt.memoizedState={element:_e,isDehydrated:$,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(tt),a}function dl(a,_,$){var _e=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:_e==null?null:""+_e,children:a,containerInfo:_,implementation:$}}function el(a){if(!a)return Vf;a=a._reactInternals;e:{if(Vb(a)!==a||a.tag!==1)throw Error(p$5(170));var _=a;do{switch(_.tag){case 3:_=_.stateNode.context;break e;case 1:if(Zf(_.type)){_=_.stateNode.__reactInternalMemoizedMergedChildContext;break e}}_=_.return}while(_!==null);throw Error(p$5(171))}if(a.tag===1){var $=a.type;if(Zf($))return bg(a,$,_)}return _}function fl(a,_,$,_e,et,tt,rt,nt,it){return a=cl($,_e,!0,a,et,tt,rt,nt,it),a.context=el(null),$=a.current,_e=L(),et=lh($),tt=ch(_e,et),tt.callback=_??null,dh($,tt,et),a.current.lanes=et,Ac(a,et,_e),Ek(a,_e),a}function gl(a,_,$,_e){var et=_.current,tt=L(),rt=lh(et);return $=el($),_.context===null?_.context=$:_.pendingContext=$,_=ch(tt,rt),_.payload={element:a},_e=_e===void 0?null:_e,_e!==null&&(_.callback=_e),a=dh(et,_,rt),a!==null&&(mh(a,et,rt,tt),eh(a,et,rt)),rt}function hl(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function il$1(a,_){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var $=a.retryLane;a.retryLane=$!==0&&$<_?$:_}}function jl(a,_){il$1(a,_),(a=a.alternate)&&il$1(a,_)}function kl$1(){return null}var ll=typeof reportError=="function"?reportError:function(a){console.error(a)};function ml(a){this._internalRoot=a}nl.prototype.render=ml.prototype.render=function(a){var _=this._internalRoot;if(_===null)throw Error(p$5(409));gl(a,_,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var _=a.containerInfo;Sk(function(){gl(null,a,null,null)}),_[uf]=null}};function nl(a){this._internalRoot=a}nl.prototype.unstable_scheduleHydration=function(a){if(a){var _=Hc();a={blockedOn:null,target:a,priority:_};for(var $=0;$<Qc.length&&_!==0&&_<Qc[$].priority;$++);Qc.splice($,0,a),$===0&&Vc(a)}};function ol(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function pl(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(a,_,$,_e,et){if(et){if(typeof _e=="function"){var tt=_e;_e=function(){var at=hl(rt);tt.call(at)}}var rt=fl(_,_e,a,0,null,!1,!1,"",ql);return a._reactRootContainer=rt,a[uf]=rt.current,sf(a.nodeType===8?a.parentNode:a),Sk(),rt}for(;et=a.lastChild;)a.removeChild(et);if(typeof _e=="function"){var nt=_e;_e=function(){var at=hl(it);nt.call(at)}}var it=cl(a,0,!1,null,null,!1,!1,"",ql);return a._reactRootContainer=it,a[uf]=it.current,sf(a.nodeType===8?a.parentNode:a),Sk(function(){gl(_,it,$,_e)}),it}function sl$1(a,_,$,_e,et){var tt=$._reactRootContainer;if(tt){var rt=tt;if(typeof et=="function"){var nt=et;et=function(){var it=hl(rt);nt.call(it)}}gl(_,rt,a,et)}else rt=rl($,_,a,et,_e);return hl(rt)}Ec=function(a){switch(a.tag){case 3:var _=a.stateNode;if(_.current.memoizedState.isDehydrated){var $=tc(_.pendingLanes);$!==0&&(Cc(_,$|1),Ek(_,B()),!(K&6)&&(Hj=B()+500,jg()))}break;case 13:Sk(function(){var _e=Zg(a,1);if(_e!==null){var et=L();mh(_e,a,1,et)}}),jl(a,1)}};Fc=function(a){if(a.tag===13){var _=Zg(a,134217728);if(_!==null){var $=L();mh(_,a,134217728,$)}jl(a,134217728)}};Gc=function(a){if(a.tag===13){var _=lh(a),$=Zg(a,_);if($!==null){var _e=L();mh($,a,_,_e)}jl(a,_)}};Hc=function(){return C};Ic=function(a,_){var $=C;try{return C=a,_()}finally{C=$}};yb=function(a,_,$){switch(_){case"input":if(bb(a,$),_=$.name,$.type==="radio"&&_!=null){for($=a;$.parentNode;)$=$.parentNode;for($=$.querySelectorAll("input[name="+JSON.stringify(""+_)+'][type="radio"]'),_=0;_<$.length;_++){var _e=$[_];if(_e!==a&&_e.form===a.form){var et=Db(_e);if(!et)throw Error(p$5(90));Wa(_e),bb(_e,et)}}}break;case"textarea":ib(a,$);break;case"select":_=$.value,_!=null&&fb(a,!!$.multiple,_,!1)}};Gb$1=Rk;Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=Zb(a),a===null?null:a.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||kl$1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl;reactDom_production_min.createPortal=function(a,_){var $=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(_))throw Error(p$5(200));return dl(a,_,null,$)};reactDom_production_min.createRoot=function(a,_){if(!ol(a))throw Error(p$5(299));var $=!1,_e="",et=ll;return _!=null&&(_.unstable_strictMode===!0&&($=!0),_.identifierPrefix!==void 0&&(_e=_.identifierPrefix),_.onRecoverableError!==void 0&&(et=_.onRecoverableError)),_=cl(a,1,!1,null,null,$,!1,_e,et),a[uf]=_.current,sf(a.nodeType===8?a.parentNode:a),new ml(_)};reactDom_production_min.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var _=a._reactInternals;if(_===void 0)throw typeof a.render=="function"?Error(p$5(188)):(a=Object.keys(a).join(","),Error(p$5(268,a)));return a=Zb(_),a=a===null?null:a.stateNode,a};reactDom_production_min.flushSync=function(a){return Sk(a)};reactDom_production_min.hydrate=function(a,_,$){if(!pl(_))throw Error(p$5(200));return sl$1(null,a,_,!0,$)};reactDom_production_min.hydrateRoot=function(a,_,$){if(!ol(a))throw Error(p$5(405));var _e=$!=null&&$.hydratedSources||null,et=!1,tt="",rt=ll;if($!=null&&($.unstable_strictMode===!0&&(et=!0),$.identifierPrefix!==void 0&&(tt=$.identifierPrefix),$.onRecoverableError!==void 0&&(rt=$.onRecoverableError)),_=fl(_,null,a,1,$??null,et,!1,tt,rt),a[uf]=_.current,sf(a),_e)for(a=0;a<_e.length;a++)$=_e[a],et=$._getVersion,et=et($._source),_.mutableSourceEagerHydrationData==null?_.mutableSourceEagerHydrationData=[$,et]:_.mutableSourceEagerHydrationData.push($,et);return new nl(_)};reactDom_production_min.render=function(a,_,$){if(!pl(_))throw Error(p$5(200));return sl$1(null,a,_,!1,$)};reactDom_production_min.unmountComponentAtNode=function(a){if(!pl(a))throw Error(p$5(40));return a._reactRootContainer?(Sk(function(){sl$1(null,null,a,!1,function(){a._reactRootContainer=null,a[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Rk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(a,_,$,_e){if(!pl($))throw Error(p$5(200));if(a==null||a._reactInternals===void 0)throw Error(p$5(38));return sl$1(a,_,$,!1,_e)};reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(a){console.error(a)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var createRoot,m$2=reactDomExports;createRoot=m$2.createRoot,m$2.hydrateRoot;var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},isServer=typeof window>"u"||"Deno"in globalThis;function noop$2(){}function functionalUpdate(a,_){return typeof a=="function"?a(_):a}function isValidTimeout(a){return typeof a=="number"&&a>=0&&a!==1/0}function timeUntilStale(a,_){return Math.max(a+(_||0)-Date.now(),0)}function resolveStaleTime(a,_){return typeof a=="function"?a(_):a}function resolveEnabled(a,_){return typeof a=="function"?a(_):a}function matchQuery(a,_){const{type:$="all",exact:_e,fetchStatus:et,predicate:tt,queryKey:rt,stale:nt}=a;if(rt){if(_e){if(_.queryHash!==hashQueryKeyByOptions(rt,_.options))return!1}else if(!partialMatchKey(_.queryKey,rt))return!1}if($!=="all"){const it=_.isActive();if($==="active"&&!it||$==="inactive"&&it)return!1}return!(typeof nt=="boolean"&&_.isStale()!==nt||et&&et!==_.state.fetchStatus||tt&&!tt(_))}function matchMutation(a,_){const{exact:$,status:_e,predicate:et,mutationKey:tt}=a;if(tt){if(!_.options.mutationKey)return!1;if($){if(hashKey(_.options.mutationKey)!==hashKey(tt))return!1}else if(!partialMatchKey(_.options.mutationKey,tt))return!1}return!(_e&&_.state.status!==_e||et&&!et(_))}function hashQueryKeyByOptions(a,_){return((_==null?void 0:_.queryKeyHashFn)||hashKey)(a)}function hashKey(a){return JSON.stringify(a,(_,$)=>isPlainObject($)?Object.keys($).sort().reduce((_e,et)=>(_e[et]=$[et],_e),{}):$)}function partialMatchKey(a,_){return a===_?!0:typeof a!=typeof _?!1:a&&_&&typeof a=="object"&&typeof _=="object"?!Object.keys(_).some($=>!partialMatchKey(a[$],_[$])):!1}function replaceEqualDeep(a,_){if(a===_)return a;const $=isPlainArray(a)&&isPlainArray(_);if($||isPlainObject(a)&&isPlainObject(_)){const _e=$?a:Object.keys(a),et=_e.length,tt=$?_:Object.keys(_),rt=tt.length,nt=$?[]:{};let it=0;for(let at=0;at<rt;at++){const st=$?at:tt[at];(!$&&_e.includes(st)||$)&&a[st]===void 0&&_[st]===void 0?(nt[st]=void 0,it++):(nt[st]=replaceEqualDeep(a[st],_[st]),nt[st]===a[st]&&a[st]!==void 0&&it++)}return et===rt&&it===et?a:nt}return _}function shallowEqualObjects(a,_){if(!_||Object.keys(a).length!==Object.keys(_).length)return!1;for(const $ in a)if(a[$]!==_[$])return!1;return!0}function isPlainArray(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function isPlainObject(a){if(!hasObjectPrototype(a))return!1;const _=a.constructor;if(_===void 0)return!0;const $=_.prototype;return!(!hasObjectPrototype($)||!$.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function hasObjectPrototype(a){return Object.prototype.toString.call(a)==="[object Object]"}function sleep(a){return new Promise(_=>{setTimeout(_,a)})}function replaceData(a,_,$){return typeof $.structuralSharing=="function"?$.structuralSharing(a,_):$.structuralSharing!==!1?replaceEqualDeep(a,_):_}function addToEnd(a,_,$=0){const _e=[...a,_];return $&&_e.length>$?_e.slice(1):_e}function addToStart(a,_,$=0){const _e=[_,...a];return $&&_e.length>$?_e.slice(0,-1):_e}var skipToken=Symbol();function ensureQueryFn(a,_){return!a.queryFn&&(_!=null&&_.initialPromise)?()=>_.initialPromise:!a.queryFn||a.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}var On,En,Zn,No,FocusManager=(No=class extends Subscribable{constructor(){super();ur(this,On);ur(this,En);ur(this,Zn);ar(this,Zn,_=>{if(!isServer&&window.addEventListener){const $=()=>_();return window.addEventListener("visibilitychange",$,!1),()=>{window.removeEventListener("visibilitychange",$)}}})}onSubscribe(){Ft(this,En)||this.setEventListener(Ft(this,Zn))}onUnsubscribe(){var _;this.hasListeners()||((_=Ft(this,En))==null||_.call(this),ar(this,En,void 0))}setEventListener(_){var $;ar(this,Zn,_),($=Ft(this,En))==null||$.call(this),ar(this,En,_(_e=>{typeof _e=="boolean"?this.setFocused(_e):this.onFocus()}))}setFocused(_){Ft(this,On)!==_&&(ar(this,On,_),this.onFocus())}onFocus(){const _=this.isFocused();this.listeners.forEach($=>{$(_)})}isFocused(){var _;return typeof Ft(this,On)=="boolean"?Ft(this,On):((_=globalThis.document)==null?void 0:_.visibilityState)!=="hidden"}},On=new WeakMap,En=new WeakMap,Zn=new WeakMap,No),focusManager=new FocusManager,_i,_n,na,Io,OnlineManager=(Io=class extends Subscribable{constructor(){super();ur(this,_i,!0);ur(this,_n);ur(this,na);ar(this,na,_=>{if(!isServer&&window.addEventListener){const $=()=>_(!0),_e=()=>_(!1);return window.addEventListener("online",$,!1),window.addEventListener("offline",_e,!1),()=>{window.removeEventListener("online",$),window.removeEventListener("offline",_e)}}})}onSubscribe(){Ft(this,_n)||this.setEventListener(Ft(this,na))}onUnsubscribe(){var _;this.hasListeners()||((_=Ft(this,_n))==null||_.call(this),ar(this,_n,void 0))}setEventListener(_){var $;ar(this,na,_),($=Ft(this,_n))==null||$.call(this),ar(this,_n,_(this.setOnline.bind(this)))}setOnline(_){Ft(this,_i)!==_&&(ar(this,_i,_),this.listeners.forEach(_e=>{_e(_)}))}isOnline(){return Ft(this,_i)}},_i=new WeakMap,_n=new WeakMap,na=new WeakMap,Io),onlineManager=new OnlineManager;function pendingThenable(){let a,_;const $=new Promise((et,tt)=>{a=et,_=tt});$.status="pending",$.catch(()=>{});function _e(et){Object.assign($,et),delete $.resolve,delete $.reject}return $.resolve=et=>{_e({status:"fulfilled",value:et}),a(et)},$.reject=et=>{_e({status:"rejected",reason:et}),_(et)},$}function defaultRetryDelay(a){return Math.min(1e3*2**a,3e4)}function canFetch(a){return(a??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function isCancelledError(a){return a instanceof CancelledError}function createRetryer(a){let _=!1,$=0,_e=!1,et;const tt=pendingThenable(),rt=dt=>{var gt;_e||(ot(new CancelledError(dt)),(gt=a.abort)==null||gt.call(a))},nt=()=>{_=!0},it=()=>{_=!1},at=()=>focusManager.isFocused()&&(a.networkMode==="always"||onlineManager.isOnline())&&a.canRun(),st=()=>canFetch(a.networkMode)&&a.canRun(),ut=dt=>{var gt;_e||(_e=!0,(gt=a.onSuccess)==null||gt.call(a,dt),et==null||et(),tt.resolve(dt))},ot=dt=>{var gt;_e||(_e=!0,(gt=a.onError)==null||gt.call(a,dt),et==null||et(),tt.reject(dt))},pt=()=>new Promise(dt=>{var gt;et=lt=>{(_e||at())&&dt(lt)},(gt=a.onPause)==null||gt.call(a)}).then(()=>{var dt;et=void 0,_e||(dt=a.onContinue)==null||dt.call(a)}),ht=()=>{if(_e)return;let dt;const gt=$===0?a.initialPromise:void 0;try{dt=gt??a.fn()}catch(lt){dt=Promise.reject(lt)}Promise.resolve(dt).then(ut).catch(lt=>{var Et;if(_e)return;const ft=a.retry??(isServer?0:3),ct=a.retryDelay??defaultRetryDelay,mt=typeof ct=="function"?ct($,lt):ct,yt=ft===!0||typeof ft=="number"&&$<ft||typeof ft=="function"&&ft($,lt);if(_||!yt){ot(lt);return}$++,(Et=a.onFail)==null||Et.call(a,$,lt),sleep(mt).then(()=>at()?void 0:pt()).then(()=>{_?ot(lt):ht()})})};return{promise:tt,cancel:rt,continue:()=>(et==null||et(),tt),cancelRetry:nt,continueRetry:it,canStart:st,start:()=>(st()?ht():pt().then(ht),tt)}}function createNotifyManager(){let a=[],_=0,$=nt=>{nt()},_e=nt=>{nt()},et=nt=>setTimeout(nt,0);const tt=nt=>{_?a.push(nt):et(()=>{$(nt)})},rt=()=>{const nt=a;a=[],nt.length&&et(()=>{_e(()=>{nt.forEach(it=>{$(it)})})})};return{batch:nt=>{let it;_++;try{it=nt()}finally{_--,_||rt()}return it},batchCalls:nt=>(...it)=>{tt(()=>{nt(...it)})},schedule:tt,setNotifyFunction:nt=>{$=nt},setBatchNotifyFunction:nt=>{_e=nt},setScheduler:nt=>{et=nt}}}var notifyManager=createNotifyManager(),Nn,Do,Removable=(Do=class{constructor(){ur(this,Nn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&ar(this,Nn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(isServer?1/0:5*60*1e3))}clearGcTimeout(){Ft(this,Nn)&&(clearTimeout(Ft(this,Nn)),ar(this,Nn,void 0))}},Nn=new WeakMap,Do),ga,xa,Xr,Vr,ds,In,en,hn,Lo,Query=(Lo=class extends Removable{constructor(_){super();ur(this,en);ur(this,ga);ur(this,xa);ur(this,Xr);ur(this,Vr);ur(this,ds);ur(this,In);ar(this,In,!1),ar(this,ds,_.defaultOptions),this.setOptions(_.options),this.observers=[],ar(this,Xr,_.cache),this.queryKey=_.queryKey,this.queryHash=_.queryHash,ar(this,ga,getDefaultState$1(this.options)),this.state=_.state??Ft(this,ga),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var _;return(_=Ft(this,Vr))==null?void 0:_.promise}setOptions(_){this.options={...Ft(this,ds),..._},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Ft(this,Xr).remove(this)}setData(_,$){const _e=replaceData(this.state.data,_,this.options);return xr(this,en,hn).call(this,{data:_e,type:"success",dataUpdatedAt:$==null?void 0:$.updatedAt,manual:$==null?void 0:$.manual}),_e}setState(_,$){xr(this,en,hn).call(this,{type:"setState",state:_,setStateOptions:$})}cancel(_){var _e,et;const $=(_e=Ft(this,Vr))==null?void 0:_e.promise;return(et=Ft(this,Vr))==null||et.cancel(_),$?$.then(noop$2).catch(noop$2):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ft(this,ga))}isActive(){return this.observers.some(_=>resolveEnabled(_.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(_=>_.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(_=0){return this.state.isInvalidated||this.state.data===void 0||!timeUntilStale(this.state.dataUpdatedAt,_)}onFocus(){var $;const _=this.observers.find(_e=>_e.shouldFetchOnWindowFocus());_==null||_.refetch({cancelRefetch:!1}),($=Ft(this,Vr))==null||$.continue()}onOnline(){var $;const _=this.observers.find(_e=>_e.shouldFetchOnReconnect());_==null||_.refetch({cancelRefetch:!1}),($=Ft(this,Vr))==null||$.continue()}addObserver(_){this.observers.includes(_)||(this.observers.push(_),this.clearGcTimeout(),Ft(this,Xr).notify({type:"observerAdded",query:this,observer:_}))}removeObserver(_){this.observers.includes(_)&&(this.observers=this.observers.filter($=>$!==_),this.observers.length||(Ft(this,Vr)&&(Ft(this,In)?Ft(this,Vr).cancel({revert:!0}):Ft(this,Vr).cancelRetry()),this.scheduleGc()),Ft(this,Xr).notify({type:"observerRemoved",query:this,observer:_}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||xr(this,en,hn).call(this,{type:"invalidate"})}fetch(_,$){var it,at,st;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&($!=null&&$.cancelRefetch))this.cancel({silent:!0});else if(Ft(this,Vr))return Ft(this,Vr).continueRetry(),Ft(this,Vr).promise}if(_&&this.setOptions(_),!this.options.queryFn){const ut=this.observers.find(ot=>ot.options.queryFn);ut&&this.setOptions(ut.options)}const _e=new AbortController,et=ut=>{Object.defineProperty(ut,"signal",{enumerable:!0,get:()=>(ar(this,In,!0),_e.signal)})},tt=()=>{const ut=ensureQueryFn(this.options,$),ot={queryKey:this.queryKey,meta:this.meta};return et(ot),ar(this,In,!1),this.options.persister?this.options.persister(ut,ot,this):ut(ot)},rt={fetchOptions:$,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:tt};et(rt),(it=this.options.behavior)==null||it.onFetch(rt,this),ar(this,xa,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((at=rt.fetchOptions)==null?void 0:at.meta))&&xr(this,en,hn).call(this,{type:"fetch",meta:(st=rt.fetchOptions)==null?void 0:st.meta});const nt=ut=>{var ot,pt,ht,dt;isCancelledError(ut)&&ut.silent||xr(this,en,hn).call(this,{type:"error",error:ut}),isCancelledError(ut)||((pt=(ot=Ft(this,Xr).config).onError)==null||pt.call(ot,ut,this),(dt=(ht=Ft(this,Xr).config).onSettled)==null||dt.call(ht,this.state.data,ut,this)),this.scheduleGc()};return ar(this,Vr,createRetryer({initialPromise:$==null?void 0:$.initialPromise,fn:rt.fetchFn,abort:_e.abort.bind(_e),onSuccess:ut=>{var ot,pt,ht,dt;if(ut===void 0){nt(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(ut)}catch(gt){nt(gt);return}(pt=(ot=Ft(this,Xr).config).onSuccess)==null||pt.call(ot,ut,this),(dt=(ht=Ft(this,Xr).config).onSettled)==null||dt.call(ht,ut,this.state.error,this),this.scheduleGc()},onError:nt,onFail:(ut,ot)=>{xr(this,en,hn).call(this,{type:"failed",failureCount:ut,error:ot})},onPause:()=>{xr(this,en,hn).call(this,{type:"pause"})},onContinue:()=>{xr(this,en,hn).call(this,{type:"continue"})},retry:rt.options.retry,retryDelay:rt.options.retryDelay,networkMode:rt.options.networkMode,canRun:()=>!0})),Ft(this,Vr).start()}},ga=new WeakMap,xa=new WeakMap,Xr=new WeakMap,Vr=new WeakMap,ds=new WeakMap,In=new WeakMap,en=new WeakSet,hn=function(_){const $=_e=>{switch(_.type){case"failed":return{..._e,fetchFailureCount:_.failureCount,fetchFailureReason:_.error};case"pause":return{..._e,fetchStatus:"paused"};case"continue":return{..._e,fetchStatus:"fetching"};case"fetch":return{..._e,...fetchState(_e.data,this.options),fetchMeta:_.meta??null};case"success":return{..._e,data:_.data,dataUpdateCount:_e.dataUpdateCount+1,dataUpdatedAt:_.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!_.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const et=_.error;return isCancelledError(et)&&et.revert&&Ft(this,xa)?{...Ft(this,xa),fetchStatus:"idle"}:{..._e,error:et,errorUpdateCount:_e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:_e.fetchFailureCount+1,fetchFailureReason:et,fetchStatus:"idle",status:"error"};case"invalidate":return{..._e,isInvalidated:!0};case"setState":return{..._e,..._.state}}};this.state=$(this.state),notifyManager.batch(()=>{this.observers.forEach(_e=>{_e.onQueryUpdate()}),Ft(this,Xr).notify({query:this,type:"updated",action:_})})},Lo);function fetchState(a,_){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(_.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function getDefaultState$1(a){const _=typeof a.initialData=="function"?a.initialData():a.initialData,$=_!==void 0,_e=$?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:_,dataUpdateCount:0,dataUpdatedAt:$?_e??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:$?"success":"pending",fetchStatus:"idle"}}var an,Fo,QueryCache=(Fo=class extends Subscribable{constructor(_={}){super();ur(this,an);this.config=_,ar(this,an,new Map)}build(_,$,_e){const et=$.queryKey,tt=$.queryHash??hashQueryKeyByOptions(et,$);let rt=this.get(tt);return rt||(rt=new Query({cache:this,queryKey:et,queryHash:tt,options:_.defaultQueryOptions($),state:_e,defaultOptions:_.getQueryDefaults(et)}),this.add(rt)),rt}add(_){Ft(this,an).has(_.queryHash)||(Ft(this,an).set(_.queryHash,_),this.notify({type:"added",query:_}))}remove(_){const $=Ft(this,an).get(_.queryHash);$&&(_.destroy(),$===_&&Ft(this,an).delete(_.queryHash),this.notify({type:"removed",query:_}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(_=>{this.remove(_)})})}get(_){return Ft(this,an).get(_)}getAll(){return[...Ft(this,an).values()]}find(_){const $={exact:!0,..._};return this.getAll().find(_e=>matchQuery($,_e))}findAll(_={}){const $=this.getAll();return Object.keys(_).length>0?$.filter(_e=>matchQuery(_,_e)):$}notify(_){notifyManager.batch(()=>{this.listeners.forEach($=>{$(_)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(_=>{_.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(_=>{_.onOnline()})})}},an=new WeakMap,Fo),sn,Gr,Dn,on,xn,jo,Mutation=(jo=class extends Removable{constructor(_){super();ur(this,on);ur(this,sn);ur(this,Gr);ur(this,Dn);this.mutationId=_.mutationId,ar(this,Gr,_.mutationCache),ar(this,sn,[]),this.state=_.state||getDefaultState(),this.setOptions(_.options),this.scheduleGc()}setOptions(_){this.options=_,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(_){Ft(this,sn).includes(_)||(Ft(this,sn).push(_),this.clearGcTimeout(),Ft(this,Gr).notify({type:"observerAdded",mutation:this,observer:_}))}removeObserver(_){ar(this,sn,Ft(this,sn).filter($=>$!==_)),this.scheduleGc(),Ft(this,Gr).notify({type:"observerRemoved",mutation:this,observer:_})}optionalRemove(){Ft(this,sn).length||(this.state.status==="pending"?this.scheduleGc():Ft(this,Gr).remove(this))}continue(){var _;return((_=Ft(this,Dn))==null?void 0:_.continue())??this.execute(this.state.variables)}async execute(_){var et,tt,rt,nt,it,at,st,ut,ot,pt,ht,dt,gt,lt,ft,ct,mt,yt,Et,St;ar(this,Dn,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(_):Promise.reject(new Error("No mutationFn found")),onFail:(At,Mt)=>{xr(this,on,xn).call(this,{type:"failed",failureCount:At,error:Mt})},onPause:()=>{xr(this,on,xn).call(this,{type:"pause"})},onContinue:()=>{xr(this,on,xn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ft(this,Gr).canRun(this)}));const $=this.state.status==="pending",_e=!Ft(this,Dn).canStart();try{if(!$){xr(this,on,xn).call(this,{type:"pending",variables:_,isPaused:_e}),await((tt=(et=Ft(this,Gr).config).onMutate)==null?void 0:tt.call(et,_,this));const Mt=await((nt=(rt=this.options).onMutate)==null?void 0:nt.call(rt,_));Mt!==this.state.context&&xr(this,on,xn).call(this,{type:"pending",context:Mt,variables:_,isPaused:_e})}const At=await Ft(this,Dn).start();return await((at=(it=Ft(this,Gr).config).onSuccess)==null?void 0:at.call(it,At,_,this.state.context,this)),await((ut=(st=this.options).onSuccess)==null?void 0:ut.call(st,At,_,this.state.context)),await((pt=(ot=Ft(this,Gr).config).onSettled)==null?void 0:pt.call(ot,At,null,this.state.variables,this.state.context,this)),await((dt=(ht=this.options).onSettled)==null?void 0:dt.call(ht,At,null,_,this.state.context)),xr(this,on,xn).call(this,{type:"success",data:At}),At}catch(At){try{throw await((lt=(gt=Ft(this,Gr).config).onError)==null?void 0:lt.call(gt,At,_,this.state.context,this)),await((ct=(ft=this.options).onError)==null?void 0:ct.call(ft,At,_,this.state.context)),await((yt=(mt=Ft(this,Gr).config).onSettled)==null?void 0:yt.call(mt,void 0,At,this.state.variables,this.state.context,this)),await((St=(Et=this.options).onSettled)==null?void 0:St.call(Et,void 0,At,_,this.state.context)),At}finally{xr(this,on,xn).call(this,{type:"error",error:At})}}finally{Ft(this,Gr).runNext(this)}}},sn=new WeakMap,Gr=new WeakMap,Dn=new WeakMap,on=new WeakSet,xn=function(_){const $=_e=>{switch(_.type){case"failed":return{..._e,failureCount:_.failureCount,failureReason:_.error};case"pause":return{..._e,isPaused:!0};case"continue":return{..._e,isPaused:!1};case"pending":return{..._e,context:_.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:_.isPaused,status:"pending",variables:_.variables,submittedAt:Date.now()};case"success":return{..._e,data:_.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{..._e,data:void 0,error:_.error,failureCount:_e.failureCount+1,failureReason:_.error,isPaused:!1,status:"error"}}};this.state=$(this.state),notifyManager.batch(()=>{Ft(this,sn).forEach(_e=>{_e.onMutationUpdate(_)}),Ft(this,Gr).notify({mutation:this,type:"updated",action:_})})},jo);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 pn,tn,fs,$o,MutationCache=($o=class extends Subscribable{constructor(_={}){super();ur(this,pn);ur(this,tn);ur(this,fs);this.config=_,ar(this,pn,new Set),ar(this,tn,new Map),ar(this,fs,0)}build(_,$,_e){const et=new Mutation({mutationCache:this,mutationId:++Ss(this,fs)._,options:_.defaultMutationOptions($),state:_e});return this.add(et),et}add(_){Ft(this,pn).add(_);const $=scopeFor(_);if(typeof $=="string"){const _e=Ft(this,tn).get($);_e?_e.push(_):Ft(this,tn).set($,[_])}this.notify({type:"added",mutation:_})}remove(_){if(Ft(this,pn).delete(_)){const $=scopeFor(_);if(typeof $=="string"){const _e=Ft(this,tn).get($);if(_e)if(_e.length>1){const et=_e.indexOf(_);et!==-1&&_e.splice(et,1)}else _e[0]===_&&Ft(this,tn).delete($)}}this.notify({type:"removed",mutation:_})}canRun(_){const $=scopeFor(_);if(typeof $=="string"){const _e=Ft(this,tn).get($),et=_e==null?void 0:_e.find(tt=>tt.state.status==="pending");return!et||et===_}else return!0}runNext(_){var _e;const $=scopeFor(_);if(typeof $=="string"){const et=(_e=Ft(this,tn).get($))==null?void 0:_e.find(tt=>tt!==_&&tt.state.isPaused);return(et==null?void 0:et.continue())??Promise.resolve()}else return Promise.resolve()}clear(){notifyManager.batch(()=>{Ft(this,pn).forEach(_=>{this.notify({type:"removed",mutation:_})}),Ft(this,pn).clear(),Ft(this,tn).clear()})}getAll(){return Array.from(Ft(this,pn))}find(_){const $={exact:!0,..._};return this.getAll().find(_e=>matchMutation($,_e))}findAll(_={}){return this.getAll().filter($=>matchMutation(_,$))}notify(_){notifyManager.batch(()=>{this.listeners.forEach($=>{$(_)})})}resumePausedMutations(){const _=this.getAll().filter($=>$.state.isPaused);return notifyManager.batch(()=>Promise.all(_.map($=>$.continue().catch(noop$2))))}},pn=new WeakMap,tn=new WeakMap,fs=new WeakMap,$o);function scopeFor(a){var _;return(_=a.options.scope)==null?void 0:_.id}function infiniteQueryBehavior(a){return{onFetch:(_,$)=>{var st,ut,ot,pt,ht;const _e=_.options,et=(ot=(ut=(st=_.fetchOptions)==null?void 0:st.meta)==null?void 0:ut.fetchMore)==null?void 0:ot.direction,tt=((pt=_.state.data)==null?void 0:pt.pages)||[],rt=((ht=_.state.data)==null?void 0:ht.pageParams)||[];let nt={pages:[],pageParams:[]},it=0;const at=async()=>{let dt=!1;const gt=ct=>{Object.defineProperty(ct,"signal",{enumerable:!0,get:()=>(_.signal.aborted?dt=!0:_.signal.addEventListener("abort",()=>{dt=!0}),_.signal)})},lt=ensureQueryFn(_.options,_.fetchOptions),ft=async(ct,mt,yt)=>{if(dt)return Promise.reject();if(mt==null&&ct.pages.length)return Promise.resolve(ct);const Et={queryKey:_.queryKey,pageParam:mt,direction:yt?"backward":"forward",meta:_.options.meta};gt(Et);const St=await lt(Et),{maxPages:At}=_.options,Mt=yt?addToStart:addToEnd;return{pages:Mt(ct.pages,St,At),pageParams:Mt(ct.pageParams,mt,At)}};if(et&&tt.length){const ct=et==="backward",mt=ct?getPreviousPageParam:getNextPageParam,yt={pages:tt,pageParams:rt},Et=mt(_e,yt);nt=await ft(yt,Et,ct)}else{const ct=a??tt.length;do{const mt=it===0?rt[0]??_e.initialPageParam:getNextPageParam(_e,nt);if(it>0&&mt==null)break;nt=await ft(nt,mt),it++}while(it<ct)}return nt};_.options.persister?_.fetchFn=()=>{var dt,gt;return(gt=(dt=_.options).persister)==null?void 0:gt.call(dt,at,{queryKey:_.queryKey,meta:_.options.meta,signal:_.signal},$)}:_.fetchFn=at}}}function getNextPageParam(a,{pages:_,pageParams:$}){const _e=_.length-1;return _.length>0?a.getNextPageParam(_[_e],_,$[_e],$):void 0}function getPreviousPageParam(a,{pages:_,pageParams:$}){var _e;return _.length>0?(_e=a.getPreviousPageParam)==null?void 0:_e.call(a,_[0],_,$[0],$):void 0}var jr,Sn,An,_a,ba,bn,$a,es,Ho,QueryClient=(Ho=class{constructor(a={}){ur(this,jr);ur(this,Sn);ur(this,An);ur(this,_a);ur(this,ba);ur(this,bn);ur(this,$a);ur(this,es);ar(this,jr,a.queryCache||new QueryCache),ar(this,Sn,a.mutationCache||new MutationCache),ar(this,An,a.defaultOptions||{}),ar(this,_a,new Map),ar(this,ba,new Map),ar(this,bn,0)}mount(){Ss(this,bn)._++,Ft(this,bn)===1&&(ar(this,$a,focusManager.subscribe(async a=>{a&&(await this.resumePausedMutations(),Ft(this,jr).onFocus())})),ar(this,es,onlineManager.subscribe(async a=>{a&&(await this.resumePausedMutations(),Ft(this,jr).onOnline())})))}unmount(){var a,_;Ss(this,bn)._--,Ft(this,bn)===0&&((a=Ft(this,$a))==null||a.call(this),ar(this,$a,void 0),(_=Ft(this,es))==null||_.call(this),ar(this,es,void 0))}isFetching(a){return Ft(this,jr).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return Ft(this,Sn).findAll({...a,status:"pending"}).length}getQueryData(a){var $;const _=this.defaultQueryOptions({queryKey:a});return($=Ft(this,jr).get(_.queryHash))==null?void 0:$.state.data}ensureQueryData(a){const _=this.defaultQueryOptions(a),$=Ft(this,jr).build(this,_),_e=$.state.data;return _e===void 0?this.fetchQuery(a):(a.revalidateIfStale&&$.isStaleByTime(resolveStaleTime(_.staleTime,$))&&this.prefetchQuery(_),Promise.resolve(_e))}getQueriesData(a){return Ft(this,jr).findAll(a).map(({queryKey:_,state:$})=>{const _e=$.data;return[_,_e]})}setQueryData(a,_,$){const _e=this.defaultQueryOptions({queryKey:a}),et=Ft(this,jr).get(_e.queryHash),tt=et==null?void 0:et.state.data,rt=functionalUpdate(_,tt);if(rt!==void 0)return Ft(this,jr).build(this,_e).setData(rt,{...$,manual:!0})}setQueriesData(a,_,$){return notifyManager.batch(()=>Ft(this,jr).findAll(a).map(({queryKey:_e})=>[_e,this.setQueryData(_e,_,$)]))}getQueryState(a){var $;const _=this.defaultQueryOptions({queryKey:a});return($=Ft(this,jr).get(_.queryHash))==null?void 0:$.state}removeQueries(a){const _=Ft(this,jr);notifyManager.batch(()=>{_.findAll(a).forEach($=>{_.remove($)})})}resetQueries(a,_){const $=Ft(this,jr),_e={type:"active",...a};return notifyManager.batch(()=>($.findAll(a).forEach(et=>{et.reset()}),this.refetchQueries(_e,_)))}cancelQueries(a,_={}){const $={revert:!0,..._},_e=notifyManager.batch(()=>Ft(this,jr).findAll(a).map(et=>et.cancel($)));return Promise.all(_e).then(noop$2).catch(noop$2)}invalidateQueries(a,_={}){return notifyManager.batch(()=>{if(Ft(this,jr).findAll(a).forEach(_e=>{_e.invalidate()}),(a==null?void 0:a.refetchType)==="none")return Promise.resolve();const $={...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"};return this.refetchQueries($,_)})}refetchQueries(a,_={}){const $={..._,cancelRefetch:_.cancelRefetch??!0},_e=notifyManager.batch(()=>Ft(this,jr).findAll(a).filter(et=>!et.isDisabled()).map(et=>{let tt=et.fetch(void 0,$);return $.throwOnError||(tt=tt.catch(noop$2)),et.state.fetchStatus==="paused"?Promise.resolve():tt}));return Promise.all(_e).then(noop$2)}fetchQuery(a){const _=this.defaultQueryOptions(a);_.retry===void 0&&(_.retry=!1);const $=Ft(this,jr).build(this,_);return $.isStaleByTime(resolveStaleTime(_.staleTime,$))?$.fetch(_):Promise.resolve($.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(noop$2).catch(noop$2)}fetchInfiniteQuery(a){return a.behavior=infiniteQueryBehavior(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(noop$2).catch(noop$2)}ensureInfiniteQueryData(a){return a.behavior=infiniteQueryBehavior(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return onlineManager.isOnline()?Ft(this,Sn).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ft(this,jr)}getMutationCache(){return Ft(this,Sn)}getDefaultOptions(){return Ft(this,An)}setDefaultOptions(a){ar(this,An,a)}setQueryDefaults(a,_){Ft(this,_a).set(hashKey(a),{queryKey:a,defaultOptions:_})}getQueryDefaults(a){const _=[...Ft(this,_a).values()],$={};return _.forEach(_e=>{partialMatchKey(a,_e.queryKey)&&Object.assign($,_e.defaultOptions)}),$}setMutationDefaults(a,_){Ft(this,ba).set(hashKey(a),{mutationKey:a,defaultOptions:_})}getMutationDefaults(a){const _=[...Ft(this,ba).values()];let $={};return _.forEach(_e=>{partialMatchKey(a,_e.mutationKey)&&($={...$,..._e.defaultOptions})}),$}defaultQueryOptions(a){if(a._defaulted)return a;const _={...Ft(this,An).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return _.queryHash||(_.queryHash=hashQueryKeyByOptions(_.queryKey,_)),_.refetchOnReconnect===void 0&&(_.refetchOnReconnect=_.networkMode!=="always"),_.throwOnError===void 0&&(_.throwOnError=!!_.suspense),!_.networkMode&&_.persister&&(_.networkMode="offlineFirst"),_.queryFn===skipToken&&(_.enabled=!1),_}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...Ft(this,An).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){Ft(this,jr).clear(),Ft(this,Sn).clear()}},jr=new WeakMap,Sn=new WeakMap,An=new WeakMap,_a=new WeakMap,ba=new WeakMap,bn=new WeakMap,$a=new WeakMap,es=new WeakMap,Ho),Yr,_r,hs,zr,Ln,ts,Cn,ln,ps,rs,ns,$n,Hn,Tn,is,Cr,cs,Us,Gs,zs,Ws,Ys,Ks,qs,Uo,Vo,QueryObserver=(Vo=class extends Subscribable{constructor(_,$){super();ur(this,Cr);ur(this,Yr);ur(this,_r);ur(this,hs);ur(this,zr);ur(this,Ln);ur(this,ts);ur(this,Cn);ur(this,ln);ur(this,ps);ur(this,rs);ur(this,ns);ur(this,$n);ur(this,Hn);ur(this,Tn);ur(this,is,new Set);this.options=$,ar(this,Yr,_),ar(this,ln,null),ar(this,Cn,pendingThenable()),this.options.experimental_prefetchInRender||Ft(this,Cn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions($)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Ft(this,_r).addObserver(this),shouldFetchOnMount(Ft(this,_r),this.options)?xr(this,Cr,cs).call(this):this.updateResult(),xr(this,Cr,Ws).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(Ft(this,_r),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(Ft(this,_r),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,xr(this,Cr,Ys).call(this),xr(this,Cr,Ks).call(this),Ft(this,_r).removeObserver(this)}setOptions(_,$){const _e=this.options,et=Ft(this,_r);if(this.options=Ft(this,Yr).defaultQueryOptions(_),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,Ft(this,_r))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");xr(this,Cr,qs).call(this),Ft(this,_r).setOptions(this.options),_e._defaulted&&!shallowEqualObjects(this.options,_e)&&Ft(this,Yr).getQueryCache().notify({type:"observerOptionsUpdated",query:Ft(this,_r),observer:this});const tt=this.hasListeners();tt&&shouldFetchOptionally(Ft(this,_r),et,this.options,_e)&&xr(this,Cr,cs).call(this),this.updateResult($),tt&&(Ft(this,_r)!==et||resolveEnabled(this.options.enabled,Ft(this,_r))!==resolveEnabled(_e.enabled,Ft(this,_r))||resolveStaleTime(this.options.staleTime,Ft(this,_r))!==resolveStaleTime(_e.staleTime,Ft(this,_r)))&&xr(this,Cr,Us).call(this);const rt=xr(this,Cr,Gs).call(this);tt&&(Ft(this,_r)!==et||resolveEnabled(this.options.enabled,Ft(this,_r))!==resolveEnabled(_e.enabled,Ft(this,_r))||rt!==Ft(this,Tn))&&xr(this,Cr,zs).call(this,rt)}getOptimisticResult(_){const $=Ft(this,Yr).getQueryCache().build(Ft(this,Yr),_),_e=this.createResult($,_);return shouldAssignObserverCurrentProperties(this,_e)&&(ar(this,zr,_e),ar(this,ts,this.options),ar(this,Ln,Ft(this,_r).state)),_e}getCurrentResult(){return Ft(this,zr)}trackResult(_,$){const _e={};return Object.keys(_).forEach(et=>{Object.defineProperty(_e,et,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(et),$==null||$(et),_[et])})}),_e}trackProp(_){Ft(this,is).add(_)}getCurrentQuery(){return Ft(this,_r)}refetch({..._}={}){return this.fetch({..._})}fetchOptimistic(_){const $=Ft(this,Yr).defaultQueryOptions(_),_e=Ft(this,Yr).getQueryCache().build(Ft(this,Yr),$);return _e.fetch().then(()=>this.createResult(_e,$))}fetch(_){return xr(this,Cr,cs).call(this,{..._,cancelRefetch:_.cancelRefetch??!0}).then(()=>(this.updateResult(),Ft(this,zr)))}createResult(_,$){var At;const _e=Ft(this,_r),et=this.options,tt=Ft(this,zr),rt=Ft(this,Ln),nt=Ft(this,ts),at=_!==_e?_.state:Ft(this,hs),{state:st}=_;let ut={...st},ot=!1,pt;if($._optimisticResults){const Mt=this.hasListeners(),Nt=!Mt&&shouldFetchOnMount(_,$),kt=Mt&&shouldFetchOptionally(_,_e,$,et);(Nt||kt)&&(ut={...ut,...fetchState(st.data,_.options)}),$._optimisticResults==="isRestoring"&&(ut.fetchStatus="idle")}let{error:ht,errorUpdatedAt:dt,status:gt}=ut;if($.select&&ut.data!==void 0)if(tt&&ut.data===(rt==null?void 0:rt.data)&&$.select===Ft(this,ps))pt=Ft(this,rs);else try{ar(this,ps,$.select),pt=$.select(ut.data),pt=replaceData(tt==null?void 0:tt.data,pt,$),ar(this,rs,pt),ar(this,ln,null)}catch(Mt){ar(this,ln,Mt)}else pt=ut.data;if($.placeholderData!==void 0&&pt===void 0&>==="pending"){let Mt;if(tt!=null&&tt.isPlaceholderData&&$.placeholderData===(nt==null?void 0:nt.placeholderData))Mt=tt.data;else if(Mt=typeof $.placeholderData=="function"?$.placeholderData((At=Ft(this,ns))==null?void 0:At.state.data,Ft(this,ns)):$.placeholderData,$.select&&Mt!==void 0)try{Mt=$.select(Mt),ar(this,ln,null)}catch(Nt){ar(this,ln,Nt)}Mt!==void 0&&(gt="success",pt=replaceData(tt==null?void 0:tt.data,Mt,$),ot=!0)}Ft(this,ln)&&(ht=Ft(this,ln),pt=Ft(this,rs),dt=Date.now(),gt="error");const lt=ut.fetchStatus==="fetching",ft=gt==="pending",ct=gt==="error",mt=ft&<,yt=pt!==void 0,St={status:gt,fetchStatus:ut.fetchStatus,isPending:ft,isSuccess:gt==="success",isError:ct,isInitialLoading:mt,isLoading:mt,data:pt,dataUpdatedAt:ut.dataUpdatedAt,error:ht,errorUpdatedAt:dt,failureCount:ut.fetchFailureCount,failureReason:ut.fetchFailureReason,errorUpdateCount:ut.errorUpdateCount,isFetched:ut.dataUpdateCount>0||ut.errorUpdateCount>0,isFetchedAfterMount:ut.dataUpdateCount>at.dataUpdateCount||ut.errorUpdateCount>at.errorUpdateCount,isFetching:lt,isRefetching:lt&&!ft,isLoadingError:ct&&!yt,isPaused:ut.fetchStatus==="paused",isPlaceholderData:ot,isRefetchError:ct&&yt,isStale:isStale(_,$),refetch:this.refetch,promise:Ft(this,Cn)};if(this.options.experimental_prefetchInRender){const Mt=Pt=>{St.status==="error"?Pt.reject(St.error):St.data!==void 0&&Pt.resolve(St.data)},Nt=()=>{const Pt=ar(this,Cn,St.promise=pendingThenable());Mt(Pt)},kt=Ft(this,Cn);switch(kt.status){case"pending":_.queryHash===_e.queryHash&&Mt(kt);break;case"fulfilled":(St.status==="error"||St.data!==kt.value)&&Nt();break;case"rejected":(St.status!=="error"||St.error!==kt.reason)&&Nt();break}}return St}updateResult(_){const $=Ft(this,zr),_e=this.createResult(Ft(this,_r),this.options);if(ar(this,Ln,Ft(this,_r).state),ar(this,ts,this.options),Ft(this,Ln).data!==void 0&&ar(this,ns,Ft(this,_r)),shallowEqualObjects(_e,$))return;ar(this,zr,_e);const et={},tt=()=>{if(!$)return!0;const{notifyOnChangeProps:rt}=this.options,nt=typeof rt=="function"?rt():rt;if(nt==="all"||!nt&&!Ft(this,is).size)return!0;const it=new Set(nt??Ft(this,is));return this.options.throwOnError&&it.add("error"),Object.keys(Ft(this,zr)).some(at=>{const st=at;return Ft(this,zr)[st]!==$[st]&&it.has(st)})};(_==null?void 0:_.listeners)!==!1&&tt()&&(et.listeners=!0),xr(this,Cr,Uo).call(this,{...et,..._})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&xr(this,Cr,Ws).call(this)}},Yr=new WeakMap,_r=new WeakMap,hs=new WeakMap,zr=new WeakMap,Ln=new WeakMap,ts=new WeakMap,Cn=new WeakMap,ln=new WeakMap,ps=new WeakMap,rs=new WeakMap,ns=new WeakMap,$n=new WeakMap,Hn=new WeakMap,Tn=new WeakMap,is=new WeakMap,Cr=new WeakSet,cs=function(_){xr(this,Cr,qs).call(this);let $=Ft(this,_r).fetch(this.options,_);return _!=null&&_.throwOnError||($=$.catch(noop$2)),$},Us=function(){xr(this,Cr,Ys).call(this);const _=resolveStaleTime(this.options.staleTime,Ft(this,_r));if(isServer||Ft(this,zr).isStale||!isValidTimeout(_))return;const _e=timeUntilStale(Ft(this,zr).dataUpdatedAt,_)+1;ar(this,$n,setTimeout(()=>{Ft(this,zr).isStale||this.updateResult()},_e))},Gs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Ft(this,_r)):this.options.refetchInterval)??!1},zs=function(_){xr(this,Cr,Ks).call(this),ar(this,Tn,_),!(isServer||resolveEnabled(this.options.enabled,Ft(this,_r))===!1||!isValidTimeout(Ft(this,Tn))||Ft(this,Tn)===0)&&ar(this,Hn,setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&xr(this,Cr,cs).call(this)},Ft(this,Tn)))},Ws=function(){xr(this,Cr,Us).call(this),xr(this,Cr,zs).call(this,xr(this,Cr,Gs).call(this))},Ys=function(){Ft(this,$n)&&(clearTimeout(Ft(this,$n)),ar(this,$n,void 0))},Ks=function(){Ft(this,Hn)&&(clearInterval(Ft(this,Hn)),ar(this,Hn,void 0))},qs=function(){const _=Ft(this,Yr).getQueryCache().build(Ft(this,Yr),this.options);if(_===Ft(this,_r))return;const $=Ft(this,_r);ar(this,_r,_),ar(this,hs,_.state),this.hasListeners()&&($==null||$.removeObserver(this),_.addObserver(this))},Uo=function(_){notifyManager.batch(()=>{_.listeners&&this.listeners.forEach($=>{$(Ft(this,zr))}),Ft(this,Yr).getQueryCache().notify({query:Ft(this,_r),type:"observerResultsUpdated"})})},Vo);function shouldLoadOnMount(a,_){return resolveEnabled(_.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&_.retryOnMount===!1)}function shouldFetchOnMount(a,_){return shouldLoadOnMount(a,_)||a.state.data!==void 0&&shouldFetchOn(a,_,_.refetchOnMount)}function shouldFetchOn(a,_,$){if(resolveEnabled(_.enabled,a)!==!1){const _e=typeof $=="function"?$(a):$;return _e==="always"||_e!==!1&&isStale(a,_)}return!1}function shouldFetchOptionally(a,_,$,_e){return(a!==_||resolveEnabled(_e.enabled,a)===!1)&&(!$.suspense||a.state.status!=="error")&&isStale(a,$)}function isStale(a,_){return resolveEnabled(_.enabled,a)!==!1&&a.isStaleByTime(resolveStaleTime(_.staleTime,a))}function shouldAssignObserverCurrentProperties(a,_){return!shallowEqualObjects(a.getCurrentResult(),_)}var wn,Pn,Kr,mn,gn,As,Qs,Bo,MutationObserver$1=(Bo=class extends Subscribable{constructor($,_e){super();ur(this,gn);ur(this,wn);ur(this,Pn);ur(this,Kr);ur(this,mn);ar(this,wn,$),this.setOptions(_e),this.bindMethods(),xr(this,gn,As).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions($){var et;const _e=this.options;this.options=Ft(this,wn).defaultMutationOptions($),shallowEqualObjects(this.options,_e)||Ft(this,wn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Ft(this,Kr),observer:this}),_e!=null&&_e.mutationKey&&this.options.mutationKey&&hashKey(_e.mutationKey)!==hashKey(this.options.mutationKey)?this.reset():((et=Ft(this,Kr))==null?void 0:et.state.status)==="pending"&&Ft(this,Kr).setOptions(this.options)}onUnsubscribe(){var $;this.hasListeners()||($=Ft(this,Kr))==null||$.removeObserver(this)}onMutationUpdate($){xr(this,gn,As).call(this),xr(this,gn,Qs).call(this,$)}getCurrentResult(){return Ft(this,Pn)}reset(){var $;($=Ft(this,Kr))==null||$.removeObserver(this),ar(this,Kr,void 0),xr(this,gn,As).call(this),xr(this,gn,Qs).call(this)}mutate($,_e){var et;return ar(this,mn,_e),(et=Ft(this,Kr))==null||et.removeObserver(this),ar(this,Kr,Ft(this,wn).getMutationCache().build(Ft(this,wn),this.options)),Ft(this,Kr).addObserver(this),Ft(this,Kr).execute($)}},wn=new WeakMap,Pn=new WeakMap,Kr=new WeakMap,mn=new WeakMap,gn=new WeakSet,As=function(){var _e;const $=((_e=Ft(this,Kr))==null?void 0:_e.state)??getDefaultState();ar(this,Pn,{...$,isPending:$.status==="pending",isSuccess:$.status==="success",isError:$.status==="error",isIdle:$.status==="idle",mutate:this.mutate,reset:this.reset})},Qs=function($){notifyManager.batch(()=>{var _e,et,tt,rt,nt,it,at,st;if(Ft(this,mn)&&this.hasListeners()){const ut=Ft(this,Pn).variables,ot=Ft(this,Pn).context;($==null?void 0:$.type)==="success"?((et=(_e=Ft(this,mn)).onSuccess)==null||et.call(_e,$.data,ut,ot),(rt=(tt=Ft(this,mn)).onSettled)==null||rt.call(tt,$.data,null,ut,ot)):($==null?void 0:$.type)==="error"&&((it=(nt=Ft(this,mn)).onError)==null||it.call(nt,$.error,ut,ot),(st=(at=Ft(this,mn)).onSettled)==null||st.call(at,void 0,$.error,ut,ot))}this.listeners.forEach(ut=>{ut(Ft(this,Pn))})})},Bo),QueryClientContext=reactExports.createContext(void 0),useQueryClient=a=>{const _=reactExports.useContext(QueryClientContext);if(!_)throw new Error("No QueryClient set, use QueryClientProvider to set one");return _},QueryClientProvider=({client:a,children:_})=>(reactExports.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:a,children:_})),IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext);function shouldThrowError(a,_){return typeof a=="function"?a(..._):!!a}function noop$1(){}var ensurePreventErrorBoundaryRetry=(a,_)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(_.isReset()||(a.retryOnMount=!1))},useClearResetErrorBoundary=a=>{reactExports.useEffect(()=>{a.clearReset()},[a])},getHasError=({result:a,errorResetBoundary:_,throwOnError:$,query:_e})=>a.isError&&!_.isReset()&&!a.isFetching&&_e&&shouldThrowError($,[a.error,_e]),ensureSuspenseTimers=a=>{const _=a.staleTime;a.suspense&&(a.staleTime=typeof _=="function"?(...$)=>Math.max(_(...$),1e3):Math.max(_??1e3,1e3),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3)))},willFetch=(a,_)=>a.isLoading&&a.isFetching&&!_,shouldSuspend=(a,_)=>(a==null?void 0:a.suspense)&&_.isPending,fetchOptimistic=(a,_,$)=>_.fetchOptimistic(a).catch(()=>{$.clearReset()});function useBaseQuery(a,_,$){var ut,ot,pt,ht,dt;const _e=useQueryClient(),et=useIsRestoring(),tt=useQueryErrorResetBoundary(),rt=_e.defaultQueryOptions(a);(ot=(ut=_e.getDefaultOptions().queries)==null?void 0:ut._experimental_beforeQuery)==null||ot.call(ut,rt),rt._optimisticResults=et?"isRestoring":"optimistic",ensureSuspenseTimers(rt),ensurePreventErrorBoundaryRetry(rt,tt),useClearResetErrorBoundary(tt);const nt=!_e.getQueryCache().get(rt.queryHash),[it]=reactExports.useState(()=>new _(_e,rt)),at=it.getOptimisticResult(rt),st=!et&&a.subscribed!==!1;if(reactExports.useSyncExternalStore(reactExports.useCallback(gt=>{const lt=st?it.subscribe(notifyManager.batchCalls(gt)):noop$1;return it.updateResult(),lt},[it,st]),()=>it.getCurrentResult(),()=>it.getCurrentResult()),reactExports.useEffect(()=>{it.setOptions(rt,{listeners:!1})},[rt,it]),shouldSuspend(rt,at))throw fetchOptimistic(rt,it,tt);if(getHasError({result:at,errorResetBoundary:tt,throwOnError:rt.throwOnError,query:_e.getQueryCache().get(rt.queryHash)}))throw at.error;if((ht=(pt=_e.getDefaultOptions().queries)==null?void 0:pt._experimental_afterQuery)==null||ht.call(pt,rt,at),rt.experimental_prefetchInRender&&!isServer&&willFetch(at,et)){const gt=nt?fetchOptimistic(rt,it,tt):(dt=_e.getQueryCache().get(rt.queryHash))==null?void 0:dt.promise;gt==null||gt.catch(noop$1).finally(()=>{it.updateResult()})}return rt.notifyOnChangeProps?at:it.trackResult(at)}function useQuery(a,_){return useBaseQuery(a,QueryObserver)}function useMutation(a,_){const $=useQueryClient(),[_e]=reactExports.useState(()=>new MutationObserver$1($,a));reactExports.useEffect(()=>{_e.setOptions(a)},[_e,a]);const et=reactExports.useSyncExternalStore(reactExports.useCallback(rt=>_e.subscribe(notifyManager.batchCalls(rt)),[_e]),()=>_e.getCurrentResult(),()=>_e.getCurrentResult()),tt=reactExports.useCallback((rt,nt)=>{_e.mutate(rt,nt).catch(noop$1)},[_e]);if(et.error&&shouldThrowError(_e.options.throwOnError,[et.error]))throw et.error;return{...et,mutate:tt,mutateAsync:et.mutate}}var lottie$1={exports:{}};(function(module,exports){typeof document<"u"&&typeof navigator<"u"&&function(a,_){module.exports=_()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(_){_useWebWorker=!!_},getWebWorker=function(){return _useWebWorker},setLocationHref=function(_){locationHref=_},getLocationHref=function(){return locationHref};function createTag(a){return document.createElement(a)}function extendPrototype(a,_){var $,_e=a.length,et;for($=0;$<_e;$+=1){et=a[$].prototype;for(var tt in et)Object.prototype.hasOwnProperty.call(et,tt)&&(_.prototype[tt]=et[tt])}}function getDescriptor(a,_){return Object.getOwnPropertyDescriptor(a,_)}function createProxyFunction(a){function _(){}return _.prototype=a,_}var audioControllerFactory=function(){function a(_){this.audios=[],this.audioFactory=_,this._volume=1,this._isMuted=!1}return a.prototype={addAudio:function($){this.audios.push($)},pause:function(){var $,_e=this.audios.length;for($=0;$<_e;$+=1)this.audios[$].pause()},resume:function(){var $,_e=this.audios.length;for($=0;$<_e;$+=1)this.audios[$].resume()},setRate:function($){var _e,et=this.audios.length;for(_e=0;_e<et;_e+=1)this.audios[_e].setRate($)},createAudio:function($){return this.audioFactory?this.audioFactory($):window.Howl?new window.Howl({src:[$]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function($){this.audioFactory=$},setVolume:function($){this._volume=$,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var $,_e=this.audios.length;for($=0;$<_e;$+=1)this.audios[$].volume(this._volume*(this._isMuted?0:1))}},function(){return new a}}(),createTypedArray=function(){function a($,_e){var et=0,tt=[],rt;switch($){case"int16":case"uint8c":rt=1;break;default:rt=1.1;break}for(et=0;et<_e;et+=1)tt.push(rt);return tt}function _($,_e){return $==="float32"?new Float32Array(_e):$==="int16"?new Int16Array(_e):$==="uint8c"?new Uint8ClampedArray(_e):a($,_e)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?_:a}();function createSizedArray(a){return Array.apply(null,{length:a})}function _typeof$6(a){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},_typeof$6(a)}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 a=["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"],_,$=a.length;for(_=0;_<$;_+=1)BMMath[a[_]]=Math[a[_]]})(),BMMath.random=Math.random,BMMath.abs=function(a){var _=_typeof$6(a);if(_==="object"&&a.length){var $=createSizedArray(a.length),_e,et=a.length;for(_e=0;_e<et;_e+=1)$[_e]=Math.abs(a[_e]);return $}return Math.abs(a)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(a){a.style.position="absolute",a.style.top=0,a.style.left=0,a.style.display="block",a.style.transformOrigin="0 0",a.style.webkitTransformOrigin="0 0",a.style.backfaceVisibility="visible",a.style.webkitBackfaceVisibility="visible",a.style.transformStyle="preserve-3d",a.style.webkitTransformStyle="preserve-3d",a.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(a,_,$,_e){this.type=a,this.currentTime=_,this.totalTime=$,this.direction=_e<0?-1:1}function BMCompleteEvent(a,_){this.type=a,this.direction=_<0?-1:1}function BMCompleteLoopEvent(a,_,$,_e){this.type=a,this.currentLoop=$,this.totalLoops=_,this.direction=_e<0?-1:1}function BMSegmentStartEvent(a,_,$){this.type=a,this.firstFrame=_,this.totalFrames=$}function BMDestroyEvent(a,_){this.type=a,this.target=_}function BMRenderFrameErrorEvent(a,_){this.type="renderFrameError",this.nativeError=a,this.currentTime=_}function BMConfigErrorEvent(a){this.type="configError",this.nativeError=a}var createElementID=function(){var a=0;return function(){return a+=1,idPrefix$1+"__lottie_element_"+a}}();function HSVtoRGB(a,_,$){var _e,et,tt,rt,nt,it,at,st;switch(rt=Math.floor(a*6),nt=a*6-rt,it=$*(1-_),at=$*(1-nt*_),st=$*(1-(1-nt)*_),rt%6){case 0:_e=$,et=st,tt=it;break;case 1:_e=at,et=$,tt=it;break;case 2:_e=it,et=$,tt=st;break;case 3:_e=it,et=at,tt=$;break;case 4:_e=st,et=it,tt=$;break;case 5:_e=$,et=it,tt=at;break}return[_e,et,tt]}function RGBtoHSV(a,_,$){var _e=Math.max(a,_,$),et=Math.min(a,_,$),tt=_e-et,rt,nt=_e===0?0:tt/_e,it=_e/255;switch(_e){case et:rt=0;break;case a:rt=_-$+tt*(_<$?6:0),rt/=6*tt;break;case _:rt=$-a+tt*2,rt/=6*tt;break;case $:rt=a-_+tt*4,rt/=6*tt;break}return[rt,nt,it]}function addSaturationToRGB(a,_){var $=RGBtoHSV(a[0]*255,a[1]*255,a[2]*255);return $[1]+=_,$[1]>1?$[1]=1:$[1]<=0&&($[1]=0),HSVtoRGB($[0],$[1],$[2])}function addBrightnessToRGB(a,_){var $=RGBtoHSV(a[0]*255,a[1]*255,a[2]*255);return $[2]+=_,$[2]>1?$[2]=1:$[2]<0&&($[2]=0),HSVtoRGB($[0],$[1],$[2])}function addHueToRGB(a,_){var $=RGBtoHSV(a[0]*255,a[1]*255,a[2]*255);return $[0]+=_/360,$[0]>1?$[0]-=1:$[0]<0&&($[0]+=1),HSVtoRGB($[0],$[1],$[2])}var rgbToHex=function(){var a=[],_,$;for(_=0;_<256;_+=1)$=_.toString(16),a[_]=$.length===1?"0"+$:$;return function(_e,et,tt){return _e<0&&(_e=0),et<0&&(et=0),tt<0&&(tt=0),"#"+a[_e]+a[et]+a[tt]}}(),setSubframeEnabled=function(_){subframeEnabled=!!_},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(_){expressionsPlugin=_},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(_){expressionsInterfaces=_},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(_){defaultCurveSegments=_},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(_){idPrefix$1=_};function createNS(a){return document.createElementNS(svgNS,a)}function _typeof$5(a){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},_typeof$5(a)}var dataManager=function(){var a=1,_=[],$,_e,et={onmessage:function(){},postMessage:function(pt){$({data:pt})}},tt={postMessage:function(pt){et.onmessage({data:pt})}};function rt(ot){if(window.Worker&&window.Blob&&getWebWorker()){var pt=new Blob(["var _workerSelf = self; self.onmessage = ",ot.toString()],{type:"text/javascript"}),ht=URL.createObjectURL(pt);return new Worker(ht)}return $=ot,et}function nt(){_e||(_e=rt(function(pt){function ht(){function gt(wt,_t){var bt,vt,xt=wt.length,Ct,Tt,It,Rt;for(vt=0;vt<xt;vt+=1)if(bt=wt[vt],"ks"in bt&&!bt.completed){if(bt.completed=!0,bt.hasMask){var Lt=bt.masksProperties;for(Tt=Lt.length,Ct=0;Ct<Tt;Ct+=1)if(Lt[Ct].pt.k.i)yt(Lt[Ct].pt.k);else for(Rt=Lt[Ct].pt.k.length,It=0;It<Rt;It+=1)Lt[Ct].pt.k[It].s&&yt(Lt[Ct].pt.k[It].s[0]),Lt[Ct].pt.k[It].e&&yt(Lt[Ct].pt.k[It].e[0])}bt.ty===0?(bt.layers=ct(bt.refId,_t),gt(bt.layers,_t)):bt.ty===4?mt(bt.shapes):bt.ty===5&&Dt(bt)}}function lt(wt,_t){if(wt){var bt=0,vt=wt.length;for(bt=0;bt<vt;bt+=1)wt[bt].t===1&&(wt[bt].data.layers=ct(wt[bt].data.refId,_t),gt(wt[bt].data.layers,_t))}}function ft(wt,_t){for(var bt=0,vt=_t.length;bt<vt;){if(_t[bt].id===wt)return _t[bt];bt+=1}return null}function ct(wt,_t){var bt=ft(wt,_t);return bt?bt.layers.__used?JSON.parse(JSON.stringify(bt.layers)):(bt.layers.__used=!0,bt.layers):null}function mt(wt){var _t,bt=wt.length,vt,xt;for(_t=bt-1;_t>=0;_t-=1)if(wt[_t].ty==="sh")if(wt[_t].ks.k.i)yt(wt[_t].ks.k);else for(xt=wt[_t].ks.k.length,vt=0;vt<xt;vt+=1)wt[_t].ks.k[vt].s&&yt(wt[_t].ks.k[vt].s[0]),wt[_t].ks.k[vt].e&&yt(wt[_t].ks.k[vt].e[0]);else wt[_t].ty==="gr"&&mt(wt[_t].it)}function yt(wt){var _t,bt=wt.i.length;for(_t=0;_t<bt;_t+=1)wt.i[_t][0]+=wt.v[_t][0],wt.i[_t][1]+=wt.v[_t][1],wt.o[_t][0]+=wt.v[_t][0],wt.o[_t][1]+=wt.v[_t][1]}function Et(wt,_t){var bt=_t?_t.split("."):[100,100,100];return wt[0]>bt[0]?!0:bt[0]>wt[0]?!1:wt[1]>bt[1]?!0:bt[1]>wt[1]?!1:wt[2]>bt[2]?!0:bt[2]>wt[2]?!1:null}var St=function(){var wt=[4,4,14];function _t(vt){var xt=vt.t.d;vt.t.d={k:[{s:xt,t:0}]}}function bt(vt){var xt,Ct=vt.length;for(xt=0;xt<Ct;xt+=1)vt[xt].ty===5&&_t(vt[xt])}return function(vt){if(Et(wt,vt.v)&&(bt(vt.layers),vt.assets)){var xt,Ct=vt.assets.length;for(xt=0;xt<Ct;xt+=1)vt.assets[xt].layers&&bt(vt.assets[xt].layers)}}}(),At=function(){var wt=[4,7,99];return function(_t){if(_t.chars&&!Et(wt,_t.v)){var bt,vt=_t.chars.length;for(bt=0;bt<vt;bt+=1){var xt=_t.chars[bt];xt.data&&xt.data.shapes&&(mt(xt.data.shapes),xt.data.ip=0,xt.data.op=99999,xt.data.st=0,xt.data.sr=1,xt.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_t.chars[bt].t||(xt.data.shapes.push({ty:"no"}),xt.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"})))}}}}(),Mt=function(){var wt=[5,7,15];function _t(vt){var xt=vt.t.p;typeof xt.a=="number"&&(xt.a={a:0,k:xt.a}),typeof xt.p=="number"&&(xt.p={a:0,k:xt.p}),typeof xt.r=="number"&&(xt.r={a:0,k:xt.r})}function bt(vt){var xt,Ct=vt.length;for(xt=0;xt<Ct;xt+=1)vt[xt].ty===5&&_t(vt[xt])}return function(vt){if(Et(wt,vt.v)&&(bt(vt.layers),vt.assets)){var xt,Ct=vt.assets.length;for(xt=0;xt<Ct;xt+=1)vt.assets[xt].layers&&bt(vt.assets[xt].layers)}}}(),Nt=function(){var wt=[4,1,9];function _t(vt){var xt,Ct=vt.length,Tt,It;for(xt=0;xt<Ct;xt+=1)if(vt[xt].ty==="gr")_t(vt[xt].it);else if(vt[xt].ty==="fl"||vt[xt].ty==="st")if(vt[xt].c.k&&vt[xt].c.k[0].i)for(It=vt[xt].c.k.length,Tt=0;Tt<It;Tt+=1)vt[xt].c.k[Tt].s&&(vt[xt].c.k[Tt].s[0]/=255,vt[xt].c.k[Tt].s[1]/=255,vt[xt].c.k[Tt].s[2]/=255,vt[xt].c.k[Tt].s[3]/=255),vt[xt].c.k[Tt].e&&(vt[xt].c.k[Tt].e[0]/=255,vt[xt].c.k[Tt].e[1]/=255,vt[xt].c.k[Tt].e[2]/=255,vt[xt].c.k[Tt].e[3]/=255);else vt[xt].c.k[0]/=255,vt[xt].c.k[1]/=255,vt[xt].c.k[2]/=255,vt[xt].c.k[3]/=255}function bt(vt){var xt,Ct=vt.length;for(xt=0;xt<Ct;xt+=1)vt[xt].ty===4&&_t(vt[xt].shapes)}return function(vt){if(Et(wt,vt.v)&&(bt(vt.layers),vt.assets)){var xt,Ct=vt.assets.length;for(xt=0;xt<Ct;xt+=1)vt.assets[xt].layers&&bt(vt.assets[xt].layers)}}}(),kt=function(){var wt=[4,4,18];function _t(vt){var xt,Ct=vt.length,Tt,It;for(xt=Ct-1;xt>=0;xt-=1)if(vt[xt].ty==="sh")if(vt[xt].ks.k.i)vt[xt].ks.k.c=vt[xt].closed;else for(It=vt[xt].ks.k.length,Tt=0;Tt<It;Tt+=1)vt[xt].ks.k[Tt].s&&(vt[xt].ks.k[Tt].s[0].c=vt[xt].closed),vt[xt].ks.k[Tt].e&&(vt[xt].ks.k[Tt].e[0].c=vt[xt].closed);else vt[xt].ty==="gr"&&_t(vt[xt].it)}function bt(vt){var xt,Ct,Tt=vt.length,It,Rt,Lt,Ht;for(Ct=0;Ct<Tt;Ct+=1){if(xt=vt[Ct],xt.hasMask){var jt=xt.masksProperties;for(Rt=jt.length,It=0;It<Rt;It+=1)if(jt[It].pt.k.i)jt[It].pt.k.c=jt[It].cl;else for(Ht=jt[It].pt.k.length,Lt=0;Lt<Ht;Lt+=1)jt[It].pt.k[Lt].s&&(jt[It].pt.k[Lt].s[0].c=jt[It].cl),jt[It].pt.k[Lt].e&&(jt[It].pt.k[Lt].e[0].c=jt[It].cl)}xt.ty===4&&_t(xt.shapes)}}return function(vt){if(Et(wt,vt.v)&&(bt(vt.layers),vt.assets)){var xt,Ct=vt.assets.length;for(xt=0;xt<Ct;xt+=1)vt.assets[xt].layers&&bt(vt.assets[xt].layers)}}}();function Pt(wt){wt.__complete||(Nt(wt),St(wt),At(wt),Mt(wt),kt(wt),gt(wt.layers,wt.assets),lt(wt.chars,wt.assets),wt.__complete=!0)}function Dt(wt){wt.t.a.length===0&&"m"in wt.t.p}var Ot={};return Ot.completeData=Pt,Ot.checkColors=Nt,Ot.checkChars=At,Ot.checkPathProperties=Mt,Ot.checkShapes=kt,Ot.completeLayers=gt,Ot}if(tt.dataManager||(tt.dataManager=ht()),tt.assetLoader||(tt.assetLoader=function(){function gt(ft){var ct=ft.getResponseHeader("content-type");return ct&&ft.responseType==="json"&&ct.indexOf("json")!==-1||ft.response&&_typeof$5(ft.response)==="object"?ft.response:ft.response&&typeof ft.response=="string"?JSON.parse(ft.response):ft.responseText?JSON.parse(ft.responseText):null}function lt(ft,ct,mt,yt){var Et,St=new XMLHttpRequest;try{St.responseType="json"}catch{}St.onreadystatechange=function(){if(St.readyState===4)if(St.status===200)Et=gt(St),mt(Et);else try{Et=gt(St),mt(Et)}catch(At){yt&&yt(At)}};try{St.open(["G","E","T"].join(""),ft,!0)}catch{St.open(["G","E","T"].join(""),ct+"/"+ft,!0)}St.send()}return{load:lt}}()),pt.data.type==="loadAnimation")tt.assetLoader.load(pt.data.path,pt.data.fullPath,function(gt){tt.dataManager.completeData(gt),tt.postMessage({id:pt.data.id,payload:gt,status:"success"})},function(){tt.postMessage({id:pt.data.id,status:"error"})});else if(pt.data.type==="complete"){var dt=pt.data.animation;tt.dataManager.completeData(dt),tt.postMessage({id:pt.data.id,payload:dt,status:"success"})}else pt.data.type==="loadData"&&tt.assetLoader.load(pt.data.path,pt.data.fullPath,function(gt){tt.postMessage({id:pt.data.id,payload:gt,status:"success"})},function(){tt.postMessage({id:pt.data.id,status:"error"})})}),_e.onmessage=function(ot){var pt=ot.data,ht=pt.id,dt=_[ht];_[ht]=null,pt.status==="success"?dt.onComplete(pt.payload):dt.onError&&dt.onError()})}function it(ot,pt){a+=1;var ht="processId_"+a;return _[ht]={onComplete:ot,onError:pt},ht}function at(ot,pt,ht){nt();var dt=it(pt,ht);_e.postMessage({type:"loadAnimation",path:ot,fullPath:window.location.origin+window.location.pathname,id:dt})}function st(ot,pt,ht){nt();var dt=it(pt,ht);_e.postMessage({type:"loadData",path:ot,fullPath:window.location.origin+window.location.pathname,id:dt})}function ut(ot,pt,ht){nt();var dt=it(pt,ht);_e.postMessage({type:"complete",animation:ot,id:dt})}return{loadAnimation:at,loadData:st,completeAnimation:ut}}(),ImagePreloader=function(){var a=function(){var lt=createTag("canvas");lt.width=1,lt.height=1;var ft=lt.getContext("2d");return ft.fillStyle="rgba(0,0,0,0)",ft.fillRect(0,0,1,1),lt}();function _(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function $(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function _e(lt,ft,ct){var mt="";if(lt.e)mt=lt.p;else if(ft){var yt=lt.p;yt.indexOf("images/")!==-1&&(yt=yt.split("/")[1]),mt=ft+yt}else mt=ct,mt+=lt.u?lt.u:"",mt+=lt.p;return mt}function et(lt){var ft=0,ct=setInterval((function(){var mt=lt.getBBox();(mt.width||ft>500)&&(this._imageLoaded(),clearInterval(ct)),ft+=1}).bind(this),50)}function tt(lt){var ft=_e(lt,this.assetsPath,this.path),ct=createNS("image");isSafari?this.testImageLoaded(ct):ct.addEventListener("load",this._imageLoaded,!1),ct.addEventListener("error",(function(){mt.img=a,this._imageLoaded()}).bind(this),!1),ct.setAttributeNS("http://www.w3.org/1999/xlink","href",ft),this._elementHelper.append?this._elementHelper.append(ct):this._elementHelper.appendChild(ct);var mt={img:ct,assetData:lt};return mt}function rt(lt){var ft=_e(lt,this.assetsPath,this.path),ct=createTag("img");ct.crossOrigin="anonymous",ct.addEventListener("load",this._imageLoaded,!1),ct.addEventListener("error",(function(){mt.img=a,this._imageLoaded()}).bind(this),!1),ct.src=ft;var mt={img:ct,assetData:lt};return mt}function nt(lt){var ft={assetData:lt},ct=_e(lt,this.assetsPath,this.path);return dataManager.loadData(ct,(function(mt){ft.img=mt,this._footageLoaded()}).bind(this),(function(){ft.img={},this._footageLoaded()}).bind(this)),ft}function it(lt,ft){this.imagesLoadedCb=ft;var ct,mt=lt.length;for(ct=0;ct<mt;ct+=1)lt[ct].layers||(!lt[ct].t||lt[ct].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(lt[ct]))):lt[ct].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(lt[ct]))))}function at(lt){this.path=lt||""}function st(lt){this.assetsPath=lt||""}function ut(lt){for(var ft=0,ct=this.images.length;ft<ct;){if(this.images[ft].assetData===lt)return this.images[ft].img;ft+=1}return null}function ot(){this.imagesLoadedCb=null,this.images.length=0}function pt(){return this.totalImages===this.loadedAssets}function ht(){return this.totalFootages===this.loadedFootagesCount}function dt(lt,ft){lt==="svg"?(this._elementHelper=ft,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function gt(){this._imageLoaded=_.bind(this),this._footageLoaded=$.bind(this),this.testImageLoaded=et.bind(this),this.createFootageData=nt.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return gt.prototype={loadAssets:it,setAssetsPath:st,setPath:at,loadedImages:pt,loadedFootages:ht,destroy:ot,getAsset:ut,createImgData:rt,createImageData:tt,imageLoaded:_,footageLoaded:$,setCacheType:dt},gt}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(_,$){if(this._cbs[_])for(var _e=this._cbs[_],et=0;et<_e.length;et+=1)_e[et]($)},addEventListener:function(_,$){return this._cbs[_]||(this._cbs[_]=[]),this._cbs[_].push($),(function(){this.removeEventListener(_,$)}).bind(this)},removeEventListener:function(_,$){if(!$)this._cbs[_]=null;else if(this._cbs[_]){for(var _e=0,et=this._cbs[_].length;_e<et;)this._cbs[_][_e]===$&&(this._cbs[_].splice(_e,1),_e-=1,et-=1),_e+=1;this._cbs[_].length||(this._cbs[_]=null)}}};var markerParser=function(){function a(_){for(var $=_.split(`\r
|
|
41
|
-
`),_e={},et,tt=0,rt=0;rt<$.length;rt+=1)et=$[rt].split(":"),et.length===2&&(_e[et[0]]=et[1].trim(),tt+=1);if(tt===0)throw new Error;return _e}return function(_){for(var $=[],_e=0;_e<_.length;_e+=1){var et=_[_e],tt={time:et.tm,duration:et.dr};try{tt.payload=JSON.parse(_[_e].cm)}catch{try{tt.payload=a(_[_e].cm)}catch{tt.payload={name:_[_e].cm}}}$.push(tt)}return $}}(),ProjectInterface=function(){function a(_){this.compositions.push(_)}return function(){function _($){for(var _e=0,et=this.compositions.length;_e<et;){if(this.compositions[_e].data&&this.compositions[_e].data.nm===$)return this.compositions[_e].prepareFrame&&this.compositions[_e].data.xt&&this.compositions[_e].prepareFrame(this.currentFrame),this.compositions[_e].compInterface;_e+=1}return null}return _.compositions=[],_.currentFrame=0,_.registerComposition=a,_}}(),renderers={},registerRenderer=function(_,$){renderers[_]=$};function getRenderer(a){return renderers[a]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var a in renderers)if(renderers[a])return a;return""}function _typeof$4(a){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},_typeof$4(a)}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(a){(a.wrapper||a.container)&&(this.wrapper=a.wrapper||a.container);var _="svg";a.animType?_=a.animType:a.renderer&&(_=a.renderer);var $=getRenderer(_);this.renderer=new $(this,a.rendererSettings),this.imagePreloader.setCacheType(_,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=_,a.loop===""||a.loop===null||a.loop===void 0||a.loop===!0?this.loop=!0:a.loop===!1?this.loop=!1:this.loop=parseInt(a.loop,10),this.autoplay="autoplay"in a?a.autoplay:!0,this.name=a.name?a.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(a,"autoloadSegments")?a.autoloadSegments:!0,this.assetsPath=a.assetsPath,this.initialSegment=a.initialSegment,a.audioFactory&&this.audioController.setAudioFactory(a.audioFactory),a.animationData?this.setupAnimation(a.animationData):a.path&&(a.path.lastIndexOf("\\")!==-1?this.path=a.path.substr(0,a.path.lastIndexOf("\\")+1):this.path=a.path.substr(0,a.path.lastIndexOf("/")+1),this.fileName=a.path.substr(a.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(a.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(a){dataManager.completeAnimation(a,this.configAnimation)},AnimationItem.prototype.setData=function(a,_){_&&_typeof$4(_)!=="object"&&(_=JSON.parse(_));var $={wrapper:a,animationData:_},_e=a.attributes;$.path=_e.getNamedItem("data-animation-path")?_e.getNamedItem("data-animation-path").value:_e.getNamedItem("data-bm-path")?_e.getNamedItem("data-bm-path").value:_e.getNamedItem("bm-path")?_e.getNamedItem("bm-path").value:"",$.animType=_e.getNamedItem("data-anim-type")?_e.getNamedItem("data-anim-type").value:_e.getNamedItem("data-bm-type")?_e.getNamedItem("data-bm-type").value:_e.getNamedItem("bm-type")?_e.getNamedItem("bm-type").value:_e.getNamedItem("data-bm-renderer")?_e.getNamedItem("data-bm-renderer").value:_e.getNamedItem("bm-renderer")?_e.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var et=_e.getNamedItem("data-anim-loop")?_e.getNamedItem("data-anim-loop").value:_e.getNamedItem("data-bm-loop")?_e.getNamedItem("data-bm-loop").value:_e.getNamedItem("bm-loop")?_e.getNamedItem("bm-loop").value:"";et==="false"?$.loop=!1:et==="true"?$.loop=!0:et!==""&&($.loop=parseInt(et,10));var tt=_e.getNamedItem("data-anim-autoplay")?_e.getNamedItem("data-anim-autoplay").value:_e.getNamedItem("data-bm-autoplay")?_e.getNamedItem("data-bm-autoplay").value:_e.getNamedItem("bm-autoplay")?_e.getNamedItem("bm-autoplay").value:!0;$.autoplay=tt!=="false",$.name=_e.getNamedItem("data-name")?_e.getNamedItem("data-name").value:_e.getNamedItem("data-bm-name")?_e.getNamedItem("data-bm-name").value:_e.getNamedItem("bm-name")?_e.getNamedItem("bm-name").value:"";var rt=_e.getNamedItem("data-anim-prerender")?_e.getNamedItem("data-anim-prerender").value:_e.getNamedItem("data-bm-prerender")?_e.getNamedItem("data-bm-prerender").value:_e.getNamedItem("bm-prerender")?_e.getNamedItem("bm-prerender").value:"";rt==="false"&&($.prerender=!1),$.path?this.setParams($):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(a){a.op>this.animationData.op&&(this.animationData.op=a.op,this.totalFrames=Math.floor(a.op-this.animationData.ip));var _=this.animationData.layers,$,_e=_.length,et=a.layers,tt,rt=et.length;for(tt=0;tt<rt;tt+=1)for($=0;$<_e;){if(_[$].id===et[tt].id){_[$]=et[tt];break}$+=1}if((a.chars||a.fonts)&&(this.renderer.globalData.fontManager.addChars(a.chars),this.renderer.globalData.fontManager.addFonts(a.fonts,this.renderer.globalData.defs)),a.assets)for(_e=a.assets.length,$=0;$<_e;$+=1)this.animationData.assets.push(a.assets[$]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(a){this.animationData=a;var _=getExpressionsPlugin();_&&_.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var a=this.animationData.segments;if(!a||a.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var _=a.shift();this.timeCompleted=_.time*this.frameRate;var $=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData($,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var a=this.animationData.segments;a||(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(a){if(this.renderer)try{this.animationData=a,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(a),a.assets||(a.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(a.assets),this.markers=markerParser(a.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(_){this.triggerConfigError(_)}},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 a=getExpressionsPlugin();a&&a.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(a,_){var $=typeof a=="number"?a:void 0,_e=typeof _=="number"?_:void 0;this.renderer.updateContainerSize($,_e)},AnimationItem.prototype.setSubframe=function(a){this.isSubframeEnabled=!!a},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(a){this.triggerRenderFrameError(a)}},AnimationItem.prototype.play=function(a){a&&this.name!==a||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(a){a&&this.name!==a||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(a){a&&this.name!==a||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(a){a&&this.name!==a||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(a){for(var _,$=0;$<this.markers.length;$+=1)if(_=this.markers[$],_.payload&&_.payload.name===a)return _;return null},AnimationItem.prototype.goToAndStop=function(a,_,$){if(!($&&this.name!==$)){var _e=Number(a);if(isNaN(_e)){var et=this.getMarkerData(a);et&&this.goToAndStop(et.time,!0)}else _?this.setCurrentRawFrameValue(a):this.setCurrentRawFrameValue(a*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(a,_,$){if(!($&&this.name!==$)){var _e=Number(a);if(isNaN(_e)){var et=this.getMarkerData(a);et&&(et.duration?this.playSegments([et.time,et.time+et.duration],!0):this.goToAndStop(et.time,!0))}else this.goToAndStop(_e,_,$);this.play()}},AnimationItem.prototype.advanceTime=function(a){if(!(this.isPaused===!0||this.isLoaded===!1)){var _=this.currentRawFrame+a*this.frameModifier,$=!1;_>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(_>this.totalFrames?_%this.totalFrames:0)||($=!0,_=this.totalFrames-1):_>=this.totalFrames?(this.playCount+=1,this.checkSegments(_%this.totalFrames)||(this.setCurrentRawFrameValue(_%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(_):_<0?this.checkSegments(_%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+_%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):($=!0,_=0)):this.setCurrentRawFrameValue(_),$&&(this.setCurrentRawFrameValue(_),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(a,_){this.playCount=0,a[1]<a[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=a[0]-a[1],this.timeCompleted=this.totalFrames,this.firstFrame=a[1],this.setCurrentRawFrameValue(this.totalFrames-.001-_)):a[1]>a[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=a[1]-a[0],this.timeCompleted=this.totalFrames,this.firstFrame=a[0],this.setCurrentRawFrameValue(.001+_)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(a,_){var $=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<a?$=a:this.currentRawFrame+this.firstFrame>_&&($=_-a)),this.firstFrame=a,this.totalFrames=_-a,this.timeCompleted=this.totalFrames,$!==-1&&this.goToAndStop($,!0)},AnimationItem.prototype.playSegments=function(a,_){if(_&&(this.segments.length=0),_typeof$4(a[0])==="object"){var $,_e=a.length;for($=0;$<_e;$+=1)this.segments.push(a[$])}else this.segments.push(a);this.segments.length&&_&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(a){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),a&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(a){return this.segments.length?(this.adjustSegment(this.segments.shift(),a),!0):!1},AnimationItem.prototype.destroy=function(a){a&&this.name!==a||!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(a){this.currentRawFrame=a,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(a){this.playSpeed=a,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(a){this.playDirection=a<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(a){this.loop=a},AnimationItem.prototype.setVolume=function(a,_){_&&this.name!==_||this.audioController.setVolume(a)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(a){a&&this.name!==a||this.audioController.mute()},AnimationItem.prototype.unmute=function(a){a&&this.name!==a||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(a){var _="";if(a.e)_=a.p;else if(this.assetsPath){var $=a.p;$.indexOf("images/")!==-1&&($=$.split("/")[1]),_=this.assetsPath+$}else _=this.path,_+=a.u?a.u:"",_+=a.p;return _},AnimationItem.prototype.getAssetData=function(a){for(var _=0,$=this.assets.length;_<$;){if(a===this.assets[_].id)return this.assets[_];_+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(a){return a?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(a,_,$){try{var _e=this.renderer.getElementByPath(a);_e.updateDocumentData(_,$)}catch{}},AnimationItem.prototype.trigger=function(a){if(this._cbs&&this._cbs[a])switch(a){case"enterFrame":this.triggerEvent(a,new BMEnterFrameEvent(a,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(a,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(a,new BMCompleteLoopEvent(a,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(a,new BMCompleteEvent(a,this.frameMult));break;case"segmentStart":this.triggerEvent(a,new BMSegmentStartEvent(a,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(a,new BMDestroyEvent(a,this));break;default:this.triggerEvent(a)}a==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(a,this.currentFrame,this.totalFrames,this.frameMult)),a==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(a,this.loop,this.playCount,this.frameMult)),a==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(a,this.frameMult)),a==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(a,this.firstFrame,this.totalFrames)),a==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(a,this))},AnimationItem.prototype.triggerRenderFrameError=function(a){var _=new BMRenderFrameErrorEvent(a,this.currentFrame);this.triggerEvent("error",_),this.onError&&this.onError.call(this,_)},AnimationItem.prototype.triggerConfigError=function(a){var _=new BMConfigErrorEvent(a,this.currentFrame);this.triggerEvent("error",_),this.onError&&this.onError.call(this,_)};var animationManager=function(){var a={},_=[],$=0,_e=0,et=0,tt=!0,rt=!1;function nt(_t){for(var bt=0,vt=_t.target;bt<_e;)_[bt].animation===vt&&(_.splice(bt,1),bt-=1,_e-=1,vt.isPaused||ut()),bt+=1}function it(_t,bt){if(!_t)return null;for(var vt=0;vt<_e;){if(_[vt].elem===_t&&_[vt].elem!==null)return _[vt].animation;vt+=1}var xt=new AnimationItem;return ot(xt,_t),xt.setData(_t,bt),xt}function at(){var _t,bt=_.length,vt=[];for(_t=0;_t<bt;_t+=1)vt.push(_[_t].animation);return vt}function st(){et+=1,Nt()}function ut(){et-=1}function ot(_t,bt){_t.addEventListener("destroy",nt),_t.addEventListener("_active",st),_t.addEventListener("_idle",ut),_.push({elem:bt,animation:_t}),_e+=1}function pt(_t){var bt=new AnimationItem;return ot(bt,null),bt.setParams(_t),bt}function ht(_t,bt){var vt;for(vt=0;vt<_e;vt+=1)_[vt].animation.setSpeed(_t,bt)}function dt(_t,bt){var vt;for(vt=0;vt<_e;vt+=1)_[vt].animation.setDirection(_t,bt)}function gt(_t){var bt;for(bt=0;bt<_e;bt+=1)_[bt].animation.play(_t)}function lt(_t){var bt=_t-$,vt;for(vt=0;vt<_e;vt+=1)_[vt].animation.advanceTime(bt);$=_t,et&&!rt?window.requestAnimationFrame(lt):tt=!0}function ft(_t){$=_t,window.requestAnimationFrame(lt)}function ct(_t){var bt;for(bt=0;bt<_e;bt+=1)_[bt].animation.pause(_t)}function mt(_t,bt,vt){var xt;for(xt=0;xt<_e;xt+=1)_[xt].animation.goToAndStop(_t,bt,vt)}function yt(_t){var bt;for(bt=0;bt<_e;bt+=1)_[bt].animation.stop(_t)}function Et(_t){var bt;for(bt=0;bt<_e;bt+=1)_[bt].animation.togglePause(_t)}function St(_t){var bt;for(bt=_e-1;bt>=0;bt-=1)_[bt].animation.destroy(_t)}function At(_t,bt,vt){var xt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ct,Tt=xt.length;for(Ct=0;Ct<Tt;Ct+=1)vt&&xt[Ct].setAttribute("data-bm-type",vt),it(xt[Ct],_t);if(bt&&Tt===0){vt||(vt="svg");var It=document.getElementsByTagName("body")[0];It.innerText="";var Rt=createTag("div");Rt.style.width="100%",Rt.style.height="100%",Rt.setAttribute("data-bm-type",vt),It.appendChild(Rt),it(Rt,_t)}}function Mt(){var _t;for(_t=0;_t<_e;_t+=1)_[_t].animation.resize()}function Nt(){!rt&&et&&tt&&(window.requestAnimationFrame(ft),tt=!1)}function kt(){rt=!0}function Pt(){rt=!1,Nt()}function Dt(_t,bt){var vt;for(vt=0;vt<_e;vt+=1)_[vt].animation.setVolume(_t,bt)}function Ot(_t){var bt;for(bt=0;bt<_e;bt+=1)_[bt].animation.mute(_t)}function wt(_t){var bt;for(bt=0;bt<_e;bt+=1)_[bt].animation.unmute(_t)}return a.registerAnimation=it,a.loadAnimation=pt,a.setSpeed=ht,a.setDirection=dt,a.play=gt,a.pause=ct,a.stop=yt,a.togglePause=Et,a.searchAnimations=At,a.resize=Mt,a.goToAndStop=mt,a.destroy=St,a.freeze=kt,a.unfreeze=Pt,a.setVolume=Dt,a.mute=Ot,a.unmute=wt,a.getRegisteredAnimations=at,a}(),BezierFactory=function(){var a={};a.getBezierEasing=$;var _={};function $(ft,ct,mt,yt,Et){var St=Et||("bez_"+ft+"_"+ct+"_"+mt+"_"+yt).replace(/\./g,"p");if(_[St])return _[St];var At=new lt([ft,ct,mt,yt]);return _[St]=At,At}var _e=4,et=.001,tt=1e-7,rt=10,nt=11,it=1/(nt-1),at=typeof Float32Array=="function";function st(ft,ct){return 1-3*ct+3*ft}function ut(ft,ct){return 3*ct-6*ft}function ot(ft){return 3*ft}function pt(ft,ct,mt){return((st(ct,mt)*ft+ut(ct,mt))*ft+ot(ct))*ft}function ht(ft,ct,mt){return 3*st(ct,mt)*ft*ft+2*ut(ct,mt)*ft+ot(ct)}function dt(ft,ct,mt,yt,Et){var St,At,Mt=0;do At=ct+(mt-ct)/2,St=pt(At,yt,Et)-ft,St>0?mt=At:ct=At;while(Math.abs(St)>tt&&++Mt<rt);return At}function gt(ft,ct,mt,yt){for(var Et=0;Et<_e;++Et){var St=ht(ct,mt,yt);if(St===0)return ct;var At=pt(ct,mt,yt)-ft;ct-=At/St}return ct}function lt(ft){this._p=ft,this._mSampleValues=at?new Float32Array(nt):new Array(nt),this._precomputed=!1,this.get=this.get.bind(this)}return lt.prototype={get:function(ct){var mt=this._p[0],yt=this._p[1],Et=this._p[2],St=this._p[3];return this._precomputed||this._precompute(),mt===yt&&Et===St?ct:ct===0?0:ct===1?1:pt(this._getTForX(ct),yt,St)},_precompute:function(){var ct=this._p[0],mt=this._p[1],yt=this._p[2],Et=this._p[3];this._precomputed=!0,(ct!==mt||yt!==Et)&&this._calcSampleValues()},_calcSampleValues:function(){for(var ct=this._p[0],mt=this._p[2],yt=0;yt<nt;++yt)this._mSampleValues[yt]=pt(yt*it,ct,mt)},_getTForX:function(ct){for(var mt=this._p[0],yt=this._p[2],Et=this._mSampleValues,St=0,At=1,Mt=nt-1;At!==Mt&&Et[At]<=ct;++At)St+=it;--At;var Nt=(ct-Et[At])/(Et[At+1]-Et[At]),kt=St+Nt*it,Pt=ht(kt,mt,yt);return Pt>=et?gt(ct,kt,mt,yt):Pt===0?kt:dt(ct,St,St+it,mt,yt)}},a}(),pooling=function(){function a(_){return _.concat(createSizedArray(_.length))}return{double:a}}(),poolFactory=function(){return function(a,_,$){var _e=0,et=a,tt=createSizedArray(et),rt={newElement:nt,release:it};function nt(){var at;return _e?(_e-=1,at=tt[_e]):at=_(),at}function it(at){_e===et&&(tt=pooling.double(tt),et*=2),$&&$(at),tt[_e]=at,_e+=1}return rt}}(),bezierLengthPool=function(){function a(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,a)}(),segmentsLengthPool=function(){function a(){return{lengths:[],totalLength:0}}function _($){var _e,et=$.lengths.length;for(_e=0;_e<et;_e+=1)bezierLengthPool.release($.lengths[_e]);$.lengths.length=0}return poolFactory(8,a,_)}();function bezFunction(){var a=Math;function _(ot,pt,ht,dt,gt,lt){var ft=ot*dt+pt*gt+ht*lt-gt*dt-lt*ot-ht*pt;return ft>-.001&&ft<.001}function $(ot,pt,ht,dt,gt,lt,ft,ct,mt){if(ht===0&<===0&&mt===0)return _(ot,pt,dt,gt,ft,ct);var yt=a.sqrt(a.pow(dt-ot,2)+a.pow(gt-pt,2)+a.pow(lt-ht,2)),Et=a.sqrt(a.pow(ft-ot,2)+a.pow(ct-pt,2)+a.pow(mt-ht,2)),St=a.sqrt(a.pow(ft-dt,2)+a.pow(ct-gt,2)+a.pow(mt-lt,2)),At;return yt>Et?yt>St?At=yt-Et-St:At=St-Et-yt:St>Et?At=St-Et-yt:At=Et-yt-St,At>-1e-4&&At<1e-4}var _e=function(){return function(ot,pt,ht,dt){var gt=getDefaultCurveSegments(),lt,ft,ct,mt,yt,Et=0,St,At=[],Mt=[],Nt=bezierLengthPool.newElement();for(ct=ht.length,lt=0;lt<gt;lt+=1){for(yt=lt/(gt-1),St=0,ft=0;ft<ct;ft+=1)mt=bmPow(1-yt,3)*ot[ft]+3*bmPow(1-yt,2)*yt*ht[ft]+3*(1-yt)*bmPow(yt,2)*dt[ft]+bmPow(yt,3)*pt[ft],At[ft]=mt,Mt[ft]!==null&&(St+=bmPow(At[ft]-Mt[ft],2)),Mt[ft]=At[ft];St&&(St=bmSqrt(St),Et+=St),Nt.percents[lt]=yt,Nt.lengths[lt]=Et}return Nt.addedLength=Et,Nt}}();function et(ot){var pt=segmentsLengthPool.newElement(),ht=ot.c,dt=ot.v,gt=ot.o,lt=ot.i,ft,ct=ot._length,mt=pt.lengths,yt=0;for(ft=0;ft<ct-1;ft+=1)mt[ft]=_e(dt[ft],dt[ft+1],gt[ft],lt[ft+1]),yt+=mt[ft].addedLength;return ht&&ct&&(mt[ft]=_e(dt[ft],dt[0],gt[ft],lt[0]),yt+=mt[ft].addedLength),pt.totalLength=yt,pt}function tt(ot){this.segmentLength=0,this.points=new Array(ot)}function rt(ot,pt){this.partialLength=ot,this.point=pt}var nt=function(){var ot={};return function(pt,ht,dt,gt){var lt=(pt[0]+"_"+pt[1]+"_"+ht[0]+"_"+ht[1]+"_"+dt[0]+"_"+dt[1]+"_"+gt[0]+"_"+gt[1]).replace(/\./g,"p");if(!ot[lt]){var ft=getDefaultCurveSegments(),ct,mt,yt,Et,St,At=0,Mt,Nt,kt=null;pt.length===2&&(pt[0]!==ht[0]||pt[1]!==ht[1])&&_(pt[0],pt[1],ht[0],ht[1],pt[0]+dt[0],pt[1]+dt[1])&&_(pt[0],pt[1],ht[0],ht[1],ht[0]+gt[0],ht[1]+gt[1])&&(ft=2);var Pt=new tt(ft);for(yt=dt.length,ct=0;ct<ft;ct+=1){for(Nt=createSizedArray(yt),St=ct/(ft-1),Mt=0,mt=0;mt<yt;mt+=1)Et=bmPow(1-St,3)*pt[mt]+3*bmPow(1-St,2)*St*(pt[mt]+dt[mt])+3*(1-St)*bmPow(St,2)*(ht[mt]+gt[mt])+bmPow(St,3)*ht[mt],Nt[mt]=Et,kt!==null&&(Mt+=bmPow(Nt[mt]-kt[mt],2));Mt=bmSqrt(Mt),At+=Mt,Pt.points[ct]=new rt(Mt,Nt),kt=Nt}Pt.segmentLength=At,ot[lt]=Pt}return ot[lt]}}();function it(ot,pt){var ht=pt.percents,dt=pt.lengths,gt=ht.length,lt=bmFloor((gt-1)*ot),ft=ot*pt.addedLength,ct=0;if(lt===gt-1||lt===0||ft===dt[lt])return ht[lt];for(var mt=dt[lt]>ft?-1:1,yt=!0;yt;)if(dt[lt]<=ft&&dt[lt+1]>ft?(ct=(ft-dt[lt])/(dt[lt+1]-dt[lt]),yt=!1):lt+=mt,lt<0||lt>=gt-1){if(lt===gt-1)return ht[lt];yt=!1}return ht[lt]+(ht[lt+1]-ht[lt])*ct}function at(ot,pt,ht,dt,gt,lt){var ft=it(gt,lt),ct=1-ft,mt=a.round((ct*ct*ct*ot[0]+(ft*ct*ct+ct*ft*ct+ct*ct*ft)*ht[0]+(ft*ft*ct+ct*ft*ft+ft*ct*ft)*dt[0]+ft*ft*ft*pt[0])*1e3)/1e3,yt=a.round((ct*ct*ct*ot[1]+(ft*ct*ct+ct*ft*ct+ct*ct*ft)*ht[1]+(ft*ft*ct+ct*ft*ft+ft*ct*ft)*dt[1]+ft*ft*ft*pt[1])*1e3)/1e3;return[mt,yt]}var st=createTypedArray("float32",8);function ut(ot,pt,ht,dt,gt,lt,ft){gt<0?gt=0:gt>1&&(gt=1);var ct=it(gt,ft);lt=lt>1?1:lt;var mt=it(lt,ft),yt,Et=ot.length,St=1-ct,At=1-mt,Mt=St*St*St,Nt=ct*St*St*3,kt=ct*ct*St*3,Pt=ct*ct*ct,Dt=St*St*At,Ot=ct*St*At+St*ct*At+St*St*mt,wt=ct*ct*At+St*ct*mt+ct*St*mt,_t=ct*ct*mt,bt=St*At*At,vt=ct*At*At+St*mt*At+St*At*mt,xt=ct*mt*At+St*mt*mt+ct*At*mt,Ct=ct*mt*mt,Tt=At*At*At,It=mt*At*At+At*mt*At+At*At*mt,Rt=mt*mt*At+At*mt*mt+mt*At*mt,Lt=mt*mt*mt;for(yt=0;yt<Et;yt+=1)st[yt*4]=a.round((Mt*ot[yt]+Nt*ht[yt]+kt*dt[yt]+Pt*pt[yt])*1e3)/1e3,st[yt*4+1]=a.round((Dt*ot[yt]+Ot*ht[yt]+wt*dt[yt]+_t*pt[yt])*1e3)/1e3,st[yt*4+2]=a.round((bt*ot[yt]+vt*ht[yt]+xt*dt[yt]+Ct*pt[yt])*1e3)/1e3,st[yt*4+3]=a.round((Tt*ot[yt]+It*ht[yt]+Rt*dt[yt]+Lt*pt[yt])*1e3)/1e3;return st}return{getSegmentsLength:et,getNewSegment:ut,getPointInSegment:at,buildBezierData:nt,pointOnLine2D:_,pointOnLine3D:$}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(a,_){var $=this.offsetTime,_e;this.propType==="multidimensional"&&(_e=createTypedArray("float32",this.pv.length));for(var et=_.lastIndex,tt=et,rt=this.keyframes.length-1,nt=!0,it,at,st;nt;){if(it=this.keyframes[tt],at=this.keyframes[tt+1],tt===rt-1&&a>=at.t-$){it.h&&(it=at),et=0;break}if(at.t-$>a){et=tt;break}tt<rt-1?tt+=1:(et=0,nt=!1)}st=this.keyframesMetadata[tt]||{};var ut,ot,pt,ht,dt,gt,lt=at.t-$,ft=it.t-$,ct;if(it.to){st.bezierData||(st.bezierData=bez.buildBezierData(it.s,at.s||it.e,it.to,it.ti));var mt=st.bezierData;if(a>=lt||a<ft){var yt=a>=lt?mt.points.length-1:0;for(ot=mt.points[yt].point.length,ut=0;ut<ot;ut+=1)_e[ut]=mt.points[yt].point[ut]}else{st.__fnct?gt=st.__fnct:(gt=BezierFactory.getBezierEasing(it.o.x,it.o.y,it.i.x,it.i.y,it.n).get,st.__fnct=gt),pt=gt((a-ft)/(lt-ft));var Et=mt.segmentLength*pt,St,At=_.lastFrame<a&&_._lastKeyframeIndex===tt?_._lastAddedLength:0;for(dt=_.lastFrame<a&&_._lastKeyframeIndex===tt?_._lastPoint:0,nt=!0,ht=mt.points.length;nt;){if(At+=mt.points[dt].partialLength,Et===0||pt===0||dt===mt.points.length-1){for(ot=mt.points[dt].point.length,ut=0;ut<ot;ut+=1)_e[ut]=mt.points[dt].point[ut];break}else if(Et>=At&&Et<At+mt.points[dt+1].partialLength){for(St=(Et-At)/mt.points[dt+1].partialLength,ot=mt.points[dt].point.length,ut=0;ut<ot;ut+=1)_e[ut]=mt.points[dt].point[ut]+(mt.points[dt+1].point[ut]-mt.points[dt].point[ut])*St;break}dt<ht-1?dt+=1:nt=!1}_._lastPoint=dt,_._lastAddedLength=At-mt.points[dt].partialLength,_._lastKeyframeIndex=tt}}else{var Mt,Nt,kt,Pt,Dt;if(rt=it.s.length,ct=at.s||it.e,this.sh&&it.h!==1)if(a>=lt)_e[0]=ct[0],_e[1]=ct[1],_e[2]=ct[2];else if(a<=ft)_e[0]=it.s[0],_e[1]=it.s[1],_e[2]=it.s[2];else{var Ot=createQuaternion(it.s),wt=createQuaternion(ct),_t=(a-ft)/(lt-ft);quaternionToEuler(_e,slerp(Ot,wt,_t))}else for(tt=0;tt<rt;tt+=1)it.h!==1&&(a>=lt?pt=1:a<ft?pt=0:(it.o.x.constructor===Array?(st.__fnct||(st.__fnct=[]),st.__fnct[tt]?gt=st.__fnct[tt]:(Mt=it.o.x[tt]===void 0?it.o.x[0]:it.o.x[tt],Nt=it.o.y[tt]===void 0?it.o.y[0]:it.o.y[tt],kt=it.i.x[tt]===void 0?it.i.x[0]:it.i.x[tt],Pt=it.i.y[tt]===void 0?it.i.y[0]:it.i.y[tt],gt=BezierFactory.getBezierEasing(Mt,Nt,kt,Pt).get,st.__fnct[tt]=gt)):st.__fnct?gt=st.__fnct:(Mt=it.o.x,Nt=it.o.y,kt=it.i.x,Pt=it.i.y,gt=BezierFactory.getBezierEasing(Mt,Nt,kt,Pt).get,it.keyframeMetadata=gt),pt=gt((a-ft)/(lt-ft)))),ct=at.s||it.e,Dt=it.h===1?it.s[tt]:it.s[tt]+(ct[tt]-it.s[tt])*pt,this.propType==="multidimensional"?_e[tt]=Dt:_e=Dt}return _.lastIndex=et,_e}function slerp(a,_,$){var _e=[],et=a[0],tt=a[1],rt=a[2],nt=a[3],it=_[0],at=_[1],st=_[2],ut=_[3],ot,pt,ht,dt,gt;return pt=et*it+tt*at+rt*st+nt*ut,pt<0&&(pt=-pt,it=-it,at=-at,st=-st,ut=-ut),1-pt>1e-6?(ot=Math.acos(pt),ht=Math.sin(ot),dt=Math.sin((1-$)*ot)/ht,gt=Math.sin($*ot)/ht):(dt=1-$,gt=$),_e[0]=dt*et+gt*it,_e[1]=dt*tt+gt*at,_e[2]=dt*rt+gt*st,_e[3]=dt*nt+gt*ut,_e}function quaternionToEuler(a,_){var $=_[0],_e=_[1],et=_[2],tt=_[3],rt=Math.atan2(2*_e*tt-2*$*et,1-2*_e*_e-2*et*et),nt=Math.asin(2*$*_e+2*et*tt),it=Math.atan2(2*$*tt-2*_e*et,1-2*$*$-2*et*et);a[0]=rt/degToRads,a[1]=nt/degToRads,a[2]=it/degToRads}function createQuaternion(a){var _=a[0]*degToRads,$=a[1]*degToRads,_e=a[2]*degToRads,et=Math.cos(_/2),tt=Math.cos($/2),rt=Math.cos(_e/2),nt=Math.sin(_/2),it=Math.sin($/2),at=Math.sin(_e/2),st=et*tt*rt-nt*it*at,ut=nt*it*rt+et*tt*at,ot=nt*tt*rt+et*it*at,pt=et*it*rt-nt*tt*at;return[ut,ot,pt,st]}function getValueAtCurrentTime(){var a=this.comp.renderedFrame-this.offsetTime,_=this.keyframes[0].t-this.offsetTime,$=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(a===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=$&&a>=$||this._caching.lastFrame<_&&a<_))){this._caching.lastFrame>=a&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var _e=this.interpolateValue(a,this._caching);this.pv=_e}return this._caching.lastFrame=a,this.pv}function setVValue(a){var _;if(this.propType==="unidimensional")_=a*this.mult,mathAbs(this.v-_)>1e-5&&(this.v=_,this._mdf=!0);else for(var $=0,_e=this.v.length;$<_e;)_=a[$]*this.mult,mathAbs(this.v[$]-_)>1e-5&&(this.v[$]=_,this._mdf=!0),$+=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 a,_=this.effectsSequence.length,$=this.kf?this.pv:this.data.k;for(a=0;a<_;a+=1)$=this.effectsSequence[a]($);this.setVValue($),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(a){this.effectsSequence.push(a),this.container.addDynamicProperty(this)}function ValueProperty(a,_,$,_e){this.propType="unidimensional",this.mult=$||1,this.data=_,this.v=$?_.k*$:_.k,this.pv=_.k,this._mdf=!1,this.elem=a,this.container=_e,this.comp=a.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(a,_,$,_e){this.propType="multidimensional",this.mult=$||1,this.data=_,this._mdf=!1,this.elem=a,this.container=_e,this.comp=a.comp,this.k=!1,this.kf=!1,this.frameId=-1;var et,tt=_.k.length;for(this.v=createTypedArray("float32",tt),this.pv=createTypedArray("float32",tt),this.vel=createTypedArray("float32",tt),et=0;et<tt;et+=1)this.v[et]=_.k[et]*this.mult,this.pv[et]=_.k[et];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(a,_,$,_e){this.propType="unidimensional",this.keyframes=_.k,this.keyframesMetadata=[],this.offsetTime=a.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=_,this.mult=$||1,this.elem=a,this.container=_e,this.comp=a.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(a,_,$,_e){this.propType="multidimensional";var et,tt=_.k.length,rt,nt,it,at;for(et=0;et<tt-1;et+=1)_.k[et].to&&_.k[et].s&&_.k[et+1]&&_.k[et+1].s&&(rt=_.k[et].s,nt=_.k[et+1].s,it=_.k[et].to,at=_.k[et].ti,(rt.length===2&&!(rt[0]===nt[0]&&rt[1]===nt[1])&&bez.pointOnLine2D(rt[0],rt[1],nt[0],nt[1],rt[0]+it[0],rt[1]+it[1])&&bez.pointOnLine2D(rt[0],rt[1],nt[0],nt[1],nt[0]+at[0],nt[1]+at[1])||rt.length===3&&!(rt[0]===nt[0]&&rt[1]===nt[1]&&rt[2]===nt[2])&&bez.pointOnLine3D(rt[0],rt[1],rt[2],nt[0],nt[1],nt[2],rt[0]+it[0],rt[1]+it[1],rt[2]+it[2])&&bez.pointOnLine3D(rt[0],rt[1],rt[2],nt[0],nt[1],nt[2],nt[0]+at[0],nt[1]+at[1],nt[2]+at[2]))&&(_.k[et].to=null,_.k[et].ti=null),rt[0]===nt[0]&&rt[1]===nt[1]&&it[0]===0&&it[1]===0&&at[0]===0&&at[1]===0&&(rt.length===2||rt[2]===nt[2]&&it[2]===0&&at[2]===0)&&(_.k[et].to=null,_.k[et].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=_,this.keyframes=_.k,this.keyframesMetadata=[],this.offsetTime=a.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=$||1,this.elem=a,this.container=_e,this.comp=a.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var st=_.k[0].s.length;for(this.v=createTypedArray("float32",st),this.pv=createTypedArray("float32",st),et=0;et<st;et+=1)this.v[et]=initFrame,this.pv[et]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",st)},this.addEffect=addEffect}var PropertyFactory=function(){function a($,_e,et,tt,rt){_e.sid&&(_e=$.globalData.slotManager.getProp(_e));var nt;if(!_e.k.length)nt=new ValueProperty($,_e,tt,rt);else if(typeof _e.k[0]=="number")nt=new MultiDimensionalProperty($,_e,tt,rt);else switch(et){case 0:nt=new KeyframedValueProperty($,_e,tt,rt);break;case 1:nt=new KeyframedMultidimensionalProperty($,_e,tt,rt);break}return nt.effectsSequence.length&&rt.addDynamicProperty(nt),nt}var _={getProp:a};return _}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(_){this.dynamicProperties.indexOf(_)===-1&&(this.dynamicProperties.push(_),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var _,$=this.dynamicProperties.length;for(_=0;_<$;_+=1)this.dynamicProperties[_].getValue(),this.dynamicProperties[_]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(_){this.container=_,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function a(){return createTypedArray("float32",2)}return poolFactory(8,a)}();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(a,_){this.c=a,this.setLength(_);for(var $=0;$<_;)this.v[$]=pointPool.newElement(),this.o[$]=pointPool.newElement(),this.i[$]=pointPool.newElement(),$+=1},ShapePath.prototype.setLength=function(a){for(;this._maxLength<a;)this.doubleArrayLength();this._length=a},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(a,_,$,_e,et){var tt;switch(this._length=Math.max(this._length,_e+1),this._length>=this._maxLength&&this.doubleArrayLength(),$){case"v":tt=this.v;break;case"i":tt=this.i;break;case"o":tt=this.o;break;default:tt=[];break}(!tt[_e]||tt[_e]&&!et)&&(tt[_e]=pointPool.newElement()),tt[_e][0]=a,tt[_e][1]=_},ShapePath.prototype.setTripleAt=function(a,_,$,_e,et,tt,rt,nt){this.setXYAt(a,_,"v",rt,nt),this.setXYAt($,_e,"o",rt,nt),this.setXYAt(et,tt,"i",rt,nt)},ShapePath.prototype.reverse=function(){var a=new ShapePath;a.setPathData(this.c,this._length);var _=this.v,$=this.o,_e=this.i,et=0;this.c&&(a.setTripleAt(_[0][0],_[0][1],_e[0][0],_e[0][1],$[0][0],$[0][1],0,!1),et=1);var tt=this._length-1,rt=this._length,nt;for(nt=et;nt<rt;nt+=1)a.setTripleAt(_[tt][0],_[tt][1],_e[tt][0],_e[tt][1],$[tt][0],$[tt][1],nt,!1),tt-=1;return a},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function a(){return new ShapePath}function _(et){var tt=et._length,rt;for(rt=0;rt<tt;rt+=1)pointPool.release(et.v[rt]),pointPool.release(et.i[rt]),pointPool.release(et.o[rt]),et.v[rt]=null,et.i[rt]=null,et.o[rt]=null;et._length=0,et.c=!1}function $(et){var tt=_e.newElement(),rt,nt=et._length===void 0?et.v.length:et._length;for(tt.setLength(nt),tt.c=et.c,rt=0;rt<nt;rt+=1)tt.setTripleAt(et.v[rt][0],et.v[rt][1],et.o[rt][0],et.o[rt][1],et.i[rt][0],et.i[rt][1],rt);return tt}var _e=poolFactory(4,a,_);return _e.clone=$,_e}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(a){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=a,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var a;for(a=0;a<this._length;a+=1)shapePool.release(this.shapes[a]);this._length=0};var shapeCollectionPool=function(){var a={newShapeCollection:et,release:tt},_=0,$=4,_e=createSizedArray($);function et(){var rt;return _?(_-=1,rt=_e[_]):rt=new ShapeCollection,rt}function tt(rt){var nt,it=rt._length;for(nt=0;nt<it;nt+=1)shapePool.release(rt.shapes[nt]);rt._length=0,_===$&&(_e=pooling.double(_e),$*=2),_e[_]=rt,_+=1}return a}(),ShapePropertyFactory=function(){var a=-999999;function _(lt,ft,ct){var mt=ct.lastIndex,yt,Et,St,At,Mt,Nt,kt,Pt,Dt,Ot=this.keyframes;if(lt<Ot[0].t-this.offsetTime)yt=Ot[0].s[0],St=!0,mt=0;else if(lt>=Ot[Ot.length-1].t-this.offsetTime)yt=Ot[Ot.length-1].s?Ot[Ot.length-1].s[0]:Ot[Ot.length-2].e[0],St=!0;else{for(var wt=mt,_t=Ot.length-1,bt=!0,vt,xt,Ct;bt&&(vt=Ot[wt],xt=Ot[wt+1],!(xt.t-this.offsetTime>lt));)wt<_t-1?wt+=1:bt=!1;if(Ct=this.keyframesMetadata[wt]||{},St=vt.h===1,mt=wt,!St){if(lt>=xt.t-this.offsetTime)Pt=1;else if(lt<vt.t-this.offsetTime)Pt=0;else{var Tt;Ct.__fnct?Tt=Ct.__fnct:(Tt=BezierFactory.getBezierEasing(vt.o.x,vt.o.y,vt.i.x,vt.i.y).get,Ct.__fnct=Tt),Pt=Tt((lt-(vt.t-this.offsetTime))/(xt.t-this.offsetTime-(vt.t-this.offsetTime)))}Et=xt.s?xt.s[0]:vt.e[0]}yt=vt.s[0]}for(Nt=ft._length,kt=yt.i[0].length,ct.lastIndex=mt,At=0;At<Nt;At+=1)for(Mt=0;Mt<kt;Mt+=1)Dt=St?yt.i[At][Mt]:yt.i[At][Mt]+(Et.i[At][Mt]-yt.i[At][Mt])*Pt,ft.i[At][Mt]=Dt,Dt=St?yt.o[At][Mt]:yt.o[At][Mt]+(Et.o[At][Mt]-yt.o[At][Mt])*Pt,ft.o[At][Mt]=Dt,Dt=St?yt.v[At][Mt]:yt.v[At][Mt]+(Et.v[At][Mt]-yt.v[At][Mt])*Pt,ft.v[At][Mt]=Dt}function $(){var lt=this.comp.renderedFrame-this.offsetTime,ft=this.keyframes[0].t-this.offsetTime,ct=this.keyframes[this.keyframes.length-1].t-this.offsetTime,mt=this._caching.lastFrame;return mt!==a&&(mt<ft&<<ft||mt>ct&<>ct)||(this._caching.lastIndex=mt<lt?this._caching.lastIndex:0,this.interpolateShape(lt,this.pv,this._caching)),this._caching.lastFrame=lt,this.pv}function _e(){this.paths=this.localShapeCollection}function et(lt,ft){if(lt._length!==ft._length||lt.c!==ft.c)return!1;var ct,mt=lt._length;for(ct=0;ct<mt;ct+=1)if(lt.v[ct][0]!==ft.v[ct][0]||lt.v[ct][1]!==ft.v[ct][1]||lt.o[ct][0]!==ft.o[ct][0]||lt.o[ct][1]!==ft.o[ct][1]||lt.i[ct][0]!==ft.i[ct][0]||lt.i[ct][1]!==ft.i[ct][1])return!1;return!0}function tt(lt){et(this.v,lt)||(this.v=shapePool.clone(lt),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function rt(){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 lt;this.kf?lt=this.pv:this.data.ks?lt=this.data.ks.k:lt=this.data.pt.k;var ft,ct=this.effectsSequence.length;for(ft=0;ft<ct;ft+=1)lt=this.effectsSequence[ft](lt);this.setVValue(lt),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function nt(lt,ft,ct){this.propType="shape",this.comp=lt.comp,this.container=lt,this.elem=lt,this.data=ft,this.k=!1,this.kf=!1,this._mdf=!1;var mt=ct===3?ft.pt.k:ft.ks.k;this.v=shapePool.clone(mt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=_e,this.effectsSequence=[]}function it(lt){this.effectsSequence.push(lt),this.container.addDynamicProperty(this)}nt.prototype.interpolateShape=_,nt.prototype.getValue=rt,nt.prototype.setVValue=tt,nt.prototype.addEffect=it;function at(lt,ft,ct){this.propType="shape",this.comp=lt.comp,this.elem=lt,this.container=lt,this.offsetTime=lt.data.st,this.keyframes=ct===3?ft.pt.k:ft.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var mt=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,mt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=a,this.reset=_e,this._caching={lastFrame:a,lastIndex:0},this.effectsSequence=[$.bind(this)]}at.prototype.getValue=rt,at.prototype.interpolateShape=_,at.prototype.setVValue=tt,at.prototype.addEffect=it;var st=function(){var lt=roundCorner;function ft(ct,mt){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=mt.d,this.elem=ct,this.comp=ct.comp,this.frameId=-1,this.initDynamicPropertyContainer(ct),this.p=PropertyFactory.getProp(ct,mt.p,1,0,this),this.s=PropertyFactory.getProp(ct,mt.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return ft.prototype={reset:_e,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var mt=this.p.v[0],yt=this.p.v[1],Et=this.s.v[0]/2,St=this.s.v[1]/2,At=this.d!==3,Mt=this.v;Mt.v[0][0]=mt,Mt.v[0][1]=yt-St,Mt.v[1][0]=At?mt+Et:mt-Et,Mt.v[1][1]=yt,Mt.v[2][0]=mt,Mt.v[2][1]=yt+St,Mt.v[3][0]=At?mt-Et:mt+Et,Mt.v[3][1]=yt,Mt.i[0][0]=At?mt-Et*lt:mt+Et*lt,Mt.i[0][1]=yt-St,Mt.i[1][0]=At?mt+Et:mt-Et,Mt.i[1][1]=yt-St*lt,Mt.i[2][0]=At?mt+Et*lt:mt-Et*lt,Mt.i[2][1]=yt+St,Mt.i[3][0]=At?mt-Et:mt+Et,Mt.i[3][1]=yt+St*lt,Mt.o[0][0]=At?mt+Et*lt:mt-Et*lt,Mt.o[0][1]=yt-St,Mt.o[1][0]=At?mt+Et:mt-Et,Mt.o[1][1]=yt+St*lt,Mt.o[2][0]=At?mt-Et*lt:mt+Et*lt,Mt.o[2][1]=yt+St,Mt.o[3][0]=At?mt-Et:mt+Et,Mt.o[3][1]=yt-St*lt}},extendPrototype([DynamicPropertyContainer],ft),ft}(),ut=function(){function lt(ft,ct){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=ft,this.comp=ft.comp,this.data=ct,this.frameId=-1,this.d=ct.d,this.initDynamicPropertyContainer(ft),ct.sy===1?(this.ir=PropertyFactory.getProp(ft,ct.ir,0,0,this),this.is=PropertyFactory.getProp(ft,ct.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(ft,ct.pt,0,0,this),this.p=PropertyFactory.getProp(ft,ct.p,1,0,this),this.r=PropertyFactory.getProp(ft,ct.r,0,degToRads,this),this.or=PropertyFactory.getProp(ft,ct.or,0,0,this),this.os=PropertyFactory.getProp(ft,ct.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 lt.prototype={reset:_e,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var ct=Math.floor(this.pt.v)*2,mt=Math.PI*2/ct,yt=!0,Et=this.or.v,St=this.ir.v,At=this.os.v,Mt=this.is.v,Nt=2*Math.PI*Et/(ct*2),kt=2*Math.PI*St/(ct*2),Pt,Dt,Ot,wt,_t=-Math.PI/2;_t+=this.r.v;var bt=this.data.d===3?-1:1;for(this.v._length=0,Pt=0;Pt<ct;Pt+=1){Dt=yt?Et:St,Ot=yt?At:Mt,wt=yt?Nt:kt;var vt=Dt*Math.cos(_t),xt=Dt*Math.sin(_t),Ct=vt===0&&xt===0?0:xt/Math.sqrt(vt*vt+xt*xt),Tt=vt===0&&xt===0?0:-vt/Math.sqrt(vt*vt+xt*xt);vt+=+this.p.v[0],xt+=+this.p.v[1],this.v.setTripleAt(vt,xt,vt-Ct*wt*Ot*bt,xt-Tt*wt*Ot*bt,vt+Ct*wt*Ot*bt,xt+Tt*wt*Ot*bt,Pt,!0),yt=!yt,_t+=mt*bt}},convertPolygonToPath:function(){var ct=Math.floor(this.pt.v),mt=Math.PI*2/ct,yt=this.or.v,Et=this.os.v,St=2*Math.PI*yt/(ct*4),At,Mt=-Math.PI*.5,Nt=this.data.d===3?-1:1;for(Mt+=this.r.v,this.v._length=0,At=0;At<ct;At+=1){var kt=yt*Math.cos(Mt),Pt=yt*Math.sin(Mt),Dt=kt===0&&Pt===0?0:Pt/Math.sqrt(kt*kt+Pt*Pt),Ot=kt===0&&Pt===0?0:-kt/Math.sqrt(kt*kt+Pt*Pt);kt+=+this.p.v[0],Pt+=+this.p.v[1],this.v.setTripleAt(kt,Pt,kt-Dt*St*Et*Nt,Pt-Ot*St*Et*Nt,kt+Dt*St*Et*Nt,Pt+Ot*St*Et*Nt,At,!0),Mt+=mt*Nt}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],lt),lt}(),ot=function(){function lt(ft,ct){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=ft,this.comp=ft.comp,this.frameId=-1,this.d=ct.d,this.initDynamicPropertyContainer(ft),this.p=PropertyFactory.getProp(ft,ct.p,1,0,this),this.s=PropertyFactory.getProp(ft,ct.s,1,0,this),this.r=PropertyFactory.getProp(ft,ct.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return lt.prototype={convertRectToPath:function(){var ct=this.p.v[0],mt=this.p.v[1],yt=this.s.v[0]/2,Et=this.s.v[1]/2,St=bmMin(yt,Et,this.r.v),At=St*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(ct+yt,mt-Et+St,ct+yt,mt-Et+St,ct+yt,mt-Et+At,0,!0),this.v.setTripleAt(ct+yt,mt+Et-St,ct+yt,mt+Et-At,ct+yt,mt+Et-St,1,!0),St!==0?(this.v.setTripleAt(ct+yt-St,mt+Et,ct+yt-St,mt+Et,ct+yt-At,mt+Et,2,!0),this.v.setTripleAt(ct-yt+St,mt+Et,ct-yt+At,mt+Et,ct-yt+St,mt+Et,3,!0),this.v.setTripleAt(ct-yt,mt+Et-St,ct-yt,mt+Et-St,ct-yt,mt+Et-At,4,!0),this.v.setTripleAt(ct-yt,mt-Et+St,ct-yt,mt-Et+At,ct-yt,mt-Et+St,5,!0),this.v.setTripleAt(ct-yt+St,mt-Et,ct-yt+St,mt-Et,ct-yt+At,mt-Et,6,!0),this.v.setTripleAt(ct+yt-St,mt-Et,ct+yt-At,mt-Et,ct+yt-St,mt-Et,7,!0)):(this.v.setTripleAt(ct-yt,mt+Et,ct-yt+At,mt+Et,ct-yt,mt+Et,2),this.v.setTripleAt(ct-yt,mt-Et,ct-yt,mt-Et+At,ct-yt,mt-Et,3))):(this.v.setTripleAt(ct+yt,mt-Et+St,ct+yt,mt-Et+At,ct+yt,mt-Et+St,0,!0),St!==0?(this.v.setTripleAt(ct+yt-St,mt-Et,ct+yt-St,mt-Et,ct+yt-At,mt-Et,1,!0),this.v.setTripleAt(ct-yt+St,mt-Et,ct-yt+At,mt-Et,ct-yt+St,mt-Et,2,!0),this.v.setTripleAt(ct-yt,mt-Et+St,ct-yt,mt-Et+St,ct-yt,mt-Et+At,3,!0),this.v.setTripleAt(ct-yt,mt+Et-St,ct-yt,mt+Et-At,ct-yt,mt+Et-St,4,!0),this.v.setTripleAt(ct-yt+St,mt+Et,ct-yt+St,mt+Et,ct-yt+At,mt+Et,5,!0),this.v.setTripleAt(ct+yt-St,mt+Et,ct+yt-At,mt+Et,ct+yt-St,mt+Et,6,!0),this.v.setTripleAt(ct+yt,mt+Et-St,ct+yt,mt+Et-St,ct+yt,mt+Et-At,7,!0)):(this.v.setTripleAt(ct-yt,mt-Et,ct-yt+At,mt-Et,ct-yt,mt-Et,1,!0),this.v.setTripleAt(ct-yt,mt+Et,ct-yt,mt+Et-At,ct-yt,mt+Et,2,!0),this.v.setTripleAt(ct+yt,mt+Et,ct+yt-At,mt+Et,ct+yt,mt+Et,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:_e},extendPrototype([DynamicPropertyContainer],lt),lt}();function pt(lt,ft,ct){var mt;if(ct===3||ct===4){var yt=ct===3?ft.pt:ft.ks,Et=yt.k;Et.length?mt=new at(lt,ft,ct):mt=new nt(lt,ft,ct)}else ct===5?mt=new ot(lt,ft):ct===6?mt=new st(lt,ft):ct===7&&(mt=new ut(lt,ft));return mt.k&<.addDynamicProperty(mt),mt}function ht(){return nt}function dt(){return at}var gt={};return gt.getShapeProp=pt,gt.getConstructorFunction=ht,gt.getKeyframedConstructorFunction=dt,gt}();/*!
|
|
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($){var a=$}Reflect.construct(e,[],s)}else{try{s.call()}catch($){a=$}e.call(s.prototype)}else{try{throw Error()}catch($){a=$}e()}}catch($){if($&&a&&typeof $.stack=="string"){for(var o=$.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 $=Array.prototype.slice.call(arguments,3);try{s.apply(i,$)}catch(et){this.onError(et)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(e){Ob=!0,Pb=e}};function Tb(e,s,i,a,o,c,g,_,b){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(e,s,i,a,o,c,g,_,b){if(Tb.apply(this,arguments),Ob){if(Ob){var $=Pb;Ob=!1,Pb=null}else throw Error(p$1(198));Qb||(Qb=!0,Rb=$)}}function Vb(e){var s=e,i=e;if(e.alternate)for(;s.return;)s=s.return;else{e=s;do s=e,s.flags&4098&&(i=s.return),e=s.return;while(e)}return s.tag===3?i:null}function Wb(e){if(e.tag===13){var s=e.memoizedState;if(s===null&&(e=e.alternate,e!==null&&(s=e.memoizedState)),s!==null)return s.dehydrated}return null}function Xb(e){if(Vb(e)!==e)throw Error(p$1(188))}function Yb(e){var s=e.alternate;if(!s){if(s=Vb(e),s===null)throw Error(p$1(188));return s!==e?null:e}for(var i=e,a=s;;){var o=i.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){i=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===i)return Xb(o),e;if(c===a)return Xb(o),s;c=c.sibling}throw Error(p$1(188))}if(i.return!==a.return)i=o,a=c;else{for(var g=!1,_=o.child;_;){if(_===i){g=!0,i=o,a=c;break}if(_===a){g=!0,a=o,i=c;break}_=_.sibling}if(!g){for(_=c.child;_;){if(_===i){g=!0,i=c,a=o;break}if(_===a){g=!0,a=c,i=o;break}_=_.sibling}if(!g)throw Error(p$1(189))}}if(i.alternate!==a)throw Error(p$1(190))}if(i.tag!==3)throw Error(p$1(188));return i.stateNode.current===i?e:s}function Zb(e){return e=Yb(e),e!==null?$b(e):null}function $b(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var s=$b(e);if(s!==null)return s;e=e.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(e){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,e,void 0,(e.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(e){return e>>>=0,e===0?32:31-(pc(e)/qc|0)|0}var rc=64,sc=4194304;function tc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uc(e,s){var i=e.pendingLanes;if(i===0)return 0;var a=0,o=e.suspendedLanes,c=e.pingedLanes,g=i&268435455;if(g!==0){var _=g&~o;_!==0?a=tc(_):(c&=g,c!==0&&(a=tc(c)))}else g=i&~o,g!==0?a=tc(g):c!==0&&(a=tc(c));if(a===0)return 0;if(s!==0&&s!==a&&!(s&o)&&(o=a&-a,c=s&-s,o>=c||o===16&&(c&4194240)!==0))return s;if(a&4&&(a|=i&16),s=e.entangledLanes,s!==0)for(e=e.entanglements,s&=a;0<s;)i=31-oc(s),o=1<<i,a|=e[i],s&=~o;return a}function vc(e,s){switch(e){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(e,s){for(var i=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes;0<c;){var g=31-oc(c),_=1<<g,b=o[g];b===-1?(!(_&i)||_&a)&&(o[g]=vc(_,s)):b<=s&&(e.expiredLanes|=_),c&=~_}}function xc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yc(){var e=rc;return rc<<=1,!(rc&4194240)&&(rc=64),e}function zc(e){for(var s=[],i=0;31>i;i++)s.push(e);return s}function Ac(e,s,i){e.pendingLanes|=s,s!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,s=31-oc(s),e[s]=i}function Bc(e,s){var i=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<i;){var o=31-oc(i),c=1<<o;s[o]=0,a[o]=-1,e[o]=-1,i&=~c}}function Cc(e,s){var i=e.entangledLanes|=s;for(e=e.entanglements;i;){var a=31-oc(i),o=1<<a;o&s|e[a]&s&&(e[a]|=s),i&=~o}}var C=0;function Dc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(e,s){switch(e){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(s.pointerId)}}function Tc(e,s,i,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:s,domEventName:i,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},s!==null&&(s=Cb(s),s!==null&&Fc(s)),e):(e.eventSystemFlags|=a,s=e.targetContainers,o!==null&&s.indexOf(o)===-1&&s.push(o),e)}function Uc(e,s,i,a,o){switch(s){case"focusin":return Lc=Tc(Lc,e,s,i,a,o),!0;case"dragenter":return Mc=Tc(Mc,e,s,i,a,o),!0;case"mouseover":return Nc=Tc(Nc,e,s,i,a,o),!0;case"pointerover":var c=o.pointerId;return Oc.set(c,Tc(Oc.get(c)||null,e,s,i,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Pc.set(c,Tc(Pc.get(c)||null,e,s,i,a,o)),!0}return!1}function Vc(e){var s=Wc(e.target);if(s!==null){var i=Vb(s);if(i!==null){if(s=i.tag,s===13){if(s=Wb(i),s!==null){e.blockedOn=s,Ic(e.priority,function(){Gc(i)});return}}else if(s===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xc(e){if(e.blockedOn!==null)return!1;for(var s=e.targetContainers;0<s.length;){var i=Yc(e.domEventName,e.eventSystemFlags,s[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var a=new i.constructor(i.type,i);wb=a,i.target.dispatchEvent(a),wb=null}else return s=Cb(i),s!==null&&Fc(s),e.blockedOn=i,!1;s.shift()}return!0}function Zc(e,s,i){Xc(e)&&i.delete(s)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(e,s){e.blockedOn===s&&(e.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(e){function s(o){return ad(o,e)}if(0<Kc.length){ad(Kc[0],e);for(var i=1;i<Kc.length;i++){var a=Kc[i];a.blockedOn===e&&(a.blockedOn=null)}}for(Lc!==null&&ad(Lc,e),Mc!==null&&ad(Mc,e),Nc!==null&&ad(Nc,e),Oc.forEach(s),Pc.forEach(s),i=0;i<Qc.length;i++)a=Qc[i],a.blockedOn===e&&(a.blockedOn=null);for(;0<Qc.length&&(i=Qc[0],i.blockedOn===null);)Vc(i),i.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(e,s,i,a){var o=C,c=cd.transition;cd.transition=null;try{C=1,fd(e,s,i,a)}finally{C=o,cd.transition=c}}function gd(e,s,i,a){var o=C,c=cd.transition;cd.transition=null;try{C=4,fd(e,s,i,a)}finally{C=o,cd.transition=c}}function fd(e,s,i,a){if(dd){var o=Yc(e,s,i,a);if(o===null)hd(e,s,a,id,i),Sc(e,a);else if(Uc(o,e,s,i,a))a.stopPropagation();else if(Sc(e,a),s&4&&-1<Rc.indexOf(e)){for(;o!==null;){var c=Cb(o);if(c!==null&&Ec(c),c=Yc(e,s,i,a),c===null&&hd(e,s,a,id,i),c===o)break;o=c}o!==null&&a.stopPropagation()}else hd(e,s,a,null,i)}}var id=null;function Yc(e,s,i,a){if(id=null,e=xb(a),e=Wc(e),e!==null)if(s=Vb(e),s===null)e=null;else if(i=s.tag,i===13){if(e=Wb(s),e!==null)return e;e=null}else if(i===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;e=null}else s!==e&&(e=null);return id=e,null}function jd(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var e,s=ld,i=s.length,a,o="value"in kd?kd.value:kd.textContent,c=o.length;for(e=0;e<i&&s[e]===o[e];e++);var g=i-e;for(a=1;a<=g&&s[i-a]===o[c-a];a++);return md=o.slice(e,1<a?1-a:void 0)}function od(e){var s=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&s===13&&(e=13)):e=s,e===10&&(e=13),32<=e||e===13?e:0}function pd(){return!0}function qd(){return!1}function rd(e){function s(i,a,o,c,g){this._reactName=i,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(i=e[_],this[_]=i?i(c):c[_]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),s}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yd&&(yd&&e.type==="mousemove"?(wd=e.screenX-yd.screenX,xd=e.screenY-yd.screenY):xd=wd=0,yd=e),wd)},movementY:function(e){return"movementY"in e?e.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(e){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(e):(e=Od[e])?!!s[e]:!1}function zd(){return Pd}var Qd=A({},ud,{key:function(e){if(e.key){var s=Md[e.key]||e.key;if(s!=="Unidentified")return s}return e.type==="keypress"?(e=od(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(e){return e.type==="keypress"?od(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?od(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be=null;ia&&"documentMode"in document&&(be=document.documentMode);var ce=ia&&"TextEvent"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=" ",fe=!1;function ge(e,s){switch(e){case"keyup":return $d.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ie=!1;function je(e,s){switch(e){case"compositionend":return he(s);case"keypress":return s.which!==32?null:(fe=!0,ee);case"textInput":return e=s.data,e===ee&&fe?null:e;default:return null}}function ke(e,s){if(ie)return e==="compositionend"||!ae&&ge(e,s)?(e=nd(),md=ld=kd=null,ie=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return de&&s.locale!=="ko"?null:s.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(e){var s=e&&e.nodeName&&e.nodeName.toLowerCase();return s==="input"?!!le[e.type]:s==="textarea"}function ne(e,s,i,a){Eb(a),s=oe(s,"onChange"),0<s.length&&(i=new td("onChange","change",null,i,a),e.push({event:i,listeners:s}))}var pe=null,qe=null;function re(e){se(e,0)}function te(e){var s=ue(e);if(Wa(s))return e}function ve(e,s){if(e==="change")return s}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(e){if(e.propertyName==="value"&&te(qe)){var s=[];ne(s,qe,e,xb(e)),Jb(re,s)}}function Ce(e,s,i){e==="focusin"?(Ae(),pe=s,qe=i,pe.attachEvent("onpropertychange",Be)):e==="focusout"&&Ae()}function De(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return te(qe)}function Ee(e,s){if(e==="click")return te(s)}function Fe(e,s){if(e==="input"||e==="change")return te(s)}function Ge(e,s){return e===s&&(e!==0||1/e===1/s)||e!==e&&s!==s}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(e,s){if(He(e,s))return!0;if(typeof e!="object"||e===null||typeof s!="object"||s===null)return!1;var i=Object.keys(e),a=Object.keys(s);if(i.length!==a.length)return!1;for(a=0;a<i.length;a++){var o=i[a];if(!ja.call(s,o)||!He(e[o],s[o]))return!1}return!0}function Je(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ke(e,s){var i=Je(e);e=0;for(var a;i;){if(i.nodeType===3){if(a=e+i.textContent.length,e<=s&&a>=s)return{node:i,offset:s-e};e=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Je(i)}}function Le(e,s){return e&&s?e===s?!0:e&&e.nodeType===3?!1:s&&s.nodeType===3?Le(e,s.parentNode):"contains"in e?e.contains(s):e.compareDocumentPosition?!!(e.compareDocumentPosition(s)&16):!1:!1}function Me(){for(var e=window,s=Xa();s instanceof e.HTMLIFrameElement;){try{var i=typeof s.contentWindow.location.href=="string"}catch{i=!1}if(i)e=s.contentWindow;else break;s=Xa(e.document)}return s}function Ne(e){var s=e&&e.nodeName&&e.nodeName.toLowerCase();return s&&(s==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||s==="textarea"||e.contentEditable==="true")}function Oe(e){var s=Me(),i=e.focusedElem,a=e.selectionRange;if(s!==i&&i&&i.ownerDocument&&Le(i.ownerDocument.documentElement,i)){if(a!==null&&Ne(i)){if(s=a.start,e=a.end,e===void 0&&(e=s),"selectionStart"in i)i.selectionStart=s,i.selectionEnd=Math.min(e,i.value.length);else if(e=(s=i.ownerDocument||document)&&s.defaultView||window,e.getSelection){e=e.getSelection();var o=i.textContent.length,c=Math.min(a.start,o);a=a.end===void 0?c:Math.min(a.end,o),!e.extend&&c>a&&(o=a,a=c,c=o),o=Ke(i,c);var g=Ke(i,a);o&&g&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(s=s.createRange(),s.setStart(o.node,o.offset),e.removeAllRanges(),c>a?(e.addRange(s),e.extend(g.node,g.offset)):(s.setEnd(g.node,g.offset),e.addRange(s)))}}for(s=[],e=i;e=e.parentNode;)e.nodeType===1&&s.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<s.length;i++)e=s[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(e,s,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Te||Qe==null||Qe!==Xa(a)||(a=Qe,"selectionStart"in a&&Ne(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Se&&Ie(Se,a)||(Se=a,a=oe(Re,"onSelect"),0<a.length&&(s=new td("onSelect","select",null,s,i),e.push({event:s,listeners:a}),s.target=Qe)))}function Ve(e,s){var i={};return i[e.toLowerCase()]=s.toLowerCase(),i["Webkit"+e]="webkit"+s,i["Moz"+e]="moz"+s,i}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(e){if(Xe[e])return Xe[e];if(!We[e])return e;var s=We[e],i;for(i in s)if(s.hasOwnProperty(i)&&i in Ye)return Xe[e]=s[i];return e}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(e,s){df.set(e,s),fa(s,[e])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(e,s,i){var a=e.type||"unknown-event";e.currentTarget=i,Ub(a,s,void 0,e),e.currentTarget=null}function se(e,s){s=(s&4)!==0;for(var i=0;i<e.length;i++){var a=e[i],o=a.event;a=a.listeners;e:{var c=void 0;if(s)for(var g=a.length-1;0<=g;g--){var _=a[g],b=_.instance,$=_.currentTarget;if(_=_.listener,b!==c&&o.isPropagationStopped())break e;nf(o,_,$),c=b}else for(g=0;g<a.length;g++){if(_=a[g],b=_.instance,$=_.currentTarget,_=_.listener,b!==c&&o.isPropagationStopped())break e;nf(o,_,$),c=b}}}if(Qb)throw e=Rb,Qb=!1,Rb=null,e}function D(e,s){var i=s[of];i===void 0&&(i=s[of]=new Set);var a=e+"__bubble";i.has(a)||(pf(s,e,2,!1),i.add(a))}function qf(e,s,i){var a=0;s&&(a|=4),pf(i,e,a,s)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(e){if(!e[rf]){e[rf]=!0,da.forEach(function(i){i!=="selectionchange"&&(mf.has(i)||qf(i,!1,e),qf(i,!0,e))});var s=e.nodeType===9?e:e.ownerDocument;s===null||s[rf]||(s[rf]=!0,qf("selectionchange",!1,s))}}function pf(e,s,i,a){switch(jd(s)){case 1:var o=ed;break;case 4:o=gd;break;default:o=fd}i=o.bind(null,s,i,e),o=void 0,!Lb||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(s,i,{capture:!0,passive:o}):e.addEventListener(s,i,!0):o!==void 0?e.addEventListener(s,i,{passive:o}):e.addEventListener(s,i,!1)}function hd(e,s,i,a,o){var c=a;if(!(s&1)&&!(s&2)&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var _=a.stateNode.containerInfo;if(_===o||_.nodeType===8&&_.parentNode===o)break;if(g===4)for(g=a.return;g!==null;){var b=g.tag;if((b===3||b===4)&&(b=g.stateNode.containerInfo,b===o||b.nodeType===8&&b.parentNode===o))return;g=g.return}for(;_!==null;){if(g=Wc(_),g===null)return;if(b=g.tag,b===5||b===6){a=c=g;continue e}_=_.parentNode}}a=a.return}Jb(function(){var $=c,et=xb(i),ot=[];e:{var rt=df.get(e);if(rt!==void 0){var at=td,it=e;switch(e){case"keypress":if(od(i)===0)break e;case"keydown":case"keyup":at=Rd;break;case"focusin":it="focus",at=Fd;break;case"focusout":it="blur",at=Fd;break;case"beforeblur":case"afterblur":at=Fd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":at=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":at=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":at=Vd;break;case $e:case af:case bf:at=Hd;break;case cf:at=Xd;break;case"scroll":at=vd;break;case"wheel":at=Zd;break;case"copy":case"cut":case"paste":at=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":at=Td}var st=(s&4)!==0,dt=!st&&e==="scroll",j=st?rt!==null?rt+"Capture":null:rt;st=[];for(var tt=$,_e;tt!==null;){_e=tt;var nt=_e.stateNode;if(_e.tag===5&&nt!==null&&(_e=nt,j!==null&&(nt=Kb(tt,j),nt!=null&&st.push(tf(tt,nt,_e)))),dt)break;tt=tt.return}0<st.length&&(rt=new at(rt,it,null,i,et),ot.push({event:rt,listeners:st}))}}if(!(s&7)){e:{if(rt=e==="mouseover"||e==="pointerover",at=e==="mouseout"||e==="pointerout",rt&&i!==wb&&(it=i.relatedTarget||i.fromElement)&&(Wc(it)||it[uf]))break e;if((at||rt)&&(rt=et.window===et?et:(rt=et.ownerDocument)?rt.defaultView||rt.parentWindow:window,at?(it=i.relatedTarget||i.toElement,at=$,it=it?Wc(it):null,it!==null&&(dt=Vb(it),it!==dt||it.tag!==5&&it.tag!==6)&&(it=null)):(at=null,it=$),at!==it)){if(st=Bd,nt="onMouseLeave",j="onMouseEnter",tt="mouse",(e==="pointerout"||e==="pointerover")&&(st=Td,nt="onPointerLeave",j="onPointerEnter",tt="pointer"),dt=at==null?rt:ue(at),_e=it==null?rt:ue(it),rt=new st(nt,tt+"leave",at,i,et),rt.target=dt,rt.relatedTarget=_e,nt=null,Wc(et)===$&&(st=new st(j,tt+"enter",it,i,et),st.target=_e,st.relatedTarget=dt,nt=st),dt=nt,at&&it)t:{for(st=at,j=it,tt=0,_e=st;_e;_e=vf(_e))tt++;for(_e=0,nt=j;nt;nt=vf(nt))_e++;for(;0<tt-_e;)st=vf(st),tt--;for(;0<_e-tt;)j=vf(j),_e--;for(;tt--;){if(st===j||j!==null&&st===j.alternate)break t;st=vf(st),j=vf(j)}st=null}else st=null;at!==null&&wf(ot,rt,at,st,!1),it!==null&&dt!==null&&wf(ot,dt,it,st,!0)}}e:{if(rt=$?ue($):window,at=rt.nodeName&&rt.nodeName.toLowerCase(),at==="select"||at==="input"&&rt.type==="file")var ut=ve;else if(me(rt))if(we)ut=Fe;else{ut=De;var ht=Ce}else(at=rt.nodeName)&&at.toLowerCase()==="input"&&(rt.type==="checkbox"||rt.type==="radio")&&(ut=Ee);if(ut&&(ut=ut(e,$))){ne(ot,ut,i,et);break e}ht&&ht(e,rt,$),e==="focusout"&&(ht=rt._wrapperState)&&ht.controlled&&rt.type==="number"&&cb(rt,"number",rt.value)}switch(ht=$?ue($):window,e){case"focusin":(me(ht)||ht.contentEditable==="true")&&(Qe=ht,Re=$,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(ot,i,et);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(ot,i,et)}var gt;if(ae)e:{switch(e){case"compositionstart":var 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&&(gt=nd()):(kd=et,ld="value"in kd?kd.value:kd.textContent,ie=!0)),ht=oe($,ft),0<ht.length&&(ft=new Ld(ft,e,null,i,et),ot.push({event:ft,listeners:ht}),gt?ft.data=gt:(gt=he(i),gt!==null&&(ft.data=gt)))),(gt=ce?je(e,i):ke(e,i))&&($=oe($,"onBeforeInput"),0<$.length&&(et=new Ld("onBeforeInput","beforeinput",null,i,et),ot.push({event:et,listeners:$}),et.data=gt))}se(ot,s)})}function tf(e,s,i){return{instance:e,listener:s,currentTarget:i}}function oe(e,s){for(var i=s+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;o.tag===5&&c!==null&&(o=c,c=Kb(e,i),c!=null&&a.unshift(tf(e,c,o)),c=Kb(e,s),c!=null&&a.push(tf(e,c,o))),e=e.return}return a}function vf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wf(e,s,i,a,o){for(var c=s._reactName,g=[];i!==null&&i!==a;){var _=i,b=_.alternate,$=_.stateNode;if(b!==null&&b===a)break;_.tag===5&&$!==null&&(_=$,o?(b=Kb(i,c),b!=null&&g.unshift(tf(i,b,_))):o||(b=Kb(i,c),b!=null&&g.push(tf(i,b,_)))),i=i.return}g.length!==0&&e.push({event:s,listeners:g})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(e){return(typeof e=="string"?e:""+e).replace(xf,`
|
|
38
|
+
`).replace(yf,"")}function Af(e,s,i){if(s=zf(s),zf(e)!==s&&i)throw Error(p$1(425))}function Bf(){}var Cf=null,Df=null;function Ef(e,s){return e==="textarea"||e==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(e){return Hf.resolve(null).then(e).catch(If)}:Ff;function If(e){setTimeout(function(){throw e})}function Kf(e,s){var i=s,a=0;do{var o=i.nextSibling;if(e.removeChild(i),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(a===0){e.removeChild(o),bd(s);return}a--}else i!=="$"&&i!=="$?"&&i!=="$!"||a++;i=o}while(i);bd(s)}function Lf(e){for(;e!=null;e=e.nextSibling){var s=e.nodeType;if(s===1||s===3)break;if(s===8){if(s=e.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return e}function Mf(e){e=e.previousSibling;for(var s=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(s===0)return e;s--}else i==="/$"&&s++}e=e.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(e){var s=e[Of];if(s)return s;for(var i=e.parentNode;i;){if(s=i[uf]||i[Of]){if(i=s.alternate,s.child!==null||i!==null&&i.child!==null)for(e=Mf(e);e!==null;){if(i=e[Of])return i;e=Mf(e)}return s}e=i,i=e.parentNode}return null}function Cb(e){return e=e[Of]||e[uf],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ue(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(p$1(33))}function Db(e){return e[Pf]||null}var Sf=[],Tf=-1;function Uf(e){return{current:e}}function E(e){0>Tf||(e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(e,s){Tf++,Sf[Tf]=e.current,e.current=s}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(e,s){var i=e.type.contextTypes;if(!i)return Vf;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===s)return a.__reactInternalMemoizedMaskedChildContext;var o={},c;for(c in i)o[c]=s[c];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),o}function Zf(e){return e=e.childContextTypes,e!=null}function $f(){E(Wf),E(H)}function ag(e,s,i){if(H.current!==Vf)throw Error(p$1(168));G(H,s),G(Wf,i)}function bg(e,s,i){var a=e.stateNode;if(s=s.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var o in a)if(!(o in s))throw Error(p$1(108,Ra(e)||"Unknown",o));return A({},i,a)}function cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,e),G(Wf,Wf.current),!0}function dg(e,s,i){var a=e.stateNode;if(!a)throw Error(p$1(169));i?(e=bg(e,s,Xf),a.__reactInternalMemoizedMergedChildContext=e,E(Wf),E(H),G(H,e)):E(Wf),G(Wf,i)}var eg=null,fg=!1,gg=!1;function hg(e){eg===null?eg=[e]:eg.push(e)}function ig(e){fg=!0,hg(e)}function jg(){if(!gg&&eg!==null){gg=!0;var e=0,s=C;try{var i=eg;for(C=1;e<i.length;e++){var a=i[e];do a=a(!0);while(a!==null)}eg=null,fg=!1}catch(o){throw eg!==null&&(eg=eg.slice(e+1)),ac(fc,jg),o}finally{C=s,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(e,s){kg[lg++]=ng,kg[lg++]=mg,mg=e,ng=s}function ug(e,s,i){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=e;var a=rg;e=sg;var o=32-oc(a)-1;a&=~(1<<o),i+=1;var c=32-oc(s)+o;if(30<c){var g=o-o%5;c=(a&(1<<g)-1).toString(32),a>>=g,o-=g,rg=1<<32-oc(s)+o|i<<o|a,sg=c+e}else rg=1<<c|i<<o|a,sg=e}function vg(e){e.return!==null&&(tg(e,1),ug(e,1,0))}function wg(e){for(;e===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;e===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(e,s){var i=Bg(5,null,null,0);i.elementType="DELETED",i.stateNode=s,i.return=e,s=e.deletions,s===null?(e.deletions=[i],e.flags|=16):s.push(i)}function Cg(e,s){switch(e.tag){case 5:var i=e.type;return s=s.nodeType!==1||i.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(e.stateNode=s,xg=e,yg=Lf(s.firstChild),!0):!1;case 6:return s=e.pendingProps===""||s.nodeType!==3?null:s,s!==null?(e.stateNode=s,xg=e,yg=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(i=qg!==null?{id:rg,overflow:sg}:null,e.memoizedState={dehydrated:s,treeContext:i,retryLane:1073741824},i=Bg(18,null,null,0),i.stateNode=s,i.return=e,e.child=i,xg=e,yg=null,!0):!1;default:return!1}}function Dg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Eg(e){if(I){var s=yg;if(s){var i=s;if(!Cg(e,s)){if(Dg(e))throw Error(p$1(418));s=Lf(i.nextSibling);var a=xg;s&&Cg(e,s)?Ag(a,i):(e.flags=e.flags&-4097|2,I=!1,xg=e)}}else{if(Dg(e))throw Error(p$1(418));e.flags=e.flags&-4097|2,I=!1,xg=e}}}function Fg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xg=e}function Gg(e){if(e!==xg)return!1;if(!I)return Fg(e),I=!0,!1;var s;if((s=e.tag!==3)&&!(s=e.tag!==5)&&(s=e.type,s=s!=="head"&&s!=="body"&&!Ef(e.type,e.memoizedProps)),s&&(s=yg)){if(Dg(e))throw Hg(),Error(p$1(418));for(;s;)Ag(e,s),s=Lf(s.nextSibling)}if(Fg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(p$1(317));e:{for(e=e.nextSibling,s=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(s===0){yg=Lf(e.nextSibling);break e}s--}else i!=="$"&&i!=="$!"&&i!=="$?"||s++}e=e.nextSibling}yg=null}}else yg=xg?Lf(e.stateNode.nextSibling):null;return!0}function Hg(){for(var e=yg;e;)e=Lf(e.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(e){zg===null?zg=[e]:zg.push(e)}var Kg=ua.ReactCurrentBatchConfig;function Lg(e,s,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(p$1(309));var a=i.stateNode}if(!a)throw Error(p$1(147,e));var o=a,c=""+e;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===c?s.ref:(s=function(g){var _=o.refs;g===null?delete _[c]:_[c]=g},s._stringRef=c,s)}if(typeof e!="string")throw Error(p$1(284));if(!i._owner)throw Error(p$1(290,e))}return e}function Mg(e,s){throw e=Object.prototype.toString.call(s),Error(p$1(31,e==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":e))}function Ng(e){var s=e._init;return s(e._payload)}function Og(e){function s(j,tt){if(e){var _e=j.deletions;_e===null?(j.deletions=[tt],j.flags|=16):_e.push(tt)}}function i(j,tt){if(!e)return null;for(;tt!==null;)s(j,tt),tt=tt.sibling;return null}function a(j,tt){for(j=new Map;tt!==null;)tt.key!==null?j.set(tt.key,tt):j.set(tt.index,tt),tt=tt.sibling;return j}function o(j,tt){return j=Pg(j,tt),j.index=0,j.sibling=null,j}function c(j,tt,_e){return j.index=_e,e?(_e=j.alternate,_e!==null?(_e=_e.index,_e<tt?(j.flags|=2,tt):_e):(j.flags|=2,tt)):(j.flags|=1048576,tt)}function g(j){return e&&j.alternate===null&&(j.flags|=2),j}function _(j,tt,_e,nt){return tt===null||tt.tag!==6?(tt=Qg(_e,j.mode,nt),tt.return=j,tt):(tt=o(tt,_e),tt.return=j,tt)}function b(j,tt,_e,nt){var ut=_e.type;return ut===ya?et(j,tt,_e.props.children,nt,_e.key):tt!==null&&(tt.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===Ha&&Ng(ut)===tt.type)?(nt=o(tt,_e.props),nt.ref=Lg(j,tt,_e),nt.return=j,nt):(nt=Rg(_e.type,_e.key,_e.props,null,j.mode,nt),nt.ref=Lg(j,tt,_e),nt.return=j,nt)}function $(j,tt,_e,nt){return tt===null||tt.tag!==4||tt.stateNode.containerInfo!==_e.containerInfo||tt.stateNode.implementation!==_e.implementation?(tt=Sg(_e,j.mode,nt),tt.return=j,tt):(tt=o(tt,_e.children||[]),tt.return=j,tt)}function et(j,tt,_e,nt,ut){return tt===null||tt.tag!==7?(tt=Tg(_e,j.mode,nt,ut),tt.return=j,tt):(tt=o(tt,_e),tt.return=j,tt)}function ot(j,tt,_e){if(typeof tt=="string"&&tt!==""||typeof tt=="number")return tt=Qg(""+tt,j.mode,_e),tt.return=j,tt;if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case va:return _e=Rg(tt.type,tt.key,tt.props,null,j.mode,_e),_e.ref=Lg(j,null,tt),_e.return=j,_e;case wa:return tt=Sg(tt,j.mode,_e),tt.return=j,tt;case Ha:var nt=tt._init;return ot(j,nt(tt._payload),_e)}if(eb(tt)||Ka(tt))return tt=Tg(tt,j.mode,_e,null),tt.return=j,tt;Mg(j,tt)}return null}function rt(j,tt,_e,nt){var ut=tt!==null?tt.key:null;if(typeof _e=="string"&&_e!==""||typeof _e=="number")return ut!==null?null:_(j,tt,""+_e,nt);if(typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case va:return _e.key===ut?b(j,tt,_e,nt):null;case wa:return _e.key===ut?$(j,tt,_e,nt):null;case Ha:return ut=_e._init,rt(j,tt,ut(_e._payload),nt)}if(eb(_e)||Ka(_e))return ut!==null?null:et(j,tt,_e,nt,null);Mg(j,_e)}return null}function at(j,tt,_e,nt,ut){if(typeof nt=="string"&&nt!==""||typeof nt=="number")return j=j.get(_e)||null,_(tt,j,""+nt,ut);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case va:return j=j.get(nt.key===null?_e:nt.key)||null,b(tt,j,nt,ut);case wa:return j=j.get(nt.key===null?_e:nt.key)||null,$(tt,j,nt,ut);case Ha:var ht=nt._init;return at(j,tt,_e,ht(nt._payload),ut)}if(eb(nt)||Ka(nt))return j=j.get(_e)||null,et(tt,j,nt,ut,null);Mg(tt,nt)}return null}function it(j,tt,_e,nt){for(var ut=null,ht=null,gt=tt,ft=tt=0,_t=null;gt!==null&&ft<_e.length;ft++){gt.index>ft?(_t=gt,gt=null):_t=gt.sibling;var At=rt(j,gt,_e[ft],nt);if(At===null){gt===null&&(gt=_t);break}e&>&&At.alternate===null&&s(j,gt),tt=c(At,tt,ft),ht===null?ut=At:ht.sibling=At,ht=At,gt=_t}if(ft===_e.length)return i(j,gt),I&&tg(j,ft),ut;if(gt===null){for(;ft<_e.length;ft++)gt=ot(j,_e[ft],nt),gt!==null&&(tt=c(gt,tt,ft),ht===null?ut=gt:ht.sibling=gt,ht=gt);return I&&tg(j,ft),ut}for(gt=a(j,gt);ft<_e.length;ft++)_t=at(gt,j,ft,_e[ft],nt),_t!==null&&(e&&_t.alternate!==null&>.delete(_t.key===null?ft:_t.key),tt=c(_t,tt,ft),ht===null?ut=_t:ht.sibling=_t,ht=_t);return e&>.forEach(function(kt){return s(j,kt)}),I&&tg(j,ft),ut}function st(j,tt,_e,nt){var ut=Ka(_e);if(typeof ut!="function")throw Error(p$1(150));if(_e=ut.call(_e),_e==null)throw Error(p$1(151));for(var ht=ut=null,gt=tt,ft=tt=0,_t=null,At=_e.next();gt!==null&&!At.done;ft++,At=_e.next()){gt.index>ft?(_t=gt,gt=null):_t=gt.sibling;var kt=rt(j,gt,At.value,nt);if(kt===null){gt===null&&(gt=_t);break}e&>&&kt.alternate===null&&s(j,gt),tt=c(kt,tt,ft),ht===null?ut=kt:ht.sibling=kt,ht=kt,gt=_t}if(At.done)return i(j,gt),I&&tg(j,ft),ut;if(gt===null){for(;!At.done;ft++,At=_e.next())At=ot(j,At.value,nt),At!==null&&(tt=c(At,tt,ft),ht===null?ut=At:ht.sibling=At,ht=At);return I&&tg(j,ft),ut}for(gt=a(j,gt);!At.done;ft++,At=_e.next())At=at(gt,j,ft,At.value,nt),At!==null&&(e&&At.alternate!==null&>.delete(At.key===null?ft:At.key),tt=c(At,tt,ft),ht===null?ut=At:ht.sibling=At,ht=At);return e&>.forEach(function(St){return s(j,St)}),I&&tg(j,ft),ut}function dt(j,tt,_e,nt){if(typeof _e=="object"&&_e!==null&&_e.type===ya&&_e.key===null&&(_e=_e.props.children),typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case va:e:{for(var ut=_e.key,ht=tt;ht!==null;){if(ht.key===ut){if(ut=_e.type,ut===ya){if(ht.tag===7){i(j,ht.sibling),tt=o(ht,_e.props.children),tt.return=j,j=tt;break e}}else if(ht.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===Ha&&Ng(ut)===ht.type){i(j,ht.sibling),tt=o(ht,_e.props),tt.ref=Lg(j,ht,_e),tt.return=j,j=tt;break e}i(j,ht);break}else s(j,ht);ht=ht.sibling}_e.type===ya?(tt=Tg(_e.props.children,j.mode,nt,_e.key),tt.return=j,j=tt):(nt=Rg(_e.type,_e.key,_e.props,null,j.mode,nt),nt.ref=Lg(j,tt,_e),nt.return=j,j=nt)}return g(j);case wa:e:{for(ht=_e.key;tt!==null;){if(tt.key===ht)if(tt.tag===4&&tt.stateNode.containerInfo===_e.containerInfo&&tt.stateNode.implementation===_e.implementation){i(j,tt.sibling),tt=o(tt,_e.children||[]),tt.return=j,j=tt;break e}else{i(j,tt);break}else s(j,tt);tt=tt.sibling}tt=Sg(_e,j.mode,nt),tt.return=j,j=tt}return g(j);case Ha:return ht=_e._init,dt(j,tt,ht(_e._payload),nt)}if(eb(_e))return it(j,tt,_e,nt);if(Ka(_e))return st(j,tt,_e,nt);Mg(j,_e)}return typeof _e=="string"&&_e!==""||typeof _e=="number"?(_e=""+_e,tt!==null&&tt.tag===6?(i(j,tt.sibling),tt=o(tt,_e),tt.return=j,j=tt):(i(j,tt),tt=Qg(_e,j.mode,nt),tt.return=j,j=tt),g(j)):i(j,tt)}return dt}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(e){var s=Wg.current;E(Wg),e._currentValue=s}function bh(e,s,i){for(;e!==null;){var a=e.alternate;if((e.childLanes&s)!==s?(e.childLanes|=s,a!==null&&(a.childLanes|=s)):a!==null&&(a.childLanes&s)!==s&&(a.childLanes|=s),e===i)break;e=e.return}}function ch(e,s){Xg=e,Zg=Yg=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&s&&(dh=!0),e.firstContext=null)}function eh(e){var s=e._currentValue;if(Zg!==e)if(e={context:e,memoizedValue:s,next:null},Yg===null){if(Xg===null)throw Error(p$1(308));Yg=e,Xg.dependencies={lanes:0,firstContext:e}}else Yg=Yg.next=e;return s}var fh=null;function gh(e){fh===null?fh=[e]:fh.push(e)}function hh(e,s,i,a){var o=s.interleaved;return o===null?(i.next=i,gh(s)):(i.next=o.next,o.next=i),s.interleaved=i,ih(e,a)}function ih(e,s){e.lanes|=s;var i=e.alternate;for(i!==null&&(i.lanes|=s),i=e,e=e.return;e!==null;)e.childLanes|=s,i=e.alternate,i!==null&&(i.childLanes|=s),i=e,e=e.return;return i.tag===3?i.stateNode:null}var jh=!1;function kh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(e,s){e=e.updateQueue,s.updateQueue===e&&(s.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mh(e,s){return{eventTime:e,lane:s,tag:0,payload:null,callback:null,next:null}}function nh(e,s,i){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,K&2){var o=a.pending;return o===null?s.next=s:(s.next=o.next,o.next=s),a.pending=s,ih(e,i)}return o=a.interleaved,o===null?(s.next=s,gh(a)):(s.next=o.next,o.next=s),a.interleaved=s,ih(e,i)}function oh(e,s,i){if(s=s.updateQueue,s!==null&&(s=s.shared,(i&4194240)!==0)){var a=s.lanes;a&=e.pendingLanes,i|=a,s.lanes=i,Cc(e,i)}}function ph(e,s){var i=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var o=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var g={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};c===null?o=c=g:c=c.next=g,i=i.next}while(i!==null);c===null?o=c=s:c=c.next=s}else o=c=s;i={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,effects:a.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=s:e.next=s,i.lastBaseUpdate=s}function qh(e,s,i,a){var o=e.updateQueue;jh=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var b=_,$=b.next;b.next=null,g===null?c=$:g.next=$,g=b;var et=e.alternate;et!==null&&(et=et.updateQueue,_=et.lastBaseUpdate,_!==g&&(_===null?et.firstBaseUpdate=$:_.next=$,et.lastBaseUpdate=b))}if(c!==null){var ot=o.baseState;g=0,et=$=b=null,_=c;do{var rt=_.lane,at=_.eventTime;if((a&rt)===rt){et!==null&&(et=et.next={eventTime:at,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var it=e,st=_;switch(rt=s,at=i,st.tag){case 1:if(it=st.payload,typeof it=="function"){ot=it.call(at,ot,rt);break e}ot=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=st.payload,rt=typeof it=="function"?it.call(at,ot,rt):it,rt==null)break e;ot=A({},ot,rt);break e;case 2:jh=!0}}_.callback!==null&&_.lane!==0&&(e.flags|=64,rt=o.effects,rt===null?o.effects=[_]:rt.push(_))}else at={eventTime:at,lane:rt,tag:_.tag,payload:_.payload,callback:_.callback,next:null},et===null?($=et=at,b=ot):et=et.next=at,g|=rt;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;rt=_,_=rt.next,rt.next=null,o.lastBaseUpdate=rt,o.shared.pending=null}}while(!0);if(et===null&&(b=ot),o.baseState=b,o.firstBaseUpdate=$,o.lastBaseUpdate=et,s=o.shared.interleaved,s!==null){o=s;do g|=o.lane,o=o.next;while(o!==s)}else c===null&&(o.shared.lanes=0);rh|=g,e.lanes=g,e.memoizedState=ot}}function sh(e,s,i){if(e=s.effects,s.effects=null,e!==null)for(s=0;s<e.length;s++){var a=e[s],o=a.callback;if(o!==null){if(a.callback=null,a=i,typeof o!="function")throw Error(p$1(191,o));o.call(a)}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh(e){if(e===th)throw Error(p$1(174));return e}function yh(e,s){switch(G(wh,s),G(vh,e),G(uh,th),e=s.nodeType,e){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:lb(null,"");break;default:e=e===8?s.parentNode:s,s=e.namespaceURI||null,e=e.tagName,s=lb(s,e)}E(uh),G(uh,s)}function zh(){E(uh),E(vh),E(wh)}function Ah(e){xh(wh.current);var s=xh(uh.current),i=lb(s,e.type);s!==i&&(G(vh,e),G(uh,i))}function Bh(e){vh.current===e&&(E(uh),E(vh))}var L=Uf(0);function Ch(e){for(var s=e;s!==null;){if(s.tag===13){var i=s.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break;for(;s.sibling===null;){if(s.return===null||s.return===e)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Dh=[];function Eh(){for(var e=0;e<Dh.length;e++)Dh[e]._workInProgressVersionPrimary=null;Dh.length=0}var Fh=ua.ReactCurrentDispatcher,Gh=ua.ReactCurrentBatchConfig,Hh=0,M=null,N=null,O=null,Ih=!1,Jh=!1,Kh=0,Lh=0;function P(){throw Error(p$1(321))}function Mh(e,s){if(s===null)return!1;for(var i=0;i<s.length&&i<e.length;i++)if(!He(e[i],s[i]))return!1;return!0}function Nh(e,s,i,a,o,c){if(Hh=c,M=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Fh.current=e===null||e.memoizedState===null?Oh:Ph,e=i(a,o),Jh){c=0;do{if(Jh=!1,Kh=0,25<=c)throw Error(p$1(301));c+=1,O=N=null,s.updateQueue=null,Fh.current=Qh,e=i(a,o)}while(Jh)}if(Fh.current=Rh,s=N!==null&&N.next!==null,Hh=0,O=N=M=null,Ih=!1,s)throw Error(p$1(300));return e}function Sh(){var e=Kh!==0;return Kh=0,e}function Th(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return O===null?M.memoizedState=O=e:O=O.next=e,O}function Uh(){if(N===null){var e=M.alternate;e=e!==null?e.memoizedState:null}else e=N.next;var s=O===null?M.memoizedState:O.next;if(s!==null)O=s,N=e;else{if(e===null)throw Error(p$1(310));N=e,e={memoizedState:N.memoizedState,baseState:N.baseState,baseQueue:N.baseQueue,queue:N.queue,next:null},O===null?M.memoizedState=O=e:O=O.next=e}return O}function Vh(e,s){return typeof s=="function"?s(e):s}function Wh(e){var s=Uh(),i=s.queue;if(i===null)throw Error(p$1(311));i.lastRenderedReducer=e;var a=N,o=a.baseQueue,c=i.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}a.baseQueue=o=c,i.pending=null}if(o!==null){c=o.next,a=a.baseState;var _=g=null,b=null,$=c;do{var et=$.lane;if((Hh&et)===et)b!==null&&(b=b.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),a=$.hasEagerState?$.eagerState:e(a,$.action);else{var ot={lane:et,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};b===null?(_=b=ot,g=a):b=b.next=ot,M.lanes|=et,rh|=et}$=$.next}while($!==null&&$!==c);b===null?g=a:b.next=_,He(a,s.memoizedState)||(dh=!0),s.memoizedState=a,s.baseState=g,s.baseQueue=b,i.lastRenderedState=a}if(e=i.interleaved,e!==null){o=e;do c=o.lane,M.lanes|=c,rh|=c,o=o.next;while(o!==e)}else o===null&&(i.lanes=0);return[s.memoizedState,i.dispatch]}function Xh(e){var s=Uh(),i=s.queue;if(i===null)throw Error(p$1(311));i.lastRenderedReducer=e;var a=i.dispatch,o=i.pending,c=s.memoizedState;if(o!==null){i.pending=null;var g=o=o.next;do c=e(c,g.action),g=g.next;while(g!==o);He(c,s.memoizedState)||(dh=!0),s.memoizedState=c,s.baseQueue===null&&(s.baseState=c),i.lastRenderedState=c}return[c,a]}function Yh(){}function Zh(e,s){var i=M,a=Uh(),o=s(),c=!He(a.memoizedState,o);if(c&&(a.memoizedState=o,dh=!0),a=a.queue,$h(ai.bind(null,i,a,e),[e]),a.getSnapshot!==s||c||O!==null&&O.memoizedState.tag&1){if(i.flags|=2048,bi(9,ci.bind(null,i,a,o,s),void 0,null),Q===null)throw Error(p$1(349));Hh&30||di(i,s,o)}return o}function di(e,s,i){e.flags|=16384,e={getSnapshot:s,value:i},s=M.updateQueue,s===null?(s={lastEffect:null,stores:null},M.updateQueue=s,s.stores=[e]):(i=s.stores,i===null?s.stores=[e]:i.push(e))}function ci(e,s,i,a){s.value=i,s.getSnapshot=a,ei(s)&&fi(e)}function ai(e,s,i){return i(function(){ei(s)&&fi(e)})}function ei(e){var s=e.getSnapshot;e=e.value;try{var i=s();return!He(e,i)}catch{return!0}}function fi(e){var s=ih(e,1);s!==null&&gi(s,e,1,-1)}function hi(e){var s=Th();return typeof e=="function"&&(e=e()),s.memoizedState=s.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:e},s.queue=e,e=e.dispatch=ii.bind(null,M,e),[s.memoizedState,e]}function bi(e,s,i,a){return e={tag:e,create:s,destroy:i,deps:a,next:null},s=M.updateQueue,s===null?(s={lastEffect:null,stores:null},M.updateQueue=s,s.lastEffect=e.next=e):(i=s.lastEffect,i===null?s.lastEffect=e.next=e:(a=i.next,i.next=e,e.next=a,s.lastEffect=e)),e}function ji(){return Uh().memoizedState}function ki(e,s,i,a){var o=Th();M.flags|=e,o.memoizedState=bi(1|s,i,void 0,a===void 0?null:a)}function li(e,s,i,a){var o=Uh();a=a===void 0?null:a;var c=void 0;if(N!==null){var g=N.memoizedState;if(c=g.destroy,a!==null&&Mh(a,g.deps)){o.memoizedState=bi(s,i,c,a);return}}M.flags|=e,o.memoizedState=bi(1|s,i,c,a)}function mi(e,s){return ki(8390656,8,e,s)}function $h(e,s){return li(2048,8,e,s)}function ni(e,s){return li(4,2,e,s)}function oi(e,s){return li(4,4,e,s)}function pi(e,s){if(typeof s=="function")return e=e(),s(e),function(){s(null)};if(s!=null)return e=e(),s.current=e,function(){s.current=null}}function qi(e,s,i){return i=i!=null?i.concat([e]):null,li(4,4,pi.bind(null,s,e),i)}function ri(){}function si(e,s){var i=Uh();s=s===void 0?null:s;var a=i.memoizedState;return a!==null&&s!==null&&Mh(s,a[1])?a[0]:(i.memoizedState=[e,s],e)}function ti(e,s){var i=Uh();s=s===void 0?null:s;var a=i.memoizedState;return a!==null&&s!==null&&Mh(s,a[1])?a[0]:(e=e(),i.memoizedState=[e,s],e)}function ui(e,s,i){return Hh&21?(He(i,s)||(i=yc(),M.lanes|=i,rh|=i,e.baseState=!0),s):(e.baseState&&(e.baseState=!1,dh=!0),e.memoizedState=i)}function vi(e,s){var i=C;C=i!==0&&4>i?i:4,e(!0);var a=Gh.transition;Gh.transition={};try{e(!1),s()}finally{C=i,Gh.transition=a}}function wi(){return Uh().memoizedState}function xi(e,s,i){var a=yi(e);if(i={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null},zi(e))Ai(s,i);else if(i=hh(e,s,i,a),i!==null){var o=R();gi(i,e,a,o),Bi(i,s,a)}}function ii(e,s,i){var a=yi(e),o={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null};if(zi(e))Ai(s,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=s.lastRenderedReducer,c!==null))try{var g=s.lastRenderedState,_=c(g,i);if(o.hasEagerState=!0,o.eagerState=_,He(_,g)){var b=s.interleaved;b===null?(o.next=o,gh(s)):(o.next=b.next,b.next=o),s.interleaved=o;return}}catch{}finally{}i=hh(e,s,o,a),i!==null&&(o=R(),gi(i,e,a,o),Bi(i,s,a))}}function zi(e){var s=e.alternate;return e===M||s!==null&&s===M}function Ai(e,s){Jh=Ih=!0;var i=e.pending;i===null?s.next=s:(s.next=i.next,i.next=s),e.pending=s}function Bi(e,s,i){if(i&4194240){var a=s.lanes;a&=e.pendingLanes,i|=a,s.lanes=i,Cc(e,i)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(e,s){return Th().memoizedState=[e,s===void 0?null:s],e},useContext:eh,useEffect:mi,useImperativeHandle:function(e,s,i){return i=i!=null?i.concat([e]):null,ki(4194308,4,pi.bind(null,s,e),i)},useLayoutEffect:function(e,s){return ki(4194308,4,e,s)},useInsertionEffect:function(e,s){return ki(4,2,e,s)},useMemo:function(e,s){var i=Th();return s=s===void 0?null:s,e=e(),i.memoizedState=[e,s],e},useReducer:function(e,s,i){var a=Th();return s=i!==void 0?i(s):s,a.memoizedState=a.baseState=s,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=xi.bind(null,M,e),[a.memoizedState,e]},useRef:function(e){var s=Th();return e={current:e},s.memoizedState=e},useState:hi,useDebugValue:ri,useDeferredValue:function(e){return Th().memoizedState=e},useTransition:function(){var e=hi(!1),s=e[0];return e=vi.bind(null,e[1]),Th().memoizedState=e,[s,e]},useMutableSource:function(){},useSyncExternalStore:function(e,s,i){var a=M,o=Th();if(I){if(i===void 0)throw Error(p$1(407));i=i()}else{if(i=s(),Q===null)throw Error(p$1(349));Hh&30||di(a,s,i)}o.memoizedState=i;var c={value:i,getSnapshot:s};return o.queue=c,mi(ai.bind(null,a,c,e),[e]),a.flags|=2048,bi(9,ci.bind(null,a,c,i,s),void 0,null),i},useId:function(){var e=Th(),s=Q.identifierPrefix;if(I){var i=sg,a=rg;i=(a&~(1<<32-oc(a)-1)).toString(32)+i,s=":"+s+"R"+i,i=Kh++,0<i&&(s+="H"+i.toString(32)),s+=":"}else i=Lh++,s=":"+s+"r"+i.toString(32)+":";return e.memoizedState=s},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},useDebugValue:ri,useDeferredValue:function(e){var s=Uh();return ui(s,N.memoizedState,e)},useTransition:function(){var e=Wh(Vh)[0],s=Uh().memoizedState;return[e,s]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(e){var s=Uh();return N===null?s.memoizedState=e:ui(s,N.memoizedState,e)},useTransition:function(){var e=Xh(Vh)[0],s=Uh().memoizedState;return[e,s]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(e,s){if(e&&e.defaultProps){s=A({},s),e=e.defaultProps;for(var i in e)s[i]===void 0&&(s[i]=e[i]);return s}return s}function Di(e,s,i,a){s=e.memoizedState,i=i(a,s),i=i==null?s:A({},s,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Ei={isMounted:function(e){return(e=e._reactInternals)?Vb(e)===e:!1},enqueueSetState:function(e,s,i){e=e._reactInternals;var a=R(),o=yi(e),c=mh(a,o);c.payload=s,i!=null&&(c.callback=i),s=nh(e,c,o),s!==null&&(gi(s,e,o,a),oh(s,e,o))},enqueueReplaceState:function(e,s,i){e=e._reactInternals;var a=R(),o=yi(e),c=mh(a,o);c.tag=1,c.payload=s,i!=null&&(c.callback=i),s=nh(e,c,o),s!==null&&(gi(s,e,o,a),oh(s,e,o))},enqueueForceUpdate:function(e,s){e=e._reactInternals;var i=R(),a=yi(e),o=mh(i,a);o.tag=2,s!=null&&(o.callback=s),s=nh(e,o,a),s!==null&&(gi(s,e,a,i),oh(s,e,a))}};function Fi(e,s,i,a,o,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,g):s.prototype&&s.prototype.isPureReactComponent?!Ie(i,a)||!Ie(o,c):!0}function Gi(e,s,i){var a=!1,o=Vf,c=s.contextType;return typeof c=="object"&&c!==null?c=eh(c):(o=Zf(s)?Xf:H.current,a=s.contextTypes,c=(a=a!=null)?Yf(e,o):Vf),s=new s(i,c),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ei,e.stateNode=s,s._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=c),s}function Hi(e,s,i,a){e=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(i,a),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(i,a),s.state!==e&&Ei.enqueueReplaceState(s,s.state,null)}function Ii(e,s,i,a){var o=e.stateNode;o.props=i,o.state=e.memoizedState,o.refs={},kh(e);var c=s.contextType;typeof c=="object"&&c!==null?o.context=eh(c):(c=Zf(s)?Xf:H.current,o.context=Yf(e,c)),o.state=e.memoizedState,c=s.getDerivedStateFromProps,typeof c=="function"&&(Di(e,s,c,i),o.state=e.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(s=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),s!==o.state&&Ei.enqueueReplaceState(o,o.state,null),qh(e,i,o,a),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ji(e,s){try{var i="",a=s;do i+=Pa(a),a=a.return;while(a);var o=i}catch(c){o=`
|
|
39
|
+
Error generating stack: `+c.message+`
|
|
40
|
+
`+c.stack}return{value:e,source:s,stack:o,digest:null}}function Ki(e,s,i){return{value:e,source:null,stack:i??null,digest:s??null}}function Li(e,s){try{console.error(s.value)}catch(i){setTimeout(function(){throw i})}}var Mi=typeof WeakMap=="function"?WeakMap:Map;function Ni(e,s,i){i=mh(-1,i),i.tag=3,i.payload={element:null};var a=s.value;return i.callback=function(){Oi||(Oi=!0,Pi=a),Li(e,s)},i}function Qi(e,s,i){i=mh(-1,i),i.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var o=s.value;i.payload=function(){return a(o)},i.callback=function(){Li(e,s)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(i.callback=function(){Li(e,s),typeof a!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var g=s.stack;this.componentDidCatch(s.value,{componentStack:g!==null?g:""})}),i}function Si(e,s,i){var a=e.pingCache;if(a===null){a=e.pingCache=new Mi;var o=new Set;a.set(s,o)}else o=a.get(s),o===void 0&&(o=new Set,a.set(s,o));o.has(i)||(o.add(i),e=Ti.bind(null,e,s,i),s.then(e,e))}function Ui(e){do{var s;if((s=e.tag===13)&&(s=e.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return e;e=e.return}while(e!==null);return null}function Vi(e,s,i,a,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===s?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(s=mh(-1,1),s.tag=2,nh(i,s,1))),i.lanes|=1),e)}var Wi=ua.ReactCurrentOwner,dh=!1;function Xi(e,s,i,a){s.child=e===null?Vg(s,null,i,a):Ug(s,e.child,i,a)}function Yi(e,s,i,a,o){i=i.render;var c=s.ref;return ch(s,o),a=Nh(e,s,i,a,c,o),i=Sh(),e!==null&&!dh?(s.updateQueue=e.updateQueue,s.flags&=-2053,e.lanes&=~o,Zi(e,s,o)):(I&&i&&vg(s),s.flags|=1,Xi(e,s,a,o),s.child)}function $i(e,s,i,a,o){if(e===null){var c=i.type;return typeof c=="function"&&!aj(c)&&c.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(s.tag=15,s.type=c,bj(e,s,c,a,o)):(e=Rg(i.type,null,a,s,s.mode,o),e.ref=s.ref,e.return=s,s.child=e)}if(c=e.child,!(e.lanes&o)){var g=c.memoizedProps;if(i=i.compare,i=i!==null?i:Ie,i(g,a)&&e.ref===s.ref)return Zi(e,s,o)}return s.flags|=1,e=Pg(c,a),e.ref=s.ref,e.return=s,s.child=e}function bj(e,s,i,a,o){if(e!==null){var c=e.memoizedProps;if(Ie(c,a)&&e.ref===s.ref)if(dh=!1,s.pendingProps=a=c,(e.lanes&o)!==0)e.flags&131072&&(dh=!0);else return s.lanes=e.lanes,Zi(e,s,o)}return cj(e,s,i,a,o)}function dj(e,s,i){var a=s.pendingProps,o=a.children,c=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(ej,fj),fj|=i;else{if(!(i&1073741824))return e=c!==null?c.baseLanes|i:i,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:e,cachePool:null,transitions:null},s.updateQueue=null,G(ej,fj),fj|=e,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=c!==null?c.baseLanes:i,G(ej,fj),fj|=a}else c!==null?(a=c.baseLanes|i,s.memoizedState=null):a=i,G(ej,fj),fj|=a;return Xi(e,s,o,i),s.child}function gj(e,s){var i=s.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(s.flags|=512,s.flags|=2097152)}function cj(e,s,i,a,o){var c=Zf(i)?Xf:H.current;return c=Yf(s,c),ch(s,o),i=Nh(e,s,i,a,c,o),a=Sh(),e!==null&&!dh?(s.updateQueue=e.updateQueue,s.flags&=-2053,e.lanes&=~o,Zi(e,s,o)):(I&&a&&vg(s),s.flags|=1,Xi(e,s,i,o),s.child)}function hj(e,s,i,a,o){if(Zf(i)){var c=!0;cg(s)}else c=!1;if(ch(s,o),s.stateNode===null)ij(e,s),Gi(s,i,a),Ii(s,i,a,o),a=!0;else if(e===null){var g=s.stateNode,_=s.memoizedProps;g.props=_;var b=g.context,$=i.contextType;typeof $=="object"&&$!==null?$=eh($):($=Zf(i)?Xf:H.current,$=Yf(s,$));var et=i.getDerivedStateFromProps,ot=typeof et=="function"||typeof g.getSnapshotBeforeUpdate=="function";ot||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_!==a||b!==$)&&Hi(s,g,a,$),jh=!1;var rt=s.memoizedState;g.state=rt,qh(s,a,g,o),b=s.memoizedState,_!==a||rt!==b||Wf.current||jh?(typeof et=="function"&&(Di(s,i,et,a),b=s.memoizedState),(_=jh||Fi(s,i,_,a,rt,b,$))?(ot||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(s.flags|=4194308)):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=a,s.memoizedState=b),g.props=a,g.state=b,g.context=$,a=_):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),a=!1)}else{g=s.stateNode,lh(e,s),_=s.memoizedProps,$=s.type===s.elementType?_:Ci(s.type,_),g.props=$,ot=s.pendingProps,rt=g.context,b=i.contextType,typeof b=="object"&&b!==null?b=eh(b):(b=Zf(i)?Xf:H.current,b=Yf(s,b));var at=i.getDerivedStateFromProps;(et=typeof at=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_!==ot||rt!==b)&&Hi(s,g,a,b),jh=!1,rt=s.memoizedState,g.state=rt,qh(s,a,g,o);var it=s.memoizedState;_!==ot||rt!==it||Wf.current||jh?(typeof at=="function"&&(Di(s,i,at,a),it=s.memoizedState),($=jh||Fi(s,i,$,a,rt,it,b)||!1)?(et||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,it,b),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,it,b)),typeof g.componentDidUpdate=="function"&&(s.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof g.componentDidUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=1024),s.memoizedProps=a,s.memoizedState=it),g.props=a,g.state=it,g.context=b,a=$):(typeof g.componentDidUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&rt===e.memoizedState||(s.flags|=1024),a=!1)}return jj(e,s,i,a,c,o)}function jj(e,s,i,a,o,c){gj(e,s);var g=(s.flags&128)!==0;if(!a&&!g)return o&&dg(s,i,!1),Zi(e,s,c);a=s.stateNode,Wi.current=s;var _=g&&typeof i.getDerivedStateFromError!="function"?null:a.render();return s.flags|=1,e!==null&&g?(s.child=Ug(s,e.child,null,c),s.child=Ug(s,null,_,c)):Xi(e,s,_,c),s.memoizedState=a.state,o&&dg(s,i,!0),s.child}function kj(e){var s=e.stateNode;s.pendingContext?ag(e,s.pendingContext,s.pendingContext!==s.context):s.context&&ag(e,s.context,!1),yh(e,s.containerInfo)}function lj(e,s,i,a,o){return Ig(),Jg(o),s.flags|=256,Xi(e,s,i,a),s.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(e){return{baseLanes:e,cachePool:null,transitions:null}}function oj(e,s,i){var a=s.pendingProps,o=L.current,c=!1,g=(s.flags&128)!==0,_;if((_=g)||(_=e!==null&&e.memoizedState===null?!1:(o&2)!==0),_?(c=!0,s.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),G(L,o&1),e===null)return Eg(s),e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(s.mode&1?e.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(g=a.children,e=a.fallback,c?(a=s.mode,c=s.child,g={mode:"hidden",children:g},!(a&1)&&c!==null?(c.childLanes=0,c.pendingProps=g):c=pj(g,a,0,null),e=Tg(e,a,i,null),c.return=s,e.return=s,c.sibling=e,s.child=c,s.child.memoizedState=nj(i),s.memoizedState=mj,e):qj(s,g));if(o=e.memoizedState,o!==null&&(_=o.dehydrated,_!==null))return rj(e,s,g,a,_,o,i);if(c){c=a.fallback,g=s.mode,o=e.child,_=o.sibling;var b={mode:"hidden",children:a.children};return!(g&1)&&s.child!==o?(a=s.child,a.childLanes=0,a.pendingProps=b,s.deletions=null):(a=Pg(o,b),a.subtreeFlags=o.subtreeFlags&14680064),_!==null?c=Pg(_,c):(c=Tg(c,g,i,null),c.flags|=2),c.return=s,a.return=s,a.sibling=c,s.child=a,a=c,c=s.child,g=e.child.memoizedState,g=g===null?nj(i):{baseLanes:g.baseLanes|i,cachePool:null,transitions:g.transitions},c.memoizedState=g,c.childLanes=e.childLanes&~i,s.memoizedState=mj,a}return c=e.child,e=c.sibling,a=Pg(c,{mode:"visible",children:a.children}),!(s.mode&1)&&(a.lanes=i),a.return=s,a.sibling=null,e!==null&&(i=s.deletions,i===null?(s.deletions=[e],s.flags|=16):i.push(e)),s.child=a,s.memoizedState=null,a}function qj(e,s){return s=pj({mode:"visible",children:s},e.mode,0,null),s.return=e,e.child=s}function sj(e,s,i,a){return a!==null&&Jg(a),Ug(s,e.child,null,i),e=qj(s,s.pendingProps.children),e.flags|=2,s.memoizedState=null,e}function rj(e,s,i,a,o,c,g){if(i)return s.flags&256?(s.flags&=-257,a=Ki(Error(p$1(422))),sj(e,s,g,a)):s.memoizedState!==null?(s.child=e.child,s.flags|=128,null):(c=a.fallback,o=s.mode,a=pj({mode:"visible",children:a.children},o,0,null),c=Tg(c,o,g,null),c.flags|=2,a.return=s,c.return=s,a.sibling=c,s.child=a,s.mode&1&&Ug(s,e.child,null,g),s.child.memoizedState=nj(g),s.memoizedState=mj,c);if(!(s.mode&1))return sj(e,s,g,null);if(o.data==="$!"){if(a=o.nextSibling&&o.nextSibling.dataset,a)var _=a.dgst;return a=_,c=Error(p$1(419)),a=Ki(c,a,void 0),sj(e,s,g,a)}if(_=(g&e.childLanes)!==0,dh||_){if(a=Q,a!==null){switch(g&-g){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(a.suspendedLanes|g)?0:o,o!==0&&o!==c.retryLane&&(c.retryLane=o,ih(e,o),gi(a,e,o,-1))}return tj(),a=Ki(Error(p$1(421))),sj(e,s,g,a)}return o.data==="$?"?(s.flags|=128,s.child=e.child,s=uj.bind(null,e),o._reactRetry=s,null):(e=c.treeContext,yg=Lf(o.nextSibling),xg=s,I=!0,zg=null,e!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=e.id,sg=e.overflow,qg=s),s=qj(s,a.children),s.flags|=4096,s)}function vj(e,s,i){e.lanes|=s;var a=e.alternate;a!==null&&(a.lanes|=s),bh(e.return,s,i)}function wj(e,s,i,a,o){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:a,tail:i,tailMode:o}:(c.isBackwards=s,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=i,c.tailMode=o)}function xj(e,s,i){var a=s.pendingProps,o=a.revealOrder,c=a.tail;if(Xi(e,s,a.children,i),a=L.current,a&2)a=a&1|2,s.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=s.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vj(e,i,s);else if(e.tag===19)vj(e,i,s);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===s)break e;for(;e.sibling===null;){if(e.return===null||e.return===s)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(G(L,a),!(s.mode&1))s.memoizedState=null;else switch(o){case"forwards":for(i=s.child,o=null;i!==null;)e=i.alternate,e!==null&&Ch(e)===null&&(o=i),i=i.sibling;i=o,i===null?(o=s.child,s.child=null):(o=i.sibling,i.sibling=null),wj(s,!1,o,i,c);break;case"backwards":for(i=null,o=s.child,s.child=null;o!==null;){if(e=o.alternate,e!==null&&Ch(e)===null){s.child=o;break}e=o.sibling,o.sibling=i,i=o,o=e}wj(s,!0,i,null,c);break;case"together":wj(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ij(e,s){!(s.mode&1)&&e!==null&&(e.alternate=null,s.alternate=null,s.flags|=2)}function Zi(e,s,i){if(e!==null&&(s.dependencies=e.dependencies),rh|=s.lanes,!(i&s.childLanes))return null;if(e!==null&&s.child!==e.child)throw Error(p$1(153));if(s.child!==null){for(e=s.child,i=Pg(e,e.pendingProps),s.child=i,i.return=s;e.sibling!==null;)e=e.sibling,i=i.sibling=Pg(e,e.pendingProps),i.return=s;i.sibling=null}return s.child}function yj(e,s,i){switch(s.tag){case 3:kj(s),Ig();break;case 5:Ah(s);break;case 1:Zf(s.type)&&cg(s);break;case 4:yh(s,s.stateNode.containerInfo);break;case 10:var a=s.type._context,o=s.memoizedProps.value;G(Wg,a._currentValue),a._currentValue=o;break;case 13:if(a=s.memoizedState,a!==null)return a.dehydrated!==null?(G(L,L.current&1),s.flags|=128,null):i&s.child.childLanes?oj(e,s,i):(G(L,L.current&1),e=Zi(e,s,i),e!==null?e.sibling:null);G(L,L.current&1);break;case 19:if(a=(i&s.childLanes)!==0,e.flags&128){if(a)return xj(e,s,i);s.flags|=128}if(o=s.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),G(L,L.current),a)break;return null;case 22:case 23:return s.lanes=0,dj(e,s,i)}return Zi(e,s,i)}var zj,Aj,Bj,Cj;zj=function(e,s){for(var i=s.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};Aj=function(){};Bj=function(e,s,i,a){var o=e.memoizedProps;if(o!==a){e=s.stateNode,xh(uh.current);var c=null;switch(i){case"input":o=Ya(e,o),a=Ya(e,a),c=[];break;case"select":o=A({},o,{value:void 0}),a=A({},a,{value:void 0}),c=[];break;case"textarea":o=gb(e,o),a=gb(e,a),c=[];break;default:typeof o.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Bf)}ub(i,a);var g;i=null;for($ in o)if(!a.hasOwnProperty($)&&o.hasOwnProperty($)&&o[$]!=null)if($==="style"){var _=o[$];for(g in _)_.hasOwnProperty(g)&&(i||(i={}),i[g]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(ea.hasOwnProperty($)?c||(c=[]):(c=c||[]).push($,null));for($ in a){var b=a[$];if(_=o!=null?o[$]:void 0,a.hasOwnProperty($)&&b!==_&&(b!=null||_!=null))if($==="style")if(_){for(g in _)!_.hasOwnProperty(g)||b&&b.hasOwnProperty(g)||(i||(i={}),i[g]="");for(g in b)b.hasOwnProperty(g)&&_[g]!==b[g]&&(i||(i={}),i[g]=b[g])}else i||(c||(c=[]),c.push($,i)),i=b;else $==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,_=_?_.__html:void 0,b!=null&&_!==b&&(c=c||[]).push($,b)):$==="children"?typeof b!="string"&&typeof b!="number"||(c=c||[]).push($,""+b):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(ea.hasOwnProperty($)?(b!=null&&$==="onScroll"&&D("scroll",e),c||_===b||(c=[])):(c=c||[]).push($,b))}i&&(c=c||[]).push("style",i);var $=c;(s.updateQueue=$)&&(s.flags|=4)}};Cj=function(e,s,i,a){i!==a&&(s.flags|=4)};function Dj(e,s){if(!I)switch(e.tailMode){case"hidden":s=e.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?s||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function S(e){var s=e.alternate!==null&&e.alternate.child===e.child,i=0,a=0;if(s)for(var o=e.child;o!==null;)i|=o.lanes|o.childLanes,a|=o.subtreeFlags&14680064,a|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)i|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=i,s}function Ej(e,s,i){var a=s.pendingProps;switch(wg(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(s),null;case 1:return Zf(s.type)&&$f(),S(s),null;case 3:return a=s.stateNode,zh(),E(Wf),E(H),Eh(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Gg(s)?s.flags|=4:e===null||e.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,zg!==null&&(Fj(zg),zg=null))),Aj(e,s),S(s),null;case 5:Bh(s);var o=xh(wh.current);if(i=s.type,e!==null&&s.stateNode!=null)Bj(e,s,i,a,o),e.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!a){if(s.stateNode===null)throw Error(p$1(166));return S(s),null}if(e=xh(uh.current),Gg(s)){a=s.stateNode,i=s.type;var c=s.memoizedProps;switch(a[Of]=s,a[Pf]=c,e=(s.mode&1)!==0,i){case"dialog":D("cancel",a),D("close",a);break;case"iframe":case"object":case"embed":D("load",a);break;case"video":case"audio":for(o=0;o<lf.length;o++)D(lf[o],a);break;case"source":D("error",a);break;case"img":case"image":case"link":D("error",a),D("load",a);break;case"details":D("toggle",a);break;case"input":Za(a,c),D("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!c.multiple},D("invalid",a);break;case"textarea":hb(a,c),D("invalid",a)}ub(i,c),o=null;for(var g in c)if(c.hasOwnProperty(g)){var _=c[g];g==="children"?typeof _=="string"?a.textContent!==_&&(c.suppressHydrationWarning!==!0&&Af(a.textContent,_,e),o=["children",_]):typeof _=="number"&&a.textContent!==""+_&&(c.suppressHydrationWarning!==!0&&Af(a.textContent,_,e),o=["children",""+_]):ea.hasOwnProperty(g)&&_!=null&&g==="onScroll"&&D("scroll",a)}switch(i){case"input":Va(a),db(a,c,!0);break;case"textarea":Va(a),jb(a);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(a.onclick=Bf)}a=o,s.updateQueue=a,a!==null&&(s.flags|=4)}else{g=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=kb(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=g.createElement(i,{is:a.is}):(e=g.createElement(i),i==="select"&&(g=e,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):e=g.createElementNS(e,i),e[Of]=s,e[Pf]=a,zj(e,s,!1,!1),s.stateNode=e;e:{switch(g=vb(i,a),i){case"dialog":D("cancel",e),D("close",e),o=a;break;case"iframe":case"object":case"embed":D("load",e),o=a;break;case"video":case"audio":for(o=0;o<lf.length;o++)D(lf[o],e);o=a;break;case"source":D("error",e),o=a;break;case"img":case"image":case"link":D("error",e),D("load",e),o=a;break;case"details":D("toggle",e),o=a;break;case"input":Za(e,a),o=Ya(e,a),D("invalid",e);break;case"option":o=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},o=A({},a,{value:void 0}),D("invalid",e);break;case"textarea":hb(e,a),o=gb(e,a),D("invalid",e);break;default:o=a}ub(i,o),_=o;for(c in _)if(_.hasOwnProperty(c)){var b=_[c];c==="style"?sb(e,b):c==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&nb(e,b)):c==="children"?typeof b=="string"?(i!=="textarea"||b!=="")&&ob(e,b):typeof b=="number"&&ob(e,""+b):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ea.hasOwnProperty(c)?b!=null&&c==="onScroll"&&D("scroll",e):b!=null&&ta(e,c,b,g))}switch(i){case"input":Va(e),db(e,a,!1);break;case"textarea":Va(e),jb(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Sa(a.value));break;case"select":e.multiple=!!a.multiple,c=a.value,c!=null?fb(e,!!a.multiple,c,!1):a.defaultValue!=null&&fb(e,!!a.multiple,a.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Bf)}switch(i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return S(s),null;case 6:if(e&&s.stateNode!=null)Cj(e,s,e.memoizedProps,a);else{if(typeof a!="string"&&s.stateNode===null)throw Error(p$1(166));if(i=xh(wh.current),xh(uh.current),Gg(s)){if(a=s.stateNode,i=s.memoizedProps,a[Of]=s,(c=a.nodeValue!==i)&&(e=xg,e!==null))switch(e.tag){case 3:Af(a.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Af(a.nodeValue,i,(e.mode&1)!==0)}c&&(s.flags|=4)}else a=(i.nodeType===9?i:i.ownerDocument).createTextNode(a),a[Of]=s,s.stateNode=a}return S(s),null;case 13:if(E(L),a=s.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(I&&yg!==null&&s.mode&1&&!(s.flags&128))Hg(),Ig(),s.flags|=98560,c=!1;else if(c=Gg(s),a!==null&&a.dehydrated!==null){if(e===null){if(!c)throw Error(p$1(318));if(c=s.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(p$1(317));c[Of]=s}else Ig(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;S(s),c=!1}else zg!==null&&(Fj(zg),zg=null),c=!0;if(!c)return s.flags&65536?s:null}return s.flags&128?(s.lanes=i,s):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(s.child.flags|=8192,s.mode&1&&(e===null||L.current&1?T===0&&(T=3):tj())),s.updateQueue!==null&&(s.flags|=4),S(s),null);case 4:return zh(),Aj(e,s),e===null&&sf(s.stateNode.containerInfo),S(s),null;case 10:return ah(s.type._context),S(s),null;case 17:return Zf(s.type)&&$f(),S(s),null;case 19:if(E(L),c=s.memoizedState,c===null)return S(s),null;if(a=(s.flags&128)!==0,g=c.rendering,g===null)if(a)Dj(c,!1);else{if(T!==0||e!==null&&e.flags&128)for(e=s.child;e!==null;){if(g=Ch(e),g!==null){for(s.flags|=128,Dj(c,!1),a=g.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),s.subtreeFlags=0,a=i,i=s.child;i!==null;)c=i,e=a,c.flags&=14680066,g=c.alternate,g===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=g.childLanes,c.lanes=g.lanes,c.child=g.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=g.memoizedProps,c.memoizedState=g.memoizedState,c.updateQueue=g.updateQueue,c.type=g.type,e=g.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return G(L,L.current&1|2),s.child}e=e.sibling}c.tail!==null&&B()>Gj&&(s.flags|=128,a=!0,Dj(c,!1),s.lanes=4194304)}else{if(!a)if(e=Ch(g),e!==null){if(s.flags|=128,a=!0,i=e.updateQueue,i!==null&&(s.updateQueue=i,s.flags|=4),Dj(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!I)return S(s),null}else 2*B()-c.renderingStartTime>Gj&&i!==1073741824&&(s.flags|=128,a=!0,Dj(c,!1),s.lanes=4194304);c.isBackwards?(g.sibling=s.child,s.child=g):(i=c.last,i!==null?i.sibling=g:s.child=g,c.last=g)}return c.tail!==null?(s=c.tail,c.rendering=s,c.tail=s.sibling,c.renderingStartTime=B(),s.sibling=null,i=L.current,G(L,a?i&1|2:i&1),s):(S(s),null);case 22:case 23:return Hj(),a=s.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(s.flags|=8192),a&&s.mode&1?fj&1073741824&&(S(s),s.subtreeFlags&6&&(s.flags|=8192)):S(s),null;case 24:return null;case 25:return null}throw Error(p$1(156,s.tag))}function Ij(e,s){switch(wg(s),s.tag){case 1:return Zf(s.type)&&$f(),e=s.flags,e&65536?(s.flags=e&-65537|128,s):null;case 3:return zh(),E(Wf),E(H),Eh(),e=s.flags,e&65536&&!(e&128)?(s.flags=e&-65537|128,s):null;case 5:return Bh(s),null;case 13:if(E(L),e=s.memoizedState,e!==null&&e.dehydrated!==null){if(s.alternate===null)throw Error(p$1(340));Ig()}return e=s.flags,e&65536?(s.flags=e&-65537|128,s):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(s.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(e,s){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(a){W(e,s,a)}else i.current=null}function Mj(e,s,i){try{i()}catch(a){W(e,s,a)}}var Nj=!1;function Oj(e,s){if(Cf=dd,e=Me(),Ne(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var g=0,_=-1,b=-1,$=0,et=0,ot=e,rt=null;t:for(;;){for(var at;ot!==i||o!==0&&ot.nodeType!==3||(_=g+o),ot!==c||a!==0&&ot.nodeType!==3||(b=g+a),ot.nodeType===3&&(g+=ot.nodeValue.length),(at=ot.firstChild)!==null;)rt=ot,ot=at;for(;;){if(ot===e)break t;if(rt===i&&++$===o&&(_=g),rt===c&&++et===a&&(b=g),(at=ot.nextSibling)!==null)break;ot=rt,rt=ot.parentNode}ot=at}i=_===-1||b===-1?null:{start:_,end:b}}else i=null}i=i||{start:0,end:0}}else i=null;for(Df={focusedElem:e,selectionRange:i},dd=!1,V=s;V!==null;)if(s=V,e=s.child,(s.subtreeFlags&1028)!==0&&e!==null)e.return=s,V=e;else for(;V!==null;){s=V;try{var it=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(it!==null){var st=it.memoizedProps,dt=it.memoizedState,j=s.stateNode,tt=j.getSnapshotBeforeUpdate(s.elementType===s.type?st:Ci(s.type,st),dt);j.__reactInternalSnapshotBeforeUpdate=tt}break;case 3:var _e=s.stateNode.containerInfo;_e.nodeType===1?_e.textContent="":_e.nodeType===9&&_e.documentElement&&_e.removeChild(_e.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$1(163))}}catch(nt){W(s,s.return,nt)}if(e=s.sibling,e!==null){e.return=s.return,V=e;break}V=s.return}return it=Nj,Nj=!1,it}function Pj(e,s,i){var a=s.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var c=o.destroy;o.destroy=void 0,c!==void 0&&Mj(s,i,c)}o=o.next}while(o!==a)}}function Qj(e,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&e)===e){var a=i.create;i.destroy=a()}i=i.next}while(i!==s)}}function Rj(e){var s=e.ref;if(s!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof s=="function"?s(e):s.current=e}}function Sj(e){var s=e.alternate;s!==null&&(e.alternate=null,Sj(s)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(s=e.stateNode,s!==null&&(delete s[Of],delete s[Pf],delete s[of],delete s[Qf],delete s[Rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tj(e){return e.tag===5||e.tag===3||e.tag===4}function Uj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vj(e,s,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,s?i.nodeType===8?i.parentNode.insertBefore(e,s):i.insertBefore(e,s):(i.nodeType===8?(s=i.parentNode,s.insertBefore(e,i)):(s=i,s.appendChild(e)),i=i._reactRootContainer,i!=null||s.onclick!==null||(s.onclick=Bf));else if(a!==4&&(e=e.child,e!==null))for(Vj(e,s,i),e=e.sibling;e!==null;)Vj(e,s,i),e=e.sibling}function Wj(e,s,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,s?i.insertBefore(e,s):i.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Wj(e,s,i),e=e.sibling;e!==null;)Wj(e,s,i),e=e.sibling}var X=null,Xj=!1;function Yj(e,s,i){for(i=i.child;i!==null;)Zj(e,s,i),i=i.sibling}function Zj(e,s,i){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,i)}catch{}switch(i.tag){case 5:U||Lj(i,s);case 6:var a=X,o=Xj;X=null,Yj(e,s,i),X=a,Xj=o,X!==null&&(Xj?(e=X,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):X.removeChild(i.stateNode));break;case 18:X!==null&&(Xj?(e=X,i=i.stateNode,e.nodeType===8?Kf(e.parentNode,i):e.nodeType===1&&Kf(e,i),bd(e)):Kf(X,i.stateNode));break;case 4:a=X,o=Xj,X=i.stateNode.containerInfo,Xj=!0,Yj(e,s,i),X=a,Xj=o;break;case 0:case 11:case 14:case 15:if(!U&&(a=i.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){o=a=a.next;do{var c=o,g=c.destroy;c=c.tag,g!==void 0&&(c&2||c&4)&&Mj(i,s,g),o=o.next}while(o!==a)}Yj(e,s,i);break;case 1:if(!U&&(Lj(i,s),a=i.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(_){W(i,s,_)}Yj(e,s,i);break;case 21:Yj(e,s,i);break;case 22:i.mode&1?(U=(a=U)||i.memoizedState!==null,Yj(e,s,i),U=a):Yj(e,s,i);break;default:Yj(e,s,i)}}function ak(e){var s=e.updateQueue;if(s!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Kj),s.forEach(function(a){var o=bk.bind(null,e,a);i.has(a)||(i.add(a),a.then(o,o))})}}function ck(e,s){var i=s.deletions;if(i!==null)for(var a=0;a<i.length;a++){var o=i[a];try{var c=e,g=s,_=g;e:for(;_!==null;){switch(_.tag){case 5:X=_.stateNode,Xj=!1;break e;case 3:X=_.stateNode.containerInfo,Xj=!0;break e;case 4:X=_.stateNode.containerInfo,Xj=!0;break e}_=_.return}if(X===null)throw Error(p$1(160));Zj(c,g,o),X=null,Xj=!1;var b=o.alternate;b!==null&&(b.return=null),o.return=null}catch($){W(o,s,$)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)dk(s,e),s=s.sibling}function dk(e,s){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ck(s,e),ek(e),a&4){try{Pj(3,e,e.return),Qj(3,e)}catch(st){W(e,e.return,st)}try{Pj(5,e,e.return)}catch(st){W(e,e.return,st)}}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(st){W(e,e.return,st)}}if(a&4&&(o=e.stateNode,o!=null)){var c=e.memoizedProps,g=i!==null?i.memoizedProps:c,_=e.type,b=e.updateQueue;if(e.updateQueue=null,b!==null)try{_==="input"&&c.type==="radio"&&c.name!=null&&ab(o,c),vb(_,g);var $=vb(_,c);for(g=0;g<b.length;g+=2){var et=b[g],ot=b[g+1];et==="style"?sb(o,ot):et==="dangerouslySetInnerHTML"?nb(o,ot):et==="children"?ob(o,ot):ta(o,et,ot,$)}switch(_){case"input":bb(o,c);break;case"textarea":ib(o,c);break;case"select":var rt=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!c.multiple;var at=c.value;at!=null?fb(o,!!c.multiple,at,!1):rt!==!!c.multiple&&(c.defaultValue!=null?fb(o,!!c.multiple,c.defaultValue,!0):fb(o,!!c.multiple,c.multiple?[]:"",!1))}o[Pf]=c}catch(st){W(e,e.return,st)}}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(st){W(e,e.return,st)}}break;case 3:if(ck(s,e),ek(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{bd(s.containerInfo)}catch(st){W(e,e.return,st)}break;case 4:ck(s,e),ek(e);break;case 13:ck(s,e),ek(e),o=e.child,o.flags&8192&&(c=o.memoizedState!==null,o.stateNode.isHidden=c,!c||o.alternate!==null&&o.alternate.memoizedState!==null||(fk=B())),a&4&&ak(e);break;case 22:if(et=i!==null&&i.memoizedState!==null,e.mode&1?(U=($=U)||et,ck(s,e),U=$):ck(s,e),ek(e),a&8192){if($=e.memoizedState!==null,(e.stateNode.isHidden=$)&&!et&&e.mode&1)for(V=e,et=e.child;et!==null;){for(ot=V=et;V!==null;){switch(rt=V,at=rt.child,rt.tag){case 0:case 11:case 14:case 15:Pj(4,rt,rt.return);break;case 1:Lj(rt,rt.return);var it=rt.stateNode;if(typeof it.componentWillUnmount=="function"){a=rt,i=rt.return;try{s=a,it.props=s.memoizedProps,it.state=s.memoizedState,it.componentWillUnmount()}catch(st){W(a,i,st)}}break;case 5:Lj(rt,rt.return);break;case 22:if(rt.memoizedState!==null){gk(ot);continue}}at!==null?(at.return=rt,V=at):gk(ot)}et=et.sibling}e:for(et=null,ot=e;;){if(ot.tag===5){if(et===null){et=ot;try{o=ot.stateNode,$?(c=o.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(_=ot.stateNode,b=ot.memoizedProps.style,g=b!=null&&b.hasOwnProperty("display")?b.display:null,_.style.display=rb("display",g))}catch(st){W(e,e.return,st)}}}else if(ot.tag===6){if(et===null)try{ot.stateNode.nodeValue=$?"":ot.memoizedProps}catch(st){W(e,e.return,st)}}else if((ot.tag!==22&&ot.tag!==23||ot.memoizedState===null||ot===e)&&ot.child!==null){ot.child.return=ot,ot=ot.child;continue}if(ot===e)break e;for(;ot.sibling===null;){if(ot.return===null||ot.return===e)break e;et===ot&&(et=null),ot=ot.return}et===ot&&(et=null),ot.sibling.return=ot.return,ot=ot.sibling}}break;case 19:ck(s,e),ek(e),a&4&&ak(e);break;case 21:break;default:ck(s,e),ek(e)}}function ek(e){var s=e.flags;if(s&2){try{e:{for(var i=e.return;i!==null;){if(Tj(i)){var a=i;break e}i=i.return}throw Error(p$1(160))}switch(a.tag){case 5:var o=a.stateNode;a.flags&32&&(ob(o,""),a.flags&=-33);var c=Uj(e);Wj(e,c,o);break;case 3:case 4:var g=a.stateNode.containerInfo,_=Uj(e);Vj(e,_,g);break;default:throw Error(p$1(161))}}catch(b){W(e,e.return,b)}e.flags&=-3}s&4096&&(e.flags&=-4097)}function hk(e,s,i){V=e,ik(e)}function ik(e,s,i){for(var a=(e.mode&1)!==0;V!==null;){var o=V,c=o.child;if(o.tag===22&&a){var g=o.memoizedState!==null||Jj;if(!g){var _=o.alternate,b=_!==null&&_.memoizedState!==null||U;_=Jj;var $=U;if(Jj=g,(U=b)&&!$)for(V=o;V!==null;)g=V,b=g.child,g.tag===22&&g.memoizedState!==null?jk(o):b!==null?(b.return=g,V=b):jk(o);for(;c!==null;)V=c,ik(c),c=c.sibling;V=o,Jj=_,U=$}kk(e)}else o.subtreeFlags&8772&&c!==null?(c.return=o,V=c):kk(e)}}function kk(e){for(;V!==null;){var s=V;if(s.flags&8772){var i=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:U||Qj(5,s);break;case 1:var a=s.stateNode;if(s.flags&4&&!U)if(i===null)a.componentDidMount();else{var o=s.elementType===s.type?i.memoizedProps:Ci(s.type,i.memoizedProps);a.componentDidUpdate(o,i.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var c=s.updateQueue;c!==null&&sh(s,c,a);break;case 3:var g=s.updateQueue;if(g!==null){if(i=null,s.child!==null)switch(s.child.tag){case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}sh(s,g,i)}break;case 5:var _=s.stateNode;if(i===null&&s.flags&4){i=_;var b=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":b.autoFocus&&i.focus();break;case"img":b.src&&(i.src=b.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var $=s.alternate;if($!==null){var et=$.memoizedState;if(et!==null){var ot=et.dehydrated;ot!==null&&bd(ot)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$1(163))}U||s.flags&512&&Rj(s)}catch(rt){W(s,s.return,rt)}}if(s===e){V=null;break}if(i=s.sibling,i!==null){i.return=s.return,V=i;break}V=s.return}}function gk(e){for(;V!==null;){var s=V;if(s===e){V=null;break}var i=s.sibling;if(i!==null){i.return=s.return,V=i;break}V=s.return}}function jk(e){for(;V!==null;){var s=V;try{switch(s.tag){case 0:case 11:case 15:var i=s.return;try{Qj(4,s)}catch(b){W(s,i,b)}break;case 1:var a=s.stateNode;if(typeof a.componentDidMount=="function"){var o=s.return;try{a.componentDidMount()}catch(b){W(s,o,b)}}var c=s.return;try{Rj(s)}catch(b){W(s,c,b)}break;case 5:var g=s.return;try{Rj(s)}catch(b){W(s,g,b)}}}catch(b){W(s,s.return,b)}if(s===e){V=null;break}var _=s.sibling;if(_!==null){_.return=s.return,V=_;break}V=s.return}}var lk=Math.ceil,mk=ua.ReactCurrentDispatcher,nk=ua.ReactCurrentOwner,ok=ua.ReactCurrentBatchConfig,K=0,Q=null,Y=null,Z=0,fj=0,ej=Uf(0),T=0,pk=null,rh=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=1/0,uk=null,Oi=!1,Pi=null,Ri=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R(){return K&6?B():Ak!==-1?Ak:Ak=B()}function yi(e){return e.mode&1?K&2&&Z!==0?Z&-Z:Kg.transition!==null?(Bk===0&&(Bk=yc()),Bk):(e=C,e!==0||(e=window.event,e=e===void 0?16:jd(e.type)),e):1}function gi(e,s,i,a){if(50<yk)throw yk=0,zk=null,Error(p$1(185));Ac(e,i,a),(!(K&2)||e!==Q)&&(e===Q&&(!(K&2)&&(qk|=i),T===4&&Ck(e,Z)),Dk(e,a),i===1&&K===0&&!(s.mode&1)&&(Gj=B()+500,fg&&jg()))}function Dk(e,s){var i=e.callbackNode;wc(e,s);var a=uc(e,e===Q?Z:0);if(a===0)i!==null&&bc(i),e.callbackNode=null,e.callbackPriority=0;else if(s=a&-a,e.callbackPriority!==s){if(i!=null&&bc(i),s===1)e.tag===0?ig(Ek.bind(null,e)):hg(Ek.bind(null,e)),Jf(function(){!(K&6)&&jg()}),i=null;else{switch(Dc(a)){case 1:i=fc;break;case 4:i=gc;break;case 16:i=hc;break;case 536870912:i=jc;break;default:i=hc}i=Fk(i,Gk.bind(null,e))}e.callbackPriority=s,e.callbackNode=i}}function Gk(e,s){if(Ak=-1,Bk=0,K&6)throw Error(p$1(327));var i=e.callbackNode;if(Hk()&&e.callbackNode!==i)return null;var a=uc(e,e===Q?Z:0);if(a===0)return null;if(a&30||a&e.expiredLanes||s)s=Ik(e,a);else{s=a;var o=K;K|=2;var c=Jk();(Q!==e||Z!==s)&&(uk=null,Gj=B()+500,Kk(e,s));do try{Lk();break}catch(_){Mk(e,_)}while(!0);$g(),mk.current=c,K=o,Y!==null?s=0:(Q=null,Z=0,s=T)}if(s!==0){if(s===2&&(o=xc(e),o!==0&&(a=o,s=Nk(e,o))),s===1)throw i=pk,Kk(e,0),Ck(e,a),Dk(e,B()),i;if(s===6)Ck(e,a);else{if(o=e.current.alternate,!(a&30)&&!Ok(o)&&(s=Ik(e,a),s===2&&(c=xc(e),c!==0&&(a=c,s=Nk(e,c))),s===1))throw i=pk,Kk(e,0),Ck(e,a),Dk(e,B()),i;switch(e.finishedWork=o,e.finishedLanes=a,s){case 0:case 1:throw Error(p$1(345));case 2:Pk(e,tk,uk);break;case 3:if(Ck(e,a),(a&130023424)===a&&(s=fk+500-B(),10<s)){if(uc(e,0)!==0)break;if(o=e.suspendedLanes,(o&a)!==a){R(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ff(Pk.bind(null,e,tk,uk),s);break}Pk(e,tk,uk);break;case 4:if(Ck(e,a),(a&4194240)===a)break;for(s=e.eventTimes,o=-1;0<a;){var g=31-oc(a);c=1<<g,g=s[g],g>o&&(o=g),a&=~c}if(a=o,a=B()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*lk(a/1960))-a,10<a){e.timeoutHandle=Ff(Pk.bind(null,e,tk,uk),a);break}Pk(e,tk,uk);break;case 5:Pk(e,tk,uk);break;default:throw Error(p$1(329))}}}return Dk(e,B()),e.callbackNode===i?Gk.bind(null,e):null}function Nk(e,s){var i=sk;return e.current.memoizedState.isDehydrated&&(Kk(e,s).flags|=256),e=Ik(e,s),e!==2&&(s=tk,tk=i,s!==null&&Fj(s)),e}function Fj(e){tk===null?tk=e:tk.push.apply(tk,e)}function Ok(e){for(var s=e;;){if(s.flags&16384){var i=s.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var a=0;a<i.length;a++){var o=i[a],c=o.getSnapshot;o=o.value;try{if(!He(c(),o))return!1}catch{return!1}}}if(i=s.child,s.subtreeFlags&16384&&i!==null)i.return=s,s=i;else{if(s===e)break;for(;s.sibling===null;){if(s.return===null||s.return===e)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ck(e,s){for(s&=~rk,s&=~qk,e.suspendedLanes|=s,e.pingedLanes&=~s,e=e.expirationTimes;0<s;){var i=31-oc(s),a=1<<i;e[i]=-1,s&=~a}}function Ek(e){if(K&6)throw Error(p$1(327));Hk();var s=uc(e,0);if(!(s&1))return Dk(e,B()),null;var i=Ik(e,s);if(e.tag!==0&&i===2){var a=xc(e);a!==0&&(s=a,i=Nk(e,a))}if(i===1)throw i=pk,Kk(e,0),Ck(e,s),Dk(e,B()),i;if(i===6)throw Error(p$1(345));return e.finishedWork=e.current.alternate,e.finishedLanes=s,Pk(e,tk,uk),Dk(e,B()),null}function Qk(e,s){var i=K;K|=1;try{return e(s)}finally{K=i,K===0&&(Gj=B()+500,fg&&jg())}}function Rk(e){wk!==null&&wk.tag===0&&!(K&6)&&Hk();var s=K;K|=1;var i=ok.transition,a=C;try{if(ok.transition=null,C=1,e)return e()}finally{C=a,ok.transition=i,K=s,!(K&6)&&jg()}}function Hj(){fj=ej.current,E(ej)}function Kk(e,s){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,Gf(i)),Y!==null)for(i=Y.return;i!==null;){var a=i;switch(wg(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&$f();break;case 3:zh(),E(Wf),E(H),Eh();break;case 5:Bh(a);break;case 4:zh();break;case 13:E(L);break;case 19:E(L);break;case 10:ah(a.type._context);break;case 22:case 23:Hj()}i=i.return}if(Q=e,Y=e=Pg(e.current,null),Z=fj=s,T=0,pk=null,rk=qk=rh=0,tk=sk=null,fh!==null){for(s=0;s<fh.length;s++)if(i=fh[s],a=i.interleaved,a!==null){i.interleaved=null;var o=a.next,c=i.pending;if(c!==null){var g=c.next;c.next=o,a.next=g}i.pending=a}fh=null}return e}function Mk(e,s){do{var i=Y;try{if($g(),Fh.current=Rh,Ih){for(var a=M.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Ih=!1}if(Hh=0,O=N=M=null,Jh=!1,Kh=0,nk.current=null,i===null||i.return===null){T=1,pk=s,Y=null;break}e:{var c=e,g=i.return,_=i,b=s;if(s=Z,_.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){var $=b,et=_,ot=et.tag;if(!(et.mode&1)&&(ot===0||ot===11||ot===15)){var rt=et.alternate;rt?(et.updateQueue=rt.updateQueue,et.memoizedState=rt.memoizedState,et.lanes=rt.lanes):(et.updateQueue=null,et.memoizedState=null)}var at=Ui(g);if(at!==null){at.flags&=-257,Vi(at,g,_,c,s),at.mode&1&&Si(c,$,s),s=at,b=$;var it=s.updateQueue;if(it===null){var st=new Set;st.add(b),s.updateQueue=st}else it.add(b);break e}else{if(!(s&1)){Si(c,$,s),tj();break e}b=Error(p$1(426))}}else if(I&&_.mode&1){var dt=Ui(g);if(dt!==null){!(dt.flags&65536)&&(dt.flags|=256),Vi(dt,g,_,c,s),Jg(Ji(b,_));break e}}c=b=Ji(b,_),T!==4&&(T=2),sk===null?sk=[c]:sk.push(c),c=g;do{switch(c.tag){case 3:c.flags|=65536,s&=-s,c.lanes|=s;var j=Ni(c,b,s);ph(c,j);break e;case 1:_=b;var tt=c.type,_e=c.stateNode;if(!(c.flags&128)&&(typeof tt.getDerivedStateFromError=="function"||_e!==null&&typeof _e.componentDidCatch=="function"&&(Ri===null||!Ri.has(_e)))){c.flags|=65536,s&=-s,c.lanes|=s;var nt=Qi(c,_,s);ph(c,nt);break e}}c=c.return}while(c!==null)}Sk(i)}catch(ut){s=ut,Y===i&&i!==null&&(Y=i=i.return);continue}break}while(!0)}function Jk(){var e=mk.current;return mk.current=Rh,e===null?Rh:e}function tj(){(T===0||T===3||T===2)&&(T=4),Q===null||!(rh&268435455)&&!(qk&268435455)||Ck(Q,Z)}function Ik(e,s){var i=K;K|=2;var a=Jk();(Q!==e||Z!==s)&&(uk=null,Kk(e,s));do try{Tk();break}catch(o){Mk(e,o)}while(!0);if($g(),K=i,mk.current=a,Y!==null)throw Error(p$1(261));return Q=null,Z=0,T}function Tk(){for(;Y!==null;)Uk(Y)}function Lk(){for(;Y!==null&&!cc();)Uk(Y)}function Uk(e){var s=Vk(e.alternate,e,fj);e.memoizedProps=e.pendingProps,s===null?Sk(e):Y=s,nk.current=null}function Sk(e){var s=e;do{var i=s.alternate;if(e=s.return,s.flags&32768){if(i=Ij(i,s),i!==null){i.flags&=32767,Y=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{T=6,Y=null;return}}else if(i=Ej(i,s,fj),i!==null){Y=i;return}if(s=s.sibling,s!==null){Y=s;return}Y=s=e}while(s!==null);T===0&&(T=5)}function Pk(e,s,i){var a=C,o=ok.transition;try{ok.transition=null,C=1,Wk(e,s,i,a)}finally{ok.transition=o,C=a}return null}function Wk(e,s,i,a){do Hk();while(wk!==null);if(K&6)throw Error(p$1(327));i=e.finishedWork;var o=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(p$1(177));e.callbackNode=null,e.callbackPriority=0;var c=i.lanes|i.childLanes;if(Bc(e,c),e===Q&&(Y=Q=null,Z=0),!(i.subtreeFlags&2064)&&!(i.flags&2064)||vk||(vk=!0,Fk(hc,function(){return Hk(),null})),c=(i.flags&15990)!==0,i.subtreeFlags&15990||c){c=ok.transition,ok.transition=null;var g=C;C=1;var _=K;K|=4,nk.current=null,Oj(e,i),dk(i,e),Oe(Df),dd=!!Cf,Df=Cf=null,e.current=i,hk(i),dc(),K=_,C=g,ok.transition=c}else e.current=i;if(vk&&(vk=!1,wk=e,xk=o),c=e.pendingLanes,c===0&&(Ri=null),mc(i.stateNode),Dk(e,B()),s!==null)for(a=e.onRecoverableError,i=0;i<s.length;i++)o=s[i],a(o.value,{componentStack:o.stack,digest:o.digest});if(Oi)throw Oi=!1,e=Pi,Pi=null,e;return xk&1&&e.tag!==0&&Hk(),c=e.pendingLanes,c&1?e===zk?yk++:(yk=0,zk=e):yk=0,jg(),null}function Hk(){if(wk!==null){var e=Dc(xk),s=ok.transition,i=C;try{if(ok.transition=null,C=16>e?16:e,wk===null)var a=!1;else{if(e=wk,wk=null,xk=0,K&6)throw Error(p$1(331));var o=K;for(K|=4,V=e.current;V!==null;){var c=V,g=c.child;if(V.flags&16){var _=c.deletions;if(_!==null){for(var b=0;b<_.length;b++){var $=_[b];for(V=$;V!==null;){var et=V;switch(et.tag){case 0:case 11:case 15:Pj(8,et,c)}var ot=et.child;if(ot!==null)ot.return=et,V=ot;else for(;V!==null;){et=V;var rt=et.sibling,at=et.return;if(Sj(et),et===$){V=null;break}if(rt!==null){rt.return=at,V=rt;break}V=at}}}var it=c.alternate;if(it!==null){var st=it.child;if(st!==null){it.child=null;do{var dt=st.sibling;st.sibling=null,st=dt}while(st!==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 j=c.sibling;if(j!==null){j.return=c.return,V=j;break e}V=c.return}}var tt=e.current;for(V=tt;V!==null;){g=V;var _e=g.child;if(g.subtreeFlags&2064&&_e!==null)_e.return=g,V=_e;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 nt=_.sibling;if(nt!==null){nt.return=_.return,V=nt;break e}V=_.return}}if(K=o,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,e)}catch{}a=!0}return a}finally{C=i,ok.transition=s}}return!1}function Xk(e,s,i){s=Ji(i,s),s=Ni(e,s,1),e=nh(e,s,1),s=R(),e!==null&&(Ac(e,1,s),Dk(e,s))}function W(e,s,i){if(e.tag===3)Xk(e,e,i);else for(;s!==null;){if(s.tag===3){Xk(s,e,i);break}else if(s.tag===1){var a=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ri===null||!Ri.has(a))){e=Ji(i,e),e=Qi(s,e,1),s=nh(s,e,1),e=R(),s!==null&&(Ac(s,1,e),Dk(s,e));break}}s=s.return}}function Ti(e,s,i){var a=e.pingCache;a!==null&&a.delete(s),s=R(),e.pingedLanes|=e.suspendedLanes&i,Q===e&&(Z&i)===i&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-fk?Kk(e,0):rk|=i),Dk(e,s)}function Yk(e,s){s===0&&(e.mode&1?(s=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):s=1);var i=R();e=ih(e,s),e!==null&&(Ac(e,s,i),Dk(e,i))}function uj(e){var s=e.memoizedState,i=0;s!==null&&(i=s.retryLane),Yk(e,i)}function bk(e,s){var i=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(i=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(p$1(314))}a!==null&&a.delete(s),Yk(e,i)}var Vk;Vk=function(e,s,i){if(e!==null)if(e.memoizedProps!==s.pendingProps||Wf.current)dh=!0;else{if(!(e.lanes&i)&&!(s.flags&128))return dh=!1,yj(e,s,i);dh=!!(e.flags&131072)}else dh=!1,I&&s.flags&1048576&&ug(s,ng,s.index);switch(s.lanes=0,s.tag){case 2:var a=s.type;ij(e,s),e=s.pendingProps;var o=Yf(s,H.current);ch(s,i),o=Nh(null,s,a,e,o,i);var c=Sh();return s.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Zf(a)?(c=!0,cg(s)):c=!1,s.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,kh(s),o.updater=Ei,s.stateNode=o,o._reactInternals=s,Ii(s,a,e,i),s=jj(null,s,a,!0,c,i)):(s.tag=0,I&&c&&vg(s),Xi(null,s,o,i),s=s.child),s;case 16:a=s.elementType;e:{switch(ij(e,s),e=s.pendingProps,o=a._init,a=o(a._payload),s.type=a,o=s.tag=Zk(a),e=Ci(a,e),o){case 0:s=cj(null,s,a,e,i);break e;case 1:s=hj(null,s,a,e,i);break e;case 11:s=Yi(null,s,a,e,i);break e;case 14:s=$i(null,s,a,Ci(a.type,e),i);break e}throw Error(p$1(306,a,""))}return s;case 0:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),cj(e,s,a,o,i);case 1:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),hj(e,s,a,o,i);case 3:e:{if(kj(s),e===null)throw Error(p$1(387));a=s.pendingProps,c=s.memoizedState,o=c.element,lh(e,s),qh(s,a,null,i);var g=s.memoizedState;if(a=g.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},s.updateQueue.baseState=c,s.memoizedState=c,s.flags&256){o=Ji(Error(p$1(423)),s),s=lj(e,s,a,i,o);break e}else if(a!==o){o=Ji(Error(p$1(424)),s),s=lj(e,s,a,i,o);break e}else for(yg=Lf(s.stateNode.containerInfo.firstChild),xg=s,I=!0,zg=null,i=Vg(s,null,a,i),s.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ig(),a===o){s=Zi(e,s,i);break e}Xi(e,s,a,i)}s=s.child}return s;case 5:return Ah(s),e===null&&Eg(s),a=s.type,o=s.pendingProps,c=e!==null?e.memoizedProps:null,g=o.children,Ef(a,o)?g=null:c!==null&&Ef(a,c)&&(s.flags|=32),gj(e,s),Xi(e,s,g,i),s.child;case 6:return e===null&&Eg(s),null;case 13:return oj(e,s,i);case 4:return yh(s,s.stateNode.containerInfo),a=s.pendingProps,e===null?s.child=Ug(s,null,a,i):Xi(e,s,a,i),s.child;case 11:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),Yi(e,s,a,o,i);case 7:return Xi(e,s,s.pendingProps,i),s.child;case 8:return Xi(e,s,s.pendingProps.children,i),s.child;case 12:return Xi(e,s,s.pendingProps.children,i),s.child;case 10:e:{if(a=s.type._context,o=s.pendingProps,c=s.memoizedProps,g=o.value,G(Wg,a._currentValue),a._currentValue=g,c!==null)if(He(c.value,g)){if(c.children===o.children&&!Wf.current){s=Zi(e,s,i);break e}}else for(c=s.child,c!==null&&(c.return=s);c!==null;){var _=c.dependencies;if(_!==null){g=c.child;for(var b=_.firstContext;b!==null;){if(b.context===a){if(c.tag===1){b=mh(-1,i&-i),b.tag=2;var $=c.updateQueue;if($!==null){$=$.shared;var et=$.pending;et===null?b.next=b:(b.next=et.next,et.next=b),$.pending=b}}c.lanes|=i,b=c.alternate,b!==null&&(b.lanes|=i),bh(c.return,i,s),_.lanes|=i;break}b=b.next}}else if(c.tag===10)g=c.type===s.type?null:c.child;else if(c.tag===18){if(g=c.return,g===null)throw Error(p$1(341));g.lanes|=i,_=g.alternate,_!==null&&(_.lanes|=i),bh(g,i,s),g=c.sibling}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===s){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}Xi(e,s,o.children,i),s=s.child}return s;case 9:return o=s.type,a=s.pendingProps.children,ch(s,i),o=eh(o),a=a(o),s.flags|=1,Xi(e,s,a,i),s.child;case 14:return a=s.type,o=Ci(a,s.pendingProps),o=Ci(a.type,o),$i(e,s,a,o,i);case 15:return bj(e,s,s.type,s.pendingProps,i);case 17:return a=s.type,o=s.pendingProps,o=s.elementType===a?o:Ci(a,o),ij(e,s),s.tag=1,Zf(a)?(e=!0,cg(s)):e=!1,ch(s,i),Gi(s,a,o),Ii(s,a,o,i),jj(null,s,a,!0,e,i);case 19:return xj(e,s,i);case 22:return dj(e,s,i)}throw Error(p$1(156,s.tag))};function Fk(e,s){return ac(e,s)}function $k(e,s,i,a){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(e,s,i,a){return new $k(e,s,i,a)}function aj(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zk(e){if(typeof e=="function")return aj(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Da)return 11;if(e===Ga)return 14}return 2}function Pg(e,s){var i=e.alternate;return i===null?(i=Bg(e.tag,s,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=s,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Rg(e,s,i,a,o,c){var g=2;if(a=e,typeof e=="function")aj(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case ya:return Tg(i.children,o,c,s);case za:g=8,o|=8;break;case Aa:return e=Bg(12,i,s,o|2),e.elementType=Aa,e.lanes=c,e;case Ea:return e=Bg(13,i,s,o),e.elementType=Ea,e.lanes=c,e;case Fa:return e=Bg(19,i,s,o),e.elementType=Fa,e.lanes=c,e;case Ia:return pj(i,o,c,s);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ba:g=10;break e;case Ca:g=9;break e;case Da:g=11;break e;case Ga:g=14;break e;case Ha:g=16,a=null;break e}throw Error(p$1(130,e==null?e:typeof e,""))}return s=Bg(g,i,s,o),s.elementType=e,s.type=a,s.lanes=c,s}function Tg(e,s,i,a){return e=Bg(7,e,a,s),e.lanes=i,e}function pj(e,s,i,a){return e=Bg(22,e,a,s),e.elementType=Ia,e.lanes=i,e.stateNode={isHidden:!1},e}function Qg(e,s,i){return e=Bg(6,e,null,s),e.lanes=i,e}function Sg(e,s,i){return s=Bg(4,e.children!==null?e.children:[],e.key,s),s.lanes=i,s.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},s}function al(e,s,i,a,o){this.tag=s,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=a,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function bl(e,s,i,a,o,c,g,_,b){return e=new al(e,s,i,_,b),s===1?(s=1,c===!0&&(s|=8)):s=0,c=Bg(3,null,null,s),e.current=c,c.stateNode=e,c.memoizedState={element:a,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(c),e}function cl(e,s,i){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:a==null?null:""+a,children:e,containerInfo:s,implementation:i}}function dl(e){if(!e)return Vf;e=e._reactInternals;e:{if(Vb(e)!==e||e.tag!==1)throw Error(p$1(170));var s=e;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Zf(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(p$1(171))}if(e.tag===1){var i=e.type;if(Zf(i))return bg(e,i,s)}return s}function el(e,s,i,a,o,c,g,_,b){return e=bl(i,a,!0,e,o,c,g,_,b),e.context=dl(null),i=e.current,a=R(),o=yi(i),c=mh(a,o),c.callback=s??null,nh(i,c,o),e.current.lanes=o,Ac(e,o,a),Dk(e,a),e}function fl(e,s,i,a){var o=s.current,c=R(),g=yi(o);return i=dl(i),s.context===null?s.context=i:s.pendingContext=i,s=mh(c,g),s.payload={element:e},a=a===void 0?null:a,a!==null&&(s.callback=a),e=nh(o,s,g),e!==null&&(gi(e,o,g,c),oh(e,o,g)),g}function gl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function hl(e,s){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<s?i:s}}function il(e,s){hl(e,s),(e=e.alternate)&&hl(e,s)}function jl(){return null}var kl=typeof reportError=="function"?reportError:function(e){console.error(e)};function ll(e){this._internalRoot=e}ml.prototype.render=ll.prototype.render=function(e){var s=this._internalRoot;if(s===null)throw Error(p$1(409));fl(e,s,null,null)};ml.prototype.unmount=ll.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var s=e.containerInfo;Rk(function(){fl(null,e,null,null)}),s[uf]=null}};function ml(e){this._internalRoot=e}ml.prototype.unstable_scheduleHydration=function(e){if(e){var s=Hc();e={blockedOn:null,target:e,priority:s};for(var i=0;i<Qc.length&&s!==0&&s<Qc[i].priority;i++);Qc.splice(i,0,e),i===0&&Vc(e)}};function nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ol(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pl(){}function ql(e,s,i,a,o){if(o){if(typeof a=="function"){var c=a;a=function(){var $=gl(g);c.call($)}}var g=el(s,a,e,0,null,!1,!1,"",pl);return e._reactRootContainer=g,e[uf]=g.current,sf(e.nodeType===8?e.parentNode:e),Rk(),g}for(;o=e.lastChild;)e.removeChild(o);if(typeof a=="function"){var _=a;a=function(){var $=gl(b);_.call($)}}var b=bl(e,0,!1,null,null,!1,!1,"",pl);return e._reactRootContainer=b,e[uf]=b.current,sf(e.nodeType===8?e.parentNode:e),Rk(function(){fl(s,b,i,a)}),b}function rl(e,s,i,a,o){var c=i._reactRootContainer;if(c){var g=c;if(typeof o=="function"){var _=o;o=function(){var b=gl(g);_.call(b)}}fl(s,g,e,o)}else g=ql(i,s,e,o,a);return gl(g)}Ec=function(e){switch(e.tag){case 3:var s=e.stateNode;if(s.current.memoizedState.isDehydrated){var i=tc(s.pendingLanes);i!==0&&(Cc(s,i|1),Dk(s,B()),!(K&6)&&(Gj=B()+500,jg()))}break;case 13:Rk(function(){var a=ih(e,1);if(a!==null){var o=R();gi(a,e,1,o)}}),il(e,1)}};Fc=function(e){if(e.tag===13){var s=ih(e,134217728);if(s!==null){var i=R();gi(s,e,134217728,i)}il(e,134217728)}};Gc=function(e){if(e.tag===13){var s=yi(e),i=ih(e,s);if(i!==null){var a=R();gi(i,e,s,a)}il(e,s)}};Hc=function(){return C};Ic=function(e,s){var i=C;try{return C=e,s()}finally{C=i}};yb=function(e,s,i){switch(s){case"input":if(bb(e,i),s=i.name,i.type==="radio"&&s!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<i.length;s++){var a=i[s];if(a!==e&&a.form===e.form){var o=Db(a);if(!o)throw Error(p$1(90));Wa(a),bb(a,o)}}}break;case"textarea":ib(e,i);break;case"select":s=i.value,s!=null&&fb(e,!!i.multiple,s,!1)}};Gb=Qk;Hb=Rk;var sl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zb(e),e===null?null:e.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||jl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl;reactDom_production_min.createPortal=function(e,s){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nl(s))throw Error(p$1(200));return cl(e,s,null,i)};reactDom_production_min.createRoot=function(e,s){if(!nl(e))throw Error(p$1(299));var i=!1,a="",o=kl;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(a=s.identifierPrefix),s.onRecoverableError!==void 0&&(o=s.onRecoverableError)),s=bl(e,1,!1,null,null,i,!1,a,o),e[uf]=s.current,sf(e.nodeType===8?e.parentNode:e),new ll(s)};reactDom_production_min.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var s=e._reactInternals;if(s===void 0)throw typeof e.render=="function"?Error(p$1(188)):(e=Object.keys(e).join(","),Error(p$1(268,e)));return e=Zb(s),e=e===null?null:e.stateNode,e};reactDom_production_min.flushSync=function(e){return Rk(e)};reactDom_production_min.hydrate=function(e,s,i){if(!ol(s))throw Error(p$1(200));return rl(null,e,s,!0,i)};reactDom_production_min.hydrateRoot=function(e,s,i){if(!nl(e))throw Error(p$1(405));var a=i!=null&&i.hydratedSources||null,o=!1,c="",g=kl;if(i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),s=el(s,null,e,1,i??null,o,!1,c,g),e[uf]=s.current,sf(e),a)for(e=0;e<a.length;e++)i=a[e],o=i._getVersion,o=o(i._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[i,o]:s.mutableSourceEagerHydrationData.push(i,o);return new ml(s)};reactDom_production_min.render=function(e,s,i){if(!ol(s))throw Error(p$1(200));return rl(null,e,s,!1,i)};reactDom_production_min.unmountComponentAtNode=function(e){if(!ol(e))throw Error(p$1(40));return e._reactRootContainer?(Rk(function(){rl(null,null,e,!1,function(){e._reactRootContainer=null,e[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Qk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(e,s,i,a){if(!ol(i))throw Error(p$1(200));if(e==null||e._reactInternals===void 0)throw Error(p$1(38));return rl(e,s,i,!1,a)};reactDom_production_min.version="18.3.1-next-f1338f8080-20240426";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(e){console.error(e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports,createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},defaultTimeoutProvider={setTimeout:(e,s)=>setTimeout(e,s),clearTimeout:e=>clearTimeout(e),setInterval:(e,s)=>setInterval(e,s),clearInterval:e=>clearInterval(e)},Ir,Tn,In,TimeoutManager=(In=class{constructor(){zt(this,Ir,defaultTimeoutProvider);zt(this,Tn,!1)}setTimeoutProvider(e){Ht(this,Ir,e)}setTimeout(e,s){return Et(this,Ir).setTimeout(e,s)}clearTimeout(e){Et(this,Ir).clearTimeout(e)}setInterval(e,s){return Et(this,Ir).setInterval(e,s)}clearInterval(e){Et(this,Ir).clearInterval(e)}},Ir=new WeakMap,Tn=new WeakMap,In),timeoutManager=new TimeoutManager;function systemSetTimeoutZero(e){setTimeout(e,0)}var isServer=typeof window>"u"||"Deno"in globalThis;function noop(){}function functionalUpdate(e,s){return typeof e=="function"?e(s):e}function isValidTimeout(e){return typeof e=="number"&&e>=0&&e!==1/0}function timeUntilStale(e,s){return Math.max(e+(s||0)-Date.now(),0)}function resolveStaleTime(e,s){return typeof e=="function"?e(s):e}function resolveEnabled(e,s){return typeof e=="function"?e(s):e}function matchQuery(e,s){const{type:i="all",exact:a,fetchStatus:o,predicate:c,queryKey:g,stale:_}=e;if(g){if(a){if(s.queryHash!==hashQueryKeyByOptions(g,s.options))return!1}else if(!partialMatchKey(s.queryKey,g))return!1}if(i!=="all"){const b=s.isActive();if(i==="active"&&!b||i==="inactive"&&b)return!1}return!(typeof _=="boolean"&&s.isStale()!==_||o&&o!==s.state.fetchStatus||c&&!c(s))}function matchMutation(e,s){const{exact:i,status:a,predicate:o,mutationKey:c}=e;if(c){if(!s.options.mutationKey)return!1;if(i){if(hashKey(s.options.mutationKey)!==hashKey(c))return!1}else if(!partialMatchKey(s.options.mutationKey,c))return!1}return!(a&&s.state.status!==a||o&&!o(s))}function hashQueryKeyByOptions(e,s){return((s==null?void 0:s.queryKeyHashFn)||hashKey)(e)}function hashKey(e){return JSON.stringify(e,(s,i)=>isPlainObject(i)?Object.keys(i).sort().reduce((a,o)=>(a[o]=i[o],a),{}):i)}function partialMatchKey(e,s){return e===s?!0:typeof e!=typeof s?!1:e&&s&&typeof e=="object"&&typeof s=="object"?Object.keys(s).every(i=>partialMatchKey(e[i],s[i])):!1}var hasOwn=Object.prototype.hasOwnProperty;function replaceEqualDeep(e,s){if(e===s)return e;const i=isPlainArray(e)&&isPlainArray(s);if(!i&&!(isPlainObject(e)&&isPlainObject(s)))return s;const o=(i?e:Object.keys(e)).length,c=i?s:Object.keys(s),g=c.length,_=i?new Array(g):{};let b=0;for(let $=0;$<g;$++){const et=i?$:c[$],ot=e[et],rt=s[et];if(ot===rt){_[et]=ot,(i?$<o:hasOwn.call(e,et))&&b++;continue}if(ot===null||rt===null||typeof ot!="object"||typeof rt!="object"){_[et]=rt;continue}const at=replaceEqualDeep(ot,rt);_[et]=at,at===ot&&b++}return o===g&&b===o?e:_}function shallowEqualObjects(e,s){if(!s||Object.keys(e).length!==Object.keys(s).length)return!1;for(const i in e)if(e[i]!==s[i])return!1;return!0}function isPlainArray(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;const s=e.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!hasObjectPrototype(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function hasObjectPrototype(e){return Object.prototype.toString.call(e)==="[object Object]"}function sleep(e){return new Promise(s=>{timeoutManager.setTimeout(s,e)})}function replaceData(e,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,s):i.structuralSharing!==!1?replaceEqualDeep(e,s):s}function addToEnd(e,s,i=0){const a=[...e,s];return i&&a.length>i?a.slice(1):a}function addToStart(e,s,i=0){const a=[s,...e];return i&&a.length>i?a.slice(0,-1):a}var skipToken=Symbol();function ensureQueryFn(e,s){return!e.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!e.queryFn||e.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function shouldThrowError(e,s){return typeof e=="function"?e(...s):!!e}var Hr,Mr,qr,Mn,FocusManager=(Mn=class extends Subscribable{constructor(){super();zt(this,Hr);zt(this,Mr);zt(this,qr);Ht(this,qr,s=>{if(!isServer&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){Et(this,Mr)||this.setEventListener(Et(this,qr))}onUnsubscribe(){var s;this.hasListeners()||((s=Et(this,Mr))==null||s.call(this),Ht(this,Mr,void 0))}setEventListener(s){var i;Ht(this,qr,s),(i=Et(this,Mr))==null||i.call(this),Ht(this,Mr,s(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(s){Et(this,Hr)!==s&&(Ht(this,Hr,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof Et(this,Hr)=="boolean"?Et(this,Hr):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Hr=new WeakMap,Mr=new WeakMap,qr=new WeakMap,Mn),focusManager=new FocusManager;function pendingThenable(){let e,s;const i=new Promise((o,c)=>{e=o,s=c});i.status="pending",i.catch(()=>{});function a(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{a({status:"fulfilled",value:o}),e(o)},i.reject=o=>{a({status:"rejected",reason:o}),s(o)},i}var defaultScheduler=systemSetTimeoutZero;function createNotifyManager(){let e=[],s=0,i=_=>{_()},a=_=>{_()},o=defaultScheduler;const c=_=>{s?e.push(_):o(()=>{i(_)})},g=()=>{const _=e;e=[],_.length&&o(()=>{a(()=>{_.forEach(b=>{i(b)})})})};return{batch:_=>{let b;s++;try{b=_()}finally{s--,s||g()}return b},batchCalls:_=>(...b)=>{c(()=>{_(...b)})},schedule:c,setNotifyFunction:_=>{i=_},setBatchNotifyFunction:_=>{a=_},setScheduler:_=>{o=_}}}var notifyManager=createNotifyManager(),Xr,Lr,Yr,Ln,OnlineManager=(Ln=class extends Subscribable{constructor(){super();zt(this,Xr,!0);zt(this,Lr);zt(this,Yr);Ht(this,Yr,s=>{if(!isServer&&window.addEventListener){const i=()=>s(!0),a=()=>s(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}}})}onSubscribe(){Et(this,Lr)||this.setEventListener(Et(this,Yr))}onUnsubscribe(){var s;this.hasListeners()||((s=Et(this,Lr))==null||s.call(this),Ht(this,Lr,void 0))}setEventListener(s){var i;Ht(this,Yr,s),(i=Et(this,Lr))==null||i.call(this),Ht(this,Lr,s(this.setOnline.bind(this)))}setOnline(s){Et(this,Xr)!==s&&(Ht(this,Xr,s),this.listeners.forEach(a=>{a(s)}))}isOnline(){return Et(this,Xr)}},Xr=new WeakMap,Lr=new WeakMap,Yr=new WeakMap,Ln),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=st=>{var dt;if(!c()){const j=new CancelledError(st);rt(j),(dt=e.onCancel)==null||dt.call(e,j)}},_=()=>{s=!0},b=()=>{s=!1},$=()=>focusManager.isFocused()&&(e.networkMode==="always"||onlineManager.isOnline())&&e.canRun(),et=()=>canFetch(e.networkMode)&&e.canRun(),ot=st=>{c()||(a==null||a(),o.resolve(st))},rt=st=>{c()||(a==null||a(),o.reject(st))},at=()=>new Promise(st=>{var dt;a=j=>{(c()||$())&&st(j)},(dt=e.onPause)==null||dt.call(e)}).then(()=>{var st;a=void 0,c()||(st=e.onContinue)==null||st.call(e)}),it=()=>{if(c())return;let st;const dt=i===0?e.initialPromise:void 0;try{st=dt??e.fn()}catch(j){st=Promise.reject(j)}Promise.resolve(st).then(ot).catch(j=>{var ht;if(c())return;const tt=e.retry??(isServer?0:3),_e=e.retryDelay??defaultRetryDelay,nt=typeof _e=="function"?_e(i,j):_e,ut=tt===!0||typeof tt=="number"&&i<tt||typeof tt=="function"&&tt(i,j);if(s||!ut){rt(j);return}i++,(ht=e.onFail)==null||ht.call(e,i,j),sleep(nt).then(()=>$()?void 0:at()).then(()=>{s?rt(j):it()})})};return{promise:o,status:()=>o.status,cancel:g,continue:()=>(a==null||a(),o),cancelRetry:_,continueRetry:b,canStart:et,start:()=>(et()?it():at().then(it),o)}}var Vr,On,Removable=(On=class{constructor(){zt(this,Vr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Ht(this,Vr,timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(isServer?1/0:5*60*1e3))}clearGcTimeout(){Et(this,Vr)&&(timeoutManager.clearTimeout(Et(this,Vr)),Ht(this,Vr,void 0))}},Vr=new WeakMap,On),Gr,Jr,pr,zr,sr,cn,$r,vr,br,jn,Query=(jn=class extends Removable{constructor(s){super();zt(this,vr);zt(this,Gr);zt(this,Jr);zt(this,pr);zt(this,zr);zt(this,sr);zt(this,cn);zt(this,$r);Ht(this,$r,!1),Ht(this,cn,s.defaultOptions),this.setOptions(s.options),this.observers=[],Ht(this,zr,s.client),Ht(this,pr,Et(this,zr).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,Ht(this,Gr,getDefaultState$1(this.options)),this.state=s.state??Et(this,Gr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=Et(this,sr))==null?void 0:s.promise}setOptions(s){if(this.options={...Et(this,cn),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=getDefaultState$1(this.options);i.data!==void 0&&(this.setData(i.data,{updatedAt:i.dataUpdatedAt,manual:!0}),Ht(this,Gr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Et(this,pr).remove(this)}setData(s,i){const a=replaceData(this.state.data,s,this.options);return qt(this,vr,br).call(this,{data:a,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),a}setState(s,i){qt(this,vr,br).call(this,{type:"setState",state:s,setStateOptions:i})}cancel(s){var a,o;const i=(a=Et(this,sr))==null?void 0:a.promise;return(o=Et(this,sr))==null||o.cancel(s),i?i.then(noop).catch(noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Et(this,Gr))}isActive(){return this.observers.some(s=>resolveEnabled(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>resolveStaleTime(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!timeUntilStale(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(a=>a.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=Et(this,sr))==null||i.continue()}onOnline(){var i;const s=this.observers.find(a=>a.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=Et(this,sr))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),Et(this,pr).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(Et(this,sr)&&(Et(this,$r)?Et(this,sr).cancel({revert:!0}):Et(this,sr).cancelRetry()),this.scheduleGc()),Et(this,pr).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||qt(this,vr,br).call(this,{type:"invalidate"})}async fetch(s,i){var b,$,et,ot,rt,at,it,st,dt,j,tt,_e;if(this.state.fetchStatus!=="idle"&&((b=Et(this,sr))==null?void 0:b.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(Et(this,sr))return Et(this,sr).continueRetry(),Et(this,sr).promise}if(s&&this.setOptions(s),!this.options.queryFn){const nt=this.observers.find(ut=>ut.options.queryFn);nt&&this.setOptions(nt.options)}const a=new AbortController,o=nt=>{Object.defineProperty(nt,"signal",{enumerable:!0,get:()=>(Ht(this,$r,!0),a.signal)})},c=()=>{const nt=ensureQueryFn(this.options,i),ht=(()=>{const gt={client:Et(this,zr),queryKey:this.queryKey,meta:this.meta};return o(gt),gt})();return Ht(this,$r,!1),this.options.persister?this.options.persister(nt,ht,this):nt(ht)},_=(()=>{const nt={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:Et(this,zr),state:this.state,fetchFn:c};return o(nt),nt})();($=this.options.behavior)==null||$.onFetch(_,this),Ht(this,Jr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((et=_.fetchOptions)==null?void 0:et.meta))&&qt(this,vr,br).call(this,{type:"fetch",meta:(ot=_.fetchOptions)==null?void 0:ot.meta}),Ht(this,sr,createRetryer({initialPromise:i==null?void 0:i.initialPromise,fn:_.fetchFn,onCancel:nt=>{nt instanceof CancelledError&&nt.revert&&this.setState({...Et(this,Jr),fetchStatus:"idle"}),a.abort()},onFail:(nt,ut)=>{qt(this,vr,br).call(this,{type:"failed",failureCount:nt,error:ut})},onPause:()=>{qt(this,vr,br).call(this,{type:"pause"})},onContinue:()=>{qt(this,vr,br).call(this,{type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode,canRun:()=>!0}));try{const nt=await Et(this,sr).start();if(nt===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(nt),(at=(rt=Et(this,pr).config).onSuccess)==null||at.call(rt,nt,this),(st=(it=Et(this,pr).config).onSettled)==null||st.call(it,nt,this.state.error,this),nt}catch(nt){if(nt instanceof CancelledError){if(nt.silent)return Et(this,sr).promise;if(nt.revert){if(this.state.data===void 0)throw nt;return this.state.data}}throw qt(this,vr,br).call(this,{type:"error",error:nt}),(j=(dt=Et(this,pr).config).onError)==null||j.call(dt,nt,this),(_e=(tt=Et(this,pr).config).onSettled)==null||_e.call(tt,this.state.data,nt,this),nt}finally{this.scheduleGc()}}},Gr=new WeakMap,Jr=new WeakMap,pr=new WeakMap,zr=new WeakMap,sr=new WeakMap,cn=new WeakMap,$r=new WeakMap,vr=new WeakSet,br=function(s){const i=a=>{switch(s.type){case"failed":return{...a,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...fetchState(a.data,this.options),fetchMeta:s.meta??null};case"success":const o={...a,data:s.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:s.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ht(this,Jr,s.manual?o:void 0),o;case"error":const c=s.error;return{...a,error:c,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...s.state}}};this.state=i(this.state),notifyManager.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),Et(this,pr).notify({query:this,type:"updated",action:s})})},jn);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 hr,Yt,dn,lr,Ur,Zr,kr,Or,pn,en,tn,Wr,Kr,jr,rn,Jt,hn,xn,_n,En,An,Sn,bn,kn,Gn,Fn,QueryObserver=(Fn=class extends Subscribable{constructor(s,i){super();zt(this,Jt);zt(this,hr);zt(this,Yt);zt(this,dn);zt(this,lr);zt(this,Ur);zt(this,Zr);zt(this,kr);zt(this,Or);zt(this,pn);zt(this,en);zt(this,tn);zt(this,Wr);zt(this,Kr);zt(this,jr);zt(this,rn,new Set);this.options=i,Ht(this,hr,s),Ht(this,Or,null),Ht(this,kr,pendingThenable()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Et(this,Yt).addObserver(this),shouldFetchOnMount(Et(this,Yt),this.options)?qt(this,Jt,hn).call(this):this.updateResult(),qt(this,Jt,An).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(Et(this,Yt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(Et(this,Yt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,qt(this,Jt,Sn).call(this),qt(this,Jt,bn).call(this),Et(this,Yt).removeObserver(this)}setOptions(s){const i=this.options,a=Et(this,Yt);if(this.options=Et(this,hr).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,Et(this,Yt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");qt(this,Jt,kn).call(this),Et(this,Yt).setOptions(this.options),i._defaulted&&!shallowEqualObjects(this.options,i)&&Et(this,hr).getQueryCache().notify({type:"observerOptionsUpdated",query:Et(this,Yt),observer:this});const o=this.hasListeners();o&&shouldFetchOptionally(Et(this,Yt),a,this.options,i)&&qt(this,Jt,hn).call(this),this.updateResult(),o&&(Et(this,Yt)!==a||resolveEnabled(this.options.enabled,Et(this,Yt))!==resolveEnabled(i.enabled,Et(this,Yt))||resolveStaleTime(this.options.staleTime,Et(this,Yt))!==resolveStaleTime(i.staleTime,Et(this,Yt)))&&qt(this,Jt,xn).call(this);const c=qt(this,Jt,_n).call(this);o&&(Et(this,Yt)!==a||resolveEnabled(this.options.enabled,Et(this,Yt))!==resolveEnabled(i.enabled,Et(this,Yt))||c!==Et(this,jr))&&qt(this,Jt,En).call(this,c)}getOptimisticResult(s){const i=Et(this,hr).getQueryCache().build(Et(this,hr),s),a=this.createResult(i,s);return shouldAssignObserverCurrentProperties(this,a)&&(Ht(this,lr,a),Ht(this,Zr,this.options),Ht(this,Ur,Et(this,Yt).state)),a}getCurrentResult(){return Et(this,lr)}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&&Et(this,kr).status==="pending"&&Et(this,kr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,o))})}trackProp(s){Et(this,rn).add(s)}getCurrentQuery(){return Et(this,Yt)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const i=Et(this,hr).defaultQueryOptions(s),a=Et(this,hr).getQueryCache().build(Et(this,hr),i);return a.fetch().then(()=>this.createResult(a,i))}fetch(s){return qt(this,Jt,hn).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),Et(this,lr)))}createResult(s,i){var _t;const a=Et(this,Yt),o=this.options,c=Et(this,lr),g=Et(this,Ur),_=Et(this,Zr),$=s!==a?s.state:Et(this,dn),{state:et}=s;let ot={...et},rt=!1,at;if(i._optimisticResults){const At=this.hasListeners(),kt=!At&&shouldFetchOnMount(s,i),St=At&&shouldFetchOptionally(s,a,i,o);(kt||St)&&(ot={...ot,...fetchState(et.data,s.options)}),i._optimisticResults==="isRestoring"&&(ot.fetchStatus="idle")}let{error:it,errorUpdatedAt:st,status:dt}=ot;at=ot.data;let j=!1;if(i.placeholderData!==void 0&&at===void 0&&dt==="pending"){let At;c!=null&&c.isPlaceholderData&&i.placeholderData===(_==null?void 0:_.placeholderData)?(At=c.data,j=!0):At=typeof i.placeholderData=="function"?i.placeholderData((_t=Et(this,tn))==null?void 0:_t.state.data,Et(this,tn)):i.placeholderData,At!==void 0&&(dt="success",at=replaceData(c==null?void 0:c.data,At,i),rt=!0)}if(i.select&&at!==void 0&&!j)if(c&&at===(g==null?void 0:g.data)&&i.select===Et(this,pn))at=Et(this,en);else try{Ht(this,pn,i.select),at=i.select(at),at=replaceData(c==null?void 0:c.data,at,i),Ht(this,en,at),Ht(this,Or,null)}catch(At){Ht(this,Or,At)}Et(this,Or)&&(it=Et(this,Or),at=Et(this,en),st=Date.now(),dt="error");const tt=ot.fetchStatus==="fetching",_e=dt==="pending",nt=dt==="error",ut=_e&&tt,ht=at!==void 0,ft={status:dt,fetchStatus:ot.fetchStatus,isPending:_e,isSuccess:dt==="success",isError:nt,isInitialLoading:ut,isLoading:ut,data:at,dataUpdatedAt:ot.dataUpdatedAt,error:it,errorUpdatedAt:st,failureCount:ot.fetchFailureCount,failureReason:ot.fetchFailureReason,errorUpdateCount:ot.errorUpdateCount,isFetched:ot.dataUpdateCount>0||ot.errorUpdateCount>0,isFetchedAfterMount:ot.dataUpdateCount>$.dataUpdateCount||ot.errorUpdateCount>$.errorUpdateCount,isFetching:tt,isRefetching:tt&&!_e,isLoadingError:nt&&!ht,isPaused:ot.fetchStatus==="paused",isPlaceholderData:rt,isRefetchError:nt&&ht,isStale:isStale(s,i),refetch:this.refetch,promise:Et(this,kr),isEnabled:resolveEnabled(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const At=Ct=>{ft.status==="error"?Ct.reject(ft.error):ft.data!==void 0&&Ct.resolve(ft.data)},kt=()=>{const Ct=Ht(this,kr,ft.promise=pendingThenable());At(Ct)},St=Et(this,kr);switch(St.status){case"pending":s.queryHash===a.queryHash&&At(St);break;case"fulfilled":(ft.status==="error"||ft.data!==St.value)&&kt();break;case"rejected":(ft.status!=="error"||ft.error!==St.reason)&&kt();break}}return ft}updateResult(){const s=Et(this,lr),i=this.createResult(Et(this,Yt),this.options);if(Ht(this,Ur,Et(this,Yt).state),Ht(this,Zr,this.options),Et(this,Ur).data!==void 0&&Ht(this,tn,Et(this,Yt)),shallowEqualObjects(i,s))return;Ht(this,lr,i);const a=()=>{if(!s)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!Et(this,rn).size)return!0;const g=new Set(c??Et(this,rn));return this.options.throwOnError&&g.add("error"),Object.keys(Et(this,lr)).some(_=>{const b=_;return Et(this,lr)[b]!==s[b]&&g.has(b)})};qt(this,Jt,Gn).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&qt(this,Jt,An).call(this)}},hr=new WeakMap,Yt=new WeakMap,dn=new WeakMap,lr=new WeakMap,Ur=new WeakMap,Zr=new WeakMap,kr=new WeakMap,Or=new WeakMap,pn=new WeakMap,en=new WeakMap,tn=new WeakMap,Wr=new WeakMap,Kr=new WeakMap,jr=new WeakMap,rn=new WeakMap,Jt=new WeakSet,hn=function(s){qt(this,Jt,kn).call(this);let i=Et(this,Yt).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(noop)),i},xn=function(){qt(this,Jt,Sn).call(this);const s=resolveStaleTime(this.options.staleTime,Et(this,Yt));if(isServer||Et(this,lr).isStale||!isValidTimeout(s))return;const a=timeUntilStale(Et(this,lr).dataUpdatedAt,s)+1;Ht(this,Wr,timeoutManager.setTimeout(()=>{Et(this,lr).isStale||this.updateResult()},a))},_n=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Et(this,Yt)):this.options.refetchInterval)??!1},En=function(s){qt(this,Jt,bn).call(this),Ht(this,jr,s),!(isServer||resolveEnabled(this.options.enabled,Et(this,Yt))===!1||!isValidTimeout(Et(this,jr))||Et(this,jr)===0)&&Ht(this,Kr,timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&qt(this,Jt,hn).call(this)},Et(this,jr)))},An=function(){qt(this,Jt,xn).call(this),qt(this,Jt,En).call(this,qt(this,Jt,_n).call(this))},Sn=function(){Et(this,Wr)&&(timeoutManager.clearTimeout(Et(this,Wr)),Ht(this,Wr,void 0))},bn=function(){Et(this,Kr)&&(timeoutManager.clearInterval(Et(this,Kr)),Ht(this,Kr,void 0))},kn=function(){const s=Et(this,hr).getQueryCache().build(Et(this,hr),this.options);if(s===Et(this,Yt))return;const i=Et(this,Yt);Ht(this,Yt,s),Ht(this,dn,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},Gn=function(s){notifyManager.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(Et(this,lr))}),Et(this,hr).getQueryCache().notify({query:Et(this,Yt),type:"observerResultsUpdated"})})},Fn);function shouldLoadOnMount(e,s){return resolveEnabled(s.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&s.retryOnMount===!1)}function shouldFetchOnMount(e,s){return shouldLoadOnMount(e,s)||e.state.data!==void 0&&shouldFetchOn(e,s,s.refetchOnMount)}function shouldFetchOn(e,s,i){if(resolveEnabled(s.enabled,e)!==!1&&resolveStaleTime(s.staleTime,e)!=="static"){const a=typeof i=="function"?i(e):i;return a==="always"||a!==!1&&isStale(e,s)}return!1}function shouldFetchOptionally(e,s,i,a){return(e!==s||resolveEnabled(a.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&isStale(e,i)}function isStale(e,s){return resolveEnabled(s.enabled,e)!==!1&&e.isStaleByTime(resolveStaleTime(s.staleTime,e))}function shouldAssignObserverCurrentProperties(e,s){return!shallowEqualObjects(e.getCurrentResult(),s)}function infiniteQueryBehavior(e){return{onFetch:(s,i)=>{var et,ot,rt,at,it;const a=s.options,o=(rt=(ot=(et=s.fetchOptions)==null?void 0:et.meta)==null?void 0:ot.fetchMore)==null?void 0:rt.direction,c=((at=s.state.data)==null?void 0:at.pages)||[],g=((it=s.state.data)==null?void 0:it.pageParams)||[];let _={pages:[],pageParams:[]},b=0;const $=async()=>{let st=!1;const dt=_e=>{Object.defineProperty(_e,"signal",{enumerable:!0,get:()=>(s.signal.aborted?st=!0:s.signal.addEventListener("abort",()=>{st=!0}),s.signal)})},j=ensureQueryFn(s.options,s.fetchOptions),tt=async(_e,nt,ut)=>{if(st)return Promise.reject();if(nt==null&&_e.pages.length)return Promise.resolve(_e);const gt=(()=>{const kt={client:s.client,queryKey:s.queryKey,pageParam:nt,direction:ut?"backward":"forward",meta:s.options.meta};return dt(kt),kt})(),ft=await j(gt),{maxPages:_t}=s.options,At=ut?addToStart:addToEnd;return{pages:At(_e.pages,ft,_t),pageParams:At(_e.pageParams,nt,_t)}};if(o&&c.length){const _e=o==="backward",nt=_e?getPreviousPageParam:getNextPageParam,ut={pages:c,pageParams:g},ht=nt(a,ut);_=await tt(ut,ht,_e)}else{const _e=e??c.length;do{const nt=b===0?g[0]??a.initialPageParam:getNextPageParam(a,_);if(b>0&&nt==null)break;_=await tt(_,nt),b++}while(b<_e)}return _};s.options.persister?s.fetchFn=()=>{var st,dt;return(dt=(st=s.options).persister)==null?void 0:dt.call(st,$,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=$}}}function getNextPageParam(e,{pages:s,pageParams:i}){const a=s.length-1;return s.length>0?e.getNextPageParam(s[a],s,i[a],i):void 0}function getPreviousPageParam(e,{pages:s,pageParams:i}){var a;return s.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,s[0],s,i[0],i):void 0}var fn,_r,ur,Qr,Er,Rr,Nn,Mutation=(Nn=class extends Removable{constructor(s){super();zt(this,Er);zt(this,fn);zt(this,_r);zt(this,ur);zt(this,Qr);Ht(this,fn,s.client),this.mutationId=s.mutationId,Ht(this,ur,s.mutationCache),Ht(this,_r,[]),this.state=s.state||getDefaultState(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){Et(this,_r).includes(s)||(Et(this,_r).push(s),this.clearGcTimeout(),Et(this,ur).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){Ht(this,_r,Et(this,_r).filter(i=>i!==s)),this.scheduleGc(),Et(this,ur).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){Et(this,_r).length||(this.state.status==="pending"?this.scheduleGc():Et(this,ur).remove(this))}continue(){var s;return((s=Et(this,Qr))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var g,_,b,$,et,ot,rt,at,it,st,dt,j,tt,_e,nt,ut,ht,gt,ft,_t;const i=()=>{qt(this,Er,Rr).call(this,{type:"continue"})},a={client:Et(this,fn),meta:this.options.meta,mutationKey:this.options.mutationKey};Ht(this,Qr,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(s,a):Promise.reject(new Error("No mutationFn found")),onFail:(At,kt)=>{qt(this,Er,Rr).call(this,{type:"failed",failureCount:At,error:kt})},onPause:()=>{qt(this,Er,Rr).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Et(this,ur).canRun(this)}));const o=this.state.status==="pending",c=!Et(this,Qr).canStart();try{if(o)i();else{qt(this,Er,Rr).call(this,{type:"pending",variables:s,isPaused:c}),await((_=(g=Et(this,ur).config).onMutate)==null?void 0:_.call(g,s,this,a));const kt=await(($=(b=this.options).onMutate)==null?void 0:$.call(b,s,a));kt!==this.state.context&&qt(this,Er,Rr).call(this,{type:"pending",context:kt,variables:s,isPaused:c})}const At=await Et(this,Qr).start();return await((ot=(et=Et(this,ur).config).onSuccess)==null?void 0:ot.call(et,At,s,this.state.context,this,a)),await((at=(rt=this.options).onSuccess)==null?void 0:at.call(rt,At,s,this.state.context,a)),await((st=(it=Et(this,ur).config).onSettled)==null?void 0:st.call(it,At,null,this.state.variables,this.state.context,this,a)),await((j=(dt=this.options).onSettled)==null?void 0:j.call(dt,At,null,s,this.state.context,a)),qt(this,Er,Rr).call(this,{type:"success",data:At}),At}catch(At){try{throw await((_e=(tt=Et(this,ur).config).onError)==null?void 0:_e.call(tt,At,s,this.state.context,this,a)),await((ut=(nt=this.options).onError)==null?void 0:ut.call(nt,At,s,this.state.context,a)),await((gt=(ht=Et(this,ur).config).onSettled)==null?void 0:gt.call(ht,void 0,At,this.state.variables,this.state.context,this,a)),await((_t=(ft=this.options).onSettled)==null?void 0:_t.call(ft,void 0,At,s,this.state.context,a)),At}finally{qt(this,Er,Rr).call(this,{type:"error",error:At})}}finally{Et(this,ur).runNext(this)}}},fn=new WeakMap,_r=new WeakMap,ur=new WeakMap,Qr=new WeakMap,Er=new WeakSet,Rr=function(s){const i=a=>{switch(s.type){case"failed":return{...a,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...a,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:s.error,failureCount:a.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=i(this.state),notifyManager.batch(()=>{Et(this,_r).forEach(a=>{a.onMutationUpdate(s)}),Et(this,ur).notify({mutation:this,type:"updated",action:s})})},Nn);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wr,yr,mn,Dn,MutationCache=(Dn=class extends Subscribable{constructor(s={}){super();zt(this,wr);zt(this,yr);zt(this,mn);this.config=s,Ht(this,wr,new Set),Ht(this,yr,new Map),Ht(this,mn,0)}build(s,i,a){const o=new Mutation({client:s,mutationCache:this,mutationId:++gn(this,mn)._,options:s.defaultMutationOptions(i),state:a});return this.add(o),o}add(s){Et(this,wr).add(s);const i=scopeFor(s);if(typeof i=="string"){const a=Et(this,yr).get(i);a?a.push(s):Et(this,yr).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(Et(this,wr).delete(s)){const i=scopeFor(s);if(typeof i=="string"){const a=Et(this,yr).get(i);if(a)if(a.length>1){const o=a.indexOf(s);o!==-1&&a.splice(o,1)}else a[0]===s&&Et(this,yr).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=scopeFor(s);if(typeof i=="string"){const a=Et(this,yr).get(i),o=a==null?void 0:a.find(c=>c.state.status==="pending");return!o||o===s}else return!0}runNext(s){var a;const i=scopeFor(s);if(typeof i=="string"){const o=(a=Et(this,yr).get(i))==null?void 0:a.find(c=>c!==s&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){notifyManager.batch(()=>{Et(this,wr).forEach(s=>{this.notify({type:"removed",mutation:s})}),Et(this,wr).clear(),Et(this,yr).clear()})}getAll(){return Array.from(Et(this,wr))}find(s){const i={exact:!0,...s};return this.getAll().find(a=>matchMutation(i,a))}findAll(s={}){return this.getAll().filter(i=>matchMutation(s,i))}notify(s){notifyManager.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return notifyManager.batch(()=>Promise.all(s.map(i=>i.continue().catch(noop))))}},wr=new WeakMap,yr=new WeakMap,mn=new WeakMap,Dn);function scopeFor(e){var s;return(s=e.options.scope)==null?void 0:s.id}var Tr,Fr,cr,Cr,Pr,vn,wn,Bn,MutationObserver$1=(Bn=class extends Subscribable{constructor(i,a){super();zt(this,Pr);zt(this,Tr);zt(this,Fr);zt(this,cr);zt(this,Cr);Ht(this,Tr,i),this.setOptions(a),this.bindMethods(),qt(this,Pr,vn).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=Et(this,Tr).defaultMutationOptions(i),shallowEqualObjects(this.options,a)||Et(this,Tr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Et(this,cr),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&hashKey(a.mutationKey)!==hashKey(this.options.mutationKey)?this.reset():((o=Et(this,cr))==null?void 0:o.state.status)==="pending"&&Et(this,cr).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=Et(this,cr))==null||i.removeObserver(this)}onMutationUpdate(i){qt(this,Pr,vn).call(this),qt(this,Pr,wn).call(this,i)}getCurrentResult(){return Et(this,Fr)}reset(){var i;(i=Et(this,cr))==null||i.removeObserver(this),Ht(this,cr,void 0),qt(this,Pr,vn).call(this),qt(this,Pr,wn).call(this)}mutate(i,a){var o;return Ht(this,Cr,a),(o=Et(this,cr))==null||o.removeObserver(this),Ht(this,cr,Et(this,Tr).getMutationCache().build(Et(this,Tr),this.options)),Et(this,cr).addObserver(this),Et(this,cr).execute(i)}},Tr=new WeakMap,Fr=new WeakMap,cr=new WeakMap,Cr=new WeakMap,Pr=new WeakSet,vn=function(){var a;const i=((a=Et(this,cr))==null?void 0:a.state)??getDefaultState();Ht(this,Fr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},wn=function(i){notifyManager.batch(()=>{var a,o,c,g,_,b,$,et;if(Et(this,Cr)&&this.hasListeners()){const ot=Et(this,Fr).variables,rt=Et(this,Fr).context,at={client:Et(this,Tr),meta:this.options.meta,mutationKey:this.options.mutationKey};(i==null?void 0:i.type)==="success"?((o=(a=Et(this,Cr)).onSuccess)==null||o.call(a,i.data,ot,rt,at),(g=(c=Et(this,Cr)).onSettled)==null||g.call(c,i.data,null,ot,rt,at)):(i==null?void 0:i.type)==="error"&&((b=(_=Et(this,Cr)).onError)==null||b.call(_,i.error,ot,rt,at),(et=($=Et(this,Cr)).onSettled)==null||et.call($,void 0,i.error,ot,rt,at))}this.listeners.forEach(ot=>{ot(Et(this,Fr))})})},Bn),Ar,Hn,QueryCache=(Hn=class extends Subscribable{constructor(s={}){super();zt(this,Ar);this.config=s,Ht(this,Ar,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){Et(this,Ar).has(s.queryHash)||(Et(this,Ar).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=Et(this,Ar).get(s.queryHash);i&&(s.destroy(),i===s&&Et(this,Ar).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return Et(this,Ar).get(s)}getAll(){return[...Et(this,Ar).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()})})}},Ar=new WeakMap,Hn),nr,Nr,Dr,nn,sn,Br,an,on,Vn,QueryClient=(Vn=class{constructor(e={}){zt(this,nr);zt(this,Nr);zt(this,Dr);zt(this,nn);zt(this,sn);zt(this,Br);zt(this,an);zt(this,on);Ht(this,nr,e.queryCache||new QueryCache),Ht(this,Nr,e.mutationCache||new MutationCache),Ht(this,Dr,e.defaultOptions||{}),Ht(this,nn,new Map),Ht(this,sn,new Map),Ht(this,Br,0)}mount(){gn(this,Br)._++,Et(this,Br)===1&&(Ht(this,an,focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),Et(this,nr).onFocus())})),Ht(this,on,onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),Et(this,nr).onOnline())})))}unmount(){var e,s;gn(this,Br)._--,Et(this,Br)===0&&((e=Et(this,an))==null||e.call(this),Ht(this,an,void 0),(s=Et(this,on))==null||s.call(this),Ht(this,on,void 0))}isFetching(e){return Et(this,nr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Et(this,Nr).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const s=this.defaultQueryOptions({queryKey:e});return(i=Et(this,nr).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const s=this.defaultQueryOptions(e),i=Et(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 Et(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=Et(this,nr).get(a.queryHash),c=o==null?void 0:o.state.data,g=functionalUpdate(s,c);if(g!==void 0)return Et(this,nr).build(this,a).setData(g,{...i,manual:!0})}setQueriesData(e,s,i){return notifyManager.batch(()=>Et(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=Et(this,nr).get(s.queryHash))==null?void 0:i.state}removeQueries(e){const s=Et(this,nr);notifyManager.batch(()=>{s.findAll(e).forEach(i=>{s.remove(i)})})}resetQueries(e,s){const i=Et(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(()=>Et(this,nr).findAll(e).map(o=>o.cancel(i)));return Promise.all(a).then(noop).catch(noop)}invalidateQueries(e,s={}){return notifyManager.batch(()=>(Et(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(()=>Et(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=Et(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()?Et(this,Nr).resumePausedMutations():Promise.resolve()}getQueryCache(){return Et(this,nr)}getMutationCache(){return Et(this,Nr)}getDefaultOptions(){return Et(this,Dr)}setDefaultOptions(e){Ht(this,Dr,e)}setQueryDefaults(e,s){Et(this,nn).set(hashKey(e),{queryKey:e,defaultOptions:s})}getQueryDefaults(e){const s=[...Et(this,nn).values()],i={};return s.forEach(a=>{partialMatchKey(e,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(e,s){Et(this,sn).set(hashKey(e),{mutationKey:e,defaultOptions:s})}getMutationDefaults(e){const s=[...Et(this,sn).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={...Et(this,Dr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return s.queryHash||(s.queryHash=hashQueryKeyByOptions(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===skipToken&&(s.enabled=!1),s}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Et(this,Dr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Et(this,nr).clear(),Et(this,Nr).clear()}},nr=new WeakMap,Nr=new WeakMap,Dr=new WeakMap,nn=new WeakMap,sn=new WeakMap,Br=new WeakMap,an=new WeakMap,on=new WeakMap,Vn),QueryClientContext=reactExports.createContext(void 0),useQueryClient=e=>{const s=reactExports.useContext(QueryClientContext);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},QueryClientProvider=({client:e,children:s})=>(reactExports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:e,children:s})),IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext),ensurePreventErrorBoundaryRetry=(e,s)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(s.isReset()||(e.retryOnMount=!1))},useClearResetErrorBoundary=e=>{reactExports.useEffect(()=>{e.clearReset()},[e])},getHasError=({result:e,errorResetBoundary:s,throwOnError:i,query:a,suspense:o})=>e.isError&&!s.isReset()&&!e.isFetching&&a&&(o&&e.data===void 0||shouldThrowError(i,[e.error,a])),ensureSuspenseTimers=e=>{if(e.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...o)=>i(a(...o)):i(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},willFetch=(e,s)=>e.isLoading&&e.isFetching&&!s,shouldSuspend=(e,s)=>(e==null?void 0:e.suspense)&&s.isPending,fetchOptimistic=(e,s,i)=>s.fetchOptimistic(e).catch(()=>{i.clearReset()});function useBaseQuery(e,s,i){var ot,rt,at,it,st;const a=useIsRestoring(),o=useQueryErrorResetBoundary(),c=useQueryClient(),g=c.defaultQueryOptions(e);(rt=(ot=c.getDefaultOptions().queries)==null?void 0:ot._experimental_beforeQuery)==null||rt.call(ot,g),g._optimisticResults=a?"isRestoring":"optimistic",ensureSuspenseTimers(g),ensurePreventErrorBoundaryRetry(g,o),useClearResetErrorBoundary(o);const _=!c.getQueryCache().get(g.queryHash),[b]=reactExports.useState(()=>new s(c,g)),$=b.getOptimisticResult(g),et=!a&&e.subscribed!==!1;if(reactExports.useSyncExternalStore(reactExports.useCallback(dt=>{const j=et?b.subscribe(notifyManager.batchCalls(dt)):noop;return b.updateResult(),j},[b,et]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),reactExports.useEffect(()=>{b.setOptions(g)},[g,b]),shouldSuspend(g,$))throw fetchOptimistic(g,b,o);if(getHasError({result:$,errorResetBoundary:o,throwOnError:g.throwOnError,query:c.getQueryCache().get(g.queryHash),suspense:g.suspense}))throw $.error;if((it=(at=c.getDefaultOptions().queries)==null?void 0:at._experimental_afterQuery)==null||it.call(at,g,$),g.experimental_prefetchInRender&&!isServer&&willFetch($,a)){const dt=_?fetchOptimistic(g,b,o):(st=c.getQueryCache().get(g.queryHash))==null?void 0:st.promise;dt==null||dt.catch(noop).finally(()=>{b.updateResult()})}return g.notifyOnChangeProps?$:b.trackResult($)}function useQuery(e,s){return useBaseQuery(e,QueryObserver)}function useMutation(e,s){const i=useQueryClient(),[a]=reactExports.useState(()=>new MutationObserver$1(i,e));reactExports.useEffect(()=>{a.setOptions(e)},[a,e]);const o=reactExports.useSyncExternalStore(reactExports.useCallback(g=>a.subscribe(notifyManager.batchCalls(g)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=reactExports.useCallback((g,_)=>{a.mutate(g,_).catch(noop)},[a]);if(o.error&&shouldThrowError(a.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}var ABHA_V3_SKIP_STATES=(e=>(e.ABHA_END="abha_end",e.CONFIRM_MOBILE_OTP="confirm_mobile_otp",e.ABHA_CREATE="abha_create",e.ABHA_SELECT="abha_select",e))(ABHA_V3_SKIP_STATES||{}),ABHA_AUTH_FLOW_METHOD=(e=>(e.PHR_ADDRESS="phr_address",e.MOBILE="mobile",e.ABHA_NUMBER="abha_number",e.AADHAR_NUMBER="aadhaar_number",e.REGISTRATION_TYPE="registration_type",e))(ABHA_AUTH_FLOW_METHOD||{}),REGISTRATION_TYPE=(e=>(e.LOGIN="login",e.CREATE="create",e))(REGISTRATION_TYPE||{}),LOADING_STATE=(e=>(e.IDLE="IDLE",e.LOADING="LOADING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED",e))(LOADING_STATE||{}),AUTH_METHOD=(e=>(e[e.EMAIL=1]="EMAIL",e[e.MOBILE=2]="MOBILE",e[e.ABHA=7]="ABHA",e))(AUTH_METHOD||{});const PROD={AORTA_HOST:"https://auth.eka.care",AORTA_GO_HOST:"https://aortago.eka.care",TRYST_HOST:"https://tryst.eka.care",AXON_HOST:"https://axon.eka.care",PARCHI_HOST:"https://parchi.eka.care",CURIO_HOST:"https://eka.care",AVATAR_HOST:"https://a.eka.care",PTDIR_HOST:"https://ptdir.eka.care",TELE_HOST:"https://mweb.eka.care",METROLPOLIS_HOST:"https://consultation.metropolisindia.com",LUCID_WS_HOST:"https://lucid-ws.eka.care",LUCID_HOST:"https://lucid.eka.care",DEEPTHOUGHT_HOST:"https://deepthought.eka.care",NDHM_HOST:"https://api.eka.care",LOGIN_HOST:"https://login.eka.care",HUB:"https://hub.eka.care",RECEIPT_DOMAIN:"https://doc-receipts.eka.care"},DEV={AORTA_HOST:"https://aorta.dev.eka.care",AORTA_GO_HOST:"https://aortago.dev.eka.care",TRYST_HOST:"https://tryst.dev.eka.care",AXON_HOST:"https://axon.dev.eka.care",PARCHI_HOST:"https://parchi.dev.eka.care",CURIO_HOST:"https://curio.dev.eka.care",AVATAR_HOST:"https://eka-avatar.dev.eka.care",PTDIR_HOST:"https://ptdir.dev.eka.care",TELE_HOST:"https://mweb.dev.eka.care",METROLPOLIS_HOST:"https://consultation.metropolisindia.com",LUCID_WS_HOST:"https://lucid-ws.dev.eka.care",LUCID_HOST:"https://lucid.dev.eka.care",DEEPTHOUGHT_HOST:"https://deepthought.dev.eka.care",NDHM_HOST:"https://api.dev.eka.care",LOGIN_HOST:"https://login.dev.eka.care",HUB:"https://hub.dev.eka.care",RECEIPT_DOMAIN:"https://doc-receipt.s3.ap-south-1.amazonaws.com"};let envVar=DEV,client_id="",extraHeaders=null;const setEnv=({env:e,clientId:s,extraHeaders:i})=>{envVar=e==="PROD"?PROD:DEV,client_id=s,i&&(extraHeaders=i)},setIndividualEnv=({clientId:e,env:s,extraHeaders:i})=>{e&&(client_id=e),s&&(envVar=s==="PROD"?PROD:DEV),i&&(extraHeaders={...extraHeaders,...i})},GET_AORTA_GO_HOST=()=>envVar.AORTA_GO_HOST,GET_NDHM_HOST=()=>envVar.NDHM_HOST,GET_CLIENT_ID=()=>client_id,GET_EXTRA_HEADERS=()=>extraHeaders;var lottie$1={exports:{}};(function(module,exports){typeof document<"u"&&typeof navigator<"u"&&function(e,s){module.exports=s()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(s){_useWebWorker=!!s},getWebWorker=function(){return _useWebWorker},setLocationHref=function(s){locationHref=s},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,s){var i,a=e.length,o;for(i=0;i<a;i+=1){o=e[i].prototype;for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s.prototype[c]=o[c])}}function getDescriptor(e,s){return Object.getOwnPropertyDescriptor(e,s)}function createProxyFunction(e){function s(){}return s.prototype=e,s}var audioControllerFactory=function(){function e(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].pause()},resume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].resume()},setRate:function(i){var a,o=this.audios.length;for(a=0;a<o;a+=1)this.audios[a].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(i,a){var o=0,c=[],g;switch(i){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(o=0;o<a;o+=1)c.push(g);return c}function s(i,a){return i==="float32"?new Float32Array(a):i==="int16"?new Int16Array(a):i==="uint8c"?new Uint8ClampedArray(a):e(i,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,i=e.length;for(s=0;s<i;s+=1)BMMath[e[s]]=Math[e[s]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var s=_typeof$6(e);if(s==="object"&&e.length){var i=createSizedArray(e.length),a,o=e.length;for(a=0;a<o;a+=1)i[a]=Math.abs(e[a]);return i}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,s,i,a){this.type=e,this.currentTime=s,this.totalTime=i,this.direction=a<0?-1:1}function BMCompleteEvent(e,s){this.type=e,this.direction=s<0?-1:1}function BMCompleteLoopEvent(e,s,i,a){this.type=e,this.currentLoop=i,this.totalLoops=s,this.direction=a<0?-1:1}function BMSegmentStartEvent(e,s,i){this.type=e,this.firstFrame=s,this.totalFrames=i}function BMDestroyEvent(e,s){this.type=e,this.target=s}function BMRenderFrameErrorEvent(e,s){this.type="renderFrameError",this.nativeError=e,this.currentTime=s}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,s,i){var a,o,c,g,_,b,$,et;switch(g=Math.floor(e*6),_=e*6-g,b=i*(1-s),$=i*(1-_*s),et=i*(1-(1-_)*s),g%6){case 0:a=i,o=et,c=b;break;case 1:a=$,o=i,c=b;break;case 2:a=b,o=i,c=et;break;case 3:a=b,o=$,c=i;break;case 4:a=et,o=b,c=i;break;case 5:a=i,o=b,c=$;break}return[a,o,c]}function RGBtoHSV(e,s,i){var a=Math.max(e,s,i),o=Math.min(e,s,i),c=a-o,g,_=a===0?0:c/a,b=a/255;switch(a){case o:g=0;break;case e:g=s-i+c*(s<i?6:0),g/=6*c;break;case s:g=i-e+c*2,g/=6*c;break;case i:g=e-s+c*4,g/=6*c;break}return[g,_,b]}function addSaturationToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[1]+=s,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[2]+=s,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[0]+=s/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e=[],s,i;for(s=0;s<256;s+=1)i=s.toString(16),e[s]=i.length===1?"0"+i:i;return function(a,o,c){return a<0&&(a=0),o<0&&(o=0),c<0&&(c=0),"#"+e[a]+e[o]+e[c]}}(),setSubframeEnabled=function(s){subframeEnabled=!!s},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(s){expressionsPlugin=s},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(s){expressionsInterfaces=s},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(s){defaultCurveSegments=s},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(s){idPrefix$1=s};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$5(e)}var dataManager=function(){var e=1,s=[],i,a,o={onmessage:function(){},postMessage:function(at){i({data:at})}},c={postMessage:function(at){o.onmessage({data:at})}};function g(rt){if(window.Worker&&window.Blob&&getWebWorker()){var at=new Blob(["var _workerSelf = self; self.onmessage = ",rt.toString()],{type:"text/javascript"}),it=URL.createObjectURL(at);return new Worker(it)}return i=rt,o}function _(){a||(a=g(function(at){function it(){function dt(xt,pt){var vt,lt,ct=xt.length,yt,mt,wt,Tt;for(lt=0;lt<ct;lt+=1)if(vt=xt[lt],"ks"in vt&&!vt.completed){if(vt.completed=!0,vt.hasMask){var bt=vt.masksProperties;for(mt=bt.length,yt=0;yt<mt;yt+=1)if(bt[yt].pt.k.i)ut(bt[yt].pt.k);else for(Tt=bt[yt].pt.k.length,wt=0;wt<Tt;wt+=1)bt[yt].pt.k[wt].s&&ut(bt[yt].pt.k[wt].s[0]),bt[yt].pt.k[wt].e&&ut(bt[yt].pt.k[wt].e[0])}vt.ty===0?(vt.layers=_e(vt.refId,pt),dt(vt.layers,pt)):vt.ty===4?nt(vt.shapes):vt.ty===5&&Ct(vt)}}function j(xt,pt){if(xt){var vt=0,lt=xt.length;for(vt=0;vt<lt;vt+=1)xt[vt].t===1&&(xt[vt].data.layers=_e(xt[vt].data.refId,pt),dt(xt[vt].data.layers,pt))}}function tt(xt,pt){for(var vt=0,lt=pt.length;vt<lt;){if(pt[vt].id===xt)return pt[vt];vt+=1}return null}function _e(xt,pt){var vt=tt(xt,pt);return vt?vt.layers.__used?JSON.parse(JSON.stringify(vt.layers)):(vt.layers.__used=!0,vt.layers):null}function nt(xt){var pt,vt=xt.length,lt,ct;for(pt=vt-1;pt>=0;pt-=1)if(xt[pt].ty==="sh")if(xt[pt].ks.k.i)ut(xt[pt].ks.k);else for(ct=xt[pt].ks.k.length,lt=0;lt<ct;lt+=1)xt[pt].ks.k[lt].s&&ut(xt[pt].ks.k[lt].s[0]),xt[pt].ks.k[lt].e&&ut(xt[pt].ks.k[lt].e[0]);else xt[pt].ty==="gr"&&nt(xt[pt].it)}function ut(xt){var pt,vt=xt.i.length;for(pt=0;pt<vt;pt+=1)xt.i[pt][0]+=xt.v[pt][0],xt.i[pt][1]+=xt.v[pt][1],xt.o[pt][0]+=xt.v[pt][0],xt.o[pt][1]+=xt.v[pt][1]}function ht(xt,pt){var vt=pt?pt.split("."):[100,100,100];return xt[0]>vt[0]?!0:vt[0]>xt[0]?!1:xt[1]>vt[1]?!0:vt[1]>xt[1]?!1:xt[2]>vt[2]?!0:vt[2]>xt[2]?!1:null}var gt=function(){var xt=[4,4,14];function pt(lt){var ct=lt.t.d;lt.t.d={k:[{s:ct,t:0}]}}function vt(lt){var ct,yt=lt.length;for(ct=0;ct<yt;ct+=1)lt[ct].ty===5&&pt(lt[ct])}return function(lt){if(ht(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ct,yt=lt.assets.length;for(ct=0;ct<yt;ct+=1)lt.assets[ct].layers&&vt(lt.assets[ct].layers)}}}(),ft=function(){var xt=[4,7,99];return function(pt){if(pt.chars&&!ht(xt,pt.v)){var vt,lt=pt.chars.length;for(vt=0;vt<lt;vt+=1){var ct=pt.chars[vt];ct.data&&ct.data.shapes&&(nt(ct.data.shapes),ct.data.ip=0,ct.data.op=99999,ct.data.st=0,ct.data.sr=1,ct.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},pt.chars[vt].t||(ct.data.shapes.push({ty:"no"}),ct.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),_t=function(){var xt=[5,7,15];function pt(lt){var ct=lt.t.p;typeof ct.a=="number"&&(ct.a={a:0,k:ct.a}),typeof ct.p=="number"&&(ct.p={a:0,k:ct.p}),typeof ct.r=="number"&&(ct.r={a:0,k:ct.r})}function vt(lt){var ct,yt=lt.length;for(ct=0;ct<yt;ct+=1)lt[ct].ty===5&&pt(lt[ct])}return function(lt){if(ht(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ct,yt=lt.assets.length;for(ct=0;ct<yt;ct+=1)lt.assets[ct].layers&&vt(lt.assets[ct].layers)}}}(),At=function(){var xt=[4,1,9];function pt(lt){var ct,yt=lt.length,mt,wt;for(ct=0;ct<yt;ct+=1)if(lt[ct].ty==="gr")pt(lt[ct].it);else if(lt[ct].ty==="fl"||lt[ct].ty==="st")if(lt[ct].c.k&<[ct].c.k[0].i)for(wt=lt[ct].c.k.length,mt=0;mt<wt;mt+=1)lt[ct].c.k[mt].s&&(lt[ct].c.k[mt].s[0]/=255,lt[ct].c.k[mt].s[1]/=255,lt[ct].c.k[mt].s[2]/=255,lt[ct].c.k[mt].s[3]/=255),lt[ct].c.k[mt].e&&(lt[ct].c.k[mt].e[0]/=255,lt[ct].c.k[mt].e[1]/=255,lt[ct].c.k[mt].e[2]/=255,lt[ct].c.k[mt].e[3]/=255);else lt[ct].c.k[0]/=255,lt[ct].c.k[1]/=255,lt[ct].c.k[2]/=255,lt[ct].c.k[3]/=255}function vt(lt){var ct,yt=lt.length;for(ct=0;ct<yt;ct+=1)lt[ct].ty===4&&pt(lt[ct].shapes)}return function(lt){if(ht(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ct,yt=lt.assets.length;for(ct=0;ct<yt;ct+=1)lt.assets[ct].layers&&vt(lt.assets[ct].layers)}}}(),kt=function(){var xt=[4,4,18];function pt(lt){var ct,yt=lt.length,mt,wt;for(ct=yt-1;ct>=0;ct-=1)if(lt[ct].ty==="sh")if(lt[ct].ks.k.i)lt[ct].ks.k.c=lt[ct].closed;else for(wt=lt[ct].ks.k.length,mt=0;mt<wt;mt+=1)lt[ct].ks.k[mt].s&&(lt[ct].ks.k[mt].s[0].c=lt[ct].closed),lt[ct].ks.k[mt].e&&(lt[ct].ks.k[mt].e[0].c=lt[ct].closed);else lt[ct].ty==="gr"&&pt(lt[ct].it)}function vt(lt){var ct,yt,mt=lt.length,wt,Tt,bt,jt;for(yt=0;yt<mt;yt+=1){if(ct=lt[yt],ct.hasMask){var Lt=ct.masksProperties;for(Tt=Lt.length,wt=0;wt<Tt;wt+=1)if(Lt[wt].pt.k.i)Lt[wt].pt.k.c=Lt[wt].cl;else for(jt=Lt[wt].pt.k.length,bt=0;bt<jt;bt+=1)Lt[wt].pt.k[bt].s&&(Lt[wt].pt.k[bt].s[0].c=Lt[wt].cl),Lt[wt].pt.k[bt].e&&(Lt[wt].pt.k[bt].e[0].c=Lt[wt].cl)}ct.ty===4&&pt(ct.shapes)}}return function(lt){if(ht(xt,lt.v)&&(vt(lt.layers),lt.assets)){var ct,yt=lt.assets.length;for(ct=0;ct<yt;ct+=1)lt.assets[ct].layers&&vt(lt.assets[ct].layers)}}}();function St(xt){xt.__complete||(At(xt),gt(xt),ft(xt),_t(xt),kt(xt),dt(xt.layers,xt.assets),j(xt.chars,xt.assets),xt.__complete=!0)}function Ct(xt){xt.t.a.length===0&&"m"in xt.t.p}var Ot={};return Ot.completeData=St,Ot.checkColors=At,Ot.checkChars=ft,Ot.checkPathProperties=_t,Ot.checkShapes=kt,Ot.completeLayers=dt,Ot}if(c.dataManager||(c.dataManager=it()),c.assetLoader||(c.assetLoader=function(){function dt(tt){var _e=tt.getResponseHeader("content-type");return _e&&tt.responseType==="json"&&_e.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 j(tt,_e,nt,ut){var ht,gt=new XMLHttpRequest;try{gt.responseType="json"}catch{}gt.onreadystatechange=function(){if(gt.readyState===4)if(gt.status===200)ht=dt(gt),nt(ht);else try{ht=dt(gt),nt(ht)}catch(ft){ut&&ut(ft)}};try{gt.open(["G","E","T"].join(""),tt,!0)}catch{gt.open(["G","E","T"].join(""),_e+"/"+tt,!0)}gt.send()}return{load:j}}()),at.data.type==="loadAnimation")c.assetLoader.load(at.data.path,at.data.fullPath,function(dt){c.dataManager.completeData(dt),c.postMessage({id:at.data.id,payload:dt,status:"success"})},function(){c.postMessage({id:at.data.id,status:"error"})});else if(at.data.type==="complete"){var st=at.data.animation;c.dataManager.completeData(st),c.postMessage({id:at.data.id,payload:st,status:"success"})}else at.data.type==="loadData"&&c.assetLoader.load(at.data.path,at.data.fullPath,function(dt){c.postMessage({id:at.data.id,payload:dt,status:"success"})},function(){c.postMessage({id:at.data.id,status:"error"})})}),a.onmessage=function(rt){var at=rt.data,it=at.id,st=s[it];s[it]=null,at.status==="success"?st.onComplete(at.payload):st.onError&&st.onError()})}function b(rt,at){e+=1;var it="processId_"+e;return s[it]={onComplete:rt,onError:at},it}function $(rt,at,it){_();var st=b(at,it);a.postMessage({type:"loadAnimation",path:rt,fullPath:window.location.origin+window.location.pathname,id:st})}function et(rt,at,it){_();var st=b(at,it);a.postMessage({type:"loadData",path:rt,fullPath:window.location.origin+window.location.pathname,id:st})}function ot(rt,at,it){_();var st=b(at,it);a.postMessage({type:"complete",animation:rt,id:st})}return{loadAnimation:$,loadData:et,completeAnimation:ot}}(),ImagePreloader=function(){var e=function(){var j=createTag("canvas");j.width=1,j.height=1;var tt=j.getContext("2d");return tt.fillStyle="rgba(0,0,0,0)",tt.fillRect(0,0,1,1),j}();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(j,tt,_e){var nt="";if(j.e)nt=j.p;else if(tt){var ut=j.p;ut.indexOf("images/")!==-1&&(ut=ut.split("/")[1]),nt=tt+ut}else nt=_e,nt+=j.u?j.u:"",nt+=j.p;return nt}function o(j){var tt=0,_e=setInterval((function(){var nt=j.getBBox();(nt.width||tt>500)&&(this._imageLoaded(),clearInterval(_e)),tt+=1}).bind(this),50)}function c(j){var tt=a(j,this.assetsPath,this.path),_e=createNS("image");isSafari?this.testImageLoaded(_e):_e.addEventListener("load",this._imageLoaded,!1),_e.addEventListener("error",(function(){nt.img=e,this._imageLoaded()}).bind(this),!1),_e.setAttributeNS("http://www.w3.org/1999/xlink","href",tt),this._elementHelper.append?this._elementHelper.append(_e):this._elementHelper.appendChild(_e);var nt={img:_e,assetData:j};return nt}function g(j){var tt=a(j,this.assetsPath,this.path),_e=createTag("img");_e.crossOrigin="anonymous",_e.addEventListener("load",this._imageLoaded,!1),_e.addEventListener("error",(function(){nt.img=e,this._imageLoaded()}).bind(this),!1),_e.src=tt;var nt={img:_e,assetData:j};return nt}function _(j){var tt={assetData:j},_e=a(j,this.assetsPath,this.path);return dataManager.loadData(_e,(function(nt){tt.img=nt,this._footageLoaded()}).bind(this),(function(){tt.img={},this._footageLoaded()}).bind(this)),tt}function b(j,tt){this.imagesLoadedCb=tt;var _e,nt=j.length;for(_e=0;_e<nt;_e+=1)j[_e].layers||(!j[_e].t||j[_e].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(j[_e]))):j[_e].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(j[_e]))))}function $(j){this.path=j||""}function et(j){this.assetsPath=j||""}function ot(j){for(var tt=0,_e=this.images.length;tt<_e;){if(this.images[tt].assetData===j)return this.images[tt].img;tt+=1}return null}function rt(){this.imagesLoadedCb=null,this.images.length=0}function at(){return this.totalImages===this.loadedAssets}function it(){return this.totalFootages===this.loadedFootagesCount}function st(j,tt){j==="svg"?(this._elementHelper=tt,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function dt(){this._imageLoaded=s.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=_.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return dt.prototype={loadAssets:b,setAssetsPath:et,setPath:$,loadedImages:at,loadedFootages:it,destroy:rt,getAsset:ot,createImgData:g,createImageData:c,imageLoaded:s,footageLoaded:i,setCacheType:st},dt}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(s,i){if(this._cbs[s])for(var a=this._cbs[s],o=0;o<a.length;o+=1)a[o](i)},addEventListener:function(s,i){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(i),(function(){this.removeEventListener(s,i)}).bind(this)},removeEventListener:function(s,i){if(!i)this._cbs[s]=null;else if(this._cbs[s]){for(var a=0,o=this._cbs[s].length;a<o;)this._cbs[s][a]===i&&(this._cbs[s].splice(a,1),a-=1,o-=1),a+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var markerParser=function(){function e(s){for(var i=s.split(`\r
|
|
41
|
+
`),a={},o,c=0,g=0;g<i.length;g+=1)o=i[g].split(":"),o.length===2&&(a[o[0]]=o[1].trim(),c+=1);if(c===0)throw new Error;return a}return function(s){for(var i=[],a=0;a<s.length;a+=1){var o=s[a],c={time:o.tm,duration:o.dr};try{c.payload=JSON.parse(s[a].cm)}catch{try{c.payload=e(s[a].cm)}catch{c.payload={name:s[a].cm}}}i.push(c)}return i}}(),ProjectInterface=function(){function e(s){this.compositions.push(s)}return function(){function s(i){for(var a=0,o=this.compositions.length;a<o;){if(this.compositions[a].data&&this.compositions[a].data.nm===i)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=e,s}}(),renderers={},registerRenderer=function(s,i){renderers[s]=i};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var s="svg";e.animType?s=e.animType:e.renderer&&(s=e.renderer);var i=getRenderer(s);this.renderer=new i(this,e.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,s){s&&_typeof$4(s)!=="object"&&(s=JSON.parse(s));var i={wrapper:e,animationData:s},a=e.attributes;i.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",i.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var o=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";o==="false"?i.loop=!1:o==="true"?i.loop=!0:o!==""&&(i.loop=parseInt(o,10));var c=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:a.getNamedItem("bm-autoplay")?a.getNamedItem("bm-autoplay").value:!0;i.autoplay=c!=="false",i.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"";var g=a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"";g==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var s=this.animationData.layers,i,a=s.length,o=e.layers,c,g=o.length;for(c=0;c<g;c+=1)for(i=0;i<a;){if(s[i].id===o[c].id){s[i]=o[c];break}i+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(a=e.assets.length,i=0;i<a;i+=1)this.animationData.assets.push(e.assets[i]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var s=getExpressionsPlugin();s&&s.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=e.shift();this.timeCompleted=s.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,s){var i=typeof e=="number"?e:void 0,a=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(i,a)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var s,i=0;i<this.markers.length;i+=1)if(s=this.markers[i],s.payload&&s.payload.name===e)return s;return null},AnimationItem.prototype.goToAndStop=function(e,s,i){if(!(i&&this.name!==i)){var a=Number(e);if(isNaN(a)){var o=this.getMarkerData(e);o&&this.goToAndStop(o.time,!0)}else s?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,s,i){if(!(i&&this.name!==i)){var a=Number(e);if(isNaN(a)){var o=this.getMarkerData(e);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(a,s,i);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+e*this.frameModifier,i=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(i=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,s=0)):this.setCurrentRawFrameValue(s),i&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,s){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,s){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?i=e:this.currentRawFrame+this.firstFrame>s&&(i=s-e)),this.firstFrame=e,this.totalFrames=s-e,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(e,s){if(s&&(this.segments.length=0),_typeof$4(e[0])==="object"){var i,a=e.length;for(i=0;i<a;i+=1)this.segments.push(e[i])}else this.segments.push(e);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,s){s&&this.name!==s||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var s="";if(e.e)s=e.p;else if(this.assetsPath){var i=e.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),s=this.assetsPath+i}else s=this.path,s+=e.u?e.u:"",s+=e.p;return s},AnimationItem.prototype.getAssetData=function(e){for(var s=0,i=this.assets.length;s<i;){if(e===this.assets[s].id)return this.assets[s];s+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,s,i){try{var a=this.renderer.getElementByPath(e);a.updateDocumentData(s,i)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var s=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},AnimationItem.prototype.triggerConfigError=function(e){var s=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var animationManager=function(){var e={},s=[],i=0,a=0,o=0,c=!0,g=!1;function _(pt){for(var vt=0,lt=pt.target;vt<a;)s[vt].animation===lt&&(s.splice(vt,1),vt-=1,a-=1,lt.isPaused||ot()),vt+=1}function b(pt,vt){if(!pt)return null;for(var lt=0;lt<a;){if(s[lt].elem===pt&&s[lt].elem!==null)return s[lt].animation;lt+=1}var ct=new AnimationItem;return rt(ct,pt),ct.setData(pt,vt),ct}function $(){var pt,vt=s.length,lt=[];for(pt=0;pt<vt;pt+=1)lt.push(s[pt].animation);return lt}function et(){o+=1,At()}function ot(){o-=1}function rt(pt,vt){pt.addEventListener("destroy",_),pt.addEventListener("_active",et),pt.addEventListener("_idle",ot),s.push({elem:vt,animation:pt}),a+=1}function at(pt){var vt=new AnimationItem;return rt(vt,null),vt.setParams(pt),vt}function it(pt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setSpeed(pt,vt)}function st(pt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setDirection(pt,vt)}function dt(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.play(pt)}function j(pt){var vt=pt-i,lt;for(lt=0;lt<a;lt+=1)s[lt].animation.advanceTime(vt);i=pt,o&&!g?window.requestAnimationFrame(j):c=!0}function tt(pt){i=pt,window.requestAnimationFrame(j)}function _e(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.pause(pt)}function nt(pt,vt,lt){var ct;for(ct=0;ct<a;ct+=1)s[ct].animation.goToAndStop(pt,vt,lt)}function ut(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.stop(pt)}function ht(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.togglePause(pt)}function gt(pt){var vt;for(vt=a-1;vt>=0;vt-=1)s[vt].animation.destroy(pt)}function ft(pt,vt,lt){var ct=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),yt,mt=ct.length;for(yt=0;yt<mt;yt+=1)lt&&ct[yt].setAttribute("data-bm-type",lt),b(ct[yt],pt);if(vt&&mt===0){lt||(lt="svg");var wt=document.getElementsByTagName("body")[0];wt.innerText="";var Tt=createTag("div");Tt.style.width="100%",Tt.style.height="100%",Tt.setAttribute("data-bm-type",lt),wt.appendChild(Tt),b(Tt,pt)}}function _t(){var pt;for(pt=0;pt<a;pt+=1)s[pt].animation.resize()}function At(){!g&&o&&c&&(window.requestAnimationFrame(tt),c=!1)}function kt(){g=!0}function St(){g=!1,At()}function Ct(pt,vt){var lt;for(lt=0;lt<a;lt+=1)s[lt].animation.setVolume(pt,vt)}function Ot(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.mute(pt)}function xt(pt){var vt;for(vt=0;vt<a;vt+=1)s[vt].animation.unmute(pt)}return e.registerAnimation=b,e.loadAnimation=at,e.setSpeed=it,e.setDirection=st,e.play=dt,e.pause=_e,e.stop=ut,e.togglePause=ht,e.searchAnimations=ft,e.resize=_t,e.goToAndStop=nt,e.destroy=gt,e.freeze=kt,e.unfreeze=St,e.setVolume=Ct,e.mute=Ot,e.unmute=xt,e.getRegisteredAnimations=$,e}(),BezierFactory=function(){var e={};e.getBezierEasing=i;var s={};function i(tt,_e,nt,ut,ht){var gt=ht||("bez_"+tt+"_"+_e+"_"+nt+"_"+ut).replace(/\./g,"p");if(s[gt])return s[gt];var ft=new j([tt,_e,nt,ut]);return s[gt]=ft,ft}var a=4,o=.001,c=1e-7,g=10,_=11,b=1/(_-1),$=typeof Float32Array=="function";function et(tt,_e){return 1-3*_e+3*tt}function ot(tt,_e){return 3*_e-6*tt}function rt(tt){return 3*tt}function at(tt,_e,nt){return((et(_e,nt)*tt+ot(_e,nt))*tt+rt(_e))*tt}function it(tt,_e,nt){return 3*et(_e,nt)*tt*tt+2*ot(_e,nt)*tt+rt(_e)}function st(tt,_e,nt,ut,ht){var gt,ft,_t=0;do ft=_e+(nt-_e)/2,gt=at(ft,ut,ht)-tt,gt>0?nt=ft:_e=ft;while(Math.abs(gt)>c&&++_t<g);return ft}function dt(tt,_e,nt,ut){for(var ht=0;ht<a;++ht){var gt=it(_e,nt,ut);if(gt===0)return _e;var ft=at(_e,nt,ut)-tt;_e-=ft/gt}return _e}function j(tt){this._p=tt,this._mSampleValues=$?new Float32Array(_):new Array(_),this._precomputed=!1,this.get=this.get.bind(this)}return j.prototype={get:function(_e){var nt=this._p[0],ut=this._p[1],ht=this._p[2],gt=this._p[3];return this._precomputed||this._precompute(),nt===ut&&ht===gt?_e:_e===0?0:_e===1?1:at(this._getTForX(_e),ut,gt)},_precompute:function(){var _e=this._p[0],nt=this._p[1],ut=this._p[2],ht=this._p[3];this._precomputed=!0,(_e!==nt||ut!==ht)&&this._calcSampleValues()},_calcSampleValues:function(){for(var _e=this._p[0],nt=this._p[2],ut=0;ut<_;++ut)this._mSampleValues[ut]=at(ut*b,_e,nt)},_getTForX:function(_e){for(var nt=this._p[0],ut=this._p[2],ht=this._mSampleValues,gt=0,ft=1,_t=_-1;ft!==_t&&ht[ft]<=_e;++ft)gt+=b;--ft;var At=(_e-ht[ft])/(ht[ft+1]-ht[ft]),kt=gt+At*b,St=it(kt,nt,ut);return St>=o?dt(_e,kt,nt,ut):St===0?kt:st(_e,gt,gt+b,nt,ut)}},e}(),pooling=function(){function e(s){return s.concat(createSizedArray(s.length))}return{double:e}}(),poolFactory=function(){return function(e,s,i){var a=0,o=e,c=createSizedArray(o),g={newElement:_,release:b};function _(){var $;return a?(a-=1,$=c[a]):$=s(),$}function b($){a===o&&(c=pooling.double(c),o*=2),i&&i($),c[a]=$,a+=1}return g}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function s(i){var a,o=i.lengths.length;for(a=0;a<o;a+=1)bezierLengthPool.release(i.lengths[a]);i.lengths.length=0}return poolFactory(8,e,s)}();function bezFunction(){var e=Math;function s(rt,at,it,st,dt,j){var tt=rt*st+at*dt+it*j-dt*st-j*rt-it*at;return tt>-.001&&tt<.001}function i(rt,at,it,st,dt,j,tt,_e,nt){if(it===0&&j===0&&nt===0)return s(rt,at,st,dt,tt,_e);var ut=e.sqrt(e.pow(st-rt,2)+e.pow(dt-at,2)+e.pow(j-it,2)),ht=e.sqrt(e.pow(tt-rt,2)+e.pow(_e-at,2)+e.pow(nt-it,2)),gt=e.sqrt(e.pow(tt-st,2)+e.pow(_e-dt,2)+e.pow(nt-j,2)),ft;return ut>ht?ut>gt?ft=ut-ht-gt:ft=gt-ht-ut:gt>ht?ft=gt-ht-ut:ft=ht-ut-gt,ft>-1e-4&&ft<1e-4}var a=function(){return function(rt,at,it,st){var dt=getDefaultCurveSegments(),j,tt,_e,nt,ut,ht=0,gt,ft=[],_t=[],At=bezierLengthPool.newElement();for(_e=it.length,j=0;j<dt;j+=1){for(ut=j/(dt-1),gt=0,tt=0;tt<_e;tt+=1)nt=bmPow(1-ut,3)*rt[tt]+3*bmPow(1-ut,2)*ut*it[tt]+3*(1-ut)*bmPow(ut,2)*st[tt]+bmPow(ut,3)*at[tt],ft[tt]=nt,_t[tt]!==null&&(gt+=bmPow(ft[tt]-_t[tt],2)),_t[tt]=ft[tt];gt&&(gt=bmSqrt(gt),ht+=gt),At.percents[j]=ut,At.lengths[j]=ht}return At.addedLength=ht,At}}();function o(rt){var at=segmentsLengthPool.newElement(),it=rt.c,st=rt.v,dt=rt.o,j=rt.i,tt,_e=rt._length,nt=at.lengths,ut=0;for(tt=0;tt<_e-1;tt+=1)nt[tt]=a(st[tt],st[tt+1],dt[tt],j[tt+1]),ut+=nt[tt].addedLength;return it&&_e&&(nt[tt]=a(st[tt],st[0],dt[tt],j[0]),ut+=nt[tt].addedLength),at.totalLength=ut,at}function c(rt){this.segmentLength=0,this.points=new Array(rt)}function g(rt,at){this.partialLength=rt,this.point=at}var _=function(){var rt={};return function(at,it,st,dt){var j=(at[0]+"_"+at[1]+"_"+it[0]+"_"+it[1]+"_"+st[0]+"_"+st[1]+"_"+dt[0]+"_"+dt[1]).replace(/\./g,"p");if(!rt[j]){var tt=getDefaultCurveSegments(),_e,nt,ut,ht,gt,ft=0,_t,At,kt=null;at.length===2&&(at[0]!==it[0]||at[1]!==it[1])&&s(at[0],at[1],it[0],it[1],at[0]+st[0],at[1]+st[1])&&s(at[0],at[1],it[0],it[1],it[0]+dt[0],it[1]+dt[1])&&(tt=2);var St=new c(tt);for(ut=st.length,_e=0;_e<tt;_e+=1){for(At=createSizedArray(ut),gt=_e/(tt-1),_t=0,nt=0;nt<ut;nt+=1)ht=bmPow(1-gt,3)*at[nt]+3*bmPow(1-gt,2)*gt*(at[nt]+st[nt])+3*(1-gt)*bmPow(gt,2)*(it[nt]+dt[nt])+bmPow(gt,3)*it[nt],At[nt]=ht,kt!==null&&(_t+=bmPow(At[nt]-kt[nt],2));_t=bmSqrt(_t),ft+=_t,St.points[_e]=new g(_t,At),kt=At}St.segmentLength=ft,rt[j]=St}return rt[j]}}();function b(rt,at){var it=at.percents,st=at.lengths,dt=it.length,j=bmFloor((dt-1)*rt),tt=rt*at.addedLength,_e=0;if(j===dt-1||j===0||tt===st[j])return it[j];for(var nt=st[j]>tt?-1:1,ut=!0;ut;)if(st[j]<=tt&&st[j+1]>tt?(_e=(tt-st[j])/(st[j+1]-st[j]),ut=!1):j+=nt,j<0||j>=dt-1){if(j===dt-1)return it[j];ut=!1}return it[j]+(it[j+1]-it[j])*_e}function $(rt,at,it,st,dt,j){var tt=b(dt,j),_e=1-tt,nt=e.round((_e*_e*_e*rt[0]+(tt*_e*_e+_e*tt*_e+_e*_e*tt)*it[0]+(tt*tt*_e+_e*tt*tt+tt*_e*tt)*st[0]+tt*tt*tt*at[0])*1e3)/1e3,ut=e.round((_e*_e*_e*rt[1]+(tt*_e*_e+_e*tt*_e+_e*_e*tt)*it[1]+(tt*tt*_e+_e*tt*tt+tt*_e*tt)*st[1]+tt*tt*tt*at[1])*1e3)/1e3;return[nt,ut]}var et=createTypedArray("float32",8);function ot(rt,at,it,st,dt,j,tt){dt<0?dt=0:dt>1&&(dt=1);var _e=b(dt,tt);j=j>1?1:j;var nt=b(j,tt),ut,ht=rt.length,gt=1-_e,ft=1-nt,_t=gt*gt*gt,At=_e*gt*gt*3,kt=_e*_e*gt*3,St=_e*_e*_e,Ct=gt*gt*ft,Ot=_e*gt*ft+gt*_e*ft+gt*gt*nt,xt=_e*_e*ft+gt*_e*nt+_e*gt*nt,pt=_e*_e*nt,vt=gt*ft*ft,lt=_e*ft*ft+gt*nt*ft+gt*ft*nt,ct=_e*nt*ft+gt*nt*nt+_e*ft*nt,yt=_e*nt*nt,mt=ft*ft*ft,wt=nt*ft*ft+ft*nt*ft+ft*ft*nt,Tt=nt*nt*ft+ft*nt*nt+nt*ft*nt,bt=nt*nt*nt;for(ut=0;ut<ht;ut+=1)et[ut*4]=e.round((_t*rt[ut]+At*it[ut]+kt*st[ut]+St*at[ut])*1e3)/1e3,et[ut*4+1]=e.round((Ct*rt[ut]+Ot*it[ut]+xt*st[ut]+pt*at[ut])*1e3)/1e3,et[ut*4+2]=e.round((vt*rt[ut]+lt*it[ut]+ct*st[ut]+yt*at[ut])*1e3)/1e3,et[ut*4+3]=e.round((mt*rt[ut]+wt*it[ut]+Tt*st[ut]+bt*at[ut])*1e3)/1e3;return et}return{getSegmentsLength:o,getNewSegment:ot,getPointInSegment:$,buildBezierData:_,pointOnLine2D:s,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,s){var i=this.offsetTime,a;this.propType==="multidimensional"&&(a=createTypedArray("float32",this.pv.length));for(var o=s.lastIndex,c=o,g=this.keyframes.length-1,_=!0,b,$,et;_;){if(b=this.keyframes[c],$=this.keyframes[c+1],c===g-1&&e>=$.t-i){b.h&&(b=$),o=0;break}if($.t-i>e){o=c;break}c<g-1?c+=1:(o=0,_=!1)}et=this.keyframesMetadata[c]||{};var ot,rt,at,it,st,dt,j=$.t-i,tt=b.t-i,_e;if(b.to){et.bezierData||(et.bezierData=bez.buildBezierData(b.s,$.s||b.e,b.to,b.ti));var nt=et.bezierData;if(e>=j||e<tt){var ut=e>=j?nt.points.length-1:0;for(rt=nt.points[ut].point.length,ot=0;ot<rt;ot+=1)a[ot]=nt.points[ut].point[ot]}else{et.__fnct?dt=et.__fnct:(dt=BezierFactory.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,et.__fnct=dt),at=dt((e-tt)/(j-tt));var ht=nt.segmentLength*at,gt,ft=s.lastFrame<e&&s._lastKeyframeIndex===c?s._lastAddedLength:0;for(st=s.lastFrame<e&&s._lastKeyframeIndex===c?s._lastPoint:0,_=!0,it=nt.points.length;_;){if(ft+=nt.points[st].partialLength,ht===0||at===0||st===nt.points.length-1){for(rt=nt.points[st].point.length,ot=0;ot<rt;ot+=1)a[ot]=nt.points[st].point[ot];break}else if(ht>=ft&&ht<ft+nt.points[st+1].partialLength){for(gt=(ht-ft)/nt.points[st+1].partialLength,rt=nt.points[st].point.length,ot=0;ot<rt;ot+=1)a[ot]=nt.points[st].point[ot]+(nt.points[st+1].point[ot]-nt.points[st].point[ot])*gt;break}st<it-1?st+=1:_=!1}s._lastPoint=st,s._lastAddedLength=ft-nt.points[st].partialLength,s._lastKeyframeIndex=c}}else{var _t,At,kt,St,Ct;if(g=b.s.length,_e=$.s||b.e,this.sh&&b.h!==1)if(e>=j)a[0]=_e[0],a[1]=_e[1],a[2]=_e[2];else if(e<=tt)a[0]=b.s[0],a[1]=b.s[1],a[2]=b.s[2];else{var Ot=createQuaternion(b.s),xt=createQuaternion(_e),pt=(e-tt)/(j-tt);quaternionToEuler(a,slerp(Ot,xt,pt))}else for(c=0;c<g;c+=1)b.h!==1&&(e>=j?at=1:e<tt?at=0:(b.o.x.constructor===Array?(et.__fnct||(et.__fnct=[]),et.__fnct[c]?dt=et.__fnct[c]:(_t=b.o.x[c]===void 0?b.o.x[0]:b.o.x[c],At=b.o.y[c]===void 0?b.o.y[0]:b.o.y[c],kt=b.i.x[c]===void 0?b.i.x[0]:b.i.x[c],St=b.i.y[c]===void 0?b.i.y[0]:b.i.y[c],dt=BezierFactory.getBezierEasing(_t,At,kt,St).get,et.__fnct[c]=dt)):et.__fnct?dt=et.__fnct:(_t=b.o.x,At=b.o.y,kt=b.i.x,St=b.i.y,dt=BezierFactory.getBezierEasing(_t,At,kt,St).get,b.keyframeMetadata=dt),at=dt((e-tt)/(j-tt)))),_e=$.s||b.e,Ct=b.h===1?b.s[c]:b.s[c]+(_e[c]-b.s[c])*at,this.propType==="multidimensional"?a[c]=Ct:a=Ct}return s.lastIndex=o,a}function slerp(e,s,i){var a=[],o=e[0],c=e[1],g=e[2],_=e[3],b=s[0],$=s[1],et=s[2],ot=s[3],rt,at,it,st,dt;return at=o*b+c*$+g*et+_*ot,at<0&&(at=-at,b=-b,$=-$,et=-et,ot=-ot),1-at>1e-6?(rt=Math.acos(at),it=Math.sin(rt),st=Math.sin((1-i)*rt)/it,dt=Math.sin(i*rt)/it):(st=1-i,dt=i),a[0]=st*o+dt*b,a[1]=st*c+dt*$,a[2]=st*g+dt*et,a[3]=st*_+dt*ot,a}function quaternionToEuler(e,s){var i=s[0],a=s[1],o=s[2],c=s[3],g=Math.atan2(2*a*c-2*i*o,1-2*a*a-2*o*o),_=Math.asin(2*i*a+2*o*c),b=Math.atan2(2*i*c-2*a*o,1-2*i*i-2*o*o);e[0]=g/degToRads,e[1]=_/degToRads,e[2]=b/degToRads}function createQuaternion(e){var s=e[0]*degToRads,i=e[1]*degToRads,a=e[2]*degToRads,o=Math.cos(s/2),c=Math.cos(i/2),g=Math.cos(a/2),_=Math.sin(s/2),b=Math.sin(i/2),$=Math.sin(a/2),et=o*c*g-_*b*$,ot=_*b*g+o*c*$,rt=_*c*g+o*b*$,at=o*b*g-_*c*$;return[ot,rt,at,et]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<s&&e<s))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(e,this._caching);this.pv=a}return this._caching.lastFrame=e,this.pv}function setVValue(e){var s;if(this.propType==="unidimensional")s=e*this.mult,mathAbs(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var i=0,a=this.v.length;i<a;)s=e[i]*this.mult,mathAbs(this.v[i]-s)>1e-5&&(this.v[i]=s,this._mdf=!0),i+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,s=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<s;e+=1)i=this.effectsSequence[e](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,s,i,a){this.propType="unidimensional",this.mult=i||1,this.data=s,this.v=i?s.k*i:s.k,this.pv=s.k,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,s,i,a){this.propType="multidimensional",this.mult=i||1,this.data=s,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o,c=s.k.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),this.vel=createTypedArray("float32",c),o=0;o<c;o+=1)this.v[o]=s.k[o]*this.mult,this.pv[o]=s.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,s,i,a){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=i||1,this.elem=e,this.container=a,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,s,i,a){this.propType="multidimensional";var o,c=s.k.length,g,_,b,$;for(o=0;o<c-1;o+=1)s.k[o].to&&s.k[o].s&&s.k[o+1]&&s.k[o+1].s&&(g=s.k[o].s,_=s.k[o+1].s,b=s.k[o].to,$=s.k[o].ti,(g.length===2&&!(g[0]===_[0]&&g[1]===_[1])&&bez.pointOnLine2D(g[0],g[1],_[0],_[1],g[0]+b[0],g[1]+b[1])&&bez.pointOnLine2D(g[0],g[1],_[0],_[1],_[0]+$[0],_[1]+$[1])||g.length===3&&!(g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2])&&bez.pointOnLine3D(g[0],g[1],g[2],_[0],_[1],_[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&bez.pointOnLine3D(g[0],g[1],g[2],_[0],_[1],_[2],_[0]+$[0],_[1]+$[1],_[2]+$[2]))&&(s.k[o].to=null,s.k[o].ti=null),g[0]===_[0]&&g[1]===_[1]&&b[0]===0&&b[1]===0&&$[0]===0&&$[1]===0&&(g.length===2||g[2]===_[2]&&b[2]===0&&$[2]===0)&&(s.k[o].to=null,s.k[o].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=a,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var et=s.k[0].s.length;for(this.v=createTypedArray("float32",et),this.pv=createTypedArray("float32",et),o=0;o<et;o+=1)this.v[o]=initFrame,this.pv[o]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",et)},this.addEffect=addEffect}var PropertyFactory=function(){function e(i,a,o,c,g){a.sid&&(a=i.globalData.slotManager.getProp(a));var _;if(!a.k.length)_=new ValueProperty(i,a,c,g);else if(typeof a.k[0]=="number")_=new MultiDimensionalProperty(i,a,c,g);else switch(o){case 0:_=new KeyframedValueProperty(i,a,c,g);break;case 1:_=new KeyframedMultidimensionalProperty(i,a,c,g);break}return _.effectsSequence.length&&g.addDynamicProperty(_),_}var s={getProp:e};return s}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,i=this.dynamicProperties.length;for(s=0;s<i;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,s){this.c=e,this.setLength(s);for(var i=0;i<s;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,s,i,a,o){var c;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[a]||c[a]&&!o)&&(c[a]=pointPool.newElement()),c[a][0]=e,c[a][1]=s},ShapePath.prototype.setTripleAt=function(e,s,i,a,o,c,g,_){this.setXYAt(e,s,"v",g,_),this.setXYAt(i,a,"o",g,_),this.setXYAt(o,c,"i",g,_)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var s=this.v,i=this.o,a=this.i,o=0;this.c&&(e.setTripleAt(s[0][0],s[0][1],a[0][0],a[0][1],i[0][0],i[0][1],0,!1),o=1);var c=this._length-1,g=this._length,_;for(_=o;_<g;_+=1)e.setTripleAt(s[c][0],s[c][1],a[c][0],a[c][1],i[c][0],i[c][1],_,!1),c-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function s(o){var c=o._length,g;for(g=0;g<c;g+=1)pointPool.release(o.v[g]),pointPool.release(o.i[g]),pointPool.release(o.o[g]),o.v[g]=null,o.i[g]=null,o.o[g]=null;o._length=0,o.c=!1}function i(o){var c=a.newElement(),g,_=o._length===void 0?o.v.length:o._length;for(c.setLength(_),c.c=o.c,g=0;g<_;g+=1)c.setTripleAt(o.v[g][0],o.v[g][1],o.o[g][0],o.o[g][1],o.i[g][0],o.i[g][1],g);return c}var a=poolFactory(4,e,s);return a.clone=i,a}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:o,release:c},s=0,i=4,a=createSizedArray(i);function o(){var g;return s?(s-=1,g=a[s]):g=new ShapeCollection,g}function c(g){var _,b=g._length;for(_=0;_<b;_+=1)shapePool.release(g.shapes[_]);g._length=0,s===i&&(a=pooling.double(a),i*=2),a[s]=g,s+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function s(j,tt,_e){var nt=_e.lastIndex,ut,ht,gt,ft,_t,At,kt,St,Ct,Ot=this.keyframes;if(j<Ot[0].t-this.offsetTime)ut=Ot[0].s[0],gt=!0,nt=0;else if(j>=Ot[Ot.length-1].t-this.offsetTime)ut=Ot[Ot.length-1].s?Ot[Ot.length-1].s[0]:Ot[Ot.length-2].e[0],gt=!0;else{for(var xt=nt,pt=Ot.length-1,vt=!0,lt,ct,yt;vt&&(lt=Ot[xt],ct=Ot[xt+1],!(ct.t-this.offsetTime>j));)xt<pt-1?xt+=1:vt=!1;if(yt=this.keyframesMetadata[xt]||{},gt=lt.h===1,nt=xt,!gt){if(j>=ct.t-this.offsetTime)St=1;else if(j<lt.t-this.offsetTime)St=0;else{var mt;yt.__fnct?mt=yt.__fnct:(mt=BezierFactory.getBezierEasing(lt.o.x,lt.o.y,lt.i.x,lt.i.y).get,yt.__fnct=mt),St=mt((j-(lt.t-this.offsetTime))/(ct.t-this.offsetTime-(lt.t-this.offsetTime)))}ht=ct.s?ct.s[0]:lt.e[0]}ut=lt.s[0]}for(At=tt._length,kt=ut.i[0].length,_e.lastIndex=nt,ft=0;ft<At;ft+=1)for(_t=0;_t<kt;_t+=1)Ct=gt?ut.i[ft][_t]:ut.i[ft][_t]+(ht.i[ft][_t]-ut.i[ft][_t])*St,tt.i[ft][_t]=Ct,Ct=gt?ut.o[ft][_t]:ut.o[ft][_t]+(ht.o[ft][_t]-ut.o[ft][_t])*St,tt.o[ft][_t]=Ct,Ct=gt?ut.v[ft][_t]:ut.v[ft][_t]+(ht.v[ft][_t]-ut.v[ft][_t])*St,tt.v[ft][_t]=Ct}function i(){var j=this.comp.renderedFrame-this.offsetTime,tt=this.keyframes[0].t-this.offsetTime,_e=this.keyframes[this.keyframes.length-1].t-this.offsetTime,nt=this._caching.lastFrame;return nt!==e&&(nt<tt&&j<tt||nt>_e&&j>_e)||(this._caching.lastIndex=nt<j?this._caching.lastIndex:0,this.interpolateShape(j,this.pv,this._caching)),this._caching.lastFrame=j,this.pv}function a(){this.paths=this.localShapeCollection}function o(j,tt){if(j._length!==tt._length||j.c!==tt.c)return!1;var _e,nt=j._length;for(_e=0;_e<nt;_e+=1)if(j.v[_e][0]!==tt.v[_e][0]||j.v[_e][1]!==tt.v[_e][1]||j.o[_e][0]!==tt.o[_e][0]||j.o[_e][1]!==tt.o[_e][1]||j.i[_e][0]!==tt.i[_e][0]||j.i[_e][1]!==tt.i[_e][1])return!1;return!0}function c(j){o(this.v,j)||(this.v=shapePool.clone(j),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 j;this.kf?j=this.pv:this.data.ks?j=this.data.ks.k:j=this.data.pt.k;var tt,_e=this.effectsSequence.length;for(tt=0;tt<_e;tt+=1)j=this.effectsSequence[tt](j);this.setVValue(j),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function _(j,tt,_e){this.propType="shape",this.comp=j.comp,this.container=j,this.elem=j,this.data=tt,this.k=!1,this.kf=!1,this._mdf=!1;var nt=_e===3?tt.pt.k:tt.ks.k;this.v=shapePool.clone(nt),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(j){this.effectsSequence.push(j),this.container.addDynamicProperty(this)}_.prototype.interpolateShape=s,_.prototype.getValue=g,_.prototype.setVValue=c,_.prototype.addEffect=b;function $(j,tt,_e){this.propType="shape",this.comp=j.comp,this.elem=j,this.container=j,this.offsetTime=j.data.st,this.keyframes=_e===3?tt.pt.k:tt.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var nt=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,nt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[i.bind(this)]}$.prototype.getValue=g,$.prototype.interpolateShape=s,$.prototype.setVValue=c,$.prototype.addEffect=b;var et=function(){var j=roundCorner;function tt(_e,nt){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=nt.d,this.elem=_e,this.comp=_e.comp,this.frameId=-1,this.initDynamicPropertyContainer(_e),this.p=PropertyFactory.getProp(_e,nt.p,1,0,this),this.s=PropertyFactory.getProp(_e,nt.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 nt=this.p.v[0],ut=this.p.v[1],ht=this.s.v[0]/2,gt=this.s.v[1]/2,ft=this.d!==3,_t=this.v;_t.v[0][0]=nt,_t.v[0][1]=ut-gt,_t.v[1][0]=ft?nt+ht:nt-ht,_t.v[1][1]=ut,_t.v[2][0]=nt,_t.v[2][1]=ut+gt,_t.v[3][0]=ft?nt-ht:nt+ht,_t.v[3][1]=ut,_t.i[0][0]=ft?nt-ht*j:nt+ht*j,_t.i[0][1]=ut-gt,_t.i[1][0]=ft?nt+ht:nt-ht,_t.i[1][1]=ut-gt*j,_t.i[2][0]=ft?nt+ht*j:nt-ht*j,_t.i[2][1]=ut+gt,_t.i[3][0]=ft?nt-ht:nt+ht,_t.i[3][1]=ut+gt*j,_t.o[0][0]=ft?nt+ht*j:nt-ht*j,_t.o[0][1]=ut-gt,_t.o[1][0]=ft?nt+ht:nt-ht,_t.o[1][1]=ut+gt*j,_t.o[2][0]=ft?nt-ht*j:nt+ht*j,_t.o[2][1]=ut+gt,_t.o[3][0]=ft?nt-ht:nt+ht,_t.o[3][1]=ut-gt*j}},extendPrototype([DynamicPropertyContainer],tt),tt}(),ot=function(){function j(tt,_e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=tt,this.comp=tt.comp,this.data=_e,this.frameId=-1,this.d=_e.d,this.initDynamicPropertyContainer(tt),_e.sy===1?(this.ir=PropertyFactory.getProp(tt,_e.ir,0,0,this),this.is=PropertyFactory.getProp(tt,_e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(tt,_e.pt,0,0,this),this.p=PropertyFactory.getProp(tt,_e.p,1,0,this),this.r=PropertyFactory.getProp(tt,_e.r,0,degToRads,this),this.or=PropertyFactory.getProp(tt,_e.or,0,0,this),this.os=PropertyFactory.getProp(tt,_e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return j.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 _e=Math.floor(this.pt.v)*2,nt=Math.PI*2/_e,ut=!0,ht=this.or.v,gt=this.ir.v,ft=this.os.v,_t=this.is.v,At=2*Math.PI*ht/(_e*2),kt=2*Math.PI*gt/(_e*2),St,Ct,Ot,xt,pt=-Math.PI/2;pt+=this.r.v;var vt=this.data.d===3?-1:1;for(this.v._length=0,St=0;St<_e;St+=1){Ct=ut?ht:gt,Ot=ut?ft:_t,xt=ut?At:kt;var lt=Ct*Math.cos(pt),ct=Ct*Math.sin(pt),yt=lt===0&&ct===0?0:ct/Math.sqrt(lt*lt+ct*ct),mt=lt===0&&ct===0?0:-lt/Math.sqrt(lt*lt+ct*ct);lt+=+this.p.v[0],ct+=+this.p.v[1],this.v.setTripleAt(lt,ct,lt-yt*xt*Ot*vt,ct-mt*xt*Ot*vt,lt+yt*xt*Ot*vt,ct+mt*xt*Ot*vt,St,!0),ut=!ut,pt+=nt*vt}},convertPolygonToPath:function(){var _e=Math.floor(this.pt.v),nt=Math.PI*2/_e,ut=this.or.v,ht=this.os.v,gt=2*Math.PI*ut/(_e*4),ft,_t=-Math.PI*.5,At=this.data.d===3?-1:1;for(_t+=this.r.v,this.v._length=0,ft=0;ft<_e;ft+=1){var kt=ut*Math.cos(_t),St=ut*Math.sin(_t),Ct=kt===0&&St===0?0:St/Math.sqrt(kt*kt+St*St),Ot=kt===0&&St===0?0:-kt/Math.sqrt(kt*kt+St*St);kt+=+this.p.v[0],St+=+this.p.v[1],this.v.setTripleAt(kt,St,kt-Ct*gt*ht*At,St-Ot*gt*ht*At,kt+Ct*gt*ht*At,St+Ot*gt*ht*At,ft,!0),_t+=nt*At}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],j),j}(),rt=function(){function j(tt,_e){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=_e.d,this.initDynamicPropertyContainer(tt),this.p=PropertyFactory.getProp(tt,_e.p,1,0,this),this.s=PropertyFactory.getProp(tt,_e.s,1,0,this),this.r=PropertyFactory.getProp(tt,_e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return j.prototype={convertRectToPath:function(){var _e=this.p.v[0],nt=this.p.v[1],ut=this.s.v[0]/2,ht=this.s.v[1]/2,gt=bmMin(ut,ht,this.r.v),ft=gt*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(_e+ut,nt-ht+gt,_e+ut,nt-ht+gt,_e+ut,nt-ht+ft,0,!0),this.v.setTripleAt(_e+ut,nt+ht-gt,_e+ut,nt+ht-ft,_e+ut,nt+ht-gt,1,!0),gt!==0?(this.v.setTripleAt(_e+ut-gt,nt+ht,_e+ut-gt,nt+ht,_e+ut-ft,nt+ht,2,!0),this.v.setTripleAt(_e-ut+gt,nt+ht,_e-ut+ft,nt+ht,_e-ut+gt,nt+ht,3,!0),this.v.setTripleAt(_e-ut,nt+ht-gt,_e-ut,nt+ht-gt,_e-ut,nt+ht-ft,4,!0),this.v.setTripleAt(_e-ut,nt-ht+gt,_e-ut,nt-ht+ft,_e-ut,nt-ht+gt,5,!0),this.v.setTripleAt(_e-ut+gt,nt-ht,_e-ut+gt,nt-ht,_e-ut+ft,nt-ht,6,!0),this.v.setTripleAt(_e+ut-gt,nt-ht,_e+ut-ft,nt-ht,_e+ut-gt,nt-ht,7,!0)):(this.v.setTripleAt(_e-ut,nt+ht,_e-ut+ft,nt+ht,_e-ut,nt+ht,2),this.v.setTripleAt(_e-ut,nt-ht,_e-ut,nt-ht+ft,_e-ut,nt-ht,3))):(this.v.setTripleAt(_e+ut,nt-ht+gt,_e+ut,nt-ht+ft,_e+ut,nt-ht+gt,0,!0),gt!==0?(this.v.setTripleAt(_e+ut-gt,nt-ht,_e+ut-gt,nt-ht,_e+ut-ft,nt-ht,1,!0),this.v.setTripleAt(_e-ut+gt,nt-ht,_e-ut+ft,nt-ht,_e-ut+gt,nt-ht,2,!0),this.v.setTripleAt(_e-ut,nt-ht+gt,_e-ut,nt-ht+gt,_e-ut,nt-ht+ft,3,!0),this.v.setTripleAt(_e-ut,nt+ht-gt,_e-ut,nt+ht-ft,_e-ut,nt+ht-gt,4,!0),this.v.setTripleAt(_e-ut+gt,nt+ht,_e-ut+gt,nt+ht,_e-ut+ft,nt+ht,5,!0),this.v.setTripleAt(_e+ut-gt,nt+ht,_e+ut-ft,nt+ht,_e+ut-gt,nt+ht,6,!0),this.v.setTripleAt(_e+ut,nt+ht-gt,_e+ut,nt+ht-gt,_e+ut,nt+ht-ft,7,!0)):(this.v.setTripleAt(_e-ut,nt-ht,_e-ut+ft,nt-ht,_e-ut,nt-ht,1,!0),this.v.setTripleAt(_e-ut,nt+ht,_e-ut,nt+ht-ft,_e-ut,nt+ht,2,!0),this.v.setTripleAt(_e+ut,nt+ht,_e+ut-ft,nt+ht,_e+ut,nt+ht,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],j),j}();function at(j,tt,_e){var nt;if(_e===3||_e===4){var ut=_e===3?tt.pt:tt.ks,ht=ut.k;ht.length?nt=new $(j,tt,_e):nt=new _(j,tt,_e)}else _e===5?nt=new rt(j,tt):_e===6?nt=new et(j,tt):_e===7&&(nt=new ot(j,tt));return nt.k&&j.addDynamicProperty(nt),nt}function it(){return _}function st(){return $}var dt={};return dt.getShapeProp=at,dt.getConstructorFunction=it,dt.getKeyframedConstructorFunction=st,dt}();/*!
|
|
42
42
|
Transformation Matrix v2.0
|
|
43
43
|
(c) Epistemex 2014-2015
|
|
44
44
|
www.epistemex.com
|
|
45
45
|
By Ken Fyrstenberg
|
|
46
46
|
Contributions by leeoniya.
|
|
47
47
|
License: MIT, header required.
|
|
48
|
-
*/var Matrix=function(){var a=Math.cos,_=Math.sin,$=Math.tan,_e=Math.round;function et(){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 tt(vt){if(vt===0)return this;var xt=a(vt),Ct=_(vt);return this._t(xt,-Ct,0,0,Ct,xt,0,0,0,0,1,0,0,0,0,1)}function rt(vt){if(vt===0)return this;var xt=a(vt),Ct=_(vt);return this._t(1,0,0,0,0,xt,-Ct,0,0,Ct,xt,0,0,0,0,1)}function nt(vt){if(vt===0)return this;var xt=a(vt),Ct=_(vt);return this._t(xt,0,Ct,0,0,1,0,0,-Ct,0,xt,0,0,0,0,1)}function it(vt){if(vt===0)return this;var xt=a(vt),Ct=_(vt);return this._t(xt,-Ct,0,0,Ct,xt,0,0,0,0,1,0,0,0,0,1)}function at(vt,xt){return this._t(1,xt,vt,1,0,0)}function st(vt,xt){return this.shear($(vt),$(xt))}function ut(vt,xt){var Ct=a(xt),Tt=_(xt);return this._t(Ct,Tt,0,0,-Tt,Ct,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,$(vt),1,0,0,0,0,1,0,0,0,0,1)._t(Ct,-Tt,0,0,Tt,Ct,0,0,0,0,1,0,0,0,0,1)}function ot(vt,xt,Ct){return!Ct&&Ct!==0&&(Ct=1),vt===1&&xt===1&&Ct===1?this:this._t(vt,0,0,0,0,xt,0,0,0,0,Ct,0,0,0,0,1)}function pt(vt,xt,Ct,Tt,It,Rt,Lt,Ht,jt,Qt,$t,Bt,Vt,Kt,qt,Yt){return this.props[0]=vt,this.props[1]=xt,this.props[2]=Ct,this.props[3]=Tt,this.props[4]=It,this.props[5]=Rt,this.props[6]=Lt,this.props[7]=Ht,this.props[8]=jt,this.props[9]=Qt,this.props[10]=$t,this.props[11]=Bt,this.props[12]=Vt,this.props[13]=Kt,this.props[14]=qt,this.props[15]=Yt,this}function ht(vt,xt,Ct){return Ct=Ct||0,vt!==0||xt!==0||Ct!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,vt,xt,Ct,1):this}function dt(vt,xt,Ct,Tt,It,Rt,Lt,Ht,jt,Qt,$t,Bt,Vt,Kt,qt,Yt){var Gt=this.props;if(vt===1&&xt===0&&Ct===0&&Tt===0&&It===0&&Rt===1&&Lt===0&&Ht===0&&jt===0&&Qt===0&&$t===1&&Bt===0)return Gt[12]=Gt[12]*vt+Gt[15]*Vt,Gt[13]=Gt[13]*Rt+Gt[15]*Kt,Gt[14]=Gt[14]*$t+Gt[15]*qt,Gt[15]*=Yt,this._identityCalculated=!1,this;var Xt=Gt[0],er=Gt[1],dr=Gt[2],ir=Gt[3],rr=Gt[4],Ut=Gt[5],zt=Gt[6],sr=Gt[7],lr=Gt[8],vr=Gt[9],Wt=Gt[10],Zt=Gt[11],mr=Gt[12],yr=Gt[13],Ar=Gt[14],br=Gt[15];return Gt[0]=Xt*vt+er*It+dr*jt+ir*Vt,Gt[1]=Xt*xt+er*Rt+dr*Qt+ir*Kt,Gt[2]=Xt*Ct+er*Lt+dr*$t+ir*qt,Gt[3]=Xt*Tt+er*Ht+dr*Bt+ir*Yt,Gt[4]=rr*vt+Ut*It+zt*jt+sr*Vt,Gt[5]=rr*xt+Ut*Rt+zt*Qt+sr*Kt,Gt[6]=rr*Ct+Ut*Lt+zt*$t+sr*qt,Gt[7]=rr*Tt+Ut*Ht+zt*Bt+sr*Yt,Gt[8]=lr*vt+vr*It+Wt*jt+Zt*Vt,Gt[9]=lr*xt+vr*Rt+Wt*Qt+Zt*Kt,Gt[10]=lr*Ct+vr*Lt+Wt*$t+Zt*qt,Gt[11]=lr*Tt+vr*Ht+Wt*Bt+Zt*Yt,Gt[12]=mr*vt+yr*It+Ar*jt+br*Vt,Gt[13]=mr*xt+yr*Rt+Ar*Qt+br*Kt,Gt[14]=mr*Ct+yr*Lt+Ar*$t+br*qt,Gt[15]=mr*Tt+yr*Ht+Ar*Bt+br*Yt,this._identityCalculated=!1,this}function gt(vt){var xt=vt.props;return this.transform(xt[0],xt[1],xt[2],xt[3],xt[4],xt[5],xt[6],xt[7],xt[8],xt[9],xt[10],xt[11],xt[12],xt[13],xt[14],xt[15])}function lt(){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 ft(vt){for(var xt=0;xt<16;){if(vt.props[xt]!==this.props[xt])return!1;xt+=1}return!0}function ct(vt){var xt;for(xt=0;xt<16;xt+=1)vt.props[xt]=this.props[xt];return vt}function mt(vt){var xt;for(xt=0;xt<16;xt+=1)this.props[xt]=vt[xt]}function yt(vt,xt,Ct){return{x:vt*this.props[0]+xt*this.props[4]+Ct*this.props[8]+this.props[12],y:vt*this.props[1]+xt*this.props[5]+Ct*this.props[9]+this.props[13],z:vt*this.props[2]+xt*this.props[6]+Ct*this.props[10]+this.props[14]}}function Et(vt,xt,Ct){return vt*this.props[0]+xt*this.props[4]+Ct*this.props[8]+this.props[12]}function St(vt,xt,Ct){return vt*this.props[1]+xt*this.props[5]+Ct*this.props[9]+this.props[13]}function At(vt,xt,Ct){return vt*this.props[2]+xt*this.props[6]+Ct*this.props[10]+this.props[14]}function Mt(){var vt=this.props[0]*this.props[5]-this.props[1]*this.props[4],xt=this.props[5]/vt,Ct=-this.props[1]/vt,Tt=-this.props[4]/vt,It=this.props[0]/vt,Rt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/vt,Lt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/vt,Ht=new Matrix;return Ht.props[0]=xt,Ht.props[1]=Ct,Ht.props[4]=Tt,Ht.props[5]=It,Ht.props[12]=Rt,Ht.props[13]=Lt,Ht}function Nt(vt){var xt=this.getInverseMatrix();return xt.applyToPointArray(vt[0],vt[1],vt[2]||0)}function kt(vt){var xt,Ct=vt.length,Tt=[];for(xt=0;xt<Ct;xt+=1)Tt[xt]=Nt(vt[xt]);return Tt}function Pt(vt,xt,Ct){var Tt=createTypedArray("float32",6);if(this.isIdentity())Tt[0]=vt[0],Tt[1]=vt[1],Tt[2]=xt[0],Tt[3]=xt[1],Tt[4]=Ct[0],Tt[5]=Ct[1];else{var It=this.props[0],Rt=this.props[1],Lt=this.props[4],Ht=this.props[5],jt=this.props[12],Qt=this.props[13];Tt[0]=vt[0]*It+vt[1]*Lt+jt,Tt[1]=vt[0]*Rt+vt[1]*Ht+Qt,Tt[2]=xt[0]*It+xt[1]*Lt+jt,Tt[3]=xt[0]*Rt+xt[1]*Ht+Qt,Tt[4]=Ct[0]*It+Ct[1]*Lt+jt,Tt[5]=Ct[0]*Rt+Ct[1]*Ht+Qt}return Tt}function Dt(vt,xt,Ct){var Tt;return this.isIdentity()?Tt=[vt,xt,Ct]:Tt=[vt*this.props[0]+xt*this.props[4]+Ct*this.props[8]+this.props[12],vt*this.props[1]+xt*this.props[5]+Ct*this.props[9]+this.props[13],vt*this.props[2]+xt*this.props[6]+Ct*this.props[10]+this.props[14]],Tt}function Ot(vt,xt){if(this.isIdentity())return vt+","+xt;var Ct=this.props;return Math.round((vt*Ct[0]+xt*Ct[4]+Ct[12])*100)/100+","+Math.round((vt*Ct[1]+xt*Ct[5]+Ct[13])*100)/100}function wt(){for(var vt=0,xt=this.props,Ct="matrix3d(",Tt=1e4;vt<16;)Ct+=_e(xt[vt]*Tt)/Tt,Ct+=vt===15?")":",",vt+=1;return Ct}function _t(vt){var xt=1e4;return vt<1e-6&&vt>0||vt>-1e-6&&vt<0?_e(vt*xt)/xt:vt}function bt(){var vt=this.props,xt=_t(vt[0]),Ct=_t(vt[1]),Tt=_t(vt[4]),It=_t(vt[5]),Rt=_t(vt[12]),Lt=_t(vt[13]);return"matrix("+xt+","+Ct+","+Tt+","+It+","+Rt+","+Lt+")"}return function(){this.reset=et,this.rotate=tt,this.rotateX=rt,this.rotateY=nt,this.rotateZ=it,this.skew=st,this.skewFromAxis=ut,this.shear=at,this.scale=ot,this.setTransform=pt,this.translate=ht,this.transform=dt,this.multiply=gt,this.applyToPoint=yt,this.applyToX=Et,this.applyToY=St,this.applyToZ=At,this.applyToPointArray=Dt,this.applyToTriplePoints=Pt,this.applyToPointStringified=Ot,this.toCSS=wt,this.to2dCSS=bt,this.clone=ct,this.cloneFromProps=mt,this.equals=ft,this.inversePoints=kt,this.inversePoint=Nt,this.getInverseMatrix=Mt,this._t=this.transform,this.isIdentity=lt,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(a){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},_typeof$3(a)}var lottie={};function setLocation(a){setLocationHref(a)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(a){setSubframeEnabled(a)}function setPrefix(a){setIdPrefix(a)}function loadAnimation(a){return animationManager.loadAnimation(a)}function setQuality(a){if(typeof a=="string")switch(a){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(a)&&a>1&&setDefaultCurveSegments(a)}function inBrowser(){return typeof navigator<"u"}function installPlugin(a,_){a==="expressions"&&setExpressionsPlugin(_)}function getFactory(a){switch(a){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(a){for(var _=queryString.split("&"),$=0;$<_.length;$+=1){var _e=_[$].split("=");if(decodeURIComponent(_e[0])==a)return decodeURIComponent(_e[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(a){}var ShapeModifiers=function(){var a={},_={};a.registerModifier=$,a.getModifier=_e;function $(et,tt){_[et]||(_[et]=tt)}function _e(et,tt,rt){return new _[et](tt,rt)}return a}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(a){if(!this.closed){a.sh.container.addDynamicProperty(a.sh);var _={shape:a.sh,data:a,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(_),this.addShapeToModifier(_),this._isAnimated&&a.setAsAnimated()}},ShapeModifier.prototype.init=function(a,_){this.shapes=[],this.elem=a,this.initDynamicPropertyContainer(a),this.initModifierProperties(a,_),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(a,_){this.s=PropertyFactory.getProp(a,_.s,0,.01,this),this.e=PropertyFactory.getProp(a,_.e,0,.01,this),this.o=PropertyFactory.getProp(a,_.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=_.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(a){a.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(a,_,$,_e,et){var tt=[];_<=1?tt.push({s:a,e:_}):a>=1?tt.push({s:a-1,e:_-1}):(tt.push({s:a,e:1}),tt.push({s:0,e:_-1}));var rt=[],nt,it=tt.length,at;for(nt=0;nt<it;nt+=1)if(at=tt[nt],!(at.e*et<_e||at.s*et>_e+$)){var st,ut;at.s*et<=_e?st=0:st=(at.s*et-_e)/$,at.e*et>=_e+$?ut=1:ut=(at.e*et-_e)/$,rt.push([st,ut])}return rt.length||rt.push([0,0]),rt},TrimModifier.prototype.releasePathsData=function(a){var _,$=a.length;for(_=0;_<$;_+=1)segmentsLengthPool.release(a[_]);return a.length=0,a},TrimModifier.prototype.processShapes=function(a){var _,$;if(this._mdf||a){var _e=this.o.v%360/360;if(_e<0&&(_e+=1),this.s.v>1?_=1+_e:this.s.v<0?_=0+_e:_=this.s.v+_e,this.e.v>1?$=1+_e:this.e.v<0?$=0+_e:$=this.e.v+_e,_>$){var et=_;_=$,$=et}_=Math.round(_*1e4)*1e-4,$=Math.round($*1e4)*1e-4,this.sValue=_,this.eValue=$}else _=this.sValue,$=this.eValue;var tt,rt,nt=this.shapes.length,it,at,st,ut,ot,pt=0;if($===_)for(rt=0;rt<nt;rt+=1)this.shapes[rt].localShapeCollection.releaseShapes(),this.shapes[rt].shape._mdf=!0,this.shapes[rt].shape.paths=this.shapes[rt].localShapeCollection,this._mdf&&(this.shapes[rt].pathsData.length=0);else if($===1&&_===0||$===0&&_===1){if(this._mdf)for(rt=0;rt<nt;rt+=1)this.shapes[rt].pathsData.length=0,this.shapes[rt].shape._mdf=!0}else{var ht=[],dt,gt;for(rt=0;rt<nt;rt+=1)if(dt=this.shapes[rt],!dt.shape._mdf&&!this._mdf&&!a&&this.m!==2)dt.shape.paths=dt.localShapeCollection;else{if(tt=dt.shape.paths,at=tt._length,ot=0,!dt.shape._mdf&&dt.pathsData.length)ot=dt.totalShapeLength;else{for(st=this.releasePathsData(dt.pathsData),it=0;it<at;it+=1)ut=bez.getSegmentsLength(tt.shapes[it]),st.push(ut),ot+=ut.totalLength;dt.totalShapeLength=ot,dt.pathsData=st}pt+=ot,dt.shape._mdf=!0}var lt=_,ft=$,ct=0,mt;for(rt=nt-1;rt>=0;rt-=1)if(dt=this.shapes[rt],dt.shape._mdf){for(gt=dt.localShapeCollection,gt.releaseShapes(),this.m===2&&nt>1?(mt=this.calculateShapeEdges(_,$,dt.totalShapeLength,ct,pt),ct+=dt.totalShapeLength):mt=[[lt,ft]],at=mt.length,it=0;it<at;it+=1){lt=mt[it][0],ft=mt[it][1],ht.length=0,ft<=1?ht.push({s:dt.totalShapeLength*lt,e:dt.totalShapeLength*ft}):lt>=1?ht.push({s:dt.totalShapeLength*(lt-1),e:dt.totalShapeLength*(ft-1)}):(ht.push({s:dt.totalShapeLength*lt,e:dt.totalShapeLength}),ht.push({s:0,e:dt.totalShapeLength*(ft-1)}));var yt=this.addShapes(dt,ht[0]);if(ht[0].s!==ht[0].e){if(ht.length>1){var Et=dt.shape.paths.shapes[dt.shape.paths._length-1];if(Et.c){var St=yt.pop();this.addPaths(yt,gt),yt=this.addShapes(dt,ht[1],St)}else this.addPaths(yt,gt),yt=this.addShapes(dt,ht[1])}this.addPaths(yt,gt)}}dt.shape.paths=gt}}},TrimModifier.prototype.addPaths=function(a,_){var $,_e=a.length;for($=0;$<_e;$+=1)_.addShape(a[$])},TrimModifier.prototype.addSegment=function(a,_,$,_e,et,tt,rt){et.setXYAt(_[0],_[1],"o",tt),et.setXYAt($[0],$[1],"i",tt+1),rt&&et.setXYAt(a[0],a[1],"v",tt),et.setXYAt(_e[0],_e[1],"v",tt+1)},TrimModifier.prototype.addSegmentFromArray=function(a,_,$,_e){_.setXYAt(a[1],a[5],"o",$),_.setXYAt(a[2],a[6],"i",$+1),_e&&_.setXYAt(a[0],a[4],"v",$),_.setXYAt(a[3],a[7],"v",$+1)},TrimModifier.prototype.addShapes=function(a,_,$){var _e=a.pathsData,et=a.shape.paths.shapes,tt,rt=a.shape.paths._length,nt,it,at=0,st,ut,ot,pt,ht=[],dt,gt=!0;for($?(ut=$._length,dt=$._length):($=shapePool.newElement(),ut=0,dt=0),ht.push($),tt=0;tt<rt;tt+=1){for(ot=_e[tt].lengths,$.c=et[tt].c,it=et[tt].c?ot.length:ot.length+1,nt=1;nt<it;nt+=1)if(st=ot[nt-1],at+st.addedLength<_.s)at+=st.addedLength,$.c=!1;else if(at>_.e){$.c=!1;break}else _.s<=at&&_.e>=at+st.addedLength?(this.addSegment(et[tt].v[nt-1],et[tt].o[nt-1],et[tt].i[nt],et[tt].v[nt],$,ut,gt),gt=!1):(pt=bez.getNewSegment(et[tt].v[nt-1],et[tt].v[nt],et[tt].o[nt-1],et[tt].i[nt],(_.s-at)/st.addedLength,(_.e-at)/st.addedLength,ot[nt-1]),this.addSegmentFromArray(pt,$,ut,gt),gt=!1,$.c=!1),at+=st.addedLength,ut+=1;if(et[tt].c&&ot.length){if(st=ot[nt-1],at<=_.e){var lt=ot[nt-1].addedLength;_.s<=at&&_.e>=at+lt?(this.addSegment(et[tt].v[nt-1],et[tt].o[nt-1],et[tt].i[0],et[tt].v[0],$,ut,gt),gt=!1):(pt=bez.getNewSegment(et[tt].v[nt-1],et[tt].v[0],et[tt].o[nt-1],et[tt].i[0],(_.s-at)/lt,(_.e-at)/lt,ot[nt-1]),this.addSegmentFromArray(pt,$,ut,gt),gt=!1,$.c=!1)}else $.c=!1;at+=st.addedLength,ut+=1}if($._length&&($.setXYAt($.v[dt][0],$.v[dt][1],"i",dt),$.setXYAt($.v[$._length-1][0],$.v[$._length-1][1],"o",$._length-1)),at>_.e)break;tt<rt-1&&($=shapePool.newElement(),gt=!0,ht.push($),ut=0)}return ht};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(a,_){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(a,_.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(a,_){var $=_/100,_e=[0,0],et=a._length,tt=0;for(tt=0;tt<et;tt+=1)_e[0]+=a.v[tt][0],_e[1]+=a.v[tt][1];_e[0]/=et,_e[1]/=et;var rt=shapePool.newElement();rt.c=a.c;var nt,it,at,st,ut,ot;for(tt=0;tt<et;tt+=1)nt=a.v[tt][0]+(_e[0]-a.v[tt][0])*$,it=a.v[tt][1]+(_e[1]-a.v[tt][1])*$,at=a.o[tt][0]+(_e[0]-a.o[tt][0])*-$,st=a.o[tt][1]+(_e[1]-a.o[tt][1])*-$,ut=a.i[tt][0]+(_e[0]-a.i[tt][0])*-$,ot=a.i[tt][1]+(_e[1]-a.i[tt][1])*-$,rt.setTripleAt(nt,it,at,st,ut,ot,tt);return rt},PuckerAndBloatModifier.prototype.processShapes=function(a){var _,$,_e=this.shapes.length,et,tt,rt=this.amount.v;if(rt!==0){var nt,it;for($=0;$<_e;$+=1){if(nt=this.shapes[$],it=nt.localShapeCollection,!(!nt.shape._mdf&&!this._mdf&&!a))for(it.releaseShapes(),nt.shape._mdf=!0,_=nt.shape.paths.shapes,tt=nt.shape.paths._length,et=0;et<tt;et+=1)it.addShape(this.processPath(_[et],rt));nt.shape.paths=nt.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var a=[0,0];function _(it){var at=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||at,this.a&&it.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&it.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&it.skewFromAxis(-this.sk.v,this.sa.v),this.r?it.rotate(-this.r.v):it.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?it.translate(this.px.v,this.py.v,-this.pz.v):it.translate(this.px.v,this.py.v,0):it.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function $(it){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||it){var at;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 st,ut;if(at=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(st=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/at,0),ut=this.p.getValueAtTime(this.p.keyframes[0].t/at,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(st=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/at,0),ut=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/at,0)):(st=this.p.pv,ut=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/at,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){st=[],ut=[];var ot=this.px,pt=this.py;ot._caching.lastFrame+ot.offsetTime<=ot.keyframes[0].t?(st[0]=ot.getValueAtTime((ot.keyframes[0].t+.01)/at,0),st[1]=pt.getValueAtTime((pt.keyframes[0].t+.01)/at,0),ut[0]=ot.getValueAtTime(ot.keyframes[0].t/at,0),ut[1]=pt.getValueAtTime(pt.keyframes[0].t/at,0)):ot._caching.lastFrame+ot.offsetTime>=ot.keyframes[ot.keyframes.length-1].t?(st[0]=ot.getValueAtTime(ot.keyframes[ot.keyframes.length-1].t/at,0),st[1]=pt.getValueAtTime(pt.keyframes[pt.keyframes.length-1].t/at,0),ut[0]=ot.getValueAtTime((ot.keyframes[ot.keyframes.length-1].t-.01)/at,0),ut[1]=pt.getValueAtTime((pt.keyframes[pt.keyframes.length-1].t-.01)/at,0)):(st=[ot.pv,pt.pv],ut[0]=ot.getValueAtTime((ot._caching.lastFrame+ot.offsetTime-.01)/at,ot.offsetTime),ut[1]=pt.getValueAtTime((pt._caching.lastFrame+pt.offsetTime-.01)/at,pt.offsetTime))}else ut=a,st=ut;this.v.rotate(-Math.atan2(st[1]-ut[1],st[0]-ut[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 _e(){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 et(){}function tt(it){this._addDynamicProperty(it),this.elem.addDynamicProperty(it),this._isDirty=!0}function rt(it,at,st){if(this.elem=it,this.frameId=-1,this.propType="transform",this.data=at,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(st||it),at.p&&at.p.s?(this.px=PropertyFactory.getProp(it,at.p.x,0,0,this),this.py=PropertyFactory.getProp(it,at.p.y,0,0,this),at.p.z&&(this.pz=PropertyFactory.getProp(it,at.p.z,0,0,this))):this.p=PropertyFactory.getProp(it,at.p||{k:[0,0,0]},1,0,this),at.rx){if(this.rx=PropertyFactory.getProp(it,at.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(it,at.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(it,at.rz,0,degToRads,this),at.or.k[0].ti){var ut,ot=at.or.k.length;for(ut=0;ut<ot;ut+=1)at.or.k[ut].to=null,at.or.k[ut].ti=null}this.or=PropertyFactory.getProp(it,at.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(it,at.r||{k:0},0,degToRads,this);at.sk&&(this.sk=PropertyFactory.getProp(it,at.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(it,at.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(it,at.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(it,at.s||{k:[100,100,100]},1,.01,this),at.o?this.o=PropertyFactory.getProp(it,at.o,0,.01,it):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}rt.prototype={applyToMatrix:_,getValue:$,precalculateMatrix:_e,autoOrient:et},extendPrototype([DynamicPropertyContainer],rt),rt.prototype.addDynamicProperty=tt,rt.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function nt(it,at,st){return new rt(it,at,st)}return{getTransformProperty:nt}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(a,_){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(a,_.c,0,null,this),this.o=PropertyFactory.getProp(a,_.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(a,_.tr,this),this.so=PropertyFactory.getProp(a,_.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(a,_.tr.eo,0,.01,this),this.data=_,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(a,_,$,_e,et,tt){var rt=tt?-1:1,nt=_e.s.v[0]+(1-_e.s.v[0])*(1-et),it=_e.s.v[1]+(1-_e.s.v[1])*(1-et);a.translate(_e.p.v[0]*rt*et,_e.p.v[1]*rt*et,_e.p.v[2]),_.translate(-_e.a.v[0],-_e.a.v[1],_e.a.v[2]),_.rotate(-_e.r.v*rt*et),_.translate(_e.a.v[0],_e.a.v[1],_e.a.v[2]),$.translate(-_e.a.v[0],-_e.a.v[1],_e.a.v[2]),$.scale(tt?1/nt:nt,tt?1/it:it),$.translate(_e.a.v[0],_e.a.v[1],_e.a.v[2])},RepeaterModifier.prototype.init=function(a,_,$,_e){for(this.elem=a,this.arr=_,this.pos=$,this.elemsData=_e,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(a),this.initModifierProperties(a,_[$]);$>0;)$-=1,this._elements.unshift(_[$]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(a){var _,$=a.length;for(_=0;_<$;_+=1)a[_]._processed=!1,a[_].ty==="gr"&&this.resetElements(a[_].it)},RepeaterModifier.prototype.cloneElements=function(a){var _=JSON.parse(JSON.stringify(a));return this.resetElements(_),_},RepeaterModifier.prototype.changeGroupRender=function(a,_){var $,_e=a.length;for($=0;$<_e;$+=1)a[$]._render=_,a[$].ty==="gr"&&this.changeGroupRender(a[$].it,_)},RepeaterModifier.prototype.processShapes=function(a){var _,$,_e,et,tt,rt=!1;if(this._mdf||a){var nt=Math.ceil(this.c.v);if(this._groups.length<nt){for(;this._groups.length<nt;){var it={it:this.cloneElements(this._elements),ty:"gr"};it.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,it),this._groups.splice(0,0,it),this._currentCopies+=1}this.elem.reloadShapes(),rt=!0}tt=0;var at;for(_e=0;_e<=this._groups.length-1;_e+=1){if(at=tt<nt,this._groups[_e]._render=at,this.changeGroupRender(this._groups[_e].it,at),!at){var st=this.elemsData[_e].it,ut=st[st.length-1];ut.transform.op.v!==0?(ut.transform.op._mdf=!0,ut.transform.op.v=0):ut.transform.op._mdf=!1}tt+=1}this._currentCopies=nt;var ot=this.o.v,pt=ot%1,ht=ot>0?Math.floor(ot):Math.ceil(ot),dt=this.pMatrix.props,gt=this.rMatrix.props,lt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var ft=0;if(ot>0){for(;ft<ht;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),ft+=1;pt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,pt,!1),ft+=pt)}else if(ot<0){for(;ft>ht;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),ft-=1;pt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-pt,!0),ft-=pt)}_e=this.data.m===1?0:this._currentCopies-1,et=this.data.m===1?1:-1,tt=this._currentCopies;for(var ct,mt;tt;){if(_=this.elemsData[_e].it,$=_[_.length-1].transform.mProps.v.props,mt=$.length,_[_.length-1].transform.mProps._mdf=!0,_[_.length-1].transform.op._mdf=!0,_[_.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(_e/(this._currentCopies-1)),ft!==0){for((_e!==0&&et===1||_e!==this._currentCopies-1&&et===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(gt[0],gt[1],gt[2],gt[3],gt[4],gt[5],gt[6],gt[7],gt[8],gt[9],gt[10],gt[11],gt[12],gt[13],gt[14],gt[15]),this.matrix.transform(lt[0],lt[1],lt[2],lt[3],lt[4],lt[5],lt[6],lt[7],lt[8],lt[9],lt[10],lt[11],lt[12],lt[13],lt[14],lt[15]),this.matrix.transform(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],dt[8],dt[9],dt[10],dt[11],dt[12],dt[13],dt[14],dt[15]),ct=0;ct<mt;ct+=1)$[ct]=this.matrix.props[ct];this.matrix.reset()}else for(this.matrix.reset(),ct=0;ct<mt;ct+=1)$[ct]=this.matrix.props[ct];ft+=1,tt-=1,_e+=et}}else for(tt=this._currentCopies,_e=0,et=1;tt;)_=this.elemsData[_e].it,$=_[_.length-1].transform.mProps.v.props,_[_.length-1].transform.mProps._mdf=!1,_[_.length-1].transform.op._mdf=!1,tt-=1,_e+=et;return rt},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(a,_){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(a,_.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(a,_){var $=shapePool.newElement();$.c=a.c;var _e,et=a._length,tt,rt,nt,it,at,st,ut=0,ot,pt,ht,dt,gt,lt;for(_e=0;_e<et;_e+=1)tt=a.v[_e],nt=a.o[_e],rt=a.i[_e],tt[0]===nt[0]&&tt[1]===nt[1]&&tt[0]===rt[0]&&tt[1]===rt[1]?(_e===0||_e===et-1)&&!a.c?($.setTripleAt(tt[0],tt[1],nt[0],nt[1],rt[0],rt[1],ut),ut+=1):(_e===0?it=a.v[et-1]:it=a.v[_e-1],at=Math.sqrt(Math.pow(tt[0]-it[0],2)+Math.pow(tt[1]-it[1],2)),st=at?Math.min(at/2,_)/at:0,gt=tt[0]+(it[0]-tt[0])*st,ot=gt,lt=tt[1]-(tt[1]-it[1])*st,pt=lt,ht=ot-(ot-tt[0])*roundCorner,dt=pt-(pt-tt[1])*roundCorner,$.setTripleAt(ot,pt,ht,dt,gt,lt,ut),ut+=1,_e===et-1?it=a.v[0]:it=a.v[_e+1],at=Math.sqrt(Math.pow(tt[0]-it[0],2)+Math.pow(tt[1]-it[1],2)),st=at?Math.min(at/2,_)/at:0,ht=tt[0]+(it[0]-tt[0])*st,ot=ht,dt=tt[1]+(it[1]-tt[1])*st,pt=dt,gt=ot-(ot-tt[0])*roundCorner,lt=pt-(pt-tt[1])*roundCorner,$.setTripleAt(ot,pt,ht,dt,gt,lt,ut),ut+=1):($.setTripleAt(a.v[_e][0],a.v[_e][1],a.o[_e][0],a.o[_e][1],a.i[_e][0],a.i[_e][1],ut),ut+=1);return $},RoundCornersModifier.prototype.processShapes=function(a){var _,$,_e=this.shapes.length,et,tt,rt=this.rd.v;if(rt!==0){var nt,it;for($=0;$<_e;$+=1){if(nt=this.shapes[$],it=nt.localShapeCollection,!(!nt.shape._mdf&&!this._mdf&&!a))for(it.releaseShapes(),nt.shape._mdf=!0,_=nt.shape.paths.shapes,tt=nt.shape.paths._length,et=0;et<tt;et+=1)it.addShape(this.processPath(_[et],rt));nt.shape.paths=nt.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(a,_){return Math.abs(a-_)*1e5<=Math.min(Math.abs(a),Math.abs(_))}function floatZero(a){return Math.abs(a)<=1e-5}function lerp(a,_,$){return a*(1-$)+_*$}function lerpPoint(a,_,$){return[lerp(a[0],_[0],$),lerp(a[1],_[1],$)]}function quadRoots(a,_,$){if(a===0)return[];var _e=_*_-4*a*$;if(_e<0)return[];var et=-_/(2*a);if(_e===0)return[et];var tt=Math.sqrt(_e)/(2*a);return[et-tt,et+tt]}function polynomialCoefficients(a,_,$,_e){return[-a+3*_-3*$+_e,3*a-6*_+3*$,-3*a+3*_,a]}function singlePoint(a){return new PolynomialBezier(a,a,a,a,!1)}function PolynomialBezier(a,_,$,_e,et){et&&pointEqual(a,_)&&(_=lerpPoint(a,_e,1/3)),et&&pointEqual($,_e)&&($=lerpPoint(a,_e,2/3));var tt=polynomialCoefficients(a[0],_[0],$[0],_e[0]),rt=polynomialCoefficients(a[1],_[1],$[1],_e[1]);this.a=[tt[0],rt[0]],this.b=[tt[1],rt[1]],this.c=[tt[2],rt[2]],this.d=[tt[3],rt[3]],this.points=[a,_,$,_e]}PolynomialBezier.prototype.point=function(a){return[((this.a[0]*a+this.b[0])*a+this.c[0])*a+this.d[0],((this.a[1]*a+this.b[1])*a+this.c[1])*a+this.d[1]]},PolynomialBezier.prototype.derivative=function(a){return[(3*a*this.a[0]+2*this.b[0])*a+this.c[0],(3*a*this.a[1]+2*this.b[1])*a+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(a){var _=this.derivative(a);return Math.atan2(_[1],_[0])},PolynomialBezier.prototype.normalAngle=function(a){var _=this.derivative(a);return Math.atan2(_[0],_[1])},PolynomialBezier.prototype.inflectionPoints=function(){var a=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(a))return[];var _=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/a,$=_*_-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/a;if($<0)return[];var _e=Math.sqrt($);return floatZero(_e)?_e>0&&_e<1?[_]:[]:[_-_e,_+_e].filter(function(et){return et>0&&et<1})},PolynomialBezier.prototype.split=function(a){if(a<=0)return[singlePoint(this.points[0]),this];if(a>=1)return[this,singlePoint(this.points[this.points.length-1])];var _=lerpPoint(this.points[0],this.points[1],a),$=lerpPoint(this.points[1],this.points[2],a),_e=lerpPoint(this.points[2],this.points[3],a),et=lerpPoint(_,$,a),tt=lerpPoint($,_e,a),rt=lerpPoint(et,tt,a);return[new PolynomialBezier(this.points[0],_,et,rt,!0),new PolynomialBezier(rt,tt,_e,this.points[3],!0)]};function extrema(a,_){var $=a.points[0][_],_e=a.points[a.points.length-1][_];if($>_e){var et=_e;_e=$,$=et}for(var tt=quadRoots(3*a.a[_],2*a.b[_],a.c[_]),rt=0;rt<tt.length;rt+=1)if(tt[rt]>0&&tt[rt]<1){var nt=a.point(tt[rt])[_];nt<$?$=nt:nt>_e&&(_e=nt)}return{min:$,max:_e}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var a=this.bounds();return{left:a.x.min,right:a.x.max,top:a.y.min,bottom:a.y.max,width:a.x.max-a.x.min,height:a.y.max-a.y.min,cx:(a.x.max+a.x.min)/2,cy:(a.y.max+a.y.min)/2}};function intersectData(a,_,$){var _e=a.boundingBox();return{cx:_e.cx,cy:_e.cy,width:_e.width,height:_e.height,bez:a,t:(_+$)/2,t1:_,t2:$}}function splitData(a){var _=a.bez.split(.5);return[intersectData(_[0],a.t1,a.t),intersectData(_[1],a.t,a.t2)]}function boxIntersect(a,_){return Math.abs(a.cx-_.cx)*2<a.width+_.width&&Math.abs(a.cy-_.cy)*2<a.height+_.height}function intersectsImpl(a,_,$,_e,et,tt){if(boxIntersect(a,_)){if($>=tt||a.width<=_e&&a.height<=_e&&_.width<=_e&&_.height<=_e){et.push([a.t,_.t]);return}var rt=splitData(a),nt=splitData(_);intersectsImpl(rt[0],nt[0],$+1,_e,et,tt),intersectsImpl(rt[0],nt[1],$+1,_e,et,tt),intersectsImpl(rt[1],nt[0],$+1,_e,et,tt),intersectsImpl(rt[1],nt[1],$+1,_e,et,tt)}}PolynomialBezier.prototype.intersections=function(a,_,$){_===void 0&&(_=2),$===void 0&&($=7);var _e=[];return intersectsImpl(intersectData(this,0,1),intersectData(a,0,1),0,_,_e,$),_e},PolynomialBezier.shapeSegment=function(a,_){var $=(_+1)%a.length();return new PolynomialBezier(a.v[_],a.o[_],a.i[$],a.v[$],!0)},PolynomialBezier.shapeSegmentInverted=function(a,_){var $=(_+1)%a.length();return new PolynomialBezier(a.v[$],a.i[$],a.o[_],a.v[_],!0)};function crossProduct(a,_){return[a[1]*_[2]-a[2]*_[1],a[2]*_[0]-a[0]*_[2],a[0]*_[1]-a[1]*_[0]]}function lineIntersection(a,_,$,_e){var et=[a[0],a[1],1],tt=[_[0],_[1],1],rt=[$[0],$[1],1],nt=[_e[0],_e[1],1],it=crossProduct(crossProduct(et,tt),crossProduct(rt,nt));return floatZero(it[2])?null:[it[0]/it[2],it[1]/it[2]]}function polarOffset(a,_,$){return[a[0]+Math.cos(_)*$,a[1]-Math.sin(_)*$]}function pointDistance(a,_){return Math.hypot(a[0]-_[0],a[1]-_[1])}function pointEqual(a,_){return floatEqual(a[0],_[0])&&floatEqual(a[1],_[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(a,_){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(a,_.s,0,null,this),this.frequency=PropertyFactory.getProp(a,_.r,0,null,this),this.pointsType=PropertyFactory.getProp(a,_.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(a,_,$,_e,et,tt,rt){var nt=$-Math.PI/2,it=$+Math.PI/2,at=_[0]+Math.cos($)*_e*et,st=_[1]-Math.sin($)*_e*et;a.setTripleAt(at,st,at+Math.cos(nt)*tt,st-Math.sin(nt)*tt,at+Math.cos(it)*rt,st-Math.sin(it)*rt,a.length())}function getPerpendicularVector(a,_){var $=[_[0]-a[0],_[1]-a[1]],_e=-Math.PI*.5,et=[Math.cos(_e)*$[0]-Math.sin(_e)*$[1],Math.sin(_e)*$[0]+Math.cos(_e)*$[1]];return et}function getProjectingAngle(a,_){var $=_===0?a.length()-1:_-1,_e=(_+1)%a.length(),et=a.v[$],tt=a.v[_e],rt=getPerpendicularVector(et,tt);return Math.atan2(0,1)-Math.atan2(rt[1],rt[0])}function zigZagCorner(a,_,$,_e,et,tt,rt){var nt=getProjectingAngle(_,$),it=_.v[$%_._length],at=_.v[$===0?_._length-1:$-1],st=_.v[($+1)%_._length],ut=tt===2?Math.sqrt(Math.pow(it[0]-at[0],2)+Math.pow(it[1]-at[1],2)):0,ot=tt===2?Math.sqrt(Math.pow(it[0]-st[0],2)+Math.pow(it[1]-st[1],2)):0;setPoint(a,_.v[$%_._length],nt,rt,_e,ot/((et+1)*2),ut/((et+1)*2))}function zigZagSegment(a,_,$,_e,et,tt){for(var rt=0;rt<_e;rt+=1){var nt=(rt+1)/(_e+1),it=et===2?Math.sqrt(Math.pow(_.points[3][0]-_.points[0][0],2)+Math.pow(_.points[3][1]-_.points[0][1],2)):0,at=_.normalAngle(nt),st=_.point(nt);setPoint(a,st,at,tt,$,it/((_e+1)*2),it/((_e+1)*2)),tt=-tt}return tt}ZigZagModifier.prototype.processPath=function(a,_,$,_e){var et=a._length,tt=shapePool.newElement();if(tt.c=a.c,a.c||(et-=1),et===0)return tt;var rt=-1,nt=PolynomialBezier.shapeSegment(a,0);zigZagCorner(tt,a,0,_,$,_e,rt);for(var it=0;it<et;it+=1)rt=zigZagSegment(tt,nt,_,$,_e,-rt),it===et-1&&!a.c?nt=null:nt=PolynomialBezier.shapeSegment(a,(it+1)%et),zigZagCorner(tt,a,it+1,_,$,_e,rt);return tt},ZigZagModifier.prototype.processShapes=function(a){var _,$,_e=this.shapes.length,et,tt,rt=this.amplitude.v,nt=Math.max(0,Math.round(this.frequency.v)),it=this.pointsType.v;if(rt!==0){var at,st;for($=0;$<_e;$+=1){if(at=this.shapes[$],st=at.localShapeCollection,!(!at.shape._mdf&&!this._mdf&&!a))for(st.releaseShapes(),at.shape._mdf=!0,_=at.shape.paths.shapes,tt=at.shape.paths._length,et=0;et<tt;et+=1)st.addShape(this.processPath(_[et],rt,nt,it));at.shape.paths=at.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(a,_,$){var _e=Math.atan2(_[0]-a[0],_[1]-a[1]);return[polarOffset(a,_e,$),polarOffset(_,_e,$)]}function offsetSegment(a,_){var $,_e,et,tt,rt,nt,it;it=linearOffset(a.points[0],a.points[1],_),$=it[0],_e=it[1],it=linearOffset(a.points[1],a.points[2],_),et=it[0],tt=it[1],it=linearOffset(a.points[2],a.points[3],_),rt=it[0],nt=it[1];var at=lineIntersection($,_e,et,tt);at===null&&(at=_e);var st=lineIntersection(rt,nt,et,tt);return st===null&&(st=rt),new PolynomialBezier($,at,st,nt)}function joinLines(a,_,$,_e,et){var tt=_.points[3],rt=$.points[0];if(_e===3||pointEqual(tt,rt))return tt;if(_e===2){var nt=-_.tangentAngle(1),it=-$.tangentAngle(0)+Math.PI,at=lineIntersection(tt,polarOffset(tt,nt+Math.PI/2,100),rt,polarOffset(rt,nt+Math.PI/2,100)),st=at?pointDistance(at,tt):pointDistance(tt,rt)/2,ut=polarOffset(tt,nt,2*st*roundCorner);return a.setXYAt(ut[0],ut[1],"o",a.length()-1),ut=polarOffset(rt,it,2*st*roundCorner),a.setTripleAt(rt[0],rt[1],rt[0],rt[1],ut[0],ut[1],a.length()),rt}var ot=pointEqual(tt,_.points[2])?_.points[0]:_.points[2],pt=pointEqual(rt,$.points[1])?$.points[3]:$.points[1],ht=lineIntersection(ot,tt,rt,pt);return ht&&pointDistance(ht,tt)<et?(a.setTripleAt(ht[0],ht[1],ht[0],ht[1],ht[0],ht[1],a.length()),ht):tt}function getIntersection(a,_){var $=a.intersections(_);return $.length&&floatEqual($[0][0],1)&&$.shift(),$.length?$[0]:null}function pruneSegmentIntersection(a,_){var $=a.slice(),_e=_.slice(),et=getIntersection(a[a.length-1],_[0]);return et&&($[a.length-1]=a[a.length-1].split(et[0])[0],_e[0]=_[0].split(et[1])[1]),a.length>1&&_.length>1&&(et=getIntersection(a[0],_[_.length-1]),et)?[[a[0].split(et[0])[0]],[_[_.length-1].split(et[1])[1]]]:[$,_e]}function pruneIntersections(a){for(var _,$=1;$<a.length;$+=1)_=pruneSegmentIntersection(a[$-1],a[$]),a[$-1]=_[0],a[$]=_[1];return a.length>1&&(_=pruneSegmentIntersection(a[a.length-1],a[0]),a[a.length-1]=_[0],a[0]=_[1]),a}function offsetSegmentSplit(a,_){var $=a.inflectionPoints(),_e,et,tt,rt;if($.length===0)return[offsetSegment(a,_)];if($.length===1||floatEqual($[1],1))return tt=a.split($[0]),_e=tt[0],et=tt[1],[offsetSegment(_e,_),offsetSegment(et,_)];tt=a.split($[0]),_e=tt[0];var nt=($[1]-$[0])/(1-$[0]);return tt=tt[1].split(nt),rt=tt[0],et=tt[1],[offsetSegment(_e,_),offsetSegment(rt,_),offsetSegment(et,_)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(a,_){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(a,_.a,0,null,this),this.miterLimit=PropertyFactory.getProp(a,_.ml,0,null,this),this.lineJoin=_.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(a,_,$,_e){var et=shapePool.newElement();et.c=a.c;var tt=a.length();a.c||(tt-=1);var rt,nt,it,at=[];for(rt=0;rt<tt;rt+=1)it=PolynomialBezier.shapeSegment(a,rt),at.push(offsetSegmentSplit(it,_));if(!a.c)for(rt=tt-1;rt>=0;rt-=1)it=PolynomialBezier.shapeSegmentInverted(a,rt),at.push(offsetSegmentSplit(it,_));at=pruneIntersections(at);var st=null,ut=null;for(rt=0;rt<at.length;rt+=1){var ot=at[rt];for(ut&&(st=joinLines(et,ut,ot[0],$,_e)),ut=ot[ot.length-1],nt=0;nt<ot.length;nt+=1)it=ot[nt],st&&pointEqual(it.points[0],st)?et.setXYAt(it.points[1][0],it.points[1][1],"o",et.length()-1):et.setTripleAt(it.points[0][0],it.points[0][1],it.points[1][0],it.points[1][1],it.points[0][0],it.points[0][1],et.length()),et.setTripleAt(it.points[3][0],it.points[3][1],it.points[3][0],it.points[3][1],it.points[2][0],it.points[2][1],et.length()),st=it.points[3]}return at.length&&joinLines(et,ut,at[0][0],$,_e),et},OffsetPathModifier.prototype.processShapes=function(a){var _,$,_e=this.shapes.length,et,tt,rt=this.amount.v,nt=this.miterLimit.v,it=this.lineJoin;if(rt!==0){var at,st;for($=0;$<_e;$+=1){if(at=this.shapes[$],st=at.localShapeCollection,!(!at.shape._mdf&&!this._mdf&&!a))for(st.releaseShapes(),at.shape._mdf=!0,_=at.shape.paths.shapes,tt=at.shape.paths._length,et=0;et<tt;et+=1)st.addShape(this.processPath(_[et],rt,it,nt));at.shape.paths=at.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(a){for(var _=a.fStyle?a.fStyle.split(" "):[],$="normal",_e="normal",et=_.length,tt,rt=0;rt<et;rt+=1)switch(tt=_[rt].toLowerCase(),tt){case"italic":_e="italic";break;case"bold":$="700";break;case"black":$="900";break;case"medium":$="500";break;case"regular":case"normal":$="400";break;case"light":case"thin":$="200";break}return{style:_e,weight:a.fWeight||$}}var FontManager=function(){var a=5e3,_={w:0,size:0,shapes:[],data:{shapes:[]}},$=[];$=$.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 _e=127988,et=917631,tt=917601,rt=917626,nt=65039,it=8205,at=127462,st=127487,ut=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function ot(_t){var bt=_t.split(","),vt,xt=bt.length,Ct=[];for(vt=0;vt<xt;vt+=1)bt[vt]!=="sans-serif"&&bt[vt]!=="monospace"&&Ct.push(bt[vt]);return Ct.join(",")}function pt(_t,bt){var vt=createTag("span");vt.setAttribute("aria-hidden",!0),vt.style.fontFamily=bt;var xt=createTag("span");xt.innerText="giItT1WQy@!-/#",vt.style.position="absolute",vt.style.left="-10000px",vt.style.top="-10000px",vt.style.fontSize="300px",vt.style.fontVariant="normal",vt.style.fontStyle="normal",vt.style.fontWeight="normal",vt.style.letterSpacing="0",vt.appendChild(xt),document.body.appendChild(vt);var Ct=xt.offsetWidth;return xt.style.fontFamily=ot(_t)+", "+bt,{node:xt,w:Ct,parent:vt}}function ht(){var _t,bt=this.fonts.length,vt,xt,Ct=bt;for(_t=0;_t<bt;_t+=1)this.fonts[_t].loaded?Ct-=1:this.fonts[_t].fOrigin==="n"||this.fonts[_t].origin===0?this.fonts[_t].loaded=!0:(vt=this.fonts[_t].monoCase.node,xt=this.fonts[_t].monoCase.w,vt.offsetWidth!==xt?(Ct-=1,this.fonts[_t].loaded=!0):(vt=this.fonts[_t].sansCase.node,xt=this.fonts[_t].sansCase.w,vt.offsetWidth!==xt&&(Ct-=1,this.fonts[_t].loaded=!0)),this.fonts[_t].loaded&&(this.fonts[_t].sansCase.parent.parentNode.removeChild(this.fonts[_t].sansCase.parent),this.fonts[_t].monoCase.parent.parentNode.removeChild(this.fonts[_t].monoCase.parent)));Ct!==0&&Date.now()-this.initTime<a?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function dt(_t,bt){var vt=document.body&&bt?"svg":"canvas",xt,Ct=getFontProperties(_t);if(vt==="svg"){var Tt=createNS("text");Tt.style.fontSize="100px",Tt.setAttribute("font-family",_t.fFamily),Tt.setAttribute("font-style",Ct.style),Tt.setAttribute("font-weight",Ct.weight),Tt.textContent="1",_t.fClass?(Tt.style.fontFamily="inherit",Tt.setAttribute("class",_t.fClass)):Tt.style.fontFamily=_t.fFamily,bt.appendChild(Tt),xt=Tt}else{var It=new OffscreenCanvas(500,500).getContext("2d");It.font=Ct.style+" "+Ct.weight+" 100px "+_t.fFamily,xt=It}function Rt(Lt){return vt==="svg"?(xt.textContent=Lt,xt.getComputedTextLength()):xt.measureText(Lt).width}return{measureText:Rt}}function gt(_t,bt){if(!_t){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_t.list;return}if(!document.body){this.isLoaded=!0,_t.list.forEach(function($t){$t.helper=dt($t),$t.cache={}}),this.fonts=_t.list;return}var vt=_t.list,xt,Ct=vt.length,Tt=Ct;for(xt=0;xt<Ct;xt+=1){var It=!0,Rt,Lt;if(vt[xt].loaded=!1,vt[xt].monoCase=pt(vt[xt].fFamily,"monospace"),vt[xt].sansCase=pt(vt[xt].fFamily,"sans-serif"),!vt[xt].fPath)vt[xt].loaded=!0,Tt-=1;else if(vt[xt].fOrigin==="p"||vt[xt].origin===3){if(Rt=document.querySelectorAll('style[f-forigin="p"][f-family="'+vt[xt].fFamily+'"], style[f-origin="3"][f-family="'+vt[xt].fFamily+'"]'),Rt.length>0&&(It=!1),It){var Ht=createTag("style");Ht.setAttribute("f-forigin",vt[xt].fOrigin),Ht.setAttribute("f-origin",vt[xt].origin),Ht.setAttribute("f-family",vt[xt].fFamily),Ht.type="text/css",Ht.innerText="@font-face {font-family: "+vt[xt].fFamily+"; font-style: normal; src: url('"+vt[xt].fPath+"');}",bt.appendChild(Ht)}}else if(vt[xt].fOrigin==="g"||vt[xt].origin===1){for(Rt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Lt=0;Lt<Rt.length;Lt+=1)Rt[Lt].href.indexOf(vt[xt].fPath)!==-1&&(It=!1);if(It){var jt=createTag("link");jt.setAttribute("f-forigin",vt[xt].fOrigin),jt.setAttribute("f-origin",vt[xt].origin),jt.type="text/css",jt.rel="stylesheet",jt.href=vt[xt].fPath,document.body.appendChild(jt)}}else if(vt[xt].fOrigin==="t"||vt[xt].origin===2){for(Rt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Lt=0;Lt<Rt.length;Lt+=1)vt[xt].fPath===Rt[Lt].src&&(It=!1);if(It){var Qt=createTag("link");Qt.setAttribute("f-forigin",vt[xt].fOrigin),Qt.setAttribute("f-origin",vt[xt].origin),Qt.setAttribute("rel","stylesheet"),Qt.setAttribute("href",vt[xt].fPath),bt.appendChild(Qt)}}vt[xt].helper=dt(vt[xt],bt),vt[xt].cache={},this.fonts.push(vt[xt])}Tt===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function lt(_t){if(_t){this.chars||(this.chars=[]);var bt,vt=_t.length,xt,Ct=this.chars.length,Tt;for(bt=0;bt<vt;bt+=1){for(xt=0,Tt=!1;xt<Ct;)this.chars[xt].style===_t[bt].style&&this.chars[xt].fFamily===_t[bt].fFamily&&this.chars[xt].ch===_t[bt].ch&&(Tt=!0),xt+=1;Tt||(this.chars.push(_t[bt]),Ct+=1)}}}function ft(_t,bt,vt){for(var xt=0,Ct=this.chars.length;xt<Ct;){if(this.chars[xt].ch===_t&&this.chars[xt].style===bt&&this.chars[xt].fFamily===vt)return this.chars[xt];xt+=1}return(typeof _t=="string"&&_t.charCodeAt(0)!==13||!_t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_t,bt,vt)),_}function ct(_t,bt,vt){var xt=this.getFontByName(bt),Ct=_t;if(!xt.cache[Ct]){var Tt=xt.helper;if(_t===" "){var It=Tt.measureText("|"+_t+"|"),Rt=Tt.measureText("||");xt.cache[Ct]=(It-Rt)/100}else xt.cache[Ct]=Tt.measureText(_t)/100}return xt.cache[Ct]*vt}function mt(_t){for(var bt=0,vt=this.fonts.length;bt<vt;){if(this.fonts[bt].fName===_t)return this.fonts[bt];bt+=1}return this.fonts[0]}function yt(_t){var bt=0,vt=_t.charCodeAt(0);if(vt>=55296&&vt<=56319){var xt=_t.charCodeAt(1);xt>=56320&&xt<=57343&&(bt=(vt-55296)*1024+xt-56320+65536)}return bt}function Et(_t,bt){var vt=_t.toString(16)+bt.toString(16);return ut.indexOf(vt)!==-1}function St(_t){return _t===it}function At(_t){return _t===nt}function Mt(_t){var bt=yt(_t);return bt>=at&&bt<=st}function Nt(_t){return Mt(_t.substr(0,2))&&Mt(_t.substr(2,2))}function kt(_t){return $.indexOf(_t)!==-1}function Pt(_t,bt){var vt=yt(_t.substr(bt,2));if(vt!==_e)return!1;var xt=0;for(bt+=2;xt<5;){if(vt=yt(_t.substr(bt,2)),vt<tt||vt>rt)return!1;xt+=1,bt+=2}return yt(_t.substr(bt,2))===et}function Dt(){this.isLoaded=!0}var Ot=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)};Ot.isModifier=Et,Ot.isZeroWidthJoiner=St,Ot.isFlagEmoji=Nt,Ot.isRegionalCode=Mt,Ot.isCombinedCharacter=kt,Ot.isRegionalFlag=Pt,Ot.isVariationSelector=At,Ot.BLACK_FLAG_CODE_POINT=_e;var wt={addChars:lt,addFonts:gt,getCharData:ft,getFontByName:mt,measureText:ct,checkLoadedFonts:ht,setIsLoaded:Dt};return Ot.prototype=wt,Ot}();function SlotManager(a){this.animationData=a}SlotManager.prototype.getProp=function(a){return this.animationData.slots&&this.animationData.slots[a.sid]?Object.assign(a,this.animationData.slots[a.sid].p):a};function slotFactory(a){return new SlotManager(a)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(_){this.renderableComponents.indexOf(_)===-1&&this.renderableComponents.push(_)},removeRenderableComponent:function(_){this.renderableComponents.indexOf(_)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(_),1)},prepareRenderableFrame:function(_){this.checkLayerLimits(_)},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(_){this.data.ip-this.data.st<=_&&this.data.op-this.data.st>_?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 _,$=this.renderableComponents.length;for(_=0;_<$;_+=1)this.renderableComponents[_].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 a={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(_){return a[_]||""}}();function SliderEffect(a,_,$){this.p=PropertyFactory.getProp(_,a.v,0,0,$)}function AngleEffect(a,_,$){this.p=PropertyFactory.getProp(_,a.v,0,0,$)}function ColorEffect(a,_,$){this.p=PropertyFactory.getProp(_,a.v,1,0,$)}function PointEffect(a,_,$){this.p=PropertyFactory.getProp(_,a.v,1,0,$)}function LayerIndexEffect(a,_,$){this.p=PropertyFactory.getProp(_,a.v,0,0,$)}function MaskIndexEffect(a,_,$){this.p=PropertyFactory.getProp(_,a.v,0,0,$)}function CheckboxEffect(a,_,$){this.p=PropertyFactory.getProp(_,a.v,0,0,$)}function NoValueEffect(){this.p={}}function EffectsManager(a,_){var $=a.ef||[];this.effectElements=[];var _e,et=$.length,tt;for(_e=0;_e<et;_e+=1)tt=new GroupEffect($[_e],_),this.effectElements.push(tt)}function GroupEffect(a,_){this.init(a,_)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(a,_){this.data=a,this.effectElements=[],this.initDynamicPropertyContainer(_);var $,_e=this.data.ef.length,et,tt=this.data.ef;for($=0;$<_e;$+=1){switch(et=null,tt[$].ty){case 0:et=new SliderEffect(tt[$],_,this);break;case 1:et=new AngleEffect(tt[$],_,this);break;case 2:et=new ColorEffect(tt[$],_,this);break;case 3:et=new PointEffect(tt[$],_,this);break;case 4:case 7:et=new CheckboxEffect(tt[$],_,this);break;case 10:et=new LayerIndexEffect(tt[$],_,this);break;case 11:et=new MaskIndexEffect(tt[$],_,this);break;case 5:et=new EffectsManager(tt[$],_);break;default:et=new NoValueEffect(tt[$]);break}et&&this.effectElements.push(et)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var _=0,$=this.data.masksProperties.length;_<$;){if(this.data.masksProperties[_].mode!=="n"&&this.data.masksProperties[_].cl!==!1)return!0;_+=1}return!1},initExpressions:function(){var _=getExpressionInterfaces();if(_){var $=_("layer"),_e=_("effects"),et=_("shape"),tt=_("text"),rt=_("comp");this.layerInterface=$(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var nt=_e.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(nt),this.data.ty===0||this.data.xt?this.compInterface=rt(this):this.data.ty===4?(this.layerInterface.shapeInterface=et(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=tt(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var _=getBlendMode(this.data.bm),$=this.baseElement||this.layerElement;$.style["mix-blend-mode"]=_},initBaseData:function(_,$,_e){this.globalData=$,this.comp=_e,this.data=_,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(_,$){var _e,et=this.dynamicProperties.length;for(_e=0;_e<et;_e+=1)($||this._isParent&&this.dynamicProperties[_e].propType==="transform")&&(this.dynamicProperties[_e].getValue(),this.dynamicProperties[_e]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(_){this.dynamicProperties.indexOf(_)===-1&&this.dynamicProperties.push(_)}};function FootageElement(a,_,$){this.initFrame(),this.initRenderable(),this.assetData=_.getAssetData(a.refId),this.footageData=_.imageLoader.getAsset(this.assetData),this.initBaseData(a,_,$)}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 a=getExpressionInterfaces();if(a){var _=a("footage");this.layerInterface=_(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(a,_,$){this.initFrame(),this.initRenderable(),this.assetData=_.getAssetData(a.refId),this.initBaseData(a,_,$),this._isPlaying=!1,this._canPlay=!1;var _e=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(_e),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=a.tm?PropertyFactory.getProp(this,a.tm,0,_.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,a.au&&a.au.lv?a.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(a){if(this.prepareRenderableFrame(a,!0),this.prepareProperties(a,!0),this.tm._placeholder)this._currentTime=a/this.data.sr;else{var _=this.tm.v;this._currentTime=_}this._volume=this.lv.v[0];var $=this._volume*this._volumeMultiplier;this._previousVolume!==$&&(this._previousVolume=$,this.audio.volume($))},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(a){this.audio.rate(a)},AudioElement.prototype.volume=function(a){this._volumeMultiplier=a,this._previousVolume=a*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(a){var _,$=this.layers.length,_e;for(this.completeLayers=!0,_=$-1;_>=0;_-=1)this.elements[_]||(_e=this.layers[_],_e.ip-_e.st<=a-this.layers[_].st&&_e.op-_e.st>a-this.layers[_].st&&this.buildItem(_)),this.completeLayers=this.elements[_]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(a){switch(a.ty){case 2:return this.createImage(a);case 0:return this.createComp(a);case 1:return this.createSolid(a);case 3:return this.createNull(a);case 4:return this.createShape(a);case 5:return this.createText(a);case 6:return this.createAudio(a);case 13:return this.createCamera(a);case 15:return this.createFootage(a);default:return this.createNull(a)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(a){return new AudioElement(a,this.globalData,this)},BaseRenderer.prototype.createFootage=function(a){return new FootageElement(a,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var a,_=this.layers.length;for(a=0;a<_;a+=1)this.buildItem(a);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(a){this.completeLayers=!1;var _,$=a.length,_e,et=this.layers.length;for(_=0;_<$;_+=1)for(_e=0;_e<et;){if(this.layers[_e].id===a[_].id){this.layers[_e]=a[_];break}_e+=1}},BaseRenderer.prototype.setProjectInterface=function(a){this.globalData.projectInterface=a},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(a,_,$){for(var _e=this.elements,et=this.layers,tt=0,rt=et.length;tt<rt;)et[tt].ind==_&&(!_e[tt]||_e[tt]===!0?(this.buildItem(tt),this.addPendingElement(a)):($.push(_e[tt]),_e[tt].setAsParent(),et[tt].parent!==void 0?this.buildElementParenting(a,et[tt].parent,$):a.setHierarchy($))),tt+=1},BaseRenderer.prototype.addPendingElement=function(a){this.pendingElements.push(a)},BaseRenderer.prototype.searchExtraCompositions=function(a){var _,$=a.length;for(_=0;_<$;_+=1)if(a[_].xt){var _e=this.createComp(a[_]);_e.initExpressions(),this.globalData.projectInterface.registerComposition(_e)}},BaseRenderer.prototype.getElementById=function(a){var _,$=this.elements.length;for(_=0;_<$;_+=1)if(this.elements[_].data.ind===a)return this.elements[_];return null},BaseRenderer.prototype.getElementByPath=function(a){var _=a.shift(),$;if(typeof _=="number")$=this.elements[_];else{var _e,et=this.elements.length;for(_e=0;_e<et;_e+=1)if(this.elements[_e].data.nm===_){$=this.elements[_e];break}}return a.length===0?$:$.getElementByPath(a)},BaseRenderer.prototype.setupGlobalData=function(a,_){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(a),this.globalData.fontManager.addChars(a.chars),this.globalData.fontManager.addFonts(a.fonts,_),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=a.fr,this.globalData.nm=a.nm,this.globalData.compSize={w:a.w,h:a.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var _=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:_,localMat:_,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 _,$=this.finalTransform.mat,_e=0,et=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;_e<et;){if(this.hierarchy[_e].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}_e+=1}if(this.finalTransform._matMdf)for(_=this.finalTransform.mProp.v.props,$.cloneFromProps(_),_e=0;_e<et;_e+=1)$.multiply(this.hierarchy[_e].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 _=0,$=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;_<$;)this.localTransforms[_]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[_]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),_+=1;if(this.finalTransform._localMatMdf){var _e=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(_e),_=1;_<$;_+=1){var et=this.localTransforms[_].matrix;_e.multiply(et)}_e.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var tt=this.finalTransform.localOpacity;for(_=0;_<$;_+=1)tt*=this.localTransforms[_].opacity*.01;this.finalTransform.localOpacity=tt}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var _=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(_.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var $=0,_e=_.length;for($=0;$<_e;$+=1)this.localTransforms.push(_[$])}}},globalToLocal:function(_){var $=[];$.push(this.finalTransform);for(var _e=!0,et=this.comp;_e;)et.finalTransform?(et.data.hasMask&&$.splice(0,0,et.finalTransform),et=et.comp):_e=!1;var tt,rt=$.length,nt;for(tt=0;tt<rt;tt+=1)nt=$[tt].mat.applyToPointArray(0,0,0),_=[_[0]-nt[0],_[1]-nt[1],0];return _},mHelper:new Matrix};function MaskElement(a,_,$){this.data=a,this.element=_,this.globalData=$,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var _e=this.globalData.defs,et,tt=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(tt),this.solidPath="";var rt,nt=this.masksProperties,it=0,at=[],st,ut,ot=createElementID(),pt,ht,dt,gt,lt="clipPath",ft="clip-path";for(et=0;et<tt;et+=1)if((nt[et].mode!=="a"&&nt[et].mode!=="n"||nt[et].inv||nt[et].o.k!==100||nt[et].o.x)&&(lt="mask",ft="mask"),(nt[et].mode==="s"||nt[et].mode==="i")&&it===0?(pt=createNS("rect"),pt.setAttribute("fill","#ffffff"),pt.setAttribute("width",this.element.comp.data.w||0),pt.setAttribute("height",this.element.comp.data.h||0),at.push(pt)):pt=null,rt=createNS("path"),nt[et].mode==="n")this.viewData[et]={op:PropertyFactory.getProp(this.element,nt[et].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,nt[et],3),elem:rt,lastPath:""},_e.appendChild(rt);else{it+=1,rt.setAttribute("fill",nt[et].mode==="s"?"#000000":"#ffffff"),rt.setAttribute("clip-rule","nonzero");var ct;if(nt[et].x.k!==0?(lt="mask",ft="mask",gt=PropertyFactory.getProp(this.element,nt[et].x,0,null,this.element),ct=createElementID(),ht=createNS("filter"),ht.setAttribute("id",ct),dt=createNS("feMorphology"),dt.setAttribute("operator","erode"),dt.setAttribute("in","SourceGraphic"),dt.setAttribute("radius","0"),ht.appendChild(dt),_e.appendChild(ht),rt.setAttribute("stroke",nt[et].mode==="s"?"#000000":"#ffffff")):(dt=null,gt=null),this.storedData[et]={elem:rt,x:gt,expan:dt,lastPath:"",lastOperator:"",filterId:ct,lastRadius:0},nt[et].mode==="i"){ut=at.length;var mt=createNS("g");for(st=0;st<ut;st+=1)mt.appendChild(at[st]);var yt=createNS("mask");yt.setAttribute("mask-type","alpha"),yt.setAttribute("id",ot+"_"+it),yt.appendChild(rt),_e.appendChild(yt),mt.setAttribute("mask","url("+getLocationHref()+"#"+ot+"_"+it+")"),at.length=0,at.push(mt)}else at.push(rt);nt[et].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[et]={elem:rt,lastPath:"",op:PropertyFactory.getProp(this.element,nt[et].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,nt[et],3),invRect:pt},this.viewData[et].prop.k||this.drawPath(nt[et],this.viewData[et].prop.v,this.viewData[et])}for(this.maskElement=createNS(lt),tt=at.length,et=0;et<tt;et+=1)this.maskElement.appendChild(at[et]);it>0&&(this.maskElement.setAttribute("id",ot),this.element.maskedElement.setAttribute(ft,"url("+getLocationHref()+"#"+ot+")"),_e.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(a){return this.viewData[a].prop},MaskElement.prototype.renderFrame=function(a){var _=this.element.finalTransform.mat,$,_e=this.masksProperties.length;for($=0;$<_e;$+=1)if((this.viewData[$].prop._mdf||a)&&this.drawPath(this.masksProperties[$],this.viewData[$].prop.v,this.viewData[$]),(this.viewData[$].op._mdf||a)&&this.viewData[$].elem.setAttribute("fill-opacity",this.viewData[$].op.v),this.masksProperties[$].mode!=="n"&&(this.viewData[$].invRect&&(this.element.finalTransform.mProp._mdf||a)&&this.viewData[$].invRect.setAttribute("transform",_.getInverseMatrix().to2dCSS()),this.storedData[$].x&&(this.storedData[$].x._mdf||a))){var et=this.storedData[$].expan;this.storedData[$].x.v<0?(this.storedData[$].lastOperator!=="erode"&&(this.storedData[$].lastOperator="erode",this.storedData[$].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[$].filterId+")")),et.setAttribute("radius",-this.storedData[$].x.v)):(this.storedData[$].lastOperator!=="dilate"&&(this.storedData[$].lastOperator="dilate",this.storedData[$].elem.setAttribute("filter",null)),this.storedData[$].elem.setAttribute("stroke-width",this.storedData[$].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var a="M0,0 ";return a+=" h"+this.globalData.compSize.w,a+=" v"+this.globalData.compSize.h,a+=" h-"+this.globalData.compSize.w,a+=" v-"+this.globalData.compSize.h+" ",a},MaskElement.prototype.drawPath=function(a,_,$){var _e=" M"+_.v[0][0]+","+_.v[0][1],et,tt;for(tt=_._length,et=1;et<tt;et+=1)_e+=" C"+_.o[et-1][0]+","+_.o[et-1][1]+" "+_.i[et][0]+","+_.i[et][1]+" "+_.v[et][0]+","+_.v[et][1];if(_.c&&tt>1&&(_e+=" C"+_.o[et-1][0]+","+_.o[et-1][1]+" "+_.i[0][0]+","+_.i[0][1]+" "+_.v[0][0]+","+_.v[0][1]),$.lastPath!==_e){var rt="";$.elem&&(_.c&&(rt=a.inv?this.solidPath+_e:_e),$.elem.setAttribute("d",rt)),$.lastPath=_e}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var a={};a.createFilter=_,a.createAlphaToLuminanceFilter=$;function _(_e,et){var tt=createNS("filter");return tt.setAttribute("id",_e),et!==!0&&(tt.setAttribute("filterUnits","objectBoundingBox"),tt.setAttribute("x","0%"),tt.setAttribute("y","0%"),tt.setAttribute("width","100%"),tt.setAttribute("height","100%")),tt}function $(){var _e=createNS("feColorMatrix");return _e.setAttribute("type","matrix"),_e.setAttribute("color-interpolation-filters","sRGB"),_e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),_e}return a}(),featureSupport=function(){var a={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))&&(a.maskType=!1),/firefox/i.test(navigator.userAgent)&&(a.svgLumaHidden=!1),a}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(a){var _,$="SourceGraphic",_e=a.data.ef?a.data.ef.length:0,et=createElementID(),tt=filtersFactory.createFilter(et,!0),rt=0;this.filters=[];var nt;for(_=0;_<_e;_+=1){nt=null;var it=a.data.ef[_].ty;if(registeredEffects$1[it]){var at=registeredEffects$1[it].effect;nt=new at(tt,a.effectsManager.effectElements[_],a,idPrefix+rt,$),$=idPrefix+rt,registeredEffects$1[it].countsAsEffect&&(rt+=1)}nt&&this.filters.push(nt)}rt&&(a.globalData.defs.appendChild(tt),a.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+et+")")),this.filters.length&&a.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(a){var _,$=this.filters.length;for(_=0;_<$;_+=1)this.filters[_].renderFrame(a)},SVGEffects.prototype.getEffects=function(a){var _,$=this.filters.length,_e=[];for(_=0;_<$;_+=1)this.filters[_].type===a&&_e.push(this.filters[_]);return _e};function registerEffect$1(a,_,$){registeredEffects$1[a]={effect:_,countsAsEffect:$}}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 _=null;if(this.data.td){this.matteMasks={};var $=createNS("g");$.setAttribute("id",this.layerId),$.appendChild(this.layerElement),_=$,this.globalData.defs.appendChild($)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),_=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 _e=createNS("clipPath"),et=createNS("path");et.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var tt=createElementID();if(_e.setAttribute("id",tt),_e.appendChild(et),this.globalData.defs.appendChild(_e),this.checkMasks()){var rt=createNS("g");rt.setAttribute("clip-path","url("+getLocationHref()+"#"+tt+")"),rt.appendChild(this.layerElement),this.transformedElement=rt,_?_.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+tt+")")}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(_){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[_]){var $=this.layerId+"_"+_,_e,et,tt,rt;if(_===1||_===3){var nt=createNS("mask");nt.setAttribute("id",$),nt.setAttribute("mask-type",_===3?"luminance":"alpha"),tt=createNS("use"),tt.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),nt.appendChild(tt),this.globalData.defs.appendChild(nt),!featureSupport.maskType&&_===1&&(nt.setAttribute("mask-type","luminance"),_e=createElementID(),et=filtersFactory.createFilter(_e),this.globalData.defs.appendChild(et),et.appendChild(filtersFactory.createAlphaToLuminanceFilter()),rt=createNS("g"),rt.appendChild(tt),nt.appendChild(rt),rt.setAttribute("filter","url("+getLocationHref()+"#"+_e+")"))}else if(_===2){var it=createNS("mask");it.setAttribute("id",$),it.setAttribute("mask-type","alpha");var at=createNS("g");it.appendChild(at),_e=createElementID(),et=filtersFactory.createFilter(_e);var st=createNS("feComponentTransfer");st.setAttribute("in","SourceGraphic"),et.appendChild(st);var ut=createNS("feFuncA");ut.setAttribute("type","table"),ut.setAttribute("tableValues","1.0 0.0"),st.appendChild(ut),this.globalData.defs.appendChild(et);var ot=createNS("rect");ot.setAttribute("width",this.comp.data.w),ot.setAttribute("height",this.comp.data.h),ot.setAttribute("x","0"),ot.setAttribute("y","0"),ot.setAttribute("fill","#ffffff"),ot.setAttribute("opacity","0"),at.setAttribute("filter","url("+getLocationHref()+"#"+_e+")"),at.appendChild(ot),tt=createNS("use"),tt.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),at.appendChild(tt),featureSupport.maskType||(it.setAttribute("mask-type","luminance"),et.appendChild(filtersFactory.createAlphaToLuminanceFilter()),rt=createNS("g"),at.appendChild(ot),rt.appendChild(this.layerElement),at.appendChild(rt)),this.globalData.defs.appendChild(it)}this.matteMasks[_]=$}return this.matteMasks[_]},setMatte:function(_){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+_+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(_){this.hierarchy=_},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var a={initElement:function($,_e,et){this.initFrame(),this.initBaseData($,_e,et),this.initTransform($,_e,et),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var $=this.baseElement||this.layerElement;$.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var $=this.baseElement||this.layerElement;$.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function($){this._mdf=!1,this.prepareRenderableFrame($),this.prepareProperties($,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(a)],RenderableDOMElement)})();function IImageElement(a,_,$){this.assetData=_.getAssetData(a.refId),this.assetData&&this.assetData.sid&&(this.assetData=_.slotManager.getProp(this.assetData)),this.initElement(a,_,$),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 a=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",a),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(a,_){this.elem=a,this.pos=_}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(_){var $,_e=this.shapeModifiers.length;for($=0;$<_e;$+=1)this.shapeModifiers[$].addShape(_)},isShapeInAnimatedModifiers:function(_){for(var $=0,_e=this.shapeModifiers.length;$<_e;)if(this.shapeModifiers[$].isAnimatedWithShape(_))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var _,$=this.shapes.length;for(_=0;_<$;_+=1)this.shapes[_].sh.reset();$=this.shapeModifiers.length;var _e;for(_=$-1;_>=0&&(_e=this.shapeModifiers[_].processShapes(this._isFirstFrame),!_e);_-=1);}},searchProcessedElement:function(_){for(var $=this.processedElements,_e=0,et=$.length;_e<et;){if($[_e].elem===_)return $[_e].pos;_e+=1}return 0},addProcessedElement:function(_,$){for(var _e=this.processedElements,et=_e.length;et;)if(et-=1,_e[et].elem===_){_e[et].pos=$;return}_e.push(new ProcessedElement(_,$))},prepareFrame:function(_){this.prepareRenderableFrame(_),this.prepareProperties(_,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(a,_,$){this.caches=[],this.styles=[],this.transformers=a,this.lStr="",this.sh=$,this.lvl=_,this._isAnimated=!!$.k;for(var _e=0,et=a.length;_e<et;){if(a[_e].mProps.dynamicProperties.length){this._isAnimated=!0;break}_e+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(a,_){this.data=a,this.type=a.ty,this.d="",this.lvl=_,this._mdf=!1,this.closed=a.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(a,_,$,_e){this.elem=a,this.frameId=-1,this.dataProps=createSizedArray(_.length),this.renderer=$,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",_.length?_.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(_e);var et,tt=_.length||0,rt;for(et=0;et<tt;et+=1)rt=PropertyFactory.getProp(a,_[et].v,0,0,this),this.k=rt.k||this.k,this.dataProps[et]={n:_[et].n,p:rt};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(a){if(!(this.elem.globalData.frameId===this.frameId&&!a)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||a,this._mdf)){var _=0,$=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),_=0;_<$;_+=1)this.dataProps[_].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[_].p.v:this.dashArray[_]=this.dataProps[_].p.v:this.dashoffset[0]=this.dataProps[_].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(a,_,$){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(a,_.o,0,.01,this),this.w=PropertyFactory.getProp(a,_.w,0,null,this),this.d=new DashProperty(a,_.d||{},"svg",this),this.c=PropertyFactory.getProp(a,_.c,1,255,this),this.style=$,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(a,_,$){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(a,_.o,0,.01,this),this.c=PropertyFactory.getProp(a,_.c,1,255,this),this.style=$}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(a,_,$){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.style=$}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(a,_,$){this.data=_,this.c=createTypedArray("uint8c",_.p*4);var _e=_.k.k[0].s?_.k.k[0].s.length-_.p*4:_.k.k.length-_.p*4;this.o=createTypedArray("float32",_e),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=_e,this.initDynamicPropertyContainer($),this.prop=PropertyFactory.getProp(a,_.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(a,_){for(var $=0,_e=this.o.length/2,et;$<_e;){if(et=Math.abs(a[$*4]-a[_*4+$*2]),et>.01)return!1;$+=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 a=0,_=this.data.k.k.length;a<_;){if(!this.comparePoints(this.data.k.k[a].s,this.data.p))return!1;a+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(a){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||a){var _,$=this.data.p*4,_e,et;for(_=0;_<$;_+=1)_e=_%4===0?100:255,et=Math.round(this.prop.v[_]*_e),this.c[_]!==et&&(this.c[_]=et,this._cmdf=!a);if(this.o.length)for($=this.prop.v.length,_=this.data.p*4;_<$;_+=1)_e=_%2===0?100:1,et=_%2===0?Math.round(this.prop.v[_]*100):this.prop.v[_],this.o[_-this.data.p*4]!==et&&(this.o[_-this.data.p*4]=et,this._omdf=!a);this._mdf=!a}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(a,_,$){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.initGradientData(a,_,$)}SVGGradientFillStyleData.prototype.initGradientData=function(a,_,$){this.o=PropertyFactory.getProp(a,_.o,0,.01,this),this.s=PropertyFactory.getProp(a,_.s,1,null,this),this.e=PropertyFactory.getProp(a,_.e,1,null,this),this.h=PropertyFactory.getProp(a,_.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(a,_.a||{k:0},0,degToRads,this),this.g=new GradientProperty(a,_.g,this),this.style=$,this.stops=[],this.setGradientData($.pElem,_),this.setGradientOpacity(_,$),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(a,_){var $=createElementID(),_e=createNS(_.t===1?"linearGradient":"radialGradient");_e.setAttribute("id",$),_e.setAttribute("spreadMethod","pad"),_e.setAttribute("gradientUnits","userSpaceOnUse");var et=[],tt,rt,nt;for(nt=_.g.p*4,rt=0;rt<nt;rt+=4)tt=createNS("stop"),_e.appendChild(tt),et.push(tt);a.setAttribute(_.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+$+")"),this.gf=_e,this.cst=et},SVGGradientFillStyleData.prototype.setGradientOpacity=function(a,_){if(this.g._hasOpacity&&!this.g._collapsable){var $,_e,et,tt=createNS("mask"),rt=createNS("path");tt.appendChild(rt);var nt=createElementID(),it=createElementID();tt.setAttribute("id",it);var at=createNS(a.t===1?"linearGradient":"radialGradient");at.setAttribute("id",nt),at.setAttribute("spreadMethod","pad"),at.setAttribute("gradientUnits","userSpaceOnUse"),et=a.g.k.k[0].s?a.g.k.k[0].s.length:a.g.k.k.length;var st=this.stops;for(_e=a.g.p*4;_e<et;_e+=2)$=createNS("stop"),$.setAttribute("stop-color","rgb(255,255,255)"),at.appendChild($),st.push($);rt.setAttribute(a.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+nt+")"),a.ty==="gs"&&(rt.setAttribute("stroke-linecap",lineCapEnum[a.lc||2]),rt.setAttribute("stroke-linejoin",lineJoinEnum[a.lj||2]),a.lj===1&&rt.setAttribute("stroke-miterlimit",a.ml)),this.of=at,this.ms=tt,this.ost=st,this.maskId=it,_.msElem=rt}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(a,_,$){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(a,_.w,0,null,this),this.d=new DashProperty(a,_.d||{},"svg",this),this.initGradientData(a,_,$),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(a,_,$){this.transform={mProps:a,op:_,container:$},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(_,$,_e,et){if($===0)return"";var tt=_.o,rt=_.i,nt=_.v,it,at=" M"+et.applyToPointStringified(nt[0][0],nt[0][1]);for(it=1;it<$;it+=1)at+=" C"+et.applyToPointStringified(tt[it-1][0],tt[it-1][1])+" "+et.applyToPointStringified(rt[it][0],rt[it][1])+" "+et.applyToPointStringified(nt[it][0],nt[it][1]);return _e&&$&&(at+=" C"+et.applyToPointStringified(tt[it-1][0],tt[it-1][1])+" "+et.applyToPointStringified(rt[0][0],rt[0][1])+" "+et.applyToPointStringified(nt[0][0],nt[0][1]),at+="z"),at},SVGElementsRenderer=function(){var a=new Matrix,_=new Matrix,$={createRenderFunction:_e};function _e(ut){switch(ut.ty){case"fl":return nt;case"gf":return at;case"gs":return it;case"st":return st;case"sh":case"el":case"rc":case"sr":return rt;case"tr":return et;case"no":return tt;default:return null}}function et(ut,ot,pt){(pt||ot.transform.op._mdf)&&ot.transform.container.setAttribute("opacity",ot.transform.op.v),(pt||ot.transform.mProps._mdf)&&ot.transform.container.setAttribute("transform",ot.transform.mProps.v.to2dCSS())}function tt(){}function rt(ut,ot,pt){var ht,dt,gt,lt,ft,ct,mt=ot.styles.length,yt=ot.lvl,Et,St,At,Mt;for(ct=0;ct<mt;ct+=1){if(lt=ot.sh._mdf||pt,ot.styles[ct].lvl<yt){for(St=_.reset(),At=yt-ot.styles[ct].lvl,Mt=ot.transformers.length-1;!lt&&At>0;)lt=ot.transformers[Mt].mProps._mdf||lt,At-=1,Mt-=1;if(lt)for(At=yt-ot.styles[ct].lvl,Mt=ot.transformers.length-1;At>0;)St.multiply(ot.transformers[Mt].mProps.v),At-=1,Mt-=1}else St=a;if(Et=ot.sh.paths,dt=Et._length,lt){for(gt="",ht=0;ht<dt;ht+=1)ft=Et.shapes[ht],ft&&ft._length&&(gt+=buildShapeString(ft,ft._length,ft.c,St));ot.caches[ct]=gt}else gt=ot.caches[ct];ot.styles[ct].d+=ut.hd===!0?"":gt,ot.styles[ct]._mdf=lt||ot.styles[ct]._mdf}}function nt(ut,ot,pt){var ht=ot.style;(ot.c._mdf||pt)&&ht.pElem.setAttribute("fill","rgb("+bmFloor(ot.c.v[0])+","+bmFloor(ot.c.v[1])+","+bmFloor(ot.c.v[2])+")"),(ot.o._mdf||pt)&&ht.pElem.setAttribute("fill-opacity",ot.o.v)}function it(ut,ot,pt){at(ut,ot,pt),st(ut,ot,pt)}function at(ut,ot,pt){var ht=ot.gf,dt=ot.g._hasOpacity,gt=ot.s.v,lt=ot.e.v;if(ot.o._mdf||pt){var ft=ut.ty==="gf"?"fill-opacity":"stroke-opacity";ot.style.pElem.setAttribute(ft,ot.o.v)}if(ot.s._mdf||pt){var ct=ut.t===1?"x1":"cx",mt=ct==="x1"?"y1":"cy";ht.setAttribute(ct,gt[0]),ht.setAttribute(mt,gt[1]),dt&&!ot.g._collapsable&&(ot.of.setAttribute(ct,gt[0]),ot.of.setAttribute(mt,gt[1]))}var yt,Et,St,At;if(ot.g._cmdf||pt){yt=ot.cst;var Mt=ot.g.c;for(St=yt.length,Et=0;Et<St;Et+=1)At=yt[Et],At.setAttribute("offset",Mt[Et*4]+"%"),At.setAttribute("stop-color","rgb("+Mt[Et*4+1]+","+Mt[Et*4+2]+","+Mt[Et*4+3]+")")}if(dt&&(ot.g._omdf||pt)){var Nt=ot.g.o;for(ot.g._collapsable?yt=ot.cst:yt=ot.ost,St=yt.length,Et=0;Et<St;Et+=1)At=yt[Et],ot.g._collapsable||At.setAttribute("offset",Nt[Et*2]+"%"),At.setAttribute("stop-opacity",Nt[Et*2+1])}if(ut.t===1)(ot.e._mdf||pt)&&(ht.setAttribute("x2",lt[0]),ht.setAttribute("y2",lt[1]),dt&&!ot.g._collapsable&&(ot.of.setAttribute("x2",lt[0]),ot.of.setAttribute("y2",lt[1])));else{var kt;if((ot.s._mdf||ot.e._mdf||pt)&&(kt=Math.sqrt(Math.pow(gt[0]-lt[0],2)+Math.pow(gt[1]-lt[1],2)),ht.setAttribute("r",kt),dt&&!ot.g._collapsable&&ot.of.setAttribute("r",kt)),ot.s._mdf||ot.e._mdf||ot.h._mdf||ot.a._mdf||pt){kt||(kt=Math.sqrt(Math.pow(gt[0]-lt[0],2)+Math.pow(gt[1]-lt[1],2)));var Pt=Math.atan2(lt[1]-gt[1],lt[0]-gt[0]),Dt=ot.h.v;Dt>=1?Dt=.99:Dt<=-1&&(Dt=-.99);var Ot=kt*Dt,wt=Math.cos(Pt+ot.a.v)*Ot+gt[0],_t=Math.sin(Pt+ot.a.v)*Ot+gt[1];ht.setAttribute("fx",wt),ht.setAttribute("fy",_t),dt&&!ot.g._collapsable&&(ot.of.setAttribute("fx",wt),ot.of.setAttribute("fy",_t))}}}function st(ut,ot,pt){var ht=ot.style,dt=ot.d;dt&&(dt._mdf||pt)&&dt.dashStr&&(ht.pElem.setAttribute("stroke-dasharray",dt.dashStr),ht.pElem.setAttribute("stroke-dashoffset",dt.dashoffset[0])),ot.c&&(ot.c._mdf||pt)&&ht.pElem.setAttribute("stroke","rgb("+bmFloor(ot.c.v[0])+","+bmFloor(ot.c.v[1])+","+bmFloor(ot.c.v[2])+")"),(ot.o._mdf||pt)&&ht.pElem.setAttribute("stroke-opacity",ot.o.v),(ot.w._mdf||pt)&&(ht.pElem.setAttribute("stroke-width",ot.w.v),ht.msElem&&ht.msElem.setAttribute("stroke-width",ot.w.v))}return $}();function SVGShapeElement(a,_,$){this.shapes=[],this.shapesData=a.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(a,_,$),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 a,_=this.shapes.length,$,_e,et=this.stylesList.length,tt,rt=[],nt=!1;for(_e=0;_e<et;_e+=1){for(tt=this.stylesList[_e],nt=!1,rt.length=0,a=0;a<_;a+=1)$=this.shapes[a],$.styles.indexOf(tt)!==-1&&(rt.push($),nt=$._isAnimated||nt);rt.length>1&&nt&&this.setShapesAsAnimated(rt)}},SVGShapeElement.prototype.setShapesAsAnimated=function(a){var _,$=a.length;for(_=0;_<$;_+=1)a[_].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(a,_){var $,_e=new SVGStyleData(a,_),et=_e.pElem;if(a.ty==="st")$=new SVGStrokeStyleData(this,a,_e);else if(a.ty==="fl")$=new SVGFillStyleData(this,a,_e);else if(a.ty==="gf"||a.ty==="gs"){var tt=a.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;$=new tt(this,a,_e),this.globalData.defs.appendChild($.gf),$.maskId&&(this.globalData.defs.appendChild($.ms),this.globalData.defs.appendChild($.of),et.setAttribute("mask","url("+getLocationHref()+"#"+$.maskId+")"))}else a.ty==="no"&&($=new SVGNoStyleData(this,a,_e));return(a.ty==="st"||a.ty==="gs")&&(et.setAttribute("stroke-linecap",lineCapEnum[a.lc||2]),et.setAttribute("stroke-linejoin",lineJoinEnum[a.lj||2]),et.setAttribute("fill-opacity","0"),a.lj===1&&et.setAttribute("stroke-miterlimit",a.ml)),a.r===2&&et.setAttribute("fill-rule","evenodd"),a.ln&&et.setAttribute("id",a.ln),a.cl&&et.setAttribute("class",a.cl),a.bm&&(et.style["mix-blend-mode"]=getBlendMode(a.bm)),this.stylesList.push(_e),this.addToAnimatedContents(a,$),$},SVGShapeElement.prototype.createGroupElement=function(a){var _=new ShapeGroupData;return a.ln&&_.gr.setAttribute("id",a.ln),a.cl&&_.gr.setAttribute("class",a.cl),a.bm&&(_.gr.style["mix-blend-mode"]=getBlendMode(a.bm)),_},SVGShapeElement.prototype.createTransformElement=function(a,_){var $=TransformPropertyFactory.getTransformProperty(this,a,this),_e=new SVGTransformData($,$.o,_);return this.addToAnimatedContents(a,_e),_e},SVGShapeElement.prototype.createShapeElement=function(a,_,$){var _e=4;a.ty==="rc"?_e=5:a.ty==="el"?_e=6:a.ty==="sr"&&(_e=7);var et=ShapePropertyFactory.getShapeProp(this,a,_e,this),tt=new SVGShapeData(_,$,et);return this.shapes.push(tt),this.addShapeToModifiers(tt),this.addToAnimatedContents(a,tt),tt},SVGShapeElement.prototype.addToAnimatedContents=function(a,_){for(var $=0,_e=this.animatedContents.length;$<_e;){if(this.animatedContents[$].element===_)return;$+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(a),element:_,data:a})},SVGShapeElement.prototype.setElementStyles=function(a){var _=a.styles,$,_e=this.stylesList.length;for($=0;$<_e;$+=1)_.indexOf(this.stylesList[$])===-1&&!this.stylesList[$].closed&&_.push(this.stylesList[$])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var a,_=this.itemsData.length;for(a=0;a<_;a+=1)this.prevViewData[a]=this.itemsData[a];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),_=this.dynamicProperties.length,a=0;a<_;a+=1)this.dynamicProperties[a].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(a,_,$,_e,et,tt,rt){var nt=[].concat(tt),it,at=a.length-1,st,ut,ot=[],pt=[],ht,dt,gt;for(it=at;it>=0;it-=1){if(gt=this.searchProcessedElement(a[it]),gt?_[it]=$[gt-1]:a[it]._render=rt,a[it].ty==="fl"||a[it].ty==="st"||a[it].ty==="gf"||a[it].ty==="gs"||a[it].ty==="no")gt?_[it].style.closed=a[it].hd:_[it]=this.createStyleElement(a[it],et),a[it]._render&&_[it].style.pElem.parentNode!==_e&&_e.appendChild(_[it].style.pElem),ot.push(_[it].style);else if(a[it].ty==="gr"){if(!gt)_[it]=this.createGroupElement(a[it]);else for(ut=_[it].it.length,st=0;st<ut;st+=1)_[it].prevViewData[st]=_[it].it[st];this.searchShapes(a[it].it,_[it].it,_[it].prevViewData,_[it].gr,et+1,nt,rt),a[it]._render&&_[it].gr.parentNode!==_e&&_e.appendChild(_[it].gr)}else a[it].ty==="tr"?(gt||(_[it]=this.createTransformElement(a[it],_e)),ht=_[it].transform,nt.push(ht)):a[it].ty==="sh"||a[it].ty==="rc"||a[it].ty==="el"||a[it].ty==="sr"?(gt||(_[it]=this.createShapeElement(a[it],nt,et)),this.setElementStyles(_[it])):a[it].ty==="tm"||a[it].ty==="rd"||a[it].ty==="ms"||a[it].ty==="pb"||a[it].ty==="zz"||a[it].ty==="op"?(gt?(dt=_[it],dt.closed=!1):(dt=ShapeModifiers.getModifier(a[it].ty),dt.init(this,a[it]),_[it]=dt,this.shapeModifiers.push(dt)),pt.push(dt)):a[it].ty==="rp"&&(gt?(dt=_[it],dt.closed=!0):(dt=ShapeModifiers.getModifier(a[it].ty),_[it]=dt,dt.init(this,a,it,_),this.shapeModifiers.push(dt),rt=!1),pt.push(dt));this.addProcessedElement(a[it],it+1)}for(at=ot.length,it=0;it<at;it+=1)ot[it].closed=!0;for(at=pt.length,it=0;it<at;it+=1)pt[it].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var a,_=this.stylesList.length;for(a=0;a<_;a+=1)this.stylesList[a].reset();for(this.renderShape(),a=0;a<_;a+=1)(this.stylesList[a]._mdf||this._isFirstFrame)&&(this.stylesList[a].msElem&&(this.stylesList[a].msElem.setAttribute("d",this.stylesList[a].d),this.stylesList[a].d="M0 0"+this.stylesList[a].d),this.stylesList[a].pElem.setAttribute("d",this.stylesList[a].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var a,_=this.animatedContents.length,$;for(a=0;a<_;a+=1)$=this.animatedContents[a],(this._isFirstFrame||$.element._isAnimated)&&$.data!==!0&&$.fn($.data,$.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(a,_,$,_e,et,tt){this.o=a,this.sw=_,this.sc=$,this.fc=_e,this.m=et,this.p=tt,this._mdf={o:!0,sw:!!_,sc:!!$,fc:!!_e,m:!0,p:!0}}LetterProps.prototype.update=function(a,_,$,_e,et,tt){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 rt=!1;return this.o!==a&&(this.o=a,this._mdf.o=!0,rt=!0),this.sw!==_&&(this.sw=_,this._mdf.sw=!0,rt=!0),this.sc!==$&&(this.sc=$,this._mdf.sc=!0,rt=!0),this.fc!==_e&&(this.fc=_e,this._mdf.fc=!0,rt=!0),this.m!==et&&(this.m=et,this._mdf.m=!0,rt=!0),tt.length&&(this.p[0]!==tt[0]||this.p[1]!==tt[1]||this.p[4]!==tt[4]||this.p[5]!==tt[5]||this.p[12]!==tt[12]||this.p[13]!==tt[13])&&(this.p=tt,this._mdf.p=!0,rt=!0),rt};function TextProperty(a,_){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,_.d&&_.d.sid&&(_.d=a.globalData.slotManager.getProp(_.d)),this.data=_,this.elem=a,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(a,_){for(var $ in _)Object.prototype.hasOwnProperty.call(_,$)&&(a[$]=_[$]);return a},TextProperty.prototype.setCurrentData=function(a){a.__complete||this.completeTextData(a),this.currentData=a,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(a){this.effectsSequence.push(a),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(a){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!a)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var _=this.currentData,$=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var _e,et=this.effectsSequence.length,tt=a||this.data.d.k[this.keysIndex].s;for(_e=0;_e<et;_e+=1)$!==this.keysIndex?tt=this.effectsSequence[_e](tt,tt.t):tt=this.effectsSequence[_e](this.currentData,tt.t);_!==tt&&this.setCurrentData(tt),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var a=this.data.d.k,_=this.elem.comp.renderedFrame,$=0,_e=a.length;$<=_e-1&&!($===_e-1||a[$+1].t>_);)$+=1;return this.keysIndex!==$&&(this.keysIndex=$),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(a){for(var _=[],$=0,_e=a.length,et,tt,rt=!1,nt=!1,it="";$<_e;)rt=nt,nt=!1,et=a.charCodeAt($),it=a.charAt($),FontManager.isCombinedCharacter(et)?rt=!0:et>=55296&&et<=56319?FontManager.isRegionalFlag(a,$)?it=a.substr($,14):(tt=a.charCodeAt($+1),tt>=56320&&tt<=57343&&(FontManager.isModifier(et,tt)?(it=a.substr($,2),rt=!0):FontManager.isFlagEmoji(a.substr($,4))?it=a.substr($,4):it=a.substr($,2))):et>56319?(tt=a.charCodeAt($+1),FontManager.isVariationSelector(et)&&(rt=!0)):FontManager.isZeroWidthJoiner(et)&&(rt=!0,nt=!0),rt?(_[_.length-1]+=it,rt=!1):_.push(it),$+=it.length;return _},TextProperty.prototype.completeTextData=function(a){a.__complete=!0;var _=this.elem.globalData.fontManager,$=this.data,_e=[],et,tt,rt,nt=0,it,at=$.m.g,st=0,ut=0,ot=0,pt=[],ht=0,dt=0,gt,lt,ft=_.getFontByName(a.f),ct,mt=0,yt=getFontProperties(ft);a.fWeight=yt.weight,a.fStyle=yt.style,a.finalSize=a.s,a.finalText=this.buildFinalText(a.t),tt=a.finalText.length,a.finalLineHeight=a.lh;var Et=a.tr/1e3*a.finalSize,St;if(a.sz)for(var At=!0,Mt=a.sz[0],Nt=a.sz[1],kt,Pt;At;){Pt=this.buildFinalText(a.t),kt=0,ht=0,tt=Pt.length,Et=a.tr/1e3*a.finalSize;var Dt=-1;for(et=0;et<tt;et+=1)St=Pt[et].charCodeAt(0),rt=!1,Pt[et]===" "?Dt=et:(St===13||St===3)&&(ht=0,rt=!0,kt+=a.finalLineHeight||a.finalSize*1.2),_.chars?(ct=_.getCharData(Pt[et],ft.fStyle,ft.fFamily),mt=rt?0:ct.w*a.finalSize/100):mt=_.measureText(Pt[et],a.f,a.finalSize),ht+mt>Mt&&Pt[et]!==" "?(Dt===-1?tt+=1:et=Dt,kt+=a.finalLineHeight||a.finalSize*1.2,Pt.splice(et,Dt===et?1:0,"\r"),Dt=-1,ht=0):(ht+=mt,ht+=Et);kt+=ft.ascent*a.finalSize/100,this.canResize&&a.finalSize>this.minimumFontSize&&Nt<kt?(a.finalSize-=1,a.finalLineHeight=a.finalSize*a.lh/a.s):(a.finalText=Pt,tt=a.finalText.length,At=!1)}ht=-Et,mt=0;var Ot=0,wt;for(et=0;et<tt;et+=1)if(rt=!1,wt=a.finalText[et],St=wt.charCodeAt(0),St===13||St===3?(Ot=0,pt.push(ht),dt=ht>dt?ht:dt,ht=-2*Et,it="",rt=!0,ot+=1):it=wt,_.chars?(ct=_.getCharData(wt,ft.fStyle,_.getFontByName(a.f).fFamily),mt=rt?0:ct.w*a.finalSize/100):mt=_.measureText(it,a.f,a.finalSize),wt===" "?Ot+=mt+Et:(ht+=mt+Et+Ot,Ot=0),_e.push({l:mt,an:mt,add:st,n:rt,anIndexes:[],val:it,line:ot,animatorJustifyOffset:0}),at==2){if(st+=mt,it===""||it===" "||et===tt-1){for((it===""||it===" ")&&(st-=mt);ut<=et;)_e[ut].an=st,_e[ut].ind=nt,_e[ut].extra=mt,ut+=1;nt+=1,st=0}}else if(at==3){if(st+=mt,it===""||et===tt-1){for(it===""&&(st-=mt);ut<=et;)_e[ut].an=st,_e[ut].ind=nt,_e[ut].extra=mt,ut+=1;st=0,nt+=1}}else _e[nt].ind=nt,_e[nt].extra=0,nt+=1;if(a.l=_e,dt=ht>dt?ht:dt,pt.push(ht),a.sz)a.boxWidth=a.sz[0],a.justifyOffset=0;else switch(a.boxWidth=dt,a.j){case 1:a.justifyOffset=-a.boxWidth;break;case 2:a.justifyOffset=-a.boxWidth/2;break;default:a.justifyOffset=0}a.lineWidths=pt;var _t=$.a,bt,vt;lt=_t.length;var xt,Ct,Tt=[];for(gt=0;gt<lt;gt+=1){for(bt=_t[gt],bt.a.sc&&(a.strokeColorAnim=!0),bt.a.sw&&(a.strokeWidthAnim=!0),(bt.a.fc||bt.a.fh||bt.a.fs||bt.a.fb)&&(a.fillColorAnim=!0),Ct=0,xt=bt.s.b,et=0;et<tt;et+=1)vt=_e[et],vt.anIndexes[gt]=Ct,(xt==1&&vt.val!==""||xt==2&&vt.val!==""&&vt.val!==" "||xt==3&&(vt.n||vt.val==" "||et==tt-1)||xt==4&&(vt.n||et==tt-1))&&(bt.s.rn===1&&Tt.push(Ct),Ct+=1);$.a[gt].s.totalChars=Ct;var It=-1,Rt;if(bt.s.rn===1)for(et=0;et<tt;et+=1)vt=_e[et],It!=vt.anIndexes[gt]&&(It=vt.anIndexes[gt],Rt=Tt.splice(Math.floor(Math.random()*Tt.length),1)[0]),vt.anIndexes[gt]=Rt}a.yOffset=a.finalLineHeight||a.finalSize*1.2,a.ls=a.ls||0,a.ascent=ft.ascent*a.finalSize/100},TextProperty.prototype.updateDocumentData=function(a,_){_=_===void 0?this.keysIndex:_;var $=this.copyData({},this.data.d.k[_].s);$=this.copyData($,a),this.data.d.k[_].s=$,this.recalculate(_),this.setCurrentData($),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(a){var _=this.data.d.k[a].s;_.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(_)},TextProperty.prototype.canResizeFont=function(a){this.canResize=a,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(a){this.minimumFontSize=Math.floor(a)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var a=Math.max,_=Math.min,$=Math.floor;function _e(tt,rt){this._currentTextLength=-1,this.k=!1,this.data=rt,this.elem=tt,this.comp=tt.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(tt),this.s=PropertyFactory.getProp(tt,rt.s||{k:0},0,0,this),"e"in rt?this.e=PropertyFactory.getProp(tt,rt.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(tt,rt.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(tt,rt.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(tt,rt.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(tt,rt.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(tt,rt.a,0,.01,this),this.dynamicProperties.length||this.getValue()}_e.prototype={getMult:function(rt){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var nt=0,it=0,at=1,st=1;this.ne.v>0?nt=this.ne.v/100:it=-this.ne.v/100,this.xe.v>0?at=1-this.xe.v/100:st=1+this.xe.v/100;var ut=BezierFactory.getBezierEasing(nt,it,at,st).get,ot=0,pt=this.finalS,ht=this.finalE,dt=this.data.sh;if(dt===2)ht===pt?ot=rt>=ht?1:0:ot=a(0,_(.5/(ht-pt)+(rt-pt)/(ht-pt),1)),ot=ut(ot);else if(dt===3)ht===pt?ot=rt>=ht?0:1:ot=1-a(0,_(.5/(ht-pt)+(rt-pt)/(ht-pt),1)),ot=ut(ot);else if(dt===4)ht===pt?ot=0:(ot=a(0,_(.5/(ht-pt)+(rt-pt)/(ht-pt),1)),ot<.5?ot*=2:ot=1-2*(ot-.5)),ot=ut(ot);else if(dt===5){if(ht===pt)ot=0;else{var gt=ht-pt;rt=_(a(0,rt+.5-pt),ht-pt);var lt=-gt/2+rt,ft=gt/2;ot=Math.sqrt(1-lt*lt/(ft*ft))}ot=ut(ot)}else dt===6?(ht===pt?ot=0:(rt=_(a(0,rt+.5-pt),ht-pt),ot=(1+Math.cos(Math.PI+Math.PI*2*rt/(ht-pt)))/2),ot=ut(ot)):(rt>=$(pt)&&(rt-pt<0?ot=a(0,_(_(ht,1)-(pt-rt),1)):ot=a(0,_(ht-rt,1))),ot=ut(ot));if(this.sm.v!==100){var ct=this.sm.v*.01;ct===0&&(ct=1e-8);var mt=.5-ct*.5;ot<mt?ot=0:(ot=(ot-mt)/ct,ot>1&&(ot=1))}return ot*this.a.v},getValue:function(rt){this.iterateDynamicProperties(),this._mdf=rt||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,rt&&this.data.r===2&&(this.e.v=this._currentTextLength);var nt=this.data.r===2?1:100/this.data.totalChars,it=this.o.v/nt,at=this.s.v/nt+it,st=this.e.v/nt+it;if(at>st){var ut=at;at=st,st=ut}this.finalS=at,this.finalE=st}},extendPrototype([DynamicPropertyContainer],_e);function et(tt,rt,nt){return new _e(tt,rt)}return{getTextSelectorProp:et}}();function TextAnimatorDataProperty(a,_,$){var _e={propType:!1},et=PropertyFactory.getProp,tt=_.a;this.a={r:tt.r?et(a,tt.r,0,degToRads,$):_e,rx:tt.rx?et(a,tt.rx,0,degToRads,$):_e,ry:tt.ry?et(a,tt.ry,0,degToRads,$):_e,sk:tt.sk?et(a,tt.sk,0,degToRads,$):_e,sa:tt.sa?et(a,tt.sa,0,degToRads,$):_e,s:tt.s?et(a,tt.s,1,.01,$):_e,a:tt.a?et(a,tt.a,1,0,$):_e,o:tt.o?et(a,tt.o,0,.01,$):_e,p:tt.p?et(a,tt.p,1,0,$):_e,sw:tt.sw?et(a,tt.sw,0,0,$):_e,sc:tt.sc?et(a,tt.sc,1,0,$):_e,fc:tt.fc?et(a,tt.fc,1,0,$):_e,fh:tt.fh?et(a,tt.fh,0,0,$):_e,fs:tt.fs?et(a,tt.fs,0,.01,$):_e,fb:tt.fb?et(a,tt.fb,0,.01,$):_e,t:tt.t?et(a,tt.t,0,0,$):_e},this.s=TextSelectorProp.getTextSelectorProp(a,_.s,$),this.s.t=_.s.t}function TextAnimatorProperty(a,_,$){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=a,this._renderType=_,this._elem=$,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer($)}TextAnimatorProperty.prototype.searchProperties=function(){var a,_=this._textData.a.length,$,_e=PropertyFactory.getProp;for(a=0;a<_;a+=1)$=this._textData.a[a],this._animatorsData[a]=new TextAnimatorDataProperty(this._elem,$,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:_e(this._elem,this._textData.p.a,0,0,this),f:_e(this._elem,this._textData.p.f,0,0,this),l:_e(this._elem,this._textData.p.l,0,0,this),r:_e(this._elem,this._textData.p.r,0,0,this),p:_e(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=_e(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(a,_){if(this.lettersChangedFlag=_,!(!this._mdf&&!this._isFirstFrame&&!_&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var $=this._moreOptions.alignment.v,_e=this._animatorsData,et=this._textData,tt=this.mHelper,rt=this._renderType,nt=this.renderedLetters.length,it,at,st,ut,ot=a.l,pt,ht,dt,gt,lt,ft,ct,mt,yt,Et,St,At,Mt,Nt,kt;if(this._hasMaskedPath){if(kt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Pt=kt.v;this._pathData.r.v&&(Pt=Pt.reverse()),pt={tLength:0,segments:[]},ut=Pt._length-1;var Dt;for(At=0,st=0;st<ut;st+=1)Dt=bez.buildBezierData(Pt.v[st],Pt.v[st+1],[Pt.o[st][0]-Pt.v[st][0],Pt.o[st][1]-Pt.v[st][1]],[Pt.i[st+1][0]-Pt.v[st+1][0],Pt.i[st+1][1]-Pt.v[st+1][1]]),pt.tLength+=Dt.segmentLength,pt.segments.push(Dt),At+=Dt.segmentLength;st=ut,kt.v.c&&(Dt=bez.buildBezierData(Pt.v[st],Pt.v[0],[Pt.o[st][0]-Pt.v[st][0],Pt.o[st][1]-Pt.v[st][1]],[Pt.i[0][0]-Pt.v[0][0],Pt.i[0][1]-Pt.v[0][1]]),pt.tLength+=Dt.segmentLength,pt.segments.push(Dt),At+=Dt.segmentLength),this._pathData.pi=pt}if(pt=this._pathData.pi,ht=this._pathData.f.v,ct=0,ft=1,gt=0,lt=!0,Et=pt.segments,ht<0&&kt.v.c)for(pt.tLength<Math.abs(ht)&&(ht=-Math.abs(ht)%pt.tLength),ct=Et.length-1,yt=Et[ct].points,ft=yt.length-1;ht<0;)ht+=yt[ft].partialLength,ft-=1,ft<0&&(ct-=1,yt=Et[ct].points,ft=yt.length-1);yt=Et[ct].points,mt=yt[ft-1],dt=yt[ft],St=dt.partialLength}ut=ot.length,it=0,at=0;var Ot=a.finalSize*1.2*.714,wt=!0,_t,bt,vt,xt,Ct;xt=_e.length;var Tt,It=-1,Rt,Lt,Ht,jt=ht,Qt=ct,$t=ft,Bt=-1,Vt,Kt,qt,Yt,Gt,Xt,er,dr,ir="",rr=this.defaultPropsArray,Ut;if(a.j===2||a.j===1){var zt=0,sr=0,lr=a.j===2?-.5:-1,vr=0,Wt=!0;for(st=0;st<ut;st+=1)if(ot[st].n){for(zt&&(zt+=sr);vr<st;)ot[vr].animatorJustifyOffset=zt,vr+=1;zt=0,Wt=!0}else{for(vt=0;vt<xt;vt+=1)_t=_e[vt].a,_t.t.propType&&(Wt&&a.j===2&&(sr+=_t.t.v*lr),bt=_e[vt].s,Tt=bt.getMult(ot[st].anIndexes[vt],et.a[vt].s.totalChars),Tt.length?zt+=_t.t.v*Tt[0]*lr:zt+=_t.t.v*Tt*lr);Wt=!1}for(zt&&(zt+=sr);vr<st;)ot[vr].animatorJustifyOffset=zt,vr+=1}for(st=0;st<ut;st+=1){if(tt.reset(),Vt=1,ot[st].n)it=0,at+=a.yOffset,at+=wt?1:0,ht=jt,wt=!1,this._hasMaskedPath&&(ct=Qt,ft=$t,yt=Et[ct].points,mt=yt[ft-1],dt=yt[ft],St=dt.partialLength,gt=0),ir="",dr="",Xt="",Ut="",rr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Bt!==ot[st].line){switch(a.j){case 1:ht+=At-a.lineWidths[ot[st].line];break;case 2:ht+=(At-a.lineWidths[ot[st].line])/2;break}Bt=ot[st].line}It!==ot[st].ind&&(ot[It]&&(ht+=ot[It].extra),ht+=ot[st].an/2,It=ot[st].ind),ht+=$[0]*ot[st].an*.005;var Zt=0;for(vt=0;vt<xt;vt+=1)_t=_e[vt].a,_t.p.propType&&(bt=_e[vt].s,Tt=bt.getMult(ot[st].anIndexes[vt],et.a[vt].s.totalChars),Tt.length?Zt+=_t.p.v[0]*Tt[0]:Zt+=_t.p.v[0]*Tt),_t.a.propType&&(bt=_e[vt].s,Tt=bt.getMult(ot[st].anIndexes[vt],et.a[vt].s.totalChars),Tt.length?Zt+=_t.a.v[0]*Tt[0]:Zt+=_t.a.v[0]*Tt);for(lt=!0,this._pathData.a.v&&(ht=ot[0].an*.5+(At-this._pathData.f.v-ot[0].an*.5-ot[ot.length-1].an*.5)*It/(ut-1),ht+=this._pathData.f.v);lt;)gt+St>=ht+Zt||!yt?(Mt=(ht+Zt-gt)/dt.partialLength,Lt=mt.point[0]+(dt.point[0]-mt.point[0])*Mt,Ht=mt.point[1]+(dt.point[1]-mt.point[1])*Mt,tt.translate(-$[0]*ot[st].an*.005,-($[1]*Ot)*.01),lt=!1):yt&&(gt+=dt.partialLength,ft+=1,ft>=yt.length&&(ft=0,ct+=1,Et[ct]?yt=Et[ct].points:kt.v.c?(ft=0,ct=0,yt=Et[ct].points):(gt-=dt.partialLength,yt=null)),yt&&(mt=dt,dt=yt[ft],St=dt.partialLength));Rt=ot[st].an/2-ot[st].add,tt.translate(-Rt,0,0)}else Rt=ot[st].an/2-ot[st].add,tt.translate(-Rt,0,0),tt.translate(-$[0]*ot[st].an*.005,-$[1]*Ot*.01,0);for(vt=0;vt<xt;vt+=1)_t=_e[vt].a,_t.t.propType&&(bt=_e[vt].s,Tt=bt.getMult(ot[st].anIndexes[vt],et.a[vt].s.totalChars),(it!==0||a.j!==0)&&(this._hasMaskedPath?Tt.length?ht+=_t.t.v*Tt[0]:ht+=_t.t.v*Tt:Tt.length?it+=_t.t.v*Tt[0]:it+=_t.t.v*Tt));for(a.strokeWidthAnim&&(qt=a.sw||0),a.strokeColorAnim&&(a.sc?Kt=[a.sc[0],a.sc[1],a.sc[2]]:Kt=[0,0,0]),a.fillColorAnim&&a.fc&&(Yt=[a.fc[0],a.fc[1],a.fc[2]]),vt=0;vt<xt;vt+=1)_t=_e[vt].a,_t.a.propType&&(bt=_e[vt].s,Tt=bt.getMult(ot[st].anIndexes[vt],et.a[vt].s.totalChars),Tt.length?tt.translate(-_t.a.v[0]*Tt[0],-_t.a.v[1]*Tt[1],_t.a.v[2]*Tt[2]):tt.translate(-_t.a.v[0]*Tt,-_t.a.v[1]*Tt,_t.a.v[2]*Tt));for(vt=0;vt<xt;vt+=1)_t=_e[vt].a,_t.s.propType&&(bt=_e[vt].s,Tt=bt.getMult(ot[st].anIndexes[vt],et.a[vt].s.totalChars),Tt.length?tt.scale(1+(_t.s.v[0]-1)*Tt[0],1+(_t.s.v[1]-1)*Tt[1],1):tt.scale(1+(_t.s.v[0]-1)*Tt,1+(_t.s.v[1]-1)*Tt,1));for(vt=0;vt<xt;vt+=1){if(_t=_e[vt].a,bt=_e[vt].s,Tt=bt.getMult(ot[st].anIndexes[vt],et.a[vt].s.totalChars),_t.sk.propType&&(Tt.length?tt.skewFromAxis(-_t.sk.v*Tt[0],_t.sa.v*Tt[1]):tt.skewFromAxis(-_t.sk.v*Tt,_t.sa.v*Tt)),_t.r.propType&&(Tt.length?tt.rotateZ(-_t.r.v*Tt[2]):tt.rotateZ(-_t.r.v*Tt)),_t.ry.propType&&(Tt.length?tt.rotateY(_t.ry.v*Tt[1]):tt.rotateY(_t.ry.v*Tt)),_t.rx.propType&&(Tt.length?tt.rotateX(_t.rx.v*Tt[0]):tt.rotateX(_t.rx.v*Tt)),_t.o.propType&&(Tt.length?Vt+=(_t.o.v*Tt[0]-Vt)*Tt[0]:Vt+=(_t.o.v*Tt-Vt)*Tt),a.strokeWidthAnim&&_t.sw.propType&&(Tt.length?qt+=_t.sw.v*Tt[0]:qt+=_t.sw.v*Tt),a.strokeColorAnim&&_t.sc.propType)for(Gt=0;Gt<3;Gt+=1)Tt.length?Kt[Gt]+=(_t.sc.v[Gt]-Kt[Gt])*Tt[0]:Kt[Gt]+=(_t.sc.v[Gt]-Kt[Gt])*Tt;if(a.fillColorAnim&&a.fc){if(_t.fc.propType)for(Gt=0;Gt<3;Gt+=1)Tt.length?Yt[Gt]+=(_t.fc.v[Gt]-Yt[Gt])*Tt[0]:Yt[Gt]+=(_t.fc.v[Gt]-Yt[Gt])*Tt;_t.fh.propType&&(Tt.length?Yt=addHueToRGB(Yt,_t.fh.v*Tt[0]):Yt=addHueToRGB(Yt,_t.fh.v*Tt)),_t.fs.propType&&(Tt.length?Yt=addSaturationToRGB(Yt,_t.fs.v*Tt[0]):Yt=addSaturationToRGB(Yt,_t.fs.v*Tt)),_t.fb.propType&&(Tt.length?Yt=addBrightnessToRGB(Yt,_t.fb.v*Tt[0]):Yt=addBrightnessToRGB(Yt,_t.fb.v*Tt))}}for(vt=0;vt<xt;vt+=1)_t=_e[vt].a,_t.p.propType&&(bt=_e[vt].s,Tt=bt.getMult(ot[st].anIndexes[vt],et.a[vt].s.totalChars),this._hasMaskedPath?Tt.length?tt.translate(0,_t.p.v[1]*Tt[0],-_t.p.v[2]*Tt[1]):tt.translate(0,_t.p.v[1]*Tt,-_t.p.v[2]*Tt):Tt.length?tt.translate(_t.p.v[0]*Tt[0],_t.p.v[1]*Tt[1],-_t.p.v[2]*Tt[2]):tt.translate(_t.p.v[0]*Tt,_t.p.v[1]*Tt,-_t.p.v[2]*Tt));if(a.strokeWidthAnim&&(Xt=qt<0?0:qt),a.strokeColorAnim&&(er="rgb("+Math.round(Kt[0]*255)+","+Math.round(Kt[1]*255)+","+Math.round(Kt[2]*255)+")"),a.fillColorAnim&&a.fc&&(dr="rgb("+Math.round(Yt[0]*255)+","+Math.round(Yt[1]*255)+","+Math.round(Yt[2]*255)+")"),this._hasMaskedPath){if(tt.translate(0,-a.ls),tt.translate(0,$[1]*Ot*.01+at,0),this._pathData.p.v){Nt=(dt.point[1]-mt.point[1])/(dt.point[0]-mt.point[0]);var mr=Math.atan(Nt)*180/Math.PI;dt.point[0]<mt.point[0]&&(mr+=180),tt.rotate(-mr*Math.PI/180)}tt.translate(Lt,Ht,0),ht-=$[0]*ot[st].an*.005,ot[st+1]&&It!==ot[st+1].ind&&(ht+=ot[st].an/2,ht+=a.tr*.001*a.finalSize)}else{switch(tt.translate(it,at,0),a.ps&&tt.translate(a.ps[0],a.ps[1]+a.ascent,0),a.j){case 1:tt.translate(ot[st].animatorJustifyOffset+a.justifyOffset+(a.boxWidth-a.lineWidths[ot[st].line]),0,0);break;case 2:tt.translate(ot[st].animatorJustifyOffset+a.justifyOffset+(a.boxWidth-a.lineWidths[ot[st].line])/2,0,0);break}tt.translate(0,-a.ls),tt.translate(Rt,0,0),tt.translate($[0]*ot[st].an*.005,$[1]*Ot*.01,0),it+=ot[st].l+a.tr*.001*a.finalSize}rt==="html"?ir=tt.toCSS():rt==="svg"?ir=tt.to2dCSS():rr=[tt.props[0],tt.props[1],tt.props[2],tt.props[3],tt.props[4],tt.props[5],tt.props[6],tt.props[7],tt.props[8],tt.props[9],tt.props[10],tt.props[11],tt.props[12],tt.props[13],tt.props[14],tt.props[15]],Ut=Vt}nt<=st?(Ct=new LetterProps(Ut,Xt,er,dr,ir,rr),this.renderedLetters.push(Ct),nt+=1,this.lettersChangedFlag=!0):(Ct=this.renderedLetters[st],this.lettersChangedFlag=Ct.update(Ut,Xt,er,dr,ir,rr)||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(a,_,$){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(a,_,$),this.textProperty=new TextProperty(this,a.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(a.t,this.renderType,this),this.initTransform(a,_,$),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange)},ITextElement.prototype.createPathShape=function(a,_){var $,_e=_.length,et,tt="";for($=0;$<_e;$+=1)_[$].ty==="sh"&&(et=_[$].ks.k,tt+=buildShapeString(et,et.i.length,!0,a));return tt},ITextElement.prototype.updateDocumentData=function(a,_){this.textProperty.updateDocumentData(a,_)},ITextElement.prototype.canResizeFont=function(a){this.textProperty.canResizeFont(a)},ITextElement.prototype.setMinimumFontSize=function(a){this.textProperty.setMinimumFontSize(a)},ITextElement.prototype.applyTextPropertiesToMatrix=function(a,_,$,_e,et){switch(a.ps&&_.translate(a.ps[0],a.ps[1]+a.ascent,0),_.translate(0,-a.ls,0),a.j){case 1:_.translate(a.justifyOffset+(a.boxWidth-a.lineWidths[$]),0,0);break;case 2:_.translate(a.justifyOffset+(a.boxWidth-a.lineWidths[$])/2,0,0);break}_.translate(_e,et,0)},ITextElement.prototype.buildColor=function(a){return"rgb("+Math.round(a[0]*255)+","+Math.round(a[1]*255)+","+Math.round(a[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(a,_,$){this.textSpans=[],this.renderType="svg",this.initElement(a,_,$)}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(a){for(var _=0,$=a.length,_e=[],et="";_<$;)a[_]==="\r"||a[_]===""?(_e.push(et),et=""):et+=a[_],_+=1;return _e.push(et),_e},SVGTextLottieElement.prototype.buildShapeData=function(a,_){if(a.shapes&&a.shapes.length){var $=a.shapes[0];if($.it){var _e=$.it[$.it.length-1];_e.s&&(_e.s.k[0]=_,_e.s.k[1]=_)}}return a},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var a,_,$=this.textProperty.currentData;this.renderedLetters=createSizedArray($?$.l.length:0),$.fc?this.layerElement.setAttribute("fill",this.buildColor($.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),$.sc&&(this.layerElement.setAttribute("stroke",this.buildColor($.sc)),this.layerElement.setAttribute("stroke-width",$.sw)),this.layerElement.setAttribute("font-size",$.finalSize);var _e=this.globalData.fontManager.getFontByName($.f);if(_e.fClass)this.layerElement.setAttribute("class",_e.fClass);else{this.layerElement.setAttribute("font-family",_e.fFamily);var et=$.fWeight,tt=$.fStyle;this.layerElement.setAttribute("font-style",tt),this.layerElement.setAttribute("font-weight",et)}this.layerElement.setAttribute("aria-label",$.t);var rt=$.l||[],nt=!!this.globalData.fontManager.chars;_=rt.length;var it,at=this.mHelper,st="",ut=this.data.singleShape,ot=0,pt=0,ht=!0,dt=$.tr*.001*$.finalSize;if(ut&&!nt&&!$.sz){var gt=this.textContainer,lt="start";switch($.j){case 1:lt="end";break;case 2:lt="middle";break;default:lt="start";break}gt.setAttribute("text-anchor",lt),gt.setAttribute("letter-spacing",dt);var ft=this.buildTextContents($.finalText);for(_=ft.length,pt=$.ps?$.ps[1]+$.ascent:0,a=0;a<_;a+=1)it=this.textSpans[a].span||createNS("tspan"),it.textContent=ft[a],it.setAttribute("x",0),it.setAttribute("y",pt),it.style.display="inherit",gt.appendChild(it),this.textSpans[a]||(this.textSpans[a]={span:null,glyph:null}),this.textSpans[a].span=it,pt+=$.finalLineHeight;this.layerElement.appendChild(gt)}else{var ct=this.textSpans.length,mt;for(a=0;a<_;a+=1){if(this.textSpans[a]||(this.textSpans[a]={span:null,childSpan:null,glyph:null}),!nt||!ut||a===0){if(it=ct>a?this.textSpans[a].span:createNS(nt?"g":"text"),ct<=a){if(it.setAttribute("stroke-linecap","butt"),it.setAttribute("stroke-linejoin","round"),it.setAttribute("stroke-miterlimit","4"),this.textSpans[a].span=it,nt){var yt=createNS("g");it.appendChild(yt),this.textSpans[a].childSpan=yt}this.textSpans[a].span=it,this.layerElement.appendChild(it)}it.style.display="inherit"}if(at.reset(),ut&&(rt[a].n&&(ot=-dt,pt+=$.yOffset,pt+=ht?1:0,ht=!1),this.applyTextPropertiesToMatrix($,at,rt[a].line,ot,pt),ot+=rt[a].l||0,ot+=dt),nt){mt=this.globalData.fontManager.getCharData($.finalText[a],_e.fStyle,this.globalData.fontManager.getFontByName($.f).fFamily);var Et;if(mt.t===1)Et=new SVGCompElement(mt.data,this.globalData,this);else{var St=emptyShapeData;mt.data&&mt.data.shapes&&(St=this.buildShapeData(mt.data,$.finalSize)),Et=new SVGShapeElement(St,this.globalData,this)}if(this.textSpans[a].glyph){var At=this.textSpans[a].glyph;this.textSpans[a].childSpan.removeChild(At.layerElement),At.destroy()}this.textSpans[a].glyph=Et,Et._debug=!0,Et.prepareFrame(0),Et.renderFrame(),this.textSpans[a].childSpan.appendChild(Et.layerElement),mt.t===1&&this.textSpans[a].childSpan.setAttribute("transform","scale("+$.finalSize/100+","+$.finalSize/100+")")}else ut&&it.setAttribute("transform","translate("+at.props[12]+","+at.props[13]+")"),it.textContent=rt[a].val,it.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}ut&&it&&it.setAttribute("d",st)}for(;a<this.textSpans.length;)this.textSpans[a].span.style.display="none",a+=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 a=this.layerElement.getBBox();this.bbox={top:a.y,left:a.x,width:a.width,height:a.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var a,_=this.textSpans.length,$;for(this.renderedFrame=this.comp.renderedFrame,a=0;a<_;a+=1)$=this.textSpans[a].glyph,$&&($.prepareFrame(this.comp.renderedFrame-this.data.st),$._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 a,_,$=this.textAnimator.renderedLetters,_e=this.textProperty.currentData.l;_=_e.length;var et,tt,rt;for(a=0;a<_;a+=1)_e[a].n||(et=$[a],tt=this.textSpans[a].span,rt=this.textSpans[a].glyph,rt&&rt.renderFrame(),et._mdf.m&&tt.setAttribute("transform",et.m),et._mdf.o&&tt.setAttribute("opacity",et.o),et._mdf.sw&&tt.setAttribute("stroke-width",et.sw),et._mdf.sc&&tt.setAttribute("stroke",et.sc),et._mdf.fc&&tt.setAttribute("fill",et.fc))}};function ISolidElement(a,_,$){this.initElement(a,_,$)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var a=createNS("rect");a.setAttribute("width",this.data.sw),a.setAttribute("height",this.data.sh),a.setAttribute("fill",this.data.sc),this.layerElement.appendChild(a)};function NullElement(a,_,$){this.initFrame(),this.initBaseData(a,_,$),this.initFrame(),this.initTransform(a,_,$),this.initHierarchy()}NullElement.prototype.prepareFrame=function(a){this.prepareProperties(a,!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(a){return new NullElement(a,this.globalData,this)},SVGRendererBase.prototype.createShape=function(a){return new SVGShapeElement(a,this.globalData,this)},SVGRendererBase.prototype.createText=function(a){return new SVGTextLottieElement(a,this.globalData,this)},SVGRendererBase.prototype.createImage=function(a){return new IImageElement(a,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(a){return new ISolidElement(a,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(a){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 "+a.w+" "+a.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",a.w),this.svgElement.setAttribute("height",a.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 _=this.globalData.defs;this.setupGlobalData(a,_),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=a;var $=createNS("clipPath"),_e=createNS("rect");_e.setAttribute("width",a.w),_e.setAttribute("height",a.h),_e.setAttribute("x",0),_e.setAttribute("y",0);var et=createElementID();$.setAttribute("id",et),$.appendChild(_e),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+et+")"),_.appendChild($),this.layers=a.layers,this.elements=createSizedArray(a.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var a,_=this.layers?this.layers.length:0;for(a=0;a<_;a+=1)this.elements[a]&&this.elements[a].destroy&&this.elements[a].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(a){var _=0,$=this.layers.length;for(_=0;_<$;_+=1)if(this.layers[_].ind===a)return _;return-1},SVGRendererBase.prototype.buildItem=function(a){var _=this.elements;if(!(_[a]||this.layers[a].ty===99)){_[a]=!0;var $=this.createItem(this.layers[a]);if(_[a]=$,getExpressionsPlugin()&&(this.layers[a].ty===0&&this.globalData.projectInterface.registerComposition($),$.initExpressions()),this.appendElementInPos($,a),this.layers[a].tt){var _e="tp"in this.layers[a]?this.findIndexByInd(this.layers[a].tp):a-1;if(_e===-1)return;if(!this.elements[_e]||this.elements[_e]===!0)this.buildItem(_e),this.addPendingElement($);else{var et=_[_e],tt=et.getMatte(this.layers[a].tt);$.setMatte(tt)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var a=this.pendingElements.pop();if(a.checkParenting(),a.data.tt)for(var _=0,$=this.elements.length;_<$;){if(this.elements[_]===a){var _e="tp"in a.data?this.findIndexByInd(a.data.tp):_-1,et=this.elements[_e],tt=et.getMatte(this.layers[_].tt);a.setMatte(tt);break}_+=1}}},SVGRendererBase.prototype.renderFrame=function(a){if(!(this.renderedFrame===a||this.destroyed)){a===null?a=this.renderedFrame:this.renderedFrame=a,this.globalData.frameNum=a,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=a,this.globalData._mdf=!1;var _,$=this.layers.length;for(this.completeLayers||this.checkLayers(a),_=$-1;_>=0;_-=1)(this.completeLayers||this.elements[_])&&this.elements[_].prepareFrame(a-this.layers[_].st);if(this.globalData._mdf)for(_=0;_<$;_+=1)(this.completeLayers||this.elements[_])&&this.elements[_].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(a,_){var $=a.getBaseElement();if($){for(var _e=0,et;_e<_;)this.elements[_e]&&this.elements[_e]!==!0&&this.elements[_e].getBaseElement()&&(et=this.elements[_e].getBaseElement()),_e+=1;et?this.layerElement.insertBefore($,et):this.layerElement.appendChild($)}},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(a,_,$){this.initFrame(),this.initBaseData(a,_,$),this.initTransform(a,_,$),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!_.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(a){if(this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=a/this.data.sr;else{var _=this.tm.v;_===this.data.op&&(_=this.data.op-1),this.renderedFrame=_}var $,_e=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),$=_e-1;$>=0;$-=1)(this.completeLayers||this.elements[$])&&(this.elements[$].prepareFrame(this.renderedFrame-this.layers[$].st),this.elements[$]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var a,_=this.layers.length;for(a=0;a<_;a+=1)(this.completeLayers||this.elements[a])&&this.elements[a].renderFrame()},ICompElement.prototype.setElements=function(a){this.elements=a},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var a,_=this.layers.length;for(a=0;a<_;a+=1)this.elements[a]&&this.elements[a].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(a,_,$){this.layers=a.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(a,_,$),this.tm=a.tm?PropertyFactory.getProp(this,a.tm,0,_.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(a){return new SVGCompElement(a,this.globalData,this)};function SVGRenderer(a,_){this.animationItem=a,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var $="";if(_&&_.title){var _e=createNS("title"),et=createElementID();_e.setAttribute("id",et),_e.textContent=_.title,this.svgElement.appendChild(_e),$+=et}if(_&&_.description){var tt=createNS("desc"),rt=createElementID();tt.setAttribute("id",rt),tt.textContent=_.description,this.svgElement.appendChild(tt),$+=" "+rt}$&&this.svgElement.setAttribute("aria-labelledby",$);var nt=createNS("defs");this.svgElement.appendChild(nt);var it=createNS("g");this.svgElement.appendChild(it),this.layerElement=it,this.renderConfig={preserveAspectRatio:_&&_.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:_&&_.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:_&&_.contentVisibility||"visible",progressiveLoad:_&&_.progressiveLoad||!1,hideOnTransparent:!(_&&_.hideOnTransparent===!1),viewBoxOnly:_&&_.viewBoxOnly||!1,viewBoxSize:_&&_.viewBoxSize||!1,className:_&&_.className||"",id:_&&_.id||"",focusable:_&&_.focusable,filterSize:{width:_&&_.filterSize&&_.filterSize.width||"100%",height:_&&_.filterSize&&_.filterSize.height||"100%",x:_&&_.filterSize&&_.filterSize.x||"0%",y:_&&_.filterSize&&_.filterSize.y||"0%"},width:_&&_.width,height:_&&_.height,runExpressions:!_||_.runExpressions===void 0||_.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:nt,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(a){return new SVGCompElement(a,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(_){var $,_e=_.length,et="_";for($=0;$<_e;$+=1)et+=_[$].transform.key+"_";var tt=this.sequences[et];return tt||(tt={transforms:[].concat(_),finalTransform:new Matrix,_mdf:!1},this.sequences[et]=tt,this.sequenceList.push(tt)),tt},processSequence:function(_,$){for(var _e=0,et=_.transforms.length,tt=$;_e<et&&!$;){if(_.transforms[_e].transform.mProps._mdf){tt=!0;break}_e+=1}if(tt)for(_.finalTransform.reset(),_e=et-1;_e>=0;_e-=1)_.finalTransform.multiply(_.transforms[_e].transform.mProps.v);_._mdf=tt},processSequences:function(_){var $,_e=this.sequenceList.length;for($=0;$<_e;$+=1)this.processSequence(this.sequenceList[$],_)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var _="__lottie_element_luma_buffer",$=null,_e=null,et=null;function tt(){var it=createNS("svg"),at=createNS("filter"),st=createNS("feColorMatrix");return at.setAttribute("id",_),st.setAttribute("type","matrix"),st.setAttribute("color-interpolation-filters","sRGB"),st.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"),at.appendChild(st),it.appendChild(at),it.setAttribute("id",_+"_svg"),featureSupport.svgLumaHidden&&(it.style.display="none"),it}function rt(){$||(et=tt(),document.body.appendChild(et),$=createTag("canvas"),_e=$.getContext("2d"),_e.filter="url(#"+_+")",_e.fillStyle="rgba(0,0,0,0)",_e.fillRect(0,0,1,1))}function nt(it){return $||rt(),$.width=it.width,$.height=it.height,_e.filter="url(#"+_+")",$}return{load:rt,get:nt}};function createCanvas(a,_){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(a,_);var $=createTag("canvas");return $.width=a,$.height=_,$}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(a){var _,$=a.data.ef?a.data.ef.length:0;this.filters=[];var _e;for(_=0;_<$;_+=1){_e=null;var et=a.data.ef[_].ty;if(registeredEffects[et]){var tt=registeredEffects[et].effect;_e=new tt(a.effectsManager.effectElements[_],a)}_e&&this.filters.push(_e)}this.filters.length&&a.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(a){var _,$=this.filters.length;for(_=0;_<$;_+=1)this.filters[_].renderFrame(a)},CVEffects.prototype.getEffects=function(a){var _,$=this.filters.length,_e=[];for(_=0;_<$;_+=1)this.filters[_].type===a&&_e.push(this.filters[_]);return _e};function registerEffect(a,_){registeredEffects[a]={effect:_}}function CVMaskElement(a,_){this.data=a,this.element=_,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var $,_e=this.masksProperties.length,et=!1;for($=0;$<_e;$+=1)this.masksProperties[$].mode!=="n"&&(et=!0),this.viewData[$]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[$],3);this.hasMasks=et,et&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var a=this.element.finalTransform.mat,_=this.element.canvasContext,$,_e=this.masksProperties.length,et,tt,rt;for(_.beginPath(),$=0;$<_e;$+=1)if(this.masksProperties[$].mode!=="n"){this.masksProperties[$].inv&&(_.moveTo(0,0),_.lineTo(this.element.globalData.compSize.w,0),_.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),_.lineTo(0,this.element.globalData.compSize.h),_.lineTo(0,0)),rt=this.viewData[$].v,et=a.applyToPointArray(rt.v[0][0],rt.v[0][1],0),_.moveTo(et[0],et[1]);var nt,it=rt._length;for(nt=1;nt<it;nt+=1)tt=a.applyToTriplePoints(rt.o[nt-1],rt.i[nt],rt.v[nt]),_.bezierCurveTo(tt[0],tt[1],tt[2],tt[3],tt[4],tt[5]);tt=a.applyToTriplePoints(rt.o[nt-1],rt.i[0],rt.v[0]),_.bezierCurveTo(tt[0],tt[1],tt[2],tt[3],tt[4],tt[5])}this.element.globalData.renderer.save(!0),_.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 _=this.globalData.canvasContext,$=assetLoader.createCanvas(_.canvas.width,_.canvas.height);this.buffers.push($);var _e=assetLoader.createCanvas(_.canvas.width,_.canvas.height);this.buffers.push(_e),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 _=this.globalData;if(_.blendMode!==this.data.bm){_.blendMode=this.data.bm;var $=getBlendMode(this.data.bm);_.canvasContext.globalCompositeOperation=$}},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(_){_.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 _=this.buffers[0],$=_.getContext("2d");this.clearCanvas($),$.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 _=this.buffers[1],$=_.getContext("2d");this.clearCanvas($),$.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 _e=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(_e.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var et=assetLoader.getLumaCanvas(this.canvasContext.canvas),tt=et.getContext("2d");tt.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(et,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(_,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(_){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!_)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var $=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save($),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore($),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(a,_,$,_e){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var et=4;_.ty==="rc"?et=5:_.ty==="el"?et=6:_.ty==="sr"&&(et=7),this.sh=ShapePropertyFactory.getShapeProp(a,_,et,a);var tt,rt=$.length,nt;for(tt=0;tt<rt;tt+=1)$[tt].closed||(nt={transforms:_e.addTransformSequence($[tt].transforms),trNodes:[]},this.styledShapes.push(nt),$[tt].elements.push(nt))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(a,_,$){this.shapes=[],this.shapesData=a.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(a,_,$)}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(a,_){var $={data:a,type:a.ty,preTransforms:this.transformsManager.addTransformSequence(_),transforms:[],elements:[],closed:a.hd===!0},_e={};if(a.ty==="fl"||a.ty==="st"?(_e.c=PropertyFactory.getProp(this,a.c,1,255,this),_e.c.k||($.co="rgb("+bmFloor(_e.c.v[0])+","+bmFloor(_e.c.v[1])+","+bmFloor(_e.c.v[2])+")")):(a.ty==="gf"||a.ty==="gs")&&(_e.s=PropertyFactory.getProp(this,a.s,1,null,this),_e.e=PropertyFactory.getProp(this,a.e,1,null,this),_e.h=PropertyFactory.getProp(this,a.h||{k:0},0,.01,this),_e.a=PropertyFactory.getProp(this,a.a||{k:0},0,degToRads,this),_e.g=new GradientProperty(this,a.g,this)),_e.o=PropertyFactory.getProp(this,a.o,0,.01,this),a.ty==="st"||a.ty==="gs"){if($.lc=lineCapEnum[a.lc||2],$.lj=lineJoinEnum[a.lj||2],a.lj==1&&($.ml=a.ml),_e.w=PropertyFactory.getProp(this,a.w,0,null,this),_e.w.k||($.wi=_e.w.v),a.d){var et=new DashProperty(this,a.d,"canvas",this);_e.d=et,_e.d.k||($.da=_e.d.dashArray,$.do=_e.d.dashoffset[0])}}else $.r=a.r===2?"evenodd":"nonzero";return this.stylesList.push($),_e.style=$,_e},CVShapeElement.prototype.createGroupElement=function(){var a={it:[],prevViewData:[]};return a},CVShapeElement.prototype.createTransformElement=function(a){var _={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,a.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,a,this)}};return _},CVShapeElement.prototype.createShapeElement=function(a){var _=new CVShapeData(this,a,this.stylesList,this.transformsManager);return this.shapes.push(_),this.addShapeToModifiers(_),_},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var a,_=this.itemsData.length;for(a=0;a<_;a+=1)this.prevViewData[a]=this.itemsData[a];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),_=this.dynamicProperties.length,a=0;a<_;a+=1)this.dynamicProperties[a].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(a){var _,$=this.stylesList.length;for(_=0;_<$;_+=1)this.stylesList[_].closed||this.stylesList[_].transforms.push(a)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var a,_=this.stylesList.length;for(a=0;a<_;a+=1)this.stylesList[a].closed||this.stylesList[a].transforms.pop()},CVShapeElement.prototype.closeStyles=function(a){var _,$=a.length;for(_=0;_<$;_+=1)a[_].closed=!0},CVShapeElement.prototype.searchShapes=function(a,_,$,_e,et){var tt,rt=a.length-1,nt,it,at=[],st=[],ut,ot,pt,ht=[].concat(et);for(tt=rt;tt>=0;tt-=1){if(ut=this.searchProcessedElement(a[tt]),ut?_[tt]=$[ut-1]:a[tt]._shouldRender=_e,a[tt].ty==="fl"||a[tt].ty==="st"||a[tt].ty==="gf"||a[tt].ty==="gs")ut?_[tt].style.closed=!1:_[tt]=this.createStyleElement(a[tt],ht),at.push(_[tt].style);else if(a[tt].ty==="gr"){if(!ut)_[tt]=this.createGroupElement(a[tt]);else for(it=_[tt].it.length,nt=0;nt<it;nt+=1)_[tt].prevViewData[nt]=_[tt].it[nt];this.searchShapes(a[tt].it,_[tt].it,_[tt].prevViewData,_e,ht)}else a[tt].ty==="tr"?(ut||(pt=this.createTransformElement(a[tt]),_[tt]=pt),ht.push(_[tt]),this.addTransformToStyleList(_[tt])):a[tt].ty==="sh"||a[tt].ty==="rc"||a[tt].ty==="el"||a[tt].ty==="sr"?ut||(_[tt]=this.createShapeElement(a[tt])):a[tt].ty==="tm"||a[tt].ty==="rd"||a[tt].ty==="pb"||a[tt].ty==="zz"||a[tt].ty==="op"?(ut?(ot=_[tt],ot.closed=!1):(ot=ShapeModifiers.getModifier(a[tt].ty),ot.init(this,a[tt]),_[tt]=ot,this.shapeModifiers.push(ot)),st.push(ot)):a[tt].ty==="rp"&&(ut?(ot=_[tt],ot.closed=!0):(ot=ShapeModifiers.getModifier(a[tt].ty),_[tt]=ot,ot.init(this,a,tt,_),this.shapeModifiers.push(ot),_e=!1),st.push(ot));this.addProcessedElement(a[tt],tt+1)}for(this.removeTransformFromStyleList(),this.closeStyles(at),rt=st.length,tt=0;tt<rt;tt+=1)st[tt].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(a,_){(a._opMdf||_.op._mdf||this._isFirstFrame)&&(_.opacity=a.opacity,_.opacity*=_.op.v,_._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var a,_=this.stylesList.length,$,_e,et,tt,rt,nt,it=this.globalData.renderer,at=this.globalData.canvasContext,st,ut;for(a=0;a<_;a+=1)if(ut=this.stylesList[a],st=ut.type,!((st==="st"||st==="gs")&&ut.wi===0||!ut.data._shouldRender||ut.coOp===0||this.globalData.currentGlobalAlpha===0)){for(it.save(),rt=ut.elements,st==="st"||st==="gs"?(it.ctxStrokeStyle(st==="st"?ut.co:ut.grd),it.ctxLineWidth(ut.wi),it.ctxLineCap(ut.lc),it.ctxLineJoin(ut.lj),it.ctxMiterLimit(ut.ml||0)):it.ctxFillStyle(st==="fl"?ut.co:ut.grd),it.ctxOpacity(ut.coOp),st!=="st"&&st!=="gs"&&at.beginPath(),it.ctxTransform(ut.preTransforms.finalTransform.props),_e=rt.length,$=0;$<_e;$+=1){for((st==="st"||st==="gs")&&(at.beginPath(),ut.da&&(at.setLineDash(ut.da),at.lineDashOffset=ut.do)),nt=rt[$].trNodes,tt=nt.length,et=0;et<tt;et+=1)nt[et].t==="m"?at.moveTo(nt[et].p[0],nt[et].p[1]):nt[et].t==="c"?at.bezierCurveTo(nt[et].pts[0],nt[et].pts[1],nt[et].pts[2],nt[et].pts[3],nt[et].pts[4],nt[et].pts[5]):at.closePath();(st==="st"||st==="gs")&&(it.ctxStroke(),ut.da&&at.setLineDash(this.dashResetter))}st!=="st"&&st!=="gs"&&this.globalData.renderer.ctxFill(ut.r),it.restore()}},CVShapeElement.prototype.renderShape=function(a,_,$,_e){var et,tt=_.length-1,rt;for(rt=a,et=tt;et>=0;et-=1)_[et].ty==="tr"?(rt=$[et].transform,this.renderShapeTransform(a,rt)):_[et].ty==="sh"||_[et].ty==="el"||_[et].ty==="rc"||_[et].ty==="sr"?this.renderPath(_[et],$[et]):_[et].ty==="fl"?this.renderFill(_[et],$[et],rt):_[et].ty==="st"?this.renderStroke(_[et],$[et],rt):_[et].ty==="gf"||_[et].ty==="gs"?this.renderGradientFill(_[et],$[et],rt):_[et].ty==="gr"?this.renderShape(rt,_[et].it,$[et].it):_[et].ty;_e&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(a,_){if(this._isFirstFrame||_._mdf||a.transforms._mdf){var $=a.trNodes,_e=_.paths,et,tt,rt,nt=_e._length;$.length=0;var it=a.transforms.finalTransform;for(rt=0;rt<nt;rt+=1){var at=_e.shapes[rt];if(at&&at.v){for(tt=at._length,et=1;et<tt;et+=1)et===1&&$.push({t:"m",p:it.applyToPointArray(at.v[0][0],at.v[0][1],0)}),$.push({t:"c",pts:it.applyToTriplePoints(at.o[et-1],at.i[et],at.v[et])});tt===1&&$.push({t:"m",p:it.applyToPointArray(at.v[0][0],at.v[0][1],0)}),at.c&&tt&&($.push({t:"c",pts:it.applyToTriplePoints(at.o[et-1],at.i[0],at.v[0])}),$.push({t:"z"}))}}a.trNodes=$}},CVShapeElement.prototype.renderPath=function(a,_){if(a.hd!==!0&&a._shouldRender){var $,_e=_.styledShapes.length;for($=0;$<_e;$+=1)this.renderStyledShape(_.styledShapes[$],_.sh)}},CVShapeElement.prototype.renderFill=function(a,_,$){var _e=_.style;(_.c._mdf||this._isFirstFrame)&&(_e.co="rgb("+bmFloor(_.c.v[0])+","+bmFloor(_.c.v[1])+","+bmFloor(_.c.v[2])+")"),(_.o._mdf||$._opMdf||this._isFirstFrame)&&(_e.coOp=_.o.v*$.opacity)},CVShapeElement.prototype.renderGradientFill=function(a,_,$){var _e=_.style,et;if(!_e.grd||_.g._mdf||_.s._mdf||_.e._mdf||a.t!==1&&(_.h._mdf||_.a._mdf)){var tt=this.globalData.canvasContext,rt=_.s.v,nt=_.e.v;if(a.t===1)et=tt.createLinearGradient(rt[0],rt[1],nt[0],nt[1]);else{var it=Math.sqrt(Math.pow(rt[0]-nt[0],2)+Math.pow(rt[1]-nt[1],2)),at=Math.atan2(nt[1]-rt[1],nt[0]-rt[0]),st=_.h.v;st>=1?st=.99:st<=-1&&(st=-.99);var ut=it*st,ot=Math.cos(at+_.a.v)*ut+rt[0],pt=Math.sin(at+_.a.v)*ut+rt[1];et=tt.createRadialGradient(ot,pt,0,rt[0],rt[1],it)}var ht,dt=a.g.p,gt=_.g.c,lt=1;for(ht=0;ht<dt;ht+=1)_.g._hasOpacity&&_.g._collapsable&&(lt=_.g.o[ht*2+1]),et.addColorStop(gt[ht*4]/100,"rgba("+gt[ht*4+1]+","+gt[ht*4+2]+","+gt[ht*4+3]+","+lt+")");_e.grd=et}_e.coOp=_.o.v*$.opacity},CVShapeElement.prototype.renderStroke=function(a,_,$){var _e=_.style,et=_.d;et&&(et._mdf||this._isFirstFrame)&&(_e.da=et.dashArray,_e.do=et.dashoffset[0]),(_.c._mdf||this._isFirstFrame)&&(_e.co="rgb("+bmFloor(_.c.v[0])+","+bmFloor(_.c.v[1])+","+bmFloor(_.c.v[2])+")"),(_.o._mdf||$._opMdf||this._isFirstFrame)&&(_e.coOp=_.o.v*$.opacity),(_.w._mdf||this._isFirstFrame)&&(_e.wi=_.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(a,_,$){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(a,_,$)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var a=this.textProperty.currentData;this.renderedLetters=createSizedArray(a.l?a.l.length:0);var _=!1;a.fc?(_=!0,this.values.fill=this.buildColor(a.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=_;var $=!1;a.sc&&($=!0,this.values.stroke=this.buildColor(a.sc),this.values.sWidth=a.sw);var _e=this.globalData.fontManager.getFontByName(a.f),et,tt,rt=a.l,nt=this.mHelper;this.stroke=$,this.values.fValue=a.finalSize+"px "+this.globalData.fontManager.getFontByName(a.f).fFamily,tt=a.finalText.length;var it,at,st,ut,ot,pt,ht,dt,gt,lt,ft=this.data.singleShape,ct=a.tr*.001*a.finalSize,mt=0,yt=0,Et=!0,St=0;for(et=0;et<tt;et+=1){it=this.globalData.fontManager.getCharData(a.finalText[et],_e.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily),at=it&&it.data||{},nt.reset(),ft&&rt[et].n&&(mt=-ct,yt+=a.yOffset,yt+=Et?1:0,Et=!1),ot=at.shapes?at.shapes[0].it:[],ht=ot.length,nt.scale(a.finalSize/100,a.finalSize/100),ft&&this.applyTextPropertiesToMatrix(a,nt,rt[et].line,mt,yt),gt=createSizedArray(ht-1);var At=0;for(pt=0;pt<ht;pt+=1)if(ot[pt].ty==="sh"){for(ut=ot[pt].ks.k.i.length,dt=ot[pt].ks.k,lt=[],st=1;st<ut;st+=1)st===1&<.push(nt.applyToX(dt.v[0][0],dt.v[0][1],0),nt.applyToY(dt.v[0][0],dt.v[0][1],0)),lt.push(nt.applyToX(dt.o[st-1][0],dt.o[st-1][1],0),nt.applyToY(dt.o[st-1][0],dt.o[st-1][1],0),nt.applyToX(dt.i[st][0],dt.i[st][1],0),nt.applyToY(dt.i[st][0],dt.i[st][1],0),nt.applyToX(dt.v[st][0],dt.v[st][1],0),nt.applyToY(dt.v[st][0],dt.v[st][1],0));lt.push(nt.applyToX(dt.o[st-1][0],dt.o[st-1][1],0),nt.applyToY(dt.o[st-1][0],dt.o[st-1][1],0),nt.applyToX(dt.i[0][0],dt.i[0][1],0),nt.applyToY(dt.i[0][0],dt.i[0][1],0),nt.applyToX(dt.v[0][0],dt.v[0][1],0),nt.applyToY(dt.v[0][0],dt.v[0][1],0)),gt[At]=lt,At+=1}ft&&(mt+=rt[et].l,mt+=ct),this.textSpans[St]?this.textSpans[St].elem=gt:this.textSpans[St]={elem:gt},St+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var a=this.canvasContext;a.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 _,$,_e,et,tt,rt,nt=this.textAnimator.renderedLetters,it=this.textProperty.currentData.l;$=it.length;var at,st=null,ut=null,ot=null,pt,ht,dt=this.globalData.renderer;for(_=0;_<$;_+=1)if(!it[_].n){if(at=nt[_],at&&(dt.save(),dt.ctxTransform(at.p),dt.ctxOpacity(at.o)),this.fill){for(at&&at.fc?st!==at.fc&&(dt.ctxFillStyle(at.fc),st=at.fc):st!==this.values.fill&&(st=this.values.fill,dt.ctxFillStyle(this.values.fill)),pt=this.textSpans[_].elem,et=pt.length,this.globalData.canvasContext.beginPath(),_e=0;_e<et;_e+=1)for(ht=pt[_e],rt=ht.length,this.globalData.canvasContext.moveTo(ht[0],ht[1]),tt=2;tt<rt;tt+=6)this.globalData.canvasContext.bezierCurveTo(ht[tt],ht[tt+1],ht[tt+2],ht[tt+3],ht[tt+4],ht[tt+5]);this.globalData.canvasContext.closePath(),dt.ctxFill()}if(this.stroke){for(at&&at.sw?ot!==at.sw&&(ot=at.sw,dt.ctxLineWidth(at.sw)):ot!==this.values.sWidth&&(ot=this.values.sWidth,dt.ctxLineWidth(this.values.sWidth)),at&&at.sc?ut!==at.sc&&(ut=at.sc,dt.ctxStrokeStyle(at.sc)):ut!==this.values.stroke&&(ut=this.values.stroke,dt.ctxStrokeStyle(this.values.stroke)),pt=this.textSpans[_].elem,et=pt.length,this.globalData.canvasContext.beginPath(),_e=0;_e<et;_e+=1)for(ht=pt[_e],rt=ht.length,this.globalData.canvasContext.moveTo(ht[0],ht[1]),tt=2;tt<rt;tt+=6)this.globalData.canvasContext.bezierCurveTo(ht[tt],ht[tt+1],ht[tt+2],ht[tt+3],ht[tt+4],ht[tt+5]);this.globalData.canvasContext.closePath(),dt.ctxStroke()}at&&this.globalData.renderer.restore()}};function CVImageElement(a,_,$){this.assetData=_.getAssetData(a.refId),this.img=_.imageLoader.getAsset(this.assetData),this.initElement(a,_,$)}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 a=createTag("canvas");a.width=this.assetData.w,a.height=this.assetData.h;var _=a.getContext("2d"),$=this.img.width,_e=this.img.height,et=$/_e,tt=this.assetData.w/this.assetData.h,rt,nt,it=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;et>tt&&it==="xMidYMid slice"||et<tt&&it!=="xMidYMid slice"?(nt=_e,rt=nt*tt):(rt=$,nt=rt/tt),_.drawImage(this.img,($-rt)/2,(_e-nt)/2,rt,nt,0,0,this.assetData.w,this.assetData.h),this.img=a}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(a,_,$){this.initElement(a,_,$)}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(a){return new CVShapeElement(a,this.globalData,this)},CanvasRendererBase.prototype.createText=function(a){return new CVTextElement(a,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(a){return new CVImageElement(a,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(a){return new CVSolidElement(a,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(a){a[0]===1&&a[1]===0&&a[4]===0&&a[5]===1&&a[12]===0&&a[13]===0||this.canvasContext.transform(a[0],a[1],a[4],a[5],a[12],a[13])},CanvasRendererBase.prototype.ctxOpacity=function(a){this.canvasContext.globalAlpha*=a<0?0:a},CanvasRendererBase.prototype.ctxFillStyle=function(a){this.canvasContext.fillStyle=a},CanvasRendererBase.prototype.ctxStrokeStyle=function(a){this.canvasContext.strokeStyle=a},CanvasRendererBase.prototype.ctxLineWidth=function(a){this.canvasContext.lineWidth=a},CanvasRendererBase.prototype.ctxLineCap=function(a){this.canvasContext.lineCap=a},CanvasRendererBase.prototype.ctxLineJoin=function(a){this.canvasContext.lineJoin=a},CanvasRendererBase.prototype.ctxMiterLimit=function(a){this.canvasContext.miterLimit=a},CanvasRendererBase.prototype.ctxFill=function(a){this.canvasContext.fill(a)},CanvasRendererBase.prototype.ctxFillRect=function(a,_,$,_e){this.canvasContext.fillRect(a,_,$,_e)},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(a){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}a&&(this.globalData.blendMode="source-over"),this.contextData.restore(a)},CanvasRendererBase.prototype.configAnimation=function(a){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var _=this.animationItem.container.style;_.width="100%",_.height="100%";var $="0px 0px 0px";_.transformOrigin=$,_.mozTransformOrigin=$,_.webkitTransformOrigin=$,_["-webkit-transform"]=$,_.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=a,this.layers=a.layers,this.transformCanvas={w:a.w,h:a.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(a,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(a.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(a,_){this.reset();var $,_e;a?($=a,_e=_,this.canvasContext.canvas.width=$,this.canvasContext.canvas.height=_e):(this.animationItem.wrapper&&this.animationItem.container?($=this.animationItem.wrapper.offsetWidth,_e=this.animationItem.wrapper.offsetHeight):($=this.canvasContext.canvas.width,_e=this.canvasContext.canvas.height),this.canvasContext.canvas.width=$*this.renderConfig.dpr,this.canvasContext.canvas.height=_e*this.renderConfig.dpr);var et,tt;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var rt=this.renderConfig.preserveAspectRatio.split(" "),nt=rt[1]||"meet",it=rt[0]||"xMidYMid",at=it.substr(0,4),st=it.substr(4);et=$/_e,tt=this.transformCanvas.w/this.transformCanvas.h,tt>et&&nt==="meet"||tt<et&&nt==="slice"?(this.transformCanvas.sx=$/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=$/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=_e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=_e/(this.transformCanvas.h/this.renderConfig.dpr)),at==="xMid"&&(tt<et&&nt==="meet"||tt>et&&nt==="slice")?this.transformCanvas.tx=($-this.transformCanvas.w*(_e/this.transformCanvas.h))/2*this.renderConfig.dpr:at==="xMax"&&(tt<et&&nt==="meet"||tt>et&&nt==="slice")?this.transformCanvas.tx=($-this.transformCanvas.w*(_e/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,st==="YMid"&&(tt>et&&nt==="meet"||tt<et&&nt==="slice")?this.transformCanvas.ty=(_e-this.transformCanvas.h*($/this.transformCanvas.w))/2*this.renderConfig.dpr:st==="YMax"&&(tt>et&&nt==="meet"||tt<et&&nt==="slice")?this.transformCanvas.ty=(_e-this.transformCanvas.h*($/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=$/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=_e/(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 a,_=this.layers?this.layers.length:0;for(a=_-1;a>=0;a-=1)this.elements[a]&&this.elements[a].destroy&&this.elements[a].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(a,_){if(!(this.renderedFrame===a&&this.renderConfig.clearCanvas===!0&&!_||this.destroyed||a===-1)){this.renderedFrame=a,this.globalData.frameNum=a-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||_,this.globalData.projectInterface.currentFrame=a;var $,_e=this.layers.length;for(this.completeLayers||this.checkLayers(a),$=_e-1;$>=0;$-=1)(this.completeLayers||this.elements[$])&&this.elements[$].prepareFrame(a-this.layers[$].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),$=_e-1;$>=0;$-=1)(this.completeLayers||this.elements[$])&&this.elements[$].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(a){var _=this.elements;if(!(_[a]||this.layers[a].ty===99)){var $=this.createItem(this.layers[a],this,this.globalData);_[a]=$,$.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var a=this.pendingElements.pop();a.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 a,_=15;for(a=0;a<_;a+=1){var $=new CanvasContext;this.stack[a]=$}this._length=_,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 a=this._length*2,_=0;for(_=this._length;_<a;_+=1)this.stack[_]=new CanvasContext;this._length=a},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(a){this.cArrPos-=1;var _=this.stack[this.cArrPos],$=_.transform,_e,et=this.cTr.props;for(_e=0;_e<16;_e+=1)et[_e]=$[_e];if(a){this.nativeContext.restore();var tt=this.stack[this.cArrPos+1];this.appliedFillStyle=tt.fillStyle,this.appliedStrokeStyle=tt.strokeStyle,this.appliedLineWidth=tt.lineWidth,this.appliedLineCap=tt.lineCap,this.appliedLineJoin=tt.lineJoin,this.appliedMiterLimit=tt.miterLimit}this.nativeContext.setTransform($[0],$[1],$[4],$[5],$[12],$[13]),(a||_.opacity!==-1&&this.currentOpacity!==_.opacity)&&(this.nativeContext.globalAlpha=_.opacity,this.currentOpacity=_.opacity),this.currentFillStyle=_.fillStyle,this.currentStrokeStyle=_.strokeStyle,this.currentLineWidth=_.lineWidth,this.currentLineCap=_.lineCap,this.currentLineJoin=_.lineJoin,this.currentMiterLimit=_.miterLimit},CVContextData.prototype.save=function(a){a&&this.nativeContext.save();var _=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var $=this.stack[this.cArrPos],_e;for(_e=0;_e<16;_e+=1)$.transform[_e]=_[_e];this.cArrPos+=1;var et=this.stack[this.cArrPos];et.opacity=$.opacity,et.fillStyle=$.fillStyle,et.strokeStyle=$.strokeStyle,et.lineWidth=$.lineWidth,et.lineCap=$.lineCap,et.lineJoin=$.lineJoin,et.miterLimit=$.miterLimit},CVContextData.prototype.setOpacity=function(a){this.stack[this.cArrPos].opacity=a},CVContextData.prototype.setContext=function(a){this.nativeContext=a},CVContextData.prototype.fillStyle=function(a){this.stack[this.cArrPos].fillStyle!==a&&(this.currentFillStyle=a,this.stack[this.cArrPos].fillStyle=a)},CVContextData.prototype.strokeStyle=function(a){this.stack[this.cArrPos].strokeStyle!==a&&(this.currentStrokeStyle=a,this.stack[this.cArrPos].strokeStyle=a)},CVContextData.prototype.lineWidth=function(a){this.stack[this.cArrPos].lineWidth!==a&&(this.currentLineWidth=a,this.stack[this.cArrPos].lineWidth=a)},CVContextData.prototype.lineCap=function(a){this.stack[this.cArrPos].lineCap!==a&&(this.currentLineCap=a,this.stack[this.cArrPos].lineCap=a)},CVContextData.prototype.lineJoin=function(a){this.stack[this.cArrPos].lineJoin!==a&&(this.currentLineJoin=a,this.stack[this.cArrPos].lineJoin=a)},CVContextData.prototype.miterLimit=function(a){this.stack[this.cArrPos].miterLimit!==a&&(this.currentMiterLimit=a,this.stack[this.cArrPos].miterLimit=a)},CVContextData.prototype.transform=function(a){this.transformMat.cloneFromProps(a);var _=this.cTr;this.transformMat.multiply(_),_.cloneFromProps(this.transformMat.props);var $=_.props;this.nativeContext.setTransform($[0],$[1],$[4],$[5],$[12],$[13])},CVContextData.prototype.opacity=function(a){var _=this.stack[this.cArrPos].opacity;_*=a<0?0:a,this.stack[this.cArrPos].opacity!==_&&(this.currentOpacity!==a&&(this.nativeContext.globalAlpha=a,this.currentOpacity=a),this.stack[this.cArrPos].opacity=_)},CVContextData.prototype.fill=function(a){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(a)},CVContextData.prototype.fillRect=function(a,_,$,_e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(a,_,$,_e)},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(a,_,$){this.completeLayers=!1,this.layers=a.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(a,_,$),this.tm=a.tm?PropertyFactory.getProp(this,a.tm,0,_.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var a=this.canvasContext;a.beginPath(),a.moveTo(0,0),a.lineTo(this.data.w,0),a.lineTo(this.data.w,this.data.h),a.lineTo(0,this.data.h),a.lineTo(0,0),a.clip();var _,$=this.layers.length;for(_=$-1;_>=0;_-=1)(this.completeLayers||this.elements[_])&&this.elements[_].renderFrame()},CVCompElement.prototype.destroy=function(){var a,_=this.layers.length;for(a=_-1;a>=0;a-=1)this.elements[a]&&this.elements[a].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(a){return new CVCompElement(a,this.globalData,this)};function CanvasRenderer(a,_){this.animationItem=a,this.renderConfig={clearCanvas:_&&_.clearCanvas!==void 0?_.clearCanvas:!0,context:_&&_.context||null,progressiveLoad:_&&_.progressiveLoad||!1,preserveAspectRatio:_&&_.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:_&&_.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:_&&_.contentVisibility||"visible",className:_&&_.className||"",id:_&&_.id||"",runExpressions:!_||_.runExpressions===void 0||_.runExpressions},this.renderConfig.dpr=_&&_.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=_&&_.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(a){return new CVCompElement(a,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 _=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var $=this.finalTransform.mat.toCSS();_.transform=$,_.webkitTransform=$}this.finalTransform._opMdf&&(_.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(a,_,$){this.initElement(a,_,$)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var a;this.data.hasMask?(a=createNS("rect"),a.setAttribute("width",this.data.sw),a.setAttribute("height",this.data.sh),a.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(a=createTag("div"),a.style.width=this.data.sw+"px",a.style.height=this.data.sh+"px",a.style.backgroundColor=this.data.sc),this.layerElement.appendChild(a)};function HShapeElement(a,_,$){this.shapes=[],this.shapesData=a.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(a,_,$),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 a;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),a=this.svgElement;else{a=createNS("svg");var _=this.comp.data?this.comp.data:this.globalData.compSize;a.setAttribute("width",_.w),a.setAttribute("height",_.h),a.appendChild(this.shapesContainer),this.layerElement.appendChild(a)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=a},HShapeElement.prototype.getTransformedPoint=function(a,_){var $,_e=a.length;for($=0;$<_e;$+=1)_=a[$].mProps.v.applyToPointArray(_[0],_[1],0);return _},HShapeElement.prototype.calculateShapeBoundingBox=function(a,_){var $=a.sh.v,_e=a.transformers,et,tt=$._length,rt,nt,it,at;if(!(tt<=1)){for(et=0;et<tt-1;et+=1)rt=this.getTransformedPoint(_e,$.v[et]),nt=this.getTransformedPoint(_e,$.o[et]),it=this.getTransformedPoint(_e,$.i[et+1]),at=this.getTransformedPoint(_e,$.v[et+1]),this.checkBounds(rt,nt,it,at,_);$.c&&(rt=this.getTransformedPoint(_e,$.v[et]),nt=this.getTransformedPoint(_e,$.o[et]),it=this.getTransformedPoint(_e,$.i[0]),at=this.getTransformedPoint(_e,$.v[0]),this.checkBounds(rt,nt,it,at,_))}},HShapeElement.prototype.checkBounds=function(a,_,$,_e,et){this.getBoundsOfCurve(a,_,$,_e);var tt=this.shapeBoundingBox;et.x=bmMin(tt.left,et.x),et.xMax=bmMax(tt.right,et.xMax),et.y=bmMin(tt.top,et.y),et.yMax=bmMax(tt.bottom,et.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(a,_,$,_e){for(var et=[[a[0],_e[0]],[a[1],_e[1]]],tt,rt,nt,it,at,st,ut,ot=0;ot<2;++ot)rt=6*a[ot]-12*_[ot]+6*$[ot],tt=-3*a[ot]+9*_[ot]-9*$[ot]+3*_e[ot],nt=3*_[ot]-3*a[ot],rt|=0,tt|=0,nt|=0,tt===0&&rt===0||(tt===0?(it=-nt/rt,it>0&&it<1&&et[ot].push(this.calculateF(it,a,_,$,_e,ot))):(at=rt*rt-4*nt*tt,at>=0&&(st=(-rt+bmSqrt(at))/(2*tt),st>0&&st<1&&et[ot].push(this.calculateF(st,a,_,$,_e,ot)),ut=(-rt-bmSqrt(at))/(2*tt),ut>0&&ut<1&&et[ot].push(this.calculateF(ut,a,_,$,_e,ot)))));this.shapeBoundingBox.left=bmMin.apply(null,et[0]),this.shapeBoundingBox.top=bmMin.apply(null,et[1]),this.shapeBoundingBox.right=bmMax.apply(null,et[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,et[1])},HShapeElement.prototype.calculateF=function(a,_,$,_e,et,tt){return bmPow(1-a,3)*_[tt]+3*bmPow(1-a,2)*a*$[tt]+3*(1-a)*bmPow(a,2)*_e[tt]+bmPow(a,3)*et[tt]},HShapeElement.prototype.calculateBoundingBox=function(a,_){var $,_e=a.length;for($=0;$<_e;$+=1)a[$]&&a[$].sh?this.calculateShapeBoundingBox(a[$],_):a[$]&&a[$].it?this.calculateBoundingBox(a[$].it,_):a[$]&&a[$].style&&a[$].w&&this.expandStrokeBoundingBox(a[$].w,_)},HShapeElement.prototype.expandStrokeBoundingBox=function(a,_){var $=0;if(a.keyframes){for(var _e=0;_e<a.keyframes.length;_e+=1){var et=a.keyframes[_e].s;et>$&&($=et)}$*=a.mult}else $=a.v*a.mult;_.x-=$,_.xMax+=$,_.y-=$,_.yMax+=$},HShapeElement.prototype.currentBoxContains=function(a){return this.currentBBox.x<=a.x&&this.currentBBox.y<=a.y&&this.currentBBox.width+this.currentBBox.x>=a.x+a.width&&this.currentBBox.height+this.currentBBox.y>=a.y+a.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var a=this.tempBoundingBox,_=999999;if(a.x=_,a.xMax=-_,a.y=_,a.yMax=-_,this.calculateBoundingBox(this.itemsData,a),a.width=a.xMax<a.x?0:a.xMax-a.x,a.height=a.yMax<a.y?0:a.yMax-a.y,this.currentBoxContains(a))return;var $=!1;if(this.currentBBox.w!==a.width&&(this.currentBBox.w=a.width,this.shapeCont.setAttribute("width",a.width),$=!0),this.currentBBox.h!==a.height&&(this.currentBBox.h=a.height,this.shapeCont.setAttribute("height",a.height),$=!0),$||this.currentBBox.x!==a.x||this.currentBBox.y!==a.y){this.currentBBox.w=a.width,this.currentBBox.h=a.height,this.currentBBox.x=a.x,this.currentBBox.y=a.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var _e=this.shapeCont.style,et="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";_e.transform=et,_e.webkitTransform=et}}};function HTextElement(a,_,$){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(a,_,$)}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 a=createNS("g");this.maskedElement.appendChild(a),this.innerElem=a}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var a=this.textProperty.currentData;this.renderedLetters=createSizedArray(a.l?a.l.length:0);var _=this.innerElem.style,$=a.fc?this.buildColor(a.fc):"rgba(0,0,0,0)";_.fill=$,_.color=$,a.sc&&(_.stroke=this.buildColor(a.sc),_.strokeWidth=a.sw+"px");var _e=this.globalData.fontManager.getFontByName(a.f);if(!this.globalData.fontManager.chars)if(_.fontSize=a.finalSize+"px",_.lineHeight=a.finalSize+"px",_e.fClass)this.innerElem.className=_e.fClass;else{_.fontFamily=_e.fFamily;var et=a.fWeight,tt=a.fStyle;_.fontStyle=tt,_.fontWeight=et}var rt,nt,it=a.l;nt=it.length;var at,st,ut,ot=this.mHelper,pt,ht="",dt=0;for(rt=0;rt<nt;rt+=1){if(this.globalData.fontManager.chars?(this.textPaths[dt]?at=this.textPaths[dt]:(at=createNS("path"),at.setAttribute("stroke-linecap",lineCapEnum[1]),at.setAttribute("stroke-linejoin",lineJoinEnum[2]),at.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[dt]?(st=this.textSpans[dt],ut=st.children[0]):(st=createTag("div"),st.style.lineHeight=0,ut=createNS("svg"),ut.appendChild(at),styleDiv(st)))):this.isMasked?at=this.textPaths[dt]?this.textPaths[dt]:createNS("text"):this.textSpans[dt]?(st=this.textSpans[dt],at=this.textPaths[dt]):(st=createTag("span"),styleDiv(st),at=createTag("span"),styleDiv(at),st.appendChild(at)),this.globalData.fontManager.chars){var gt=this.globalData.fontManager.getCharData(a.finalText[rt],_e.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily),lt;if(gt?lt=gt.data:lt=null,ot.reset(),lt&<.shapes&<.shapes.length&&(pt=lt.shapes[0].it,ot.scale(a.finalSize/100,a.finalSize/100),ht=this.createPathShape(ot,pt),at.setAttribute("d",ht)),this.isMasked)this.innerElem.appendChild(at);else{if(this.innerElem.appendChild(st),lt&<.shapes){document.body.appendChild(ut);var ft=ut.getBBox();ut.setAttribute("width",ft.width+2),ut.setAttribute("height",ft.height+2),ut.setAttribute("viewBox",ft.x-1+" "+(ft.y-1)+" "+(ft.width+2)+" "+(ft.height+2));var ct=ut.style,mt="translate("+(ft.x-1)+"px,"+(ft.y-1)+"px)";ct.transform=mt,ct.webkitTransform=mt,it[rt].yOffset=ft.y-1}else ut.setAttribute("width",1),ut.setAttribute("height",1);st.appendChild(ut)}}else if(at.textContent=it[rt].val,at.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(at);else{this.innerElem.appendChild(st);var yt=at.style,Et="translate3d(0,"+-a.finalSize/1.2+"px,0)";yt.transform=Et,yt.webkitTransform=Et}this.isMasked?this.textSpans[dt]=at:this.textSpans[dt]=st,this.textSpans[dt].style.display="block",this.textPaths[dt]=at,dt+=1}for(;dt<this.textSpans.length;)this.textSpans[dt].style.display="none",dt+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var a;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),a=this.svgElement.style;var _="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";a.transform=_,a.webkitTransform=_}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var $,_e,et=0,tt=this.textAnimator.renderedLetters,rt=this.textProperty.currentData.l;_e=rt.length;var nt,it,at;for($=0;$<_e;$+=1)rt[$].n?et+=1:(it=this.textSpans[$],at=this.textPaths[$],nt=tt[et],et+=1,nt._mdf.m&&(this.isMasked?it.setAttribute("transform",nt.m):(it.style.webkitTransform=nt.m,it.style.transform=nt.m)),it.style.opacity=nt.o,nt.sw&&nt._mdf.sw&&at.setAttribute("stroke-width",nt.sw),nt.sc&&nt._mdf.sc&&at.setAttribute("stroke",nt.sc),nt.fc&&nt._mdf.fc&&(at.setAttribute("fill",nt.fc),at.style.color=nt.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var st=this.innerElem.getBBox();this.currentBBox.w!==st.width&&(this.currentBBox.w=st.width,this.svgElement.setAttribute("width",st.width)),this.currentBBox.h!==st.height&&(this.currentBBox.h=st.height,this.svgElement.setAttribute("height",st.height));var ut=1;if(this.currentBBox.w!==st.width+ut*2||this.currentBBox.h!==st.height+ut*2||this.currentBBox.x!==st.x-ut||this.currentBBox.y!==st.y-ut){this.currentBBox.w=st.width+ut*2,this.currentBBox.h=st.height+ut*2,this.currentBBox.x=st.x-ut,this.currentBBox.y=st.y-ut,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),a=this.svgElement.style;var ot="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=ot,a.webkitTransform=ot}}}};function HCameraElement(a,_,$){this.initFrame(),this.initBaseData(a,_,$),this.initHierarchy();var _e=PropertyFactory.getProp;if(this.pe=_e(this,a.pe,0,0,this),a.ks.p.s?(this.px=_e(this,a.ks.p.x,1,0,this),this.py=_e(this,a.ks.p.y,1,0,this),this.pz=_e(this,a.ks.p.z,1,0,this)):this.p=_e(this,a.ks.p,1,0,this),a.ks.a&&(this.a=_e(this,a.ks.a,1,0,this)),a.ks.or.k.length&&a.ks.or.k[0].to){var et,tt=a.ks.or.k.length;for(et=0;et<tt;et+=1)a.ks.or.k[et].to=null,a.ks.or.k[et].ti=null}this.or=_e(this,a.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=_e(this,a.ks.rx,0,degToRads,this),this.ry=_e(this,a.ks.ry,0,degToRads,this),this.rz=_e(this,a.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 a,_=this.comp.threeDElements.length,$,_e,et;for(a=0;a<_;a+=1)if($=this.comp.threeDElements[a],$.type==="3d"){_e=$.perspectiveElem.style,et=$.container.style;var tt=this.pe.v+"px",rt="0px 0px 0px",nt="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";_e.perspective=tt,_e.webkitPerspective=tt,et.transformOrigin=rt,et.mozTransformOrigin=rt,et.webkitTransformOrigin=rt,_e.transform=nt,_e.webkitTransform=nt}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var a=this._isFirstFrame,_,$;if(this.hierarchy)for($=this.hierarchy.length,_=0;_<$;_+=1)a=this.hierarchy[_].finalTransform.mProp._mdf||a;if(a||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($=this.hierarchy.length-1,_=$;_>=0;_-=1){var _e=this.hierarchy[_].finalTransform.mProp;this.mat.translate(-_e.p.v[0],-_e.p.v[1],_e.p.v[2]),this.mat.rotateX(-_e.or.v[0]).rotateY(-_e.or.v[1]).rotateZ(_e.or.v[2]),this.mat.rotateX(-_e.rx.v).rotateY(-_e.ry.v).rotateZ(_e.rz.v),this.mat.scale(1/_e.s.v[0],1/_e.s.v[1],1/_e.s.v[2]),this.mat.translate(_e.a.v[0],_e.a.v[1],_e.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 et;this.p?et=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:et=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var tt=Math.sqrt(Math.pow(et[0],2)+Math.pow(et[1],2)+Math.pow(et[2],2)),rt=[et[0]/tt,et[1]/tt,et[2]/tt],nt=Math.sqrt(rt[2]*rt[2]+rt[0]*rt[0]),it=Math.atan2(rt[1],nt),at=Math.atan2(rt[0],-rt[2]);this.mat.rotateY(at).rotateX(-it)}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 st=!this._prevMat.equals(this.mat);if((st||this.pe._mdf)&&this.comp.threeDElements){$=this.comp.threeDElements.length;var ut,ot,pt;for(_=0;_<$;_+=1)if(ut=this.comp.threeDElements[_],ut.type==="3d"){if(st){var ht=this.mat.toCSS();pt=ut.container.style,pt.transform=ht,pt.webkitTransform=ht}this.pe._mdf&&(ot=ut.perspectiveElem.style,ot.perspective=this.pe.v+"px",ot.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(a){this.prepareProperties(a,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(a,_,$){this.assetData=_.getAssetData(a.refId),this.initElement(a,_,$)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var a=this.globalData.getAssetsPath(this.assetData),_=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",a),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(_),_.crossOrigin="anonymous",_.src=a,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(a,_){this.animationItem=a,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:_&&_.className||"",imagePreserveAspectRatio:_&&_.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(_&&_.hideOnTransparent===!1),filterSize:{width:_&&_.filterSize&&_.filterSize.width||"400%",height:_&&_.filterSize&&_.filterSize.height||"400%",x:_&&_.filterSize&&_.filterSize.x||"-100%",y:_&&_.filterSize&&_.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 a=this.pendingElements.pop();a.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(a,_){var $=a.getBaseElement();if($){var _e=this.layers[_];if(!_e.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer($,_);else{for(var et=0,tt,rt,nt;et<_;)this.elements[et]&&this.elements[et]!==!0&&this.elements[et].getBaseElement&&(rt=this.elements[et],nt=this.layers[et].ddd?this.getThreeDContainerByPos(et):rt.getBaseElement(),tt=nt||tt),et+=1;tt?(!_e.ddd||!this.supports3d)&&this.layerElement.insertBefore($,tt):(!_e.ddd||!this.supports3d)&&this.layerElement.appendChild($)}else this.addTo3dContainer($,_)}},HybridRendererBase.prototype.createShape=function(a){return this.supports3d?new HShapeElement(a,this.globalData,this):new SVGShapeElement(a,this.globalData,this)},HybridRendererBase.prototype.createText=function(a){return this.supports3d?new HTextElement(a,this.globalData,this):new SVGTextLottieElement(a,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(a){return this.camera=new HCameraElement(a,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(a){return this.supports3d?new HImageElement(a,this.globalData,this):new IImageElement(a,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(a){return this.supports3d?new HSolidElement(a,this.globalData,this):new ISolidElement(a,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(a){for(var _=0,$=this.threeDElements.length;_<$;){if(this.threeDElements[_].startPos<=a&&this.threeDElements[_].endPos>=a)return this.threeDElements[_].perspectiveElem;_+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(a,_){var $=createTag("div"),_e,et;styleDiv($);var tt=createTag("div");if(styleDiv(tt),_==="3d"){_e=$.style,_e.width=this.globalData.compSize.w+"px",_e.height=this.globalData.compSize.h+"px";var rt="50% 50%";_e.webkitTransformOrigin=rt,_e.mozTransformOrigin=rt,_e.transformOrigin=rt,et=tt.style;var nt="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";et.transform=nt,et.webkitTransform=nt}$.appendChild(tt);var it={container:tt,perspectiveElem:$,startPos:a,endPos:a,type:_};return this.threeDElements.push(it),it},HybridRendererBase.prototype.build3dContainers=function(){var a,_=this.layers.length,$,_e="";for(a=0;a<_;a+=1)this.layers[a].ddd&&this.layers[a].ty!==3?(_e!=="3d"&&(_e="3d",$=this.createThreeDContainer(a,"3d")),$.endPos=Math.max($.endPos,a)):(_e!=="2d"&&(_e="2d",$=this.createThreeDContainer(a,"2d")),$.endPos=Math.max($.endPos,a));for(_=this.threeDElements.length,a=_-1;a>=0;a-=1)this.resizerElem.appendChild(this.threeDElements[a].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(a,_){for(var $=0,_e=this.threeDElements.length;$<_e;){if(_<=this.threeDElements[$].endPos){for(var et=this.threeDElements[$].startPos,tt;et<_;)this.elements[et]&&this.elements[et].getBaseElement&&(tt=this.elements[et].getBaseElement()),et+=1;tt?this.threeDElements[$].container.insertBefore(a,tt):this.threeDElements[$].container.appendChild(a);break}$+=1}},HybridRendererBase.prototype.configAnimation=function(a){var _=createTag("div"),$=this.animationItem.wrapper,_e=_.style;_e.width=a.w+"px",_e.height=a.h+"px",this.resizerElem=_,styleDiv(_),_e.transformStyle="flat",_e.mozTransformStyle="flat",_e.webkitTransformStyle="flat",this.renderConfig.className&&_.setAttribute("class",this.renderConfig.className),$.appendChild(_),_e.overflow="hidden";var et=createNS("svg");et.setAttribute("width","1"),et.setAttribute("height","1"),styleDiv(et),this.resizerElem.appendChild(et);var tt=createNS("defs");et.appendChild(tt),this.data=a,this.setupGlobalData(a,et),this.globalData.defs=tt,this.layers=a.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 a,_=this.layers?this.layers.length:0;for(a=0;a<_;a+=1)this.elements[a]&&this.elements[a].destroy&&this.elements[a].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var a=this.animationItem.wrapper.offsetWidth,_=this.animationItem.wrapper.offsetHeight,$=a/_,_e=this.globalData.compSize.w/this.globalData.compSize.h,et,tt,rt,nt;_e>$?(et=a/this.globalData.compSize.w,tt=a/this.globalData.compSize.w,rt=0,nt=(_-this.globalData.compSize.h*(a/this.globalData.compSize.w))/2):(et=_/this.globalData.compSize.h,tt=_/this.globalData.compSize.h,rt=(a-this.globalData.compSize.w*(_/this.globalData.compSize.h))/2,nt=0);var it=this.resizerElem.style;it.webkitTransform="matrix3d("+et+",0,0,0,0,"+tt+",0,0,0,0,1,0,"+rt+","+nt+",0,1)",it.transform=it.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 a=this.globalData.compSize.w,_=this.globalData.compSize.h,$,_e=this.threeDElements.length;for($=0;$<_e;$+=1){var et=this.threeDElements[$].perspectiveElem.style;et.webkitPerspective=Math.sqrt(Math.pow(a,2)+Math.pow(_,2))+"px",et.perspective=et.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(a){var _,$=a.length,_e=createTag("div");for(_=0;_<$;_+=1)if(a[_].xt){var et=this.createComp(a[_],_e,this.globalData.comp,null);et.initExpressions(),this.globalData.projectInterface.registerComposition(et)}};function HCompElement(a,_,$){this.layers=a.layers,this.supports3d=!a.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(a,_,$),this.tm=a.tm?PropertyFactory.getProp(this,a.tm,0,_.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(a,_){for(var $=0,_e;$<_;)this.elements[$]&&this.elements[$].getBaseElement&&(_e=this.elements[$].getBaseElement()),$+=1;_e?this.layerElement.insertBefore(a,_e):this.layerElement.appendChild(a)},HCompElement.prototype.createComp=function(a){return this.supports3d?new HCompElement(a,this.globalData,this):new SVGCompElement(a,this.globalData,this)};function HybridRenderer(a,_){this.animationItem=a,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:_&&_.className||"",imagePreserveAspectRatio:_&&_.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(_&&_.hideOnTransparent===!1),filterSize:{width:_&&_.filterSize&&_.filterSize.width||"400%",height:_&&_.filterSize&&_.filterSize.height||"400%",x:_&&_.filterSize&&_.filterSize.x||"-100%",y:_&&_.filterSize&&_.filterSize.y||"-100%"},runExpressions:!_||_.runExpressions===void 0||_.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(a){return this.supports3d?new HCompElement(a,this.globalData,this):new SVGCompElement(a,this.globalData,this)};var CompExpressionInterface=function(){return function(a){function _($){for(var _e=0,et=a.layers.length;_e<et;){if(a.layers[_e].nm===$||a.layers[_e].ind===$)return a.elements[_e].layerInterface;_e+=1}return null}return Object.defineProperty(_,"_name",{value:a.data.nm}),_.layer=_,_.pixelAspect=1,_.height=a.data.h||a.globalData.compSize.h,_.width=a.data.w||a.globalData.compSize.w,_.pixelAspect=1,_.frameDuration=1/a.globalData.frameRate,_.displayStartTime=0,_.numLayers=a.layers.length,_}}();function _typeof$2(a){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},_typeof$2(a)}function seedRandom(a,_){var $=this,_e=256,et=6,tt=52,rt="random",nt=_.pow(_e,et),it=_.pow(2,tt),at=it*2,st=_e-1,ut;function ot(ct,mt,yt){var Et=[];mt=mt===!0?{entropy:!0}:mt||{};var St=gt(dt(mt.entropy?[ct,ft(a)]:ct===null?lt():ct,3),Et),At=new pt(Et),Mt=function(){for(var kt=At.g(et),Pt=nt,Dt=0;kt<it;)kt=(kt+Dt)*_e,Pt*=_e,Dt=At.g(1);for(;kt>=at;)kt/=2,Pt/=2,Dt>>>=1;return(kt+Dt)/Pt};return Mt.int32=function(){return At.g(4)|0},Mt.quick=function(){return At.g(4)/4294967296},Mt.double=Mt,gt(ft(At.S),a),(mt.pass||yt||function(Nt,kt,Pt,Dt){return Dt&&(Dt.S&&ht(Dt,At),Nt.state=function(){return ht(At,{})}),Pt?(_[rt]=Nt,kt):Nt})(Mt,St,"global"in mt?mt.global:this==_,mt.state)}_["seed"+rt]=ot;function pt(ct){var mt,yt=ct.length,Et=this,St=0,At=Et.i=Et.j=0,Mt=Et.S=[];for(yt||(ct=[yt++]);St<_e;)Mt[St]=St++;for(St=0;St<_e;St++)Mt[St]=Mt[At=st&At+ct[St%yt]+(mt=Mt[St])],Mt[At]=mt;Et.g=function(Nt){for(var kt,Pt=0,Dt=Et.i,Ot=Et.j,wt=Et.S;Nt--;)kt=wt[Dt=st&Dt+1],Pt=Pt*_e+wt[st&(wt[Dt]=wt[Ot=st&Ot+kt])+(wt[Ot]=kt)];return Et.i=Dt,Et.j=Ot,Pt}}function ht(ct,mt){return mt.i=ct.i,mt.j=ct.j,mt.S=ct.S.slice(),mt}function dt(ct,mt){var yt=[],Et=_typeof$2(ct),St;if(mt&&Et=="object")for(St in ct)try{yt.push(dt(ct[St],mt-1))}catch{}return yt.length?yt:Et=="string"?ct:ct+"\0"}function gt(ct,mt){for(var yt=ct+"",Et,St=0;St<yt.length;)mt[st&St]=st&(Et^=mt[st&St]*19)+yt.charCodeAt(St++);return ft(mt)}function lt(){try{var ct=new Uint8Array(_e);return($.crypto||$.msCrypto).getRandomValues(ct),ft(ct)}catch{var mt=$.navigator,yt=mt&&mt.plugins;return[+new Date,$,yt,$.screen,ft(a)]}}function ft(ct){return String.fromCharCode.apply(0,ct)}gt(_.random(),a)}function initialize$2(a){seedRandom([],a)}var propTypes={SHAPE:"shape"};function _typeof$1(a){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},_typeof$1(a)}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(a){return a.constructor===Array||a.constructor===Float32Array}function isNumerable(a,_){return a==="number"||_ instanceof Number||a==="boolean"||a==="string"}function $bm_neg(a){var _=_typeof$1(a);if(_==="number"||a instanceof Number||_==="boolean")return-a;if($bm_isInstanceOfArray(a)){var $,_e=a.length,et=[];for($=0;$<_e;$+=1)et[$]=-a[$];return et}return a.propType?a.v:-a}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(a,_){var $=_typeof$1(a),_e=_typeof$1(_);if(isNumerable($,a)&&isNumerable(_e,_)||$==="string"||_e==="string")return a+_;if($bm_isInstanceOfArray(a)&&isNumerable(_e,_))return a=a.slice(0),a[0]+=_,a;if(isNumerable($,a)&&$bm_isInstanceOfArray(_))return _=_.slice(0),_[0]=a+_[0],_;if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(_)){for(var et=0,tt=a.length,rt=_.length,nt=[];et<tt||et<rt;)(typeof a[et]=="number"||a[et]instanceof Number)&&(typeof _[et]=="number"||_[et]instanceof Number)?nt[et]=a[et]+_[et]:nt[et]=_[et]===void 0?a[et]:a[et]||_[et],et+=1;return nt}return 0}var add=sum;function sub(a,_){var $=_typeof$1(a),_e=_typeof$1(_);if(isNumerable($,a)&&isNumerable(_e,_))return $==="string"&&(a=parseInt(a,10)),_e==="string"&&(_=parseInt(_,10)),a-_;if($bm_isInstanceOfArray(a)&&isNumerable(_e,_))return a=a.slice(0),a[0]-=_,a;if(isNumerable($,a)&&$bm_isInstanceOfArray(_))return _=_.slice(0),_[0]=a-_[0],_;if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(_)){for(var et=0,tt=a.length,rt=_.length,nt=[];et<tt||et<rt;)(typeof a[et]=="number"||a[et]instanceof Number)&&(typeof _[et]=="number"||_[et]instanceof Number)?nt[et]=a[et]-_[et]:nt[et]=_[et]===void 0?a[et]:a[et]||_[et],et+=1;return nt}return 0}function mul(a,_){var $=_typeof$1(a),_e=_typeof$1(_),et;if(isNumerable($,a)&&isNumerable(_e,_))return a*_;var tt,rt;if($bm_isInstanceOfArray(a)&&isNumerable(_e,_)){for(rt=a.length,et=createTypedArray("float32",rt),tt=0;tt<rt;tt+=1)et[tt]=a[tt]*_;return et}if(isNumerable($,a)&&$bm_isInstanceOfArray(_)){for(rt=_.length,et=createTypedArray("float32",rt),tt=0;tt<rt;tt+=1)et[tt]=a*_[tt];return et}return 0}function div(a,_){var $=_typeof$1(a),_e=_typeof$1(_),et;if(isNumerable($,a)&&isNumerable(_e,_))return a/_;var tt,rt;if($bm_isInstanceOfArray(a)&&isNumerable(_e,_)){for(rt=a.length,et=createTypedArray("float32",rt),tt=0;tt<rt;tt+=1)et[tt]=a[tt]/_;return et}if(isNumerable($,a)&&$bm_isInstanceOfArray(_)){for(rt=_.length,et=createTypedArray("float32",rt),tt=0;tt<rt;tt+=1)et[tt]=a/_[tt];return et}return 0}function mod(a,_){return typeof a=="string"&&(a=parseInt(a,10)),typeof _=="string"&&(_=parseInt(_,10)),a%_}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(a,_,$){if(_>$){var _e=$;$=_,_=_e}return Math.min(Math.max(a,_),$)}function radiansToDegrees(a){return a/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(a){return a*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(a,_){if(typeof a=="number"||a instanceof Number)return _=_||0,Math.abs(a-_);_||(_=helperLengthArray);var $,_e=Math.min(a.length,_.length),et=0;for($=0;$<_e;$+=1)et+=Math.pow(_[$]-a[$],2);return Math.sqrt(et)}function normalize(a){return div(a,length(a))}function rgbToHsl(a){var _=a[0],$=a[1],_e=a[2],et=Math.max(_,$,_e),tt=Math.min(_,$,_e),rt,nt,it=(et+tt)/2;if(et===tt)rt=0,nt=0;else{var at=et-tt;switch(nt=it>.5?at/(2-et-tt):at/(et+tt),et){case _:rt=($-_e)/at+($<_e?6:0);break;case $:rt=(_e-_)/at+2;break;case _e:rt=(_-$)/at+4;break}rt/=6}return[rt,nt,it,a[3]]}function hue2rgb(a,_,$){return $<0&&($+=1),$>1&&($-=1),$<1/6?a+(_-a)*6*$:$<1/2?_:$<2/3?a+(_-a)*(2/3-$)*6:a}function hslToRgb(a){var _=a[0],$=a[1],_e=a[2],et,tt,rt;if($===0)et=_e,rt=_e,tt=_e;else{var nt=_e<.5?_e*(1+$):_e+$-_e*$,it=2*_e-nt;et=hue2rgb(it,nt,_+1/3),tt=hue2rgb(it,nt,_),rt=hue2rgb(it,nt,_-1/3)}return[et,tt,rt,a[3]]}function linear(a,_,$,_e,et){if((_e===void 0||et===void 0)&&(_e=_,et=$,_=0,$=1),$<_){var tt=$;$=_,_=tt}if(a<=_)return _e;if(a>=$)return et;var rt=$===_?0:(a-_)/($-_);if(!_e.length)return _e+(et-_e)*rt;var nt,it=_e.length,at=createTypedArray("float32",it);for(nt=0;nt<it;nt+=1)at[nt]=_e[nt]+(et[nt]-_e[nt])*rt;return at}function random(a,_){if(_===void 0&&(a===void 0?(a=0,_=1):(_=a,a=void 0)),_.length){var $,_e=_.length;a||(a=createTypedArray("float32",_e));var et=createTypedArray("float32",_e),tt=BMMath.random();for($=0;$<_e;$+=1)et[$]=a[$]+tt*(_[$]-a[$]);return et}a===void 0&&(a=0);var rt=BMMath.random();return a+rt*(_-a)}function createPath(a,_,$,_e){var et,tt=a.length,rt=shapePool.newElement();rt.setPathData(!!_e,tt);var nt=[0,0],it,at;for(et=0;et<tt;et+=1)it=_&&_[et]?_[et]:nt,at=$&&$[et]?$[et]:nt,rt.setTripleAt(a[et][0],a[et][1],at[0]+a[et][0],at[1]+a[et][1],it[0]+a[et][0],it[1]+a[et][1],et,!0);return rt}function initiateExpression(elem,data,property){function noOp(a){return a}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 a(_,$){var _e,et,tt=this.pv.length?this.pv.length:1,rt=createTypedArray("float32",tt);_=5;var nt=Math.floor(time*_);for(_e=0,et=0;_e<nt;){for(et=0;et<tt;et+=1)rt[et]+=-$+$*2*BMMath.random();_e+=1}var it=time*_,at=it-Math.floor(it),st=createTypedArray("float32",tt);if(tt>1){for(et=0;et<tt;et+=1)st[et]=this.pv[et]+rt[et]+(-$+$*2*BMMath.random())*at;return st}return this.pv+rt[0]+(-$+$*2*BMMath.random())*at}).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(a,_){return loopIn(a,_,!0)}function loopOutDuration(a,_){return loopOut(a,_,!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(a,_){var $=[_[0]-a[0],_[1]-a[1],_[2]-a[2]],_e=Math.atan2($[0],Math.sqrt($[1]*$[1]+$[2]*$[2]))/degToRads,et=-Math.atan2($[1],$[2])/degToRads;return[et,_e,0]}function easeOut(a,_,$,_e,et){return applyEase(easeOutBez,a,_,$,_e,et)}function easeIn(a,_,$,_e,et){return applyEase(easeInBez,a,_,$,_e,et)}function ease(a,_,$,_e,et){return applyEase(easeInOutBez,a,_,$,_e,et)}function applyEase(a,_,$,_e,et,tt){et===void 0?(et=$,tt=_e):_=(_-$)/(_e-$),_>1?_=1:_<0&&(_=0);var rt=a(_);if($bm_isInstanceOfArray(et)){var nt,it=et.length,at=createTypedArray("float32",it);for(nt=0;nt<it;nt+=1)at[nt]=(tt[nt]-et[nt])*rt+et[nt];return at}return(tt-et)*rt+et}function nearestKey(a){var _,$=data.k.length,_e,et;if(!data.k.length||typeof data.k[0]=="number")_e=0,et=0;else if(_e=-1,a*=elem.comp.globalData.frameRate,a<data.k[0].t)_e=1,et=data.k[0].t;else{for(_=0;_<$-1;_+=1)if(a===data.k[_].t){_e=_+1,et=data.k[_].t;break}else if(a>data.k[_].t&&a<data.k[_+1].t){a-data.k[_].t>data.k[_+1].t-a?(_e=_+2,et=data.k[_+1].t):(_e=_+1,et=data.k[_].t);break}_e===-1&&(_e=_+1,et=data.k[_].t)}var tt={};return tt.index=_e,tt.time=et/elem.comp.globalData.frameRate,tt}function key(a){var _,$,_e;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+a);a-=1,_={time:data.k[a].t/elem.comp.globalData.frameRate,value:[]};var et=Object.prototype.hasOwnProperty.call(data.k[a],"s")?data.k[a].s:data.k[a-1].e;for(_e=et.length,$=0;$<_e;$+=1)_[$]=et[$],_.value[$]=et[$];return _}function framesToTime(a,_){return _||(_=elem.comp.globalData.frameRate),a/_}function timeToFrames(a,_){return!a&&a!==0&&(a=time),_||(_=elem.comp.globalData.frameRate),a*_}function seedRandom(a){BMMath.seedrandom(randSeed+a)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(a,_){return typeof value=="string"?_===void 0?value.substring(a):value.substring(a,_):""}function substr(a,_){return typeof value=="string"?_===void 0?value.substr(a):value.substr(a,_):""}function posterizeTime(a){time=a===0?0:Math.floor(time*a)/a,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(a){return value=a,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 a={};a.initExpressions=_,a.resetFrame=ExpressionManager.resetFrame;function _($){var _e=0,et=[];function tt(){_e+=1}function rt(){_e-=1,_e===0&&it()}function nt(at){et.indexOf(at)===-1&&et.push(at)}function it(){var at,st=et.length;for(at=0;at<st;at+=1)et[at].release();et.length=0}$.renderer.compInterface=CompExpressionInterface($.renderer),$.renderer.globalData.projectInterface.registerComposition($.renderer),$.renderer.globalData.pushExpression=tt,$.renderer.globalData.popExpression=rt,$.renderer.globalData.registerExpressionProperty=nt}return a}(),MaskManagerInterface=function(){function a($,_e){this._mask=$,this._data=_e}Object.defineProperty(a.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(a.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var _=function(_e){var et=createSizedArray(_e.viewData.length),tt,rt=_e.viewData.length;for(tt=0;tt<rt;tt+=1)et[tt]=new a(_e.viewData[tt],_e.masksProperties[tt]);var nt=function(at){for(tt=0;tt<rt;){if(_e.masksProperties[tt].nm===at)return et[tt];tt+=1}return null};return nt};return _}(),ExpressionPropertyInterface=function(){var a={pv:0,v:0,mult:1},_={pv:[0,0,0],v:[0,0,0],mult:1};function $(rt,nt,it){Object.defineProperty(rt,"velocity",{get:function(){return nt.getVelocityAtTime(nt.comp.currentFrame)}}),rt.numKeys=nt.keyframes?nt.keyframes.length:0,rt.key=function(at){if(!rt.numKeys)return 0;var st="";"s"in nt.keyframes[at-1]?st=nt.keyframes[at-1].s:"e"in nt.keyframes[at-2]?st=nt.keyframes[at-2].e:st=nt.keyframes[at-2].s;var ut=it==="unidimensional"?new Number(st):Object.assign({},st);return ut.time=nt.keyframes[at-1].t/nt.elem.comp.globalData.frameRate,ut.value=it==="unidimensional"?st[0]:st,ut},rt.valueAtTime=nt.getValueAtTime,rt.speedAtTime=nt.getSpeedAtTime,rt.velocityAtTime=nt.getVelocityAtTime,rt.propertyGroup=nt.propertyGroup}function _e(rt){(!rt||!("pv"in rt))&&(rt=a);var nt=1/rt.mult,it=rt.pv*nt,at=new Number(it);return at.value=it,$(at,rt,"unidimensional"),function(){return rt.k&&rt.getValue(),it=rt.v*nt,at.value!==it&&(at=new Number(it),at.value=it,at[0]=it,$(at,rt,"unidimensional")),at}}function et(rt){(!rt||!("pv"in rt))&&(rt=_);var nt=1/rt.mult,it=rt.data&&rt.data.l||rt.pv.length,at=createTypedArray("float32",it),st=createTypedArray("float32",it);return at.value=st,$(at,rt,"multidimensional"),function(){rt.k&&rt.getValue();for(var ut=0;ut<it;ut+=1)st[ut]=rt.v[ut]*nt,at[ut]=st[ut];return at}}function tt(){return a}return function(rt){return rt?rt.propType==="unidimensional"?_e(rt):et(rt):tt}}(),TransformExpressionInterface=function(){return function(a){function _(rt){switch(rt){case"scale":case"Scale":case"ADBE Scale":case 6:return _.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return _.rotation;case"ADBE Rotate X":return _.xRotation;case"ADBE Rotate Y":return _.yRotation;case"position":case"Position":case"ADBE Position":case 2:return _.position;case"ADBE Position_0":return _.xPosition;case"ADBE Position_1":return _.yPosition;case"ADBE Position_2":return _.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return _.anchorPoint;case"opacity":case"Opacity":case 11:return _.opacity;default:return null}}Object.defineProperty(_,"rotation",{get:ExpressionPropertyInterface(a.r||a.rz)}),Object.defineProperty(_,"zRotation",{get:ExpressionPropertyInterface(a.rz||a.r)}),Object.defineProperty(_,"xRotation",{get:ExpressionPropertyInterface(a.rx)}),Object.defineProperty(_,"yRotation",{get:ExpressionPropertyInterface(a.ry)}),Object.defineProperty(_,"scale",{get:ExpressionPropertyInterface(a.s)});var $,_e,et,tt;return a.p?tt=ExpressionPropertyInterface(a.p):($=ExpressionPropertyInterface(a.px),_e=ExpressionPropertyInterface(a.py),a.pz&&(et=ExpressionPropertyInterface(a.pz))),Object.defineProperty(_,"position",{get:function(){return a.p?tt():[$(),_e(),et?et():0]}}),Object.defineProperty(_,"xPosition",{get:ExpressionPropertyInterface(a.px)}),Object.defineProperty(_,"yPosition",{get:ExpressionPropertyInterface(a.py)}),Object.defineProperty(_,"zPosition",{get:ExpressionPropertyInterface(a.pz)}),Object.defineProperty(_,"anchorPoint",{get:ExpressionPropertyInterface(a.a)}),Object.defineProperty(_,"opacity",{get:ExpressionPropertyInterface(a.o)}),Object.defineProperty(_,"skew",{get:ExpressionPropertyInterface(a.sk)}),Object.defineProperty(_,"skewAxis",{get:ExpressionPropertyInterface(a.sa)}),Object.defineProperty(_,"orientation",{get:ExpressionPropertyInterface(a.or)}),_}}(),LayerExpressionInterface=function(){function a(at){var st=new Matrix;if(at!==void 0){var ut=this._elem.finalTransform.mProp.getValueAtTime(at);ut.clone(st)}else{var ot=this._elem.finalTransform.mProp;ot.applyToMatrix(st)}return st}function _(at,st){var ut=this.getMatrix(st);return ut.props[12]=0,ut.props[13]=0,ut.props[14]=0,this.applyPoint(ut,at)}function $(at,st){var ut=this.getMatrix(st);return this.applyPoint(ut,at)}function _e(at,st){var ut=this.getMatrix(st);return ut.props[12]=0,ut.props[13]=0,ut.props[14]=0,this.invertPoint(ut,at)}function et(at,st){var ut=this.getMatrix(st);return this.invertPoint(ut,at)}function tt(at,st){if(this._elem.hierarchy&&this._elem.hierarchy.length){var ut,ot=this._elem.hierarchy.length;for(ut=0;ut<ot;ut+=1)this._elem.hierarchy[ut].finalTransform.mProp.applyToMatrix(at)}return at.applyToPointArray(st[0],st[1],st[2]||0)}function rt(at,st){if(this._elem.hierarchy&&this._elem.hierarchy.length){var ut,ot=this._elem.hierarchy.length;for(ut=0;ut<ot;ut+=1)this._elem.hierarchy[ut].finalTransform.mProp.applyToMatrix(at)}return at.inversePoint(st)}function nt(at){var st=new Matrix;if(st.reset(),this._elem.finalTransform.mProp.applyToMatrix(st),this._elem.hierarchy&&this._elem.hierarchy.length){var ut,ot=this._elem.hierarchy.length;for(ut=0;ut<ot;ut+=1)this._elem.hierarchy[ut].finalTransform.mProp.applyToMatrix(st);return st.inversePoint(at)}return st.inversePoint(at)}function it(){return[1,1,1,1]}return function(at){var st;function ut(dt){pt.mask=new MaskManagerInterface(dt,at)}function ot(dt){pt.effect=dt}function pt(dt){switch(dt){case"ADBE Root Vectors Group":case"Contents":case 2:return pt.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return st;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return pt.effect;case"ADBE Text Properties":return pt.textInterface;default:return null}}pt.getMatrix=a,pt.invertPoint=rt,pt.applyPoint=tt,pt.toWorld=$,pt.toWorldVec=_,pt.fromWorld=et,pt.fromWorldVec=_e,pt.toComp=$,pt.fromComp=nt,pt.sampleImage=it,pt.sourceRectAtTime=at.sourceRectAtTime.bind(at),pt._elem=at,st=TransformExpressionInterface(at.finalTransform.mProp);var ht=getDescriptor(st,"anchorPoint");return Object.defineProperties(pt,{hasParent:{get:function(){return at.hierarchy.length}},parent:{get:function(){return at.hierarchy[0].layerInterface}},rotation:getDescriptor(st,"rotation"),scale:getDescriptor(st,"scale"),position:getDescriptor(st,"position"),opacity:getDescriptor(st,"opacity"),anchorPoint:ht,anchor_point:ht,transform:{get:function(){return st}},active:{get:function(){return at.isInRange}}}),pt.startTime=at.data.st,pt.index=at.data.ind,pt.source=at.data.refId,pt.height=at.data.ty===0?at.data.h:100,pt.width=at.data.ty===0?at.data.w:100,pt.inPoint=at.data.ip/at.comp.globalData.frameRate,pt.outPoint=at.data.op/at.comp.globalData.frameRate,pt._name=at.data.nm,pt.registerMaskInterface=ut,pt.registerEffectsInterface=ot,pt}}(),propertyGroupFactory=function(){return function(a,_){return function($){return $=$===void 0?1:$,$<=0?a:_($-1)}}}(),PropertyInterface=function(){return function(a,_){var $={_name:a};function _e(et){return et=et===void 0?1:et,et<=0?$:_(et-1)}return _e}}(),EffectsExpressionInterface=function(){var a={createEffectsInterface:_};function _(et,tt){if(et.effectsManager){var rt=[],nt=et.data.ef,it,at=et.effectsManager.effectElements.length;for(it=0;it<at;it+=1)rt.push($(nt[it],et.effectsManager.effectElements[it],tt,et));var st=et.data.ef||[],ut=function(pt){for(it=0,at=st.length;it<at;){if(pt===st[it].nm||pt===st[it].mn||pt===st[it].ix)return rt[it];it+=1}return null};return Object.defineProperty(ut,"numProperties",{get:function(){return st.length}}),ut}return null}function $(et,tt,rt,nt){function it(pt){for(var ht=et.ef,dt=0,gt=ht.length;dt<gt;){if(pt===ht[dt].nm||pt===ht[dt].mn||pt===ht[dt].ix)return ht[dt].ty===5?st[dt]:st[dt]();dt+=1}throw new Error}var at=propertyGroupFactory(it,rt),st=[],ut,ot=et.ef.length;for(ut=0;ut<ot;ut+=1)et.ef[ut].ty===5?st.push($(et.ef[ut],tt.effectElements[ut],tt.effectElements[ut].propertyGroup,nt)):st.push(_e(tt.effectElements[ut],et.ef[ut].ty,nt,at));return et.mn==="ADBE Color Control"&&Object.defineProperty(it,"color",{get:function(){return st[0]()}}),Object.defineProperties(it,{numProperties:{get:function(){return et.np}},_name:{value:et.nm},propertyGroup:{value:at}}),it.enabled=et.en!==0,it.active=it.enabled,it}function _e(et,tt,rt,nt){var it=ExpressionPropertyInterface(et.p);function at(){return tt===10?rt.comp.compInterface(et.p.v):it()}return et.p.setGroupProperty&&et.p.setGroupProperty(PropertyInterface("",nt)),at}return a}(),ShapePathInterface=function(){return function(_,$,_e){var et=$.sh;function tt(nt){return nt==="Shape"||nt==="shape"||nt==="Path"||nt==="path"||nt==="ADBE Vector Shape"||nt===2?tt.path:null}var rt=propertyGroupFactory(tt,_e);return et.setGroupProperty(PropertyInterface("Path",rt)),Object.defineProperties(tt,{path:{get:function(){return et.k&&et.getValue(),et}},shape:{get:function(){return et.k&&et.getValue(),et}},_name:{value:_.nm},ix:{value:_.ix},propertyIndex:{value:_.ix},mn:{value:_.mn},propertyGroup:{value:_e}}),tt}}(),ShapeExpressionInterface=function(){function a(ht,dt,gt){var lt=[],ft,ct=ht?ht.length:0;for(ft=0;ft<ct;ft+=1)ht[ft].ty==="gr"?lt.push($(ht[ft],dt[ft],gt)):ht[ft].ty==="fl"?lt.push(_e(ht[ft],dt[ft],gt)):ht[ft].ty==="st"?lt.push(rt(ht[ft],dt[ft],gt)):ht[ft].ty==="tm"?lt.push(nt(ht[ft],dt[ft],gt)):ht[ft].ty==="tr"||(ht[ft].ty==="el"?lt.push(at(ht[ft],dt[ft],gt)):ht[ft].ty==="sr"?lt.push(st(ht[ft],dt[ft],gt)):ht[ft].ty==="sh"?lt.push(ShapePathInterface(ht[ft],dt[ft],gt)):ht[ft].ty==="rc"?lt.push(ut(ht[ft],dt[ft],gt)):ht[ft].ty==="rd"?lt.push(ot(ht[ft],dt[ft],gt)):ht[ft].ty==="rp"?lt.push(pt(ht[ft],dt[ft],gt)):ht[ft].ty==="gf"?lt.push(et(ht[ft],dt[ft],gt)):lt.push(tt(ht[ft],dt[ft])));return lt}function _(ht,dt,gt){var lt,ft=function(yt){for(var Et=0,St=lt.length;Et<St;){if(lt[Et]._name===yt||lt[Et].mn===yt||lt[Et].propertyIndex===yt||lt[Et].ix===yt||lt[Et].ind===yt)return lt[Et];Et+=1}return typeof yt=="number"?lt[yt-1]:null};ft.propertyGroup=propertyGroupFactory(ft,gt),lt=a(ht.it,dt.it,ft.propertyGroup),ft.numProperties=lt.length;var ct=it(ht.it[ht.it.length-1],dt.it[dt.it.length-1],ft.propertyGroup);return ft.transform=ct,ft.propertyIndex=ht.cix,ft._name=ht.nm,ft}function $(ht,dt,gt){var lt=function(yt){switch(yt){case"ADBE Vectors Group":case"Contents":case 2:return lt.content;default:return lt.transform}};lt.propertyGroup=propertyGroupFactory(lt,gt);var ft=_(ht,dt,lt.propertyGroup),ct=it(ht.it[ht.it.length-1],dt.it[dt.it.length-1],lt.propertyGroup);return lt.content=ft,lt.transform=ct,Object.defineProperty(lt,"_name",{get:function(){return ht.nm}}),lt.numProperties=ht.np,lt.propertyIndex=ht.ix,lt.nm=ht.nm,lt.mn=ht.mn,lt}function _e(ht,dt,gt){function lt(ft){return ft==="Color"||ft==="color"?lt.color:ft==="Opacity"||ft==="opacity"?lt.opacity:null}return Object.defineProperties(lt,{color:{get:ExpressionPropertyInterface(dt.c)},opacity:{get:ExpressionPropertyInterface(dt.o)},_name:{value:ht.nm},mn:{value:ht.mn}}),dt.c.setGroupProperty(PropertyInterface("Color",gt)),dt.o.setGroupProperty(PropertyInterface("Opacity",gt)),lt}function et(ht,dt,gt){function lt(ft){return ft==="Start Point"||ft==="start point"?lt.startPoint:ft==="End Point"||ft==="end point"?lt.endPoint:ft==="Opacity"||ft==="opacity"?lt.opacity:null}return Object.defineProperties(lt,{startPoint:{get:ExpressionPropertyInterface(dt.s)},endPoint:{get:ExpressionPropertyInterface(dt.e)},opacity:{get:ExpressionPropertyInterface(dt.o)},type:{get:function(){return"a"}},_name:{value:ht.nm},mn:{value:ht.mn}}),dt.s.setGroupProperty(PropertyInterface("Start Point",gt)),dt.e.setGroupProperty(PropertyInterface("End Point",gt)),dt.o.setGroupProperty(PropertyInterface("Opacity",gt)),lt}function tt(){function ht(){return null}return ht}function rt(ht,dt,gt){var lt=propertyGroupFactory(St,gt),ft=propertyGroupFactory(Et,lt);function ct(At){Object.defineProperty(Et,ht.d[At].nm,{get:ExpressionPropertyInterface(dt.d.dataProps[At].p)})}var mt,yt=ht.d?ht.d.length:0,Et={};for(mt=0;mt<yt;mt+=1)ct(mt),dt.d.dataProps[mt].p.setGroupProperty(ft);function St(At){return At==="Color"||At==="color"?St.color:At==="Opacity"||At==="opacity"?St.opacity:At==="Stroke Width"||At==="stroke width"?St.strokeWidth:null}return Object.defineProperties(St,{color:{get:ExpressionPropertyInterface(dt.c)},opacity:{get:ExpressionPropertyInterface(dt.o)},strokeWidth:{get:ExpressionPropertyInterface(dt.w)},dash:{get:function(){return Et}},_name:{value:ht.nm},mn:{value:ht.mn}}),dt.c.setGroupProperty(PropertyInterface("Color",lt)),dt.o.setGroupProperty(PropertyInterface("Opacity",lt)),dt.w.setGroupProperty(PropertyInterface("Stroke Width",lt)),St}function nt(ht,dt,gt){function lt(ct){return ct===ht.e.ix||ct==="End"||ct==="end"?lt.end:ct===ht.s.ix?lt.start:ct===ht.o.ix?lt.offset:null}var ft=propertyGroupFactory(lt,gt);return lt.propertyIndex=ht.ix,dt.s.setGroupProperty(PropertyInterface("Start",ft)),dt.e.setGroupProperty(PropertyInterface("End",ft)),dt.o.setGroupProperty(PropertyInterface("Offset",ft)),lt.propertyIndex=ht.ix,lt.propertyGroup=gt,Object.defineProperties(lt,{start:{get:ExpressionPropertyInterface(dt.s)},end:{get:ExpressionPropertyInterface(dt.e)},offset:{get:ExpressionPropertyInterface(dt.o)},_name:{value:ht.nm}}),lt.mn=ht.mn,lt}function it(ht,dt,gt){function lt(ct){return ht.a.ix===ct||ct==="Anchor Point"?lt.anchorPoint:ht.o.ix===ct||ct==="Opacity"?lt.opacity:ht.p.ix===ct||ct==="Position"?lt.position:ht.r.ix===ct||ct==="Rotation"||ct==="ADBE Vector Rotation"?lt.rotation:ht.s.ix===ct||ct==="Scale"?lt.scale:ht.sk&&ht.sk.ix===ct||ct==="Skew"?lt.skew:ht.sa&&ht.sa.ix===ct||ct==="Skew Axis"?lt.skewAxis:null}var ft=propertyGroupFactory(lt,gt);return dt.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",ft)),dt.transform.mProps.p.setGroupProperty(PropertyInterface("Position",ft)),dt.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",ft)),dt.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",ft)),dt.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",ft)),dt.transform.mProps.sk&&(dt.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",ft)),dt.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",ft))),dt.transform.op.setGroupProperty(PropertyInterface("Opacity",ft)),Object.defineProperties(lt,{opacity:{get:ExpressionPropertyInterface(dt.transform.mProps.o)},position:{get:ExpressionPropertyInterface(dt.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(dt.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(dt.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(dt.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(dt.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(dt.transform.mProps.sa)},_name:{value:ht.nm}}),lt.ty="tr",lt.mn=ht.mn,lt.propertyGroup=gt,lt}function at(ht,dt,gt){function lt(mt){return ht.p.ix===mt?lt.position:ht.s.ix===mt?lt.size:null}var ft=propertyGroupFactory(lt,gt);lt.propertyIndex=ht.ix;var ct=dt.sh.ty==="tm"?dt.sh.prop:dt.sh;return ct.s.setGroupProperty(PropertyInterface("Size",ft)),ct.p.setGroupProperty(PropertyInterface("Position",ft)),Object.defineProperties(lt,{size:{get:ExpressionPropertyInterface(ct.s)},position:{get:ExpressionPropertyInterface(ct.p)},_name:{value:ht.nm}}),lt.mn=ht.mn,lt}function st(ht,dt,gt){function lt(mt){return ht.p.ix===mt?lt.position:ht.r.ix===mt?lt.rotation:ht.pt.ix===mt?lt.points:ht.or.ix===mt||mt==="ADBE Vector Star Outer Radius"?lt.outerRadius:ht.os.ix===mt?lt.outerRoundness:ht.ir&&(ht.ir.ix===mt||mt==="ADBE Vector Star Inner Radius")?lt.innerRadius:ht.is&&ht.is.ix===mt?lt.innerRoundness:null}var ft=propertyGroupFactory(lt,gt),ct=dt.sh.ty==="tm"?dt.sh.prop:dt.sh;return lt.propertyIndex=ht.ix,ct.or.setGroupProperty(PropertyInterface("Outer Radius",ft)),ct.os.setGroupProperty(PropertyInterface("Outer Roundness",ft)),ct.pt.setGroupProperty(PropertyInterface("Points",ft)),ct.p.setGroupProperty(PropertyInterface("Position",ft)),ct.r.setGroupProperty(PropertyInterface("Rotation",ft)),ht.ir&&(ct.ir.setGroupProperty(PropertyInterface("Inner Radius",ft)),ct.is.setGroupProperty(PropertyInterface("Inner Roundness",ft))),Object.defineProperties(lt,{position:{get:ExpressionPropertyInterface(ct.p)},rotation:{get:ExpressionPropertyInterface(ct.r)},points:{get:ExpressionPropertyInterface(ct.pt)},outerRadius:{get:ExpressionPropertyInterface(ct.or)},outerRoundness:{get:ExpressionPropertyInterface(ct.os)},innerRadius:{get:ExpressionPropertyInterface(ct.ir)},innerRoundness:{get:ExpressionPropertyInterface(ct.is)},_name:{value:ht.nm}}),lt.mn=ht.mn,lt}function ut(ht,dt,gt){function lt(mt){return ht.p.ix===mt?lt.position:ht.r.ix===mt?lt.roundness:ht.s.ix===mt||mt==="Size"||mt==="ADBE Vector Rect Size"?lt.size:null}var ft=propertyGroupFactory(lt,gt),ct=dt.sh.ty==="tm"?dt.sh.prop:dt.sh;return lt.propertyIndex=ht.ix,ct.p.setGroupProperty(PropertyInterface("Position",ft)),ct.s.setGroupProperty(PropertyInterface("Size",ft)),ct.r.setGroupProperty(PropertyInterface("Rotation",ft)),Object.defineProperties(lt,{position:{get:ExpressionPropertyInterface(ct.p)},roundness:{get:ExpressionPropertyInterface(ct.r)},size:{get:ExpressionPropertyInterface(ct.s)},_name:{value:ht.nm}}),lt.mn=ht.mn,lt}function ot(ht,dt,gt){function lt(mt){return ht.r.ix===mt||mt==="Round Corners 1"?lt.radius:null}var ft=propertyGroupFactory(lt,gt),ct=dt;return lt.propertyIndex=ht.ix,ct.rd.setGroupProperty(PropertyInterface("Radius",ft)),Object.defineProperties(lt,{radius:{get:ExpressionPropertyInterface(ct.rd)},_name:{value:ht.nm}}),lt.mn=ht.mn,lt}function pt(ht,dt,gt){function lt(mt){return ht.c.ix===mt||mt==="Copies"?lt.copies:ht.o.ix===mt||mt==="Offset"?lt.offset:null}var ft=propertyGroupFactory(lt,gt),ct=dt;return lt.propertyIndex=ht.ix,ct.c.setGroupProperty(PropertyInterface("Copies",ft)),ct.o.setGroupProperty(PropertyInterface("Offset",ft)),Object.defineProperties(lt,{copies:{get:ExpressionPropertyInterface(ct.c)},offset:{get:ExpressionPropertyInterface(ct.o)},_name:{value:ht.nm}}),lt.mn=ht.mn,lt}return function(ht,dt,gt){var lt;function ft(mt){if(typeof mt=="number")return mt=mt===void 0?1:mt,mt===0?gt:lt[mt-1];for(var yt=0,Et=lt.length;yt<Et;){if(lt[yt]._name===mt)return lt[yt];yt+=1}return null}function ct(){return gt}return ft.propertyGroup=propertyGroupFactory(ft,ct),lt=a(ht,dt,ft.propertyGroup),ft.numProperties=lt.length,ft._name="Contents",ft}}(),TextExpressionInterface=function(){return function(a){var _;function $(_e){switch(_e){case"ADBE Text Document":return $.sourceText;default:return null}}return Object.defineProperty($,"sourceText",{get:function(){a.textProperty.getValue();var et=a.textProperty.currentData.t;return(!_||et!==_.value)&&(_=new String(et),_.value=et||new String(et),Object.defineProperty(_,"style",{get:function(){return{fillColor:a.textProperty.currentData.fc}}})),_}}),$}}();function _typeof(a){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},_typeof(a)}var FootageInterface=function(){var a=function(_e){var et="",tt=_e.getFootageData();function rt(){return et="",tt=_e.getFootageData(),nt}function nt(it){if(tt[it])return et=it,tt=tt[it],_typeof(tt)==="object"?nt:tt;var at=it.indexOf(et);if(at!==-1){var st=parseInt(it.substr(at+et.length),10);return tt=tt[st],_typeof(tt)==="object"?nt:tt}return""}return rt},_=function(_e){function et(tt){return tt==="Outline"?et.outlineInterface():null}return et._name="Outline",et.outlineInterface=a(_e),et};return function($){function _e(et){return et==="Data"?_e.dataInterface:null}return _e._name="Data",_e.dataInterface=_($),_e}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(a){return interfaces[a]||null}var expressionHelpers=function(){function a(rt,nt,it){nt.x&&(it.k=!0,it.x=!0,it.initiateExpression=ExpressionManager.initiateExpression,it.effectsSequence.push(it.initiateExpression(rt,nt,it).bind(it)))}function _(rt){return rt*=this.elem.globalData.frameRate,rt-=this.offsetTime,rt!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<rt?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(rt,this._cachingAtTime),this._cachingAtTime.lastFrame=rt),this._cachingAtTime.value}function $(rt){var nt=-.01,it=this.getValueAtTime(rt),at=this.getValueAtTime(rt+nt),st=0;if(it.length){var ut;for(ut=0;ut<it.length;ut+=1)st+=Math.pow(at[ut]-it[ut],2);st=Math.sqrt(st)*100}else st=0;return st}function _e(rt){if(this.vel!==void 0)return this.vel;var nt=-.001,it=this.getValueAtTime(rt),at=this.getValueAtTime(rt+nt),st;if(it.length){st=createTypedArray("float32",it.length);var ut;for(ut=0;ut<it.length;ut+=1)st[ut]=(at[ut]-it[ut])/nt}else st=(at-it)/nt;return st}function et(){return this.pv}function tt(rt){this.propertyGroup=rt}return{searchExpressions:a,getSpeedAtTime:$,getVelocityAtTime:_e,getValueAtTime:_,getStaticValueAtTime:et,setGroupProperty:tt}}();function addPropertyDecorator(){function a(ot,pt,ht){if(!this.k||!this.keyframes)return this.pv;ot=ot?ot.toLowerCase():"";var dt=this.comp.renderedFrame,gt=this.keyframes,lt=gt[gt.length-1].t;if(dt<=lt)return this.pv;var ft,ct;ht?(pt?ft=Math.abs(lt-this.elem.comp.globalData.frameRate*pt):ft=Math.max(0,lt-this.elem.data.ip),ct=lt-ft):((!pt||pt>gt.length-1)&&(pt=gt.length-1),ct=gt[gt.length-1-pt].t,ft=lt-ct);var mt,yt,Et;if(ot==="pingpong"){var St=Math.floor((dt-ct)/ft);if(St%2!==0)return this.getValueAtTime((ft-(dt-ct)%ft+ct)/this.comp.globalData.frameRate,0)}else if(ot==="offset"){var At=this.getValueAtTime(ct/this.comp.globalData.frameRate,0),Mt=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),Nt=this.getValueAtTime(((dt-ct)%ft+ct)/this.comp.globalData.frameRate,0),kt=Math.floor((dt-ct)/ft);if(this.pv.length){for(Et=new Array(At.length),yt=Et.length,mt=0;mt<yt;mt+=1)Et[mt]=(Mt[mt]-At[mt])*kt+Nt[mt];return Et}return(Mt-At)*kt+Nt}else if(ot==="continue"){var Pt=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),Dt=this.getValueAtTime((lt-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Et=new Array(Pt.length),yt=Et.length,mt=0;mt<yt;mt+=1)Et[mt]=Pt[mt]+(Pt[mt]-Dt[mt])*((dt-lt)/this.comp.globalData.frameRate)/5e-4;return Et}return Pt+(Pt-Dt)*((dt-lt)/.001)}return this.getValueAtTime(((dt-ct)%ft+ct)/this.comp.globalData.frameRate,0)}function _(ot,pt,ht){if(!this.k)return this.pv;ot=ot?ot.toLowerCase():"";var dt=this.comp.renderedFrame,gt=this.keyframes,lt=gt[0].t;if(dt>=lt)return this.pv;var ft,ct;ht?(pt?ft=Math.abs(this.elem.comp.globalData.frameRate*pt):ft=Math.max(0,this.elem.data.op-lt),ct=lt+ft):((!pt||pt>gt.length-1)&&(pt=gt.length-1),ct=gt[pt].t,ft=ct-lt);var mt,yt,Et;if(ot==="pingpong"){var St=Math.floor((lt-dt)/ft);if(St%2===0)return this.getValueAtTime(((lt-dt)%ft+lt)/this.comp.globalData.frameRate,0)}else if(ot==="offset"){var At=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),Mt=this.getValueAtTime(ct/this.comp.globalData.frameRate,0),Nt=this.getValueAtTime((ft-(lt-dt)%ft+lt)/this.comp.globalData.frameRate,0),kt=Math.floor((lt-dt)/ft)+1;if(this.pv.length){for(Et=new Array(At.length),yt=Et.length,mt=0;mt<yt;mt+=1)Et[mt]=Nt[mt]-(Mt[mt]-At[mt])*kt;return Et}return Nt-(Mt-At)*kt}else if(ot==="continue"){var Pt=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),Dt=this.getValueAtTime((lt+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Et=new Array(Pt.length),yt=Et.length,mt=0;mt<yt;mt+=1)Et[mt]=Pt[mt]+(Pt[mt]-Dt[mt])*(lt-dt)/.001;return Et}return Pt+(Pt-Dt)*(lt-dt)/.001}return this.getValueAtTime((ft-((lt-dt)%ft+lt))/this.comp.globalData.frameRate,0)}function $(ot,pt){if(!this.k)return this.pv;if(ot=(ot||.4)*.5,pt=Math.floor(pt||5),pt<=1)return this.pv;var ht=this.comp.renderedFrame/this.comp.globalData.frameRate,dt=ht-ot,gt=ht+ot,lt=pt>1?(gt-dt)/(pt-1):1,ft=0,ct=0,mt;this.pv.length?mt=createTypedArray("float32",this.pv.length):mt=0;for(var yt;ft<pt;){if(yt=this.getValueAtTime(dt+ft*lt),this.pv.length)for(ct=0;ct<this.pv.length;ct+=1)mt[ct]+=yt[ct];else mt+=yt;ft+=1}if(this.pv.length)for(ct=0;ct<this.pv.length;ct+=1)mt[ct]/=pt;else mt/=pt;return mt}function _e(ot){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var pt=this._transformCachingAtTime.v;if(pt.cloneFromProps(this.pre.props),this.appliedTransformations<1){var ht=this.a.getValueAtTime(ot);pt.translate(-ht[0]*this.a.mult,-ht[1]*this.a.mult,ht[2]*this.a.mult)}if(this.appliedTransformations<2){var dt=this.s.getValueAtTime(ot);pt.scale(dt[0]*this.s.mult,dt[1]*this.s.mult,dt[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var gt=this.sk.getValueAtTime(ot),lt=this.sa.getValueAtTime(ot);pt.skewFromAxis(-gt*this.sk.mult,lt*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var ft=this.r.getValueAtTime(ot);pt.rotate(-ft*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var ct=this.rz.getValueAtTime(ot),mt=this.ry.getValueAtTime(ot),yt=this.rx.getValueAtTime(ot),Et=this.or.getValueAtTime(ot);pt.rotateZ(-ct*this.rz.mult).rotateY(mt*this.ry.mult).rotateX(yt*this.rx.mult).rotateZ(-Et[2]*this.or.mult).rotateY(Et[1]*this.or.mult).rotateX(Et[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var St=this.px.getValueAtTime(ot),At=this.py.getValueAtTime(ot);if(this.data.p.z){var Mt=this.pz.getValueAtTime(ot);pt.translate(St*this.px.mult,At*this.py.mult,-Mt*this.pz.mult)}else pt.translate(St*this.px.mult,At*this.py.mult,0)}else{var Nt=this.p.getValueAtTime(ot);pt.translate(Nt[0]*this.p.mult,Nt[1]*this.p.mult,-Nt[2]*this.p.mult)}return pt}function et(){return this.v.clone(new Matrix)}var tt=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(ot,pt,ht){var dt=tt(ot,pt,ht);return dt.dynamicProperties.length?dt.getValueAtTime=_e.bind(dt):dt.getValueAtTime=et.bind(dt),dt.setGroupProperty=expressionHelpers.setGroupProperty,dt};var rt=PropertyFactory.getProp;PropertyFactory.getProp=function(ot,pt,ht,dt,gt){var lt=rt(ot,pt,ht,dt,gt);lt.kf?lt.getValueAtTime=expressionHelpers.getValueAtTime.bind(lt):lt.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(lt),lt.setGroupProperty=expressionHelpers.setGroupProperty,lt.loopOut=a,lt.loopIn=_,lt.smooth=$,lt.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(lt),lt.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(lt),lt.numKeys=pt.a===1?pt.k.length:0,lt.propertyIndex=pt.ix;var ft=0;return ht!==0&&(ft=createTypedArray("float32",pt.a===1?pt.k[0].s.length:pt.k.length)),lt._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:ft},expressionHelpers.searchExpressions(ot,pt,lt),lt.k&>.addDynamicProperty(lt),lt};function nt(ot){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),ot*=this.elem.globalData.frameRate,ot-=this.offsetTime,ot!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<ot?this._caching.lastIndex:0,this._cachingAtTime.lastTime=ot,this.interpolateShape(ot,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var it=ShapePropertyFactory.getConstructorFunction(),at=ShapePropertyFactory.getKeyframedConstructorFunction();function st(){}st.prototype={vertices:function(pt,ht){this.k&&this.getValue();var dt=this.v;ht!==void 0&&(dt=this.getValueAtTime(ht,0));var gt,lt=dt._length,ft=dt[pt],ct=dt.v,mt=createSizedArray(lt);for(gt=0;gt<lt;gt+=1)pt==="i"||pt==="o"?mt[gt]=[ft[gt][0]-ct[gt][0],ft[gt][1]-ct[gt][1]]:mt[gt]=[ft[gt][0],ft[gt][1]];return mt},points:function(pt){return this.vertices("v",pt)},inTangents:function(pt){return this.vertices("i",pt)},outTangents:function(pt){return this.vertices("o",pt)},isClosed:function(){return this.v.c},pointOnPath:function(pt,ht){var dt=this.v;ht!==void 0&&(dt=this.getValueAtTime(ht,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(dt));for(var gt=this._segmentsLength,lt=gt.lengths,ft=gt.totalLength*pt,ct=0,mt=lt.length,yt=0,Et;ct<mt;){if(yt+lt[ct].addedLength>ft){var St=ct,At=dt.c&&ct===mt-1?0:ct+1,Mt=(ft-yt)/lt[ct].addedLength;Et=bez.getPointInSegment(dt.v[St],dt.v[At],dt.o[St],dt.i[At],Mt,lt[ct]);break}else yt+=lt[ct].addedLength;ct+=1}return Et||(Et=dt.c?[dt.v[0][0],dt.v[0][1]]:[dt.v[dt._length-1][0],dt.v[dt._length-1][1]]),Et},vectorOnPath:function(pt,ht,dt){pt==1?pt=this.v.c:pt==0&&(pt=.999);var gt=this.pointOnPath(pt,ht),lt=this.pointOnPath(pt+.001,ht),ft=lt[0]-gt[0],ct=lt[1]-gt[1],mt=Math.sqrt(Math.pow(ft,2)+Math.pow(ct,2));if(mt===0)return[0,0];var yt=dt==="tangent"?[ft/mt,ct/mt]:[-ct/mt,ft/mt];return yt},tangentOnPath:function(pt,ht){return this.vectorOnPath(pt,ht,"tangent")},normalOnPath:function(pt,ht){return this.vectorOnPath(pt,ht,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([st],it),extendPrototype([st],at),at.prototype.getValueAtTime=nt,at.prototype.initiateExpression=ExpressionManager.initiateExpression;var ut=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(ot,pt,ht,dt,gt){var lt=ut(ot,pt,ht,dt,gt);return lt.propertyIndex=pt.ix,lt.lock=!1,ht===3?expressionHelpers.searchExpressions(ot,pt.pt,lt):ht===4&&expressionHelpers.searchExpressions(ot,pt.ks,lt),lt.k&&ot.addDynamicProperty(lt),lt}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function a(){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(_,$){var _e=this.calculateExpression($);if(_.t!==_e){var et={};return this.copyData(et,_),et.t=_e.toString(),et.__complete=!1,et}return _},TextProperty.prototype.searchProperty=function(){var _=this.searchKeyframes(),$=this.searchExpressions();return this.kf=_||$,this.kf},TextProperty.prototype.searchExpressions=a}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function a(_,$){var _e=createNS("feMerge");_e.setAttribute("result",_);var et,tt;for(tt=0;tt<$.length;tt+=1)et=createNS("feMergeNode"),et.setAttribute("in",$[tt]),_e.appendChild(et),_e.appendChild(et);return _e}};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(a,_,$,_e,et){this.filterManager=_;var tt=createNS("feColorMatrix");tt.setAttribute("type","matrix"),tt.setAttribute("color-interpolation-filters","linearRGB"),tt.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=tt,tt.setAttribute("result",_e+"_tint_1"),a.appendChild(tt),tt=createNS("feColorMatrix"),tt.setAttribute("type","matrix"),tt.setAttribute("color-interpolation-filters","sRGB"),tt.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),tt.setAttribute("result",_e+"_tint_2"),a.appendChild(tt),this.matrixFilter=tt;var rt=this.createMergeNode(_e,[et,_e+"_tint_1",_e+"_tint_2"]);a.appendChild(rt)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var _=this.filterManager.effectElements[0].p.v,$=this.filterManager.effectElements[1].p.v,_e=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+_e+" 0"),this.matrixFilter.setAttribute("values",$[0]-_[0]+" 0 0 0 "+_[0]+" "+($[1]-_[1])+" 0 0 0 "+_[1]+" "+($[2]-_[2])+" 0 0 0 "+_[2]+" 0 0 0 1 0")}};function SVGFillFilter(a,_,$,_e){this.filterManager=_;var et=createNS("feColorMatrix");et.setAttribute("type","matrix"),et.setAttribute("color-interpolation-filters","sRGB"),et.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),et.setAttribute("result",_e),a.appendChild(et),this.matrixFilter=et}SVGFillFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var _=this.filterManager.effectElements[2].p.v,$=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+_[0]+" 0 0 0 0 "+_[1]+" 0 0 0 0 "+_[2]+" 0 0 0 "+$+" 0")}};function SVGStrokeEffect(a,_,$){this.initialized=!1,this.filterManager=_,this.elem=$,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var a=this.elem.layerElement.children||this.elem.layerElement.childNodes,_,$,_e,et;for(this.filterManager.effectElements[1].p.v===1?(et=this.elem.maskManager.masksProperties.length,_e=0):(_e=this.filterManager.effectElements[0].p.v-1,et=_e+1),$=createNS("g"),$.setAttribute("fill","none"),$.setAttribute("stroke-linecap","round"),$.setAttribute("stroke-dashoffset",1),_e;_e<et;_e+=1)_=createNS("path"),$.appendChild(_),this.paths.push({p:_,m:_e});if(this.filterManager.effectElements[10].p.v===3){var tt=createNS("mask"),rt=createElementID();tt.setAttribute("id",rt),tt.setAttribute("mask-type","alpha"),tt.appendChild($),this.elem.globalData.defs.appendChild(tt);var nt=createNS("g");for(nt.setAttribute("mask","url("+getLocationHref()+"#"+rt+")");a[0];)nt.appendChild(a[0]);this.elem.layerElement.appendChild(nt),this.masker=tt,$.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(a=this.elem.layerElement.children||this.elem.layerElement.childNodes;a.length;)this.elem.layerElement.removeChild(a[0]);this.elem.layerElement.appendChild($),this.elem.layerElement.removeAttribute("mask"),$.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=$},SVGStrokeEffect.prototype.renderFrame=function(a){this.initialized||this.initialize();var _,$=this.paths.length,_e,et;for(_=0;_<$;_+=1)if(this.paths[_].m!==-1&&(_e=this.elem.maskManager.viewData[this.paths[_].m],et=this.paths[_].p,(a||this.filterManager._mdf||_e.prop._mdf)&&et.setAttribute("d",_e.lastPath),a||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||_e.prop._mdf)){var tt;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var rt=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,nt=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,it=et.getTotalLength();tt="0 0 0 "+it*rt+" ";var at=it*(nt-rt),st=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,ut=Math.floor(at/st),ot;for(ot=0;ot<ut;ot+=1)tt+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";tt+="0 "+it*10+" 0 0"}else tt="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;et.setAttribute("stroke-dasharray",tt)}if((a||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(a||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)&&(a||this.filterManager.effectElements[3].p._mdf)){var pt=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(pt[0]*255)+","+bmFloor(pt[1]*255)+","+bmFloor(pt[2]*255)+")")}};function SVGTritoneFilter(a,_,$,_e){this.filterManager=_;var et=createNS("feColorMatrix");et.setAttribute("type","matrix"),et.setAttribute("color-interpolation-filters","linearRGB"),et.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"),a.appendChild(et);var tt=createNS("feComponentTransfer");tt.setAttribute("color-interpolation-filters","sRGB"),tt.setAttribute("result",_e),this.matrixFilter=tt;var rt=createNS("feFuncR");rt.setAttribute("type","table"),tt.appendChild(rt),this.feFuncR=rt;var nt=createNS("feFuncG");nt.setAttribute("type","table"),tt.appendChild(nt),this.feFuncG=nt;var it=createNS("feFuncB");it.setAttribute("type","table"),tt.appendChild(it),this.feFuncB=it,a.appendChild(tt)}SVGTritoneFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var _=this.filterManager.effectElements[0].p.v,$=this.filterManager.effectElements[1].p.v,_e=this.filterManager.effectElements[2].p.v,et=_e[0]+" "+$[0]+" "+_[0],tt=_e[1]+" "+$[1]+" "+_[1],rt=_e[2]+" "+$[2]+" "+_[2];this.feFuncR.setAttribute("tableValues",et),this.feFuncG.setAttribute("tableValues",tt),this.feFuncB.setAttribute("tableValues",rt)}};function SVGProLevelsFilter(a,_,$,_e){this.filterManager=_;var et=this.filterManager.effectElements,tt=createNS("feComponentTransfer");(et[10].p.k||et[10].p.v!==0||et[11].p.k||et[11].p.v!==1||et[12].p.k||et[12].p.v!==1||et[13].p.k||et[13].p.v!==0||et[14].p.k||et[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",tt)),(et[17].p.k||et[17].p.v!==0||et[18].p.k||et[18].p.v!==1||et[19].p.k||et[19].p.v!==1||et[20].p.k||et[20].p.v!==0||et[21].p.k||et[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",tt)),(et[24].p.k||et[24].p.v!==0||et[25].p.k||et[25].p.v!==1||et[26].p.k||et[26].p.v!==1||et[27].p.k||et[27].p.v!==0||et[28].p.k||et[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",tt)),(et[31].p.k||et[31].p.v!==0||et[32].p.k||et[32].p.v!==1||et[33].p.k||et[33].p.v!==1||et[34].p.k||et[34].p.v!==0||et[35].p.k||et[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",tt)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(tt.setAttribute("color-interpolation-filters","sRGB"),a.appendChild(tt)),(et[3].p.k||et[3].p.v!==0||et[4].p.k||et[4].p.v!==1||et[5].p.k||et[5].p.v!==1||et[6].p.k||et[6].p.v!==0||et[7].p.k||et[7].p.v!==1)&&(tt=createNS("feComponentTransfer"),tt.setAttribute("color-interpolation-filters","sRGB"),tt.setAttribute("result",_e),a.appendChild(tt),this.feFuncRComposed=this.createFeFunc("feFuncR",tt),this.feFuncGComposed=this.createFeFunc("feFuncG",tt),this.feFuncBComposed=this.createFeFunc("feFuncB",tt))}SVGProLevelsFilter.prototype.createFeFunc=function(a,_){var $=createNS(a);return $.setAttribute("type","table"),_.appendChild($),$},SVGProLevelsFilter.prototype.getTableValue=function(a,_,$,_e,et){for(var tt=0,rt=256,nt,it=Math.min(a,_),at=Math.max(a,_),st=Array.call(null,{length:rt}),ut,ot=0,pt=et-_e,ht=_-a;tt<=256;)nt=tt/256,nt<=it?ut=ht<0?et:_e:nt>=at?ut=ht<0?_e:et:ut=_e+pt*Math.pow((nt-a)/ht,1/$),st[ot]=ut,ot+=1,tt+=256/(rt-1);return st.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var _,$=this.filterManager.effectElements;this.feFuncRComposed&&(a||$[3].p._mdf||$[4].p._mdf||$[5].p._mdf||$[6].p._mdf||$[7].p._mdf)&&(_=this.getTableValue($[3].p.v,$[4].p.v,$[5].p.v,$[6].p.v,$[7].p.v),this.feFuncRComposed.setAttribute("tableValues",_),this.feFuncGComposed.setAttribute("tableValues",_),this.feFuncBComposed.setAttribute("tableValues",_)),this.feFuncR&&(a||$[10].p._mdf||$[11].p._mdf||$[12].p._mdf||$[13].p._mdf||$[14].p._mdf)&&(_=this.getTableValue($[10].p.v,$[11].p.v,$[12].p.v,$[13].p.v,$[14].p.v),this.feFuncR.setAttribute("tableValues",_)),this.feFuncG&&(a||$[17].p._mdf||$[18].p._mdf||$[19].p._mdf||$[20].p._mdf||$[21].p._mdf)&&(_=this.getTableValue($[17].p.v,$[18].p.v,$[19].p.v,$[20].p.v,$[21].p.v),this.feFuncG.setAttribute("tableValues",_)),this.feFuncB&&(a||$[24].p._mdf||$[25].p._mdf||$[26].p._mdf||$[27].p._mdf||$[28].p._mdf)&&(_=this.getTableValue($[24].p.v,$[25].p.v,$[26].p.v,$[27].p.v,$[28].p.v),this.feFuncB.setAttribute("tableValues",_)),this.feFuncA&&(a||$[31].p._mdf||$[32].p._mdf||$[33].p._mdf||$[34].p._mdf||$[35].p._mdf)&&(_=this.getTableValue($[31].p.v,$[32].p.v,$[33].p.v,$[34].p.v,$[35].p.v),this.feFuncA.setAttribute("tableValues",_))}};function SVGDropShadowEffect(a,_,$,_e,et){var tt=_.container.globalData.renderConfig.filterSize,rt=_.data.fs||tt;a.setAttribute("x",rt.x||tt.x),a.setAttribute("y",rt.y||tt.y),a.setAttribute("width",rt.width||tt.width),a.setAttribute("height",rt.height||tt.height),this.filterManager=_;var nt=createNS("feGaussianBlur");nt.setAttribute("in","SourceAlpha"),nt.setAttribute("result",_e+"_drop_shadow_1"),nt.setAttribute("stdDeviation","0"),this.feGaussianBlur=nt,a.appendChild(nt);var it=createNS("feOffset");it.setAttribute("dx","25"),it.setAttribute("dy","0"),it.setAttribute("in",_e+"_drop_shadow_1"),it.setAttribute("result",_e+"_drop_shadow_2"),this.feOffset=it,a.appendChild(it);var at=createNS("feFlood");at.setAttribute("flood-color","#00ff00"),at.setAttribute("flood-opacity","1"),at.setAttribute("result",_e+"_drop_shadow_3"),this.feFlood=at,a.appendChild(at);var st=createNS("feComposite");st.setAttribute("in",_e+"_drop_shadow_3"),st.setAttribute("in2",_e+"_drop_shadow_2"),st.setAttribute("operator","in"),st.setAttribute("result",_e+"_drop_shadow_4"),a.appendChild(st);var ut=this.createMergeNode(_e,[_e+"_drop_shadow_4",et]);a.appendChild(ut)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){if((a||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),a||this.filterManager.effectElements[0].p._mdf){var _=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(_[0]*255),Math.round(_[1]*255),Math.round(_[2]*255)))}if((a||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),a||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var $=this.filterManager.effectElements[3].p.v,_e=(this.filterManager.effectElements[2].p.v-90)*degToRads,et=$*Math.cos(_e),tt=$*Math.sin(_e);this.feOffset.setAttribute("dx",et),this.feOffset.setAttribute("dy",tt)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(a,_,$){this.initialized=!1,this.filterManager=_,this.filterElem=a,this.elem=$,$.matteElement=createNS("g"),$.matteElement.appendChild($.layerElement),$.matteElement.appendChild($.transformedElement),$.baseElement=$.matteElement}SVGMatte3Effect.prototype.findSymbol=function(a){for(var _=0,$=_svgMatteSymbols.length;_<$;){if(_svgMatteSymbols[_]===a)return _svgMatteSymbols[_];_+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(a,_){var $=a.layerElement.parentNode;if($){for(var _e=$.children,et=0,tt=_e.length;et<tt&&_e[et]!==a.layerElement;)et+=1;var rt;et<=tt-2&&(rt=_e[et+1]);var nt=createNS("use");nt.setAttribute("href","#"+_),rt?$.insertBefore(nt,rt):$.appendChild(nt)}},SVGMatte3Effect.prototype.setElementAsMask=function(a,_){if(!this.findSymbol(_)){var $=createElementID(),_e=createNS("mask");_e.setAttribute("id",_.layerId),_e.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(_);var et=a.globalData.defs;et.appendChild(_e);var tt=createNS("symbol");tt.setAttribute("id",$),this.replaceInParent(_,$),tt.appendChild(_.layerElement),et.appendChild(tt);var rt=createNS("use");rt.setAttribute("href","#"+$),_e.appendChild(rt),_.data.hd=!1,_.show()}a.setMatte(_.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var a=this.filterManager.effectElements[0].p.v,_=this.elem.comp.elements,$=0,_e=_.length;$<_e;)_[$]&&_[$].data.ind===a&&this.setElementAsMask(this.elem,_[$]),$+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(a,_,$,_e){a.setAttribute("x","-100%"),a.setAttribute("y","-100%"),a.setAttribute("width","300%"),a.setAttribute("height","300%"),this.filterManager=_;var et=createNS("feGaussianBlur");et.setAttribute("result",_e),a.appendChild(et),this.feGaussianBlur=et}SVGGaussianBlurEffect.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var _=.3,$=this.filterManager.effectElements[0].p.v*_,_e=this.filterManager.effectElements[1].p.v,et=_e==3?0:$,tt=_e==2?0:$;this.feGaussianBlur.setAttribute("stdDeviation",et+" "+tt);var rt=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",rt)}};function TransformEffect(){}TransformEffect.prototype.init=function(a){this.effectsManager=a,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(a){if(this._opMdf=!1,this._mdf=!1,a||this.effectsManager._mdf){var _=this.effectsManager.effectElements,$=_[0].p.v,_e=_[1].p.v,et=_[2].p.v===1,tt=_[3].p.v,rt=et?tt:_[4].p.v,nt=_[5].p.v,it=_[6].p.v,at=_[7].p.v;this.matrix.reset(),this.matrix.translate(-$[0],-$[1],$[2]),this.matrix.scale(rt*.01,tt*.01,1),this.matrix.rotate(-at*degToRads),this.matrix.skewFromAxis(-nt*degToRads,(it+90)*degToRads),this.matrix.translate(_e[0],_e[1],0),this._mdf=!0,this.opacity!==_[8].p.v&&(this.opacity=_[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(a,_){this.init(_)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(a){this.init(a)}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$1(a,_){(_==null||_>a.length)&&(_=a.length);for(var $=0,_e=Array(_);$<_;$++)_e[$]=a[$];return _e}function _arrayWithHoles$1(a){if(Array.isArray(a))return a}function _defineProperty$2(a,_,$){return(_=_toPropertyKey(_))in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}function _iterableToArrayLimit$1(a,_){var $=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if($!=null){var _e,et,tt,rt,nt=[],it=!0,at=!1;try{if(tt=($=$.call(a)).next,_!==0)for(;!(it=(_e=tt.call($)).done)&&(nt.push(_e.value),nt.length!==_);it=!0);}catch(st){at=!0,et=st}finally{try{if(!it&&$.return!=null&&(rt=$.return(),Object(rt)!==rt))return}finally{if(at)throw et}}return nt}}function _nonIterableRest$1(){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
|
|
50
|
-
_e.goToAndStop(dt-_e.firstFrame-1,!0)}ht.type==="loop"&&(st===null||st!==ht.frames||_e.isPaused)&&(_e.playSegments(ht.frames,!0),st=ht.frames),ht.type==="play"&&_e.isPaused&&(_e.resetSegments(!0),_e.play()),ht.type==="stop"&&_e.goToAndStop(ht.frames[0]-_e.firstFrame-1,!0)}};return document.addEventListener("scroll",ut),function(){document.removeEventListener("scroll",ut)}},it=function(){var st=function(ht,dt){var gt=ht,lt=dt;if(gt!==-1&<!==-1){var ft=getContainerCursorPosition(rt,gt,lt);gt=ft.x,lt=ft.y}var ct=tt.find(function(Et){var St=Et.position;return St&&Array.isArray(St.x)&&Array.isArray(St.y)?gt>=St.x[0]&><=St.x[1]&<>=St.y[0]&<<=St.y[1]:St&&!Number.isNaN(St.x)&&!Number.isNaN(St.y)?gt===St.x&<===St.y:!1});if(ct){if(ct.type==="seek"&&ct.position&&Array.isArray(ct.position.x)&&Array.isArray(ct.position.y)&&ct.frames.length===2){var mt=(gt-ct.position.x[0])/(ct.position.x[1]-ct.position.x[0]),yt=(lt-ct.position.y[0])/(ct.position.y[1]-ct.position.y[0]);_e.playSegments(ct.frames,!0),_e.goToAndStop(Math.ceil((mt+yt)/2*(ct.frames[1]-ct.frames[0])),!0)}ct.type==="loop"&&_e.playSegments(ct.frames,!0),ct.type==="play"&&(_e.isPaused&&_e.resetSegments(!1),_e.playSegments(ct.frames)),ct.type==="stop"&&_e.goToAndStop(ct.frames[0],!0)}},ut=function(ht){st(ht.clientX,ht.clientY)},ot=function(){st(-1,-1)};return rt.addEventListener("mousemove",ut),rt.addEventListener("mouseout",ot),function(){rt.removeEventListener("mousemove",ut),rt.removeEventListener("mouseout",ot)}};switch(et){case"scroll":return nt();case"cursor":return it()}}},[et,_e])},useLottieInteractivity=function a(_){var $=_.actions,_e=_.mode,et=_.lottieObj,tt=et.animationItem,rt=et.View,nt=et.animationContainerRef;return useInitInteractivity({actions:$,animationItem:tt,mode:_e,wrapperRef:nt}),rt},_excluded$7=["style","interactivity"],Lottie=function a(_){var $,_e,et,tt=_.style,rt=_.interactivity,nt=_objectWithoutProperties$1(_,_excluded$7),it=useLottie(nt,tt),at=it.View,st=it.play,ut=it.stop,ot=it.pause,pt=it.setSpeed,ht=it.goToAndStop,dt=it.goToAndPlay,gt=it.setDirection,lt=it.playSegments,ft=it.setSubframe,ct=it.getDuration,mt=it.destroy,yt=it.animationContainerRef,Et=it.animationLoaded,St=it.animationItem;return reactExports.useEffect(function(){_.lottieRef&&(_.lottieRef.current={play:st,stop:ut,pause:ot,setSpeed:pt,goToAndPlay:dt,goToAndStop:ht,setDirection:gt,playSegments:lt,setSubframe:ft,getDuration:ct,destroy:mt,animationContainerRef:yt,animationLoaded:Et,animationItem:St})},[($=_.lottieRef)===null||$===void 0?void 0:$.current]),useLottieInteractivity({lottieObj:{View:at,play:st,stop:ut,pause:ot,setSpeed:pt,goToAndStop:ht,goToAndPlay:dt,setDirection:gt,playSegments:lt,setSubframe:ft,getDuration:ct,destroy:mt,animationContainerRef:yt,animationLoaded:Et,animationItem:St},actions:(_e=rt==null?void 0:rt.actions)!==null&&_e!==void 0?_e:[],mode:(et=rt==null?void 0:rt.mode)!==null&&et!==void 0?et:"scroll"})};const v$1="5.9.6",fr=60,ip=0,op=106,w=1080,h$3=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:v$1,fr,ip,op,w,h:h$3,nm,ddd,assets,layers,markers},AbhaVerificationStatus=({loading:a=!1,loadingText:_,successText:$})=>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"}),a?jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading4Semibold pds2-absolute pds2-mt-220",children:_}):jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading4Semibold pds2-absolute pds2-mt-220",children:$})]}),createStoreImpl=a=>{let _;const $=new Set,_e=(at,st)=>{const ut=typeof at=="function"?at(_):at;if(!Object.is(ut,_)){const ot=_;_=st??(typeof ut!="object"||ut===null)?ut:Object.assign({},_,ut),$.forEach(pt=>pt(_,ot))}},et=()=>_,nt={setState:_e,getState:et,getInitialState:()=>it,subscribe:at=>($.add(at),()=>$.delete(at))},it=_=a(_e,et,nt);return nt},createStore=a=>a?createStoreImpl(a):createStoreImpl,identity=a=>a;function useStore(a,_=identity){const $=React.useSyncExternalStore(a.subscribe,()=>_(a.getState()),()=>_(a.getInitialState()));return React.useDebugValue($),$}const createImpl=a=>{const _=createStore(a),$=_e=>useStore(_,_e);return Object.assign($,_),$},create=a=>a?createImpl(a):createImpl;var SCREEN_NAMES=(a=>(a.LOGIN_WITH_ABHA="LOGIN_WITH_ABHA",a.VERIFY_OTP_LOGIN_WITH_ABHA="VERIFY_OTP_LOGIN_WITH_ABHA",a.CREATE_ABHA_WITH_AADHAAR="CREATE_ABHA_WITH_AADHAAR",a.ABHA_OTP_AND_MOBILE="ABHA_OTP_AND_MOBILE",a.ABHA_PHONE_NUMBER_VERIFICATION="ABHA_PHONE_NUMBER_VERIFICATION",a.AADHAAR_VERIFICATION_STATUS="AADHAAR_VERIFICATION_STATUS",a.ABHA_MOBILE_LINKING_STATUS="ABHA_MOBILE_LINKING_STATUS",a.SELECT_ABHA_FROM_LIST="SELECT_ABHA_FROM_LIST",a.CREATE_ABHA_ADDRESS="CREATE_ABHA_ADDRESS",a.CREATE_EKA_PROFILE="CREATE_EKA_PROFILE",a.SELECT_EKA_PROFILE="SELECT_EKA_PROFILE",a.CREATE_PHR_EKA_PROFILE="CREATE_PHR_EKA_PROFILE",a.GET_ALL_PROFILES="GET_ALL_PROFILES",a.LOGIN_OR_CREATE_ABHA="LOGIN_OR_CREATE_ABHA",a))(SCREEN_NAMES||{});const storeInitState={screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],authTxnId:null,txnId:null,aadhaarOtpSentToHint:null,mobileOtpSentToHint:null,aadhaarVerificationSkipStateStatus:null,ekaSmallToken:null,bottomsheetErrorInfo:null,abhaAddressList:null,loginIdentifierValue:null,abhaAuthFlowMethod:null,selectedAbhaAddress:null,ekaProfileInfo:null,registrationType:null,initAbhaAppMethod:"login_or_create_abha",initAbhaAppMobileNumber:null,initAbhaAppIdentifier:null,initAbhaAppIdentifierType:null,isEkaAppLogin:!1,isDocAppRequest:!1,isLoggedInFromRedirect:!1,clientId:"",oid:"",isApiTriggered:!1,isNewLoginOrCreateFlow:!1,selectedAbhaFlow:"",isInitApiTriggered:!1,identityValue:"",currentStepperIndex:1,mobileIdentifierValue:"",initAbhaAppIdentifierSource:"non_existing",goBackToLogin:!1,identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""}},useAuthAbhaStore=create((a,_)=>({screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],setScreen:$=>a(_e=>({screen:[..._e.screen,$]})),goBackScreen:()=>{const{screen:$}=_();if($.length===0)return null;a({screen:$.slice(0,-1)}),a(_e=>({currentStepperIndex:$.slice(0,-1).at(-1)==="LOGIN_OR_CREATE_ABHA"?1:_e.currentStepperIndex-1}))},goBackLoginScreen:()=>{const{isNewLoginOrCreateFlow:$}=_(),_e=$?SCREEN_NAMES.LOGIN_OR_CREATE_ABHA:SCREEN_NAMES.LOGIN_WITH_ABHA;a({screen:[_e]}),a({currentStepperIndex:1})},setUrlParams:$=>a({urlParams:$}),authTxnId:null,txnId:null,setTxnId:$=>a({txnId:$}),aadhaarOtpSentToHint:null,setAadhaarInitResponse:$=>a($),mobileOtpSentToHint:null,setMobileInitResponse:$=>a($),registrationType:null,setRegistrationType:$=>a({registrationType:$}),aadhaarVerificationSkipStateStatus:null,setAadhaarVerificationSkipStateStatus:$=>a({aadhaarVerificationSkipStateStatus:$}),bottomsheetErrorInfo:null,setBottomsheetErrorInfo:$=>a({bottomsheetErrorInfo:$}),ekaSmallToken:null,setEkaSmallToken:$=>a({ekaSmallToken:$}),abhaAddressList:null,setAbhaAddressList:$=>a({abhaAddressList:$}),loginIdentifierValue:null,setLoginIdentifierValue:$=>a({loginIdentifierValue:$}),abhaAuthFlowMethod:ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,setAbhaAuthFlowMethod:$=>a({abhaAuthFlowMethod:$}),selectedAbhaAddress:null,setSelectedAbhaAddress:$=>a({selectedAbhaAddress:$}),ekaProfileInfo:null,setEkaProfileInfo:$=>a({ekaProfileInfo:$}),initAbhaAppMethod:"login_or_create_abha",setInitAbhaAppMethod:$=>a({initAbhaAppMethod:$}),initAbhaAppMobileNumber:null,setInitAbhaAppMobileNumber:$=>a({initAbhaAppMobileNumber:$}),initAbhaAppIdentifier:null,setInitAbhaAppIdentifier:$=>a({initAbhaAppIdentifier:$}),initAbhaAppIdentifierType:null,setInitAbhaAppIdentifierType:$=>a({initAbhaAppIdentifierType:$}),initAbhaAppIdentifierSource:"non_existing",setInitAbhaAppIdentifierSource:$=>a({initAbhaAppIdentifierSource:$}),isEkaAppLogin:!1,setIsEkaAppLogin:$=>a({isEkaAppLogin:$}),isDocAppRequest:!1,setIsDocAppRequest:$=>a({isDocAppRequest:$}),setInitState:$=>a($),isLoggedInFromRedirect:!1,setIsLoggedInFromRedirect:$=>a({isLoggedInFromRedirect:$}),clientId:"",setClientId:$=>a({clientId:$}),isApiTriggered:!1,setIsApiTriggered:$=>a({isApiTriggered:$}),oid:"",setOid:$=>a({oid:$}),isNewLoginOrCreateFlow:!1,setIsNewLoginOrCreateFlow:$=>a({isNewLoginOrCreateFlow:$}),selectedAbhaFlow:"",setSelectedAbhaFlow:$=>a({selectedAbhaFlow:$}),isInitApiTriggered:!1,setIsInitApiTriggered:$=>a({isInitApiTriggered:$}),identityValue:"",setIdentityValue:$=>a({identityValue:$}),currentStepperIndex:1,setCurrentStepperIndex:$=>a({currentStepperIndex:$}),mobileIdentifierValue:"",setMobileIdentifierValue:$=>a({mobileIdentifierValue:$}),identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""},setIdentifierValue:$=>a(_e=>({identifierValue:{..._e.identifierValue,...$}})),goBackToLogin:!1,setGoBackToLogin:$=>a({goBackToLogin:$}),clearAbhaAuthStore:()=>a(storeInitState)}));APPOINTMENT_STATUS.NO_SHOW,APPOINTMENT_STATUS.NO_SHOW_DOCTOR,APPOINTMENT_STATUS.NO_SHOW_STAFF;APPOINTMENT_STATUS.CANCELLED,APPOINTMENT_STATUS.DOCTOR_CANCELLED,APPOINTMENT_STATUS.STAFF_CANCELLED;APPOINTMENT_STATUS.RESCHEDULED,APPOINTMENT_STATUS.DOCTOR_RESCHEDULED,APPOINTMENT_STATUS.STAFF_RESCHEDULED;var dayjs_min={exports:{}};(function(a,_){(function($,_e){a.exports=_e()})(commonjsGlobal,function(){var $=1e3,_e=6e4,et=36e5,tt="millisecond",rt="second",nt="minute",it="hour",at="day",st="week",ut="month",ot="quarter",pt="year",ht="date",dt="Invalid Date",gt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,lt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ft={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Ot){var wt=["th","st","nd","rd"],_t=Ot%100;return"["+Ot+(wt[(_t-20)%10]||wt[_t]||wt[0])+"]"}},ct=function(Ot,wt,_t){var bt=String(Ot);return!bt||bt.length>=wt?Ot:""+Array(wt+1-bt.length).join(_t)+Ot},mt={s:ct,z:function(Ot){var wt=-Ot.utcOffset(),_t=Math.abs(wt),bt=Math.floor(_t/60),vt=_t%60;return(wt<=0?"+":"-")+ct(bt,2,"0")+":"+ct(vt,2,"0")},m:function Ot(wt,_t){if(wt.date()<_t.date())return-Ot(_t,wt);var bt=12*(_t.year()-wt.year())+(_t.month()-wt.month()),vt=wt.clone().add(bt,ut),xt=_t-vt<0,Ct=wt.clone().add(bt+(xt?-1:1),ut);return+(-(bt+(_t-vt)/(xt?vt-Ct:Ct-vt))||0)},a:function(Ot){return Ot<0?Math.ceil(Ot)||0:Math.floor(Ot)},p:function(Ot){return{M:ut,y:pt,w:st,d:at,D:ht,h:it,m:nt,s:rt,ms:tt,Q:ot}[Ot]||String(Ot||"").toLowerCase().replace(/s$/,"")},u:function(Ot){return Ot===void 0}},yt="en",Et={};Et[yt]=ft;var St="$isDayjsObject",At=function(Ot){return Ot instanceof Pt||!(!Ot||!Ot[St])},Mt=function Ot(wt,_t,bt){var vt;if(!wt)return yt;if(typeof wt=="string"){var xt=wt.toLowerCase();Et[xt]&&(vt=xt),_t&&(Et[xt]=_t,vt=xt);var Ct=wt.split("-");if(!vt&&Ct.length>1)return Ot(Ct[0])}else{var Tt=wt.name;Et[Tt]=wt,vt=Tt}return!bt&&vt&&(yt=vt),vt||!bt&&yt},Nt=function(Ot,wt){if(At(Ot))return Ot.clone();var _t=typeof wt=="object"?wt:{};return _t.date=Ot,_t.args=arguments,new Pt(_t)},kt=mt;kt.l=Mt,kt.i=At,kt.w=function(Ot,wt){return Nt(Ot,{locale:wt.$L,utc:wt.$u,x:wt.$x,$offset:wt.$offset})};var Pt=function(){function Ot(_t){this.$L=Mt(_t.locale,null,!0),this.parse(_t),this.$x=this.$x||_t.x||{},this[St]=!0}var wt=Ot.prototype;return wt.parse=function(_t){this.$d=function(bt){var vt=bt.date,xt=bt.utc;if(vt===null)return new Date(NaN);if(kt.u(vt))return new Date;if(vt instanceof Date)return new Date(vt);if(typeof vt=="string"&&!/Z$/i.test(vt)){var Ct=vt.match(gt);if(Ct){var Tt=Ct[2]-1||0,It=(Ct[7]||"0").substring(0,3);return xt?new Date(Date.UTC(Ct[1],Tt,Ct[3]||1,Ct[4]||0,Ct[5]||0,Ct[6]||0,It)):new Date(Ct[1],Tt,Ct[3]||1,Ct[4]||0,Ct[5]||0,Ct[6]||0,It)}}return new Date(vt)}(_t),this.init()},wt.init=function(){var _t=this.$d;this.$y=_t.getFullYear(),this.$M=_t.getMonth(),this.$D=_t.getDate(),this.$W=_t.getDay(),this.$H=_t.getHours(),this.$m=_t.getMinutes(),this.$s=_t.getSeconds(),this.$ms=_t.getMilliseconds()},wt.$utils=function(){return kt},wt.isValid=function(){return this.$d.toString()!==dt},wt.isSame=function(_t,bt){var vt=Nt(_t);return this.startOf(bt)<=vt&&vt<=this.endOf(bt)},wt.isAfter=function(_t,bt){return Nt(_t)<this.startOf(bt)},wt.isBefore=function(_t,bt){return this.endOf(bt)<Nt(_t)},wt.$g=function(_t,bt,vt){return kt.u(_t)?this[bt]:this.set(vt,_t)},wt.unix=function(){return Math.floor(this.valueOf()/1e3)},wt.valueOf=function(){return this.$d.getTime()},wt.startOf=function(_t,bt){var vt=this,xt=!!kt.u(bt)||bt,Ct=kt.p(_t),Tt=function(Bt,Vt){var Kt=kt.w(vt.$u?Date.UTC(vt.$y,Vt,Bt):new Date(vt.$y,Vt,Bt),vt);return xt?Kt:Kt.endOf(at)},It=function(Bt,Vt){return kt.w(vt.toDate()[Bt].apply(vt.toDate("s"),(xt?[0,0,0,0]:[23,59,59,999]).slice(Vt)),vt)},Rt=this.$W,Lt=this.$M,Ht=this.$D,jt="set"+(this.$u?"UTC":"");switch(Ct){case pt:return xt?Tt(1,0):Tt(31,11);case ut:return xt?Tt(1,Lt):Tt(0,Lt+1);case st:var Qt=this.$locale().weekStart||0,$t=(Rt<Qt?Rt+7:Rt)-Qt;return Tt(xt?Ht-$t:Ht+(6-$t),Lt);case at:case ht:return It(jt+"Hours",0);case it:return It(jt+"Minutes",1);case nt:return It(jt+"Seconds",2);case rt:return It(jt+"Milliseconds",3);default:return this.clone()}},wt.endOf=function(_t){return this.startOf(_t,!1)},wt.$set=function(_t,bt){var vt,xt=kt.p(_t),Ct="set"+(this.$u?"UTC":""),Tt=(vt={},vt[at]=Ct+"Date",vt[ht]=Ct+"Date",vt[ut]=Ct+"Month",vt[pt]=Ct+"FullYear",vt[it]=Ct+"Hours",vt[nt]=Ct+"Minutes",vt[rt]=Ct+"Seconds",vt[tt]=Ct+"Milliseconds",vt)[xt],It=xt===at?this.$D+(bt-this.$W):bt;if(xt===ut||xt===pt){var Rt=this.clone().set(ht,1);Rt.$d[Tt](It),Rt.init(),this.$d=Rt.set(ht,Math.min(this.$D,Rt.daysInMonth())).$d}else Tt&&this.$d[Tt](It);return this.init(),this},wt.set=function(_t,bt){return this.clone().$set(_t,bt)},wt.get=function(_t){return this[kt.p(_t)]()},wt.add=function(_t,bt){var vt,xt=this;_t=Number(_t);var Ct=kt.p(bt),Tt=function(Lt){var Ht=Nt(xt);return kt.w(Ht.date(Ht.date()+Math.round(Lt*_t)),xt)};if(Ct===ut)return this.set(ut,this.$M+_t);if(Ct===pt)return this.set(pt,this.$y+_t);if(Ct===at)return Tt(1);if(Ct===st)return Tt(7);var It=(vt={},vt[nt]=_e,vt[it]=et,vt[rt]=$,vt)[Ct]||1,Rt=this.$d.getTime()+_t*It;return kt.w(Rt,this)},wt.subtract=function(_t,bt){return this.add(-1*_t,bt)},wt.format=function(_t){var bt=this,vt=this.$locale();if(!this.isValid())return vt.invalidDate||dt;var xt=_t||"YYYY-MM-DDTHH:mm:ssZ",Ct=kt.z(this),Tt=this.$H,It=this.$m,Rt=this.$M,Lt=vt.weekdays,Ht=vt.months,jt=vt.meridiem,Qt=function(Vt,Kt,qt,Yt){return Vt&&(Vt[Kt]||Vt(bt,xt))||qt[Kt].slice(0,Yt)},$t=function(Vt){return kt.s(Tt%12||12,Vt,"0")},Bt=jt||function(Vt,Kt,qt){var Yt=Vt<12?"AM":"PM";return qt?Yt.toLowerCase():Yt};return xt.replace(lt,function(Vt,Kt){return Kt||function(qt){switch(qt){case"YY":return String(bt.$y).slice(-2);case"YYYY":return kt.s(bt.$y,4,"0");case"M":return Rt+1;case"MM":return kt.s(Rt+1,2,"0");case"MMM":return Qt(vt.monthsShort,Rt,Ht,3);case"MMMM":return Qt(Ht,Rt);case"D":return bt.$D;case"DD":return kt.s(bt.$D,2,"0");case"d":return String(bt.$W);case"dd":return Qt(vt.weekdaysMin,bt.$W,Lt,2);case"ddd":return Qt(vt.weekdaysShort,bt.$W,Lt,3);case"dddd":return Lt[bt.$W];case"H":return String(Tt);case"HH":return kt.s(Tt,2,"0");case"h":return $t(1);case"hh":return $t(2);case"a":return Bt(Tt,It,!0);case"A":return Bt(Tt,It,!1);case"m":return String(It);case"mm":return kt.s(It,2,"0");case"s":return String(bt.$s);case"ss":return kt.s(bt.$s,2,"0");case"SSS":return kt.s(bt.$ms,3,"0");case"Z":return Ct}return null}(Vt)||Ct.replace(":","")})},wt.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},wt.diff=function(_t,bt,vt){var xt,Ct=this,Tt=kt.p(bt),It=Nt(_t),Rt=(It.utcOffset()-this.utcOffset())*_e,Lt=this-It,Ht=function(){return kt.m(Ct,It)};switch(Tt){case pt:xt=Ht()/12;break;case ut:xt=Ht();break;case ot:xt=Ht()/3;break;case st:xt=(Lt-Rt)/6048e5;break;case at:xt=(Lt-Rt)/864e5;break;case it:xt=Lt/et;break;case nt:xt=Lt/_e;break;case rt:xt=Lt/$;break;default:xt=Lt}return vt?xt:kt.a(xt)},wt.daysInMonth=function(){return this.endOf(ut).$D},wt.$locale=function(){return Et[this.$L]},wt.locale=function(_t,bt){if(!_t)return this.$L;var vt=this.clone(),xt=Mt(_t,bt,!0);return xt&&(vt.$L=xt),vt},wt.clone=function(){return kt.w(this.$d,this)},wt.toDate=function(){return new Date(this.valueOf())},wt.toJSON=function(){return this.isValid()?this.toISOString():null},wt.toISOString=function(){return this.$d.toISOString()},wt.toString=function(){return this.$d.toUTCString()},Ot}(),Dt=Pt.prototype;return Nt.prototype=Dt,[["$ms",tt],["$s",rt],["$m",nt],["$H",it],["$W",at],["$M",ut],["$y",pt],["$D",ht]].forEach(function(Ot){Dt[Ot[1]]=function(wt){return this.$g(wt,Ot[0],Ot[1])}}),Nt.extend=function(Ot,wt){return Ot.$i||(Ot(wt,Pt,Nt),Ot.$i=!0),Nt},Nt.locale=Mt,Nt.isDayjs=At,Nt.unix=function(Ot){return Nt(1e3*Ot)},Nt.en=Et[yt],Nt.Ls=Et,Nt.p={},Nt})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const handleSendEvent=({eventName:a,eventData:_})=>{var $;($=window==null?void 0:window.Eka)!=null&&$.sendEvent&&window.Eka.sendEvent(JSON.stringify({event:a,properties:_}))},getMockAuthVerifyResponse=a=>({skip_state:0,method:AUTH_METHOD.MOBILE,txn_id:"",data:{tokens:{sess:"",refresh:""},profile:{oid:a.oid,fn:a.fn,mn:a.mn,ln:a.ln,gen:a.gen,dob:a.dob,fln:a.fln,at:"",mobile:a.mobile,abha_number:a.abha_number||"","health-ids":a["health-ids"]||[]}}}),AbhaAadhaarVerificationStatusScreen=()=>{const a=useAuthAbhaStore(lt=>lt.aadhaarVerificationSkipStateStatus),_=useAuthAbhaStore(lt=>lt.authTxnId),$=useAuthAbhaStore(lt=>lt.ekaSmallToken),_e=useAuthAbhaStore(lt=>lt.setScreen),et=useAuthAbhaStore(lt=>lt.abhaAddressList),[tt,rt]=reactExports.useState(!0),nt=useAuthAbhaStore(lt=>lt.clientId),it=useAuthAbhaStore(lt=>lt.isEkaAppLogin),at=useAuthAbhaStore(lt=>lt.oid),st=useAuthAbhaStore(lt=>lt.ekaProfileInfo),ut=["M","F","O","U"],ot=useAuthAbhaStore(lt=>lt.setSelectedAbhaFlow),pt=useAuthAbhaStore(lt=>lt.txnId),ht=useAuthAbhaStore(lt=>lt.isNewLoginOrCreateFlow),dt=GET_EXTRA_HEADERS(),gt=({name:lt,data:ft={}})=>{var yt,Et;const mt={...{login_platform:nt,is_eka_app_login:it?"true":"false",is_new_login_or_create_flow:ht?"true":"false",txn_id:pt||"missing txnId",oid:dt!=null&&dt["X-User-ID"]?"true":"false",access_token:dt!=null&&dt.auth?"true":"false"},...ft};handleSendEvent({eventName:lt,eventData:mt}),(Et=(yt=window.curio)==null?void 0:yt.pushToMixpanel)==null||Et.call(yt,lt,mt)};return reactExports.useEffect(()=>{var ct,mt;const lt=new Promise(yt=>{setTimeout(()=>{yt(rt(!1))},500)});handleSendEvent({eventName:"page_view",eventData:{page_view:"aadhaar_verified_successful",platform:nt}}),(mt=(ct=window.curio)==null?void 0:ct.pushToMixpanel)==null||mt.call(ct,"page_view",{platform:nt,page_view:"aadhaar_verified_successful"});async function ft(){await lt,setTimeout(async()=>{var yt,Et,St,At,Mt,Nt,kt,Pt;if(a===ABHA_V3_SKIP_STATES.CONFIRM_MOBILE_OTP)console.log("setting the selected abha flow to aadhaar"),ot("aadhaar"),handleSendEvent({eventName:"abha_aadhaar_verification_status",eventData:{type:"confirm_mobile_otp",platform:nt,transactionId:_||"",skipState:"confirm_mobile_otp",minToken:$||"",oid:(st==null?void 0:st.oid)||"",abhaAddress:(st==null?void 0:st.abha_address)||"",isEkaAppLogin:it?"true":"false"}}),(Et=(yt=window.curio)==null?void 0:yt.pushToMixpanel)==null||Et.call(yt,"abha_aadhaar_verification_status",{platform:nt,type:"confirm_mobile_otp",transactionId:_||"",skipState:"confirm_mobile_otp",minToken:$||"",oid:(st==null?void 0:st.oid)||"",abhaAddress:(st==null?void 0:st.abha_address)||"",isEkaAppLogin:it?"true":"false"}),_e(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);else{if(it){const Ot=ut.includes(st==null?void 0:st.gender)?st==null?void 0:st.gender:void 0,wt={oid:(st==null?void 0:st.oid)||"",fln:(st==null?void 0:st.name)||"",dob:st==null?void 0:st.date_of_birth,gen:Ot,mobile:st==null?void 0:st.mobile,at:"",fn:(st==null?void 0:st.firstname)||"",mn:(st==null?void 0:st.middlename)||"",ln:(st==null?void 0:st.lastname)||"",abha_number:(st==null?void 0:st.abha_number)||"","health-ids":st!=null&&st.abha_address?[st==null?void 0:st.abha_address]:void 0};console.log("inside abha aadhaar verification status auth profile response ",wt);const _t=getMockAuthVerifyResponse(wt);if(console.log("authResponse ",_t),a===ABHA_V3_SKIP_STATES.ABHA_END&&at){if(handleSendEvent({eventName:"abha_aadhaar_verification_status_eka_flow",eventData:{type:"verify",platform:nt,transactionId:_||"",skipState:"abha_end",minToken:$||"",oid:at||"",abhaAddress:(st==null?void 0:st.abha_address)||"",isEkaAppLogin:it?"true":"false"}}),(At=(St=window.curio)==null?void 0:St.pushToMixpanel)==null||At.call(St,"abha_aadhaar_verification_status_eka_flow",{platform:nt,type:"verify",transactionId:_||"",skipState:"abha_end",minToken:$||"",oid:at||"",abhaAddress:(st==null?void 0:st.abha_address)||"",isEkaAppLogin:it?"true":"false"}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Mt=window.EkaAbha)==null||Mt.onAbhaSuccess(JSON.stringify({response:_t}));return}onAbhaSuccess({response:_t}),unMount();return}if(a===ABHA_V3_SKIP_STATES.ABHA_CREATE&&et){_e(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}console.log("redirecting to create eka profile for abha address creation -> mobile"),_e(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!_||!$)return;const Dt=await postAuthVerifyV2({txn_id:_,token:$});if(Dt.data){if(a===ABHA_V3_SKIP_STATES.ABHA_END){if(at){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Nt=window.EkaAbha)==null||Nt.onAbhaSuccess(JSON.stringify({response:Dt}));return}onAbhaSuccess({response:Dt}),unMount();return}setIndividualEnv({extraHeaders:{auth:(kt=Dt.data)==null?void 0:kt.tokens.sess}}),_e(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(Pt=Dt.data)==null?void 0:Pt.tokens.sess}}),gt({name:"abha_login_otp_verify_abha_select",data:{type:"verify",platform:nt}}),_e(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}}},2e3)}ft()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:tt,loadingText:"Verifying...",successText:"Aadhaar Verification Successful!"})};var i=Object.defineProperty,j$1=Object.defineProperties,k$2=Object.getOwnPropertyDescriptors,e$3=Object.getOwnPropertySymbols,g$1=Object.prototype.hasOwnProperty,h$2=Object.prototype.propertyIsEnumerable,f$2=(a,_,$)=>_ in a?i(a,_,{enumerable:!0,configurable:!0,writable:!0,value:$}):a[_]=$,l$7=(a,_)=>{for(var $ in _||(_={}))g$1.call(_,$)&&f$2(a,$,_[$]);if(e$3)for(var $ of e$3(_))h$2.call(_,$)&&f$2(a,$,_[$]);return a},m$1=(a,_)=>j$1(a,k$2(_)),c$4=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512",fill:"currentColor"},a),{children:jsxRuntimeExports.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"})})),t$6=c$4,e$2=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512"},a),{children:jsxRuntimeExports.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"})})),p$4=e$2,c$3=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({xmlns:"http://www.w3.org/2000/svg",height:"16",width:"14",viewBox:"0 0 448 512",fill:"currentColor"},a),{children:jsxRuntimeExports.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"})})),l$6=c$3,t$5=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.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"})})),e$1=t$5,t$4=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.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"})})),c$2=t$4,t$3=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M216.1 408.1C207.6 418.3 192.4 418.3 183 408.1L119 344.1C109.7 335.6 109.7 320.4 119 311C128.4 301.7 143.6 301.7 152.1 311L200 358.1L295 263C304.4 253.7 319.6 253.7 328.1 263C338.3 272.4 338.3 287.6 328.1 296.1L216.1 408.1zM128 0C141.3 0 152 10.75 152 24V64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0zM400 192H48V448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192z",fill:"currentColor"})})),V=t$3,l$5=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),{children:jsxRuntimeExports.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"})})),n$2=l$5,t$2=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.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"})})),n$1=t$2,l$4=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor"},a),{children:jsxRuntimeExports.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"})})),s$3=l$4,c$1=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.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"})})),h$1=c$1,s$2=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({xmlns:"http://www.w3.org/2000/svg",height:"16",width:"14",viewBox:"0 0 448 512"},a),{children:jsxRuntimeExports.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"})})),l$3=s$2,s$1=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",fill:"currentColor"},a),{children:jsxRuntimeExports.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"})})),t$1=s$1,l$2=a=>jsxRuntimeExports.jsx("svg",m$1(l$7({viewBox:"0 0 105 117",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),{children:jsxRuntimeExports.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"})})),p$3=l$2;const usePostAuthVerifyV2=()=>{const a=useAuthAbhaStore(_=>_.setScreen);return useMutation({mutationFn:_=>postAuthVerifyV2(_),onSuccess:(_,{oid:$})=>{var _e,et,tt;if($){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(_e=window.EkaAbha)==null||_e.onAbhaSuccess(JSON.stringify({response:_}));return}onAbhaSuccess({response:_}),unMount();return}(et=_.data)!=null&&et.tokens.sess&&setIndividualEnv({extraHeaders:{auth:(tt=_.data)==null?void 0:tt.tokens.sess}}),a(SCREEN_NAMES.GET_ALL_PROFILES)}})};var o=Object.defineProperty,p$2=Object.defineProperties,q$1=Object.getOwnPropertyDescriptors,f$1=Object.getOwnPropertySymbols,k$1=Object.prototype.hasOwnProperty,l$1=Object.prototype.propertyIsEnumerable,j=(a,_,$)=>_ in a?o(a,_,{enumerable:!0,configurable:!0,writable:!0,value:$}):a[_]=$,r=(a,_)=>{for(var $ in _||(_={}))k$1.call(_,$)&&j(a,$,_[$]);if(f$1)for(var $ of f$1(_))l$1.call(_,$)&&j(a,$,_[$]);return a},s=(a,_)=>p$2(a,q$1(_));function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(a){for(var _=1;_<arguments.length;_++){var $=arguments[_];for(var _e in $)Object.prototype.hasOwnProperty.call($,_e)&&(a[_e]=$[_e])}return a},_extends$1.apply(this,arguments)}function _typeof$1(a){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},_typeof$1(a)}function toPrimitive(a,_){if(_typeof$1(a)!="object"||!a)return a;var $=a[Symbol.toPrimitive];if($!==void 0){var _e=$.call(a,_||"default");if(_typeof$1(_e)!="object")return _e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(a)}function toPropertyKey(a){var _=toPrimitive(a,"string");return _typeof$1(_)=="symbol"?_:_+""}function _defineProperty$1(a,_,$){return _=toPropertyKey(_),_ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}function _classCallCheck(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,_){for(var $=0;$<_.length;$++){var _e=_[$];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(a,toPropertyKey(_e.key),_e)}}function _createClass(a,_,$){return _&&_defineProperties(a.prototype,_),$&&_defineProperties(a,$),Object.defineProperty(a,"prototype",{writable:!1}),a}function _setPrototypeOf$1(a,_){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_e,et){return _e.__proto__=et,_e},_setPrototypeOf$1(a,_)}function _inherits(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),_&&_setPrototypeOf$1(a,_)}function _getPrototypeOf$1(a){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$1(a)}function _isNativeReflectConstruct$1(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1=function(){return!!a})()}function _assertThisInitialized(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _possibleConstructorReturn(a,_){if(_&&(_typeof$1(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(a)}function _createSuper(a){var _=_isNativeReflectConstruct$1();return function(){var _e=_getPrototypeOf$1(a),et;if(_){var tt=_getPrototypeOf$1(this).constructor;et=Reflect.construct(_e,arguments,tt)}else et=_e.apply(this,arguments);return _possibleConstructorReturn(this,et)}}var classnames={exports:{}};/*!
|
|
51
|
-
Copyright (c) 2018 Jed Watson.
|
|
52
|
-
Licensed under the MIT License (MIT), see
|
|
53
|
-
http://jedwatson.github.io/classnames
|
|
54
|
-
*/(function(a){(function(){var _={}.hasOwnProperty;function $(){for(var tt="",rt=0;rt<arguments.length;rt++){var nt=arguments[rt];nt&&(tt=et(tt,_e(nt)))}return tt}function _e(tt){if(typeof tt=="string"||typeof tt=="number")return tt;if(typeof tt!="object")return"";if(Array.isArray(tt))return $.apply(null,tt);if(tt.toString!==Object.prototype.toString&&!tt.toString.toString().includes("[native code]"))return tt.toString();var rt="";for(var nt in tt)_.call(tt,nt)&&tt[nt]&&(rt=et(rt,nt));return rt}function et(tt,rt){return rt?tt?tt+" "+rt:tt+rt:tt}a.exports?($.default=$,a.exports=$):window.classNames=$})()})(classnames);var classnamesExports=classnames.exports;const classNames=getDefaultExportFromCjs(classnamesExports);var reactIs={exports:{}},reactIs_production_min={};/**
|
|
55
|
-
* @license React
|
|
56
|
-
* react-is.production.min.js
|
|
57
|
-
*
|
|
58
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
59
|
-
*
|
|
60
|
-
* This source code is licensed under the MIT license found in the
|
|
61
|
-
* LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d$1=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p$1=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");function v(a){if(typeof a=="object"&&a!==null){var _=a.$$typeof;switch(_){case b:switch(a=a.type,a){case d$1:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p$1:case g:return a;default:return _}}case c:return _}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d$1;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p$1;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return!1};reactIs_production_min.isConcurrentMode=function(){return!1};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d$1};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p$1};reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};reactIs_production_min.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===d$1||a===f||a===e||a===m||a===n||a===t||typeof a=="object"&&a!==null&&(a.$$typeof===q||a.$$typeof===p$1||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||a.getModuleId!==void 0)};reactIs_production_min.typeOf=v;reactIs.exports=reactIs_production_min;var reactIsExports=reactIs.exports;function toArray$3(a){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=[];return React.Children.forEach(a,function(_e){_e==null&&!_.keepEmpty||(Array.isArray(_e)?$=$.concat(toArray$3(_e)):reactIsExports.isFragment(_e)&&_e.props?$=$.concat(toArray$3(_e.props.children,_)):$.push(_e))}),$}var warned={},preMessage=function a(_){};function warning$3(a,_){}function note(a,_){}function resetWarned(){warned={}}function call(a,_,$){!_&&!warned[$]&&(a(!1,$),warned[$]=!0)}function warningOnce(a,_){call(warning$3,a,_)}function noteOnce(a,_){call(note,a,_)}warningOnce.preMessage=preMessage;warningOnce.resetWarned=resetWarned;warningOnce.noteOnce=noteOnce;function ownKeys$1(a,_){var $=Object.keys(a);if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(a);_&&(_e=_e.filter(function(et){return Object.getOwnPropertyDescriptor(a,et).enumerable})),$.push.apply($,_e)}return $}function _objectSpread2$1(a){for(var _=1;_<arguments.length;_++){var $=arguments[_]!=null?arguments[_]:{};_%2?ownKeys$1(Object($),!0).forEach(function(_e){_defineProperty$1(a,_e,$[_e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors($)):ownKeys$1(Object($)).forEach(function(_e){Object.defineProperty(a,_e,Object.getOwnPropertyDescriptor($,_e))})}return a}function isDOM(a){return a instanceof HTMLElement||a instanceof SVGElement}function findDOMNode(a){return isDOM(a)?a:a instanceof React.Component?ReactDOM.findDOMNode(a):null}function useMemo(a,_,$){var _e=reactExports.useRef({});return(!("value"in _e.current)||$(_e.current.condition,_))&&(_e.current.value=a(),_e.current.condition=_),_e.current.value}function fillRef(a,_){typeof a=="function"?a(_):_typeof$1(a)==="object"&&a&&"current"in a&&(a.current=_)}function composeRef(){for(var a=arguments.length,_=new Array(a),$=0;$<a;$++)_[$]=arguments[$];var _e=_.filter(function(et){return et});return _e.length<=1?_e[0]:function(et){_.forEach(function(tt){fillRef(tt,et)})}}function supportRef(a){var _,$,_e=reactIsExports.isMemo(a)?a.type.type:a.type;return!(typeof _e=="function"&&!((_=_e.prototype)!==null&&_!==void 0&&_.render)&&_e.$$typeof!==reactIsExports.ForwardRef||typeof a=="function"&&!(($=a.prototype)!==null&&$!==void 0&&$.render)&&a.$$typeof!==reactIsExports.ForwardRef)}var MapShim=function(){if(typeof Map<"u")return Map;function a(_,$){var _e=-1;return _.some(function(et,tt){return et[0]===$?(_e=tt,!0):!1}),_e}return function(){function _(){this.__entries__=[]}return Object.defineProperty(_.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),_.prototype.get=function($){var _e=a(this.__entries__,$),et=this.__entries__[_e];return et&&et[1]},_.prototype.set=function($,_e){var et=a(this.__entries__,$);~et?this.__entries__[et][1]=_e:this.__entries__.push([$,_e])},_.prototype.delete=function($){var _e=this.__entries__,et=a(_e,$);~et&&_e.splice(et,1)},_.prototype.has=function($){return!!~a(this.__entries__,$)},_.prototype.clear=function(){this.__entries__.splice(0)},_.prototype.forEach=function($,_e){_e===void 0&&(_e=null);for(var et=0,tt=this.__entries__;et<tt.length;et++){var rt=tt[et];$.call(_e,rt[1],rt[0])}},_}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(a){return setTimeout(function(){return a(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle(a,_){var $=!1,_e=!1,et=0;function tt(){$&&($=!1,a()),_e&&nt()}function rt(){requestAnimationFrame$1(tt)}function nt(){var it=Date.now();if($){if(it-et<trailingTimeout)return;_e=!0}else $=!0,_e=!1,setTimeout(rt,_);et=it}return nt}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function a(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return a.prototype.addObserver=function(_){~this.observers_.indexOf(_)||this.observers_.push(_),this.connected_||this.connect_()},a.prototype.removeObserver=function(_){var $=this.observers_,_e=$.indexOf(_);~_e&&$.splice(_e,1),!$.length&&this.connected_&&this.disconnect_()},a.prototype.refresh=function(){var _=this.updateObservers_();_&&this.refresh()},a.prototype.updateObservers_=function(){var _=this.observers_.filter(function($){return $.gatherActive(),$.hasActive()});return _.forEach(function($){return $.broadcastActive()}),_.length>0},a.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},a.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},a.prototype.onTransitionEnd_=function(_){var $=_.propertyName,_e=$===void 0?"":$,et=transitionKeys.some(function(tt){return!!~_e.indexOf(tt)});et&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null,a}(),defineConfigurable=function(a,_){for(var $=0,_e=Object.keys(_);$<_e.length;$++){var et=_e[$];Object.defineProperty(a,et,{value:_[et],enumerable:!1,writable:!1,configurable:!0})}return a},getWindowOf=function(a){var _=a&&a.ownerDocument&&a.ownerDocument.defaultView;return _||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(a){return parseFloat(a)||0}function getBordersSize(a){for(var _=[],$=1;$<arguments.length;$++)_[$-1]=arguments[$];return _.reduce(function(_e,et){var tt=a["border-"+et+"-width"];return _e+toFloat(tt)},0)}function getPaddings(a){for(var _=["top","right","bottom","left"],$={},_e=0,et=_;_e<et.length;_e++){var tt=et[_e],rt=a["padding-"+tt];$[tt]=toFloat(rt)}return $}function getSVGContentRect(a){var _=a.getBBox();return createRectInit(0,0,_.width,_.height)}function getHTMLElementContentRect(a){var _=a.clientWidth,$=a.clientHeight;if(!_&&!$)return emptyRect;var _e=getWindowOf(a).getComputedStyle(a),et=getPaddings(_e),tt=et.left+et.right,rt=et.top+et.bottom,nt=toFloat(_e.width),it=toFloat(_e.height);if(_e.boxSizing==="border-box"&&(Math.round(nt+tt)!==_&&(nt-=getBordersSize(_e,"left","right")+tt),Math.round(it+rt)!==$&&(it-=getBordersSize(_e,"top","bottom")+rt)),!isDocumentElement(a)){var at=Math.round(nt+tt)-_,st=Math.round(it+rt)-$;Math.abs(at)!==1&&(nt-=at),Math.abs(st)!==1&&(it-=st)}return createRectInit(et.left,et.top,nt,it)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(a){return a instanceof getWindowOf(a).SVGGraphicsElement}:function(a){return a instanceof getWindowOf(a).SVGElement&&typeof a.getBBox=="function"}}();function isDocumentElement(a){return a===getWindowOf(a).document.documentElement}function getContentRect(a){return isBrowser?isSVGGraphicsElement(a)?getSVGContentRect(a):getHTMLElementContentRect(a):emptyRect}function createReadOnlyRect(a){var _=a.x,$=a.y,_e=a.width,et=a.height,tt=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,rt=Object.create(tt.prototype);return defineConfigurable(rt,{x:_,y:$,width:_e,height:et,top:$,right:_+_e,bottom:et+$,left:_}),rt}function createRectInit(a,_,$,_e){return{x:a,y:_,width:$,height:_e}}var ResizeObservation=function(){function a(_){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=_}return a.prototype.isActive=function(){var _=getContentRect(this.target);return this.contentRect_=_,_.width!==this.broadcastWidth||_.height!==this.broadcastHeight},a.prototype.broadcastRect=function(){var _=this.contentRect_;return this.broadcastWidth=_.width,this.broadcastHeight=_.height,_},a}(),ResizeObserverEntry=function(){function a(_,$){var _e=createReadOnlyRect($);defineConfigurable(this,{target:_,contentRect:_e})}return a}(),ResizeObserverSPI=function(){function a(_,$,_e){if(this.activeObservations_=[],this.observations_=new MapShim,typeof _!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=_,this.controller_=$,this.callbackCtx_=_e}return a.prototype.observe=function(_){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(_ instanceof getWindowOf(_).Element))throw new TypeError('parameter 1 is not of type "Element".');var $=this.observations_;$.has(_)||($.set(_,new ResizeObservation(_)),this.controller_.addObserver(this),this.controller_.refresh())}},a.prototype.unobserve=function(_){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(_ instanceof getWindowOf(_).Element))throw new TypeError('parameter 1 is not of type "Element".');var $=this.observations_;$.has(_)&&($.delete(_),$.size||this.controller_.removeObserver(this))}},a.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},a.prototype.gatherActive=function(){var _=this;this.clearActive(),this.observations_.forEach(function($){$.isActive()&&_.activeObservations_.push($)})},a.prototype.broadcastActive=function(){if(this.hasActive()){var _=this.callbackCtx_,$=this.activeObservations_.map(function(_e){return new ResizeObserverEntry(_e.target,_e.broadcastRect())});this.callback_.call(_,$,_),this.clearActive()}},a.prototype.clearActive=function(){this.activeObservations_.splice(0)},a.prototype.hasActive=function(){return this.activeObservations_.length>0},a}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver=function(){function a(_){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var $=ResizeObserverController.getInstance(),_e=new ResizeObserverSPI(_,$,this);observers.set(this,_e)}return a}();["observe","unobserve","disconnect"].forEach(function(a){ResizeObserver.prototype[a]=function(){var _;return(_=observers.get(this))[a].apply(_,arguments)}});var index=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver}();function omit(a,_){var $=_objectSpread2$1({},a);return Array.isArray(_)&&_.forEach(function(_e){delete $[_e]}),$}var IconContext=reactExports.createContext({});function _arrayLikeToArray(a,_){(_==null||_>a.length)&&(_=a.length);for(var $=0,_e=new Array(_);$<_;$++)_e[$]=a[$];return _e}function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _iterableToArray(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function _unsupportedIterableToArray(a,_){if(a){if(typeof a=="string")return _arrayLikeToArray(a,_);var $=Object.prototype.toString.call(a).slice(8,-1);if($==="Object"&&a.constructor&&($=a.constructor.name),$==="Map"||$==="Set")return Array.from(a);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return _arrayLikeToArray(a,_)}}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
63
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function _arrayWithHoles(a){if(Array.isArray(a))return a}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
64
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toArray(a){return _arrayWithHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableRest()}function get(a,_){for(var $=a,_e=0;_e<_.length;_e+=1){if($==null)return;$=$[_[_e]]}return $}function internalSet(a,_,$,_e){if(!_.length)return $;var et=_toArray(_),tt=et[0],rt=et.slice(1),nt;return!a&&typeof tt=="number"?nt=[]:Array.isArray(a)?nt=_toConsumableArray(a):nt=_objectSpread2$1({},a),_e&&$===void 0&&rt.length===1?delete nt[tt][rt[0]]:nt[tt]=internalSet(nt[tt],rt,$,_e),nt}function set(a,_,$){var _e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return _.length&&_e&&$===void 0&&!get(a,_.slice(0,-1))?a:internalSet(a,_,$,_e)}function isObject(a){return _typeof$1(a)==="object"&&a!==null&&Object.getPrototypeOf(a)===Object.prototype}function createEmpty(a){return Array.isArray(a)?[]:{}}var keys=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function merge(){for(var a=arguments.length,_=new Array(a),$=0;$<a;$++)_[$]=arguments[$];var _e=createEmpty(_[0]);return _.forEach(function(et){function tt(rt,nt){var it=new Set(nt),at=get(et,rt),st=Array.isArray(at);if(st||isObject(at)){if(!it.has(at)){it.add(at);var ut=get(_e,rt);st?_e=set(_e,rt,[]):(!ut||_typeof$1(ut)!=="object")&&(_e=set(_e,rt,createEmpty(at))),keys(at).forEach(function(ot){tt([].concat(_toConsumableArray(rt),[ot]),it)})}}else _e=set(_e,rt,at)}tt([])}),_e}const enUS={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var locale$2={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},locale$1={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},locale={lang:_extends$1({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},locale$2),timePickerLocale:_extends$1({},locale$1)},typeTemplate$1="${label} is not a valid ${type}",localeValues={locale:"en",Pagination:enUS,DatePicker:locale,TimePicker:locale$1,Calendar:locale,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:typeTemplate$1,method:typeTemplate$1,array:typeTemplate$1,object:typeTemplate$1,number:typeTemplate$1,date:typeTemplate$1,boolean:typeTemplate$1,integer:typeTemplate$1,float:typeTemplate$1,regexp:typeTemplate$1,email:typeTemplate$1,url:typeTemplate$1,hex:typeTemplate$1},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},LocaleContext=reactExports.createContext(void 0),LocaleReceiver=function a(_){var $=_.componentName,_e=$===void 0?"global":$,et=_.defaultLocale,tt=_.children,rt=reactExports.useContext(LocaleContext),nt=reactExports.useMemo(function(){var at,st=et||localeValues[_e],ut=(at=rt==null?void 0:rt[_e])!==null&&at!==void 0?at:{};return _extends$1(_extends$1({},st instanceof Function?st():st),ut||{})},[_e,et,rt]),it=reactExports.useMemo(function(){var at=rt&&rt.locale;return rt&&rt.exist&&!at?localeValues.locale:at},[rt]);return tt(nt,it,rt)};function _iterableToArrayLimit(a,_){var $=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if($!=null){var _e,et,tt,rt,nt=[],it=!0,at=!1;try{if(tt=($=$.call(a)).next,_===0){if(Object($)!==$)return;it=!1}else for(;!(it=(_e=tt.call($)).done)&&(nt.push(_e.value),nt.length!==_);it=!0);}catch(st){at=!0,et=st}finally{try{if(!it&&$.return!=null&&(rt=$.return(),Object(rt)!==rt))return}finally{if(at)throw et}}return nt}}function _slicedToArray(a,_){return _arrayWithHoles(a)||_iterableToArrayLimit(a,_)||_unsupportedIterableToArray(a,_)||_nonIterableRest()}function _objectWithoutPropertiesLoose(a,_){if(a==null)return{};var $={},_e=Object.keys(a),et,tt;for(tt=0;tt<_e.length;tt++)et=_e[tt],!(_.indexOf(et)>=0)&&($[et]=a[et]);return $}function _objectWithoutProperties(a,_){if(a==null)return{};var $=_objectWithoutPropertiesLoose(a,_),_e,et;if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(a);for(et=0;et<tt.length;et++)_e=tt[et],!(_.indexOf(_e)>=0)&&Object.prototype.propertyIsEnumerable.call(a,_e)&&($[_e]=a[_e])}return $}function bound01(a,_){isOnePointZero(a)&&(a="100%");var $=isPercentage(a);return a=_===360?a:Math.min(_,Math.max(0,parseFloat(a))),$&&(a=parseInt(String(a*_),10)/100),Math.abs(a-_)<1e-6?1:(_===360?a=(a<0?a%_+_:a%_)/parseFloat(String(_)):a=a%_/parseFloat(String(_)),a)}function isOnePointZero(a){return typeof a=="string"&&a.indexOf(".")!==-1&&parseFloat(a)===1}function isPercentage(a){return typeof a=="string"&&a.indexOf("%")!==-1}function boundAlpha(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function convertToPercentage(a){return a<=1?"".concat(Number(a)*100,"%"):a}function pad2(a){return a.length===1?"0"+a:String(a)}function rgbToRgb(a,_,$){return{r:bound01(a,255)*255,g:bound01(_,255)*255,b:bound01($,255)*255}}function hue2rgb(a,_,$){return $<0&&($+=1),$>1&&($-=1),$<1/6?a+(_-a)*(6*$):$<1/2?_:$<2/3?a+(_-a)*(2/3-$)*6:a}function hslToRgb(a,_,$){var _e,et,tt;if(a=bound01(a,360),_=bound01(_,100),$=bound01($,100),_===0)et=$,tt=$,_e=$;else{var rt=$<.5?$*(1+_):$+_-$*_,nt=2*$-rt;_e=hue2rgb(nt,rt,a+1/3),et=hue2rgb(nt,rt,a),tt=hue2rgb(nt,rt,a-1/3)}return{r:_e*255,g:et*255,b:tt*255}}function rgbToHsv(a,_,$){a=bound01(a,255),_=bound01(_,255),$=bound01($,255);var _e=Math.max(a,_,$),et=Math.min(a,_,$),tt=0,rt=_e,nt=_e-et,it=_e===0?0:nt/_e;if(_e===et)tt=0;else{switch(_e){case a:tt=(_-$)/nt+(_<$?6:0);break;case _:tt=($-a)/nt+2;break;case $:tt=(a-_)/nt+4;break}tt/=6}return{h:tt,s:it,v:rt}}function hsvToRgb(a,_,$){a=bound01(a,360)*6,_=bound01(_,100),$=bound01($,100);var _e=Math.floor(a),et=a-_e,tt=$*(1-_),rt=$*(1-et*_),nt=$*(1-(1-et)*_),it=_e%6,at=[$,rt,tt,tt,nt,$][it],st=[nt,$,$,rt,tt,tt][it],ut=[tt,tt,nt,$,$,rt][it];return{r:at*255,g:st*255,b:ut*255}}function rgbToHex(a,_,$,_e){var et=[pad2(Math.round(a).toString(16)),pad2(Math.round(_).toString(16)),pad2(Math.round($).toString(16))];return et.join("")}function convertHexToDecimal(a){return parseIntFromHex(a)/255}function parseIntFromHex(a){return parseInt(a,16)}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(a){var _={r:0,g:0,b:0},$=1,_e=null,et=null,tt=null,rt=!1,nt=!1;return typeof a=="string"&&(a=stringInputToObject(a)),typeof a=="object"&&(isValidCSSUnit(a.r)&&isValidCSSUnit(a.g)&&isValidCSSUnit(a.b)?(_=rgbToRgb(a.r,a.g,a.b),rt=!0,nt=String(a.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(a.h)&&isValidCSSUnit(a.s)&&isValidCSSUnit(a.v)?(_e=convertToPercentage(a.s),et=convertToPercentage(a.v),_=hsvToRgb(a.h,_e,et),rt=!0,nt="hsv"):isValidCSSUnit(a.h)&&isValidCSSUnit(a.s)&&isValidCSSUnit(a.l)&&(_e=convertToPercentage(a.s),tt=convertToPercentage(a.l),_=hslToRgb(a.h,_e,tt),rt=!0,nt="hsl"),Object.prototype.hasOwnProperty.call(a,"a")&&($=a.a)),$=boundAlpha($),{ok:rt,format:a.format||nt,r:Math.min(255,Math.max(_.r,0)),g:Math.min(255,Math.max(_.g,0)),b:Math.min(255,Math.max(_.b,0)),a:$}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(a){if(a=a.trim().toLowerCase(),a.length===0)return!1;var _=!1;if(names[a])a=names[a],_=!0;else if(a==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $=matchers.rgb.exec(a);return $?{r:$[1],g:$[2],b:$[3]}:($=matchers.rgba.exec(a),$?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=matchers.hsl.exec(a),$?{h:$[1],s:$[2],l:$[3]}:($=matchers.hsla.exec(a),$?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=matchers.hsv.exec(a),$?{h:$[1],s:$[2],v:$[3]}:($=matchers.hsva.exec(a),$?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=matchers.hex8.exec(a),$?{r:parseIntFromHex($[1]),g:parseIntFromHex($[2]),b:parseIntFromHex($[3]),a:convertHexToDecimal($[4]),format:_?"name":"hex8"}:($=matchers.hex6.exec(a),$?{r:parseIntFromHex($[1]),g:parseIntFromHex($[2]),b:parseIntFromHex($[3]),format:_?"name":"hex"}:($=matchers.hex4.exec(a),$?{r:parseIntFromHex($[1]+$[1]),g:parseIntFromHex($[2]+$[2]),b:parseIntFromHex($[3]+$[3]),a:convertHexToDecimal($[4]+$[4]),format:_?"name":"hex8"}:($=matchers.hex3.exec(a),$?{r:parseIntFromHex($[1]+$[1]),g:parseIntFromHex($[2]+$[2]),b:parseIntFromHex($[3]+$[3]),format:_?"name":"hex"}:!1)))))))))}function isValidCSSUnit(a){return!!matchers.CSS_UNIT.exec(String(a))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(a){var _=a.r,$=a.g,_e=a.b,et=rgbToHsv(_,$,_e);return{h:et.h*360,s:et.s,v:et.v}}function toHex(a){var _=a.r,$=a.g,_e=a.b;return"#".concat(rgbToHex(_,$,_e))}function mix$1(a,_,$){var _e=$/100,et={r:(_.r-a.r)*_e+a.r,g:(_.g-a.g)*_e+a.g,b:(_.b-a.b)*_e+a.b};return et}function getHue(a,_,$){var _e;return Math.round(a.h)>=60&&Math.round(a.h)<=240?_e=$?Math.round(a.h)-hueStep*_:Math.round(a.h)+hueStep*_:_e=$?Math.round(a.h)+hueStep*_:Math.round(a.h)-hueStep*_,_e<0?_e+=360:_e>=360&&(_e-=360),_e}function getSaturation(a,_,$){if(a.h===0&&a.s===0)return a.s;var _e;return $?_e=a.s-saturationStep*_:_===darkColorCount?_e=a.s+saturationStep:_e=a.s+saturationStep2*_,_e>1&&(_e=1),$&&_===lightColorCount&&_e>.1&&(_e=.1),_e<.06&&(_e=.06),Number(_e.toFixed(2))}function getValue$2(a,_,$){var _e;return $?_e=a.v+brightnessStep1*_:_e=a.v-brightnessStep2*_,_e>1&&(_e=1),Number(_e.toFixed(2))}function generate$1(a){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=[],_e=inputToRGB(a),et=lightColorCount;et>0;et-=1){var tt=toHsv(_e),rt=toHex(inputToRGB({h:getHue(tt,et,!0),s:getSaturation(tt,et,!0),v:getValue$2(tt,et,!0)}));$.push(rt)}$.push(toHex(_e));for(var nt=1;nt<=darkColorCount;nt+=1){var it=toHsv(_e),at=toHex(inputToRGB({h:getHue(it,nt),s:getSaturation(it,nt),v:getValue$2(it,nt)}));$.push(at)}return _.theme==="dark"?darkColorMap.map(function(st){var ut=st.index,ot=st.opacity,pt=toHex(mix$1(inputToRGB(_.backgroundColor||"#141414"),inputToRGB($[ut]),ot*100));return pt}):$}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(a){presetPalettes[a]=generate$1(presetPrimaryColors[a]),presetPalettes[a].primary=presetPalettes[a][5],presetDarkPalettes[a]=generate$1(presetPrimaryColors[a],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[a].primary=presetDarkPalettes[a][5]});function canUseDom(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function contains(a,_){if(!a)return!1;if(a.contains)return a.contains(_);for(var $=_;$;){if($===a)return!0;$=$.parentNode}return!1}var APPEND_ORDER="data-rc-order",APPEND_PRIORITY="data-rc-priority",MARK_KEY="rc-util-key",containerCache=new Map;function getMark(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=a.mark;return _?_.startsWith("data-")?_:"data-".concat(_):MARK_KEY}function getContainer(a){if(a.attachTo)return a.attachTo;var _=document.querySelector("head");return _||document.body}function getOrder(a){return a==="queue"?"prependQueue":a?"prepend":"append"}function findStyles(a){return Array.from((containerCache.get(a)||a).children).filter(function(_){return _.tagName==="STYLE"})}function injectCSS(a){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!canUseDom())return null;var $=_.csp,_e=_.prepend,et=_.priority,tt=et===void 0?0:et,rt=getOrder(_e),nt=rt==="prependQueue",it=document.createElement("style");it.setAttribute(APPEND_ORDER,rt),nt&&tt&&it.setAttribute(APPEND_PRIORITY,"".concat(tt)),$!=null&&$.nonce&&(it.nonce=$==null?void 0:$.nonce),it.innerHTML=a;var at=getContainer(_),st=at.firstChild;if(_e){if(nt){var ut=(_.styles||findStyles(at)).filter(function(ot){if(!["prepend","prependQueue"].includes(ot.getAttribute(APPEND_ORDER)))return!1;var pt=Number(ot.getAttribute(APPEND_PRIORITY)||0);return tt>=pt});if(ut.length)return at.insertBefore(it,ut[ut.length-1].nextSibling),it}at.insertBefore(it,st)}else at.appendChild(it);return it}function findExistNode(a){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=getContainer(_);return(_.styles||findStyles($)).find(function(_e){return _e.getAttribute(getMark(_))===a})}function syncRealContainer(a,_){var $=containerCache.get(a);if(!$||!contains(document,$)){var _e=injectCSS("",_),et=_e.parentNode;containerCache.set(a,et),a.removeChild(_e)}}function updateCSS(a,_){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_e=getContainer($),et=findStyles(_e),tt=_objectSpread2$1(_objectSpread2$1({},$),{},{styles:et});syncRealContainer(_e,tt);var rt=findExistNode(_,tt);if(rt){var nt,it;if((nt=tt.csp)!==null&&nt!==void 0&&nt.nonce&&rt.nonce!==((it=tt.csp)===null||it===void 0?void 0:it.nonce)){var at;rt.nonce=(at=tt.csp)===null||at===void 0?void 0:at.nonce}return rt.innerHTML!==a&&(rt.innerHTML=a),rt}var st=injectCSS(a,tt);return st.setAttribute(getMark(tt),_),st}var freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$1=freeGlobal||freeSelf||Function("return this")(),_root=root$1,root=_root,Symbol$4=root.Symbol,_Symbol=Symbol$4;function arrayMap$1(a,_){for(var $=-1,_e=a==null?0:a.length,et=Array(_e);++$<_e;)et[$]=_(a[$],$,a);return et}var _arrayMap=arrayMap$1,isArray$1=Array.isArray,isArray_1=isArray$1,Symbol$3=_Symbol,objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$3?Symbol$3.toStringTag:void 0;function getRawTag$1(a){var _=hasOwnProperty.call(a,symToStringTag$1),$=a[symToStringTag$1];try{a[symToStringTag$1]=void 0;var _e=!0}catch{}var et=nativeObjectToString$1.call(a);return _e&&(_?a[symToStringTag$1]=$:delete a[symToStringTag$1]),et}var _getRawTag=getRawTag$1,objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString$1(a){return nativeObjectToString.call(a)}var _objectToString=objectToString$1,Symbol$2=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag$1(a){return a==null?a===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(a)?getRawTag(a):objectToString(a)}var _baseGetTag=baseGetTag$1;function isObjectLike$1(a){return a!=null&&typeof a=="object"}var isObjectLike_1=isObjectLike$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$1(a){return typeof a=="symbol"||isObjectLike(a)&&baseGetTag(a)==symbolTag}var isSymbol_1=isSymbol$1,Symbol$1=_Symbol,arrayMap=_arrayMap,isArray=isArray_1,isSymbol=isSymbol_1,INFINITY=1/0,symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString$1(a){if(typeof a=="string")return a;if(isArray(a))return arrayMap(a,baseToString$1)+"";if(isSymbol(a))return symbolToString?symbolToString.call(a):"";var _=a+"";return _=="0"&&1/a==-INFINITY?"-0":_}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$4(a){return a==null?"":baseToString(a)}var toString_1=toString$4;function baseSlice$1(a,_,$){var _e=-1,et=a.length;_<0&&(_=-_>et?0:et+_),$=$>et?et:$,$<0&&($+=et),et=_>$?0:$-_>>>0,_>>>=0;for(var tt=Array(et);++_e<et;)tt[_e]=a[_e+_];return tt}var _baseSlice=baseSlice$1,baseSlice=_baseSlice;function castSlice$1(a,_,$){var _e=a.length;return $=$===void 0?_e:$,!_&&$>=_e?a:baseSlice(a,_,$)}var _castSlice=castSlice$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode$2(a){return reHasUnicode.test(a)}var _hasUnicode=hasUnicode$2;function asciiToArray$1(a){return a.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray$1(a){return a.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(a){return hasUnicode$1(a)?unicodeToArray(a):asciiToArray(a)}var _stringToArray=stringToArray$1,castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$3=toString_1;function createCaseFirst$1(a){return function(_){_=toString$3(_);var $=hasUnicode(_)?stringToArray(_):void 0,_e=$?$[0]:_.charAt(0),et=$?castSlice($,1).join(""):_.slice(1);return _e[a]()+et}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1,toString$2=toString_1,upperFirst=upperFirst_1;function capitalize$1(a){return upperFirst(toString$2(a).toLowerCase())}var capitalize_1=capitalize$1;function arrayReduce$1(a,_,$,_e){var et=-1,tt=a==null?0:a.length;for(_e&&tt&&($=a[++et]);++et<tt;)$=_($,a[et],et,a);return $}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(a){return function(_){return a==null?void 0:a[_]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$1=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(a){return a=toString$1(a),a&&a.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(a){return a.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(a){return reHasUnicodeWord.test(a)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(a){return a.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString=toString_1,unicodeWords=_unicodeWords;function words$1(a,_,$){return a=toString(a),_=$?void 0:_,_===void 0?hasUnicodeWord(a)?unicodeWords(a):asciiWords(a):a.match(_)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(a){return function(_){return arrayReduce(words(deburr(_).replace(reApos,"")),a,"")}}var _createCompounder=createCompounder$1,capitalize=capitalize_1,createCompounder=_createCompounder,camelCase=createCompounder(function(a,_,$){return _=_.toLowerCase(),a+($?capitalize(_):_)}),camelCase_1=camelCase;const camelCase$1=getDefaultExportFromCjs(camelCase_1);function warning$2(a,_){warningOnce(a,"[@ant-design/icons] ".concat(_))}function isIconDefinition(a){return _typeof$1(a)==="object"&&typeof a.name=="string"&&typeof a.theme=="string"&&(_typeof$1(a.icon)==="object"||typeof a.icon=="function")}function normalizeAttrs(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(a).reduce(function(_,$){var _e=a[$];switch($){case"class":_.className=_e,delete _.class;break;default:delete _[$],_[camelCase$1($)]=_e}return _},{})}function generate(a,_,$){return $?React.createElement(a.tag,_objectSpread2$1(_objectSpread2$1({key:_},normalizeAttrs(a.attrs)),$),(a.children||[]).map(function(_e,et){return generate(_e,"".concat(_,"-").concat(a.tag,"-").concat(et))})):React.createElement(a.tag,_objectSpread2$1({key:_},normalizeAttrs(a.attrs)),(a.children||[]).map(function(_e,et){return generate(_e,"".concat(_,"-").concat(a.tag,"-").concat(et))}))}function getSecondaryColor(a){return generate$1(a)[0]}function normalizeTwoToneColors(a){return a?Array.isArray(a)?a:[a]:[]}var iconStyles=`
|
|
65
|
-
.anticon {
|
|
66
|
-
display: inline-flex;
|
|
67
|
-
alignItems: center;
|
|
68
|
-
color: inherit;
|
|
69
|
-
font-style: normal;
|
|
70
|
-
line-height: 0;
|
|
71
|
-
text-align: center;
|
|
72
|
-
text-transform: none;
|
|
73
|
-
vertical-align: -0.125em;
|
|
74
|
-
text-rendering: optimizeLegibility;
|
|
75
|
-
-webkit-font-smoothing: antialiased;
|
|
76
|
-
-moz-osx-font-smoothing: grayscale;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.anticon > * {
|
|
80
|
-
line-height: 1;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.anticon svg {
|
|
84
|
-
display: inline-block;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.anticon::before {
|
|
88
|
-
display: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.anticon .anticon-icon {
|
|
92
|
-
display: block;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.anticon[tabindex] {
|
|
96
|
-
cursor: pointer;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.anticon-spin::before,
|
|
100
|
-
.anticon-spin {
|
|
101
|
-
display: inline-block;
|
|
102
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
103
|
-
animation: loadingCircle 1s infinite linear;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@-webkit-keyframes loadingCircle {
|
|
107
|
-
100% {
|
|
108
|
-
-webkit-transform: rotate(360deg);
|
|
109
|
-
transform: rotate(360deg);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@keyframes loadingCircle {
|
|
114
|
-
100% {
|
|
115
|
-
-webkit-transform: rotate(360deg);
|
|
116
|
-
transform: rotate(360deg);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
`,useInsertStyles=function a(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles,$=reactExports.useContext(IconContext),_e=$.csp;reactExports.useEffect(function(){updateCSS(_,"@ant-design-icons",{prepend:!0,csp:_e})},[])},_excluded$6=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(a){var _=a.primaryColor,$=a.secondaryColor;twoToneColorPalette.primaryColor=_,twoToneColorPalette.secondaryColor=$||getSecondaryColor(_),twoToneColorPalette.calculated=!!$}function getTwoToneColors(){return _objectSpread2$1({},twoToneColorPalette)}var IconBase=function a(_){var $=_.icon,_e=_.className,et=_.onClick,tt=_.style,rt=_.primaryColor,nt=_.secondaryColor,it=_objectWithoutProperties(_,_excluded$6),at=twoToneColorPalette;if(rt&&(at={primaryColor:rt,secondaryColor:nt||getSecondaryColor(rt)}),useInsertStyles(),warning$2(isIconDefinition($),"icon should be icon definiton, but got ".concat($)),!isIconDefinition($))return null;var st=$;return st&&typeof st.icon=="function"&&(st=_objectSpread2$1(_objectSpread2$1({},st),{},{icon:st.icon(at.primaryColor,at.secondaryColor)})),generate(st.icon,"svg-".concat(st.name),_objectSpread2$1({className:_e,onClick:et,style:tt,"data-icon":st.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},it))};IconBase.displayName="IconReact";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;function setTwoToneColor(a){var _=normalizeTwoToneColors(a),$=_slicedToArray(_,2),_e=$[0],et=$[1];return IconBase.setTwoToneColors({primaryColor:_e,secondaryColor:et})}function getTwoToneColor(){var a=IconBase.getTwoToneColors();return a.calculated?[a.primaryColor,a.secondaryColor]:a.primaryColor}var _excluded$5=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor("#1890ff");var Icon=reactExports.forwardRef(function(a,_){var $=a.className,_e=a.icon,et=a.spin,tt=a.rotate,rt=a.tabIndex,nt=a.onClick,it=a.twoToneColor,at=_objectWithoutProperties(a,_excluded$5),st=reactExports.useContext(IconContext),ut=st.prefixCls,ot=ut===void 0?"anticon":ut,pt=st.rootClassName,ht=classNames(pt,ot,_defineProperty$1(_defineProperty$1({},"".concat(ot,"-").concat(_e.name),!!_e.name),"".concat(ot,"-spin"),!!et||_e.name==="loading"),$),dt=rt;dt===void 0&&nt&&(dt=-1);var gt=tt?{msTransform:"rotate(".concat(tt,"deg)"),transform:"rotate(".concat(tt,"deg)")}:void 0,lt=normalizeTwoToneColors(it),ft=_slicedToArray(lt,2),ct=ft[0],mt=ft[1];return reactExports.createElement("span",_objectSpread2$1(_objectSpread2$1({role:"img","aria-label":_e.name},at),{},{ref:_,tabIndex:dt,onClick:nt,className:ht}),reactExports.createElement(IconBase,{icon:_e,primaryColor:ct,secondaryColor:mt,style:gt}))});Icon.displayName="AntdIcon";Icon.getTwoToneColor=getTwoToneColor;Icon.setTwoToneColor=setTwoToneColor;var CloseCircleFilled$1={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},CloseCircleFilled=function a(_,$){return reactExports.createElement(Icon,_objectSpread2$1(_objectSpread2$1({},_),{},{ref:$,icon:CloseCircleFilled$1}))},RefIcon$5=reactExports.forwardRef(CloseCircleFilled),LoadingOutlined$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},LoadingOutlined=function a(_,$){return reactExports.createElement(Icon,_objectSpread2$1(_objectSpread2$1({},_),{},{ref:$,icon:LoadingOutlined$1}))},RefIcon$4=reactExports.forwardRef(LoadingOutlined);function _regeneratorRuntime(){_regeneratorRuntime=function(){return _};var a,_={},$=Object.prototype,_e=$.hasOwnProperty,et=Object.defineProperty||function(_t,bt,vt){_t[bt]=vt.value},tt=typeof Symbol=="function"?Symbol:{},rt=tt.iterator||"@@iterator",nt=tt.asyncIterator||"@@asyncIterator",it=tt.toStringTag||"@@toStringTag";function at(_t,bt,vt){return Object.defineProperty(_t,bt,{value:vt,enumerable:!0,configurable:!0,writable:!0}),_t[bt]}try{at({},"")}catch{at=function(vt,xt,Ct){return vt[xt]=Ct}}function st(_t,bt,vt,xt){var Ct=bt&&bt.prototype instanceof lt?bt:lt,Tt=Object.create(Ct.prototype),It=new Ot(xt||[]);return et(Tt,"_invoke",{value:Nt(_t,vt,It)}),Tt}function ut(_t,bt,vt){try{return{type:"normal",arg:_t.call(bt,vt)}}catch(xt){return{type:"throw",arg:xt}}}_.wrap=st;var ot="suspendedStart",pt="suspendedYield",ht="executing",dt="completed",gt={};function lt(){}function ft(){}function ct(){}var mt={};at(mt,rt,function(){return this});var yt=Object.getPrototypeOf,Et=yt&&yt(yt(wt([])));Et&&Et!==$&&_e.call(Et,rt)&&(mt=Et);var St=ct.prototype=lt.prototype=Object.create(mt);function At(_t){["next","throw","return"].forEach(function(bt){at(_t,bt,function(vt){return this._invoke(bt,vt)})})}function Mt(_t,bt){function vt(Ct,Tt,It,Rt){var Lt=ut(_t[Ct],_t,Tt);if(Lt.type!=="throw"){var Ht=Lt.arg,jt=Ht.value;return jt&&_typeof$1(jt)=="object"&&_e.call(jt,"__await")?bt.resolve(jt.__await).then(function(Qt){vt("next",Qt,It,Rt)},function(Qt){vt("throw",Qt,It,Rt)}):bt.resolve(jt).then(function(Qt){Ht.value=Qt,It(Ht)},function(Qt){return vt("throw",Qt,It,Rt)})}Rt(Lt.arg)}var xt;et(this,"_invoke",{value:function(Tt,It){function Rt(){return new bt(function(Lt,Ht){vt(Tt,It,Lt,Ht)})}return xt=xt?xt.then(Rt,Rt):Rt()}})}function Nt(_t,bt,vt){var xt=ot;return function(Ct,Tt){if(xt===ht)throw Error("Generator is already running");if(xt===dt){if(Ct==="throw")throw Tt;return{value:a,done:!0}}for(vt.method=Ct,vt.arg=Tt;;){var It=vt.delegate;if(It){var Rt=kt(It,vt);if(Rt){if(Rt===gt)continue;return Rt}}if(vt.method==="next")vt.sent=vt._sent=vt.arg;else if(vt.method==="throw"){if(xt===ot)throw xt=dt,vt.arg;vt.dispatchException(vt.arg)}else vt.method==="return"&&vt.abrupt("return",vt.arg);xt=ht;var Lt=ut(_t,bt,vt);if(Lt.type==="normal"){if(xt=vt.done?dt:pt,Lt.arg===gt)continue;return{value:Lt.arg,done:vt.done}}Lt.type==="throw"&&(xt=dt,vt.method="throw",vt.arg=Lt.arg)}}}function kt(_t,bt){var vt=bt.method,xt=_t.iterator[vt];if(xt===a)return bt.delegate=null,vt==="throw"&&_t.iterator.return&&(bt.method="return",bt.arg=a,kt(_t,bt),bt.method==="throw")||vt!=="return"&&(bt.method="throw",bt.arg=new TypeError("The iterator does not provide a '"+vt+"' method")),gt;var Ct=ut(xt,_t.iterator,bt.arg);if(Ct.type==="throw")return bt.method="throw",bt.arg=Ct.arg,bt.delegate=null,gt;var Tt=Ct.arg;return Tt?Tt.done?(bt[_t.resultName]=Tt.value,bt.next=_t.nextLoc,bt.method!=="return"&&(bt.method="next",bt.arg=a),bt.delegate=null,gt):Tt:(bt.method="throw",bt.arg=new TypeError("iterator result is not an object"),bt.delegate=null,gt)}function Pt(_t){var bt={tryLoc:_t[0]};1 in _t&&(bt.catchLoc=_t[1]),2 in _t&&(bt.finallyLoc=_t[2],bt.afterLoc=_t[3]),this.tryEntries.push(bt)}function Dt(_t){var bt=_t.completion||{};bt.type="normal",delete bt.arg,_t.completion=bt}function Ot(_t){this.tryEntries=[{tryLoc:"root"}],_t.forEach(Pt,this),this.reset(!0)}function wt(_t){if(_t||_t===""){var bt=_t[rt];if(bt)return bt.call(_t);if(typeof _t.next=="function")return _t;if(!isNaN(_t.length)){var vt=-1,xt=function Ct(){for(;++vt<_t.length;)if(_e.call(_t,vt))return Ct.value=_t[vt],Ct.done=!1,Ct;return Ct.value=a,Ct.done=!0,Ct};return xt.next=xt}}throw new TypeError(_typeof$1(_t)+" is not iterable")}return ft.prototype=ct,et(St,"constructor",{value:ct,configurable:!0}),et(ct,"constructor",{value:ft,configurable:!0}),ft.displayName=at(ct,it,"GeneratorFunction"),_.isGeneratorFunction=function(_t){var bt=typeof _t=="function"&&_t.constructor;return!!bt&&(bt===ft||(bt.displayName||bt.name)==="GeneratorFunction")},_.mark=function(_t){return Object.setPrototypeOf?Object.setPrototypeOf(_t,ct):(_t.__proto__=ct,at(_t,it,"GeneratorFunction")),_t.prototype=Object.create(St),_t},_.awrap=function(_t){return{__await:_t}},At(Mt.prototype),at(Mt.prototype,nt,function(){return this}),_.AsyncIterator=Mt,_.async=function(_t,bt,vt,xt,Ct){Ct===void 0&&(Ct=Promise);var Tt=new Mt(st(_t,bt,vt,xt),Ct);return _.isGeneratorFunction(bt)?Tt:Tt.next().then(function(It){return It.done?It.value:Tt.next()})},At(St),at(St,it,"Generator"),at(St,rt,function(){return this}),at(St,"toString",function(){return"[object Generator]"}),_.keys=function(_t){var bt=Object(_t),vt=[];for(var xt in bt)vt.push(xt);return vt.reverse(),function Ct(){for(;vt.length;){var Tt=vt.pop();if(Tt in bt)return Ct.value=Tt,Ct.done=!1,Ct}return Ct.done=!0,Ct}},_.values=wt,Ot.prototype={constructor:Ot,reset:function(bt){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(Dt),!bt)for(var vt in this)vt.charAt(0)==="t"&&_e.call(this,vt)&&!isNaN(+vt.slice(1))&&(this[vt]=a)},stop:function(){this.done=!0;var bt=this.tryEntries[0].completion;if(bt.type==="throw")throw bt.arg;return this.rval},dispatchException:function(bt){if(this.done)throw bt;var vt=this;function xt(Ht,jt){return It.type="throw",It.arg=bt,vt.next=Ht,jt&&(vt.method="next",vt.arg=a),!!jt}for(var Ct=this.tryEntries.length-1;Ct>=0;--Ct){var Tt=this.tryEntries[Ct],It=Tt.completion;if(Tt.tryLoc==="root")return xt("end");if(Tt.tryLoc<=this.prev){var Rt=_e.call(Tt,"catchLoc"),Lt=_e.call(Tt,"finallyLoc");if(Rt&&Lt){if(this.prev<Tt.catchLoc)return xt(Tt.catchLoc,!0);if(this.prev<Tt.finallyLoc)return xt(Tt.finallyLoc)}else if(Rt){if(this.prev<Tt.catchLoc)return xt(Tt.catchLoc,!0)}else{if(!Lt)throw Error("try statement without catch or finally");if(this.prev<Tt.finallyLoc)return xt(Tt.finallyLoc)}}}},abrupt:function(bt,vt){for(var xt=this.tryEntries.length-1;xt>=0;--xt){var Ct=this.tryEntries[xt];if(Ct.tryLoc<=this.prev&&_e.call(Ct,"finallyLoc")&&this.prev<Ct.finallyLoc){var Tt=Ct;break}}Tt&&(bt==="break"||bt==="continue")&&Tt.tryLoc<=vt&&vt<=Tt.finallyLoc&&(Tt=null);var It=Tt?Tt.completion:{};return It.type=bt,It.arg=vt,Tt?(this.method="next",this.next=Tt.finallyLoc,gt):this.complete(It)},complete:function(bt,vt){if(bt.type==="throw")throw bt.arg;return bt.type==="break"||bt.type==="continue"?this.next=bt.arg:bt.type==="return"?(this.rval=this.arg=bt.arg,this.method="return",this.next="end"):bt.type==="normal"&&vt&&(this.next=vt),gt},finish:function(bt){for(var vt=this.tryEntries.length-1;vt>=0;--vt){var xt=this.tryEntries[vt];if(xt.finallyLoc===bt)return this.complete(xt.completion,xt.afterLoc),Dt(xt),gt}},catch:function(bt){for(var vt=this.tryEntries.length-1;vt>=0;--vt){var xt=this.tryEntries[vt];if(xt.tryLoc===bt){var Ct=xt.completion;if(Ct.type==="throw"){var Tt=Ct.arg;Dt(xt)}return Tt}}throw Error("illegal catch attempt")},delegateYield:function(bt,vt,xt){return this.delegate={iterator:wt(bt),resultName:vt,nextLoc:xt},this.method==="next"&&(this.arg=a),gt}},_}function asyncGeneratorStep(a,_,$,_e,et,tt,rt){try{var nt=a[tt](rt),it=nt.value}catch(at){$(at);return}nt.done?_(it):Promise.resolve(it).then(_e,et)}function _asyncToGenerator(a){return function(){var _=this,$=arguments;return new Promise(function(_e,et){var tt=a.apply(_,$);function rt(it){asyncGeneratorStep(tt,_e,et,rt,nt,"next",it)}function nt(it){asyncGeneratorStep(tt,_e,et,rt,nt,"throw",it)}rt(void 0)})}}var Context$1=reactExports.createContext({}),DomWrapper=function(a){_inherits($,a);var _=_createSuper($);function $(){return _classCallCheck(this,$),_.apply(this,arguments)}return _createClass($,[{key:"render",value:function(){return this.props.children}}]),$}(reactExports.Component);function useSafeState(a){var _=reactExports.useRef(!1),$=reactExports.useState(a),_e=_slicedToArray($,2),et=_e[0],tt=_e[1];reactExports.useEffect(function(){return _.current=!1,function(){_.current=!0}},[]);function rt(nt,it){it&&_.current||tt(nt)}return[et,rt]}var STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end",STEP_PREPARED="prepared";function makePrefixMap(a,_){var $={};return $[a.toLowerCase()]=_.toLowerCase(),$["Webkit".concat(a)]="webkit".concat(_),$["Moz".concat(a)]="moz".concat(_),$["ms".concat(a)]="MS".concat(_),$["O".concat(a)]="o".concat(_.toLowerCase()),$}function getVendorPrefixes(a,_){var $={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return a&&("AnimationEvent"in _||delete $.animationend.animation,"TransitionEvent"in _||delete $.transitionend.transition),$}var vendorPrefixes=getVendorPrefixes(canUseDom(),typeof window<"u"?window:{}),style={};if(canUseDom()){var _document$createEleme=document.createElement("div");style=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(a){if(prefixedEventNames[a])return prefixedEventNames[a];var _=vendorPrefixes[a];if(_)for(var $=Object.keys(_),_e=$.length,et=0;et<_e;et+=1){var tt=$[et];if(Object.prototype.hasOwnProperty.call(_,tt)&&tt in style)return prefixedEventNames[a]=_[tt],prefixedEventNames[a]}return""}var internalAnimationEndName=getVendorPrefixedEventName("animationend"),internalTransitionEndName=getVendorPrefixedEventName("transitionend"),supportTransition=!!(internalAnimationEndName&&internalTransitionEndName),animationEndName=internalAnimationEndName||"animationend",transitionEndName=internalTransitionEndName||"transitionend";function getTransitionName$1(a,_){if(!a)return null;if(_typeof$1(a)==="object"){var $=_.replace(/-\w/g,function(_e){return _e[1].toUpperCase()});return a[$]}return"".concat(a,"-").concat(_)}const useDomMotionEvents=function(a){var _=reactExports.useRef(),$=reactExports.useRef(a);$.current=a;var _e=reactExports.useCallback(function(rt){$.current(rt)},[]);function et(rt){rt&&(rt.removeEventListener(transitionEndName,_e),rt.removeEventListener(animationEndName,_e))}function tt(rt){_.current&&_.current!==rt&&et(_.current),rt&&rt!==_.current&&(rt.addEventListener(transitionEndName,_e),rt.addEventListener(animationEndName,_e),_.current=rt)}return reactExports.useEffect(function(){return function(){et(_.current)}},[]),[tt,et]};var useIsomorphicLayoutEffect=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect,raf=function a(_){return+setTimeout(_,16)},caf=function a(_){return clearTimeout(_)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf=function(_){return window.requestAnimationFrame(_)},caf=function(_){return window.cancelAnimationFrame(_)});var rafUUID=0,rafIds=new Map;function cleanup(a){rafIds.delete(a)}var wrapperRaf$1=function a(_){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var _e=rafUUID;function et(tt){if(tt===0)cleanup(_e),_();else{var rt=raf(function(){et(tt-1)});rafIds.set(_e,rt)}}return et($),_e};wrapperRaf$1.cancel=function(a){var _=rafIds.get(a);return cleanup(a),caf(_)};const useNextFrame=function(){var a=reactExports.useRef(null);function _(){wrapperRaf$1.cancel(a.current)}function $(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;_();var tt=wrapperRaf$1(function(){et<=1?_e({isCanceled:function(){return tt!==a.current}}):$(_e,et-1)});a.current=tt}return reactExports.useEffect(function(){return function(){_()}},[]),[$,_]};var FULL_STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SIMPLE_STEP_QUEUE=[STEP_PREPARE,STEP_PREPARED],SkipStep=!1,DoStep=!0;function isActive(a){return a===STEP_ACTIVE||a===STEP_ACTIVATED}const useStepQueue=function(a,_,$){var _e=useSafeState(STEP_NONE),et=_slicedToArray(_e,2),tt=et[0],rt=et[1],nt=useNextFrame(),it=_slicedToArray(nt,2),at=it[0],st=it[1];function ut(){rt(STEP_PREPARE,!0)}var ot=_?SIMPLE_STEP_QUEUE:FULL_STEP_QUEUE;return useIsomorphicLayoutEffect(function(){if(tt!==STEP_NONE&&tt!==STEP_ACTIVATED){var pt=ot.indexOf(tt),ht=ot[pt+1],dt=$(tt);dt===SkipStep?rt(ht,!0):ht&&at(function(gt){function lt(){gt.isCanceled()||rt(ht,!0)}dt===!0?lt():Promise.resolve(dt).then(lt)})}},[a,tt]),reactExports.useEffect(function(){return function(){st()}},[]),[ut,tt]};function useStatus(a,_,$,_e){var et=_e.motionEnter,tt=et===void 0?!0:et,rt=_e.motionAppear,nt=rt===void 0?!0:rt,it=_e.motionLeave,at=it===void 0?!0:it,st=_e.motionDeadline,ut=_e.motionLeaveImmediately,ot=_e.onAppearPrepare,pt=_e.onEnterPrepare,ht=_e.onLeavePrepare,dt=_e.onAppearStart,gt=_e.onEnterStart,lt=_e.onLeaveStart,ft=_e.onAppearActive,ct=_e.onEnterActive,mt=_e.onLeaveActive,yt=_e.onAppearEnd,Et=_e.onEnterEnd,St=_e.onLeaveEnd,At=_e.onVisibleChanged,Mt=useSafeState(),Nt=_slicedToArray(Mt,2),kt=Nt[0],Pt=Nt[1],Dt=useSafeState(STATUS_NONE),Ot=_slicedToArray(Dt,2),wt=Ot[0],_t=Ot[1],bt=useSafeState(null),vt=_slicedToArray(bt,2),xt=vt[0],Ct=vt[1],Tt=reactExports.useRef(!1),It=reactExports.useRef(null);function Rt(){return $()}var Lt=reactExports.useRef(!1);function Ht(){_t(STATUS_NONE,!0),Ct(null,!0)}function jt(rr){var Ut=Rt();if(!(rr&&!rr.deadline&&rr.target!==Ut)){var zt=Lt.current,sr;wt===STATUS_APPEAR&&zt?sr=yt==null?void 0:yt(Ut,rr):wt===STATUS_ENTER&&zt?sr=Et==null?void 0:Et(Ut,rr):wt===STATUS_LEAVE&&zt&&(sr=St==null?void 0:St(Ut,rr)),wt!==STATUS_NONE&&zt&&sr!==!1&&Ht()}}var Qt=useDomMotionEvents(jt),$t=_slicedToArray(Qt,1),Bt=$t[0],Vt=function(Ut){var zt,sr,lr;switch(Ut){case STATUS_APPEAR:return zt={},_defineProperty$1(zt,STEP_PREPARE,ot),_defineProperty$1(zt,STEP_START,dt),_defineProperty$1(zt,STEP_ACTIVE,ft),zt;case STATUS_ENTER:return sr={},_defineProperty$1(sr,STEP_PREPARE,pt),_defineProperty$1(sr,STEP_START,gt),_defineProperty$1(sr,STEP_ACTIVE,ct),sr;case STATUS_LEAVE:return lr={},_defineProperty$1(lr,STEP_PREPARE,ht),_defineProperty$1(lr,STEP_START,lt),_defineProperty$1(lr,STEP_ACTIVE,mt),lr;default:return{}}},Kt=reactExports.useMemo(function(){return Vt(wt)},[wt]),qt=useStepQueue(wt,!a,function(rr){if(rr===STEP_PREPARE){var Ut=Kt[STEP_PREPARE];return Ut?Ut(Rt()):SkipStep}if(Xt in Kt){var zt;Ct(((zt=Kt[Xt])===null||zt===void 0?void 0:zt.call(Kt,Rt(),null))||null)}return Xt===STEP_ACTIVE&&(Bt(Rt()),st>0&&(clearTimeout(It.current),It.current=setTimeout(function(){jt({deadline:!0})},st))),Xt===STEP_PREPARED&&Ht(),DoStep}),Yt=_slicedToArray(qt,2),Gt=Yt[0],Xt=Yt[1],er=isActive(Xt);Lt.current=er,useIsomorphicLayoutEffect(function(){Pt(_);var rr=Tt.current;Tt.current=!0;var Ut;!rr&&_&&nt&&(Ut=STATUS_APPEAR),rr&&_&&tt&&(Ut=STATUS_ENTER),(rr&&!_&&at||!rr&&ut&&!_&&at)&&(Ut=STATUS_LEAVE);var zt=Vt(Ut);Ut&&(a||zt[STEP_PREPARE])?(_t(Ut),Gt()):_t(STATUS_NONE)},[_]),reactExports.useEffect(function(){(wt===STATUS_APPEAR&&!nt||wt===STATUS_ENTER&&!tt||wt===STATUS_LEAVE&&!at)&&_t(STATUS_NONE)},[nt,tt,at]),reactExports.useEffect(function(){return function(){Tt.current=!1,clearTimeout(It.current)}},[]);var dr=reactExports.useRef(!1);reactExports.useEffect(function(){kt&&(dr.current=!0),kt!==void 0&&wt===STATUS_NONE&&((dr.current||kt)&&(At==null||At(kt)),dr.current=!0)},[kt,wt]);var ir=xt;return Kt[STEP_PREPARE]&&Xt===STEP_START&&(ir=_objectSpread2$1({transition:"none"},ir)),[wt,Xt,ir,kt??_]}function genCSSMotion(a){var _=a;_typeof$1(a)==="object"&&(_=a.transitionSupport);function $(et,tt){return!!(et.motionName&&_&&tt!==!1)}var _e=reactExports.forwardRef(function(et,tt){var rt=et.visible,nt=rt===void 0?!0:rt,it=et.removeOnLeave,at=it===void 0?!0:it,st=et.forceRender,ut=et.children,ot=et.motionName,pt=et.leavedClassName,ht=et.eventProps,dt=reactExports.useContext(Context$1),gt=dt.motion,lt=$(et,gt),ft=reactExports.useRef(),ct=reactExports.useRef();function mt(){try{return ft.current instanceof HTMLElement?ft.current:findDOMNode(ct.current)}catch{return null}}var yt=useStatus(lt,nt,mt,et),Et=_slicedToArray(yt,4),St=Et[0],At=Et[1],Mt=Et[2],Nt=Et[3],kt=reactExports.useRef(Nt);Nt&&(kt.current=!0);var Pt=reactExports.useCallback(function(Ct){ft.current=Ct,fillRef(tt,Ct)},[tt]),Dt,Ot=_objectSpread2$1(_objectSpread2$1({},ht),{},{visible:nt});if(!ut)Dt=null;else if(St===STATUS_NONE)Nt?Dt=ut(_objectSpread2$1({},Ot),Pt):!at&&kt.current&&pt?Dt=ut(_objectSpread2$1(_objectSpread2$1({},Ot),{},{className:pt}),Pt):st||!at&&!pt?Dt=ut(_objectSpread2$1(_objectSpread2$1({},Ot),{},{style:{display:"none"}}),Pt):Dt=null;else{var wt,_t;At===STEP_PREPARE?_t="prepare":isActive(At)?_t="active":At===STEP_START&&(_t="start");var bt=getTransitionName$1(ot,"".concat(St,"-").concat(_t));Dt=ut(_objectSpread2$1(_objectSpread2$1({},Ot),{},{className:classNames(getTransitionName$1(ot,St),(wt={},_defineProperty$1(wt,bt,bt&&_t),_defineProperty$1(wt,ot,typeof ot=="string"),wt)),style:Mt}),Pt)}if(reactExports.isValidElement(Dt)&&supportRef(Dt)){var vt=Dt,xt=vt.ref;xt||(Dt=reactExports.cloneElement(Dt,{ref:Pt}))}return reactExports.createElement(DomWrapper,{ref:ct},Dt)});return _e.displayName="CSSMotion",_e}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(a){var _;return a&&_typeof$1(a)==="object"&&"key"in a?_=a:_={key:a},_objectSpread2$1(_objectSpread2$1({},_),{},{key:String(_.key)})}function parseKeys(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return a.map(wrapKeyToObject)}function diffKeys(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],$=[],_e=0,et=_.length,tt=parseKeys(a),rt=parseKeys(_);tt.forEach(function(at){for(var st=!1,ut=_e;ut<et;ut+=1){var ot=rt[ut];if(ot.key===at.key){_e<ut&&($=$.concat(rt.slice(_e,ut).map(function(pt){return _objectSpread2$1(_objectSpread2$1({},pt),{},{status:STATUS_ADD})})),_e=ut),$.push(_objectSpread2$1(_objectSpread2$1({},ot),{},{status:STATUS_KEEP})),_e+=1,st=!0;break}}st||$.push(_objectSpread2$1(_objectSpread2$1({},at),{},{status:STATUS_REMOVE}))}),_e<et&&($=$.concat(rt.slice(_e).map(function(at){return _objectSpread2$1(_objectSpread2$1({},at),{},{status:STATUS_ADD})})));var nt={};$.forEach(function(at){var st=at.key;nt[st]=(nt[st]||0)+1});var it=Object.keys(nt).filter(function(at){return nt[at]>1});return it.forEach(function(at){$=$.filter(function(st){var ut=st.key,ot=st.status;return ut!==at||ot!==STATUS_REMOVE}),$.forEach(function(st){st.key===at&&(st.status=STATUS_KEEP)})}),$}var _excluded$4=["component","children","onVisibleChanged","onAllRemoved"],_excluded2=["status"],MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(a){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,$=function(_e){_inherits(tt,_e);var et=_createSuper(tt);function tt(){var rt;_classCallCheck(this,tt);for(var nt=arguments.length,it=new Array(nt),at=0;at<nt;at++)it[at]=arguments[at];return rt=et.call.apply(et,[this].concat(it)),_defineProperty$1(_assertThisInitialized(rt),"state",{keyEntities:[]}),_defineProperty$1(_assertThisInitialized(rt),"removeKey",function(st){var ut=rt.state.keyEntities,ot=ut.map(function(pt){return pt.key!==st?pt:_objectSpread2$1(_objectSpread2$1({},pt),{},{status:STATUS_REMOVED})});return rt.setState({keyEntities:ot}),ot.filter(function(pt){var ht=pt.status;return ht!==STATUS_REMOVED}).length}),rt}return _createClass(tt,[{key:"render",value:function(){var nt=this,it=this.state.keyEntities,at=this.props,st=at.component,ut=at.children,ot=at.onVisibleChanged,pt=at.onAllRemoved,ht=_objectWithoutProperties(at,_excluded$4),dt=st||reactExports.Fragment,gt={};return MOTION_PROP_NAMES.forEach(function(lt){gt[lt]=ht[lt],delete ht[lt]}),delete ht.keys,reactExports.createElement(dt,ht,it.map(function(lt,ft){var ct=lt.status,mt=_objectWithoutProperties(lt,_excluded2),yt=ct===STATUS_ADD||ct===STATUS_KEEP;return reactExports.createElement(_,_extends$1({},gt,{key:mt.key,visible:yt,eventProps:mt,onVisibleChanged:function(St){if(ot==null||ot(St,{key:mt.key}),!St){var At=nt.removeKey(mt.key);At===0&&pt&&pt()}}}),function(Et,St){return ut(_objectSpread2$1(_objectSpread2$1({},Et),{},{index:ft}),St)})}))}}],[{key:"getDerivedStateFromProps",value:function(nt,it){var at=nt.keys,st=it.keyEntities,ut=parseKeys(at),ot=diffKeys(st,ut);return{keyEntities:ot.filter(function(pt){var ht=st.find(function(dt){var gt=dt.key;return pt.key===gt});return!(ht&&ht.status===STATUS_REMOVED&&pt.status===STATUS_REMOVE)})}}}]),tt}(reactExports.Component);return _defineProperty$1($,"defaultProps",{component:"div"}),$}genCSSMotionList(supportTransition);var CloseOutlined$1={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},CloseOutlined=function a(_,$){return reactExports.createElement(Icon,_objectSpread2$1(_objectSpread2$1({},_),{},{ref:$,icon:CloseOutlined$1}))},RefIcon$3=reactExports.forwardRef(CloseOutlined),defaultGetPrefixCls=function a(_,$){return $||(_?"ant-".concat(_):"ant")},ConfigContext=reactExports.createContext({getPrefixCls:defaultGetPrefixCls}),ConfigConsumer=ConfigContext.Consumer,DisabledContext=reactExports.createContext(!1),SizeContext=reactExports.createContext(void 0);function addEventListenerWrap(a,_,$,_e){var et=ReactDOM.unstable_batchedUpdates?function(rt){ReactDOM.unstable_batchedUpdates($,rt)}:$;return a!=null&&a.addEventListener&&a.addEventListener(_,et,_e),{remove:function(){a!=null&&a.removeEventListener&&a.removeEventListener(_,et,_e)}}}var isValidElement=reactExports.isValidElement;function isFragment(a){return a&&isValidElement(a)&&a.type===reactExports.Fragment}function replaceElement(a,_,$){return isValidElement(a)?reactExports.cloneElement(a,typeof $=="function"?$(a.props||{}):$):_}function cloneElement(a,_){return replaceElement(a,a,_)}function useEvent(a){var _=reactExports.useRef();_.current=a;var $=reactExports.useCallback(function(){for(var _e,et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return(_e=_.current)===null||_e===void 0?void 0:_e.call.apply(_e,[_].concat(tt))},[]);return $}var useInternalLayoutEffect=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect,useLayoutEffect=function a(_,$){var _e=reactExports.useRef(!0);useInternalLayoutEffect(function(){return _(_e.current)},$),useInternalLayoutEffect(function(){return _e.current=!1,function(){_e.current=!0}},[])},useLayoutUpdateEffect=function a(_,$){useLayoutEffect(function(_e){if(!_e)return _()},$)};function hasValue(a){return a!==void 0}function useMergedState(a,_){var $=_||{},_e=$.defaultValue,et=$.value,tt=$.onChange,rt=$.postState,nt=useSafeState(function(){return hasValue(et)?et:hasValue(_e)?typeof _e=="function"?_e():_e:typeof a=="function"?a():a}),it=_slicedToArray(nt,2),at=it[0],st=it[1],ut=et!==void 0?et:at,ot=rt?rt(ut):ut,pt=useEvent(tt),ht=useSafeState([ut]),dt=_slicedToArray(ht,2),gt=dt[0],lt=dt[1];useLayoutUpdateEffect(function(){var ct=gt[0];at!==ct&&pt(at,ct)},[gt]),useLayoutUpdateEffect(function(){hasValue(et)||st(et)},[et]);var ft=useEvent(function(ct,mt){st(ct,mt),lt([ut],mt)});return[ot,ft]}const isMobile=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var a=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(a==null?void 0:a.substr(0,4))};var KeyCode={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function a(_){var $=_.keyCode;if(_.altKey&&!_.ctrlKey||_.metaKey||$>=KeyCode.F1&&$<=KeyCode.F12)return!1;switch($){case KeyCode.ALT:case KeyCode.CAPS_LOCK:case KeyCode.CONTEXT_MENU:case KeyCode.CTRL:case KeyCode.DOWN:case KeyCode.END:case KeyCode.ESC:case KeyCode.HOME:case KeyCode.INSERT:case KeyCode.LEFT:case KeyCode.MAC_FF_META:case KeyCode.META:case KeyCode.NUMLOCK:case KeyCode.NUM_CENTER:case KeyCode.PAGE_DOWN:case KeyCode.PAGE_UP:case KeyCode.PAUSE:case KeyCode.PRINT_SCREEN:case KeyCode.RIGHT:case KeyCode.SHIFT:case KeyCode.UP:case KeyCode.WIN_KEY:case KeyCode.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function a(_){if(_>=KeyCode.ZERO&&_<=KeyCode.NINE||_>=KeyCode.NUM_ZERO&&_<=KeyCode.NUM_MULTIPLY||_>=KeyCode.A&&_<=KeyCode.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&_===0)return!0;switch(_){case KeyCode.SPACE:case KeyCode.QUESTION_MARK:case KeyCode.NUM_PLUS:case KeyCode.NUM_MINUS:case KeyCode.NUM_PERIOD:case KeyCode.NUM_DIVISION:case KeyCode.SEMICOLON:case KeyCode.DASH:case KeyCode.EQUALS:case KeyCode.COMMA:case KeyCode.PERIOD:case KeyCode.SLASH:case KeyCode.APOSTROPHE:case KeyCode.SINGLE_QUOTE:case KeyCode.OPEN_SQUARE_BRACKET:case KeyCode.BACKSLASH:case KeyCode.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Portal=reactExports.forwardRef(function(a,_){var $=a.didUpdate,_e=a.getContainer,et=a.children,tt=reactExports.useRef(),rt=reactExports.useRef();reactExports.useImperativeHandle(_,function(){return{}});var nt=reactExports.useRef(!1);return!nt.current&&canUseDom()&&(rt.current=_e(),tt.current=rt.current.parentNode,nt.current=!0),reactExports.useEffect(function(){$==null||$(a)}),reactExports.useEffect(function(){return rt.current.parentNode===null&&tt.current!==null&&tt.current.appendChild(rt.current),function(){var it;(it=rt.current)===null||it===void 0||(it=it.parentNode)===null||it===void 0||it.removeChild(rt.current)}},[]),rt.current?ReactDOM.createPortal(et,rt.current):null});function isPointsEq(a,_,$){return $?a[0]===_[0]:a[0]===_[0]&&a[1]===_[1]}function getAlignFromPlacement(a,_,$){var _e=a[_]||{};return _objectSpread2$1(_objectSpread2$1({},_e),$)}function getAlignPopupClassName(a,_,$,_e){for(var et=$.points,tt=Object.keys(a),rt=0;rt<tt.length;rt+=1){var nt=tt[rt];if(isPointsEq(a[nt].points,et,_e))return"".concat(_,"-placement-").concat(nt)}return""}function getMotion(a){var _=a.prefixCls,$=a.motion,_e=a.animation,et=a.transitionName;return $||(_e?{motionName:"".concat(_,"-").concat(_e)}:et?{motionName:et}:null)}function Mask(a){var _=a.prefixCls,$=a.visible,_e=a.zIndex,et=a.mask,tt=a.maskMotion,rt=a.maskAnimation,nt=a.maskTransitionName;if(!et)return null;var it={};return(tt||nt||rt)&&(it=_objectSpread2$1({motionAppear:!0},getMotion({motion:tt,prefixCls:_,transitionName:nt,animation:rt}))),reactExports.createElement(CSSMotion,_extends$1({},it,{visible:$,removeOnLeave:!0}),function(at){var st=at.className;return reactExports.createElement("div",{style:{zIndex:_e},className:classNames("".concat(_,"-mask"),st)})})}function ownKeys(a,_){var $=Object.keys(a);if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(a);_&&(_e=_e.filter(function(et){return Object.getOwnPropertyDescriptor(a,et).enumerable})),$.push.apply($,_e)}return $}function _objectSpread2(a){for(var _=1;_<arguments.length;_++){var $=arguments[_]!=null?arguments[_]:{};_%2?ownKeys(Object($),!0).forEach(function(_e){_defineProperty(a,_e,$[_e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors($)):ownKeys(Object($)).forEach(function(_e){Object.defineProperty(a,_e,Object.getOwnPropertyDescriptor($,_e))})}return a}function _typeof(a){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},_typeof(a)}function _defineProperty(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var vendorPrefix,jsCssMap={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function getVendorPrefix(){if(vendorPrefix!==void 0)return vendorPrefix;vendorPrefix="";var a=document.createElement("p").style,_="Transform";for(var $ in jsCssMap)$+_ in a&&(vendorPrefix=$);return vendorPrefix}function getTransitionName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"TransitionProperty"):"transitionProperty"}function getTransformName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"Transform"):"transform"}function setTransitionProperty(a,_){var $=getTransitionName();$&&(a.style[$]=_,$!=="transitionProperty"&&(a.style.transitionProperty=_))}function setTransform(a,_){var $=getTransformName();$&&(a.style[$]=_,$!=="transform"&&(a.style.transform=_))}function getTransitionProperty(a){return a.style.transitionProperty||a.style[getTransitionName()]}function getTransformXY(a){var _=window.getComputedStyle(a,null),$=_.getPropertyValue("transform")||_.getPropertyValue(getTransformName());if($&&$!=="none"){var _e=$.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(_e[12]||_e[4],0),y:parseFloat(_e[13]||_e[5],0)}}return{x:0,y:0}}var matrix2d=/matrix\((.*)\)/,matrix3d=/matrix3d\((.*)\)/;function setTransformXY(a,_){var $=window.getComputedStyle(a,null),_e=$.getPropertyValue("transform")||$.getPropertyValue(getTransformName());if(_e&&_e!=="none"){var et,tt=_e.match(matrix2d);if(tt)tt=tt[1],et=tt.split(",").map(function(nt){return parseFloat(nt,10)}),et[4]=_.x,et[5]=_.y,setTransform(a,"matrix(".concat(et.join(","),")"));else{var rt=_e.match(matrix3d)[1];et=rt.split(",").map(function(nt){return parseFloat(nt,10)}),et[12]=_.x,et[13]=_.y,setTransform(a,"matrix3d(".concat(et.join(","),")"))}}else setTransform(a,"translateX(".concat(_.x,"px) translateY(").concat(_.y,"px) translateZ(0)"))}var RE_NUM=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,getComputedStyleX;function forceRelayout(a){var _=a.style.display;a.style.display="none",a.offsetHeight,a.style.display=_}function css(a,_,$){var _e=$;if(_typeof(_)==="object"){for(var et in _)_.hasOwnProperty(et)&&css(a,et,_[et]);return}if(typeof _e<"u"){typeof _e=="number"&&(_e="".concat(_e,"px")),a.style[_]=_e;return}return getComputedStyleX(a,_)}function getClientPosition(a){var _,$,_e,et=a.ownerDocument,tt=et.body,rt=et&&et.documentElement;return _=a.getBoundingClientRect(),$=Math.floor(_.left),_e=Math.floor(_.top),$-=rt.clientLeft||tt.clientLeft||0,_e-=rt.clientTop||tt.clientTop||0,{left:$,top:_e}}function getScroll(a,_){var $=a["page".concat(_?"Y":"X","Offset")],_e="scroll".concat(_?"Top":"Left");if(typeof $!="number"){var et=a.document;$=et.documentElement[_e],typeof $!="number"&&($=et.body[_e])}return $}function getScrollLeft(a){return getScroll(a)}function getScrollTop(a){return getScroll(a,!0)}function getOffset(a){var _=getClientPosition(a),$=a.ownerDocument,_e=$.defaultView||$.parentWindow;return _.left+=getScrollLeft(_e),_.top+=getScrollTop(_e),_}function isWindow(a){return a!=null&&a==a.window}function getDocument(a){return isWindow(a)?a.document:a.nodeType===9?a:a.ownerDocument}function _getComputedStyle(a,_,$){var _e=$,et="",tt=getDocument(a);return _e=_e||tt.defaultView.getComputedStyle(a,null),_e&&(et=_e.getPropertyValue(_)||_e[_]),et}var _RE_NUM_NO_PX=new RegExp("^(".concat(RE_NUM,")(?!px)[a-z%]+$"),"i"),RE_POS=/^(top|right|bottom|left)$/,CURRENT_STYLE="currentStyle",RUNTIME_STYLE="runtimeStyle",LEFT="left",PX="px";function _getComputedStyleIE(a,_){var $=a[CURRENT_STYLE]&&a[CURRENT_STYLE][_];if(_RE_NUM_NO_PX.test($)&&!RE_POS.test(_)){var _e=a.style,et=_e[LEFT],tt=a[RUNTIME_STYLE][LEFT];a[RUNTIME_STYLE][LEFT]=a[CURRENT_STYLE][LEFT],_e[LEFT]=_==="fontSize"?"1em":$||0,$=_e.pixelLeft+PX,_e[LEFT]=et,a[RUNTIME_STYLE][LEFT]=tt}return $===""?"auto":$}typeof window<"u"&&(getComputedStyleX=window.getComputedStyle?_getComputedStyle:_getComputedStyleIE);function getOffsetDirection(a,_){return a==="left"?_.useCssRight?"right":a:_.useCssBottom?"bottom":a}function oppositeOffsetDirection(a){if(a==="left")return"right";if(a==="right")return"left";if(a==="top")return"bottom";if(a==="bottom")return"top"}function setLeftTop(a,_,$){css(a,"position")==="static"&&(a.style.position="relative");var _e=-999,et=-999,tt=getOffsetDirection("left",$),rt=getOffsetDirection("top",$),nt=oppositeOffsetDirection(tt),it=oppositeOffsetDirection(rt);tt!=="left"&&(_e=999),rt!=="top"&&(et=999);var at="",st=getOffset(a);("left"in _||"top"in _)&&(at=getTransitionProperty(a)||"",setTransitionProperty(a,"none")),"left"in _&&(a.style[nt]="",a.style[tt]="".concat(_e,"px")),"top"in _&&(a.style[it]="",a.style[rt]="".concat(et,"px")),forceRelayout(a);var ut=getOffset(a),ot={};for(var pt in _)if(_.hasOwnProperty(pt)){var ht=getOffsetDirection(pt,$),dt=pt==="left"?_e:et,gt=st[pt]-ut[pt];ht===pt?ot[ht]=dt+gt:ot[ht]=dt-gt}css(a,ot),forceRelayout(a),("left"in _||"top"in _)&&setTransitionProperty(a,at);var lt={};for(var ft in _)if(_.hasOwnProperty(ft)){var ct=getOffsetDirection(ft,$),mt=_[ft]-st[ft];ft===ct?lt[ct]=ot[ct]+mt:lt[ct]=ot[ct]-mt}css(a,lt)}function setTransform$1(a,_){var $=getOffset(a),_e=getTransformXY(a),et={x:_e.x,y:_e.y};"left"in _&&(et.x=_e.x+_.left-$.left),"top"in _&&(et.y=_e.y+_.top-$.top),setTransformXY(a,et)}function setOffset(a,_,$){if($.ignoreShake){var _e=getOffset(a),et=_e.left.toFixed(0),tt=_e.top.toFixed(0),rt=_.left.toFixed(0),nt=_.top.toFixed(0);if(et===rt&&tt===nt)return}$.useCssRight||$.useCssBottom?setLeftTop(a,_,$):$.useCssTransform&&getTransformName()in document.body.style?setTransform$1(a,_):setLeftTop(a,_,$)}function each(a,_){for(var $=0;$<a.length;$++)_(a[$])}function isBorderBoxFn(a){return getComputedStyleX(a,"boxSizing")==="border-box"}var BOX_MODELS=["margin","border","padding"],CONTENT_INDEX=-1,PADDING_INDEX=2,BORDER_INDEX=1,MARGIN_INDEX=0;function swap(a,_,$){var _e={},et=a.style,tt;for(tt in _)_.hasOwnProperty(tt)&&(_e[tt]=et[tt],et[tt]=_[tt]);$.call(a);for(tt in _)_.hasOwnProperty(tt)&&(et[tt]=_e[tt])}function getPBMWidth(a,_,$){var _e=0,et,tt,rt;for(tt=0;tt<_.length;tt++)if(et=_[tt],et)for(rt=0;rt<$.length;rt++){var nt=void 0;et==="border"?nt="".concat(et).concat($[rt],"Width"):nt=et+$[rt],_e+=parseFloat(getComputedStyleX(a,nt))||0}return _e}var domUtils={getParent:function a(_){var $=_;do $.nodeType===11&&$.host?$=$.host:$=$.parentNode;while($&&$.nodeType!==1&&$.nodeType!==9);return $}};each(["Width","Height"],function(a){domUtils["doc".concat(a)]=function(_){var $=_.document;return Math.max($.documentElement["scroll".concat(a)],$.body["scroll".concat(a)],domUtils["viewport".concat(a)]($))},domUtils["viewport".concat(a)]=function(_){var $="client".concat(a),_e=_.document,et=_e.body,tt=_e.documentElement,rt=tt[$];return _e.compatMode==="CSS1Compat"&&rt||et&&et[$]||rt}});function getWH(a,_,$){var _e=$;if(isWindow(a))return _==="width"?domUtils.viewportWidth(a):domUtils.viewportHeight(a);if(a.nodeType===9)return _==="width"?domUtils.docWidth(a):domUtils.docHeight(a);var et=_==="width"?["Left","Right"]:["Top","Bottom"],tt=Math.floor(_==="width"?a.getBoundingClientRect().width:a.getBoundingClientRect().height),rt=isBorderBoxFn(a),nt=0;(tt==null||tt<=0)&&(tt=void 0,nt=getComputedStyleX(a,_),(nt==null||Number(nt)<0)&&(nt=a.style[_]||0),nt=Math.floor(parseFloat(nt))||0),_e===void 0&&(_e=rt?BORDER_INDEX:CONTENT_INDEX);var it=tt!==void 0||rt,at=tt||nt;return _e===CONTENT_INDEX?it?at-getPBMWidth(a,["border","padding"],et):nt:it?_e===BORDER_INDEX?at:at+(_e===PADDING_INDEX?-getPBMWidth(a,["border"],et):getPBMWidth(a,["margin"],et)):nt+getPBMWidth(a,BOX_MODELS.slice(_e),et)}var cssShow={position:"absolute",visibility:"hidden",display:"block"};function getWHIgnoreDisplay(){for(var a=arguments.length,_=new Array(a),$=0;$<a;$++)_[$]=arguments[$];var _e,et=_[0];return et.offsetWidth!==0?_e=getWH.apply(void 0,_):swap(et,cssShow,function(){_e=getWH.apply(void 0,_)}),_e}each(["width","height"],function(a){var _=a.charAt(0).toUpperCase()+a.slice(1);domUtils["outer".concat(_)]=function(_e,et){return _e&&getWHIgnoreDisplay(_e,a,et?MARGIN_INDEX:BORDER_INDEX)};var $=a==="width"?["Left","Right"]:["Top","Bottom"];domUtils[a]=function(_e,et){var tt=et;if(tt!==void 0){if(_e){var rt=isBorderBoxFn(_e);return rt&&(tt+=getPBMWidth(_e,["padding","border"],$)),css(_e,a,tt)}return}return _e&&getWHIgnoreDisplay(_e,a,CONTENT_INDEX)}});function mix(a,_){for(var $ in _)_.hasOwnProperty($)&&(a[$]=_[$]);return a}var utils={getWindow:function a(_){if(_&&_.document&&_.setTimeout)return _;var $=_.ownerDocument||_;return $.defaultView||$.parentWindow},getDocument,offset:function a(_,$,_e){if(typeof $<"u")setOffset(_,$,_e||{});else return getOffset(_)},isWindow,each,css,clone:function a(_){var $,_e={};for($ in _)_.hasOwnProperty($)&&(_e[$]=_[$]);var et=_.overflow;if(et)for($ in _)_.hasOwnProperty($)&&(_e.overflow[$]=_.overflow[$]);return _e},mix,getWindowScrollLeft:function a(_){return getScrollLeft(_)},getWindowScrollTop:function a(_){return getScrollTop(_)},merge:function a(){for(var _={},$=0;$<arguments.length;$++)utils.mix(_,$<0||arguments.length<=$?void 0:arguments[$]);return _},viewportWidth:0,viewportHeight:0};mix(utils,domUtils);var getParent=utils.getParent;function getOffsetParent(a){if(utils.isWindow(a)||a.nodeType===9)return null;var _=utils.getDocument(a),$=_.body,_e,et=utils.css(a,"position"),tt=et==="fixed"||et==="absolute";if(!tt)return a.nodeName.toLowerCase()==="html"?null:getParent(a);for(_e=getParent(a);_e&&_e!==$&&_e.nodeType!==9;_e=getParent(_e))if(et=utils.css(_e,"position"),et!=="static")return _e;return null}var getParent$1=utils.getParent;function isAncestorFixed(a){if(utils.isWindow(a)||a.nodeType===9)return!1;var _=utils.getDocument(a),$=_.body,_e=null;for(_e=getParent$1(a);_e&&_e!==$&&_e!==_;_e=getParent$1(_e)){var et=utils.css(_e,"position");if(et==="fixed")return!0}return!1}function getVisibleRectForElement(a,_){for(var $={left:0,right:1/0,top:0,bottom:1/0},_e=getOffsetParent(a),et=utils.getDocument(a),tt=et.defaultView||et.parentWindow,rt=et.body,nt=et.documentElement;_e;){if((navigator.userAgent.indexOf("MSIE")===-1||_e.clientWidth!==0)&&_e!==rt&&_e!==nt&&utils.css(_e,"overflow")!=="visible"){var it=utils.offset(_e);it.left+=_e.clientLeft,it.top+=_e.clientTop,$.top=Math.max($.top,it.top),$.right=Math.min($.right,it.left+_e.clientWidth),$.bottom=Math.min($.bottom,it.top+_e.clientHeight),$.left=Math.max($.left,it.left)}else if(_e===rt||_e===nt)break;_e=getOffsetParent(_e)}var at=null;if(!utils.isWindow(a)&&a.nodeType!==9){at=a.style.position;var st=utils.css(a,"position");st==="absolute"&&(a.style.position="fixed")}var ut=utils.getWindowScrollLeft(tt),ot=utils.getWindowScrollTop(tt),pt=utils.viewportWidth(tt),ht=utils.viewportHeight(tt),dt=nt.scrollWidth,gt=nt.scrollHeight,lt=window.getComputedStyle(rt);if(lt.overflowX==="hidden"&&(dt=tt.innerWidth),lt.overflowY==="hidden"&&(gt=tt.innerHeight),a.style&&(a.style.position=at),_||isAncestorFixed(a))$.left=Math.max($.left,ut),$.top=Math.max($.top,ot),$.right=Math.min($.right,ut+pt),$.bottom=Math.min($.bottom,ot+ht);else{var ft=Math.max(dt,ut+pt);$.right=Math.min($.right,ft);var ct=Math.max(gt,ot+ht);$.bottom=Math.min($.bottom,ct)}return $.top>=0&&$.left>=0&&$.bottom>$.top&&$.right>$.left?$:null}function adjustForViewport(a,_,$,_e){var et=utils.clone(a),tt={width:_.width,height:_.height};return _e.adjustX&&et.left<$.left&&(et.left=$.left),_e.resizeWidth&&et.left>=$.left&&et.left+tt.width>$.right&&(tt.width-=et.left+tt.width-$.right),_e.adjustX&&et.left+tt.width>$.right&&(et.left=Math.max($.right-tt.width,$.left)),_e.adjustY&&et.top<$.top&&(et.top=$.top),_e.resizeHeight&&et.top>=$.top&&et.top+tt.height>$.bottom&&(tt.height-=et.top+tt.height-$.bottom),_e.adjustY&&et.top+tt.height>$.bottom&&(et.top=Math.max($.bottom-tt.height,$.top)),utils.mix(et,tt)}function getRegion(a){var _,$,_e;if(!utils.isWindow(a)&&a.nodeType!==9)_=utils.offset(a),$=utils.outerWidth(a),_e=utils.outerHeight(a);else{var et=utils.getWindow(a);_={left:utils.getWindowScrollLeft(et),top:utils.getWindowScrollTop(et)},$=utils.viewportWidth(et),_e=utils.viewportHeight(et)}return _.width=$,_.height=_e,_}function getAlignOffset(a,_){var $=_.charAt(0),_e=_.charAt(1),et=a.width,tt=a.height,rt=a.left,nt=a.top;return $==="c"?nt+=tt/2:$==="b"&&(nt+=tt),_e==="c"?rt+=et/2:_e==="r"&&(rt+=et),{left:rt,top:nt}}function getElFuturePos(a,_,$,_e,et){var tt=getAlignOffset(_,$[1]),rt=getAlignOffset(a,$[0]),nt=[rt.left-tt.left,rt.top-tt.top];return{left:Math.round(a.left-nt[0]+_e[0]-et[0]),top:Math.round(a.top-nt[1]+_e[1]-et[1])}}function isFailX(a,_,$){return a.left<$.left||a.left+_.width>$.right}function isFailY(a,_,$){return a.top<$.top||a.top+_.height>$.bottom}function isCompleteFailX(a,_,$){return a.left>$.right||a.left+_.width<$.left}function isCompleteFailY(a,_,$){return a.top>$.bottom||a.top+_.height<$.top}function flip(a,_,$){var _e=[];return utils.each(a,function(et){_e.push(et.replace(_,function(tt){return $[tt]}))}),_e}function flipOffset(a,_){return a[_]=-a[_],a}function convertOffset(a,_){var $;return/%$/.test(a)?$=parseInt(a.substring(0,a.length-1),10)/100*_:$=parseInt(a,10),$||0}function normalizeOffset(a,_){a[0]=convertOffset(a[0],_.width),a[1]=convertOffset(a[1],_.height)}function doAlign(a,_,$,_e){var et=$.points,tt=$.offset||[0,0],rt=$.targetOffset||[0,0],nt=$.overflow,it=$.source||a;tt=[].concat(tt),rt=[].concat(rt),nt=nt||{};var at={},st=0,ut=!!(nt&&nt.alwaysByViewport),ot=getVisibleRectForElement(it,ut),pt=getRegion(it);normalizeOffset(tt,pt),normalizeOffset(rt,_);var ht=getElFuturePos(pt,_,et,tt,rt),dt=utils.merge(pt,ht);if(ot&&(nt.adjustX||nt.adjustY)&&_e){if(nt.adjustX&&isFailX(ht,pt,ot)){var gt=flip(et,/[lr]/gi,{l:"r",r:"l"}),lt=flipOffset(tt,0),ft=flipOffset(rt,0),ct=getElFuturePos(pt,_,gt,lt,ft);isCompleteFailX(ct,pt,ot)||(st=1,et=gt,tt=lt,rt=ft)}if(nt.adjustY&&isFailY(ht,pt,ot)){var mt=flip(et,/[tb]/gi,{t:"b",b:"t"}),yt=flipOffset(tt,1),Et=flipOffset(rt,1),St=getElFuturePos(pt,_,mt,yt,Et);isCompleteFailY(St,pt,ot)||(st=1,et=mt,tt=yt,rt=Et)}st&&(ht=getElFuturePos(pt,_,et,tt,rt),utils.mix(dt,ht));var At=isFailX(ht,pt,ot),Mt=isFailY(ht,pt,ot);if(At||Mt){var Nt=et;At&&(Nt=flip(et,/[lr]/gi,{l:"r",r:"l"})),Mt&&(Nt=flip(et,/[tb]/gi,{t:"b",b:"t"})),et=Nt,tt=$.offset||[0,0],rt=$.targetOffset||[0,0]}at.adjustX=nt.adjustX&&At,at.adjustY=nt.adjustY&&Mt,(at.adjustX||at.adjustY)&&(dt=adjustForViewport(ht,pt,ot,at))}return dt.width!==pt.width&&utils.css(it,"width",utils.width(it)+dt.width-pt.width),dt.height!==pt.height&&utils.css(it,"height",utils.height(it)+dt.height-pt.height),utils.offset(it,{left:dt.left,top:dt.top},{useCssRight:$.useCssRight,useCssBottom:$.useCssBottom,useCssTransform:$.useCssTransform,ignoreShake:$.ignoreShake}),{points:et,offset:tt,targetOffset:rt,overflow:at}}function isOutOfVisibleRect(a,_){var $=getVisibleRectForElement(a,_),_e=getRegion(a);return!$||_e.left+_e.width<=$.left||_e.top+_e.height<=$.top||_e.left>=$.right||_e.top>=$.bottom}function alignElement(a,_,$){var _e=$.target||_,et=getRegion(_e),tt=!isOutOfVisibleRect(_e,$.overflow&&$.overflow.alwaysByViewport);return doAlign(a,et,$,tt)}alignElement.__getOffsetParent=getOffsetParent;alignElement.__getVisibleRectForElement=getVisibleRectForElement;function alignPoint(a,_,$){var _e,et,tt=utils.getDocument(a),rt=tt.defaultView||tt.parentWindow,nt=utils.getWindowScrollLeft(rt),it=utils.getWindowScrollTop(rt),at=utils.viewportWidth(rt),st=utils.viewportHeight(rt);"pageX"in _?_e=_.pageX:_e=nt+_.clientX,"pageY"in _?et=_.pageY:et=it+_.clientY;var ut={left:_e,top:et,width:0,height:0},ot=_e>=0&&_e<=nt+at&&et>=0&&et<=it+st,pt=[$.points[0],"cc"];return doAlign(a,ut,_objectSpread2(_objectSpread2({},$),{},{points:pt}),ot)}function isEqual$1(a,_){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_e=new Set;function et(tt,rt){var nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,it=_e.has(tt);if(warningOnce(!it,"Warning: There may be circular references"),it)return!1;if(tt===rt)return!0;if($&&nt>1)return!1;_e.add(tt);var at=nt+1;if(Array.isArray(tt)){if(!Array.isArray(rt)||tt.length!==rt.length)return!1;for(var st=0;st<tt.length;st++)if(!et(tt[st],rt[st],at))return!1;return!0}if(tt&&rt&&_typeof$1(tt)==="object"&&_typeof$1(rt)==="object"){var ut=Object.keys(tt);return ut.length!==Object.keys(rt).length?!1:ut.every(function(ot){return et(tt[ot],rt[ot],at)})}return!1}return et(a,_)}const isVisible=function(a){if(!a)return!1;if(a instanceof Element){if(a.offsetParent)return!0;if(a.getBBox){var _=a.getBBox(),$=_.width,_e=_.height;if($||_e)return!0}if(a.getBoundingClientRect){var et=a.getBoundingClientRect(),tt=et.width,rt=et.height;if(tt||rt)return!0}}return!1},useBuffer=function(a,_){var $=React.useRef(!1),_e=React.useRef(null);function et(){window.clearTimeout(_e.current)}function tt(rt){if(et(),!$.current||rt===!0){if(a(rt)===!1)return;$.current=!0,_e.current=window.setTimeout(function(){$.current=!1},_)}else _e.current=window.setTimeout(function(){$.current=!1,tt()},_)}return[tt,function(){$.current=!1,et()}]};function isSamePoint(a,_){return a===_?!0:!a||!_?!1:"pageX"in _&&"pageY"in _?a.pageX===_.pageX&&a.pageY===_.pageY:"clientX"in _&&"clientY"in _?a.clientX===_.clientX&&a.clientY===_.clientY:!1}function restoreFocus(a,_){a!==document.activeElement&&contains(_,a)&&typeof a.focus=="function"&&a.focus()}function monitorResize(a,_){var $=null,_e=null;function et(rt){var nt=_slicedToArray(rt,1),it=nt[0].target;if(document.documentElement.contains(it)){var at=it.getBoundingClientRect(),st=at.width,ut=at.height,ot=Math.floor(st),pt=Math.floor(ut);($!==ot||_e!==pt)&&Promise.resolve().then(function(){_({width:ot,height:pt})}),$=ot,_e=pt}}var tt=new index(et);return a&&tt.observe(a),function(){tt.disconnect()}}function getElement(a){return typeof a!="function"?null:a()}function getPoint(a){return _typeof$1(a)!=="object"||!a?null:a}var Align=function a(_,$){var _e=_.children,et=_.disabled,tt=_.target,rt=_.align,nt=_.onAlign,it=_.monitorWindowResize,at=_.monitorBufferTime,st=at===void 0?0:at,ut=React.useRef({}),ot=React.useRef(),pt=React.Children.only(_e),ht=React.useRef({});ht.current.disabled=et,ht.current.target=tt,ht.current.align=rt,ht.current.onAlign=nt;var dt=useBuffer(function(){var kt=ht.current,Pt=kt.disabled,Dt=kt.target,Ot=kt.align,wt=kt.onAlign,_t=ot.current;if(!Pt&&Dt&&_t){var bt,vt=getElement(Dt),xt=getPoint(Dt);ut.current.element=vt,ut.current.point=xt,ut.current.align=Ot;var Ct=document,Tt=Ct.activeElement;return vt&&isVisible(vt)?bt=alignElement(_t,vt,Ot):xt&&(bt=alignPoint(_t,xt,Ot)),restoreFocus(Tt,_t),wt&&bt&&wt(_t,bt),!0}return!1},st),gt=_slicedToArray(dt,2),lt=gt[0],ft=gt[1],ct=React.useState(),mt=_slicedToArray(ct,2),yt=mt[0],Et=mt[1],St=React.useState(),At=_slicedToArray(St,2),Mt=At[0],Nt=At[1];return useLayoutEffect(function(){Et(getElement(tt)),Nt(getPoint(tt))}),React.useEffect(function(){(ut.current.element!==yt||!isSamePoint(ut.current.point,Mt)||!isEqual$1(ut.current.align,rt))&<()}),React.useEffect(function(){var kt=monitorResize(ot.current,lt);return kt},[ot.current]),React.useEffect(function(){var kt=monitorResize(yt,lt);return kt},[yt]),React.useEffect(function(){et?ft():lt()},[et]),React.useEffect(function(){if(it){var kt=addEventListenerWrap(window,"resize",lt);return kt.remove}},[it]),React.useEffect(function(){return function(){ft()}},[]),React.useImperativeHandle($,function(){return{forceAlign:function(){return lt(!0)}}}),React.isValidElement(pt)&&(pt=React.cloneElement(pt,{ref:composeRef(pt.ref,ot)})),pt},RcAlign=React.forwardRef(Align);RcAlign.displayName="Align";var StatusQueue=["measure","alignPre","align",null,"motion"];const useVisibleStatus=function(a,_){var $=useSafeState(null),_e=_slicedToArray($,2),et=_e[0],tt=_e[1],rt=reactExports.useRef();function nt(st){tt(st,!0)}function it(){wrapperRaf$1.cancel(rt.current)}function at(st){it(),rt.current=wrapperRaf$1(function(){nt(function(ut){switch(et){case"align":return"motion";case"motion":return"stable"}return ut}),st==null||st()})}return reactExports.useEffect(function(){nt("measure")},[a]),reactExports.useEffect(function(){switch(et){case"measure":_();break}et&&(rt.current=wrapperRaf$1(_asyncToGenerator(_regeneratorRuntime().mark(function st(){var ut,ot;return _regeneratorRuntime().wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:ut=StatusQueue.indexOf(et),ot=StatusQueue[ut+1],ot&&ut!==-1&&nt(ot);case 3:case"end":return ht.stop()}},st)}))))},[et]),reactExports.useEffect(function(){return function(){it()}},[]),[et,at]},useStretchStyle=function(a){var _=reactExports.useState({width:0,height:0}),$=_slicedToArray(_,2),_e=$[0],et=$[1];function tt(nt){var it=nt.offsetWidth,at=nt.offsetHeight,st=nt.getBoundingClientRect(),ut=st.width,ot=st.height;Math.abs(it-ut)<1&&Math.abs(at-ot)<1&&(it=ut,at=ot),et({width:it,height:at})}var rt=reactExports.useMemo(function(){var nt={};if(a){var it=_e.width,at=_e.height;a.indexOf("height")!==-1&&at?nt.height=at:a.indexOf("minHeight")!==-1&&at&&(nt.minHeight=at),a.indexOf("width")!==-1&&it?nt.width=it:a.indexOf("minWidth")!==-1&&it&&(nt.minWidth=it)}return nt},[a,_e]);return[rt,tt]};var PopupInner=reactExports.forwardRef(function(a,_){var $=a.visible,_e=a.prefixCls,et=a.className,tt=a.style,rt=a.children,nt=a.zIndex,it=a.stretch,at=a.destroyPopupOnHide,st=a.forceRender,ut=a.align,ot=a.point,pt=a.getRootDomNode,ht=a.getClassNameFromAlign,dt=a.onAlign,gt=a.onMouseEnter,lt=a.onMouseLeave,ft=a.onMouseDown,ct=a.onTouchStart,mt=a.onClick,yt=reactExports.useRef(),Et=reactExports.useRef(),St=reactExports.useState(),At=_slicedToArray(St,2),Mt=At[0],Nt=At[1],kt=useStretchStyle(it),Pt=_slicedToArray(kt,2),Dt=Pt[0],Ot=Pt[1];function wt(){it&&Ot(pt())}var _t=useVisibleStatus($,wt),bt=_slicedToArray(_t,2),vt=bt[0],xt=bt[1],Ct=reactExports.useState(0),Tt=_slicedToArray(Ct,2),It=Tt[0],Rt=Tt[1],Lt=reactExports.useRef();useLayoutEffect(function(){vt==="alignPre"&&Rt(0)},[vt]);function Ht(){return ot||pt}function jt(){var Yt;(Yt=yt.current)===null||Yt===void 0||Yt.forceAlign()}function Qt(Yt,Gt){var Xt=ht(Gt);Mt!==Xt&&Nt(Xt),Rt(function(er){return er+1}),vt==="align"&&(dt==null||dt(Yt,Gt))}useLayoutEffect(function(){vt==="align"&&(It<3?jt():xt(function(){var Yt;(Yt=Lt.current)===null||Yt===void 0||Yt.call(Lt)}))},[It]);var $t=_objectSpread2$1({},getMotion(a));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Yt){var Gt=$t[Yt];$t[Yt]=function(Xt,er){return xt(),Gt==null?void 0:Gt(Xt,er)}});function Bt(){return new Promise(function(Yt){Lt.current=Yt})}reactExports.useEffect(function(){!$t.motionName&&vt==="motion"&&xt()},[$t.motionName,vt]),reactExports.useImperativeHandle(_,function(){return{forceAlign:jt,getElement:function(){return Et.current}}});var Vt=_objectSpread2$1(_objectSpread2$1({},Dt),{},{zIndex:nt,opacity:vt==="motion"||vt==="stable"||!$?void 0:0,pointerEvents:!$&&vt!=="stable"?"none":void 0},tt),Kt=!0;ut!=null&&ut.points&&(vt==="align"||vt==="stable")&&(Kt=!1);var qt=rt;return reactExports.Children.count(rt)>1&&(qt=reactExports.createElement("div",{className:"".concat(_e,"-content")},rt)),reactExports.createElement(CSSMotion,_extends$1({visible:$,ref:Et,leavedClassName:"".concat(_e,"-hidden")},$t,{onAppearPrepare:Bt,onEnterPrepare:Bt,removeOnLeave:at,forceRender:st}),function(Yt,Gt){var Xt=Yt.className,er=Yt.style,dr=classNames(_e,et,Mt,Xt);return reactExports.createElement(RcAlign,{target:Ht(),key:"popup",ref:yt,monitorWindowResize:!0,disabled:Kt,align:ut,onAlign:Qt},reactExports.createElement("div",{ref:Gt,className:dr,onMouseEnter:gt,onMouseLeave:lt,onMouseDownCapture:ft,onTouchStartCapture:ct,onClick:mt,style:_objectSpread2$1(_objectSpread2$1({},er),Vt)},qt))})});PopupInner.displayName="PopupInner";var MobilePopupInner=reactExports.forwardRef(function(a,_){var $=a.prefixCls,_e=a.visible,et=a.zIndex,tt=a.children,rt=a.mobile;rt=rt===void 0?{}:rt;var nt=rt.popupClassName,it=rt.popupStyle,at=rt.popupMotion,st=at===void 0?{}:at,ut=rt.popupRender,ot=a.onClick,pt=reactExports.useRef();reactExports.useImperativeHandle(_,function(){return{forceAlign:function(){},getElement:function(){return pt.current}}});var ht=_objectSpread2$1({zIndex:et},it),dt=tt;return reactExports.Children.count(tt)>1&&(dt=reactExports.createElement("div",{className:"".concat($,"-content")},tt)),ut&&(dt=ut(dt)),reactExports.createElement(CSSMotion,_extends$1({visible:_e,ref:pt,removeOnLeave:!0},st),function(gt,lt){var ft=gt.className,ct=gt.style,mt=classNames($,nt,ft);return reactExports.createElement("div",{ref:lt,className:mt,onClick:ot,style:_objectSpread2$1(_objectSpread2$1({},ct),ht)},dt)})});MobilePopupInner.displayName="MobilePopupInner";var _excluded$3=["visible","mobile"],Popup=reactExports.forwardRef(function(a,_){var $=a.visible,_e=a.mobile,et=_objectWithoutProperties(a,_excluded$3),tt=reactExports.useState($),rt=_slicedToArray(tt,2),nt=rt[0],it=rt[1],at=reactExports.useState(!1),st=_slicedToArray(at,2),ut=st[0],ot=st[1],pt=_objectSpread2$1(_objectSpread2$1({},et),{},{visible:nt});reactExports.useEffect(function(){it($),$&&_e&&ot(isMobile())},[$,_e]);var ht=ut?reactExports.createElement(MobilePopupInner,_extends$1({},pt,{mobile:_e,ref:_})):reactExports.createElement(PopupInner,_extends$1({},pt,{ref:_}));return reactExports.createElement("div",null,reactExports.createElement(Mask,pt),ht)});Popup.displayName="Popup";var TriggerContext=reactExports.createContext(null);function noop(){}function returnEmptyString(){return""}function returnDocument(a){return a?a.ownerDocument:window.document}var ALL_HANDLERS=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function generateTrigger(a){var _=function($){_inherits(et,$);var _e=_createSuper(et);function et(tt){var rt;_classCallCheck(this,et),rt=_e.call(this,tt),_defineProperty$1(_assertThisInitialized(rt),"popupRef",reactExports.createRef()),_defineProperty$1(_assertThisInitialized(rt),"triggerRef",reactExports.createRef()),_defineProperty$1(_assertThisInitialized(rt),"portalContainer",void 0),_defineProperty$1(_assertThisInitialized(rt),"attachId",void 0),_defineProperty$1(_assertThisInitialized(rt),"clickOutsideHandler",void 0),_defineProperty$1(_assertThisInitialized(rt),"touchOutsideHandler",void 0),_defineProperty$1(_assertThisInitialized(rt),"contextMenuOutsideHandler1",void 0),_defineProperty$1(_assertThisInitialized(rt),"contextMenuOutsideHandler2",void 0),_defineProperty$1(_assertThisInitialized(rt),"mouseDownTimeout",void 0),_defineProperty$1(_assertThisInitialized(rt),"focusTime",void 0),_defineProperty$1(_assertThisInitialized(rt),"preClickTime",void 0),_defineProperty$1(_assertThisInitialized(rt),"preTouchTime",void 0),_defineProperty$1(_assertThisInitialized(rt),"delayTimer",void 0),_defineProperty$1(_assertThisInitialized(rt),"hasPopupMouseDown",void 0),_defineProperty$1(_assertThisInitialized(rt),"onMouseEnter",function(it){var at=rt.props.mouseEnterDelay;rt.fireEvents("onMouseEnter",it),rt.delaySetPopupVisible(!0,at,at?null:it)}),_defineProperty$1(_assertThisInitialized(rt),"onMouseMove",function(it){rt.fireEvents("onMouseMove",it),rt.setPoint(it)}),_defineProperty$1(_assertThisInitialized(rt),"onMouseLeave",function(it){rt.fireEvents("onMouseLeave",it),rt.delaySetPopupVisible(!1,rt.props.mouseLeaveDelay)}),_defineProperty$1(_assertThisInitialized(rt),"onPopupMouseEnter",function(){rt.clearDelayTimer()}),_defineProperty$1(_assertThisInitialized(rt),"onPopupMouseLeave",function(it){var at;it.relatedTarget&&!it.relatedTarget.setTimeout&&contains((at=rt.popupRef.current)===null||at===void 0?void 0:at.getElement(),it.relatedTarget)||rt.delaySetPopupVisible(!1,rt.props.mouseLeaveDelay)}),_defineProperty$1(_assertThisInitialized(rt),"onFocus",function(it){rt.fireEvents("onFocus",it),rt.clearDelayTimer(),rt.isFocusToShow()&&(rt.focusTime=Date.now(),rt.delaySetPopupVisible(!0,rt.props.focusDelay))}),_defineProperty$1(_assertThisInitialized(rt),"onMouseDown",function(it){rt.fireEvents("onMouseDown",it),rt.preClickTime=Date.now()}),_defineProperty$1(_assertThisInitialized(rt),"onTouchStart",function(it){rt.fireEvents("onTouchStart",it),rt.preTouchTime=Date.now()}),_defineProperty$1(_assertThisInitialized(rt),"onBlur",function(it){rt.fireEvents("onBlur",it),rt.clearDelayTimer(),rt.isBlurToHide()&&rt.delaySetPopupVisible(!1,rt.props.blurDelay)}),_defineProperty$1(_assertThisInitialized(rt),"onContextMenu",function(it){it.preventDefault(),rt.fireEvents("onContextMenu",it),rt.setPopupVisible(!0,it)}),_defineProperty$1(_assertThisInitialized(rt),"onContextMenuClose",function(){rt.isContextMenuToShow()&&rt.close()}),_defineProperty$1(_assertThisInitialized(rt),"onClick",function(it){if(rt.fireEvents("onClick",it),rt.focusTime){var at;if(rt.preClickTime&&rt.preTouchTime?at=Math.min(rt.preClickTime,rt.preTouchTime):rt.preClickTime?at=rt.preClickTime:rt.preTouchTime&&(at=rt.preTouchTime),Math.abs(at-rt.focusTime)<20)return;rt.focusTime=0}rt.preClickTime=0,rt.preTouchTime=0,rt.isClickToShow()&&(rt.isClickToHide()||rt.isBlurToHide())&&it&&it.preventDefault&&it.preventDefault();var st=!rt.state.popupVisible;(rt.isClickToHide()&&!st||st&&rt.isClickToShow())&&rt.setPopupVisible(!rt.state.popupVisible,it)}),_defineProperty$1(_assertThisInitialized(rt),"onPopupMouseDown",function(){if(rt.hasPopupMouseDown=!0,clearTimeout(rt.mouseDownTimeout),rt.mouseDownTimeout=window.setTimeout(function(){rt.hasPopupMouseDown=!1},0),rt.context){var it;(it=rt.context).onPopupMouseDown.apply(it,arguments)}}),_defineProperty$1(_assertThisInitialized(rt),"onDocumentClick",function(it){if(!(rt.props.mask&&!rt.props.maskClosable)){var at=it.target,st=rt.getRootDomNode(),ut=rt.getPopupDomNode();(!contains(st,at)||rt.isContextMenuOnly())&&!contains(ut,at)&&!rt.hasPopupMouseDown&&rt.close()}}),_defineProperty$1(_assertThisInitialized(rt),"getRootDomNode",function(){var it=rt.props.getTriggerDOMNode;if(it)return it(rt.triggerRef.current);try{var at=findDOMNode(rt.triggerRef.current);if(at)return at}catch{}return ReactDOM.findDOMNode(_assertThisInitialized(rt))}),_defineProperty$1(_assertThisInitialized(rt),"getPopupClassNameFromAlign",function(it){var at=[],st=rt.props,ut=st.popupPlacement,ot=st.builtinPlacements,pt=st.prefixCls,ht=st.alignPoint,dt=st.getPopupClassNameFromAlign;return ut&&ot&&at.push(getAlignPopupClassName(ot,pt,it,ht)),dt&&at.push(dt(it)),at.join(" ")}),_defineProperty$1(_assertThisInitialized(rt),"getComponent",function(){var it=rt.props,at=it.prefixCls,st=it.destroyPopupOnHide,ut=it.popupClassName,ot=it.onPopupAlign,pt=it.popupMotion,ht=it.popupAnimation,dt=it.popupTransitionName,gt=it.popupStyle,lt=it.mask,ft=it.maskAnimation,ct=it.maskTransitionName,mt=it.maskMotion,yt=it.zIndex,Et=it.popup,St=it.stretch,At=it.alignPoint,Mt=it.mobile,Nt=it.forceRender,kt=it.onPopupClick,Pt=rt.state,Dt=Pt.popupVisible,Ot=Pt.point,wt=rt.getPopupAlign(),_t={};return rt.isMouseEnterToShow()&&(_t.onMouseEnter=rt.onPopupMouseEnter),rt.isMouseLeaveToHide()&&(_t.onMouseLeave=rt.onPopupMouseLeave),_t.onMouseDown=rt.onPopupMouseDown,_t.onTouchStart=rt.onPopupMouseDown,reactExports.createElement(Popup,_extends$1({prefixCls:at,destroyPopupOnHide:st,visible:Dt,point:At&&Ot,className:ut,align:wt,onAlign:ot,animation:ht,getClassNameFromAlign:rt.getPopupClassNameFromAlign},_t,{stretch:St,getRootDomNode:rt.getRootDomNode,style:gt,mask:lt,zIndex:yt,transitionName:dt,maskAnimation:ft,maskTransitionName:ct,maskMotion:mt,ref:rt.popupRef,motion:pt,mobile:Mt,forceRender:Nt,onClick:kt}),typeof Et=="function"?Et():Et)}),_defineProperty$1(_assertThisInitialized(rt),"attachParent",function(it){wrapperRaf$1.cancel(rt.attachId);var at=rt.props,st=at.getPopupContainer,ut=at.getDocument,ot=rt.getRootDomNode(),pt;st?(ot||st.length===0)&&(pt=st(ot)):pt=ut(rt.getRootDomNode()).body,pt?pt.appendChild(it):rt.attachId=wrapperRaf$1(function(){rt.attachParent(it)})}),_defineProperty$1(_assertThisInitialized(rt),"getContainer",function(){if(!rt.portalContainer){var it=rt.props.getDocument,at=it(rt.getRootDomNode()).createElement("div");at.style.position="absolute",at.style.top="0",at.style.left="0",at.style.width="100%",rt.portalContainer=at}return rt.attachParent(rt.portalContainer),rt.portalContainer}),_defineProperty$1(_assertThisInitialized(rt),"setPoint",function(it){var at=rt.props.alignPoint;!at||!it||rt.setState({point:{pageX:it.pageX,pageY:it.pageY}})}),_defineProperty$1(_assertThisInitialized(rt),"handlePortalUpdate",function(){rt.state.prevPopupVisible!==rt.state.popupVisible&&rt.props.afterPopupVisibleChange(rt.state.popupVisible)}),_defineProperty$1(_assertThisInitialized(rt),"triggerContextValue",{onPopupMouseDown:rt.onPopupMouseDown});var nt;return"popupVisible"in tt?nt=!!tt.popupVisible:nt=!!tt.defaultPopupVisible,rt.state={prevPopupVisible:nt,popupVisible:nt},ALL_HANDLERS.forEach(function(it){rt["fire".concat(it)]=function(at){rt.fireEvents(it,at)}}),rt}return _createClass(et,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var rt=this.props,nt=this.state;if(nt.popupVisible){var it;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(it=rt.getDocument(this.getRootDomNode()),this.clickOutsideHandler=addEventListenerWrap(it,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(it=it||rt.getDocument(this.getRootDomNode()),this.touchOutsideHandler=addEventListenerWrap(it,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(it=it||rt.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=addEventListenerWrap(it,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=addEventListenerWrap(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),wrapperRaf$1.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var rt;return((rt=this.popupRef.current)===null||rt===void 0?void 0:rt.getElement())||null}},{key:"getPopupAlign",value:function(){var rt=this.props,nt=rt.popupPlacement,it=rt.popupAlign,at=rt.builtinPlacements;return nt&&at?getAlignFromPlacement(at,nt,it):it}},{key:"setPopupVisible",value:function(rt,nt){var it=this.props.alignPoint,at=this.state.popupVisible;this.clearDelayTimer(),at!==rt&&("popupVisible"in this.props||this.setState({popupVisible:rt,prevPopupVisible:at}),this.props.onPopupVisibleChange(rt)),it&&nt&&rt&&this.setPoint(nt)}},{key:"delaySetPopupVisible",value:function(rt,nt,it){var at=this,st=nt*1e3;if(this.clearDelayTimer(),st){var ut=it?{pageX:it.pageX,pageY:it.pageY}:null;this.delayTimer=window.setTimeout(function(){at.setPopupVisible(rt,ut),at.clearDelayTimer()},st)}else this.setPopupVisible(rt,it)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(rt){var nt=this.props.children.props,it=this.props;return nt[rt]&&it[rt]?this["fire".concat(rt)]:nt[rt]||it[rt]}},{key:"isClickToShow",value:function(){var rt=this.props,nt=rt.action,it=rt.showAction;return nt.indexOf("click")!==-1||it.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var rt=this.props.action;return rt==="contextMenu"||rt.length===1&&rt[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var rt=this.props,nt=rt.action,it=rt.showAction;return nt.indexOf("contextMenu")!==-1||it.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var rt=this.props,nt=rt.action,it=rt.hideAction;return nt.indexOf("click")!==-1||it.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var rt=this.props,nt=rt.action,it=rt.showAction;return nt.indexOf("hover")!==-1||it.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var rt=this.props,nt=rt.action,it=rt.hideAction;return nt.indexOf("hover")!==-1||it.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var rt=this.props,nt=rt.action,it=rt.showAction;return nt.indexOf("focus")!==-1||it.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var rt=this.props,nt=rt.action,it=rt.hideAction;return nt.indexOf("focus")!==-1||it.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var rt;(rt=this.popupRef.current)===null||rt===void 0||rt.forceAlign()}}},{key:"fireEvents",value:function(rt,nt){var it=this.props.children.props[rt];it&&it(nt);var at=this.props[rt];at&&at(nt)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var rt=this.state.popupVisible,nt=this.props,it=nt.children,at=nt.forceRender,st=nt.alignPoint,ut=nt.className,ot=nt.autoDestroy,pt=reactExports.Children.only(it),ht={key:"trigger"};this.isContextMenuToShow()?ht.onContextMenu=this.onContextMenu:ht.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(ht.onClick=this.onClick,ht.onMouseDown=this.onMouseDown,ht.onTouchStart=this.onTouchStart):(ht.onClick=this.createTwoChains("onClick"),ht.onMouseDown=this.createTwoChains("onMouseDown"),ht.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(ht.onMouseEnter=this.onMouseEnter,st&&(ht.onMouseMove=this.onMouseMove)):ht.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?ht.onMouseLeave=this.onMouseLeave:ht.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(ht.onFocus=this.onFocus,ht.onBlur=this.onBlur):(ht.onFocus=this.createTwoChains("onFocus"),ht.onBlur=this.createTwoChains("onBlur"));var dt=classNames(pt&&pt.props&&pt.props.className,ut);dt&&(ht.className=dt);var gt=_objectSpread2$1({},ht);supportRef(pt)&&(gt.ref=composeRef(this.triggerRef,pt.ref));var lt=reactExports.cloneElement(pt,gt),ft;return(rt||this.popupRef.current||at)&&(ft=reactExports.createElement(a,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!rt&&ot&&(ft=null),reactExports.createElement(TriggerContext.Provider,{value:this.triggerContextValue},lt,ft)}}],[{key:"getDerivedStateFromProps",value:function(rt,nt){var it=rt.popupVisible,at={};return it!==void 0&&nt.popupVisible!==it&&(at.popupVisible=it,at.prevPopupVisible=nt.popupVisible),at}}]),et}(reactExports.Component);return _defineProperty$1(_,"contextType",TriggerContext),_defineProperty$1(_,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:returnEmptyString,getDocument:returnDocument,onPopupVisibleChange:noop,afterPopupVisibleChange:noop,onPopupAlign:noop,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),_}const Trigger=generateTrigger(Portal);var HOOK_MARK="RC_FORM_INTERNAL_HOOKS",warningFunc=function a(){warningOnce(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Context=reactExports.createContext({getFieldValue:warningFunc,getFieldsValue:warningFunc,getFieldError:warningFunc,getFieldWarning:warningFunc,getFieldsError:warningFunc,isFieldsTouched:warningFunc,isFieldTouched:warningFunc,isFieldValidating:warningFunc,isFieldsValidating:warningFunc,resetFields:warningFunc,setFields:warningFunc,setFieldValue:warningFunc,setFieldsValue:warningFunc,validateFields:warningFunc,submit:warningFunc,getInternalHooks:function a(){return warningFunc(),{dispatch:warningFunc,initEntityValue:warningFunc,registerField:warningFunc,useSubscribe:warningFunc,setInitialValues:warningFunc,destroyForm:warningFunc,setCallbacks:warningFunc,registerWatch:warningFunc,getFields:warningFunc,setValidateMessages:warningFunc,setPreserve:warningFunc,getInitialValue:warningFunc}}}),ListContext=reactExports.createContext(null);function toArray$2(a){return a==null?[]:Array.isArray(a)?a:[a]}function isFormInstance(a){return a&&!!a._init}var define_process_env_default={};function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var _=1;_<arguments.length;_++){var $=arguments[_];for(var _e in $)Object.prototype.hasOwnProperty.call($,_e)&&(a[_e]=$[_e])}return a},_extends.apply(this,arguments)}function _inheritsLoose(a,_){a.prototype=Object.create(_.prototype),a.prototype.constructor=a,_setPrototypeOf(a,_)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf(a)}function _setPrototypeOf(a,_){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_e,et){return _e.__proto__=et,_e},_setPrototypeOf(a,_)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(a,_,$){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(et,tt,rt){var nt=[null];nt.push.apply(nt,tt);var it=Function.bind.apply(et,nt),at=new it;return rt&&_setPrototypeOf(at,rt.prototype),at},_construct.apply(null,arguments)}function _isNativeFunction(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function _wrapNativeSuper(a){var _=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(_e){if(_e===null||!_isNativeFunction(_e))return _e;if(typeof _e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _<"u"){if(_.has(_e))return _.get(_e);_.set(_e,et)}function et(){return _construct(_e,arguments,_getPrototypeOf(this).constructor)}return et.prototype=Object.create(_e.prototype,{constructor:{value:et,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(et,_e)},_wrapNativeSuper(a)}var formatRegExp=/%[sdj%]/g,warning$1=function a(){};typeof process<"u";function convertFieldsError(a){if(!a||!a.length)return null;var _={};return a.forEach(function($){var _e=$.field;_[_e]=_[_e]||[],_[_e].push($)}),_}function format(a){for(var _=arguments.length,$=new Array(_>1?_-1:0),_e=1;_e<_;_e++)$[_e-1]=arguments[_e];var et=0,tt=$.length;if(typeof a=="function")return a.apply(null,$);if(typeof a=="string"){var rt=a.replace(formatRegExp,function(nt){if(nt==="%%")return"%";if(et>=tt)return nt;switch(nt){case"%s":return String($[et++]);case"%d":return Number($[et++]);case"%j":try{return JSON.stringify($[et++])}catch{return"[Circular]"}break;default:return nt}});return rt}return a}function isNativeStringType(a){return a==="string"||a==="url"||a==="hex"||a==="email"||a==="date"||a==="pattern"}function isEmptyValue(a,_){return!!(a==null||_==="array"&&Array.isArray(a)&&!a.length||isNativeStringType(_)&&typeof a=="string"&&!a)}function asyncParallelArray(a,_,$){var _e=[],et=0,tt=a.length;function rt(nt){_e.push.apply(_e,nt||[]),et++,et===tt&&$(_e)}a.forEach(function(nt){_(nt,rt)})}function asyncSerialArray(a,_,$){var _e=0,et=a.length;function tt(rt){if(rt&&rt.length){$(rt);return}var nt=_e;_e=_e+1,nt<et?_(a[nt],tt):$([])}tt([])}function flattenObjArr(a){var _=[];return Object.keys(a).forEach(function($){_.push.apply(_,a[$]||[])}),_}var AsyncValidationError=function(a){_inheritsLoose(_,a);function _($,_e){var et;return et=a.call(this,"Async Validation Error")||this,et.errors=$,et.fields=_e,et}return _}(_wrapNativeSuper(Error));function asyncMap(a,_,$,_e,et){if(_.first){var tt=new Promise(function(ot,pt){var ht=function(lt){return _e(lt),lt.length?pt(new AsyncValidationError(lt,convertFieldsError(lt))):ot(et)},dt=flattenObjArr(a);asyncSerialArray(dt,$,ht)});return tt.catch(function(ot){return ot}),tt}var rt=_.firstFields===!0?Object.keys(a):_.firstFields||[],nt=Object.keys(a),it=nt.length,at=0,st=[],ut=new Promise(function(ot,pt){var ht=function(gt){if(st.push.apply(st,gt),at++,at===it)return _e(st),st.length?pt(new AsyncValidationError(st,convertFieldsError(st))):ot(et)};nt.length||(_e(st),ot(et)),nt.forEach(function(dt){var gt=a[dt];rt.indexOf(dt)!==-1?asyncSerialArray(gt,$,ht):asyncParallelArray(gt,$,ht)})});return ut.catch(function(ot){return ot}),ut}function isErrorObj(a){return!!(a&&a.message!==void 0)}function getValue$1(a,_){for(var $=a,_e=0;_e<_.length;_e++){if($==null)return $;$=$[_[_e]]}return $}function complementError(a,_){return function($){var _e;return a.fullFields?_e=getValue$1(_,a.fullFields):_e=_[$.field||a.fullField],isErrorObj($)?($.field=$.field||a.fullField,$.fieldValue=_e,$):{message:typeof $=="function"?$():$,fieldValue:_e,field:$.field||a.fullField}}}function deepMerge(a,_){if(_){for(var $ in _)if(_.hasOwnProperty($)){var _e=_[$];typeof _e=="object"&&typeof a[$]=="object"?a[$]=_extends({},a[$],_e):a[$]=_e}}return a}var required$1=function a(_,$,_e,et,tt,rt){_.required&&(!_e.hasOwnProperty(_.field)||isEmptyValue($,rt||_.type))&&et.push(format(tt.messages.required,_.fullField))},whitespace=function a(_,$,_e,et,tt){(/^\s+$/.test($)||$==="")&&et.push(format(tt.messages.whitespace,_.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var a="[a-fA-F\\d:]",_=function(mt){return mt&&mt.includeBoundaries?"(?:(?<=\\s|^)(?="+a+")|(?<="+a+")(?=\\s|$))":""},$="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_e="[a-fA-F\\d]{1,4}",et=(`
|
|
120
|
-
(?:
|
|
121
|
-
(?:`+_e+":){7}(?:"+_e+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
122
|
-
(?:`+_e+":){6}(?:"+$+"|:"+_e+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
123
|
-
(?:`+_e+":){5}(?::"+$+"|(?::"+_e+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
124
|
-
(?:`+_e+":){4}(?:(?::"+_e+"){0,1}:"+$+"|(?::"+_e+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
125
|
-
(?:`+_e+":){3}(?:(?::"+_e+"){0,2}:"+$+"|(?::"+_e+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
126
|
-
(?:`+_e+":){2}(?:(?::"+_e+"){0,3}:"+$+"|(?::"+_e+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
127
|
-
(?:`+_e+":){1}(?:(?::"+_e+"){0,4}:"+$+"|(?::"+_e+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
128
|
-
(?::(?:(?::`+_e+"){0,5}:"+$+"|(?::"+_e+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
129
|
-
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
130
|
-
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),tt=new RegExp("(?:^"+$+"$)|(?:^"+et+"$)"),rt=new RegExp("^"+$+"$"),nt=new RegExp("^"+et+"$"),it=function(mt){return mt&&mt.exact?tt:new RegExp("(?:"+_(mt)+$+_(mt)+")|(?:"+_(mt)+et+_(mt)+")","g")};it.v4=function(ct){return ct&&ct.exact?rt:new RegExp(""+_(ct)+$+_(ct),"g")},it.v6=function(ct){return ct&&ct.exact?nt:new RegExp(""+_(ct)+et+_(ct),"g")};var at="(?:(?:[a-z]+:)?//)",st="(?:\\S+(?::\\S*)?@)?",ut=it.v4().source,ot=it.v6().source,pt="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",ht="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",dt="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",gt="(?::\\d{2,5})?",lt='(?:[/?#][^\\s"]*)?',ft="(?:"+at+"|www\\.)"+st+"(?:localhost|"+ut+"|"+ot+"|"+pt+ht+dt+")"+gt+lt;return urlReg=new RegExp("(?:^"+ft+"$)","i"),urlReg},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function a(_){return types.number(_)&&parseInt(_,10)===_},float:function a(_){return types.number(_)&&!types.integer(_)},array:function a(_){return Array.isArray(_)},regexp:function a(_){if(_ instanceof RegExp)return!0;try{return!!new RegExp(_)}catch{return!1}},date:function a(_){return typeof _.getTime=="function"&&typeof _.getMonth=="function"&&typeof _.getYear=="function"&&!isNaN(_.getTime())},number:function a(_){return isNaN(_)?!1:typeof _=="number"},object:function a(_){return typeof _=="object"&&!types.array(_)},method:function a(_){return typeof _=="function"},email:function a(_){return typeof _=="string"&&_.length<=320&&!!_.match(pattern$2.email)},url:function a(_){return typeof _=="string"&&_.length<=2048&&!!_.match(getUrlRegex())},hex:function a(_){return typeof _=="string"&&!!_.match(pattern$2.hex)}},type$1=function a(_,$,_e,et,tt){if(_.required&&$===void 0){required$1(_,$,_e,et,tt);return}var rt=["integer","float","array","regexp","object","method","email","number","date","url","hex"],nt=_.type;rt.indexOf(nt)>-1?types[nt]($)||et.push(format(tt.messages.types[nt],_.fullField,_.type)):nt&&typeof $!==_.type&&et.push(format(tt.messages.types[nt],_.fullField,_.type))},range=function a(_,$,_e,et,tt){var rt=typeof _.len=="number",nt=typeof _.min=="number",it=typeof _.max=="number",at=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,st=$,ut=null,ot=typeof $=="number",pt=typeof $=="string",ht=Array.isArray($);if(ot?ut="number":pt?ut="string":ht&&(ut="array"),!ut)return!1;ht&&(st=$.length),pt&&(st=$.replace(at,"_").length),rt?st!==_.len&&et.push(format(tt.messages[ut].len,_.fullField,_.len)):nt&&!it&&st<_.min?et.push(format(tt.messages[ut].min,_.fullField,_.min)):it&&!nt&&st>_.max?et.push(format(tt.messages[ut].max,_.fullField,_.max)):nt&&it&&(st<_.min||st>_.max)&&et.push(format(tt.messages[ut].range,_.fullField,_.min,_.max))},ENUM$1="enum",enumerable$1=function a(_,$,_e,et,tt){_[ENUM$1]=Array.isArray(_[ENUM$1])?_[ENUM$1]:[],_[ENUM$1].indexOf($)===-1&&et.push(format(tt.messages[ENUM$1],_.fullField,_[ENUM$1].join(", ")))},pattern$1=function a(_,$,_e,et,tt){if(_.pattern){if(_.pattern instanceof RegExp)_.pattern.lastIndex=0,_.pattern.test($)||et.push(format(tt.messages.pattern.mismatch,_.fullField,$,_.pattern));else if(typeof _.pattern=="string"){var rt=new RegExp(_.pattern);rt.test($)||et.push(format(tt.messages.pattern.mismatch,_.fullField,$,_.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if(isEmptyValue($,"string")&&!_.required)return _e();rules.required(_,$,et,rt,tt,"string"),isEmptyValue($,"string")||(rules.type(_,$,et,rt,tt),rules.range(_,$,et,rt,tt),rules.pattern(_,$,et,rt,tt),_.whitespace===!0&&rules.whitespace(_,$,et,rt,tt))}_e(rt)},method2=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if(isEmptyValue($)&&!_.required)return _e();rules.required(_,$,et,rt,tt),$!==void 0&&rules.type(_,$,et,rt,tt)}_e(rt)},number2=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if($===""&&($=void 0),isEmptyValue($)&&!_.required)return _e();rules.required(_,$,et,rt,tt),$!==void 0&&(rules.type(_,$,et,rt,tt),rules.range(_,$,et,rt,tt))}_e(rt)},_boolean=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if(isEmptyValue($)&&!_.required)return _e();rules.required(_,$,et,rt,tt),$!==void 0&&rules.type(_,$,et,rt,tt)}_e(rt)},regexp2=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if(isEmptyValue($)&&!_.required)return _e();rules.required(_,$,et,rt,tt),isEmptyValue($)||rules.type(_,$,et,rt,tt)}_e(rt)},integer2=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if(isEmptyValue($)&&!_.required)return _e();rules.required(_,$,et,rt,tt),$!==void 0&&(rules.type(_,$,et,rt,tt),rules.range(_,$,et,rt,tt))}_e(rt)},floatFn=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if(isEmptyValue($)&&!_.required)return _e();rules.required(_,$,et,rt,tt),$!==void 0&&(rules.type(_,$,et,rt,tt),rules.range(_,$,et,rt,tt))}_e(rt)},array2=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if($==null&&!_.required)return _e();rules.required(_,$,et,rt,tt,"array"),$!=null&&(rules.type(_,$,et,rt,tt),rules.range(_,$,et,rt,tt))}_e(rt)},object2=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if(isEmptyValue($)&&!_.required)return _e();rules.required(_,$,et,rt,tt),$!==void 0&&rules.type(_,$,et,rt,tt)}_e(rt)},ENUM="enum",enumerable2=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if(isEmptyValue($)&&!_.required)return _e();rules.required(_,$,et,rt,tt),$!==void 0&&rules[ENUM](_,$,et,rt,tt)}_e(rt)},pattern2=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if(isEmptyValue($,"string")&&!_.required)return _e();rules.required(_,$,et,rt,tt),isEmptyValue($,"string")||rules.pattern(_,$,et,rt,tt)}_e(rt)},date2=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if(isEmptyValue($,"date")&&!_.required)return _e();if(rules.required(_,$,et,rt,tt),!isEmptyValue($,"date")){var it;$ instanceof Date?it=$:it=new Date($),rules.type(_,it,et,rt,tt),it&&rules.range(_,it.getTime(),et,rt,tt)}}_e(rt)},required2=function a(_,$,_e,et,tt){var rt=[],nt=Array.isArray($)?"array":typeof $;rules.required(_,$,et,rt,tt,nt),_e(rt)},type2=function a(_,$,_e,et,tt){var rt=_.type,nt=[],it=_.required||!_.required&&et.hasOwnProperty(_.field);if(it){if(isEmptyValue($,rt)&&!_.required)return _e();rules.required(_,$,et,nt,tt,rt),isEmptyValue($,rt)||rules.type(_,$,et,nt,tt)}_e(nt)},any=function a(_,$,_e,et,tt){var rt=[],nt=_.required||!_.required&&et.hasOwnProperty(_.field);if(nt){if(isEmptyValue($)&&!_.required)return _e();rules.required(_,$,et,rt,tt)}_e(rt)},validators={string,method:method2,number:number2,boolean:_boolean,regexp:regexp2,integer:integer2,float:floatFn,array:array2,object:object2,enum:enumerable2,pattern:pattern2,date:date2,url:type2,hex:type2,email:type2,required:required2,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var _=JSON.parse(JSON.stringify(this));return _.clone=this.clone,_}}}var messages=newMessages(),Schema=function(){function a($){this.rules=null,this._messages=messages,this.define($)}var _=a.prototype;return _.define=function(_e){var et=this;if(!_e)throw new Error("Cannot configure a schema with no rules");if(typeof _e!="object"||Array.isArray(_e))throw new Error("Rules must be an object");this.rules={},Object.keys(_e).forEach(function(tt){var rt=_e[tt];et.rules[tt]=Array.isArray(rt)?rt:[rt]})},_.messages=function(_e){return _e&&(this._messages=deepMerge(newMessages(),_e)),this._messages},_.validate=function(_e,et,tt){var rt=this;et===void 0&&(et={}),tt===void 0&&(tt=function(){});var nt=_e,it=et,at=tt;if(typeof it=="function"&&(at=it,it={}),!this.rules||Object.keys(this.rules).length===0)return at&&at(null,nt),Promise.resolve(nt);function st(dt){var gt=[],lt={};function ft(mt){if(Array.isArray(mt)){var yt;gt=(yt=gt).concat.apply(yt,mt)}else gt.push(mt)}for(var ct=0;ct<dt.length;ct++)ft(dt[ct]);gt.length?(lt=convertFieldsError(gt),at(gt,lt)):at(null,nt)}if(it.messages){var ut=this.messages();ut===messages&&(ut=newMessages()),deepMerge(ut,it.messages),it.messages=ut}else it.messages=this.messages();var ot={},pt=it.keys||Object.keys(this.rules);pt.forEach(function(dt){var gt=rt.rules[dt],lt=nt[dt];gt.forEach(function(ft){var ct=ft;typeof ct.transform=="function"&&(nt===_e&&(nt=_extends({},nt)),lt=nt[dt]=ct.transform(lt)),typeof ct=="function"?ct={validator:ct}:ct=_extends({},ct),ct.validator=rt.getValidationMethod(ct),ct.validator&&(ct.field=dt,ct.fullField=ct.fullField||dt,ct.type=rt.getType(ct),ot[dt]=ot[dt]||[],ot[dt].push({rule:ct,value:lt,source:nt,field:dt}))})});var ht={};return asyncMap(ot,it,function(dt,gt){var lt=dt.rule,ft=(lt.type==="object"||lt.type==="array")&&(typeof lt.fields=="object"||typeof lt.defaultField=="object");ft=ft&&(lt.required||!lt.required&&dt.value),lt.field=dt.field;function ct(Et,St){return _extends({},St,{fullField:lt.fullField+"."+Et,fullFields:lt.fullFields?[].concat(lt.fullFields,[Et]):[Et]})}function mt(Et){Et===void 0&&(Et=[]);var St=Array.isArray(Et)?Et:[Et];!it.suppressWarning&&St.length&&a.warning("async-validator:",St),St.length&<.message!==void 0&&(St=[].concat(lt.message));var At=St.map(complementError(lt,nt));if(it.first&&At.length)return ht[lt.field]=1,gt(At);if(!ft)gt(At);else{if(lt.required&&!dt.value)return lt.message!==void 0?At=[].concat(lt.message).map(complementError(lt,nt)):it.error&&(At=[it.error(lt,format(it.messages.required,lt.field))]),gt(At);var Mt={};lt.defaultField&&Object.keys(dt.value).map(function(Pt){Mt[Pt]=lt.defaultField}),Mt=_extends({},Mt,dt.rule.fields);var Nt={};Object.keys(Mt).forEach(function(Pt){var Dt=Mt[Pt],Ot=Array.isArray(Dt)?Dt:[Dt];Nt[Pt]=Ot.map(ct.bind(null,Pt))});var kt=new a(Nt);kt.messages(it.messages),dt.rule.options&&(dt.rule.options.messages=it.messages,dt.rule.options.error=it.error),kt.validate(dt.value,dt.rule.options||it,function(Pt){var Dt=[];At&&At.length&&Dt.push.apply(Dt,At),Pt&&Pt.length&&Dt.push.apply(Dt,Pt),gt(Dt.length?Dt:null)})}}var yt;if(lt.asyncValidator)yt=lt.asyncValidator(lt,dt.value,mt,dt.source,it);else if(lt.validator){try{yt=lt.validator(lt,dt.value,mt,dt.source,it)}catch(Et){console.error==null||console.error(Et),it.suppressValidatorError||setTimeout(function(){throw Et},0),mt(Et.message)}yt===!0?mt():yt===!1?mt(typeof lt.message=="function"?lt.message(lt.fullField||lt.field):lt.message||(lt.fullField||lt.field)+" fails"):yt instanceof Array?mt(yt):yt instanceof Error&&mt(yt.message)}yt&&yt.then&&yt.then(function(){return mt()},function(Et){return mt(Et)})},function(dt){st(dt)},nt)},_.getType=function(_e){if(_e.type===void 0&&_e.pattern instanceof RegExp&&(_e.type="pattern"),typeof _e.validator!="function"&&_e.type&&!validators.hasOwnProperty(_e.type))throw new Error(format("Unknown rule type %s",_e.type));return _e.type||"string"},_.getValidationMethod=function(_e){if(typeof _e.validator=="function")return _e.validator;var et=Object.keys(_e),tt=et.indexOf("message");return tt!==-1&&et.splice(tt,1),et.length===1&&et[0]==="required"?validators.required:validators[this.getType(_e)]||void 0},a}();Schema.register=function a(_,$){if(typeof $!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[_]=$};Schema.warning=warning$1;Schema.messages=messages;Schema.validators=validators;var typeTemplate="'${name}' is not a valid ${type}",defaultValidateMessages={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:typeTemplate,method:typeTemplate,array:typeTemplate,object:typeTemplate,number:typeTemplate,date:typeTemplate,boolean:typeTemplate,integer:typeTemplate,float:typeTemplate,regexp:typeTemplate,email:typeTemplate,url:typeTemplate,hex:typeTemplate},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},AsyncValidator=Schema;function replaceMessage(a,_){return a.replace(/\$\{\w+\}/g,function($){var _e=$.slice(2,-1);return _[_e]})}var CODE_LOGIC_ERROR="CODE_LOGIC_ERROR";function validateRule(a,_,$,_e,et){return _validateRule.apply(this,arguments)}function _validateRule(){return _validateRule=_asyncToGenerator(_regeneratorRuntime().mark(function a(_,$,_e,et,tt){var rt,nt,it,at,st,ut,ot,pt,ht;return _regeneratorRuntime().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:return rt=_objectSpread2$1({},_e),delete rt.ruleIndex,AsyncValidator.warning=function(){},rt.validator&&(nt=rt.validator,rt.validator=function(){try{return nt.apply(void 0,arguments)}catch(lt){return console.error(lt),Promise.reject(CODE_LOGIC_ERROR)}}),it=null,rt&&rt.type==="array"&&rt.defaultField&&(it=rt.defaultField,delete rt.defaultField),at=new AsyncValidator(_defineProperty$1({},_,[rt])),st=merge(defaultValidateMessages,et.validateMessages),at.messages(st),ut=[],gt.prev=10,gt.next=13,Promise.resolve(at.validate(_defineProperty$1({},_,$),_objectSpread2$1({},et)));case 13:gt.next=18;break;case 15:gt.prev=15,gt.t0=gt.catch(10),gt.t0.errors&&(ut=gt.t0.errors.map(function(lt,ft){var ct=lt.message,mt=ct===CODE_LOGIC_ERROR?st.default:ct;return reactExports.isValidElement(mt)?reactExports.cloneElement(mt,{key:"error_".concat(ft)}):mt}));case 18:if(!(!ut.length&&it)){gt.next=23;break}return gt.next=21,Promise.all($.map(function(lt,ft){return validateRule("".concat(_,".").concat(ft),lt,it,et,tt)}));case 21:return ot=gt.sent,gt.abrupt("return",ot.reduce(function(lt,ft){return[].concat(_toConsumableArray(lt),_toConsumableArray(ft))},[]));case 23:return pt=_objectSpread2$1(_objectSpread2$1({},_e),{},{name:_,enum:(_e.enum||[]).join(", ")},tt),ht=ut.map(function(lt){return typeof lt=="string"?replaceMessage(lt,pt):lt}),gt.abrupt("return",ht);case 26:case"end":return gt.stop()}},a,null,[[10,15]])})),_validateRule.apply(this,arguments)}function validateRules(a,_,$,_e,et,tt){var rt=a.join("."),nt=$.map(function(st,ut){var ot=st.validator,pt=_objectSpread2$1(_objectSpread2$1({},st),{},{ruleIndex:ut});return ot&&(pt.validator=function(ht,dt,gt){var lt=!1,ft=function(){for(var yt=arguments.length,Et=new Array(yt),St=0;St<yt;St++)Et[St]=arguments[St];Promise.resolve().then(function(){warningOnce(!lt,"Your validator function has already return a promise. `callback` will be ignored."),lt||gt.apply(void 0,Et)})},ct=ot(ht,dt,ft);lt=ct&&typeof ct.then=="function"&&typeof ct.catch=="function",warningOnce(lt,"`callback` is deprecated. Please return a promise instead."),lt&&ct.then(function(){gt()}).catch(function(mt){gt(mt||" ")})}),pt}).sort(function(st,ut){var ot=st.warningOnly,pt=st.ruleIndex,ht=ut.warningOnly,dt=ut.ruleIndex;return!!ot==!!ht?pt-dt:ot?1:-1}),it;if(et===!0)it=new Promise(function(){var st=_asyncToGenerator(_regeneratorRuntime().mark(function ut(ot,pt){var ht,dt,gt;return _regeneratorRuntime().wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:ht=0;case 1:if(!(ht<nt.length)){ft.next=12;break}return dt=nt[ht],ft.next=5,validateRule(rt,_,dt,_e,tt);case 5:if(gt=ft.sent,!gt.length){ft.next=9;break}return pt([{errors:gt,rule:dt}]),ft.abrupt("return");case 9:ht+=1,ft.next=1;break;case 12:ot([]);case 13:case"end":return ft.stop()}},ut)}));return function(ut,ot){return st.apply(this,arguments)}}());else{var at=nt.map(function(st){return validateRule(rt,_,st,_e,tt).then(function(ut){return{errors:ut,rule:st}})});it=(et?finishOnFirstFailed(at):finishOnAllFailed(at)).then(function(st){return Promise.reject(st)})}return it.catch(function(st){return st}),it}function finishOnAllFailed(a){return _finishOnAllFailed.apply(this,arguments)}function _finishOnAllFailed(){return _finishOnAllFailed=_asyncToGenerator(_regeneratorRuntime().mark(function a(_){return _regeneratorRuntime().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return _e.abrupt("return",Promise.all(_).then(function(et){var tt,rt=(tt=[]).concat.apply(tt,_toConsumableArray(et));return rt}));case 1:case"end":return _e.stop()}},a)})),_finishOnAllFailed.apply(this,arguments)}function finishOnFirstFailed(a){return _finishOnFirstFailed.apply(this,arguments)}function _finishOnFirstFailed(){return _finishOnFirstFailed=_asyncToGenerator(_regeneratorRuntime().mark(function a(_){var $;return _regeneratorRuntime().wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return $=0,et.abrupt("return",new Promise(function(tt){_.forEach(function(rt){rt.then(function(nt){nt.errors.length&&tt([nt]),$+=1,$===_.length&&tt([])})})}));case 2:case"end":return et.stop()}},a)})),_finishOnFirstFailed.apply(this,arguments)}function getNamePath(a){return toArray$2(a)}function cloneByNamePathList(a,_){var $={};return _.forEach(function(_e){var et=get(a,_e);$=set($,_e,et)}),$}function containsNamePath(a,_){return a&&a.some(function($){return matchNamePath($,_)})}function matchNamePath(a,_){return!a||!_||a.length!==_.length?!1:a.every(function($,_e){return _[_e]===$})}function isSimilar(a,_){if(a===_)return!0;if(!a&&_||a&&!_||!a||!_||_typeof$1(a)!=="object"||_typeof$1(_)!=="object")return!1;var $=Object.keys(a),_e=Object.keys(_),et=new Set([].concat($,_e));return _toConsumableArray(et).every(function(tt){var rt=a[tt],nt=_[tt];return typeof rt=="function"&&typeof nt=="function"?!0:rt===nt})}function defaultGetValueFromEvent(a){var _=arguments.length<=1?void 0:arguments[1];return _&&_.target&&_typeof$1(_.target)==="object"&&a in _.target?_.target[a]:_}function move(a,_,$){var _e=a.length;if(_<0||_>=_e||$<0||$>=_e)return a;var et=a[_],tt=_-$;return tt>0?[].concat(_toConsumableArray(a.slice(0,$)),[et],_toConsumableArray(a.slice($,_)),_toConsumableArray(a.slice(_+1,_e))):tt<0?[].concat(_toConsumableArray(a.slice(0,_)),_toConsumableArray(a.slice(_+1,$+1)),[et],_toConsumableArray(a.slice($+1,_e))):a}var _excluded$2=["name"],EMPTY_ERRORS=[];function requireUpdate(a,_,$,_e,et,tt){return typeof a=="function"?a(_,$,"source"in tt?{source:tt.source}:{}):_e!==et}var Field=function(a){_inherits($,a);var _=_createSuper($);function $(_e){var et;if(_classCallCheck(this,$),et=_.call(this,_e),et.state={resetCount:0},et.cancelRegisterFunc=null,et.mounted=!1,et.touched=!1,et.dirty=!1,et.validatePromise=void 0,et.prevValidating=void 0,et.errors=EMPTY_ERRORS,et.warnings=EMPTY_ERRORS,et.cancelRegister=function(){var it=et.props,at=it.preserve,st=it.isListField,ut=it.name;et.cancelRegisterFunc&&et.cancelRegisterFunc(st,at,getNamePath(ut)),et.cancelRegisterFunc=null},et.getNamePath=function(){var it=et.props,at=it.name,st=it.fieldContext,ut=st.prefixName,ot=ut===void 0?[]:ut;return at!==void 0?[].concat(_toConsumableArray(ot),_toConsumableArray(at)):[]},et.getRules=function(){var it=et.props,at=it.rules,st=at===void 0?[]:at,ut=it.fieldContext;return st.map(function(ot){return typeof ot=="function"?ot(ut):ot})},et.refresh=function(){et.mounted&&et.setState(function(it){var at=it.resetCount;return{resetCount:at+1}})},et.metaCache=null,et.triggerMetaEvent=function(it){var at=et.props.onMetaChange;if(at){var st=_objectSpread2$1(_objectSpread2$1({},et.getMeta()),{},{destroy:it});isEqual$1(et.metaCache,st)||at(st),et.metaCache=st}else et.metaCache=null},et.onStoreChange=function(it,at,st){var ut=et.props,ot=ut.shouldUpdate,pt=ut.dependencies,ht=pt===void 0?[]:pt,dt=ut.onReset,gt=st.store,lt=et.getNamePath(),ft=et.getValue(it),ct=et.getValue(gt),mt=at&&containsNamePath(at,lt);switch(st.type==="valueUpdate"&&st.source==="external"&&ft!==ct&&(et.touched=!0,et.dirty=!0,et.validatePromise=null,et.errors=EMPTY_ERRORS,et.warnings=EMPTY_ERRORS,et.triggerMetaEvent()),st.type){case"reset":if(!at||mt){et.touched=!1,et.dirty=!1,et.validatePromise=void 0,et.errors=EMPTY_ERRORS,et.warnings=EMPTY_ERRORS,et.triggerMetaEvent(),dt==null||dt(),et.refresh();return}break;case"remove":{if(ot){et.reRender();return}break}case"setField":{if(mt){var yt=st.data;"touched"in yt&&(et.touched=yt.touched),"validating"in yt&&!("originRCField"in yt)&&(et.validatePromise=yt.validating?Promise.resolve([]):null),"errors"in yt&&(et.errors=yt.errors||EMPTY_ERRORS),"warnings"in yt&&(et.warnings=yt.warnings||EMPTY_ERRORS),et.dirty=!0,et.triggerMetaEvent(),et.reRender();return}if(ot&&!lt.length&&requireUpdate(ot,it,gt,ft,ct,st)){et.reRender();return}break}case"dependenciesUpdate":{var Et=ht.map(getNamePath);if(Et.some(function(St){return containsNamePath(st.relatedFields,St)})){et.reRender();return}break}default:if(mt||(!ht.length||lt.length||ot)&&requireUpdate(ot,it,gt,ft,ct,st)){et.reRender();return}break}ot===!0&&et.reRender()},et.validateRules=function(it){var at=et.getNamePath(),st=et.getValue(),ut=it||{},ot=ut.triggerName,pt=ut.validateOnly,ht=pt===void 0?!1:pt,dt=Promise.resolve().then(function(){if(!et.mounted)return[];var gt=et.props,lt=gt.validateFirst,ft=lt===void 0?!1:lt,ct=gt.messageVariables,mt=et.getRules();ot&&(mt=mt.filter(function(Et){return Et}).filter(function(Et){var St=Et.validateTrigger;if(!St)return!0;var At=toArray$2(St);return At.includes(ot)}));var yt=validateRules(at,st,mt,it,ft,ct);return yt.catch(function(Et){return Et}).then(function(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:EMPTY_ERRORS;if(et.validatePromise===dt){var St;et.validatePromise=null;var At=[],Mt=[];(St=Et.forEach)===null||St===void 0||St.call(Et,function(Nt){var kt=Nt.rule.warningOnly,Pt=Nt.errors,Dt=Pt===void 0?EMPTY_ERRORS:Pt;kt?Mt.push.apply(Mt,_toConsumableArray(Dt)):At.push.apply(At,_toConsumableArray(Dt))}),et.errors=At,et.warnings=Mt,et.triggerMetaEvent(),et.reRender()}}),yt});return ht||(et.validatePromise=dt,et.dirty=!0,et.errors=EMPTY_ERRORS,et.warnings=EMPTY_ERRORS,et.triggerMetaEvent(),et.reRender()),dt},et.isFieldValidating=function(){return!!et.validatePromise},et.isFieldTouched=function(){return et.touched},et.isFieldDirty=function(){if(et.dirty||et.props.initialValue!==void 0)return!0;var it=et.props.fieldContext,at=it.getInternalHooks(HOOK_MARK),st=at.getInitialValue;return st(et.getNamePath())!==void 0},et.getErrors=function(){return et.errors},et.getWarnings=function(){return et.warnings},et.isListField=function(){return et.props.isListField},et.isList=function(){return et.props.isList},et.isPreserve=function(){return et.props.preserve},et.getMeta=function(){et.prevValidating=et.isFieldValidating();var it={touched:et.isFieldTouched(),validating:et.prevValidating,errors:et.errors,warnings:et.warnings,name:et.getNamePath(),validated:et.validatePromise===null};return it},et.getOnlyChild=function(it){if(typeof it=="function"){var at=et.getMeta();return _objectSpread2$1(_objectSpread2$1({},et.getOnlyChild(it(et.getControlled(),at,et.props.fieldContext))),{},{isFunction:!0})}var st=toArray$3(it);return st.length!==1||!reactExports.isValidElement(st[0])?{child:st,isFunction:!1}:{child:st[0],isFunction:!1}},et.getValue=function(it){var at=et.props.fieldContext.getFieldsValue,st=et.getNamePath();return get(it||at(!0),st)},et.getControlled=function(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},at=et.props,st=at.trigger,ut=at.validateTrigger,ot=at.getValueFromEvent,pt=at.normalize,ht=at.valuePropName,dt=at.getValueProps,gt=at.fieldContext,lt=ut!==void 0?ut:gt.validateTrigger,ft=et.getNamePath(),ct=gt.getInternalHooks,mt=gt.getFieldsValue,yt=ct(HOOK_MARK),Et=yt.dispatch,St=et.getValue(),At=dt||function(Pt){return _defineProperty$1({},ht,Pt)},Mt=it[st],Nt=_objectSpread2$1(_objectSpread2$1({},it),At(St));Nt[st]=function(){et.touched=!0,et.dirty=!0,et.triggerMetaEvent();for(var Pt,Dt=arguments.length,Ot=new Array(Dt),wt=0;wt<Dt;wt++)Ot[wt]=arguments[wt];ot?Pt=ot.apply(void 0,Ot):Pt=defaultGetValueFromEvent.apply(void 0,[ht].concat(Ot)),pt&&(Pt=pt(Pt,St,mt(!0))),Et({type:"updateValue",namePath:ft,value:Pt}),Mt&&Mt.apply(void 0,Ot)};var kt=toArray$2(lt||[]);return kt.forEach(function(Pt){var Dt=Nt[Pt];Nt[Pt]=function(){Dt&&Dt.apply(void 0,arguments);var Ot=et.props.rules;Ot&&Ot.length&&Et({type:"validateField",namePath:ft,triggerName:Pt})}}),Nt},_e.fieldContext){var tt=_e.fieldContext.getInternalHooks,rt=tt(HOOK_MARK),nt=rt.initEntityValue;nt(_assertThisInitialized(et))}return et}return _createClass($,[{key:"componentDidMount",value:function(){var et=this.props,tt=et.shouldUpdate,rt=et.fieldContext;if(this.mounted=!0,rt){var nt=rt.getInternalHooks,it=nt(HOOK_MARK),at=it.registerField;this.cancelRegisterFunc=at(this)}tt===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var et=this.state.resetCount,tt=this.props.children,rt=this.getOnlyChild(tt),nt=rt.child,it=rt.isFunction,at;return it?at=nt:reactExports.isValidElement(nt)?at=reactExports.cloneElement(nt,this.getControlled(nt.props)):(warningOnce(!nt,"`children` of Field is not validate ReactElement."),at=nt),reactExports.createElement(reactExports.Fragment,{key:et},at)}}]),$}(reactExports.Component);Field.contextType=Context;Field.defaultProps={trigger:"onChange",valuePropName:"value"};function WrapperField(a){var _=a.name,$=_objectWithoutProperties(a,_excluded$2),_e=reactExports.useContext(Context),et=reactExports.useContext(ListContext),tt=_!==void 0?getNamePath(_):void 0,rt="keep";return $.isListField||(rt="_".concat((tt||[]).join("_"))),reactExports.createElement(Field,_extends$1({key:rt,name:tt,isListField:!!et},$,{fieldContext:_e}))}var List=function a(_){var $=_.name,_e=_.initialValue,et=_.children,tt=_.rules,rt=_.validateTrigger,nt=_.isListField,it=reactExports.useContext(Context),at=reactExports.useContext(ListContext),st=reactExports.useRef({keys:[],id:0}),ut=st.current,ot=reactExports.useMemo(function(){var gt=getNamePath(it.prefixName)||[];return[].concat(_toConsumableArray(gt),_toConsumableArray(getNamePath($)))},[it.prefixName,$]),pt=reactExports.useMemo(function(){return _objectSpread2$1(_objectSpread2$1({},it),{},{prefixName:ot})},[it,ot]),ht=reactExports.useMemo(function(){return{getKey:function(lt){var ft=ot.length,ct=lt[ft];return[ut.keys[ct],lt.slice(ft+1)]}}},[ot]);if(typeof et!="function")return warningOnce(!1,"Form.List only accepts function as children."),null;var dt=function(lt,ft,ct){var mt=ct.source;return mt==="internal"?!1:lt!==ft};return reactExports.createElement(ListContext.Provider,{value:ht},reactExports.createElement(Context.Provider,{value:pt},reactExports.createElement(WrapperField,{name:[],shouldUpdate:dt,rules:tt,validateTrigger:rt,initialValue:_e,isList:!0,isListField:nt??!!at},function(gt,lt){var ft=gt.value,ct=ft===void 0?[]:ft,mt=gt.onChange,yt=it.getFieldValue,Et=function(){var Nt=yt(ot||[]);return Nt||[]},St={add:function(Nt,kt){var Pt=Et();kt>=0&&kt<=Pt.length?(ut.keys=[].concat(_toConsumableArray(ut.keys.slice(0,kt)),[ut.id],_toConsumableArray(ut.keys.slice(kt))),mt([].concat(_toConsumableArray(Pt.slice(0,kt)),[Nt],_toConsumableArray(Pt.slice(kt))))):(ut.keys=[].concat(_toConsumableArray(ut.keys),[ut.id]),mt([].concat(_toConsumableArray(Pt),[Nt]))),ut.id+=1},remove:function(Nt){var kt=Et(),Pt=new Set(Array.isArray(Nt)?Nt:[Nt]);Pt.size<=0||(ut.keys=ut.keys.filter(function(Dt,Ot){return!Pt.has(Ot)}),mt(kt.filter(function(Dt,Ot){return!Pt.has(Ot)})))},move:function(Nt,kt){if(Nt!==kt){var Pt=Et();Nt<0||Nt>=Pt.length||kt<0||kt>=Pt.length||(ut.keys=move(ut.keys,Nt,kt),mt(move(Pt,Nt,kt)))}}},At=ct||[];return Array.isArray(At)||(At=[]),et(At.map(function(Mt,Nt){var kt=ut.keys[Nt];return kt===void 0&&(ut.keys[Nt]=ut.id,kt=ut.keys[Nt],ut.id+=1),{name:Nt,key:kt,isListField:!0}}),St,lt)})))};function allPromiseFinish(a){var _=!1,$=a.length,_e=[];return a.length?new Promise(function(et,tt){a.forEach(function(rt,nt){rt.catch(function(it){return _=!0,it}).then(function(it){$-=1,_e[nt]=it,!($>0)&&(_&&tt(_e),et(_e))})})}):Promise.resolve([])}var SPLIT="__@field_split__";function normalize(a){return a.map(function(_){return"".concat(_typeof$1(_),":").concat(_)}).join(SPLIT)}var NameMap=function(){function a(){_classCallCheck(this,a),this.kvs=new Map}return _createClass(a,[{key:"set",value:function($,_e){this.kvs.set(normalize($),_e)}},{key:"get",value:function($){return this.kvs.get(normalize($))}},{key:"update",value:function($,_e){var et=this.get($),tt=_e(et);tt?this.set($,tt):this.delete($)}},{key:"delete",value:function($){this.kvs.delete(normalize($))}},{key:"map",value:function($){return _toConsumableArray(this.kvs.entries()).map(function(_e){var et=_slicedToArray(_e,2),tt=et[0],rt=et[1],nt=tt.split(SPLIT);return $({key:nt.map(function(it){var at=it.match(/^([^:]*):(.*)$/),st=_slicedToArray(at,3),ut=st[1],ot=st[2];return ut==="number"?Number(ot):ot}),value:rt})})}},{key:"toJSON",value:function(){var $={};return this.map(function(_e){var et=_e.key,tt=_e.value;return $[et.join(".")]=tt,null}),$}}]),a}(),_excluded$1=["name"],FormStore=_createClass(function a(_){var $=this;_classCallCheck(this,a),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:$.getFieldValue,getFieldsValue:$.getFieldsValue,getFieldError:$.getFieldError,getFieldWarning:$.getFieldWarning,getFieldsError:$.getFieldsError,isFieldsTouched:$.isFieldsTouched,isFieldTouched:$.isFieldTouched,isFieldValidating:$.isFieldValidating,isFieldsValidating:$.isFieldsValidating,resetFields:$.resetFields,setFields:$.setFields,setFieldValue:$.setFieldValue,setFieldsValue:$.setFieldsValue,validateFields:$.validateFields,submit:$.submit,_init:!0,getInternalHooks:$.getInternalHooks}},this.getInternalHooks=function(_e){return _e===HOOK_MARK?($.formHooked=!0,{dispatch:$.dispatch,initEntityValue:$.initEntityValue,registerField:$.registerField,useSubscribe:$.useSubscribe,setInitialValues:$.setInitialValues,destroyForm:$.destroyForm,setCallbacks:$.setCallbacks,setValidateMessages:$.setValidateMessages,getFields:$.getFields,setPreserve:$.setPreserve,getInitialValue:$.getInitialValue,registerWatch:$.registerWatch}):(warningOnce(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(_e){$.subscribable=_e},this.prevWithoutPreserves=null,this.setInitialValues=function(_e,et){if($.initialValues=_e||{},et){var tt,rt=merge(_e,$.store);(tt=$.prevWithoutPreserves)===null||tt===void 0||tt.map(function(nt){var it=nt.key;rt=set(rt,it,get(_e,it))}),$.prevWithoutPreserves=null,$.updateStore(rt)}},this.destroyForm=function(){var _e=new NameMap;$.getFieldEntities(!0).forEach(function(et){$.isMergedPreserve(et.isPreserve())||_e.set(et.getNamePath(),!0)}),$.prevWithoutPreserves=_e},this.getInitialValue=function(_e){var et=get($.initialValues,_e);return _e.length?merge(et):et},this.setCallbacks=function(_e){$.callbacks=_e},this.setValidateMessages=function(_e){$.validateMessages=_e},this.setPreserve=function(_e){$.preserve=_e},this.watchList=[],this.registerWatch=function(_e){return $.watchList.push(_e),function(){$.watchList=$.watchList.filter(function(et){return et!==_e})}},this.notifyWatch=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if($.watchList.length){var et=$.getFieldsValue(),tt=$.getFieldsValue(!0);$.watchList.forEach(function(rt){rt(et,tt,_e)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(_e){$.store=_e},this.getFieldEntities=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return _e?$.fieldEntities.filter(function(et){return et.getNamePath().length}):$.fieldEntities},this.getFieldsMap=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,et=new NameMap;return $.getFieldEntities(_e).forEach(function(tt){var rt=tt.getNamePath();et.set(rt,tt)}),et},this.getFieldEntitiesForNamePathList=function(_e){if(!_e)return $.getFieldEntities(!0);var et=$.getFieldsMap(!0);return _e.map(function(tt){var rt=getNamePath(tt);return et.get(rt)||{INVALIDATE_NAME_PATH:getNamePath(tt)}})},this.getFieldsValue=function(_e,et){if($.warningUnhooked(),_e===!0&&!et)return $.store;var tt=$.getFieldEntitiesForNamePathList(Array.isArray(_e)?_e:null),rt=[];return tt.forEach(function(nt){var it,at="INVALIDATE_NAME_PATH"in nt?nt.INVALIDATE_NAME_PATH:nt.getNamePath();if(!(!_e&&(!((it=nt.isListField)===null||it===void 0)&&it.call(nt))))if(!et)rt.push(at);else{var st="getMeta"in nt?nt.getMeta():null;et(st)&&rt.push(at)}}),cloneByNamePathList($.store,rt.map(getNamePath))},this.getFieldValue=function(_e){$.warningUnhooked();var et=getNamePath(_e);return get($.store,et)},this.getFieldsError=function(_e){$.warningUnhooked();var et=$.getFieldEntitiesForNamePathList(_e);return et.map(function(tt,rt){return tt&&!("INVALIDATE_NAME_PATH"in tt)?{name:tt.getNamePath(),errors:tt.getErrors(),warnings:tt.getWarnings()}:{name:getNamePath(_e[rt]),errors:[],warnings:[]}})},this.getFieldError=function(_e){$.warningUnhooked();var et=getNamePath(_e),tt=$.getFieldsError([et])[0];return tt.errors},this.getFieldWarning=function(_e){$.warningUnhooked();var et=getNamePath(_e),tt=$.getFieldsError([et])[0];return tt.warnings},this.isFieldsTouched=function(){$.warningUnhooked();for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];var rt=et[0],nt=et[1],it,at=!1;et.length===0?it=null:et.length===1?Array.isArray(rt)?(it=rt.map(getNamePath),at=!1):(it=null,at=rt):(it=rt.map(getNamePath),at=nt);var st=$.getFieldEntities(!0),ut=function(gt){return gt.isFieldTouched()};if(!it)return at?st.every(ut):st.some(ut);var ot=new NameMap;it.forEach(function(dt){ot.set(dt,[])}),st.forEach(function(dt){var gt=dt.getNamePath();it.forEach(function(lt){lt.every(function(ft,ct){return gt[ct]===ft})&&ot.update(lt,function(ft){return[].concat(_toConsumableArray(ft),[dt])})})});var pt=function(gt){return gt.some(ut)},ht=ot.map(function(dt){var gt=dt.value;return gt});return at?ht.every(pt):ht.some(pt)},this.isFieldTouched=function(_e){return $.warningUnhooked(),$.isFieldsTouched([_e])},this.isFieldsValidating=function(_e){$.warningUnhooked();var et=$.getFieldEntities();if(!_e)return et.some(function(rt){return rt.isFieldValidating()});var tt=_e.map(getNamePath);return et.some(function(rt){var nt=rt.getNamePath();return containsNamePath(tt,nt)&&rt.isFieldValidating()})},this.isFieldValidating=function(_e){return $.warningUnhooked(),$.isFieldsValidating([_e])},this.resetWithFieldInitialValue=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=new NameMap,tt=$.getFieldEntities(!0);tt.forEach(function(it){var at=it.props.initialValue,st=it.getNamePath();if(at!==void 0){var ut=et.get(st)||new Set;ut.add({entity:it,value:at}),et.set(st,ut)}});var rt=function(at){at.forEach(function(st){var ut=st.props.initialValue;if(ut!==void 0){var ot=st.getNamePath(),pt=$.getInitialValue(ot);if(pt!==void 0)warningOnce(!1,"Form already set 'initialValues' with path '".concat(ot.join("."),"'. Field can not overwrite it."));else{var ht=et.get(ot);if(ht&&ht.size>1)warningOnce(!1,"Multiple Field with path '".concat(ot.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(ht){var dt=$.getFieldValue(ot);(!_e.skipExist||dt===void 0)&&$.updateStore(set($.store,ot,_toConsumableArray(ht)[0].value))}}}})},nt;_e.entities?nt=_e.entities:_e.namePathList?(nt=[],_e.namePathList.forEach(function(it){var at=et.get(it);if(at){var st;(st=nt).push.apply(st,_toConsumableArray(_toConsumableArray(at).map(function(ut){return ut.entity})))}})):nt=tt,rt(nt)},this.resetFields=function(_e){$.warningUnhooked();var et=$.store;if(!_e){$.updateStore(merge($.initialValues)),$.resetWithFieldInitialValue(),$.notifyObservers(et,null,{type:"reset"}),$.notifyWatch();return}var tt=_e.map(getNamePath);tt.forEach(function(rt){var nt=$.getInitialValue(rt);$.updateStore(set($.store,rt,nt))}),$.resetWithFieldInitialValue({namePathList:tt}),$.notifyObservers(et,tt,{type:"reset"}),$.notifyWatch(tt)},this.setFields=function(_e){$.warningUnhooked();var et=$.store,tt=[];_e.forEach(function(rt){var nt=rt.name,it=_objectWithoutProperties(rt,_excluded$1),at=getNamePath(nt);tt.push(at),"value"in it&&$.updateStore(set($.store,at,it.value)),$.notifyObservers(et,[at],{type:"setField",data:rt})}),$.notifyWatch(tt)},this.getFields=function(){var _e=$.getFieldEntities(!0),et=_e.map(function(tt){var rt=tt.getNamePath(),nt=tt.getMeta(),it=_objectSpread2$1(_objectSpread2$1({},nt),{},{name:rt,value:$.getFieldValue(rt)});return Object.defineProperty(it,"originRCField",{value:!0}),it});return et},this.initEntityValue=function(_e){var et=_e.props.initialValue;if(et!==void 0){var tt=_e.getNamePath(),rt=get($.store,tt);rt===void 0&&$.updateStore(set($.store,tt,et))}},this.isMergedPreserve=function(_e){var et=_e!==void 0?_e:$.preserve;return et??!0},this.registerField=function(_e){$.fieldEntities.push(_e);var et=_e.getNamePath();if($.notifyWatch([et]),_e.props.initialValue!==void 0){var tt=$.store;$.resetWithFieldInitialValue({entities:[_e],skipExist:!0}),$.notifyObservers(tt,[_e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(rt,nt){var it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if($.fieldEntities=$.fieldEntities.filter(function(ut){return ut!==_e}),!$.isMergedPreserve(nt)&&(!rt||it.length>1)){var at=rt?void 0:$.getInitialValue(et);if(et.length&&$.getFieldValue(et)!==at&&$.fieldEntities.every(function(ut){return!matchNamePath(ut.getNamePath(),et)})){var st=$.store;$.updateStore(set(st,et,at,!0)),$.notifyObservers(st,[et],{type:"remove"}),$.triggerDependenciesUpdate(st,et)}}$.notifyWatch([et])}},this.dispatch=function(_e){switch(_e.type){case"updateValue":{var et=_e.namePath,tt=_e.value;$.updateValue(et,tt);break}case"validateField":{var rt=_e.namePath,nt=_e.triggerName;$.validateFields([rt],{triggerName:nt});break}}},this.notifyObservers=function(_e,et,tt){if($.subscribable){var rt=_objectSpread2$1(_objectSpread2$1({},tt),{},{store:$.getFieldsValue(!0)});$.getFieldEntities().forEach(function(nt){var it=nt.onStoreChange;it(_e,et,rt)})}else $.forceRootUpdate()},this.triggerDependenciesUpdate=function(_e,et){var tt=$.getDependencyChildrenFields(et);return tt.length&&$.validateFields(tt),$.notifyObservers(_e,tt,{type:"dependenciesUpdate",relatedFields:[et].concat(_toConsumableArray(tt))}),tt},this.updateValue=function(_e,et){var tt=getNamePath(_e),rt=$.store;$.updateStore(set($.store,tt,et)),$.notifyObservers(rt,[tt],{type:"valueUpdate",source:"internal"}),$.notifyWatch([tt]);var nt=$.triggerDependenciesUpdate(rt,tt),it=$.callbacks.onValuesChange;if(it){var at=cloneByNamePathList($.store,[tt]);it(at,$.getFieldsValue())}$.triggerOnFieldsChange([tt].concat(_toConsumableArray(nt)))},this.setFieldsValue=function(_e){$.warningUnhooked();var et=$.store;if(_e){var tt=merge($.store,_e);$.updateStore(tt)}$.notifyObservers(et,null,{type:"valueUpdate",source:"external"}),$.notifyWatch()},this.setFieldValue=function(_e,et){$.setFields([{name:_e,value:et}])},this.getDependencyChildrenFields=function(_e){var et=new Set,tt=[],rt=new NameMap;$.getFieldEntities().forEach(function(it){var at=it.props.dependencies;(at||[]).forEach(function(st){var ut=getNamePath(st);rt.update(ut,function(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return ot.add(it),ot})})});var nt=function it(at){var st=rt.get(at)||new Set;st.forEach(function(ut){if(!et.has(ut)){et.add(ut);var ot=ut.getNamePath();ut.isFieldDirty()&&ot.length&&(tt.push(ot),it(ot))}})};return nt(_e),tt},this.triggerOnFieldsChange=function(_e,et){var tt=$.callbacks.onFieldsChange;if(tt){var rt=$.getFields();if(et){var nt=new NameMap;et.forEach(function(at){var st=at.name,ut=at.errors;nt.set(st,ut)}),rt.forEach(function(at){at.errors=nt.get(at.name)||at.errors})}var it=rt.filter(function(at){var st=at.name;return containsNamePath(_e,st)});it.length&&tt(it,rt)}},this.validateFields=function(_e,et){$.warningUnhooked();var tt,rt;Array.isArray(_e)||typeof _e=="string"||typeof et=="string"?(tt=_e,rt=et):rt=_e;var nt=!!tt,it=nt?tt.map(getNamePath):[],at=[],st=String(Date.now()),ut=new Set;$.getFieldEntities(!0).forEach(function(dt){var gt;if(nt||it.push(dt.getNamePath()),!((gt=rt)===null||gt===void 0)&>.recursive&&nt){var lt=dt.getNamePath();lt.every(function(mt,yt){return tt[yt]===mt||tt[yt]===void 0})&&it.push(lt)}if(!(!dt.props.rules||!dt.props.rules.length)){var ft=dt.getNamePath();if(ut.add(ft.join(st)),!nt||containsNamePath(it,ft)){var ct=dt.validateRules(_objectSpread2$1({validateMessages:_objectSpread2$1(_objectSpread2$1({},defaultValidateMessages),$.validateMessages)},rt));at.push(ct.then(function(){return{name:ft,errors:[],warnings:[]}}).catch(function(mt){var yt,Et=[],St=[];return(yt=mt.forEach)===null||yt===void 0||yt.call(mt,function(At){var Mt=At.rule.warningOnly,Nt=At.errors;Mt?St.push.apply(St,_toConsumableArray(Nt)):Et.push.apply(Et,_toConsumableArray(Nt))}),Et.length?Promise.reject({name:ft,errors:Et,warnings:St}):{name:ft,errors:Et,warnings:St}}))}}});var ot=allPromiseFinish(at);$.lastValidatePromise=ot,ot.catch(function(dt){return dt}).then(function(dt){var gt=dt.map(function(lt){var ft=lt.name;return ft});$.notifyObservers($.store,gt,{type:"validateFinish"}),$.triggerOnFieldsChange(gt,dt)});var pt=ot.then(function(){return $.lastValidatePromise===ot?Promise.resolve($.getFieldsValue(it)):Promise.reject([])}).catch(function(dt){var gt=dt.filter(function(lt){return lt&<.errors.length});return Promise.reject({values:$.getFieldsValue(it),errorFields:gt,outOfDate:$.lastValidatePromise!==ot})});pt.catch(function(dt){return dt});var ht=it.filter(function(dt){return ut.has(dt.join(st))});return $.triggerOnFieldsChange(ht),pt},this.submit=function(){$.warningUnhooked(),$.validateFields().then(function(_e){var et=$.callbacks.onFinish;if(et)try{et(_e)}catch(tt){console.error(tt)}}).catch(function(_e){var et=$.callbacks.onFinishFailed;et&&et(_e)})},this.forceRootUpdate=_});function useForm(a){var _=reactExports.useRef(),$=reactExports.useState({}),_e=_slicedToArray($,2),et=_e[1];if(!_.current)if(a)_.current=a;else{var tt=function(){et({})},rt=new FormStore(tt);_.current=rt.getForm()}return[_.current]}var FormContext=reactExports.createContext({triggerFormChange:function a(){},triggerFormFinish:function a(){},registerForm:function a(){},unregisterForm:function a(){}}),FormProvider=function a(_){var $=_.validateMessages,_e=_.onFormChange,et=_.onFormFinish,tt=_.children,rt=reactExports.useContext(FormContext),nt=reactExports.useRef({});return reactExports.createElement(FormContext.Provider,{value:_objectSpread2$1(_objectSpread2$1({},rt),{},{validateMessages:_objectSpread2$1(_objectSpread2$1({},rt.validateMessages),$),triggerFormChange:function(at,st){_e&&_e(at,{changedFields:st,forms:nt.current}),rt.triggerFormChange(at,st)},triggerFormFinish:function(at,st){et&&et(at,{values:st,forms:nt.current}),rt.triggerFormFinish(at,st)},registerForm:function(at,st){at&&(nt.current=_objectSpread2$1(_objectSpread2$1({},nt.current),{},_defineProperty$1({},at,st))),rt.registerForm(at,st)},unregisterForm:function(at){var st=_objectSpread2$1({},nt.current);delete st[at],nt.current=st,rt.unregisterForm(at)}})},tt)},_excluded=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Form=function a(_,$){var _e=_.name,et=_.initialValues,tt=_.fields,rt=_.form,nt=_.preserve,it=_.children,at=_.component,st=at===void 0?"form":at,ut=_.validateMessages,ot=_.validateTrigger,pt=ot===void 0?"onChange":ot,ht=_.onValuesChange,dt=_.onFieldsChange,gt=_.onFinish,lt=_.onFinishFailed,ft=_objectWithoutProperties(_,_excluded),ct=reactExports.useContext(FormContext),mt=useForm(rt),yt=_slicedToArray(mt,1),Et=yt[0],St=Et.getInternalHooks(HOOK_MARK),At=St.useSubscribe,Mt=St.setInitialValues,Nt=St.setCallbacks,kt=St.setValidateMessages,Pt=St.setPreserve,Dt=St.destroyForm;reactExports.useImperativeHandle($,function(){return Et}),reactExports.useEffect(function(){return ct.registerForm(_e,Et),function(){ct.unregisterForm(_e)}},[ct,Et,_e]),kt(_objectSpread2$1(_objectSpread2$1({},ct.validateMessages),ut)),Nt({onValuesChange:ht,onFieldsChange:function(It){if(ct.triggerFormChange(_e,It),dt){for(var Rt=arguments.length,Lt=new Array(Rt>1?Rt-1:0),Ht=1;Ht<Rt;Ht++)Lt[Ht-1]=arguments[Ht];dt.apply(void 0,[It].concat(Lt))}},onFinish:function(It){ct.triggerFormFinish(_e,It),gt&>(It)},onFinishFailed:lt}),Pt(nt);var Ot=reactExports.useRef(null);Mt(et,!Ot.current),Ot.current||(Ot.current=!0),reactExports.useEffect(function(){return Dt},[]);var wt,_t=typeof it=="function";if(_t){var bt=Et.getFieldsValue(!0);wt=it(bt,Et)}else wt=it;At(!_t);var vt=reactExports.useRef();reactExports.useEffect(function(){isSimilar(vt.current||[],tt||[])||Et.setFields(tt||[]),vt.current=tt},[tt,Et]);var xt=reactExports.useMemo(function(){return _objectSpread2$1(_objectSpread2$1({},Et),{},{validateTrigger:pt})},[Et,pt]),Ct=reactExports.createElement(ListContext.Provider,{value:null},reactExports.createElement(Context.Provider,{value:xt},wt));return st===!1?Ct:reactExports.createElement(st,_extends$1({},ft,{onSubmit:function(It){It.preventDefault(),It.stopPropagation(),Et.submit()},onReset:function(It){var Rt;It.preventDefault(),Et.resetFields(),(Rt=ft.onReset)===null||Rt===void 0||Rt.call(ft,It)}}),Ct)};function stringify(a){try{return JSON.stringify(a)}catch{return Math.random()}}function useWatch(){for(var a=arguments.length,_=new Array(a),$=0;$<a;$++)_[$]=arguments[$];var _e=_[0],et=_e===void 0?[]:_e,tt=_[1],rt=tt===void 0?{}:tt,nt=isFormInstance(rt)?{form:rt}:rt,it=nt.form,at=reactExports.useState(),st=_slicedToArray(at,2),ut=st[0],ot=st[1],pt=reactExports.useMemo(function(){return stringify(ut)},[ut]),ht=reactExports.useRef(pt);ht.current=pt;var dt=reactExports.useContext(Context),gt=it||dt,lt=gt&>._init,ft=getNamePath(et),ct=reactExports.useRef(ft);return ct.current=ft,reactExports.useEffect(function(){if(lt){var mt=gt.getFieldsValue,yt=gt.getInternalHooks,Et=yt(HOOK_MARK),St=Et.registerWatch,At=St(function(Nt,kt){var Pt=get(nt.preserve?kt:Nt,ct.current),Dt=stringify(Pt);ht.current!==Dt&&(ht.current=Dt,ot(Pt))}),Mt=get(nt.preserve?mt(!0):mt(),ct.current);return ot(Mt),At}},[lt]),ut}var InternalForm=reactExports.forwardRef(Form),RefForm=InternalForm;RefForm.FormProvider=FormProvider;RefForm.Field=WrapperField;RefForm.List=List;RefForm.useForm=useForm;RefForm.useWatch=useWatch;var FormItemInputContext=reactExports.createContext({}),tuple$1=function a(){for(var _=arguments.length,$=new Array(_),_e=0;_e<_;_e++)$[_e]=arguments[_e];return $};tuple$1("warning","error","");function getStatusClassNames(a,_,$){var _e;return classNames((_e={},_defineProperty$1(_e,"".concat(a,"-status-success"),_==="success"),_defineProperty$1(_e,"".concat(a,"-status-warning"),_==="warning"),_defineProperty$1(_e,"".concat(a,"-status-error"),_==="error"),_defineProperty$1(_e,"".concat(a,"-status-validating"),_==="validating"),_defineProperty$1(_e,"".concat(a,"-has-feedback"),$),_e))}var getMergedStatus=function a(_,$){return $||_},SpaceCompactItemContext=reactExports.createContext(null),useCompactItemContext=function a(_,$){var _e=reactExports.useContext(SpaceCompactItemContext),et=reactExports.useMemo(function(){var tt;if(!_e)return"";var rt=_e.compactDirection,nt=_e.isFirstItem,it=_e.isLastItem,at=rt==="vertical"?"-vertical-":"-";return classNames((tt={},_defineProperty$1(tt,"".concat(_,"-compact").concat(at,"item"),!0),_defineProperty$1(tt,"".concat(_,"-compact").concat(at,"first-item"),nt),_defineProperty$1(tt,"".concat(_,"-compact").concat(at,"last-item"),it),_defineProperty$1(tt,"".concat(_,"-compact").concat(at,"item-rtl"),$==="rtl"),tt))},[_,$,_e]);return{compactSize:_e==null?void 0:_e.compactSize,compactDirection:_e==null?void 0:_e.compactDirection,compactItemClassnames:et}},PresetStatusColorTypes=tuple$1("success","processing","error","default","warning"),PresetColorTypes=tuple$1("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"),id=0,ids={};function wrapperRaf(a){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,$=id++,_e=_;function et(){_e-=1,_e<=0?(a(),delete ids[$]):ids[$]=wrapperRaf$1(et)}return ids[$]=wrapperRaf$1(et),$}wrapperRaf.cancel=function a(_){_!==void 0&&(wrapperRaf$1.cancel(ids[_]),delete ids[_])};wrapperRaf.ids=ids;var styleForPseudo;function isHidden(a){return!a||a.offsetParent===null||a.hidden}function getValidateContainer(a){return a instanceof Document?a.body:Array.from(a.childNodes).find(function(_){return(_==null?void 0:_.nodeType)===Node.ELEMENT_NODE})}function isNotGrey(a){var _=(a||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return _&&_[1]&&_[2]&&_[3]?!(_[1]===_[2]&&_[2]===_[3]):!0}var Wave=function(a){_inherits($,a);var _=_createSuper($);function $(){var _e;return _classCallCheck(this,$),_e=_.apply(this,arguments),_e.containerRef=reactExports.createRef(),_e.animationStart=!1,_e.destroyed=!1,_e.onClick=function(et,tt){var rt,nt,it=_e.props,at=it.insertExtraNode,st=it.disabled;if(!(st||!et||isHidden(et)||et.className.includes("-leave"))){_e.extraNode=document.createElement("div");var ut=_assertThisInitialized(_e),ot=ut.extraNode,pt=_e.context.getPrefixCls;ot.className="".concat(pt(""),"-click-animating-node");var ht=_e.getAttributeName();if(et.setAttribute(ht,"true"),tt&&tt!=="#fff"&&tt!=="#ffffff"&&tt!=="rgb(255, 255, 255)"&&tt!=="rgba(255, 255, 255, 1)"&&isNotGrey(tt)&&!/rgba\((?:\d*, ){3}0\)/.test(tt)&&tt!=="transparent"){ot.style.borderColor=tt;var dt=((rt=et.getRootNode)===null||rt===void 0?void 0:rt.call(et))||et.ownerDocument,gt=(nt=getValidateContainer(dt))!==null&&nt!==void 0?nt:dt;styleForPseudo=updateCSS(`
|
|
131
|
-
[`.concat(pt(""),"-click-animating-without-extra-node='true']::after, .").concat(pt(""),`-click-animating-node {
|
|
132
|
-
--antd-wave-shadow-color: `).concat(tt,`;
|
|
133
|
-
}`),"antd-wave",{csp:_e.csp,attachTo:gt})}at&&et.appendChild(ot),["transition","animation"].forEach(function(lt){et.addEventListener("".concat(lt,"start"),_e.onTransitionStart),et.addEventListener("".concat(lt,"end"),_e.onTransitionEnd)})}},_e.onTransitionStart=function(et){if(!_e.destroyed){var tt=_e.containerRef.current;!et||et.target!==tt||_e.animationStart||_e.resetEffect(tt)}},_e.onTransitionEnd=function(et){!et||et.animationName!=="fadeEffect"||_e.resetEffect(et.target)},_e.bindAnimationEvent=function(et){if(!(!et||!et.getAttribute||et.getAttribute("disabled")||et.className.includes("disabled"))){var tt=function(nt){if(!(nt.target.tagName==="INPUT"||isHidden(nt.target))){_e.resetEffect(et);var it=getComputedStyle(et).getPropertyValue("border-top-color")||getComputedStyle(et).getPropertyValue("border-color")||getComputedStyle(et).getPropertyValue("background-color");_e.clickWaveTimeoutId=window.setTimeout(function(){return _e.onClick(et,it)},0),wrapperRaf.cancel(_e.animationStartId),_e.animationStart=!0,_e.animationStartId=wrapperRaf(function(){_e.animationStart=!1},10)}};return et.addEventListener("click",tt,!0),{cancel:function(){et.removeEventListener("click",tt,!0)}}}},_e.renderWave=function(et){var tt=et.csp,rt=_e.props.children;if(_e.csp=tt,!reactExports.isValidElement(rt))return rt;var nt=_e.containerRef;return supportRef(rt)&&(nt=composeRef(rt.ref,_e.containerRef)),cloneElement(rt,{ref:nt})},_e}return _createClass($,[{key:"componentDidMount",value:function(){this.destroyed=!1;var et=this.containerRef.current;!et||et.nodeType!==1||(this.instance=this.bindAnimationEvent(et))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var et=this.context.getPrefixCls,tt=this.props.insertExtraNode;return tt?"".concat(et(""),"-click-animating"):"".concat(et(""),"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(et){var tt=this;if(!(!et||et===this.extraNode||!(et instanceof Element))){var rt=this.props.insertExtraNode,nt=this.getAttributeName();et.setAttribute(nt,"false"),styleForPseudo&&(styleForPseudo.innerHTML=""),rt&&this.extraNode&&et.contains(this.extraNode)&&et.removeChild(this.extraNode),["transition","animation"].forEach(function(it){et.removeEventListener("".concat(it,"start"),tt.onTransitionStart),et.removeEventListener("".concat(it,"end"),tt.onTransitionEnd)})}}},{key:"render",value:function(){return reactExports.createElement(ConfigConsumer,null,this.renderWave)}}]),$}(reactExports.Component);Wave.contextType=ConfigContext;var __rest$5=function(a,_){var $={};for(var _e in a)Object.prototype.hasOwnProperty.call(a,_e)&&_.indexOf(_e)<0&&($[_e]=a[_e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,_e=Object.getOwnPropertySymbols(a);et<_e.length;et++)_.indexOf(_e[et])<0&&Object.prototype.propertyIsEnumerable.call(a,_e[et])&&($[_e[et]]=a[_e[et]]);return $},GroupSizeContext=reactExports.createContext(void 0),ButtonGroup=function a(_){var $,_e=reactExports.useContext(ConfigContext),et=_e.getPrefixCls,tt=_e.direction,rt=_.prefixCls,nt=_.size,it=_.className,at=__rest$5(_,["prefixCls","size","className"]),st=et("btn-group",rt),ut="";switch(nt){case"large":ut="lg";break;case"small":ut="sm";break}var ot=classNames(st,($={},_defineProperty$1($,"".concat(st,"-").concat(ut),ut),_defineProperty$1($,"".concat(st,"-rtl"),tt==="rtl"),$),it);return reactExports.createElement(GroupSizeContext.Provider,{value:nt},reactExports.createElement("div",_extends$1({},at,{className:ot})))},getCollapsedWidth=function a(){return{width:0,opacity:0,transform:"scale(0)"}},getRealWidth=function a(_){return{width:_.scrollWidth,opacity:1,transform:"scale(1)"}},LoadingIcon=function a(_){var $=_.prefixCls,_e=_.loading,et=_.existIcon,tt=!!_e;return et?React.createElement("span",{className:"".concat($,"-loading-icon")},React.createElement(RefIcon$4,null)):React.createElement(CSSMotion,{visible:tt,motionName:"".concat($,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:getCollapsedWidth,onAppearActive:getRealWidth,onEnterStart:getCollapsedWidth,onEnterActive:getRealWidth,onLeaveStart:getRealWidth,onLeaveActive:getCollapsedWidth},function(rt,nt){var it=rt.className,at=rt.style;return React.createElement("span",{className:"".concat($,"-loading-icon"),style:at,ref:nt},React.createElement(RefIcon$4,{className:it}))})},__rest$4=function(a,_){var $={};for(var _e in a)Object.prototype.hasOwnProperty.call(a,_e)&&_.indexOf(_e)<0&&($[_e]=a[_e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,_e=Object.getOwnPropertySymbols(a);et<_e.length;et++)_.indexOf(_e[et])<0&&Object.prototype.propertyIsEnumerable.call(a,_e[et])&&($[_e[et]]=a[_e[et]]);return $},rxTwoCNChar=/^[\u4e00-\u9fa5]{2}$/,isTwoCNChar=rxTwoCNChar.test.bind(rxTwoCNChar);function isString(a){return typeof a=="string"}function isUnBorderedButtonType(a){return a==="text"||a==="link"}function insertSpace(a,_){if(a!=null){var $=_?" ":"";return typeof a!="string"&&typeof a!="number"&&isString(a.type)&&isTwoCNChar(a.props.children)?cloneElement(a,{children:a.props.children.split("").join($)}):typeof a=="string"?isTwoCNChar(a)?reactExports.createElement("span",null,a.split("").join($)):reactExports.createElement("span",null,a):isFragment(a)?reactExports.createElement("span",null,a):a}}function spaceChildren(a,_){var $=!1,_e=[];return reactExports.Children.forEach(a,function(et){var tt=_typeof$1(et),rt=tt==="string"||tt==="number";if($&&rt){var nt=_e.length-1,it=_e[nt];_e[nt]="".concat(it).concat(et)}else _e.push(et);$=rt}),reactExports.Children.map(_e,function(et){return insertSpace(et,_)})}tuple$1("default","primary","ghost","dashed","link","text");tuple$1("default","circle","round");tuple$1("submit","button","reset");var InternalButton=function a(_,$){var _e,et=_.loading,tt=et===void 0?!1:et,rt=_.prefixCls,nt=_.type,it=nt===void 0?"default":nt,at=_.danger,st=_.shape,ut=st===void 0?"default":st,ot=_.size,pt=_.disabled,ht=_.className,dt=_.children,gt=_.icon,lt=_.ghost,ft=lt===void 0?!1:lt,ct=_.block,mt=ct===void 0?!1:ct,yt=_.htmlType,Et=yt===void 0?"button":yt,St=__rest$4(_,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),At=reactExports.useContext(SizeContext),Mt=reactExports.useContext(DisabledContext),Nt=pt??Mt,kt=reactExports.useContext(GroupSizeContext),Pt=reactExports.useState(!!tt),Dt=_slicedToArray(Pt,2),Ot=Dt[0],wt=Dt[1],_t=reactExports.useState(!1),bt=_slicedToArray(_t,2),vt=bt[0],xt=bt[1],Ct=reactExports.useContext(ConfigContext),Tt=Ct.getPrefixCls,It=Ct.autoInsertSpaceInButton,Rt=Ct.direction,Lt=$||reactExports.createRef(),Ht=function(){return reactExports.Children.count(dt)===1&&!gt&&!isUnBorderedButtonType(it)},jt=function(){if(!(!Lt||!Lt.current||It===!1)){var vr=Lt.current.textContent;Ht()&&isTwoCNChar(vr)?vt||xt(!0):vt&&xt(!1)}},Qt=typeof tt=="boolean"?tt:(tt==null?void 0:tt.delay)||!0;reactExports.useEffect(function(){var lr=null;return typeof Qt=="number"?lr=window.setTimeout(function(){lr=null,wt(Qt)},Qt):wt(Qt),function(){lr&&(window.clearTimeout(lr),lr=null)}},[Qt]),reactExports.useEffect(jt,[Lt]);var $t=function(vr){var Wt=_.onClick;if(Ot||Nt){vr.preventDefault();return}Wt==null||Wt(vr)},Bt=Tt("btn",rt),Vt=It!==!1,Kt=useCompactItemContext(Bt,Rt),qt=Kt.compactSize,Yt=Kt.compactItemClassnames,Gt={large:"lg",small:"sm",middle:void 0},Xt=qt||kt||ot||At,er=Xt&&Gt[Xt]||"",dr=Ot?"loading":gt,ir=omit(St,["navigate"]),rr=classNames(Bt,(_e={},_defineProperty$1(_e,"".concat(Bt,"-").concat(ut),ut!=="default"&&ut),_defineProperty$1(_e,"".concat(Bt,"-").concat(it),it),_defineProperty$1(_e,"".concat(Bt,"-").concat(er),er),_defineProperty$1(_e,"".concat(Bt,"-icon-only"),!dt&&dt!==0&&!!dr),_defineProperty$1(_e,"".concat(Bt,"-background-ghost"),ft&&!isUnBorderedButtonType(it)),_defineProperty$1(_e,"".concat(Bt,"-loading"),Ot),_defineProperty$1(_e,"".concat(Bt,"-two-chinese-chars"),vt&&Vt&&!Ot),_defineProperty$1(_e,"".concat(Bt,"-block"),mt),_defineProperty$1(_e,"".concat(Bt,"-dangerous"),!!at),_defineProperty$1(_e,"".concat(Bt,"-rtl"),Rt==="rtl"),_defineProperty$1(_e,"".concat(Bt,"-disabled"),ir.href!==void 0&&Nt),_e),Yt,ht),Ut=gt&&!Ot?gt:reactExports.createElement(LoadingIcon,{existIcon:!!gt,prefixCls:Bt,loading:!!Ot}),zt=dt||dt===0?spaceChildren(dt,Ht()&&Vt):null;if(ir.href!==void 0)return reactExports.createElement("a",_extends$1({},ir,{className:rr,onClick:$t,ref:Lt}),Ut,zt);var sr=reactExports.createElement("button",_extends$1({},St,{type:Et,className:rr,onClick:$t,disabled:Nt,ref:Lt}),Ut,zt);return isUnBorderedButtonType(it)?sr:reactExports.createElement(Wave,{disabled:!!Ot},sr)},Button=reactExports.forwardRef(InternalButton);Button.Group=ButtonGroup;Button.__ANT_BUTTON=!0;var PanelContext=reactExports.createContext({}),HIDDEN_STYLE={visibility:"hidden"};function Header(a){var _=a.prefixCls,$=a.prevIcon,_e=$===void 0?"‹":$,et=a.nextIcon,tt=et===void 0?"›":et,rt=a.superPrevIcon,nt=rt===void 0?"«":rt,it=a.superNextIcon,at=it===void 0?"»":it,st=a.onSuperPrev,ut=a.onSuperNext,ot=a.onPrev,pt=a.onNext,ht=a.children,dt=reactExports.useContext(PanelContext),gt=dt.hideNextBtn,lt=dt.hidePrevBtn;return reactExports.createElement("div",{className:_},st&&reactExports.createElement("button",{type:"button",onClick:st,tabIndex:-1,className:"".concat(_,"-super-prev-btn"),style:lt?HIDDEN_STYLE:{}},nt),ot&&reactExports.createElement("button",{type:"button",onClick:ot,tabIndex:-1,className:"".concat(_,"-prev-btn"),style:lt?HIDDEN_STYLE:{}},_e),reactExports.createElement("div",{className:"".concat(_,"-view")},ht),pt&&reactExports.createElement("button",{type:"button",onClick:pt,tabIndex:-1,className:"".concat(_,"-next-btn"),style:gt?HIDDEN_STYLE:{}},tt),ut&&reactExports.createElement("button",{type:"button",onClick:ut,tabIndex:-1,className:"".concat(_,"-super-next-btn"),style:gt?HIDDEN_STYLE:{}},at))}function DecadeHeader(a){var _=a.prefixCls,$=a.generateConfig,_e=a.viewDate,et=a.onPrevDecades,tt=a.onNextDecades,rt=reactExports.useContext(PanelContext),nt=rt.hideHeader;if(nt)return null;var it="".concat(_,"-header"),at=$.getYear(_e),st=Math.floor(at/DECADE_DISTANCE_COUNT)*DECADE_DISTANCE_COUNT,ut=st+DECADE_DISTANCE_COUNT-1;return reactExports.createElement(Header,_extends$1({},a,{prefixCls:it,onSuperPrev:et,onSuperNext:tt}),st,"-",ut)}function setTime(a,_,$,_e,et){var tt=a.setHour(_,$);return tt=a.setMinute(tt,_e),tt=a.setSecond(tt,et),tt}function setDateTime(a,_,$){if(!$)return _;var _e=_;return _e=a.setHour(_e,a.getHour($)),_e=a.setMinute(_e,a.getMinute($)),_e=a.setSecond(_e,a.getSecond($)),_e}function getLowerBoundTime(a,_,$,_e,et,tt){var rt=Math.floor(a/_e)*_e;if(rt<a)return[rt,60-et,60-tt];var nt=Math.floor(_/et)*et;if(nt<_)return[rt,nt,60-tt];var it=Math.floor($/tt)*tt;return[rt,nt,it]}function getLastDay(a,_){var $=a.getYear(_),_e=a.getMonth(_)+1,et=a.getEndDate(a.getFixedDate("".concat($,"-").concat(_e,"-01"))),tt=a.getDate(et),rt=_e<10?"0".concat(_e):"".concat(_e);return"".concat($,"-").concat(rt,"-").concat(tt)}function PanelBody(a){for(var _=a.prefixCls,$=a.disabledDate,_e=a.onSelect,et=a.picker,tt=a.rowNum,rt=a.colNum,nt=a.prefixColumn,it=a.rowClassName,at=a.baseDate,st=a.getCellClassName,ut=a.getCellText,ot=a.getCellNode,pt=a.getCellDate,ht=a.generateConfig,dt=a.titleCell,gt=a.headerCells,lt=reactExports.useContext(PanelContext),ft=lt.onDateMouseEnter,ct=lt.onDateMouseLeave,mt=lt.mode,yt="".concat(_,"-cell"),Et=[],St=0;St<tt;St+=1){for(var At=[],Mt=void 0,Nt=function(){var Dt,Ot=St*rt+kt,wt=pt(at,Ot),_t=getCellDateDisabled({cellDate:wt,mode:mt,disabledDate:$,generateConfig:ht});kt===0&&(Mt=wt,nt&&At.push(nt(Mt)));var bt=dt&&dt(wt);At.push(reactExports.createElement("td",{key:kt,title:bt,className:classNames(yt,_objectSpread2$1((Dt={},_defineProperty$1(Dt,"".concat(yt,"-disabled"),_t),_defineProperty$1(Dt,"".concat(yt,"-start"),ut(wt)===1||et==="year"&&Number(bt)%10===0),_defineProperty$1(Dt,"".concat(yt,"-end"),bt===getLastDay(ht,wt)||et==="year"&&Number(bt)%10===9),Dt),st(wt))),onClick:function(){_t||_e(wt)},onMouseEnter:function(){!_t&&ft&&ft(wt)},onMouseLeave:function(){!_t&&ct&&ct(wt)}},ot?ot(wt):reactExports.createElement("div",{className:"".concat(yt,"-inner")},ut(wt))))},kt=0;kt<rt;kt+=1)Nt();Et.push(reactExports.createElement("tr",{key:St,className:it&&it(Mt)},At))}return reactExports.createElement("div",{className:"".concat(_,"-body")},reactExports.createElement("table",{className:"".concat(_,"-content")},gt&&reactExports.createElement("thead",null,reactExports.createElement("tr",null,gt)),reactExports.createElement("tbody",null,Et)))}var DECADE_COL_COUNT=3,DECADE_ROW_COUNT=4;function DecadeBody(a){var _=DECADE_UNIT_DIFF-1,$=a.prefixCls,_e=a.viewDate,et=a.generateConfig,tt="".concat($,"-cell"),rt=et.getYear(_e),nt=Math.floor(rt/DECADE_UNIT_DIFF)*DECADE_UNIT_DIFF,it=Math.floor(rt/DECADE_DISTANCE_COUNT)*DECADE_DISTANCE_COUNT,at=it+DECADE_DISTANCE_COUNT-1,st=et.setYear(_e,it-Math.ceil((DECADE_COL_COUNT*DECADE_ROW_COUNT*DECADE_UNIT_DIFF-DECADE_DISTANCE_COUNT)/2)),ut=function(pt){var ht,dt=et.getYear(pt),gt=dt+_;return ht={},_defineProperty$1(ht,"".concat(tt,"-in-view"),it<=dt&><=at),_defineProperty$1(ht,"".concat(tt,"-selected"),dt===nt),ht};return reactExports.createElement(PanelBody,_extends$1({},a,{rowNum:DECADE_ROW_COUNT,colNum:DECADE_COL_COUNT,baseDate:st,getCellText:function(pt){var ht=et.getYear(pt);return"".concat(ht,"-").concat(ht+_)},getCellClassName:ut,getCellDate:function(pt,ht){return et.addYear(pt,ht*DECADE_UNIT_DIFF)}}))}var scrollIds=new Map;function waitElementReady(a,_){var $;function _e(){isVisible(a)?_():$=wrapperRaf$1(function(){_e()})}return _e(),function(){wrapperRaf$1.cancel($)}}function scrollTo(a,_,$){if(scrollIds.get(a)&&cancelAnimationFrame(scrollIds.get(a)),$<=0){scrollIds.set(a,requestAnimationFrame(function(){a.scrollTop=_}));return}var _e=_-a.scrollTop,et=_e/$*10;scrollIds.set(a,requestAnimationFrame(function(){a.scrollTop+=et,a.scrollTop!==_&&scrollTo(a,_,$-10)}))}function createKeyDownHandler(a,_){var $=_.onLeftRight,_e=_.onCtrlLeftRight,et=_.onUpDown,tt=_.onPageUpDown,rt=_.onEnter,nt=a.which,it=a.ctrlKey,at=a.metaKey;switch(nt){case KeyCode.LEFT:if(it||at){if(_e)return _e(-1),!0}else if($)return $(-1),!0;break;case KeyCode.RIGHT:if(it||at){if(_e)return _e(1),!0}else if($)return $(1),!0;break;case KeyCode.UP:if(et)return et(-1),!0;break;case KeyCode.DOWN:if(et)return et(1),!0;break;case KeyCode.PAGE_UP:if(tt)return tt(-1),!0;break;case KeyCode.PAGE_DOWN:if(tt)return tt(1),!0;break;case KeyCode.ENTER:if(rt)return rt(),!0;break}return!1}function getDefaultFormat(a,_,$,_e){var et=a;if(!et)switch(_){case"time":et=_e?"hh:mm:ss a":"HH:mm:ss";break;case"week":et="gggg-wo";break;case"month":et="YYYY-MM";break;case"quarter":et="YYYY-[Q]Q";break;case"year":et="YYYY";break;default:et=$?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return et}function getInputSize(a,_,$){var _e=a==="time"?8:10,et=typeof _=="function"?_($.getNow()).length:_.length;return Math.max(_e,et)+2}var globalClickFunc=null,clickCallbacks=new Set;function addGlobalMouseDownEvent(a){return!globalClickFunc&&typeof window<"u"&&window.addEventListener&&(globalClickFunc=function($){_toConsumableArray(clickCallbacks).forEach(function(_e){_e($)})},window.addEventListener("mousedown",globalClickFunc)),clickCallbacks.add(a),function(){clickCallbacks.delete(a),clickCallbacks.size===0&&(window.removeEventListener("mousedown",globalClickFunc),globalClickFunc=null)}}function getTargetFromEvent(a){var _=a.target;if(a.composed&&_.shadowRoot){var $;return(($=a.composedPath)===null||$===void 0?void 0:$.call(a)[0])||_}return _}var getYearNextMode=function a(_){return _==="month"||_==="date"?"year":_},getMonthNextMode=function a(_){return _==="date"?"month":_},getQuarterNextMode=function a(_){return _==="month"||_==="date"?"quarter":_},getWeekNextMode=function a(_){return _==="date"?"week":_},PickerModeMap={year:getYearNextMode,month:getMonthNextMode,quarter:getQuarterNextMode,week:getWeekNextMode,time:null,date:null};function elementsContains(a,_){return a.some(function($){return $&&$.contains(_)})}var DECADE_UNIT_DIFF=10,DECADE_DISTANCE_COUNT=DECADE_UNIT_DIFF*10;function DecadePanel(a){var _=a.prefixCls,$=a.onViewDateChange,_e=a.generateConfig,et=a.viewDate,tt=a.operationRef,rt=a.onSelect,nt=a.onPanelChange,it="".concat(_,"-decade-panel");tt.current={onKeyDown:function(ot){return createKeyDownHandler(ot,{onLeftRight:function(ht){rt(_e.addYear(et,ht*DECADE_UNIT_DIFF),"key")},onCtrlLeftRight:function(ht){rt(_e.addYear(et,ht*DECADE_DISTANCE_COUNT),"key")},onUpDown:function(ht){rt(_e.addYear(et,ht*DECADE_UNIT_DIFF*DECADE_COL_COUNT),"key")},onEnter:function(){nt("year",et)}})}};var at=function(ot){var pt=_e.addYear(et,ot*DECADE_DISTANCE_COUNT);$(pt),nt(null,pt)},st=function(ot){rt(ot,"mouse"),nt("year",ot)};return reactExports.createElement("div",{className:it},reactExports.createElement(DecadeHeader,_extends$1({},a,{prefixCls:_,onPrevDecades:function(){at(-1)},onNextDecades:function(){at(1)}})),reactExports.createElement(DecadeBody,_extends$1({},a,{prefixCls:_,onSelect:st})))}var WEEK_DAY_COUNT=7;function isNullEqual(a,_){if(!a&&!_)return!0;if(!a||!_)return!1}function isSameDecade(a,_,$){var _e=isNullEqual(_,$);if(typeof _e=="boolean")return _e;var et=Math.floor(a.getYear(_)/10),tt=Math.floor(a.getYear($)/10);return et===tt}function isSameYear(a,_,$){var _e=isNullEqual(_,$);return typeof _e=="boolean"?_e:a.getYear(_)===a.getYear($)}function getQuarter(a,_){var $=Math.floor(a.getMonth(_)/3);return $+1}function isSameQuarter(a,_,$){var _e=isNullEqual(_,$);return typeof _e=="boolean"?_e:isSameYear(a,_,$)&&getQuarter(a,_)===getQuarter(a,$)}function isSameMonth(a,_,$){var _e=isNullEqual(_,$);return typeof _e=="boolean"?_e:isSameYear(a,_,$)&&a.getMonth(_)===a.getMonth($)}function isSameDate(a,_,$){var _e=isNullEqual(_,$);return typeof _e=="boolean"?_e:a.getYear(_)===a.getYear($)&&a.getMonth(_)===a.getMonth($)&&a.getDate(_)===a.getDate($)}function isSameTime(a,_,$){var _e=isNullEqual(_,$);return typeof _e=="boolean"?_e:a.getHour(_)===a.getHour($)&&a.getMinute(_)===a.getMinute($)&&a.getSecond(_)===a.getSecond($)}function isSameWeek(a,_,$,_e){var et=isNullEqual($,_e);return typeof et=="boolean"?et:isSameYear(a,$,_e)&&a.locale.getWeek(_,$)===a.locale.getWeek(_,_e)}function isEqual(a,_,$){return isSameDate(a,_,$)&&isSameTime(a,_,$)}function isInRange(a,_,$,_e){return!_||!$||!_e?!1:!isSameDate(a,_,_e)&&!isSameDate(a,$,_e)&&a.isAfter(_e,_)&&a.isAfter($,_e)}function getWeekStartDate(a,_,$){var _e=_.locale.getWeekFirstDay(a),et=_.setDate($,1),tt=_.getWeekDay(et),rt=_.addDate(et,_e-tt);return _.getMonth(rt)===_.getMonth($)&&_.getDate(rt)>1&&(rt=_.addDate(rt,-7)),rt}function getClosingViewDate(a,_,$){var _e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(_){case"year":return $.addYear(a,_e*10);case"quarter":case"month":return $.addYear(a,_e);default:return $.addMonth(a,_e)}}function formatValue(a,_){var $=_.generateConfig,_e=_.locale,et=_.format;return typeof et=="function"?et(a):$.locale.format(_e.locale,a,et)}function parseValue(a,_){var $=_.generateConfig,_e=_.locale,et=_.formatList;return!a||typeof et[0]=="function"?null:$.locale.parse(_e.locale,a,et)}function getCellDateDisabled(a){var _=a.cellDate,$=a.mode,_e=a.disabledDate,et=a.generateConfig;if(!_e)return!1;var tt=function(ht,dt,gt){for(var lt=dt;lt<=gt;){var ft=void 0;switch(ht){case"date":{if(ft=et.setDate(_,lt),!_e(ft))return!1;break}case"month":{if(ft=et.setMonth(_,lt),!getCellDateDisabled({cellDate:ft,mode:"month",generateConfig:et,disabledDate:_e}))return!1;break}case"year":{if(ft=et.setYear(_,lt),!getCellDateDisabled({cellDate:ft,mode:"year",generateConfig:et,disabledDate:_e}))return!1;break}}lt+=1}return!0};switch($){case"date":case"week":return _e(_);case"month":{var rt=1,nt=et.getDate(et.getEndDate(_));return tt("date",rt,nt)}case"quarter":{var it=Math.floor(et.getMonth(_)/3)*3,at=it+2;return tt("month",it,at)}case"year":return tt("month",0,11);case"decade":{var st=et.getYear(_),ut=Math.floor(st/DECADE_UNIT_DIFF)*DECADE_UNIT_DIFF,ot=ut+DECADE_UNIT_DIFF-1;return tt("year",ut,ot)}}}function TimeHeader(a){var _=reactExports.useContext(PanelContext),$=_.hideHeader;if($)return null;var _e=a.prefixCls,et=a.generateConfig,tt=a.locale,rt=a.value,nt=a.format,it="".concat(_e,"-header");return reactExports.createElement(Header,{prefixCls:it},rt?formatValue(rt,{locale:tt,format:nt,generateConfig:et}):" ")}function useTimeSelection(a){var _=a.value,$=a.generateConfig,_e=a.disabledMinutes,et=a.disabledSeconds,tt=a.minutes,rt=a.seconds,nt=a.use12Hours,it=function(st,ut,ot,pt){var ht=_||$.getNow(),dt=Math.max(0,ut),gt=Math.max(0,ot),lt=Math.max(0,pt),ft=_e&&_e(dt);if(ft!=null&&ft.includes(gt)){var ct=tt.find(function(Et){return!ft.includes(Et.value)});if(ct)gt=ct.value;else return null}var mt=et&&et(dt,gt);if(mt!=null&&mt.includes(lt)){var yt=rt.find(function(Et){return!mt.includes(Et.value)});if(yt)lt=yt.value;else return null}return ht=setTime($,ht,!nt||!st?dt:dt+12,gt,lt),ht};return it}function leftPad(a,_){for(var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",_e=String(a);_e.length<_;)_e="".concat($).concat(a);return _e}var tuple=function a(){for(var _=arguments.length,$=new Array(_),_e=0;_e<_;_e++)$[_e]=arguments[_e];return $};function toArray$1(a){return a==null?[]:Array.isArray(a)?a:[a]}function getDataOrAriaProps(a){var _={};return Object.keys(a).forEach(function($){($.substr(0,5)==="data-"||$.substr(0,5)==="aria-"||$==="role"||$==="name")&&$.substr(0,7)!=="data-__"&&(_[$]=a[$])}),_}function getValue(a,_){return a?a[_]:null}function updateValues(a,_,$){var _e=[getValue(a,0),getValue(a,1)];return _e[$]=typeof _=="function"?_(_e[$]):_,!_e[0]&&!_e[1]?null:_e}function TimeUnitColumn(a){var _=a.prefixCls,$=a.units,_e=a.onSelect,et=a.value,tt=a.active,rt=a.hideDisabledOptions,nt="".concat(_,"-cell"),it=reactExports.useContext(PanelContext),at=it.open,st=reactExports.useRef(null),ut=reactExports.useRef(new Map),ot=reactExports.useRef();return reactExports.useLayoutEffect(function(){var pt=ut.current.get(et);pt&&at!==!1&&scrollTo(st.current,pt.offsetTop,120)},[et]),reactExports.useLayoutEffect(function(){if(at){var pt=ut.current.get(et);pt&&(ot.current=waitElementReady(pt,function(){scrollTo(st.current,pt.offsetTop,0)}))}return function(){var ht;(ht=ot.current)===null||ht===void 0||ht.call(ot)}},[at]),reactExports.createElement("ul",{className:classNames("".concat(_,"-column"),_defineProperty$1({},"".concat(_,"-column-active"),tt)),ref:st,style:{position:"relative"}},$.map(function(pt){var ht;return rt&&pt.disabled?null:reactExports.createElement("li",{key:pt.value,ref:function(gt){ut.current.set(pt.value,gt)},className:classNames(nt,(ht={},_defineProperty$1(ht,"".concat(nt,"-disabled"),pt.disabled),_defineProperty$1(ht,"".concat(nt,"-selected"),et===pt.value),ht)),onClick:function(){pt.disabled||_e(pt.value)}},reactExports.createElement("div",{className:"".concat(nt,"-inner")},pt.label))}))}function shouldUnitsUpdate(a,_){if(a.length!==_.length)return!0;for(var $=0;$<a.length;$+=1)if(a[$].disabled!==_[$].disabled)return!0;return!1}function generateUnits(a,_,$,_e){for(var et=[],tt=$>=1?$|0:1,rt=a;rt<=_;rt+=tt)et.push({label:leftPad(rt,2),value:rt,disabled:(_e||[]).includes(rt)});return et}function TimeBody(a){var _=a.generateConfig,$=a.prefixCls,_e=a.operationRef,et=a.activeColumnIndex,tt=a.value,rt=a.showHour,nt=a.showMinute,it=a.showSecond,at=a.use12Hours,st=a.hourStep,ut=st===void 0?1:st,ot=a.minuteStep,pt=ot===void 0?1:ot,ht=a.secondStep,dt=ht===void 0?1:ht,gt=a.disabledHours,lt=a.disabledMinutes,ft=a.disabledSeconds,ct=a.disabledTime,mt=a.hideDisabledOptions,yt=a.onSelect,Et=[],St="".concat($,"-content"),At="".concat($,"-time-panel"),Mt,Nt=tt?_.getHour(tt):-1,kt=Nt,Pt=tt?_.getMinute(tt):-1,Dt=tt?_.getSecond(tt):-1,Ot=_.getNow(),wt=reactExports.useMemo(function(){if(ct){var qt=ct(Ot);return[qt.disabledHours,qt.disabledMinutes,qt.disabledSeconds]}return[gt,lt,ft]},[gt,lt,ft,ct,Ot]),_t=_slicedToArray(wt,3),bt=_t[0],vt=_t[1],xt=_t[2],Ct=generateUnits(0,23,ut,bt&&bt()),Tt=useMemo(function(){return Ct},Ct,shouldUnitsUpdate);at&&(Mt=kt>=12,kt%=12);var It=reactExports.useMemo(function(){if(!at)return[!1,!1];var qt=[!0,!0];return Tt.forEach(function(Yt){var Gt=Yt.disabled,Xt=Yt.value;Gt||(Xt>=12?qt[1]=!1:qt[0]=!1)}),qt},[at,Tt]),Rt=_slicedToArray(It,2),Lt=Rt[0],Ht=Rt[1],jt=reactExports.useMemo(function(){return at?Tt.filter(Mt?function(qt){return qt.value>=12}:function(qt){return qt.value<12}).map(function(qt){var Yt=qt.value%12,Gt=Yt===0?"12":leftPad(Yt,2);return _objectSpread2$1(_objectSpread2$1({},qt),{},{label:Gt,value:Yt})}):Tt},[at,Mt,Tt]),Qt=generateUnits(0,59,pt,vt&&vt(Nt)),$t=generateUnits(0,59,dt,xt&&xt(Nt,Pt)),Bt=useTimeSelection({value:tt,generateConfig:_,disabledMinutes:vt,disabledSeconds:xt,minutes:Qt,seconds:$t,use12Hours:at});_e.current={onUpDown:function(Yt){var Gt=Et[et];if(Gt)for(var Xt=Gt.units.findIndex(function(rr){return rr.value===Gt.value}),er=Gt.units.length,dr=1;dr<er;dr+=1){var ir=Gt.units[(Xt+Yt*dr+er)%er];if(ir.disabled!==!0){Gt.onSelect(ir.value);break}}}};function Vt(qt,Yt,Gt,Xt,er){qt!==!1&&Et.push({node:reactExports.cloneElement(Yt,{prefixCls:At,value:Gt,active:et===Et.length,onSelect:er,units:Xt,hideDisabledOptions:mt}),onSelect:er,value:Gt,units:Xt})}Vt(rt,reactExports.createElement(TimeUnitColumn,{key:"hour"}),kt,jt,function(qt){yt(Bt(Mt,qt,Pt,Dt),"mouse")}),Vt(nt,reactExports.createElement(TimeUnitColumn,{key:"minute"}),Pt,Qt,function(qt){yt(Bt(Mt,kt,qt,Dt),"mouse")}),Vt(it,reactExports.createElement(TimeUnitColumn,{key:"second"}),Dt,$t,function(qt){yt(Bt(Mt,kt,Pt,qt),"mouse")});var Kt=-1;return typeof Mt=="boolean"&&(Kt=Mt?1:0),Vt(at===!0,reactExports.createElement(TimeUnitColumn,{key:"12hours"}),Kt,[{label:"AM",value:0,disabled:Lt},{label:"PM",value:1,disabled:Ht}],function(qt){yt(Bt(!!qt,kt,Pt,Dt),"mouse")}),reactExports.createElement("div",{className:St},Et.map(function(qt){var Yt=qt.node;return Yt}))}var countBoolean=function a(_){return _.filter(function($){return $!==!1}).length};function TimePanel(a){var _=a.generateConfig,$=a.format,_e=$===void 0?"HH:mm:ss":$,et=a.prefixCls,tt=a.active,rt=a.operationRef,nt=a.showHour,it=a.showMinute,at=a.showSecond,st=a.use12Hours,ut=st===void 0?!1:st,ot=a.onSelect,pt=a.value,ht="".concat(et,"-time-panel"),dt=reactExports.useRef(),gt=reactExports.useState(-1),lt=_slicedToArray(gt,2),ft=lt[0],ct=lt[1],mt=countBoolean([nt,it,at,ut]);return rt.current={onKeyDown:function(Et){return createKeyDownHandler(Et,{onLeftRight:function(At){ct((ft+At+mt)%mt)},onUpDown:function(At){ft===-1?ct(0):dt.current&&dt.current.onUpDown(At)},onEnter:function(){ot(pt||_.getNow(),"key"),ct(-1)}})},onBlur:function(){ct(-1)}},reactExports.createElement("div",{className:classNames(ht,_defineProperty$1({},"".concat(ht,"-active"),tt))},reactExports.createElement(TimeHeader,_extends$1({},a,{format:_e,prefixCls:et})),reactExports.createElement(TimeBody,_extends$1({},a,{prefixCls:et,activeColumnIndex:ft,operationRef:dt})))}var RangeContext=reactExports.createContext({});function useCellClassName(a){var _=a.cellPrefixCls,$=a.generateConfig,_e=a.rangedValue,et=a.hoverRangedValue,tt=a.isInView,rt=a.isSameCell,nt=a.offsetCell,it=a.today,at=a.value;function st(ut){var ot,pt=nt(ut,-1),ht=nt(ut,1),dt=getValue(_e,0),gt=getValue(_e,1),lt=getValue(et,0),ft=getValue(et,1),ct=isInRange($,lt,ft,ut);function mt(Nt){return rt(dt,Nt)}function yt(Nt){return rt(gt,Nt)}var Et=rt(lt,ut),St=rt(ft,ut),At=(ct||St)&&(!tt(pt)||yt(pt)),Mt=(ct||Et)&&(!tt(ht)||mt(ht));return ot={},_defineProperty$1(ot,"".concat(_,"-in-view"),tt(ut)),_defineProperty$1(ot,"".concat(_,"-in-range"),isInRange($,dt,gt,ut)),_defineProperty$1(ot,"".concat(_,"-range-start"),mt(ut)),_defineProperty$1(ot,"".concat(_,"-range-end"),yt(ut)),_defineProperty$1(ot,"".concat(_,"-range-start-single"),mt(ut)&&!gt),_defineProperty$1(ot,"".concat(_,"-range-end-single"),yt(ut)&&!dt),_defineProperty$1(ot,"".concat(_,"-range-start-near-hover"),mt(ut)&&(rt(pt,lt)||isInRange($,lt,ft,pt))),_defineProperty$1(ot,"".concat(_,"-range-end-near-hover"),yt(ut)&&(rt(ht,ft)||isInRange($,lt,ft,ht))),_defineProperty$1(ot,"".concat(_,"-range-hover"),ct),_defineProperty$1(ot,"".concat(_,"-range-hover-start"),Et),_defineProperty$1(ot,"".concat(_,"-range-hover-end"),St),_defineProperty$1(ot,"".concat(_,"-range-hover-edge-start"),At),_defineProperty$1(ot,"".concat(_,"-range-hover-edge-end"),Mt),_defineProperty$1(ot,"".concat(_,"-range-hover-edge-start-near-range"),At&&rt(pt,gt)),_defineProperty$1(ot,"".concat(_,"-range-hover-edge-end-near-range"),Mt&&rt(ht,dt)),_defineProperty$1(ot,"".concat(_,"-today"),rt(it,ut)),_defineProperty$1(ot,"".concat(_,"-selected"),rt(at,ut)),ot}return st}function DateBody(a){var _=a.prefixCls,$=a.generateConfig,_e=a.prefixColumn,et=a.locale,tt=a.rowCount,rt=a.viewDate,nt=a.value,it=a.dateRender,at=reactExports.useContext(RangeContext),st=at.rangedValue,ut=at.hoverRangedValue,ot=getWeekStartDate(et.locale,$,rt),pt="".concat(_,"-cell"),ht=$.locale.getWeekFirstDay(et.locale),dt=$.getNow(),gt=[],lt=et.shortWeekDays||($.locale.getShortWeekDays?$.locale.getShortWeekDays(et.locale):[]);_e&>.push(reactExports.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var ft=0;ft<WEEK_DAY_COUNT;ft+=1)gt.push(reactExports.createElement("th",{key:ft},lt[(ft+ht)%WEEK_DAY_COUNT]));var ct=useCellClassName({cellPrefixCls:pt,today:dt,value:nt,generateConfig:$,rangedValue:_e?null:st,hoverRangedValue:_e?null:ut,isSameCell:function(Et,St){return isSameDate($,Et,St)},isInView:function(Et){return isSameMonth($,Et,rt)},offsetCell:function(Et,St){return $.addDate(Et,St)}}),mt=it?function(yt){return it(yt,dt)}:void 0;return reactExports.createElement(PanelBody,_extends$1({},a,{rowNum:tt,colNum:WEEK_DAY_COUNT,baseDate:ot,getCellNode:mt,getCellText:$.getDate,getCellClassName:ct,getCellDate:$.addDate,titleCell:function(Et){return formatValue(Et,{locale:et,format:"YYYY-MM-DD",generateConfig:$})},headerCells:gt}))}function DateHeader(a){var _=a.prefixCls,$=a.generateConfig,_e=a.locale,et=a.viewDate,tt=a.onNextMonth,rt=a.onPrevMonth,nt=a.onNextYear,it=a.onPrevYear,at=a.onYearClick,st=a.onMonthClick,ut=reactExports.useContext(PanelContext),ot=ut.hideHeader;if(ot)return null;var pt="".concat(_,"-header"),ht=_e.shortMonths||($.locale.getShortMonths?$.locale.getShortMonths(_e.locale):[]),dt=$.getMonth(et),gt=reactExports.createElement("button",{type:"button",key:"year",onClick:at,tabIndex:-1,className:"".concat(_,"-year-btn")},formatValue(et,{locale:_e,format:_e.yearFormat,generateConfig:$})),lt=reactExports.createElement("button",{type:"button",key:"month",onClick:st,tabIndex:-1,className:"".concat(_,"-month-btn")},_e.monthFormat?formatValue(et,{locale:_e,format:_e.monthFormat,generateConfig:$}):ht[dt]),ft=_e.monthBeforeYear?[lt,gt]:[gt,lt];return reactExports.createElement(Header,_extends$1({},a,{prefixCls:pt,onSuperPrev:it,onPrev:rt,onNext:tt,onSuperNext:nt}),ft)}var DATE_ROW_COUNT=6;function DatePanel(a){var _=a.prefixCls,$=a.panelName,_e=$===void 0?"date":$,et=a.keyboardConfig,tt=a.active,rt=a.operationRef,nt=a.generateConfig,it=a.value,at=a.viewDate,st=a.onViewDateChange,ut=a.onPanelChange,ot=a.onSelect,pt="".concat(_,"-").concat(_e,"-panel");rt.current={onKeyDown:function(lt){return createKeyDownHandler(lt,_objectSpread2$1({onLeftRight:function(ct){ot(nt.addDate(it||at,ct),"key")},onCtrlLeftRight:function(ct){ot(nt.addYear(it||at,ct),"key")},onUpDown:function(ct){ot(nt.addDate(it||at,ct*WEEK_DAY_COUNT),"key")},onPageUpDown:function(ct){ot(nt.addMonth(it||at,ct),"key")}},et))}};var ht=function(lt){var ft=nt.addYear(at,lt);st(ft),ut(null,ft)},dt=function(lt){var ft=nt.addMonth(at,lt);st(ft),ut(null,ft)};return reactExports.createElement("div",{className:classNames(pt,_defineProperty$1({},"".concat(pt,"-active"),tt))},reactExports.createElement(DateHeader,_extends$1({},a,{prefixCls:_,value:it,viewDate:at,onPrevYear:function(){ht(-1)},onNextYear:function(){ht(1)},onPrevMonth:function(){dt(-1)},onNextMonth:function(){dt(1)},onMonthClick:function(){ut("month",at)},onYearClick:function(){ut("year",at)}})),reactExports.createElement(DateBody,_extends$1({},a,{onSelect:function(lt){return ot(lt,"mouse")},prefixCls:_,value:it,viewDate:at,rowCount:DATE_ROW_COUNT})))}var ACTIVE_PANEL=tuple("date","time");function DatetimePanel(a){var _=a.prefixCls,$=a.operationRef,_e=a.generateConfig,et=a.value,tt=a.defaultValue,rt=a.disabledTime,nt=a.showTime,it=a.onSelect,at="".concat(_,"-datetime-panel"),st=reactExports.useState(null),ut=_slicedToArray(st,2),ot=ut[0],pt=ut[1],ht=reactExports.useRef({}),dt=reactExports.useRef({}),gt=_typeof$1(nt)==="object"?_objectSpread2$1({},nt):{};function lt(yt){var Et=ACTIVE_PANEL.indexOf(ot)+yt,St=ACTIVE_PANEL[Et]||null;return St}var ft=function(Et){dt.current.onBlur&&dt.current.onBlur(Et),pt(null)};$.current={onKeyDown:function(Et){if(Et.which===KeyCode.TAB){var St=lt(Et.shiftKey?-1:1);return pt(St),St&&Et.preventDefault(),!0}if(ot){var At=ot==="date"?ht:dt;return At.current&&At.current.onKeyDown&&At.current.onKeyDown(Et),!0}return[KeyCode.LEFT,KeyCode.RIGHT,KeyCode.UP,KeyCode.DOWN].includes(Et.which)?(pt("date"),!0):!1},onBlur:ft,onClose:ft};var ct=function(Et,St){var At=Et;St==="date"&&!et&>.defaultValue?(At=_e.setHour(At,_e.getHour(gt.defaultValue)),At=_e.setMinute(At,_e.getMinute(gt.defaultValue)),At=_e.setSecond(At,_e.getSecond(gt.defaultValue))):St==="time"&&!et&&tt&&(At=_e.setYear(At,_e.getYear(tt)),At=_e.setMonth(At,_e.getMonth(tt)),At=_e.setDate(At,_e.getDate(tt))),it&&it(At,"mouse")},mt=rt?rt(et||null):{};return reactExports.createElement("div",{className:classNames(at,_defineProperty$1({},"".concat(at,"-active"),ot))},reactExports.createElement(DatePanel,_extends$1({},a,{operationRef:ht,active:ot==="date",onSelect:function(Et){ct(setDateTime(_e,Et,!et&&_typeof$1(nt)==="object"?nt.defaultValue:null),"date")}})),reactExports.createElement(TimePanel,_extends$1({},a,{format:void 0},gt,mt,{disabledTime:null,defaultValue:void 0,operationRef:dt,active:ot==="time",onSelect:function(Et){ct(Et,"time")}})))}function WeekPanel(a){var _=a.prefixCls,$=a.generateConfig,_e=a.locale,et=a.value,tt="".concat(_,"-cell"),rt=function(st){return reactExports.createElement("td",{key:"week",className:classNames(tt,"".concat(tt,"-week"))},$.locale.getWeek(_e.locale,st))},nt="".concat(_,"-week-panel-row"),it=function(st){return classNames(nt,_defineProperty$1({},"".concat(nt,"-selected"),isSameWeek($,_e.locale,et,st)))};return reactExports.createElement(DatePanel,_extends$1({},a,{panelName:"week",prefixColumn:rt,rowClassName:it,keyboardConfig:{onLeftRight:null}}))}function MonthHeader(a){var _=a.prefixCls,$=a.generateConfig,_e=a.locale,et=a.viewDate,tt=a.onNextYear,rt=a.onPrevYear,nt=a.onYearClick,it=reactExports.useContext(PanelContext),at=it.hideHeader;if(at)return null;var st="".concat(_,"-header");return reactExports.createElement(Header,_extends$1({},a,{prefixCls:st,onSuperPrev:rt,onSuperNext:tt}),reactExports.createElement("button",{type:"button",onClick:nt,className:"".concat(_,"-year-btn")},formatValue(et,{locale:_e,format:_e.yearFormat,generateConfig:$})))}var MONTH_COL_COUNT=3,MONTH_ROW_COUNT=4;function MonthBody(a){var _=a.prefixCls,$=a.locale,_e=a.value,et=a.viewDate,tt=a.generateConfig,rt=a.monthCellRender,nt=reactExports.useContext(RangeContext),it=nt.rangedValue,at=nt.hoverRangedValue,st="".concat(_,"-cell"),ut=useCellClassName({cellPrefixCls:st,value:_e,generateConfig:tt,rangedValue:it,hoverRangedValue:at,isSameCell:function(gt,lt){return isSameMonth(tt,gt,lt)},isInView:function(){return!0},offsetCell:function(gt,lt){return tt.addMonth(gt,lt)}}),ot=$.shortMonths||(tt.locale.getShortMonths?tt.locale.getShortMonths($.locale):[]),pt=tt.setMonth(et,0),ht=rt?function(dt){return rt(dt,$)}:void 0;return reactExports.createElement(PanelBody,_extends$1({},a,{rowNum:MONTH_ROW_COUNT,colNum:MONTH_COL_COUNT,baseDate:pt,getCellNode:ht,getCellText:function(gt){return $.monthFormat?formatValue(gt,{locale:$,format:$.monthFormat,generateConfig:tt}):ot[tt.getMonth(gt)]},getCellClassName:ut,getCellDate:tt.addMonth,titleCell:function(gt){return formatValue(gt,{locale:$,format:"YYYY-MM",generateConfig:tt})}}))}function MonthPanel(a){var _=a.prefixCls,$=a.operationRef,_e=a.onViewDateChange,et=a.generateConfig,tt=a.value,rt=a.viewDate,nt=a.onPanelChange,it=a.onSelect,at="".concat(_,"-month-panel");$.current={onKeyDown:function(ot){return createKeyDownHandler(ot,{onLeftRight:function(ht){it(et.addMonth(tt||rt,ht),"key")},onCtrlLeftRight:function(ht){it(et.addYear(tt||rt,ht),"key")},onUpDown:function(ht){it(et.addMonth(tt||rt,ht*MONTH_COL_COUNT),"key")},onEnter:function(){nt("date",tt||rt)}})}};var st=function(ot){var pt=et.addYear(rt,ot);_e(pt),nt(null,pt)};return reactExports.createElement("div",{className:at},reactExports.createElement(MonthHeader,_extends$1({},a,{prefixCls:_,onPrevYear:function(){st(-1)},onNextYear:function(){st(1)},onYearClick:function(){nt("year",rt)}})),reactExports.createElement(MonthBody,_extends$1({},a,{prefixCls:_,onSelect:function(ot){it(ot,"mouse"),nt("date",ot)}})))}function QuarterHeader(a){var _=a.prefixCls,$=a.generateConfig,_e=a.locale,et=a.viewDate,tt=a.onNextYear,rt=a.onPrevYear,nt=a.onYearClick,it=reactExports.useContext(PanelContext),at=it.hideHeader;if(at)return null;var st="".concat(_,"-header");return reactExports.createElement(Header,_extends$1({},a,{prefixCls:st,onSuperPrev:rt,onSuperNext:tt}),reactExports.createElement("button",{type:"button",onClick:nt,className:"".concat(_,"-year-btn")},formatValue(et,{locale:_e,format:_e.yearFormat,generateConfig:$})))}var QUARTER_COL_COUNT=4,QUARTER_ROW_COUNT=1;function QuarterBody(a){var _=a.prefixCls,$=a.locale,_e=a.value,et=a.viewDate,tt=a.generateConfig,rt=reactExports.useContext(RangeContext),nt=rt.rangedValue,it=rt.hoverRangedValue,at="".concat(_,"-cell"),st=useCellClassName({cellPrefixCls:at,value:_e,generateConfig:tt,rangedValue:nt,hoverRangedValue:it,isSameCell:function(pt,ht){return isSameQuarter(tt,pt,ht)},isInView:function(){return!0},offsetCell:function(pt,ht){return tt.addMonth(pt,ht*3)}}),ut=tt.setDate(tt.setMonth(et,0),1);return reactExports.createElement(PanelBody,_extends$1({},a,{rowNum:QUARTER_ROW_COUNT,colNum:QUARTER_COL_COUNT,baseDate:ut,getCellText:function(pt){return formatValue(pt,{locale:$,format:$.quarterFormat||"[Q]Q",generateConfig:tt})},getCellClassName:st,getCellDate:function(pt,ht){return tt.addMonth(pt,ht*3)},titleCell:function(pt){return formatValue(pt,{locale:$,format:"YYYY-[Q]Q",generateConfig:tt})}}))}function QuarterPanel(a){var _=a.prefixCls,$=a.operationRef,_e=a.onViewDateChange,et=a.generateConfig,tt=a.value,rt=a.viewDate,nt=a.onPanelChange,it=a.onSelect,at="".concat(_,"-quarter-panel");$.current={onKeyDown:function(ot){return createKeyDownHandler(ot,{onLeftRight:function(ht){it(et.addMonth(tt||rt,ht*3),"key")},onCtrlLeftRight:function(ht){it(et.addYear(tt||rt,ht),"key")},onUpDown:function(ht){it(et.addYear(tt||rt,ht),"key")}})}};var st=function(ot){var pt=et.addYear(rt,ot);_e(pt),nt(null,pt)};return reactExports.createElement("div",{className:at},reactExports.createElement(QuarterHeader,_extends$1({},a,{prefixCls:_,onPrevYear:function(){st(-1)},onNextYear:function(){st(1)},onYearClick:function(){nt("year",rt)}})),reactExports.createElement(QuarterBody,_extends$1({},a,{prefixCls:_,onSelect:function(ot){it(ot,"mouse")}})))}function YearHeader(a){var _=a.prefixCls,$=a.generateConfig,_e=a.viewDate,et=a.onPrevDecade,tt=a.onNextDecade,rt=a.onDecadeClick,nt=reactExports.useContext(PanelContext),it=nt.hideHeader;if(it)return null;var at="".concat(_,"-header"),st=$.getYear(_e),ut=Math.floor(st/YEAR_DECADE_COUNT)*YEAR_DECADE_COUNT,ot=ut+YEAR_DECADE_COUNT-1;return reactExports.createElement(Header,_extends$1({},a,{prefixCls:at,onSuperPrev:et,onSuperNext:tt}),reactExports.createElement("button",{type:"button",onClick:rt,className:"".concat(_,"-decade-btn")},ut,"-",ot))}var YEAR_COL_COUNT=3,YEAR_ROW_COUNT=4;function YearBody(a){var _=a.prefixCls,$=a.value,_e=a.viewDate,et=a.locale,tt=a.generateConfig,rt=reactExports.useContext(RangeContext),nt=rt.rangedValue,it=rt.hoverRangedValue,at="".concat(_,"-cell"),st=tt.getYear(_e),ut=Math.floor(st/YEAR_DECADE_COUNT)*YEAR_DECADE_COUNT,ot=ut+YEAR_DECADE_COUNT-1,pt=tt.setYear(_e,ut-Math.ceil((YEAR_COL_COUNT*YEAR_ROW_COUNT-YEAR_DECADE_COUNT)/2)),ht=function(lt){var ft=tt.getYear(lt);return ut<=ft&&ft<=ot},dt=useCellClassName({cellPrefixCls:at,value:$,generateConfig:tt,rangedValue:nt,hoverRangedValue:it,isSameCell:function(lt,ft){return isSameYear(tt,lt,ft)},isInView:ht,offsetCell:function(lt,ft){return tt.addYear(lt,ft)}});return reactExports.createElement(PanelBody,_extends$1({},a,{rowNum:YEAR_ROW_COUNT,colNum:YEAR_COL_COUNT,baseDate:pt,getCellText:tt.getYear,getCellClassName:dt,getCellDate:tt.addYear,titleCell:function(lt){return formatValue(lt,{locale:et,format:"YYYY",generateConfig:tt})}}))}var YEAR_DECADE_COUNT=10;function YearPanel(a){var _=a.prefixCls,$=a.operationRef,_e=a.onViewDateChange,et=a.generateConfig,tt=a.value,rt=a.viewDate,nt=a.sourceMode,it=a.onSelect,at=a.onPanelChange,st="".concat(_,"-year-panel");$.current={onKeyDown:function(pt){return createKeyDownHandler(pt,{onLeftRight:function(dt){it(et.addYear(tt||rt,dt),"key")},onCtrlLeftRight:function(dt){it(et.addYear(tt||rt,dt*YEAR_DECADE_COUNT),"key")},onUpDown:function(dt){it(et.addYear(tt||rt,dt*YEAR_COL_COUNT),"key")},onEnter:function(){at(nt==="date"?"date":"month",tt||rt)}})}};var ut=function(pt){var ht=et.addYear(rt,pt*10);_e(ht),at(null,ht)};return reactExports.createElement("div",{className:st},reactExports.createElement(YearHeader,_extends$1({},a,{prefixCls:_,onPrevDecade:function(){ut(-1)},onNextDecade:function(){ut(1)},onDecadeClick:function(){at("decade",rt)}})),reactExports.createElement(YearBody,_extends$1({},a,{prefixCls:_,onSelect:function(pt){at(nt==="date"?"date":"month",pt),it(pt,"mouse")}})))}function getExtraFooter(a,_,$){return $?reactExports.createElement("div",{className:"".concat(a,"-footer-extra")},$(_)):null}function getRanges(a){var _=a.prefixCls,$=a.rangeList,_e=$===void 0?[]:$,et=a.components,tt=et===void 0?{}:et,rt=a.needConfirmButton,nt=a.onNow,it=a.onOk,at=a.okDisabled,st=a.showNow,ut=a.locale,ot,pt;if(_e.length){var ht=tt.rangeItem||"span";ot=reactExports.createElement(reactExports.Fragment,null,_e.map(function(gt){var lt=gt.label,ft=gt.onClick,ct=gt.onMouseEnter,mt=gt.onMouseLeave;return reactExports.createElement("li",{key:lt,className:"".concat(_,"-preset")},reactExports.createElement(ht,{onClick:ft,onMouseEnter:ct,onMouseLeave:mt},lt))}))}if(rt){var dt=tt.button||"button";nt&&!ot&&st!==!1&&(ot=reactExports.createElement("li",{className:"".concat(_,"-now")},reactExports.createElement("a",{className:"".concat(_,"-now-btn"),onClick:nt},ut.now))),pt=rt&&reactExports.createElement("li",{className:"".concat(_,"-ok")},reactExports.createElement(dt,{disabled:at,onClick:it},ut.ok))}return!ot&&!pt?null:reactExports.createElement("ul",{className:"".concat(_,"-ranges")},ot,pt)}var CALENDAR_PANEL_MODE=["date","month"];function PickerPanel(a){var _,$=a.prefixCls,_e=$===void 0?"rc-picker":$,et=a.className,tt=a.style,rt=a.locale,nt=a.generateConfig,it=a.value,at=a.defaultValue,st=a.pickerValue,ut=a.defaultPickerValue,ot=a.disabledDate,pt=a.mode,ht=a.picker,dt=ht===void 0?"date":ht,gt=a.tabIndex,lt=gt===void 0?0:gt,ft=a.showNow,ct=a.showTime,mt=a.showToday,yt=a.renderExtraFooter,Et=a.hideHeader,St=a.onSelect,At=a.onChange,Mt=a.onPanelChange,Nt=a.onMouseDown,kt=a.onPickerValueChange,Pt=a.onOk,Dt=a.components,Ot=a.direction,wt=a.hourStep,_t=wt===void 0?1:wt,bt=a.minuteStep,vt=bt===void 0?1:bt,xt=a.secondStep,Ct=xt===void 0?1:xt,Tt=dt==="date"&&!!ct||dt==="time",It=24%_t===0,Rt=60%vt===0,Lt=60%Ct===0,Ht=reactExports.useContext(PanelContext),jt=Ht.operationRef,Qt=Ht.panelRef,$t=Ht.onSelect,Bt=Ht.hideRanges,Vt=Ht.defaultOpenValue,Kt=reactExports.useContext(RangeContext),qt=Kt.inRange,Yt=Kt.panelPosition,Gt=Kt.rangedValue,Xt=Kt.hoverRangedValue,er=reactExports.useRef({}),dr=reactExports.useRef(!0),ir=useMergedState(null,{value:it,defaultValue:at,postState:function(nr){return!nr&&Vt&&dt==="time"?Vt:nr}}),rr=_slicedToArray(ir,2),Ut=rr[0],zt=rr[1],sr=useMergedState(null,{value:st,defaultValue:ut||Ut,postState:function(nr){var pr=nt.getNow();if(!nr)return pr;if(!Ut&&ct){var Dr=_typeof$1(ct)==="object"?ct.defaultValue:at;return setDateTime(nt,Array.isArray(nr)?nr[0]:nr,Dr||pr)}return Array.isArray(nr)?nr[0]:nr}}),lr=_slicedToArray(sr,2),vr=lr[0],Wt=lr[1],Zt=function(nr){Wt(nr),kt&&kt(nr)},mr=function(nr){var pr=PickerModeMap[dt];return pr?pr(nr):nr},yr=useMergedState(function(){return dt==="time"?"time":mr("date")},{value:pt}),Ar=_slicedToArray(yr,2),br=Ar[0],Nr=Ar[1];reactExports.useEffect(function(){Nr(dt)},[dt]);var Mr=reactExports.useState(function(){return br}),kr=_slicedToArray(Mr,2),Lr=kr[0],Wr=kr[1],Hr=function(nr,pr){var Dr=mr(nr||br);Wr(br),Nr(Dr),Mt&&(br!==Dr||isEqual(nt,vr,vr))&&Mt(pr,Dr)},Tr=function(nr,pr){var Dr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(br===dt||Dr)&&(zt(nr),St&&St(nr),$t&&$t(nr,pr),At&&!isEqual(nt,nr,Ut)&&!(ot!=null&&ot(nr))&&At(nr))},Jr=function(nr){if(CALENDAR_PANEL_MODE.includes(br)){var pr,Dr,wr=br==="date";switch(nr===KeyCode.PAGE_UP||nr===KeyCode.PAGE_DOWN?Dr=wr?nt.addMonth:nt.addYear:Dr=wr?nt.addDate:nt.addMonth,nr){case KeyCode.LEFT:case KeyCode.PAGE_UP:pr=Dr(vr,-1);break;case KeyCode.RIGHT:case KeyCode.PAGE_DOWN:pr=Dr(vr,1);break;case KeyCode.UP:case KeyCode.DOWN:pr=Dr(vr,Number("".concat(nr===KeyCode.UP?"-":"").concat(wr?WEEK_DAY_COUNT:MONTH_COL_COUNT)));break}if(pr)return!(ot!=null&&ot(pr))}return!0},un=function(nr){if(er.current&&er.current.onKeyDown){var pr=!0,Dr=nr.which;if([KeyCode.LEFT,KeyCode.RIGHT,KeyCode.UP,KeyCode.DOWN,KeyCode.PAGE_UP,KeyCode.PAGE_DOWN,KeyCode.ENTER].includes(Dr)&&(nr.preventDefault(),Dr!==KeyCode.ENTER&<===0&&(pr=Jr(Dr))),pr)return er.current.onKeyDown(nr)}return warningOnce(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},cr=function(nr){er.current&&er.current.onBlur&&er.current.onBlur(nr)};jt&&Yt!=="right"&&(jt.current={onKeyDown:un,onClose:function(){er.current&&er.current.onClose&&er.current.onClose()}}),reactExports.useEffect(function(){it&&!dr.current&&Wt(it)},[it]),reactExports.useEffect(function(){dr.current=!1},[]);var Br,Ir=_objectSpread2$1(_objectSpread2$1({},a),{},{operationRef:er,prefixCls:_e,viewDate:vr,value:Ut,onViewDateChange:Zt,sourceMode:Lr,onPanelChange:Hr,disabledDate:ot});switch(delete Ir.onChange,delete Ir.onSelect,br){case"decade":Br=reactExports.createElement(DecadePanel,_extends$1({},Ir,{onSelect:function(nr,pr){Zt(nr),Tr(nr,pr)}}));break;case"year":Br=reactExports.createElement(YearPanel,_extends$1({},Ir,{onSelect:function(nr,pr){Zt(nr),Tr(nr,pr)}}));break;case"month":Br=reactExports.createElement(MonthPanel,_extends$1({},Ir,{onSelect:function(nr,pr){Zt(nr),Tr(nr,pr)}}));break;case"quarter":Br=reactExports.createElement(QuarterPanel,_extends$1({},Ir,{onSelect:function(nr,pr){Zt(nr),Tr(nr,pr)}}));break;case"week":Br=reactExports.createElement(WeekPanel,_extends$1({},Ir,{onSelect:function(nr,pr){Zt(nr),Tr(nr,pr)}}));break;case"time":delete Ir.showTime,Br=reactExports.createElement(TimePanel,_extends$1({},Ir,_typeof$1(ct)==="object"?ct:null,{onSelect:function(nr,pr){Zt(nr),Tr(nr,pr)}}));break;default:ct?Br=reactExports.createElement(DatetimePanel,_extends$1({},Ir,{onSelect:function(nr,pr){Zt(nr),Tr(nr,pr)}})):Br=reactExports.createElement(DatePanel,_extends$1({},Ir,{onSelect:function(nr,pr){Zt(nr),Tr(nr,pr)}}))}var Rr,Qr,Bn=function(){var nr=nt.getNow(),pr=getLowerBoundTime(nt.getHour(nr),nt.getMinute(nr),nt.getSecond(nr),It?_t:1,Rt?vt:1,Lt?Ct:1),Dr=setTime(nt,nr,pr[0],pr[1],pr[2]);Tr(Dr,"submit")};Bt||(Rr=getExtraFooter(_e,br,yt),Qr=getRanges({prefixCls:_e,components:Dt,needConfirmButton:Tt,okDisabled:!Ut||ot&&ot(Ut),locale:rt,showNow:ft,onNow:Tt&&Bn,onOk:function(){Ut&&(Tr(Ut,"submit",!0),Pt&&Pt(Ut))}}));var Fr;if(mt&&br==="date"&&dt==="date"&&!ct){var Un=nt.getNow(),kn="".concat(_e,"-today-btn"),vn=ot&&ot(Un);Fr=reactExports.createElement("a",{className:classNames(kn,vn&&"".concat(kn,"-disabled")),"aria-disabled":vn,onClick:function(){vn||Tr(Un,"mouse",!0)}},rt.today)}return reactExports.createElement(PanelContext.Provider,{value:_objectSpread2$1(_objectSpread2$1({},Ht),{},{mode:br,hideHeader:"hideHeader"in a?Et:Ht.hideHeader,hidePrevBtn:qt&&Yt==="right",hideNextBtn:qt&&Yt==="left"})},reactExports.createElement("div",{tabIndex:lt,className:classNames("".concat(_e,"-panel"),et,(_={},_defineProperty$1(_,"".concat(_e,"-panel-has-range"),Gt&&Gt[0]&&Gt[1]),_defineProperty$1(_,"".concat(_e,"-panel-has-range-hover"),Xt&&Xt[0]&&Xt[1]),_defineProperty$1(_,"".concat(_e,"-panel-rtl"),Ot==="rtl"),_)),style:tt,onKeyDown:un,onBlur:cr,onMouseDown:Nt,ref:Qt},Br,Rr||Qr||Fr?reactExports.createElement("div",{className:"".concat(_e,"-footer")},Rr,Qr,Fr):null))}var BUILT_IN_PLACEMENTS={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function PickerTrigger(a){var _,$=a.prefixCls,_e=a.popupElement,et=a.popupStyle,tt=a.visible,rt=a.dropdownClassName,nt=a.dropdownAlign,it=a.transitionName,at=a.getPopupContainer,st=a.children,ut=a.range,ot=a.popupPlacement,pt=a.direction,ht="".concat($,"-dropdown"),dt=function(){return ot!==void 0?ot:pt==="rtl"?"bottomRight":"bottomLeft"};return reactExports.createElement(Trigger,{showAction:[],hideAction:[],popupPlacement:dt(),builtinPlacements:BUILT_IN_PLACEMENTS,prefixCls:ht,popupTransitionName:it,popup:_e,popupAlign:nt,popupVisible:tt,popupClassName:classNames(rt,(_={},_defineProperty$1(_,"".concat(ht,"-range"),ut),_defineProperty$1(_,"".concat(ht,"-rtl"),pt==="rtl"),_)),popupStyle:et,getPopupContainer:at},st)}function usePickerInput(a){var _=a.open,$=a.value,_e=a.isClickOutside,et=a.triggerOpen,tt=a.forwardKeyDown,rt=a.onKeyDown,nt=a.blurToCancel,it=a.onSubmit,at=a.onCancel,st=a.onFocus,ut=a.onBlur,ot=a.currentFocusedKey,pt=a.key,ht=pt===void 0?"start":pt,dt=reactExports.useState(!1),gt=_slicedToArray(dt,2),lt=gt[0],ft=gt[1],ct=reactExports.useState(!1),mt=_slicedToArray(ct,2),yt=mt[0],Et=mt[1],St=reactExports.useRef(),At=reactExports.useRef(!1),Mt=reactExports.useRef(!1),Nt=reactExports.useRef(!1),kt={onMouseDown:function(){ft(!0),et(!0)},onKeyDown:function(Dt){var Ot=function(){Nt.current=!0};if(rt(Dt,Ot),!Nt.current){switch(Dt.which){case KeyCode.ENTER:{_?it()!==!1&&ft(!0):et(!0),Dt.preventDefault();return}case KeyCode.TAB:{lt&&_&&!Dt.shiftKey?(ft(!1),Dt.preventDefault()):!lt&&_&&!tt(Dt)&&Dt.shiftKey&&(ft(!0),Dt.preventDefault());return}case KeyCode.ESC:{ft(!0),at();return}}!_&&![KeyCode.SHIFT].includes(Dt.which)?et(!0):lt||tt(Dt)}},onFocus:function(Dt){ft(!0),Et(!0),ot&&(ot.current=ht),clearTimeout(St.current),st&&st(Dt)},onBlur:function(Dt){if(At.current||!_e(document.activeElement)){At.current=!1;return}nt?setTimeout(function(){for(var Ot=document,wt=Ot.activeElement;wt&&wt.shadowRoot;)wt=wt.shadowRoot.activeElement;_e(wt)&&at()},0):_&&(et(!1),Mt.current&&it()),Et(!1),ot?(ot.current="",St.current=setTimeout(function(){ot.current||ut==null||ut(Dt)},100)):ut==null||ut(Dt)}};return reactExports.useEffect(function(){Mt.current=!1},[_]),reactExports.useEffect(function(){Mt.current=!0},[$]),reactExports.useEffect(function(){return addGlobalMouseDownEvent(function(Pt){var Dt=getTargetFromEvent(Pt),Ot=_e(Dt);_?Ot?(!yt||Ot)&&et(!1):(At.current=!0,requestAnimationFrame(function(){At.current=!1})):yt&&!Ot&&(At.current=!0)})}),reactExports.useEffect(function(){return function(){return clearTimeout(St.current)}},[]),[kt,{focused:yt,typing:lt}]}function useTextValueMapping(a){var _=a.valueTexts,$=a.onTextChange,_e=reactExports.useState(""),et=_slicedToArray(_e,2),tt=et[0],rt=et[1],nt=reactExports.useRef([]);nt.current=_;function it(st){rt(st),$(st)}function at(){rt(nt.current[0])}return reactExports.useEffect(function(){_.every(function(st){return st!==tt})&&at()},[_.join("||")]),[tt,it,at]}function useValueTexts(a,_){var $=_.formatList,_e=_.generateConfig,et=_.locale;return useMemo(function(){if(!a)return[[""],""];for(var tt="",rt=[],nt=0;nt<$.length;nt+=1){var it=$[nt],at=formatValue(a,{generateConfig:_e,locale:et,format:it});rt.push(at),nt===0&&(tt=at)}return[rt,tt]},[a,$,et],function(tt,rt){return!isEqual(_e,tt[0],rt[0])||!isEqual$1(tt[1],rt[1],!0)||!isEqual$1(tt[2],rt[2],!0)})}function useHoverValue(a,_){var $=_.formatList,_e=_.generateConfig,et=_.locale,tt=reactExports.useState(null),rt=_slicedToArray(tt,2),nt=rt[0],it=rt[1],at=reactExports.useRef(null);function st(gt){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(at.current),lt){it(gt);return}at.current=requestAnimationFrame(function(){it(gt)})}var ut=useValueTexts(nt,{formatList:$,generateConfig:_e,locale:et}),ot=_slicedToArray(ut,2),pt=ot[1];function ht(gt){st(gt)}function dt(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;st(null,gt)}return reactExports.useEffect(function(){dt(!0)},[a]),reactExports.useEffect(function(){return function(){return cancelAnimationFrame(at.current)}},[]),[pt,ht,dt]}function InnerPicker(a){var _,$=a.prefixCls,_e=$===void 0?"rc-picker":$,et=a.id,tt=a.tabIndex,rt=a.style,nt=a.className,it=a.dropdownClassName,at=a.dropdownAlign,st=a.popupStyle,ut=a.transitionName,ot=a.generateConfig,pt=a.locale,ht=a.inputReadOnly,dt=a.allowClear,gt=a.autoFocus,lt=a.showTime,ft=a.picker,ct=ft===void 0?"date":ft,mt=a.format,yt=a.use12Hours,Et=a.value,St=a.defaultValue,At=a.open,Mt=a.defaultOpen,Nt=a.defaultOpenValue,kt=a.suffixIcon,Pt=a.clearIcon,Dt=a.disabled,Ot=a.disabledDate,wt=a.placeholder,_t=a.getPopupContainer,bt=a.pickerRef,vt=a.panelRender,xt=a.onChange,Ct=a.onOpenChange,Tt=a.onFocus,It=a.onBlur,Rt=a.onMouseDown,Lt=a.onMouseUp,Ht=a.onMouseEnter,jt=a.onMouseLeave,Qt=a.onContextMenu,$t=a.onClick,Bt=a.onKeyDown,Vt=a.onSelect,Kt=a.direction,qt=a.autoComplete,Yt=qt===void 0?"off":qt,Gt=a.inputRender,Xt=reactExports.useRef(null),er=ct==="date"&&!!lt||ct==="time",dr=toArray$1(getDefaultFormat(mt,ct,lt,yt)),ir=reactExports.useRef(null),rr=reactExports.useRef(null),Ut=reactExports.useRef(null),zt=useMergedState(null,{value:Et,defaultValue:St}),sr=_slicedToArray(zt,2),lr=sr[0],vr=sr[1],Wt=reactExports.useState(lr),Zt=_slicedToArray(Wt,2),mr=Zt[0],yr=Zt[1],Ar=reactExports.useRef(null),br=useMergedState(!1,{value:At,defaultValue:Mt,postState:function(hr){return Dt?!1:hr},onChange:function(hr){Ct&&Ct(hr),!hr&&Ar.current&&Ar.current.onClose&&Ar.current.onClose()}}),Nr=_slicedToArray(br,2),Mr=Nr[0],kr=Nr[1],Lr=useValueTexts(mr,{formatList:dr,generateConfig:ot,locale:pt}),Wr=_slicedToArray(Lr,2),Hr=Wr[0],Tr=Wr[1],Jr=useTextValueMapping({valueTexts:Hr,onTextChange:function(hr){var Ur=parseValue(hr,{locale:pt,formatList:dr,generateConfig:ot});Ur&&(!Ot||!Ot(Ur))&&yr(Ur)}}),un=_slicedToArray(Jr,3),cr=un[0],Br=un[1],Ir=un[2],Rr=function(hr){yr(hr),vr(hr),xt&&!isEqual(ot,lr,hr)&&xt(hr,hr?formatValue(hr,{generateConfig:ot,locale:pt,format:dr[0]}):"")},Qr=function(hr){Dt&&hr||kr(hr)},Bn=function(hr){return Mr&&Ar.current&&Ar.current.onKeyDown?Ar.current.onKeyDown(hr):(warningOnce(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Fr=function(){for(var hr=arguments.length,Ur=new Array(hr),rn=0;rn<hr;rn++)Ur[rn]=arguments[rn];$t==null||$t.apply(void 0,Ur),Xt.current&&(Xt.current.focus(),Qr(!0))},Un=usePickerInput({blurToCancel:er,open:Mr,value:cr,triggerOpen:Qr,forwardKeyDown:Bn,isClickOutside:function(hr){return!elementsContains([ir.current,rr.current,Ut.current],hr)},onSubmit:function(){return!mr||Ot&&Ot(mr)?!1:(Rr(mr),Qr(!1),Ir(),!0)},onCancel:function(){Qr(!1),yr(lr),Ir()},onKeyDown:function(hr,Ur){Bt==null||Bt(hr,Ur)},onFocus:Tt,onBlur:It}),kn=_slicedToArray(Un,2),vn=kn[0],Or=kn[1],nr=Or.focused,pr=Or.typing;reactExports.useEffect(function(){Mr||(yr(lr),!Hr.length||Hr[0]===""?Br(""):Tr!==cr&&Ir())},[Mr,Hr]),reactExports.useEffect(function(){Mr||Ir()},[ct]),reactExports.useEffect(function(){yr(lr)},[lr]),bt&&(bt.current={focus:function(){Xt.current&&Xt.current.focus()},blur:function(){Xt.current&&Xt.current.blur()}});var Dr=useHoverValue(cr,{formatList:dr,generateConfig:ot,locale:pt}),wr=_slicedToArray(Dr,3),cn=wr[0],bs=wr[1],as=wr[2],Rn=_objectSpread2$1(_objectSpread2$1({},a),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Gn=reactExports.createElement(PickerPanel,_extends$1({},Rn,{generateConfig:ot,className:classNames(_defineProperty$1({},"".concat(_e,"-panel-focused"),!pr)),value:mr,locale:pt,tabIndex:-1,onSelect:function(hr){Vt==null||Vt(hr),yr(hr)},direction:Kt,onPanelChange:function(hr,Ur){var rn=a.onPanelChange;as(!0),rn==null||rn(hr,Ur)}}));vt&&(Gn=vt(Gn));var Cs=reactExports.createElement("div",{className:"".concat(_e,"-panel-container"),onMouseDown:function(hr){hr.preventDefault()}},Gn),ms;kt&&(ms=reactExports.createElement("span",{className:"".concat(_e,"-suffix")},kt));var ss;dt&&lr&&!Dt&&(ss=reactExports.createElement("span",{onMouseDown:function(hr){hr.preventDefault(),hr.stopPropagation()},onMouseUp:function(hr){hr.preventDefault(),hr.stopPropagation(),Rr(null),Qr(!1)},className:"".concat(_e,"-clear"),role:"button"},Pt||reactExports.createElement("span",{className:"".concat(_e,"-clear-btn")})));var os=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({id:et,tabIndex:tt,disabled:Dt,readOnly:ht||typeof dr[0]=="function"||!pr,value:cn||cr,onChange:function(hr){Br(hr.target.value)},autoFocus:gt,placeholder:wt,ref:Xt,title:cr},vn),{},{size:getInputSize(ct,dr[0],ot)},getDataOrAriaProps(a)),{},{autoComplete:Yt}),gs=Gt?Gt(os):reactExports.createElement("input",os),Ts=function(hr,Ur){(Ur==="submit"||Ur!=="key"&&!er)&&(Rr(hr),Qr(!1))},vs=Kt==="rtl"?"bottomRight":"bottomLeft";return reactExports.createElement(PanelContext.Provider,{value:{operationRef:Ar,hideHeader:ct==="time",panelRef:ir,onSelect:Ts,open:Mr,defaultOpenValue:Nt,onDateMouseEnter:bs,onDateMouseLeave:as}},reactExports.createElement(PickerTrigger,{visible:Mr,popupElement:Cs,popupStyle:st,prefixCls:_e,dropdownClassName:it,dropdownAlign:at,getPopupContainer:_t,transitionName:ut,popupPlacement:vs,direction:Kt},reactExports.createElement("div",{ref:Ut,className:classNames(_e,nt,(_={},_defineProperty$1(_,"".concat(_e,"-disabled"),Dt),_defineProperty$1(_,"".concat(_e,"-focused"),nr),_defineProperty$1(_,"".concat(_e,"-rtl"),Kt==="rtl"),_)),style:rt,onMouseDown:Rt,onMouseUp:Lt,onMouseEnter:Ht,onMouseLeave:jt,onContextMenu:Qt,onClick:Fr},reactExports.createElement("div",{className:classNames("".concat(_e,"-input"),_defineProperty$1({},"".concat(_e,"-input-placeholder"),!!cn)),ref:rr},gs,ms,ss))))}var Picker=function(a){_inherits($,a);var _=_createSuper($);function $(){var _e;_classCallCheck(this,$);for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return _e=_.call.apply(_,[this].concat(tt)),_e.pickerRef=reactExports.createRef(),_e.focus=function(){_e.pickerRef.current&&_e.pickerRef.current.focus()},_e.blur=function(){_e.pickerRef.current&&_e.pickerRef.current.blur()},_e}return _createClass($,[{key:"render",value:function(){return reactExports.createElement(InnerPicker,_extends$1({},this.props,{pickerRef:this.pickerRef}))}}]),$}(reactExports.Component);function useRangeDisabled(a,_,$){var _e=a.picker,et=a.locale,tt=a.selectedValue,rt=a.disabledDate,nt=a.disabled,it=a.generateConfig,at=getValue(tt,0),st=getValue(tt,1);function ut(gt){return it.locale.getWeekFirstDate(et.locale,gt)}function ot(gt){var lt=it.getYear(gt),ft=it.getMonth(gt);return lt*100+ft}function pt(gt){var lt=it.getYear(gt),ft=getQuarter(it,gt);return lt*10+ft}var ht=reactExports.useCallback(function(gt){if(rt&&rt(gt))return!0;if(nt[1]&&st)return!isSameDate(it,gt,st)&&it.isAfter(gt,st);if(_&&st)switch(_e){case"quarter":return pt(gt)>pt(st);case"month":return ot(gt)>ot(st);case"week":return ut(gt)>ut(st);default:return!isSameDate(it,gt,st)&&it.isAfter(gt,st)}return!1},[rt,nt[1],st,_]),dt=reactExports.useCallback(function(gt){if(rt&&rt(gt))return!0;if(nt[0]&&at)return!isSameDate(it,gt,st)&&it.isAfter(at,gt);if($&&at)switch(_e){case"quarter":return pt(gt)<pt(at);case"month":return ot(gt)<ot(at);case"week":return ut(gt)<ut(at);default:return!isSameDate(it,gt,at)&&it.isAfter(at,gt)}return!1},[rt,nt[0],at,$]);return[ht,dt]}function getStartEndDistance(a,_,$,_e){var et=getClosingViewDate(a,$,_e,1);function tt(rt){return rt(a,_)?"same":rt(et,_)?"closing":"far"}switch($){case"year":return tt(function(rt,nt){return isSameDecade(_e,rt,nt)});case"quarter":case"month":return tt(function(rt,nt){return isSameYear(_e,rt,nt)});default:return tt(function(rt,nt){return isSameMonth(_e,rt,nt)})}}function getRangeViewDate(a,_,$,_e){var et=getValue(a,0),tt=getValue(a,1);if(_===0)return et;if(et&&tt){var rt=getStartEndDistance(et,tt,$,_e);switch(rt){case"same":return et;case"closing":return et;default:return getClosingViewDate(tt,$,_e,-1)}}return et}function useRangeViewDates(a){var _=a.values,$=a.picker,_e=a.defaultDates,et=a.generateConfig,tt=reactExports.useState(function(){return[getValue(_e,0),getValue(_e,1)]}),rt=_slicedToArray(tt,2),nt=rt[0],it=rt[1],at=reactExports.useState(null),st=_slicedToArray(at,2),ut=st[0],ot=st[1],pt=getValue(_,0),ht=getValue(_,1);function dt(lt){return nt[lt]?nt[lt]:getValue(ut,lt)||getRangeViewDate(_,lt,$,et)||pt||ht||et.getNow()}function gt(lt,ft){if(lt){var ct=updateValues(ut,lt,ft);it(updateValues(nt,null,ft)||[null,null]);var mt=(ft+1)%2;getValue(_,mt)||(ct=updateValues(ct,lt,mt)),ot(ct)}else(pt||ht)&&ot(null)}return[dt,gt]}function reorderValues(a,_){return a&&a[0]&&a[1]&&_.isAfter(a[0],a[1])?[a[1],a[0]]:a}function canValueTrigger(a,_,$,_e){return!!(a||_e&&_e[_]||$[(_+1)%2])}function InnerRangePicker(a){var _,$,_e,et=a.prefixCls,tt=et===void 0?"rc-picker":et,rt=a.id,nt=a.style,it=a.className,at=a.popupStyle,st=a.dropdownClassName,ut=a.transitionName,ot=a.dropdownAlign,pt=a.getPopupContainer,ht=a.generateConfig,dt=a.locale,gt=a.placeholder,lt=a.autoFocus,ft=a.disabled,ct=a.format,mt=a.picker,yt=mt===void 0?"date":mt,Et=a.showTime,St=a.use12Hours,At=a.separator,Mt=At===void 0?"~":At,Nt=a.value,kt=a.defaultValue,Pt=a.defaultPickerValue,Dt=a.open,Ot=a.defaultOpen,wt=a.disabledDate,_t=a.disabledTime,bt=a.dateRender,vt=a.panelRender,xt=a.ranges,Ct=a.allowEmpty,Tt=a.allowClear,It=a.suffixIcon,Rt=a.clearIcon,Lt=a.pickerRef,Ht=a.inputReadOnly,jt=a.mode,Qt=a.renderExtraFooter,$t=a.onChange,Bt=a.onOpenChange,Vt=a.onPanelChange,Kt=a.onCalendarChange,qt=a.onFocus,Yt=a.onBlur,Gt=a.onMouseDown,Xt=a.onMouseUp,er=a.onMouseEnter,dr=a.onMouseLeave,ir=a.onClick,rr=a.onOk,Ut=a.onKeyDown,zt=a.components,sr=a.order,lr=a.direction,vr=a.activePickerIndex,Wt=a.autoComplete,Zt=Wt===void 0?"off":Wt,mr=yt==="date"&&!!Et||yt==="time",yr=reactExports.useRef({}),Ar=reactExports.useRef(null),br=reactExports.useRef(null),Nr=reactExports.useRef(null),Mr=reactExports.useRef(null),kr=reactExports.useRef(null),Lr=reactExports.useRef(null),Wr=reactExports.useRef(null),Hr=reactExports.useRef(null),Tr=toArray$1(getDefaultFormat(ct,yt,Et,St)),Jr=useMergedState(0,{value:vr}),un=_slicedToArray(Jr,2),cr=un[0],Br=un[1],Ir=reactExports.useRef(null),Rr=reactExports.useMemo(function(){return Array.isArray(ft)?ft:[ft||!1,ft||!1]},[ft]),Qr=useMergedState(null,{value:Nt,defaultValue:kt,postState:function(Jt){return yt==="time"&&!sr?Jt:reorderValues(Jt,ht)}}),Bn=_slicedToArray(Qr,2),Fr=Bn[0],Un=Bn[1],kn=useRangeViewDates({values:Fr,picker:yt,defaultDates:Pt,generateConfig:ht}),vn=_slicedToArray(kn,2),Or=vn[0],nr=vn[1],pr=useMergedState(Fr,{postState:function(Jt){var or=Jt;if(Rr[0]&&Rr[1])return or;for(var Er=0;Er<2;Er+=1)Rr[Er]&&!or&&!getValue(or,Er)&&!getValue(Ct,Er)&&(or=updateValues(or,ht.getNow(),Er));return or}}),Dr=_slicedToArray(pr,2),wr=Dr[0],cn=Dr[1],bs=useMergedState([yt,yt],{value:jt}),as=_slicedToArray(bs,2),Rn=as[0],Gn=as[1];reactExports.useEffect(function(){Gn([yt,yt])},[yt]);var Cs=function(Jt,or){Gn(Jt),Vt&&Vt(or,Jt)},ms=useRangeDisabled({picker:yt,selectedValue:wr,locale:dt,disabled:Rr,disabledDate:wt,generateConfig:ht},yr.current[1],yr.current[0]),ss=_slicedToArray(ms,2),os=ss[0],gs=ss[1],Ts=useMergedState(!1,{value:Dt,defaultValue:Ot,postState:function(Jt){return Rr[cr]?!1:Jt},onChange:function(Jt){Bt&&Bt(Jt),!Jt&&Ir.current&&Ir.current.onClose&&Ir.current.onClose()}}),vs=_slicedToArray(Ts,2),Sr=vs[0],hr=vs[1],Ur=Sr&&cr===0,rn=Sr&&cr===1,Go=reactExports.useState(0),Xs=_slicedToArray(Go,2),zo=Xs[0],Wo=Xs[1];reactExports.useEffect(function(){!Sr&&Ar.current&&Wo(Ar.current.offsetWidth)},[Sr]);var Js=reactExports.useRef();function Kn(gr,Jt){if(gr)clearTimeout(Js.current),yr.current[Jt]=!0,Br(Jt),hr(gr),Sr||nr(null,Jt);else if(cr===Jt){hr(gr);var or=yr.current;Js.current=setTimeout(function(){or===yr.current&&(yr.current={})})}}function ws(gr){Kn(!0,gr),setTimeout(function(){var Jt=[Lr,Wr][gr];Jt.current&&Jt.current.focus()},0)}function ls(gr,Jt){var or=gr,Er=getValue(or,0),$r=getValue(or,1);Er&&$r&&ht.isAfter(Er,$r)&&(yt==="week"&&!isSameWeek(ht,dt.locale,Er,$r)||yt==="quarter"&&!isSameQuarter(ht,Er,$r)||yt!=="week"&&yt!=="quarter"&&yt!=="time"&&!isSameDate(ht,Er,$r)?(Jt===0?(or=[Er,null],$r=null):(Er=null,or=[null,$r]),yr.current=_defineProperty$1({},Jt,!0)):(yt!=="time"||sr!==!1)&&(or=reorderValues(or,ht))),cn(or);var Mn=or&&or[0]?formatValue(or[0],{generateConfig:ht,locale:dt,format:Tr[0]}):"",dn=or&&or[1]?formatValue(or[1],{generateConfig:ht,locale:dt,format:Tr[0]}):"";if(Kt){var Zr={range:Jt===0?"start":"end"};Kt(or,[Mn,dn],Zr)}var nn=canValueTrigger(Er,0,Rr,Ct),fn=canValueTrigger($r,1,Rr,Ct),us=or===null||nn&&fn;us&&(Un(or),$t&&(!isEqual(ht,getValue(Fr,0),Er)||!isEqual(ht,getValue(Fr,1),$r))&&$t(or,[Mn,dn]));var qr=null;Jt===0&&!Rr[1]?qr=1:Jt===1&&!Rr[0]&&(qr=0),qr!==null&&qr!==cr&&(!yr.current[qr]||!getValue(or,qr))&&getValue(or,Jt)?ws(qr):Kn(!1,Jt)}var Yo=function(Jt){return Sr&&Ir.current&&Ir.current.onKeyDown?Ir.current.onKeyDown(Jt):(warningOnce(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Zs={formatList:Tr,generateConfig:ht,locale:dt},Ko=useValueTexts(getValue(wr,0),Zs),eo=_slicedToArray(Ko,2),ys=eo[0],qo=eo[1],Qo=useValueTexts(getValue(wr,1),Zs),to=_slicedToArray(Qo,2),xs=to[0],Xo=to[1],ro=function(Jt,or){var Er=parseValue(Jt,{locale:dt,formatList:Tr,generateConfig:ht}),$r=or===0?os:gs;Er&&!$r(Er)&&(cn(updateValues(wr,Er,or)),nr(Er,or))},Jo=useTextValueMapping({valueTexts:ys,onTextChange:function(Jt){return ro(Jt,0)}}),Ps=_slicedToArray(Jo,3),Es=Ps[0],no=Ps[1],io=Ps[2],Zo=useTextValueMapping({valueTexts:xs,onTextChange:function(Jt){return ro(Jt,1)}}),Rs=_slicedToArray(Zo,3),_s=Rs[0],ao=Rs[1],so=Rs[2],yl=reactExports.useState(null),oo=_slicedToArray(yl,2),xl=oo[0],lo=oo[1],El=reactExports.useState(null),uo=_slicedToArray(El,2),Qn=uo[0],co=uo[1],_l=useHoverValue(Es,{formatList:Tr,generateConfig:ht,locale:dt}),Ms=_slicedToArray(_l,3),fo=Ms[0],Sl=Ms[1],Ns=Ms[2],Al=useHoverValue(_s,{formatList:Tr,generateConfig:ht,locale:dt}),Ls=_slicedToArray(Al,3),ho=Ls[0],Cl=Ls[1],Fs=Ls[2],Tl=function(Jt){co(updateValues(wr,Jt,cr)),cr===0?Sl(Jt):Cl(Jt)},Pl=function(){co(updateValues(wr,null,cr)),cr===0?Ns():Fs()},po=function(Jt,or){return{blurToCancel:mr,forwardKeyDown:Yo,onBlur:Yt,isClickOutside:function($r){return!elementsContains([br.current,Nr.current,Mr.current,Ar.current],$r)},onFocus:function($r){Br(Jt),qt&&qt($r)},triggerOpen:function($r){Kn($r,Jt)},onSubmit:function(){if(!wr||wt&&wt(wr[Jt]))return!1;ls(wr,Jt),or()},onCancel:function(){Kn(!1,Jt),cn(Fr),or()}}},mo=reactExports.useRef(""),Rl=usePickerInput(_objectSpread2$1(_objectSpread2$1({},po(0,io)),{},{open:Ur,value:Es,currentFocusedKey:mo,key:"start",onKeyDown:function(Jt,or){Ut==null||Ut(Jt,or)}})),go=_slicedToArray(Rl,2),Ml=go[0],vo=go[1],yo=vo.focused,Eo=vo.typing,Ol=usePickerInput(_objectSpread2$1(_objectSpread2$1({},po(1,so)),{},{open:rn,value:_s,currentFocusedKey:mo,key:"end",onKeyDown:function(Jt,or){Ut==null||Ut(Jt,or)}})),_o=_slicedToArray(Ol,2),Nl=_o[0],Ao=_o[1],Co=Ao.focused,To=Ao.typing,Il=function(Jt){ir&&ir(Jt),!Sr&&!Lr.current.contains(Jt.target)&&!Wr.current.contains(Jt.target)&&(Rr[0]?Rr[1]||ws(1):ws(0))},Dl=function(Jt){Gt&&Gt(Jt),Sr&&(yo||Co)&&!Lr.current.contains(Jt.target)&&!Wr.current.contains(Jt.target)&&Jt.preventDefault()},Ll=Fr&&Fr[0]?formatValue(Fr[0],{locale:dt,format:"YYYYMMDDHHmmss",generateConfig:ht}):"",Fl=Fr&&Fr[1]?formatValue(Fr[1],{locale:dt,format:"YYYYMMDDHHmmss",generateConfig:ht}):"";reactExports.useEffect(function(){Sr||(cn(Fr),!ys.length||ys[0]===""?no(""):qo!==Es&&io(),!xs.length||xs[0]===""?ao(""):Xo!==_s&&so())},[Sr,ys,xs]),reactExports.useEffect(function(){cn(Fr)},[Ll,Fl]),Lt&&(Lt.current={focus:function(){Lr.current&&Lr.current.focus()},blur:function(){Lr.current&&Lr.current.blur(),Wr.current&&Wr.current.blur()}});var $l=Object.keys(xt||{}),Hl=$l.map(function(gr){var Jt=xt[gr],or=typeof Jt=="function"?Jt():Jt;return{label:gr,onClick:function(){ls(or,null),Kn(!1,cr)},onMouseEnter:function(){lo(or)},onMouseLeave:function(){lo(null)}}});function js(){var gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},or=null;Sr&&Qn&&Qn[0]&&Qn[1]&&ht.isAfter(Qn[1],Qn[0])&&(or=Qn);var Er=Et;if(Et&&_typeof$1(Et)==="object"&&Et.defaultValue){var $r=Et.defaultValue;Er=_objectSpread2$1(_objectSpread2$1({},Et),{},{defaultValue:getValue($r,cr)||void 0})}var Mn=null;return bt&&(Mn=function(Zr,nn){return bt(Zr,nn,{range:cr?"end":"start"})}),reactExports.createElement(RangeContext.Provider,{value:{inRange:!0,panelPosition:gr,rangedValue:xl||wr,hoverRangedValue:or}},reactExports.createElement(PickerPanel,_extends$1({},a,Jt,{dateRender:Mn,showTime:Er,mode:Rn[cr],generateConfig:ht,style:void 0,direction:lr,disabledDate:cr===0?os:gs,disabledTime:function(Zr){return _t?_t(Zr,cr===0?"start":"end"):!1},className:classNames(_defineProperty$1({},"".concat(tt,"-panel-focused"),cr===0?!Eo:!To)),value:getValue(wr,cr),locale:dt,tabIndex:-1,onPanelChange:function(Zr,nn){cr===0&&Ns(!0),cr===1&&Fs(!0),Cs(updateValues(Rn,nn,cr),updateValues(wr,Zr,cr));var fn=Zr;gr==="right"&&Rn[cr]===nn&&(fn=getClosingViewDate(fn,nn,ht,-1)),nr(fn,cr)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:cr===0?getValue(wr,1):getValue(wr,0)})))}var yn=0,wo=0;if(cr&&Nr.current&&kr.current&&br.current){yn=Nr.current.offsetWidth+kr.current.offsetWidth;var Vl=Hr.current.offsetLeft>yn?Hr.current.offsetLeft-yn:Hr.current.offsetLeft;br.current.offsetWidth&&Hr.current.offsetWidth&&yn>br.current.offsetWidth-Hr.current.offsetWidth-(lr==="rtl"?0:Vl)&&(wo=yn)}var Bl=lr==="rtl"?{right:yn}:{left:yn};function Ul(){var gr,Jt=getExtraFooter(tt,Rn[cr],Qt),or=getRanges({prefixCls:tt,components:zt,needConfirmButton:mr,okDisabled:!getValue(wr,cr)||wt&&wt(wr[cr]),locale:dt,rangeList:Hl,onOk:function(){getValue(wr,cr)&&(ls(wr,cr),rr&&rr(wr))}});if(yt!=="time"&&!Et){var Er=Or(cr),$r=getClosingViewDate(Er,yt,ht),Mn=Rn[cr],dn=Mn===yt,Zr=js(dn?"left":!1,{pickerValue:Er,onPickerValueChange:function(qr){nr(qr,cr)}}),nn=js("right",{pickerValue:$r,onPickerValueChange:function(qr){nr(getClosingViewDate(qr,yt,ht,-1),cr)}});lr==="rtl"?gr=reactExports.createElement(reactExports.Fragment,null,nn,dn&&Zr):gr=reactExports.createElement(reactExports.Fragment,null,Zr,dn&&nn)}else gr=js();var fn=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",{className:"".concat(tt,"-panels")},gr),(Jt||or)&&reactExports.createElement("div",{className:"".concat(tt,"-footer")},Jt,or));return vt&&(fn=vt(fn)),reactExports.createElement("div",{className:"".concat(tt,"-panel-container"),style:{marginLeft:wo},ref:br,onMouseDown:function(qr){qr.preventDefault()}},fn)}var Gl=reactExports.createElement("div",{className:classNames("".concat(tt,"-range-wrapper"),"".concat(tt,"-").concat(yt,"-range-wrapper")),style:{minWidth:zo}},reactExports.createElement("div",{ref:Hr,className:"".concat(tt,"-range-arrow"),style:Bl}),Ul()),Po;It&&(Po=reactExports.createElement("span",{className:"".concat(tt,"-suffix")},It));var ko;Tt&&(getValue(Fr,0)&&!Rr[0]||getValue(Fr,1)&&!Rr[1])&&(ko=reactExports.createElement("span",{onMouseDown:function(Jt){Jt.preventDefault(),Jt.stopPropagation()},onMouseUp:function(Jt){Jt.preventDefault(),Jt.stopPropagation();var or=Fr;Rr[0]||(or=updateValues(or,null,0)),Rr[1]||(or=updateValues(or,null,1)),ls(or,null),Kn(!1,cr)},className:"".concat(tt,"-clear")},Rt||reactExports.createElement("span",{className:"".concat(tt,"-clear-btn")})));var Mo={size:getInputSize(yt,Tr[0],ht)},$s=0,Vs=0;Nr.current&&Mr.current&&kr.current&&(cr===0?Vs=Nr.current.offsetWidth:($s=yn,Vs=Mr.current.offsetWidth));var zl=lr==="rtl"?{right:$s}:{left:$s},Wl=function(Jt,or){var Er=updateValues(wr,Jt,cr);or==="submit"||or!=="key"&&!mr?(ls(Er,cr),cr===0?Ns():Fs()):cn(Er)};return reactExports.createElement(PanelContext.Provider,{value:{operationRef:Ir,hideHeader:yt==="time",onDateMouseEnter:Tl,onDateMouseLeave:Pl,hideRanges:!0,onSelect:Wl,open:Sr}},reactExports.createElement(PickerTrigger,{visible:Sr,popupElement:Gl,popupStyle:at,prefixCls:tt,dropdownClassName:st,dropdownAlign:ot,getPopupContainer:pt,transitionName:ut,range:!0,direction:lr},reactExports.createElement("div",_extends$1({ref:Ar,className:classNames(tt,"".concat(tt,"-range"),it,(_={},_defineProperty$1(_,"".concat(tt,"-disabled"),Rr[0]&&Rr[1]),_defineProperty$1(_,"".concat(tt,"-focused"),cr===0?yo:Co),_defineProperty$1(_,"".concat(tt,"-rtl"),lr==="rtl"),_)),style:nt,onClick:Il,onMouseEnter:er,onMouseLeave:dr,onMouseDown:Dl,onMouseUp:Xt},getDataOrAriaProps(a)),reactExports.createElement("div",{className:classNames("".concat(tt,"-input"),($={},_defineProperty$1($,"".concat(tt,"-input-active"),cr===0),_defineProperty$1($,"".concat(tt,"-input-placeholder"),!!fo),$)),ref:Nr},reactExports.createElement("input",_extends$1({id:rt,disabled:Rr[0],readOnly:Ht||typeof Tr[0]=="function"||!Eo,value:fo||Es,onChange:function(Jt){no(Jt.target.value)},autoFocus:lt,placeholder:getValue(gt,0)||"",ref:Lr},Ml,Mo,{autoComplete:Zt}))),reactExports.createElement("div",{className:"".concat(tt,"-range-separator"),ref:kr},Mt),reactExports.createElement("div",{className:classNames("".concat(tt,"-input"),(_e={},_defineProperty$1(_e,"".concat(tt,"-input-active"),cr===1),_defineProperty$1(_e,"".concat(tt,"-input-placeholder"),!!ho),_e)),ref:Mr},reactExports.createElement("input",_extends$1({disabled:Rr[1],readOnly:Ht||typeof Tr[0]=="function"||!To,value:ho||_s,onChange:function(Jt){ao(Jt.target.value)},placeholder:getValue(gt,1)||"",ref:Wr},Nl,Mo,{autoComplete:Zt}))),reactExports.createElement("div",{className:"".concat(tt,"-active-bar"),style:_objectSpread2$1(_objectSpread2$1({},zl),{},{width:Vs,position:"absolute"})}),Po,ko)))}var RangePicker=function(a){_inherits($,a);var _=_createSuper($);function $(){var _e;_classCallCheck(this,$);for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return _e=_.call.apply(_,[this].concat(tt)),_e.pickerRef=reactExports.createRef(),_e.focus=function(){_e.pickerRef.current&&_e.pickerRef.current.focus()},_e.blur=function(){_e.pickerRef.current&&_e.pickerRef.current.blur()},_e}return _createClass($,[{key:"render",value:function(){return reactExports.createElement(InnerRangePicker,_extends$1({},this.props,{pickerRef:this.pickerRef}))}}]),$}(reactExports.Component);function PickerButton(a){return reactExports.createElement(Button,_extends$1({size:"small",type:"primary"},a))}var __rest$3=function(a,_){var $={};for(var _e in a)Object.prototype.hasOwnProperty.call(a,_e)&&_.indexOf(_e)<0&&($[_e]=a[_e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,_e=Object.getOwnPropertySymbols(a);et<_e.length;et++)_.indexOf(_e[et])<0&&Object.prototype.propertyIsEnumerable.call(a,_e[et])&&($[_e[et]]=a[_e[et]]);return $},CheckableTag=function a(_){var $,_e=_.prefixCls,et=_.className,tt=_.checked,rt=_.onChange,nt=_.onClick,it=__rest$3(_,["prefixCls","className","checked","onChange","onClick"]),at=reactExports.useContext(ConfigContext),st=at.getPrefixCls,ut=function(dt){rt==null||rt(!tt),nt==null||nt(dt)},ot=st("tag",_e),pt=classNames(ot,($={},_defineProperty$1($,"".concat(ot,"-checkable"),!0),_defineProperty$1($,"".concat(ot,"-checkable-checked"),tt),$),et);return reactExports.createElement("span",_extends$1({},it,{className:pt,onClick:ut}))},__rest$2=function(a,_){var $={};for(var _e in a)Object.prototype.hasOwnProperty.call(a,_e)&&_.indexOf(_e)<0&&($[_e]=a[_e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,_e=Object.getOwnPropertySymbols(a);et<_e.length;et++)_.indexOf(_e[et])<0&&Object.prototype.propertyIsEnumerable.call(a,_e[et])&&($[_e[et]]=a[_e[et]]);return $},PresetColorRegex=new RegExp("^(".concat(PresetColorTypes.join("|"),")(-inverse)?$")),PresetStatusColorRegex=new RegExp("^(".concat(PresetStatusColorTypes.join("|"),")$")),InternalTag=function a(_,$){var _e,et=_.prefixCls,tt=_.className,rt=_.style,nt=_.children,it=_.icon,at=_.color,st=_.onClose,ut=_.closeIcon,ot=_.closable,pt=ot===void 0?!1:ot,ht=__rest$2(_,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),dt=reactExports.useContext(ConfigContext),gt=dt.getPrefixCls,lt=dt.direction,ft=reactExports.useState(!0),ct=_slicedToArray(ft,2),mt=ct[0],yt=ct[1];reactExports.useEffect(function(){"visible"in ht&&yt(ht.visible)},[ht.visible]);var Et=function(){return at?PresetColorRegex.test(at)||PresetStatusColorRegex.test(at):!1},St=_extends$1({backgroundColor:at&&!Et()?at:void 0},rt),At=Et(),Mt=gt("tag",et),Nt=classNames(Mt,(_e={},_defineProperty$1(_e,"".concat(Mt,"-").concat(at),At),_defineProperty$1(_e,"".concat(Mt,"-has-color"),at&&!At),_defineProperty$1(_e,"".concat(Mt,"-hidden"),!mt),_defineProperty$1(_e,"".concat(Mt,"-rtl"),lt==="rtl"),_e),tt),kt=function(xt){xt.stopPropagation(),st==null||st(xt),!xt.defaultPrevented&&("visible"in ht||yt(!1))},Pt=function(){return pt?ut?reactExports.createElement("span",{className:"".concat(Mt,"-close-icon"),onClick:kt},ut):reactExports.createElement(RefIcon$3,{className:"".concat(Mt,"-close-icon"),onClick:kt}):null},Dt="onClick"in ht||nt&&nt.type==="a",Ot=omit(ht,["visible"]),wt=it||null,_t=wt?reactExports.createElement(reactExports.Fragment,null,wt,reactExports.createElement("span",null,nt)):nt,bt=reactExports.createElement("span",_extends$1({},Ot,{ref:$,className:Nt,style:St}),_t,Pt());return Dt?reactExports.createElement(Wave,null,bt):bt},Tag=reactExports.forwardRef(InternalTag);Tag.CheckableTag=CheckableTag;function PickerTag(a){return reactExports.createElement(Tag,_extends$1({color:"blue"},a))}var CalendarOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},CalendarOutlined=function a(_,$){return reactExports.createElement(Icon,_objectSpread2$1(_objectSpread2$1({},_),{},{ref:$,icon:CalendarOutlined$1}))},RefIcon$2=reactExports.forwardRef(CalendarOutlined),ClockCircleOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},ClockCircleOutlined=function a(_,$){return reactExports.createElement(Icon,_objectSpread2$1(_objectSpread2$1({},_),{},{ref:$,icon:ClockCircleOutlined$1}))},RefIcon$1=reactExports.forwardRef(ClockCircleOutlined),SwapRightOutlined$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},SwapRightOutlined=function a(_,$){return reactExports.createElement(Icon,_objectSpread2$1(_objectSpread2$1({},_),{},{ref:$,icon:SwapRightOutlined$1}))},RefIcon=reactExports.forwardRef(SwapRightOutlined);function getPlaceholder(a,_,$){return $!==void 0?$:a==="year"&&_.lang.yearPlaceholder?_.lang.yearPlaceholder:a==="quarter"&&_.lang.quarterPlaceholder?_.lang.quarterPlaceholder:a==="month"&&_.lang.monthPlaceholder?_.lang.monthPlaceholder:a==="week"&&_.lang.weekPlaceholder?_.lang.weekPlaceholder:a==="time"&&_.timePickerLocale.placeholder?_.timePickerLocale.placeholder:_.lang.placeholder}function getRangePlaceholder(a,_,$){return $!==void 0?$:a==="year"&&_.lang.yearPlaceholder?_.lang.rangeYearPlaceholder:a==="quarter"&&_.lang.quarterPlaceholder?_.lang.rangeQuarterPlaceholder:a==="month"&&_.lang.monthPlaceholder?_.lang.rangeMonthPlaceholder:a==="week"&&_.lang.weekPlaceholder?_.lang.rangeWeekPlaceholder:a==="time"&&_.timePickerLocale.placeholder?_.timePickerLocale.rangePlaceholder:_.lang.rangePlaceholder}function transPlacement2DropdownAlign(a,_){var $={adjustX:1,adjustY:1};switch(_){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:$};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:$};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:$};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:$};default:return{points:a==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:$}}}var __rest$1=function(a,_){var $={};for(var _e in a)Object.prototype.hasOwnProperty.call(a,_e)&&_.indexOf(_e)<0&&($[_e]=a[_e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,_e=Object.getOwnPropertySymbols(a);et<_e.length;et++)_.indexOf(_e[et])<0&&Object.prototype.propertyIsEnumerable.call(a,_e[et])&&($[_e[et]]=a[_e[et]]);return $};function generateRangePicker(a){var _=reactExports.forwardRef(function($,_e){var et=$.prefixCls,tt=$.getPopupContainer,rt=$.className,nt=$.placement,it=$.size,at=$.disabled,st=$.bordered,ut=st===void 0?!0:st,ot=$.placeholder,pt=$.popupClassName,ht=$.dropdownClassName,dt=$.status,gt=__rest$1($,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status"]),lt=reactExports.useRef(null),ft=reactExports.useContext(ConfigContext),ct=ft.getPrefixCls,mt=ft.direction,yt=ft.getPopupContainer,Et=ct("picker",et),St=useCompactItemContext(Et,mt),At=St.compactSize,Mt=St.compactItemClassnames,Nt=$.format,kt=$.showTime,Pt=$.picker,Dt=ct(),Ot={};Ot=_extends$1(_extends$1(_extends$1({},Ot),kt?getTimeProps(_extends$1({format:Nt,picker:Pt},kt)):{}),Pt==="time"?getTimeProps(_extends$1(_extends$1({format:Nt},$),{picker:Pt})):{});var wt=reactExports.useContext(SizeContext),_t=At||it||wt,bt=reactExports.useContext(DisabledContext),vt=at??bt,xt=reactExports.useContext(FormItemInputContext),Ct=xt.hasFeedback,Tt=xt.status,It=xt.feedbackIcon,Rt=reactExports.createElement(reactExports.Fragment,null,Pt==="time"?reactExports.createElement(RefIcon$1,null):reactExports.createElement(RefIcon$2,null),Ct&&It);return reactExports.useImperativeHandle(_e,function(){return{focus:function(){var Ht;return(Ht=lt.current)===null||Ht===void 0?void 0:Ht.focus()},blur:function(){var Ht;return(Ht=lt.current)===null||Ht===void 0?void 0:Ht.blur()}}}),reactExports.createElement(LocaleReceiver,{componentName:"DatePicker",defaultLocale:locale},function(Lt){var Ht,jt=_extends$1(_extends$1({},Lt),$.locale);return reactExports.createElement(RangePicker,_extends$1({separator:reactExports.createElement("span",{"aria-label":"to",className:"".concat(Et,"-separator")},reactExports.createElement(RefIcon,null)),disabled:vt,ref:lt,dropdownAlign:transPlacement2DropdownAlign(mt,nt),placeholder:getRangePlaceholder(Pt,jt,ot),suffixIcon:Rt,clearIcon:reactExports.createElement(RefIcon$5,null),prevIcon:reactExports.createElement("span",{className:"".concat(Et,"-prev-icon")}),nextIcon:reactExports.createElement("span",{className:"".concat(Et,"-next-icon")}),superPrevIcon:reactExports.createElement("span",{className:"".concat(Et,"-super-prev-icon")}),superNextIcon:reactExports.createElement("span",{className:"".concat(Et,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(Dt,"-slide-up")},gt,Ot,{className:classNames((Ht={},_defineProperty$1(Ht,"".concat(Et,"-").concat(_t),_t),_defineProperty$1(Ht,"".concat(Et,"-borderless"),!ut),Ht),getStatusClassNames(Et,getMergedStatus(Tt,dt),Ct),Mt,rt),locale:jt.lang,prefixCls:Et,getPopupContainer:tt||yt,generateConfig:a,components:Components,direction:mt,dropdownClassName:pt||ht}))})});return _}var __rest=function(a,_){var $={};for(var _e in a)Object.prototype.hasOwnProperty.call(a,_e)&&_.indexOf(_e)<0&&($[_e]=a[_e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,_e=Object.getOwnPropertySymbols(a);et<_e.length;et++)_.indexOf(_e[et])<0&&Object.prototype.propertyIsEnumerable.call(a,_e[et])&&($[_e[et]]=a[_e[et]]);return $};function generatePicker$1(a){function _(it,at){var st=reactExports.forwardRef(function(ut,ot){var pt=ut.prefixCls,ht=ut.getPopupContainer,dt=ut.className,gt=ut.size,lt=ut.bordered,ft=lt===void 0?!0:lt,ct=ut.placement,mt=ut.placeholder,yt=ut.popupClassName,Et=ut.dropdownClassName,St=ut.disabled,At=ut.status,Mt=__rest(ut,["prefixCls","getPopupContainer","className","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status"]),Nt=reactExports.useContext(ConfigContext),kt=Nt.getPrefixCls,Pt=Nt.direction,Dt=Nt.getPopupContainer,Ot=kt("picker",pt),wt=useCompactItemContext(Ot,Pt),_t=wt.compactSize,bt=wt.compactItemClassnames,vt=reactExports.useRef(null),xt=ut.format,Ct=ut.showTime;reactExports.useImperativeHandle(ot,function(){return{focus:function(){var Xt;return(Xt=vt.current)===null||Xt===void 0?void 0:Xt.focus()},blur:function(){var Xt;return(Xt=vt.current)===null||Xt===void 0?void 0:Xt.blur()}}});var Tt={showToday:!0},It={};it&&(It.picker=it);var Rt=it||ut.picker;It=_extends$1(_extends$1(_extends$1({},It),Ct?getTimeProps(_extends$1({format:xt,picker:Rt},Ct)):{}),Rt==="time"?getTimeProps(_extends$1(_extends$1({format:xt},ut),{picker:Rt})):{});var Lt=kt(),Ht=reactExports.useContext(SizeContext),jt=_t||gt||Ht,Qt=reactExports.useContext(DisabledContext),$t=St??Qt,Bt=reactExports.useContext(FormItemInputContext),Vt=Bt.hasFeedback,Kt=Bt.status,qt=Bt.feedbackIcon,Yt=reactExports.createElement(reactExports.Fragment,null,Rt==="time"?reactExports.createElement(RefIcon$1,null):reactExports.createElement(RefIcon$2,null),Vt&&qt);return reactExports.createElement(LocaleReceiver,{componentName:"DatePicker",defaultLocale:locale},function(Gt){var Xt,er=_extends$1(_extends$1({},Gt),ut.locale);return reactExports.createElement(Picker,_extends$1({ref:vt,placeholder:getPlaceholder(Rt,er,mt),suffixIcon:Yt,dropdownAlign:transPlacement2DropdownAlign(Pt,ct),clearIcon:reactExports.createElement(RefIcon$5,null),prevIcon:reactExports.createElement("span",{className:"".concat(Ot,"-prev-icon")}),nextIcon:reactExports.createElement("span",{className:"".concat(Ot,"-next-icon")}),superPrevIcon:reactExports.createElement("span",{className:"".concat(Ot,"-super-prev-icon")}),superNextIcon:reactExports.createElement("span",{className:"".concat(Ot,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(Lt,"-slide-up")},Tt,Mt,It,{locale:er.lang,className:classNames((Xt={},_defineProperty$1(Xt,"".concat(Ot,"-").concat(jt),jt),_defineProperty$1(Xt,"".concat(Ot,"-borderless"),!ft),Xt),getStatusClassNames(Ot,getMergedStatus(Kt,At),Vt),bt,dt),prefixCls:Ot,getPopupContainer:ht||Dt,generateConfig:a,components:Components,direction:Pt,disabled:$t,dropdownClassName:yt||Et}))})});return at&&(st.displayName=at),st}var $=_(),_e=_("week","WeekPicker"),et=_("month","MonthPicker"),tt=_("year","YearPicker"),rt=_("time","TimePicker"),nt=_("quarter","QuarterPicker");return{DatePicker:$,WeekPicker:_e,MonthPicker:et,YearPicker:tt,TimePicker:rt,QuarterPicker:nt}}var Components={button:PickerButton,rangeItem:PickerTag};function toArray(a){return a?Array.isArray(a)?a:[a]:[]}function getTimeProps(a){var _=a.format,$=a.picker,_e=a.showHour,et=a.showMinute,tt=a.showSecond,rt=a.use12Hours,nt=toArray(_)[0],it=_extends$1({},a);return nt&&typeof nt=="string"&&(!nt.includes("s")&&tt===void 0&&(it.showSecond=!1),!nt.includes("m")&&et===void 0&&(it.showMinute=!1),!nt.includes("H")&&!nt.includes("h")&&_e===void 0&&(it.showHour=!1),(nt.includes("a")||nt.includes("A"))&&rt===void 0&&(it.use12Hours=!0)),$==="time"?it:(typeof nt=="function"&&delete it.format,{showTime:it})}tuple$1("bottomLeft","bottomRight","topLeft","topRight");function generatePicker(a){var _=generatePicker$1(a),$=_.DatePicker,_e=_.WeekPicker,et=_.MonthPicker,tt=_.YearPicker,rt=_.TimePicker,nt=_.QuarterPicker,it=generateRangePicker(a),at=$;return at.WeekPicker=_e,at.MonthPicker=et,at.YearPicker=tt,at.RangePicker=it,at.TimePicker=rt,at.QuarterPicker=nt,at}var dayjs={},interopRequireDefault={exports:{}};(function(a){function _($){return $&&$.__esModule?$:{default:$}}a.exports=_,a.exports.__esModule=!0,a.exports.default=a.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,warning={},hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning;hasRequiredWarning=1,Object.defineProperty(warning,"__esModule",{value:!0}),warning.call=tt,warning.default=void 0,warning.note=_e,warning.noteOnce=nt,warning.preMessage=void 0,warning.resetWarned=et,warning.warning=$,warning.warningOnce=rt;var a={},_=warning.preMessage=function(at){};function $(it,at){}function _e(it,at){}function et(){a={}}function tt(it,at,st){!at&&!a[st]&&(it(!1,st),a[st]=!0)}function rt(it,at){tt($,it,at)}function nt(it,at){tt(_e,it,at)}return rt.preMessage=_,rt.resetWarned=et,rt.noteOnce=nt,warning.default=rt,warning}var weekday={exports:{}},hasRequiredWeekday;function requireWeekday(){return hasRequiredWeekday||(hasRequiredWeekday=1,function(a,_){(function($,_e){a.exports=_e()})(commonjsGlobal,function(){return function($,_e){_e.prototype.weekday=function(et){var tt=this.$locale().weekStart||0,rt=this.$W,nt=(rt<tt?rt+7:rt)-tt;return this.$utils().u(et)?nt:this.subtract(nt,"day").add(et,"day")}}})}(weekday)),weekday.exports}var localeData={exports:{}},hasRequiredLocaleData;function requireLocaleData(){return hasRequiredLocaleData||(hasRequiredLocaleData=1,function(a,_){(function($,_e){a.exports=_e()})(commonjsGlobal,function(){return function($,_e,et){var tt=_e.prototype,rt=function(ut){return ut&&(ut.indexOf?ut:ut.s)},nt=function(ut,ot,pt,ht,dt){var gt=ut.name?ut:ut.$locale(),lt=rt(gt[ot]),ft=rt(gt[pt]),ct=lt||ft.map(function(yt){return yt.slice(0,ht)});if(!dt)return ct;var mt=gt.weekStart;return ct.map(function(yt,Et){return ct[(Et+(mt||0))%7]})},it=function(){return et.Ls[et.locale()]},at=function(ut,ot){return ut.formats[ot]||function(pt){return pt.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ht,dt,gt){return dt||gt.slice(1)})}(ut.formats[ot.toUpperCase()])},st=function(){var ut=this;return{months:function(ot){return ot?ot.format("MMMM"):nt(ut,"months")},monthsShort:function(ot){return ot?ot.format("MMM"):nt(ut,"monthsShort","months",3)},firstDayOfWeek:function(){return ut.$locale().weekStart||0},weekdays:function(ot){return ot?ot.format("dddd"):nt(ut,"weekdays")},weekdaysMin:function(ot){return ot?ot.format("dd"):nt(ut,"weekdaysMin","weekdays",2)},weekdaysShort:function(ot){return ot?ot.format("ddd"):nt(ut,"weekdaysShort","weekdays",3)},longDateFormat:function(ot){return at(ut.$locale(),ot)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};tt.localeData=function(){return st.bind(this)()},et.localeData=function(){var ut=it();return{firstDayOfWeek:function(){return ut.weekStart||0},weekdays:function(){return et.weekdays()},weekdaysShort:function(){return et.weekdaysShort()},weekdaysMin:function(){return et.weekdaysMin()},months:function(){return et.months()},monthsShort:function(){return et.monthsShort()},longDateFormat:function(ot){return at(ut,ot)},meridiem:ut.meridiem,ordinal:ut.ordinal}},et.months=function(){return nt(it(),"months")},et.monthsShort=function(){return nt(it(),"monthsShort","months",3)},et.weekdays=function(ut){return nt(it(),"weekdays",null,null,ut)},et.weekdaysShort=function(ut){return nt(it(),"weekdaysShort","weekdays",3,ut)},et.weekdaysMin=function(ut){return nt(it(),"weekdaysMin","weekdays",2,ut)}}})}(localeData)),localeData.exports}var weekOfYear={exports:{}},hasRequiredWeekOfYear;function requireWeekOfYear(){return hasRequiredWeekOfYear||(hasRequiredWeekOfYear=1,function(a,_){(function($,_e){a.exports=_e()})(commonjsGlobal,function(){var $="week",_e="year";return function(et,tt,rt){var nt=tt.prototype;nt.week=function(it){if(it===void 0&&(it=null),it!==null)return this.add(7*(it-this.week()),"day");var at=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var st=rt(this).startOf(_e).add(1,_e).date(at),ut=rt(this).endOf($);if(st.isBefore(ut))return 1}var ot=rt(this).startOf(_e).date(at).startOf($).subtract(1,"millisecond"),pt=this.diff(ot,$,!0);return pt<0?rt(this).startOf("week").week():Math.ceil(pt)},nt.weeks=function(it){return it===void 0&&(it=null),this.week(it)}}})}(weekOfYear)),weekOfYear.exports}var weekYear={exports:{}},hasRequiredWeekYear;function requireWeekYear(){return hasRequiredWeekYear||(hasRequiredWeekYear=1,function(a,_){(function($,_e){a.exports=_e()})(commonjsGlobal,function(){return function($,_e){_e.prototype.weekYear=function(){var et=this.month(),tt=this.week(),rt=this.year();return tt===1&&et===11?rt+1:et===0&&tt>=52?rt-1:rt}}})}(weekYear)),weekYear.exports}var advancedFormat={exports:{}},hasRequiredAdvancedFormat;function requireAdvancedFormat(){return hasRequiredAdvancedFormat||(hasRequiredAdvancedFormat=1,function(a,_){(function($,_e){a.exports=_e()})(commonjsGlobal,function(){return function($,_e){var et=_e.prototype,tt=et.format;et.format=function(rt){var nt=this,it=this.$locale();if(!this.isValid())return tt.bind(this)(rt);var at=this.$utils(),st=(rt||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(ut){switch(ut){case"Q":return Math.ceil((nt.$M+1)/3);case"Do":return it.ordinal(nt.$D);case"gggg":return nt.weekYear();case"GGGG":return nt.isoWeekYear();case"wo":return it.ordinal(nt.week(),"W");case"w":case"ww":return at.s(nt.week(),ut==="w"?1:2,"0");case"W":case"WW":return at.s(nt.isoWeek(),ut==="W"?1:2,"0");case"k":case"kk":return at.s(String(nt.$H===0?24:nt.$H),ut==="k"?1:2,"0");case"X":return Math.floor(nt.$d.getTime()/1e3);case"x":return nt.$d.getTime();case"z":return"["+nt.offsetName()+"]";case"zzz":return"["+nt.offsetName("long")+"]";default:return ut}});return tt.bind(this)(st)}}})}(advancedFormat)),advancedFormat.exports}var customParseFormat={exports:{}},hasRequiredCustomParseFormat;function requireCustomParseFormat(){return hasRequiredCustomParseFormat||(hasRequiredCustomParseFormat=1,function(a,_){(function($,_e){a.exports=_e()})(commonjsGlobal,function(){var $={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},_e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,et=/\d\d/,tt=/\d\d?/,rt=/\d*[^-_:/,()\s\d]+/,nt={},it=function(dt){return(dt=+dt)+(dt>68?1900:2e3)},at=function(dt){return function(gt){this[dt]=+gt}},st=[/[+-]\d\d:?(\d\d)?|Z/,function(dt){(this.zone||(this.zone={})).offset=function(gt){if(!gt||gt==="Z")return 0;var lt=gt.match(/([+-]|\d\d)/g),ft=60*lt[1]+(+lt[2]||0);return ft===0?0:lt[0]==="+"?-ft:ft}(dt)}],ut=function(dt){var gt=nt[dt];return gt&&(gt.indexOf?gt:gt.s.concat(gt.f))},ot=function(dt,gt){var lt,ft=nt.meridiem;if(ft){for(var ct=1;ct<=24;ct+=1)if(dt.indexOf(ft(ct,0,gt))>-1){lt=ct>12;break}}else lt=dt===(gt?"pm":"PM");return lt},pt={A:[rt,function(dt){this.afternoon=ot(dt,!1)}],a:[rt,function(dt){this.afternoon=ot(dt,!0)}],S:[/\d/,function(dt){this.milliseconds=100*+dt}],SS:[et,function(dt){this.milliseconds=10*+dt}],SSS:[/\d{3}/,function(dt){this.milliseconds=+dt}],s:[tt,at("seconds")],ss:[tt,at("seconds")],m:[tt,at("minutes")],mm:[tt,at("minutes")],H:[tt,at("hours")],h:[tt,at("hours")],HH:[tt,at("hours")],hh:[tt,at("hours")],D:[tt,at("day")],DD:[et,at("day")],Do:[rt,function(dt){var gt=nt.ordinal,lt=dt.match(/\d+/);if(this.day=lt[0],gt)for(var ft=1;ft<=31;ft+=1)gt(ft).replace(/\[|\]/g,"")===dt&&(this.day=ft)}],M:[tt,at("month")],MM:[et,at("month")],MMM:[rt,function(dt){var gt=ut("months"),lt=(ut("monthsShort")||gt.map(function(ft){return ft.slice(0,3)})).indexOf(dt)+1;if(lt<1)throw new Error;this.month=lt%12||lt}],MMMM:[rt,function(dt){var gt=ut("months").indexOf(dt)+1;if(gt<1)throw new Error;this.month=gt%12||gt}],Y:[/[+-]?\d+/,at("year")],YY:[et,function(dt){this.year=it(dt)}],YYYY:[/\d{4}/,at("year")],Z:st,ZZ:st};function ht(dt){var gt,lt;gt=dt,lt=nt&&nt.formats;for(var ft=(dt=gt.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Mt,Nt,kt){var Pt=kt&&kt.toUpperCase();return Nt||lt[kt]||$[kt]||lt[Pt].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Dt,Ot,wt){return Ot||wt.slice(1)})})).match(_e),ct=ft.length,mt=0;mt<ct;mt+=1){var yt=ft[mt],Et=pt[yt],St=Et&&Et[0],At=Et&&Et[1];ft[mt]=At?{regex:St,parser:At}:yt.replace(/^\[|\]$/g,"")}return function(Mt){for(var Nt={},kt=0,Pt=0;kt<ct;kt+=1){var Dt=ft[kt];if(typeof Dt=="string")Pt+=Dt.length;else{var Ot=Dt.regex,wt=Dt.parser,_t=Mt.slice(Pt),bt=Ot.exec(_t)[0];wt.call(Nt,bt),Mt=Mt.replace(bt,"")}}return function(vt){var xt=vt.afternoon;if(xt!==void 0){var Ct=vt.hours;xt?Ct<12&&(vt.hours+=12):Ct===12&&(vt.hours=0),delete vt.afternoon}}(Nt),Nt}}return function(dt,gt,lt){lt.p.customParseFormat=!0,dt&&dt.parseTwoDigitYear&&(it=dt.parseTwoDigitYear);var ft=gt.prototype,ct=ft.parse;ft.parse=function(mt){var yt=mt.date,Et=mt.utc,St=mt.args;this.$u=Et;var At=St[1];if(typeof At=="string"){var Mt=St[2]===!0,Nt=St[3]===!0,kt=Mt||Nt,Pt=St[2];Nt&&(Pt=St[2]),nt=this.$locale(),!Mt&&Pt&&(nt=lt.Ls[Pt]),this.$d=function(_t,bt,vt){try{if(["x","X"].indexOf(bt)>-1)return new Date((bt==="X"?1e3:1)*_t);var xt=ht(bt)(_t),Ct=xt.year,Tt=xt.month,It=xt.day,Rt=xt.hours,Lt=xt.minutes,Ht=xt.seconds,jt=xt.milliseconds,Qt=xt.zone,$t=new Date,Bt=It||(Ct||Tt?1:$t.getDate()),Vt=Ct||$t.getFullYear(),Kt=0;Ct&&!Tt||(Kt=Tt>0?Tt-1:$t.getMonth());var qt=Rt||0,Yt=Lt||0,Gt=Ht||0,Xt=jt||0;return Qt?new Date(Date.UTC(Vt,Kt,Bt,qt,Yt,Gt,Xt+60*Qt.offset*1e3)):vt?new Date(Date.UTC(Vt,Kt,Bt,qt,Yt,Gt,Xt)):new Date(Vt,Kt,Bt,qt,Yt,Gt,Xt)}catch{return new Date("")}}(yt,At,Et),this.init(),Pt&&Pt!==!0&&(this.$L=this.locale(Pt).$L),kt&&yt!=this.format(At)&&(this.$d=new Date("")),nt={}}else if(At instanceof Array)for(var Dt=At.length,Ot=1;Ot<=Dt;Ot+=1){St[1]=At[Ot-1];var wt=lt.apply(this,St);if(wt.isValid()){this.$d=wt.$d,this.$L=wt.$L,this.init();break}Ot===Dt&&(this.$d=new Date(""))}else ct.call(this,mt)}}})}(customParseFormat)),customParseFormat.exports}var _interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(dayjs,"__esModule",{value:!0});var default_1=dayjs.default=void 0,_dayjs=_interopRequireDefault(dayjs_minExports),_warning=requireWarning(),_weekday=_interopRequireDefault(requireWeekday()),_localeData=_interopRequireDefault(requireLocaleData()),_weekOfYear=_interopRequireDefault(requireWeekOfYear()),_weekYear=_interopRequireDefault(requireWeekYear()),_advancedFormat=_interopRequireDefault(requireAdvancedFormat()),_customParseFormat=_interopRequireDefault(requireCustomParseFormat());_dayjs.default.extend(_customParseFormat.default);_dayjs.default.extend(_advancedFormat.default);_dayjs.default.extend(_weekday.default);_dayjs.default.extend(_localeData.default);_dayjs.default.extend(_weekOfYear.default);_dayjs.default.extend(_weekYear.default);_dayjs.default.extend(function(a,_){var $=_.prototype,_e=$.format;$.format=function(tt){var rt=(tt||"").replace("Wo","wo");return _e.bind(this)(rt)}});var localeMap={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},parseLocale=function a(_){var $=localeMap[_];return $||_.split("_")[0]},parseNoMatchNotice=function a(){(0,_warning.noteOnce)(!1,"Not match any format. Please help to fire a issue about this.")},generateConfig={getNow:function a(){return(0,_dayjs.default)()},getFixedDate:function a(_){return(0,_dayjs.default)(_,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function a(_){return _.endOf("month")},getWeekDay:function a(_){var $=_.locale("en");return $.weekday()+$.localeData().firstDayOfWeek()},getYear:function a(_){return _.year()},getMonth:function a(_){return _.month()},getDate:function a(_){return _.date()},getHour:function a(_){return _.hour()},getMinute:function a(_){return _.minute()},getSecond:function a(_){return _.second()},addYear:function a(_,$){return _.add($,"year")},addMonth:function a(_,$){return _.add($,"month")},addDate:function a(_,$){return _.add($,"day")},setYear:function a(_,$){return _.year($)},setMonth:function a(_,$){return _.month($)},setDate:function a(_,$){return _.date($)},setHour:function a(_,$){return _.hour($)},setMinute:function a(_,$){return _.minute($)},setSecond:function a(_,$){return _.second($)},isAfter:function a(_,$){return _.isAfter($)},isValidate:function a(_){return _.isValid()},locale:{getWeekFirstDay:function a(_){return(0,_dayjs.default)().locale(parseLocale(_)).localeData().firstDayOfWeek()},getWeekFirstDate:function a(_,$){return $.locale(parseLocale(_)).weekday(0)},getWeek:function a(_,$){return $.locale(parseLocale(_)).week()},getShortWeekDays:function a(_){return(0,_dayjs.default)().locale(parseLocale(_)).localeData().weekdaysMin()},getShortMonths:function a(_){return(0,_dayjs.default)().locale(parseLocale(_)).localeData().monthsShort()},format:function a(_,$,_e){return $.locale(parseLocale(_)).format(_e)},parse:function a(_,$,_e){for(var et=parseLocale(_),tt=0;tt<_e.length;tt+=1){var rt=_e[tt],nt=$;if(rt.includes("wo")||rt.includes("Wo")){for(var it=nt.split("-")[0],at=nt.split("-")[1],st=(0,_dayjs.default)(it,"YYYY").startOf("year").locale(et),ut=0;ut<=52;ut+=1){var ot=st.add(ut,"week");if(ot.format("Wo")===at)return ot}return parseNoMatchNotice(),null}var pt=(0,_dayjs.default)(nt,rt).locale(et);if(pt.isValid())return pt}return $&&parseNoMatchNotice(),null}}},_default=generateConfig;default_1=dayjs.default=_default;var kl=({className:a="",size:_=40})=>jsxRuntimeExports.jsx("div",{className:`pds2-w-full pds2-flex pds2-justify-center pds2-items-center ${a}`,children:jsxRuntimeExports.jsxs("svg",{className:"pds2-animate-spin",id:"svg-spinner",xmlns:"http://www.w3.org/2000/svg",width:_,height:_,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"})]})}),se=kl;generatePicker(default_1);generatePicker(default_1);var su=new Set(["BK","PA"]),du=["CM","CMNP"],lu=["CN","CNS","CND","RE","RES","RED","AB","NS","NSD","NSS"],cu=["IN","RV","PC","RE"],pu=new Set(du),mu=new Set(cu),uu=new Set(lu),fu=new Set(["CK","OG"]);[...Array.from(pu),...Array.from(mu),...Array.from(su),...Array.from(fu),...Array.from(uu)];jsxRuntimeExports.jsx("svg",{className:"dr-w-16 dr-h-16 dr-text-darwin-neutral-400",viewBox:"0 0 576 512",children:jsxRuntimeExports.jsx("path",{d:"M557.6 102.3c-11.53-7.406-25.88-8.391-38.28-2.688L416 147V128c0-35.35-28.65-64-64-64H64C28.65 64 0 92.65 0 128v256c0 35.35 28.65 64 64 64h288c35.35 0 64-28.65 64-64v-19.02l103.3 47.36c5.344 2.453 11.03 3.672 16.69 3.672c7.531 0 15.02-2.141 21.59-6.359C569.1 402.3 576 389.7 576 375.1V136C576 122.3 569.1 109.8 557.6 102.3zM368 384c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V128c0-8.822 7.178-16 16-16h288c8.822 0 16 7.178 16 16V384zM528 363.5L416 312.2V199.8l112-51.33V363.5z",fill:"currentColor"})}),jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",children:jsxRuntimeExports.jsx("path",{d:"M208 96c26.5 0 48-21.5 48-48S234.5 0 208 0s-48 21.5-48 48 21.5 48 48 48zm94.5 149.1l-23.3-11.8-9.7-29.4c-14.7-44.6-55.7-75.8-102.2-75.9-36-.1-55.9 10.1-93.3 25.2-21.6 8.7-39.3 25.2-49.7 46.2L17.6 213c-7.8 15.8-1.5 35 14.2 42.9 15.6 7.9 34.6 1.5 42.5-14.3L81 228c3.5-7 9.3-12.5 16.5-15.4l26.8-10.8-15.2 60.7c-5.2 20.8.4 42.9 14.9 58.8l59.9 65.4c7.2 7.9 12.3 17.4 14.9 27.7l18.3 73.3c4.3 17.1 21.7 27.6 38.8 23.3 17.1-4.3 27.6-21.7 23.3-38.8l-22.2-89c-2.6-10.3-7.7-19.9-14.9-27.7l-45.5-49.7 17.2-68.7 5.5 16.5c5.3 16.1 16.7 29.4 31.7 37l23.3 11.8c15.6 7.9 34.6 1.5 42.5-14.3 7.7-15.7 1.4-35.1-14.3-43zM73.6 385.8c-3.2 8.1-8 15.4-14.2 21.5l-50 50.1c-12.5 12.5-12.5 32.8 0 45.3s32.7 12.5 45.2 0l59.4-59.4c6.1-6.1 10.9-13.4 14.2-21.5l13.5-33.8c-55.3-60.3-38.7-41.8-47.4-53.7l-20.7 51.5z",fill:"currentColor"})}),jsxRuntimeExports.jsx(V,{className:"dr-text-darwin-neutral-400 dr-w-16 dr-h-16"});function tr(a){return Array.isArray?Array.isArray(a):Hs(a)==="[object Array]"}var Ah=1/0;function Ph(a){if(typeof a=="string")return a;let _=a+"";return _=="0"&&1/a==-Ah?"-0":_}function _h(a){return a==null?"":Ph(a)}function qe(a){return typeof a=="string"}function ks(a){return typeof a=="number"}function Oh(a){return a===!0||a===!1||Ih(a)&&Hs(a)=="[object Boolean]"}function Ds(a){return typeof a=="object"}function Ih(a){return Ds(a)&&a!==null}function ge(a){return a!=null}function Hs(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(a)}var Dh=a=>`Pattern length exceeds max of ${a}.`;function Lh(a,_){let $=[],_e=!1,et=(tt,rt,nt)=>{if(ge(tt))if(!rt[nt])$.push(tt);else{let it=rt[nt],at=tt[it];if(!ge(at))return;if(nt===rt.length-1&&(qe(at)||ks(at)||Oh(at)))$.push(_h(at));else if(tr(at)){_e=!0;for(let st=0,ut=at.length;st<ut;st+=1)et(at[st],rt,nt+1)}else rt.length&&et(at,rt,nt+1)}};return et(a,qe(_)?_.split("."):_,0),_e?$:$[0]}var Bh={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Gh={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(a,_)=>a.score===_.score?a.idx<_.idx?-1:1:a.score<_.score?-1:1},Uh={location:0,threshold:.6,distance:100},$h={useExtendedSearch:!1,getFn:Lh,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},A=r(r(r(r({},Gh),Bh),Uh),$h);function bo(a,{errors:_=0,currentLocation:$=0,expectedLocation:_e=0,distance:et=A.distance,ignoreLocation:tt=A.ignoreLocation}={}){let rt=_/a.length;if(tt)return rt;let nt=Math.abs(_e-$);return et?rt+nt/et:nt?1:rt}function Vh(a=[],_=A.minMatchCharLength){let $=[],_e=-1,et=-1,tt=0;for(let rt=a.length;tt<rt;tt+=1){let nt=a[tt];nt&&_e===-1?_e=tt:!nt&&_e!==-1&&(et=tt-1,et-_e+1>=_&&$.push([_e,et]),_e=-1)}return a[tt-1]&&tt-_e>=_&&$.push([_e,tt-1]),$}var Pr=32;function Wh(a,_,$,{location:_e=A.location,distance:et=A.distance,threshold:tt=A.threshold,findAllMatches:rt=A.findAllMatches,minMatchCharLength:nt=A.minMatchCharLength,includeMatches:it=A.includeMatches,ignoreLocation:at=A.ignoreLocation}={}){if(_.length>Pr)throw new Error(Dh(Pr));let st=_.length,ut=a.length,ot=Math.max(0,Math.min(_e,ut)),pt=tt,ht=ot,dt=nt>1||it,gt=dt?Array(ut):[],lt;for(;(lt=a.indexOf(_,ht))>-1;){let St=bo(_,{currentLocation:lt,expectedLocation:ot,distance:et,ignoreLocation:at});if(pt=Math.min(St,pt),ht=lt+st,dt){let At=0;for(;At<st;)gt[lt+At]=1,At+=1}}ht=-1;let ft=[],ct=1,mt=st+ut,yt=1<<st-1;for(let St=0;St<st;St+=1){let At=0,Mt=mt;for(;At<Mt;)bo(_,{errors:St,currentLocation:ot+Mt,expectedLocation:ot,distance:et,ignoreLocation:at})<=pt?At=Mt:mt=Mt,Mt=Math.floor((mt-At)/2+At);mt=Mt;let Nt=Math.max(1,ot-Mt+1),kt=rt?ut:Math.min(ot+Mt,ut)+st,Pt=Array(kt+2);Pt[kt+1]=(1<<St)-1;for(let Dt=kt;Dt>=Nt;Dt-=1){let Ot=Dt-1,wt=$[a.charAt(Ot)];if(dt&&(gt[Ot]=+!!wt),Pt[Dt]=(Pt[Dt+1]<<1|1)&wt,St&&(Pt[Dt]|=(ft[Dt+1]|ft[Dt])<<1|1|ft[Dt+1]),Pt[Dt]&yt&&(ct=bo(_,{errors:St,currentLocation:Ot,expectedLocation:ot,distance:et,ignoreLocation:at}),ct<=pt)){if(pt=ct,ht=Ot,ht<=ot)break;Nt=Math.max(1,2*ot-ht)}}if(bo(_,{errors:St+1,currentLocation:ot,expectedLocation:ot,distance:et,ignoreLocation:at})>pt)break;ft=Pt}let Et={isMatch:ht>=0,score:Math.max(.001,ct)};if(dt){let St=Vh(gt,nt);St.length?it&&(Et.indices=St):Et.isMatch=!1}return Et}function Yh(a){let _={};for(let $=0,_e=a.length;$<_e;$+=1){let et=a.charAt($);_[et]=(_[et]||0)|1<<_e-$-1}return _}var xo=class{constructor(a,{location:_=A.location,threshold:$=A.threshold,distance:_e=A.distance,includeMatches:et=A.includeMatches,findAllMatches:tt=A.findAllMatches,minMatchCharLength:rt=A.minMatchCharLength,isCaseSensitive:nt=A.isCaseSensitive,ignoreLocation:it=A.ignoreLocation}={}){if(this.options={location:_,threshold:$,distance:_e,includeMatches:et,findAllMatches:tt,minMatchCharLength:rt,isCaseSensitive:nt,ignoreLocation:it},this.pattern=nt?a:a.toLowerCase(),this.chunks=[],!this.pattern.length)return;let at=(ut,ot)=>{this.chunks.push({pattern:ut,alphabet:Yh(ut),startIndex:ot})},st=this.pattern.length;if(st>Pr){let ut=0,ot=st%Pr,pt=st-ot;for(;ut<pt;)at(this.pattern.substr(ut,Pr),ut),ut+=Pr;if(ot){let ht=st-Pr;at(this.pattern.substr(ht),ht)}}else at(this.pattern,0)}searchIn(a){let{isCaseSensitive:_,includeMatches:$}=this.options;if(_||(a=a.toLowerCase()),this.pattern===a){let pt={isMatch:!0,score:0};return $&&(pt.indices=[[0,a.length-1]]),pt}let{location:_e,distance:et,threshold:tt,findAllMatches:rt,minMatchCharLength:nt,ignoreLocation:it}=this.options,at=[],st=0,ut=!1;this.chunks.forEach(({pattern:pt,alphabet:ht,startIndex:dt})=>{let{isMatch:gt,score:lt,indices:ft}=Wh(a,pt,ht,{location:_e+dt,distance:et,threshold:tt,findAllMatches:rt,minMatchCharLength:nt,includeMatches:$,ignoreLocation:it});gt&&(ut=!0),st+=lt,gt&&ft&&(at=[...at,...ft])});let ot={isMatch:ut,score:ut?st/this.chunks.length:1};return ut&&$&&(ot.indices=at),ot}},je=class{constructor(a){this.pattern=a}static isMultiMatch(a){return Os(a,this.multiRegex)}static isSingleMatch(a){return Os(a,this.singleRegex)}search(){}};function Os(a,_){let $=a.match(_);return $?$[1]:null}var Fn=class extends je{constructor(a){super(a)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(a){let _=a===this.pattern;return{isMatch:_,score:_?0:1,indices:[0,this.pattern.length-1]}}},qn=class extends je{constructor(a){super(a)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(a){let _=a.indexOf(this.pattern)===-1;return{isMatch:_,score:_?0:1,indices:[0,a.length-1]}}},jn=class extends je{constructor(a){super(a)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(a){let _=a.startsWith(this.pattern);return{isMatch:_,score:_?0:1,indices:[0,this.pattern.length-1]}}},Vn=class extends je{constructor(a){super(a)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(a){let _=!a.startsWith(this.pattern);return{isMatch:_,score:_?0:1,indices:[0,a.length-1]}}},Wn=class extends je{constructor(a){super(a)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(a){let _=a.endsWith(this.pattern);return{isMatch:_,score:_?0:1,indices:[a.length-this.pattern.length,a.length-1]}}},Yn=class extends je{constructor(a){super(a)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(a){let _=!a.endsWith(this.pattern);return{isMatch:_,score:_?0:1,indices:[0,a.length-1]}}},So=class extends je{constructor(a,{location:_=A.location,threshold:$=A.threshold,distance:_e=A.distance,includeMatches:et=A.includeMatches,findAllMatches:tt=A.findAllMatches,minMatchCharLength:rt=A.minMatchCharLength,isCaseSensitive:nt=A.isCaseSensitive,ignoreLocation:it=A.ignoreLocation}={}){super(a),this._bitapSearch=new xo(a,{location:_,threshold:$,distance:_e,includeMatches:et,findAllMatches:tt,minMatchCharLength:rt,isCaseSensitive:nt,ignoreLocation:it})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(a){return this._bitapSearch.searchIn(a)}},Ro=class extends je{constructor(a){super(a)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(a){let _=0,$,_e=[],et=this.pattern.length;for(;($=a.indexOf(this.pattern,_))>-1;)_=$+et,_e.push([$,_-1]);let tt=!!_e.length;return{isMatch:tt,score:tt?0:1,indices:_e}}},zn=[Fn,Ro,jn,Vn,Yn,Wn,qn,So],Is=zn.length,zh=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Xh="|";function Jh(a,_={}){return a.split(Xh).map($=>{let _e=$.trim().split(zh).filter(tt=>tt&&!!tt.trim()),et=[];for(let tt=0,rt=_e.length;tt<rt;tt+=1){let nt=_e[tt],it=!1,at=-1;for(;!it&&++at<Is;){let st=zn[at],ut=st.isMultiMatch(nt);ut&&(et.push(new st(ut,_)),it=!0)}if(!it)for(at=-1;++at<Is;){let st=zn[at],ut=st.isSingleMatch(nt);if(ut){et.push(new st(ut,_));break}}}return et})}var Kh=new Set([So.type,Ro.type]),Xn=class{constructor(a,{isCaseSensitive:_=A.isCaseSensitive,includeMatches:$=A.includeMatches,minMatchCharLength:_e=A.minMatchCharLength,ignoreLocation:et=A.ignoreLocation,findAllMatches:tt=A.findAllMatches,location:rt=A.location,threshold:nt=A.threshold,distance:it=A.distance}={}){this.query=null,this.options={isCaseSensitive:_,includeMatches:$,minMatchCharLength:_e,findAllMatches:tt,ignoreLocation:et,location:rt,threshold:nt,distance:it},this.pattern=_?a:a.toLowerCase(),this.query=Jh(this.pattern,this.options)}static condition(a,_){return _.useExtendedSearch}searchIn(a){let _=this.query;if(!_)return{isMatch:!1,score:1};let{includeMatches:$,isCaseSensitive:_e}=this.options;a=_e?a:a.toLowerCase();let et=0,tt=[],rt=0;for(let nt=0,it=_.length;nt<it;nt+=1){let at=_[nt];tt.length=0,et=0;for(let st=0,ut=at.length;st<ut;st+=1){let ot=at[st],{isMatch:pt,indices:ht,score:dt}=ot.search(a);if(pt){if(et+=1,rt+=dt,$){let gt=ot.constructor.type;Kh.has(gt)?tt=[...tt,...ht]:tt.push(ht)}}else{rt=0,et=0,tt.length=0;break}}if(et){let st={isMatch:!0,score:rt/et};return $&&(st.indices=tt),st}}return{isMatch:!1,score:1}}},Jn=[];function Qh(...a){Jn.push(...a)}Qh(Xn);var Gb=({width:a,align:_="left",children:$})=>jsxRuntimeExports.jsx("div",{className:`dr-text-darwin-neutral-600 dr-uppercase Caption1Bold dr-px-8 dr-py-12 dr-text-${_}`,style:a?{width:a}:{flex:1},children:$}),Ub=({headerConfig:a})=>jsxRuntimeExports.jsx("div",{className:"dr-flex dr-items-center dr-w-full dr-bg-darwin-neutral-50 dr-rounded-t-8",children:a.map(_=>jsxRuntimeExports.jsx(Gb,{align:_.align,width:_.width,children:_.title}))});React.memo(Ub);var il=a=>a.reduce((_,$)=>s(r({},_),{[$.key]:{width:$.width,align:$.align}}),{}),sl=[{key:"permission",title:"Permission",width:"40%"},{key:"information",title:"Information",width:"50%"},{key:"action",title:"Allow/Deny",width:"15%",align:"right"}];il(sl);const Pds2Button=({title:a,textColor:_,size:$,state:_e,buttonColor:et="",isLoading:tt,className:rt,onClick:nt,width:it,buttonIconPosition:at="right",IconComponent:st})=>jsxRuntimeExports.jsx("button",{title:a,className:`${rt} pds2-px-24 pds2-py-16 pds2-text-text-invert ${et||"pds2-bg-bg-brand-01"} pds2-flex pds2-justify-center pds2-items-center pds2-rounded-16 ${tt?"pds2-pointer-events-none pds2-cursor-not-allowed":""} disabled:pds2-pointer-events-none disabled:pds2-bg-bg-04 disabled:pds2-text-text-03 ${_e==="disabled"?"":"ripple"}`,onClick:nt,...it?{style:{width:it}}:null,disabled:_e==="disabled",children:tt?jsxRuntimeExports.jsx(se,{size:24,className:_}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[st&&at==="left"?jsxRuntimeExports.jsx(st,{}):null,jsxRuntimeExports.jsx("div",{className:`${_} Body1Semibold`,children:a}),st&&at==="right"?jsxRuntimeExports.jsx(st,{}):null]})}),AbhaHeader=({prefixIcon:a=jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"}),title:_,suffixIcon:$=jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"}),className:_e=""})=>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 ${_e}`,children:[a,jsxRuntimeExports.jsx("div",{className:"pds2-flex-1 Heading4Semibold pds2-text-center pds2-text-text-black",children:_}),$]}),BottomSheetWrapper=({isOpen:a,setIsOpen:_,children:$,shouldCloseOnClickOutside:_e=!0})=>jsxRuntimeExports.jsxs("div",{className:`pds2-absolute pds2-inset-0 pds2-z-50 pds2-transition-opacity pds2-duration-300 ${a?"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:()=>_e&&_(!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:a?"translateY(0)":"translateY(100%)"},children:$})]}),AbhaBottomSheet$1=({description:a,subText:_,submitText:$,onSubmitClick:_e,iconUrl:et,isBottomSheetOpen:tt,onBottomSheetClose:rt,shouldCloseOnClickOutside:nt=!0})=>jsxRuntimeExports.jsx(BottomSheetWrapper,{isOpen:tt,setIsOpen:rt,shouldCloseOnClickOutside:nt,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-p-16 pds2-text-center",children:[nt?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-items-center",children:jsxRuntimeExports.jsx("button",{onClick:rt,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(t$6,{className:"pds2-w-18 pds2-h-18 pds2-text-text-03"})})}):null,jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[et&&jsxRuntimeExports.jsx("span",{className:"pds2-flex pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:et,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:a}),_&&jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-text-03",children:_}),jsxRuntimeExports.jsx(Pds2Button,{title:$,onClick:_e,state:"enabled",className:"pds2-w-full"})]})]})}),AbhaErrorBottomSheet=({onSubmitClick:a})=>{const _=useAuthAbhaStore(et=>et.bottomsheetErrorInfo),$=useAuthAbhaStore(et=>et.setBottomsheetErrorInfo),_e=()=>{$(null)};return jsxRuntimeExports.jsx(AbhaBottomSheet$1,{description:(_==null?void 0:_.title)||"Something went wrong",subText:(_==null?void 0:_.description)||"Something went wrong",submitText:(_==null?void 0:_.cta.title)||"Retry",onSubmitClick:a,iconUrl:_==null?void 0:_.img,isBottomSheetOpen:!!_,onBottomSheetClose:_e,shouldCloseOnClickOutside:!1})},SpacedInputComponent=({numberOfInputs:a,length:_=1,placeholder:$="",setIsValid:_e,onSubmit:et,error:tt,containerClassName:rt,setError:nt,initialValues:it,setAadhaarValue:at,disabled:st=!1,autoComplete:ut})=>{const ot=reactExports.useRef([]),[pt,ht]=reactExports.useState(it||Array(a).fill(""));reactExports.useEffect(()=>{if(it&&it.length===a){const mt=it.join(""),yt=pt.join("");mt!==yt&&(ht(it),_e==null||_e(mt.length===a*_))}},[it,a,_]);const dt=(mt,yt)=>{var Nt,kt;if(st)return;console.log("my_hii inputRefs.current[index]",ot.current[yt].value),nt&&nt(null);const Et=mt.target.value;if(isNaN(Number(Et)))return;if(Et.trim().length===a*_){ft({otpValue:Et,index:0});return}const At=[...pt];At[yt]=Et;const Mt=At.join("").length;if(!(Mt>a*_)){if(ht(At),at==null||at(At.join("")),ot.current[yt].value.length>_){(Nt=ot.current[yt+1])==null||Nt.focus();return}Mt===a*_?(_e==null||_e(!0),et({inputVal:At.join("")}),at&&Mt===12&&at(At.join(""))):_e==null||_e(!1),Et.length===_&&yt<a-1&&((kt=ot.current[yt+1])==null||kt.focus())}},gt=(mt,yt)=>{var Et;st||mt.key==="Backspace"&&pt[yt]===""&&yt>0&&((Et=ot.current[yt-1])==null||Et.focus())},lt=(mt,yt)=>{if(st)return;mt.preventDefault();const Et=mt.clipboardData.getData("text").replace(/\D/g,"");if(!Et)return;const St=a*_,At=Et.slice(0,St);ft({otpValue:At,index:yt})},ft=({otpValue:mt,index:yt})=>{var Mt,Nt;const Et=mt.match(new RegExp(`.{1,${_}}`,"g"))||[],St=[...pt];Et.forEach((kt,Pt)=>{yt+Pt<a&&(St[yt+Pt]=kt)}),ht(St);const At=St.findIndex((kt,Pt)=>Pt>=yt&&!kt);At!==-1?(Mt=ot.current[At])==null||Mt.focus():(Nt=ot.current[a-1])==null||Nt.focus(),St.join("").length===a*_?(_e==null||_e(!0),et({inputVal:St.join("")}),at&&St.join("").length===12&&at(St.join(""))):_e==null||_e(!1)},ct=reactExports.useMemo(()=>{const mt=pt.findIndex(yt=>yt.length<_);return mt!==-1?mt:pt.length>0?pt.length-1:0},[pt,_]);return jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-justify-center pds2-items-center pds2-space-x-8 ${rt}`,children:Array.from({length:a}).map((mt,yt)=>jsxRuntimeExports.jsx("label",{className:`focus-within:pds2-border-border-brand-01 pds2-border ${tt?"pds2-border-border-error":"pds2-border-border-03"} pds2-rounded-12 pds2-bg-bg-white`,children:jsxRuntimeExports.jsx("input",{autoFocus:yt===ct&&!st,placeholder:$,value:pt[yt],type:"text",autoComplete:ut,inputMode:"numeric",pattern:"[0-9]*",onPaste:Et=>lt(Et,yt),ref:Et=>{Et&&(ot.current[yt]=Et)},onChange:Et=>dt(Et,yt),onKeyDown:Et=>gt(Et,yt),disabled:st,className:"pds2-w-full pds2-text-center pds2-h-56 pds2-rounded-12 pds2-outline-none pds2-bg-transparent disabled:pds2-text-text-04"},yt)},yt))})};function formatTime(a){const _=Math.floor(a/60),$=a%60;return`${_.toString().padStart(2,"0")}:${$.toString().padStart(2,"0")}`}const ResendTimer=({time:a,onResendOtpClick:_,error:$})=>{const[_e,et]=reactExports.useState(a);return reactExports.useEffect(()=>{const tt=setInterval(()=>{et(_e-1)},1e3);return()=>clearInterval(tt)},[_e]),_e>0?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsxs("div",{className:"pds2-text-text-04",children:[jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:"Resend OTP in"})," ",jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:formatTime(_e)})]})}):jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-text-brand cursor-pointer",onClick:()=>{et(a),_()},children:"Resend OTP"})})},AbhaOtpCard=({otpSentToText:a,onOtpCompletion:_,onResendOtpClick:$,setIsValid:_e,error:et,setError:tt,prefixIcon:rt=jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-w-48"})})=>{const nt=useAuthAbhaStore(st=>st.goBackScreen),it=useAuthAbhaStore(st=>st.screen),at=useAuthAbhaStore(st=>st.setGoBackToLogin);return reactExports.useEffect(()=>{at(!1)},[]),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-bg-white pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-space-x-16",children:[jsxRuntimeExports.jsxs("div",{className:"Body1Regular pds2-text-text-01 pds2-flex-1",children:[a,jsxRuntimeExports.jsx("sup",{className:"pds2-text-text-error Body3Semibold",children:" *"})]}),rt]}),jsxRuntimeExports.jsx(SpacedInputComponent,{numberOfInputs:6,length:1,onSubmit:({inputVal:st})=>_({otp:st}),setIsValid:_e,error:et,setError:tt,autoComplete:"one-time-code"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex",children:[jsxRuntimeExports.jsx(ResendTimer,{time:60,onResendOtpClick:$,error:et}),it.length===2&&jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-text-brand cursor-pointer",onClick:()=>{nt(),at(!0)},children:"Change"})]}),et&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-text-error",children:et})]})},usePostAbdmLoginVerify=()=>{const a=useAuthAbhaStore(_=>_.setSelectedAbhaAddress);return useMutation({mutationFn:({txn_id:_,otp:$})=>postAbdmLoginVerify({otp:$,txn_id:_}),onSuccess(_){_.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],_.profile),a(_.profile.abha_address))}})},Pds2CustomButton=({prefixIcon:a,title:_,suffixIcon:$,className:_e="",onClick:et,width:tt="pds2-w-full",padding:rt,isRippleStyle:nt=!0})=>jsxRuntimeExports.jsxs("button",{onClick:et,className:`pds2-flex pds2-flex-row pds2-items-center pds2-gap-12 ${rt||"pds2-p-16"} pds2-rounded-16 pds2-text-bg-invert pds2-bg-bg-white pds2-border pds2-border-border-03 ${nt&&"ripple"} ${tt} ${_e}`,children:[a||null,jsxRuntimeExports.jsx("span",{className:"Body1Medium",children:_}),$||null]}),ExitPopup=({open:a,setOpen:_})=>{const $=useAuthAbhaStore(pt=>pt.goBackLoginScreen),_e=useAuthAbhaStore(pt=>pt.clientId),et=useAuthAbhaStore(pt=>pt.isEkaAppLogin),tt=useAuthAbhaStore(pt=>pt.isNewLoginOrCreateFlow),rt=useAuthAbhaStore(pt=>pt.setAbhaAuthFlowMethod),nt=useAuthAbhaStore(pt=>pt.txnId),it=useAuthAbhaStore(pt=>pt.setGoBackToLogin),at=useAuthAbhaStore(pt=>pt.screen),st=useAuthAbhaStore(pt=>pt.abhaAuthFlowMethod),ut=({name:pt,data:ht={}})=>{var lt,ft;const gt={...{login_platform:_e,is_eka_app_login:et?"true":"false",is_new_login_or_create_flow:tt?"true":"false",txn_id:nt||"missing txnId"},...ht};handleSendEvent({eventName:pt,eventData:gt}),(ft=(lt=window.curio)==null?void 0:lt.pushToMixpanel)==null||ft.call(lt,pt,gt)},ot=()=>{ut({name:"abha_exit_popup_confirmed",data:{action:"go_back_to_login_screen"}}),at.at(-2)===SCREEN_NAMES.SELECT_ABHA_FROM_LIST&&st===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&rt(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),it(!0),$()};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:a?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:()=>_(!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:()=>_(!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:ot})]})]})})})}):null})},AbhaStepper=()=>{const a=useAuthAbhaStore(at=>at.screen),_=useAuthAbhaStore(at=>at.currentStepperIndex),$=useAuthAbhaStore(at=>at.setCurrentStepperIndex),_e=a[a.length-1],et=a.length>1&&a[a.length-2],tt=useAuthAbhaStore(at=>at.abhaAuthFlowMethod),rt={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 st;const at=(st=Object.entries(rt).find(([ut,ot])=>ot.includes(_e)))==null?void 0:st[0];if(at){if(tt==="abha_number"||tt==="phr_address"){if(_e==="VERIFY_OTP_LOGIN_WITH_ABHA"){$(3);return}}else if((et==="LOGIN_OR_CREATE_ABHA"||et==="LOGIN_WITH_ABHA"||et==="CREATE_ABHA_WITH_AADHAAR")&&a.length>1){$(2);return}Number(at)>=_&&$(Number(at))}},[a]);const nt=Array.from({length:4},(at,st)=>{const ut=st+1;return jsxRuntimeExports.jsx("div",{className:`pds2-relative pds2-p-0 pds2-text-center pds2-h-23 pds2-w-23 pds2-rounded-11 pds2-transition-all pds2-ease-in-out pds2-duration-250 pds2-text-bg-white ${ut<=_?"pds2-bg-text-brand":"pds2-bg-bg-secondary"}`,children:ut},ut)}),it=_===1?20:_===2?50:_===3?80:100;return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-01 pds2-flex pds2-w-full pds2-place-items-center pds2-justify-center pds2-relative pds2-px-60 pds2-py-20 pds2-cursor-default",children:[jsxRuntimeExports.jsx("div",{className:"pds2-cursor-default pds2-flex pds2-flex-row pds2-justify-between pds2-items-center pds2-gap-5 pds2-h-auto pds2-w-full pds2-z-10",children:nt}),jsxRuntimeExports.jsx("progress",{className:"abhaStepper pds2-absolute pds2-w-full pds2-h-2 pds2-px-60",max:100,value:it})]})},AbhaLoginOtpVerifyScreen=()=>{const a=useAuthAbhaStore(Ct=>Ct.authTxnId),_=useAuthAbhaStore(Ct=>Ct.txnId),$=useAuthAbhaStore(Ct=>Ct.setAbhaAddressList),_e=useAuthAbhaStore(Ct=>Ct.clearAbhaAuthStore),et=useAuthAbhaStore(Ct=>Ct.aadhaarOtpSentToHint),tt=useAuthAbhaStore(Ct=>Ct.loginIdentifierValue),rt=useAuthAbhaStore(Ct=>Ct.abhaAuthFlowMethod),nt=useAuthAbhaStore(Ct=>Ct.setScreen),it=useAuthAbhaStore(Ct=>Ct.goBackLoginScreen),at=useAuthAbhaStore(Ct=>Ct.setTxnId),st=useAuthAbhaStore(Ct=>Ct.setBottomsheetErrorInfo),[ut,ot]=reactExports.useState(!1),pt=useAuthAbhaStore(Ct=>Ct.setEkaProfileInfo),ht=useAuthAbhaStore(Ct=>Ct.setAadhaarVerificationSkipStateStatus),dt=useAuthAbhaStore(Ct=>Ct.setSelectedAbhaAddress),[gt,lt]=reactExports.useState(""),[ft,ct]=reactExports.useState(!1),[mt,yt]=reactExports.useState(""),[Et,St]=reactExports.useState(LOADING_STATE.IDLE),At=["M","F","O","U"],{mutateAsync:Mt}=usePostAuthVerifyV2(),{mutateAsync:Nt}=usePostAbdmLoginVerify(),kt=useAuthAbhaStore(Ct=>Ct.isEkaAppLogin),Pt=useAuthAbhaStore(Ct=>Ct.clientId);useAuthAbhaStore(Ct=>Ct.oid);const Dt=useAuthAbhaStore(Ct=>Ct.isNewLoginOrCreateFlow),Ot=GET_EXTRA_HEADERS(),wt=({name:Ct,data:Tt={}})=>{var Lt,Ht;const Rt={...{login_platform:Pt,is_eka_app_login:kt?"true":"false",is_new_login_or_create_flow:Dt?"true":"false",txn_id:_||"missing txnId",oid:Ot!=null&&Ot["X-User-ID"]?"true":"false",access_token:Ot!=null&&Ot.auth?"true":"false"},...Tt};handleSendEvent({eventName:Ct,eventData:Rt}),(Ht=(Lt=window.curio)==null?void 0:Lt.pushToMixpanel)==null||Ht.call(Lt,Ct,Rt)};reactExports.useEffect(()=>{wt({name:"page_view",data:{page_view:"abha_login_otp_verify",platform:Pt}})},[]);const _t=()=>{wt({name:"abha_login_otp_verify_error_bottomsheet_dismissed",data:{platform:Pt}}),it();const Ct=useAuthAbhaStore.getState().isEkaAppLogin;_e(),useAuthAbhaStore.setState({isEkaAppLogin:Ct})},bt=({otp:Ct})=>{lt(Ct),wt({name:"abha_login_otp_completion",data:{type:"verify",platform:Pt,txn_id:_,otp_entered:!0,method:rt}}),vt(Ct)},vt=async Ct=>{var Bt,Vt,Kt,qt,Yt,Gt;if(!_){wt({name:"abha_login_otp_verify_txnId_not_found",data:{type:"verify",platform:Pt,txn_id:_||"missing_txn_id",txn_id_exists:!!_,method:(rt==null?void 0:rt.toLowerCase())||"unknown_method"}});return}wt({name:"abha_login_otp_verify",data:{type:"verify",platform:Pt,txn_id:_}}),St(LOADING_STATE.LOADING);const{abha_profiles:Tt=[],skip_state:It,profile:Rt,error:Lt,action:Ht,eka:jt}=await Nt({otp:Ct,txn_id:_});if(Ht){wt({name:"abha_login_otp_verify_error_action",data:{type:"verify",platform:Pt,error_action:Ht||"no_error_action",error_message:Lt||"no_error_message",error_action_exists:!!Ht,error_message_exists:!!Lt}}),st(Ht);return}if(Lt){wt({name:"abha_login_otp_verify_error",data:{type:"verify",platform:Pt,error_message:Lt||"unknown_error",error_message_exists:!!Lt}}),St(LOADING_STATE.REJECTED),yt(Lt);return}if(!It){yt("Skip State is missing"),wt({name:"abha_login_skip_state_missing",data:{platform:Pt,skipState:It||"missing_skip_state",skipState_exists:!!It}});return}ht(It),Rt&&dt(Rt.abha_address),Rt&&pt({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:jt==null?void 0:jt.oid,abha_address:Rt==null?void 0:Rt.abha_address,abha_number:Rt==null?void 0:Rt.abha_number});const Qt=At.includes(Rt==null?void 0:Rt.gender)?Rt==null?void 0:Rt.gender:void 0,$t={oid:(jt==null?void 0:jt.oid)||"",fln:(Rt==null?void 0:Rt.first_name)+" "+(Rt==null?void 0:Rt.last_name),dob:`${Rt==null?void 0:Rt.year_of_birth}-${String(Rt==null?void 0:Rt.month_of_birth).padStart(2,"0")}-${String(Rt==null?void 0:Rt.day_of_birth).padStart(2,"0")}`,gen:Qt,mobile:Rt==null?void 0:Rt.mobile,at:"",fn:(Rt==null?void 0:Rt.first_name)||"",mn:(Rt==null?void 0:Rt.middle_name)||"",ln:(Rt==null?void 0:Rt.last_name)||"","health-ids":Rt!=null&&Rt.abha_address?[Rt.abha_address]:void 0,abha_number:(Rt==null?void 0:Rt.abha_number)||""};if(It===ABHA_V3_SKIP_STATES.ABHA_END){if(kt){if(wt({name:"abha_login_otp_verify_eka_app",data:{type:"verify",platform:Pt,txn_id:_,skip_state:It}}),St(LOADING_STATE.RESOLVED),!jt){wt({name:"abha_login_otp_verify_eka_app_error",data:{type:"null_oid",platform:Pt,txn_id:_||"missing_txn_id",txn_id_exists:!!_,eka:jt||"missing_eka",eka_exists:!!jt,skip_state:It||"missing_skip_state",skip_state_exists:!!It}}),St(LOADING_STATE.REJECTED),yt("Something went wrong, please try again");return}const er=getMockAuthVerifyResponse($t);if(wt({name:"abha_login_otp_verify_success",data:{type:"verify",platform:Pt,txn_id:_,skip_state:It,method:rt}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Bt=window.EkaAbha)==null||Bt.onAbhaSuccess(JSON.stringify({response:er}));return}onAbhaSuccess({response:er}),unMount();return}if(!jt||!jt.min_token||!a){wt({name:"abha_login_otp_verify_eka_error",data:{type:"verify",platform:Pt,eka:jt||"missing_eka",eka_exists:!!jt,auth_txnId:a||"missing_auth_txnId",auth_txnId_exists:!!a,skip_state:It||"missing_skip_state",skip_state_exists:!!It}}),St(LOADING_STATE.REJECTED),yt("Something went wrong, please try again");return}const Xt=await Mt({txn_id:a,token:jt.min_token,...jt.oid?{oid:jt.oid}:null});if(!Xt.data){wt({name:"abha_login_otp_verify_auth_verify_error",data:{type:"verify",platform:Pt,skip_state:It||"missing_skip_state",skip_state_exists:!!It,auth_verify_data_exists:!1}}),St(LOADING_STATE.REJECTED),yt(((Vt=Xt.error)==null?void 0:Vt.message)||"Something went wrong, please try again");return}wt({name:"abha_login_otp_verify_abha_end_success",data:{type:"verify",platform:Pt,txn_id:_,skip_state:It}}),St(LOADING_STATE.RESOLVED);return}if(It===ABHA_V3_SKIP_STATES.ABHA_SELECT&&Tt.length>0){wt({name:"abha_login_otp_verify_abha_select",data:{type:"verify",platform:Pt}}),nt(SCREEN_NAMES.SELECT_ABHA_FROM_LIST),$(Tt);return}if(It===ABHA_V3_SKIP_STATES.ABHA_CREATE&&rt===ABHA_AUTH_FLOW_METHOD.MOBILE){nt(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(It===ABHA_V3_SKIP_STATES.ABHA_CREATE){nt(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}if(kt){if(!jt){wt({name:"abha_login_otp_verify_eka_failed",data:{type:"verify",platform:Pt,txn_id:a||"missing_authTxnId",txn_id_exists:!!a}}),St(LOADING_STATE.REJECTED),yt("Something went wrong, please try again");return}const Xt=getMockAuthVerifyResponse($t);if(St(LOADING_STATE.RESOLVED),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Kt=window.EkaAbha)==null||Kt.onAbhaSuccess(JSON.stringify({response:Xt}));return}onAbhaSuccess({response:Xt}),unMount();return}if(!It||!(jt!=null&&jt.min_token)){St(LOADING_STATE.REJECTED),yt(Lt||"Something went wrong, please try again"),Ht&&st(Ht);return}if(jt.min_token&&a){const Xt=await Mt({txn_id:a,token:jt.min_token});Xt.data?wt({name:"abha_login_auth_verify_success",data:{platform:Pt,txn_id:a}}):(wt({name:"abha_login_auth_verify_failed",data:{platform:Pt,txn_id:a||"missing_authTxnId",txn_id_exists:!!a,error_message:((qt=Xt==null?void 0:Xt.error)==null?void 0:qt.message)||"unknown_error",error_message_exists:!!((Yt=Xt==null?void 0:Xt.error)!=null&&Yt.message)}}),St(LOADING_STATE.REJECTED),yt(((Gt=Xt.error)==null?void 0:Gt.message)||"Something went wrong, please try again"))}St(LOADING_STATE.RESOLVED)},xt=async()=>{if(tt&&rt){const{txn_id:Ct}=await postAbdmLoginInit({method:rt,identifier:tt});wt({name:"abha_login_verify_resend_otp",data:{method:rt,platform:Pt,txn_id:Ct}}),Ct&&at(Ct)}};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:()=>ot(!0),children:jsxRuntimeExports.jsx(n$2,{className:""})}),title:"OTP Verification",suffixIcon:jsxRuntimeExports.jsx(p$3,{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:et||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:bt,onResendOtpClick:xt,error:mt,setIsValid:Ct=>{mt&&yt(null),ct(Ct)},prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abdm-abha-icon",className:"pds2-w-48"})})}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full pds2-border pds2-border-border-brand-02",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!ft||Et===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>vt(gt),isLoading:Et===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:_t}),jsxRuntimeExports.jsx(ExitPopup,{open:ut,setOpen:ot})]})},AbhaMobileLinkingStatusScreen=()=>{const a=useAuthAbhaStore(lt=>lt.aadhaarVerificationSkipStateStatus),_=useAuthAbhaStore(lt=>lt.authTxnId),$=useAuthAbhaStore(lt=>lt.ekaSmallToken),_e=useAuthAbhaStore(lt=>lt.oid),et=useAuthAbhaStore(lt=>lt.setScreen),[tt,rt]=reactExports.useState(!0),nt=useAuthAbhaStore(lt=>lt.setEkaProfileInfo),it=useAuthAbhaStore(lt=>lt.clientId),at=useAuthAbhaStore(lt=>lt.isEkaAppLogin),st=useAuthAbhaStore(lt=>lt.ekaProfileInfo),ut=["M","F","O","U"],ot=reactExports.useRef(!1),pt=useAuthAbhaStore(lt=>lt.isNewLoginOrCreateFlow),ht=useAuthAbhaStore(lt=>lt.txnId),dt=GET_EXTRA_HEADERS(),gt=({name:lt,data:ft={}})=>{var yt,Et;const mt={...{login_platform:it,is_eka_app_login:at?"true":"false",is_new_login_or_create_flow:pt?"true":"false",txn_id:ht||"missing txnId",oid:dt!=null&&dt["X-User-ID"]?"true":"false",access_token:dt!=null&&dt.auth?"true":"false"},...ft};handleSendEvent({eventName:lt,eventData:mt}),(Et=(yt=window.curio)==null?void 0:yt.pushToMixpanel)==null||Et.call(yt,lt,mt)};return reactExports.useEffect(()=>{const lt=new Promise(ct=>{setTimeout(()=>{ct(rt(!1))},500)});gt({name:"page_view",data:{page_view:"mobile_verified_successful",platform:it}});async function ft(){await lt,setTimeout(async()=>{var ct,mt,yt,Et,St,At;if(a===ABHA_V3_SKIP_STATES.ABHA_CREATE||a===ABHA_V3_SKIP_STATES.ABHA_END){if(gt({name:"abha_create_mobile_initiate",data:{platform:it,oid_received:_e,txn_id:ht,skip_state:a}}),_e&&!ot.current){const Nt=await getProfilesPatient();ot.current=!0,Nt&&nt({date_of_birth:Nt.dob,firstname:Nt.fn,lastname:Nt.ln,pincode:"",gender:Nt.gen,oid:Nt==null?void 0:Nt.oid,middlename:Nt==null?void 0:Nt.mn,abha_address:(ct=Nt==null?void 0:Nt["health-ids"])==null?void 0:ct[0],abha_number:Nt==null?void 0:Nt.abha_number})}if(at&&a===ABHA_V3_SKIP_STATES.ABHA_END&&_e){const Nt=ut.includes(st==null?void 0:st.gender)?st==null?void 0:st.gender:void 0,kt={oid:(st==null?void 0:st.oid)||"",fln:(st==null?void 0:st.name)||"",dob:st==null?void 0:st.date_of_birth,gen:Nt,mobile:st==null?void 0:st.mobile,at:"",fn:(st==null?void 0:st.firstname)||"",mn:(st==null?void 0:st.middlename)||"",ln:(st==null?void 0:st.lastname)||"","health-ids":st!=null&&st.abha_address?[st.abha_address]:void 0,abha_number:(st==null?void 0:st.abha_number)||""};gt({name:"abha_mobile_linking_success",data:{type:"unmount",isEkaAppLogin:at,skip_state:a}});const Pt=getMockAuthVerifyResponse(kt);if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(mt=window.EkaAbha)==null||mt.onAbhaSuccess(JSON.stringify({response:Pt}));return}onAbhaSuccess({response:Pt}),unMount();return}if(at&&a===ABHA_V3_SKIP_STATES.ABHA_CREATE){gt({name:"navigate_to_screen",data:{destination:"create_eka_profile",reason:"abha_create_from_mobile_flow"}}),et(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!_||!$){gt({name:"authTxnId_or_minToken_not_found",data:{platform:it,type:"error",auth_txnId:_||"missing_authTxnId",auth_txnId_exists:!!_,ekaSmallToken_exists:!!$}});return}const Mt=await postAuthVerifyV2({txn_id:_,token:$});if(Mt.data){if(setIndividualEnv({extraHeaders:{auth:(yt=Mt.data)==null?void 0:yt.tokens.sess}}),a===ABHA_V3_SKIP_STATES.ABHA_END){if(_e){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Et=window.EkaAbha)==null||Et.onAbhaSuccess(JSON.stringify({response:Mt}));return}onAbhaSuccess({response:Mt}),unMount();return}setIndividualEnv({extraHeaders:{auth:(St=Mt.data)==null?void 0:St.tokens.sess}}),gt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"abha_end_with_no_oid"}}),et(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(At=Mt.data)==null?void 0:At.tokens.sess}}),gt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"auth_verify_success"}}),et(SCREEN_NAMES.GET_ALL_PROFILES);return}}},2e3)}ft()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:tt,loadingText:"Verifying...",successText:"Successfully linked mobile number with ABHA!"})},Pds2Header=({prefixIcon:a,title:_,suffixIcon:$,className:_e=""})=>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 ${_e}`,children:[a||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:_}),$||jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"})]}),Pds2InputField=({PrefixComponent:a,placeholder:_,value:$,onChange:_e,borderStyle:et="",borderRadius:tt="pds2-rounded-16",padding:rt="pds2-px-24 pds2-py-16",textColor:nt="pds2-text-text-black",textStyle:it="",onKeyDown:at=()=>{},type:st="text",label:ut,isMandatory:ot,maxDate:pt,error:ht,autoCapitalize:dt="off",autoCorrect:gt="off",disabled:lt,inputMode:ft,autoFocus:ct,pattern:mt,maxLength:yt,autoComplete:Et})=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-8 pds2-w-full",children:[ut?jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-text-04",children:[ut,ot?jsxRuntimeExports.jsx("span",{className:"pds2-text-text-error Body3Semibold",children:"*"}):null]}):null,jsxRuntimeExports.jsxs("label",{className:`${rt} ${tt} ${et} pds2-border ${ht?"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:[a||null,jsxRuntimeExports.jsx("input",{className:`${nt} ${it} pds2-outline-none pds2-w-full pds2-bg-transparent disabled:pds2-text-text-04`,placeholder:_||"Enter Value",value:$,onChange:_e,type:st,max:st==="date"&&pt?pt:void 0,onKeyDown:at,autoCapitalize:dt,autoCorrect:gt,disabled:lt,inputMode:ft,autoFocus:ct,pattern:mt,maxLength:yt,required:ot,autoComplete:Et})]})]}),PatientPds2InputField=a=>jsxRuntimeExports.jsx(Pds2InputField,{...a,textStyle:"Body1Medium",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2"}),Pds2Spinner=({className:a="",size:_=40})=>jsxRuntimeExports.jsx("div",{className:`pds2-w-fit pds2-flex pds2-justify-center pds2-items-center ${a}`,children:jsxRuntimeExports.jsxs("svg",{className:"pds2-animate-spin",id:"svg-spinner",xmlns:"http://www.w3.org/2000/svg",width:_,height:_,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:a})=>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:a}),jsxRuntimeExports.jsx("div",{className:"pds2-w-full pds2-h-1 pds2-bg-border-03"})]}),CreateAbhaWithAadhaarScreen=()=>{const[a,_]=reactExports.useState(!1);useAuthAbhaStore(rt=>rt.setScreen),useAuthAbhaStore(rt=>rt.goBackLoginScreen);const $=useAuthAbhaStore(rt=>rt.setAbhaAuthFlowMethod);useAuthAbhaStore(rt=>rt.initAbhaAppMethod);const _e=useAuthAbhaStore(rt=>rt.clientId);reactExports.useEffect(()=>{var rt,nt,it;if(handleSendEvent({eventName:"page_view",eventData:{page_view:"abha_landing_screen",platform:_e}}),(nt=(rt=window.curio)==null?void 0:rt.pushToMixpanel)==null||nt.call(rt,"page_view",{platform:_e,page_view:"abha_landing_screen"}),(it=window.EkaAbha)!=null&&it.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#E4E1FA"),()=>{var at,st;(at=window.EkaAbha)!=null&&at.changeStatusBarColor&&((st=window==null?void 0:window.EkaAbha)==null||st.changeStatusBarColor("#FFFFFF"))};$(ABHA_AUTH_FLOW_METHOD.MOBILE)},[]);const et=()=>{var rt;(rt=window.EkaAbha)==null||rt.onAbhaClose(),unMount()},tt=["eka-web","phr"];return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-01 pds2-h-full",children:[tt.includes(_e)?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:et,children:jsxRuntimeExports.jsx(n$2,{})}),title:"",className:"pds2-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx(LoginWithAadhaar,{openInfoDialog:()=>_(!0)}),jsxRuntimeExports.jsx(OtherLoginOptions,{}),jsxRuntimeExports.jsx(BottomSheetWrapper,{isOpen:a,setIsOpen:_,shouldCloseOnClickOutside:!0,children:jsxRuntimeExports.jsx(BottomSheetContent,{onClose:()=>_(!1)})})]})},BottomSheetContent=({onClose:a})=>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:a,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(t$6,{className:"pds2-w-18 pds2-h-18 pds2-text-text-03"})})}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-12 pds2-flex pds2-flex-col pds2-items-center pds2-justify-center",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5m4sx4a000c0tg9a5fo1gkz.webp",alt:"nha-icon",className:"pds2-h-52"}),jsxRuntimeExports.jsx("div",{className:"Heading4Semibold pds2-text-text-black",children:"Terms & Conditions"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-text-03 pds2-py-16",children:"I, hereby declare that I am voluntarily sharing my identity information with National Health Authority (NHA) for the sole purpose of creation of ABHA number. I understand that my ABHA number can be used and shared for purposes as may be notified by ABDM (Ayushman Bharat Digital Mission) from time to time including provision of healthcare services. Further, I am aware that my personal identifiable information (Name, Address, Age, Date of Birth, Gender and Photograph) may be made available to the entities working in the National Digital Health Ecosystem (NDHE) which inter alia includes stakeholders and entities such as healthcare professionals (e.g. doctors), facilities"}),jsxRuntimeExports.jsx(Pds2Button,{title:"Okay, Got it!",onClick:a,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(n$1,{className:"pds2-w-20 pds2-h-20 pds2-text-icon-success-02"})}]},{textSeparatorTitle:"Login with ABHA",loginCTA:[{method:ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,title:"ABHA",prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})}]}],OtherLoginOptions=()=>{const a=useAuthAbhaStore(nt=>nt.setAbhaAuthFlowMethod),_=useAuthAbhaStore(nt=>nt.setScreen),$=useAuthAbhaStore(nt=>nt.abhaAuthFlowMethod),[_e,et]=reactExports.useState($??ABHA_AUTH_FLOW_METHOD.MOBILE);useAuthAbhaStore(nt=>nt.initAbhaAppMethod);const tt=useAuthAbhaStore(nt=>nt.clientId),rt=useAuthAbhaStore(nt=>nt.isNewLoginOrCreateFlow);return reactExports.useEffect(()=>{$&&$!==_e&&et($)},[$]),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-12",children:loginOptions.map(nt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TextSeparator,{title:nt.textSeparatorTitle}),nt.loginCTA.filter(it=>it.title==="ABHA"?!0:_e===ABHA_AUTH_FLOW_METHOD.MOBILE?it.method===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:_e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?it.method===ABHA_AUTH_FLOW_METHOD.MOBILE:!0).map(it=>jsxRuntimeExports.jsx(Pds2CustomButton,{prefixIcon:it.prefixIcon,title:it.title,suffixIcon:jsxRuntimeExports.jsx(c$2,{className:"pds2-ml-auto pds2-h-16 pds2-w-16 pds2-text-text-04 -pds2-rotate-90","aria-hidden":"true"}),onClick:()=>{var at,st;if((st=(at=window.curio)==null?void 0:at.pushToMixpanel)==null||st.call(at,"abha_landing_screen_clicks",{platform:tt,type:it.method===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"use Aadhaar":"use Mobile"}),it.title==="ABHA"){_(rt?SCREEN_NAMES.LOGIN_OR_CREATE_ABHA:SCREEN_NAMES.LOGIN_WITH_ABHA);return}it.method===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?et(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER):it.method===ABHA_AUTH_FLOW_METHOD.MOBILE&&et(ABHA_AUTH_FLOW_METHOD.MOBILE),a(it.method)}},it.method))]}))})},LoginWithAadhaar=({openInfoDialog:a})=>{const _=useAuthAbhaStore(Rt=>Rt.setScreen),$=useAuthAbhaStore(Rt=>Rt.abhaAuthFlowMethod),_e=useAuthAbhaStore(Rt=>Rt.setRegistrationType),et=useAuthAbhaStore(Rt=>Rt.setAadhaarInitResponse),tt=useAuthAbhaStore(Rt=>Rt.setMobileInitResponse),rt=useAuthAbhaStore(Rt=>Rt.setBottomsheetErrorInfo),nt=useAuthAbhaStore(Rt=>Rt.clearAbhaAuthStore);useAuthAbhaStore(Rt=>Rt.initAbhaAppMethod);const it=useAuthAbhaStore(Rt=>Rt.initAbhaAppMobileNumber),at=useAuthAbhaStore(Rt=>Rt.isLoggedInFromRedirect),[st,ut]=reactExports.useState(""),[ot,pt]=reactExports.useState(""),[ht,dt]=reactExports.useState(!1),[gt,lt]=reactExports.useState(!1),[ft,ct]=reactExports.useState(null),[mt,yt]=reactExports.useState(!0),[Et,St]=reactExports.useState(!1),[At,Mt]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),Nt=!!it,kt=useAuthAbhaStore(Rt=>Rt.clientId),Pt=useAuthAbhaStore(Rt=>Rt.isEkaAppLogin),Dt=useAuthAbhaStore(Rt=>Rt.isDocAppRequest),Ot=useAuthAbhaStore(Rt=>Rt.setIsApiTriggered),wt=useAuthAbhaStore(Rt=>Rt.isApiTriggered),_t=useAuthAbhaStore(Rt=>Rt.setSelectedAbhaFlow);useAuthAbhaStore(Rt=>Rt.isNewLoginOrCreateFlow),reactExports.useEffect(()=>{it&&(pt(it),lt(it.length===10))},[it]),reactExports.useEffect(()=>{var Ht,jt;if(wt){console.log("Api is already triggered: ",wt);return}const Rt=st&&st.length===12&&mt,Lt=ot&&ot.length===10&&mt;if(console.log("Conditions check:","isLoggedInFromRedirect:",at,"shouldTriggerAadhaar:",Rt,"shouldTriggerMobile:",Lt),at||Rt||Lt){Ot(!0),console.log("Setting hasTriggered to true and proceeding with registration");let Qt="";Rt?Qt="abha_aadhaar_otp_verify_clicks":Lt&&(Qt="abha_mobile_otp_verify_clicks"),Qt&&((jt=(Ht=window.curio)==null?void 0:Ht.pushToMixpanel)==null||jt.call(Ht,Qt,{platform:kt,type:"next"})),Ct()}},[at,st,ot,mt,wt]);const bt=(Rt,Lt)=>{Mt(Ht=>({...Ht,[Rt]:Lt}))},vt=Rt=>{const Lt=Rt.target.value;Lt.length<=10&&(pt(Lt),lt(Lt.length===10),ct(null))},xt=({inputVal:Rt})=>{ft&&ct(null),Rt.length===12&&ut(Rt)},Ct=async()=>{var Ht,jt,Qt,$t,Bt,Vt,Kt,qt,Yt,Gt,Xt,er,dr,ir,rr,Ut,zt,sr,lr,vr;ct(null);const Rt=$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"aadhaar":"mobile";bt(Rt,LOADING_STATE.LOADING);let Lt="";if(!Pt){handleSendEvent({eventName:"abha_create_auth_api_trigger",eventData:{type:"api_trigger",platform:kt,isEkaAppLogin:Pt?"true":"false"}}),(jt=(Ht=window.curio)==null?void 0:Ht.pushToMixpanel)==null||jt.call(Ht,"abha_create_auth_api_trigger",{platform:kt,type:"api_trigger",isEkaAppLogin:Pt?"true":"false"});const{txn_id:Wt,error:Zt}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!Wt){handleSendEvent({eventName:"abha_create_auth_txnId_not_found",eventData:{type:"api_trigger",platform:kt,transactionId:Wt||"",isEkaAppLogin:Pt?"true":"false"}}),($t=(Qt=window.curio)==null?void 0:Qt.pushToMixpanel)==null||$t.call(Qt,"abha_create_auth_txnId_not_found",{platform:kt,type:"api_trigger",transactionId:Wt||"",isEkaAppLogin:Pt?"true":"false"}),ct((Zt==null?void 0:Zt.message)||"Something went wrong"),bt(Rt,LOADING_STATE.REJECTED);return}Lt=Wt,handleSendEvent({eventName:"abha_create_auth_api_trigger_success",eventData:{type:"api_trigger",platform:kt,authTransactionId:Lt,isEkaAppLogin:Pt?"true":"false"}}),(Vt=(Bt=window.curio)==null?void 0:Bt.pushToMixpanel)==null||Vt.call(Bt,"abha_create_auth_api_trigger_success",{platform:kt,type:"api_trigger",authTransactionId:Lt,isEkaAppLogin:Pt?"true":"false"}),await postAuthLogoutV2()}if($===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){if(handleSendEvent({eventName:"abha_aadhaar_init_api_trigger_initiate",eventData:{type:"api_trigger",platform:kt,isEkaAppLogin:Pt?"true":"false"}}),(qt=(Kt=window.curio)==null?void 0:Kt.pushToMixpanel)==null||qt.call(Kt,"abha_aadhaar_init_api_trigger_initiate",{platform:kt,type:"api_trigger",isEkaAppLogin:Pt?"true":"false"}),bt("aadhaar",LOADING_STATE.LOADING),st.length!==12){ct("Please enter valid 12 digit Aadhaar number"),bt("aadhaar",LOADING_STATE.REJECTED);return}if(!mt){ct("Please provide consent to create ABHA"),bt("aadhaar",LOADING_STATE.REJECTED);return}const{txn_id:Wt,hint:Zt,error:mr,action:yr}=await postRegisterAadhaarInit({aadhaar_number:st});if(Wt&&Zt){et({authTxnId:Lt,txnId:Wt,aadhaarOtpSentToHint:Zt}),handleSendEvent({eventName:"abha_aadhaar_init_api_trigger_success",eventData:{type:"api_trigger",platform:kt,transactionId:Wt,isEkaAppLogin:Pt?"true":"false"}}),(Gt=(Yt=window.curio)==null?void 0:Yt.pushToMixpanel)==null||Gt.call(Yt,"abha_aadhaar_init_api_trigger_success",{platform:kt,type:"api_trigger",transactionId:Wt,isEkaAppLogin:Pt?"true":"false"}),bt("aadhaar",LOADING_STATE.RESOLVED),_e(REGISTRATION_TYPE.CREATE),_(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}handleSendEvent({eventName:"abha_aadhaar_init_api_trigger_failure",eventData:{type:"api_trigger",platform:kt,transactionId:Wt||"",isEkaAppLogin:Pt?"true":"false"}}),(er=(Xt=window.curio)==null?void 0:Xt.pushToMixpanel)==null||er.call(Xt,"abha_aadhaar_init_api_trigger_failure",{platform:kt,type:"api_trigger",transactionId:Wt||"",isEkaAppLogin:Pt?"true":"false"}),bt("aadhaar",LOADING_STATE.REJECTED),yr?rt(yr):ct(mr||"Something went wrong")}else{bt("mobile",LOADING_STATE.LOADING);const Wt=it||ot;if(!Wt||Wt.length!==10)return handleSendEvent({eventName:"abha_mobile_number_length_error",eventData:{type:"verify",platform:kt,mobileNumber:Wt,isEkaAppLogin:Pt?"true":"false"}}),(ir=(dr=window.curio)==null?void 0:dr.pushToMixpanel)==null||ir.call(dr,"abha_mobile_number_length_error",{platform:kt,type:"verify",mobileNumber:Wt,isEkaAppLogin:Pt?"true":"false"}),ct("Please enter valid 10 digit mobile number"),bt("mobile",LOADING_STATE.REJECTED),!1;handleSendEvent({eventName:"abha_mobile_init_api_trigger_initiate",eventData:{type:"api_trigger",platform:kt,isEkaAppLogin:Pt?"true":"false"}}),(Ut=(rr=window.curio)==null?void 0:rr.pushToMixpanel)==null||Ut.call(rr,"abha_mobile_init_api_trigger_initiate",{platform:kt,type:"api_trigger",isEkaAppLogin:Pt?"true":"false"});const{txn_id:Zt,hint:mr,error:yr,action:Ar}=await postRegisterMobileInit({mobile_number:Wt});if(Zt&&mr){tt({authTxnId:Lt,txnId:Zt,mobileOtpSentToHint:mr}),handleSendEvent({eventName:"abha_mobile_init_api_trigger_success",eventData:{type:"api_trigger",platform:kt,transactionId:Zt,isEkaAppLogin:Pt?"true":"false",authTransactionId:Lt}}),(sr=(zt=window.curio)==null?void 0:zt.pushToMixpanel)==null||sr.call(zt,"abha_mobile_init_api_trigger_success",{platform:kt,type:"api_trigger",transactionId:Zt,isEkaAppLogin:Pt?"true":"false",authTransactionId:Lt}),_t("mobile"),bt("mobile",LOADING_STATE.RESOLVED),_e(REGISTRATION_TYPE.CREATE),_t("mobile"),console.log("update the selected abha flow to mobile"),_(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}handleSendEvent({eventName:"abha_mobile_init_api_trigger_failure",eventData:{type:"api_trigger",platform:kt,transactionId:Zt||"",isEkaAppLogin:Pt?"true":"false",authTransactionId:Lt}}),(vr=(lr=window.curio)==null?void 0:lr.pushToMixpanel)==null||vr.call(lr,"abha_mobile_init_api_trigger_failure",{platform:kt,type:"api_trigger",transactionId:Zt||"",isEkaAppLogin:Pt?"true":"false",authTransactionId:Lt}),bt("mobile",LOADING_STATE.REJECTED),Ar?rt(Ar):ct(yr||"Something went wrong")}},Tt=Rt=>{var Ht,jt;Rt.stopPropagation(),console.log("selectedMethod : ",$);const Lt=$==="aadhaar_number"?"abha_aadhaar_otp_verify_clicks":"abha_mobile_otp_verify_clicks";handleSendEvent({eventName:Lt,eventData:{type:"verify",platform:kt}}),(jt=(Ht=window.curio)==null?void 0:Ht.pushToMixpanel)==null||jt.call(Ht,Lt,{platform:kt,type:"next"}),ft&&ct(null),Ct()},It=()=>{const Rt=useAuthAbhaStore.getState().initAbhaAppMobileNumber,Lt=useAuthAbhaStore.getState().initAbhaAppMethod,Ht=useAuthAbhaStore.getState().isEkaAppLogin,jt=useAuthAbhaStore.getState().isApiTriggered,Qt=useAuthAbhaStore.getState().clientId;_(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR),nt(),useAuthAbhaStore.setState({initAbhaAppMobileNumber:Rt}),useAuthAbhaStore.setState({screen:[SCREEN_NAMES.LOGIN_WITH_ABHA]}),useAuthAbhaStore.setState({isEkaAppLogin:Ht}),useAuthAbhaStore.setState({initAbhaAppMethod:Lt}),useAuthAbhaStore.setState({isApiTriggered:jt}),useAuthAbhaStore.setState({clientId:Qt}),rt(null)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-16 pds2-p-16 pds2-text-center",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64 pds2-rounded-16"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-16",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-black Heading3Semibold",children:Dt?"Create ABHA":"Create your ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03 Body2Regular",children:$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"Enter 12 digit Aadhaar number":"Enter 10 digit mobile number"})]}),$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?jsxRuntimeExports.jsx(SpacedInputComponent,{numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:xt,setIsValid:dt,error:ft}):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:ot,onChange:vt,disabled:Nt,type:"tel",autoComplete:"tel-national",placeholder:"Mobile Number",PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-border-brand-02 pds2-pr-24",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4mlct2900000tg98p8u967s.webp",alt:"indian-flag-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-black",children:"+91"})]})})})]}),jsxRuntimeExports.jsx(CustomCheckBox,{id:"aadhaar-number",label:"I give consent to NHA to share my identity info",openInfoDialog:a,className:"pds2-justify-between",isCheckboxChecked:mt,onCheckboxChange:Rt=>{ft&&ct(null),St(!1),yt(Rt)},isErrored:Et}),jsxRuntimeExports.jsx("div",{onClick:()=>{mt||St(!0)},children:jsxRuntimeExports.jsx(Pds2Button,{title:At[$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"aadhaar":"mobile"]===LOADING_STATE.LOADING?"Verifying":"Next",onClick:Tt,IconComponent:At[$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"aadhaar":"mobile"]===LOADING_STATE.LOADING?()=>jsxRuntimeExports.jsx(Pds2Spinner,{className:"pds2-ml-8",size:16}):void 0,state:$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?ht&&mt?"enabled":"disabled":gt&&mt?"enabled":"disabled",className:"pds2-w-full"})}),ft&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Semibold",children:ft})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:It})]})},CustomCheckBox=({id:a,label:_,onCheckboxChange:$,openInfoDialog:_e,className:et="",isCheckboxChecked:tt=!1,isErrored:rt=!1})=>jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-items-center pds2-space-x-8 ${et} ${rt?"pds2-text-text-error":"pds2-text-text-03"}`,children:[jsxRuntimeExports.jsxs("label",{htmlFor:a,className:"Body2Regular pds2-flex pds2-items-center pds2-space-x-8",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:tt,onChange:nt=>$(nt.target.checked),id:a,className:"pds2-hidden"}),tt?jsxRuntimeExports.jsx(l$3,{className:"pds2-w-14 pds2-h-14 pds2-text-icon-brand"}):jsxRuntimeExports.jsx(p$4,{className:"pds2-w-14 pds2-h-14"}),jsxRuntimeExports.jsx("span",{children:_})]}),_e&&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(h$1,{className:"pds2-w-14 pds2-h-14 pds2-text-text-04"})})]}),AbhaOtpAndMobileScreen=()=>{const a=useAuthAbhaStore(jt=>jt.setAbhaAddressList),_=useAuthAbhaStore(jt=>jt.setScreen),$=useAuthAbhaStore(jt=>jt.txnId),_e=useAuthAbhaStore(jt=>jt.setTxnId),et=useAuthAbhaStore(jt=>jt.aadhaarOtpSentToHint),tt=useAuthAbhaStore(jt=>jt.setAadhaarVerificationSkipStateStatus),rt=useAuthAbhaStore(jt=>jt.setEkaSmallToken),nt=useAuthAbhaStore(jt=>jt.setOid),it=useAuthAbhaStore(jt=>jt.clearAbhaAuthStore),at=useAuthAbhaStore(jt=>jt.setBottomsheetErrorInfo),st=useAuthAbhaStore(jt=>jt.goBackLoginScreen),[ut,ot]=reactExports.useState(""),[pt,ht]=reactExports.useState(!1),[dt,gt]=reactExports.useState(""),[lt,ft]=reactExports.useState(null),[ct,mt]=reactExports.useState(null),[yt,Et]=reactExports.useState(!0),[St,At]=reactExports.useState(!0),[Mt,Nt]=reactExports.useState(LOADING_STATE.IDLE),kt=useAuthAbhaStore(jt=>jt.setSelectedAbhaAddress),Pt=useAuthAbhaStore(jt=>jt.initAbhaAppMobileNumber),Dt=useAuthAbhaStore(jt=>jt.setEkaProfileInfo),Ot=useAuthAbhaStore(jt=>jt.clientId),wt=useAuthAbhaStore(jt=>jt.isEkaAppLogin),_t=useAuthAbhaStore(jt=>jt.isNewLoginOrCreateFlow),bt=GET_EXTRA_HEADERS(),vt=useAuthAbhaStore(jt=>jt.abhaAuthFlowMethod),xt=({name:jt,data:Qt={}})=>{var Vt,Kt;const Bt={...{login_platform:Ot,is_eka_app_login:wt?"true":"false",is_new_login_or_create_flow:_t?"true":"false",txn_id:$||"missing txnId",oid:bt!=null&&bt["X-User-ID"]?"true":"false",access_token:bt!=null&&bt.auth?"true":"false",flow:vt??""},...Qt};handleSendEvent({eventName:jt,eventData:Bt}),(Kt=(Vt=window.curio)==null?void 0:Vt.pushToMixpanel)==null||Kt.call(Vt,jt,Bt)};reactExports.useEffect(()=>{Pt&>(Pt)},[Pt]);const Ct=({otp:jt})=>{xt({name:"abha_aadhaar_otp_enter_clicks",data:{page_view:"aadhaar_verification",platform:Ot,otp_entered:!0}}),ot(jt)},Tt=({mobileNumber:jt})=>{ct||ft(null),gt(jt),xt({name:"abha_aadhaar_mobile_otp_enter",data:{page_view:"aadhaar_verification",platform:Ot}})},It=async()=>{if(!$){xt({name:"aadhaar_otp_resend_clicked_no_txnId",data:{platform:Ot,txn_id:$||"missing_txnId",txn_id_exists:!!$}});return}const{txn_id:jt,error:Qt,action:$t}=await postRegisterAadhaarResendOtp({txn_id:$});if(!jt){xt({name:"aadhaar_otp_resend_failed",data:{platform:Ot,reason:Qt||"no_txn_id",reason_exists:!!Qt}}),ft(Qt||"Something went wrong, please try again"),$t&&at($t);return}xt({name:"aadhaar_otp_resend_success",data:{platform:Ot,txn_id:jt}}),_e(jt)},Rt=async()=>{if(!$){xt({name:"aadhaar_otp_verification_no_txnId",data:{platform:Ot,type:"verify",txn_id:$||"missing_txnId",txn_id_exists:!!$}});return}xt({name:"abha_aadhaar_otp_verify_submitted",data:{platform:Ot,type:"verify"}}),Nt(LOADING_STATE.LOADING);const{txn_id:jt,skip_state:Qt,profile:$t,eka:Bt,error:Vt,abha_profiles:Kt,source_error:qt,action:Yt}=await postRegisterAadhaarVerify({otp:ut,mobile:dt,txn_id:$});if(!jt||!Qt){xt({name:"aadhaar_otp_verification_failed",data:{platform:Ot,reason:Vt||"missing_txn_id_or_skip_state",txn_id_exists:!!jt,skip_state_exists:!!Qt}}),Nt(LOADING_STATE.REJECTED),mt(qt??null),ft(Vt||"Something went wrong, please try again"),Yt&&at(Yt);return}xt({name:"aadhaar_otp_verification_success",data:{platform:Ot,skip_state:Qt,oid:Bt==null?void 0:Bt.oid}}),Nt(LOADING_STATE.RESOLVED),tt(Qt),Bt!=null&&Bt.min_token&&rt(Bt.min_token),$t&&$t.abha_address&&kt($t.abha_address),Bt!=null&&Bt.oid&&nt(Bt.oid),$t&&Dt({date_of_birth:`${$t.year_of_birth}-${String($t.month_of_birth).padStart(2,"0")}-${String($t.day_of_birth).padStart(2,"0")}`,firstname:$t.first_name,lastname:$t.last_name,pincode:$t.pincode,gender:$t.gender,name:$t.first_name+" "+$t.last_name,mobile:$t.mobile,oid:Bt==null?void 0:Bt.oid,abha_address:$t.abha_address,abha_number:$t.abha_number}),xt({name:"abha_aadhaar_otp_verification_success",data:{platform:Ot,skip_state:Qt,oid:Bt==null?void 0:Bt.oid}}),Kt&&a(Kt),_(SCREEN_NAMES.AADHAAR_VERIFICATION_STATUS)},Lt=()=>{_(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const jt=useAuthAbhaStore.getState().isEkaAppLogin;it(),useAuthAbhaStore.setState({isEkaAppLogin:jt})},Ht=pt&&dt.length===10&&yt&&St;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:st,children:jsxRuntimeExports.jsx(n$2,{className:""})}),title:"Create ABHA",suffixIcon:jsxRuntimeExports.jsx(p$3,{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:et||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:Ct,onResendOtpClick:It,setIsValid:ht,error:ct?lt:null,setError:ft}),jsxRuntimeExports.jsx(EnterMobileNumberCard,{mobileNumber:dt,onMobileNumberChange:Tt,isOtpValid:pt,error:ct?null:lt,onKeyDown:({key:jt})=>{jt==="Enter"&&Rt()}}),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:yt,onCheckboxChange:jt=>{Et(jt)}})})]}),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:!Ht||Mt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:Rt,isLoading:Mt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Lt})]})},EnterMobileNumberCard=({mobileNumber:a,onMobileNumberChange:_,isOtpValid:$,onKeyDown:_e,error:et})=>{const tt=reactExports.useRef(null);reactExports.useEffect(()=>{tt.current&&$&&tt.current.focus()},[$]);const rt=useAuthAbhaStore(at=>at.abhaAuthFlowMethod),nt=useAuthAbhaStore(at=>at.initAbhaAppMobileNumber),it=rt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!nt;return nt&&(a=nt),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(n$1,{className:"pds2-w-48 pds2-h-48 pds2-text-icon-success-02 pds2-p-6"})]}),jsxRuntimeExports.jsxs("label",{className:`pds2-relative pds2-border pds2-rounded-12 ${et?"pds2-border-border-error focus-within:pds2-border-border-error ":"pds2-border-border-03 focus-within:pds2-border-border-brand-01 "}`,children:[jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-absolute pds2-left-16 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-text-text-01",children:"+91 -"}),jsxRuntimeExports.jsx("input",{ref:tt,placeholder:"Mobile Number",type:"tel",autoComplete:"tel-national",value:a,disabled:it,onPaste:at=>{at.preventDefault();const st=at.clipboardData.getData("text").replace(/[^0-9]/g,"");_({mobileNumber:st.slice(-10)})},onChange:at=>{if(at.target.value.length>10)return;const st=at.target.value.replace(/[^0-9]/g,"");_({mobileNumber:st.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:_e})]}),et&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-text-error",children:et}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-space-x-8 pds2-text-text-03"})]})},CustomCardLayout=({children:a,className:_="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 ${_}`,children:a}),AbhaPhoneNumberVerificationScreen=()=>{const a=useAuthAbhaStore(_t=>_t.txnId),_=useAuthAbhaStore(_t=>_t.clearAbhaAuthStore),$=useAuthAbhaStore(_t=>_t.setBottomsheetErrorInfo),_e=useAuthAbhaStore(_t=>_t.setEkaSmallToken),et=useAuthAbhaStore(_t=>_t.setOid),tt=useAuthAbhaStore(_t=>_t.setAadhaarVerificationSkipStateStatus),rt=useAuthAbhaStore(_t=>_t.setSelectedAbhaAddress),nt=useAuthAbhaStore(_t=>_t.setAbhaAddressList),it=useAuthAbhaStore(_t=>_t.setScreen),at=useAuthAbhaStore(_t=>_t.abhaAuthFlowMethod),[st,ut]=reactExports.useState(""),[ot,pt]=reactExports.useState(!1),[ht,dt]=reactExports.useState(""),[gt,lt]=reactExports.useState(LOADING_STATE.IDLE),ft=useAuthAbhaStore(_t=>_t.setTxnId),ct=useAuthAbhaStore(_t=>_t.setEkaProfileInfo),mt=useAuthAbhaStore(_t=>_t.clientId),yt=useAuthAbhaStore(_t=>_t.selectedAbhaFlow),Et=useAuthAbhaStore(_t=>_t.isNewLoginOrCreateFlow),St=useAuthAbhaStore(_t=>_t.isEkaAppLogin),At=GET_EXTRA_HEADERS(),[Mt,Nt]=reactExports.useState(!1);console.log("selectedAbhaFlow is : ",yt);const kt=({name:_t,data:bt={}})=>{var Ct,Tt;const xt={...{login_platform:mt,is_eka_app_login:St?"true":"false",is_new_login_or_create_flow:Et?"true":"false",txn_id:a||"missing txnId",oid:At!=null&&At["X-User-ID"]?"true":"false",access_token:At!=null&&At.auth?"true":"false",flow:at??""},...bt};handleSendEvent({eventName:_t,eventData:xt}),(Tt=(Ct=window.curio)==null?void 0:Ct.pushToMixpanel)==null||Tt.call(Ct,_t,xt)};reactExports.useEffect(()=>{kt({name:"page_view",data:{page_view:"abha_mobile_otp_verify",platform:mt}})},[]);const Pt=({otp:_t})=>{ut(_t),kt({name:"abha_mobile_otp_completion",data:{platform:mt,type:"verify",otp_entered:!0}}),Ot(_t)},Dt=async()=>{if(!a){kt({name:"abha_mobile_otp_resend_clicked_no_txnId",data:{type:"resend",platform:mt,txn_id:"missing_txnId",txn_id_exists:!1}});return}kt({name:"abha_mobile_otp_verify_clicks",data:{type:"resend",platform:mt}}),console.log("selectedMethod",at);let _t;yt==="mobile"?(kt({name:"abha_mobile_otp_resend_initiated",data:{platform:mt,type:"verify",flow_type:yt}}),console.log("selectedFlow is mobile, so triggering mobile resend otp api",yt),_t=await postAbdmRegisterMobileResendOtp({txn_id:a})):(kt({name:"aadhaar_mobile_otp_resend_initiated",data:{platform:mt,type:"verify",flow_type:yt}}),console.log("selectedFlow is aadhaar, so triggering aadhaar resend otp api",yt),_t=await postRegisterAadhaarMobileResendOtp({txn_id:a}));const{txn_id:bt,error:vt,action:xt}=_t;if(!bt){kt({name:"abha_mobile_otp_resend_failed",data:{platform:mt,reason:vt||"no_txn_id",reason_exists:!!vt}}),dt(vt||"Something went wrong, please try again"),xt&&$(xt);return}bt&&ft(bt),kt({name:"abha_mobile_otp_resend_success",data:{platform:mt,txn_id:bt}})},Ot=async _t=>{if(!a){kt({name:"abha_mobile_verify_no_txnId",data:{type:"verify",platform:mt,txn_id:"missing_txnId",txn_id_exists:!1}});return}kt({name:"abha_mobile_otp_submitted",data:{type:"verify",platform:mt,txn_id:a}}),lt(LOADING_STATE.LOADING);try{let bt;yt==="mobile"?(kt({name:"abha_mobile_otp_verification_started",data:{platform:mt,flow_type:yt}}),bt=await postAbdmRegisterMobileVerify({otp:_t,txn_id:a})):(kt({name:"aadhaar_otp_verification_started",data:{platform:mt,flow_type:yt}}),bt=await postRegisterAadhaarMobileVerify({otp:_t,txn_id:a}));const{txn_id:vt,skip_state:xt,eka:Ct,profile:Tt,error:It,action:Rt,abha_profiles:Lt}=bt;if(!vt||!xt){kt({name:"abha_mobile_otp_verification_failed",data:{platform:mt,reason:It||"missing_txn_id_or_skip_state",txn_id_exists:!!vt,skip_state_exists:!!xt}}),lt(LOADING_STATE.REJECTED),dt(It||"Something went wrong, please try again"),Rt&&$(Rt);return}if(lt(LOADING_STATE.RESOLVED),tt(xt),Ct!=null&&Ct.min_token&&_e(Ct.min_token),Ct!=null&&Ct.oid&&et(Ct.oid),Tt&&Tt.abha_address&&rt(Tt.abha_address),Tt&&ct({date_of_birth:`${Tt.year_of_birth}-${String(Tt.month_of_birth).padStart(2,"0")}-${String(Tt.day_of_birth).padStart(2,"0")}`,firstname:Tt.first_name,lastname:Tt.last_name,pincode:Tt.pincode,gender:Tt.gender,oid:Ct==null?void 0:Ct.oid,abha_address:Tt==null?void 0:Tt.abha_address,abha_number:Tt==null?void 0:Tt.abha_number,middlename:Tt==null?void 0:Tt.middle_name}),console.log("remove oid from set indvidual env"),kt({name:"abha_mobile_otp_verification_success",data:{platform:mt,skip_state:xt}}),Lt!=null&&Lt.length){nt(Lt),it(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}it(SCREEN_NAMES.ABHA_MOBILE_LINKING_STATUS)}catch{kt({name:"abha_mobile_otp_verification_exception",data:{platform:mt,reason:"exception_thrown"}}),lt(LOADING_STATE.REJECTED),dt("Something went wrong, please try again")}},wt=()=>{it(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const _t=useAuthAbhaStore.getState().isEkaAppLogin;_(),useAuthAbhaStore.setState({isEkaAppLogin:_t})};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:()=>Nt(!0),children:jsxRuntimeExports.jsx(n$2,{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:Pt,onResendOtpClick:Dt,error:ht,setIsValid:_t=>{ht&&dt(null),pt(_t)},prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abdm-abha-icon",className:"pds2-w-48"})})}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full pds2-border pds2-border-border-brand-02",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!ot||gt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>Ot(st),isLoading:gt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:wt}),jsxRuntimeExports.jsx(ExitPopup,{open:Mt,setOpen:Nt})]})},usePostProfileSwitch=()=>useMutation({mutationFn:({oid:a,token:_})=>postProfileSwitch({oid:a}),onSuccess:a=>{var _;if(a){const{skip_state:$,method:_e,sess:et,refresh:tt,profile:rt,txn_id:nt,error:it}=a,at={skip_state:$,method:_e,data:{tokens:{sess:et,refresh:tt},profile:rt},txn_id:nt,...it?{error:{code:it.code,message:it.message}}:null};if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(_=window.EkaAbha)==null||_.onAbhaSuccess(JSON.stringify({response:at}));return}onAbhaSuccess({response:at}),unMount();return}}}),usePostRegisterMobileCreatePhr=()=>{const a=useAuthAbhaStore(_=>_.setSelectedAbhaAddress);return useMutation({mutationFn:_=>postAbdmRegisterMobileCreatePhr(_),onSuccess(_){_.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],_.profile),a(_.profile.abha_address))}})},AbhaAddressCard=({address:a,setAddress:_,suggestions:$})=>jsxRuntimeExports.jsxs(CustomCardLayout,{className:"pds2-space-y-24",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-12",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cmgkgn6m500010td37a5wbbl3.webp",alt:"at-the-rate-icon",className:"pds2-w-48"}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Body1Regular",children:"Choose your ABHA Address"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-secondary BodyFootnote",children:"This ABHA Address will be used as your identity for ABHA Services."})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-2 pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsxs("label",{htmlFor:"abha-address",className:"pds2-text-text-brand BodyInputLabel",children:["ABHA Address",jsxRuntimeExports.jsx("sup",{className:"pds2-text-text-error Body3Semibold",children:" *"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-text-text-01 Body1Semibold",children:[jsxRuntimeExports.jsx("input",{value:a,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:_e=>{const et=_e.target.value.replace(/[^a-zA-Z0-9]/g,"");et.length<=18&&_(et)},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"})]}),$&&$.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:$.map(_e=>jsxRuntimeExports.jsxs("label",{className:`
|
|
48
|
+
*/var Matrix=function(){var e=Math.cos,s=Math.sin,i=Math.tan,a=Math.round;function o(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(lt){if(lt===0)return this;var ct=e(lt),yt=s(lt);return this._t(ct,-yt,0,0,yt,ct,0,0,0,0,1,0,0,0,0,1)}function g(lt){if(lt===0)return this;var ct=e(lt),yt=s(lt);return this._t(1,0,0,0,0,ct,-yt,0,0,yt,ct,0,0,0,0,1)}function _(lt){if(lt===0)return this;var ct=e(lt),yt=s(lt);return this._t(ct,0,yt,0,0,1,0,0,-yt,0,ct,0,0,0,0,1)}function b(lt){if(lt===0)return this;var ct=e(lt),yt=s(lt);return this._t(ct,-yt,0,0,yt,ct,0,0,0,0,1,0,0,0,0,1)}function $(lt,ct){return this._t(1,ct,lt,1,0,0)}function et(lt,ct){return this.shear(i(lt),i(ct))}function ot(lt,ct){var yt=e(ct),mt=s(ct);return this._t(yt,mt,0,0,-mt,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,-mt,0,0,mt,yt,0,0,0,0,1,0,0,0,0,1)}function rt(lt,ct,yt){return!yt&&yt!==0&&(yt=1),lt===1&&ct===1&&yt===1?this:this._t(lt,0,0,0,0,ct,0,0,0,0,yt,0,0,0,0,1)}function at(lt,ct,yt,mt,wt,Tt,bt,jt,Lt,Rt,It,Ft,Pt,Vt,Gt,$t){return this.props[0]=lt,this.props[1]=ct,this.props[2]=yt,this.props[3]=mt,this.props[4]=wt,this.props[5]=Tt,this.props[6]=bt,this.props[7]=jt,this.props[8]=Lt,this.props[9]=Rt,this.props[10]=It,this.props[11]=Ft,this.props[12]=Pt,this.props[13]=Vt,this.props[14]=Gt,this.props[15]=$t,this}function it(lt,ct,yt){return yt=yt||0,lt!==0||ct!==0||yt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,lt,ct,yt,1):this}function st(lt,ct,yt,mt,wt,Tt,bt,jt,Lt,Rt,It,Ft,Pt,Vt,Gt,$t){var Bt=this.props;if(lt===1&&ct===0&&yt===0&&mt===0&&wt===0&&Tt===1&&bt===0&&jt===0&&Lt===0&&Rt===0&&It===1&&Ft===0)return Bt[12]=Bt[12]*lt+Bt[15]*Pt,Bt[13]=Bt[13]*Tt+Bt[15]*Vt,Bt[14]=Bt[14]*It+Bt[15]*Gt,Bt[15]*=$t,this._identityCalculated=!1,this;var er=Bt[0],Wt=Bt[1],tr=Bt[2],Ut=Bt[3],Qt=Bt[4],Mt=Bt[5],Nt=Bt[6],Xt=Bt[7],ir=Bt[8],rr=Bt[9],Dt=Bt[10],Kt=Bt[11],Zt=Bt[12],ar=Bt[13],dr=Bt[14],xr=Bt[15];return Bt[0]=er*lt+Wt*wt+tr*Lt+Ut*Pt,Bt[1]=er*ct+Wt*Tt+tr*Rt+Ut*Vt,Bt[2]=er*yt+Wt*bt+tr*It+Ut*Gt,Bt[3]=er*mt+Wt*jt+tr*Ft+Ut*$t,Bt[4]=Qt*lt+Mt*wt+Nt*Lt+Xt*Pt,Bt[5]=Qt*ct+Mt*Tt+Nt*Rt+Xt*Vt,Bt[6]=Qt*yt+Mt*bt+Nt*It+Xt*Gt,Bt[7]=Qt*mt+Mt*jt+Nt*Ft+Xt*$t,Bt[8]=ir*lt+rr*wt+Dt*Lt+Kt*Pt,Bt[9]=ir*ct+rr*Tt+Dt*Rt+Kt*Vt,Bt[10]=ir*yt+rr*bt+Dt*It+Kt*Gt,Bt[11]=ir*mt+rr*jt+Dt*Ft+Kt*$t,Bt[12]=Zt*lt+ar*wt+dr*Lt+xr*Pt,Bt[13]=Zt*ct+ar*Tt+dr*Rt+xr*Vt,Bt[14]=Zt*yt+ar*bt+dr*It+xr*Gt,Bt[15]=Zt*mt+ar*jt+dr*Ft+xr*$t,this._identityCalculated=!1,this}function dt(lt){var ct=lt.props;return this.transform(ct[0],ct[1],ct[2],ct[3],ct[4],ct[5],ct[6],ct[7],ct[8],ct[9],ct[10],ct[11],ct[12],ct[13],ct[14],ct[15])}function j(){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 ct=0;ct<16;){if(lt.props[ct]!==this.props[ct])return!1;ct+=1}return!0}function _e(lt){var ct;for(ct=0;ct<16;ct+=1)lt.props[ct]=this.props[ct];return lt}function nt(lt){var ct;for(ct=0;ct<16;ct+=1)this.props[ct]=lt[ct]}function ut(lt,ct,yt){return{x:lt*this.props[0]+ct*this.props[4]+yt*this.props[8]+this.props[12],y:lt*this.props[1]+ct*this.props[5]+yt*this.props[9]+this.props[13],z:lt*this.props[2]+ct*this.props[6]+yt*this.props[10]+this.props[14]}}function ht(lt,ct,yt){return lt*this.props[0]+ct*this.props[4]+yt*this.props[8]+this.props[12]}function gt(lt,ct,yt){return lt*this.props[1]+ct*this.props[5]+yt*this.props[9]+this.props[13]}function ft(lt,ct,yt){return lt*this.props[2]+ct*this.props[6]+yt*this.props[10]+this.props[14]}function _t(){var lt=this.props[0]*this.props[5]-this.props[1]*this.props[4],ct=this.props[5]/lt,yt=-this.props[1]/lt,mt=-this.props[4]/lt,wt=this.props[0]/lt,Tt=(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,jt=new Matrix;return jt.props[0]=ct,jt.props[1]=yt,jt.props[4]=mt,jt.props[5]=wt,jt.props[12]=Tt,jt.props[13]=bt,jt}function At(lt){var ct=this.getInverseMatrix();return ct.applyToPointArray(lt[0],lt[1],lt[2]||0)}function kt(lt){var ct,yt=lt.length,mt=[];for(ct=0;ct<yt;ct+=1)mt[ct]=At(lt[ct]);return mt}function St(lt,ct,yt){var mt=createTypedArray("float32",6);if(this.isIdentity())mt[0]=lt[0],mt[1]=lt[1],mt[2]=ct[0],mt[3]=ct[1],mt[4]=yt[0],mt[5]=yt[1];else{var wt=this.props[0],Tt=this.props[1],bt=this.props[4],jt=this.props[5],Lt=this.props[12],Rt=this.props[13];mt[0]=lt[0]*wt+lt[1]*bt+Lt,mt[1]=lt[0]*Tt+lt[1]*jt+Rt,mt[2]=ct[0]*wt+ct[1]*bt+Lt,mt[3]=ct[0]*Tt+ct[1]*jt+Rt,mt[4]=yt[0]*wt+yt[1]*bt+Lt,mt[5]=yt[0]*Tt+yt[1]*jt+Rt}return mt}function Ct(lt,ct,yt){var mt;return this.isIdentity()?mt=[lt,ct,yt]:mt=[lt*this.props[0]+ct*this.props[4]+yt*this.props[8]+this.props[12],lt*this.props[1]+ct*this.props[5]+yt*this.props[9]+this.props[13],lt*this.props[2]+ct*this.props[6]+yt*this.props[10]+this.props[14]],mt}function Ot(lt,ct){if(this.isIdentity())return lt+","+ct;var yt=this.props;return Math.round((lt*yt[0]+ct*yt[4]+yt[12])*100)/100+","+Math.round((lt*yt[1]+ct*yt[5]+yt[13])*100)/100}function xt(){for(var lt=0,ct=this.props,yt="matrix3d(",mt=1e4;lt<16;)yt+=a(ct[lt]*mt)/mt,yt+=lt===15?")":",",lt+=1;return yt}function pt(lt){var ct=1e4;return lt<1e-6&<>0||lt>-1e-6&<<0?a(lt*ct)/ct:lt}function vt(){var lt=this.props,ct=pt(lt[0]),yt=pt(lt[1]),mt=pt(lt[4]),wt=pt(lt[5]),Tt=pt(lt[12]),bt=pt(lt[13]);return"matrix("+ct+","+yt+","+mt+","+wt+","+Tt+","+bt+")"}return function(){this.reset=o,this.rotate=c,this.rotateX=g,this.rotateY=_,this.rotateZ=b,this.skew=et,this.skewFromAxis=ot,this.shear=$,this.scale=rt,this.setTransform=at,this.translate=it,this.transform=st,this.multiply=dt,this.applyToPoint=ut,this.applyToX=ht,this.applyToY=gt,this.applyToZ=ft,this.applyToPointArray=Ct,this.applyToTriplePoints=St,this.applyToPointStringified=Ot,this.toCSS=xt,this.to2dCSS=vt,this.clone=_e,this.cloneFromProps=nt,this.equals=tt,this.inversePoints=kt,this.inversePoint=At,this.getInverseMatrix=_t,this._t=this.transform,this.isIdentity=j,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,s){e==="expressions"&&setExpressionsPlugin(s)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var s=queryString.split("&"),i=0;i<s.length;i+=1){var a=s[i].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},s={};e.registerModifier=i,e.getModifier=a;function i(o,c){s[o]||(s[o]=c)}function a(o,c,g){return new s[o](c,g)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var s={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,s){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,s),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,s){this.s=PropertyFactory.getProp(e,s.s,0,.01,this),this.e=PropertyFactory.getProp(e,s.e,0,.01,this),this.o=PropertyFactory.getProp(e,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,s,i,a,o){var c=[];s<=1?c.push({s:e,e:s}):e>=1?c.push({s:e-1,e:s-1}):(c.push({s:e,e:1}),c.push({s:0,e:s-1}));var g=[],_,b=c.length,$;for(_=0;_<b;_+=1)if($=c[_],!($.e*o<a||$.s*o>a+i)){var et,ot;$.s*o<=a?et=0:et=($.s*o-a)/i,$.e*o>=a+i?ot=1:ot=($.e*o-a)/i,g.push([et,ot])}return g.length||g.push([0,0]),g},TrimModifier.prototype.releasePathsData=function(e){var s,i=e.length;for(s=0;s<i;s+=1)segmentsLengthPool.release(e[s]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var s,i;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),this.s.v>1?s=1+a:this.s.v<0?s=0+a:s=this.s.v+a,this.e.v>1?i=1+a:this.e.v<0?i=0+a:i=this.e.v+a,s>i){var o=s;s=i,i=o}s=Math.round(s*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=s,this.eValue=i}else s=this.sValue,i=this.eValue;var c,g,_=this.shapes.length,b,$,et,ot,rt,at=0;if(i===s)for(g=0;g<_;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(i===1&&s===0||i===0&&s===1){if(this._mdf)for(g=0;g<_;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var it=[],st,dt;for(g=0;g<_;g+=1)if(st=this.shapes[g],!st.shape._mdf&&!this._mdf&&!e&&this.m!==2)st.shape.paths=st.localShapeCollection;else{if(c=st.shape.paths,$=c._length,rt=0,!st.shape._mdf&&st.pathsData.length)rt=st.totalShapeLength;else{for(et=this.releasePathsData(st.pathsData),b=0;b<$;b+=1)ot=bez.getSegmentsLength(c.shapes[b]),et.push(ot),rt+=ot.totalLength;st.totalShapeLength=rt,st.pathsData=et}at+=rt,st.shape._mdf=!0}var j=s,tt=i,_e=0,nt;for(g=_-1;g>=0;g-=1)if(st=this.shapes[g],st.shape._mdf){for(dt=st.localShapeCollection,dt.releaseShapes(),this.m===2&&_>1?(nt=this.calculateShapeEdges(s,i,st.totalShapeLength,_e,at),_e+=st.totalShapeLength):nt=[[j,tt]],$=nt.length,b=0;b<$;b+=1){j=nt[b][0],tt=nt[b][1],it.length=0,tt<=1?it.push({s:st.totalShapeLength*j,e:st.totalShapeLength*tt}):j>=1?it.push({s:st.totalShapeLength*(j-1),e:st.totalShapeLength*(tt-1)}):(it.push({s:st.totalShapeLength*j,e:st.totalShapeLength}),it.push({s:0,e:st.totalShapeLength*(tt-1)}));var ut=this.addShapes(st,it[0]);if(it[0].s!==it[0].e){if(it.length>1){var ht=st.shape.paths.shapes[st.shape.paths._length-1];if(ht.c){var gt=ut.pop();this.addPaths(ut,dt),ut=this.addShapes(st,it[1],gt)}else this.addPaths(ut,dt),ut=this.addShapes(st,it[1])}this.addPaths(ut,dt)}}st.shape.paths=dt}}},TrimModifier.prototype.addPaths=function(e,s){var i,a=e.length;for(i=0;i<a;i+=1)s.addShape(e[i])},TrimModifier.prototype.addSegment=function(e,s,i,a,o,c,g){o.setXYAt(s[0],s[1],"o",c),o.setXYAt(i[0],i[1],"i",c+1),g&&o.setXYAt(e[0],e[1],"v",c),o.setXYAt(a[0],a[1],"v",c+1)},TrimModifier.prototype.addSegmentFromArray=function(e,s,i,a){s.setXYAt(e[1],e[5],"o",i),s.setXYAt(e[2],e[6],"i",i+1),a&&s.setXYAt(e[0],e[4],"v",i),s.setXYAt(e[3],e[7],"v",i+1)},TrimModifier.prototype.addShapes=function(e,s,i){var a=e.pathsData,o=e.shape.paths.shapes,c,g=e.shape.paths._length,_,b,$=0,et,ot,rt,at,it=[],st,dt=!0;for(i?(ot=i._length,st=i._length):(i=shapePool.newElement(),ot=0,st=0),it.push(i),c=0;c<g;c+=1){for(rt=a[c].lengths,i.c=o[c].c,b=o[c].c?rt.length:rt.length+1,_=1;_<b;_+=1)if(et=rt[_-1],$+et.addedLength<s.s)$+=et.addedLength,i.c=!1;else if($>s.e){i.c=!1;break}else s.s<=$&&s.e>=$+et.addedLength?(this.addSegment(o[c].v[_-1],o[c].o[_-1],o[c].i[_],o[c].v[_],i,ot,dt),dt=!1):(at=bez.getNewSegment(o[c].v[_-1],o[c].v[_],o[c].o[_-1],o[c].i[_],(s.s-$)/et.addedLength,(s.e-$)/et.addedLength,rt[_-1]),this.addSegmentFromArray(at,i,ot,dt),dt=!1,i.c=!1),$+=et.addedLength,ot+=1;if(o[c].c&&rt.length){if(et=rt[_-1],$<=s.e){var j=rt[_-1].addedLength;s.s<=$&&s.e>=$+j?(this.addSegment(o[c].v[_-1],o[c].o[_-1],o[c].i[0],o[c].v[0],i,ot,dt),dt=!1):(at=bez.getNewSegment(o[c].v[_-1],o[c].v[0],o[c].o[_-1],o[c].i[0],(s.s-$)/j,(s.e-$)/j,rt[_-1]),this.addSegmentFromArray(at,i,ot,dt),dt=!1,i.c=!1)}else i.c=!1;$+=et.addedLength,ot+=1}if(i._length&&(i.setXYAt(i.v[st][0],i.v[st][1],"i",st),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),$>s.e)break;c<g-1&&(i=shapePool.newElement(),dt=!0,it.push(i),ot=0)}return it};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,s){var i=s/100,a=[0,0],o=e._length,c=0;for(c=0;c<o;c+=1)a[0]+=e.v[c][0],a[1]+=e.v[c][1];a[0]/=o,a[1]/=o;var g=shapePool.newElement();g.c=e.c;var _,b,$,et,ot,rt;for(c=0;c<o;c+=1)_=e.v[c][0]+(a[0]-e.v[c][0])*i,b=e.v[c][1]+(a[1]-e.v[c][1])*i,$=e.o[c][0]+(a[0]-e.o[c][0])*-i,et=e.o[c][1]+(a[1]-e.o[c][1])*-i,ot=e.i[c][0]+(a[0]-e.i[c][0])*-i,rt=e.i[c][1]+(a[1]-e.i[c][1])*-i,g.setTripleAt(_,b,$,et,ot,rt,c);return g},PuckerAndBloatModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.amount.v;if(g!==0){var _,b;for(i=0;i<a;i+=1){if(_=this.shapes[i],b=_.localShapeCollection,!(!_.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),_.shape._mdf=!0,s=_.shape.paths.shapes,c=_.shape.paths._length,o=0;o<c;o+=1)b.addShape(this.processPath(s[o],g));_.shape.paths=_.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function s(b){var $=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||$,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var $;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var et,ot;if($=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(et=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/$,0),ot=this.p.getValueAtTime(this.p.keyframes[0].t/$,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(et=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/$,0),ot=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/$,0)):(et=this.p.pv,ot=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/$,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){et=[],ot=[];var rt=this.px,at=this.py;rt._caching.lastFrame+rt.offsetTime<=rt.keyframes[0].t?(et[0]=rt.getValueAtTime((rt.keyframes[0].t+.01)/$,0),et[1]=at.getValueAtTime((at.keyframes[0].t+.01)/$,0),ot[0]=rt.getValueAtTime(rt.keyframes[0].t/$,0),ot[1]=at.getValueAtTime(at.keyframes[0].t/$,0)):rt._caching.lastFrame+rt.offsetTime>=rt.keyframes[rt.keyframes.length-1].t?(et[0]=rt.getValueAtTime(rt.keyframes[rt.keyframes.length-1].t/$,0),et[1]=at.getValueAtTime(at.keyframes[at.keyframes.length-1].t/$,0),ot[0]=rt.getValueAtTime((rt.keyframes[rt.keyframes.length-1].t-.01)/$,0),ot[1]=at.getValueAtTime((at.keyframes[at.keyframes.length-1].t-.01)/$,0)):(et=[rt.pv,at.pv],ot[0]=rt.getValueAtTime((rt._caching.lastFrame+rt.offsetTime-.01)/$,rt.offsetTime),ot[1]=at.getValueAtTime((at._caching.lastFrame+at.offsetTime-.01)/$,at.offsetTime))}else ot=e,et=ot;this.v.rotate(-Math.atan2(et[1]-ot[1],et[0]-ot[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function a(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function o(){}function c(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,$,et){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=$,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(et||b),$.p&&$.p.s?(this.px=PropertyFactory.getProp(b,$.p.x,0,0,this),this.py=PropertyFactory.getProp(b,$.p.y,0,0,this),$.p.z&&(this.pz=PropertyFactory.getProp(b,$.p.z,0,0,this))):this.p=PropertyFactory.getProp(b,$.p||{k:[0,0,0]},1,0,this),$.rx){if(this.rx=PropertyFactory.getProp(b,$.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(b,$.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(b,$.rz,0,degToRads,this),$.or.k[0].ti){var ot,rt=$.or.k.length;for(ot=0;ot<rt;ot+=1)$.or.k[ot].to=null,$.or.k[ot].ti=null}this.or=PropertyFactory.getProp(b,$.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(b,$.r||{k:0},0,degToRads,this);$.sk&&(this.sk=PropertyFactory.getProp(b,$.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(b,$.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(b,$.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(b,$.s||{k:[100,100,100]},1,.01,this),$.o?this.o=PropertyFactory.getProp(b,$.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:s,getValue:i,precalculateMatrix:a,autoOrient:o},extendPrototype([DynamicPropertyContainer],g),g.prototype.addDynamicProperty=c,g.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function _(b,$,et){return new g(b,$,et)}return{getTransformProperty:_}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,s.c,0,null,this),this.o=PropertyFactory.getProp(e,s.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,s.tr,this),this.so=PropertyFactory.getProp(e,s.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,s,i,a,o,c){var g=c?-1:1,_=a.s.v[0]+(1-a.s.v[0])*(1-o),b=a.s.v[1]+(1-a.s.v[1])*(1-o);e.translate(a.p.v[0]*g*o,a.p.v[1]*g*o,a.p.v[2]),s.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),s.rotate(-a.r.v*g*o),s.translate(a.a.v[0],a.a.v[1],a.a.v[2]),i.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),i.scale(c?1/_:_,c?1/b:b),i.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,s,i,a){for(this.elem=e,this.arr=s,this.pos=i,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,s[i]);i>0;)i-=1,this._elements.unshift(s[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s]._processed=!1,e[s].ty==="gr"&&this.resetElements(e[s].it)},RepeaterModifier.prototype.cloneElements=function(e){var s=JSON.parse(JSON.stringify(e));return this.resetElements(s),s},RepeaterModifier.prototype.changeGroupRender=function(e,s){var i,a=e.length;for(i=0;i<a;i+=1)e[i]._render=s,e[i].ty==="gr"&&this.changeGroupRender(e[i].it,s)},RepeaterModifier.prototype.processShapes=function(e){var s,i,a,o,c,g=!1;if(this._mdf||e){var _=Math.ceil(this.c.v);if(this._groups.length<_){for(;this._groups.length<_;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}c=0;var $;for(a=0;a<=this._groups.length-1;a+=1){if($=c<_,this._groups[a]._render=$,this.changeGroupRender(this._groups[a].it,$),!$){var et=this.elemsData[a].it,ot=et[et.length-1];ot.transform.op.v!==0?(ot.transform.op._mdf=!0,ot.transform.op.v=0):ot.transform.op._mdf=!1}c+=1}this._currentCopies=_;var rt=this.o.v,at=rt%1,it=rt>0?Math.floor(rt):Math.ceil(rt),st=this.pMatrix.props,dt=this.rMatrix.props,j=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var tt=0;if(rt>0){for(;tt<it;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),tt+=1;at&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,at,!1),tt+=at)}else if(rt<0){for(;tt>it;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),tt-=1;at&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-at,!0),tt-=at)}a=this.data.m===1?0:this._currentCopies-1,o=this.data.m===1?1:-1,c=this._currentCopies;for(var _e,nt;c;){if(s=this.elemsData[a].it,i=s[s.length-1].transform.mProps.v.props,nt=i.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),tt!==0){for((a!==0&&o===1||a!==this._currentCopies-1&&o===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],dt[8],dt[9],dt[10],dt[11],dt[12],dt[13],dt[14],dt[15]),this.matrix.transform(j[0],j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],j[9],j[10],j[11],j[12],j[13],j[14],j[15]),this.matrix.transform(st[0],st[1],st[2],st[3],st[4],st[5],st[6],st[7],st[8],st[9],st[10],st[11],st[12],st[13],st[14],st[15]),_e=0;_e<nt;_e+=1)i[_e]=this.matrix.props[_e];this.matrix.reset()}else for(this.matrix.reset(),_e=0;_e<nt;_e+=1)i[_e]=this.matrix.props[_e];tt+=1,c-=1,a+=o}}else for(c=this._currentCopies,a=0,o=1;c;)s=this.elemsData[a].it,i=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,c-=1,a+=o;return g},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,s){var i=shapePool.newElement();i.c=e.c;var a,o=e._length,c,g,_,b,$,et,ot=0,rt,at,it,st,dt,j;for(a=0;a<o;a+=1)c=e.v[a],_=e.o[a],g=e.i[a],c[0]===_[0]&&c[1]===_[1]&&c[0]===g[0]&&c[1]===g[1]?(a===0||a===o-1)&&!e.c?(i.setTripleAt(c[0],c[1],_[0],_[1],g[0],g[1],ot),ot+=1):(a===0?b=e.v[o-1]:b=e.v[a-1],$=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),et=$?Math.min($/2,s)/$:0,dt=c[0]+(b[0]-c[0])*et,rt=dt,j=c[1]-(c[1]-b[1])*et,at=j,it=rt-(rt-c[0])*roundCorner,st=at-(at-c[1])*roundCorner,i.setTripleAt(rt,at,it,st,dt,j,ot),ot+=1,a===o-1?b=e.v[0]:b=e.v[a+1],$=Math.sqrt(Math.pow(c[0]-b[0],2)+Math.pow(c[1]-b[1],2)),et=$?Math.min($/2,s)/$:0,it=c[0]+(b[0]-c[0])*et,rt=it,st=c[1]+(b[1]-c[1])*et,at=st,dt=rt-(rt-c[0])*roundCorner,j=at-(at-c[1])*roundCorner,i.setTripleAt(rt,at,it,st,dt,j,ot),ot+=1):(i.setTripleAt(e.v[a][0],e.v[a][1],e.o[a][0],e.o[a][1],e.i[a][0],e.i[a][1],ot),ot+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.rd.v;if(g!==0){var _,b;for(i=0;i<a;i+=1){if(_=this.shapes[i],b=_.localShapeCollection,!(!_.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),_.shape._mdf=!0,s=_.shape.paths.shapes,c=_.shape.paths._length,o=0;o<c;o+=1)b.addShape(this.processPath(s[o],g));_.shape.paths=_.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,s){return Math.abs(e-s)*1e5<=Math.min(Math.abs(e),Math.abs(s))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,s,i){return e*(1-i)+s*i}function lerpPoint(e,s,i){return[lerp(e[0],s[0],i),lerp(e[1],s[1],i)]}function quadRoots(e,s,i){if(e===0)return[];var a=s*s-4*e*i;if(a<0)return[];var o=-s/(2*e);if(a===0)return[o];var c=Math.sqrt(a)/(2*e);return[o-c,o+c]}function polynomialCoefficients(e,s,i,a){return[-e+3*s-3*i+a,3*e-6*s+3*i,-3*e+3*s,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,s,i,a,o){o&&pointEqual(e,s)&&(s=lerpPoint(e,a,1/3)),o&&pointEqual(i,a)&&(i=lerpPoint(e,a,2/3));var c=polynomialCoefficients(e[0],s[0],i[0],a[0]),g=polynomialCoefficients(e[1],s[1],i[1],a[1]);this.a=[c[0],g[0]],this.b=[c[1],g[1]],this.c=[c[2],g[2]],this.d=[c[3],g[3]],this.points=[e,s,i,a]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var s=this.derivative(e);return Math.atan2(s[1],s[0])},PolynomialBezier.prototype.normalAngle=function(e){var s=this.derivative(e);return Math.atan2(s[0],s[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,i=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(i<0)return[];var a=Math.sqrt(i);return floatZero(a)?a>0&&a<1?[s]:[]:[s-a,s+a].filter(function(o){return o>0&&o<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var s=lerpPoint(this.points[0],this.points[1],e),i=lerpPoint(this.points[1],this.points[2],e),a=lerpPoint(this.points[2],this.points[3],e),o=lerpPoint(s,i,e),c=lerpPoint(i,a,e),g=lerpPoint(o,c,e);return[new PolynomialBezier(this.points[0],s,o,g,!0),new PolynomialBezier(g,c,a,this.points[3],!0)]};function extrema(e,s){var i=e.points[0][s],a=e.points[e.points.length-1][s];if(i>a){var o=a;a=i,i=o}for(var c=quadRoots(3*e.a[s],2*e.b[s],e.c[s]),g=0;g<c.length;g+=1)if(c[g]>0&&c[g]<1){var _=e.point(c[g])[s];_<i?i=_:_>a&&(a=_)}return{min:i,max:a}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,s,i){var a=e.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:e,t:(s+i)/2,t1:s,t2:i}}function splitData(e){var s=e.bez.split(.5);return[intersectData(s[0],e.t1,e.t),intersectData(s[1],e.t,e.t2)]}function boxIntersect(e,s){return Math.abs(e.cx-s.cx)*2<e.width+s.width&&Math.abs(e.cy-s.cy)*2<e.height+s.height}function intersectsImpl(e,s,i,a,o,c){if(boxIntersect(e,s)){if(i>=c||e.width<=a&&e.height<=a&&s.width<=a&&s.height<=a){o.push([e.t,s.t]);return}var g=splitData(e),_=splitData(s);intersectsImpl(g[0],_[0],i+1,a,o,c),intersectsImpl(g[0],_[1],i+1,a,o,c),intersectsImpl(g[1],_[0],i+1,a,o,c),intersectsImpl(g[1],_[1],i+1,a,o,c)}}PolynomialBezier.prototype.intersections=function(e,s,i){s===void 0&&(s=2),i===void 0&&(i=7);var a=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,s,a,i),a},PolynomialBezier.shapeSegment=function(e,s){var i=(s+1)%e.length();return new PolynomialBezier(e.v[s],e.o[s],e.i[i],e.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(e,s){var i=(s+1)%e.length();return new PolynomialBezier(e.v[i],e.i[i],e.o[s],e.v[s],!0)};function crossProduct(e,s){return[e[1]*s[2]-e[2]*s[1],e[2]*s[0]-e[0]*s[2],e[0]*s[1]-e[1]*s[0]]}function lineIntersection(e,s,i,a){var o=[e[0],e[1],1],c=[s[0],s[1],1],g=[i[0],i[1],1],_=[a[0],a[1],1],b=crossProduct(crossProduct(o,c),crossProduct(g,_));return floatZero(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function polarOffset(e,s,i){return[e[0]+Math.cos(s)*i,e[1]-Math.sin(s)*i]}function pointDistance(e,s){return Math.hypot(e[0]-s[0],e[1]-s[1])}function pointEqual(e,s){return floatEqual(e[0],s[0])&&floatEqual(e[1],s[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,s.s,0,null,this),this.frequency=PropertyFactory.getProp(e,s.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,s,i,a,o,c,g){var _=i-Math.PI/2,b=i+Math.PI/2,$=s[0]+Math.cos(i)*a*o,et=s[1]-Math.sin(i)*a*o;e.setTripleAt($,et,$+Math.cos(_)*c,et-Math.sin(_)*c,$+Math.cos(b)*g,et-Math.sin(b)*g,e.length())}function getPerpendicularVector(e,s){var i=[s[0]-e[0],s[1]-e[1]],a=-Math.PI*.5,o=[Math.cos(a)*i[0]-Math.sin(a)*i[1],Math.sin(a)*i[0]+Math.cos(a)*i[1]];return o}function getProjectingAngle(e,s){var i=s===0?e.length()-1:s-1,a=(s+1)%e.length(),o=e.v[i],c=e.v[a],g=getPerpendicularVector(o,c);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function zigZagCorner(e,s,i,a,o,c,g){var _=getProjectingAngle(s,i),b=s.v[i%s._length],$=s.v[i===0?s._length-1:i-1],et=s.v[(i+1)%s._length],ot=c===2?Math.sqrt(Math.pow(b[0]-$[0],2)+Math.pow(b[1]-$[1],2)):0,rt=c===2?Math.sqrt(Math.pow(b[0]-et[0],2)+Math.pow(b[1]-et[1],2)):0;setPoint(e,s.v[i%s._length],_,g,a,rt/((o+1)*2),ot/((o+1)*2))}function zigZagSegment(e,s,i,a,o,c){for(var g=0;g<a;g+=1){var _=(g+1)/(a+1),b=o===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,$=s.normalAngle(_),et=s.point(_);setPoint(e,et,$,c,i,b/((a+1)*2),b/((a+1)*2)),c=-c}return c}ZigZagModifier.prototype.processPath=function(e,s,i,a){var o=e._length,c=shapePool.newElement();if(c.c=e.c,e.c||(o-=1),o===0)return c;var g=-1,_=PolynomialBezier.shapeSegment(e,0);zigZagCorner(c,e,0,s,i,a,g);for(var b=0;b<o;b+=1)g=zigZagSegment(c,_,s,i,a,-g),b===o-1&&!e.c?_=null:_=PolynomialBezier.shapeSegment(e,(b+1)%o),zigZagCorner(c,e,b+1,s,i,a,g);return c},ZigZagModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.amplitude.v,_=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var $,et;for(i=0;i<a;i+=1){if($=this.shapes[i],et=$.localShapeCollection,!(!$.shape._mdf&&!this._mdf&&!e))for(et.releaseShapes(),$.shape._mdf=!0,s=$.shape.paths.shapes,c=$.shape.paths._length,o=0;o<c;o+=1)et.addShape(this.processPath(s[o],g,_,b));$.shape.paths=$.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,s,i){var a=Math.atan2(s[0]-e[0],s[1]-e[1]);return[polarOffset(e,a,i),polarOffset(s,a,i)]}function offsetSegment(e,s){var i,a,o,c,g,_,b;b=linearOffset(e.points[0],e.points[1],s),i=b[0],a=b[1],b=linearOffset(e.points[1],e.points[2],s),o=b[0],c=b[1],b=linearOffset(e.points[2],e.points[3],s),g=b[0],_=b[1];var $=lineIntersection(i,a,o,c);$===null&&($=a);var et=lineIntersection(g,_,o,c);return et===null&&(et=g),new PolynomialBezier(i,$,et,_)}function joinLines(e,s,i,a,o){var c=s.points[3],g=i.points[0];if(a===3||pointEqual(c,g))return c;if(a===2){var _=-s.tangentAngle(1),b=-i.tangentAngle(0)+Math.PI,$=lineIntersection(c,polarOffset(c,_+Math.PI/2,100),g,polarOffset(g,_+Math.PI/2,100)),et=$?pointDistance($,c):pointDistance(c,g)/2,ot=polarOffset(c,_,2*et*roundCorner);return e.setXYAt(ot[0],ot[1],"o",e.length()-1),ot=polarOffset(g,b,2*et*roundCorner),e.setTripleAt(g[0],g[1],g[0],g[1],ot[0],ot[1],e.length()),g}var rt=pointEqual(c,s.points[2])?s.points[0]:s.points[2],at=pointEqual(g,i.points[1])?i.points[3]:i.points[1],it=lineIntersection(rt,c,g,at);return it&&pointDistance(it,c)<o?(e.setTripleAt(it[0],it[1],it[0],it[1],it[0],it[1],e.length()),it):c}function getIntersection(e,s){var i=e.intersections(s);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(e,s){var i=e.slice(),a=s.slice(),o=getIntersection(e[e.length-1],s[0]);return o&&(i[e.length-1]=e[e.length-1].split(o[0])[0],a[0]=s[0].split(o[1])[1]),e.length>1&&s.length>1&&(o=getIntersection(e[0],s[s.length-1]),o)?[[e[0].split(o[0])[0]],[s[s.length-1].split(o[1])[1]]]:[i,a]}function pruneIntersections(e){for(var s,i=1;i<e.length;i+=1)s=pruneSegmentIntersection(e[i-1],e[i]),e[i-1]=s[0],e[i]=s[1];return e.length>1&&(s=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=s[0],e[0]=s[1]),e}function offsetSegmentSplit(e,s){var i=e.inflectionPoints(),a,o,c,g;if(i.length===0)return[offsetSegment(e,s)];if(i.length===1||floatEqual(i[1],1))return c=e.split(i[0]),a=c[0],o=c[1],[offsetSegment(a,s),offsetSegment(o,s)];c=e.split(i[0]),a=c[0];var _=(i[1]-i[0])/(1-i[0]);return c=c[1].split(_),g=c[0],o=c[1],[offsetSegment(a,s),offsetSegment(g,s),offsetSegment(o,s)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,s.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,s,i,a){var o=shapePool.newElement();o.c=e.c;var c=e.length();e.c||(c-=1);var g,_,b,$=[];for(g=0;g<c;g+=1)b=PolynomialBezier.shapeSegment(e,g),$.push(offsetSegmentSplit(b,s));if(!e.c)for(g=c-1;g>=0;g-=1)b=PolynomialBezier.shapeSegmentInverted(e,g),$.push(offsetSegmentSplit(b,s));$=pruneIntersections($);var et=null,ot=null;for(g=0;g<$.length;g+=1){var rt=$[g];for(ot&&(et=joinLines(o,ot,rt[0],i,a)),ot=rt[rt.length-1],_=0;_<rt.length;_+=1)b=rt[_],et&&pointEqual(b.points[0],et)?o.setXYAt(b.points[1][0],b.points[1][1],"o",o.length()-1):o.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],o.length()),o.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],o.length()),et=b.points[3]}return $.length&&joinLines(o,ot,$[0][0],i,a),o},OffsetPathModifier.prototype.processShapes=function(e){var s,i,a=this.shapes.length,o,c,g=this.amount.v,_=this.miterLimit.v,b=this.lineJoin;if(g!==0){var $,et;for(i=0;i<a;i+=1){if($=this.shapes[i],et=$.localShapeCollection,!(!$.shape._mdf&&!this._mdf&&!e))for(et.releaseShapes(),$.shape._mdf=!0,s=$.shape.paths.shapes,c=$.shape.paths._length,o=0;o<c;o+=1)et.addShape(this.processPath(s[o],g,b,_));$.shape.paths=$.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var s=e.fStyle?e.fStyle.split(" "):[],i="normal",a="normal",o=s.length,c,g=0;g<o;g+=1)switch(c=s[g].toLowerCase(),c){case"italic":a="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break}return{style:a,weight:e.fWeight||i}}var FontManager=function(){var e=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var a=127988,o=917631,c=917601,g=917626,_=65039,b=8205,$=127462,et=127487,ot=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function rt(pt){var vt=pt.split(","),lt,ct=vt.length,yt=[];for(lt=0;lt<ct;lt+=1)vt[lt]!=="sans-serif"&&vt[lt]!=="monospace"&&yt.push(vt[lt]);return yt.join(",")}function at(pt,vt){var lt=createTag("span");lt.setAttribute("aria-hidden",!0),lt.style.fontFamily=vt;var ct=createTag("span");ct.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(ct),document.body.appendChild(lt);var yt=ct.offsetWidth;return ct.style.fontFamily=rt(pt)+", "+vt,{node:ct,w:yt,parent:lt}}function it(){var pt,vt=this.fonts.length,lt,ct,yt=vt;for(pt=0;pt<vt;pt+=1)this.fonts[pt].loaded?yt-=1:this.fonts[pt].fOrigin==="n"||this.fonts[pt].origin===0?this.fonts[pt].loaded=!0:(lt=this.fonts[pt].monoCase.node,ct=this.fonts[pt].monoCase.w,lt.offsetWidth!==ct?(yt-=1,this.fonts[pt].loaded=!0):(lt=this.fonts[pt].sansCase.node,ct=this.fonts[pt].sansCase.w,lt.offsetWidth!==ct&&(yt-=1,this.fonts[pt].loaded=!0)),this.fonts[pt].loaded&&(this.fonts[pt].sansCase.parent.parentNode.removeChild(this.fonts[pt].sansCase.parent),this.fonts[pt].monoCase.parent.parentNode.removeChild(this.fonts[pt].monoCase.parent)));yt!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function st(pt,vt){var lt=document.body&&vt?"svg":"canvas",ct,yt=getFontProperties(pt);if(lt==="svg"){var mt=createNS("text");mt.style.fontSize="100px",mt.setAttribute("font-family",pt.fFamily),mt.setAttribute("font-style",yt.style),mt.setAttribute("font-weight",yt.weight),mt.textContent="1",pt.fClass?(mt.style.fontFamily="inherit",mt.setAttribute("class",pt.fClass)):mt.style.fontFamily=pt.fFamily,vt.appendChild(mt),ct=mt}else{var wt=new OffscreenCanvas(500,500).getContext("2d");wt.font=yt.style+" "+yt.weight+" 100px "+pt.fFamily,ct=wt}function Tt(bt){return lt==="svg"?(ct.textContent=bt,ct.getComputedTextLength()):ct.measureText(bt).width}return{measureText:Tt}}function dt(pt,vt){if(!pt){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=pt.list;return}if(!document.body){this.isLoaded=!0,pt.list.forEach(function(It){It.helper=st(It),It.cache={}}),this.fonts=pt.list;return}var lt=pt.list,ct,yt=lt.length,mt=yt;for(ct=0;ct<yt;ct+=1){var wt=!0,Tt,bt;if(lt[ct].loaded=!1,lt[ct].monoCase=at(lt[ct].fFamily,"monospace"),lt[ct].sansCase=at(lt[ct].fFamily,"sans-serif"),!lt[ct].fPath)lt[ct].loaded=!0,mt-=1;else if(lt[ct].fOrigin==="p"||lt[ct].origin===3){if(Tt=document.querySelectorAll('style[f-forigin="p"][f-family="'+lt[ct].fFamily+'"], style[f-origin="3"][f-family="'+lt[ct].fFamily+'"]'),Tt.length>0&&(wt=!1),wt){var jt=createTag("style");jt.setAttribute("f-forigin",lt[ct].fOrigin),jt.setAttribute("f-origin",lt[ct].origin),jt.setAttribute("f-family",lt[ct].fFamily),jt.type="text/css",jt.innerText="@font-face {font-family: "+lt[ct].fFamily+"; font-style: normal; src: url('"+lt[ct].fPath+"');}",vt.appendChild(jt)}}else if(lt[ct].fOrigin==="g"||lt[ct].origin===1){for(Tt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),bt=0;bt<Tt.length;bt+=1)Tt[bt].href.indexOf(lt[ct].fPath)!==-1&&(wt=!1);if(wt){var Lt=createTag("link");Lt.setAttribute("f-forigin",lt[ct].fOrigin),Lt.setAttribute("f-origin",lt[ct].origin),Lt.type="text/css",Lt.rel="stylesheet",Lt.href=lt[ct].fPath,document.body.appendChild(Lt)}}else if(lt[ct].fOrigin==="t"||lt[ct].origin===2){for(Tt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),bt=0;bt<Tt.length;bt+=1)lt[ct].fPath===Tt[bt].src&&(wt=!1);if(wt){var Rt=createTag("link");Rt.setAttribute("f-forigin",lt[ct].fOrigin),Rt.setAttribute("f-origin",lt[ct].origin),Rt.setAttribute("rel","stylesheet"),Rt.setAttribute("href",lt[ct].fPath),vt.appendChild(Rt)}}lt[ct].helper=st(lt[ct],vt),lt[ct].cache={},this.fonts.push(lt[ct])}mt===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function j(pt){if(pt){this.chars||(this.chars=[]);var vt,lt=pt.length,ct,yt=this.chars.length,mt;for(vt=0;vt<lt;vt+=1){for(ct=0,mt=!1;ct<yt;)this.chars[ct].style===pt[vt].style&&this.chars[ct].fFamily===pt[vt].fFamily&&this.chars[ct].ch===pt[vt].ch&&(mt=!0),ct+=1;mt||(this.chars.push(pt[vt]),yt+=1)}}}function tt(pt,vt,lt){for(var ct=0,yt=this.chars.length;ct<yt;){if(this.chars[ct].ch===pt&&this.chars[ct].style===vt&&this.chars[ct].fFamily===lt)return this.chars[ct];ct+=1}return(typeof pt=="string"&&pt.charCodeAt(0)!==13||!pt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",pt,vt,lt)),s}function _e(pt,vt,lt){var ct=this.getFontByName(vt),yt=pt;if(!ct.cache[yt]){var mt=ct.helper;if(pt===" "){var wt=mt.measureText("|"+pt+"|"),Tt=mt.measureText("||");ct.cache[yt]=(wt-Tt)/100}else ct.cache[yt]=mt.measureText(pt)/100}return ct.cache[yt]*lt}function nt(pt){for(var vt=0,lt=this.fonts.length;vt<lt;){if(this.fonts[vt].fName===pt)return this.fonts[vt];vt+=1}return this.fonts[0]}function ut(pt){var vt=0,lt=pt.charCodeAt(0);if(lt>=55296&<<=56319){var ct=pt.charCodeAt(1);ct>=56320&&ct<=57343&&(vt=(lt-55296)*1024+ct-56320+65536)}return vt}function ht(pt,vt){var lt=pt.toString(16)+vt.toString(16);return ot.indexOf(lt)!==-1}function gt(pt){return pt===b}function ft(pt){return pt===_}function _t(pt){var vt=ut(pt);return vt>=$&&vt<=et}function At(pt){return _t(pt.substr(0,2))&&_t(pt.substr(2,2))}function kt(pt){return i.indexOf(pt)!==-1}function St(pt,vt){var lt=ut(pt.substr(vt,2));if(lt!==a)return!1;var ct=0;for(vt+=2;ct<5;){if(lt=ut(pt.substr(vt,2)),lt<c||lt>g)return!1;ct+=1,vt+=2}return ut(pt.substr(vt,2))===o}function Ct(){this.isLoaded=!0}var Ot=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)};Ot.isModifier=ht,Ot.isZeroWidthJoiner=gt,Ot.isFlagEmoji=At,Ot.isRegionalCode=_t,Ot.isCombinedCharacter=kt,Ot.isRegionalFlag=St,Ot.isVariationSelector=ft,Ot.BLACK_FLAG_CODE_POINT=a;var xt={addChars:j,addFonts:dt,getCharData:tt,getFontByName:nt,measureText:_e,checkLoadedFonts:it,setIsLoaded:Ct};return Ot.prototype=xt,Ot}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,i=this.renderableComponents.length;for(s=0;s<i;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return e[s]||""}}();function SliderEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function AngleEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function ColorEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,1,0,i)}function PointEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,1,0,i)}function LayerIndexEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function MaskIndexEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function CheckboxEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(e,s){var i=e.ef||[];this.effectElements=[];var a,o=i.length,c;for(a=0;a<o;a+=1)c=new GroupEffect(i[a],s),this.effectElements.push(c)}function GroupEffect(e,s){this.init(e,s)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,s){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(s);var i,a=this.data.ef.length,o,c=this.data.ef;for(i=0;i<a;i+=1){switch(o=null,c[i].ty){case 0:o=new SliderEffect(c[i],s,this);break;case 1:o=new AngleEffect(c[i],s,this);break;case 2:o=new ColorEffect(c[i],s,this);break;case 3:o=new PointEffect(c[i],s,this);break;case 4:case 7:o=new CheckboxEffect(c[i],s,this);break;case 10:o=new LayerIndexEffect(c[i],s,this);break;case 11:o=new MaskIndexEffect(c[i],s,this);break;case 5:o=new EffectsManager(c[i],s);break;default:o=new NoValueEffect(c[i]);break}o&&this.effectElements.push(o)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,i=this.data.masksProperties.length;s<i;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=getExpressionInterfaces();if(s){var i=s("layer"),a=s("effects"),o=s("shape"),c=s("text"),g=s("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var _=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(_),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=o(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=getBlendMode(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=s},initBaseData:function(s,i,a){this.globalData=i,this.comp=a,this.data=s,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,i){var a,o=this.dynamicProperties.length;for(a=0;a<o;a+=1)(i||this._isParent&&this.dynamicProperties[a].propType==="transform")&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function FootageElement(e,s,i){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(e.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(e,s,i)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var s=e("footage");this.layerInterface=s(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,s,i){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(e.refId),this.initBaseData(e,s,i),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var s,i=this.layers.length,a;for(this.completeLayers=!0,s=i-1;s>=0;s-=1)this.elements[s]||(a=this.layers[s],a.ip-a.st<=e-this.layers[s].st&&a.op-a.st>e-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,s=this.layers.length;for(e=0;e<s;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var s,i=e.length,a,o=this.layers.length;for(s=0;s<i;s+=1)for(a=0;a<o;){if(this.layers[a].id===e[s].id){this.layers[a]=e[s];break}a+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,s,i){for(var a=this.elements,o=this.layers,c=0,g=o.length;c<g;)o[c].ind==s&&(!a[c]||a[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(i.push(a[c]),a[c].setAsParent(),o[c].parent!==void 0?this.buildElementParenting(e,o[c].parent,i):e.setHierarchy(i))),c+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var s,i=e.length;for(s=0;s<i;s+=1)if(e[s].xt){var a=this.createComp(e[s]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementById=function(e){var s,i=this.elements.length;for(s=0;s<i;s+=1)if(this.elements[s].data.ind===e)return this.elements[s];return null},BaseRenderer.prototype.getElementByPath=function(e){var s=e.shift(),i;if(typeof s=="number")i=this.elements[s];else{var a,o=this.elements.length;for(a=0;a<o;a+=1)if(this.elements[a].data.nm===s){i=this.elements[a];break}}return e.length===0?i:i.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,s){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var s=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,i=this.finalTransform.mat,a=0,o=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<o;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,i.cloneFromProps(s),a=0;a<o;a+=1)i.multiply(this.hierarchy[a].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<i;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),s=1;s<i;s+=1){var o=this.localTransforms[s].matrix;a.multiply(o)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(s=0;s<i;s+=1)c*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var i=0,a=s.length;for(i=0;i<a;i+=1)this.localTransforms.push(s[i])}}},globalToLocal:function(s){var i=[];i.push(this.finalTransform);for(var a=!0,o=this.comp;a;)o.finalTransform?(o.data.hasMask&&i.splice(0,0,o.finalTransform),o=o.comp):a=!1;var c,g=i.length,_;for(c=0;c<g;c+=1)_=i[c].mat.applyToPointArray(0,0,0),s=[s[0]-_[0],s[1]-_[1],0];return s},mHelper:new Matrix};function MaskElement(e,s,i){this.data=e,this.element=s,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a=this.globalData.defs,o,c=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(c),this.solidPath="";var g,_=this.masksProperties,b=0,$=[],et,ot,rt=createElementID(),at,it,st,dt,j="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)&&(j="mask",tt="mask"),(_[o].mode==="s"||_[o].mode==="i")&&b===0?(at=createNS("rect"),at.setAttribute("fill","#ffffff"),at.setAttribute("width",this.element.comp.data.w||0),at.setAttribute("height",this.element.comp.data.h||0),$.push(at)):at=null,g=createNS("path"),_[o].mode==="n")this.viewData[o]={op:PropertyFactory.getProp(this.element,_[o].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,_[o],3),elem:g,lastPath:""},a.appendChild(g);else{b+=1,g.setAttribute("fill",_[o].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var _e;if(_[o].x.k!==0?(j="mask",tt="mask",dt=PropertyFactory.getProp(this.element,_[o].x,0,null,this.element),_e=createElementID(),it=createNS("filter"),it.setAttribute("id",_e),st=createNS("feMorphology"),st.setAttribute("operator","erode"),st.setAttribute("in","SourceGraphic"),st.setAttribute("radius","0"),it.appendChild(st),a.appendChild(it),g.setAttribute("stroke",_[o].mode==="s"?"#000000":"#ffffff")):(st=null,dt=null),this.storedData[o]={elem:g,x:dt,expan:st,lastPath:"",lastOperator:"",filterId:_e,lastRadius:0},_[o].mode==="i"){ot=$.length;var nt=createNS("g");for(et=0;et<ot;et+=1)nt.appendChild($[et]);var ut=createNS("mask");ut.setAttribute("mask-type","alpha"),ut.setAttribute("id",rt+"_"+b),ut.appendChild(g),a.appendChild(ut),nt.setAttribute("mask","url("+getLocationHref()+"#"+rt+"_"+b+")"),$.length=0,$.push(nt)}else $.push(g);_[o].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[o]={elem:g,lastPath:"",op:PropertyFactory.getProp(this.element,_[o].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,_[o],3),invRect:at},this.viewData[o].prop.k||this.drawPath(_[o],this.viewData[o].prop.v,this.viewData[o])}for(this.maskElement=createNS(j),c=$.length,o=0;o<c;o+=1)this.maskElement.appendChild($[o]);b>0&&(this.maskElement.setAttribute("id",rt),this.element.maskedElement.setAttribute(tt,"url("+getLocationHref()+"#"+rt+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var s=this.element.finalTransform.mat,i,a=this.masksProperties.length;for(i=0;i<a;i+=1)if((this.viewData[i].prop._mdf||e)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||e)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[i].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||e))){var o=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[i].filterId+")")),o.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,s,i){var a=" M"+s.v[0][0]+","+s.v[0][1],o,c;for(c=s._length,o=1;o<c;o+=1)a+=" C"+s.o[o-1][0]+","+s.o[o-1][1]+" "+s.i[o][0]+","+s.i[o][1]+" "+s.v[o][0]+","+s.v[o][1];if(s.c&&c>1&&(a+=" C"+s.o[o-1][0]+","+s.o[o-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),i.lastPath!==a){var g="";i.elem&&(s.c&&(g=e.inv?this.solidPath+a:a),i.elem.setAttribute("d",g)),i.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=s,e.createAlphaToLuminanceFilter=i;function s(a,o){var c=createNS("filter");return c.setAttribute("id",a),o!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function i(){var a=createNS("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a}return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var s,i="SourceGraphic",a=e.data.ef?e.data.ef.length:0,o=createElementID(),c=filtersFactory.createFilter(o,!0),g=0;this.filters=[];var _;for(s=0;s<a;s+=1){_=null;var b=e.data.ef[s].ty;if(registeredEffects$1[b]){var $=registeredEffects$1[b].effect;_=new $(c,e.effectsManager.effectElements[s],e,idPrefix+g,i),i=idPrefix+g,registeredEffects$1[b].countsAsEffect&&(g+=1)}_&&this.filters.push(_)}g&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var s,i=this.filters.length;for(s=0;s<i;s+=1)this.filters[s].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var s,i=this.filters.length,a=[];for(s=0;s<i;s+=1)this.filters[s].type===e&&a.push(this.filters[s]);return a};function registerEffect$1(e,s,i){registeredEffects$1[e]={effect:s,countsAsEffect:i}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var i=createNS("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),s=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var a=createNS("clipPath"),o=createNS("path");o.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=createElementID();if(a.setAttribute("id",c),a.appendChild(o),this.globalData.defs.appendChild(a),this.checkMasks()){var g=createNS("g");g.setAttribute("clip-path","url("+getLocationHref()+"#"+c+")"),g.appendChild(this.layerElement),this.transformedElement=g,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var i=this.layerId+"_"+s,a,o,c,g;if(s===1||s===3){var _=createNS("mask");_.setAttribute("id",i),_.setAttribute("mask-type",s===3?"luminance":"alpha"),c=createNS("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),_.appendChild(c),this.globalData.defs.appendChild(_),!featureSupport.maskType&&s===1&&(_.setAttribute("mask-type","luminance"),a=createElementID(),o=filtersFactory.createFilter(a),this.globalData.defs.appendChild(o),o.appendChild(filtersFactory.createAlphaToLuminanceFilter()),g=createNS("g"),g.appendChild(c),_.appendChild(g),g.setAttribute("filter","url("+getLocationHref()+"#"+a+")"))}else if(s===2){var b=createNS("mask");b.setAttribute("id",i),b.setAttribute("mask-type","alpha");var $=createNS("g");b.appendChild($),a=createElementID(),o=filtersFactory.createFilter(a);var et=createNS("feComponentTransfer");et.setAttribute("in","SourceGraphic"),o.appendChild(et);var ot=createNS("feFuncA");ot.setAttribute("type","table"),ot.setAttribute("tableValues","1.0 0.0"),et.appendChild(ot),this.globalData.defs.appendChild(o);var rt=createNS("rect");rt.setAttribute("width",this.comp.data.w),rt.setAttribute("height",this.comp.data.h),rt.setAttribute("x","0"),rt.setAttribute("y","0"),rt.setAttribute("fill","#ffffff"),rt.setAttribute("opacity","0"),$.setAttribute("filter","url("+getLocationHref()+"#"+a+")"),$.appendChild(rt),c=createNS("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),$.appendChild(c),featureSupport.maskType||(b.setAttribute("mask-type","luminance"),o.appendChild(filtersFactory.createAlphaToLuminanceFilter()),g=createNS("g"),$.appendChild(rt),g.appendChild(this.layerElement),$.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[s]=i}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+s+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(i,a,o){this.initFrame(),this.initBaseData(i,a,o),this.initTransform(i,a,o),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,s,i){this.assetData=s.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(e,s,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,s){this.elem=e,this.pos=s}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(s){var i,a=this.shapeModifiers.length;for(i=0;i<a;i+=1)this.shapeModifiers[i].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var i=0,a=this.shapeModifiers.length;i<a;)if(this.shapeModifiers[i].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,i=this.shapes.length;for(s=0;s<i;s+=1)this.shapes[s].sh.reset();i=this.shapeModifiers.length;var a;for(s=i-1;s>=0&&(a=this.shapeModifiers[s].processShapes(this._isFirstFrame),!a);s-=1);}},searchProcessedElement:function(s){for(var i=this.processedElements,a=0,o=i.length;a<o;){if(i[a].elem===s)return i[a].pos;a+=1}return 0},addProcessedElement:function(s,i){for(var a=this.processedElements,o=a.length;o;)if(o-=1,a[o].elem===s){a[o].pos=i;return}a.push(new ProcessedElement(s,i))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,s,i){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=i,this.lvl=s,this._isAnimated=!!i.k;for(var a=0,o=e.length;a<o;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,s){this.data=e,this.type=e.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,s,i,a){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(s.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",s.length?s.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(a);var o,c=s.length||0,g;for(o=0;o<c;o+=1)g=PropertyFactory.getProp(e,s[o].v,0,0,this),this.k=g.k||this.k,this.dataProps[o]={n:s[o].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var s=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<i;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.w=PropertyFactory.getProp(e,s.w,0,null,this),this.d=new DashProperty(e,s.d||{},"svg",this),this.c=PropertyFactory.getProp(e,s.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.c=PropertyFactory.getProp(e,s.c,1,255,this),this.style=i}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=i}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,s,i){this.data=s,this.c=createTypedArray("uint8c",s.p*4);var a=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(e,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,s){for(var i=0,a=this.o.length/2,o;i<a;){if(o=Math.abs(e[i*4]-e[s*4+i*2]),o>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,s=this.data.k.k.length;e<s;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var s,i=this.data.p*4,a,o;for(s=0;s<i;s+=1)a=s%4===0?100:255,o=Math.round(this.prop.v[s]*a),this.c[s]!==o&&(this.c[s]=o,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,s=this.data.p*4;s<i;s+=1)a=s%2===0?100:1,o=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==o&&(this.o[s-this.data.p*4]=o,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,s,i)}SVGGradientFillStyleData.prototype.initGradientData=function(e,s,i){this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.s=PropertyFactory.getProp(e,s.s,1,null,this),this.e=PropertyFactory.getProp(e,s.e,1,null,this),this.h=PropertyFactory.getProp(e,s.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,s.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,s.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,s),this.setGradientOpacity(s,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,s){var i=createElementID(),a=createNS(s.t===1?"linearGradient":"radialGradient");a.setAttribute("id",i),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var o=[],c,g,_;for(_=s.g.p*4,g=0;g<_;g+=4)c=createNS("stop"),a.appendChild(c),o.push(c);e.setAttribute(s.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=a,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,s){if(this.g._hasOpacity&&!this.g._collapsable){var i,a,o,c=createNS("mask"),g=createNS("path");c.appendChild(g);var _=createElementID(),b=createElementID();c.setAttribute("id",b);var $=createNS(e.t===1?"linearGradient":"radialGradient");$.setAttribute("id",_),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse"),o=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var et=this.stops;for(a=e.g.p*4;a<o;a+=2)i=createNS("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),$.appendChild(i),et.push(i);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+_+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),g.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=$,this.ms=c,this.ost=et,this.maskId=b,s.msElem=g}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,s.w,0,null,this),this.d=new DashProperty(e,s.d||{},"svg",this),this.initGradientData(e,s,i),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,s,i){this.transform={mProps:e,op:s,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(s,i,a,o){if(i===0)return"";var c=s.o,g=s.i,_=s.v,b,$=" M"+o.applyToPointStringified(_[0][0],_[0][1]);for(b=1;b<i;b+=1)$+=" C"+o.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+o.applyToPointStringified(g[b][0],g[b][1])+" "+o.applyToPointStringified(_[b][0],_[b][1]);return a&&i&&($+=" C"+o.applyToPointStringified(c[b-1][0],c[b-1][1])+" "+o.applyToPointStringified(g[0][0],g[0][1])+" "+o.applyToPointStringified(_[0][0],_[0][1]),$+="z"),$},SVGElementsRenderer=function(){var e=new Matrix,s=new Matrix,i={createRenderFunction:a};function a(ot){switch(ot.ty){case"fl":return _;case"gf":return $;case"gs":return b;case"st":return et;case"sh":case"el":case"rc":case"sr":return g;case"tr":return o;case"no":return c;default:return null}}function o(ot,rt,at){(at||rt.transform.op._mdf)&&rt.transform.container.setAttribute("opacity",rt.transform.op.v),(at||rt.transform.mProps._mdf)&&rt.transform.container.setAttribute("transform",rt.transform.mProps.v.to2dCSS())}function c(){}function g(ot,rt,at){var it,st,dt,j,tt,_e,nt=rt.styles.length,ut=rt.lvl,ht,gt,ft,_t;for(_e=0;_e<nt;_e+=1){if(j=rt.sh._mdf||at,rt.styles[_e].lvl<ut){for(gt=s.reset(),ft=ut-rt.styles[_e].lvl,_t=rt.transformers.length-1;!j&&ft>0;)j=rt.transformers[_t].mProps._mdf||j,ft-=1,_t-=1;if(j)for(ft=ut-rt.styles[_e].lvl,_t=rt.transformers.length-1;ft>0;)gt.multiply(rt.transformers[_t].mProps.v),ft-=1,_t-=1}else gt=e;if(ht=rt.sh.paths,st=ht._length,j){for(dt="",it=0;it<st;it+=1)tt=ht.shapes[it],tt&&tt._length&&(dt+=buildShapeString(tt,tt._length,tt.c,gt));rt.caches[_e]=dt}else dt=rt.caches[_e];rt.styles[_e].d+=ot.hd===!0?"":dt,rt.styles[_e]._mdf=j||rt.styles[_e]._mdf}}function _(ot,rt,at){var it=rt.style;(rt.c._mdf||at)&&it.pElem.setAttribute("fill","rgb("+bmFloor(rt.c.v[0])+","+bmFloor(rt.c.v[1])+","+bmFloor(rt.c.v[2])+")"),(rt.o._mdf||at)&&it.pElem.setAttribute("fill-opacity",rt.o.v)}function b(ot,rt,at){$(ot,rt,at),et(ot,rt,at)}function $(ot,rt,at){var it=rt.gf,st=rt.g._hasOpacity,dt=rt.s.v,j=rt.e.v;if(rt.o._mdf||at){var tt=ot.ty==="gf"?"fill-opacity":"stroke-opacity";rt.style.pElem.setAttribute(tt,rt.o.v)}if(rt.s._mdf||at){var _e=ot.t===1?"x1":"cx",nt=_e==="x1"?"y1":"cy";it.setAttribute(_e,dt[0]),it.setAttribute(nt,dt[1]),st&&!rt.g._collapsable&&(rt.of.setAttribute(_e,dt[0]),rt.of.setAttribute(nt,dt[1]))}var ut,ht,gt,ft;if(rt.g._cmdf||at){ut=rt.cst;var _t=rt.g.c;for(gt=ut.length,ht=0;ht<gt;ht+=1)ft=ut[ht],ft.setAttribute("offset",_t[ht*4]+"%"),ft.setAttribute("stop-color","rgb("+_t[ht*4+1]+","+_t[ht*4+2]+","+_t[ht*4+3]+")")}if(st&&(rt.g._omdf||at)){var At=rt.g.o;for(rt.g._collapsable?ut=rt.cst:ut=rt.ost,gt=ut.length,ht=0;ht<gt;ht+=1)ft=ut[ht],rt.g._collapsable||ft.setAttribute("offset",At[ht*2]+"%"),ft.setAttribute("stop-opacity",At[ht*2+1])}if(ot.t===1)(rt.e._mdf||at)&&(it.setAttribute("x2",j[0]),it.setAttribute("y2",j[1]),st&&!rt.g._collapsable&&(rt.of.setAttribute("x2",j[0]),rt.of.setAttribute("y2",j[1])));else{var kt;if((rt.s._mdf||rt.e._mdf||at)&&(kt=Math.sqrt(Math.pow(dt[0]-j[0],2)+Math.pow(dt[1]-j[1],2)),it.setAttribute("r",kt),st&&!rt.g._collapsable&&rt.of.setAttribute("r",kt)),rt.s._mdf||rt.e._mdf||rt.h._mdf||rt.a._mdf||at){kt||(kt=Math.sqrt(Math.pow(dt[0]-j[0],2)+Math.pow(dt[1]-j[1],2)));var St=Math.atan2(j[1]-dt[1],j[0]-dt[0]),Ct=rt.h.v;Ct>=1?Ct=.99:Ct<=-1&&(Ct=-.99);var Ot=kt*Ct,xt=Math.cos(St+rt.a.v)*Ot+dt[0],pt=Math.sin(St+rt.a.v)*Ot+dt[1];it.setAttribute("fx",xt),it.setAttribute("fy",pt),st&&!rt.g._collapsable&&(rt.of.setAttribute("fx",xt),rt.of.setAttribute("fy",pt))}}}function et(ot,rt,at){var it=rt.style,st=rt.d;st&&(st._mdf||at)&&st.dashStr&&(it.pElem.setAttribute("stroke-dasharray",st.dashStr),it.pElem.setAttribute("stroke-dashoffset",st.dashoffset[0])),rt.c&&(rt.c._mdf||at)&&it.pElem.setAttribute("stroke","rgb("+bmFloor(rt.c.v[0])+","+bmFloor(rt.c.v[1])+","+bmFloor(rt.c.v[2])+")"),(rt.o._mdf||at)&&it.pElem.setAttribute("stroke-opacity",rt.o.v),(rt.w._mdf||at)&&(it.pElem.setAttribute("stroke-width",rt.w.v),it.msElem&&it.msElem.setAttribute("stroke-width",rt.w.v))}return i}();function SVGShapeElement(e,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,s,i),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,s=this.shapes.length,i,a,o=this.stylesList.length,c,g=[],_=!1;for(a=0;a<o;a+=1){for(c=this.stylesList[a],_=!1,g.length=0,e=0;e<s;e+=1)i=this.shapes[e],i.styles.indexOf(c)!==-1&&(g.push(i),_=i._isAnimated||_);g.length>1&&_&&this.setShapesAsAnimated(g)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,s){var i,a=new SVGStyleData(e,s),o=a.pElem;if(e.ty==="st")i=new SVGStrokeStyleData(this,e,a);else if(e.ty==="fl")i=new SVGFillStyleData(this,e,a);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;i=new c(this,e,a),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),o.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))}else e.ty==="no"&&(i=new SVGNoStyleData(this,e,a));return(e.ty==="st"||e.ty==="gs")&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),o.setAttribute("fill-opacity","0"),e.lj===1&&o.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&o.setAttribute("fill-rule","evenodd"),e.ln&&o.setAttribute("id",e.ln),e.cl&&o.setAttribute("class",e.cl),e.bm&&(o.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createGroupElement=function(e){var s=new ShapeGroupData;return e.ln&&s.gr.setAttribute("id",e.ln),e.cl&&s.gr.setAttribute("class",e.cl),e.bm&&(s.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),s},SVGShapeElement.prototype.createTransformElement=function(e,s){var i=TransformPropertyFactory.getTransformProperty(this,e,this),a=new SVGTransformData(i,i.o,s);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,s,i){var a=4;e.ty==="rc"?a=5:e.ty==="el"?a=6:e.ty==="sr"&&(a=7);var o=ShapePropertyFactory.getShapeProp(this,e,a,this),c=new SVGShapeData(s,i,o);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},SVGShapeElement.prototype.addToAnimatedContents=function(e,s){for(var i=0,a=this.animatedContents.length;i<a;){if(this.animatedContents[i].element===s)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:s,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var s=e.styles,i,a=this.stylesList.length;for(i=0;i<a;i+=1)s.indexOf(this.stylesList[i])===-1&&!this.stylesList[i].closed&&s.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,s=this.itemsData.length;for(e=0;e<s;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,e=0;e<s;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,s,i,a,o,c,g){var _=[].concat(c),b,$=e.length-1,et,ot,rt=[],at=[],it,st,dt;for(b=$;b>=0;b-=1){if(dt=this.searchProcessedElement(e[b]),dt?s[b]=i[dt-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")dt?s[b].style.closed=e[b].hd:s[b]=this.createStyleElement(e[b],o),e[b]._render&&s[b].style.pElem.parentNode!==a&&a.appendChild(s[b].style.pElem),rt.push(s[b].style);else if(e[b].ty==="gr"){if(!dt)s[b]=this.createGroupElement(e[b]);else for(ot=s[b].it.length,et=0;et<ot;et+=1)s[b].prevViewData[et]=s[b].it[et];this.searchShapes(e[b].it,s[b].it,s[b].prevViewData,s[b].gr,o+1,_,g),e[b]._render&&s[b].gr.parentNode!==a&&a.appendChild(s[b].gr)}else e[b].ty==="tr"?(dt||(s[b]=this.createTransformElement(e[b],a)),it=s[b].transform,_.push(it)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(dt||(s[b]=this.createShapeElement(e[b],_,o)),this.setElementStyles(s[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(dt?(st=s[b],st.closed=!1):(st=ShapeModifiers.getModifier(e[b].ty),st.init(this,e[b]),s[b]=st,this.shapeModifiers.push(st)),at.push(st)):e[b].ty==="rp"&&(dt?(st=s[b],st.closed=!0):(st=ShapeModifiers.getModifier(e[b].ty),s[b]=st,st.init(this,e,b,s),this.shapeModifiers.push(st),g=!1),at.push(st));this.addProcessedElement(e[b],b+1)}for($=rt.length,b=0;b<$;b+=1)rt[b].closed=!0;for($=at.length,b=0;b<$;b+=1)at[b].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<s;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,s=this.animatedContents.length,i;for(e=0;e<s;e+=1)i=this.animatedContents[e],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,s,i,a,o,c){this.o=e,this.sw=s,this.sc=i,this.fc=a,this.m=o,this.p=c,this._mdf={o:!0,sw:!!s,sc:!!i,fc:!!a,m:!0,p:!0}}LetterProps.prototype.update=function(e,s,i,a,o,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,g=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,g=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,g=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,g=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,g=!0),g};function TextProperty(e,s){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=e.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,o=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(a=0;a<o;a+=1)i!==this.keysIndex?c=this.effectsSequence[a](c,c.t):c=this.effectsSequence[a](this.currentData,c.t);s!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,s=this.elem.comp.renderedFrame,i=0,a=e.length;i<=a-1&&!(i===a-1||e[i+1].t>s);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var s=[],i=0,a=e.length,o,c,g=!1,_=!1,b="";i<a;)g=_,_=!1,o=e.charCodeAt(i),b=e.charAt(i),FontManager.isCombinedCharacter(o)?g=!0:o>=55296&&o<=56319?FontManager.isRegionalFlag(e,i)?b=e.substr(i,14):(c=e.charCodeAt(i+1),c>=56320&&c<=57343&&(FontManager.isModifier(o,c)?(b=e.substr(i,2),g=!0):FontManager.isFlagEmoji(e.substr(i,4))?b=e.substr(i,4):b=e.substr(i,2))):o>56319?(c=e.charCodeAt(i+1),FontManager.isVariationSelector(o)&&(g=!0)):FontManager.isZeroWidthJoiner(o)&&(g=!0,_=!0),g?(s[s.length-1]+=b,g=!1):s.push(b),i+=b.length;return s},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var s=this.elem.globalData.fontManager,i=this.data,a=[],o,c,g,_=0,b,$=i.m.g,et=0,ot=0,rt=0,at=[],it=0,st=0,dt,j,tt=s.getFontByName(e.f),_e,nt=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 ht=e.tr/1e3*e.finalSize,gt;if(e.sz)for(var ft=!0,_t=e.sz[0],At=e.sz[1],kt,St;ft;){St=this.buildFinalText(e.t),kt=0,it=0,c=St.length,ht=e.tr/1e3*e.finalSize;var Ct=-1;for(o=0;o<c;o+=1)gt=St[o].charCodeAt(0),g=!1,St[o]===" "?Ct=o:(gt===13||gt===3)&&(it=0,g=!0,kt+=e.finalLineHeight||e.finalSize*1.2),s.chars?(_e=s.getCharData(St[o],tt.fStyle,tt.fFamily),nt=g?0:_e.w*e.finalSize/100):nt=s.measureText(St[o],e.f,e.finalSize),it+nt>_t&&St[o]!==" "?(Ct===-1?c+=1:o=Ct,kt+=e.finalLineHeight||e.finalSize*1.2,St.splice(o,Ct===o?1:0,"\r"),Ct=-1,it=0):(it+=nt,it+=ht);kt+=tt.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&At<kt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=St,c=e.finalText.length,ft=!1)}it=-ht,nt=0;var Ot=0,xt;for(o=0;o<c;o+=1)if(g=!1,xt=e.finalText[o],gt=xt.charCodeAt(0),gt===13||gt===3?(Ot=0,at.push(it),st=it>st?it:st,it=-2*ht,b="",g=!0,rt+=1):b=xt,s.chars?(_e=s.getCharData(xt,tt.fStyle,s.getFontByName(e.f).fFamily),nt=g?0:_e.w*e.finalSize/100):nt=s.measureText(b,e.f,e.finalSize),xt===" "?Ot+=nt+ht:(it+=nt+ht+Ot,Ot=0),a.push({l:nt,an:nt,add:et,n:g,anIndexes:[],val:b,line:rt,animatorJustifyOffset:0}),$==2){if(et+=nt,b===""||b===" "||o===c-1){for((b===""||b===" ")&&(et-=nt);ot<=o;)a[ot].an=et,a[ot].ind=_,a[ot].extra=nt,ot+=1;_+=1,et=0}}else if($==3){if(et+=nt,b===""||o===c-1){for(b===""&&(et-=nt);ot<=o;)a[ot].an=et,a[ot].ind=_,a[ot].extra=nt,ot+=1;et=0,_+=1}}else a[_].ind=_,a[_].extra=0,_+=1;if(e.l=a,st=it>st?it:st,at.push(it),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=st,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=at;var pt=i.a,vt,lt;j=pt.length;var ct,yt,mt=[];for(dt=0;dt<j;dt+=1){for(vt=pt[dt],vt.a.sc&&(e.strokeColorAnim=!0),vt.a.sw&&(e.strokeWidthAnim=!0),(vt.a.fc||vt.a.fh||vt.a.fs||vt.a.fb)&&(e.fillColorAnim=!0),yt=0,ct=vt.s.b,o=0;o<c;o+=1)lt=a[o],lt.anIndexes[dt]=yt,(ct==1&<.val!==""||ct==2&<.val!==""&<.val!==" "||ct==3&&(lt.n||lt.val==" "||o==c-1)||ct==4&&(lt.n||o==c-1))&&(vt.s.rn===1&&mt.push(yt),yt+=1);i.a[dt].s.totalChars=yt;var wt=-1,Tt;if(vt.s.rn===1)for(o=0;o<c;o+=1)lt=a[o],wt!=lt.anIndexes[dt]&&(wt=lt.anIndexes[dt],Tt=mt.splice(Math.floor(Math.random()*mt.length),1)[0]),lt.anIndexes[dt]=Tt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=tt.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,s){s=s===void 0?this.keysIndex:s;var i=this.copyData({},this.data.d.k[s].s);i=this.copyData(i,e),this.data.d.k[s].s=i,this.recalculate(s),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var s=this.data.d.k[e].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,s=Math.min,i=Math.floor;function a(c,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=PropertyFactory.getProp(c,g.s||{k:0},0,0,this),"e"in g?this.e=PropertyFactory.getProp(c,g.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(c,g.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(c,g.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(c,g.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(c,g.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(c,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var _=0,b=0,$=1,et=1;this.ne.v>0?_=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?$=1-this.xe.v/100:et=1+this.xe.v/100;var ot=BezierFactory.getBezierEasing(_,b,$,et).get,rt=0,at=this.finalS,it=this.finalE,st=this.data.sh;if(st===2)it===at?rt=g>=it?1:0:rt=e(0,s(.5/(it-at)+(g-at)/(it-at),1)),rt=ot(rt);else if(st===3)it===at?rt=g>=it?0:1:rt=1-e(0,s(.5/(it-at)+(g-at)/(it-at),1)),rt=ot(rt);else if(st===4)it===at?rt=0:(rt=e(0,s(.5/(it-at)+(g-at)/(it-at),1)),rt<.5?rt*=2:rt=1-2*(rt-.5)),rt=ot(rt);else if(st===5){if(it===at)rt=0;else{var dt=it-at;g=s(e(0,g+.5-at),it-at);var j=-dt/2+g,tt=dt/2;rt=Math.sqrt(1-j*j/(tt*tt))}rt=ot(rt)}else st===6?(it===at?rt=0:(g=s(e(0,g+.5-at),it-at),rt=(1+Math.cos(Math.PI+Math.PI*2*g/(it-at)))/2),rt=ot(rt)):(g>=i(at)&&(g-at<0?rt=e(0,s(s(it,1)-(at-g),1)):rt=e(0,s(it-g,1))),rt=ot(rt));if(this.sm.v!==100){var _e=this.sm.v*.01;_e===0&&(_e=1e-8);var nt=.5-_e*.5;rt<nt?rt=0:(rt=(rt-nt)/_e,rt>1&&(rt=1))}return rt*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var _=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/_,$=this.s.v/_+b,et=this.e.v/_+b;if($>et){var ot=$;$=et,et=ot}this.finalS=$,this.finalE=et}},extendPrototype([DynamicPropertyContainer],a);function o(c,g,_){return new a(c,g)}return{getTextSelectorProp:o}}();function TextAnimatorDataProperty(e,s,i){var a={propType:!1},o=PropertyFactory.getProp,c=s.a;this.a={r:c.r?o(e,c.r,0,degToRads,i):a,rx:c.rx?o(e,c.rx,0,degToRads,i):a,ry:c.ry?o(e,c.ry,0,degToRads,i):a,sk:c.sk?o(e,c.sk,0,degToRads,i):a,sa:c.sa?o(e,c.sa,0,degToRads,i):a,s:c.s?o(e,c.s,1,.01,i):a,a:c.a?o(e,c.a,1,0,i):a,o:c.o?o(e,c.o,0,.01,i):a,p:c.p?o(e,c.p,1,0,i):a,sw:c.sw?o(e,c.sw,0,0,i):a,sc:c.sc?o(e,c.sc,1,0,i):a,fc:c.fc?o(e,c.fc,1,0,i):a,fh:c.fh?o(e,c.fh,0,0,i):a,fs:c.fs?o(e,c.fs,0,.01,i):a,fb:c.fb?o(e,c.fb,0,.01,i):a,t:c.t?o(e,c.t,0,0,i):a},this.s=TextSelectorProp.getTextSelectorProp(e,s.s,i),this.s.t=s.s.t}function TextAnimatorProperty(e,s,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=s,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}TextAnimatorProperty.prototype.searchProperties=function(){var e,s=this._textData.a.length,i,a=PropertyFactory.getProp;for(e=0;e<s;e+=1)i=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=a(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,a=this._animatorsData,o=this._textData,c=this.mHelper,g=this._renderType,_=this.renderedLetters.length,b,$,et,ot,rt=e.l,at,it,st,dt,j,tt,_e,nt,ut,ht,gt,ft,_t,At,kt;if(this._hasMaskedPath){if(kt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var St=kt.v;this._pathData.r.v&&(St=St.reverse()),at={tLength:0,segments:[]},ot=St._length-1;var Ct;for(ft=0,et=0;et<ot;et+=1)Ct=bez.buildBezierData(St.v[et],St.v[et+1],[St.o[et][0]-St.v[et][0],St.o[et][1]-St.v[et][1]],[St.i[et+1][0]-St.v[et+1][0],St.i[et+1][1]-St.v[et+1][1]]),at.tLength+=Ct.segmentLength,at.segments.push(Ct),ft+=Ct.segmentLength;et=ot,kt.v.c&&(Ct=bez.buildBezierData(St.v[et],St.v[0],[St.o[et][0]-St.v[et][0],St.o[et][1]-St.v[et][1]],[St.i[0][0]-St.v[0][0],St.i[0][1]-St.v[0][1]]),at.tLength+=Ct.segmentLength,at.segments.push(Ct),ft+=Ct.segmentLength),this._pathData.pi=at}if(at=this._pathData.pi,it=this._pathData.f.v,_e=0,tt=1,dt=0,j=!0,ht=at.segments,it<0&&kt.v.c)for(at.tLength<Math.abs(it)&&(it=-Math.abs(it)%at.tLength),_e=ht.length-1,ut=ht[_e].points,tt=ut.length-1;it<0;)it+=ut[tt].partialLength,tt-=1,tt<0&&(_e-=1,ut=ht[_e].points,tt=ut.length-1);ut=ht[_e].points,nt=ut[tt-1],st=ut[tt],gt=st.partialLength}ot=rt.length,b=0,$=0;var Ot=e.finalSize*1.2*.714,xt=!0,pt,vt,lt,ct,yt;ct=a.length;var mt,wt=-1,Tt,bt,jt,Lt=it,Rt=_e,It=tt,Ft=-1,Pt,Vt,Gt,$t,Bt,er,Wt,tr,Ut="",Qt=this.defaultPropsArray,Mt;if(e.j===2||e.j===1){var Nt=0,Xt=0,ir=e.j===2?-.5:-1,rr=0,Dt=!0;for(et=0;et<ot;et+=1)if(rt[et].n){for(Nt&&(Nt+=Xt);rr<et;)rt[rr].animatorJustifyOffset=Nt,rr+=1;Nt=0,Dt=!0}else{for(lt=0;lt<ct;lt+=1)pt=a[lt].a,pt.t.propType&&(Dt&&e.j===2&&(Xt+=pt.t.v*ir),vt=a[lt].s,mt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),mt.length?Nt+=pt.t.v*mt[0]*ir:Nt+=pt.t.v*mt*ir);Dt=!1}for(Nt&&(Nt+=Xt);rr<et;)rt[rr].animatorJustifyOffset=Nt,rr+=1}for(et=0;et<ot;et+=1){if(c.reset(),Pt=1,rt[et].n)b=0,$+=e.yOffset,$+=xt?1:0,it=Lt,xt=!1,this._hasMaskedPath&&(_e=Rt,tt=It,ut=ht[_e].points,nt=ut[tt-1],st=ut[tt],gt=st.partialLength,dt=0),Ut="",tr="",er="",Mt="",Qt=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}wt!==rt[et].ind&&(rt[wt]&&(it+=rt[wt].extra),it+=rt[et].an/2,wt=rt[et].ind),it+=i[0]*rt[et].an*.005;var Kt=0;for(lt=0;lt<ct;lt+=1)pt=a[lt].a,pt.p.propType&&(vt=a[lt].s,mt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),mt.length?Kt+=pt.p.v[0]*mt[0]:Kt+=pt.p.v[0]*mt),pt.a.propType&&(vt=a[lt].s,mt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),mt.length?Kt+=pt.a.v[0]*mt[0]:Kt+=pt.a.v[0]*mt);for(j=!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)*wt/(ot-1),it+=this._pathData.f.v);j;)dt+gt>=it+Kt||!ut?(_t=(it+Kt-dt)/st.partialLength,bt=nt.point[0]+(st.point[0]-nt.point[0])*_t,jt=nt.point[1]+(st.point[1]-nt.point[1])*_t,c.translate(-i[0]*rt[et].an*.005,-(i[1]*Ot)*.01),j=!1):ut&&(dt+=st.partialLength,tt+=1,tt>=ut.length&&(tt=0,_e+=1,ht[_e]?ut=ht[_e].points:kt.v.c?(tt=0,_e=0,ut=ht[_e].points):(dt-=st.partialLength,ut=null)),ut&&(nt=st,st=ut[tt],gt=st.partialLength));Tt=rt[et].an/2-rt[et].add,c.translate(-Tt,0,0)}else Tt=rt[et].an/2-rt[et].add,c.translate(-Tt,0,0),c.translate(-i[0]*rt[et].an*.005,-i[1]*Ot*.01,0);for(lt=0;lt<ct;lt+=1)pt=a[lt].a,pt.t.propType&&(vt=a[lt].s,mt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?mt.length?it+=pt.t.v*mt[0]:it+=pt.t.v*mt:mt.length?b+=pt.t.v*mt[0]:b+=pt.t.v*mt));for(e.strokeWidthAnim&&(Gt=e.sw||0),e.strokeColorAnim&&(e.sc?Vt=[e.sc[0],e.sc[1],e.sc[2]]:Vt=[0,0,0]),e.fillColorAnim&&e.fc&&($t=[e.fc[0],e.fc[1],e.fc[2]]),lt=0;lt<ct;lt+=1)pt=a[lt].a,pt.a.propType&&(vt=a[lt].s,mt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),mt.length?c.translate(-pt.a.v[0]*mt[0],-pt.a.v[1]*mt[1],pt.a.v[2]*mt[2]):c.translate(-pt.a.v[0]*mt,-pt.a.v[1]*mt,pt.a.v[2]*mt));for(lt=0;lt<ct;lt+=1)pt=a[lt].a,pt.s.propType&&(vt=a[lt].s,mt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),mt.length?c.scale(1+(pt.s.v[0]-1)*mt[0],1+(pt.s.v[1]-1)*mt[1],1):c.scale(1+(pt.s.v[0]-1)*mt,1+(pt.s.v[1]-1)*mt,1));for(lt=0;lt<ct;lt+=1){if(pt=a[lt].a,vt=a[lt].s,mt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),pt.sk.propType&&(mt.length?c.skewFromAxis(-pt.sk.v*mt[0],pt.sa.v*mt[1]):c.skewFromAxis(-pt.sk.v*mt,pt.sa.v*mt)),pt.r.propType&&(mt.length?c.rotateZ(-pt.r.v*mt[2]):c.rotateZ(-pt.r.v*mt)),pt.ry.propType&&(mt.length?c.rotateY(pt.ry.v*mt[1]):c.rotateY(pt.ry.v*mt)),pt.rx.propType&&(mt.length?c.rotateX(pt.rx.v*mt[0]):c.rotateX(pt.rx.v*mt)),pt.o.propType&&(mt.length?Pt+=(pt.o.v*mt[0]-Pt)*mt[0]:Pt+=(pt.o.v*mt-Pt)*mt),e.strokeWidthAnim&&pt.sw.propType&&(mt.length?Gt+=pt.sw.v*mt[0]:Gt+=pt.sw.v*mt),e.strokeColorAnim&&pt.sc.propType)for(Bt=0;Bt<3;Bt+=1)mt.length?Vt[Bt]+=(pt.sc.v[Bt]-Vt[Bt])*mt[0]:Vt[Bt]+=(pt.sc.v[Bt]-Vt[Bt])*mt;if(e.fillColorAnim&&e.fc){if(pt.fc.propType)for(Bt=0;Bt<3;Bt+=1)mt.length?$t[Bt]+=(pt.fc.v[Bt]-$t[Bt])*mt[0]:$t[Bt]+=(pt.fc.v[Bt]-$t[Bt])*mt;pt.fh.propType&&(mt.length?$t=addHueToRGB($t,pt.fh.v*mt[0]):$t=addHueToRGB($t,pt.fh.v*mt)),pt.fs.propType&&(mt.length?$t=addSaturationToRGB($t,pt.fs.v*mt[0]):$t=addSaturationToRGB($t,pt.fs.v*mt)),pt.fb.propType&&(mt.length?$t=addBrightnessToRGB($t,pt.fb.v*mt[0]):$t=addBrightnessToRGB($t,pt.fb.v*mt))}}for(lt=0;lt<ct;lt+=1)pt=a[lt].a,pt.p.propType&&(vt=a[lt].s,mt=vt.getMult(rt[et].anIndexes[lt],o.a[lt].s.totalChars),this._hasMaskedPath?mt.length?c.translate(0,pt.p.v[1]*mt[0],-pt.p.v[2]*mt[1]):c.translate(0,pt.p.v[1]*mt,-pt.p.v[2]*mt):mt.length?c.translate(pt.p.v[0]*mt[0],pt.p.v[1]*mt[1],-pt.p.v[2]*mt[2]):c.translate(pt.p.v[0]*mt,pt.p.v[1]*mt,-pt.p.v[2]*mt));if(e.strokeWidthAnim&&(er=Gt<0?0:Gt),e.strokeColorAnim&&(Wt="rgb("+Math.round(Vt[0]*255)+","+Math.round(Vt[1]*255)+","+Math.round(Vt[2]*255)+")"),e.fillColorAnim&&e.fc&&(tr="rgb("+Math.round($t[0]*255)+","+Math.round($t[1]*255)+","+Math.round($t[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,i[1]*Ot*.01+$,0),this._pathData.p.v){At=(st.point[1]-nt.point[1])/(st.point[0]-nt.point[0]);var Zt=Math.atan(At)*180/Math.PI;st.point[0]<nt.point[0]&&(Zt+=180),c.rotate(-Zt*Math.PI/180)}c.translate(bt,jt,0),it-=i[0]*rt[et].an*.005,rt[et+1]&&wt!==rt[et+1].ind&&(it+=rt[et].an/2,it+=e.tr*.001*e.finalSize)}else{switch(c.translate(b,$,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(rt[et].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[rt[et].line]),0,0);break;case 2:c.translate(rt[et].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[rt[et].line])/2,0,0);break}c.translate(0,-e.ls),c.translate(Tt,0,0),c.translate(i[0]*rt[et].an*.005,i[1]*Ot*.01,0),b+=rt[et].l+e.tr*.001*e.finalSize}g==="html"?Ut=c.toCSS():g==="svg"?Ut=c.to2dCSS():Qt=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],Mt=Pt}_<=et?(yt=new LetterProps(Mt,er,Wt,tr,Ut,Qt),this.renderedLetters.push(yt),_+=1,this.lettersChangedFlag=!0):(yt=this.renderedLetters[et],this.lettersChangedFlag=yt.update(Mt,er,Wt,tr,Ut,Qt)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,s,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,s,i),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,s,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,s){var i,a=s.length,o,c="";for(i=0;i<a;i+=1)s[i].ty==="sh"&&(o=s[i].ks.k,c+=buildShapeString(o,o.i.length,!0,e));return c},ITextElement.prototype.updateDocumentData=function(e,s){this.textProperty.updateDocumentData(e,s)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,s,i,a,o){switch(e.ps&&s.translate(e.ps[0],e.ps[1]+e.ascent,0),s.translate(0,-e.ls,0),e.j){case 1:s.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i]),0,0);break;case 2:s.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i])/2,0,0);break}s.translate(a,o,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,s,i){this.textSpans=[],this.renderType="svg",this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var s=0,i=e.length,a=[],o="";s<i;)e[s]==="\r"||e[s]===""?(a.push(o),o=""):o+=e[s],s+=1;return a.push(o),a},SVGTextLottieElement.prototype.buildShapeData=function(e,s){if(e.shapes&&e.shapes.length){var i=e.shapes[0];if(i.it){var a=i.it[i.it.length-1];a.s&&(a.s.k[0]=s,a.s.k[1]=s)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,s,i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var a=this.globalData.fontManager.getFontByName(i.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var o=i.fWeight,c=i.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",o)}this.layerElement.setAttribute("aria-label",i.t);var g=i.l||[],_=!!this.globalData.fontManager.chars;s=g.length;var b,$=this.mHelper,et="",ot=this.data.singleShape,rt=0,at=0,it=!0,st=i.tr*.001*i.finalSize;if(ot&&!_&&!i.sz){var dt=this.textContainer,j="start";switch(i.j){case 1:j="end";break;case 2:j="middle";break;default:j="start";break}dt.setAttribute("text-anchor",j),dt.setAttribute("letter-spacing",st);var tt=this.buildTextContents(i.finalText);for(s=tt.length,at=i.ps?i.ps[1]+i.ascent:0,e=0;e<s;e+=1)b=this.textSpans[e].span||createNS("tspan"),b.textContent=tt[e],b.setAttribute("x",0),b.setAttribute("y",at),b.style.display="inherit",dt.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,at+=i.finalLineHeight;this.layerElement.appendChild(dt)}else{var _e=this.textSpans.length,nt;for(e=0;e<s;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!_||!ot||e===0){if(b=_e>e?this.textSpans[e].span:createNS(_?"g":"text"),_e<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,_){var ut=createNS("g");b.appendChild(ut),this.textSpans[e].childSpan=ut}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if($.reset(),ot&&(g[e].n&&(rt=-st,at+=i.yOffset,at+=it?1:0,it=!1),this.applyTextPropertiesToMatrix(i,$,g[e].line,rt,at),rt+=g[e].l||0,rt+=st),_){nt=this.globalData.fontManager.getCharData(i.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var ht;if(nt.t===1)ht=new SVGCompElement(nt.data,this.globalData,this);else{var gt=emptyShapeData;nt.data&&nt.data.shapes&&(gt=this.buildShapeData(nt.data,i.finalSize)),ht=new SVGShapeElement(gt,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=ht,ht._debug=!0,ht.prepareFrame(0),ht.renderFrame(),this.textSpans[e].childSpan.appendChild(ht.layerElement),nt.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else ot&&b.setAttribute("transform","translate("+$.props[12]+","+$.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}ot&&b&&b.setAttribute("d",et)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,s=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<s;e+=1)i=this.textSpans[e].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,s,i=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;s=a.length;var o,c,g;for(e=0;e<s;e+=1)a[e].n||(o=i[e],c=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),o._mdf.m&&c.setAttribute("transform",o.m),o._mdf.o&&c.setAttribute("opacity",o.o),o._mdf.sw&&c.setAttribute("stroke-width",o.sw),o._mdf.sc&&c.setAttribute("stroke",o.sc),o._mdf.fc&&c.setAttribute("fill",o.fc))}};function ISolidElement(e,s,i){this.initElement(e,s,i)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initFrame(),this.initTransform(e,s,i),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(e,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var i=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var o=createElementID();i.setAttribute("id",o),i.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),s.appendChild(i),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,s=this.layers?this.layers.length:0;for(e=0;e<s;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var s=0,i=this.layers.length;for(s=0;s<i;s+=1)if(this.layers[s].ind===e)return s;return-1},SVGRendererBase.prototype.buildItem=function(e){var s=this.elements;if(!(s[e]||this.layers[e].ty===99)){s[e]=!0;var i=this.createItem(this.layers[e]);if(s[e]=i,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,e),this.layers[e].tt){var a="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(i);else{var o=s[a],c=o.getMatte(this.layers[e].tt);i.setMatte(c)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var s=0,i=this.elements.length;s<i;){if(this.elements[s]===e){var a="tp"in e.data?this.findIndexByInd(e.data.tp):s-1,o=this.elements[a],c=o.getMatte(this.layers[s].tt);e.setMatte(c);break}s+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var s,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),s=i-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(e-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<i;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,s){var i=e.getBaseElement();if(i){for(var a=0,o;a<s;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(o=this.elements[a].getBaseElement()),a+=1;o?this.layerElement.insertBefore(i,o):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initTransform(e,s,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var i,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,s=this.layers.length;for(e=0;e<s;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,s=this.layers.length;for(e=0;e<s;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,s,i){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(s&&s.title){var a=createNS("title"),o=createElementID();a.setAttribute("id",o),a.textContent=s.title,this.svgElement.appendChild(a),i+=o}if(s&&s.description){var c=createNS("desc"),g=createElementID();c.setAttribute("id",g),c.textContent=s.description,this.svgElement.appendChild(c),i+=" "+g}i&&this.svgElement.setAttribute("aria-labelledby",i);var _=createNS("defs");this.svgElement.appendChild(_);var b=createNS("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:_,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(s){var i,a=s.length,o="_";for(i=0;i<a;i+=1)o+=s[i].transform.key+"_";var c=this.sequences[o];return c||(c={transforms:[].concat(s),finalTransform:new Matrix,_mdf:!1},this.sequences[o]=c,this.sequenceList.push(c)),c},processSequence:function(s,i){for(var a=0,o=s.transforms.length,c=i;a<o&&!i;){if(s.transforms[a].transform.mProps._mdf){c=!0;break}a+=1}if(c)for(s.finalTransform.reset(),a=o-1;a>=0;a-=1)s.finalTransform.multiply(s.transforms[a].transform.mProps.v);s._mdf=c},processSequences:function(s){var i,a=this.sequenceList.length;for(i=0;i<a;i+=1)this.processSequence(this.sequenceList[i],s)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var s="__lottie_element_luma_buffer",i=null,a=null,o=null;function c(){var b=createNS("svg"),$=createNS("filter"),et=createNS("feColorMatrix");return $.setAttribute("id",s),et.setAttribute("type","matrix"),et.setAttribute("color-interpolation-filters","sRGB"),et.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),$.appendChild(et),b.appendChild($),b.setAttribute("id",s+"_svg"),featureSupport.svgLumaHidden&&(b.style.display="none"),b}function g(){i||(o=c(),document.body.appendChild(o),i=createTag("canvas"),a=i.getContext("2d"),a.filter="url(#"+s+")",a.fillStyle="rgba(0,0,0,0)",a.fillRect(0,0,1,1))}function _(b){return i||g(),i.width=b.width,i.height=b.height,a.filter="url(#"+s+")",i}return{load:g,get:_}};function createCanvas(e,s){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,s);var i=createTag("canvas");return i.width=e,i.height=s,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var s,i=e.data.ef?e.data.ef.length:0;this.filters=[];var a;for(s=0;s<i;s+=1){a=null;var o=e.data.ef[s].ty;if(registeredEffects[o]){var c=registeredEffects[o].effect;a=new c(e.effectsManager.effectElements[s],e)}a&&this.filters.push(a)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var s,i=this.filters.length;for(s=0;s<i;s+=1)this.filters[s].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var s,i=this.filters.length,a=[];for(s=0;s<i;s+=1)this.filters[s].type===e&&a.push(this.filters[s]);return a};function registerEffect(e,s){registeredEffects[e]={effect:s}}function CVMaskElement(e,s){this.data=e,this.element=s,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,a=this.masksProperties.length,o=!1;for(i=0;i<a;i+=1)this.masksProperties[i].mode!=="n"&&(o=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,s=this.element.canvasContext,i,a=this.masksProperties.length,o,c,g;for(s.beginPath(),i=0;i<a;i+=1)if(this.masksProperties[i].mode!=="n"){this.masksProperties[i].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),g=this.viewData[i].v,o=e.applyToPointArray(g.v[0][0],g.v[0][1],0),s.moveTo(o[0],o[1]);var _,b=g._length;for(_=1;_<b;_+=1)c=e.applyToTriplePoints(g.o[_-1],g.i[_],g.v[_]),s.bezierCurveTo(c[0],c[1],c[2],c[3],c[4],c[5]);c=e.applyToTriplePoints(g.o[_-1],g.i[0],g.v[0]),s.bezierCurveTo(c[0],c[1],c[2],c[3],c[4],c[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var s=this.globalData.canvasContext,i=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push(i);var a=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push(a),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var s=this.globalData;if(s.blendMode!==this.data.bm){s.blendMode=this.data.bm;var i=getBlendMode(this.data.bm);s.canvasContext.globalCompositeOperation=i}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(s){s.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var s=this.buffers[0],i=s.getContext("2d");this.clearCanvas(i),i.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var s=this.buffers[1],i=s.getContext("2d");this.clearCanvas(i),i.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var a=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(a.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var o=assetLoader.getLumaCanvas(this.canvasContext.canvas),c=o.getContext("2d");c.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(o,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(s,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(s){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!s)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var i=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(i),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(i),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,s,i,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o=4;s.ty==="rc"?o=5:s.ty==="el"?o=6:s.ty==="sr"&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,s,o,e);var c,g=i.length,_;for(c=0;c<g;c+=1)i[c].closed||(_={transforms:a.addTransformSequence(i[c].transforms),trNodes:[]},this.styledShapes.push(_),i[c].elements.push(_))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,s){var i={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(s),transforms:[],elements:[],closed:e.hd===!0},a={};if(e.ty==="fl"||e.ty==="st"?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(i.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(i.lc=lineCapEnum[e.lc||2],i.lj=lineJoinEnum[e.lj||2],e.lj==1&&(i.ml=e.ml),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(i.wi=a.w.v),e.d){var o=new DashProperty(this,e.d,"canvas",this);a.d=o,a.d.k||(i.da=a.d.dashArray,i.do=a.d.dashoffset[0])}}else i.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(i),a.style=i,a},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var s={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return s},CVShapeElement.prototype.createShapeElement=function(e){var s=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(s),this.addShapeToModifiers(s),s},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,s=this.itemsData.length;for(e=0;e<s;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),s=this.dynamicProperties.length,e=0;e<s;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var s,i=this.stylesList.length;for(s=0;s<i;s+=1)this.stylesList[s].closed||this.stylesList[s].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s].closed=!0},CVShapeElement.prototype.searchShapes=function(e,s,i,a,o){var c,g=e.length-1,_,b,$=[],et=[],ot,rt,at,it=[].concat(o);for(c=g;c>=0;c-=1){if(ot=this.searchProcessedElement(e[c]),ot?s[c]=i[ot-1]:e[c]._shouldRender=a,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs")ot?s[c].style.closed=!1:s[c]=this.createStyleElement(e[c],it),$.push(s[c].style);else if(e[c].ty==="gr"){if(!ot)s[c]=this.createGroupElement(e[c]);else for(b=s[c].it.length,_=0;_<b;_+=1)s[c].prevViewData[_]=s[c].it[_];this.searchShapes(e[c].it,s[c].it,s[c].prevViewData,a,it)}else e[c].ty==="tr"?(ot||(at=this.createTransformElement(e[c]),s[c]=at),it.push(s[c]),this.addTransformToStyleList(s[c])):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?ot||(s[c]=this.createShapeElement(e[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(ot?(rt=s[c],rt.closed=!1):(rt=ShapeModifiers.getModifier(e[c].ty),rt.init(this,e[c]),s[c]=rt,this.shapeModifiers.push(rt)),et.push(rt)):e[c].ty==="rp"&&(ot?(rt=s[c],rt.closed=!0):(rt=ShapeModifiers.getModifier(e[c].ty),s[c]=rt,rt.init(this,e,c,s),this.shapeModifiers.push(rt),a=!1),et.push(rt));this.addProcessedElement(e[c],c+1)}for(this.removeTransformFromStyleList(),this.closeStyles($),g=et.length,c=0;c<g;c+=1)et[c].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,s){(e._opMdf||s.op._mdf||this._isFirstFrame)&&(s.opacity=e.opacity,s.opacity*=s.op.v,s._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,s=this.stylesList.length,i,a,o,c,g,_,b=this.globalData.renderer,$=this.globalData.canvasContext,et,ot;for(e=0;e<s;e+=1)if(ot=this.stylesList[e],et=ot.type,!((et==="st"||et==="gs")&&ot.wi===0||!ot.data._shouldRender||ot.coOp===0||this.globalData.currentGlobalAlpha===0)){for(b.save(),g=ot.elements,et==="st"||et==="gs"?(b.ctxStrokeStyle(et==="st"?ot.co:ot.grd),b.ctxLineWidth(ot.wi),b.ctxLineCap(ot.lc),b.ctxLineJoin(ot.lj),b.ctxMiterLimit(ot.ml||0)):b.ctxFillStyle(et==="fl"?ot.co:ot.grd),b.ctxOpacity(ot.coOp),et!=="st"&&et!=="gs"&&$.beginPath(),b.ctxTransform(ot.preTransforms.finalTransform.props),a=g.length,i=0;i<a;i+=1){for((et==="st"||et==="gs")&&($.beginPath(),ot.da&&($.setLineDash(ot.da),$.lineDashOffset=ot.do)),_=g[i].trNodes,c=_.length,o=0;o<c;o+=1)_[o].t==="m"?$.moveTo(_[o].p[0],_[o].p[1]):_[o].t==="c"?$.bezierCurveTo(_[o].pts[0],_[o].pts[1],_[o].pts[2],_[o].pts[3],_[o].pts[4],_[o].pts[5]):$.closePath();(et==="st"||et==="gs")&&(b.ctxStroke(),ot.da&&$.setLineDash(this.dashResetter))}et!=="st"&&et!=="gs"&&this.globalData.renderer.ctxFill(ot.r),b.restore()}},CVShapeElement.prototype.renderShape=function(e,s,i,a){var o,c=s.length-1,g;for(g=e,o=c;o>=0;o-=1)s[o].ty==="tr"?(g=i[o].transform,this.renderShapeTransform(e,g)):s[o].ty==="sh"||s[o].ty==="el"||s[o].ty==="rc"||s[o].ty==="sr"?this.renderPath(s[o],i[o]):s[o].ty==="fl"?this.renderFill(s[o],i[o],g):s[o].ty==="st"?this.renderStroke(s[o],i[o],g):s[o].ty==="gf"||s[o].ty==="gs"?this.renderGradientFill(s[o],i[o],g):s[o].ty==="gr"?this.renderShape(g,s[o].it,i[o].it):s[o].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,s){if(this._isFirstFrame||s._mdf||e.transforms._mdf){var i=e.trNodes,a=s.paths,o,c,g,_=a._length;i.length=0;var b=e.transforms.finalTransform;for(g=0;g<_;g+=1){var $=a.shapes[g];if($&&$.v){for(c=$._length,o=1;o<c;o+=1)o===1&&i.push({t:"m",p:b.applyToPointArray($.v[0][0],$.v[0][1],0)}),i.push({t:"c",pts:b.applyToTriplePoints($.o[o-1],$.i[o],$.v[o])});c===1&&i.push({t:"m",p:b.applyToPointArray($.v[0][0],$.v[0][1],0)}),$.c&&c&&(i.push({t:"c",pts:b.applyToTriplePoints($.o[o-1],$.i[0],$.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,s){if(e.hd!==!0&&e._shouldRender){var i,a=s.styledShapes.length;for(i=0;i<a;i+=1)this.renderStyledShape(s.styledShapes[i],s.sh)}},CVShapeElement.prototype.renderFill=function(e,s,i){var a=s.style;(s.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||i._opMdf||this._isFirstFrame)&&(a.coOp=s.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,s,i){var a=s.style,o;if(!a.grd||s.g._mdf||s.s._mdf||s.e._mdf||e.t!==1&&(s.h._mdf||s.a._mdf)){var c=this.globalData.canvasContext,g=s.s.v,_=s.e.v;if(e.t===1)o=c.createLinearGradient(g[0],g[1],_[0],_[1]);else{var b=Math.sqrt(Math.pow(g[0]-_[0],2)+Math.pow(g[1]-_[1],2)),$=Math.atan2(_[1]-g[1],_[0]-g[0]),et=s.h.v;et>=1?et=.99:et<=-1&&(et=-.99);var ot=b*et,rt=Math.cos($+s.a.v)*ot+g[0],at=Math.sin($+s.a.v)*ot+g[1];o=c.createRadialGradient(rt,at,0,g[0],g[1],b)}var it,st=e.g.p,dt=s.g.c,j=1;for(it=0;it<st;it+=1)s.g._hasOpacity&&s.g._collapsable&&(j=s.g.o[it*2+1]),o.addColorStop(dt[it*4]/100,"rgba("+dt[it*4+1]+","+dt[it*4+2]+","+dt[it*4+3]+","+j+")");a.grd=o}a.coOp=s.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(e,s,i){var a=s.style,o=s.d;o&&(o._mdf||this._isFirstFrame)&&(a.da=o.dashArray,a.do=o.dashoffset[0]),(s.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||i._opMdf||this._isFirstFrame)&&(a.coOp=s.o.v*i.opacity),(s.w._mdf||this._isFirstFrame)&&(a.wi=s.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,s,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var s=!1;e.fc?(s=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=s;var i=!1;e.sc&&(i=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var a=this.globalData.fontManager.getFontByName(e.f),o,c,g=e.l,_=this.mHelper;this.stroke=i,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,c=e.finalText.length;var b,$,et,ot,rt,at,it,st,dt,j,tt=this.data.singleShape,_e=e.tr*.001*e.finalSize,nt=0,ut=0,ht=!0,gt=0;for(o=0;o<c;o+=1){b=this.globalData.fontManager.getCharData(e.finalText[o],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),$=b&&b.data||{},_.reset(),tt&&g[o].n&&(nt=-_e,ut+=e.yOffset,ut+=ht?1:0,ht=!1),rt=$.shapes?$.shapes[0].it:[],it=rt.length,_.scale(e.finalSize/100,e.finalSize/100),tt&&this.applyTextPropertiesToMatrix(e,_,g[o].line,nt,ut),dt=createSizedArray(it-1);var ft=0;for(at=0;at<it;at+=1)if(rt[at].ty==="sh"){for(ot=rt[at].ks.k.i.length,st=rt[at].ks.k,j=[],et=1;et<ot;et+=1)et===1&&j.push(_.applyToX(st.v[0][0],st.v[0][1],0),_.applyToY(st.v[0][0],st.v[0][1],0)),j.push(_.applyToX(st.o[et-1][0],st.o[et-1][1],0),_.applyToY(st.o[et-1][0],st.o[et-1][1],0),_.applyToX(st.i[et][0],st.i[et][1],0),_.applyToY(st.i[et][0],st.i[et][1],0),_.applyToX(st.v[et][0],st.v[et][1],0),_.applyToY(st.v[et][0],st.v[et][1],0));j.push(_.applyToX(st.o[et-1][0],st.o[et-1][1],0),_.applyToY(st.o[et-1][0],st.o[et-1][1],0),_.applyToX(st.i[0][0],st.i[0][1],0),_.applyToY(st.i[0][0],st.i[0][1],0),_.applyToX(st.v[0][0],st.v[0][1],0),_.applyToY(st.v[0][0],st.v[0][1],0)),dt[ft]=j,ft+=1}tt&&(nt+=g[o].l,nt+=_e),this.textSpans[gt]?this.textSpans[gt].elem=dt:this.textSpans[gt]={elem:dt},gt+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var s,i,a,o,c,g,_=this.textAnimator.renderedLetters,b=this.textProperty.currentData.l;i=b.length;var $,et=null,ot=null,rt=null,at,it,st=this.globalData.renderer;for(s=0;s<i;s+=1)if(!b[s].n){if($=_[s],$&&(st.save(),st.ctxTransform($.p),st.ctxOpacity($.o)),this.fill){for($&&$.fc?et!==$.fc&&(st.ctxFillStyle($.fc),et=$.fc):et!==this.values.fill&&(et=this.values.fill,st.ctxFillStyle(this.values.fill)),at=this.textSpans[s].elem,o=at.length,this.globalData.canvasContext.beginPath(),a=0;a<o;a+=1)for(it=at[a],g=it.length,this.globalData.canvasContext.moveTo(it[0],it[1]),c=2;c<g;c+=6)this.globalData.canvasContext.bezierCurveTo(it[c],it[c+1],it[c+2],it[c+3],it[c+4],it[c+5]);this.globalData.canvasContext.closePath(),st.ctxFill()}if(this.stroke){for($&&$.sw?rt!==$.sw&&(rt=$.sw,st.ctxLineWidth($.sw)):rt!==this.values.sWidth&&(rt=this.values.sWidth,st.ctxLineWidth(this.values.sWidth)),$&&$.sc?ot!==$.sc&&(ot=$.sc,st.ctxStrokeStyle($.sc)):ot!==this.values.stroke&&(ot=this.values.stroke,st.ctxStrokeStyle(this.values.stroke)),at=this.textSpans[s].elem,o=at.length,this.globalData.canvasContext.beginPath(),a=0;a<o;a+=1)for(it=at[a],g=it.length,this.globalData.canvasContext.moveTo(it[0],it[1]),c=2;c<g;c+=6)this.globalData.canvasContext.bezierCurveTo(it[c],it[c+1],it[c+2],it[c+3],it[c+4],it[c+5]);this.globalData.canvasContext.closePath(),st.ctxStroke()}$&&this.globalData.renderer.restore()}};function CVImageElement(e,s,i){this.assetData=s.getAssetData(e.refId),this.img=s.imageLoader.getAsset(this.assetData),this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var s=e.getContext("2d"),i=this.img.width,a=this.img.height,o=i/a,c=this.assetData.w/this.assetData.h,g,_,b=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>c&&b==="xMidYMid slice"||o<c&&b!=="xMidYMid slice"?(_=a,g=_*c):(g=i,_=g/c),s.drawImage(this.img,(i-g)/2,(a-_)/2,g,_,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,s,i){this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,s,i,a){this.canvasContext.fillRect(e,s,i,a)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var s=this.animationItem.container.style;s.width="100%",s.height="100%";var i="0px 0px 0px";s.transformOrigin=i,s.mozTransformOrigin=i,s.webkitTransformOrigin=i,s["-webkit-transform"]=i,s.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,s){this.reset();var i,a;e?(i=e,a=s,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=a):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,a=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=a*this.renderConfig.dpr);var o,c;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var g=this.renderConfig.preserveAspectRatio.split(" "),_=g[1]||"meet",b=g[0]||"xMidYMid",$=b.substr(0,4),et=b.substr(4);o=i/a,c=this.transformCanvas.w/this.transformCanvas.h,c>o&&_==="meet"||c<o&&_==="slice"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr)),$==="xMid"&&(c<o&&_==="meet"||c>o&&_==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:$==="xMax"&&(c<o&&_==="meet"||c>o&&_==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(a/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,et==="YMid"&&(c>o&&_==="meet"||c<o&&_==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:et==="YMax"&&(c>o&&_==="meet"||c<o&&_==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,s=this.layers?this.layers.length:0;for(e=s-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,s){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!s||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||s,this.globalData.projectInterface.currentFrame=e;var i,a=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var s=this.elements;if(!(s[e]||this.layers[e].ty===99)){var i=this.createItem(this.layers[e],this,this.globalData);s[e]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,s=15;for(e=0;e<s;e+=1){var i=new CanvasContext;this.stack[e]=i}this._length=s,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,s=0;for(s=this._length;s<e;s+=1)this.stack[s]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var s=this.stack[this.cArrPos],i=s.transform,a,o=this.cTr.props;for(a=0;a<16;a+=1)o[a]=i[a];if(e){this.nativeContext.restore();var c=this.stack[this.cArrPos+1];this.appliedFillStyle=c.fillStyle,this.appliedStrokeStyle=c.strokeStyle,this.appliedLineWidth=c.lineWidth,this.appliedLineCap=c.lineCap,this.appliedLineJoin=c.lineJoin,this.appliedMiterLimit=c.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||s.opacity!==-1&&this.currentOpacity!==s.opacity)&&(this.nativeContext.globalAlpha=s.opacity,this.currentOpacity=s.opacity),this.currentFillStyle=s.fillStyle,this.currentStrokeStyle=s.strokeStyle,this.currentLineWidth=s.lineWidth,this.currentLineCap=s.lineCap,this.currentLineJoin=s.lineJoin,this.currentMiterLimit=s.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var s=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i=this.stack[this.cArrPos],a;for(a=0;a<16;a+=1)i.transform[a]=s[a];this.cArrPos+=1;var o=this.stack[this.cArrPos];o.opacity=i.opacity,o.fillStyle=i.fillStyle,o.strokeStyle=i.strokeStyle,o.lineWidth=i.lineWidth,o.lineCap=i.lineCap,o.lineJoin=i.lineJoin,o.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var s=this.cTr;this.transformMat.multiply(s),s.cloneFromProps(this.transformMat.props);var i=s.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(e){var s=this.stack[this.cArrPos].opacity;s*=e<0?0:e,this.stack[this.cArrPos].opacity!==s&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=s)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,s,i,a){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,s,i,a)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,s,i){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var s,i=this.layers.length;for(s=i-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()},CVCompElement.prototype.destroy=function(){var e,s=this.layers.length;for(e=s-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,s){this.animationItem=e,this.renderConfig={clearCanvas:s&&s.clearCanvas!==void 0?s.clearCanvas:!0,context:s&&s.context||null,progressiveLoad:s&&s.progressiveLoad||!1,preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",className:s&&s.className||"",id:s&&s.id||"",runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.renderConfig.dpr=s&&s.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=s&&s.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var s=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var i=this.finalTransform.mat.toCSS();s.transform=i,s.webkitTransform=i}this.finalTransform._opMdf&&(s.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,s,i){this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,s,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var s=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",s.w),e.setAttribute("height",s.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,s){var i,a=e.length;for(i=0;i<a;i+=1)s=e[i].mProps.v.applyToPointArray(s[0],s[1],0);return s},HShapeElement.prototype.calculateShapeBoundingBox=function(e,s){var i=e.sh.v,a=e.transformers,o,c=i._length,g,_,b,$;if(!(c<=1)){for(o=0;o<c-1;o+=1)g=this.getTransformedPoint(a,i.v[o]),_=this.getTransformedPoint(a,i.o[o]),b=this.getTransformedPoint(a,i.i[o+1]),$=this.getTransformedPoint(a,i.v[o+1]),this.checkBounds(g,_,b,$,s);i.c&&(g=this.getTransformedPoint(a,i.v[o]),_=this.getTransformedPoint(a,i.o[o]),b=this.getTransformedPoint(a,i.i[0]),$=this.getTransformedPoint(a,i.v[0]),this.checkBounds(g,_,b,$,s))}},HShapeElement.prototype.checkBounds=function(e,s,i,a,o){this.getBoundsOfCurve(e,s,i,a);var c=this.shapeBoundingBox;o.x=bmMin(c.left,o.x),o.xMax=bmMax(c.right,o.xMax),o.y=bmMin(c.top,o.y),o.yMax=bmMax(c.bottom,o.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,s,i,a){for(var o=[[e[0],a[0]],[e[1],a[1]]],c,g,_,b,$,et,ot,rt=0;rt<2;++rt)g=6*e[rt]-12*s[rt]+6*i[rt],c=-3*e[rt]+9*s[rt]-9*i[rt]+3*a[rt],_=3*s[rt]-3*e[rt],g|=0,c|=0,_|=0,c===0&&g===0||(c===0?(b=-_/g,b>0&&b<1&&o[rt].push(this.calculateF(b,e,s,i,a,rt))):($=g*g-4*_*c,$>=0&&(et=(-g+bmSqrt($))/(2*c),et>0&&et<1&&o[rt].push(this.calculateF(et,e,s,i,a,rt)),ot=(-g-bmSqrt($))/(2*c),ot>0&&ot<1&&o[rt].push(this.calculateF(ot,e,s,i,a,rt)))));this.shapeBoundingBox.left=bmMin.apply(null,o[0]),this.shapeBoundingBox.top=bmMin.apply(null,o[1]),this.shapeBoundingBox.right=bmMax.apply(null,o[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,o[1])},HShapeElement.prototype.calculateF=function(e,s,i,a,o,c){return bmPow(1-e,3)*s[c]+3*bmPow(1-e,2)*e*i[c]+3*(1-e)*bmPow(e,2)*a[c]+bmPow(e,3)*o[c]},HShapeElement.prototype.calculateBoundingBox=function(e,s){var i,a=e.length;for(i=0;i<a;i+=1)e[i]&&e[i].sh?this.calculateShapeBoundingBox(e[i],s):e[i]&&e[i].it?this.calculateBoundingBox(e[i].it,s):e[i]&&e[i].style&&e[i].w&&this.expandStrokeBoundingBox(e[i].w,s)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,s){var i=0;if(e.keyframes){for(var a=0;a<e.keyframes.length;a+=1){var o=e.keyframes[a].s;o>i&&(i=o)}i*=e.mult}else i=e.v*e.mult;s.x-=i,s.xMax+=i,s.y-=i,s.yMax+=i},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,s=999999;if(e.x=s,e.xMax=-s,e.y=s,e.yMax=-s,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var i=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),i=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),i=!0),i||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var a=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=o,a.webkitTransform=o}}};function HTextElement(e,s,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var s=this.innerElem.style,i=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";s.fill=i,s.color=i,e.sc&&(s.stroke=this.buildColor(e.sc),s.strokeWidth=e.sw+"px");var a=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(s.fontSize=e.finalSize+"px",s.lineHeight=e.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{s.fontFamily=a.fFamily;var o=e.fWeight,c=e.fStyle;s.fontStyle=c,s.fontWeight=o}var g,_,b=e.l;_=b.length;var $,et,ot,rt=this.mHelper,at,it="",st=0;for(g=0;g<_;g+=1){if(this.globalData.fontManager.chars?(this.textPaths[st]?$=this.textPaths[st]:($=createNS("path"),$.setAttribute("stroke-linecap",lineCapEnum[1]),$.setAttribute("stroke-linejoin",lineJoinEnum[2]),$.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[st]?(et=this.textSpans[st],ot=et.children[0]):(et=createTag("div"),et.style.lineHeight=0,ot=createNS("svg"),ot.appendChild($),styleDiv(et)))):this.isMasked?$=this.textPaths[st]?this.textPaths[st]:createNS("text"):this.textSpans[st]?(et=this.textSpans[st],$=this.textPaths[st]):(et=createTag("span"),styleDiv(et),$=createTag("span"),styleDiv($),et.appendChild($)),this.globalData.fontManager.chars){var dt=this.globalData.fontManager.getCharData(e.finalText[g],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),j;if(dt?j=dt.data:j=null,rt.reset(),j&&j.shapes&&j.shapes.length&&(at=j.shapes[0].it,rt.scale(e.finalSize/100,e.finalSize/100),it=this.createPathShape(rt,at),$.setAttribute("d",it)),this.isMasked)this.innerElem.appendChild($);else{if(this.innerElem.appendChild(et),j&&j.shapes){document.body.appendChild(ot);var tt=ot.getBBox();ot.setAttribute("width",tt.width+2),ot.setAttribute("height",tt.height+2),ot.setAttribute("viewBox",tt.x-1+" "+(tt.y-1)+" "+(tt.width+2)+" "+(tt.height+2));var _e=ot.style,nt="translate("+(tt.x-1)+"px,"+(tt.y-1)+"px)";_e.transform=nt,_e.webkitTransform=nt,b[g].yOffset=tt.y-1}else ot.setAttribute("width",1),ot.setAttribute("height",1);et.appendChild(ot)}}else if($.textContent=b[g].val,$.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild($);else{this.innerElem.appendChild(et);var ut=$.style,ht="translate3d(0,"+-e.finalSize/1.2+"px,0)";ut.transform=ht,ut.webkitTransform=ht}this.isMasked?this.textSpans[st]=$:this.textSpans[st]=et,this.textSpans[st].style.display="block",this.textPaths[st]=$,st+=1}for(;st<this.textSpans.length;)this.textSpans[st].style.display="none",st+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var s="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=s,e.webkitTransform=s}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var i,a,o=0,c=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;a=g.length;var _,b,$;for(i=0;i<a;i+=1)g[i].n?o+=1:(b=this.textSpans[i],$=this.textPaths[i],_=c[o],o+=1,_._mdf.m&&(this.isMasked?b.setAttribute("transform",_.m):(b.style.webkitTransform=_.m,b.style.transform=_.m)),b.style.opacity=_.o,_.sw&&_._mdf.sw&&$.setAttribute("stroke-width",_.sw),_.sc&&_._mdf.sc&&$.setAttribute("stroke",_.sc),_.fc&&_._mdf.fc&&($.setAttribute("fill",_.fc),$.style.color=_.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var et=this.innerElem.getBBox();this.currentBBox.w!==et.width&&(this.currentBBox.w=et.width,this.svgElement.setAttribute("width",et.width)),this.currentBBox.h!==et.height&&(this.currentBBox.h=et.height,this.svgElement.setAttribute("height",et.height));var ot=1;if(this.currentBBox.w!==et.width+ot*2||this.currentBBox.h!==et.height+ot*2||this.currentBBox.x!==et.x-ot||this.currentBBox.y!==et.y-ot){this.currentBBox.w=et.width+ot*2,this.currentBBox.h=et.height+ot*2,this.currentBBox.x=et.x-ot,this.currentBBox.y=et.y-ot,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var rt="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=rt,e.webkitTransform=rt}}}};function HCameraElement(e,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var o,c=e.ks.or.k.length;for(o=0;o<c;o+=1)e.ks.or.k[o].to=null,e.ks.or.k[o].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,s=this.comp.threeDElements.length,i,a,o;for(e=0;e<s;e+=1)if(i=this.comp.threeDElements[e],i.type==="3d"){a=i.perspectiveElem.style,o=i.container.style;var c=this.pe.v+"px",g="0px 0px 0px",_="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.perspective=c,a.webkitPerspective=c,o.transformOrigin=g,o.mozTransformOrigin=g,o.webkitTransformOrigin=g,a.transform=_,a.webkitTransform=_}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,s,i;if(this.hierarchy)for(i=this.hierarchy.length,s=0;s<i;s+=1)e=this.hierarchy[s].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(i=this.hierarchy.length-1,s=i;s>=0;s-=1){var a=this.hierarchy[s].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var o;this.p?o=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:o=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var c=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),g=[o[0]/c,o[1]/c,o[2]/c],_=Math.sqrt(g[2]*g[2]+g[0]*g[0]),b=Math.atan2(g[1],_),$=Math.atan2(g[0],-g[2]);this.mat.rotateY($).rotateX(-b)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var et=!this._prevMat.equals(this.mat);if((et||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var ot,rt,at;for(s=0;s<i;s+=1)if(ot=this.comp.threeDElements[s],ot.type==="3d"){if(et){var it=this.mat.toCSS();at=ot.container.style,at.transform=it,at.webkitTransform=it}this.pe._mdf&&(rt=ot.perspectiveElem.style,rt.perspective=this.pe.v+"px",rt.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,s,i){this.assetData=s.getAssetData(e.refId),this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),s=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(s),s.crossOrigin="anonymous",s.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,s){var i=e.getBaseElement();if(i){var a=this.layers[s];if(!a.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(i,s);else{for(var o=0,c,g,_;o<s;)this.elements[o]&&this.elements[o]!==!0&&this.elements[o].getBaseElement&&(g=this.elements[o],_=this.layers[o].ddd?this.getThreeDContainerByPos(o):g.getBaseElement(),c=_||c),o+=1;c?(!a.ddd||!this.supports3d)&&this.layerElement.insertBefore(i,c):(!a.ddd||!this.supports3d)&&this.layerElement.appendChild(i)}else this.addTo3dContainer(i,s)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var s=0,i=this.threeDElements.length;s<i;){if(this.threeDElements[s].startPos<=e&&this.threeDElements[s].endPos>=e)return this.threeDElements[s].perspectiveElem;s+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,s){var i=createTag("div"),a,o;styleDiv(i);var c=createTag("div");if(styleDiv(c),s==="3d"){a=i.style,a.width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px";var g="50% 50%";a.webkitTransformOrigin=g,a.mozTransformOrigin=g,a.transformOrigin=g,o=c.style;var _="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";o.transform=_,o.webkitTransform=_}i.appendChild(c);var b={container:c,perspectiveElem:i,startPos:e,endPos:e,type:s};return this.threeDElements.push(b),b},HybridRendererBase.prototype.build3dContainers=function(){var e,s=this.layers.length,i,a="";for(e=0;e<s;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(a!=="3d"&&(a="3d",i=this.createThreeDContainer(e,"3d")),i.endPos=Math.max(i.endPos,e)):(a!=="2d"&&(a="2d",i=this.createThreeDContainer(e,"2d")),i.endPos=Math.max(i.endPos,e));for(s=this.threeDElements.length,e=s-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,s){for(var i=0,a=this.threeDElements.length;i<a;){if(s<=this.threeDElements[i].endPos){for(var o=this.threeDElements[i].startPos,c;o<s;)this.elements[o]&&this.elements[o].getBaseElement&&(c=this.elements[o].getBaseElement()),o+=1;c?this.threeDElements[i].container.insertBefore(e,c):this.threeDElements[i].container.appendChild(e);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(e){var s=createTag("div"),i=this.animationItem.wrapper,a=s.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=s,styleDiv(s),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&s.setAttribute("class",this.renderConfig.className),i.appendChild(s),a.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var c=createNS("defs");o.appendChild(c),this.data=e,this.setupGlobalData(e,o),this.globalData.defs=c,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,s=this.layers?this.layers.length:0;for(e=0;e<s;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,i=e/s,a=this.globalData.compSize.w/this.globalData.compSize.h,o,c,g,_;a>i?(o=e/this.globalData.compSize.w,c=e/this.globalData.compSize.w,g=0,_=(s-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(o=s/this.globalData.compSize.h,c=s/this.globalData.compSize.h,g=(e-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,_=0);var b=this.resizerElem.style;b.webkitTransform="matrix3d("+o+",0,0,0,0,"+c+",0,0,0,0,1,0,"+g+","+_+",0,1)",b.transform=b.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,s=this.globalData.compSize.h,i,a=this.threeDElements.length;for(i=0;i<a;i+=1){var o=this.threeDElements[i].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(s,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var s,i=e.length,a=createTag("div");for(s=0;s<i;s+=1)if(e[s].xt){var o=this.createComp(e[s],a,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}};function HCompElement(e,s,i){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,s){for(var i=0,a;i<s;)this.elements[i]&&this.elements[i].getBaseElement&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(e,a):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.filterSize.y||"-100%"},runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function s(i){for(var a=0,o=e.layers.length;a<o;){if(e.layers[a].nm===i||e.layers[a].ind===i)return e.elements[a].layerInterface;a+=1}return null}return Object.defineProperty(s,"_name",{value:e.data.nm}),s.layer=s,s.pixelAspect=1,s.height=e.data.h||e.globalData.compSize.h,s.width=e.data.w||e.globalData.compSize.w,s.pixelAspect=1,s.frameDuration=1/e.globalData.frameRate,s.displayStartTime=0,s.numLayers=e.layers.length,s}}();function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$2(e)}function seedRandom(e,s){var i=this,a=256,o=6,c=52,g="random",_=s.pow(a,o),b=s.pow(2,c),$=b*2,et=a-1,ot;function rt(_e,nt,ut){var ht=[];nt=nt===!0?{entropy:!0}:nt||{};var gt=dt(st(nt.entropy?[_e,tt(e)]:_e===null?j():_e,3),ht),ft=new at(ht),_t=function(){for(var kt=ft.g(o),St=_,Ct=0;kt<b;)kt=(kt+Ct)*a,St*=a,Ct=ft.g(1);for(;kt>=$;)kt/=2,St/=2,Ct>>>=1;return(kt+Ct)/St};return _t.int32=function(){return ft.g(4)|0},_t.quick=function(){return ft.g(4)/4294967296},_t.double=_t,dt(tt(ft.S),e),(nt.pass||ut||function(At,kt,St,Ct){return Ct&&(Ct.S&&it(Ct,ft),At.state=function(){return it(ft,{})}),St?(s[g]=At,kt):At})(_t,gt,"global"in nt?nt.global:this==s,nt.state)}s["seed"+g]=rt;function at(_e){var nt,ut=_e.length,ht=this,gt=0,ft=ht.i=ht.j=0,_t=ht.S=[];for(ut||(_e=[ut++]);gt<a;)_t[gt]=gt++;for(gt=0;gt<a;gt++)_t[gt]=_t[ft=et&ft+_e[gt%ut]+(nt=_t[gt])],_t[ft]=nt;ht.g=function(At){for(var kt,St=0,Ct=ht.i,Ot=ht.j,xt=ht.S;At--;)kt=xt[Ct=et&Ct+1],St=St*a+xt[et&(xt[Ct]=xt[Ot=et&Ot+kt])+(xt[Ot]=kt)];return ht.i=Ct,ht.j=Ot,St}}function it(_e,nt){return nt.i=_e.i,nt.j=_e.j,nt.S=_e.S.slice(),nt}function st(_e,nt){var ut=[],ht=_typeof$2(_e),gt;if(nt&&ht=="object")for(gt in _e)try{ut.push(st(_e[gt],nt-1))}catch{}return ut.length?ut:ht=="string"?_e:_e+"\0"}function dt(_e,nt){for(var ut=_e+"",ht,gt=0;gt<ut.length;)nt[et>]=et&(ht^=nt[et>]*19)+ut.charCodeAt(gt++);return tt(nt)}function j(){try{var _e=new Uint8Array(a);return(i.crypto||i.msCrypto).getRandomValues(_e),tt(_e)}catch{var nt=i.navigator,ut=nt&&nt.plugins;return[+new Date,i,ut,i.screen,tt(e)]}}function tt(_e){return String.fromCharCode.apply(0,_e)}dt(s.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,s){return e==="number"||s instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var s=_typeof$1(e);if(s==="number"||e instanceof Number||s==="boolean")return-e;if($bm_isInstanceOfArray(e)){var i,a=e.length,o=[];for(i=0;i<a;i+=1)o[i]=-e[i];return o}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,s){var i=_typeof$1(e),a=_typeof$1(s);if(isNumerable(i,e)&&isNumerable(a,s)||i==="string"||a==="string")return e+s;if($bm_isInstanceOfArray(e)&&isNumerable(a,s))return e=e.slice(0),e[0]+=s,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=e+s[0],s;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(s)){for(var o=0,c=e.length,g=s.length,_=[];o<c||o<g;)(typeof e[o]=="number"||e[o]instanceof Number)&&(typeof s[o]=="number"||s[o]instanceof Number)?_[o]=e[o]+s[o]:_[o]=s[o]===void 0?e[o]:e[o]||s[o],o+=1;return _}return 0}var add=sum;function sub(e,s){var i=_typeof$1(e),a=_typeof$1(s);if(isNumerable(i,e)&&isNumerable(a,s))return i==="string"&&(e=parseInt(e,10)),a==="string"&&(s=parseInt(s,10)),e-s;if($bm_isInstanceOfArray(e)&&isNumerable(a,s))return e=e.slice(0),e[0]-=s,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=e-s[0],s;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(s)){for(var o=0,c=e.length,g=s.length,_=[];o<c||o<g;)(typeof e[o]=="number"||e[o]instanceof Number)&&(typeof s[o]=="number"||s[o]instanceof Number)?_[o]=e[o]-s[o]:_[o]=s[o]===void 0?e[o]:e[o]||s[o],o+=1;return _}return 0}function mul(e,s){var i=_typeof$1(e),a=_typeof$1(s),o;if(isNumerable(i,e)&&isNumerable(a,s))return e*s;var c,g;if($bm_isInstanceOfArray(e)&&isNumerable(a,s)){for(g=e.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e[c]*s;return o}if(isNumerable(i,e)&&$bm_isInstanceOfArray(s)){for(g=s.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e*s[c];return o}return 0}function div(e,s){var i=_typeof$1(e),a=_typeof$1(s),o;if(isNumerable(i,e)&&isNumerable(a,s))return e/s;var c,g;if($bm_isInstanceOfArray(e)&&isNumerable(a,s)){for(g=e.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e[c]/s;return o}if(isNumerable(i,e)&&$bm_isInstanceOfArray(s)){for(g=s.length,o=createTypedArray("float32",g),c=0;c<g;c+=1)o[c]=e/s[c];return o}return 0}function mod(e,s){return typeof e=="string"&&(e=parseInt(e,10)),typeof s=="string"&&(s=parseInt(s,10)),e%s}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,s,i){if(s>i){var a=i;i=s,s=a}return Math.min(Math.max(e,s),i)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,s){if(typeof e=="number"||e instanceof Number)return s=s||0,Math.abs(e-s);s||(s=helperLengthArray);var i,a=Math.min(e.length,s.length),o=0;for(i=0;i<a;i+=1)o+=Math.pow(s[i]-e[i],2);return Math.sqrt(o)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var s=e[0],i=e[1],a=e[2],o=Math.max(s,i,a),c=Math.min(s,i,a),g,_,b=(o+c)/2;if(o===c)g=0,_=0;else{var $=o-c;switch(_=b>.5?$/(2-o-c):$/(o+c),o){case s:g=(i-a)/$+(i<a?6:0);break;case i:g=(a-s)/$+2;break;case a:g=(s-i)/$+4;break}g/=6}return[g,_,b,e[3]]}function hue2rgb(e,s,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(s-e)*6*i:i<1/2?s:i<2/3?e+(s-e)*(2/3-i)*6:e}function hslToRgb(e){var s=e[0],i=e[1],a=e[2],o,c,g;if(i===0)o=a,g=a,c=a;else{var _=a<.5?a*(1+i):a+i-a*i,b=2*a-_;o=hue2rgb(b,_,s+1/3),c=hue2rgb(b,_,s),g=hue2rgb(b,_,s-1/3)}return[o,c,g,e[3]]}function linear(e,s,i,a,o){if((a===void 0||o===void 0)&&(a=s,o=i,s=0,i=1),i<s){var c=i;i=s,s=c}if(e<=s)return a;if(e>=i)return o;var g=i===s?0:(e-s)/(i-s);if(!a.length)return a+(o-a)*g;var _,b=a.length,$=createTypedArray("float32",b);for(_=0;_<b;_+=1)$[_]=a[_]+(o[_]-a[_])*g;return $}function random(e,s){if(s===void 0&&(e===void 0?(e=0,s=1):(s=e,e=void 0)),s.length){var i,a=s.length;e||(e=createTypedArray("float32",a));var o=createTypedArray("float32",a),c=BMMath.random();for(i=0;i<a;i+=1)o[i]=e[i]+c*(s[i]-e[i]);return o}e===void 0&&(e=0);var g=BMMath.random();return e+g*(s-e)}function createPath(e,s,i,a){var o,c=e.length,g=shapePool.newElement();g.setPathData(!!a,c);var _=[0,0],b,$;for(o=0;o<c;o+=1)b=s&&s[o]?s[o]:_,$=i&&i[o]?i[o]:_,g.setTripleAt(e[o][0],e[o][1],$[0]+e[o][0],$[1]+e[o][1],b[0]+e[o][0],b[1]+e[o][1],o,!0);return g}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(s,i){var a,o,c=this.pv.length?this.pv.length:1,g=createTypedArray("float32",c);s=5;var _=Math.floor(time*s);for(a=0,o=0;a<_;){for(o=0;o<c;o+=1)g[o]+=-i+i*2*BMMath.random();a+=1}var b=time*s,$=b-Math.floor(b),et=createTypedArray("float32",c);if(c>1){for(o=0;o<c;o+=1)et[o]=this.pv[o]+g[o]+(-i+i*2*BMMath.random())*$;return et}return this.pv+g[0]+(-i+i*2*BMMath.random())*$}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,s){return loopIn(e,s,!0)}function loopOutDuration(e,s){return loopOut(e,s,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,s){var i=[s[0]-e[0],s[1]-e[1],s[2]-e[2]],a=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads,o=-Math.atan2(i[1],i[2])/degToRads;return[o,a,0]}function easeOut(e,s,i,a,o){return applyEase(easeOutBez,e,s,i,a,o)}function easeIn(e,s,i,a,o){return applyEase(easeInBez,e,s,i,a,o)}function ease(e,s,i,a,o){return applyEase(easeInOutBez,e,s,i,a,o)}function applyEase(e,s,i,a,o,c){o===void 0?(o=i,c=a):s=(s-i)/(a-i),s>1?s=1:s<0&&(s=0);var g=e(s);if($bm_isInstanceOfArray(o)){var _,b=o.length,$=createTypedArray("float32",b);for(_=0;_<b;_+=1)$[_]=(c[_]-o[_])*g+o[_];return $}return(c-o)*g+o}function nearestKey(e){var s,i=data.k.length,a,o;if(!data.k.length||typeof data.k[0]=="number")a=0,o=0;else if(a=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)a=1,o=data.k[0].t;else{for(s=0;s<i-1;s+=1)if(e===data.k[s].t){a=s+1,o=data.k[s].t;break}else if(e>data.k[s].t&&e<data.k[s+1].t){e-data.k[s].t>data.k[s+1].t-e?(a=s+2,o=data.k[s+1].t):(a=s+1,o=data.k[s].t);break}a===-1&&(a=s+1,o=data.k[s].t)}var c={};return c.index=a,c.time=o/elem.comp.globalData.frameRate,c}function key(e){var s,i,a;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,s={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=o.length,i=0;i<a;i+=1)s[i]=o[i],s.value[i]=o[i];return s}function framesToTime(e,s){return s||(s=elem.comp.globalData.frameRate),e/s}function timeToFrames(e,s){return!e&&e!==0&&(e=time),s||(s=elem.comp.globalData.frameRate),e*s}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,s){return typeof value=="string"?s===void 0?value.substring(e):value.substring(e,s):""}function substr(e,s){return typeof value=="string"?s===void 0?value.substr(e):value.substr(e,s):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={};e.initExpressions=s,e.resetFrame=ExpressionManager.resetFrame;function s(i){var a=0,o=[];function c(){a+=1}function g(){a-=1,a===0&&b()}function _($){o.indexOf($)===-1&&o.push($)}function b(){var $,et=o.length;for($=0;$<et;$+=1)o[$].release();o.length=0}i.renderer.compInterface=CompExpressionInterface(i.renderer),i.renderer.globalData.projectInterface.registerComposition(i.renderer),i.renderer.globalData.pushExpression=c,i.renderer.globalData.popExpression=g,i.renderer.globalData.registerExpressionProperty=_}return e}(),MaskManagerInterface=function(){function e(i,a){this._mask=i,this._data=a}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var s=function(a){var o=createSizedArray(a.viewData.length),c,g=a.viewData.length;for(c=0;c<g;c+=1)o[c]=new e(a.viewData[c],a.masksProperties[c]);var _=function($){for(c=0;c<g;){if(a.masksProperties[c].nm===$)return o[c];c+=1}return null};return _};return s}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},s={pv:[0,0,0],v:[0,0,0],mult:1};function i(g,_,b){Object.defineProperty(g,"velocity",{get:function(){return _.getVelocityAtTime(_.comp.currentFrame)}}),g.numKeys=_.keyframes?_.keyframes.length:0,g.key=function($){if(!g.numKeys)return 0;var et="";"s"in _.keyframes[$-1]?et=_.keyframes[$-1].s:"e"in _.keyframes[$-2]?et=_.keyframes[$-2].e:et=_.keyframes[$-2].s;var ot=b==="unidimensional"?new Number(et):Object.assign({},et);return ot.time=_.keyframes[$-1].t/_.elem.comp.globalData.frameRate,ot.value=b==="unidimensional"?et[0]:et,ot},g.valueAtTime=_.getValueAtTime,g.speedAtTime=_.getSpeedAtTime,g.velocityAtTime=_.getVelocityAtTime,g.propertyGroup=_.propertyGroup}function a(g){(!g||!("pv"in g))&&(g=e);var _=1/g.mult,b=g.pv*_,$=new Number(b);return $.value=b,i($,g,"unidimensional"),function(){return g.k&&g.getValue(),b=g.v*_,$.value!==b&&($=new Number(b),$.value=b,$[0]=b,i($,g,"unidimensional")),$}}function o(g){(!g||!("pv"in g))&&(g=s);var _=1/g.mult,b=g.data&&g.data.l||g.pv.length,$=createTypedArray("float32",b),et=createTypedArray("float32",b);return $.value=et,i($,g,"multidimensional"),function(){g.k&&g.getValue();for(var ot=0;ot<b;ot+=1)et[ot]=g.v[ot]*_,$[ot]=et[ot];return $}}function c(){return e}return function(g){return g?g.propType==="unidimensional"?a(g):o(g):c}}(),TransformExpressionInterface=function(){return function(e){function s(g){switch(g){case"scale":case"Scale":case"ADBE Scale":case 6:return s.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return s.rotation;case"ADBE Rotate X":return s.xRotation;case"ADBE Rotate Y":return s.yRotation;case"position":case"Position":case"ADBE Position":case 2:return s.position;case"ADBE Position_0":return s.xPosition;case"ADBE Position_1":return s.yPosition;case"ADBE Position_2":return s.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return s.anchorPoint;case"opacity":case"Opacity":case 11:return s.opacity;default:return null}}Object.defineProperty(s,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(s,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(s,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(s,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(s,"scale",{get:ExpressionPropertyInterface(e.s)});var i,a,o,c;return e.p?c=ExpressionPropertyInterface(e.p):(i=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(o=ExpressionPropertyInterface(e.pz))),Object.defineProperty(s,"position",{get:function(){return e.p?c():[i(),a(),o?o():0]}}),Object.defineProperty(s,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(s,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(s,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(s,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(s,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(s,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(s,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(s,"orientation",{get:ExpressionPropertyInterface(e.or)}),s}}(),LayerExpressionInterface=function(){function e($){var et=new Matrix;if($!==void 0){var ot=this._elem.finalTransform.mProp.getValueAtTime($);ot.clone(et)}else{var rt=this._elem.finalTransform.mProp;rt.applyToMatrix(et)}return et}function s($,et){var ot=this.getMatrix(et);return ot.props[12]=0,ot.props[13]=0,ot.props[14]=0,this.applyPoint(ot,$)}function i($,et){var ot=this.getMatrix(et);return this.applyPoint(ot,$)}function a($,et){var ot=this.getMatrix(et);return ot.props[12]=0,ot.props[13]=0,ot.props[14]=0,this.invertPoint(ot,$)}function o($,et){var ot=this.getMatrix(et);return this.invertPoint(ot,$)}function c($,et){if(this._elem.hierarchy&&this._elem.hierarchy.length){var ot,rt=this._elem.hierarchy.length;for(ot=0;ot<rt;ot+=1)this._elem.hierarchy[ot].finalTransform.mProp.applyToMatrix($)}return $.applyToPointArray(et[0],et[1],et[2]||0)}function g($,et){if(this._elem.hierarchy&&this._elem.hierarchy.length){var ot,rt=this._elem.hierarchy.length;for(ot=0;ot<rt;ot+=1)this._elem.hierarchy[ot].finalTransform.mProp.applyToMatrix($)}return $.inversePoint(et)}function _($){var et=new Matrix;if(et.reset(),this._elem.finalTransform.mProp.applyToMatrix(et),this._elem.hierarchy&&this._elem.hierarchy.length){var ot,rt=this._elem.hierarchy.length;for(ot=0;ot<rt;ot+=1)this._elem.hierarchy[ot].finalTransform.mProp.applyToMatrix(et);return et.inversePoint($)}return et.inversePoint($)}function b(){return[1,1,1,1]}return function($){var et;function ot(st){at.mask=new MaskManagerInterface(st,$)}function rt(st){at.effect=st}function at(st){switch(st){case"ADBE Root Vectors Group":case"Contents":case 2:return at.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return et;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return at.effect;case"ADBE Text Properties":return at.textInterface;default:return null}}at.getMatrix=e,at.invertPoint=g,at.applyPoint=c,at.toWorld=i,at.toWorldVec=s,at.fromWorld=o,at.fromWorldVec=a,at.toComp=i,at.fromComp=_,at.sampleImage=b,at.sourceRectAtTime=$.sourceRectAtTime.bind($),at._elem=$,et=TransformExpressionInterface($.finalTransform.mProp);var it=getDescriptor(et,"anchorPoint");return Object.defineProperties(at,{hasParent:{get:function(){return $.hierarchy.length}},parent:{get:function(){return $.hierarchy[0].layerInterface}},rotation:getDescriptor(et,"rotation"),scale:getDescriptor(et,"scale"),position:getDescriptor(et,"position"),opacity:getDescriptor(et,"opacity"),anchorPoint:it,anchor_point:it,transform:{get:function(){return et}},active:{get:function(){return $.isInRange}}}),at.startTime=$.data.st,at.index=$.data.ind,at.source=$.data.refId,at.height=$.data.ty===0?$.data.h:100,at.width=$.data.ty===0?$.data.w:100,at.inPoint=$.data.ip/$.comp.globalData.frameRate,at.outPoint=$.data.op/$.comp.globalData.frameRate,at._name=$.data.nm,at.registerMaskInterface=ot,at.registerEffectsInterface=rt,at}}(),propertyGroupFactory=function(){return function(e,s){return function(i){return i=i===void 0?1:i,i<=0?e:s(i-1)}}}(),PropertyInterface=function(){return function(e,s){var i={_name:e};function a(o){return o=o===void 0?1:o,o<=0?i:s(o-1)}return a}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:s};function s(o,c){if(o.effectsManager){var g=[],_=o.data.ef,b,$=o.effectsManager.effectElements.length;for(b=0;b<$;b+=1)g.push(i(_[b],o.effectsManager.effectElements[b],c,o));var et=o.data.ef||[],ot=function(at){for(b=0,$=et.length;b<$;){if(at===et[b].nm||at===et[b].mn||at===et[b].ix)return g[b];b+=1}return null};return Object.defineProperty(ot,"numProperties",{get:function(){return et.length}}),ot}return null}function i(o,c,g,_){function b(at){for(var it=o.ef,st=0,dt=it.length;st<dt;){if(at===it[st].nm||at===it[st].mn||at===it[st].ix)return it[st].ty===5?et[st]:et[st]();st+=1}throw new Error}var $=propertyGroupFactory(b,g),et=[],ot,rt=o.ef.length;for(ot=0;ot<rt;ot+=1)o.ef[ot].ty===5?et.push(i(o.ef[ot],c.effectElements[ot],c.effectElements[ot].propertyGroup,_)):et.push(a(c.effectElements[ot],o.ef[ot].ty,_,$));return o.mn==="ADBE Color Control"&&Object.defineProperty(b,"color",{get:function(){return et[0]()}}),Object.defineProperties(b,{numProperties:{get:function(){return o.np}},_name:{value:o.nm},propertyGroup:{value:$}}),b.enabled=o.en!==0,b.active=b.enabled,b}function a(o,c,g,_){var b=ExpressionPropertyInterface(o.p);function $(){return c===10?g.comp.compInterface(o.p.v):b()}return o.p.setGroupProperty&&o.p.setGroupProperty(PropertyInterface("",_)),$}return e}(),ShapePathInterface=function(){return function(s,i,a){var o=i.sh;function c(_){return _==="Shape"||_==="shape"||_==="Path"||_==="path"||_==="ADBE Vector Shape"||_===2?c.path:null}var g=propertyGroupFactory(c,a);return o.setGroupProperty(PropertyInterface("Path",g)),Object.defineProperties(c,{path:{get:function(){return o.k&&o.getValue(),o}},shape:{get:function(){return o.k&&o.getValue(),o}},_name:{value:s.nm},ix:{value:s.ix},propertyIndex:{value:s.ix},mn:{value:s.mn},propertyGroup:{value:a}}),c}}(),ShapeExpressionInterface=function(){function e(it,st,dt){var j=[],tt,_e=it?it.length:0;for(tt=0;tt<_e;tt+=1)it[tt].ty==="gr"?j.push(i(it[tt],st[tt],dt)):it[tt].ty==="fl"?j.push(a(it[tt],st[tt],dt)):it[tt].ty==="st"?j.push(g(it[tt],st[tt],dt)):it[tt].ty==="tm"?j.push(_(it[tt],st[tt],dt)):it[tt].ty==="tr"||(it[tt].ty==="el"?j.push($(it[tt],st[tt],dt)):it[tt].ty==="sr"?j.push(et(it[tt],st[tt],dt)):it[tt].ty==="sh"?j.push(ShapePathInterface(it[tt],st[tt],dt)):it[tt].ty==="rc"?j.push(ot(it[tt],st[tt],dt)):it[tt].ty==="rd"?j.push(rt(it[tt],st[tt],dt)):it[tt].ty==="rp"?j.push(at(it[tt],st[tt],dt)):it[tt].ty==="gf"?j.push(o(it[tt],st[tt],dt)):j.push(c(it[tt],st[tt])));return j}function s(it,st,dt){var j,tt=function(ut){for(var ht=0,gt=j.length;ht<gt;){if(j[ht]._name===ut||j[ht].mn===ut||j[ht].propertyIndex===ut||j[ht].ix===ut||j[ht].ind===ut)return j[ht];ht+=1}return typeof ut=="number"?j[ut-1]:null};tt.propertyGroup=propertyGroupFactory(tt,dt),j=e(it.it,st.it,tt.propertyGroup),tt.numProperties=j.length;var _e=b(it.it[it.it.length-1],st.it[st.it.length-1],tt.propertyGroup);return tt.transform=_e,tt.propertyIndex=it.cix,tt._name=it.nm,tt}function i(it,st,dt){var j=function(ut){switch(ut){case"ADBE Vectors Group":case"Contents":case 2:return j.content;default:return j.transform}};j.propertyGroup=propertyGroupFactory(j,dt);var tt=s(it,st,j.propertyGroup),_e=b(it.it[it.it.length-1],st.it[st.it.length-1],j.propertyGroup);return j.content=tt,j.transform=_e,Object.defineProperty(j,"_name",{get:function(){return it.nm}}),j.numProperties=it.np,j.propertyIndex=it.ix,j.nm=it.nm,j.mn=it.mn,j}function a(it,st,dt){function j(tt){return tt==="Color"||tt==="color"?j.color:tt==="Opacity"||tt==="opacity"?j.opacity:null}return Object.defineProperties(j,{color:{get:ExpressionPropertyInterface(st.c)},opacity:{get:ExpressionPropertyInterface(st.o)},_name:{value:it.nm},mn:{value:it.mn}}),st.c.setGroupProperty(PropertyInterface("Color",dt)),st.o.setGroupProperty(PropertyInterface("Opacity",dt)),j}function o(it,st,dt){function j(tt){return tt==="Start Point"||tt==="start point"?j.startPoint:tt==="End Point"||tt==="end point"?j.endPoint:tt==="Opacity"||tt==="opacity"?j.opacity:null}return Object.defineProperties(j,{startPoint:{get:ExpressionPropertyInterface(st.s)},endPoint:{get:ExpressionPropertyInterface(st.e)},opacity:{get:ExpressionPropertyInterface(st.o)},type:{get:function(){return"a"}},_name:{value:it.nm},mn:{value:it.mn}}),st.s.setGroupProperty(PropertyInterface("Start Point",dt)),st.e.setGroupProperty(PropertyInterface("End Point",dt)),st.o.setGroupProperty(PropertyInterface("Opacity",dt)),j}function c(){function it(){return null}return it}function g(it,st,dt){var j=propertyGroupFactory(gt,dt),tt=propertyGroupFactory(ht,j);function _e(ft){Object.defineProperty(ht,it.d[ft].nm,{get:ExpressionPropertyInterface(st.d.dataProps[ft].p)})}var nt,ut=it.d?it.d.length:0,ht={};for(nt=0;nt<ut;nt+=1)_e(nt),st.d.dataProps[nt].p.setGroupProperty(tt);function gt(ft){return ft==="Color"||ft==="color"?gt.color:ft==="Opacity"||ft==="opacity"?gt.opacity:ft==="Stroke Width"||ft==="stroke width"?gt.strokeWidth:null}return Object.defineProperties(gt,{color:{get:ExpressionPropertyInterface(st.c)},opacity:{get:ExpressionPropertyInterface(st.o)},strokeWidth:{get:ExpressionPropertyInterface(st.w)},dash:{get:function(){return ht}},_name:{value:it.nm},mn:{value:it.mn}}),st.c.setGroupProperty(PropertyInterface("Color",j)),st.o.setGroupProperty(PropertyInterface("Opacity",j)),st.w.setGroupProperty(PropertyInterface("Stroke Width",j)),gt}function _(it,st,dt){function j(_e){return _e===it.e.ix||_e==="End"||_e==="end"?j.end:_e===it.s.ix?j.start:_e===it.o.ix?j.offset:null}var tt=propertyGroupFactory(j,dt);return j.propertyIndex=it.ix,st.s.setGroupProperty(PropertyInterface("Start",tt)),st.e.setGroupProperty(PropertyInterface("End",tt)),st.o.setGroupProperty(PropertyInterface("Offset",tt)),j.propertyIndex=it.ix,j.propertyGroup=dt,Object.defineProperties(j,{start:{get:ExpressionPropertyInterface(st.s)},end:{get:ExpressionPropertyInterface(st.e)},offset:{get:ExpressionPropertyInterface(st.o)},_name:{value:it.nm}}),j.mn=it.mn,j}function b(it,st,dt){function j(_e){return it.a.ix===_e||_e==="Anchor Point"?j.anchorPoint:it.o.ix===_e||_e==="Opacity"?j.opacity:it.p.ix===_e||_e==="Position"?j.position:it.r.ix===_e||_e==="Rotation"||_e==="ADBE Vector Rotation"?j.rotation:it.s.ix===_e||_e==="Scale"?j.scale:it.sk&&it.sk.ix===_e||_e==="Skew"?j.skew:it.sa&&it.sa.ix===_e||_e==="Skew Axis"?j.skewAxis:null}var tt=propertyGroupFactory(j,dt);return st.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",tt)),st.transform.mProps.p.setGroupProperty(PropertyInterface("Position",tt)),st.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",tt)),st.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",tt)),st.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",tt)),st.transform.mProps.sk&&(st.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",tt)),st.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",tt))),st.transform.op.setGroupProperty(PropertyInterface("Opacity",tt)),Object.defineProperties(j,{opacity:{get:ExpressionPropertyInterface(st.transform.mProps.o)},position:{get:ExpressionPropertyInterface(st.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(st.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(st.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(st.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(st.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(st.transform.mProps.sa)},_name:{value:it.nm}}),j.ty="tr",j.mn=it.mn,j.propertyGroup=dt,j}function $(it,st,dt){function j(nt){return it.p.ix===nt?j.position:it.s.ix===nt?j.size:null}var tt=propertyGroupFactory(j,dt);j.propertyIndex=it.ix;var _e=st.sh.ty==="tm"?st.sh.prop:st.sh;return _e.s.setGroupProperty(PropertyInterface("Size",tt)),_e.p.setGroupProperty(PropertyInterface("Position",tt)),Object.defineProperties(j,{size:{get:ExpressionPropertyInterface(_e.s)},position:{get:ExpressionPropertyInterface(_e.p)},_name:{value:it.nm}}),j.mn=it.mn,j}function et(it,st,dt){function j(nt){return it.p.ix===nt?j.position:it.r.ix===nt?j.rotation:it.pt.ix===nt?j.points:it.or.ix===nt||nt==="ADBE Vector Star Outer Radius"?j.outerRadius:it.os.ix===nt?j.outerRoundness:it.ir&&(it.ir.ix===nt||nt==="ADBE Vector Star Inner Radius")?j.innerRadius:it.is&&it.is.ix===nt?j.innerRoundness:null}var tt=propertyGroupFactory(j,dt),_e=st.sh.ty==="tm"?st.sh.prop:st.sh;return j.propertyIndex=it.ix,_e.or.setGroupProperty(PropertyInterface("Outer Radius",tt)),_e.os.setGroupProperty(PropertyInterface("Outer Roundness",tt)),_e.pt.setGroupProperty(PropertyInterface("Points",tt)),_e.p.setGroupProperty(PropertyInterface("Position",tt)),_e.r.setGroupProperty(PropertyInterface("Rotation",tt)),it.ir&&(_e.ir.setGroupProperty(PropertyInterface("Inner Radius",tt)),_e.is.setGroupProperty(PropertyInterface("Inner Roundness",tt))),Object.defineProperties(j,{position:{get:ExpressionPropertyInterface(_e.p)},rotation:{get:ExpressionPropertyInterface(_e.r)},points:{get:ExpressionPropertyInterface(_e.pt)},outerRadius:{get:ExpressionPropertyInterface(_e.or)},outerRoundness:{get:ExpressionPropertyInterface(_e.os)},innerRadius:{get:ExpressionPropertyInterface(_e.ir)},innerRoundness:{get:ExpressionPropertyInterface(_e.is)},_name:{value:it.nm}}),j.mn=it.mn,j}function ot(it,st,dt){function j(nt){return it.p.ix===nt?j.position:it.r.ix===nt?j.roundness:it.s.ix===nt||nt==="Size"||nt==="ADBE Vector Rect Size"?j.size:null}var tt=propertyGroupFactory(j,dt),_e=st.sh.ty==="tm"?st.sh.prop:st.sh;return j.propertyIndex=it.ix,_e.p.setGroupProperty(PropertyInterface("Position",tt)),_e.s.setGroupProperty(PropertyInterface("Size",tt)),_e.r.setGroupProperty(PropertyInterface("Rotation",tt)),Object.defineProperties(j,{position:{get:ExpressionPropertyInterface(_e.p)},roundness:{get:ExpressionPropertyInterface(_e.r)},size:{get:ExpressionPropertyInterface(_e.s)},_name:{value:it.nm}}),j.mn=it.mn,j}function rt(it,st,dt){function j(nt){return it.r.ix===nt||nt==="Round Corners 1"?j.radius:null}var tt=propertyGroupFactory(j,dt),_e=st;return j.propertyIndex=it.ix,_e.rd.setGroupProperty(PropertyInterface("Radius",tt)),Object.defineProperties(j,{radius:{get:ExpressionPropertyInterface(_e.rd)},_name:{value:it.nm}}),j.mn=it.mn,j}function at(it,st,dt){function j(nt){return it.c.ix===nt||nt==="Copies"?j.copies:it.o.ix===nt||nt==="Offset"?j.offset:null}var tt=propertyGroupFactory(j,dt),_e=st;return j.propertyIndex=it.ix,_e.c.setGroupProperty(PropertyInterface("Copies",tt)),_e.o.setGroupProperty(PropertyInterface("Offset",tt)),Object.defineProperties(j,{copies:{get:ExpressionPropertyInterface(_e.c)},offset:{get:ExpressionPropertyInterface(_e.o)},_name:{value:it.nm}}),j.mn=it.mn,j}return function(it,st,dt){var j;function tt(nt){if(typeof nt=="number")return nt=nt===void 0?1:nt,nt===0?dt:j[nt-1];for(var ut=0,ht=j.length;ut<ht;){if(j[ut]._name===nt)return j[ut];ut+=1}return null}function _e(){return dt}return tt.propertyGroup=propertyGroupFactory(tt,_e),j=e(it,st,tt.propertyGroup),tt.numProperties=j.length,tt._name="Contents",tt}}(),TextExpressionInterface=function(){return function(e){var s;function i(a){switch(a){case"ADBE Text Document":return i.sourceText;default:return null}}return Object.defineProperty(i,"sourceText",{get:function(){e.textProperty.getValue();var o=e.textProperty.currentData.t;return(!s||o!==s.value)&&(s=new String(o),s.value=o||new String(o),Object.defineProperty(s,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),s}}),i}}();function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(e)}var FootageInterface=function(){var e=function(a){var o="",c=a.getFootageData();function g(){return o="",c=a.getFootageData(),_}function _(b){if(c[b])return o=b,c=c[b],_typeof(c)==="object"?_:c;var $=b.indexOf(o);if($!==-1){var et=parseInt(b.substr($+o.length),10);return c=c[et],_typeof(c)==="object"?_:c}return""}return g},s=function(a){function o(c){return c==="Outline"?o.outlineInterface():null}return o._name="Outline",o.outlineInterface=e(a),o};return function(i){function a(o){return o==="Data"?a.dataInterface:null}return a._name="Data",a.dataInterface=s(i),a}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(g,_,b){_.x&&(b.k=!0,b.x=!0,b.initiateExpression=ExpressionManager.initiateExpression,b.effectsSequence.push(b.initiateExpression(g,_,b).bind(b)))}function s(g){return g*=this.elem.globalData.frameRate,g-=this.offsetTime,g!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<g?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(g,this._cachingAtTime),this._cachingAtTime.lastFrame=g),this._cachingAtTime.value}function i(g){var _=-.01,b=this.getValueAtTime(g),$=this.getValueAtTime(g+_),et=0;if(b.length){var ot;for(ot=0;ot<b.length;ot+=1)et+=Math.pow($[ot]-b[ot],2);et=Math.sqrt(et)*100}else et=0;return et}function a(g){if(this.vel!==void 0)return this.vel;var _=-.001,b=this.getValueAtTime(g),$=this.getValueAtTime(g+_),et;if(b.length){et=createTypedArray("float32",b.length);var ot;for(ot=0;ot<b.length;ot+=1)et[ot]=($[ot]-b[ot])/_}else et=($-b)/_;return et}function o(){return this.pv}function c(g){this.propertyGroup=g}return{searchExpressions:e,getSpeedAtTime:i,getVelocityAtTime:a,getValueAtTime:s,getStaticValueAtTime:o,setGroupProperty:c}}();function addPropertyDecorator(){function e(rt,at,it){if(!this.k||!this.keyframes)return this.pv;rt=rt?rt.toLowerCase():"";var st=this.comp.renderedFrame,dt=this.keyframes,j=dt[dt.length-1].t;if(st<=j)return this.pv;var tt,_e;it?(at?tt=Math.abs(j-this.elem.comp.globalData.frameRate*at):tt=Math.max(0,j-this.elem.data.ip),_e=j-tt):((!at||at>dt.length-1)&&(at=dt.length-1),_e=dt[dt.length-1-at].t,tt=j-_e);var nt,ut,ht;if(rt==="pingpong"){var gt=Math.floor((st-_e)/tt);if(gt%2!==0)return this.getValueAtTime((tt-(st-_e)%tt+_e)/this.comp.globalData.frameRate,0)}else if(rt==="offset"){var ft=this.getValueAtTime(_e/this.comp.globalData.frameRate,0),_t=this.getValueAtTime(j/this.comp.globalData.frameRate,0),At=this.getValueAtTime(((st-_e)%tt+_e)/this.comp.globalData.frameRate,0),kt=Math.floor((st-_e)/tt);if(this.pv.length){for(ht=new Array(ft.length),ut=ht.length,nt=0;nt<ut;nt+=1)ht[nt]=(_t[nt]-ft[nt])*kt+At[nt];return ht}return(_t-ft)*kt+At}else if(rt==="continue"){var St=this.getValueAtTime(j/this.comp.globalData.frameRate,0),Ct=this.getValueAtTime((j-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ht=new Array(St.length),ut=ht.length,nt=0;nt<ut;nt+=1)ht[nt]=St[nt]+(St[nt]-Ct[nt])*((st-j)/this.comp.globalData.frameRate)/5e-4;return ht}return St+(St-Ct)*((st-j)/.001)}return this.getValueAtTime(((st-_e)%tt+_e)/this.comp.globalData.frameRate,0)}function s(rt,at,it){if(!this.k)return this.pv;rt=rt?rt.toLowerCase():"";var st=this.comp.renderedFrame,dt=this.keyframes,j=dt[0].t;if(st>=j)return this.pv;var tt,_e;it?(at?tt=Math.abs(this.elem.comp.globalData.frameRate*at):tt=Math.max(0,this.elem.data.op-j),_e=j+tt):((!at||at>dt.length-1)&&(at=dt.length-1),_e=dt[at].t,tt=_e-j);var nt,ut,ht;if(rt==="pingpong"){var gt=Math.floor((j-st)/tt);if(gt%2===0)return this.getValueAtTime(((j-st)%tt+j)/this.comp.globalData.frameRate,0)}else if(rt==="offset"){var ft=this.getValueAtTime(j/this.comp.globalData.frameRate,0),_t=this.getValueAtTime(_e/this.comp.globalData.frameRate,0),At=this.getValueAtTime((tt-(j-st)%tt+j)/this.comp.globalData.frameRate,0),kt=Math.floor((j-st)/tt)+1;if(this.pv.length){for(ht=new Array(ft.length),ut=ht.length,nt=0;nt<ut;nt+=1)ht[nt]=At[nt]-(_t[nt]-ft[nt])*kt;return ht}return At-(_t-ft)*kt}else if(rt==="continue"){var St=this.getValueAtTime(j/this.comp.globalData.frameRate,0),Ct=this.getValueAtTime((j+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ht=new Array(St.length),ut=ht.length,nt=0;nt<ut;nt+=1)ht[nt]=St[nt]+(St[nt]-Ct[nt])*(j-st)/.001;return ht}return St+(St-Ct)*(j-st)/.001}return this.getValueAtTime((tt-((j-st)%tt+j))/this.comp.globalData.frameRate,0)}function i(rt,at){if(!this.k)return this.pv;if(rt=(rt||.4)*.5,at=Math.floor(at||5),at<=1)return this.pv;var it=this.comp.renderedFrame/this.comp.globalData.frameRate,st=it-rt,dt=it+rt,j=at>1?(dt-st)/(at-1):1,tt=0,_e=0,nt;this.pv.length?nt=createTypedArray("float32",this.pv.length):nt=0;for(var ut;tt<at;){if(ut=this.getValueAtTime(st+tt*j),this.pv.length)for(_e=0;_e<this.pv.length;_e+=1)nt[_e]+=ut[_e];else nt+=ut;tt+=1}if(this.pv.length)for(_e=0;_e<this.pv.length;_e+=1)nt[_e]/=at;else nt/=at;return nt}function a(rt){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var at=this._transformCachingAtTime.v;if(at.cloneFromProps(this.pre.props),this.appliedTransformations<1){var it=this.a.getValueAtTime(rt);at.translate(-it[0]*this.a.mult,-it[1]*this.a.mult,it[2]*this.a.mult)}if(this.appliedTransformations<2){var st=this.s.getValueAtTime(rt);at.scale(st[0]*this.s.mult,st[1]*this.s.mult,st[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var dt=this.sk.getValueAtTime(rt),j=this.sa.getValueAtTime(rt);at.skewFromAxis(-dt*this.sk.mult,j*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var tt=this.r.getValueAtTime(rt);at.rotate(-tt*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var _e=this.rz.getValueAtTime(rt),nt=this.ry.getValueAtTime(rt),ut=this.rx.getValueAtTime(rt),ht=this.or.getValueAtTime(rt);at.rotateZ(-_e*this.rz.mult).rotateY(nt*this.ry.mult).rotateX(ut*this.rx.mult).rotateZ(-ht[2]*this.or.mult).rotateY(ht[1]*this.or.mult).rotateX(ht[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var gt=this.px.getValueAtTime(rt),ft=this.py.getValueAtTime(rt);if(this.data.p.z){var _t=this.pz.getValueAtTime(rt);at.translate(gt*this.px.mult,ft*this.py.mult,-_t*this.pz.mult)}else at.translate(gt*this.px.mult,ft*this.py.mult,0)}else{var At=this.p.getValueAtTime(rt);at.translate(At[0]*this.p.mult,At[1]*this.p.mult,-At[2]*this.p.mult)}return at}function o(){return this.v.clone(new Matrix)}var c=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(rt,at,it){var st=c(rt,at,it);return st.dynamicProperties.length?st.getValueAtTime=a.bind(st):st.getValueAtTime=o.bind(st),st.setGroupProperty=expressionHelpers.setGroupProperty,st};var g=PropertyFactory.getProp;PropertyFactory.getProp=function(rt,at,it,st,dt){var j=g(rt,at,it,st,dt);j.kf?j.getValueAtTime=expressionHelpers.getValueAtTime.bind(j):j.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(j),j.setGroupProperty=expressionHelpers.setGroupProperty,j.loopOut=e,j.loopIn=s,j.smooth=i,j.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(j),j.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(j),j.numKeys=at.a===1?at.k.length:0,j.propertyIndex=at.ix;var tt=0;return it!==0&&(tt=createTypedArray("float32",at.a===1?at.k[0].s.length:at.k.length)),j._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:tt},expressionHelpers.searchExpressions(rt,at,j),j.k&&dt.addDynamicProperty(j),j};function _(rt){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),rt*=this.elem.globalData.frameRate,rt-=this.offsetTime,rt!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<rt?this._caching.lastIndex:0,this._cachingAtTime.lastTime=rt,this.interpolateShape(rt,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var b=ShapePropertyFactory.getConstructorFunction(),$=ShapePropertyFactory.getKeyframedConstructorFunction();function et(){}et.prototype={vertices:function(at,it){this.k&&this.getValue();var st=this.v;it!==void 0&&(st=this.getValueAtTime(it,0));var dt,j=st._length,tt=st[at],_e=st.v,nt=createSizedArray(j);for(dt=0;dt<j;dt+=1)at==="i"||at==="o"?nt[dt]=[tt[dt][0]-_e[dt][0],tt[dt][1]-_e[dt][1]]:nt[dt]=[tt[dt][0],tt[dt][1]];return nt},points:function(at){return this.vertices("v",at)},inTangents:function(at){return this.vertices("i",at)},outTangents:function(at){return this.vertices("o",at)},isClosed:function(){return this.v.c},pointOnPath:function(at,it){var st=this.v;it!==void 0&&(st=this.getValueAtTime(it,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(st));for(var dt=this._segmentsLength,j=dt.lengths,tt=dt.totalLength*at,_e=0,nt=j.length,ut=0,ht;_e<nt;){if(ut+j[_e].addedLength>tt){var gt=_e,ft=st.c&&_e===nt-1?0:_e+1,_t=(tt-ut)/j[_e].addedLength;ht=bez.getPointInSegment(st.v[gt],st.v[ft],st.o[gt],st.i[ft],_t,j[_e]);break}else ut+=j[_e].addedLength;_e+=1}return ht||(ht=st.c?[st.v[0][0],st.v[0][1]]:[st.v[st._length-1][0],st.v[st._length-1][1]]),ht},vectorOnPath:function(at,it,st){at==1?at=this.v.c:at==0&&(at=.999);var dt=this.pointOnPath(at,it),j=this.pointOnPath(at+.001,it),tt=j[0]-dt[0],_e=j[1]-dt[1],nt=Math.sqrt(Math.pow(tt,2)+Math.pow(_e,2));if(nt===0)return[0,0];var ut=st==="tangent"?[tt/nt,_e/nt]:[-_e/nt,tt/nt];return ut},tangentOnPath:function(at,it){return this.vectorOnPath(at,it,"tangent")},normalOnPath:function(at,it){return this.vectorOnPath(at,it,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([et],b),extendPrototype([et],$),$.prototype.getValueAtTime=_,$.prototype.initiateExpression=ExpressionManager.initiateExpression;var ot=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(rt,at,it,st,dt){var j=ot(rt,at,it,st,dt);return j.propertyIndex=at.ix,j.lock=!1,it===3?expressionHelpers.searchExpressions(rt,at.pt,j):it===4&&expressionHelpers.searchExpressions(rt,at.ks,j),j.k&&rt.addDynamicProperty(j),j}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(s,i){var a=this.calculateExpression(i);if(s.t!==a){var o={};return this.copyData(o,s),o.t=a.toString(),o.__complete=!1,o}return s},TextProperty.prototype.searchProperty=function(){var s=this.searchKeyframes(),i=this.searchExpressions();return this.kf=s||i,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(s,i){var a=createNS("feMerge");a.setAttribute("result",s);var o,c;for(c=0;c<i.length;c+=1)o=createNS("feMergeNode"),o.setAttribute("in",i[c]),a.appendChild(o),a.appendChild(o);return a}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,s,i,a,o){this.filterManager=s;var c=createNS("feColorMatrix");c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","linearRGB"),c.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=c,c.setAttribute("result",a+"_tint_1"),e.appendChild(c),c=createNS("feColorMatrix"),c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),c.setAttribute("result",a+"_tint_2"),e.appendChild(c),this.matrixFilter=c;var g=this.createMergeNode(a,[o,a+"_tint_1",a+"_tint_2"]);e.appendChild(g)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+a+" 0"),this.matrixFilter.setAttribute("values",i[0]-s[0]+" 0 0 0 "+s[0]+" "+(i[1]-s[1])+" 0 0 0 "+s[1]+" "+(i[2]-s[2])+" 0 0 0 "+s[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,s,i,a){this.filterManager=s;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",a),e.appendChild(o),this.matrixFilter=o}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+s[0]+" 0 0 0 0 "+s[1]+" 0 0 0 0 "+s[2]+" 0 0 0 "+i+" 0")}};function SVGStrokeEffect(e,s,i){this.initialized=!1,this.filterManager=s,this.elem=i,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,s,i,a,o;for(this.filterManager.effectElements[1].p.v===1?(o=this.elem.maskManager.masksProperties.length,a=0):(a=this.filterManager.effectElements[0].p.v-1,o=a+1),i=createNS("g"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1),a;a<o;a+=1)s=createNS("path"),i.appendChild(s),this.paths.push({p:s,m:a});if(this.filterManager.effectElements[10].p.v===3){var c=createNS("mask"),g=createElementID();c.setAttribute("id",g),c.setAttribute("mask-type","alpha"),c.appendChild(i),this.elem.globalData.defs.appendChild(c);var _=createNS("g");for(_.setAttribute("mask","url("+getLocationHref()+"#"+g+")");e[0];)_.appendChild(e[0]);this.elem.layerElement.appendChild(_),this.masker=c,i.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var s,i=this.paths.length,a,o;for(s=0;s<i;s+=1)if(this.paths[s].m!==-1&&(a=this.elem.maskManager.viewData[this.paths[s].m],o=this.paths[s].p,(e||this.filterManager._mdf||a.prop._mdf)&&o.setAttribute("d",a.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||a.prop._mdf)){var c;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var g=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,_=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,b=o.getTotalLength();c="0 0 0 "+b*g+" ";var $=b*(_-g),et=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,ot=Math.floor($/et),rt;for(rt=0;rt<ot;rt+=1)c+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";c+="0 "+b*10+" 0 0"}else c="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;o.setAttribute("stroke-dasharray",c)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var at=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(at[0]*255)+","+bmFloor(at[1]*255)+","+bmFloor(at[2]*255)+")")}};function SVGTritoneFilter(e,s,i,a){this.filterManager=s;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(o);var c=createNS("feComponentTransfer");c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("result",a),this.matrixFilter=c;var g=createNS("feFuncR");g.setAttribute("type","table"),c.appendChild(g),this.feFuncR=g;var _=createNS("feFuncG");_.setAttribute("type","table"),c.appendChild(_),this.feFuncG=_;var b=createNS("feFuncB");b.setAttribute("type","table"),c.appendChild(b),this.feFuncB=b,e.appendChild(c)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,o=a[0]+" "+i[0]+" "+s[0],c=a[1]+" "+i[1]+" "+s[1],g=a[2]+" "+i[2]+" "+s[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",c),this.feFuncB.setAttribute("tableValues",g)}};function SVGProLevelsFilter(e,s,i,a){this.filterManager=s;var o=this.filterManager.effectElements,c=createNS("feComponentTransfer");(o[10].p.k||o[10].p.v!==0||o[11].p.k||o[11].p.v!==1||o[12].p.k||o[12].p.v!==1||o[13].p.k||o[13].p.v!==0||o[14].p.k||o[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",c)),(o[17].p.k||o[17].p.v!==0||o[18].p.k||o[18].p.v!==1||o[19].p.k||o[19].p.v!==1||o[20].p.k||o[20].p.v!==0||o[21].p.k||o[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",c)),(o[24].p.k||o[24].p.v!==0||o[25].p.k||o[25].p.v!==1||o[26].p.k||o[26].p.v!==1||o[27].p.k||o[27].p.v!==0||o[28].p.k||o[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",c)),(o[31].p.k||o[31].p.v!==0||o[32].p.k||o[32].p.v!==1||o[33].p.k||o[33].p.v!==1||o[34].p.k||o[34].p.v!==0||o[35].p.k||o[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",c)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(c.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(c)),(o[3].p.k||o[3].p.v!==0||o[4].p.k||o[4].p.v!==1||o[5].p.k||o[5].p.v!==1||o[6].p.k||o[6].p.v!==0||o[7].p.k||o[7].p.v!==1)&&(c=createNS("feComponentTransfer"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("result",a),e.appendChild(c),this.feFuncRComposed=this.createFeFunc("feFuncR",c),this.feFuncGComposed=this.createFeFunc("feFuncG",c),this.feFuncBComposed=this.createFeFunc("feFuncB",c))}SVGProLevelsFilter.prototype.createFeFunc=function(e,s){var i=createNS(e);return i.setAttribute("type","table"),s.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(e,s,i,a,o){for(var c=0,g=256,_,b=Math.min(e,s),$=Math.max(e,s),et=Array.call(null,{length:g}),ot,rt=0,at=o-a,it=s-e;c<=256;)_=c/256,_<=b?ot=it<0?o:a:_>=$?ot=it<0?a:o:ot=a+at*Math.pow((_-e)/it,1/i),et[rt]=ot,rt+=1,c+=256/(g-1);return et.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s,i=this.filterManager.effectElements;this.feFuncRComposed&&(e||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(s=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",s),this.feFuncGComposed.setAttribute("tableValues",s),this.feFuncBComposed.setAttribute("tableValues",s)),this.feFuncR&&(e||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(s=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",s)),this.feFuncG&&(e||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(s=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",s)),this.feFuncB&&(e||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(s=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",s)),this.feFuncA&&(e||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(s=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",s))}};function SVGDropShadowEffect(e,s,i,a,o){var c=s.container.globalData.renderConfig.filterSize,g=s.data.fs||c;e.setAttribute("x",g.x||c.x),e.setAttribute("y",g.y||c.y),e.setAttribute("width",g.width||c.width),e.setAttribute("height",g.height||c.height),this.filterManager=s;var _=createNS("feGaussianBlur");_.setAttribute("in","SourceAlpha"),_.setAttribute("result",a+"_drop_shadow_1"),_.setAttribute("stdDeviation","0"),this.feGaussianBlur=_,e.appendChild(_);var b=createNS("feOffset");b.setAttribute("dx","25"),b.setAttribute("dy","0"),b.setAttribute("in",a+"_drop_shadow_1"),b.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=b,e.appendChild(b);var $=createNS("feFlood");$.setAttribute("flood-color","#00ff00"),$.setAttribute("flood-opacity","1"),$.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=$,e.appendChild($);var et=createNS("feComposite");et.setAttribute("in",a+"_drop_shadow_3"),et.setAttribute("in2",a+"_drop_shadow_2"),et.setAttribute("operator","in"),et.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(et);var ot=this.createMergeNode(a,[a+"_drop_shadow_4",o]);e.appendChild(ot)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var s=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(s[0]*255),Math.round(s[1]*255),Math.round(s[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=i*Math.cos(a),c=i*Math.sin(a);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",c)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,s,i){this.initialized=!1,this.filterManager=s,this.filterElem=e,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var s=0,i=_svgMatteSymbols.length;s<i;){if(_svgMatteSymbols[s]===e)return _svgMatteSymbols[s];s+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,s){var i=e.layerElement.parentNode;if(i){for(var a=i.children,o=0,c=a.length;o<c&&a[o]!==e.layerElement;)o+=1;var g;o<=c-2&&(g=a[o+1]);var _=createNS("use");_.setAttribute("href","#"+s),g?i.insertBefore(_,g):i.appendChild(_)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,s){if(!this.findSymbol(s)){var i=createElementID(),a=createNS("mask");a.setAttribute("id",s.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(s);var o=e.globalData.defs;o.appendChild(a);var c=createNS("symbol");c.setAttribute("id",i),this.replaceInParent(s,i),c.appendChild(s.layerElement),o.appendChild(c);var g=createNS("use");g.setAttribute("href","#"+i),a.appendChild(g),s.data.hd=!1,s.show()}e.setMatte(s.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,s=this.elem.comp.elements,i=0,a=s.length;i<a;)s[i]&&s[i].data.ind===e&&this.setElementAsMask(this.elem,s[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,s,i,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=s;var o=createNS("feGaussianBlur");o.setAttribute("result",a),e.appendChild(o),this.feGaussianBlur=o}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=.3,i=this.filterManager.effectElements[0].p.v*s,a=this.filterManager.effectElements[1].p.v,o=a==3?0:i,c=a==2?0:i;this.feGaussianBlur.setAttribute("stdDeviation",o+" "+c);var g=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",g)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var s=this.effectsManager.effectElements,i=s[0].p.v,a=s[1].p.v,o=s[2].p.v===1,c=s[3].p.v,g=o?c:s[4].p.v,_=s[5].p.v,b=s[6].p.v,$=s[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(g*.01,c*.01,1),this.matrix.rotate(-$*degToRads),this.matrix.skewFromAxis(-_*degToRads,(b+90)*degToRads),this.matrix.translate(a[0],a[1],0),this._mdf=!0,this.opacity!==s[8].p.v&&(this.opacity=s[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,s){this.init(s)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(e,s){(s==null||s>e.length)&&(s=e.length);for(var i=0,a=Array(s);i<s;i++)a[i]=e[i];return a}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,s,i){return(s=_toPropertyKey(s))in e?Object.defineProperty(e,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[s]=i,e}function _iterableToArrayLimit(e,s){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var a,o,c,g,_=[],b=!0,$=!1;try{if(c=(i=i.call(e)).next,s!==0)for(;!(b=(a=c.call(i)).done)&&(_.push(a.value),_.length!==s);b=!0);}catch(et){$=!0,o=et}finally{try{if(!b&&i.return!=null&&(g=i.return(),Object(g)!==g))return}finally{if($)throw o}}return _}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys(e,s){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);s&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,a)}return i}function _objectSpread2(e){for(var s=1;s<arguments.length;s++){var i=arguments[s]!=null?arguments[s]:{};s%2?ownKeys(Object(i),!0).forEach(function(a){_defineProperty(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function _objectWithoutProperties(e,s){if(e==null)return{};var i,a,o=_objectWithoutPropertiesLoose(e,s);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(a=0;a<c.length;a++)i=c[a],s.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}function _objectWithoutPropertiesLoose(e,s){if(e==null)return{};var i={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(s.includes(a))continue;i[a]=e[a]}return i}function _slicedToArray(e,s){return _arrayWithHoles(e)||_iterableToArrayLimit(e,s)||_unsupportedIterableToArray(e,s)||_nonIterableRest()}function _toPrimitive(e,s){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,s);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(e)}function _toPropertyKey(e){var s=_toPrimitive(e,"string");return typeof s=="symbol"?s:s+""}function _unsupportedIterableToArray(e,s){if(e){if(typeof e=="string")return _arrayLikeToArray(e,s);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,s):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function e(s,i){var a=s.animationData,o=s.loop,c=s.autoplay,g=s.initialSegment,_=s.onComplete,b=s.onLoopComplete,$=s.onEnterFrame,et=s.onSegmentStart,ot=s.onConfigReady,rt=s.onDataReady,at=s.onDataFailed,it=s.onLoadedImages,st=s.onDOMLoaded,dt=s.onDestroy;s.lottieRef,s.renderer,s.name,s.assetsPath,s.rendererSettings;var j=_objectWithoutProperties(s,_excluded$1),tt=reactExports.useState(!1),_e=_slicedToArray(tt,2),nt=_e[0],ut=_e[1],ht=reactExports.useRef(),gt=reactExports.useRef(null),ft=function(){var wt;(wt=ht.current)===null||wt===void 0||wt.play()},_t=function(){var wt;(wt=ht.current)===null||wt===void 0||wt.stop()},At=function(){var wt;(wt=ht.current)===null||wt===void 0||wt.pause()},kt=function(wt){var Tt;(Tt=ht.current)===null||Tt===void 0||Tt.setSpeed(wt)},St=function(wt,Tt){var bt;(bt=ht.current)===null||bt===void 0||bt.goToAndPlay(wt,Tt)},Ct=function(wt,Tt){var bt;(bt=ht.current)===null||bt===void 0||bt.goToAndStop(wt,Tt)},Ot=function(wt){var Tt;(Tt=ht.current)===null||Tt===void 0||Tt.setDirection(wt)},xt=function(wt,Tt){var bt;(bt=ht.current)===null||bt===void 0||bt.playSegments(wt,Tt)},pt=function(wt){var Tt;(Tt=ht.current)===null||Tt===void 0||Tt.setSubframe(wt)},vt=function(wt){var Tt;return(Tt=ht.current)===null||Tt===void 0?void 0:Tt.getDuration(wt)},lt=function(){var wt;(wt=ht.current)===null||wt===void 0||wt.destroy(),ht.current=void 0},ct=function(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Tt;if(gt.current){(Tt=ht.current)===null||Tt===void 0||Tt.destroy();var bt=_objectSpread2(_objectSpread2(_objectSpread2({},s),wt),{},{container:gt.current});return ht.current=lottie.loadAnimation(bt),ut(!!ht.current),function(){var jt;(jt=ht.current)===null||jt===void 0||jt.destroy(),ht.current=void 0}}};reactExports.useEffect(function(){var mt=ct();return function(){return mt==null?void 0:mt()}},[a,o]),reactExports.useEffect(function(){ht.current&&(ht.current.autoplay=!!c)},[c]),reactExports.useEffect(function(){if(ht.current){if(!g){ht.current.resetSegments(!0);return}!Array.isArray(g)||!g.length||((ht.current.currentRawFrame<g[0]||ht.current.currentRawFrame>g[1])&&(ht.current.currentRawFrame=g[0]),ht.current.setSegment(g[0],g[1]))}},[g]),reactExports.useEffect(function(){var mt=[{name:"complete",handler:_},{name:"loopComplete",handler:b},{name:"enterFrame",handler:$},{name:"segmentStart",handler:et},{name:"config_ready",handler:ot},{name:"data_ready",handler:rt},{name:"data_failed",handler:at},{name:"loaded_images",handler:it},{name:"DOMLoaded",handler:st},{name:"destroy",handler:dt}],wt=mt.filter(function(bt){return bt.handler!=null});if(wt.length){var Tt=wt.map(function(bt){var jt;return(jt=ht.current)===null||jt===void 0||jt.addEventListener(bt.name,bt.handler),function(){var Lt;(Lt=ht.current)===null||Lt===void 0||Lt.removeEventListener(bt.name,bt.handler)}});return function(){Tt.forEach(function(bt){return bt()})}}},[_,b,$,et,ot,rt,at,it,st,dt]);var yt=React.createElement("div",_objectSpread2({style:i,ref:gt},j));return{View:yt,play:ft,stop:_t,pause:At,setSpeed:kt,goToAndStop:Ct,goToAndPlay:St,setDirection:Ot,playSegments:xt,setSubframe:pt,getDuration:vt,destroy:lt,animationContainerRef:gt,animationLoaded:nt,animationItem:ht.current}};function getContainerVisibility(e){var s=e.getBoundingClientRect(),i=s.top,a=s.height,o=window.innerHeight-i,c=window.innerHeight+a;return o/c}function getContainerCursorPosition(e,s,i){var a=e.getBoundingClientRect(),o=a.top,c=a.left,g=a.width,_=a.height,b=(s-c)/g,$=(i-o)/_;return{x:b,y:$}}var useInitInteractivity=function e(s){var i=s.wrapperRef,a=s.animationItem,o=s.mode,c=s.actions;reactExports.useEffect(function(){var g=i.current;if(!(!g||!a||!c.length)){a.stop();var _=function(){var et=null,ot=function(){var at=getContainerVisibility(g),it=c.find(function(dt){var j=dt.visibility;return j&&at>=j[0]&&at<=j[1]});if(it){if(it.type==="seek"&&it.visibility&&it.frames.length===2){var st=it.frames[0]+Math.ceil((at-it.visibility[0])/(it.visibility[1]-it.visibility[0])*it.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
50
|
+
a.goToAndStop(st-a.firstFrame-1,!0)}it.type==="loop"&&(et===null||et!==it.frames||a.isPaused)&&(a.playSegments(it.frames,!0),et=it.frames),it.type==="play"&&a.isPaused&&(a.resetSegments(!0),a.play()),it.type==="stop"&&a.goToAndStop(it.frames[0]-a.firstFrame-1,!0)}};return document.addEventListener("scroll",ot),function(){document.removeEventListener("scroll",ot)}},b=function(){var et=function(it,st){var dt=it,j=st;if(dt!==-1&&j!==-1){var tt=getContainerCursorPosition(g,dt,j);dt=tt.x,j=tt.y}var _e=c.find(function(ht){var gt=ht.position;return gt&&Array.isArray(gt.x)&&Array.isArray(gt.y)?dt>=gt.x[0]&&dt<=gt.x[1]&&j>=gt.y[0]&&j<=gt.y[1]:gt&&!Number.isNaN(gt.x)&&!Number.isNaN(gt.y)?dt===gt.x&&j===gt.y:!1});if(_e){if(_e.type==="seek"&&_e.position&&Array.isArray(_e.position.x)&&Array.isArray(_e.position.y)&&_e.frames.length===2){var nt=(dt-_e.position.x[0])/(_e.position.x[1]-_e.position.x[0]),ut=(j-_e.position.y[0])/(_e.position.y[1]-_e.position.y[0]);a.playSegments(_e.frames,!0),a.goToAndStop(Math.ceil((nt+ut)/2*(_e.frames[1]-_e.frames[0])),!0)}_e.type==="loop"&&a.playSegments(_e.frames,!0),_e.type==="play"&&(a.isPaused&&a.resetSegments(!1),a.playSegments(_e.frames)),_e.type==="stop"&&a.goToAndStop(_e.frames[0],!0)}},ot=function(it){et(it.clientX,it.clientY)},rt=function(){et(-1,-1)};return g.addEventListener("mousemove",ot),g.addEventListener("mouseout",rt),function(){g.removeEventListener("mousemove",ot),g.removeEventListener("mouseout",rt)}};switch(o){case"scroll":return _();case"cursor":return b()}}},[o,a])},useLottieInteractivity=function e(s){var i=s.actions,a=s.mode,o=s.lottieObj,c=o.animationItem,g=o.View,_=o.animationContainerRef;return useInitInteractivity({actions:i,animationItem:c,mode:a,wrapperRef:_}),g},_excluded=["style","interactivity"],Lottie=function e(s){var i,a,o,c=s.style,g=s.interactivity,_=_objectWithoutProperties(s,_excluded),b=useLottie(_,c),$=b.View,et=b.play,ot=b.stop,rt=b.pause,at=b.setSpeed,it=b.goToAndStop,st=b.goToAndPlay,dt=b.setDirection,j=b.playSegments,tt=b.setSubframe,_e=b.getDuration,nt=b.destroy,ut=b.animationContainerRef,ht=b.animationLoaded,gt=b.animationItem;return reactExports.useEffect(function(){s.lottieRef&&(s.lottieRef.current={play:et,stop:ot,pause:rt,setSpeed:at,goToAndPlay:st,goToAndStop:it,setDirection:dt,playSegments:j,setSubframe:tt,getDuration:_e,destroy:nt,animationContainerRef:ut,animationLoaded:ht,animationItem:gt})},[(i=s.lottieRef)===null||i===void 0?void 0:i.current]),useLottieInteractivity({lottieObj:{View:$,play:et,stop:ot,pause:rt,setSpeed:at,goToAndStop:it,goToAndPlay:st,setDirection:dt,playSegments:j,setSubframe:tt,getDuration:_e,destroy:nt,animationContainerRef:ut,animationLoaded:ht,animationItem:gt},actions:(a=g==null?void 0:g.actions)!==null&&a!==void 0?a:[],mode:(o=g==null?void 0:g.mode)!==null&&o!==void 0?o:"scroll"})};const v="5.9.6",fr=60,ip=0,op=106,w=1080,h=1080,nm="Check Mark 01",ddd=0,assets=[],layers=[{ddd:0,ind:1,ty:4,nm:"Tick",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-45,ix:10},p:{a:0,k:[50.412,45.412,0],ix:2,l:2},a:{a:0,k:[-.5,18,0],ix:1,l:2},s:{a:0,k:[76.923,76.923,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-50,-2.455],[-50,43],[49,43]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:22,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,-2.308],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[110,110],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:41,s:[0]},{t:56,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:181,st:0,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Burst",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[539.521,540.438,0],ix:2,l:2},a:{a:0,k:[539.958,540.438,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:65,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst 4",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:20,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst 3",np:1,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:45,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst 2",np:1,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-3.375,-5.5],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-4,7.625],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:-270,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line3",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-7.625,.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:180,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line2",np:2,cix:2,bm:0,ix:3,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[1,.5],[322,1]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1,.75],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line1",np:2,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.207],y:[.133]},t:31,s:[0]},{t:58,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.3],y:[1]},o:{x:[.202],y:[.137]},t:26,s:[0]},{t:58,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:5,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"tr",p:{a:0,k:[544.75,540.125],ix:2},a:{a:0,k:[1,.75],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Lines",np:5,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[541.012,539.718],ix:2},a:{a:0,k:[541.012,539.718],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Line Burst",np:1,cix:2,bm:0,ix:4,mn:"ADBE Vector Group",hd:!1}],ip:39,op:448,st:32,ct:1,bm:0},{ddd:0,ind:3,ty:4,nm:"Circle 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,540,0],ix:2,l:2},a:{a:0,k:[12,-8,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.2,.2,.2],y:[1,1,1]},o:{x:[.167,.167,.167],y:[.167,.167,0]},t:36,s:[0,0,100]},{t:62,s:[120,120,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[424,424],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:3},o:{a:0,k:100,ix:4},w:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:36,s:[200]},{t:57,s:[0]}],ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[12,-8],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:36,op:159,st:-22,ct:1,bm:0},{ddd:0,ind:4,ty:3,nm:"Controller - 1",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,526,0],ix:2,l:2},a:{a:0,k:[50,50,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.48,.48,.2],y:[1,1,1]},o:{x:[.8,.8,.8],y:[0,0,0]},t:30,s:[130,130,100]},{i:{x:[.254,.254,.667],y:[1,1,1]},o:{x:[.166,.166,.333],y:[0,0,0]},t:37.5,s:[111.8,111.8,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.6,.6,.333],y:[0,0,0]},t:52.5,s:[140.4,140.4,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:61,s:[124.8,124.8,100]},{i:{x:[.398,.398,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:69.5,s:[135.2,135.2,100]},{t:78,s:[130,130,100]}],ix:6,l:2}},ao:0,ip:-30,op:151,st:-30,bm:0},{ddd:0,ind:5,ty:4,nm:"Circle_Fill",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[50,60.769,0],ix:2,l:2},a:{a:0,k:[93,57,0],ix:1,l:2},s:{a:1,k:[{i:{x:[0,0,.2],y:[1,1,1]},o:{x:[.167,.167,.167],y:[.167,.167,0]},t:38,s:[0,0,100]},{t:53,s:[76.923,76.923,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[350,350],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.203921568627,.698039215686,.2,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[93,57],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[90,90],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:38,op:418,st:-2,ct:1,bm:0},{ddd:0,ind:6,ty:4,nm:"Circle_Outline",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[50,60.769,0],ix:2,l:2},a:{a:0,k:[93,57,0],ix:1,l:2},s:{a:0,k:[76.923,76.923,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[350,350],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[.203921583587,.698039215686,.20000001496,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:12,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[93,57],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:9,s:[0]},{t:33,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.2],y:[1]},o:{x:[.167],y:[.167]},t:0,s:[0]},{t:33,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:38,st:-2,ct:1,bm:0}],markers=[],animationData={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers},AbhaVerificationStatus=({loading:e=!1,loadingText:s,successText:i})=>jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-w-full pds2-min-h-full pds2-flex pds2-flex-col pds2-items-center pds2-justify-center pds2-text-center",style:{backgroundColor:"#F2F2F2"},children:[jsxRuntimeExports.jsx(Lottie,{animationData,loop:!1,className:"pds2-w-400"}),e?jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading4Semibold pds2-absolute pds2-mt-220",children:s}):jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading4Semibold pds2-absolute pds2-mt-220",children:i})]}),createStoreImpl=e=>{let s;const i=new Set,a=($,et)=>{const ot=typeof $=="function"?$(s):$;if(!Object.is(ot,s)){const rt=s;s=et??(typeof ot!="object"||ot===null)?ot:Object.assign({},s,ot),i.forEach(at=>at(s,rt))}},o=()=>s,_={setState:a,getState:o,getInitialState:()=>b,subscribe:$=>(i.add($),()=>i.delete($))},b=s=e(a,o,_);return _},createStore=e=>e?createStoreImpl(e):createStoreImpl,identity=e=>e;function useStore(e,s=identity){const i=React.useSyncExternalStore(e.subscribe,React.useCallback(()=>s(e.getState()),[e,s]),React.useCallback(()=>s(e.getInitialState()),[e,s]));return React.useDebugValue(i),i}const createImpl=e=>{const s=createStore(e),i=a=>useStore(s,a);return Object.assign(i,s),i},create=e=>e?createImpl(e):createImpl;var SCREEN_NAMES=(e=>(e.LOGIN_WITH_ABHA="LOGIN_WITH_ABHA",e.VERIFY_OTP_LOGIN_WITH_ABHA="VERIFY_OTP_LOGIN_WITH_ABHA",e.CREATE_ABHA_WITH_AADHAAR="CREATE_ABHA_WITH_AADHAAR",e.ABHA_OTP_AND_MOBILE="ABHA_OTP_AND_MOBILE",e.ABHA_PHONE_NUMBER_VERIFICATION="ABHA_PHONE_NUMBER_VERIFICATION",e.AADHAAR_VERIFICATION_STATUS="AADHAAR_VERIFICATION_STATUS",e.ABHA_MOBILE_LINKING_STATUS="ABHA_MOBILE_LINKING_STATUS",e.SELECT_ABHA_FROM_LIST="SELECT_ABHA_FROM_LIST",e.CREATE_ABHA_ADDRESS="CREATE_ABHA_ADDRESS",e.CREATE_EKA_PROFILE="CREATE_EKA_PROFILE",e.SELECT_EKA_PROFILE="SELECT_EKA_PROFILE",e.CREATE_PHR_EKA_PROFILE="CREATE_PHR_EKA_PROFILE",e.GET_ALL_PROFILES="GET_ALL_PROFILES",e.LOGIN_OR_CREATE_ABHA="LOGIN_OR_CREATE_ABHA",e))(SCREEN_NAMES||{});const storeInitState={screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],authTxnId:null,txnId:null,aadhaarOtpSentToHint:null,mobileOtpSentToHint:null,aadhaarVerificationSkipStateStatus:null,ekaSmallToken:null,bottomsheetErrorInfo:null,abhaAddressList:null,loginIdentifierValue:null,abhaAuthFlowMethod:null,selectedAbhaAddress:null,ekaProfileInfo:null,registrationType:null,initAbhaAppMethod:"login_or_create_abha",initAbhaAppMobileNumber:null,initAbhaAppIdentifier:null,initAbhaAppIdentifierType:null,isEkaAppLogin:!1,isDocAppRequest:!1,isLoggedInFromRedirect:!1,clientId:"",oid:"",isApiTriggered:!1,isNewLoginOrCreateFlow:!1,selectedAbhaFlow:"",isInitApiTriggered:!1,identityValue:"",currentStepperIndex:1,mobileIdentifierValue:"",initAbhaAppIdentifierSource:"non_existing",goBackToLogin:!1,identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""},orgIcon:void 0,linkToOrgIcon:void 0},useAuthAbhaStore=create((e,s)=>({screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],setScreen:i=>e(a=>({screen:[...a.screen,i]})),goBackScreen:()=>{const{screen:i}=s();if(i.length===0)return null;e({screen:i.slice(0,-1)}),e(a=>({currentStepperIndex:i.slice(0,-1).at(-1)==="LOGIN_OR_CREATE_ABHA"?1:a.currentStepperIndex-1}))},goBackLoginScreen:()=>{const{isNewLoginOrCreateFlow:i}=s(),a=i?SCREEN_NAMES.LOGIN_OR_CREATE_ABHA:SCREEN_NAMES.LOGIN_WITH_ABHA;e({screen:[a]}),e({currentStepperIndex:1})},setUrlParams:i=>e({urlParams:i}),authTxnId:null,txnId:null,setTxnId:i=>e({txnId:i}),aadhaarOtpSentToHint:null,setAadhaarInitResponse:i=>e(i),mobileOtpSentToHint:null,setMobileInitResponse:i=>e(i),registrationType:null,setRegistrationType:i=>e({registrationType:i}),aadhaarVerificationSkipStateStatus:null,setAadhaarVerificationSkipStateStatus:i=>e({aadhaarVerificationSkipStateStatus:i}),bottomsheetErrorInfo:null,setBottomsheetErrorInfo:i=>e({bottomsheetErrorInfo:i}),ekaSmallToken:null,setEkaSmallToken:i=>e({ekaSmallToken:i}),abhaAddressList:null,setAbhaAddressList:i=>e({abhaAddressList:i}),loginIdentifierValue:null,setLoginIdentifierValue:i=>e({loginIdentifierValue:i}),abhaAuthFlowMethod:ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,setAbhaAuthFlowMethod:i=>e({abhaAuthFlowMethod:i}),selectedAbhaAddress:null,setSelectedAbhaAddress:i=>e({selectedAbhaAddress:i}),ekaProfileInfo:null,setEkaProfileInfo:i=>e({ekaProfileInfo:i}),initAbhaAppMethod:"login_or_create_abha",setInitAbhaAppMethod:i=>e({initAbhaAppMethod:i}),initAbhaAppMobileNumber:null,setInitAbhaAppMobileNumber:i=>e({initAbhaAppMobileNumber:i}),initAbhaAppIdentifier:null,setInitAbhaAppIdentifier:i=>e({initAbhaAppIdentifier:i}),initAbhaAppIdentifierType:null,setInitAbhaAppIdentifierType:i=>e({initAbhaAppIdentifierType:i}),initAbhaAppIdentifierSource:"non_existing",setInitAbhaAppIdentifierSource:i=>e({initAbhaAppIdentifierSource:i}),isEkaAppLogin:!1,setIsEkaAppLogin:i=>e({isEkaAppLogin:i}),isDocAppRequest:!1,setIsDocAppRequest:i=>e({isDocAppRequest:i}),setInitState:i=>e(i),isLoggedInFromRedirect:!1,setIsLoggedInFromRedirect:i=>e({isLoggedInFromRedirect:i}),clientId:"",setClientId:i=>e({clientId:i}),isApiTriggered:!1,setIsApiTriggered:i=>e({isApiTriggered:i}),oid:"",setOid:i=>e({oid:i}),isNewLoginOrCreateFlow:!1,setIsNewLoginOrCreateFlow:i=>e({isNewLoginOrCreateFlow:i}),selectedAbhaFlow:"",setSelectedAbhaFlow:i=>e({selectedAbhaFlow:i}),isInitApiTriggered:!1,setIsInitApiTriggered:i=>e({isInitApiTriggered:i}),identityValue:"",setIdentityValue:i=>e({identityValue:i}),currentStepperIndex:1,setCurrentStepperIndex:i=>e({currentStepperIndex:i}),mobileIdentifierValue:"",setMobileIdentifierValue:i=>e({mobileIdentifierValue:i}),identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""},setIdentifierValue:i=>e(a=>({identifierValue:{...a.identifierValue,...i}})),goBackToLogin:!1,setGoBackToLogin:i=>e({goBackToLogin:i}),orgIcon:void 0,setOrgIcon:i=>e({orgIcon:i}),linkToOrgIcon:void 0,setLinkToOrgIcon:i=>e({linkToOrgIcon:i}),clearAbhaAuthStore:()=>e(storeInitState)}));function fallbackFn(e){return function(...s){}}let mixpanel={notInitiated:!0,track:fallbackFn(),init:fallbackFn(),identify:fallbackFn(),register:fallbackFn()};function pushToMxpDataLayer({data:e}){typeof window<"u"&&(window.mxpDataLayer=window.mxpDataLayer||[],window.mxpDataLayer.push(e))}function sendApiFailedEvent({category:e="api-failed",url:s,params:i}){pushToMxpDataLayer({data:{name:e,data:{url:s,...i}}});const a=e,o={url:s,...i};mixpanel.track(a,o)}const handleSendEvent=({eventName:e,eventData:s})=>{var i;(i=window==null?void 0:window.Eka)!=null&&i.sendEvent&&window.Eka.sendEvent(JSON.stringify({event:e,properties:s}))},getMockAuthVerifyResponse=e=>({skip_state:0,method:AUTH_METHOD.MOBILE,txn_id:"",data:{tokens:{sess:"",refresh:""},profile:{oid:e.oid,fn:e.fn,mn:e.mn,ln:e.ln,gen:e.gen,dob:e.dob,fln:e.fln,at:"",mobile:e.mobile,abha_number:e.abha_number||"","health-ids":e["health-ids"]||[]}}});async function refreshToken(){if(await updateToken())return!0;const s=new Headers;s.append("Content-Type","application/json"),s.set("client-id",GET_CLIENT_ID());const i=JSON.stringify({}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include",mode:"cors"};try{const o=GET_AORTA_GO_HOST();if((await fetch(`${o}/emr/v3/auth/refresh`,{...a,body:JSON.stringify({})})).status===401)return!1}catch{return!1}return!0}async function fetchWrapper(e,s={},i=!0,a=!1){var o,c;try{const g=((c=(o=window==null?void 0:window.Eka)==null?void 0:o.getSessionToken)==null?void 0:c.call(o))||"",_=new Headers(s.headers);let b,$;!_.get("client-id")&&!a&&_.set("client-id",GET_CLIENT_ID()),g&&!_.get("auth")&&_.set("auth",g);const et=GET_EXTRA_HEADERS();et&&Object.keys(et).forEach(rt=>{_.set(rt,et[rt])});const ot=await fetch(e,{...s,headers:_});return window&&($=window.location.pathname,b=_.get("client-id")),ot.status===401&&i&&await refreshToken()?await fetchWrapper(e,s,!1):(ot.status>401&&sendApiFailedEvent({url:e,params:{responseStatus:ot.status}}),ot)}catch(g){throw sendApiFailedEvent({url:e,params:{error:`${g.message||g}`}}),console.error(g),g}}let androidRefreshCB=[];async function refreshCallback(e){androidRefreshCB.forEach(s=>s(!0)),androidRefreshCB=[]}async function updateToken(){var e,s,i,a,o,c;if(typeof window<"u"){if(typeof((e=window==null?void 0:window.Eka)==null?void 0:e.updateToken)=="function")return(s=window.parent)==null||s.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(g=>{var _;androidRefreshCB.push(g),(_=window==null?void 0:window.Eka)==null||_.updateToken("refreshCallback")});if(typeof((o=(a=(i=window==null?void 0:window.webkit)==null?void 0:i.messageHandlers)==null?void 0:a.statusCodeHandler)==null?void 0:o.postMessage)=="function")return(c=window.parent)==null||c.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(g=>{var _,b,$;androidRefreshCB.push(g),($=(b=(_=window==null?void 0:window.webkit)==null?void 0:_.messageHandlers)==null?void 0:b.statusCodeHandler)==null||$.postMessage(JSON.stringify({status:401}))})}return!1}async function postAuthVerifyV2({txn_id:e,code:s,token:i}){const a=new Headers;a.append("Content-Type","application/json");const o=JSON.stringify({txn_id:e,...s?{code:s}:{},...i?{token:i}:{}}),c={method:"POST",headers:a,body:o,redirect:"follow",credentials:"include"};try{const g=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${g}/v2/auth/verify`,c)).json()}catch(g){console.error(g)}return{}}const AbhaAadhaarVerificationStatusScreen=()=>{const e=useAuthAbhaStore(j=>j.aadhaarVerificationSkipStateStatus),s=useAuthAbhaStore(j=>j.authTxnId),i=useAuthAbhaStore(j=>j.ekaSmallToken),a=useAuthAbhaStore(j=>j.setScreen),o=useAuthAbhaStore(j=>j.abhaAddressList),[c,g]=reactExports.useState(!0),_=useAuthAbhaStore(j=>j.clientId),b=useAuthAbhaStore(j=>j.isEkaAppLogin),$=useAuthAbhaStore(j=>j.oid),et=useAuthAbhaStore(j=>j.ekaProfileInfo),ot=["M","F","O","U"],rt=useAuthAbhaStore(j=>j.setSelectedAbhaFlow),at=useAuthAbhaStore(j=>j.txnId),it=useAuthAbhaStore(j=>j.isNewLoginOrCreateFlow),st=GET_EXTRA_HEADERS(),dt=({name:j,data:tt={}})=>{var ut,ht;const nt={...{login_platform:_,is_eka_app_login:b?"true":"false",is_new_login_or_create_flow:it?"true":"false",txn_id:at||"missing txnId",oid:st!=null&&st["X-User-ID"]?"true":"false",access_token:st!=null&&st.auth?"true":"false"},...tt};handleSendEvent({eventName:j,eventData:nt}),(ht=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ht.call(ut,j,nt)};return reactExports.useEffect(()=>{var _e,nt;const j=new Promise(ut=>{setTimeout(()=>{ut(g(!1))},500)});handleSendEvent({eventName:"page_view",eventData:{page_view:"aadhaar_verified_successful",platform:_}}),(nt=(_e=window.curio)==null?void 0:_e.pushToMixpanel)==null||nt.call(_e,"page_view",{platform:_,page_view:"aadhaar_verified_successful"});async function tt(){await j,setTimeout(async()=>{var ut,ht,gt,ft,_t,At,kt,St;if(e===ABHA_V3_SKIP_STATES.CONFIRM_MOBILE_OTP)console.log("setting the selected abha flow to aadhaar"),rt("aadhaar"),handleSendEvent({eventName:"abha_aadhaar_verification_status",eventData:{type:"confirm_mobile_otp",platform:_,transactionId:s||"",skipState:"confirm_mobile_otp",minToken:i||"",oid:(et==null?void 0:et.oid)||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}}),(ht=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ht.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 Ot=ot.includes(et==null?void 0:et.gender)?et==null?void 0:et.gender:void 0,xt={oid:(et==null?void 0:et.oid)||"",fln:(et==null?void 0:et.name)||"",dob:et==null?void 0:et.date_of_birth,gen:Ot,mobile:et==null?void 0:et.mobile,at:"",fn:(et==null?void 0:et.firstname)||"",mn:(et==null?void 0:et.middlename)||"",ln:(et==null?void 0:et.lastname)||"",abha_number:(et==null?void 0:et.abha_number)||"","health-ids":et!=null&&et.abha_address?[et==null?void 0:et.abha_address]:void 0};console.log("inside abha aadhaar verification status auth profile response ",xt);const pt=getMockAuthVerifyResponse(xt);if(console.log("authResponse ",pt),e===ABHA_V3_SKIP_STATES.ABHA_END&&$){if(handleSendEvent({eventName:"abha_aadhaar_verification_status_eka_flow",eventData:{type:"verify",platform:_,transactionId:s||"",skipState:"abha_end",minToken:i||"",oid:$||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}}),(ft=(gt=window.curio)==null?void 0:gt.pushToMixpanel)==null||ft.call(gt,"abha_aadhaar_verification_status_eka_flow",{platform:_,type:"verify",transactionId:s||"",skipState:"abha_end",minToken:i||"",oid:$||"",abhaAddress:(et==null?void 0:et.abha_address)||"",isEkaAppLogin:b?"true":"false"}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(_t=window.EkaAbha)==null||_t.onAbhaSuccess(JSON.stringify({response:pt}));return}onAbhaSuccess({response:pt}),unMount();return}if(e===ABHA_V3_SKIP_STATES.ABHA_CREATE&&o){a(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}console.log("redirecting to create eka profile for abha address creation -> mobile"),a(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!s||!i)return;const Ct=await postAuthVerifyV2({txn_id:s,token:i});if(Ct.data){if(e===ABHA_V3_SKIP_STATES.ABHA_END){if($){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(At=window.EkaAbha)==null||At.onAbhaSuccess(JSON.stringify({response:Ct}));return}onAbhaSuccess({response:Ct}),unMount();return}setIndividualEnv({extraHeaders:{auth:(kt=Ct.data)==null?void 0:kt.tokens.sess}}),a(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(St=Ct.data)==null?void 0:St.tokens.sess}}),dt({name:"abha_login_otp_verify_abha_select",data:{type:"verify",platform:_}}),a(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}}},2e3)}tt()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:c,loadingText:"Verifying...",successText:"Aadhaar Verification Successful!"})};var jsxRuntime=jsxRuntimeExports,k3=e=>jsxRuntime.jsx("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M14.9688 7C14.9688 7.5625 14.5312 8 14 8H4.40625L7.6875 11.3125C8.09375 11.6875 8.09375 12.3438 7.6875 12.7188C7.5 12.9062 7.25 13 7 13C6.71875 13 6.46875 12.9062 6.28125 12.7188L1.28125 7.71875C0.875 7.34375 0.875 6.6875 1.28125 6.3125L6.28125 1.3125C6.65625 0.90625 7.3125 0.90625 7.6875 1.3125C8.09375 1.6875 8.09375 2.34375 7.6875 2.71875L4.40625 6H14C14.5312 6 14.9688 6.46875 14.9688 7Z",fill:"currentColor"})}),F3=k3,v4=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z",fill:"currentColor"})}),u4=v4,B4=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z",fill:"currentColor"})}),R4=B4,d6=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"14",viewBox:"0 0 448 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24V232H40c-13.3 0-24 10.7-24 24s10.7 24 24 24H200V440c0 13.3 10.7 24 24 24s24-10.7 24-24V280H408c13.3 0 24-10.7 24-24s-10.7-24-24-24H248V72z"})}),w6=d6,B6=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512",...e,children:jsxRuntime.jsx("path",{d:"M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z",fill:"currentColor"})}),R6=B6,e8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"})}),s8=e8,z8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"14",viewBox:"0 0 448 512",...e,children:jsxRuntime.jsx("path",{d:"M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z",fill:"currentColor"})}),T8=z8,A8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"})}),S8=A8,k8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",...e,children:jsxRuntime.jsx("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"})}),F8=k8,D8=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z",fill:"currentColor"})}),y8=D8,E7=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e,children:jsxRuntime.jsx("path",{d:"M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z",fill:"currentColor"})}),_7=E7,Z9=e=>jsxRuntime.jsx("svg",{viewBox:"0 0 105 117",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M104.436 33.768C104.144 38.8643 102.1 43.6607 98.4497 47.408L63.4061 83.3816C62.53 84.2809 61.5079 85.1803 60.3398 85.9297C52.3089 91.4757 41.3578 90.4264 34.4951 83.3816C30.2607 79.0348 28.0704 72.8893 28.6545 66.5939C28.8005 62.8467 31.8668 59.9988 35.5172 59.9988C39.3136 59.9988 42.3799 63.1464 42.3799 67.0436C42.3799 69.142 41.5038 70.9407 40.1897 72.2897C40.6277 73.4889 41.3578 74.688 42.3799 75.5873C44.1321 77.386 46.6143 78.4352 49.0966 78.4352C50.7028 78.4352 52.1629 78.1354 53.4771 77.386C54.3531 76.9363 55.0832 76.3368 55.8133 75.5873L73.0431 57.9003L65.8883 50.5557L55.6673 40.0634C53.9151 38.2647 51.4328 37.2155 48.9506 37.2155C46.4683 37.2155 43.9861 38.2647 42.2339 40.0634C41.0658 41.2625 40.1897 42.7614 39.7516 44.2603C41.3578 45.6093 42.5259 47.5579 42.5259 49.8062C42.5259 53.7034 39.4596 56.8511 35.6632 56.8511C32.1589 56.8511 29.0925 54.0032 28.8005 50.4058C27.6324 43.6607 29.6766 36.9157 34.4951 31.9693C38.2915 28.0722 43.402 25.8238 48.9506 25.8238C54.3531 25.8238 59.6097 28.0722 63.4061 31.9693L73.6271 42.4616L80.7819 49.8062L90.7109 39.6137C92.6091 37.6651 93.4852 35.2669 93.4852 32.5689C93.4852 30.1706 92.6091 27.9223 91.0029 26.2735C86.7685 21.477 81.658 17.7298 75.9634 15.0318C69.9768 12.3337 63.6981 10.8348 57.1274 10.8348C44.8622 10.8348 33.473 15.7812 24.7121 24.6247C16.0972 33.4682 11.2787 45.3095 11.2787 57.9003C11.2787 70.4911 16.0972 82.1825 24.7121 91.1759C33.327 100.019 44.8622 104.966 57.1274 104.966C63.6981 104.966 69.9768 103.617 75.9634 100.769C81.658 98.0708 86.7685 94.3236 91.0029 89.5271C94.3613 85.6299 94.2152 79.7842 90.7109 76.037L83.4101 68.5425L91.1489 60.5983L98.4497 68.0928C106.188 76.037 106.481 88.6277 99.1798 97.0216C93.9232 103.017 87.6446 107.664 80.6359 110.961C73.3351 114.409 65.4503 116.058 57.2734 116.058C49.6807 116.058 42.2339 114.559 35.2252 111.561C28.5085 108.563 22.3758 104.366 17.2653 99.12C12.0088 93.724 7.92036 87.5785 5.14608 80.6836C2.22578 73.4889 0.765625 65.8445 0.765625 58.0502C0.765625 50.2559 2.22578 42.6115 5.14608 35.4168C8.06638 28.5219 12.1548 22.2265 17.2653 16.9803C22.5219 11.5843 28.5085 7.38737 35.2252 4.53946C42.2339 1.54166 49.6807 0.042762 57.2734 0.042762C65.4503 0.042762 73.1891 1.84143 80.6359 5.13901C87.7906 8.43659 93.9232 13.0832 99.1798 19.0788C101.37 21.6269 103.122 24.7746 103.852 28.0722C104.29 29.4212 104.436 31.6695 104.436 33.768Z",fill:"#7265E3"})}),I9=Z9,ArrowLeftRegularIcon=F3,CheckSquareSolidIcon=T8,ChevronDownRegularIcon=u4,CircleCheckSolidIcon=S8,CircleExclamationSolidIcon=F8,CircleInfoRegularIcon=R4,CircleInfoSolidIcon=y8,EkaIcon=I9,PhoneSolidIcon=_7,PlusRegularIcon=w6,SquareRegularIcon=R6,XMarkRegularIcon=s8;const usePostAuthVerifyV2=()=>{const e=useAuthAbhaStore(s=>s.setScreen);return useMutation({mutationFn:s=>postAuthVerifyV2(s),onSuccess:(s,{oid:i})=>{var a,o,c;if(i){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(a=window.EkaAbha)==null||a.onAbhaSuccess(JSON.stringify({response:s}));return}onAbhaSuccess({response:s}),unMount();return}(o=s.data)!=null&&o.tokens.sess&&setIndividualEnv({extraHeaders:{auth:(c=s.data)==null?void 0:c.tokens.sess}}),e(SCREEN_NAMES.GET_ALL_PROFILES)}})},Spinner=({className:e="",size:s=40})=>jsxRuntimeExports.jsx("div",{className:`pds2-w-full pds2-flex pds2-justify-center pds2-items-center ${e}`,children:jsxRuntimeExports.jsxs("svg",{className:"pds2-animate-spin",id:"svg-spinner",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 48 48",fill:"currentColor",children:[jsxRuntimeExports.jsx("circle",{cx:"24",cy:"4",r:"2.5",className:"fill-current opacity-100"}),jsxRuntimeExports.jsx("circle",{cx:"12.19",cy:"7.86",r:"2.5",className:"fill-current opacity-90"}),jsxRuntimeExports.jsx("circle",{cx:"5.02",cy:"17.68",r:"2.5",className:"fill-current opacity-80"}),jsxRuntimeExports.jsx("circle",{cx:"5.02",cy:"30.32",r:"2.5",className:"fill-current opacity-70"}),jsxRuntimeExports.jsx("circle",{cx:"12.19",cy:"40.14",r:"2.5",className:"fill-current opacity-60"}),jsxRuntimeExports.jsx("circle",{cx:"24",cy:"44",r:"2.5",className:"fill-current opacity-50"}),jsxRuntimeExports.jsx("circle",{cx:"35.81",cy:"40.14",r:"2.5",className:"fill-current opacity-40"}),jsxRuntimeExports.jsx("circle",{cx:"42.98",cy:"30.32",r:"2.5",className:"fill-current opacity-30"}),jsxRuntimeExports.jsx("circle",{cx:"42.98",cy:"17.68",r:"2.5",className:"fill-current opacity-20"}),jsxRuntimeExports.jsx("circle",{cx:"35.81",cy:"7.86",r:"2.5",className:"fill-current opacity-10"})]})}),Pds2Button=({title:e,textColor:s,size:i,state:a,buttonColor:o="",isLoading:c,className:g,onClick:_,width:b,buttonIconPosition:$="right",IconComponent:et})=>jsxRuntimeExports.jsx("button",{title:e,className:`${g} pds2-px-24 pds2-py-16 pds2-text-text-invert ${o||"pds2-bg-bg-brand-01"} pds2-flex pds2-justify-center pds2-items-center pds2-rounded-16 ${c?"pds2-pointer-events-none pds2-cursor-not-allowed":""} disabled:pds2-pointer-events-none disabled:pds2-bg-bg-04 disabled:pds2-text-text-03 ${a==="disabled"?"":"ripple"}`,onClick:_,...b?{style:{width:b}}:null,disabled:a==="disabled",children:c?jsxRuntimeExports.jsx(Spinner,{size:24,className:s}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[et&&$==="left"?jsxRuntimeExports.jsx(et,{}):null,jsxRuntimeExports.jsx("div",{className:`${s} Body1Semibold`,children:e}),et&&$==="right"?jsxRuntimeExports.jsx(et,{}):null]})}),AbhaHeader=({prefixIcon:e=jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"}),title:s,suffixIcon:i=jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"}),className:a=""})=>jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-items-center pds2-justify-between pds2-w-full pds2-p-16 pds2-sticky pds2-top-0 pds2-z-50 pds2-bg-bg-white ${a}`,children:[e,jsxRuntimeExports.jsx("div",{className:"pds2-flex-1 Heading4Semibold pds2-text-center pds2-text-text-black",children:s}),i]}),BottomSheetWrapper=({isOpen:e,setIsOpen:s,children:i,shouldCloseOnClickOutside:a=!0})=>jsxRuntimeExports.jsxs("div",{className:`pds2-absolute pds2-inset-0 pds2-z-50 pds2-transition-opacity pds2-duration-300 ${e?"pds2-opacity-100 pds2-pointer-events-auto":"pds2-opacity-0 pds2-pointer-events-none pds2-hidden"}`,children:[jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-inset-0 pds2-bg-text-black pds2-bg-opacity-60 pds2-transition-opacity pds2-duration-300",onClick:()=>a&&s(!1)}),jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-w-full pds2-bg-bg-white pds2-rounded-t-16 pds2-shadow-lg pds2-p-4 pds2-transition-all pds2-duration-300 pds2-ease-out",style:{transform:e?"translateY(0)":"translateY(100%)"},children:i})]}),AbhaBottomSheet$1=({description:e,subText:s,submitText:i,onSubmitClick:a,iconUrl:o,isBottomSheetOpen:c,onBottomSheetClose:g,shouldCloseOnClickOutside:_=!0})=>jsxRuntimeExports.jsx(BottomSheetWrapper,{isOpen:c,setIsOpen:g,shouldCloseOnClickOutside:_,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-p-16 pds2-text-center",children:[_?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-items-center",children:jsxRuntimeExports.jsx("button",{onClick:g,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(XMarkRegularIcon,{className:"pds2-w-18 pds2-h-18 pds2-text-text-03"})})}):null,jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[o&&jsxRuntimeExports.jsx("span",{className:"pds2-flex pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:o,className:"pds2-w-64 pds2-h-64",alt:"Bottom sheet icon"})}),jsxRuntimeExports.jsx("div",{className:"Heading4Semibold pds2-text-text-01 pds2-py-16 pds2-text-18",children:e}),s&&jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-text-03",children:s}),jsxRuntimeExports.jsx(Pds2Button,{title:i,onClick:a,state:"enabled",className:"pds2-w-full"})]})]})}),AbhaErrorBottomSheet=({onSubmitClick:e})=>{const s=useAuthAbhaStore(o=>o.bottomsheetErrorInfo),i=useAuthAbhaStore(o=>o.setBottomsheetErrorInfo),a=()=>{i(null)};return jsxRuntimeExports.jsx(AbhaBottomSheet$1,{description:(s==null?void 0:s.title)||"Something went wrong",subText:(s==null?void 0:s.description)||"Something went wrong",submitText:(s==null?void 0:s.cta.title)||"Retry",onSubmitClick:e,iconUrl:s==null?void 0:s.img,isBottomSheetOpen:!!s,onBottomSheetClose:a,shouldCloseOnClickOutside:!1})},SpacedInputComponent=({numberOfInputs:e,length:s=1,placeholder:i="",setIsValid:a,onSubmit:o,error:c,containerClassName:g,setError:_,initialValues:b,setAadhaarValue:$,disabled:et=!1,autoComplete:ot})=>{const rt=reactExports.useRef([]),[at,it]=reactExports.useState(b||Array(e).fill(""));reactExports.useEffect(()=>{if(b&&b.length===e){const nt=b.join(""),ut=at.join("");nt!==ut&&(it(b),a==null||a(nt.length===e*s))}},[b,e,s]);const st=(nt,ut)=>{var At,kt;if(et)return;_&&_(null);const ht=nt.target.value;if(isNaN(Number(ht)))return;if(ht.trim().length===e*s){tt({otpValue:ht,index:0});return}const ft=[...at];ft[ut]=ht;const _t=ft.join("").length;if(!(_t>e*s)){if(it(ft),$==null||$(ft.join("")),rt.current[ut].value.length>s){(At=rt.current[ut+1])==null||At.focus();return}_t===e*s?(a==null||a(!0),o({inputVal:ft.join("")}),$&&_t===12&&$(ft.join(""))):a==null||a(!1),ht.length===s&&ut<e-1&&((kt=rt.current[ut+1])==null||kt.focus())}},dt=(nt,ut)=>{var ht;et||nt.key==="Backspace"&&at[ut]===""&&ut>0&&((ht=rt.current[ut-1])==null||ht.focus())},j=(nt,ut)=>{if(et)return;nt.preventDefault();const ht=nt.clipboardData.getData("text").replace(/\D/g,"");if(!ht)return;const gt=e*s,ft=ht.slice(0,gt);tt({otpValue:ft,index:ut})},tt=({otpValue:nt,index:ut})=>{var _t,At;const ht=nt.match(new RegExp(`.{1,${s}}`,"g"))||[],gt=[...at];ht.forEach((kt,St)=>{ut+St<e&&(gt[ut+St]=kt)}),it(gt);const ft=gt.findIndex((kt,St)=>St>=ut&&!kt);ft!==-1?(_t=rt.current[ft])==null||_t.focus():(At=rt.current[e-1])==null||At.focus(),gt.join("").length===e*s?(a==null||a(!0),o({inputVal:gt.join("")}),$&>.join("").length===12&&$(gt.join(""))):a==null||a(!1)},_e=reactExports.useMemo(()=>{const nt=at.findIndex(ut=>ut.length<s);return nt!==-1?nt:at.length>0?at.length-1:0},[at,s]);return jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-justify-center pds2-items-center pds2-space-x-8 ${g}`,children:Array.from({length:e}).map((nt,ut)=>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:ut===_e&&!et,placeholder:i,value:at[ut],type:"text",autoComplete:ot,inputMode:"numeric",pattern:"[0-9]*",onPaste:ht=>j(ht,ut),ref:ht=>{ht&&(rt.current[ut]=ht)},onChange:ht=>st(ht,ut),onKeyDown:ht=>dt(ht,ut),disabled:et,className:"pds2-w-full pds2-text-center pds2-h-56 pds2-rounded-12 pds2-outline-none pds2-bg-transparent disabled:pds2-text-text-04"},ut)},ut))})};function formatTime(e){const s=Math.floor(e/60),i=e%60;return`${s.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}const ResendTimer=({time:e,onResendOtpClick:s,error:i})=>{const[a,o]=reactExports.useState(e);return reactExports.useEffect(()=>{const c=setInterval(()=>{o(a-1)},1e3);return()=>clearInterval(c)},[a]),a>0?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsxs("div",{className:"pds2-text-text-04",children:[jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:"Resend OTP in"})," ",jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:formatTime(a)})]})}):jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-text-brand cursor-pointer",onClick:()=>{o(e),s()},children:"Resend OTP"})})},AbhaOtpCard=({otpSentToText:e,onOtpCompletion:s,onResendOtpClick:i,setIsValid:a,error:o,setError:c,prefixIcon:g=jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-w-48"})})=>{const _=useAuthAbhaStore(et=>et.goBackScreen),b=useAuthAbhaStore(et=>et.screen),$=useAuthAbhaStore(et=>et.setGoBackToLogin);return reactExports.useEffect(()=>{$(!1)},[]),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-bg-white pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-space-x-16",children:[jsxRuntimeExports.jsxs("div",{className:"Body1Regular pds2-text-text-01 pds2-flex-1",children:[e,jsxRuntimeExports.jsx("sup",{className:"pds2-text-text-error Body3Semibold",children:" *"})]}),g]}),jsxRuntimeExports.jsx(SpacedInputComponent,{numberOfInputs:6,length:1,onSubmit:({inputVal:et})=>s({otp:et}),setIsValid:a,error:o,setError:c,autoComplete:"one-time-code"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex",children:[jsxRuntimeExports.jsx(ResendTimer,{time:60,onResendOtpClick:i,error:o}),b.length===2&&jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-text-brand cursor-pointer",onClick:()=>{_(),$(!0)},children:"Change"})]}),o&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-text-error",children:o})]})};async function postAbdmLoginVerify({txn_id:e,otp:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,otp:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/profile/login/verify`,o)).json()}catch(c){console.error("postAbdmLoginVerify error =>",c)}return{}}const usePostAbdmLoginVerify=()=>{const e=useAuthAbhaStore(s=>s.setSelectedAbhaAddress);return useMutation({mutationFn:({txn_id:s,otp:i})=>postAbdmLoginVerify({otp:i,txn_id:s}),onSuccess(s){s.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],s.profile),e(s.profile.abha_address))}})},Pds2CustomButton=({prefixIcon:e,title:s,suffixIcon:i,className:a="",onClick:o,width:c="pds2-w-full",padding:g,isRippleStyle:_=!0})=>jsxRuntimeExports.jsxs("button",{onClick:o,className:`pds2-flex pds2-flex-row pds2-items-center pds2-gap-12 ${g||"pds2-p-16"} pds2-rounded-16 pds2-text-bg-invert pds2-bg-bg-white pds2-border pds2-border-border-03 ${_&&"ripple"} ${c} ${a}`,children:[e||null,jsxRuntimeExports.jsx("span",{className:"Body1Medium",children:s}),i||null]}),ExitPopup=({open:e,setOpen:s})=>{const i=useAuthAbhaStore(at=>at.goBackLoginScreen),a=useAuthAbhaStore(at=>at.clientId),o=useAuthAbhaStore(at=>at.isEkaAppLogin),c=useAuthAbhaStore(at=>at.isNewLoginOrCreateFlow),g=useAuthAbhaStore(at=>at.setAbhaAuthFlowMethod),_=useAuthAbhaStore(at=>at.txnId),b=useAuthAbhaStore(at=>at.setGoBackToLogin),$=useAuthAbhaStore(at=>at.screen),et=useAuthAbhaStore(at=>at.abhaAuthFlowMethod),ot=({name:at,data:it={}})=>{var j,tt;const dt={...{login_platform:a,is_eka_app_login:o?"true":"false",is_new_login_or_create_flow:c?"true":"false",txn_id:_||"missing txnId"},...it};handleSendEvent({eventName:at,eventData:dt}),(tt=(j=window.curio)==null?void 0:j.pushToMixpanel)==null||tt.call(j,at,dt)},rt=()=>{ot({name:"abha_exit_popup_confirmed",data:{action:"go_back_to_login_screen"}}),$.at(-2)===SCREEN_NAMES.SELECT_ABHA_FROM_LIST&&et===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&g(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),b(!0),i()};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:e?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("div",{className:"pds2-h-full pds2-z-50 pds2-flex pds2-items-center pds2-justify-center pds2-absolute pds2-top-0 pds2-inset-0 pds2-bg-text-black pds2-bg-opacity-60 pds2-transition-opacity pds2-duration-300",onClick:()=>s(!1),children:jsxRuntimeExports.jsx("div",{className:"pds2-z-50 pds2-absolute pds2-top pds2-px-24",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-16 pds2-bg-bg-white pds2-rounded-16 pds2-w-full pds2-p-24",children:[jsxRuntimeExports.jsx("h2",{className:"pds2-text-text-black pds2-font-500 pds2-text-18",children:"Are you sure you want to exit?"}),jsxRuntimeExports.jsx("p",{className:"pds2-text-text-03 pds2-text-14 pds2-font-400",children:"Confirm if you'd like to exit. Any unsaved changes may be lost."}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-end pds2-gap-x-8",children:[jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Not yet",padding:"pds2-px-12 pds2-py-8",className:"pds2-text-text-error pds2-font-600 pds2-text-16 pds2-border-none",width:"pds2-w-fit",onClick:()=>s(!1)}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Yes, I'm done",padding:"pds2-px-12 pds2-py-8",className:"pds2-text-text-brand pds2-font-600 pds2-text-16 pds2-border-none",width:"pds2-w-fit",onClick:rt})]})]})})})}):null})},AbhaStepper=()=>{const e=useAuthAbhaStore($=>$.screen),s=useAuthAbhaStore($=>$.currentStepperIndex),i=useAuthAbhaStore($=>$.setCurrentStepperIndex),a=e[e.length-1],o=e.length>1&&e[e.length-2],c=useAuthAbhaStore($=>$.abhaAuthFlowMethod),g={1:["LOGIN_WITH_ABHA","LOGIN_OR_CREATE_ABHA","CREATE_ABHA_WITH_AADHAAR"],2:["VERIFY_OTP_LOGIN_WITH_ABHA","ABHA_OTP_AND_MOBILE"],3:["ABHA_PHONE_NUMBER_VERIFICATION","SELECT_ABHA_FROM_LIST","SELECT_EKA_PROFILE","CREATE_ABHA_ADDRESS","CREATE_ABHA_WITH_AADHAAR","CREATE_PHR_EKA_PROFILE","CREATE_EKA_PROFILE"]};reactExports.useEffect(()=>{var et;const $=(et=Object.entries(g).find(([ot,rt])=>rt.includes(a)))==null?void 0:et[0];if($){if(c==="abha_number"||c==="phr_address"){if(a==="VERIFY_OTP_LOGIN_WITH_ABHA"){i(3);return}}else if((o==="LOGIN_OR_CREATE_ABHA"||o==="LOGIN_WITH_ABHA"||o==="CREATE_ABHA_WITH_AADHAAR")&&e.length>1){i(2);return}Number($)>=s&&i(Number($))}},[e]);const _=Array.from({length:4},($,et)=>{const ot=et+1;return jsxRuntimeExports.jsx("div",{className:`pds2-relative pds2-p-0 pds2-text-center pds2-h-23 pds2-w-23 pds2-rounded-11 pds2-transition-all pds2-ease-in-out pds2-duration-250 pds2-text-bg-white ${ot<=s?"pds2-bg-text-brand":"pds2-bg-bg-secondary"}`,children:ot},ot)}),b=s===1?20:s===2?50:s===3?80:100;return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-01 pds2-flex pds2-w-full pds2-place-items-center pds2-justify-center pds2-relative pds2-px-60 pds2-py-20 pds2-cursor-default",children:[jsxRuntimeExports.jsx("div",{className:"pds2-cursor-default pds2-flex pds2-flex-row pds2-justify-between pds2-items-center pds2-gap-5 pds2-h-auto pds2-w-full pds2-z-10",children:_}),jsxRuntimeExports.jsx("progress",{className:"abhaStepper pds2-absolute pds2-w-full pds2-h-2 pds2-px-60",max:100,value:b})]})};async function postAbdmLoginInit({method:e,identifier:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({method:e,identifier:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/profile/login/init`,o)).json()}catch(c){console.error("postAbdmLoginInit error =>",c)}return{}}const AbhaLoginOtpVerifyScreen=()=>{const e=useAuthAbhaStore(mt=>mt.authTxnId),s=useAuthAbhaStore(mt=>mt.txnId),i=useAuthAbhaStore(mt=>mt.orgIcon),a=useAuthAbhaStore(mt=>mt.setAbhaAddressList),o=useAuthAbhaStore(mt=>mt.clearAbhaAuthStore),c=useAuthAbhaStore(mt=>mt.aadhaarOtpSentToHint),g=useAuthAbhaStore(mt=>mt.loginIdentifierValue),_=useAuthAbhaStore(mt=>mt.abhaAuthFlowMethod),b=useAuthAbhaStore(mt=>mt.setScreen),$=useAuthAbhaStore(mt=>mt.goBackLoginScreen),et=useAuthAbhaStore(mt=>mt.setTxnId),ot=useAuthAbhaStore(mt=>mt.setBottomsheetErrorInfo),[rt,at]=reactExports.useState(!1),it=useAuthAbhaStore(mt=>mt.setEkaProfileInfo),st=useAuthAbhaStore(mt=>mt.setAadhaarVerificationSkipStateStatus),dt=useAuthAbhaStore(mt=>mt.setSelectedAbhaAddress),[j,tt]=reactExports.useState(""),[_e,nt]=reactExports.useState(!1),[ut,ht]=reactExports.useState(""),[gt,ft]=reactExports.useState(LOADING_STATE.IDLE),_t=["M","F","O","U"],{mutateAsync:At}=usePostAuthVerifyV2(),{mutateAsync:kt}=usePostAbdmLoginVerify(),St=useAuthAbhaStore(mt=>mt.isEkaAppLogin),Ct=useAuthAbhaStore(mt=>mt.clientId);useAuthAbhaStore(mt=>mt.oid);const Ot=useAuthAbhaStore(mt=>mt.isNewLoginOrCreateFlow),xt=GET_EXTRA_HEADERS(),pt=({name:mt,data:wt={}})=>{var jt,Lt;const bt={...{login_platform:Ct,is_eka_app_login:St?"true":"false",is_new_login_or_create_flow:Ot?"true":"false",txn_id:s||"missing txnId",oid:xt!=null&&xt["X-User-ID"]?"true":"false",access_token:xt!=null&&xt.auth?"true":"false"},...wt};handleSendEvent({eventName:mt,eventData:bt}),(Lt=(jt=window.curio)==null?void 0:jt.pushToMixpanel)==null||Lt.call(jt,mt,bt)};reactExports.useEffect(()=>{pt({name:"page_view",data:{page_view:"abha_login_otp_verify",platform:Ct}})},[]);const vt=()=>{pt({name:"abha_login_otp_verify_error_bottomsheet_dismissed",data:{platform:Ct}}),$();const mt=Ct,wt=useAuthAbhaStore.getState().isEkaAppLogin;o(),useAuthAbhaStore.setState({clientId:mt}),useAuthAbhaStore.setState({isEkaAppLogin:wt})},lt=({otp:mt})=>{tt(mt),pt({name:"abha_login_otp_completion",data:{type:"verify",platform:Ct,txn_id:s,otp_entered:!0,method:_}}),ct(mt)},ct=async mt=>{var Pt,Vt,Gt,$t,Bt,er;if(!s){pt({name:"abha_login_otp_verify_txnId_not_found",data:{type:"verify",platform:Ct,txn_id:s||"missing_txn_id",txn_id_exists:!!s,method:(_==null?void 0:_.toLowerCase())||"unknown_method"}});return}pt({name:"abha_login_otp_verify",data:{type:"verify",platform:Ct,txn_id:s}}),ft(LOADING_STATE.LOADING);const{abha_profiles:wt=[],skip_state:Tt,profile:bt,error:jt,action:Lt,eka:Rt}=await kt({otp:mt,txn_id:s});if(Lt){pt({name:"abha_login_otp_verify_error_action",data:{type:"verify",platform:Ct,error_action:Lt||"no_error_action",error_message:jt||"no_error_message",error_action_exists:!!Lt,error_message_exists:!!jt}}),ot(Lt);return}if(jt){pt({name:"abha_login_otp_verify_error",data:{type:"verify",platform:Ct,error_message:jt||"unknown_error",error_message_exists:!!jt}}),ft(LOADING_STATE.REJECTED),ht(jt);return}if(!Tt){ht("Skip State is missing"),pt({name:"abha_login_skip_state_missing",data:{platform:Ct,skipState:Tt||"missing_skip_state",skipState_exists:!!Tt}});return}st(Tt),bt&&dt(bt.abha_address),bt&&it({date_of_birth:`${bt.year_of_birth}-${String(bt.month_of_birth).padStart(2,"0")}-${String(bt.day_of_birth).padStart(2,"0")}`,firstname:bt.first_name,lastname:bt.last_name,pincode:bt.pincode,gender:bt.gender,name:bt.first_name+" "+bt.last_name,mobile:bt.mobile,oid:Rt==null?void 0:Rt.oid,abha_address:bt==null?void 0:bt.abha_address,abha_number:bt==null?void 0:bt.abha_number});const It=_t.includes(bt==null?void 0:bt.gender)?bt==null?void 0:bt.gender:void 0,Ft={oid:(Rt==null?void 0:Rt.oid)||"",fln:(bt==null?void 0:bt.first_name)+" "+(bt==null?void 0:bt.last_name),dob:`${bt==null?void 0:bt.year_of_birth}-${String(bt==null?void 0:bt.month_of_birth).padStart(2,"0")}-${String(bt==null?void 0:bt.day_of_birth).padStart(2,"0")}`,gen:It,mobile:bt==null?void 0:bt.mobile,fn:(bt==null?void 0:bt.first_name)||"",mn:(bt==null?void 0:bt.middle_name)||"",ln:(bt==null?void 0:bt.last_name)||"","health-ids":bt!=null&&bt.abha_address?[bt.abha_address]:void 0,abha_number:(bt==null?void 0:bt.abha_number)||""};if(Tt===ABHA_V3_SKIP_STATES.ABHA_END){if(St){if(pt({name:"abha_login_otp_verify_eka_app",data:{type:"verify",platform:Ct,txn_id:s,skip_state:Tt}}),ft(LOADING_STATE.RESOLVED),!Rt){pt({name:"abha_login_otp_verify_eka_app_error",data:{type:"null_oid",platform:Ct,txn_id:s||"missing_txn_id",txn_id_exists:!!s,eka:Rt||"missing_eka",eka_exists:!!Rt,skip_state:Tt||"missing_skip_state",skip_state_exists:!!Tt}}),ft(LOADING_STATE.REJECTED),ht("Something went wrong, please try again");return}const tr=getMockAuthVerifyResponse(Ft);if(pt({name:"abha_login_otp_verify_success",data:{type:"verify",platform:Ct,txn_id:s,skip_state:Tt,method:_}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Pt=window.EkaAbha)==null||Pt.onAbhaSuccess(JSON.stringify({response:tr}));return}onAbhaSuccess({response:tr}),unMount();return}if(!Rt||!Rt.min_token||!e){pt({name:"abha_login_otp_verify_eka_error",data:{type:"verify",platform:Ct,eka:Rt||"missing_eka",eka_exists:!!Rt,auth_txnId:e||"missing_auth_txnId",auth_txnId_exists:!!e,skip_state:Tt||"missing_skip_state",skip_state_exists:!!Tt}}),ft(LOADING_STATE.REJECTED),ht("Something went wrong, please try again");return}const Wt=await At({txn_id:e,token:Rt.min_token,...Rt.oid?{oid:Rt.oid}:null});if(!Wt.data){pt({name:"abha_login_otp_verify_auth_verify_error",data:{type:"verify",platform:Ct,skip_state:Tt||"missing_skip_state",skip_state_exists:!!Tt,auth_verify_data_exists:!1}}),ft(LOADING_STATE.REJECTED),ht(((Vt=Wt.error)==null?void 0:Vt.message)||"Something went wrong, please try again");return}pt({name:"abha_login_otp_verify_abha_end_success",data:{type:"verify",platform:Ct,txn_id:s,skip_state:Tt}}),ft(LOADING_STATE.RESOLVED);return}if(Tt===ABHA_V3_SKIP_STATES.ABHA_SELECT&&wt.length>0){pt({name:"abha_login_otp_verify_abha_select",data:{type:"verify",platform:Ct}}),b(SCREEN_NAMES.SELECT_ABHA_FROM_LIST),a(wt);return}if(Tt===ABHA_V3_SKIP_STATES.ABHA_CREATE&&_===ABHA_AUTH_FLOW_METHOD.MOBILE){b(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(Tt===ABHA_V3_SKIP_STATES.ABHA_CREATE){b(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}if(St){if(!Rt){pt({name:"abha_login_otp_verify_eka_failed",data:{type:"verify",platform:Ct,txn_id:e||"missing_authTxnId",txn_id_exists:!!e}}),ft(LOADING_STATE.REJECTED),ht("Something went wrong, please try again");return}const Wt=getMockAuthVerifyResponse(Ft);if(ft(LOADING_STATE.RESOLVED),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Gt=window.EkaAbha)==null||Gt.onAbhaSuccess(JSON.stringify({response:Wt}));return}onAbhaSuccess({response:Wt}),unMount();return}if(!Tt||!(Rt!=null&&Rt.min_token)){ft(LOADING_STATE.REJECTED),ht(jt||"Something went wrong, please try again"),Lt&&ot(Lt);return}if(Rt.min_token&&e){const Wt=await At({txn_id:e,token:Rt.min_token});Wt.data?pt({name:"abha_login_auth_verify_success",data:{platform:Ct,txn_id:e}}):(pt({name:"abha_login_auth_verify_failed",data:{platform:Ct,txn_id:e||"missing_authTxnId",txn_id_exists:!!e,error_message:(($t=Wt==null?void 0:Wt.error)==null?void 0:$t.message)||"unknown_error",error_message_exists:!!((Bt=Wt==null?void 0:Wt.error)!=null&&Bt.message)}}),ft(LOADING_STATE.REJECTED),ht(((er=Wt.error)==null?void 0:er.message)||"Something went wrong, please try again"))}ft(LOADING_STATE.RESOLVED)},yt=async()=>{if(g&&_){const{txn_id:mt}=await postAbdmLoginInit({method:_,identifier:g});pt({name:"abha_login_verify_resend_otp",data:{method:_,platform:Ct,txn_id:mt}}),mt&&et(mt)}};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-bg-white",children:[jsxRuntimeExports.jsx(AbhaHeader,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>at(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),title:"OTP Verification",suffixIcon:i?jsxRuntimeExports.jsx("img",{src:i,className:"pds2-w-20 pds2-h-20"}):jsxRuntimeExports.jsx(EkaIcon,{className:"pds2-w-20 pds2-h-20"}),className:"pds2-border-b-1 pds2-border-bg-seperator-dark"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-bg-01",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:c||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:lt,onResendOtpClick:yt,error:ut,setIsValid:mt=>{ut&&ht(null),nt(mt)},prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abdm-abha-icon",className:"pds2-w-48"})})}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full pds2-border pds2-border-border-brand-02",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!_e||gt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>ct(j),isLoading:gt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:vt}),jsxRuntimeExports.jsx(ExitPopup,{open:rt,setOpen:at})]})};async function getProfilesPatient(){const e=new Headers;e.append("Content-Type","application/json");const s={method:"GET",headers:e,redirect:"follow",credentials:"include"},i=GET_EXTRA_HEADERS(),a=i==null?void 0:i["X-User-ID"];if(!a)return{};try{const o=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${o}/profiles/v1/patient/${a}`,s)).json()}catch(o){return console.error("profilePhrUser error =>",o),{}}}const AbhaMobileLinkingStatusScreen=()=>{const e=useAuthAbhaStore(j=>j.aadhaarVerificationSkipStateStatus),s=useAuthAbhaStore(j=>j.authTxnId),i=useAuthAbhaStore(j=>j.ekaSmallToken),a=useAuthAbhaStore(j=>j.oid),o=useAuthAbhaStore(j=>j.setScreen),[c,g]=reactExports.useState(!0),_=useAuthAbhaStore(j=>j.setEkaProfileInfo),b=useAuthAbhaStore(j=>j.clientId),$=useAuthAbhaStore(j=>j.isEkaAppLogin),et=useAuthAbhaStore(j=>j.ekaProfileInfo),ot=["M","F","O","U"],rt=reactExports.useRef(!1),at=useAuthAbhaStore(j=>j.isNewLoginOrCreateFlow),it=useAuthAbhaStore(j=>j.txnId),st=GET_EXTRA_HEADERS(),dt=({name:j,data:tt={}})=>{var ut,ht;const nt={...{login_platform:b,is_eka_app_login:$?"true":"false",is_new_login_or_create_flow:at?"true":"false",txn_id:it||"missing txnId",oid:st!=null&&st["X-User-ID"]?"true":"false",access_token:st!=null&&st.auth?"true":"false"},...tt};handleSendEvent({eventName:j,eventData:nt}),(ht=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ht.call(ut,j,nt)};return reactExports.useEffect(()=>{const j=new Promise(_e=>{setTimeout(()=>{_e(g(!1))},500)});dt({name:"page_view",data:{page_view:"mobile_verified_successful",platform:b}});async function tt(){await j,setTimeout(async()=>{var _e,nt,ut,ht,gt,ft;if(e===ABHA_V3_SKIP_STATES.ABHA_CREATE||e===ABHA_V3_SKIP_STATES.ABHA_END){if(dt({name:"abha_create_mobile_initiate",data:{platform:b,oid_received:a,txn_id:it,skip_state:e}}),a&&!rt.current){const At=await getProfilesPatient();rt.current=!0,At&&_({date_of_birth:At.dob,firstname:At.fn,lastname:At.ln,pincode:"",gender:At.gen,oid:At==null?void 0:At.oid,middlename:At==null?void 0:At.mn,abha_address:(_e=At==null?void 0:At["health-ids"])==null?void 0:_e[0],abha_number:At==null?void 0:At.abha_number})}if($&&e===ABHA_V3_SKIP_STATES.ABHA_END&&a){const At=ot.includes(et==null?void 0:et.gender)?et==null?void 0:et.gender:void 0,kt={oid:(et==null?void 0:et.oid)||"",fln:(et==null?void 0:et.name)||"",dob:et==null?void 0:et.date_of_birth,gen:At,mobile:et==null?void 0:et.mobile,fn:(et==null?void 0:et.firstname)||"",mn:(et==null?void 0:et.middlename)||"",ln:(et==null?void 0:et.lastname)||"","health-ids":et!=null&&et.abha_address?[et.abha_address]:void 0,abha_number:(et==null?void 0:et.abha_number)||""};dt({name:"abha_mobile_linking_success",data:{type:"unmount",isEkaAppLogin:$,skip_state:e}});const St=getMockAuthVerifyResponse(kt);if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(nt=window.EkaAbha)==null||nt.onAbhaSuccess(JSON.stringify({response:St}));return}onAbhaSuccess({response:St}),unMount();return}if($&&e===ABHA_V3_SKIP_STATES.ABHA_CREATE){dt({name:"navigate_to_screen",data:{destination:"create_eka_profile",reason:"abha_create_from_mobile_flow"}}),o(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!s||!i){dt({name:"authTxnId_or_minToken_not_found",data:{platform:b,type:"error",auth_txnId:s||"missing_authTxnId",auth_txnId_exists:!!s,ekaSmallToken_exists:!!i}});return}const _t=await postAuthVerifyV2({txn_id:s,token:i});if(_t.data){if(setIndividualEnv({extraHeaders:{auth:(ut=_t.data)==null?void 0:ut.tokens.sess}}),e===ABHA_V3_SKIP_STATES.ABHA_END){if(a){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(ht=window.EkaAbha)==null||ht.onAbhaSuccess(JSON.stringify({response:_t}));return}onAbhaSuccess({response:_t}),unMount();return}setIndividualEnv({extraHeaders:{auth:(gt=_t.data)==null?void 0:gt.tokens.sess}}),dt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"abha_end_with_no_oid"}}),o(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(ft=_t.data)==null?void 0:ft.tokens.sess}}),dt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"auth_verify_success"}}),o(SCREEN_NAMES.GET_ALL_PROFILES);return}}},2e3)}tt()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:c,loadingText:"Verifying...",successText:"Successfully linked mobile number with ABHA!"})},Pds2Header=({prefixIcon:e,title:s,suffixIcon:i,className:a=""})=>jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-items-center pds2-justify-between pds2-w-full pds2-p-16 pds2-sticky pds2-top-0 pds2-z-50 ${a}`,children:[e||jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("div",{className:"pds2-flex-1 Heading4Semibold pds2-text-center pds2-text-text-black",children:s}),i||jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"})]}),Pds2InputField=({PrefixComponent:e,placeholder:s,value:i,onChange:a,borderStyle:o="",borderRadius:c="pds2-rounded-16",padding:g="pds2-px-24 pds2-py-16",textColor:_="pds2-text-text-black",textStyle:b="",onKeyDown:$=()=>{},type:et="text",label:ot,isMandatory:rt,maxDate:at,error:it,autoCapitalize:st="off",autoCorrect:dt="off",disabled:j,inputMode:tt,autoFocus:_e,pattern:nt,maxLength:ut,autoComplete:ht})=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-8 pds2-w-full",children:[ot?jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-text-04",children:[ot,rt?jsxRuntimeExports.jsx("span",{className:"pds2-text-text-error Body3Semibold",children:"*"}):null]}):null,jsxRuntimeExports.jsxs("label",{className:`${g} ${c} ${o} pds2-border ${it?"pds2-border-text-error pds2-border-2":"pds2-border-border-03"} pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-w-full pds2-bg-bg-white pds2-text-text-invert`,children:[e||null,jsxRuntimeExports.jsx("input",{className:`${_} ${b} pds2-outline-none pds2-w-full pds2-bg-transparent disabled:pds2-text-text-04`,placeholder:s||"Enter Value",value:i,onChange:a,type:et,max:et==="date"&&at?at:void 0,onKeyDown:$,autoCapitalize:st,autoCorrect:dt,disabled:j,inputMode:tt,autoFocus:_e,pattern:nt,maxLength:ut,required:rt,autoComplete:ht})]})]}),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{}}ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,ABHA_AUTH_FLOW_METHOD.MOBILE,ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER;const CustomCheckBox=({id:e,label:s,onCheckboxChange:i,openInfoDialog:a,className:o="",isCheckboxChecked:c=!1,isErrored:g=!1})=>jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-items-center pds2-space-x-8 ${o} ${g?"pds2-text-text-error":"pds2-text-text-03"}`,children:[jsxRuntimeExports.jsxs("label",{htmlFor:e,className:"Body2Regular pds2-flex pds2-items-center pds2-space-x-8",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:c,onChange:_=>i(_.target.checked),id:e,className:"pds2-hidden"}),c?jsxRuntimeExports.jsx(CheckSquareSolidIcon,{className:"pds2-w-14 pds2-h-14 pds2-text-icon-brand"}):jsxRuntimeExports.jsx(SquareRegularIcon,{className:"pds2-w-14 pds2-h-14"}),jsxRuntimeExports.jsx("span",{children:s})]}),a&&jsxRuntimeExports.jsx("button",{onClick:a,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(CircleInfoSolidIcon,{className:"pds2-w-14 pds2-h-14 pds2-text-text-04"})})]});async function postRegisterAadhaarResendOtp({txn_id:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({txn_id:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/aadhaar/resend`,a)).json()}catch{}return{}}async function postRegisterAadhaarVerify({txn_id:e,mobile:s,otp:i}){const a=new Headers;a.append("Content-Type","application/json");const o=JSON.stringify({txn_id:e,mobile:s,otp:i}),c={method:"POST",headers:a,body:o,redirect:"follow",credentials:"include"};try{const g=GET_NDHM_HOST();return await(await fetchWrapper(`${g}/abdm/na/v1/registration/aadhaar/verify`,c)).json()}catch{}return{}}const AbhaOtpAndMobileScreen=()=>{const e=useAuthAbhaStore(Rt=>Rt.setAbhaAddressList),s=useAuthAbhaStore(Rt=>Rt.setScreen),i=useAuthAbhaStore(Rt=>Rt.txnId),a=useAuthAbhaStore(Rt=>Rt.orgIcon),o=useAuthAbhaStore(Rt=>Rt.setTxnId),c=useAuthAbhaStore(Rt=>Rt.aadhaarOtpSentToHint),g=useAuthAbhaStore(Rt=>Rt.setAadhaarVerificationSkipStateStatus),_=useAuthAbhaStore(Rt=>Rt.setEkaSmallToken),b=useAuthAbhaStore(Rt=>Rt.setOid),$=useAuthAbhaStore(Rt=>Rt.clearAbhaAuthStore),et=useAuthAbhaStore(Rt=>Rt.setBottomsheetErrorInfo),ot=useAuthAbhaStore(Rt=>Rt.goBackLoginScreen),[rt,at]=reactExports.useState(""),[it,st]=reactExports.useState(!1),[dt,j]=reactExports.useState(""),[tt,_e]=reactExports.useState(null),[nt,ut]=reactExports.useState(null),[ht,gt]=reactExports.useState(!0),[ft,_t]=reactExports.useState(!0),[At,kt]=reactExports.useState(LOADING_STATE.IDLE),St=useAuthAbhaStore(Rt=>Rt.setSelectedAbhaAddress),Ct=useAuthAbhaStore(Rt=>Rt.initAbhaAppMobileNumber),Ot=useAuthAbhaStore(Rt=>Rt.setEkaProfileInfo),xt=useAuthAbhaStore(Rt=>Rt.clientId),pt=useAuthAbhaStore(Rt=>Rt.isEkaAppLogin),vt=useAuthAbhaStore(Rt=>Rt.isNewLoginOrCreateFlow),lt=GET_EXTRA_HEADERS(),ct=useAuthAbhaStore(Rt=>Rt.abhaAuthFlowMethod),yt=({name:Rt,data:It={}})=>{var Vt,Gt;const Pt={...{login_platform:xt,is_eka_app_login:pt?"true":"false",is_new_login_or_create_flow:vt?"true":"false",txn_id:i||"missing txnId",oid:lt!=null&<["X-User-ID"]?"true":"false",access_token:lt!=null&<.auth?"true":"false",flow:ct??""},...It};handleSendEvent({eventName:Rt,eventData:Pt}),(Gt=(Vt=window.curio)==null?void 0:Vt.pushToMixpanel)==null||Gt.call(Vt,Rt,Pt)};reactExports.useEffect(()=>{Ct&&j(Ct)},[Ct]);const mt=({otp:Rt})=>{yt({name:"abha_aadhaar_otp_enter_clicks",data:{page_view:"aadhaar_verification",platform:xt,otp_entered:!0}}),at(Rt)},wt=({mobileNumber:Rt})=>{nt||_e(null),j(Rt),yt({name:"abha_aadhaar_mobile_otp_enter",data:{page_view:"aadhaar_verification",platform:xt}})},Tt=async()=>{if(!i){yt({name:"aadhaar_otp_resend_clicked_no_txnId",data:{platform:xt,txn_id:i||"missing_txnId",txn_id_exists:!!i}});return}const{txn_id:Rt,error:It,action:Ft}=await postRegisterAadhaarResendOtp({txn_id:i});if(!Rt){yt({name:"aadhaar_otp_resend_failed",data:{platform:xt,reason:It||"no_txn_id",reason_exists:!!It}}),_e(It||"Something went wrong, please try again"),Ft&&et(Ft);return}yt({name:"aadhaar_otp_resend_success",data:{platform:xt,txn_id:Rt}}),o(Rt)},bt=async()=>{if(!i){yt({name:"aadhaar_otp_verification_no_txnId",data:{platform:xt,type:"verify",txn_id:i||"missing_txnId",txn_id_exists:!!i}});return}yt({name:"abha_aadhaar_otp_verify_submitted",data:{platform:xt,type:"verify"}}),kt(LOADING_STATE.LOADING);const{txn_id:Rt,skip_state:It,profile:Ft,eka:Pt,error:Vt,abha_profiles:Gt,source_error:$t,action:Bt}=await postRegisterAadhaarVerify({otp:rt,mobile:dt,txn_id:i});if(!Rt||!It){yt({name:"aadhaar_otp_verification_failed",data:{platform:xt,reason:Vt||"missing_txn_id_or_skip_state",txn_id_exists:!!Rt,skip_state_exists:!!It}}),kt(LOADING_STATE.REJECTED),ut($t??null),_e(Vt||"Something went wrong, please try again"),Bt&&et(Bt);return}yt({name:"aadhaar_otp_verification_success",data:{platform:xt,skip_state:It,oid:Pt==null?void 0:Pt.oid}}),kt(LOADING_STATE.RESOLVED),g(It),Pt!=null&&Pt.min_token&&_(Pt.min_token),Ft&&Ft.abha_address&&St(Ft.abha_address),Pt!=null&&Pt.oid&&b(Pt.oid),Ft&&Ot({date_of_birth:`${Ft.year_of_birth}-${String(Ft.month_of_birth).padStart(2,"0")}-${String(Ft.day_of_birth).padStart(2,"0")}`,firstname:Ft.first_name,lastname:Ft.last_name,pincode:Ft.pincode,gender:Ft.gender,name:Ft.first_name+" "+Ft.last_name,mobile:Ft.mobile,oid:Pt==null?void 0:Pt.oid,abha_address:Ft.abha_address,abha_number:Ft.abha_number}),yt({name:"abha_aadhaar_otp_verification_success",data:{platform:xt,skip_state:It,oid:Pt==null?void 0:Pt.oid}}),Gt&&e(Gt),s(SCREEN_NAMES.AADHAAR_VERIFICATION_STATUS)},jt=()=>{s(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const Rt=useAuthAbhaStore.getState().isEkaAppLogin,It=xt;$(),useAuthAbhaStore.setState({clientId:It}),useAuthAbhaStore.setState({isEkaAppLogin:Rt})},Lt=it&&dt.length===10&&ht&&ft;return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(AbhaHeader,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:ot,children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),title:"Create ABHA",suffixIcon:a?jsxRuntimeExports.jsx("img",{src:a,className:"pds2-w-20 pds2-h-20"}):jsxRuntimeExports.jsx(EkaIcon,{className:"pds2-w-20 pds2-h-20"}),className:"pds2-border-b-1 pds2-border-bg-seperator-dark"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-pb-16 pds2-space-y-12 pds2-overflow-y-auto pds2-flex-1 pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:c||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:mt,onResendOtpClick:Tt,setIsValid:st,error:nt?tt:null,setError:_e}),jsxRuntimeExports.jsx(EnterMobileNumberCard,{mobileNumber:dt,onMobileNumberChange:wt,isOtpValid:it,error:nt?null:tt,onKeyDown:({key:Rt})=>{Rt==="Enter"&&bt()}}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-8",children:jsxRuntimeExports.jsx(CustomCheckBox,{id:"health-locker",label:"Allow Eka Care to create ABHA locker and link health data",isCheckboxChecked:ht,onCheckboxChange:Rt=>{gt(Rt)}})})]}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full pds2-border pds2-border-border-brand-02",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!Lt||At===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:bt,isLoading:At===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:jt})]})},EnterMobileNumberCard=({mobileNumber:e,onMobileNumberChange:s,isOtpValid:i,onKeyDown:a,error:o})=>{const c=reactExports.useRef(null);reactExports.useEffect(()=>{c.current&&i&&c.current.focus()},[i]);const g=useAuthAbhaStore($=>$.abhaAuthFlowMethod),_=useAuthAbhaStore($=>$.initAbhaAppMobileNumber),b=g===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!_;return _&&(e=_),jsxRuntimeExports.jsxs(CustomCardLayout,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-space-x-16 pds2-w-full",children:[jsxRuntimeExports.jsxs("div",{className:"Body1Regular pds2-text-text-01 pds2-flex-1",children:["Enter your mobile number to link your ABHA"," ",jsxRuntimeExports.jsx("sup",{className:"pds2-text-text-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx(PhoneSolidIcon,{className:"pds2-w-48 pds2-h-48 pds2-text-icon-success-02 pds2-p-6"})]}),jsxRuntimeExports.jsxs("label",{className:`pds2-relative pds2-border pds2-rounded-12 ${o?"pds2-border-border-error focus-within:pds2-border-border-error ":"pds2-border-border-03 focus-within:pds2-border-border-brand-01 "}`,children:[jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-absolute pds2-left-16 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-text-text-01",children:"+91 -"}),jsxRuntimeExports.jsx("input",{ref:c,placeholder:"Mobile Number",type:"tel",autoComplete:"tel-national",value:e,disabled:b,onPaste:$=>{$.preventDefault();const et=$.clipboardData.getData("text").replace(/[^0-9]/g,"");s({mobileNumber:et.slice(-10)})},onChange:$=>{if($.target.value.length>10)return;const et=$.target.value.replace(/[^0-9]/g,"");s({mobileNumber:et.slice(-10)})},maxLength:10,className:"Body1Regular pds2-w-full pds2-pl-60 pds2-pr-12 pds2-py-12 pds2-rounded-12 pds2-outline-none",onKeyDown:a})]}),o&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-text-error",children:o}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-space-x-8 pds2-text-text-03"})]})},CustomCardLayout=({children:e,className:s="pds2-space-y-12"})=>jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-bg-white ${s}`,children:e});async function postAbdmRegisterMobileResendOtp({txn_id:e}){const s=new Headers;s.append("Content-Type","application/json");const i={method:"POST",headers:s,body:JSON.stringify({txn_id:e}),redirect:"follow",credentials:"include"};try{const a=GET_NDHM_HOST();return await(await fetchWrapper(`${a}/abdm/na/v1/registration/mobile/resend`,i)).json()}catch{}return{}}async function postRegisterAadhaarMobileResendOtp({txn_id:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({txn_id:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/aadhaar/mobile/resend`,a)).json()}catch{}return{}}async function postAbdmRegisterMobileVerify({txn_id:e,otp:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,otp:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/mobile/verify`,o)).json()}catch{}return{}}async function postRegisterAadhaarMobileVerify({txn_id:e,otp:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({txn_id:e,otp:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/aadhaar/mobile/verify`,o)).json()}catch{}return{}}const AbhaPhoneNumberVerificationScreen=()=>{const e=useAuthAbhaStore(pt=>pt.txnId),s=useAuthAbhaStore(pt=>pt.clearAbhaAuthStore),i=useAuthAbhaStore(pt=>pt.setBottomsheetErrorInfo),a=useAuthAbhaStore(pt=>pt.setEkaSmallToken),o=useAuthAbhaStore(pt=>pt.setOid),c=useAuthAbhaStore(pt=>pt.setAadhaarVerificationSkipStateStatus),g=useAuthAbhaStore(pt=>pt.setSelectedAbhaAddress),_=useAuthAbhaStore(pt=>pt.setAbhaAddressList),b=useAuthAbhaStore(pt=>pt.setScreen),$=useAuthAbhaStore(pt=>pt.abhaAuthFlowMethod),[et,ot]=reactExports.useState(""),[rt,at]=reactExports.useState(!1),[it,st]=reactExports.useState(""),[dt,j]=reactExports.useState(LOADING_STATE.IDLE),tt=useAuthAbhaStore(pt=>pt.setTxnId),_e=useAuthAbhaStore(pt=>pt.setEkaProfileInfo),nt=useAuthAbhaStore(pt=>pt.clientId),ut=useAuthAbhaStore(pt=>pt.selectedAbhaFlow),ht=useAuthAbhaStore(pt=>pt.isNewLoginOrCreateFlow),gt=useAuthAbhaStore(pt=>pt.isEkaAppLogin),ft=GET_EXTRA_HEADERS(),[_t,At]=reactExports.useState(!1);console.log("selectedAbhaFlow is : ",ut);const kt=({name:pt,data:vt={}})=>{var yt,mt;const ct={...{login_platform:nt,is_eka_app_login:gt?"true":"false",is_new_login_or_create_flow:ht?"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:$??""},...vt};handleSendEvent({eventName:pt,eventData:ct}),(mt=(yt=window.curio)==null?void 0:yt.pushToMixpanel)==null||mt.call(yt,pt,ct)};reactExports.useEffect(()=>{kt({name:"page_view",data:{page_view:"abha_mobile_otp_verify",platform:nt}})},[]);const St=({otp:pt})=>{ot(pt),kt({name:"abha_mobile_otp_completion",data:{platform:nt,type:"verify",otp_entered:!0}}),Ot(pt)},Ct=async()=>{if(!e){kt({name:"abha_mobile_otp_resend_clicked_no_txnId",data:{type:"resend",platform:nt,txn_id:"missing_txnId",txn_id_exists:!1}});return}kt({name:"abha_mobile_otp_verify_clicks",data:{type:"resend",platform:nt}}),console.log("selectedMethod",$);let pt;ut==="mobile"?(kt({name:"abha_mobile_otp_resend_initiated",data:{platform:nt,type:"verify",flow_type:ut}}),console.log("selectedFlow is mobile, so triggering mobile resend otp api",ut),pt=await postAbdmRegisterMobileResendOtp({txn_id:e})):(kt({name:"aadhaar_mobile_otp_resend_initiated",data:{platform:nt,type:"verify",flow_type:ut}}),console.log("selectedFlow is aadhaar, so triggering aadhaar resend otp api",ut),pt=await postRegisterAadhaarMobileResendOtp({txn_id:e}));const{txn_id:vt,error:lt,action:ct}=pt;if(!vt){kt({name:"abha_mobile_otp_resend_failed",data:{platform:nt,reason:lt||"no_txn_id",reason_exists:!!lt}}),st(lt||"Something went wrong, please try again"),ct&&i(ct);return}vt&&tt(vt),kt({name:"abha_mobile_otp_resend_success",data:{platform:nt,txn_id:vt}})},Ot=async pt=>{if(!e){kt({name:"abha_mobile_verify_no_txnId",data:{type:"verify",platform:nt,txn_id:"missing_txnId",txn_id_exists:!1}});return}kt({name:"abha_mobile_otp_submitted",data:{type:"verify",platform:nt,txn_id:e}}),j(LOADING_STATE.LOADING);try{let vt;ut==="mobile"?(kt({name:"abha_mobile_otp_verification_started",data:{platform:nt,flow_type:ut}}),vt=await postAbdmRegisterMobileVerify({otp:pt,txn_id:e})):(kt({name:"aadhaar_otp_verification_started",data:{platform:nt,flow_type:ut}}),vt=await postRegisterAadhaarMobileVerify({otp:pt,txn_id:e}));const{txn_id:lt,skip_state:ct,eka:yt,profile:mt,error:wt,action:Tt,abha_profiles:bt}=vt;if(!lt||!ct){kt({name:"abha_mobile_otp_verification_failed",data:{platform:nt,reason:wt||"missing_txn_id_or_skip_state",txn_id_exists:!!lt,skip_state_exists:!!ct}}),j(LOADING_STATE.REJECTED),st(wt||"Something went wrong, please try again"),Tt&&i(Tt);return}if(j(LOADING_STATE.RESOLVED),c(ct),yt!=null&&yt.min_token&&a(yt.min_token),yt!=null&&yt.oid&&o(yt.oid),mt&&mt.abha_address&&g(mt.abha_address),mt&&_e({date_of_birth:`${mt.year_of_birth}-${String(mt.month_of_birth).padStart(2,"0")}-${String(mt.day_of_birth).padStart(2,"0")}`,firstname:mt.first_name,lastname:mt.last_name,pincode:mt.pincode,gender:mt.gender,oid:yt==null?void 0:yt.oid,abha_address:mt==null?void 0:mt.abha_address,abha_number:mt==null?void 0:mt.abha_number,middlename:mt==null?void 0:mt.middle_name}),console.log("remove oid from set indvidual env"),kt({name:"abha_mobile_otp_verification_success",data:{platform:nt,skip_state:ct}}),bt!=null&&bt.length){_(bt),b(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}b(SCREEN_NAMES.ABHA_MOBILE_LINKING_STATUS)}catch{kt({name:"abha_mobile_otp_verification_exception",data:{platform:nt,reason:"exception_thrown"}}),j(LOADING_STATE.REJECTED),st("Something went wrong, please try again")}},xt=()=>{b(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const pt=useAuthAbhaStore.getState().isEkaAppLogin,vt=nt;s(),useAuthAbhaStore.setState({clientId:vt}),useAuthAbhaStore.setState({isEkaAppLogin:pt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-bg-white",children:[jsxRuntimeExports.jsx(AbhaHeader,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>At(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),title:"Phone Number Verification",className:"pds2-border-b-1 pds2-border-bg-seperator-dark"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-bg-01",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:"Enter OTP received through ABDM to verify mobile number",onOtpCompletion:St,onResendOtpClick:Ct,error:it,setIsValid:pt=>{it&&st(null),at(pt)},prefixIcon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abdm-abha-icon",className:"pds2-w-48"})})}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full pds2-border pds2-border-border-brand-02",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!rt||dt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>Ot(et),isLoading:dt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:xt}),jsxRuntimeExports.jsx(ExitPopup,{open:_t,setOpen:At})]})};async function postProfileSwitch({oid:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({oid:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${o}/v1/profile/switch`,a)).json()}catch(o){console.error("postProfileSwitchError: ",o)}return{}}const usePostProfileSwitch=()=>useMutation({mutationFn:({oid:e,token:s})=>postProfileSwitch({oid:e}),onSuccess:e=>{var s;if(e){const{skip_state:i,method:a,sess:o,refresh:c,profile:g,txn_id:_,error:b}=e,$={skip_state:i,method:a,data:{tokens:{sess:o,refresh:c},profile:g},txn_id:_,...b?{error:{code:b.code,message:b.message}}:null};if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(s=window.EkaAbha)==null||s.onAbhaSuccess(JSON.stringify({response:$}));return}onAbhaSuccess({response:$}),unMount();return}}});async function postAbdmRegisterMobileCreatePhr({abha_address:e,address:s,first_name:i,last_name:a,day_of_birth:o,month_of_birth:c,year_of_birth:g,gender:_,middle_name:b,pincode:$,txn_id:et}){const ot=new Headers;ot.append("Content-Type","application/json");const rt=JSON.stringify({abha_address:e,profile:{address:s,day_of_birth:o,first_name:i,gender:_,last_name:a,middle_name:b,month_of_birth:c,pincode:$,year_of_birth:g},txn_id:et}),at={method:"POST",headers:ot,body:rt,redirect:"follow",credentials:"include"};try{const it=GET_NDHM_HOST();return await(await fetchWrapper(`${it}/abdm/na/v1/registration/mobile/create-phr`,at)).json()}catch(it){console.error("postAbdmRegisterMobileCreatePhr error =>",it)}return{}}const usePostRegisterMobileCreatePhr=()=>{const e=useAuthAbhaStore(s=>s.setSelectedAbhaAddress);return useMutation({mutationFn:s=>postAbdmRegisterMobileCreatePhr(s),onSuccess(s){s.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],s.profile),e(s.profile.abha_address))}})};async function getAbdmRegisterSuggest({txn_id:e,fn:s,mn:i,ln:a,dob:o}){const c=new Headers;c.append("Content-Type","application/json");const g={method:"GET",headers:c,redirect:"follow",credentials:"include"};try{const _=GET_NDHM_HOST();return await(await fetchWrapper(`${_}/abdm/na/v1/registration/suggest?transactionId=${e}&fn=${s||""}&mn=${i||""}&ln=${a||""}&dob=${o||""}`,g)).json()}catch(_){console.error("postAbdmLoginVerify error =>",_)}return{}}async function postRegisterAadhaarCreatePhr({abha_address:e,txn_id:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({abha_address:e,txn_id:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/aadhaar/create-phr`,o)).json()}catch(c){console.error("postRegisterAadhaarCreatePhr ==>",c)}return{}}async function postAbdmProfileEkaLinkPhr({abha_address:e,oid:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({abha_address:e,oid:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/v1/profile/eka/link-phr`,o)).json()}catch(c){console.error("postAbdmProfileLinkPhr ==>",c)}return{}}async function postAbdmProfileEka({abha_address:e,address:s,first_name:i,last_name:a,day_of_birth:o,month_of_birth:c,year_of_birth:g,gender:_,middle_name:b,pincode:$}){const et=new Headers;et.append("Content-Type","application/json");const ot=JSON.stringify({abha_address:e,profile:{address:s,day_of_birth:o,first_name:i,gender:_,last_name:a,middle_name:b,month_of_birth:c,pincode:$,year_of_birth:g}}),rt={method:"POST",headers:et,body:ot,redirect:"follow",credentials:"include"};try{const at=GET_NDHM_HOST();return await(await fetchWrapper(`${at}/abdm/v1/profile/eka`,rt)).json()}catch(at){console.error("postAbdmProfileEka error =>",at)}return{}}async function postAbdmRegisterPhrCheck({abha_address:e}){const s=new Headers;s.append("Content-Type","application/json");const i=JSON.stringify({abha_address:e}),a={method:"POST",headers:s,body:i,redirect:"follow",credentials:"include"};try{const o=GET_NDHM_HOST();return await(await fetchWrapper(`${o}/abdm/na/v1/registration/phr/check`,a)).json()}catch(o){console.error("postAbdmRegisterPhrCheck ==>",o)}return{}}async function postAbdmRegisterAbhaNumberCreatePhr({abha_address:e,txn_id:s}){const i=new Headers;i.append("Content-Type","application/json");const a=JSON.stringify({abha_address:e,txn_id:s}),o={method:"POST",headers:i,body:a,redirect:"follow",credentials:"include"};try{const c=GET_NDHM_HOST();return await(await fetchWrapper(`${c}/abdm/na/v1/registration/abha-number/create-phr`,o)).json()}catch(c){console.error("postAbdmRegisterAbhaNumberCreatePhr ==>",c)}return{}}const AbhaAddressCard=({address:e,setAddress:s,suggestions:i})=>jsxRuntimeExports.jsxs(CustomCardLayout,{className:"pds2-space-y-24",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-12",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cmgkgn6m500010td37a5wbbl3.webp",alt:"at-the-rate-icon",className:"pds2-w-48"}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Body1Regular",children:"Choose your ABHA Address"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-secondary BodyFootnote",children:"This ABHA Address will be used as your identity for ABHA Services."})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-2 pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsxs("label",{htmlFor:"abha-address",className:"pds2-text-text-brand BodyInputLabel",children:["ABHA Address",jsxRuntimeExports.jsx("sup",{className:"pds2-text-text-error Body3Semibold",children:" *"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-text-text-01 Body1Semibold",children:[jsxRuntimeExports.jsx("input",{value:e,className:"pds2-py-4 pds2-bg-transparent pds2-border-b-1 pds2-border-b-text-brand pds2-w-full pds2-pr-16 pds2-outline-none",id:"abha-address",onChange:a=>{const o=a.target.value.replace(/[^a-zA-Z0-9]/g,"");o.length<=18&&s(o)},autoCapitalize:"off",autoCorrect:"off"}),jsxRuntimeExports.jsx("span",{className:"pds2-absolute pds2-right-0 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-pointer-events-none",children:"@sbx"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-py-6 pds2-text-text-secondary BodyInputLabel",children:"8-18 characters alphabets and numbers only"})]}),i&&i.length>0?jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-04 Body1Semibold",children:"Suggestions:"}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-overflow-x-auto pds2-gap-6 pds2-py-4 pds2-px-4 -pds2-ml-4",children:i.map(a=>jsxRuntimeExports.jsxs("label",{className:`
|
|
134
51
|
pds2-flex pds2-items-center pds2-cursor-pointer pds2-px-12 pds2-py-8
|
|
135
52
|
pds2-border-1 pds2-rounded-12 pds2-bg-bg-01
|
|
136
|
-
${a
|
|
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"}
|
|
137
54
|
active:pds2-bg-bg-brand-02 hover:pds2-bg-bg-hover-01
|
|
138
55
|
pds2-transition-colors pds2-duration-200
|
|
139
|
-
`,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"abha-suggestion",value:_e,checked:a===_e,onClick:()=>_(a===_e?"":_e),className:"focus:pds2-outline-none pds2-appearance-none"}),jsxRuntimeExports.jsxs("span",{children:[_e,"@sbx"]})]},_e))})]}):null]}),CreateAbhaAddressScreen=()=>{const[a,_]=reactExports.useState(""),$=useAuthAbhaStore(wt=>wt.txnId),_e=useAuthAbhaStore(wt=>wt.setSelectedAbhaAddress),et=useAuthAbhaStore(wt=>wt.goBackLoginScreen),tt=useAuthAbhaStore(wt=>wt.abhaAuthFlowMethod),[rt,nt]=reactExports.useState(null),it=useAuthAbhaStore(wt=>wt.authTxnId),[at,st]=reactExports.useState(null),{mutateAsync:ut}=usePostAuthVerifyV2(),ot=useAuthAbhaStore(wt=>wt.setBottomsheetErrorInfo),pt=useAuthAbhaStore(wt=>wt.clearAbhaAuthStore),[ht,dt]=reactExports.useState([]),[gt,lt]=reactExports.useState(!1),{mutateAsync:ft}=usePostRegisterMobileCreatePhr(),ct=useAuthAbhaStore(wt=>wt.ekaProfileInfo),mt=useAuthAbhaStore(wt=>wt.registrationType),{mutateAsync:yt}=usePostProfileSwitch(),Et=GET_EXTRA_HEADERS(),St=useAuthAbhaStore(wt=>wt.isEkaAppLogin),At=useAuthAbhaStore(wt=>wt.clientId),Mt=["M","F","O","U"],Nt=useAuthAbhaStore(wt=>wt.isNewLoginOrCreateFlow),kt=useAuthAbhaStore(wt=>wt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),Pt=({name:wt,data:_t={}})=>{var xt,Ct;const vt={...{login_platform:At,is_eka_app_login:St?"true":"false",is_new_login_or_create_flow:Nt?"true":"false",txn_id:$||"missing txnId",oid:Et!=null&&Et["X-User-ID"]?"true":"false",access_token:Et!=null&&Et.auth?"true":"false",flow:kt==null?void 0:kt.toString()},..._t};handleSendEvent({eventName:wt,eventData:vt}),(Ct=(xt=window.curio)==null?void 0:xt.pushToMixpanel)==null||Ct.call(xt,wt,vt)};reactExports.useEffect(()=>{Pt({name:"page_view",data:{page_view:"choose_abha_address_screen",platform:At}})},[At]),reactExports.useEffect(()=>{async function wt(){if($)try{const{suggestions:_t,error:bt}=await getAbdmRegisterSuggest({txn_id:$,fn:ct==null?void 0:ct.firstname,ln:ct==null?void 0:ct.lastname,dob:ct==null?void 0:ct.date_of_birth});if(bt){st(bt||"Something went wrong. Please try again.");return}_t&&(dt(_t),_t.length>0&&_(_t[0]))}catch{}}wt()},[]);const Dt=async()=>{var vt,xt,Ct,Tt,It,Rt,Lt,Ht,jt,Qt,$t,Bt,Vt,Kt,qt;if(!a){Pt({name:"create_abha_address_click_no_selection",data:{platform:At,type:"create",reason:"no_abha_address_selected",abha_address_selected:!1}});return}if(Pt({name:"create_abha_address_clicks",data:{platform:At,type:"create"}}),nt(LOADING_STATE.LOADING),mt===REGISTRATION_TYPE.CREATE){if(!$||!ct)return;const[Yt,Gt,Xt]=ct.date_of_birth?(vt=ct==null?void 0:ct.date_of_birth)==null?void 0:vt.split("-"):["","",""];if(tt===ABHA_AUTH_FLOW_METHOD.MOBILE){const ir={abha_address:a,day_of_birth:parseInt(Xt),first_name:ct.firstname,gender:ct.gender,last_name:ct.lastname,month_of_birth:parseInt(Gt),pincode:ct.pincode,year_of_birth:parseInt(Yt),txn_id:$};Pt({name:"create_abha_process_started",data:{method:"mobile",abha_address:a,platform:At,pincode_sent:ir==null?void 0:ir.pincode,date_of_birth:(ct==null?void 0:ct.date_of_birth)||"missing date of birth",day_of_birth:(ir==null?void 0:ir.day_of_birth)||"missing day of birth",month_of_birth:(ir==null?void 0:ir.month_of_birth)||"missing month of birth",year_of_birth:(ir==null?void 0:ir.year_of_birth)||"missing year of birth"}});const{error:rr,eka:Ut,profile:zt,action:sr}=await ft(ir);if(sr){Pt({name:"create_abha_process_error_action",data:{method:"mobile",platform:At,error_message:((xt=sr==null?void 0:sr.cta)==null?void 0:xt.title)||"unknown_error_message",error_message_exists:!!((Ct=sr==null?void 0:sr.cta)!=null&&Ct.title)}}),ot(sr);return}if(rr||!Ut){Pt({name:"create_abha_process_failed",data:{method:"mobile",platform:At,error_message:rr||"unknown_error",error_message_exists:!!rr,pincode_received:(zt==null?void 0:zt.pincode)||"missing_pincode_received",pincode_received_exists:!!(zt!=null&&zt.pincode),pincode_sent:(ct==null?void 0:ct.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(ct!=null&&ct.pincode)}}),nt(LOADING_STATE.REJECTED),st(rr||"Something went wrong. Please try again.");return}if(Pt({name:"abha_address_created",data:{type:"create_abha",platform:At}}),Ut.oid&&St){nt(LOADING_STATE.RESOLVED),Pt({name:"abha_create_process_started",data:{method:tt.toLowerCase(),is_eka_app_login:St?"true":"false",platform:At}});const lr=Mt.includes(zt==null?void 0:zt.gender)?zt==null?void 0:zt.gender:void 0,vr={oid:(Ut==null?void 0:Ut.oid)||"",fln:(zt==null?void 0:zt.first_name)+" "+(zt==null?void 0:zt.last_name),dob:`${zt==null?void 0:zt.year_of_birth}-${String(zt==null?void 0:zt.month_of_birth).padStart(2,"0")}-${String(zt==null?void 0:zt.day_of_birth).padStart(2,"0")}`,gen:lr,mobile:zt==null?void 0:zt.mobile,at:"",fn:(zt==null?void 0:zt.first_name)||"",mn:(zt==null?void 0:zt.middle_name)||"",ln:(zt==null?void 0:zt.last_name)||"","health-ids":zt!=null&&zt.abha_address?[zt.abha_address]:void 0,abha_number:(zt==null?void 0:zt.abha_number)||""},Wt=getMockAuthVerifyResponse(vr);if(Pt({name:"abha_create_process_success",data:{method:tt.toLowerCase(),is_eka_app_login:St?"true":"false",platform:At}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Tt=window.EkaAbha)==null||Tt.onAbhaSuccess(JSON.stringify({response:Wt}));return}onAbhaSuccess({response:Wt}),unMount();return}}else{Pt({name:"create_abha_process_started",data:{method:tt==null?void 0:tt.toLowerCase(),platform:At}});const{error:ir,eka:rr,profile:Ut,action:zt}=await postRegisterAadhaarCreatePhr({abha_address:a,txn_id:$});if(zt){Pt({name:"create_abha_process_error_action",data:{method:(tt==null?void 0:tt.toLowerCase())||"unknown_method",platform:At,error_message:((It=zt==null?void 0:zt.cta)==null?void 0:It.title)||"unknown_error_message",error_message_exists:!!((Rt=zt==null?void 0:zt.cta)!=null&&Rt.title)}}),ot(zt);return}if(ir||!rr){Pt({name:"create_abha_process_failed",data:{method:(tt==null?void 0:tt.toLowerCase())||"unknown_method",platform:At,error_message:ir||"unknown_error",error_message_exists:!!ir,pincode_received:(Ut==null?void 0:Ut.pincode)||"missing_pincode_received",pincode_received_exists:!!(Ut!=null&&Ut.pincode),pincode_sent:(ct==null?void 0:ct.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(ct!=null&&ct.pincode)}}),nt(LOADING_STATE.REJECTED),st(ir||"Something went wrong. Please try again.");return}if(Pt({name:"abha_address_created",data:{type:"create_abha",platform:At}}),rr.oid&&St){nt(LOADING_STATE.RESOLVED),Pt({name:"abha_create_process_started",data:{method:tt==null?void 0:tt.toLowerCase(),is_eka_app_login:St?"true":"false",platform:At,page_view:"choose_abha_address"}});const sr=Mt.includes(Ut==null?void 0:Ut.gender)?Ut==null?void 0:Ut.gender:void 0,lr={oid:(rr==null?void 0:rr.oid)||"",fln:(Ut==null?void 0:Ut.first_name)+" "+(Ut==null?void 0:Ut.last_name),dob:`${Ut==null?void 0:Ut.year_of_birth}-${String(Ut==null?void 0:Ut.month_of_birth).padStart(2,"0")}-${String(Ut==null?void 0:Ut.day_of_birth).padStart(2,"0")}`,gen:sr,mobile:Ut==null?void 0:Ut.mobile,at:"",fn:(Ut==null?void 0:Ut.first_name)||"",mn:(Ut==null?void 0:Ut.middle_name)||"",ln:(Ut==null?void 0:Ut.last_name)||"","health-ids":Ut!=null&&Ut.abha_address?[Ut.abha_address]:void 0,abha_number:(Ut==null?void 0:Ut.abha_number)||""},vr=getMockAuthVerifyResponse(lr);if(Pt({name:"abha_create_process_success",data:{method:tt==null?void 0:tt.toLowerCase(),is_eka_app_login:St?"true":"false",platform:At}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Lt=window.EkaAbha)==null||Lt.onAbhaSuccess(JSON.stringify({response:vr}));return}onAbhaSuccess({response:vr}),unMount();return}}let er=ct.oid;if(ct.oid){Pt({name:"abha_create_process_link_phr_started",data:{method:tt==null?void 0:tt.toLowerCase(),is_eka_app_login:St?"true":"false",platform:At,page_view:"choose_abha_address"}});const{error:ir,action:rr,eka:Ut}=await postAbdmProfileEkaLinkPhr({abha_address:a,oid:ct.oid});if(rr){Pt({name:"abha_create_process_link_phr_failed",data:{method:(tt==null?void 0:tt.toLowerCase())||"unknown_method",platform:At,error_message:((Ht=rr==null?void 0:rr.cta)==null?void 0:Ht.title)||"unknown_error_message",error_message_exists:!!((jt=rr==null?void 0:rr.cta)!=null&&jt.title)}}),ot(rr);return}if(ir||!Ut||!Ut.oid){Pt({name:"abha_create_process_link_phr_failed",data:{method:(tt==null?void 0:tt.toLowerCase())||"unknown_method",platform:At,error_message:ir||"unknown_error",error_message_exists:!!ir,eka:Ut||"missing_eka",eka_oid:(Ut==null?void 0:Ut.oid)||"missing_oid",eka_oid_exists:!!(Ut!=null&&Ut.oid)}}),nt(LOADING_STATE.REJECTED),st(ir||"Something went wrong. Please try again.");return}Pt({name:"abha_create_process_link_phr_success",data:{method:tt==null?void 0:tt.toLowerCase(),is_eka_app_login:St?"true":"false",platform:At,page_view:"choose_abha_address"}})}else{Pt({name:"abha_create_process_eka_started",data:{method:tt==null?void 0:tt.toLowerCase(),is_eka_app_login:St?"true":"false",platform:At}});const ir={abha_address:a,day_of_birth:parseInt(Xt),first_name:ct.firstname,gender:ct.gender,last_name:ct.lastname||"",month_of_birth:parseInt(Gt),pincode:ct.pincode,year_of_birth:parseInt(Yt)},{error:rr,eka:Ut,action:zt}=await postAbdmProfileEka({...ir});if(zt){Pt({name:"abha_create_process_eka_failed",data:{method:(tt==null?void 0:tt.toLowerCase())||"unknown_method",platform:At,error_message:((Qt=zt==null?void 0:zt.cta)==null?void 0:Qt.title)||"unknown_error_message",error_message_exists:!!(($t=zt==null?void 0:zt.cta)!=null&&$t.title)}}),ot(zt);return}if(rr||!Ut||!Ut.oid){Pt({name:"abha_create_process_eka_failed",data:{method:(tt==null?void 0:tt.toLowerCase())||"unknown_method",is_eka_app_login:St?"true":"false",platform:At,error_message:rr||"unknown_error",error_message_exists:!!rr,eka_exists:!!Ut,eka_oid:(Ut==null?void 0:Ut.oid)||"missing_oid",eka_oid_exists:!!(Ut!=null&&Ut.oid),flow:kt??""}}),nt(LOADING_STATE.REJECTED),st(rr||"Something went wrong. Please try again.");return}er=Ut.oid,Pt({name:"abha_create_process_eka_success",data:{method:tt==null?void 0:tt.toLowerCase(),is_eka_app_login:St?"true":"false",platform:At,oid:Ut==null?void 0:Ut.oid}})}if(!er){Pt({name:"abha_create_process_oid_switch_failed",data:{method:(tt==null?void 0:tt.toLowerCase())||"unknown_method",is_eka_app_login:St?"true":"false",platform:At,oid:er||"missing_oid",oid_exists:!!er}});return}Pt({name:"abha_create_process_switch_started",data:{method:tt==null?void 0:tt.toLowerCase(),is_eka_app_login:St?"true":"false",platform:At,oid:er}});const dr=await yt({oid:er});if(dr.error){Pt({name:"abha_create_process_switch_failed",data:{method:(tt==null?void 0:tt.toLowerCase())||"unknown_method",is_eka_app_login:St?"true":"false",platform:At,oid:er||"missing_oid",oid_exists:!!er,error_message:((Bt=dr.error)==null?void 0:Bt.message)||"unknown_error",error_message_exists:!!((Vt=dr.error)!=null&&Vt.message)}}),nt(LOADING_STATE.REJECTED),st(((Kt=dr.error)==null?void 0:Kt.message)||"Something went wrong, please try again");return}Pt({name:"abha_create_process_switch_success",data:{method:tt==null?void 0:tt.toLowerCase(),is_eka_app_login:St?"true":"false",platform:At,oid:er}}),nt(LOADING_STATE.RESOLVED);return}_e(`${a}@sbx`);const{exists:wt,error:_t,action:bt}=await postAbdmRegisterPhrCheck({abha_address:a});if(_t){nt(LOADING_STATE.REJECTED),st(_t||"Something went wrong. Please try again.");return}if(wt){nt(LOADING_STATE.REJECTED),st("This abha address is already taken.");return}if(tt===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){if(!$)return;const{error:Yt,eka:Gt,action:Xt}=await postAbdmRegisterAbhaNumberCreatePhr({abha_address:a,txn_id:$});if(Xt){ot(Xt);return}if(Yt||!Gt){nt(LOADING_STATE.REJECTED),st(Yt||"Something went wrong. Please try again.");return}if(Et&&Et.auth&&St){nt(LOADING_STATE.RESOLVED),onAbhaSuccess({response:""}),unMount();return}(!Gt.min_token||!it)&&(nt(LOADING_STATE.REJECTED),st(Yt||"Something went wrong. Please try again."));const er=await ut({txn_id:it||"",token:Gt.min_token,...Gt.oid?{oid:Gt.oid}:null});if(!er.data){nt(LOADING_STATE.REJECTED),st(((qt=er.error)==null?void 0:qt.message)||"Something went wrong, please try again");return}nt(LOADING_STATE.RESOLVED);return}},Ot=()=>{et();const wt=useAuthAbhaStore.getState().isEkaAppLogin;pt(),useAuthAbhaStore.setState({isEkaAppLogin:wt})};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:()=>lt(!0),children:jsxRuntimeExports.jsx(n$2,{})}),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:a,setAddress:_,suggestions:ht})}),at&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-text-error pds2-text-center",children:at}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-shadow-elevation-only-top pds2-sticky pds2-bottom-0",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Create",state:a.length<8&&a.length>18||rt===LOADING_STATE.LOADING?"disabled":"enabled",onClick:Dt,isLoading:rt===LOADING_STATE.LOADING,className:"pds2-w-full"})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Ot}),jsxRuntimeExports.jsx(ExitPopup,{open:gt,setOpen:lt})]})};function Pds2SingleInputChip({title:a,isDisabled:_,isSelected:$,onSelect:_e}){const et=reactExports.useRef(null);return jsxRuntimeExports.jsx("div",{onClick:_?void 0:_e,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
|
|
140
|
-
${
|
|
56
|
+
`,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"abha-suggestion",value:a,checked:e===a,onClick:()=>s(e===a?"":a),className:"focus:pds2-outline-none pds2-appearance-none"}),jsxRuntimeExports.jsxs("span",{children:[a,"@sbx"]})]},a))})]}):null]}),CreateAbhaAddressScreen=()=>{const[e,s]=reactExports.useState(""),i=useAuthAbhaStore(xt=>xt.txnId),a=useAuthAbhaStore(xt=>xt.setSelectedAbhaAddress),o=useAuthAbhaStore(xt=>xt.goBackLoginScreen),c=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod),[g,_]=reactExports.useState(null),b=useAuthAbhaStore(xt=>xt.authTxnId),[$,et]=reactExports.useState(null),{mutateAsync:ot}=usePostAuthVerifyV2(),rt=useAuthAbhaStore(xt=>xt.setBottomsheetErrorInfo),at=useAuthAbhaStore(xt=>xt.clearAbhaAuthStore),[it,st]=reactExports.useState([]),[dt,j]=reactExports.useState(!1),{mutateAsync:tt}=usePostRegisterMobileCreatePhr(),_e=useAuthAbhaStore(xt=>xt.ekaProfileInfo),nt=useAuthAbhaStore(xt=>xt.registrationType),{mutateAsync:ut}=usePostProfileSwitch(),ht=GET_EXTRA_HEADERS(),gt=useAuthAbhaStore(xt=>xt.isEkaAppLogin),ft=useAuthAbhaStore(xt=>xt.clientId),_t=["M","F","O","U"],At=useAuthAbhaStore(xt=>xt.isNewLoginOrCreateFlow),kt=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),St=({name:xt,data:pt={}})=>{var ct,yt;const lt={...{login_platform:ft,is_eka_app_login:gt?"true":"false",is_new_login_or_create_flow:At?"true":"false",txn_id:i||"missing txnId",oid:ht!=null&&ht["X-User-ID"]?"true":"false",access_token:ht!=null&&ht.auth?"true":"false",flow:kt==null?void 0:kt.toString()},...pt};handleSendEvent({eventName:xt,eventData:lt}),(yt=(ct=window.curio)==null?void 0:ct.pushToMixpanel)==null||yt.call(ct,xt,lt)};reactExports.useEffect(()=>{St({name:"page_view",data:{page_view:"choose_abha_address_screen",platform:ft}})},[ft]),reactExports.useEffect(()=>{async function xt(){if(i)try{const{suggestions:pt,error:vt}=await getAbdmRegisterSuggest({txn_id:i,fn:_e==null?void 0:_e.firstname,ln:_e==null?void 0:_e.lastname,dob:_e==null?void 0:_e.date_of_birth});if(vt){et(vt||"Something went wrong. Please try again.");return}pt&&(st(pt),pt.length>0&&s(pt[0]))}catch{}}xt()},[]);const Ct=async()=>{var lt,ct,yt,mt,wt,Tt,bt,jt,Lt,Rt,It,Ft,Pt,Vt,Gt;if(!e){St({name:"create_abha_address_click_no_selection",data:{platform:ft,type:"create",reason:"no_abha_address_selected",abha_address_selected:!1}});return}if(St({name:"create_abha_address_clicks",data:{platform:ft,type:"create"}}),_(LOADING_STATE.LOADING),nt===REGISTRATION_TYPE.CREATE){if(!i||!_e)return;const[$t,Bt,er]=_e.date_of_birth?(lt=_e==null?void 0:_e.date_of_birth)==null?void 0:lt.split("-"):["","",""];if(c===ABHA_AUTH_FLOW_METHOD.MOBILE){const Ut={abha_address:e,day_of_birth:parseInt(er),first_name:_e.firstname,gender:_e.gender,last_name:_e.lastname,month_of_birth:parseInt(Bt),pincode:_e.pincode,year_of_birth:parseInt($t),txn_id:i};St({name:"create_abha_process_started",data:{method:"mobile",abha_address:e,platform:ft,pincode_sent:Ut==null?void 0:Ut.pincode,date_of_birth:(_e==null?void 0:_e.date_of_birth)||"missing date of birth",day_of_birth:(Ut==null?void 0:Ut.day_of_birth)||"missing day of birth",month_of_birth:(Ut==null?void 0:Ut.month_of_birth)||"missing month of birth",year_of_birth:(Ut==null?void 0:Ut.year_of_birth)||"missing year of birth"}});const{error:Qt,eka:Mt,profile:Nt,action:Xt}=await tt(Ut);if(Xt){St({name:"create_abha_process_error_action",data:{method:"mobile",platform:ft,error_message:((ct=Xt==null?void 0:Xt.cta)==null?void 0:ct.title)||"unknown_error_message",error_message_exists:!!((yt=Xt==null?void 0:Xt.cta)!=null&&yt.title)}}),rt(Xt);return}if(Qt||!Mt){St({name:"create_abha_process_failed",data:{method:"mobile",platform:ft,error_message:Qt||"unknown_error",error_message_exists:!!Qt,pincode_received:(Nt==null?void 0:Nt.pincode)||"missing_pincode_received",pincode_received_exists:!!(Nt!=null&&Nt.pincode),pincode_sent:(_e==null?void 0:_e.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(_e!=null&&_e.pincode)}}),_(LOADING_STATE.REJECTED),et(Qt||"Something went wrong. Please try again.");return}if(St({name:"abha_address_created",data:{type:"create_abha",platform:ft}}),Mt.oid&>){_(LOADING_STATE.RESOLVED),St({name:"abha_create_process_started",data:{method:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:ft}});const ir=_t.includes(Nt==null?void 0:Nt.gender)?Nt==null?void 0:Nt.gender:void 0,rr={oid:(Mt==null?void 0:Mt.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:ir,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)||""},Dt=getMockAuthVerifyResponse(rr);if(St({name:"abha_create_process_success",data:{method:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:ft}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(mt=window.EkaAbha)==null||mt.onAbhaSuccess(JSON.stringify({response:Dt}));return}onAbhaSuccess({response:Dt}),unMount();return}}else{St({name:"create_abha_process_started",data:{method:c==null?void 0:c.toLowerCase(),platform:ft}});const{error:Ut,eka:Qt,profile:Mt,action:Nt}=await postRegisterAadhaarCreatePhr({abha_address:e,txn_id:i});if(Nt){St({name:"create_abha_process_error_action",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:ft,error_message:((wt=Nt==null?void 0:Nt.cta)==null?void 0:wt.title)||"unknown_error_message",error_message_exists:!!((Tt=Nt==null?void 0:Nt.cta)!=null&&Tt.title)}}),rt(Nt);return}if(Ut||!Qt){St({name:"create_abha_process_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:ft,error_message:Ut||"unknown_error",error_message_exists:!!Ut,pincode_received:(Mt==null?void 0:Mt.pincode)||"missing_pincode_received",pincode_received_exists:!!(Mt!=null&&Mt.pincode),pincode_sent:(_e==null?void 0:_e.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(_e!=null&&_e.pincode)}}),_(LOADING_STATE.REJECTED),et(Ut||"Something went wrong. Please try again.");return}if(St({name:"abha_address_created",data:{type:"create_abha",platform:ft}}),Qt.oid&>){_(LOADING_STATE.RESOLVED),St({name:"abha_create_process_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:ft,page_view:"choose_abha_address"}});const Xt=_t.includes(Mt==null?void 0:Mt.gender)?Mt==null?void 0:Mt.gender:void 0,ir={oid:(Qt==null?void 0:Qt.oid)||"",fln:(Mt==null?void 0:Mt.first_name)+" "+(Mt==null?void 0:Mt.last_name),dob:`${Mt==null?void 0:Mt.year_of_birth}-${String(Mt==null?void 0:Mt.month_of_birth).padStart(2,"0")}-${String(Mt==null?void 0:Mt.day_of_birth).padStart(2,"0")}`,gen:Xt,mobile:Mt==null?void 0:Mt.mobile,fn:(Mt==null?void 0:Mt.first_name)||"",mn:(Mt==null?void 0:Mt.middle_name)||"",ln:(Mt==null?void 0:Mt.last_name)||"","health-ids":Mt!=null&&Mt.abha_address?[Mt.abha_address]:void 0,abha_number:(Mt==null?void 0:Mt.abha_number)||""},rr=getMockAuthVerifyResponse(ir);if(St({name:"abha_create_process_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:ft}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(bt=window.EkaAbha)==null||bt.onAbhaSuccess(JSON.stringify({response:rr}));return}onAbhaSuccess({response:rr}),unMount();return}}let Wt=_e.oid;if(_e.oid){St({name:"abha_create_process_link_phr_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:ft,page_view:"choose_abha_address"}});const{error:Ut,action:Qt,eka:Mt}=await postAbdmProfileEkaLinkPhr({abha_address:e,oid:_e.oid});if(Qt){St({name:"abha_create_process_link_phr_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:ft,error_message:((jt=Qt==null?void 0:Qt.cta)==null?void 0:jt.title)||"unknown_error_message",error_message_exists:!!((Lt=Qt==null?void 0:Qt.cta)!=null&&Lt.title)}}),rt(Qt);return}if(Ut||!Mt||!Mt.oid){St({name:"abha_create_process_link_phr_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:ft,error_message:Ut||"unknown_error",error_message_exists:!!Ut,eka:Mt||"missing_eka",eka_oid:(Mt==null?void 0:Mt.oid)||"missing_oid",eka_oid_exists:!!(Mt!=null&&Mt.oid)}}),_(LOADING_STATE.REJECTED),et(Ut||"Something went wrong. Please try again.");return}St({name:"abha_create_process_link_phr_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:ft,page_view:"choose_abha_address"}})}else{St({name:"abha_create_process_eka_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:ft}});const Ut={abha_address:e,day_of_birth:parseInt(er),first_name:_e.firstname,gender:_e.gender,last_name:_e.lastname||"",month_of_birth:parseInt(Bt),pincode:_e.pincode,year_of_birth:parseInt($t)},{error:Qt,eka:Mt,action:Nt}=await postAbdmProfileEka({...Ut});if(Nt){St({name:"abha_create_process_eka_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",platform:ft,error_message:((Rt=Nt==null?void 0:Nt.cta)==null?void 0:Rt.title)||"unknown_error_message",error_message_exists:!!((It=Nt==null?void 0:Nt.cta)!=null&&It.title)}}),rt(Nt);return}if(Qt||!Mt||!Mt.oid){St({name:"abha_create_process_eka_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:gt?"true":"false",platform:ft,error_message:Qt||"unknown_error",error_message_exists:!!Qt,eka_exists:!!Mt,eka_oid:(Mt==null?void 0:Mt.oid)||"missing_oid",eka_oid_exists:!!(Mt!=null&&Mt.oid),flow:kt??""}}),_(LOADING_STATE.REJECTED),et(Qt||"Something went wrong. Please try again.");return}Wt=Mt.oid,St({name:"abha_create_process_eka_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:ft,oid:Mt==null?void 0:Mt.oid}})}if(!Wt){St({name:"abha_create_process_oid_switch_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:gt?"true":"false",platform:ft,oid:Wt||"missing_oid",oid_exists:!!Wt}});return}St({name:"abha_create_process_switch_started",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:ft,oid:Wt}});const tr=await ut({oid:Wt});if(tr.error){St({name:"abha_create_process_switch_failed",data:{method:(c==null?void 0:c.toLowerCase())||"unknown_method",is_eka_app_login:gt?"true":"false",platform:ft,oid:Wt||"missing_oid",oid_exists:!!Wt,error_message:((Ft=tr.error)==null?void 0:Ft.message)||"unknown_error",error_message_exists:!!((Pt=tr.error)!=null&&Pt.message)}}),_(LOADING_STATE.REJECTED),et(((Vt=tr.error)==null?void 0:Vt.message)||"Something went wrong, please try again");return}St({name:"abha_create_process_switch_success",data:{method:c==null?void 0:c.toLowerCase(),is_eka_app_login:gt?"true":"false",platform:ft,oid:Wt}}),_(LOADING_STATE.RESOLVED);return}a(`${e}@sbx`);const{exists:xt,error:pt,action:vt}=await postAbdmRegisterPhrCheck({abha_address:e});if(pt){_(LOADING_STATE.REJECTED),et(pt||"Something went wrong. Please try again.");return}if(xt){_(LOADING_STATE.REJECTED),et("This abha address is already taken.");return}if(c===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){if(!i)return;const{error:$t,eka:Bt,action:er}=await postAbdmRegisterAbhaNumberCreatePhr({abha_address:e,txn_id:i});if(er){rt(er);return}if($t||!Bt){_(LOADING_STATE.REJECTED),et($t||"Something went wrong. Please try again.");return}if(ht&&ht.auth&>){_(LOADING_STATE.RESOLVED),onAbhaSuccess({response:""}),unMount();return}(!Bt.min_token||!b)&&(_(LOADING_STATE.REJECTED),et($t||"Something went wrong. Please try again."));const Wt=await ot({txn_id:b||"",token:Bt.min_token,...Bt.oid?{oid:Bt.oid}:null});if(!Wt.data){_(LOADING_STATE.REJECTED),et(((Gt=Wt.error)==null?void 0:Gt.message)||"Something went wrong, please try again");return}_(LOADING_STATE.RESOLVED);return}},Ot=()=>{o();const xt=useAuthAbhaStore.getState().isEkaAppLogin,pt=ft;at(),useAuthAbhaStore.setState({clientId:pt}),useAuthAbhaStore.setState({isEkaAppLogin:xt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Create ABHA Address",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>j(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),className:"pds2-border-b pds2-border-bg-seperator-dark pds2-bg-bg-white pds2-flex-shrink-0"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-flex-1 pds2-overflow-y-auto pds2-bg-bg-01",children:jsxRuntimeExports.jsx(AbhaAddressCard,{address:e,setAddress:s,suggestions:it})}),$&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-text-error pds2-text-center",children:$}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-shadow-elevation-only-top pds2-sticky pds2-bottom-0",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Create",state:e.length<8&&e.length>18||g===LOADING_STATE.LOADING?"disabled":"enabled",onClick:Ct,isLoading:g===LOADING_STATE.LOADING,className:"pds2-w-full"})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Ot}),jsxRuntimeExports.jsx(ExitPopup,{open:dt,setOpen:j})]})};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"}
|
|
141
58
|
focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2
|
|
142
59
|
active:pds2-bg-bg-brand-02 hover:pds2-bg-bg-hover-01
|
|
143
60
|
pds2-transition-colors pds2-duration-200
|
|
144
|
-
`,tabIndex:-1,ref:et,children:jsxRuntimeExports.jsx("p",{className:`${$?"pds2-text-text-brand Body2Semibold":"pds2-text-text-01 Body2Medium"}`,children:a})})}const CreateEkaProfileScreen=()=>{const a=useAuthAbhaStore(xt=>xt.screen),_=useAuthAbhaStore(xt=>xt.selectedAbhaAddress),$=useAuthAbhaStore(xt=>xt.setBottomsheetErrorInfo),_e=useAuthAbhaStore(xt=>xt.clearAbhaAuthStore),et=useAuthAbhaStore(xt=>xt.goBackLoginScreen),[tt,rt]=reactExports.useState(LOADING_STATE.IDLE),[nt,it]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[at,st]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[ut,ot]=reactExports.useState(null),{mutateAsync:pt}=usePostProfileSwitch(),[ht,dt]=reactExports.useState(!1),gt=useAuthAbhaStore(xt=>xt.ekaProfileInfo),lt=useAuthAbhaStore(xt=>xt.setEkaProfileInfo),ft=useAuthAbhaStore(xt=>xt.setScreen),ct=a[a.length-1],mt=useAuthAbhaStore(xt=>xt.aadhaarVerificationSkipStateStatus),yt=queryClient.getQueryData(["abdmProfilePhrResponse"]),Et=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod);reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),useAuthAbhaStore(xt=>xt.isDocAppRequest);const St=useAuthAbhaStore(xt=>xt.clientId),At=useAuthAbhaStore(xt=>xt.isEkaAppLogin),Mt=useAuthAbhaStore(xt=>xt.isNewLoginOrCreateFlow),Nt=useAuthAbhaStore(xt=>xt.txnId),kt=GET_EXTRA_HEADERS(),[Pt,Dt]=reactExports.useState(null),Ot=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod),wt=({name:xt,data:Ct={}})=>{var Rt,Lt;const It={...{login_platform:St,is_eka_app_login:At?"true":"false",is_new_login_or_create_flow:Mt?"true":"false",txn_id:Nt||"missing txnId",oid:kt!=null&&kt["X-User-ID"]?"true":"false",access_token:kt!=null&&kt.auth?"true":"false",flow:Ot??""},...Ct};handleSendEvent({eventName:xt,eventData:It}),(Lt=(Rt=window.curio)==null?void 0:Rt.pushToMixpanel)==null||Lt.call(Rt,xt,It)};reactExports.useEffect(()=>{wt({name:"page_view",data:{page_view:"create_profile_screen"}})},[St]),reactExports.useEffect(()=>{var xt;if((xt=window.EkaAbha)!=null&&xt.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var Ct,Tt;(Ct=window.EkaAbha)!=null&&Ct.changeStatusBarColor&&((Tt=window==null?void 0:window.EkaAbha)==null||Tt.changeStatusBarColor("#FFFFFF"))}},[]),reactExports.useEffect(()=>{if(yt){const{first_name:xt,last_name:Ct,gender:Tt,pincode:It,day_of_birth:Rt,month_of_birth:Lt,year_of_birth:Ht}=yt,jt=Rt===0?1:Rt,$t=`${Ht}-${String(Lt===0?1:Lt).padStart(2,"0")}-${String(jt).padStart(2,"0")}`;wt({name:"profile_data_set_from_phr_cache",data:{source:"phr_cache",date_of_birth:$t,firstname:xt??"missing",lastname:Ct??"missing",gender:Tt??"missing",pincode:It??"missing",dob_day:Rt??"missing",dob_month:Lt??"missing",dob_year:Ht??"missing",flow:Ot??""}}),it({firstname:xt,lastname:Ct,gender:Tt,pincode:It,date_of_birth:$t});return}if(gt){let xt="1983",Ct="01",Tt="01";if(gt.date_of_birth){const Rt=gt.date_of_birth.split("-");xt=Rt[0],Ct=Rt[1]==="00"||!Rt[1]?"01":Rt[1],Tt=Rt[2]==="00"||!Rt[2]?"01":Rt[2]}const It=`${xt}-${String(Ct).padStart(2,"0")}-${String(Tt).padStart(2,"0")}`;it({firstname:gt.firstname,lastname:gt.lastname,gender:gt.gender,pincode:gt.pincode,date_of_birth:It,oid:gt.oid}),wt({name:"profile_data_set_from_eka_profile",data:{source:"eka_profile",date_of_birth:(gt==null?void 0:gt.date_of_birth)??"missing",firstname:(gt==null?void 0:gt.firstname)??"missing",lastname:(gt==null?void 0:gt.lastname)??"missing",gender:(gt==null?void 0:gt.gender)??"missing",pincode:(gt==null?void 0:gt.pincode)??"missing",oid:(gt==null?void 0:gt.oid)??"missing"}})}},[yt,gt]);const _t=reactExports.useMemo(()=>!!(nt.firstname&&!at.firstname&&nt.date_of_birth&&!at.date_of_birth&&nt.pincode&&!at.pincode&&nt.gender&&!at.gender),[nt,at]),bt=async()=>{var Ct,Tt,It,Rt;const xt={firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""};if(st(xt),nt.firstname.trim()||(xt.firstname="Enter Name"),nt.lastname.trim()||(xt.lastname="This field is required"),nt.date_of_birth||(xt.date_of_birth="Enter DOB"),nt.gender||(xt.gender="Select Gender"),nt.pincode||(xt.pincode="Enter Valid Pincode"),!!_t){if(wt({name:"create_profile_screen_clicks",data:{type:"create_profile"}}),rt(LOADING_STATE.LOADING),ct===SCREEN_NAMES.CREATE_EKA_PROFILE){if(wt({name:"navigate_to_create_abha_address_screen",data:{type:"next",pincode_entered:(nt==null?void 0:nt.pincode)??"unknown",eka_profile_info_pincode:(gt==null?void 0:gt.pincode)??"unknown",flow_type:Et||"unknown_method"}}),Et===ABHA_AUTH_FLOW_METHOD.MOBILE){const Lt=await getPincodeDetails({pincode:Number(nt.pincode)});if(Lt!=null&&Lt.error){Dt(Lt!=null&&Lt.error?"Invalid Pincode":null),rt(LOADING_STATE.REJECTED),wt({name:"pincode_api_failed",data:{type:"error",error:Lt==null?void 0:Lt.error}});return}if(wt({name:"pincode_api_success",data:{type:"verify",pincode_received:!!Lt.pincode,txn_id:Nt}}),Lt!=null&&Lt.pincode){ot(null),lt(nt),wt({name:"eka_profile_info_set",data:{firstname:nt==null?void 0:nt.firstname,lastname:nt==null?void 0:nt.lastname,gender:nt==null?void 0:nt.gender,pincode:nt==null?void 0:nt.pincode,date_of_birth:nt==null?void 0:nt.date_of_birth}}),ft(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}wt({name:"no_action_on_pincode",data:{type:"verify",pincode_entered:!!Lt.pincode,txn_id:Nt}});return}else if(Et===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){lt(nt),wt({name:"eka_profile_info_set",data:{firstname:nt==null?void 0:nt.firstname,lastname:nt==null?void 0:nt.lastname,gender:nt==null?void 0:nt.gender,pincode:nt==null?void 0:nt.pincode,date_of_birth:nt==null?void 0:nt.date_of_birth}}),ft(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}}if(ct===SCREEN_NAMES.CREATE_PHR_EKA_PROFILE){if(!_){wt({name:"abha_create_eka_profile_abha_address_missing",data:{platform:St}});return}const[Lt,Ht,jt]=nt.date_of_birth?(Ct=nt==null?void 0:nt.date_of_birth)==null?void 0:Ct.split("-"):["","",""],Qt={abha_address:_,day_of_birth:parseInt(jt),first_name:nt.firstname,gender:nt.gender,last_name:nt.lastname||"",month_of_birth:parseInt(Ht),pincode:nt.pincode,year_of_birth:parseInt(Lt)};wt({name:"profile_eka_process_started",data:{platform:St,date_of_birth:(nt==null?void 0:nt.date_of_birth)||null,dob_day:jt||null,dob_month:Ht||null,dob_year:Lt||null}});const{error:$t,eka:Bt,action:Vt}=await postAbdmProfileEka({...Qt});if(Vt){wt({name:"profile_eka_process_failed",data:{platform:St,error_message:((Tt=Vt==null?void 0:Vt.cta)==null?void 0:Tt.title)||"unknown_error",error_message_exists:!!((It=Vt==null?void 0:Vt.cta)!=null&&It.title)}}),$(Vt);return}if($t||!Bt||!Bt.oid){wt({name:"profile_process_failed",data:{platform:St,error_message:$t||"Unknown error",eka_oid:(Bt==null?void 0:Bt.oid)||"missing",eka_exists:!!Bt,date_of_birth:(nt==null?void 0:nt.date_of_birth)||"missing",dob_day:jt||"missing",dob_month:Ht||"missing",dob_year:Lt||"missing",parsed_date_valid:!!(parseInt(jt)&&parseInt(Ht)&&parseInt(Lt)),firstname:(nt==null?void 0:nt.firstname)||"missing",gender:(nt==null?void 0:nt.gender)||"missing",pincode:(nt==null?void 0:nt.pincode)||"missing"}}),rt(LOADING_STATE.REJECTED),ot($t||"Something went wrong. Please try again.");return}wt({name:"profile_eka_process_success",data:{platform:St,eka:Bt}}),wt({name:"profile_switch_process_started",data:{platform:St,error_message:$t,eka:Bt}});const Kt=await pt({oid:Bt.oid});if(Kt.error){wt({name:"profile_switch_process_failed",data:{platform:St,error_message:Kt.error||"Something went wrong, please try again",error_message_exists:!!Kt.error}}),rt(LOADING_STATE.REJECTED),ot(((Rt=Kt.error)==null?void 0:Rt.message)||"Something went wrong, please try again");return}wt({name:"profile_switch_process_success",data:{platform:St,eka:Bt}}),rt(LOADING_STATE.RESOLVED);return}}},vt=()=>{et();const xt=useAuthAbhaStore.getState().isEkaAppLogin;_e(),useAuthAbhaStore.setState({isEkaAppLogin:xt})};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:()=>dt(!0),children:jsxRuntimeExports.jsx(n$2,{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:nt,setProfileData:it,error:at,setError:st,pincodeApiError:Pt})]}),ut&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-text-error pds2-text-center",children:ut}),jsxRuntimeExports.jsxs("div",{className:"pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full",children:[_&&mt===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:_})]}),jsxRuntimeExports.jsx("button",{onClick:et,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:tt===LOADING_STATE.LOADING?"disabled":"enabled",onClick:bt,isLoading:tt===LOADING_STATE.LOADING})})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:vt}),jsxRuntimeExports.jsx(ExitPopup,{open:ht,setOpen:dt})]})},genders=[{id:"M",name:"Male"},{id:"F",name:"Female"},{id:"O",name:"Other"}],UserDetailsForm=({profileData:a,setProfileData:_,error:$,setError:_e,pincodeApiError:et})=>{const tt=({event:st,name:ut})=>{const ot=st.target.value;let pt="";switch(ut){case"firstname":ot.trim()?pt="":pt="This field is required";break;case"lastname":!ot||ot.length<0?pt="This field is required":pt="";break;case"pincode":!ot||isNaN(Number(ot))||ot.length!=6?pt="Pincode must consist of exactly 6 digits":pt="";break;case"date_of_birth":!ot||ot>new Date().toISOString().split("T")[0]?pt="Date of Birth is invalid":pt="";break}_e({...$,[ut]:pt}),_({...a,[ut]:ot})},rt=st=>{_({...a,gender:st}),_e({...$,gender:""})},nt=(st,ut)=>ut!=null&&ut.pincode||!((st.firstname??"").trim()!==""&&(st.gender??"").trim()!==""&&(st.date_of_birth??"").trim()!=="")?!1:!st.pincode||(st.pincode+"").length!==6,it=useAuthAbhaStore(st=>st.ekaProfileInfo),at=useAuthAbhaStore(st=>st.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:a.firstname,onChange:st=>tt({event:st,name:"firstname"}),autoCapitalize:"on",disabled:!!(it!=null&&it.firstname)&&at===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,error:$.firstname}),$.firstname&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-4",children:$.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:a.lastname,onChange:st=>tt({event:st,name:"lastname"}),autoCapitalize:"on",disabled:!!(it!=null&&it.lastname)&&at===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((st,ut)=>jsxRuntimeExports.jsx("div",{className:`${$.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:st.id===a.gender,title:st.name,onSelect:()=>rt(st.id)})},ut))}),$.gender&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-2",children:$.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:a.date_of_birth,disabled:!!(it!=null&&it.date_of_birth)&&at===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:st=>tt({event:st,name:"date_of_birth"}),type:"date",maxDate:new Date().toISOString().split("T")[0],error:$.date_of_birth}),$.date_of_birth&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-2",children:$.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:nt(a,it)||et?"pds2-border-1 pds2-border-text-error":"",value:a.pincode,placeholder:"Enter Pincode",disabled:!!(it!=null&&it.pincode)&&at===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:st=>{st.target.value.length>6||tt({event:st,name:"pincode"})},type:"number",error:nt(a,it)?$.pincode:"",textStyle:nt(a,it)||et?"placeholder:pds2-text-text-error":"placeholder:pds2-text-text-04"}),et||$.pincode&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-4",children:$.pincode})]})]})},useGetProfilesPhrUser=()=>useQuery({queryKey:["profilesPhrUserResponse"],queryFn:async()=>{const a=await getProfilePhrUser();var _;return Array.isArray(a)?_=a==null?void 0:a.filter(_e=>!_e["health-ids"]||_e["health-ids"].length===0):_=[],{profiles:_}}}),GetAllProfilesScreen=()=>{const a=useAuthAbhaStore(dt=>dt.setScreen);useAuthAbhaStore(dt=>dt.screen),useAuthAbhaStore(dt=>dt.goBackLoginScreen),useAuthAbhaStore(dt=>dt.clearAbhaAuthStore);const[_,$]=reactExports.useState(!1);reactExports.useState("");const _e=useAuthAbhaStore(dt=>dt.clientId),et=useAuthAbhaStore(dt=>dt.aadhaarVerificationSkipStateStatus),tt=useAuthAbhaStore(dt=>dt.isEkaAppLogin),rt=useAuthAbhaStore(dt=>dt.isNewLoginOrCreateFlow),nt=useAuthAbhaStore(dt=>dt.txnId),it=GET_EXTRA_HEADERS(),at=useAuthAbhaStore(dt=>dt.abhaAuthFlowMethod),st=({name:dt,data:gt={}})=>{var ct,mt;const ft={...{login_platform:_e,is_eka_app_login:tt?"true":"false",is_new_login_or_create_flow:rt?"true":"false",txn_id:nt||"missing txnId",oid:it!=null&&it["X-User-ID"]?"true":"false",access_token:it!=null&&it.auth?"true":"false",flow:at??""},...gt};handleSendEvent({eventName:dt,eventData:ft}),(mt=(ct=window.curio)==null?void 0:ct.pushToMixpanel)==null||mt.call(ct,dt,ft)};reactExports.useEffect(()=>{if(_e==="doctor"){st({name:"page_view",data:{platform:_e,page_view:"get-all-profiles-screen"}}),st({name:"redirect_to_create_eka_profile_screen",data:{type:"next"}}),a(SCREEN_NAMES.CREATE_EKA_PROFILE);return}},[_e]);let ut=!1;tt?ut=!1:tt||(_e==="doctor"?ut=!1:ut=!0);const{data:ot,error:pt,isLoading:ht}=ut?useGetProfilesPhrUser():{data:null,error:null,isLoading:!1};return reactExports.useEffect(()=>{if(_e==="doctor")return;(async()=>{!ht&&ot&&($(!0),await new Promise(gt=>setTimeout(gt,2e3)),$(!1),!ot.profiles||ot.profiles.length<1?et===ABHA_V3_SKIP_STATES.ABHA_END?(st({name:"redirect_to_create_phr_eka_profile_screen",data:{type:"next",skip_state:et}}),a(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE)):(st({name:"redirect_to_create_eka_profile_screen",data:{type:"next",skip_state:et}}),a(SCREEN_NAMES.CREATE_EKA_PROFILE)):(st({name:"redirect_to_select_eka_profile_screen",data:{type:"next",skip_state:et}}),a(SCREEN_NAMES.SELECT_EKA_PROFILE)))})()},[ht,ot]),_?jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!0,loadingText:"In progress...",successText:""}):null},LoginWithAbhaScreen=()=>{const a=useAuthAbhaStore(tt=>tt.setAbhaAuthFlowMethod),_=useAuthAbhaStore(tt=>tt.clientId),$=useAuthAbhaStore(tt=>tt.clearAbhaAuthStore);reactExports.useEffect(()=>{var tt;if(handleSendEvent({eventName:"page_view",eventData:{page_view:"abha_login_screen",platform:_}}),a(ABHA_AUTH_FLOW_METHOD.MOBILE),(tt=window.EkaAbha)!=null&&tt.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var rt,nt;(rt=window.EkaAbha)!=null&&rt.changeStatusBarColor&&((nt=window==null?void 0:window.EkaAbha)==null||nt.changeStatusBarColor("#FFFFFF"))}},[]);const _e=()=>{var rt;(rt=window.EkaAbha)==null||rt.onAbhaClose();const tt=useAuthAbhaStore.getState().isNewLoginOrCreateFlow;$(),useAuthAbhaStore.setState({isNewLoginOrCreateFlow:tt}),unMount()},et=["eka-web","phr"];return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-white pds2-h-full",children:[!et.includes(_)&&jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{onClick:_e,children:jsxRuntimeExports.jsx(n$2,{})}),title:"",className:"pds2-bg-bg-01"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx(LoginWithDifferentMethods,{}),jsxRuntimeExports.jsx(OtherLoginMethods,{})]})},OtherLoginMethods=()=>{const a=useAuthAbhaStore(_e=>_e.setAbhaAuthFlowMethod),_=useAuthAbhaStore(_e=>_e.abhaAuthFlowMethod),$=[{method:ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,title:"ABHA Number",icon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})},{method:ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,title:"ABHA Address",icon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})},{method:ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,title:"Aadhaar Number",icon:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-h-24 pds2-w-24",loading:"lazy"})},{method:ABHA_AUTH_FLOW_METHOD.MOBILE,title:"Mobile Number",icon:jsxRuntimeExports.jsx(n$1,{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:$.filter(_e=>_e.method!==_).map(_e=>jsxRuntimeExports.jsx(Pds2CustomButton,{prefixIcon:_e.icon,title:_e.title,suffixIcon:jsxRuntimeExports.jsx(c$2,{className:"pds2-ml-auto pds2-h-16 pds2-w-16 pds2-text-text-04 -pds2-rotate-90","aria-hidden":"true"}),onClick:()=>a(_e.method)},_e.method))})]})},LoginWithDifferentMethods=()=>{const a=useAuthAbhaStore(Dt=>Dt.setScreen),_=useAuthAbhaStore(Dt=>Dt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),$=useAuthAbhaStore(Dt=>Dt.setRegistrationType),_e=useAuthAbhaStore(Dt=>Dt.setAadhaarInitResponse),[et,tt]=reactExports.useState(""),[rt,nt]=reactExports.useState(""),[it,at]=reactExports.useState(LOADING_STATE.IDLE),st=useAuthAbhaStore(Dt=>Dt.setLoginIdentifierValue),ut=useAuthAbhaStore(Dt=>Dt.setSelectedAbhaAddress),[ot,pt]=reactExports.useState(!1),ht=useAuthAbhaStore(Dt=>Dt.initAbhaAppMobileNumber),dt=useAuthAbhaStore(Dt=>Dt.setBottomsheetErrorInfo),[gt,lt]=React.useState(null),[ft,ct]=reactExports.useState(""),mt=useAuthAbhaStore(Dt=>Dt.clientId),yt=useAuthAbhaStore(Dt=>Dt.isEkaAppLogin);reactExports.useEffect(()=>{if(ht&&_===ABHA_AUTH_FLOW_METHOD.MOBILE){tt(ht),pt(ht.length===10),nt(null);return}tt(""),nt(null),pt(!1)},[_]);const Et=Dt=>{rt&&nt(null);const Ot=Dt.target.value;switch(_){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:if(Ot.length>20)return;break;case ABHA_AUTH_FLOW_METHOD.MOBILE:if(Ot&&!/^[0-9]+$/.test(Ot)||Ot.length>10)return;break;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:if(!/^[\d-]*$/.test(Ot)||Ot.length>17)return;break;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:if(Ot&&!/^[0-9]+$/.test(Ot)||Ot.length>12)return;break}if(_===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){const wt=Dt.target.value.replace(/-/g,"");let _t="";wt.length>0&&(_t+=wt.slice(0,2)),wt.length>2&&(_t+=`-${wt.slice(2,6)}`),wt.length>6&&(_t+=`-${wt.slice(6,10)}`),wt.length>10&&(_t+=`-${wt.slice(10,14)}`),tt(_t)}else tt(Ot.trim())},St=({inputVal:Dt})=>{rt&&nt(null),Dt.length===12&&tt(Dt)},At=reactExports.useCallback(()=>{const Dt=_===ABHA_AUTH_FLOW_METHOD.MOBILE&&!!ht;if(_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)return jsxRuntimeExports.jsx(SpacedInputComponent,{numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:St});const Ot={value:et,onChange:Et,..._===ABHA_AUTH_FLOW_METHOD.MOBILE&&{type:"tel",placeholder:"Mobile Number",disabled:Dt,PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-border-brand-02 pds2-pr-24",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4mlct2900000tg98p8u967s.webp",alt:"indian-flag-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-black",children:"+91"})]})},..._===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"},..._===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&{placeholder:"Enter ABHA Address"}};return jsxRuntimeExports.jsx(Pds2InputField,{...Ot})},[_,et,rt]),Mt=(Dt=gt)=>{Dt&&(useAuthAbhaStore.setState({isLoggedInFromRedirect:!0}),ct(et),useAuthAbhaStore.setState({initAbhaAppMobileNumber:et}),useAuthAbhaStore.setState({abhaAuthFlowMethod:ABHA_AUTH_FLOW_METHOD.MOBILE}),a(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR),dt(null))},Nt=async()=>{at(LOADING_STATE.LOADING);let Dt="";if(!yt){const{txn_id:xt,error:Ct}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!xt||Ct){nt((Ct==null?void 0:Ct.message)||"Something went wrong. Please try again."),at(LOADING_STATE.REJECTED);return}Dt=xt,console.log("triggering logout api in login with abha screen"),await postAuthLogoutV2()}$(REGISTRATION_TYPE.LOGIN);const Ot=_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?`${et}@sbx`:et;console.log("loginIdentifier",Ot);const{txn_id:wt,error:_t,action:bt,hint:vt}=await postAbdmLoginInit({method:_,identifier:Ot});if(console.log("after postAbdmLoginInit",bt),console.log("after postAbdmLoginInit",bt),bt){lt(bt),dt(bt);return}if(_t){nt(_t||"Something went wrong. Please try again."),at(LOADING_STATE.REJECTED);return}if(!wt){nt("Something went wrong. Please try again."),at(LOADING_STATE.REJECTED);return}_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&ut(Ot),_e({authTxnId:Dt,txnId:wt,aadhaarOtpSentToHint:vt||null}),st(Ot),at(LOADING_STATE.RESOLVED),handleSendEvent({eventName:"abha_login_submitted",eventData:{type:"next",platform:mt}}),a(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA)},kt=React.useMemo(()=>{switch(_){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return et.length>=4&&et.length<=20;case ABHA_AUTH_FLOW_METHOD.MOBILE:return et.length===10;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return et.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return et.length===12}},[_,et]),Pt=React.useMemo(()=>{switch(_){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"}},[_]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-bg-bg-01 pds2-space-y-12 pds2-text-center pds2-rounded-b-24",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center pds2-gap-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-16",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64"})})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-text-black",children:"Log in With ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-black pds2-mt-2",children:Pt}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-12",children:jsxRuntimeExports.jsxs("div",{className:"pds2-relative",children:[At(),_===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"})]})}),rt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular",children:rt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$2,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!kt||!ot||it===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:it===LOADING_STATE.LOADING,onClick:Nt,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:()=>{a(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR)}})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Mt})]})},usePostAbdmProfileLoginPhr=()=>{const a=useAuthAbhaStore(_=>_.setSelectedAbhaAddress);return useMutation({mutationFn:({txn_id:_,phr_address:$})=>postAbdmProfileLoginPhr({txn_id:_,phr_address:$}),onSuccess(_){_.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],_.profile),a(_.profile.abha_address))}})},SelectAbhaFromListScreen=()=>{var Qt;const[a,_]=reactExports.useState(null),$=useAuthAbhaStore($t=>$t.setScreen),_e=useAuthAbhaStore($t=>$t.goBackLoginScreen),et=useAuthAbhaStore($t=>$t.txnId),tt=useAuthAbhaStore($t=>$t.authTxnId),rt=useAuthAbhaStore($t=>$t.abhaAddressList),nt=useAuthAbhaStore($t=>$t.setBottomsheetErrorInfo),it=useAuthAbhaStore($t=>$t.clearAbhaAuthStore),at=useAuthAbhaStore($t=>$t.setSelectedAbhaAddress),st=useAuthAbhaStore($t=>$t.abhaAuthFlowMethod);useAuthAbhaStore($t=>$t.loginIdentifierValue);const[ut,ot]=reactExports.useState(""),[pt,ht]=reactExports.useState(!1),dt=useAuthAbhaStore($t=>$t.setEkaProfileInfo),gt=useAuthAbhaStore($t=>$t.setAbhaAuthFlowMethod),lt=useAuthAbhaStore($t=>$t.setAadhaarVerificationSkipStateStatus),ft=useAuthAbhaStore($t=>$t.identifierValue),[ct,mt]=reactExports.useState(LOADING_STATE.IDLE),yt=["M","F","O","U"],{mutateAsync:Et}=usePostAuthVerifyV2(),{mutateAsync:St}=usePostAbdmProfileLoginPhr();useAuthAbhaStore($t=>$t.ekaProfileInfo),useAuthAbhaStore($t=>$t.registrationType);const At=useAuthAbhaStore($t=>$t.clientId),Mt=useAuthAbhaStore($t=>$t.isEkaAppLogin),Nt=useAuthAbhaStore($t=>$t.setRegistrationType),kt=useAuthAbhaStore($t=>$t.abhaAuthFlowMethod),Pt=useAuthAbhaStore($t=>$t.identityValue),Dt=useAuthAbhaStore($t=>$t.setMobileInitResponse),[Ot,wt]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),_t=useAuthAbhaStore($t=>$t.setAadhaarInitResponse),bt=useAuthAbhaStore($t=>$t.setSelectedAbhaFlow),vt=useAuthAbhaStore($t=>$t.isNewLoginOrCreateFlow),xt=GET_EXTRA_HEADERS(),Ct=useAuthAbhaStore($t=>$t.setLoginIdentifierValue),[Tt,It]=reactExports.useState(!1),Rt=({name:$t,data:Bt={}})=>{var qt,Yt;const Kt={...{login_platform:At,is_eka_app_login:Mt?"true":"false",is_new_login_or_create_flow:vt?"true":"false",txn_id:et||"missing txnId",oid:xt!=null&&xt["X-User-ID"]?"true":"false",access_token:xt!=null&&xt.auth?"true":"false",flow:kt??""},...Bt};handleSendEvent({eventName:$t,eventData:Kt}),(Yt=(qt=window.curio)==null?void 0:qt.pushToMixpanel)==null||Yt.call(qt,$t,Kt)},Lt=async()=>{Rt({name:"abha_login_select_abha_init_started",data:{method:kt,platform:At}});const $t=(Bt,Vt)=>{wt(Kt=>({...Kt,[Bt]:Vt}))};if(Nt(REGISTRATION_TYPE.CREATE),kt===ABHA_AUTH_FLOW_METHOD.MOBILE){const{txn_id:Bt,hint:Vt,error:Kt,action:qt}=await postRegisterMobileInit({mobile_number:Pt});if(Bt&&Vt){Rt({name:"abha_login_select_abha_mobile_init_success",data:{method:kt,platform:At,txn_id:Bt}}),Dt({authTxnId:tt,txnId:Bt,mobileOtpSentToHint:Vt}),bt("mobile"),$t("mobile",LOADING_STATE.RESOLVED),Nt(REGISTRATION_TYPE.CREATE),$(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}Rt({name:"abha_login_select_abha_init_failed",data:{method:kt,platform:At,reason:Kt||"unknown",reason_exists:!!Kt}}),$t("mobile",LOADING_STATE.REJECTED),qt?nt(qt):ot(Kt||"Something went wrong")}else if(kt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){Rt({name:"abha_fetching_profiles",data:{method:kt,platform:At}}),$(SCREEN_NAMES.GET_ALL_PROFILES);return}},Ht=async()=>{var Gt,Xt,er,dr,ir,rr;if(st===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&a){mt(LOADING_STATE.LOADING),setIndividualEnv({extraHeaders:{auth:""}}),Mt||await postAuthLogoutV2()||Rt({name:"logout_api_failed_before_init_on_continue_click",data:{method:kt,platform:At,reason:"logout_api_response_false"}});const{txn_id:Ut,error:zt,action:sr,hint:lr}=await postAbdmLoginInit({method:ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,identifier:a.abha_address});if(Rt({name:"abha_abdm_login_init_triggered",data:{flow_step_type:"init",authTxnId:tt,ndhmTxnId:Ut,method:kt}}),console.log("after postAbdmLoginInit",sr),console.log("after postAbdmLoginInit",sr),sr){Rt({name:"abha_abdm_login_init_abha_error_action",data:{method:kt,platform:At,action:((Gt=sr==null?void 0:sr.cta)==null?void 0:Gt.title)||"unknown",action_exists:!!((Xt=sr==null?void 0:sr.cta)!=null&&Xt.title)}}),nt(sr);return}if(zt){Rt({name:"abha_abdm_login_init_failed",data:{method:kt,platform:At,reason:zt||"unknown",reason_exists:!!zt}}),mt(LOADING_STATE.REJECTED),ot(zt||"Something went wrong. Please try again.");return}if(!Ut){ot("Something went wrong. Please try again.");return}Rt({name:"abha_login_init_success",data:{flow_step_type:"init",authTxnId:tt,ndhmTxnId:Ut,hint:lr}}),_t({authTxnId:tt,txnId:Ut,aadhaarOtpSentToHint:lr||null}),mt(LOADING_STATE.RESOLVED),Ct(a.abha_address),gt(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),$(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}if(!a)return;if(at(a.abha_address),console.log(ct,"from abha"),!et){Rt({name:"abha_login_select_abha_txnId_not_found",data:{platform:At,reason:"txnId missing",reason_exists:!0}});return}mt(LOADING_STATE.LOADING),Rt({name:"abha_login_select_abha_verify_start",data:{platform:At,txn_id:et}});const{error:$t,eka:Bt,profile:Vt,action:Kt,skip_state:qt}=await St({txn_id:et,phr_address:a.abha_address});if(Kt){Rt({name:"abha_login_select_abha_error_action",data:{platform:At,txn_id:et,action:((er=Kt==null?void 0:Kt.cta)==null?void 0:er.title)||"unknown",action_exists:!!((dr=Kt==null?void 0:Kt.cta)!=null&&dr.title)}}),nt(Kt);return}if($t||!Bt){Rt({name:"abha_login_select_abha_abdm_error",data:{platform:At,txn_id:et,error_message:$t||"eka object missing",error_exists:!!$t}}),mt(LOADING_STATE.REJECTED),ot($t);return}if(!qt){ot("skip State is missing");return}if(Rt({name:"abha_login_select_abha_verify_success",data:{platform:At,txn_id:et,skip_state:qt}}),lt(qt),Vt&&(Rt({name:"abha_login_select_abha_profile_received",data:{platform:At}}),dt({date_of_birth:`${Vt.year_of_birth}-${String(Vt.month_of_birth).padStart(2,"0")}-${String(Vt.day_of_birth).padStart(2,"0")}`,firstname:Vt.first_name,lastname:Vt.last_name,pincode:Vt.pincode,gender:Vt.gender,name:Vt.first_name+" "+Vt.last_name,mobile:Vt.mobile,oid:Bt==null?void 0:Bt.oid,middlename:Vt.middle_name,abha_address:Vt.abha_address,abha_number:Vt.abha_number}),at(Vt.abha_address)),Mt){if(!Bt.oid){Rt({name:"abha_login_select_abha_oid_null",data:{platform:At,oid:(Bt==null?void 0:Bt.oid)??"null_or_undefined"}}),mt(LOADING_STATE.REJECTED);return}const Ut=yt.includes(Vt==null?void 0:Vt.gender)?Vt==null?void 0:Vt.gender:void 0,zt={oid:(Bt==null?void 0:Bt.oid)||"",fln:(Vt==null?void 0:Vt.first_name)+" "+(Vt==null?void 0:Vt.last_name),dob:`${Vt==null?void 0:Vt.year_of_birth}-${String(Vt==null?void 0:Vt.month_of_birth).padStart(2,"0")}-${String(Vt==null?void 0:Vt.day_of_birth).padStart(2,"0")}`,gen:Ut,mobile:Vt==null?void 0:Vt.mobile,at:"",fn:(Vt==null?void 0:Vt.first_name)||"",mn:(Vt==null?void 0:Vt.middle_name)||"",ln:(Vt==null?void 0:Vt.last_name)||"","health-ids":Vt!=null&&Vt.abha_address?[Vt.abha_address]:void 0,abha_number:(Vt==null?void 0:Vt.abha_number)||""},sr=getMockAuthVerifyResponse(zt);if(mt(LOADING_STATE.RESOLVED),Rt({name:"abha_login_select_abha_inside_app_success",data:{platform:At,oid:Bt.oid}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(ir=window.EkaAbha)==null||ir.onAbhaSuccess(JSON.stringify({response:sr}));return}onAbhaSuccess({response:sr}),unMount();return}if(!Bt.min_token||!tt){Rt({name:"abha_login_select_abha_min_token_missing",data:{platform:At,oid:(Bt==null?void 0:Bt.oid)??"missing_oid",min_token:(Bt==null?void 0:Bt.min_token)??"missing_min_token",auth_txnId:tt??"missing_authTxnId"}}),mt(LOADING_STATE.REJECTED),ot($t||"Something went wrong. Please try again.");return}const Yt=await Et({txn_id:tt,token:Bt.min_token,...Bt.oid?{oid:Bt.oid}:null});if(!Yt.data){Rt({name:"abha_login_select_abha_auth_verify_failed",data:{platform:At,oid:(Bt==null?void 0:Bt.oid)??"missing_oid",min_token:(Bt==null?void 0:Bt.min_token)??"missing_min_token",auth_txnId:tt??"missing_authTxnId"}}),mt(LOADING_STATE.REJECTED),ot(((rr=Yt.error)==null?void 0:rr.message)||"Something went wrong, please try again");return}mt(LOADING_STATE.RESOLVED),Rt({name:"abha_login_select_abha_auth_verify_success",data:{platform:At,oid:Bt.oid,min_token:Bt==null?void 0:Bt.min_token,auth_txnId:tt}})},jt=()=>{const $t=useAuthAbhaStore.getState().initAbhaAppMobileNumber,Bt=useAuthAbhaStore.getState().isEkaAppLogin;_e(),it(),useAuthAbhaStore.setState({initAbhaAppMobileNumber:$t}),useAuthAbhaStore.setState({isEkaAppLogin:Bt})};return reactExports.useEffect(()=>{if(!(rt!=null&&rt.length))return;const $t=rt.find(Bt=>Bt.kyc_verified==="VERIFIED");_($t??null)},[]),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:()=>ht(!0),children:jsxRuntimeExports.jsx(n$2,{})}),suffixIcon:((Qt=rt==null?void 0:rt[0])==null?void 0:Qt.kyc_verified)&&jsxRuntimeExports.jsx(e$1,{onClick:()=>It($t=>!$t),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,{}),Tt&&jsxRuntimeExports.jsx("div",{onMouseLeave:()=>It(!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 ",rt==null?void 0:rt.length," ABHA addresses ",jsxRuntimeExports.jsx("br",{})," select one you want to log in with"]}),jsxRuntimeExports.jsx(AbhaList,{list:rt,selectedAbha:a,setSelectedAbha:_,handleContinueClick:Ht}),((rt==null?void 0:rt.length)??0)<6&&(st===ABHA_AUTH_FLOW_METHOD.MOBILE||st===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(l$6,{}),className:"pds2-justify-center pds2-text-text-brand pds2-bg-border-brand-02 pds2-border-border-03 Body1Semibold",onClick:Lt})]})]}),st===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:ft==null?void 0:ft.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:[ut&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error pds2-text-center pds2-mb-4",children:ut}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:a===null||ct===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:ct===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:Ht})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:jt}),jsxRuntimeExports.jsx(ExitPopup,{open:pt,setOpen:ht})]})},AbhaList=({list:a,selectedAbha:_,setSelectedAbha:$,handleContinueClick:_e})=>jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-16 pds2-border pds2-border-border-brand-02 pds2-w-full pds2-relative",children:a==null?void 0:a.map((et,tt)=>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:et.abha_address,checked:(_==null?void 0:_.abha_address)===et.abha_address,onChange:()=>{$(et)},onKeyDown:rt=>rt.key==="Enter"&&_e()}),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:et==null?void 0:et.abha_address}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-row pds2-items-center",children:(et==null?void 0:et.kyc_verified)&&(et.kyc_verified==="VERIFIED"?jsxRuntimeExports.jsx("div",{className:"Label1Bold pds2-rounded-full pds2-h-full",children:jsxRuntimeExports.jsx(t$1,{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(s$3,{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:(et==null?void 0:et.name)&&jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-text-03",children:et.name})})]})]}),tt!==a.length-1&&jsxRuntimeExports.jsx("div",{className:"pds2-px-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-border-03 pds2-h-1 pds2-w-full"})})]},et.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(s$3,{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(t$1,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-success-02"})}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-invert",children:"KYC"})]})]}),SelectEkaProfileScreen=()=>{var Dt;const a=useAuthAbhaStore(Ot=>Ot.setScreen),_=useAuthAbhaStore(Ot=>Ot.setEkaProfileInfo),$=useAuthAbhaStore(Ot=>Ot.registrationType),_e=useAuthAbhaStore(Ot=>Ot.goBackLoginScreen),[et,tt]=reactExports.useState(null),rt=useAuthAbhaStore(Ot=>Ot.setBottomsheetErrorInfo),nt=useAuthAbhaStore(Ot=>Ot.clearAbhaAuthStore),[it,at]=reactExports.useState(LOADING_STATE.IDLE),[st,ut]=reactExports.useState(!1),[ot,pt]=reactExports.useState(null),ht=useAuthAbhaStore(Ot=>Ot.selectedAbhaAddress),dt=useAuthAbhaStore(Ot=>Ot.aadhaarVerificationSkipStateStatus),{mutateAsync:gt}=usePostProfileSwitch(),lt=queryClient.getQueryData(["profilesPhrUserResponse"]),ft=useAuthAbhaStore(Ot=>Ot.clientId),ct=useAuthAbhaStore(Ot=>Ot.isEkaAppLogin),mt=useAuthAbhaStore(Ot=>Ot.isNewLoginOrCreateFlow),yt=useAuthAbhaStore(Ot=>Ot.txnId),Et=GET_EXTRA_HEADERS(),St=useAuthAbhaStore(Ot=>Ot.abhaAuthFlowMethod),At=({name:Ot,data:wt={}})=>{var vt,xt;const bt={...{login_platform:ft,is_eka_app_login:ct?"true":"false",is_new_login_or_create_flow:mt?"true":"false",txn_id:yt||"missing txnId",oid:Et!=null&&Et["X-User-ID"]?"true":"false",access_token:Et!=null&&Et.auth?"true":"false",flow:St??""},...wt};handleSendEvent({eventName:Ot,eventData:bt}),(xt=(vt=window.curio)==null?void 0:vt.pushToMixpanel)==null||xt.call(vt,Ot,bt)};reactExports.useEffect(()=>{At({name:"choose_eka_profile_screen",data:{platform:ft,type:"select"}})},[ft]);const Mt=()=>{if(At({name:"create_family_profile_clicks",data:{platform:ft,type:"create",skip_state:dt}}),dt===ABHA_V3_SKIP_STATES.ABHA_END){At({name:"navigate_to_create_phr_profile_screen",data:{platform:ft}}),a(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE);return}At({name:"navigate_to_create_eka_profile_screen",data:{platform:ft}}),a(SCREEN_NAMES.CREATE_EKA_PROFILE)},Nt=async({profile:Ot})=>{At({name:"select_profile_clicks",data:{platform:ft,oid:Ot.oid}}),tt(Ot.oid)},kt=async()=>{var vt,xt,Ct,Tt;if(At({name:"continue_click_on_choose_eka_profile",data:{platform:ft,selectedProfileOid:et,registrationType:$,skip_state:dt}}),et&&dt===ABHA_V3_SKIP_STATES.ABHA_CREATE){const It=lt==null?void 0:lt.profiles.find(Rt=>Rt.oid===et);if(!It){At({name:"continue_click_profile_not_found",data:{platform:ft,oid:et||"unknown_oid",oid_exists:!!et}});return}At({name:"navigate_to_create_eka_profile_screen_from_abha_create",data:{platform:ft,oid:It.oid}}),_({oid:It.oid,date_of_birth:It.dob,firstname:It.fn,lastname:It.ln,pincode:"",gender:It.gen,mobile:It.mobile,name:It.fln,middlename:It.mn,abha_address:(vt=It==null?void 0:It["health-ids"])==null?void 0:vt[0],abha_number:It.abha_number}),a(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!ht||!et){At({name:"continue_click_missing_profile_or_abha",data:{platform:ft,oid:et||"missing_oid",oid_exists:!!et}});return}At({name:"linking_abha_to_profile_start",data:{platform:ft,oid:et||"missing_oid",oid_exists:!!et}}),at(LOADING_STATE.LOADING);const{error:Ot,action:wt,eka:_t}=await postAbdmProfileEkaLinkPhr({abha_address:ht,oid:et});if(wt){At({name:"linking_abha_to_profile_error_action",data:{platform:ft,oid:et||"missing_oid",oid_exists:!!et}}),rt(wt);return}if(Ot||!_t||!_t.oid){At({name:"linking_abha_to_profile_failed",data:{platform:ft,oid:et||"missing_oid",oid_exists:!!et,error:Ot||"No EKA/OID",error_exists:!!Ot}}),at(LOADING_STATE.REJECTED),pt(Ot||"Something went wrong. Please try again.");return}const bt=await gt({oid:_t.oid});if(bt.error){At({name:"profile_switch_failed_after_link",data:{platform:ft,oid:(_t==null?void 0:_t.oid)||"missing_oid",oid_exists:!!(_t!=null&&_t.oid),error:((xt=bt.error)==null?void 0:xt.message)||"unknown_error",error_exists:!!((Ct=bt.error)!=null&&Ct.message)}}),at(LOADING_STATE.REJECTED),pt(((Tt=bt.error)==null?void 0:Tt.message)||"Something went wrong, please try again");return}At({name:"linking_abha_to_profile_success",data:{platform:ft,oid:_t.oid}}),at(LOADING_STATE.RESOLVED)},Pt=()=>{_e();const Ot=useAuthAbhaStore.getState().isEkaAppLogin;nt(),useAuthAbhaStore.setState({isEkaAppLogin:Ot})};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:()=>ut(!0),children:jsxRuntimeExports.jsx(n$2,{})}),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-to-eka-icon",className:"pds2-w-163"}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading3Semibold",children:"Choose an Eka Profile"}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-03",children:"Select the person for whom you want to create an ABHA address."})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-justify-center pds2-space-y-12 pds2-mt-24",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03 Body2Medium pds2-text-center",children:"Select Eka Profile"}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-8",children:(Dt=lt==null?void 0:lt.profiles)==null?void 0:Dt.map(Ot=>{const wt=et===Ot.oid;return jsxRuntimeExports.jsxs("label",{className:`pds2-flex pds2-items-center pds2-gap-x-8 pds2-cursor-pointer pds2-p-16 pds2-rounded-16 pds2-bg-bg-white pds2-border
|
|
61
|
+
`,tabIndex:-1,ref:o,children:jsxRuntimeExports.jsx("p",{className:`${i?"pds2-text-text-brand Body2Semibold":"pds2-text-text-01 Body2Medium"}`,children:e})})}async function getPincodeDetails({pincode:e}){const i=`${GET_NDHM_HOST()}/abdm/na/v1/registration/pincode/${e}`,a=new Headers;a.append("Content-Type","application/json");const o={method:"GET",headers:a,redirect:"follow",credentials:"include"};try{return await(await fetchWrapper(i,o)).json()}catch(c){console.error(c)}return{}}const CreateEkaProfileScreen=()=>{const e=useAuthAbhaStore(mt=>mt.screen),s=useAuthAbhaStore(mt=>mt.selectedAbhaAddress),i=useAuthAbhaStore(mt=>mt.setBottomsheetErrorInfo),a=useAuthAbhaStore(mt=>mt.clearAbhaAuthStore),o=useAuthAbhaStore(mt=>mt.goBackLoginScreen),[c,g]=reactExports.useState(LOADING_STATE.IDLE),[_,b]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[$,et]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[ot,rt]=reactExports.useState(null),{mutateAsync:at}=usePostProfileSwitch(),[it,st]=reactExports.useState(!1),dt=useAuthAbhaStore(mt=>mt.ekaProfileInfo),j=useAuthAbhaStore(mt=>mt.setEkaProfileInfo),tt=useAuthAbhaStore(mt=>mt.setScreen),_e=e[e.length-1],nt=useAuthAbhaStore(mt=>mt.aadhaarVerificationSkipStateStatus),ut=queryClient.getQueryData(["abdmProfilePhrResponse"]),ht=useAuthAbhaStore(mt=>mt.abhaAuthFlowMethod),[gt,ft]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""});useAuthAbhaStore(mt=>mt.isDocAppRequest);const _t=useAuthAbhaStore(mt=>mt.clientId),At=useAuthAbhaStore(mt=>mt.isEkaAppLogin),kt=useAuthAbhaStore(mt=>mt.isNewLoginOrCreateFlow),St=useAuthAbhaStore(mt=>mt.txnId),Ct=GET_EXTRA_HEADERS(),[Ot,xt]=reactExports.useState(null),pt=useAuthAbhaStore(mt=>mt.abhaAuthFlowMethod),vt=({name:mt,data:wt={}})=>{var jt,Lt;const bt={...{login_platform:_t,is_eka_app_login:At?"true":"false",is_new_login_or_create_flow:kt?"true":"false",txn_id:St||"missing txnId",oid:Ct!=null&&Ct["X-User-ID"]?"true":"false",access_token:Ct!=null&&Ct.auth?"true":"false",flow:pt??""},...wt};handleSendEvent({eventName:mt,eventData:bt}),(Lt=(jt=window.curio)==null?void 0:jt.pushToMixpanel)==null||Lt.call(jt,mt,bt)};reactExports.useEffect(()=>{vt({name:"page_view",data:{page_view:"create_profile_screen"}})},[_t]),reactExports.useEffect(()=>{var mt;if((mt=window.EkaAbha)!=null&&mt.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var wt,Tt;(wt=window.EkaAbha)!=null&&wt.changeStatusBarColor&&((Tt=window==null?void 0:window.EkaAbha)==null||Tt.changeStatusBarColor("#FFFFFF"))}},[]),reactExports.useEffect(()=>{if(ut){const{first_name:mt,last_name:wt,gender:Tt,pincode:bt,day_of_birth:jt,month_of_birth:Lt,year_of_birth:Rt}=ut,It=jt===0?1:jt,Pt=`${Rt}-${String(Lt===0?1:Lt).padStart(2,"0")}-${String(It).padStart(2,"0")}`;vt({name:"profile_data_set_from_phr_cache",data:{source:"phr_cache",date_of_birth:Pt,firstname:mt??"missing",lastname:wt??"missing",gender:Tt??"missing",pincode:bt??"missing",dob_day:jt??"missing",dob_month:Lt??"missing",dob_year:Rt??"missing",flow:pt??""}}),b({firstname:mt,lastname:wt,gender:Tt,pincode:bt,date_of_birth:Pt});return}if(dt){let mt="1983",wt="01",Tt="01";if(dt.date_of_birth){const jt=dt.date_of_birth.split("-");mt=jt[0],wt=jt[1]==="00"||!jt[1]?"01":jt[1],Tt=jt[2]==="00"||!jt[2]?"01":jt[2]}const bt=`${mt}-${String(wt).padStart(2,"0")}-${String(Tt).padStart(2,"0")}`;b({firstname:dt.firstname,lastname:dt.lastname,gender:dt.gender,pincode:dt.pincode,date_of_birth:bt,oid:dt.oid}),vt({name:"profile_data_set_from_eka_profile",data:{source:"eka_profile",date_of_birth:(dt==null?void 0:dt.date_of_birth)??"missing",firstname:(dt==null?void 0:dt.firstname)??"missing",lastname:(dt==null?void 0:dt.lastname)??"missing",gender:(dt==null?void 0:dt.gender)??"missing",pincode:(dt==null?void 0:dt.pincode)??"missing",oid:(dt==null?void 0:dt.oid)??"missing"}})}},[ut,dt]);const lt=reactExports.useMemo(()=>!!(_.firstname&&!$.firstname&&_.date_of_birth&&!$.date_of_birth&&_.pincode&&!$.pincode&&_.gender&&!$.gender),[_,$]),ct=async()=>{var wt,Tt,bt,jt;const mt={firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""};if(et(mt),_.firstname.trim()||(mt.firstname="Enter Name"),_.lastname.trim()||(mt.lastname="This field is required"),_.date_of_birth||(mt.date_of_birth="Enter DOB"),_.gender||(mt.gender="Select Gender"),_.pincode||(mt.pincode="Enter Valid Pincode"),!!lt){if(vt({name:"create_profile_screen_clicks",data:{type:"create_profile"}}),g(LOADING_STATE.LOADING),_e===SCREEN_NAMES.CREATE_EKA_PROFILE){if(vt({name:"navigate_to_create_abha_address_screen",data:{type:"next",pincode_entered:(_==null?void 0:_.pincode)??"unknown",eka_profile_info_pincode:(dt==null?void 0:dt.pincode)??"unknown",flow_type:ht||"unknown_method"}}),ht===ABHA_AUTH_FLOW_METHOD.MOBILE){const Lt=await getPincodeDetails({pincode:Number(_.pincode)});if(Lt!=null&&Lt.error){xt(Lt!=null&&Lt.error?"Invalid Pincode":null),g(LOADING_STATE.REJECTED),vt({name:"pincode_api_failed",data:{type:"error",error:Lt==null?void 0:Lt.error}});return}if(vt({name:"pincode_api_success",data:{type:"verify",pincode_received:!!Lt.pincode,txn_id:St}}),Lt!=null&&Lt.pincode){rt(null),j(_),vt({name:"eka_profile_info_set",data:{firstname:_==null?void 0:_.firstname,lastname:_==null?void 0:_.lastname,gender:_==null?void 0:_.gender,pincode:_==null?void 0:_.pincode,date_of_birth:_==null?void 0:_.date_of_birth}}),tt(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}vt({name:"no_action_on_pincode",data:{type:"verify",pincode_entered:!!Lt.pincode,txn_id:St}});return}else if(ht===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){j(_),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(_e===SCREEN_NAMES.CREATE_PHR_EKA_PROFILE){if(!s){vt({name:"abha_create_eka_profile_abha_address_missing",data:{platform:_t}});return}const[Lt,Rt,It]=_.date_of_birth?(wt=_==null?void 0:_.date_of_birth)==null?void 0:wt.split("-"):["","",""],Ft={abha_address:s,day_of_birth:parseInt(It),first_name:_.firstname,gender:_.gender,last_name:_.lastname||"",month_of_birth:parseInt(Rt),pincode:_.pincode,year_of_birth:parseInt(Lt)};vt({name:"profile_eka_process_started",data:{platform:_t,date_of_birth:(_==null?void 0:_.date_of_birth)||null,dob_day:It||null,dob_month:Rt||null,dob_year:Lt||null}});const{error:Pt,eka:Vt,action:Gt}=await postAbdmProfileEka({...Ft});if(Gt){vt({name:"profile_eka_process_failed",data:{platform:_t,error_message:((Tt=Gt==null?void 0:Gt.cta)==null?void 0:Tt.title)||"unknown_error",error_message_exists:!!((bt=Gt==null?void 0:Gt.cta)!=null&&bt.title)}}),i(Gt);return}if(Pt||!Vt||!Vt.oid){vt({name:"profile_process_failed",data:{platform:_t,error_message:Pt||"Unknown error",eka_oid:(Vt==null?void 0:Vt.oid)||"missing",eka_exists:!!Vt,date_of_birth:(_==null?void 0:_.date_of_birth)||"missing",dob_day:It||"missing",dob_month:Rt||"missing",dob_year:Lt||"missing",parsed_date_valid:!!(parseInt(It)&&parseInt(Rt)&&parseInt(Lt)),firstname:(_==null?void 0:_.firstname)||"missing",gender:(_==null?void 0:_.gender)||"missing",pincode:(_==null?void 0:_.pincode)||"missing"}}),g(LOADING_STATE.REJECTED),rt(Pt||"Something went wrong. Please try again.");return}vt({name:"profile_eka_process_success",data:{platform:_t,eka:Vt}}),vt({name:"profile_switch_process_started",data:{platform:_t,error_message:Pt,eka:Vt}});const $t=await at({oid:Vt.oid});if($t.error){vt({name:"profile_switch_process_failed",data:{platform:_t,error_message:$t.error||"Something went wrong, please try again",error_message_exists:!!$t.error}}),g(LOADING_STATE.REJECTED),rt(((jt=$t.error)==null?void 0:jt.message)||"Something went wrong, please try again");return}vt({name:"profile_switch_process_success",data:{platform:_t,eka:Vt}}),g(LOADING_STATE.RESOLVED);return}}},yt=()=>{o();const mt=useAuthAbhaStore.getState().isEkaAppLogin,wt=_t;a(),useAuthAbhaStore.setState({clientId:wt}),useAuthAbhaStore.setState({isEkaAppLogin:mt})};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:()=>st(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{className:""})}),className:"pds2-bg-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-flex-1 pds2-p-8 pds2-overflow-y-auto",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-justify-between"}),jsxRuntimeExports.jsx(UserDetailsForm,{profileData:_,setProfileData:b,error:$,setError:et,pincodeApiError:Ot})]}),ot&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-text-error pds2-text-center",children:ot}),jsxRuntimeExports.jsxs("div",{className:"pds2-sticky pds2-bottom-0 pds2-bg-bg-white pds2-w-full",children:[s&&nt===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:ct,isLoading:c===LOADING_STATE.LOADING})})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:yt}),jsxRuntimeExports.jsx(ExitPopup,{open:it,setOpen:st})]})},genders=[{id:"M",name:"Male"},{id:"F",name:"Female"},{id:"O",name:"Other"}],UserDetailsForm=({profileData:e,setProfileData:s,error:i,setError:a,pincodeApiError:o})=>{const c=({event:et,name:ot})=>{const rt=et.target.value;let at="";switch(ot){case"firstname":rt.trim()?at="":at="This field is required";break;case"lastname":!rt||rt.length<0?at="This field is required":at="";break;case"pincode":!rt||isNaN(Number(rt))||rt.length!=6?at="Pincode must consist of exactly 6 digits":at="";break;case"date_of_birth":!rt||rt>new Date().toISOString().split("T")[0]?at="Date of Birth is invalid":at="";break}a({...i,[ot]:at}),s({...e,[ot]:rt})},g=et=>{s({...e,gender:et}),a({...i,gender:""})},_=(et,ot)=>ot!=null&&ot.pincode||!((et.firstname??"").trim()!==""&&(et.gender??"").trim()!==""&&(et.date_of_birth??"").trim()!=="")?!1:!et.pincode||(et.pincode+"").length!==6,b=useAuthAbhaStore(et=>et.ekaProfileInfo),$=useAuthAbhaStore(et=>et.abhaAuthFlowMethod);return jsxRuntimeExports.jsxs("form",{className:"pds2-flex pds2-flex-col pds2-space-y-32 pds2-pt-16 pds2-px-16",children:[jsxRuntimeExports.jsxs("label",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-text-04",children:["Your name",jsxRuntimeExports.jsx("span",{className:"pds2-text-text-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx(Pds2InputField,{isMandatory:!0,textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2",placeholder:"Firstname",value:e.firstname,onChange:et=>c({event:et,name:"firstname"}),autoCapitalize:"on",disabled:!!(b!=null&&b.firstname)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,error:i.firstname}),i.firstname&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-4",children:i.firstname})]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Pds2InputField,{textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2",placeholder:"Lastname",value:e.lastname,onChange:et=>c({event:et,name:"lastname"}),autoCapitalize:"on",disabled:!!(b!=null&&b.lastname)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER})})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-text-04",children:["Gender",jsxRuntimeExports.jsx("span",{className:"pds2-text-text-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-gap-16",children:genders.map((et,ot)=>jsxRuntimeExports.jsx("div",{className:`${i.gender?"pds2-border-2 pds2-rounded-12 pds2-border-text-error placeholder:pds2-text-text-error":"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2 placeholder:pds2-text-text-04"}`,children:jsxRuntimeExports.jsx(Pds2SingleInputChip,{isSelected:et.id===e.gender,title:et.name,onSelect:()=>g(et.id)})},ot))}),i.gender&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-2",children:i.gender})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx(Pds2InputField,{label:"Date of Birth",isMandatory:!0,textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-border-brand-01 focus-within:pds2-ring-offset-2",value:e.date_of_birth,disabled:!!(b!=null&&b.date_of_birth)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:et=>c({event:et,name:"date_of_birth"}),type:"date",maxDate:new Date().toISOString().split("T")[0],error:i.date_of_birth}),i.date_of_birth&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-2",children:i.date_of_birth})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-4",children:[jsxRuntimeExports.jsx(Pds2InputField,{label:"Pincode",isMandatory:!0,textColor:"pds2-text-text-01",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:_(e,b)||o?"pds2-border-1 pds2-border-text-error":"",value:e.pincode,placeholder:"Enter Pincode",disabled:!!(b!=null&&b.pincode)&&$===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:et=>{et.target.value.length>6||c({event:et,name:"pincode"})},type:"number",error:_(e,b)?i.pincode:"",textStyle:_(e,b)||o?"placeholder:pds2-text-text-error":"placeholder:pds2-text-text-04"}),o||i.pincode&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-text-error pds2-mt-4",children:i.pincode})]})]})};async function getProfilePhrUser(){const e=new Headers;e.append("Content-Type","application/json");const s={method:"GET",headers:e,redirect:"follow",credentials:"include"};try{const i=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${i}/profiles/v1/patient`,s)).json()}catch(i){return console.error("profilePhrUser error =>",i),[]}}const useGetProfilesPhrUser=()=>useQuery({queryKey:["profilesPhrUserResponse"],queryFn:async()=>{const e=await getProfilePhrUser();var s;return Array.isArray(e)?s=e==null?void 0:e.filter(a=>!a["health-ids"]||a["health-ids"].length===0):s=[],{profiles:s}}}),GetAllProfilesScreen=()=>{const e=useAuthAbhaStore(j=>j.setScreen);useAuthAbhaStore(j=>j.screen),useAuthAbhaStore(j=>j.goBackLoginScreen),useAuthAbhaStore(j=>j.clearAbhaAuthStore);const[s,i]=reactExports.useState(!1),[a,o]=reactExports.useState(""),c=useAuthAbhaStore(j=>j.clientId),g=useAuthAbhaStore(j=>j.aadhaarVerificationSkipStateStatus),_=useAuthAbhaStore(j=>j.isEkaAppLogin),b=useAuthAbhaStore(j=>j.isNewLoginOrCreateFlow),$=useAuthAbhaStore(j=>j.txnId),et=GET_EXTRA_HEADERS(),ot=useAuthAbhaStore(j=>j.abhaAuthFlowMethod),rt=({name:j,data:tt={}})=>{var ut,ht;const nt={...{login_platform:c,is_eka_app_login:_?"true":"false",is_new_login_or_create_flow:b?"true":"false",txn_id:$||"missing txnId",oid:et!=null&&et["X-User-ID"]?"true":"false",access_token:et!=null&&et.auth?"true":"false",flow:ot??""},...tt};handleSendEvent({eventName:j,eventData:nt}),(ht=(ut=window.curio)==null?void 0:ut.pushToMixpanel)==null||ht.call(ut,j,nt)};reactExports.useEffect(()=>{if(c==="doctor"){rt({name:"page_view",data:{platform:c,page_view:"get-all-profiles-screen"}}),rt({name:"redirect_to_create_eka_profile_screen",data:{type:"next"}}),e(SCREEN_NAMES.CREATE_EKA_PROFILE);return}},[c]);let at=!1;_?at=!1:_||(c==="doctor"?at=!1:at=!0);const{data:it,error:st,isLoading:dt}=at?useGetProfilesPhrUser():{data:null,error:null,isLoading:!1};return reactExports.useEffect(()=>{if(c==="doctor")return;(async()=>{!dt&&it&&(i(!0),await new Promise(tt=>setTimeout(tt,2e3)),i(!1),!it.profiles||it.profiles.length<1?g===ABHA_V3_SKIP_STATES.ABHA_END?(rt({name:"redirect_to_create_phr_eka_profile_screen",data:{type:"next",skip_state:g}}),e(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE)):(rt({name:"redirect_to_create_eka_profile_screen",data:{type:"next",skip_state:g}}),e(SCREEN_NAMES.CREATE_EKA_PROFILE)):(rt({name:"redirect_to_select_eka_profile_screen",data:{type:"next",skip_state:g}}),e(SCREEN_NAMES.SELECT_EKA_PROFILE)))})()},[dt,it]),s?jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!0,loadingText:"In progress...",successText:""}):null};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 Rt;const[e,s]=reactExports.useState(null),i=useAuthAbhaStore(It=>It.setScreen),a=useAuthAbhaStore(It=>It.goBackLoginScreen),o=useAuthAbhaStore(It=>It.txnId),c=useAuthAbhaStore(It=>It.authTxnId),g=useAuthAbhaStore(It=>It.abhaAddressList),_=useAuthAbhaStore(It=>It.setBottomsheetErrorInfo),b=useAuthAbhaStore(It=>It.clearAbhaAuthStore),$=useAuthAbhaStore(It=>It.setSelectedAbhaAddress),et=useAuthAbhaStore(It=>It.abhaAuthFlowMethod);useAuthAbhaStore(It=>It.loginIdentifierValue);const[ot,rt]=reactExports.useState(""),[at,it]=reactExports.useState(!1),st=useAuthAbhaStore(It=>It.setEkaProfileInfo),dt=useAuthAbhaStore(It=>It.setAbhaAuthFlowMethod),j=useAuthAbhaStore(It=>It.setAadhaarVerificationSkipStateStatus),tt=useAuthAbhaStore(It=>It.identifierValue),[_e,nt]=reactExports.useState(LOADING_STATE.IDLE),ut=["M","F","O","U"],{mutateAsync:ht}=usePostAuthVerifyV2(),{mutateAsync:gt}=usePostAbdmProfileLoginPhr();useAuthAbhaStore(It=>It.ekaProfileInfo),useAuthAbhaStore(It=>It.registrationType);const ft=useAuthAbhaStore(It=>It.clientId),_t=useAuthAbhaStore(It=>It.isEkaAppLogin),At=useAuthAbhaStore(It=>It.setRegistrationType),kt=useAuthAbhaStore(It=>It.abhaAuthFlowMethod),St=useAuthAbhaStore(It=>It.identityValue),Ct=useAuthAbhaStore(It=>It.setMobileInitResponse),[Ot,xt]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),pt=useAuthAbhaStore(It=>It.setAadhaarInitResponse),vt=useAuthAbhaStore(It=>It.setSelectedAbhaFlow),lt=useAuthAbhaStore(It=>It.isNewLoginOrCreateFlow),ct=GET_EXTRA_HEADERS(),yt=useAuthAbhaStore(It=>It.setLoginIdentifierValue),[mt,wt]=reactExports.useState(!1),Tt=({name:It,data:Ft={}})=>{var Gt,$t;const Vt={...{login_platform:ft,is_eka_app_login:_t?"true":"false",is_new_login_or_create_flow:lt?"true":"false",txn_id:o||"missing txnId",oid:ct!=null&&ct["X-User-ID"]?"true":"false",access_token:ct!=null&&ct.auth?"true":"false",flow:kt??""},...Ft};handleSendEvent({eventName:It,eventData:Vt}),($t=(Gt=window.curio)==null?void 0:Gt.pushToMixpanel)==null||$t.call(Gt,It,Vt)},bt=async()=>{Tt({name:"abha_login_select_abha_init_started",data:{method:kt,platform:ft}});const It=(Ft,Pt)=>{xt(Vt=>({...Vt,[Ft]:Pt}))};if(At(REGISTRATION_TYPE.CREATE),kt===ABHA_AUTH_FLOW_METHOD.MOBILE){const{txn_id:Ft,hint:Pt,error:Vt,action:Gt}=await postRegisterMobileInit({mobile_number:St});if(Ft&&Pt){Tt({name:"abha_login_select_abha_mobile_init_success",data:{method:kt,platform:ft,txn_id:Ft}}),Ct({authTxnId:c,txnId:Ft,mobileOtpSentToHint:Pt}),vt("mobile"),It("mobile",LOADING_STATE.RESOLVED),At(REGISTRATION_TYPE.CREATE),i(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}Tt({name:"abha_login_select_abha_init_failed",data:{method:kt,platform:ft,reason:Vt||"unknown",reason_exists:!!Vt}}),It("mobile",LOADING_STATE.REJECTED),Gt?_(Gt):rt(Vt||"Something went wrong")}else if(kt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){Tt({name:"abha_fetching_profiles",data:{method:kt,platform:ft}}),i(SCREEN_NAMES.GET_ALL_PROFILES);return}},jt=async()=>{var Bt,er,Wt,tr,Ut,Qt;if(et===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&e){nt(LOADING_STATE.LOADING),setIndividualEnv({extraHeaders:{auth:""}}),_t||await postAuthLogoutV2()||Tt({name:"logout_api_failed_before_init_on_continue_click",data:{method:kt,platform:ft,reason:"logout_api_response_false"}});const{txn_id:Mt,error:Nt,action:Xt,hint:ir}=await postAbdmLoginInit({method:ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,identifier:e.abha_address});if(Tt({name:"abha_abdm_login_init_triggered",data:{flow_step_type:"init",authTxnId:c,ndhmTxnId:Mt,method:kt}}),console.log("after postAbdmLoginInit",Xt),console.log("after postAbdmLoginInit",Xt),Xt){Tt({name:"abha_abdm_login_init_abha_error_action",data:{method:kt,platform:ft,action:((Bt=Xt==null?void 0:Xt.cta)==null?void 0:Bt.title)||"unknown",action_exists:!!((er=Xt==null?void 0:Xt.cta)!=null&&er.title)}}),_(Xt);return}if(Nt){Tt({name:"abha_abdm_login_init_failed",data:{method:kt,platform:ft,reason:Nt||"unknown",reason_exists:!!Nt}}),nt(LOADING_STATE.REJECTED),rt(Nt||"Something went wrong. Please try again.");return}if(!Mt){rt("Something went wrong. Please try again.");return}Tt({name:"abha_login_init_success",data:{flow_step_type:"init",authTxnId:c,ndhmTxnId:Mt,hint:ir}}),pt({authTxnId:c,txnId:Mt,aadhaarOtpSentToHint:ir||null}),nt(LOADING_STATE.RESOLVED),yt(e.abha_address),dt(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),i(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}if(!e)return;if($(e.abha_address),console.log(_e,"from abha"),!o){Tt({name:"abha_login_select_abha_txnId_not_found",data:{platform:ft,reason:"txnId missing",reason_exists:!0}});return}nt(LOADING_STATE.LOADING),Tt({name:"abha_login_select_abha_verify_start",data:{platform:ft,txn_id:o}});const{error:It,eka:Ft,profile:Pt,action:Vt,skip_state:Gt}=await gt({txn_id:o,phr_address:e.abha_address});if(Vt){Tt({name:"abha_login_select_abha_error_action",data:{platform:ft,txn_id:o,action:((Wt=Vt==null?void 0:Vt.cta)==null?void 0:Wt.title)||"unknown",action_exists:!!((tr=Vt==null?void 0:Vt.cta)!=null&&tr.title)}}),_(Vt);return}if(It||!Ft){Tt({name:"abha_login_select_abha_abdm_error",data:{platform:ft,txn_id:o,error_message:It||"eka object missing",error_exists:!!It}}),nt(LOADING_STATE.REJECTED),rt(It);return}if(!Gt){rt("skip State is missing");return}if(Tt({name:"abha_login_select_abha_verify_success",data:{platform:ft,txn_id:o,skip_state:Gt}}),j(Gt),Pt&&(Tt({name:"abha_login_select_abha_profile_received",data:{platform:ft}}),st({date_of_birth:`${Pt.year_of_birth}-${String(Pt.month_of_birth).padStart(2,"0")}-${String(Pt.day_of_birth).padStart(2,"0")}`,firstname:Pt.first_name,lastname:Pt.last_name,pincode:Pt.pincode,gender:Pt.gender,name:Pt.first_name+" "+Pt.last_name,mobile:Pt.mobile,oid:Ft==null?void 0:Ft.oid,middlename:Pt.middle_name,abha_address:Pt.abha_address,abha_number:Pt.abha_number}),$(Pt.abha_address)),_t){if(!Ft.oid){Tt({name:"abha_login_select_abha_oid_null",data:{platform:ft,oid:(Ft==null?void 0:Ft.oid)??"null_or_undefined"}}),nt(LOADING_STATE.REJECTED);return}const Mt=ut.includes(Pt==null?void 0:Pt.gender)?Pt==null?void 0:Pt.gender:void 0,Nt={oid:(Ft==null?void 0:Ft.oid)||"",fln:(Pt==null?void 0:Pt.first_name)+" "+(Pt==null?void 0:Pt.last_name),dob:`${Pt==null?void 0:Pt.year_of_birth}-${String(Pt==null?void 0:Pt.month_of_birth).padStart(2,"0")}-${String(Pt==null?void 0:Pt.day_of_birth).padStart(2,"0")}`,gen:Mt,mobile:Pt==null?void 0:Pt.mobile,fn:(Pt==null?void 0:Pt.first_name)||"",mn:(Pt==null?void 0:Pt.middle_name)||"",ln:(Pt==null?void 0:Pt.last_name)||"","health-ids":Pt!=null&&Pt.abha_address?[Pt.abha_address]:void 0,abha_number:(Pt==null?void 0:Pt.abha_number)||""},Xt=getMockAuthVerifyResponse(Nt);if(nt(LOADING_STATE.RESOLVED),Tt({name:"abha_login_select_abha_inside_app_success",data:{platform:ft,oid:Ft.oid}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Ut=window.EkaAbha)==null||Ut.onAbhaSuccess(JSON.stringify({response:Xt}));return}onAbhaSuccess({response:Xt}),unMount();return}if(!Ft.min_token||!c){Tt({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"}}),nt(LOADING_STATE.REJECTED),rt(It||"Something went wrong. Please try again.");return}const $t=await ht({txn_id:c,token:Ft.min_token,...Ft.oid?{oid:Ft.oid}:null});if(!$t.data){Tt({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"}}),nt(LOADING_STATE.REJECTED),rt(((Qt=$t.error)==null?void 0:Qt.message)||"Something went wrong, please try again");return}nt(LOADING_STATE.RESOLVED),Tt({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}})},Lt=()=>{const It=useAuthAbhaStore.getState().initAbhaAppMobileNumber,Ft=useAuthAbhaStore.getState().isEkaAppLogin,Pt=ft;a(),b(),useAuthAbhaStore.setState({clientId:Pt}),useAuthAbhaStore.setState({initAbhaAppMobileNumber:It}),useAuthAbhaStore.setState({isEkaAppLogin:Ft})};return reactExports.useEffect(()=>{if(!(g!=null&&g.length))return;const It=g.find(Ft=>Ft.kyc_verified==="VERIFIED");s(It??null)},[]),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:((Rt=g==null?void 0:g[0])==null?void 0:Rt.kyc_verified)&&jsxRuntimeExports.jsx(CircleInfoRegularIcon,{onClick:()=>wt(It=>!It),className:"pds2-w-20 pds2-h-20 pds2-text-icon-03 pds2-text-[2rem] hover:pds2-cursor-pointer"}),className:"pds2-border-b pds2-border-bg-seperator-dark pds2-bg-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),mt&&jsxRuntimeExports.jsx("div",{onMouseLeave:()=>wt(!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:jt}),((g==null?void 0:g.length)??0)<6&&(et===ABHA_AUTH_FLOW_METHOD.MOBILE||et===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-gap-16",children:[jsxRuntimeExports.jsx(TextSeparator,{title:"or"}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Create new ABHA Address",prefixIcon:jsxRuntimeExports.jsx(PlusRegularIcon,{}),className:"pds2-justify-center pds2-text-text-brand pds2-bg-border-brand-02 pds2-border-border-03 Body1Semibold",onClick:bt})]})]}),et===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&jsxRuntimeExports.jsxs("div",{className:"pds2-text-center pds2-bg-bg-02 pds2-py-8",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-text-03 Body2Regular",children:"Your ABHA No: "}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-01 Body2Semibold",children:tt==null?void 0:tt.abha_number})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-bg-bg-white pds2-shadow-lg pds2-w-full pds2-sticky pds2-bottom-0 pds2-border-border-brand-02 pds2-p-16 z-10",children:[ot&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error pds2-text-center pds2-mb-4",children:ot}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:e===null||_e===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:_e===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:jt})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Lt}),jsxRuntimeExports.jsx(ExitPopup,{open:at,setOpen:it})]})},AbhaList=({list:e,selectedAbha:s,setSelectedAbha:i,handleContinueClick:a})=>jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-16 pds2-border pds2-border-border-brand-02 pds2-w-full pds2-relative",children:e==null?void 0:e.map((o,c)=>jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsxs("label",{className:"pds2-p-16 pds2-flex pds2-space-x-8",children:[jsxRuntimeExports.jsx("input",{className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14 pds2-p-2 checked:pds2-accent-text-brand",type:"radio",value:o.abha_address,checked:(s==null?void 0:s.abha_address)===o.abha_address,onChange:()=>{i(o)},onKeyDown:g=>g.key==="Enter"&&a()}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-4 pds2-flex-1",children:[jsxRuntimeExports.jsxs("div",{className:"TitlesSubheadline pds2-text-text-primary pds2-flex pds2-flex-row pds2-items-center pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{children:o==null?void 0:o.abha_address}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-row pds2-items-center",children:(o==null?void 0:o.kyc_verified)&&(o.kyc_verified==="VERIFIED"?jsxRuntimeExports.jsx("div",{className:"Label1Bold pds2-rounded-full pds2-h-full",children:jsxRuntimeExports.jsx(CircleCheckSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-success-02 pds2-text-[2rem]"})}):jsxRuntimeExports.jsx("div",{className:"Label1Bold pds2-rounded-full pds2-h-full",children:jsxRuntimeExports.jsx(CircleExclamationSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-orange-300 pds2-text-[2rem]"})}))})]}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03 Body3Regular pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-4",children:(o==null?void 0:o.name)&&jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-text-03",children:o.name})})]})]}),c!==e.length-1&&jsxRuntimeExports.jsx("div",{className:"pds2-px-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-border-03 pds2-h-1 pds2-w-full"})})]},o.abha_address))}),TooltipContent=()=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-py-14 pds2-bg-bg-purple-800 pds2-rounded-16 pds2-w-150 pds2-animate-slide-up",children:[jsxRuntimeExports.jsxs("div",{className:" pds2-px-16 pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-py-6",children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-full",children:jsxRuntimeExports.jsx(CircleExclamationSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-orange-400"})}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-invert",children:"Non KYC"})]}),jsxRuntimeExports.jsxs("div",{className:" pds2-px-16 pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-py-6 pds2-border-t-1 pds2-border-[#FFFFFF4D]",children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-full",children:jsxRuntimeExports.jsx(CircleCheckSolidIcon,{className:"pds2-w-16 pds2-h-16 pds2-text-icon-success-02"})}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-invert",children:"KYC"})]})]}),SelectEkaProfileScreen=()=>{var Ot;const e=useAuthAbhaStore(xt=>xt.setScreen),s=useAuthAbhaStore(xt=>xt.setEkaProfileInfo),i=useAuthAbhaStore(xt=>xt.registrationType),a=useAuthAbhaStore(xt=>xt.goBackLoginScreen),[o,c]=reactExports.useState(null),g=useAuthAbhaStore(xt=>xt.setBottomsheetErrorInfo),_=useAuthAbhaStore(xt=>xt.clearAbhaAuthStore),[b,$]=reactExports.useState(LOADING_STATE.IDLE),[et,ot]=reactExports.useState(!1),[rt,at]=reactExports.useState(null),it=useAuthAbhaStore(xt=>xt.selectedAbhaAddress),st=useAuthAbhaStore(xt=>xt.aadhaarVerificationSkipStateStatus),{mutateAsync:dt}=usePostProfileSwitch(),j=queryClient.getQueryData(["profilesPhrUserResponse"]),tt=useAuthAbhaStore(xt=>xt.clientId),_e=useAuthAbhaStore(xt=>xt.linkToOrgIcon),nt=useAuthAbhaStore(xt=>xt.isEkaAppLogin),ut=useAuthAbhaStore(xt=>xt.isNewLoginOrCreateFlow),ht=useAuthAbhaStore(xt=>xt.txnId),gt=GET_EXTRA_HEADERS(),ft=useAuthAbhaStore(xt=>xt.abhaAuthFlowMethod),_t=({name:xt,data:pt={}})=>{var ct,yt;const lt={...{login_platform:tt,is_eka_app_login:nt?"true":"false",is_new_login_or_create_flow:ut?"true":"false",txn_id:ht||"missing txnId",oid:gt!=null&>["X-User-ID"]?"true":"false",access_token:gt!=null&>.auth?"true":"false",flow:ft??""},...pt};handleSendEvent({eventName:xt,eventData:lt}),(yt=(ct=window.curio)==null?void 0:ct.pushToMixpanel)==null||yt.call(ct,xt,lt)};reactExports.useEffect(()=>{_t({name:"choose_eka_profile_screen",data:{platform:tt,type:"select"}})},[tt]);const At=()=>{if(_t({name:"create_family_profile_clicks",data:{platform:tt,type:"create",skip_state:st}}),st===ABHA_V3_SKIP_STATES.ABHA_END){_t({name:"navigate_to_create_phr_profile_screen",data:{platform:tt}}),e(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE);return}_t({name:"navigate_to_create_eka_profile_screen",data:{platform:tt}}),e(SCREEN_NAMES.CREATE_EKA_PROFILE)},kt=async({profile:xt})=>{_t({name:"select_profile_clicks",data:{platform:tt,oid:xt.oid}}),c(xt.oid)},St=async()=>{var ct,yt,mt,wt;if(_t({name:"continue_click_on_choose_eka_profile",data:{platform:tt,selectedProfileOid:o,registrationType:i,skip_state:st}}),o&&st===ABHA_V3_SKIP_STATES.ABHA_CREATE){const Tt=j==null?void 0:j.profiles.find(bt=>bt.oid===o);if(!Tt){_t({name:"continue_click_profile_not_found",data:{platform:tt,oid:o||"unknown_oid",oid_exists:!!o}});return}_t({name:"navigate_to_create_eka_profile_screen_from_abha_create",data:{platform:tt,oid:Tt.oid}}),s({oid:Tt.oid,date_of_birth:Tt.dob,firstname:Tt.fn,lastname:Tt.ln,pincode:"",gender:Tt.gen,mobile:Tt.mobile,name:Tt.fln,middlename:Tt.mn,abha_address:(ct=Tt==null?void 0:Tt["health-ids"])==null?void 0:ct[0],abha_number:Tt.abha_number}),e(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!it||!o){_t({name:"continue_click_missing_profile_or_abha",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}});return}_t({name:"linking_abha_to_profile_start",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}}),$(LOADING_STATE.LOADING);const{error:xt,action:pt,eka:vt}=await postAbdmProfileEkaLinkPhr({abha_address:it,oid:o});if(pt){_t({name:"linking_abha_to_profile_error_action",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o}}),g(pt);return}if(xt||!vt||!vt.oid){_t({name:"linking_abha_to_profile_failed",data:{platform:tt,oid:o||"missing_oid",oid_exists:!!o,error:xt||"No EKA/OID",error_exists:!!xt}}),$(LOADING_STATE.REJECTED),at(xt||"Something went wrong. Please try again.");return}const lt=await dt({oid:vt.oid});if(lt.error){_t({name:"profile_switch_failed_after_link",data:{platform:tt,oid:(vt==null?void 0:vt.oid)||"missing_oid",oid_exists:!!(vt!=null&&vt.oid),error:((yt=lt.error)==null?void 0:yt.message)||"unknown_error",error_exists:!!((mt=lt.error)!=null&&mt.message)}}),$(LOADING_STATE.REJECTED),at(((wt=lt.error)==null?void 0:wt.message)||"Something went wrong, please try again");return}_t({name:"linking_abha_to_profile_success",data:{platform:tt,oid:vt.oid}}),$(LOADING_STATE.RESOLVED)},Ct=()=>{a();const xt=useAuthAbhaStore.getState().isEkaAppLogin,pt=tt;_(),useAuthAbhaStore.setState({clientId:pt}),useAuthAbhaStore.setState({isEkaAppLogin:xt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-bg-bg-01",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Select Eka Profile",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>ot(!0),children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),className:"pds2-border-b pds2-border-bg-seperator-dark pds2-bg-bg-white"}),jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-relative pds2-bg-bg-01 pds2-overflow-y-auto",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-overflow-y-auto pds2-px-16 pds2-pt-24 pds2-pb-32",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-16 pds2-flex pds2-flex-col pds2-items-center pds2-text-center",children:[jsxRuntimeExports.jsx("img",{src:`${_e||"https://cdn.eka.care/vagus/cm6agrs5000090tfwfz984x5b.webp"}`,alt:"link-abha-to-eka-icon",className:"pds2-w-163"}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-01 Heading3Semibold",children:"Choose an Eka Profile"}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-03",children:"Select the person for whom you want to create an ABHA address."})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-justify-center pds2-space-y-12 pds2-mt-24",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03 Body2Medium pds2-text-center",children:"Select Eka Profile"}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-8",children:(Ot=j==null?void 0:j.profiles)==null?void 0:Ot.map(xt=>{const pt=o===xt.oid;return jsxRuntimeExports.jsxs("label",{className:`pds2-flex pds2-items-center pds2-gap-x-8 pds2-cursor-pointer pds2-p-16 pds2-rounded-16 pds2-bg-bg-white pds2-border
|
|
145
62
|
pds2-border-border-03 hover:pds2-bg-bg-hover-01
|
|
146
|
-
pds2-transition-colors`,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"ekaProfile",value:Ot.oid,checked:wt,onChange:()=>Nt({profile:Ot}),className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14",onKeyDown:_t=>_t.key==="Enter"&&kt()}),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:Ot.fln}),jsxRuntimeExports.jsx("span",{className:"pds2-ml-auto pds2-text-text-brand pds2-text-14 pds2-font-600",children:"Link"})]})]},Ot.oid)})}),jsxRuntimeExports.jsx(TextSeparator,{title:"or"}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Create new Family Member",prefixIcon:jsxRuntimeExports.jsx(l$6,{}),className:"pds2-justify-center pds2-text-text-brand pds2-border-bg-fab-bg-brand-04 Body1Semibold",onClick:Mt})]})]}),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:[ot&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error pds2-text-center pds2-mb-8",children:ot}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:et===null||it===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:it===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:kt})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Pt}),jsxRuntimeExports.jsx(ExitPopup,{open:st,setOpen:ut})]})},LoginorCreateAbhaScreen=()=>{const a=useAuthAbhaStore(_e=>_e.clientId);reactExports.useEffect(()=>{var _e;if((_e=window.EkaAbha)!=null&&_e.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var et,tt;(et=window.EkaAbha)!=null&&et.changeStatusBarColor&&((tt=window==null?void 0:window.EkaAbha)==null||tt.changeStatusBarColor("#FFFFFF"))}},[]);const _=()=>{var _e;(_e=window.EkaAbha)==null||_e.onAbhaClose(),unMount()},$=["eka-web","phr"];return jsxRuntimeExports.jsxs("div",{className:"pds2-h-full pds2-overflow-y-auto",children:[!$.includes(a)&&jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{onClick:_,children:jsxRuntimeExports.jsx(n$2,{})}),title:"",className:"pds2-bg-bg-01"}),jsxRuntimeExports.jsx(LoginOrCreateWithDifferentMethods,{})]})},LoginOrCreateWithDifferentMethods=()=>{const a=useAuthAbhaStore(Wt=>Wt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),_=useAuthAbhaStore(Wt=>Wt.setAbhaAuthFlowMethod),$=useAuthAbhaStore(Wt=>Wt.goBackToLogin),_e=useAuthAbhaStore(Wt=>Wt.setGoBackToLogin);useAuthAbhaStore(Wt=>Wt.initAbhaAppIdentifierSource);const et=useAuthAbhaStore(Wt=>Wt.setIdentifierValue),tt=useAuthAbhaStore(Wt=>Wt.identifierValue),rt=useAuthAbhaStore(Wt=>Wt.isEkaAppLogin),nt=useAuthAbhaStore(Wt=>Wt.setSelectedAbhaAddress),it=useAuthAbhaStore(Wt=>Wt.setLoginIdentifierValue),at=useAuthAbhaStore(Wt=>Wt.setRegistrationType),st=useAuthAbhaStore(Wt=>Wt.setAadhaarInitResponse),ut=useAuthAbhaStore(Wt=>Wt.setMobileInitResponse),ot=useAuthAbhaStore(Wt=>Wt.initAbhaAppMobileNumber),pt=useAuthAbhaStore(Wt=>Wt.initAbhaAppIdentifierType),ht=useAuthAbhaStore(Wt=>Wt.initAbhaAppIdentifier),dt=useAuthAbhaStore(Wt=>Wt.setInitAbhaAppIdentifier),gt=useAuthAbhaStore(Wt=>Wt.isDocAppRequest),lt=useAuthAbhaStore(Wt=>Wt.isNewLoginOrCreateFlow),ft=useAuthAbhaStore(Wt=>Wt.setIsNewLoginOrCreateFlow),ct=useAuthAbhaStore(Wt=>Wt.clientId),mt=useAuthAbhaStore(Wt=>Wt.isInitApiTriggered),yt=useAuthAbhaStore(Wt=>Wt.setIsInitApiTriggered),Et=useAuthAbhaStore(Wt=>Wt.setIdentityValue);useAuthAbhaStore(Wt=>Wt.identityValue);const St=useAuthAbhaStore(Wt=>Wt.setSelectedAbhaFlow),At=useAuthAbhaStore(Wt=>Wt.txnId),[Mt,Nt]=reactExports.useState(LOADING_STATE.IDLE),[kt,Pt]=reactExports.useState(""),Dt=useAuthAbhaStore(Wt=>Wt.setScreen),[Ot,wt]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),[_t,bt]=reactExports.useState(tt.mobile||""),[vt,xt]=reactExports.useState(!1),[Ct,Tt]=reactExports.useState(!1),[It,Rt]=reactExports.useState(tt.aadhaar_number||""),[Lt,Ht]=reactExports.useState(tt.abha_number||""),[jt,Qt]=reactExports.useState(""),[$t,Bt]=reactExports.useState(tt.phr_address||""),Vt=reactExports.useRef(!1),Kt=GET_EXTRA_HEADERS();reactExports.useEffect(()=>{qt({name:"abha_login_or_create_screen",data:{flow:a.toString()}})}),reactExports.useEffect(()=>{ht&&pt===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?(Qt(ht),Bt(ht.split("@")[0]),et({phr_address:ht.split("@")[0]}),Ut(!0),vr(!0),_(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS)):ht&&pt===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?(et({abha_number:ht}),Ht(ht),Ut(!0),sr(!0),_(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER)):ht&&pt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?(Rt(ht),Tt(!0),et({aadhaar_number:ht}),_(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)):ht&&pt===ABHA_AUTH_FLOW_METHOD.MOBILE&&(bt(ht),et({mobile:ht}),xt(ht.length===10),Pt(null),_(ABHA_AUTH_FLOW_METHOD.MOBILE))},[pt,ht]),reactExports.useEffect(()=>{mt||Vt.current||_t&&_t.length===10&&(yt(!0),Vt.current=!0,ir("auto_submit_mobile"))},[_t]),reactExports.useEffect(()=>{mt||Vt.current||It&&It.length===12&&(yt(!0),Vt.current=!0,ir("auto_submit_aadhaar"))},[It]),reactExports.useEffect(()=>{mt||Vt.current||Lt&&Lt.length===17&&(yt(!0),Vt.current=!0,ir("auto_submit_abha"))},[Lt]),reactExports.useEffect(()=>{mt||Vt.current||jt&&jt.includes("@sbx")&&(yt(!0),Vt.current=!0,ir("auto_submit_phr"))},[jt]);const qt=({name:Wt,data:Zt={}})=>{var Ar,br;const yr={...{login_platform:ct,is_eka_app_login:rt?"true":"false",is_new_login_or_create_flow:lt?"true":"false",oid:Kt!=null&&Kt["X-User-ID"]?"true":"false",access_token:Kt!=null&&Kt.auth?"true":"false",txn_id:At||"missing txnId",flow:a??""},...Zt};handleSendEvent({eventName:Wt,eventData:yr}),(br=(Ar=window.curio)==null?void 0:Ar.pushToMixpanel)==null||br.call(Ar,Wt,yr)},Yt=React.useMemo(()=>{switch(a){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""}},[a]),Gt=Wt=>{Pt("");const Zt=Wt.target.value;switch(a){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:if(Zt.length>20)return;Bt(Zt),et({phr_address:Zt}),dt(null);break;case ABHA_AUTH_FLOW_METHOD.MOBILE:if(Zt&&!/^[0-9]+$/.test(Zt)||Zt.length>10)return;bt(Zt),xt(!0),et({mobile:Zt}),dt(null);break;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:if(!/^[\d-]*$/.test(Zt)||Zt.length>17)return;const mr=Wt.target.value.replace(/-/g,"");let yr="";return mr.length>0&&(yr+=mr.slice(0,2)),mr.length>2&&(yr+=`-${mr.slice(2,6)}`),mr.length>6&&(yr+=`-${mr.slice(6,10)}`),mr.length>10&&(yr+=`-${mr.slice(10,14)}`),Ht(yr),dt(null),et({abha_number:yr.trim()});case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:if(Zt&&!/^[0-9]+$/.test(Zt)||Zt.length>12)return;Rt(Zt),Tt(!0),dt(null),et({aadhaar_number:Zt});break}};ABHA_AUTH_FLOW_METHOD.MOBILE;const Xt=React.useMemo(()=>{switch(a){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return tt.phr_address.length>=4&&tt.phr_address.length<=20;case ABHA_AUTH_FLOW_METHOD.MOBILE:return tt.mobile.length===10;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return tt.abha_number.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return tt.aadhaar_number.length===12}},[a,tt]),er=(Wt,Zt)=>{wt(mr=>({...mr,[Wt]:Zt}))},dr=({inputVal:Wt})=>{Wt.length===12&&(et({aadhaar_number:Wt}),Rt(Wt),Tt(!0))};reactExports.useEffect(()=>{console.log("selectedMethod changed:==================>",a)},[a]);const ir=async Wt=>{var yr,Ar,br;ft(!0),qt({name:"abha_login_next_click",data:{flow_step_type:Wt}}),Nt(LOADING_STATE.LOADING),at(REGISTRATION_TYPE.LOGIN);let Zt="";if(!rt){const Nr=await postAuthLogoutV2();qt({name:Nr?"abha_logout_success":"abha_logout_failure",data:{platform:ct}});const{txn_id:Mr,error:kr}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!Mr||kr){qt({name:"abha_auth_init_failure",data:{flow_step_type:"init",authTxnId:Zt,error_message:kr||"missing_txnId_or_unknown_error",error_message_exists:!!kr,txn_id_exists:!!Mr}}),Pt((kr==null?void 0:kr.message)||"Something went wrong. Please try again."),Nt(LOADING_STATE.REJECTED);return}Zt=Mr,qt({name:"abha_auth_init_success.",data:{flow_step_type:"init",auth_txnId:Zt}})}const mr=a===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?`${tt.phr_address}@sbx`:a===ABHA_AUTH_FLOW_METHOD.MOBILE?tt.mobile:a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?tt.abha_number:a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?tt.aadhaar_number:"";if(a===ABHA_AUTH_FLOW_METHOD.MOBILE||a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER||a===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS){const{txn_id:Nr,error:Mr,action:kr,hint:Lr}=await postAbdmLoginInit({method:a,identifier:mr});if(Et(mr),qt({name:"abha_login_init_triggered",data:{flow_step_type:"init",authTxnId:Zt,ndhmTxnId:Nr,method:a}}),a===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&nt(mr),Mr||!Nr){if(_e(!0),((yr=kr==null?void 0:kr.cta)==null?void 0:yr.pid)==="abha_mobile_enroll"&&a===ABHA_AUTH_FLOW_METHOD.MOBILE){er("mobile",LOADING_STATE.LOADING),at(REGISTRATION_TYPE.CREATE);const{txn_id:Wr,hint:Hr,error:Tr,action:Jr}=await postRegisterMobileInit({mobile_number:tt.mobile});if(Et(tt.mobile),St("mobile"),Wr&&Hr){ut({authTxnId:Zt,txnId:Wr,mobileOtpSentToHint:Hr}),qt({name:"abha_mobile_registration_init_success",data:{flow_step_type:"init",authTxnId:Zt,ndhmTxnId:Nr,error_message:Tr,error_action:kr}}),er("mobile",LOADING_STATE.RESOLVED),Nt(LOADING_STATE.RESOLVED),at(REGISTRATION_TYPE.CREATE),Dt(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}if(er("mobile",LOADING_STATE.REJECTED),qt({name:"abha_mobile_registration_init_failure",data:{flow_step_type:"init",authTxnId:Zt,error_message:Tr||"unknown_error",error_message_exists:!!Tr,error_action_exists:!!Jr}}),Jr){if((Ar=Jr==null?void 0:Jr.cta)!=null&&Ar.pid)return Dt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA)}else Pt(Tr||"Something went wrong");Pt(Tr||"Something went wrong. Please try again."),Nt(LOADING_STATE.REJECTED);return}qt({name:"abha_login_init_failure",data:{flow_step_type:"init",authTxnId:Zt,error_message:Mr||"unknown_error",error_message_exists:!!Mr,error_action_exists:!!kr}}),Pt(Mr||"Something went wrong. Please try again."),Nt(LOADING_STATE.REJECTED);return}qt({name:"abha_login_init_success",data:{flow_step_type:"init",authTxnId:Zt,ndhmTxnId:Nr,hint:Lr}}),st({authTxnId:Zt,txnId:Nr,aadhaarOtpSentToHint:Lr||null}),_e(!1),it(mr),Nt(LOADING_STATE.RESOLVED),Dt(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}if(a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){er("aadhaar",LOADING_STATE.LOADING),qt({name:"aadhaar_registration_init_start",data:{flow_step_type:"init",authTxnId:Zt,aadhaarNumber:tt.aadhaar_number}});const{txn_id:Nr,hint:Mr,error:kr,action:Lr}=await postRegisterAadhaarInit({aadhaar_number:tt.aadhaar_number});if(Et(tt.aadhaar_number),St("aadhaar"),Nr&&Mr){st({authTxnId:Zt,txnId:Nr,aadhaarOtpSentToHint:Mr}),qt({name:"aadhaar_registration_init_success",data:{flow_step_type:"verify",ndhmTxnId:Nr,authTxnId:Zt}}),_e(!1),er("aadhaar",LOADING_STATE.RESOLVED),at(REGISTRATION_TYPE.CREATE),Nt(LOADING_STATE.RESOLVED),Dt(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}if(qt({name:"abha_registration_init_failure",data:{error_message:kr||"unknown_error",error_message_exists:!!kr,auth_txn_id:Zt,error_action:Lr,error_action_exists:!!Lr}}),er("aadhaar",LOADING_STATE.REJECTED),Nt(LOADING_STATE.REJECTED),Lr||kr){_e(!0),(br=Lr==null?void 0:Lr.cta)!=null&&br.pid?Dt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA):Pt(kr||"Something went wrong");return}}},[rr,Ut]=reactExports.useState(!1),[zt,sr]=reactExports.useState($&&a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),[lr,vr]=reactExports.useState($&&a===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-pt-22 pds2-p-16 pds2-bg-bg-01 pds2-space-y-16 pds2-text-center pds2-rounded-b-24",children:[jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center pds2-gap-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-16",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64"})})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-text-black",children:ct==="phr"?"Login or Create your ABHA":gt?"Add Patient via ABHA":"Create your ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03",style:{marginTop:"4px"},children:a===ABHA_AUTH_FLOW_METHOD.MOBILE?gt?"Enter Patient's Mobile Number":"Enter your Mobile Number":a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?gt?"Enter Patient's Aadhaar Number":"Enter your Aadhaar Number":a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?gt?"Enter Patient's ABHA Number":"Enter your ABHA Number":a===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?gt?"Enter Patient's ABHA Address":"Enter your ABHA Address":Yt}),(a===ABHA_AUTH_FLOW_METHOD.MOBILE||a===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:a===ABHA_AUTH_FLOW_METHOD.MOBILE?0:"50%",width:"50%",boxShadow:"0px 10px 4px -6px #18274B17"}}),jsxRuntimeExports.jsxs("button",{onClick:()=>{_(ABHA_AUTH_FLOW_METHOD.MOBILE),Pt("")},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(n$1,{className:"pds2-w-14 pds2-h-14 pds2-text-icon-success-02"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${a===ABHA_AUTH_FLOW_METHOD.MOBILE?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:a===ABHA_AUTH_FLOW_METHOD.MOBILE?{fontWeight:700}:{fontWeight:400},children:"Mobile"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{_(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),Pt("")},className:"pds2-flex-1 pds2-py-6 pds2-flex pds2-items-center pds2-justify-center pds2-gap-8 pds2-relative pds2-z-10",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?{fontWeight:700}:{fontWeight:400},children:"Aadhaar"})]})]}),(a===ABHA_AUTH_FLOW_METHOD.MOBILE||a===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:a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?jsxRuntimeExports.jsx(SpacedInputComponent,{initialValues:pt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!$?(ht==null?void 0:ht.match(/.{1,4}/g))??void 0:(It==null?void 0:It.match(/.{1,4}/g))??void 0,disabled:!$&&pt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!ht,numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:dr,setIsValid:Tt,setAadhaarValue:Rt,setError:Pt}):jsxRuntimeExports.jsx(Pds2InputField,{value:pt===ABHA_AUTH_FLOW_METHOD.MOBILE&&!$?ht||"":_t,disabled:!$&&pt===ABHA_AUTH_FLOW_METHOD.MOBILE&&!!ht,onChange:Gt,type:"tel",autoComplete:"tel-national",placeholder:"Mobile Number",inputMode:"numeric",autoFocus:!0,maxLength:10,PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-border-brand-02 pds2-pr-24",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4mlct2900000tg98p8u967s.webp",alt:"indian-flag-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-black pds2-text-sm",children:"+91"})]})})}),kt&&(a===ABHA_AUTH_FLOW_METHOD.MOBILE||a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular",children:kt}),(a===ABHA_AUTH_FLOW_METHOD.MOBILE||a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$2,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!Xt||Mt===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:Mt===LOADING_STATE.LOADING,onClick:()=>ir("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:()=>Ut(!rr),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:gt?"Other add options for ABHA":"Other login options for ABHA"}),jsxRuntimeExports.jsx(c$2,{className:`pds2-w-16 pds2-h-16 pds2-text-text-03 pds2-transition-transform ${rr?"pds2-rotate-180":""}`})]}),jsxRuntimeExports.jsxs("div",{className:`pds2-overflow-hidden pds2-transition-all pds2-duration-300 ${rr?"pds2-max-h-126 pds2-opacity-100":"pds2-max-h-0 pds2-opacity-0"}`,children:[jsxRuntimeExports.jsxs("button",{onClick:()=>{Ut(!1),_(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),sr(!0),Pt("")},className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-12 hover:pds2-bg-bg-02 pds2-transition-colors",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-12",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-40 pds2-h-40 pds2-rounded-full pds2-bg-bg-02 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-24 pds2-h-24"})}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-black",children:gt?"Add patient with ABHA Number":"Login with ABHA Number"})]}),jsxRuntimeExports.jsx(c$2,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-text-03"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{Ut(!1),_(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),vr(!0),Pt("")},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:gt?"Add patient with ABHA Address":"Login with ABHA Address"})]}),jsxRuntimeExports.jsx(c$2,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-text-03"})]})]})]}),jsxRuntimeExports.jsx(AbhaBottomSheet,{isOpen:zt,setIsOpen:sr,setFlowMethod:_,setError:Pt,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:()=>{Pt(null),sr(!1),_(ABHA_AUTH_FLOW_METHOD.MOBILE)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-text-03 hover:pds2-text-text-black",children:"✕"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-mb-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-w-64 pds2-h-64 pds2-rounded-full pds2-bg-bg-01 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-48 pds2-h-48"})})}),jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-text-black",children:gt?"Add Patient with ABHA Number":"Login with ABHA Number"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-text-03 pds2-mb-24",children:gt?"Enter Patient's 14 digit ABHA Number":"Enter your 14 digit ABHA Number"}),jsxRuntimeExports.jsx(Pds2InputField,{value:pt===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!$?ht||"":Lt,disabled:!$&&pt===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!!ht,onChange:Gt,placeholder:"00-0000-0000-0000",padding:"pds2-p-18",textStyle:"Body2Regular pds2-text-center pds2-text-lg",borderStyle:"focus-within:pds2-border-border-brand-01",type:"tel",autoComplete:"tel-national",inputMode:"numeric",autoFocus:!0,onKeyDown:Wt=>{Wt.key==="Enter"&&ir("after_enter_abha_number_on_click_by_user")}}),kt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular pds2-mt-12",children:kt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$2,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!tt||Mt===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>ir("after_enter_abha_number_on_click_by_user"),className:`pds2-w-full ${kt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:Mt===LOADING_STATE.LOADING})]})]})}),jsxRuntimeExports.jsx(AbhaBottomSheet,{isOpen:lr,setIsOpen:vr,setFlowMethod:_,setError:Pt,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:()=>{Pt(null),vr(!1),_(ABHA_AUTH_FLOW_METHOD.MOBILE)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-text-03 hover:pds2-text-text-black",children:"✕"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-mb-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-w-64 pds2-h-64 pds2-rounded-full pds2-bg-bg-01 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-48 pds2-h-48"})})}),jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-text-black",children:gt?"Add Patient with ABHA Address":"Login with ABHA Address"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-text-03 pds2-mb-24",children:gt?"Enter Patient's ABHA Address below":"Enter your ABHA Address below"}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative",children:[jsxRuntimeExports.jsx(Pds2InputField,{value:pt===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!$?(ht==null?void 0:ht.split("@")[0])||"":$t,disabled:!$&&pt===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!!ht,onChange:Gt,placeholder:"Enter ABHA Address",inputMode:"text",autoFocus:!0,onKeyDown:Wt=>{Wt.key==="Enter"&&ir("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"})]}),kt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular pds2-mt-12",children:kt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$2,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!tt||Mt===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>ir("after_enter_abha_address_on_click_by_user"),className:`pds2-w-full ${kt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:Mt===LOADING_STATE.LOADING})]})]})})]})},AbhaBottomSheet=({isOpen:a,setIsOpen:_,children:$,setFlowMethod:_e,overlayClassName:et="pds2-bg-text-black pds2-bg-opacity-50",setError:tt})=>{const[rt,nt]=reactExports.useState(a);return reactExports.useEffect(()=>{if(a)nt(!0);else{const it=setTimeout(()=>nt(!1),300);return()=>clearTimeout(it)}},[a]),rt?jsxRuntimeExports.jsxs("div",{className:`pds2-absolute pds2-inset-0 pds2-z-50 pds2-flex pds2-items-end pds2-transition-all pds2-duration-300 ${a?"pds2-opacity-100":"pds2-opacity-0 pointer-events-none"}`,children:[jsxRuntimeExports.jsx("div",{className:`pds2-absolute pds2-inset-0 ${et} pds2-transition-opacity pds2-duration-300`,style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},onClick:()=>{tt(null),_(!1),_e(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 ${a?"pds2-translate-y-0":"pds2-translate-y-full"}`,style:{height:"75%",maxHeight:"600px",overflowY:"auto"},children:$})]}):null},ScreenStack=()=>{const a=useAuthAbhaStore($=>$.screen);switch(a[a.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(a){let _=0;const $=a.split("").reverse().map(_e=>parseInt(_e,10));for(let _e=0;_e<$.length;_e++)_=d[_][p[_e%8][$[_e]]];return _===0}function isValidAadhaar(a){return/^\d{12}$/.test(a)?verhoeffValidate(a):!1}const abhaRegex=/^[0-9]{14}$/;function luhnCheck(a){let _=0,$=!1;for(let _e=a.length-1;_e>=0;_e--){let et=parseInt(a[_e],10);$&&(et*=2,et>9&&(et-=9)),_+=et,$=!$}return _%10===0}function isValidABHA(a){return!abhaRegex.test(a)||a.split("").every($=>$===a[0])?!1:luhnCheck(a)}const isValidMobile=a=>/^[6-9]\d{9}$/.test(a),setIdentifier=(a,_)=>{useAuthAbhaStore.getState().setInitAbhaAppIdentifierType(a),useAuthAbhaStore.getState().setInitAbhaAppIdentifier(_)},handleIdentifier=(a,_,$)=>{if(a){const _e=a.replace(/[\s-]/g,"");if(_){if(_===ABHA_AUTH_FLOW_METHOD.MOBILE){useAuthAbhaStore.getState().setInitAbhaAppIdentifierSource("existing"),setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,a.slice(-10));return}setIdentifier(_,a),useAuthAbhaStore.getState().setInitAbhaAppIdentifierSource("existing");return}if(_e.endsWith("@sbx")){setIdentifier(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,_e);return}if(/^\+91\d{10}$/.test(_e)){const tt=_e.slice(-10);if(tt.length===10&&isValidMobile(tt)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,tt);return}}else if(/^\d+$/.test(_e)){const tt=_e.length;if(tt===10&&isValidMobile(_e)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,_e);return}if(tt===12&&isValidAadhaar(_e)){setIdentifier(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,_e);return}if(tt===14&&isValidABHA(_e)){const rt=`${_e.slice(0,2)}-${_e.slice(2,6)}-${_e.slice(6,10)}-${_e.slice(10,14)}`;setIdentifier(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,rt);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(a){console.log("clear the abha auth store for every sdk invocation",a),useAuthAbhaStore.getState().clearAbhaAuthStore();const{clientId:_,containerId:$,urlParams:_e,method:et,data:tt,appVersion:rt,onSuccess:nt,onError:it,onAbhaClose:at}=a,{mobile:st,accessToken:ut,oid:ot,identifier:pt,identifier_type:ht}=tt||{};console.log("recieved identifier, identifier_type",pt,ht),handleSendEvent({eventName:"recieved_init_identifiers",eventData:{identifier:pt||"",identifier_type:ht||""}});const dt={};ut&&(dt.auth=ut),ot&&(dt["X-User-ID"]=ot),console.log("set headers in headers"),console.log("invoked initAbhaApp",dt);const gt=dt!==null&&("auth"in dt||"X-User-ID"in dt);useAuthAbhaStore.getState().setIsEkaAppLogin(gt),_==="doc-web"&&useAuthAbhaStore.getState().setIsEkaAppLogin(!0),console.log("clientId ",_),console.log("isEkaAppLogin",useAuthAbhaStore.getState().isEkaAppLogin),_==="androiddoc"||_==="doctor-app-ios"||_==="doctor-ipad-ios"||_==="doc-web"?useAuthAbhaStore.getState().setClientId("doctor"):_==="androidp"||_==="patient-app-ios"?useAuthAbhaStore.getState().setClientId("phr"):_==="www-eka"?useAuthAbhaStore.getState().setClientId("eka-web"):(console.log("here"),useAuthAbhaStore.getState().setClientId("phr"));let lt=!1;handleSendEvent({eventName:"init_abha_app",eventData:{platform:_,method:et||"",mobile:st||"",accessToken:ut||"",oid:ot||"",appVersion:rt||"",isEkaAppLogin:gt.toString(),container_id:$}}),onTrack("init_abha_app",{platform:_,method:et||"",mobile:st||"",accessToken:dt.auth||"",oid:dt["X-User-ID"]||"",appVersion:rt||"",isEkaAppLogin:gt.toString(),container_id:$}),(_==="androiddoc"||_==="doctor-app-ios"||_==="doctor-ipad-ios"||_==="doc-web")&&(lt=!0,useAuthAbhaStore.getState().setIsDocAppRequest(lt)),useAuthAbhaStore.getState().setInitAbhaAppMethod(et==="create_abha_with_mobile"?"create_abha_with_mobile":"login_with_abha"),setEnv({clientId:_,env:"DEV",...dt&&{extraHeaders:dt}}),console.log("isProd is",!1);const ct=SCREEN_NAMES.LOGIN_OR_CREATE_ABHA;useAuthAbhaStore.getState().setInitState({screen:[ct],urlParams:_e});const yt=ht&&["mobile","aadhaar_number","abha_number","phr_address"].includes(ht)?ht:void 0;handleIdentifier(pt,yt),useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.MOBILE);const Et=()=>{useAuthAbhaStore.getState().clearAbhaAuthStore(),queryClient.removeQueries(),PopupReactNode==null||PopupReactNode.unmount(),at()},St=document.getElementById($);if(!St){const At=`Element with id ${$} not found`;console.error(At),it({error:At}),Et();return}return onAbhaSuccess=nt,PopupReactNode=createRoot(St),PopupReactNode.render(jsxRuntimeExports.jsx(App,{})),unMount=Et,window.closeAbhaApp=Et,Et}window.initAbhaApp=initAbhaApp;function onTrack(a,_={}){var et;const $=useAuthAbhaStore.getState().clientId||"unknown-platform",_e={..._,platform:$};console.log("Tracking Event:",a,_e),(et=window.curio)!=null&&et.pushToMixpanel?(console.log("Pushing to Mixpanel:",a,_e),window.curio.pushToMixpanel(a,_e)):(console.log("Curio not available. Queuing event:",a,_e),console.error("Curio not available. Could not push event to Mixpanel."))}
|
|
63
|
+
pds2-transition-colors`,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"ekaProfile",value:xt.oid,checked:pt,onChange:()=>kt({profile:xt}),className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14",onKeyDown:vt=>vt.key==="Enter"&&St()}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-flex-1",children:[jsxRuntimeExports.jsx("div",{className:"TitlesSubheadline pds2-text-text-primary",children:xt.fln}),jsxRuntimeExports.jsx("span",{className:"pds2-ml-auto pds2-text-text-brand pds2-text-14 pds2-font-600",children:"Link"})]})]},xt.oid)})}),jsxRuntimeExports.jsx(TextSeparator,{title:"or"}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Create new Family Member",prefixIcon:jsxRuntimeExports.jsx(PlusRegularIcon,{}),className:"pds2-justify-center pds2-text-text-brand pds2-border-bg-fab-bg-brand-04 Body1Semibold",onClick:At})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-sticky pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-bg-bg-white pds2-shadow-lg pds2-p-16",children:[rt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error pds2-text-center pds2-mb-8",children:rt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:o===null||b===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:b===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:St})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Ct}),jsxRuntimeExports.jsx(ExitPopup,{open:et,setOpen:ot})]})},LoginorCreateAbhaScreen=()=>{const e=useAuthAbhaStore(a=>a.clientId);reactExports.useEffect(()=>{var a;if((a=window.EkaAbha)!=null&&a.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var o,c;(o=window.EkaAbha)!=null&&o.changeStatusBarColor&&((c=window==null?void 0:window.EkaAbha)==null||c.changeStatusBarColor("#FFFFFF"))}},[]);const s=()=>{var a;(a=window.EkaAbha)==null||a.onAbhaClose(),unMount()},i=["eka-web","phr"];return jsxRuntimeExports.jsxs("div",{className:"pds2-h-full pds2-overflow-y-auto",children:[!i.includes(e)&&jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{onClick:s,children:jsxRuntimeExports.jsx(ArrowLeftRegularIcon,{})}),title:"",className:"pds2-bg-bg-01"}),jsxRuntimeExports.jsx(LoginOrCreateWithDifferentMethods,{})]})},LoginOrCreateWithDifferentMethods=()=>{const e=useAuthAbhaStore(Dt=>Dt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),s=useAuthAbhaStore(Dt=>Dt.setAbhaAuthFlowMethod),i=useAuthAbhaStore(Dt=>Dt.goBackToLogin),a=useAuthAbhaStore(Dt=>Dt.setGoBackToLogin);useAuthAbhaStore(Dt=>Dt.initAbhaAppIdentifierSource);const o=useAuthAbhaStore(Dt=>Dt.setInitAbhaAppIdentifier),c=useAuthAbhaStore(Dt=>Dt.setIdentifierValue),g=useAuthAbhaStore(Dt=>Dt.identifierValue),_=useAuthAbhaStore(Dt=>Dt.isEkaAppLogin),b=useAuthAbhaStore(Dt=>Dt.setSelectedAbhaAddress),$=useAuthAbhaStore(Dt=>Dt.setLoginIdentifierValue),et=useAuthAbhaStore(Dt=>Dt.setRegistrationType),ot=useAuthAbhaStore(Dt=>Dt.setAadhaarInitResponse),rt=useAuthAbhaStore(Dt=>Dt.setMobileInitResponse),at=useAuthAbhaStore(Dt=>Dt.initAbhaAppMobileNumber),it=useAuthAbhaStore(Dt=>Dt.initAbhaAppIdentifierType),st=useAuthAbhaStore(Dt=>Dt.initAbhaAppIdentifier),dt=useAuthAbhaStore(Dt=>Dt.isDocAppRequest),j=useAuthAbhaStore(Dt=>Dt.isNewLoginOrCreateFlow),tt=useAuthAbhaStore(Dt=>Dt.setIsNewLoginOrCreateFlow),_e=useAuthAbhaStore(Dt=>Dt.clientId),nt=useAuthAbhaStore(Dt=>Dt.isInitApiTriggered),ut=useAuthAbhaStore(Dt=>Dt.setIsInitApiTriggered),ht=useAuthAbhaStore(Dt=>Dt.setIdentityValue);useAuthAbhaStore(Dt=>Dt.identityValue);const gt=useAuthAbhaStore(Dt=>Dt.setSelectedAbhaFlow),ft=useAuthAbhaStore(Dt=>Dt.txnId),[_t,At]=reactExports.useState(LOADING_STATE.IDLE),[kt,St]=reactExports.useState(""),Ct=useAuthAbhaStore(Dt=>Dt.setScreen),[Ot,xt]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),[pt,vt]=reactExports.useState(g.mobile||""),[lt,ct]=reactExports.useState(!1),[yt,mt]=reactExports.useState(!1),[wt,Tt]=reactExports.useState(g.aadhaar_number||""),[bt,jt]=reactExports.useState(g.abha_number||""),[Lt,Rt]=reactExports.useState(""),[It,Ft]=reactExports.useState(g.phr_address||""),Pt=reactExports.useRef(!1),Vt=GET_EXTRA_HEADERS();reactExports.useEffect(()=>{Gt({name:"abha_login_or_create_screen",data:{flow:e.toString()}})}),reactExports.useEffect(()=>{st&&it===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?(Rt(st),Ft(st.split("@")[0]),c({phr_address:st.split("@")[0]}),Mt(!0),rr(!0),s(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS)):st&&it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?(c({abha_number:st}),jt(st),Mt(!0),Xt(!0),s(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER)):st&&it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?(Tt(st),mt(!0),c({aadhaar_number:st}),s(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)):st&&it===ABHA_AUTH_FLOW_METHOD.MOBILE&&(vt(st),c({mobile:st}),ct(st.length===10),St(null),s(ABHA_AUTH_FLOW_METHOD.MOBILE))},[it,st]),reactExports.useEffect(()=>{nt||Pt.current||pt&&pt.length===10&&(ut(!0),Pt.current=!0,Ut("auto_submit_mobile"))},[pt]),reactExports.useEffect(()=>{nt||Pt.current||wt&&wt.length===12&&(ut(!0),Pt.current=!0,Ut("auto_submit_aadhaar"))},[wt]),reactExports.useEffect(()=>{nt||Pt.current||bt&&bt.length===17&&(ut(!0),Pt.current=!0,Ut("auto_submit_abha"))},[bt]),reactExports.useEffect(()=>{nt||Pt.current||Lt&&Lt.includes("@sbx")&&(ut(!0),Pt.current=!0,Ut("auto_submit_phr"))},[Lt]);const Gt=({name:Dt,data:Kt={}})=>{var dr,xr;const ar={...{login_platform:_e,is_eka_app_login:_?"true":"false",is_new_login_or_create_flow:j?"true":"false",oid:Vt!=null&&Vt["X-User-ID"]?"true":"false",access_token:Vt!=null&&Vt.auth?"true":"false",txn_id:ft||"missing txnId",flow:e??""},...Kt};handleSendEvent({eventName:Dt,eventData:ar}),(xr=(dr=window.curio)==null?void 0:dr.pushToMixpanel)==null||xr.call(dr,Dt,ar)},$t=React.useMemo(()=>{switch(e){case ABHA_AUTH_FLOW_METHOD.MOBILE:return"Enter your Mobile Number";case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return"Enter your Aadhaar Number";default:return""}},[e]),Bt=Dt=>{St("");const Kt=Dt.target.value;switch(e){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:if(Kt.length>20)return;Ft(Kt),c({phr_address:Kt}),o(null);break;case ABHA_AUTH_FLOW_METHOD.MOBILE:if(Kt&&!/^[0-9]+$/.test(Kt)||Kt.length>10)return;vt(Kt),ct(!0),c({mobile:Kt}),o(null);break;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:if(!/^[\d-]*$/.test(Kt)||Kt.length>17)return;const Zt=Dt.target.value.replace(/-/g,"");let ar="";return Zt.length>0&&(ar+=Zt.slice(0,2)),Zt.length>2&&(ar+=`-${Zt.slice(2,6)}`),Zt.length>6&&(ar+=`-${Zt.slice(6,10)}`),Zt.length>10&&(ar+=`-${Zt.slice(10,14)}`),jt(ar),o(null),c({abha_number:ar.trim()});case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:if(Kt&&!/^[0-9]+$/.test(Kt)||Kt.length>12)return;Tt(Kt),mt(!0),o(null),c({aadhaar_number:Kt});break}};ABHA_AUTH_FLOW_METHOD.MOBILE;const er=React.useMemo(()=>{switch(e){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return g.phr_address.length>=4&&g.phr_address.length<=20;case ABHA_AUTH_FLOW_METHOD.MOBILE:return g.mobile.length===10;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return g.abha_number.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return g.aadhaar_number.length===12}},[e,g]),Wt=(Dt,Kt)=>{xt(Zt=>({...Zt,[Dt]:Kt}))},tr=({inputVal:Dt})=>{Dt.length===12&&(c({aadhaar_number:Dt}),Tt(Dt),mt(!0))};reactExports.useEffect(()=>{console.log("selectedMethod changed:==================>",e)},[e]);const Ut=async Dt=>{var ar,dr,xr;tt(!0),Gt({name:"abha_login_next_click",data:{flow_step_type:Dt}}),At(LOADING_STATE.LOADING),et(REGISTRATION_TYPE.LOGIN);let Kt="";if(!_){const mr=await postAuthLogoutV2();Gt({name:mr?"abha_logout_success":"abha_logout_failure",data:{platform:_e}});const{txn_id:gr,error:or}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!gr||or){Gt({name:"abha_auth_init_failure",data:{flow_step_type:"init",authTxnId:Kt,error_message:or||"missing_txnId_or_unknown_error",error_message_exists:!!or,txn_id_exists:!!gr}}),St((or==null?void 0:or.message)||"Something went wrong. Please try again."),At(LOADING_STATE.REJECTED);return}Kt=gr,Gt({name:"abha_auth_init_success.",data:{flow_step_type:"init",auth_txnId:Kt}})}const Zt=e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?`${g.phr_address}@sbx`:e===ABHA_AUTH_FLOW_METHOD.MOBILE?g.mobile:e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?g.abha_number:e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?g.aadhaar_number:"";if(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER||e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS){const{txn_id:mr,error:gr,action:or,hint:Sr}=await postAbdmLoginInit({method:e,identifier:Zt});if(ht(Zt),Gt({name:"abha_login_init_triggered",data:{flow_step_type:"init",authTxnId:Kt,ndhmTxnId:mr,method:e}}),e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&b(Zt),gr||!mr){if(a(!0),((ar=or==null?void 0:or.cta)==null?void 0:ar.pid)==="abha_mobile_enroll"&&e===ABHA_AUTH_FLOW_METHOD.MOBILE){Wt("mobile",LOADING_STATE.LOADING),et(REGISTRATION_TYPE.CREATE);const{txn_id:Cn,hint:Pn,error:ln,action:un}=await postRegisterMobileInit({mobile_number:g.mobile});if(ht(g.mobile),gt("mobile"),Cn&&Pn){rt({authTxnId:Kt,txnId:Cn,mobileOtpSentToHint:Pn}),Gt({name:"abha_mobile_registration_init_success",data:{flow_step_type:"init",authTxnId:Kt,ndhmTxnId:mr,error_message:ln,error_action:or}}),Wt("mobile",LOADING_STATE.RESOLVED),At(LOADING_STATE.RESOLVED),et(REGISTRATION_TYPE.CREATE),Ct(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}if(Wt("mobile",LOADING_STATE.REJECTED),Gt({name:"abha_mobile_registration_init_failure",data:{flow_step_type:"init",authTxnId:Kt,error_message:ln||"unknown_error",error_message_exists:!!ln,error_action_exists:!!un}}),un){if((dr=un==null?void 0:un.cta)!=null&&dr.pid)return Ct(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA)}else St(ln||"Something went wrong");St(ln||"Something went wrong. Please try again."),At(LOADING_STATE.REJECTED);return}Gt({name:"abha_login_init_failure",data:{flow_step_type:"init",authTxnId:Kt,error_message:gr||"unknown_error",error_message_exists:!!gr,error_action_exists:!!or}}),St(gr||"Something went wrong. Please try again."),At(LOADING_STATE.REJECTED);return}Gt({name:"abha_login_init_success",data:{flow_step_type:"init",authTxnId:Kt,ndhmTxnId:mr,hint:Sr}}),ot({authTxnId:Kt,txnId:mr,aadhaarOtpSentToHint:Sr||null}),a(!1),$(Zt),At(LOADING_STATE.RESOLVED),Ct(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}if(e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){Wt("aadhaar",LOADING_STATE.LOADING),Gt({name:"aadhaar_registration_init_start",data:{flow_step_type:"init",authTxnId:Kt,aadhaarNumber:g.aadhaar_number}});const{txn_id:mr,hint:gr,error:or,action:Sr}=await postRegisterAadhaarInit({aadhaar_number:g.aadhaar_number});if(ht(g.aadhaar_number),gt("aadhaar"),mr&&gr){ot({authTxnId:Kt,txnId:mr,aadhaarOtpSentToHint:gr}),Gt({name:"aadhaar_registration_init_success",data:{flow_step_type:"verify",ndhmTxnId:mr,authTxnId:Kt}}),a(!1),Wt("aadhaar",LOADING_STATE.RESOLVED),et(REGISTRATION_TYPE.CREATE),At(LOADING_STATE.RESOLVED),Ct(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}if(Gt({name:"abha_registration_init_failure",data:{error_message:or||"unknown_error",error_message_exists:!!or,auth_txn_id:Kt,error_action:Sr,error_action_exists:!!Sr}}),Wt("aadhaar",LOADING_STATE.REJECTED),At(LOADING_STATE.REJECTED),Sr||or){a(!0),(xr=Sr==null?void 0:Sr.cta)!=null&&xr.pid?Ct(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA):St(or||"Something went wrong");return}}},[Qt,Mt]=reactExports.useState(!1),[Nt,Xt]=reactExports.useState(i&&e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),[ir,rr]=reactExports.useState(i&&e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"pds2-pt-22 pds2-p-16 pds2-bg-bg-01 pds2-space-y-16 pds2-text-center pds2-rounded-b-24",children:[jsxRuntimeExports.jsx(AbhaStepper,{}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center pds2-gap-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-bg-white pds2-rounded-16",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64"})})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-text-black",children:_e==="phr"?"Login or Create your ABHA":dt?"Add Patient via ABHA":"Create your ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-text-03",style:{marginTop:"4px"},children:e===ABHA_AUTH_FLOW_METHOD.MOBILE?dt?"Enter Patient's Mobile Number":"Enter your Mobile Number":e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?dt?"Enter Patient's Aadhaar Number":"Enter your Aadhaar Number":e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?dt?"Enter Patient's ABHA Number":"Enter your ABHA Number":e===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?dt?"Enter Patient's ABHA Address":"Enter your ABHA Address":$t}),(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-flex pds2-bg-bg-seperator-dark pds2-rounded-12 pds2-mt-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-top-0 pds2-bottom-0 pds2-bg-bg-white pds2-rounded-12 pds2-transition-all pds2-duration-300",style:{left:e===ABHA_AUTH_FLOW_METHOD.MOBILE?0:"50%",width:"50%",boxShadow:"0px 10px 4px -6px #18274B17"}}),jsxRuntimeExports.jsxs("button",{onClick:()=>{s(ABHA_AUTH_FLOW_METHOD.MOBILE),St("")},className:"pds2-flex-1 pds2-py-6 pds2-flex pds2-items-center pds2-justify-center pds2-gap-8 pds2-relative pds2-z-10",children:[jsxRuntimeExports.jsx(PhoneSolidIcon,{className:"pds2-w-14 pds2-h-14 pds2-text-icon-success-02"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${e===ABHA_AUTH_FLOW_METHOD.MOBILE?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:e===ABHA_AUTH_FLOW_METHOD.MOBILE?{fontWeight:700}:{fontWeight:400},children:"Mobile"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{s(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),St("")},className:"pds2-flex-1 pds2-py-6 pds2-flex pds2-items-center pds2-justify-center pds2-gap-8 pds2-relative pds2-z-10",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?{fontWeight:700}:{fontWeight:400},children:"Aadhaar"})]})]}),(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx("div",{className:"pds2-mt-16 pds2-w-full pds2-max-w-md pds2-mx-auto pds2-px-4 pds2-relative",children:e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?jsxRuntimeExports.jsx(SpacedInputComponent,{initialValues:it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!i?(st==null?void 0:st.match(/.{1,4}/g))??void 0:(wt==null?void 0:wt.match(/.{1,4}/g))??void 0,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!st,numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:tr,setIsValid:mt,setAadhaarValue:Tt,setError:St}):jsxRuntimeExports.jsx(Pds2InputField,{value:it===ABHA_AUTH_FLOW_METHOD.MOBILE&&!i?st||"":pt,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.MOBILE&&!!st,onChange:Bt,type:"tel",autoComplete:"tel-national",placeholder:"Mobile Number",inputMode:"numeric",autoFocus:!0,maxLength:10,PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-border-brand-02 pds2-pr-24",children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4mlct2900000tg98p8u967s.webp",alt:"indian-flag-icon",className:"pds2-w-24 pds2-h-24"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-text-black pds2-text-sm",children:"+91"})]})})}),kt&&(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular",children:kt}),(e===ABHA_AUTH_FLOW_METHOD.MOBILE||e===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!er||_t===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:_t===LOADING_STATE.LOADING,onClick:()=>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:()=>Mt(!Qt),className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-16 pds2-bg-bg-white hover:pds2-bg-bg-02 pds2-transition-colors",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-text-03",children:dt?"Other add options for ABHA":"Other login options for ABHA"}),jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:`pds2-w-16 pds2-h-16 pds2-text-text-03 pds2-transition-transform ${Qt?"pds2-rotate-180":""}`})]}),jsxRuntimeExports.jsxs("div",{className:`pds2-overflow-hidden pds2-transition-all pds2-duration-300 ${Qt?"pds2-max-h-126 pds2-opacity-100":"pds2-max-h-0 pds2-opacity-0"}`,children:[jsxRuntimeExports.jsxs("button",{onClick:()=>{Mt(!1),s(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),Xt(!0),St("")},className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-12 hover:pds2-bg-bg-02 pds2-transition-colors",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-12",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-40 pds2-h-40 pds2-rounded-full pds2-bg-bg-02 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abd-icon",className:"pds2-w-24 pds2-h-24"})}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-black",children:dt?"Add patient with ABHA Number":"Login with ABHA Number"})]}),jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-text-03"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{Mt(!1),s(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),rr(!0),St("")},className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-12 hover:pds2-bg-bg-02 pds2-transition-colors",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-12",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-40 pds2-h-40 pds2-rounded-full pds2-bg-bg-02 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-24 pds2-h-24"})}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-text-black",children:dt?"Add patient with ABHA Address":"Login with ABHA Address"})]}),jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-text-03"})]})]})]}),jsxRuntimeExports.jsx(AbhaBottomSheet,{isOpen:Nt,setIsOpen:Xt,setFlowMethod:s,setError:St,children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-24 pds2-text-center pds2-h-full pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{St(null),Xt(!1),s(ABHA_AUTH_FLOW_METHOD.MOBILE)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-text-03 hover:pds2-text-text-black",children:"✕"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-mb-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-w-64 pds2-h-64 pds2-rounded-full pds2-bg-bg-01 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-48 pds2-h-48"})})}),jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-text-black",children:dt?"Add Patient with ABHA Number":"Login with ABHA Number"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-text-03 pds2-mb-24",children:dt?"Enter Patient's 14 digit ABHA Number":"Enter your 14 digit ABHA Number"}),jsxRuntimeExports.jsx(Pds2InputField,{value:it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!i?st||"":bt,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!!st,onChange:Bt,placeholder:"00-0000-0000-0000",padding:"pds2-p-18",textStyle:"Body2Regular pds2-text-center pds2-text-lg",borderStyle:"focus-within:pds2-border-border-brand-01",type:"tel",autoComplete:"tel-national",inputMode:"numeric",autoFocus:!0,onKeyDown:Dt=>{Dt.key==="Enter"&&Ut("after_enter_abha_number_on_click_by_user")}}),kt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular pds2-mt-12",children:kt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!g||_t===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>Ut("after_enter_abha_number_on_click_by_user"),className:`pds2-w-full ${kt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:_t===LOADING_STATE.LOADING})]})]})}),jsxRuntimeExports.jsx(AbhaBottomSheet,{isOpen:ir,setIsOpen:rr,setFlowMethod:s,setError:St,children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-24 pds2-text-center pds2-h-full pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{St(null),rr(!1),s(ABHA_AUTH_FLOW_METHOD.MOBILE)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-text-03 hover:pds2-text-text-black",children:"✕"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-mb-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-w-64 pds2-h-64 pds2-rounded-full pds2-bg-bg-01 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-48 pds2-h-48"})})}),jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-text-black",children:dt?"Add Patient with ABHA Address":"Login with ABHA Address"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-text-03 pds2-mb-24",children:dt?"Enter Patient's ABHA Address below":"Enter your ABHA Address below"}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative",children:[jsxRuntimeExports.jsx(Pds2InputField,{value:it===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!i?(st==null?void 0:st.split("@")[0])||"":It,disabled:!i&&it===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!!st,onChange:Bt,placeholder:"Enter ABHA Address",inputMode:"text",autoFocus:!0,onKeyDown:Dt=>{Dt.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"})]}),kt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-text-error Body3Regular pds2-mt-12",children:kt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(ChevronDownRegularIcon,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!g||_t===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>Ut("after_enter_abha_address_on_click_by_user"),className:`pds2-w-full ${kt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:_t===LOADING_STATE.LOADING})]})]})})]})},AbhaBottomSheet=({isOpen:e,setIsOpen:s,children:i,setFlowMethod:a,overlayClassName:o="pds2-bg-text-black pds2-bg-opacity-50",setError:c})=>{const[g,_]=reactExports.useState(e);return reactExports.useEffect(()=>{if(e)_(!0);else{const b=setTimeout(()=>_(!1),300);return()=>clearTimeout(b)}},[e]),g?jsxRuntimeExports.jsxs("div",{className:`pds2-absolute pds2-inset-0 pds2-z-50 pds2-flex pds2-items-end pds2-transition-all pds2-duration-300 ${e?"pds2-opacity-100":"pds2-opacity-0 pointer-events-none"}`,children:[jsxRuntimeExports.jsx("div",{className:`pds2-absolute pds2-inset-0 ${o} pds2-transition-opacity pds2-duration-300`,style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},onClick:()=>{c(null),s(!1),a(ABHA_AUTH_FLOW_METHOD.MOBILE)}}),jsxRuntimeExports.jsx("div",{className:`pds2-relative pds2-bg-bg-white pds2-rounded-t-24 pds2-w-full pds2-transition-transform pds2-duration-300 ${e?"pds2-translate-y-0":"pds2-translate-y-full"}`,style:{height:"75%",maxHeight:"600px",overflowY:"auto"},children:i})]}):null},ScreenStack=()=>{const e=useAuthAbhaStore(i=>i.screen);switch(e[e.length-1]){case SCREEN_NAMES.LOGIN_WITH_ABHA:return jsxRuntimeExports.jsx(LoginorCreateAbhaScreen,{});case SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA:return jsxRuntimeExports.jsx(AbhaLoginOtpVerifyScreen,{});case SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR:return jsxRuntimeExports.jsx(LoginorCreateAbhaScreen,{});case SCREEN_NAMES.ABHA_OTP_AND_MOBILE:return jsxRuntimeExports.jsx(AbhaOtpAndMobileScreen,{});case SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION:return jsxRuntimeExports.jsx(AbhaPhoneNumberVerificationScreen,{});case SCREEN_NAMES.AADHAAR_VERIFICATION_STATUS:return jsxRuntimeExports.jsx(AbhaAadhaarVerificationStatusScreen,{});case SCREEN_NAMES.ABHA_MOBILE_LINKING_STATUS:return jsxRuntimeExports.jsx(AbhaMobileLinkingStatusScreen,{});case SCREEN_NAMES.SELECT_ABHA_FROM_LIST:return jsxRuntimeExports.jsx(SelectAbhaFromListScreen,{});case SCREEN_NAMES.SELECT_EKA_PROFILE:return jsxRuntimeExports.jsx(SelectEkaProfileScreen,{});case SCREEN_NAMES.CREATE_ABHA_ADDRESS:return jsxRuntimeExports.jsx(CreateAbhaAddressScreen,{});case SCREEN_NAMES.CREATE_EKA_PROFILE:return jsxRuntimeExports.jsx(CreateEkaProfileScreen,{});case SCREEN_NAMES.CREATE_PHR_EKA_PROFILE:return jsxRuntimeExports.jsx(CreateEkaProfileScreen,{});case SCREEN_NAMES.GET_ALL_PROFILES:return jsxRuntimeExports.jsx(GetAllProfilesScreen,{});case SCREEN_NAMES.LOGIN_OR_CREATE_ABHA:return jsxRuntimeExports.jsx(LoginorCreateAbhaScreen,{});default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}},queryClient=new QueryClient;function App(){return reactExports.useEffect(()=>()=>{unMount()},[]),jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:jsxRuntimeExports.jsx("div",{className:"pds2-h-full pds2-w-full pds2-bg-bg-white",style:{borderRadius:GET_CLIENT_ID()==="www-eka"?"1.5rem":void 0,position:"relative",height:GET_CLIENT_ID()==="www-eka"?"75vh":GET_CLIENT_ID()==="doc-web"?"100%":"100vh",overflowY:"auto",paddingTop:GET_CLIENT_ID()==="androiddoc"||GET_CLIENT_ID()==="doctor-app-ios"||GET_CLIENT_ID()==="doctor-ipad-ios"?"1rem":"0rem"},children:jsxRuntimeExports.jsx(ScreenStack,{})})})}const d=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],p=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]];function verhoeffValidate(e){let s=0;const i=e.split("").reverse().map(a=>parseInt(a,10));for(let a=0;a<i.length;a++)s=d[s][p[a%8][i[a]]];return s===0}function isValidAadhaar(e){return/^\d{12}$/.test(e)?verhoeffValidate(e):!1}const abhaRegex=/^[0-9]{14}$/;function luhnCheck(e){let s=0,i=!1;for(let a=e.length-1;a>=0;a--){let o=parseInt(e[a],10);i&&(o*=2,o>9&&(o-=9)),s+=o,i=!i}return s%10===0}function isValidABHA(e){return!abhaRegex.test(e)||e.split("").every(i=>i===e[0])?!1:luhnCheck(e)}const isValidMobile=e=>/^[6-9]\d{9}$/.test(e),setIdentifier=(e,s)=>{useAuthAbhaStore.getState().setInitAbhaAppIdentifierType(e),useAuthAbhaStore.getState().setInitAbhaAppIdentifier(s)},handleIdentifier=(e,s,i)=>{if(e){const a=e.replace(/[\s-]/g,"");if(s){if(s===ABHA_AUTH_FLOW_METHOD.MOBILE){useAuthAbhaStore.getState().setInitAbhaAppIdentifierSource("existing"),setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,e.slice(-10));return}setIdentifier(s,e),useAuthAbhaStore.getState().setInitAbhaAppIdentifierSource("existing");return}if(a.endsWith("@sbx")){setIdentifier(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,a);return}if(/^\+91\d{10}$/.test(a)){const c=a.slice(-10);if(c.length===10&&isValidMobile(c)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,c);return}}else if(/^\d+$/.test(a)){const c=a.length;if(c===10&&isValidMobile(a)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,a);return}if(c===12&&isValidAadhaar(a)){setIdentifier(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,a);return}if(c===14&&isValidABHA(a)){const g=`${a.slice(0,2)}-${a.slice(2,6)}-${a.slice(6,10)}-${a.slice(10,14)}`;setIdentifier(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,g);return}console.warn("Unknown numeric identifier type");return}console.warn("Unknown identifier type")}else console.warn("No identifier provided")};let PopupReactNode=null,unMount,onAbhaSuccess;function initAbhaApp(e){console.log("clear the abha auth store for every sdk invocation",e),useAuthAbhaStore.getState().clearAbhaAuthStore();const{clientId:s,containerId:i,urlParams:a,method:o,data:c,appVersion:g,onSuccess:_,onError:b,onAbhaClose:$}=e,{mobile:et,accessToken:ot,oid:rt,identifier:at,identifier_type:it,orgIcon:st,linkToOrgIcon:dt}=c||{};console.log("recieved identifier, identifier_type",at,it),useAuthAbhaStore.getState().setOrgIcon(st),useAuthAbhaStore.getState().setLinkToOrgIcon(dt),handleSendEvent({eventName:"recieved_init_identifiers",eventData:{identifier:at||"",identifier_type:it||""}});const j={};ot&&(j.auth=ot),rt&&(j["X-User-ID"]=rt),console.log("set headers in headers"),console.log("invoked initAbhaApp",j);const tt=j!==null&&("auth"in j||"X-User-ID"in j);useAuthAbhaStore.getState().setIsEkaAppLogin(tt),s==="doc-web"&&useAuthAbhaStore.getState().setIsEkaAppLogin(!0),console.log("clientId ",s),console.log("isEkaAppLogin",useAuthAbhaStore.getState().isEkaAppLogin),s==="androiddoc"||s==="doctor-app-ios"||s==="doctor-ipad-ios"||s==="doc-web"?useAuthAbhaStore.getState().setClientId("doctor"):s==="androidp"||s==="patient-app-ios"?useAuthAbhaStore.getState().setClientId("phr"):s==="www-eka"?useAuthAbhaStore.getState().setClientId("eka-web"):(console.log("here"),useAuthAbhaStore.getState().setClientId("phr"));let _e=!1;handleSendEvent({eventName:"init_abha_app",eventData:{platform:s,method:o||"",mobile:et||"",accessToken:ot||"",oid:rt||"",appVersion:g||"",isEkaAppLogin:tt.toString(),container_id:i}}),onTrack("init_abha_app",{platform:s,method:o||"",mobile:et||"",accessToken:j.auth||"",oid:j["X-User-ID"]||"",appVersion:g||"",isEkaAppLogin:tt.toString(),container_id:i}),(s==="androiddoc"||s==="doctor-app-ios"||s==="doctor-ipad-ios"||s==="doc-web")&&(_e=!0,useAuthAbhaStore.getState().setIsDocAppRequest(_e)),useAuthAbhaStore.getState().setInitAbhaAppMethod(o==="create_abha_with_mobile"?"create_abha_with_mobile":"login_with_abha"),setEnv({clientId:s,env:"DEV",...j&&{extraHeaders:j}}),console.log("isProd is",!1);const ut=SCREEN_NAMES.LOGIN_OR_CREATE_ABHA;useAuthAbhaStore.getState().setInitState({screen:[ut],urlParams:a});const gt=it&&["mobile","aadhaar_number","abha_number","phr_address"].includes(it)?it:void 0;handleIdentifier(at,gt),useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.MOBILE);const ft=()=>{useAuthAbhaStore.getState().clearAbhaAuthStore(),queryClient.removeQueries(),PopupReactNode==null||PopupReactNode.unmount(),$()},_t=document.getElementById(i);if(!_t){const At=`Element with id ${i} not found`;console.error(At),b({error:At}),ft();return}return onAbhaSuccess=_,PopupReactNode=createRoot(_t),PopupReactNode.render(jsxRuntimeExports.jsx(App,{})),unMount=ft,window.closeAbhaApp=ft,ft}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."))}
|